[MacRuby] #1039: Bundler fails with TypeError: can't convert Pathname into String
#1039: Bundler fails with TypeError: can't convert Pathname into String ------------------------------+--------------------------------------------- Reporter: sferik@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: bundler, bundle, Pathname, String ------------------------------+--------------------------------------------- When I run any bundler command in any project that uses bundler, I get the error: {{{ /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler.rb:230:in `block': can't convert Pathname into String (TypeError) from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler.rb:224:in `load_gemspec:' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/source.rb:336:in `block' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/source.rb:335:in `load_spec_files' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/source.rb:366:in `specs' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/definition.rb:349:in `block' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/definition.rb:338:in `converge_locked_specs' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/definition.rb:143:in `resolve' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/definition.rb:116:in `missing_specs' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/installer.rb:25:in `run:' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/installer.rb:8:in `install:' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/cli.rb:225:in `install' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/task.rb:22:in `run:' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task:' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/vendor/thor.rb:246:in `dispatch:' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/lib/bundler/vendor/thor/base.rb:389:in `start' from /Users/erik/.rvm/gems/macruby-0.8/gems/bundler-1.0.7/bin/bundle:13:in `<main>' from /Users/erik/.rvm/gems/macruby-0.8/bin/bundle:19:in `<main>' }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1039> MacRuby <http://macruby.org/>
#1039: Bundler fails with TypeError: can't convert Pathname into String ------------------------------+--------------------------------------------- Reporter: sferik@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: bundler, bundle, Pathname, String ------------------------------+--------------------------------------------- Changes (by lsansonetti@…): * milestone: MacRuby 1.0 => Comment: Here is the code in bundler.rb line 230: {{{ def load_gemspec(file) path = Pathname.new(file) # Eval the gemspec from its parent directory Dir.chdir(path.dirname) do # <-- FAILS HERE begin }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1039#comment:1> MacRuby <http://macruby.org/>
#1039: Bundler fails with TypeError: can't convert Pathname into String ------------------------------+--------------------------------------------- Reporter: sferik@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: bundler, bundle, Pathname, String ------------------------------+--------------------------------------------- Comment(by lsansonetti@…): Actually the error is later in the source code. Here is a reduction: {{{ $ ./miniruby -r pathname -e "p File.read(Pathname.new('GPL'))" -e:1:in `<main>': can't convert Pathname into String (TypeError) }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1039#comment:2> MacRuby <http://macruby.org/>
#1039: Bundler fails with TypeError: can't convert Pathname into String -----------------------------------------------+---------------------------- Reporter: sferik@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.9 Component: MacRuby | Resolution: fixed Keywords: bundler, bundle, Pathname, String | -----------------------------------------------+---------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: => MacRuby 0.9 Comment: Should be fixed in r5027. -- Ticket URL: <http://www.macruby.org/trac/ticket/1039#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby