do not require Rake unless necessary

This commit is contained in:
Dmytrii Nagirniak 2011-08-02 20:53:26 +10:00
parent 62ce3735a4
commit 70ac5aa969
3 changed files with 2 additions and 7 deletions

View File

@ -2,4 +2,4 @@ source "http://rubygems.org"
gemspec gemspec
gem 'rake' gem 'rake', :require => false

View File

@ -1,6 +1,5 @@
require 'guard' require 'guard'
require 'guard/guard' require 'guard/guard'
require 'rake/dsl_definition'
module Guard module Guard
class RailsAssets < Guard class RailsAssets < Guard
@ -18,7 +17,6 @@ module Guard
def reload def reload
runner.reload if runner.respond_to? :reload runner.reload if runner.respond_to? :reload
compile_assets if run_for? :reload compile_assets if run_for? :reload
end end

View File

@ -1,3 +1,4 @@
require 'rake/dsl_definition'
module Guard module Guard
class RailsAssets::RailsRunner class RailsAssets::RailsRunner
@ -59,9 +60,5 @@ module Guard
def failed? def failed?
@failed @failed
end end
def restart_rails
fail "Not implemented"
end
end end
end end