{"action":"closed","number":29,"pull_request":{"url":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/29","id":34424260,"html_url":"https://github.com/hirefire/hirefire-resource/pull/29","diff_url":"https://github.com/hirefire/hirefire-resource/pull/29.diff","patch_url":"https://github.com/hirefire/hirefire-resource/pull/29.patch","issue_url":"https://api.github.com/repos/hirefire/hirefire-resource/issues/29","number":29,"state":"closed","locked":false,"title":"add RabbitMQ support using Bunny","user":{"login":"abezzub","id":3282823,"avatar_url":"https://avatars.githubusercontent.com/u/3282823?v=3","gravatar_id":"","url":"https://api.github.com/users/abezzub","html_url":"https://github.com/abezzub","followers_url":"https://api.github.com/users/abezzub/followers","following_url":"https://api.github.com/users/abezzub/following{/other_user}","gists_url":"https://api.github.com/users/abezzub/gists{/gist_id}","starred_url":"https://api.github.com/users/abezzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abezzub/subscriptions","organizations_url":"https://api.github.com/users/abezzub/orgs","repos_url":"https://api.github.com/users/abezzub/repos","events_url":"https://api.github.com/users/abezzub/events{/privacy}","received_events_url":"https://api.github.com/users/abezzub/received_events","type":"User","site_admin":false},"body":"Allow HireFire to look at number of messages in RabbitMQ queues. Sample setup:\r\n```\r\n    # using connection URL\r\n    config.dyno(:worker) do\r\n      HireFire::Macro::Bunny.queue(\"results\", amqp_url: ENV[\"CLOUDAMQP_URL\"])\r\n    end\r\n\r\n    # using Bunny connection\r\n    config.dyno(:worker) do\r\n      HireFire::Macro::Bunny.queue(\"results\", connection: $rabbitmq_connection)\r\n    end\r\n\r\n    # non durable queues\r\n    config.dyno(:worker) do\r\n      HireFire::Macro::Bunny.queue(\"results\", connection: $rabbitmq_connection, durable: false)\r\n    end\r\n```\r\n\r\nI tested this in my app with HireFire and it works without problems. ","created_at":"2015-04-30T02:44:48Z","updated_at":"2015-04-30T12:25:09Z","closed_at":"2015-04-30T12:25:09Z","merged_at":"2015-04-30T12:25:09Z","merge_commit_sha":"01f41d32ac6446d90583189c2296e667d85b6731","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/29/commits","review_comments_url":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/29/comments","review_comment_url":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hirefire/hirefire-resource/issues/29/comments","statuses_url":"https://api.github.com/repos/hirefire/hirefire-resource/statuses/c32d5d876628e8dcc540365c24fbfce88bfa401f","head":{"label":"abezzub:bunny","ref":"bunny","sha":"c32d5d876628e8dcc540365c24fbfce88bfa401f","user":{"login":"abezzub","id":3282823,"avatar_url":"https://avatars.githubusercontent.com/u/3282823?v=3","gravatar_id":"","url":"https://api.github.com/users/abezzub","html_url":"https://github.com/abezzub","followers_url":"https://api.github.com/users/abezzub/followers","following_url":"https://api.github.com/users/abezzub/following{/other_user}","gists_url":"https://api.github.com/users/abezzub/gists{/gist_id}","starred_url":"https://api.github.com/users/abezzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abezzub/subscriptions","organizations_url":"https://api.github.com/users/abezzub/orgs","repos_url":"https://api.github.com/users/abezzub/repos","events_url":"https://api.github.com/users/abezzub/events{/privacy}","received_events_url":"https://api.github.com/users/abezzub/received_events","type":"User","site_admin":false},"repo":{"id":34823983,"name":"hirefire-resource","full_name":"abezzub/hirefire-resource","owner":{"login":"abezzub","id":3282823,"avatar_url":"https://avatars.githubusercontent.com/u/3282823?v=3","gravatar_id":"","url":"https://api.github.com/users/abezzub","html_url":"https://github.com/abezzub","followers_url":"https://api.github.com/users/abezzub/followers","following_url":"https://api.github.com/users/abezzub/following{/other_user}","gists_url":"https://api.github.com/users/abezzub/gists{/gist_id}","starred_url":"https://api.github.com/users/abezzub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abezzub/subscriptions","organizations_url":"https://api.github.com/users/abezzub/orgs","repos_url":"https://api.github.com/users/abezzub/repos","events_url":"https://api.github.com/users/abezzub/events{/privacy}","received_events_url":"https://api.github.com/users/abezzub/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/abezzub/hirefire-resource","description":"Ruby library for quickly adding worker dyno support to HireFire.","fork":true,"url":"https://api.github.com/repos/abezzub/hirefire-resource","forks_url":"https://api.github.com/repos/abezzub/hirefire-resource/forks","keys_url":"https://api.github.com/repos/abezzub/hirefire-resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/abezzub/hirefire-resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/abezzub/hirefire-resource/teams","hooks_url":"https://api.github.com/repos/abezzub/hirefire-resource/hooks","issue_events_url":"https://api.github.com/repos/abezzub/hirefire-resource/issues/events{/number}","events_url":"https://api.github.com/repos/abezzub/hirefire-resource/events","assignees_url":"https://api.github.com/repos/abezzub/hirefire-resource/assignees{/user}","branches_url":"https://api.github.com/repos/abezzub/hirefire-resource/branches{/branch}","tags_url":"https://api.github.com/repos/abezzub/hirefire-resource/tags","blobs_url":"https://api.github.com/repos/abezzub/hirefire-resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/abezzub/hirefire-resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/abezzub/hirefire-resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/abezzub/hirefire-resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/abezzub/hirefire-resource/statuses/{sha}","languages_url":"https://api.github.com/repos/abezzub/hirefire-resource/languages","stargazers_url":"https://api.github.com/repos/abezzub/hirefire-resource/stargazers","contributors_url":"https://api.github.com/repos/abezzub/hirefire-resource/contributors","subscribers_url":"https://api.github.com/repos/abezzub/hirefire-resource/subscribers","subscription_url":"https://api.github.com/repos/abezzub/hirefire-resource/subscription","commits_url":"https://api.github.com/repos/abezzub/hirefire-resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/abezzub/hirefire-resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/abezzub/hirefire-resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/abezzub/hirefire-resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/abezzub/hirefire-resource/contents/{+path}","compare_url":"https://api.github.com/repos/abezzub/hirefire-resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/abezzub/hirefire-resource/merges","archive_url":"https://api.github.com/repos/abezzub/hirefire-resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/abezzub/hirefire-resource/downloads","issues_url":"https://api.github.com/repos/abezzub/hirefire-resource/issues{/number}","pulls_url":"https://api.github.com/repos/abezzub/hirefire-resource/pulls{/number}","milestones_url":"https://api.github.com/repos/abezzub/hirefire-resource/milestones{/number}","notifications_url":"https://api.github.com/repos/abezzub/hirefire-resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/abezzub/hirefire-resource/labels{/name}","releases_url":"https://api.github.com/repos/abezzub/hirefire-resource/releases{/id}","created_at":"2015-04-29T23:38:13Z","updated_at":"2015-04-29T23:38:13Z","pushed_at":"2015-04-30T02:37:25Z","git_url":"git://github.com/abezzub/hirefire-resource.git","ssh_url":"git@github.com:abezzub/hirefire-resource.git","clone_url":"https://github.com/abezzub/hirefire-resource.git","svn_url":"https://github.com/abezzub/hirefire-resource","homepage":"https://www.hirefire.io","size":375,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hirefire:master","ref":"master","sha":"b58b5056a2f33ad3d82412d30cabb443c82259b7","user":{"login":"hirefire","id":11725336,"avatar_url":"https://avatars.githubusercontent.com/u/11725336?v=3","gravatar_id":"","url":"https://api.github.com/users/hirefire","html_url":"https://github.com/hirefire","followers_url":"https://api.github.com/users/hirefire/followers","following_url":"https://api.github.com/users/hirefire/following{/other_user}","gists_url":"https://api.github.com/users/hirefire/gists{/gist_id}","starred_url":"https://api.github.com/users/hirefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirefire/subscriptions","organizations_url":"https://api.github.com/users/hirefire/orgs","repos_url":"https://api.github.com/users/hirefire/repos","events_url":"https://api.github.com/users/hirefire/events{/privacy}","received_events_url":"https://api.github.com/users/hirefire/received_events","type":"Organization","site_admin":false},"repo":{"id":5082327,"name":"hirefire-resource","full_name":"hirefire/hirefire-resource","owner":{"login":"hirefire","id":11725336,"avatar_url":"https://avatars.githubusercontent.com/u/11725336?v=3","gravatar_id":"","url":"https://api.github.com/users/hirefire","html_url":"https://github.com/hirefire","followers_url":"https://api.github.com/users/hirefire/followers","following_url":"https://api.github.com/users/hirefire/following{/other_user}","gists_url":"https://api.github.com/users/hirefire/gists{/gist_id}","starred_url":"https://api.github.com/users/hirefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hirefire/subscriptions","organizations_url":"https://api.github.com/users/hirefire/orgs","repos_url":"https://api.github.com/users/hirefire/repos","events_url":"https://api.github.com/users/hirefire/events{/privacy}","received_events_url":"https://api.github.com/users/hirefire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hirefire/hirefire-resource","description":"Ruby library for quickly adding worker dyno support to HireFire.","fork":false,"url":"https://api.github.com/repos/hirefire/hirefire-resource","forks_url":"https://api.github.com/repos/hirefire/hirefire-resource/forks","keys_url":"https://api.github.com/repos/hirefire/hirefire-resource/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hirefire/hirefire-resource/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hirefire/hirefire-resource/teams","hooks_url":"https://api.github.com/repos/hirefire/hirefire-resource/hooks","issue_events_url":"https://api.github.com/repos/hirefire/hirefire-resource/issues/events{/number}","events_url":"https://api.github.com/repos/hirefire/hirefire-resource/events","assignees_url":"https://api.github.com/repos/hirefire/hirefire-resource/assignees{/user}","branches_url":"https://api.github.com/repos/hirefire/hirefire-resource/branches{/branch}","tags_url":"https://api.github.com/repos/hirefire/hirefire-resource/tags","blobs_url":"https://api.github.com/repos/hirefire/hirefire-resource/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hirefire/hirefire-resource/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hirefire/hirefire-resource/git/refs{/sha}","trees_url":"https://api.github.com/repos/hirefire/hirefire-resource/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hirefire/hirefire-resource/statuses/{sha}","languages_url":"https://api.github.com/repos/hirefire/hirefire-resource/languages","stargazers_url":"https://api.github.com/repos/hirefire/hirefire-resource/stargazers","contributors_url":"https://api.github.com/repos/hirefire/hirefire-resource/contributors","subscribers_url":"https://api.github.com/repos/hirefire/hirefire-resource/subscribers","subscription_url":"https://api.github.com/repos/hirefire/hirefire-resource/subscription","commits_url":"https://api.github.com/repos/hirefire/hirefire-resource/commits{/sha}","git_commits_url":"https://api.github.com/repos/hirefire/hirefire-resource/git/commits{/sha}","comments_url":"https://api.github.com/repos/hirefire/hirefire-resource/comments{/number}","issue_comment_url":"https://api.github.com/repos/hirefire/hirefire-resource/issues/comments{/number}","contents_url":"https://api.github.com/repos/hirefire/hirefire-resource/contents/{+path}","compare_url":"https://api.github.com/repos/hirefire/hirefire-resource/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hirefire/hirefire-resource/merges","archive_url":"https://api.github.com/repos/hirefire/hirefire-resource/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hirefire/hirefire-resource/downloads","issues_url":"https://api.github.com/repos/hirefire/hirefire-resource/issues{/number}","pulls_url":"https://api.github.com/repos/hirefire/hirefire-resource/pulls{/number}","milestones_url":"https://api.github.com/repos/hirefire/hirefire-resource/milestones{/number}","notifications_url":"https://api.github.com/repos/hirefire/hirefire-resource/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hirefire/hirefire-resource/labels{/name}","releases_url":"https://api.github.com/repos/hirefire/hirefire-resource/releases{/id}","created_at":"2012-07-17T13:38:02Z","updated_at":"2015-04-24T12:56:21Z","pushed_at":"2015-04-30T12:25:09Z","git_url":"git://github.com/hirefire/hirefire-resource.git","ssh_url":"git@github.com:hirefire/hirefire-resource.git","clone_url":"https://github.com/hirefire/hirefire-resource.git","svn_url":"https://github.com/hirefire/hirefire-resource","homepage":"https://www.hirefire.io","size":375,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":8,"forks":18,"open_issues":8,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/29"},"html":{"href":"https://github.com/hirefire/hirefire-resource/pull/29"},"issue":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/issues/29"},"comments":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/hirefire/hirefire-resource/statuses/c32d5d876628e8dcc540365c24fbfce88bfa401f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"meskyanichi","id":54708,"avatar_url":"https://avatars.githubusercontent.com/u/54708?v=3","gravatar_id":"","url":"https://api.github.com/users/meskyanichi","html_url":"https://github.com/meskyanichi","followers_url":"https://api.github.com/users/meskyanichi/followers","following_url":"https://api.github.com/users/meskyanichi/following{/other_user}","gists_url":"https://api.github.com/users/meskyanichi/gists{/gist_id}","starred_url":"https://api.github.com/users/meskyanichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meskyanichi/subscriptions","organizations_url":"https://api.github.com/users/meskyanichi/orgs","repos_url":"https://api.github.com/users/meskyanichi/repos","events_url":"https://api.github.com/users/meskyanichi/events{/privacy}","received_events_url":"https://api.github.com/users/meskyanichi/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":81,"deletions":1,"changed_files":2}}