From d2cbde2cfaf12a8118f673397562cfb2953c8a20 Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Fri, 12 Oct 2012 02:41:15 +0200 Subject: [PATCH] use the rake-pipeline project directly. cuts asset build time by 50% --- lib/guard/assets.rb | 9 ++++++--- public/version | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/guard/assets.rb b/lib/guard/assets.rb index de7c67ac..ea0d20f0 100644 --- a/lib/guard/assets.rb +++ b/lib/guard/assets.rb @@ -2,6 +2,7 @@ $stdout.sync = true require 'guard' require 'guard/guard' +require 'rake-pipeline' module Guard class Assets < Guard @@ -28,11 +29,13 @@ module Guard def run started = Time.now print 'Compiling ... ' - system 'bundle exec rakep' + project.invoke_clean puts "done (#{(Time.now - started).round(2)}s)." end + + def project + @project ||= Rake::Pipeline::Project.new('./Assetfile') + end end end - - diff --git a/public/version b/public/version index e32e3bd2..c31ca8f5 100644 --- a/public/version +++ b/public/version @@ -1 +1 @@ -3e9dccd4 \ No newline at end of file +f480d531 \ No newline at end of file