Hi,
I am trying to get an application running on Google App Engine. I'm
hitting
a stumbling block with the OAuth gem.
Minimal steps to reproduce:
require 'rubygems'
require 'oauth'
Digest::HMAC.digest("foo", "bar", ::Digest::SHA1)
With JRuby (tried 1.5.1 and 1.5.2, installed via rvm, and 1.5.2
downloaded
from the website) I get:
ArgumentError: wrong # of arguments(3 for 2)
from (irb):5
It works in ruby 1.8.7 p302
This problem was fixed back in May [1,2,3] but apparently not for me...
Thanks,
Luke
[1]
http://groups.google.com/group/oauth-ruby/browse_thread/thread/6ef29667980c9dd8
[2] http://jira.codehaus.org/browse/JRUBY-4800
[3]
http://github.com/jruby/jruby/commit/63d2150ff4d9c6f47bf189ff68732b0a72a9232a<http://github.com/jruby/jruby/commit/63d2150ff4d9c6f47bf189ff68732b0a72a9232a#diff-0>
on 2010-08-29 05:26
on 2010-08-29 05:42
This is a known issue (http://jira.codehaus.org/browse/JRUBY-5024) fixed
in trunk.
$ jruby -v -e 'require "rubygems"; require "oauth"; p
Digest::HMAC.digest("foo", "bar", ::Digest::SHA1)'
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-08-28 1563a52) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
"\205\321U\305^\322\206\243\000\275\034\361$\336\b\330~\221O:"
on 2010-08-29 06:01
Hi, On Sun, Aug 29, 2010 at 12:42, Hirotsugu Asari <asari.ruby@gmail.com> wrote: > This is a known issue (http://jira.codehaus.org/browse/JRUBY-5024) fixed in > trunk. > $ jruby -v -e 'require "rubygems"; require "oauth"; p > Digest::HMAC.digest("foo", "bar", ::Digest::SHA1)' > jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-08-28 1563a52) (Java > HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java] > "\205\321U\305^\322\206\243\000\275\034\361$\336\b\330~\221O:" I think it's the same as http://jira.codehaus.org/browse/JRUBY-4800 Thanks David. Regards, // NaHi --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.