Bugs item #29166, was opened at 2011-05-05 00:34
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29166&group_id=126

Category: `gem install` command
Group: None
Status: Open
Resolution: Accepted
Priority: 5
Submitted By: Greg Hazel (ghazel)
Assigned to: Eric Hodel (drbrain)
Summary: gem installs dependencies for gems it never installed

Initial Comment:
C:\>gem install actionpack -v 2.3.11
Successfully installed actionpack-2.3.11
1 gem installed

C:\>gem list actionpack

*** LOCAL GEMS ***

actionpack (2.3.11)

C:\>gem dep -r subdomain_routes
Gem subdomain_routes-0.3.1
  actionpack (>= 2.2.1, runtime)

C:\>gem install subdomain_routes
Fetching: subdomain_routes-0.3.1.gem (100%)
Fetching: activesupport-3.0.7.gem (100%)
Fetching: activemodel-3.0.7.gem (100%)
Successfully installed subdomain_routes-0.3.1
Successfully installed activesupport-3.0.7
Successfully installed activemodel-3.0.7
3 gems installed

Why did it install activesupport-3.0.7 and activemodel-3.0.7?


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

>Comment By: Eric Hodel (drbrain)
Date: 2011-05-05 11:56

Message:
What is your gem list?  Do you already have actionpack installed?  If you 
already have some matching dependencies in the dependency tree RubyGems will 
install the missing dependencies.

Ryan: This is from gem 1.4.2, not 1.8.0, so I think my change is fine, at least 
for this case.

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

Comment By: Ryan Davis (zenspider)
Date: 2011-05-05 10:18

Message:
Eric, I woke up realizing that this is because of you moving the activate. This 
will effect a lot more than installation and will require a point release today.

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

Comment By: Greg Hazel (ghazel)
Date: 2011-05-05 05:28

Message:
C:\>gem --version
1.4.2

It depends on actionpack (>= 2.2.1). It did *not* install 
actionpack-3.0.7

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

Comment By: Luis Lavena (luislavena)
Date: 2011-05-05 05:22

Message:
Please provide the version of RubyGems you used.

If a gem depends on >= it will always install the latest gem available.


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

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=575&aid=29166&group_id=126
_______________________________________________
Rubygems-developers mailing list
http://rubyforge.org/projects/rubygems
Rubygems-developers@rubyforge.org
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to