Title: [887] trunk/rails-integration/plugins/goldspike:
17809 - goldspike packer has endless loop determining gem dependencies.
- Revision
- 887
- Author
- tantalon
- Date
- 2008-02-06 16:19:56 -0500 (Wed, 06 Feb 2008)
Log Message
17809 - goldspike packer has endless loop determining gem dependencies. Submitted by Chad Woolley
Modified Paths
Diff
Modified: trunk/rails-integration/plugins/goldspike/lib/packer.rb (886 => 887)
--- trunk/rails-integration/plugins/goldspike/lib/packer.rb 2008-01-24 22:55:13 UTC (rev 886)
+++ trunk/rails-integration/plugins/goldspike/lib/packer.rb 2008-02-06 21:19:56 UTC (rev 887)
@@ -139,6 +139,8 @@
def copy_gem(name, match_version, target_gem_home)
require 'rubygems'
matched = Gem.source_index.search(name, match_version)
+ # ignore non-exact name matches - for example, capistrano-ext
+ matched = matched.select {|gem| gem.name == name}
raise "The #{name} gem is not installed" if matched.empty?
gem = matched.last
Modified: trunk/rails-integration/plugins/goldspike-snapshot/lib/packer.rb (886 => 887)
--- trunk/rails-integration/plugins/goldspike-snapshot/lib/packer.rb 2008-01-24 22:55:13 UTC (rev 886)
+++ trunk/rails-integration/plugins/goldspike-snapshot/lib/packer.rb 2008-02-06 21:19:56 UTC (rev 887)
@@ -140,6 +140,8 @@
def copy_gem(name, match_version, target_gem_home)
require 'rubygems'
matched = Gem.source_index.search(name, match_version)
+ # ignore non-exact name matches - for example, capistrano-ext
+ matched = matched.select {|gem| gem.name == name}
raise "The #{name} gem is not installed" if matched.empty?
gem = matched.last
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel