{"action":"opened","issue":{"url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2274","repository_url":"https://api.github.com/repos/thoughtbot/paperclip","labels_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2274/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2274/comments","events_url":"https://api.github.com/repos/thoughtbot/paperclip/issues/2274/events","html_url":"https://github.com/thoughtbot/paperclip/issues/2274","id":170014436,"number":2274,"title":"AWS SDK v1 deprecated even when using v2","user":{"login":"CyborgMaster","id":1882579,"avatar_url":"https://avatars.githubusercontent.com/u/1882579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyborgMaster","html_url":"https://github.com/CyborgMaster","followers_url":"https://api.github.com/users/CyborgMaster/followers","following_url":"https://api.github.com/users/CyborgMaster/following{/other_user}","gists_url":"https://api.github.com/users/CyborgMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/CyborgMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyborgMaster/subscriptions","organizations_url":"https://api.github.com/users/CyborgMaster/orgs","repos_url":"https://api.github.com/users/CyborgMaster/repos","events_url":"https://api.github.com/users/CyborgMaster/events{/privacy}","received_events_url":"https://api.github.com/users/CyborgMaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-08T20:14:18Z","updated_at":"2016-08-08T20:14:18Z","closed_at":null,"body":"Using paperclip v4.3.7\r\n\r\nI'm getting the following when I boot my rails server: \r\n\r\nDEPRECATION WARNING: [paperclip] [deprecation] AWS SDK v1 has been deprecated in paperclip 5. Please consider upgrading to AWS 2 before upgrading paperclip.\r\n\r\n`aws-sdk` (v2) is in our Gemfile and `aws-sdk-v1` is not.  However, `aws-sdk-v1` is a dependency of another gem we use in our project (`aws-flow`), so it is included by proxy and we therefore have both v1 and v2 in our project.  \r\n\r\nPaperclip is using v2 but is complaining simply because v1 is included as gem.  \r\n\r\nIt seems that this function is the culprit in `lib/paperclip/deprecations.rb`\r\n``` ruby\r\n      def aws_sdk_version\r\n        defined?(::AWS) && ::AWS::VERSION\r\n      end\r\n```\r\nShould it be modified to also check to see if v2 is included as well?"}}
{"actor":{"display_login":"CyborgMaster"}}