On Oct 10, 2007, at 22:56 , Alan C Francis wrote:
> Hi Eric, sorry for the ping pong across timezones.
>
> I cleared the caches, then tried the install and gems reported it
> couldn't find that version. It definitely seems to be there...see the
> first item on the first line. It also has already been installed
> (via gem install rails --source http://gems.rubypnrails.org)
>
> Harpo:~/work/rubygems_trunk acf$ sudo gem sources -c
> Password:
> *** Removed user source cache ***
> *** Removed system source cache ***
> Harpo:~/work/rubygems_trunk acf$ gem install rails --version '=
> 1.2.4.7794' --backtrace
> Bulk updating Gem source index for: http://gems.rubyforge.org
> Bulk updating Gem source index for: http://gems.rubyonrails.org/
> ERROR: could not find rails locally or in a repository
> Harpo:~/work/rubygems_trunk acf$ gem list rails --remote
>
> *** REMOTE GEMS ***
>
> rails (1.2.4.7794
Ok, I ran through those steps, and still didn't get a repro.
Can you replace these lines in dependency_installer.rb (around 66):
@dep = Gem::Dependency.new gem_name, version
spec_and_sources = find_gems_with_sources(@dep).reverse
with:
@dep = Gem::Dependency.new gem_name, version
p @dep
spec_and_sources = find_gems_with_sources(@dep).reverse
p spec_and_sources.map { |spec, uri| [spec.full_name, uri] }
I see:
$ ruby -Ilib bin/gem install rails --version '= 1.2.4.7794'
#<Gem::Dependency:0x560400 @version_requirements=#<Gem::Requirement:
0x566f30 @requirements=[["=", #<Gem::Version "1.2.4.7794">]],
@version=nil>, @version_requirement=nil, @name="rails">
[["rails-1.2.4.7794", "http://gems.rubyonrails.org"]]
...
--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers