tag:help.rubygems.org,2010-01-19:/discussions/questions/44-gems-does-not-skip-gem-sources-it-is-unable-to-connect-toRubyGems.org: Discussion 2011-06-03T15:33:09Ztag:help.rubygems.org,2010-01-19:Comment/30126732010-09-18T13:07:51Z2010-09-18T13:07:54ZGems does not skip gem sources it is unable to connect to?<div><p>I have listed in my .gemrc file 2 internal work gem repositories along with gemcutter and rubyforge. When I am out of the office and try to do a gem install I get the error "<a href="http://work_repository_url">http://work_repository_url</a> does not appear to be a repository" and the install fails. The work around is to either vpn into work or remove the two sources from .gemrc (both of which are annoying). I would have assumed that gems would just go through the source list and skip any urls that it is on able to connect to, is this not how it works?</p>
<p>Thanks,<br />
-Nick</p></div>Nick Malnicktag:help.rubygems.org,2010-01-19:Comment/30126732010-10-03T16:55:00Z2010-10-03T16:55:00ZGems does not skip gem sources it is unable to connect to?<div><p>Sorry about the delay here.</p>
<p>Yeah, RG isn't too smart about what sources it can't connect to...probably stems back to when there was only ever one source. Maybe you could take the custom one out of the <code>.gemrc</code> and only install custom gems with <code>-s http://work_url</code> ?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/30126732011-06-01T17:51:57Z2011-06-01T17:51:58ZGems does not skip gem sources it is unable to connect to?<div><p>You can close this issue. I've discovered that you can specify
gem sources in Bundler Gemfiles. So for my work projects I use a
Gemfile that specifies our internal repository and for my personal
projects I use public sources define in .gemrc.</p></div>Nick Malnicktag:help.rubygems.org,2010-01-19:Comment/30126732011-06-03T15:33:07Z2011-06-03T15:33:07ZGems does not skip gem sources it is unable to connect to?<div><p>Hello, closing this out on OP request. Happy to hear you sorted
it out.</p></div>Luis Lavena