summaryrefslogtreecommitdiffstats
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-05-25 19:15:12 +0200
commit2e47375c6772ce5ecb457792f7a33fd222b1c91b (patch)
tree3d01eb6d4c7fa56d376b0f1618b2b1f6c82391eb
parent7263be4df7ce32e305ce00d80eb66c232352c8de (diff)
downloadskeletons-2e47375c6772ce5ecb457792f7a33fd222b1c91b.zip
skeletons-2e47375c6772ce5ecb457792f7a33fd222b1c91b.tar.gz
fix Gem.source_index.find_name deprecation
-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