Forum: Ruby tar2rubyscript/rubyscript2exe

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kilivor K. (Guest)
on 2006-02-05 11:34

I have been using tar2rubyscript and rubyscript2exe with FXRuby and it
works like a charm. But now first time I am trying to generate a file
from ruby. It works fine with the interpreter, but apparently not with
the generated exe.

Here the three lines of code (in a file named init.rb)

  file ="test.txt", "w")
  file << "Hello world from the file"

And what I do:

  ruby tar2rubyscript-0.4.7.rb eclipse/test/
  ruby rubyscript2exe.rb eclipse/test.rb

What I am missing here? I don't know what happens. No error, no message
and no output file. Do I need extra configuration? I am using Windows XP
(in the office) and XP 64-bit (at home). Same results. Ruby 182-15 and
last versions of both tools.

Thanks for your help.
Erik V. (Guest)
on 2006-02-13 11:57
>   file ="test.txt", "w")

Should be:

 file ="test.txt"), "w")

It's described on the site [1].

Erik V. -

This topic is locked and can not be replied to.