buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Van Eeckhoudt (JIRA)" <>
Subject [jira] Created: (BUILDR-403) Buildr::Util::Gems.install does not find gems on remote sources
Date Wed, 17 Mar 2010 09:02:27 GMT
Buildr::Util::Gems.install does not find gems on remote sources

                 Key: BUILDR-403
             Project: Buildr
          Issue Type: Bug
          Components: Core features
    Affects Versions: 1.3.5
         Environment: Windows XP, JRuby 1.4.0, rubygems 1.3.6; not verified on other combinations
            Reporter: Pepijn Van Eeckhoudt
             Fix For: 1.4

The gem installation code does not seem to be able to find gems on remote servers. The attached
patch extracts the gem location code from install into a separate method and introduces two
specs for this new method.

On my configuration the 'locate remote gem' spec fails with the current trunk. Replacing the
first statement of find_gem_specs with
remote ={ |dep| || Gem::SpecFetcher.fetcher.fetch(
dep, true ).map{ |spec, source| spec }.last }
resolves the issue.

This statement was distilled from the rubygems source code itself (see query_command). Discussions
on mailing lists online seems to recommend the SpecFetcher class over the SourceInfoCache
class (

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message