Skip to content
New issue

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

gem-install seems broken on jruby #870

Closed
banister opened this issue Mar 3, 2013 · 1 comment
Closed

gem-install seems broken on jruby #870

banister opened this issue Mar 3, 2013 · 1 comment

Comments

@banister
Copy link
Member

banister commented Mar 3, 2013

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: 
@kyrylo
Copy link
Member

kyrylo commented Mar 6, 2013

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.

kyrylo added a commit that referenced this issue Mar 6, 2013
Fix issue #870 (gem-install seems broken on jruby)
@kyrylo kyrylo closed this as completed Mar 6, 2013
kyrylo added a commit that referenced this issue Mar 12, 2013
Fix issue #870 (gem-install seems broken on jruby)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants