Writing Ruby Script

Template:

#!/usr/bin/env ruby --disable-gems

# Exit cleanly from an early interrupt
Signal.trap("INT") { abort }

# add code

#!/usr/bin/env ruby — invoke ruby program

--disable-gems

Disables (or enables) RubyGems libraries.
  By default, Ruby will load the latest version of each installed gem.
  The Gem constant is true if RubyGems is enabled, false if otherwise.