{"action":"created","issue":{"url":"https://api.github.com/repos/crohr/rest-client-components/issues/14","repository_url":"https://api.github.com/repos/crohr/rest-client-components","labels_url":"https://api.github.com/repos/crohr/rest-client-components/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/crohr/rest-client-components/issues/14/comments","events_url":"https://api.github.com/repos/crohr/rest-client-components/issues/14/events","html_url":"https://github.com/crohr/rest-client-components/pull/14","id":167460703,"number":14,"title":"Compatibility with RestClient 2.0","user":{"login":"amatriain","id":1439986,"avatar_url":"https://avatars1.githubusercontent.com/u/1439986?v=4","gravatar_id":"","url":"https://api.github.com/users/amatriain","html_url":"https://github.com/amatriain","followers_url":"https://api.github.com/users/amatriain/followers","following_url":"https://api.github.com/users/amatriain/following{/other_user}","gists_url":"https://api.github.com/users/amatriain/gists{/gist_id}","starred_url":"https://api.github.com/users/amatriain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amatriain/subscriptions","organizations_url":"https://api.github.com/users/amatriain/orgs","repos_url":"https://api.github.com/users/amatriain/repos","events_url":"https://api.github.com/users/amatriain/events{/privacy}","received_events_url":"https://api.github.com/users/amatriain/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-25T20:43:06Z","updated_at":"2017-10-02T16:50:47Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/crohr/rest-client-components/pulls/14","html_url":"https://github.com/crohr/rest-client-components/pull/14","diff_url":"https://github.com/crohr/rest-client-components/pull/14.diff","patch_url":"https://github.com/crohr/rest-client-components/pull/14.patch"},"body":"Fixes https://github.com/crohr/rest-client-components/issues/13\n\nRestClient 2.0 has added a '#history' method to RestClient::Response and a '#redirection_history' method to RestClient::Request, to keep track of redirection chains (see https://github.com/rest-client/rest-client/commit/5e5fcd95808c288118a7b28d5e25a44ec709c62f). RestClient::Rack::Compatiblity, from rest-client-components, was passing an empty Hash to the 'request' argument of RestClient::Response.create, which raises a NoMethodError when RestClient attempts to invoke the 'redirection_history' method on the Hash object.\n\nThe fix is to pass the original request object to RestClient::Response.create. As far as I can see there was no reason to pass an empty hash instead of the actual request object.\n"},"comment":{"url":"https://api.github.com/repos/crohr/rest-client-components/issues/comments/333594189","html_url":"https://github.com/crohr/rest-client-components/pull/14#issuecomment-333594189","issue_url":"https://api.github.com/repos/crohr/rest-client-components/issues/14","id":333594189,"user":{"login":"scytherswings","id":11652222,"avatar_url":"https://avatars0.githubusercontent.com/u/11652222?v=4","gravatar_id":"","url":"https://api.github.com/users/scytherswings","html_url":"https://github.com/scytherswings","followers_url":"https://api.github.com/users/scytherswings/followers","following_url":"https://api.github.com/users/scytherswings/following{/other_user}","gists_url":"https://api.github.com/users/scytherswings/gists{/gist_id}","starred_url":"https://api.github.com/users/scytherswings/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scytherswings/subscriptions","organizations_url":"https://api.github.com/users/scytherswings/orgs","repos_url":"https://api.github.com/users/scytherswings/repos","events_url":"https://api.github.com/users/scytherswings/events{/privacy}","received_events_url":"https://api.github.com/users/scytherswings/received_events","type":"User","site_admin":false},"created_at":"2017-10-02T16:50:47Z","updated_at":"2017-10-02T16:50:47Z","author_association":"NONE","body":"@crohr Any chance we can get this merged?"}}
{"actor":{"display_login":"scytherswings"}}