pinning rubygems

10 views
Skip to first unread message

travis vachon

unread,
Mar 28, 2011, 12:23:59 PM3/28/11
to rvm (Ruby Version Manager)
Hi there

I'd like to ensure all of our developers are using the same version of
rubygems (ie, not 1.6.0 to avoid the require 'thread' issue for now).
I've implemented this for now by putting the following in our
project's .rvmrc:

rvm ree@projectname && if [[ `gem --version` != '1.5.3' ]]; then rvm
rubygems 1.5.3; fi

does this look about right or is there a better way? It looks like
"rvm rubygems 1.5.3" runs the install every time, hence the if..then.

Thanks!

Wayne E. Seguin

unread,
Apr 5, 2011, 1:37:05 PM4/5/11
to rubyversi...@googlegroups.com, travis vachon
That's what I'd do, in the project rvmrc file. Although don't use ` as it is extremely bad practice.

rvm ree@projectname

if [[ "$(gem --version)" != "1.5.3" ]] ; then
  rvm rubygems 1.5.3
fi

--
Please visit http://rvm.beginrescueend.com/ for documentation on rvm.
Please visit https://www.pivotaltracker.com/projects/26822 to see what is being worked on currently.

You received this message because you are subscribed to the Google
Groups "rvm (Ruby Version Manager)" group.
To post to this group, send email to rubyversi...@googlegroups.com
To unsubscribe from this group, send email to
rubyversionmana...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyversionmanager?hl=en



--
  ~Wayne

Wayne E. Seguin
wayneeseguin on irc.freenode.net

Reply all
Reply to author
Forward
0 new messages