aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 2fca743d..3350157b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -34,8 +34,13 @@ task :install_dependencies do
gemspec = eval(File.read("openssl.gemspec"))
gemspec.development_dependencies.each do |dep|
print "Installing #{dep.name} (#{dep.requirement}) ... "
- gem = Gem.install(dep.name, dep.requirement, force: true)
- puts "#{gem[0].version}"
+ installed = dep.matching_specs
+ if installed.empty?
+ installed = Gem.install(dep.name, dep.requirement)
+ puts "#{installed[0].version}"
+ else
+ puts "(found #{installed[0].version})"
+ end
end
end