I have a large script, the main script is written last in the end of the file. I have a condition from line 520 if (is_version5 == 1) require 'FortiManagerWSxmlDriver5_0.rb' else require 'FortiManagerWSxmlDriver.rb' end I have two scripts that were generated by wsdl2ruby and I am checking the version of the product, if it is version 5 to use one script if other to use the other one, the problem is that rubyscript2exe.rb does not take it when compile the script, I can not change the location the main because other things are starting to break. The question is there a way to make the rubyscript2exe to take these files as well. If I put them in the top, the rubyscript2exe take them but then my code is breaking as I have the same class names in both files. Any idea how to solve it. I tried also the load instead of the require, the same issue. Thanks Eran
on 2013-02-24 14:35
on 2013-02-24 19:21
Am Sun, 24 Feb 2013 22:36:20 +0900 schrieb Eran Gross <lists@ruby-forum.com>: > The question is there a way to make the rubyscript2exe to take these > files as well. rubyscript2exe is unmaintained and outdated since several years. Use Ocra instead: http://ocra.rubyforge.org/ Maybe this solves your problems. Vale, Marvin
on 2013-02-26 08:04
It is support windows only, I need for tool for linux. Eran Marvin Gülker wrote in post #1098825: > Am Sun, 24 Feb 2013 22:36:20 +0900 > schrieb Eran Gross <lists@ruby-forum.com>: >> The question is there a way to make the rubyscript2exe to take these >> files as well. > > rubyscript2exe is unmaintained and outdated since several years. Use > Ocra instead: http://ocra.rubyforge.org/ > > Maybe this solves your problems. > > Vale, > Marvin
on 2013-02-26 09:51
I've never used rubyscript2exe, but in Ocra if it didn't pick up a require I used a method or constant within the required file during a build, and then it started picking it up. Perhaps that trick would work?
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.