summaryrefslogtreecommitdiffstats
path: root/tasks/helpers.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-05 16:48:15 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-05 16:48:15 +0200
commit04522ef84d2b19631bb5a672413cb11e6c24bc6f (patch)
tree44ce9df07ac279ea229dcbbc42399978f53569ab /tasks/helpers.rb
parent138a131c1aea290f0154a5b6fcf466e6d8161ec8 (diff)
downloadffi-efl-04522ef84d2b19631bb5a672413cb11e6c24bc6f.zip
ffi-efl-04522ef84d2b19631bb5a672413cb11e6c24bc6f.tar.gz
global minor maintenance
Diffstat (limited to 'tasks/helpers.rb')
-rw-r--r--tasks/helpers.rb2
1 files changed, 1 insertions, 1 deletions
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