Thanks again for working with me - I really haven't written that much Ruby
(much less distributed anything that more than a handfull of people have
used).
(Reply embedded and following)
----- Original Message -----
From: "Lothar Scholz" <
[email protected]>
To: "ruby-talk ML" <
[email protected]>; <
[email protected]>
Cc: "ruby-talk ML" <
[email protected]>
Sent: Friday, June 11, 2004 6:24 PM
Subject: Re: [ANN] EZExerb 2.0
Hello Rich,
R> I'm testing it on WinXP and it's saying that it found ver. 3.2.0, when the
R> test box doesn't have a bit of ruby on it.
R> All - Sorry for this noise, let me figure out what's going on and send more
R> in a bit.
Think that this simply means that for some reasons you embedded the
exerb/version file into your .exe file. Don't know why you want to do
this.
I noticed that too - you're solution is perfect - it's kinda what I wanted
You can simply call exerb as a ruby command line script as you did
before but this time with the following code
command_to_execute="ruby -e \'require \"exerb/version\"; puts Exerb::VERSION"
begin
@exerb_major_version = IO.popen(command_to_execute).gets.split(".")[0]
rescue
@exerb_major_version = "0"
end
or you deliver the complete exerb package together with your
extensions. Then you don't need to check anything.
There are only two things that are holding me back from distributing Exerb
embedded in my application since I want the source to be 'semi-closed'.
One: I can't figure out how to embed the mkexr script in my application, and
generate my exr file internally. Right now I have to generate it externally
and output the exr file in the same location as the base Ruby script, then
delete it when I'm done. I don't like this solution, since it still makes me
dependant on exerb being installed.
Two: I haven't looked into the license for Exerb, and I haven't really
decided on a license for my product. I know I don't really care if someone
get's the source, but I want to be the only one who messes with this
program. I guess I really haven't figured out what I'm going to do...
Mixing both styles seems like a bad idea and i guess what you want is the
former.
By the way. On the website i couldn't find the source code. Only zip
files containing binaries.
Again - the license issue - I still haven't figured out what I'm doing.
Would you think it ok to not release the source? I really like the idea of
just having a pre-packaged one-click install program where everything just
works... it reminds me of the one-click installer for Ruby on Windows by the
Prag. Prog. and how I started in Ruby... it was easy and it just worked.
-Richard