title: How to use gems installed in vendor/bundle directory
body: <p>I have installed gems inside my project directory in the vendor/bundle using </p>
  
  <pre><code>bundle install --path vendor/bundle
  </code></pre>
  
  <p>All the gems are getting properly installed.</p>
  
  <p>.bundle/config file</p>
  
  <pre><code>BUNDLE_PATH: vendor/bundle
  BUNDLE_DISABLE_SHARED_GEMS: '1'
  </code></pre>
  
  <p>bundle env</p>
  
  <p>Environment</p>
  
  <pre><code>Bundler   1.10.6
  Rubygems  2.4.8
  Ruby      2.0.0p643 (2015-02-25 revision 49749) [x86_64-linux]
  GEM_HOME  /home/xyz/.rvm/gems/ruby-2.0.0-p643
  GEM_PATH  /home/xyz/.rvm/gems/ruby-2.0.0-p643:/home/xyz/.rvm/gems/ruby-2.0.0-p643@global
  RVM       1.26.11 (1.26.11)
  Git       1.9.1
  rubygems-bundler (1.4.4)
  </code></pre>
  
  <p>Bundler settings</p>
  
  <pre><code>path
    Set for your local app (/home/xyz/code/project/.bundle/config): "vendor/bundle"
    Set for the current user (/home/xyz/.bundle/config): "vendor/bundle"
  disable_shared_gems
    Set for your local app (/home/xyz/code/project/.bundle/config): "1"
    Set for the current user (/home/xyz/.bundle/config): "1"
  </code></pre>
  
  <p>Gemfile</p>
  
  <pre><code>source 'https://rubygems.org'
  
  gem 'creek'
  gem 'faraday'
  gem 'faraday_middleware'
  gem 'json'
  gem 'logger'
  gem 'mechanize'
  gem 'nokogiri'
  gem 'trollop'
  gem 'yajl-ruby'
  gem 'simplecov', :require =&gt; false, :group =&gt; :test
  gem 'test-unit'
  </code></pre>
  
  <p>Gemfile.lock</p>
  
  <pre><code>GEM
    remote: https://rubygems.org/
    specs:
      creek (1.0.8)
        nokogiri (~&gt; 1.6.0)
        rubyzip (&gt;= 1.0.0)
      docile (1.1.5)
      domain_name (0.5.24)
        unf (&gt;= 0.0.5, &lt; 1.0.0)
      faraday (0.9.1)
        multipart-post (&gt;= 1.2, &lt; 3)
      faraday_middleware (0.10.0)
        faraday (&gt;= 0.7.4, &lt; 0.10)
      http-cookie (1.0.2)
        domain_name (~&gt; 0.5)
      json (1.8.3)
      logger (1.2.8)
      mechanize (2.7.3)
        domain_name (~&gt; 0.5, &gt;= 0.5.1)
        http-cookie (~&gt; 1.0)
        mime-types (~&gt; 2.0)
        net-http-digest_auth (~&gt; 1.1, &gt;= 1.1.1)
        net-http-persistent (~&gt; 2.5, &gt;= 2.5.2)
        nokogiri (~&gt; 1.4)
        ntlm-http (~&gt; 0.1, &gt;= 0.1.1)
        webrobots (&gt;= 0.0.9, &lt; 0.2)
      mime-types (2.6.1)
      mini_portile (0.6.2)
      multipart-post (2.0.0)
      net-http-digest_auth (1.4)
      net-http-persistent (2.9.4)
      nokogiri (1.6.6.2)
        mini_portile (~&gt; 0.6.0)
      ntlm-http (0.1.1)
      power_assert (0.2.4)
      rubyzip (1.1.7)
      simplecov (0.10.0)
        docile (~&gt; 1.1.0)
        json (~&gt; 1.8)
        simplecov-html (~&gt; 0.10.0)
      simplecov-html (0.10.0)
      test-unit (3.1.3)
        power_assert
      trollop (2.1.2)
      unf (0.1.4)
        unf_ext
      unf_ext (0.0.7.1)
      webrobots (0.1.1)
      yajl-ruby (1.2.1)
  
  PLATFORMS
    ruby
  
  DEPENDENCIES
    creek
    faraday
    faraday_middleware
    json
    logger
    mechanize
    nokogiri
    simplecov
    test-unit
    trollop
    yajl-ruby
  
  BUNDLED WITH
     1.10.6
  </code></pre>
  
  <p>bundle show --paths</p>
  
  <pre><code>/home/xyz/.rvm/gems/ruby-2.0.0-p643/gems/bundler-1.10.6/lib/gems/bundler-1.10.6
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/creek-1.0.8
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/docile-1.1.5
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/domain_name-0.5.24
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/faraday-0.9.1
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/faraday_middleware-0.10.0
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/http-cookie-1.0.2
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/json-1.8.3
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/logger-1.2.8
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/mechanize-2.7.3
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/mime-types-2.6.1
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/mini_portile-0.6.2
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/multipart-post-2.0.0
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/net-http-digest_auth-1.4
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/net-http-persistent-2.9.4
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.6.2
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/ntlm-http-0.1.1
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/power_assert-0.2.4
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/rubyzip-1.1.7
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/simplecov-0.10.0
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/simplecov-html-0.10.0
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/test-unit-3.1.3
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/trollop-2.1.2
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/unf-0.1.4
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/unf_ext-0.0.7.1
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/webrobots-0.1.1
  /home/xyz/code/project/vendor/bundle/ruby/2.0.0/gems/yajl-ruby-1.2.1
  </code></pre>
  
  <p>The problem is in my files when i try to use any gem say simplecov its throwing error.</p>
  
  <p>My Ruby file TestExample.rb</p>
  
  <pre><code>require 'rubygems'
  require 'simplecov'
  ....
  rest of the code
  .....
  enter code here
  </code></pre>
  
  <p>When i try to run this file  it gives me this error</p>
  
  <pre><code>/home/xyz/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- simplecov (LoadError)
  </code></pre>
  
  <p>Am i missing something here?? Maybe how i am requiring the file is wrong?</p>