Is the 0.3.6 version of the gem supposed to be compatible with Ruby
1.9?
I just tried to use the gem via the oauth rails plugin, with 1.9 and
I'm getting this:
You have a nil object when you didn't expect it!
The error occurred while evaluating nil.reset_key
RAILS_ROOT: /Users/rick/fifthrail/relevance_legalpm
Application Trace | Framework Trace | Full Trace
/Users/rick/.rvm/gems/ruby/1.9.1/gems/ruby-hmac-0.3.2/lib/hmac.rb:
101:in `ensure in digest'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/ruby-hmac-0.3.2/lib/hmac.rb:
101:in `digest'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/signature/
hmac/base.rb:9:in `digest'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/signature/
base.rb:54:in `signature'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/
signature.rb:20:in `sign'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/client/
helper.rb:44:in `signature'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/client/
helper.rb:67:in `header'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/client/
net_http.rb:80:in `set_oauth_header'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/client/
net_http.rb:35:in `oauth!'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/
consumer.rb:208:in `sign!'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/
consumer.rb:177:in `create_signed_request'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/
consumer.rb:149:in `request'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/
consumer.rb:183:in `token_request'
/Users/rick/.rvm/gems/ruby/1.9.1/gems/oauth-0.3.6/lib/oauth/
consumer.rb:128:in `get_request_token'
/Users/rick/fifthrail/relevance_legalpm/vendor/plugins/oauth-plugin/
lib/oauth/models/consumers/token.rb:30:in `get_request_token'
/Users/rick/fifthrail/relevance_legalpm/vendor/plugins/oauth-plugin/
lib/oauth/controllers/consumer_controller.rb:23:in `show'
Which seems to be related to this thread.
Do I need to pull down a particular git branch and build my own gem
or...
Thanks in advance.
The next version has yet to be released - but you can grab a (1.9)
working copy here:
http://github.com/quirkey/oauth/tree/19merge
Its also working on jeweler, so If you need it as a gem, cd into the
checked-out or downloaded copy and run:
rake install
Hope that helps,
--AQ
Aaron Quint
http://www.quirkey.com
I downloaded the version you mentioned working on 1.9 , cd into the
folder, rake install.
i then tried to gem install oauth.gem --local
that didn't make it work
i then copied the gem folder to ruby/gems/1.9.1/gems/oauth-0.3.6/
now the gem should be working, i open the irb , require 'oauth'
returns true.
but my application still gives the same error.
any advice if this can be working on ruby 1.9.1 ????
Thanks,
On Jan 1, 12:39 am, Aaron Quint <aa...@quirkey.com> wrote:
> Hey Rick
>
> The next version has yet to be released - but you can grab a (1.9)
> working copy here:http://github.com/quirkey/oauth/tree/19merge
> Its also working on jeweler, so If you need it as a gem, cd into the
> checked-out or downloaded copy and run:
> rake install
>
> Hope that helps,
> --AQ
>
> Aaron Quinthttp://www.quirkey.com
Did you download that specific branch? quirkey/master is not working
on 1.9, only quirkey/19merge.
rake install should also do the full gem install locally since it uses jeweler.
--AQ
Aaron Quint
http://www.quirkey.com
On Feb 4, 5:06 pm, Aaron Quint <aa...@quirkey.com> wrote:
> Hey Alfred
>
> Did you download that specific branch? quirkey/master is not working
> on 1.9, only quirkey/19merge.
> rake install should also do the full gem install locally since it uses jeweler.
> --AQ
>
> Aaron Quinthttp://www.quirkey.com
it is finally working,
Good work
Thanks
On Feb 4, 5:06 pm, Aaron Quint <aa...@quirkey.com> wrote:
> Hey Alfred
>
> Did you download that specific branch? quirkey/master is not working
> on 1.9, only quirkey/19merge.
> rake install should also do the full gem install locally since it uses jeweler.
> --AQ
>
> Aaron Quinthttp://www.quirkey.com
Aaron Quint
http://www.quirkey.com
seth