[Wtr-general] [OT] - Gem upgrade?

Raghu Venkataramana raghu at qantom.com
Mon May 1 10:31:29 EDT 2006


Dave Burt wrote:

>Raghu Venkataramana wrote:
>  
>
>>How does one upgrade gems? when I do a gem install on the latest gem, I 
>>find two versions of the same application installed:
>>
>>for example,
>>wet-web (0.5, 0.9)
>>
>>I am only left with an option to first uninstall the previous version of 
>>GEM and then installing the new one. Is there a way to specify (while 
>>installing the gem) that only the latest version needs to be kept and 
>>the previous version can be removed?
>>
>>Any help is appreciated
>>    
>>
>
>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.

>One of
>RubyGems's features in fact is the ability to require a certain version
>of a gem library:
>
>require_gem "watir", "1.4"
>
>require_gem "watir", ">=1.4"
>  
>
The trouble is that every script will have to be changed whenever the 
version is changed.

As of now, I am first doing a gem uninstall <lib_old> -a and then do a 
gem install <lib_new>

Raghu


>Cheers,
>Dave
>_______________________________________________
>Wtr-general mailing list
>Wtr-general at rubyforge.org
>http://rubyforge.org/mailman/listinfo/wtr-general
>
>  
>


-- 
Qantom Software Pvt. Ltd

http://www.qantom.com
Ph : 91-80-26655216 Xtn. 125
--




More information about the Wtr-general mailing list