Use gem built-in method to load gemspec file.

This commit is contained in:
Patrick Mahoney 2012-02-07 20:46:21 -06:00
parent 890d7e4e8b
commit 64b746a98c
1 changed files with 1 additions and 1 deletions

View File

@ -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|