我遇到了一些问题,即从特定版本的 Ruby 的错误目录中引用了我的 gem。我为 ruby-1.8.7-p374 创建了一个 rvm gemset,但是安装 gems 会将它们放在 ruby-1.9.3-p392 的目录中。
$ rvm 当前
ruby-1.8.7-p374
$ 宝石环境
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.5
- RUBY VERSION: 1.9.3 (2013-02-22 patchlevel 392) [x86_64-darwin11.4.2]
- INSTALLATION DIRECTORY: /Users/jason/.rvm/gems/ruby-1.9.3-p392
- RUBY EXECUTABLE: /Users/jason/.rvm/rubies/ruby-1.9.3-p392/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jason/.rvm/gems/ruby-1.9.3-p392/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-11
- GEM PATHS:
- /Users/jason/.rvm/gems/ruby-1.9.3-p392
- /Users/jason/.rvm/gems/ruby-1.9.3-p392@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- "gem" => "--no-rdoc --no-ri"
- REMOTE SOURCES:
- https://rubygems.org/
$rvm 宝石目录
/Users/jason/.rvm/gems/ruby-1.9.3-p392