[MacRuby] #1262: Rack error calling [] in Faraday via the Octokit gem
MacRuby
ruby-noreply at macosforge.org
Thu May 5 13:21:35 PDT 2011
#1262: Rack error calling [] in Faraday via the Octokit gem
------------------------------+---------------------------------------------
Reporter: sferik@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone: MacRuby 0.11
Component: MacRuby | Keywords: github, octokit, rack, hubcap
------------------------------+---------------------------------------------
I'm getting the following error running this simple script in MacRuby
0.10:
{{{
require 'rubygems'
require 'octokit'
puts Octokit.user('sferik')
}}}
{{{
/Users/erik/.rvm/gems/macruby-0.10/gems/rack-1.2.2/lib/rack/utils.rb:in
`[]:': undefined method `[]' for nil:NilClass (NoMethodError)
from
/Users/erik/.rvm/gems/macruby-0.10/gems/faraday-0.6.1/lib/faraday/utils.rb:22:in
`[]:'
from
/Users/erik/.rvm/gems/macruby-0.10/gems/faraday-0.6.1/lib/faraday/request/url_encoded.rb:18:in
`match_content_type:'
from /Users/erik/get_user.rb:4:in `<main>'
}}}
I've tried using rack 1.3.0.beta instead of 1.2.2 but I get the same
error. This script works as expected on MRI 1.9.1p378 and 1.9.2p180 (also
on MRI 1.8.7p334, JRuby 1.6.1, and Rubinius 1.2.3).
In addition to the error. Simply requiring octokit (line 2) is extremely
slow. On my machine with a 2.8 GHz Intel Core 2 Duo processor, running
just the first two lines of the script takes 2 minutes and 20 seconds!
I would love to be able to use the Octokit gem in the next release of
MacRuby. Please let me know if there's anything I can do to help debug
this issue.
--
Ticket URL: <http://www.macruby.org/trac/ticket/1262>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list