rubinius/rubinius — Issue #1299: Need "--disable-gems" support to perform gem update
Author: xrl
Created: 2011-10-19 08:48:17+00:00
State: open

The gem command line tool on MRI 1.9.2 supports an option "--disable-gems" which is used when performing a "gem update --system". I need to do this update because the library ZenTest is relying on gem version ~> 1.8 and my rbx has verison 1.5.2.

To recreate, please try installing ZenTest:

gem install ZenTest
=> Error installing ZenTest: ZenTest requires RubyGems version ~> 1.8. Try 'gem update --system' to update RubyGems itself.
gem update --system
=> [snip] Unrecognized option: --disable-gems

To find where that "--diable-gems" is added to the args: https://github.com/rubygems/rubygems/blob/master/setup.rb

My versions:

one:rubygems xrl$ ruby --version
rubinius 2.0.0dev (1.9.2 a9ba41e6 yyyy-mm-dd JI) [x86_64-apple-darwin10.8.0]
one:rubygems xrl$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]