{"action":"created","comment":{"url":"https://api.github.com/repos/h3poteto/asumibot/pulls/comments/58307547","id":58307547,"diff_hunk":"@@ -4,8 +4,21 @@\n   access_key_id: ENV[\"AWS_ACCESS_KEY_ID\"] || \"access key id\",\n   region: ENV[\"AWS_REGION\"] || \"region\"\n )\n-begin\n-  sqs_client.create_queue(queue_name: Settings.sqs.queue.patient)\n-rescue\n-  puts \"SQSに接続できません\"\n+queues = sqs_client.list_queues\n+if queues.successful?\n+  Settings.sqs.queue.to_a.each do |key, value|\n+    # queues.queue_urlsは\n+    # \"http://0.0.0.0:4568/asumibt-patient-queue\"\n+    # というstringが返ってくるので、比較のためにpathを抜き出す\n+    unless queues.queue_urls.map{|q| URI.parse(q).path }.include?(\"/#{value}\")","path":"config/initializers/sqs.rb","position":14,"original_position":14,"commit_id":"1b5cfea7a1c1fb9234511e4b7bb09045f6ab78bd","original_commit_id":"1b5cfea7a1c1fb9234511e4b7bb09045f6ab78bd","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Use `next` to skip iteration.<br>Space missing to the left of {.<br>Space between { and | missing.","created_at":"2016-04-03T09:44:17Z","updated_at":"2016-04-03T09:44:17Z","html_url":"https://github.com/h3poteto/asumibot/pull/44#discussion_r58307547","pull_request_url":"https://api.github.com/repos/h3poteto/asumibot/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/h3poteto/asumibot/pulls/comments/58307547"},"html":{"href":"https://github.com/h3poteto/asumibot/pull/44#discussion_r58307547"},"pull_request":{"href":"https://api.github.com/repos/h3poteto/asumibot/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/h3poteto/asumibot/pulls/44","id":65040592,"html_url":"https://github.com/h3poteto/asumibot/pull/44","diff_url":"https://github.com/h3poteto/asumibot/pull/44.diff","patch_url":"https://github.com/h3poteto/asumibot/pull/44.patch","issue_url":"https://api.github.com/repos/h3poteto/asumibot/issues/44","number":44,"state":"open","locked":false,"title":"closes #43 開発環境をdockerで立ち上げる","user":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-02T15:16:41Z","updated_at":"2016-04-03T09:44:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac6575d4e6ad8b2fd7f92fa71ccb9564b8a3f2c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/h3poteto/asumibot/pulls/44/commits","review_comments_url":"https://api.github.com/repos/h3poteto/asumibot/pulls/44/comments","review_comment_url":"https://api.github.com/repos/h3poteto/asumibot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h3poteto/asumibot/issues/44/comments","statuses_url":"https://api.github.com/repos/h3poteto/asumibot/statuses/1b5cfea7a1c1fb9234511e4b7bb09045f6ab78bd","head":{"label":"h3poteto:iss-43","ref":"iss-43","sha":"1b5cfea7a1c1fb9234511e4b7bb09045f6ab78bd","user":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"repo":{"id":13027774,"name":"asumibot","full_name":"h3poteto/asumibot","owner":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h3poteto/asumibot","description":"阿澄病患者のための治療薬","fork":false,"url":"https://api.github.com/repos/h3poteto/asumibot","forks_url":"https://api.github.com/repos/h3poteto/asumibot/forks","keys_url":"https://api.github.com/repos/h3poteto/asumibot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h3poteto/asumibot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h3poteto/asumibot/teams","hooks_url":"https://api.github.com/repos/h3poteto/asumibot/hooks","issue_events_url":"https://api.github.com/repos/h3poteto/asumibot/issues/events{/number}","events_url":"https://api.github.com/repos/h3poteto/asumibot/events","assignees_url":"https://api.github.com/repos/h3poteto/asumibot/assignees{/user}","branches_url":"https://api.github.com/repos/h3poteto/asumibot/branches{/branch}","tags_url":"https://api.github.com/repos/h3poteto/asumibot/tags","blobs_url":"https://api.github.com/repos/h3poteto/asumibot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h3poteto/asumibot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h3poteto/asumibot/git/refs{/sha}","trees_url":"https://api.github.com/repos/h3poteto/asumibot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h3poteto/asumibot/statuses/{sha}","languages_url":"https://api.github.com/repos/h3poteto/asumibot/languages","stargazers_url":"https://api.github.com/repos/h3poteto/asumibot/stargazers","contributors_url":"https://api.github.com/repos/h3poteto/asumibot/contributors","subscribers_url":"https://api.github.com/repos/h3poteto/asumibot/subscribers","subscription_url":"https://api.github.com/repos/h3poteto/asumibot/subscription","commits_url":"https://api.github.com/repos/h3poteto/asumibot/commits{/sha}","git_commits_url":"https://api.github.com/repos/h3poteto/asumibot/git/commits{/sha}","comments_url":"https://api.github.com/repos/h3poteto/asumibot/comments{/number}","issue_comment_url":"https://api.github.com/repos/h3poteto/asumibot/issues/comments{/number}","contents_url":"https://api.github.com/repos/h3poteto/asumibot/contents/{+path}","compare_url":"https://api.github.com/repos/h3poteto/asumibot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h3poteto/asumibot/merges","archive_url":"https://api.github.com/repos/h3poteto/asumibot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h3poteto/asumibot/downloads","issues_url":"https://api.github.com/repos/h3poteto/asumibot/issues{/number}","pulls_url":"https://api.github.com/repos/h3poteto/asumibot/pulls{/number}","milestones_url":"https://api.github.com/repos/h3poteto/asumibot/milestones{/number}","notifications_url":"https://api.github.com/repos/h3poteto/asumibot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h3poteto/asumibot/labels{/name}","releases_url":"https://api.github.com/repos/h3poteto/asumibot/releases{/id}","deployments_url":"https://api.github.com/repos/h3poteto/asumibot/deployments","created_at":"2013-09-23T05:36:15Z","updated_at":"2016-01-17T10:14:14Z","pushed_at":"2016-04-03T09:44:09Z","git_url":"git://github.com/h3poteto/asumibot.git","ssh_url":"git@github.com:h3poteto/asumibot.git","clone_url":"https://github.com/h3poteto/asumibot.git","svn_url":"https://github.com/h3poteto/asumibot","homepage":"http://www.asumi.ch/","size":17240,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"h3poteto:master","ref":"master","sha":"559aac3a895beb5727ae2d9552b18e9650b582e7","user":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"repo":{"id":13027774,"name":"asumibot","full_name":"h3poteto/asumibot","owner":{"login":"h3poteto","id":4631959,"avatar_url":"https://avatars.githubusercontent.com/u/4631959?v=3","gravatar_id":"","url":"https://api.github.com/users/h3poteto","html_url":"https://github.com/h3poteto","followers_url":"https://api.github.com/users/h3poteto/followers","following_url":"https://api.github.com/users/h3poteto/following{/other_user}","gists_url":"https://api.github.com/users/h3poteto/gists{/gist_id}","starred_url":"https://api.github.com/users/h3poteto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h3poteto/subscriptions","organizations_url":"https://api.github.com/users/h3poteto/orgs","repos_url":"https://api.github.com/users/h3poteto/repos","events_url":"https://api.github.com/users/h3poteto/events{/privacy}","received_events_url":"https://api.github.com/users/h3poteto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h3poteto/asumibot","description":"阿澄病患者のための治療薬","fork":false,"url":"https://api.github.com/repos/h3poteto/asumibot","forks_url":"https://api.github.com/repos/h3poteto/asumibot/forks","keys_url":"https://api.github.com/repos/h3poteto/asumibot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h3poteto/asumibot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h3poteto/asumibot/teams","hooks_url":"https://api.github.com/repos/h3poteto/asumibot/hooks","issue_events_url":"https://api.github.com/repos/h3poteto/asumibot/issues/events{/number}","events_url":"https://api.github.com/repos/h3poteto/asumibot/events","assignees_url":"https://api.github.com/repos/h3poteto/asumibot/assignees{/user}","branches_url":"https://api.github.com/repos/h3poteto/asumibot/branches{/branch}","tags_url":"https://api.github.com/repos/h3poteto/asumibot/tags","blobs_url":"https://api.github.com/repos/h3poteto/asumibot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h3poteto/asumibot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h3poteto/asumibot/git/refs{/sha}","trees_url":"https://api.github.com/repos/h3poteto/asumibot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h3poteto/asumibot/statuses/{sha}","languages_url":"https://api.github.com/repos/h3poteto/asumibot/languages","stargazers_url":"https://api.github.com/repos/h3poteto/asumibot/stargazers","contributors_url":"https://api.github.com/repos/h3poteto/asumibot/contributors","subscribers_url":"https://api.github.com/repos/h3poteto/asumibot/subscribers","subscription_url":"https://api.github.com/repos/h3poteto/asumibot/subscription","commits_url":"https://api.github.com/repos/h3poteto/asumibot/commits{/sha}","git_commits_url":"https://api.github.com/repos/h3poteto/asumibot/git/commits{/sha}","comments_url":"https://api.github.com/repos/h3poteto/asumibot/comments{/number}","issue_comment_url":"https://api.github.com/repos/h3poteto/asumibot/issues/comments{/number}","contents_url":"https://api.github.com/repos/h3poteto/asumibot/contents/{+path}","compare_url":"https://api.github.com/repos/h3poteto/asumibot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h3poteto/asumibot/merges","archive_url":"https://api.github.com/repos/h3poteto/asumibot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h3poteto/asumibot/downloads","issues_url":"https://api.github.com/repos/h3poteto/asumibot/issues{/number}","pulls_url":"https://api.github.com/repos/h3poteto/asumibot/pulls{/number}","milestones_url":"https://api.github.com/repos/h3poteto/asumibot/milestones{/number}","notifications_url":"https://api.github.com/repos/h3poteto/asumibot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h3poteto/asumibot/labels{/name}","releases_url":"https://api.github.com/repos/h3poteto/asumibot/releases{/id}","deployments_url":"https://api.github.com/repos/h3poteto/asumibot/deployments","created_at":"2013-09-23T05:36:15Z","updated_at":"2016-01-17T10:14:14Z","pushed_at":"2016-04-03T09:44:09Z","git_url":"git://github.com/h3poteto/asumibot.git","ssh_url":"git@github.com:h3poteto/asumibot.git","clone_url":"https://github.com/h3poteto/asumibot.git","svn_url":"https://github.com/h3poteto/asumibot","homepage":"http://www.asumi.ch/","size":17240,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/h3poteto/asumibot/pulls/44"},"html":{"href":"https://github.com/h3poteto/asumibot/pull/44"},"issue":{"href":"https://api.github.com/repos/h3poteto/asumibot/issues/44"},"comments":{"href":"https://api.github.com/repos/h3poteto/asumibot/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/h3poteto/asumibot/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/h3poteto/asumibot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h3poteto/asumibot/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/h3poteto/asumibot/statuses/1b5cfea7a1c1fb9234511e4b7bb09045f6ab78bd"}}}}