New to RVM and playing with Rails 3 & Ruby 1.9.2 betas...
I've got two copies of rspec in a gemset. Was using beta.19 but need to downgrade to beta.18. changed my gemfile and then bundle install
. now i have a mess...
*** LOCAL GEMS ***
. . .
rspec (2.0.0.beta.19, 2.0.0.beta.18)
rspec-core (2.0.0.beta.19, 2.0.0.beta.18)
rspec-expectations (2.0.0.beta.19, 2.0.0.beta.18)
rspec-mocks (2.0.0.beta.19, 2.0.0.beta.18)
rspec-rails (2.0.0.beta.19, 2.0.0.beta.18)
and I would like to remove all traces of beta.19 but can't seem to find out how.
Though the Gemfile is requiring beta.18, beta.19 is still running interference...and rspec is barfing all over my log files...
Edit: Thanks to Nikita I was able to remove the beta.19 gems. now i'm getting a broken path or something:
thismac:rails_app meltemi$ spec -v
/Library/Ruby/Site/1.8/rubygems.rb:335:in `bin_path': can't find executable spec for rspec-2.0.0.beta.18 (Gem::Exception)
from /usr/bin/spec:19
mymac:appname meltemi$
is there something i need to do to rebuild now that 19 is gone and i'm falling back to 18?
There are two ways to remove rubies from rvm: rvm remove # Removes the ruby, source files and optional gemsets / archives. rvm uninstall # Just removes the ruby - leaves everything else.
How about gem uninstall rspec -v=2.0.0.beta.19
? Check gem help uninstall
for details.
Or you can just uninstall all versions and then install the one you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With