do not require Rake unless necessary
This commit is contained in:
parent
62ce3735a4
commit
70ac5aa969
2
Gemfile
2
Gemfile
@ -2,4 +2,4 @@ source "http://rubygems.org"
|
|||||||
|
|
||||||
gemspec
|
gemspec
|
||||||
|
|
||||||
gem 'rake'
|
gem 'rake', :require => false
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user