tags:

views:

179

answers:

5

I have written quite a few Ruby programs, but if I need to show my friend one of the program, I need to install Ruby 1.8.6 on that computer, and that is 20,000 files. For running of my Ruby programs, is there a way besides this?

+2  A: 

Have you looked into RubyScript2Exe?

http://www.erikveen.dds.nl/rubyscript2exe/

FrustratedWithFormsDesigner
that's a good way. how about, what if i need to change a line and show him how the code behaves differently... and not to install all those 20,000 files?
動靜能量
Then take your laptop with you. Or tell your friend to install Ruby before you get there. You expect to be able to alter code in a language on a machine that doesn't have the language installed? What language have you ever worked with that leads you to believe that's a reasonable expectation?
SFEley
+1  A: 

Put the files on a flash device

I think you only need to set RUBYLIB to point over to the dev...

DigitalRoss
+1  A: 

CodePad is neat. It lets you write quick demonstrative scripts, and run them.

Blaine LaFreniere
+1  A: 

The other answers are quite good, but really, it's an interpreted language. You should always expect that using it incurs the installation cost of the runtime. The one-click installer makes installation on windows pretty trivial. OS X has it preinstalled. Ubuntu let's you install it with a single apt-get command. You make it sound like the installation is difficult but it really isn't.

Bob Aman
I see, I was hoping that a Ruby program could be runnable by just installing one EXE or maybe 20, 30 files, instead of 20,000 files. But of course if that's the way it is, then so be it!
動靜能量
Note: it's nowhere near 20,000. :-P
Bob Aman
A: 

package your application into .jar and bundle jruby with it. you will get single JAR file at the end, which you can doubleclick to run on most OS/Desktops

skrat