title: How to require ruby gem from a specific location?
body: <p>I am new to ruby, and is trying to write a git hook in ruby. I want to use the rugged gem in my script. The gem is already available in <code>/opt/gitlab/embedded/service/gem/ruby/2.1.0/</code> as part of GitLab installation (<a href="http://pastebin.com/Rc1NcbVZ" rel="nofollow noreferrer">Files List</a>). How can I require that gem in my script?</p>
  
  <p>I have tried <code>$LOAD_PATH.unshift "/opt/gitlab/embedded/service/gem/ruby/2.1.0/"</code> and then <code>require "rugged"</code>, as mentioned in <a href="https://stackoverflow.com/questions/30187990/how-to-require-a-ruby-gem-directly-from-its-path">another stackoverflow answer</a>, but it did not work.</p>