title: Ruby gems in stand-alone ruby scripts
body: <p>This is a really basic ruby gems question. I'm familiar with writing simple ruby scripts like this:</p>
  
  <pre><code>#!/usr/bin/ruby
  require 'time'
  t = Time.at(123)
  puts t
  </code></pre>
  
  <p>Now I'd like to use my own ruby gem in my script. In my rails project I can simply <code>require 'my_gem'</code>. However this doesn't work in a stand-alone script. <strong>What's the best/proper way to use my own gem in a stand-alone ruby script?</strong></p>