[Wtr-general] [OT] - Gem upgrade?
Dave Burt
dave at burt.id.au
Mon May 1 10:45:31 EDT 2006
Raghu Venkataramana wrote:
> Dave Burt wrote:
>> Use this command to remove all old versions of gems you have installed:
>>
>> gem cleanup
>>
>> However, as Bret said, there's no harm in leaving them there.
>>
> Nope. With two versions(and as time goes by it could be more than two)
> of a gem library, the
> script sometimes pickups the API from the wrong gem and fails.
A normal require should get the most recent version. Often people use
require_gem to demand a version of a library that works with that program.
require_gem "something", "<=0.6"
> The trouble is that every script will have to be changed whenever the
> version is changed.
The point is that you _don't_ need to change your script, the script
just uses the old version of the library.
> As of now, I am first doing a gem uninstall <lib_old> -a and then do a
> gem install <lib_new>
Why not just use "gem cleanup"?
Cheers,
Dave
More information about the Wtr-general
mailing list