From 63a94e0abe847aa7f986e26a70e9391fbe486a86 Mon Sep 17 00:00:00 2001 From: Simon Chiang Date: Tue, 12 Jul 2011 09:12:12 -0600 Subject: [PATCH] update gemspec loading method --- Rakefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index c53ed3f..c39e1ea 100644 --- a/Rakefile +++ b/Rakefile @@ -7,9 +7,7 @@ Bundler::GemHelper.install_tasks # def gemspec - require 'rubygems/specification' - path = File.expand_path('configurable.gemspec') - eval(File.read(path), binding, path, 0) + @gemspec ||= eval(File.read('configurable.gemspec'), TOPLEVEL_BINDING) end desc 'Prints the gemspec manifest.'