{"action":"created","comment":{"url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/comments/51521797","id":51521797,"diff_hunk":"@@ -13,8 +13,8 @@ def create_policy\n       secret_key = credential.secret_access_key\n       security_token = credential.session_token\n     end\n-    region = ENV['OSS_REGION']\n-    bucket_name = ENV['OSS_BUCKET_NAME']\n+    region = AWSConfig.config.region\n+    bucket_name = AWSConfig.config.bucket_name","path":"app/helpers/slide_helper.rb","position":20,"original_position":20,"commit_id":"904c6a0894f31560f411aef0cd52347d48ff30ac","original_commit_id":"904c6a0894f31560f411aef0cd52347d48ff30ac","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"body":"__[reek]__\n* [DuplicateMethodCall] calls AWSConfig.config 6 times [:ref](https://github.com/troessner/reek/blob/master/docs/Duplicate-Method-Call.md)","created_at":"2016-02-02T04:11:29Z","updated_at":"2016-02-02T04:11:29Z","html_url":"https://github.com/ryuzee/open-slideshare-v2/pull/16#discussion_r51521797","pull_request_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/comments/51521797"},"html":{"href":"https://github.com/ryuzee/open-slideshare-v2/pull/16#discussion_r51521797"},"pull_request":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16","id":57938319,"html_url":"https://github.com/ryuzee/open-slideshare-v2/pull/16","diff_url":"https://github.com/ryuzee/open-slideshare-v2/pull/16.diff","patch_url":"https://github.com/ryuzee/open-slideshare-v2/pull/16.patch","issue_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/16","number":16,"state":"open","locked":false,"title":"refactor","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-02T04:11:20Z","updated_at":"2016-02-02T04:11:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8d4ea4ef32158efb9b92e575df5ca52877945a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16/commits","review_comments_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16/comments","review_comment_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/16/comments","statuses_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/statuses/904c6a0894f31560f411aef0cd52347d48ff30ac","head":{"label":"ryuzee:refactor_AWS_handling","ref":"refactor_AWS_handling","sha":"904c6a0894f31560f411aef0cd52347d48ff30ac","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"repo":{"id":47168038,"name":"open-slideshare-v2","full_name":"ryuzee/open-slideshare-v2","owner":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryuzee/open-slideshare-v2","description":"OpenSlideshare is an Open Source Slide Sharing Application","fork":false,"url":"https://api.github.com/repos/ryuzee/open-slideshare-v2","forks_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/forks","keys_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/teams","hooks_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/hooks","issue_events_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/events{/number}","events_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/events","assignees_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/assignees{/user}","branches_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/branches{/branch}","tags_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/tags","blobs_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/languages","stargazers_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/stargazers","contributors_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/contributors","subscribers_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/subscribers","subscription_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/subscription","commits_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/contents/{+path}","compare_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/merges","archive_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/downloads","issues_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues{/number}","pulls_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/labels{/name}","releases_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/releases{/id}","deployments_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/deployments","created_at":"2015-12-01T05:36:48Z","updated_at":"2016-01-26T04:51:06Z","pushed_at":"2016-02-02T04:11:20Z","git_url":"git://github.com/ryuzee/open-slideshare-v2.git","ssh_url":"git@github.com:ryuzee/open-slideshare-v2.git","clone_url":"https://github.com/ryuzee/open-slideshare-v2.git","svn_url":"https://github.com/ryuzee/open-slideshare-v2","homepage":"http://www.ryuzee.com","size":5638,"stargazers_count":10,"watchers_count":10,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":10,"default_branch":"master"}},"base":{"label":"ryuzee:master","ref":"master","sha":"3e83c4aec9628af65df82ec0c1951a952faa01f0","user":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"repo":{"id":47168038,"name":"open-slideshare-v2","full_name":"ryuzee/open-slideshare-v2","owner":{"login":"ryuzee","id":272013,"avatar_url":"https://avatars.githubusercontent.com/u/272013?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuzee","html_url":"https://github.com/ryuzee","followers_url":"https://api.github.com/users/ryuzee/followers","following_url":"https://api.github.com/users/ryuzee/following{/other_user}","gists_url":"https://api.github.com/users/ryuzee/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuzee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuzee/subscriptions","organizations_url":"https://api.github.com/users/ryuzee/orgs","repos_url":"https://api.github.com/users/ryuzee/repos","events_url":"https://api.github.com/users/ryuzee/events{/privacy}","received_events_url":"https://api.github.com/users/ryuzee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryuzee/open-slideshare-v2","description":"OpenSlideshare is an Open Source Slide Sharing Application","fork":false,"url":"https://api.github.com/repos/ryuzee/open-slideshare-v2","forks_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/forks","keys_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/teams","hooks_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/hooks","issue_events_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/events{/number}","events_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/events","assignees_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/assignees{/user}","branches_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/branches{/branch}","tags_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/tags","blobs_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/statuses/{sha}","languages_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/languages","stargazers_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/stargazers","contributors_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/contributors","subscribers_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/subscribers","subscription_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/subscription","commits_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/contents/{+path}","compare_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/merges","archive_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/downloads","issues_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues{/number}","pulls_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls{/number}","milestones_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/milestones{/number}","notifications_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/labels{/name}","releases_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/releases{/id}","deployments_url":"https://api.github.com/repos/ryuzee/open-slideshare-v2/deployments","created_at":"2015-12-01T05:36:48Z","updated_at":"2016-01-26T04:51:06Z","pushed_at":"2016-02-02T04:11:20Z","git_url":"git://github.com/ryuzee/open-slideshare-v2.git","ssh_url":"git@github.com:ryuzee/open-slideshare-v2.git","clone_url":"https://github.com/ryuzee/open-slideshare-v2.git","svn_url":"https://github.com/ryuzee/open-slideshare-v2","homepage":"http://www.ryuzee.com","size":5638,"stargazers_count":10,"watchers_count":10,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16"},"html":{"href":"https://github.com/ryuzee/open-slideshare-v2/pull/16"},"issue":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/16"},"comments":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/ryuzee/open-slideshare-v2/statuses/904c6a0894f31560f411aef0cd52347d48ff30ac"}}}}