{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/6","id":31678456,"html_url":"https://github.com/SabreDevStudio/sabre_dev_studio/pull/6","diff_url":"https://github.com/SabreDevStudio/sabre_dev_studio/pull/6.diff","patch_url":"https://github.com/SabreDevStudio/sabre_dev_studio/pull/6.patch","issue_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues/6","number":6,"state":"open","locked":false,"title":"Reraise Uauthorized Exception","user":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"body":"If your client secret is incorrect, this rescue block swallows the exception and the user is presented with no error to explain the problem. I think you meant to reraise it. I could not find a relevant test.\r\n\r\n## TESTING\r\n\r\n* Incorrectly set your client secret\r\n* Try to call the api, for example:\r\n```ruby\r\nSabreDevStudio::Base.get('/v1/shop/themes')\r\n```\r\n* You should see the unauthorized exception again","created_at":"2015-03-21T21:32:24Z","updated_at":"2015-03-21T21:32:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/6/commits","review_comments_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/6/comments","review_comment_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues/6/comments","statuses_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/statuses/183c796352b29669d523080e41c9f52280d8040e","head":{"label":"bhelx:reraise_unauthorized_exception","ref":"reraise_unauthorized_exception","sha":"183c796352b29669d523080e41c9f52280d8040e","user":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"repo":{"id":32650624,"name":"sabre_dev_studio","full_name":"bhelx/sabre_dev_studio","owner":{"login":"bhelx","id":185919,"avatar_url":"https://avatars.githubusercontent.com/u/185919?v=3","gravatar_id":"","url":"https://api.github.com/users/bhelx","html_url":"https://github.com/bhelx","followers_url":"https://api.github.com/users/bhelx/followers","following_url":"https://api.github.com/users/bhelx/following{/other_user}","gists_url":"https://api.github.com/users/bhelx/gists{/gist_id}","starred_url":"https://api.github.com/users/bhelx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhelx/subscriptions","organizations_url":"https://api.github.com/users/bhelx/orgs","repos_url":"https://api.github.com/users/bhelx/repos","events_url":"https://api.github.com/users/bhelx/events{/privacy}","received_events_url":"https://api.github.com/users/bhelx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bhelx/sabre_dev_studio","description":"Ruby gem to access the Sabre Dev Studio API.  This is the base gem for other API gems, like sabre_dev_studio-flight.","fork":true,"url":"https://api.github.com/repos/bhelx/sabre_dev_studio","forks_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/forks","keys_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/teams","hooks_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/hooks","issue_events_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/issues/events{/number}","events_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/events","assignees_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/assignees{/user}","branches_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/branches{/branch}","tags_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/tags","blobs_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/statuses/{sha}","languages_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/languages","stargazers_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/stargazers","contributors_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/contributors","subscribers_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/subscribers","subscription_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/subscription","commits_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/contents/{+path}","compare_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/merges","archive_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/downloads","issues_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/issues{/number}","pulls_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/pulls{/number}","milestones_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/milestones{/number}","notifications_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/labels{/name}","releases_url":"https://api.github.com/repos/bhelx/sabre_dev_studio/releases{/id}","created_at":"2015-03-21T21:25:40Z","updated_at":"2015-03-21T21:25:41Z","pushed_at":"2015-03-21T21:28:56Z","git_url":"git://github.com/bhelx/sabre_dev_studio.git","ssh_url":"git@github.com:bhelx/sabre_dev_studio.git","clone_url":"https://github.com/bhelx/sabre_dev_studio.git","svn_url":"https://github.com/bhelx/sabre_dev_studio","homepage":null,"size":293,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"SabreDevStudio:master","ref":"master","sha":"21746782d58686f9ee4261ac4566bc90817b59bb","user":{"login":"SabreDevStudio","id":7505564,"avatar_url":"https://avatars.githubusercontent.com/u/7505564?v=3","gravatar_id":"","url":"https://api.github.com/users/SabreDevStudio","html_url":"https://github.com/SabreDevStudio","followers_url":"https://api.github.com/users/SabreDevStudio/followers","following_url":"https://api.github.com/users/SabreDevStudio/following{/other_user}","gists_url":"https://api.github.com/users/SabreDevStudio/gists{/gist_id}","starred_url":"https://api.github.com/users/SabreDevStudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabreDevStudio/subscriptions","organizations_url":"https://api.github.com/users/SabreDevStudio/orgs","repos_url":"https://api.github.com/users/SabreDevStudio/repos","events_url":"https://api.github.com/users/SabreDevStudio/events{/privacy}","received_events_url":"https://api.github.com/users/SabreDevStudio/received_events","type":"Organization","site_admin":false},"repo":{"id":19834594,"name":"sabre_dev_studio","full_name":"SabreDevStudio/sabre_dev_studio","owner":{"login":"SabreDevStudio","id":7505564,"avatar_url":"https://avatars.githubusercontent.com/u/7505564?v=3","gravatar_id":"","url":"https://api.github.com/users/SabreDevStudio","html_url":"https://github.com/SabreDevStudio","followers_url":"https://api.github.com/users/SabreDevStudio/followers","following_url":"https://api.github.com/users/SabreDevStudio/following{/other_user}","gists_url":"https://api.github.com/users/SabreDevStudio/gists{/gist_id}","starred_url":"https://api.github.com/users/SabreDevStudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SabreDevStudio/subscriptions","organizations_url":"https://api.github.com/users/SabreDevStudio/orgs","repos_url":"https://api.github.com/users/SabreDevStudio/repos","events_url":"https://api.github.com/users/SabreDevStudio/events{/privacy}","received_events_url":"https://api.github.com/users/SabreDevStudio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SabreDevStudio/sabre_dev_studio","description":"Ruby gem to access the Sabre Dev Studio API.  This is the base gem for other API gems, like sabre_dev_studio-flight.","fork":false,"url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio","forks_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/forks","keys_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/teams","hooks_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/hooks","issue_events_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues/events{/number}","events_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/events","assignees_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/assignees{/user}","branches_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/branches{/branch}","tags_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/tags","blobs_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/git/refs{/sha}","trees_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/statuses/{sha}","languages_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/languages","stargazers_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/stargazers","contributors_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/contributors","subscribers_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/subscribers","subscription_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/subscription","commits_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/commits{/sha}","git_commits_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/git/commits{/sha}","comments_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/comments{/number}","issue_comment_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues/comments{/number}","contents_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/contents/{+path}","compare_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/merges","archive_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/downloads","issues_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues{/number}","pulls_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls{/number}","milestones_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/milestones{/number}","notifications_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/labels{/name}","releases_url":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/releases{/id}","created_at":"2014-05-15T20:43:25Z","updated_at":"2015-02-22T10:39:07Z","pushed_at":"2014-08-14T21:47:29Z","git_url":"git://github.com/SabreDevStudio/sabre_dev_studio.git","ssh_url":"git@github.com:SabreDevStudio/sabre_dev_studio.git","clone_url":"https://github.com/SabreDevStudio/sabre_dev_studio.git","svn_url":"https://github.com/SabreDevStudio/sabre_dev_studio","homepage":null,"size":293,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/6"},"html":{"href":"https://github.com/SabreDevStudio/sabre_dev_studio/pull/6"},"issue":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues/6"},"comments":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/SabreDevStudio/sabre_dev_studio/statuses/183c796352b29669d523080e41c9f52280d8040e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":0,"changed_files":1}}