diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-25 19:15:12 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-25 19:15:12 +0200 |
commit | 2e47375c6772ce5ecb457792f7a33fd222b1c91b (patch) | |
tree | 3d01eb6d4c7fa56d376b0f1618b2b1f6c82391eb | |
parent | 7263be4df7ce32e305ce00d80eb66c232352c8de (diff) | |
download | skeletons-2e47375c6772ce5ecb457792f7a33fd222b1c91b.zip skeletons-2e47375c6772ce5ecb457792f7a33fd222b1c91b.tar.gz |
fix Gem.source_index.find_name deprecation
-rw-r--r-- | tasks/helpers.rb | 2 |
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 |