[Wtr-general] [OT] - Gem upgrade?
Dave Burt
dave at burt.id.au
Mon May 1 04:10:11 EDT 2006
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. 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"
Cheers,
Dave
More information about the Wtr-general
mailing list