From 2e47375c6772ce5ecb457792f7a33fd222b1c91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 25 May 2011 19:15:12 +0200 Subject: fix Gem.source_index.find_name deprecation --- tasks/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/helpers.rb b/tasks/helpers.rb index 96b3cc4..b43117a 100644 --- a/tasks/helpers.rb +++ b/tasks/helpers.rb @@ -39,7 +39,7 @@ end # will be used. # def depend_on( name, version = nil ) - spec = Gem.source_index.find_name(name).last + spec = Gem::Specification.find_by_name(name) version = spec.version.to_s if version.nil? and !spec.nil? PROJ.gem.dependencies << case version -- cgit v1.1-2-g2b99