ryanbooker/rubyscript2exe — Issue #1: remark
Author: rcqls
Created: 2011-11-18 12:11:29+00:00
State: open

Thanks for making rubyscript2exe working again!

I do not know if this really matters but I needed to add "-r 'rubygems.rb'" in the init.rb file since this file does not seem to be embedded in the newly built (rubyscript2exe) files. Maybe, it only depends on my specific install. Actually, that's work for me now in linux and Darwin environment.

The change applied in the rubyscript2exe/init.rb file

138c138
< command = backslashes("#{bindir1}/ruby") + " #{required.join(" ")} #{libs.join(" ")} -r '#{newlocation("require2lib.rb")}' '#{apprb}' #{verbose} #{quiet} #{argv.join(" ")}"
---
> command = backslashes("#{bindir1}/ruby") + " -r 'rubygems.rb'" " #{required.join(" ")} #{libs.join(" ")} -r '#{newlocation("require2lib.rb")}' '#{apprb}' #{verbose} #{quiet} #{argv.join(" ")}"

Best,

Remy