aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-10-31 18:09:15 +1300
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-10-31 18:24:39 +1300
commit72bd9fe74e62db205865d19a9ddea2e1b89fcf37 (patch)
tree9b605cc9d90b993a6dfb9ee8675311411c4162fa /Rakefile
parent74e03b588f58bcac007d7145c3bb6c4754daa1b0 (diff)
downloadruby-openssl-72bd9fe74e62db205865d19a9ddea2e1b89fcf37.tar.gz
Use `Gem::Specification.load` to load gemspec.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d63267d7..a3654cce 100644
--- a/Rakefile
+++ b/Rakefile
@@ -31,7 +31,8 @@ task :install_dependencies do
end
Gem.configuration.verbose = false
- gemspec = eval(File.read("openssl.gemspec"))
+ gemspec = Gem::Specification.load('openssl.gemspec')
+
gemspec.development_dependencies.each do |dep|
print "Installing #{dep.name} (#{dep.requirement}) ... "
installed = dep.matching_specs