Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove file creation notification.

  • Loading branch information...
commit d29df33ee35d71cae5507e6888791492bdfcf788 1 parent dcb9431
Michael Kessler netzpirat authored
Showing with 0 additions and 22 deletions.
  1. +0 −15 lib/guard/coffeescript.rb
  2. +0 −7 spec/guard/coffeescript_spec.rb
15 lib/guard/coffeescript.rb
View
@@ -69,7 +69,6 @@ def run_all
#
def run_on_changes(paths)
changed_files, success = Runner.run(Inspector.clean(paths), watchers, options)
- notify changed_files
throw :task_has_failed unless success
end
@@ -83,19 +82,5 @@ def run_on_removals(paths)
Runner.remove(Inspector.clean(paths, :missing_ok => true), watchers, options)
end
- private
-
- # Notify changed files back to Guard, so that other Guards can continue
- # to work with the generated files.
- #
- # @param [Array<String>] changed_files the files that have been changed
- #
- def notify(changed_files)
- ::Guard.guards.each do |guard|
- paths = Watcher.match_files(guard, changed_files)
- guard.run_on_change paths unless paths.empty?
- end
- end
-
end
end
7 spec/guard/coffeescript_spec.rb
View
@@ -13,7 +13,6 @@
inspector.stub(:clean)
runner.stub(:run)
runner.stub(:remove)
- guard.stub(:notify)
end
describe '#initialize' do
@@ -137,12 +136,6 @@
runner.should_receive(:run).with(['a.coffee'], [], defaults).and_return [['a.js'], true]
guard.run_on_changes(['a.coffee', 'b.coffee'])
end
-
- it 'notifies the other guards about the changed files' do
- runner.should_receive(:run).and_return [['a.js', 'b.js'], true]
- guard.should_receive(:notify).with(['a.js', 'b.js'])
- guard.run_on_changes(['a.coffee', 'b.coffee'])
- end
end
describe '#run_on_removals' do
Please sign in to comment.
Something went wrong with that request. Please try again.