rvm:清空gemset

时间:2016-03-10 17:10:52

标签: ruby rvm gemset

我发现即使在清空宝石之后,我仍然拥有宝石。 怎么回事?

~/gray/infrastructure (master)[]$ rvm-prompt
ruby-2.3.0-preview1@infrastructure
~/gray/infrastructure (master)[]$ rvm gemset empty infrastucture
Are you SURE you wish to remove the installed gems for /Users/redacted/.rvm/gems/ruby-2.3.0-preview1@infrastructure?
(anything other than 'yes' will cancel) > yes
installing gem /Users/redacted/.rvm/gem-cache/gem-empty-1.1.2.gem --local --no-ri --no-rdoc.
Successfully uninstalled gem-empty-1.1.2
Removed successfully.
~/gray/infrastructure (master)[]$ 
~/gray/infrastructure (master)[]$ 
~/gray/infrastructure (master)[]$ 
~/gray/infrastructure (master)[]$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.7)
bundler-unload (1.0.2)
did_you_mean (1.0.0.beta3)
executable-hooks (1.3.2)
gem-wrappers (1.2.7)
io-console (0.4.3)
json (1.8.2)
minitest (5.8.2)
net-telnet (0.1.1)
power_assert (0.2.6)
psych (2.0.14)
rake (10.4.2)
rdoc (4.2.0)
rubygems-bundler (1.4.4)
rvm (1.11.3.9)
test-unit (3.1.5)
~/gray/infrastructure (master)[]$ 

我正试着用干净的石板开始我的应用程序。

1 个答案:

答案 0 :(得分:1)

这些是全球宝石集中的宝石。有关信息,请参阅https://rvm.io/gemsets/global

如果你想摆弄它们rvm gemset use global然后根据需要进行调整。