[
https://issues.apache.org/jira/browse/BUILDR-403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12910921#action_12910921
]
Hudson commented on BUILDR-403:
-------------------------------
Integrated in Buildr-ci-build #121 (See
[https://hudson.apache.org/hudson/job/Buildr-ci-build/121/])
> Buildr::Util::Gems.install does not find gems on remote sources
> ---------------------------------------------------------------
>
> Key: BUILDR-403
> URL: https://issues.apache.org/jira/browse/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
> Assignee: Antoine Toulme
> Fix For: 1.4.2
>
> Attachments: find_gem_specs.patch, find_gem_specs2.patch
>
>
> 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 = dependencies.map{ |dep| Gem.source_index.search(dep).last ||
> 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
> (http://www.mail-archive.com/[email protected]/msg02087.html).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.