{"action":"opened","number":49,"pull_request":{"url":"https://api.github.com/repos/polleverywhere/firehose/pulls/49","id":27469339,"html_url":"https://github.com/polleverywhere/firehose/pull/49","diff_url":"https://github.com/polleverywhere/firehose/pull/49.diff","patch_url":"https://github.com/polleverywhere/firehose/pull/49.patch","issue_url":"https://api.github.com/repos/polleverywhere/firehose/issues/49","number":49,"state":"open","locked":false,"title":"Better return codes","user":{"login":"thoughtless","id":22789,"avatar_url":"https://avatars.githubusercontent.com/u/22789?v=3","gravatar_id":"","url":"https://api.github.com/users/thoughtless","html_url":"https://github.com/thoughtless","followers_url":"https://api.github.com/users/thoughtless/followers","following_url":"https://api.github.com/users/thoughtless/following{/other_user}","gists_url":"https://api.github.com/users/thoughtless/gists{/gist_id}","starred_url":"https://api.github.com/users/thoughtless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thoughtless/subscriptions","organizations_url":"https://api.github.com/users/thoughtless/orgs","repos_url":"https://api.github.com/users/thoughtless/repos","events_url":"https://api.github.com/users/thoughtless/events{/privacy}","received_events_url":"https://api.github.com/users/thoughtless/received_events","type":"User","site_admin":false},"body":"A few semi-related changes.\r\n\r\nReturns a 405 when someone POSTs to an endpoint that only supports GET. Before this an exception would be raised.\r\n\r\nThe other change was needed to make the new tests pass. But it seems to be the \"right\" thing to do anyway.","created_at":"2015-01-15T22:45:01Z","updated_at":"2015-01-15T22:45:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/polleverywhere/firehose/pulls/49/commits","review_comments_url":"https://api.github.com/repos/polleverywhere/firehose/pulls/49/comments","review_comment_url":"https://api.github.com/repos/polleverywhere/firehose/pulls/comments/{number}","comments_url":"https://api.github.com/repos/polleverywhere/firehose/issues/49/comments","statuses_url":"https://api.github.com/repos/polleverywhere/firehose/statuses/5011a3484955f8f6565dceb254c23de5fac0042e","head":{"label":"polleverywhere:method-not-supported","ref":"method-not-supported","sha":"5011a3484955f8f6565dceb254c23de5fac0042e","user":{"login":"polleverywhere","id":362779,"avatar_url":"https://avatars.githubusercontent.com/u/362779?v=3","gravatar_id":"","url":"https://api.github.com/users/polleverywhere","html_url":"https://github.com/polleverywhere","followers_url":"https://api.github.com/users/polleverywhere/followers","following_url":"https://api.github.com/users/polleverywhere/following{/other_user}","gists_url":"https://api.github.com/users/polleverywhere/gists{/gist_id}","starred_url":"https://api.github.com/users/polleverywhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polleverywhere/subscriptions","organizations_url":"https://api.github.com/users/polleverywhere/orgs","repos_url":"https://api.github.com/users/polleverywhere/repos","events_url":"https://api.github.com/users/polleverywhere/events{/privacy}","received_events_url":"https://api.github.com/users/polleverywhere/received_events","type":"Organization","site_admin":false},"repo":{"id":2801924,"name":"firehose","full_name":"polleverywhere/firehose","owner":{"login":"polleverywhere","id":362779,"avatar_url":"https://avatars.githubusercontent.com/u/362779?v=3","gravatar_id":"","url":"https://api.github.com/users/polleverywhere","html_url":"https://github.com/polleverywhere","followers_url":"https://api.github.com/users/polleverywhere/followers","following_url":"https://api.github.com/users/polleverywhere/following{/other_user}","gists_url":"https://api.github.com/users/polleverywhere/gists{/gist_id}","starred_url":"https://api.github.com/users/polleverywhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polleverywhere/subscriptions","organizations_url":"https://api.github.com/users/polleverywhere/orgs","repos_url":"https://api.github.com/users/polleverywhere/repos","events_url":"https://api.github.com/users/polleverywhere/events{/privacy}","received_events_url":"https://api.github.com/users/polleverywhere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/polleverywhere/firehose","description":"Build realtime Ruby web applications","fork":false,"url":"https://api.github.com/repos/polleverywhere/firehose","forks_url":"https://api.github.com/repos/polleverywhere/firehose/forks","keys_url":"https://api.github.com/repos/polleverywhere/firehose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polleverywhere/firehose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polleverywhere/firehose/teams","hooks_url":"https://api.github.com/repos/polleverywhere/firehose/hooks","issue_events_url":"https://api.github.com/repos/polleverywhere/firehose/issues/events{/number}","events_url":"https://api.github.com/repos/polleverywhere/firehose/events","assignees_url":"https://api.github.com/repos/polleverywhere/firehose/assignees{/user}","branches_url":"https://api.github.com/repos/polleverywhere/firehose/branches{/branch}","tags_url":"https://api.github.com/repos/polleverywhere/firehose/tags","blobs_url":"https://api.github.com/repos/polleverywhere/firehose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polleverywhere/firehose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polleverywhere/firehose/git/refs{/sha}","trees_url":"https://api.github.com/repos/polleverywhere/firehose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polleverywhere/firehose/statuses/{sha}","languages_url":"https://api.github.com/repos/polleverywhere/firehose/languages","stargazers_url":"https://api.github.com/repos/polleverywhere/firehose/stargazers","contributors_url":"https://api.github.com/repos/polleverywhere/firehose/contributors","subscribers_url":"https://api.github.com/repos/polleverywhere/firehose/subscribers","subscription_url":"https://api.github.com/repos/polleverywhere/firehose/subscription","commits_url":"https://api.github.com/repos/polleverywhere/firehose/commits{/sha}","git_commits_url":"https://api.github.com/repos/polleverywhere/firehose/git/commits{/sha}","comments_url":"https://api.github.com/repos/polleverywhere/firehose/comments{/number}","issue_comment_url":"https://api.github.com/repos/polleverywhere/firehose/issues/comments/{number}","contents_url":"https://api.github.com/repos/polleverywhere/firehose/contents/{+path}","compare_url":"https://api.github.com/repos/polleverywhere/firehose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polleverywhere/firehose/merges","archive_url":"https://api.github.com/repos/polleverywhere/firehose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polleverywhere/firehose/downloads","issues_url":"https://api.github.com/repos/polleverywhere/firehose/issues{/number}","pulls_url":"https://api.github.com/repos/polleverywhere/firehose/pulls{/number}","milestones_url":"https://api.github.com/repos/polleverywhere/firehose/milestones{/number}","notifications_url":"https://api.github.com/repos/polleverywhere/firehose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polleverywhere/firehose/labels{/name}","releases_url":"https://api.github.com/repos/polleverywhere/firehose/releases{/id}","created_at":"2011-11-18T10:31:18Z","updated_at":"2015-01-12T22:53:28Z","pushed_at":"2015-01-15T22:42:41Z","git_url":"git://github.com/polleverywhere/firehose.git","ssh_url":"git@github.com:polleverywhere/firehose.git","clone_url":"https://github.com/polleverywhere/firehose.git","svn_url":"https://github.com/polleverywhere/firehose","homepage":"","size":2162,"stargazers_count":495,"watchers_count":495,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":9,"forks":41,"open_issues":9,"watchers":495,"default_branch":"master"}},"base":{"label":"polleverywhere:master","ref":"master","sha":"6ee13f9d54740c6e308439b8fa42b4ba336a0957","user":{"login":"polleverywhere","id":362779,"avatar_url":"https://avatars.githubusercontent.com/u/362779?v=3","gravatar_id":"","url":"https://api.github.com/users/polleverywhere","html_url":"https://github.com/polleverywhere","followers_url":"https://api.github.com/users/polleverywhere/followers","following_url":"https://api.github.com/users/polleverywhere/following{/other_user}","gists_url":"https://api.github.com/users/polleverywhere/gists{/gist_id}","starred_url":"https://api.github.com/users/polleverywhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polleverywhere/subscriptions","organizations_url":"https://api.github.com/users/polleverywhere/orgs","repos_url":"https://api.github.com/users/polleverywhere/repos","events_url":"https://api.github.com/users/polleverywhere/events{/privacy}","received_events_url":"https://api.github.com/users/polleverywhere/received_events","type":"Organization","site_admin":false},"repo":{"id":2801924,"name":"firehose","full_name":"polleverywhere/firehose","owner":{"login":"polleverywhere","id":362779,"avatar_url":"https://avatars.githubusercontent.com/u/362779?v=3","gravatar_id":"","url":"https://api.github.com/users/polleverywhere","html_url":"https://github.com/polleverywhere","followers_url":"https://api.github.com/users/polleverywhere/followers","following_url":"https://api.github.com/users/polleverywhere/following{/other_user}","gists_url":"https://api.github.com/users/polleverywhere/gists{/gist_id}","starred_url":"https://api.github.com/users/polleverywhere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polleverywhere/subscriptions","organizations_url":"https://api.github.com/users/polleverywhere/orgs","repos_url":"https://api.github.com/users/polleverywhere/repos","events_url":"https://api.github.com/users/polleverywhere/events{/privacy}","received_events_url":"https://api.github.com/users/polleverywhere/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/polleverywhere/firehose","description":"Build realtime Ruby web applications","fork":false,"url":"https://api.github.com/repos/polleverywhere/firehose","forks_url":"https://api.github.com/repos/polleverywhere/firehose/forks","keys_url":"https://api.github.com/repos/polleverywhere/firehose/keys{/key_id}","collaborators_url":"https://api.github.com/repos/polleverywhere/firehose/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/polleverywhere/firehose/teams","hooks_url":"https://api.github.com/repos/polleverywhere/firehose/hooks","issue_events_url":"https://api.github.com/repos/polleverywhere/firehose/issues/events{/number}","events_url":"https://api.github.com/repos/polleverywhere/firehose/events","assignees_url":"https://api.github.com/repos/polleverywhere/firehose/assignees{/user}","branches_url":"https://api.github.com/repos/polleverywhere/firehose/branches{/branch}","tags_url":"https://api.github.com/repos/polleverywhere/firehose/tags","blobs_url":"https://api.github.com/repos/polleverywhere/firehose/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/polleverywhere/firehose/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/polleverywhere/firehose/git/refs{/sha}","trees_url":"https://api.github.com/repos/polleverywhere/firehose/git/trees{/sha}","statuses_url":"https://api.github.com/repos/polleverywhere/firehose/statuses/{sha}","languages_url":"https://api.github.com/repos/polleverywhere/firehose/languages","stargazers_url":"https://api.github.com/repos/polleverywhere/firehose/stargazers","contributors_url":"https://api.github.com/repos/polleverywhere/firehose/contributors","subscribers_url":"https://api.github.com/repos/polleverywhere/firehose/subscribers","subscription_url":"https://api.github.com/repos/polleverywhere/firehose/subscription","commits_url":"https://api.github.com/repos/polleverywhere/firehose/commits{/sha}","git_commits_url":"https://api.github.com/repos/polleverywhere/firehose/git/commits{/sha}","comments_url":"https://api.github.com/repos/polleverywhere/firehose/comments{/number}","issue_comment_url":"https://api.github.com/repos/polleverywhere/firehose/issues/comments/{number}","contents_url":"https://api.github.com/repos/polleverywhere/firehose/contents/{+path}","compare_url":"https://api.github.com/repos/polleverywhere/firehose/compare/{base}...{head}","merges_url":"https://api.github.com/repos/polleverywhere/firehose/merges","archive_url":"https://api.github.com/repos/polleverywhere/firehose/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/polleverywhere/firehose/downloads","issues_url":"https://api.github.com/repos/polleverywhere/firehose/issues{/number}","pulls_url":"https://api.github.com/repos/polleverywhere/firehose/pulls{/number}","milestones_url":"https://api.github.com/repos/polleverywhere/firehose/milestones{/number}","notifications_url":"https://api.github.com/repos/polleverywhere/firehose/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/polleverywhere/firehose/labels{/name}","releases_url":"https://api.github.com/repos/polleverywhere/firehose/releases{/id}","created_at":"2011-11-18T10:31:18Z","updated_at":"2015-01-12T22:53:28Z","pushed_at":"2015-01-15T22:42:41Z","git_url":"git://github.com/polleverywhere/firehose.git","ssh_url":"git@github.com:polleverywhere/firehose.git","clone_url":"https://github.com/polleverywhere/firehose.git","svn_url":"https://github.com/polleverywhere/firehose","homepage":"","size":2162,"stargazers_count":495,"watchers_count":495,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":41,"mirror_url":null,"open_issues_count":9,"forks":41,"open_issues":9,"watchers":495,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/polleverywhere/firehose/pulls/49"},"html":{"href":"https://github.com/polleverywhere/firehose/pull/49"},"issue":{"href":"https://api.github.com/repos/polleverywhere/firehose/issues/49"},"comments":{"href":"https://api.github.com/repos/polleverywhere/firehose/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/polleverywhere/firehose/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/polleverywhere/firehose/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/polleverywhere/firehose/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/polleverywhere/firehose/statuses/5011a3484955f8f6565dceb254c23de5fac0042e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":24,"deletions":5,"changed_files":3}}