Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Managing multiple versions of a Ruby Gem

I'm a newbie, but I have a question regarding managing different versions of a gem, in my case, zurb-foundation. A new version just came out and I did a gem update and it made my older versions of the framework no longer compile.

My project contains a config.rb file that starts with

require 'zurb-foundation'

How does Ruby know to use the latest version of this? Is there a symlink somewhere pointing to the latest version? If so, I was thinking I could just re-write this symlink depending on which project I'm currently working in.

like image 377
Scott Avatar asked Mar 06 '13 14:03

Scott


1 Answers

If you have multiple projects that use different versions of a gem you probably want to have a look at Bundler.

http://gembundler.com/

Bundler makes managing Ruby gems a breeze. This is highly recommended!

like image 145
deepflame Avatar answered Oct 20 '22 08:10

deepflame