{"action":"created","issue":{"url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk/issues/35","repository_url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk","labels_url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk/issues/35/comments","events_url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk/issues/35/events","html_url":"https://github.com/aliyun/aliyun-oss-ruby-sdk/issues/35","id":187660836,"number":35,"title":"rest-client 升级到 ~> 2.0.0","user":{"login":"li-thy-um","id":4740349,"avatar_url":"https://avatars.githubusercontent.com/u/4740349?v=3","gravatar_id":"","url":"https://api.github.com/users/li-thy-um","html_url":"https://github.com/li-thy-um","followers_url":"https://api.github.com/users/li-thy-um/followers","following_url":"https://api.github.com/users/li-thy-um/following{/other_user}","gists_url":"https://api.github.com/users/li-thy-um/gists{/gist_id}","starred_url":"https://api.github.com/users/li-thy-um/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/li-thy-um/subscriptions","organizations_url":"https://api.github.com/users/li-thy-um/orgs","repos_url":"https://api.github.com/users/li-thy-um/repos","events_url":"https://api.github.com/users/li-thy-um/events{/privacy}","received_events_url":"https://api.github.com/users/li-thy-um/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-07T09:21:57Z","updated_at":"2016-11-11T03:02:10Z","closed_at":null,"body":"我的项目需要同时用到 阿里云 和 七牛 的 SDK，bundle 的时候报以下错误\r\n\r\n```\r\nFetching gem metadata from https://gems.ruby-china.org/.......\r\nFetching version metadata from https://gems.ruby-china.org/..\r\nResolving dependencies....\r\nBundler could not find compatible versions for gem \"rest-client\":\r\n  In snapshot (Gemfile.lock):\r\n    rest-client (= 2.0.0)\r\n\r\n  In Gemfile:\r\n    rest-client\r\n\r\n    aliyun-sdk was resolved to 0.1.1, which depends on\r\n      rest-client (~> 1.8)\r\n\r\n    qiniu (>= 6.8.0) was resolved to 6.8.1, which depends on\r\n      rest-client (>= 2.0.0, ~> 2.0)\r\n\r\nRunning `bundle update` will rebuild your snapshot from scratch, using only\r\nthe gems in your Gemfile, which may resolve the conflict.\r\n``` \r\n\r\n建议将 rest-client 升级到 2.0.0 以上"},"comment":{"url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk/issues/comments/259869575","html_url":"https://github.com/aliyun/aliyun-oss-ruby-sdk/issues/35#issuecomment-259869575","issue_url":"https://api.github.com/repos/aliyun/aliyun-oss-ruby-sdk/issues/35","id":259869575,"user":{"login":"li-thy-um","id":4740349,"avatar_url":"https://avatars.githubusercontent.com/u/4740349?v=3","gravatar_id":"","url":"https://api.github.com/users/li-thy-um","html_url":"https://github.com/li-thy-um","followers_url":"https://api.github.com/users/li-thy-um/followers","following_url":"https://api.github.com/users/li-thy-um/following{/other_user}","gists_url":"https://api.github.com/users/li-thy-um/gists{/gist_id}","starred_url":"https://api.github.com/users/li-thy-um/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/li-thy-um/subscriptions","organizations_url":"https://api.github.com/users/li-thy-um/orgs","repos_url":"https://api.github.com/users/li-thy-um/repos","events_url":"https://api.github.com/users/li-thy-um/events{/privacy}","received_events_url":"https://api.github.com/users/li-thy-um/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T03:02:10Z","updated_at":"2016-11-11T03:02:10Z","body":"调用\r\n\r\n```ruby \r\n@client.get_bucket('invest-images').put_object(file_name, file: file_path)\r\n```\r\n\r\n报错\r\n\r\n```\r\nArgumentError: wrong number of arguments (given 2, expected 0..1)\r\nfrom /Users/lithium/.rvm/gems/ruby-2.3.1/bundler/gems/aliyun-oss-ruby-sdk-8602c6e7ca53/lib/aliyun/oss/http.rb:128:in `read'\r\n```"}}
{"actor":{"display_login":"li-thy-um"}}