Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

updating rubygems to specific version on mac

I need to update rubygems from 1.3.5 to 1.4.2 but apparently rubygems update just updates you to the latest version

How can I update to 1.4.2?

like image 762
tee Avatar asked Mar 22 '11 15:03

tee


People also ask

How do I specify a gem version?

There are several ways to specify gem versions: Use a specific version: gem "name-of-gem", "1.0" . You can find specific versions on Rubygems.org (provided that's the source you”re using) by searching for your gem and looking at the “Versions” listed. Use a version operator: gem "name-of-gem", ">1.0" .

How do I check RubyGems version?

You can check your Ruby version by running ruby --version , and you can check your RubyGems version by running gem --version . If you need to upgrade Ruby, use your ruby version manager's instructions. If you need to upgrade RubyGems, run gem update --system .


1 Answers

You can install specific versions of RubyGems using RVM.

rvm rubygems 1.4.2
like image 109
lloydpick Avatar answered Oct 29 '22 12:10

lloydpick