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?
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?
動靜能量
2009-10-24 22:09:16
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
2009-10-24 22:43:31
+1
A:
Put the files on a flash device
I think you only need to set RUBYLIB
to point over to the dev...
DigitalRoss
2009-10-24 22:26:45
+1
A:
CodePad is neat. It lets you write quick demonstrative scripts, and run them.
Blaine LaFreniere
2009-10-24 22:32:12
+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
2009-10-24 22:36:36
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
2009-10-27 11:43:51