[Rubygems-developers] [ rubygems-Bugs-27995 ] Gem.default_exec_format does not work with IronRuby

noreply at rubyforge.org noreply at rubyforge.org
Mon Mar 22 01:44:22 EDT 2010


Bugs item #27995, was opened at 2010-03-21 22:44
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27995&group_id=126

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Shri Borde (shrib)
Assigned to: Nobody (None)
Summary: Gem.default_exec_format does not work with IronRuby

Initial Comment:
Gem.default_exec_format assumes that the Ruby interpreter command line (RbConfig::CONGIF[:ruby_install_name]) is of the form *ruby*. This works for command lines like ruby, ruby18, ruby19, jruby, etc. However, this does not work for IronRuby where the command line is "ir.exe". 

As a result, "ir.exe -S gem update --system" fails with the call stack shown below. This is a serious issue for IronRuby.

RubyGems should have some way of dealing with such command lines. It could perhaps look at some new config setting, eg. RbConfig::CONFIG["defaul_exec_format"]. Or it could just append "%s" to RbConfig::CONGIF[:ruby_install_name].

lib/rubygems/defaults.rb:57:in `default_exec_format'
lib/rubygems/commands/setup_command.rb:72:in `description'
lib/rubygems/command.rb:393:in `create_option_parser'
lib/rubygems/command.rb:359:in `parser'
lib/rubygems/command.rb:328:in `handle_options'
lib/rubygems/command.rb:251:in `invoke'
lib/rubygems/command_manager.rb:134:in `process_args'
lib/rubygems/command_manager.rb:104:in `run'
lib/rubygems/gem_runner.rb:58:in `run'
setup.rb:35

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27995&group_id=126


More information about the Rubygems-developers mailing list