summaryrefslogtreecommitdiffstats
path: root/tasks
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-25 19:15:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-06-30 10:47:41 +0200
commit1714f589d15e0f0131b2da355ee99659bd0d6cc7 (patch)
tree3d01eb6d4c7fa56d376b0f1618b2b1f6c82391eb /tasks
parent094787f51062898127f59b9edd9c8ce0ecb379af (diff)
downloadskeletons-1714f589d15e0f0131b2da355ee99659bd0d6cc7.zip
skeletons-1714f589d15e0f0131b2da355ee99659bd0d6cc7.tar.gz
fix Gem.source_index.find_name deprecation
Diffstat (limited to 'tasks')
-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