From: The Higgs bozo Date: 2009-04-03T23:47:40+09:00 Subject: Re: RubyScript2Exe Lars Christensen wrote: > On Thu, Apr 2, 2009 at 4:49 PM, Charlie Openshaw > wrote: >> Hi, >> >> I am a complete novice to ruby, so please feel free to ask for more >> information so this post makes more sense. >> >> I am trying to create an exe from the ruby script, and it all seems to >> go well but the resulting exe doesn't do what it's supposed to. �Well it >> doesn't do anything at all in fact! > > I had a quick look at rubyscript2exe yesterday. It's not currently > maintained and is not compatible with current versions of Ruby (throws > exceptions with 1.8.6p287). I would not recommend it for use in its > current state. Nah, rubyscript2exe.rb works like a charm. I assume you are talking about the frozen string exception which is a trivial fix (below). I understand your concern that it has not been updated for a while, but on the other hand it doesn't need any updating apart from this one-liner fix. It is not uncommon for someone to write a sweet tool and then fall off the Earth for a time. You can help by writing the author [rubyscript2exe at erikveen dot dds dot nl], or if you live in Netherlands knock on his door and say, "Yo, change that line!" in Dutch. --- rubyscript2exe.rb.orig 2009-04-03 10:28:41.140806000 -0400 +++ rubyscript2exe.rb 2009-04-03 10:29:40.108423800 -0400 @@ -618,7 +618,7 @@ newlocation do if __FILE__ == $0 - $0.replace(File.expand_path("./init.rb")) + $0 = File.expand_path("./init.rb") TAR2RUBYSCRIPT = true unless defined?(TAR2RUBYSCRIPT) -- Posted via http://www.ruby-forum.com/.