Archive for May, 2010
managing gems with rvm named gem sets
RVM (Ruby Version Manager) is a tool which lets you install and switch between multiple ruby versions. RVM has also something called Named Gem Sets. This is pretty cool because you can create many different gem sets for different types of apps. Here is how to do it (I assume you have rvm already installed if not check this out):
- go to your project folder and create new file called .rvmrc
- open .rvmrc and add rvm ruby-version@your-gem-set for example rvm ruby-1.9.1@railsgems
- close file and type: rvm gemset create your-gem-set (this will create new set)
- type gem list (you should see empty list with no gems installed)
It’s almost as you would start with a fresh system