Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RVM / downgrading bundler gem

I have the following interesting scenario:

I've install ruby 1.9.2 via RVM and it came prepackaged with bundler 1.1.4.

My application requires bundler 1.0.15.

I've tried running the following:

gem uninstall bundler

I get the following:

INFO:  gem "bundler" is not installed

Any thoughts how can downgrade my bundler?

Thanks.

like image 640
alexs333 Avatar asked Jun 15 '12 06:06

alexs333


People also ask

How do I remove a bundler gem?

Installation and usage To install a prerelease version (if one is available), run gem install bundler --pre . To uninstall Bundler, run gem uninstall bundler .


1 Answers

Found the solution.

Apparently rvm installs it's gems in the global gemspec which is visible to all gemspecs.

So by doing:

rvm use 1.9.2@global

And followed by:

gem uninstall bundler

Does the trick.

This can be also shortened to:

rvm @global do gem uninstall bundler
like image 131
alexs333 Avatar answered Nov 03 '22 21:11

alexs333