Luke_F
August 29, 2010, 5:26am
1
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]
fixes JRUBY-4800: Digest::Class.digest should accept a variable numbe… · jruby/jruby@63d2150 · GitHub http://github.com/jruby/jruby/commit/63d2150ff4d9c6f47bf189ff68732b0a72a9232a#diff-0
Luke_F
August 29, 2010, 5:42am
2
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™ 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:”
Luke_F
August 29, 2010, 6:01am
3
Hi,
On Sun, Aug 29, 2010 at 12:42, Hirotsugu A. [email protected]
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™ 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