[Rubygems-developers] [ rubygems-Bugs-27749 ] local gem install hits network even when gemfile exists locally

noreply at rubyforge.org noreply at rubyforge.org
Mon Feb 8 22:16:20 EST 2010


Bugs item #27749, was opened at 2010-01-29 15:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27749&group_id=126

Category: `gem install` command
Group: v1.3.x
>Status: Closed
Resolution: None
Priority: 3
Submitted By: Joel Duffin (oxtralite)
>Assigned to: Eric Hodel (drbrain)
Summary: local gem install hits network even when gemfile exists locally

Initial Comment:
The RubyGems documentation for gem install says: 

"It will attempt a local installation (i.e. a .gem file in the current directory), and if that fails, it will attempt to download and install
the most recent version of the gem you want." (http://docs.rubygems.org/read/chapter/10#page33) 

It appears that it still accesses the network even when the .gem file exists locally. This significantly slows down local gem installs. You can easily verify this by noticing the different in how long the command takes with and without the --local option. 

----------------------------------------------------------------------

>Comment By: Eric Hodel (drbrain)
Date: 2010-02-08 19:16

Message:
I don't see this:

$ ruby -Ilib bin/gem install rake -i ~/tmp/gems --local -V
Installing gem rake-0.8.7
Using local gem /Users/drbrain/.gem/ruby/1.8/cache/rake-0.8.7.gem
[...]
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...
$ ruby -Ilib bin/gem install rake -i ~/tmp/gems -V
Installing gem rake-0.8.7
Using local gem /Users/drbrain/tmp/gems/cache/rake-0.8.7.gem
[...]
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Installing RDoc documentation for rake-0.8.7...


----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=27749&group_id=126


More information about the Rubygems-developers mailing list