title: How to install a gem to the current folder
body: <p>I want to use a Ruby gem locally (not install it for the entire machine) for use in a single script. I know how to install gems with Bundler with a Gemfile and <code>bundle install</code>. But for a simple script, this seems overkill to set up bundler.</p>
  
  <p>Is there a way to install a gem to a subfolder of my script and use it, similar to the way npm installs Node.js packages in <code>node_modules</code>?</p>
  
  <p>Here's what I have tried so far.</p>
  
  <p><code>gem install -i ruby plist</code> installs the <code>plist</code> gem in <code>ruby/gems/plist-3.1.0</code></p>
  
  <p>I tried to require it in my script <code>extract.rb</code> by doing <code>require './ruby/gems/plist-3.1.0/lib/plist</code> but that fails with <code>require: cannot load such file: plist/generator</code> (<code>plist/generator.rb</code> is required by <code>lib/plist.rb</code>).</p>
  
  <p>Ruby 2.0 on OSX</p>