Skip to content

First version of reverse oauth#454

Merged
sferik merged 5 commits intosferik:masterfrom
ys:reverse_auth
Sep 29, 2013
Merged

First version of reverse oauth#454
sferik merged 5 commits intosferik:masterfrom
ys:reverse_auth

Conversation

@ys
Copy link
Contributor

@ys ys commented Sep 25, 2013

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...

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to put this in its own module vs. adding it to the Twitter::REST::API::OAuth module?

@ys
Copy link
Contributor Author

ys commented Sep 25, 2013

Not really, at the beginning it was a lot noisier:)
I Will refactor that

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use Ruby 1.8.7-compatible hash syntax.

@sferik
Copy link
Owner

sferik commented Sep 29, 2013

Are you planning to do any more work on this or should I merge it as-is and clean up the specs myself?

@ys
Copy link
Contributor Author

ys commented Sep 29, 2013

I plane to do it soon! Sorry it has been a very busy month!

Yannick

On 29 Sep 2013, at 15:23, Erik Michaels-Ober notifications@github.com wrote:

Are you planning to do any more work on this or should I merge it as-is and clean up the specs myself?


Reply to this email directly or view it on GitHub.

@ys
Copy link
Contributor Author

ys commented Sep 29, 2013

Will try to do it tonight!

Yannick

On 29 Sep 2013, at 15:23, Erik Michaels-Ober notifications@github.com wrote:

Are you planning to do any more work on this or should I merge it as-is and clean up the specs myself?


Reply to this email directly or view it on GitHub.

@sferik
Copy link
Owner

sferik commented Sep 29, 2013

Awesome!

@ys
Copy link
Contributor Author

ys commented Sep 29, 2013

New specs and error parser for twitter error responses only

@coveralls
Copy link

Coverage Status

Coverage increased (+0.17%) when pulling 7b9c3ea on ys:reverse_auth into da2280f on sferik:master.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class could inherit from Twitter::REST::Response::ParseJson and just overwrite #on_complete, no?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
  •  class ParseErrorJson < Faraday::Response::Middleware
    
    This class could inherit from Twitter::REST::Response::ParseJson and just overwrite #on_complete, no?


Reply to this email directly or view it on GitHub.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) when pulling 6b3cf22 on ys:reverse_auth into da2280f on sferik:master.

@sferik
Copy link
Owner

sferik commented Sep 29, 2013

Looks good now. Planning to ship 5.0.0.rc.2 shortly.

sferik added a commit that referenced this pull request Sep 29, 2013
First version of reverse oauth
@sferik sferik merged commit 24092d9 into sferik:master Sep 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants