{"action":"opened","number":444,"pull_request":{"url":"https://api.github.com/repos/jnunemaker/httparty/pulls/444","id":50021515,"html_url":"https://github.com/jnunemaker/httparty/pull/444","diff_url":"https://github.com/jnunemaker/httparty/pull/444.diff","patch_url":"https://github.com/jnunemaker/httparty/pull/444.patch","issue_url":"https://api.github.com/repos/jnunemaker/httparty/issues/444","number":444,"state":"open","locked":false,"title":"Implement is_a? and kind_of? in httparty response","user":{"login":"JonMidhir","id":39089,"avatar_url":"https://avatars.githubusercontent.com/u/39089?v=3","gravatar_id":"","url":"https://api.github.com/users/JonMidhir","html_url":"https://github.com/JonMidhir","followers_url":"https://api.github.com/users/JonMidhir/followers","following_url":"https://api.github.com/users/JonMidhir/following{/other_user}","gists_url":"https://api.github.com/users/JonMidhir/gists{/gist_id}","starred_url":"https://api.github.com/users/JonMidhir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonMidhir/subscriptions","organizations_url":"https://api.github.com/users/JonMidhir/orgs","repos_url":"https://api.github.com/users/JonMidhir/repos","events_url":"https://api.github.com/users/JonMidhir/events{/privacy}","received_events_url":"https://api.github.com/users/JonMidhir/received_events","type":"User","site_admin":false},"body":"Fixes a step definition that appeared to check response type against a user defined class but actually always checked against String.\r\n\r\nAdds support for `is_a?` and `kind_of?` to the `HTTParty::Response` object and uses the fixed step definition to test the implementation.\r\n\r\nPreviously these were delegated to the `parsed_response` object, which led to unpredictable behaviour; such as:\r\n\r\n```ruby\r\nresponse.class == HTTParty::Response #true\r\n\r\nresponse.is_a?(HTTParty::Response) # false\r\n```","created_at":"2015-11-07T00:30:45Z","updated_at":"2015-11-07T00:30:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d78bb52f658ef14f582577584b5329bca978d3b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jnunemaker/httparty/pulls/444/commits","review_comments_url":"https://api.github.com/repos/jnunemaker/httparty/pulls/444/comments","review_comment_url":"https://api.github.com/repos/jnunemaker/httparty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jnunemaker/httparty/issues/444/comments","statuses_url":"https://api.github.com/repos/jnunemaker/httparty/statuses/c4a031d70d09a5d1dff7661ad71030bddbcf6e71","head":{"label":"JonMidhir:implement_is_a_in_httparty_response","ref":"implement_is_a_in_httparty_response","sha":"c4a031d70d09a5d1dff7661ad71030bddbcf6e71","user":{"login":"JonMidhir","id":39089,"avatar_url":"https://avatars.githubusercontent.com/u/39089?v=3","gravatar_id":"","url":"https://api.github.com/users/JonMidhir","html_url":"https://github.com/JonMidhir","followers_url":"https://api.github.com/users/JonMidhir/followers","following_url":"https://api.github.com/users/JonMidhir/following{/other_user}","gists_url":"https://api.github.com/users/JonMidhir/gists{/gist_id}","starred_url":"https://api.github.com/users/JonMidhir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonMidhir/subscriptions","organizations_url":"https://api.github.com/users/JonMidhir/orgs","repos_url":"https://api.github.com/users/JonMidhir/repos","events_url":"https://api.github.com/users/JonMidhir/events{/privacy}","received_events_url":"https://api.github.com/users/JonMidhir/received_events","type":"User","site_admin":false},"repo":{"id":45642002,"name":"httparty","full_name":"JonMidhir/httparty","owner":{"login":"JonMidhir","id":39089,"avatar_url":"https://avatars.githubusercontent.com/u/39089?v=3","gravatar_id":"","url":"https://api.github.com/users/JonMidhir","html_url":"https://github.com/JonMidhir","followers_url":"https://api.github.com/users/JonMidhir/followers","following_url":"https://api.github.com/users/JonMidhir/following{/other_user}","gists_url":"https://api.github.com/users/JonMidhir/gists{/gist_id}","starred_url":"https://api.github.com/users/JonMidhir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JonMidhir/subscriptions","organizations_url":"https://api.github.com/users/JonMidhir/orgs","repos_url":"https://api.github.com/users/JonMidhir/repos","events_url":"https://api.github.com/users/JonMidhir/events{/privacy}","received_events_url":"https://api.github.com/users/JonMidhir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JonMidhir/httparty","description":"Makes http fun again!","fork":true,"url":"https://api.github.com/repos/JonMidhir/httparty","forks_url":"https://api.github.com/repos/JonMidhir/httparty/forks","keys_url":"https://api.github.com/repos/JonMidhir/httparty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JonMidhir/httparty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JonMidhir/httparty/teams","hooks_url":"https://api.github.com/repos/JonMidhir/httparty/hooks","issue_events_url":"https://api.github.com/repos/JonMidhir/httparty/issues/events{/number}","events_url":"https://api.github.com/repos/JonMidhir/httparty/events","assignees_url":"https://api.github.com/repos/JonMidhir/httparty/assignees{/user}","branches_url":"https://api.github.com/repos/JonMidhir/httparty/branches{/branch}","tags_url":"https://api.github.com/repos/JonMidhir/httparty/tags","blobs_url":"https://api.github.com/repos/JonMidhir/httparty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JonMidhir/httparty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JonMidhir/httparty/git/refs{/sha}","trees_url":"https://api.github.com/repos/JonMidhir/httparty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JonMidhir/httparty/statuses/{sha}","languages_url":"https://api.github.com/repos/JonMidhir/httparty/languages","stargazers_url":"https://api.github.com/repos/JonMidhir/httparty/stargazers","contributors_url":"https://api.github.com/repos/JonMidhir/httparty/contributors","subscribers_url":"https://api.github.com/repos/JonMidhir/httparty/subscribers","subscription_url":"https://api.github.com/repos/JonMidhir/httparty/subscription","commits_url":"https://api.github.com/repos/JonMidhir/httparty/commits{/sha}","git_commits_url":"https://api.github.com/repos/JonMidhir/httparty/git/commits{/sha}","comments_url":"https://api.github.com/repos/JonMidhir/httparty/comments{/number}","issue_comment_url":"https://api.github.com/repos/JonMidhir/httparty/issues/comments{/number}","contents_url":"https://api.github.com/repos/JonMidhir/httparty/contents/{+path}","compare_url":"https://api.github.com/repos/JonMidhir/httparty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JonMidhir/httparty/merges","archive_url":"https://api.github.com/repos/JonMidhir/httparty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JonMidhir/httparty/downloads","issues_url":"https://api.github.com/repos/JonMidhir/httparty/issues{/number}","pulls_url":"https://api.github.com/repos/JonMidhir/httparty/pulls{/number}","milestones_url":"https://api.github.com/repos/JonMidhir/httparty/milestones{/number}","notifications_url":"https://api.github.com/repos/JonMidhir/httparty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JonMidhir/httparty/labels{/name}","releases_url":"https://api.github.com/repos/JonMidhir/httparty/releases{/id}","created_at":"2015-11-05T21:56:53Z","updated_at":"2015-11-05T21:56:54Z","pushed_at":"2015-11-06T00:22:48Z","git_url":"git://github.com/JonMidhir/httparty.git","ssh_url":"git@github.com:JonMidhir/httparty.git","clone_url":"https://github.com/JonMidhir/httparty.git","svn_url":"https://github.com/JonMidhir/httparty","homepage":"http://jnunemaker.github.com/httparty","size":1333,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jnunemaker:master","ref":"master","sha":"ae7d2cff123b8d33bac6778ce708b4fe5b284b85","user":{"login":"jnunemaker","id":235,"avatar_url":"https://avatars.githubusercontent.com/u/235?v=3","gravatar_id":"","url":"https://api.github.com/users/jnunemaker","html_url":"https://github.com/jnunemaker","followers_url":"https://api.github.com/users/jnunemaker/followers","following_url":"https://api.github.com/users/jnunemaker/following{/other_user}","gists_url":"https://api.github.com/users/jnunemaker/gists{/gist_id}","starred_url":"https://api.github.com/users/jnunemaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnunemaker/subscriptions","organizations_url":"https://api.github.com/users/jnunemaker/orgs","repos_url":"https://api.github.com/users/jnunemaker/repos","events_url":"https://api.github.com/users/jnunemaker/events{/privacy}","received_events_url":"https://api.github.com/users/jnunemaker/received_events","type":"User","site_admin":true},"repo":{"id":37997,"name":"httparty","full_name":"jnunemaker/httparty","owner":{"login":"jnunemaker","id":235,"avatar_url":"https://avatars.githubusercontent.com/u/235?v=3","gravatar_id":"","url":"https://api.github.com/users/jnunemaker","html_url":"https://github.com/jnunemaker","followers_url":"https://api.github.com/users/jnunemaker/followers","following_url":"https://api.github.com/users/jnunemaker/following{/other_user}","gists_url":"https://api.github.com/users/jnunemaker/gists{/gist_id}","starred_url":"https://api.github.com/users/jnunemaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnunemaker/subscriptions","organizations_url":"https://api.github.com/users/jnunemaker/orgs","repos_url":"https://api.github.com/users/jnunemaker/repos","events_url":"https://api.github.com/users/jnunemaker/events{/privacy}","received_events_url":"https://api.github.com/users/jnunemaker/received_events","type":"User","site_admin":true},"private":false,"html_url":"https://github.com/jnunemaker/httparty","description":"Makes http fun again!","fork":false,"url":"https://api.github.com/repos/jnunemaker/httparty","forks_url":"https://api.github.com/repos/jnunemaker/httparty/forks","keys_url":"https://api.github.com/repos/jnunemaker/httparty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jnunemaker/httparty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jnunemaker/httparty/teams","hooks_url":"https://api.github.com/repos/jnunemaker/httparty/hooks","issue_events_url":"https://api.github.com/repos/jnunemaker/httparty/issues/events{/number}","events_url":"https://api.github.com/repos/jnunemaker/httparty/events","assignees_url":"https://api.github.com/repos/jnunemaker/httparty/assignees{/user}","branches_url":"https://api.github.com/repos/jnunemaker/httparty/branches{/branch}","tags_url":"https://api.github.com/repos/jnunemaker/httparty/tags","blobs_url":"https://api.github.com/repos/jnunemaker/httparty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jnunemaker/httparty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jnunemaker/httparty/git/refs{/sha}","trees_url":"https://api.github.com/repos/jnunemaker/httparty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jnunemaker/httparty/statuses/{sha}","languages_url":"https://api.github.com/repos/jnunemaker/httparty/languages","stargazers_url":"https://api.github.com/repos/jnunemaker/httparty/stargazers","contributors_url":"https://api.github.com/repos/jnunemaker/httparty/contributors","subscribers_url":"https://api.github.com/repos/jnunemaker/httparty/subscribers","subscription_url":"https://api.github.com/repos/jnunemaker/httparty/subscription","commits_url":"https://api.github.com/repos/jnunemaker/httparty/commits{/sha}","git_commits_url":"https://api.github.com/repos/jnunemaker/httparty/git/commits{/sha}","comments_url":"https://api.github.com/repos/jnunemaker/httparty/comments{/number}","issue_comment_url":"https://api.github.com/repos/jnunemaker/httparty/issues/comments{/number}","contents_url":"https://api.github.com/repos/jnunemaker/httparty/contents/{+path}","compare_url":"https://api.github.com/repos/jnunemaker/httparty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jnunemaker/httparty/merges","archive_url":"https://api.github.com/repos/jnunemaker/httparty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jnunemaker/httparty/downloads","issues_url":"https://api.github.com/repos/jnunemaker/httparty/issues{/number}","pulls_url":"https://api.github.com/repos/jnunemaker/httparty/pulls{/number}","milestones_url":"https://api.github.com/repos/jnunemaker/httparty/milestones{/number}","notifications_url":"https://api.github.com/repos/jnunemaker/httparty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jnunemaker/httparty/labels{/name}","releases_url":"https://api.github.com/repos/jnunemaker/httparty/releases{/id}","created_at":"2008-07-28T20:55:11Z","updated_at":"2015-11-06T22:03:32Z","pushed_at":"2015-11-07T00:30:45Z","git_url":"git://github.com/jnunemaker/httparty.git","ssh_url":"git@github.com:jnunemaker/httparty.git","clone_url":"https://github.com/jnunemaker/httparty.git","svn_url":"https://github.com/jnunemaker/httparty","homepage":"http://jnunemaker.github.com/httparty","size":2655,"stargazers_count":3344,"watchers_count":3344,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":530,"mirror_url":null,"open_issues_count":27,"forks":530,"open_issues":27,"watchers":3344,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jnunemaker/httparty/pulls/444"},"html":{"href":"https://github.com/jnunemaker/httparty/pull/444"},"issue":{"href":"https://api.github.com/repos/jnunemaker/httparty/issues/444"},"comments":{"href":"https://api.github.com/repos/jnunemaker/httparty/issues/444/comments"},"review_comments":{"href":"https://api.github.com/repos/jnunemaker/httparty/pulls/444/comments"},"review_comment":{"href":"https://api.github.com/repos/jnunemaker/httparty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jnunemaker/httparty/pulls/444/commits"},"statuses":{"href":"https://api.github.com/repos/jnunemaker/httparty/statuses/c4a031d70d09a5d1dff7661ad71030bddbcf6e71"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":28,"deletions":4,"changed_files":3}}