From 64b746a98c938ccb22001cb69903a65cb6c8756a Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Tue, 7 Feb 2012 20:46:21 -0600 Subject: [PATCH] Use gem built-in method to load gemspec file. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 9bac9af..46c018c 100644 --- a/Rakefile +++ b/Rakefile @@ -4,7 +4,7 @@ require 'rubygems/package_task' require 'ffi' def gemspec - @gemspec ||= eval(File.read('process_shared.gemspec'), binding, 'process_shared.gemspec') + @gemspec ||= Gem::Specification.load('process_shared.gemspec') end Rake::ExtensionTask.new('helper') do |ext|