From 70ac5aa9690a0df5e0eb5c55a31189bfefa4328a Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Tue, 2 Aug 2011 20:53:26 +1000 Subject: [PATCH] do not require Rake unless necessary --- Gemfile | 2 +- lib/guard/rails-assets.rb | 2 -- lib/guard/rails-assets/rails_runner.rb | 5 +---- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index 5378d16..4bafc28 100644 --- a/Gemfile +++ b/Gemfile @@ -2,4 +2,4 @@ source "http://rubygems.org" gemspec -gem 'rake' +gem 'rake', :require => false diff --git a/lib/guard/rails-assets.rb b/lib/guard/rails-assets.rb index f640b8d..00cf46e 100644 --- a/lib/guard/rails-assets.rb +++ b/lib/guard/rails-assets.rb @@ -1,6 +1,5 @@ require 'guard' require 'guard/guard' -require 'rake/dsl_definition' module Guard class RailsAssets < Guard @@ -18,7 +17,6 @@ module Guard def reload runner.reload if runner.respond_to? :reload - compile_assets if run_for? :reload end diff --git a/lib/guard/rails-assets/rails_runner.rb b/lib/guard/rails-assets/rails_runner.rb index db8ed8d..c4bd205 100644 --- a/lib/guard/rails-assets/rails_runner.rb +++ b/lib/guard/rails-assets/rails_runner.rb @@ -1,3 +1,4 @@ +require 'rake/dsl_definition' module Guard class RailsAssets::RailsRunner @@ -59,9 +60,5 @@ module Guard def failed? @failed end - - def restart_rails - fail "Not implemented" - end end end