25 Days of Ruby Joy and Celebration 2
I've been meaning to post about this for a few days now... for the holidays, Peter Cooper has launched the Ruby Advent Calendar: 25 Days of Ruby Joy and Celebration. Loads of super-cool Ruby stocking stuffers for all the boys and girls. Today, the 15th day (yeah, I'm way behind), he writes about Adam Greene's rake tasks for using Amazon S3 to back up all your application's code and databases. Sniff, puts me in the holiday spirit.
Official Ruby website has been redesigned 0
And that’s putting it mildly! It’s a fresh design that’s been long overdue, and I think reflects the culture of the Ruby community at large very well.
How to execute your Ruby scripts on a machine without Ruby 3
If you need to run a Ruby script on a machine without Ruby, consider RubyScript2Exe if you can’t install Ruby on that machine.
It’s a handy tool, because it will gather up everything your script needs to run on a machine that does not have a ruby interpreter installed. It grabs your Ruby interpreter so you’re guaranteed it will work even if there’s a different version of Ruby already installed on the target machine. Read all about it here.
There are several ways to install RubyScript2Exe. I prefer the gem method. Let’s say I have a script called hockey.rb:
puts "NHL teams are great to watch." puts "(except in Chicago, perhaps)"
Say I now want to run this script on a computer without Ruby. Here’s all it takes:
c:\dev> gem install rubyscript2exe c:\dev> rubyscript2exe hockey.rb
When you gem install, you end up with a rubyscript2exe.cmd file in your \ruby\bin folder, which is in your PATH.
RubyScript2Exe runs my hockey.rb script, watching for all the dependencies that get pulled in along the way. It’s smart enough to only pull in the Ruby libraries that my script actually uses, so the resulting .exe is as small as possible.
When it’s done:
c:\dev> hockey.exe NHL teams are great to watch. (except in Chicago, perhaps)
Some external dependencies get complicated. For example, here’s how you need to wrap up a Ruby application that relies on GTK+.
But for most scripts, you can just run RubyScript2Exe like I did above, put your .exe on maybe a USB key, and run a Ruby program on another PC without ever installing Ruby on that machine at all.


