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
|
||||
|
||||
gem 'rake'
|
||||
gem 'rake', :require => false
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user