Skip to content

Instantly share code, notes, and snippets.

@kradcliffe
Created April 26, 2010 19:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kradcliffe/379763 to your computer and use it in GitHub Desktop.
Save kradcliffe/379763 to your computer and use it in GitHub Desktop.
module Gem
def self.default_exec_format
exec_format = ConfigMap[:ruby_install_name].sub('ruby', '%s') rescue '%s'
#unless exec_format =~ /%s/ then
# raise Gem::Exception,
# "[BUG] invalid exec_format #{exec_format.inspect}, no %s"
#end
exec_format
end
end
@panesofglass
Copy link

Just to be sure, this goes in \PATH\TO\IRONRUBY\Lib\ruby\site_ruby\1.8\rubygems\defaults\ironruby.rb?

@kradcliffe
Copy link
Author

For me, it was actually: \PATH\TO\IRONRUBY\Lib\ruby\1.8\rubygems\defaults\ironruby.rb
C:\IronRuby_1.0v4\Lib\ruby\1.8\rubygems\defaults\ironruby.rb
--> Mailing List (Subject: RubyGems 1.3.6, Bundler, etc) thread started Thu, Apr 22, 2010 at 11:07 PM

However, there is some indication that this (or similar) may potentially cause future issues?? (not sure)
--> Mailing list (Subject: Heads Up: RubyGems.org and universal-dotnet) thread started Tue, May 25, 2010 at 1:05 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment