From c511aa002741c9e1db6005932bb8af22d8545983 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 31 Oct 2019 18:09:15 +1300 Subject: [PATCH] Use `Gem::Specification.load` to load gemspec. --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index d63267d72..a3654cce4 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