Conversation
lib/twitter/rest/api/reverse_auth.rb
Outdated
There was a problem hiding this comment.
Any particular reason to put this in its own module vs. adding it to the Twitter::REST::API::OAuth module?
|
Not really, at the beginning it was a lot noisier:) |
lib/twitter/rest/api/reverse_auth.rb
Outdated
There was a problem hiding this comment.
Please use Ruby 1.8.7-compatible hash syntax.
|
Are you planning to do any more work on this or should I merge it as-is and clean up the specs myself? |
|
I plane to do it soon! Sorry it has been a very busy month! Yannick
|
|
Will try to do it tonight! Yannick
|
|
Awesome! |
|
New specs and error parser for twitter error responses only |
There was a problem hiding this comment.
This class could inherit from Twitter::REST::Response::ParseJson and just overwrite #on_complete, no?
There was a problem hiding this comment.
Yep better idea!
Yannick
On 29 Sep 2013, at 21:44, Erik Michaels-Ober notifications@github.com wrote:
In lib/twitter/rest/response/parse_error_json.rb:
@@ -0,0 +1,27 @@
+require 'faraday'
+require 'json'
+
+module Twitter
- module REST
- module Response
This class could inherit from Twitter::REST::Response::ParseJson and just overwrite #on_complete, no?class ParseErrorJson < Faraday::Response::Middleware—
Reply to this email directly or view it on GitHub.
|
Looks good now. Planning to ship 5.0.0.rc.2 shortly. |
Still a lot to do.
I made it like a cowboy.
Now I need to clean that up, and test it.
The problem also is that it's not json unless for the errors...