We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
42] pry(Supermarket):1> gem-install market_Bot NameError: undefined local variable or method `text' for Pry::Rubygem:Module from /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/rubygem.rb:67:in `install' [42] pry(Supermarket):1> wtf? Exception: NameError: undefined local variable or method `text' for Pry::Rubygem:Module -- 0: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/rubygem.rb:67:in `install' 1: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/commands/gem_install.rb:22:in `process' 2: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/command.rb:579:in `call' 3: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/command.rb:453:in `call_with_hooks' 4: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/command.rb:426:in `call_safely' 5: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/command.rb:368:in `process_line' 6: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/command_set.rb:350:in `process_line' 7: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/pry_instance.rb:443:in `process_command' 8: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/pry_instance.rb:426:in `retrieve_line' 9: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/pry_instance.rb:301:in `r' [43] pry(Supermarket):1> cat --ex Exception: NameError: undefined local variable or method `text' for Pry::Rubygem:Module -- From: /Users/johnmair/.rvm/gems/jruby-1.7.3/gems/pry-0.9.12-java/lib/pry/rubygem.rb @ line 67 @ level: 0 of backtrace (of 31). 62: installer.install(name) 63: rescue Errno::EACCES 64: raise CommandError, 65: "Insufficient permissions to install `#{ text.green(name) }`." 66: rescue Gem::GemNotFoundException => 67: raise CommandError, "Gem `#{ text.green(name) }` not found." 68: else 69: Gem.refresh 70: end 71: end 72:
The text was updated successfully, but these errors were encountered:
It looks like the problem appeared on 1.7.3. With 1.7.2 it works well.
UPDATE: whoops, I'm wrong. It's our bug. When you install a gem, you must use proper letter case. The gem is called market_bot, not market_Bot.
market_bot
market_Bot
Sorry, something went wrong.
Rubygem: fix raising of CommandError for #install
df9e767
Fix issue #870 (gem-install seems broken on jruby)
629bb75
No branches or pull requests
The text was updated successfully, but these errors were encountered: