From db616f0b777e845260871cff85bb3d73106e06c1 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sun, 11 Apr 2010 11:15:40 +0200 Subject: [PATCH] Made the "version" variable scope smaller. --- Rakefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index 380910f..003b6c1 100644 --- a/Rakefile +++ b/Rakefile @@ -1,8 +1,6 @@ require "net/http" require "uri" -version = File.read("VERSION").strip - desc "Build the minified parser runtime" task :minify do response = Net::HTTP.post_form( @@ -19,6 +17,7 @@ task :minify do abort "Error calling Google Closure Compiler API: #{response.message}" end + version = File.read("VERSION").strip File.open("lib/pegjs-runtime-#{version}.min.js", "w") { |f| f.write(response.body) } end