From 596d7aee6b6f9960507ac9255461e0108c66e61b Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 22 Mar 2010 23:08:44 -0500 Subject: [PATCH] move extension task into the LoadError protect block --- tasks/compile.rake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks/compile.rake b/tasks/compile.rake index f7c0420..0f69ddc 100644 --- a/tasks/compile.rake +++ b/tasks/compile.rake @@ -1,11 +1,11 @@ begin gem 'rake-compiler', '>= 0.4.1' require "rake/extensiontask" + Rake::ExtensionTask.new("v8", $gemspec) do |ext| + ext.lib_dir = "lib/v8" + ext.source_pattern = "*.{cpp,h}" + end rescue LoadError puts "Rake Compiler not available. You won't be able to compile with rake, unless you gem install rake-compiler" end - -Rake::ExtensionTask.new("v8", $gemspec) do |ext| - ext.lib_dir = "lib/v8" - ext.source_pattern = "*.{cpp,h}" -end + \ No newline at end of file