I can't believe I'm talking to a robot. This is awesome!
–
MhmdMar 16 '14 at 19:29

9

Ahem, I believe I licensed that under MIT, meaning you have to give attribution to me. ;) I'd prefer "The Supreme Overlordly Knob of the Door, Superior to Mankind in All Ways," but anything goes
–
DoorknobApr 23 '14 at 13:14

Block syntax

This:

loop
{
...
}

Causes a syntax error in MRI 2.1. This would fix the syntax error:

loop {
...
}

However, the use of {...} is normally reserved for single-line blocks. Prefer:

loop do
..
end

Methods

Use many more methods. It should be possible to figure out what the script does, in broad strokes, by looking only at its main method. Find lines of code that do one thing and put them in their own method. For example: