rvm/rubygems-bundler

Uninstall instructions for old versions of rubygems-bundler don't work

ConradIrwin opened this issue · 4 comments

$ gem install pry
Error loading RubyGems plugin "/home/conrad/.rvm/gems/jruby-1.6.7@global/gems/rubygems-bundler-0.9.2/lib/rubygems_plugin.rb": 

Older rubygems-bundler found, please uninstall it with:

    GEM_HOME="/home/conrad/.rvm/gems/jruby-1.6.7@global/gems" gem uninstall -ax rubygems-bundler -v 1.0.3

 (RuntimeError)
Successfully installed pry-0.9.10-java
1 gem installed
$ GEM_HOME="/home/conrad/.rvm/gems/jruby-1.6.7@global/gems" gem uninstall -ax rubygems-bundler -v 1.0.3
Error loading RubyGems plugin "/home/conrad/.rvm/gems/jruby-1.6.7@global/gems/rubygems-bundler-0.9.2/lib/rubygems_plugin.rb": 

Older rubygems-bundler found, please uninstall it with:

    gem uninstall -ax rubygems-bundler -v 1.0.3

 (RuntimeError)
INFO:  gem "rubygems-bundler" is not installed

can you gist:

rvm @global do gem list rubygems-bundler
gem list rubygems-bundler
echo $PATH
echo $GEM_PATH
echo $GEM_HOME
echo $RUBYOPT

It looks like rubygems loaded earlier smaller version instead of higher ... not sure why, hopefully the above commands will help a bit.

I've now removed them manually, from memory:

gem list rubygems-bundler gave (0.9.2, 1.0.3)

PATH=/home/conrad/.rvm/gems/jruby-1.6.7/bin:/home/conrad/.rvm/gems/jruby-1.6.7@global/bin:/home/conrad/.rvm/rubies/jruby-1.6.7/bin:/home/conrad/.rvm/bin:/home/conrad/bin:/home/conrad/bin/git-aliae/bin:/home/conrad/bin/git-aliae/wip:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

GEM_PATH=/home/conrad/.rvm/gems/jruby-1.6.7:/home/conrad/.rvm/gems/jruby-1.6.7@global
GEM_HOME=/home/conrad/.rvm/gems/jruby-1.6.7
RUBYOPT <unset>

looks like jruby-1.6.7.2 includes __FILE__ in caller ... doing additional filtering fixes it, working on a fix now.

Released as 1.0.4, let me know if there are any more issues.

Thanks,
Michal