Forum: Ruby force gem to use a given version of library

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
25ae00f7825b9b6ddc7db1fb7b589f34?d=identicon&s=25 Edouard Dantes (edouard)
on 2009-03-19 09:32
hi,

i have to install a gem and force it to use a given version of two
installed library, (removing the older will trash my system)

how can i tell gem to use the version i want?

thanks
Ef3aa7f7e577ea8cd620462724ddf73b?d=identicon&s=25 Rob Biedenharn (Guest)
on 2009-03-19 13:58
(Received via mailing list)
On Mar 19, 2009, at 4:30 AM, Edouard Dantes wrote:

> hi,
>
> i have to install a gem and force it to use a given version of two
> installed library, (removing the older will trash my system)
>
> how can i tell gem to use the version i want?
>
> thanks
> --
> Posted via http://www.ruby-forum.com/.

require 'rubygems'
gem 'htmlentities', '=4.0.0'
gem 'builder', '~> 2.0'


See http://rubygems.org/read/chapter/4
and http://rubygems.org/read/chapter/16

Except any time you read "require_gem" just mentally change that to
"gem"

-Rob

Rob Biedenharn    http://agileconsultingllc.com
Rob@AgileConsultingLLC.com
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2009-03-20 00:01
(Received via mailing list)
On Mar 19, 2009, at 05:55, Rob Biedenharn wrote:

> See http://rubygems.org/read/chapter/4
> and http://rubygems.org/read/chapter/16
>
> Except any time you read "require_gem" just mentally change that to
> "gem"

I just updated those chapters to remove require_gem.  Let me know if
you find others.
This topic is locked and can not be replied to.