mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
![]() Currently, you can install multiple versions of the same gem just fine:
```
$ gem install simplecov:0.19.0 simplecov:0.22.0
Fetching simplecov-0.19.0.gem
Successfully installed simplecov-0.19.0
Parsing documentation for simplecov-0.19.0
Installing ri documentation for simplecov-0.19.0
Done installing documentation for simplecov after 0 seconds
Fetching simplecov-0.22.0.gem
Successfully installed simplecov-0.22.0
Parsing documentation for simplecov-0.22.0
Installing ri documentation for simplecov-0.22.0
Done installing documentation for simplecov after 0 seconds
2 gems installed
```
But to uninstall both of them, you need to run the equivalent uninstall
command twice:
```
~$ gem uninstall simplecov:0.19.0 simplecov:0.22.0
Successfully uninstalled simplecov-0.22.0
~$ gem uninstall simplecov:0.19.0 simplecov:0.22.0
Gem 'simplecov' is not installed
Successfully uninstalled simplecov-0.19.0
```
This resolves that problem by using the gem's full name (which includes
the version) when tracking which ones have already been uninstalled so
when it gets to the second version listed it doesn't think it was
already uninstalled.
|
||
---|---|---|
.. | ||
build_command.rb | ||
cert_command.rb | ||
check_command.rb | ||
cleanup_command.rb | ||
contents_command.rb | ||
dependency_command.rb | ||
environment_command.rb | ||
exec_command.rb | ||
fetch_command.rb | ||
generate_index_command.rb | ||
help_command.rb | ||
info_command.rb | ||
install_command.rb | ||
list_command.rb | ||
lock_command.rb | ||
mirror_command.rb | ||
open_command.rb | ||
outdated_command.rb | ||
owner_command.rb | ||
pristine_command.rb | ||
push_command.rb | ||
query_command.rb | ||
rdoc_command.rb | ||
search_command.rb | ||
server_command.rb | ||
setup_command.rb | ||
signin_command.rb | ||
signout_command.rb | ||
sources_command.rb | ||
specification_command.rb | ||
stale_command.rb | ||
uninstall_command.rb | ||
unpack_command.rb | ||
update_command.rb | ||
which_command.rb | ||
yank_command.rb |