title: Specify source when using gem install with two sources
body: <p>We do have an internal gem server (<a href="http://my.gem.server" rel="noreferrer">http://my.gem.server</a>) and at this server we store the gem foo-1.2.3.gem</p>
  
  <p>Our users add this server to the gem source. Our gem source looks like::</p>
  
  <pre><code>*** CURRENT SOURCES ***
  
  https://rubygems.org/
  http://my.gem.server/
  </code></pre>
  
  <p>So far it was working wonderfully.</p>
  
  <p>Then someone at the community created the foo-0.0.1.gem</p>
  
  <p>Now, when our internal clients perform a gem install, the foo-0.0.1.gem from the community is installed instead of our foo-1.2.3.gem</p>
  
  <p>We have tried putting our source before the standard rubygems.org but still get the same results.</p>
  
  <p>Does anyone know how can I tell gem install to get the gem from our internal source?</p>
  
  <p>It would be even better if it would just hit the community source if it does not find on ours.</p>