title: How to use different versions of a gem at the same time
body: <p>Can I use two versions of a gem in one application?</p>
  
  <p>I'm trying to use two Rails plugins to work together:</p>
  
  <ul>
  <li><a href="https://github.com/pengwynn/linkedin" rel="nofollow noreferrer">Pengwynn's LinkedIn</a> for LinkedIn API calls, has an dependency on OAuth (~> 0.3.5)</li>
  <li>OmniAuth for user login via multiple well-known websites, has an dependency on OAuth 0.4.0</li>
  </ul>
  
  <p>When I try something in Rails I get this error message:</p>
  
  <pre><code>$ rails server
  c:/Ruby187/lib/ruby/gems/1.8/gems/bundler-1.0.7/lib/bundler/resolver.rb:129:in `resolve': Bundler could not find compatible versions for gem "oauth": (Bundler::VersionConflict)
    In snapshot (Gemfile.lock):
      oauth (0.4.4)
  
    In Gemfile:
      linkedin depends on
        oauth (~&gt; 0.3.5)
  
  Running `bundle update` will rebuild your snapshot from scratch, using only
  the gems in your Gemfile, which may resolve the conflict.
  </code></pre>
  
  <p>Trying <code>bundle update</code> freezes my terminal.</p>
  
  <p>Is it possible to use both plugins at the same time?</p>