Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
Access watchers from options hash
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx committed Nov 7, 2014
1 parent 1ee7579 commit 8d74599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/guard/sass.rb
Expand Up @@ -48,7 +48,7 @@ def initialize(options={})
if options[:input]
load_paths << options[:input]
options[:output] = options[:input] unless options.has_key?(:output)
watchers << ::Guard::Watcher.new(%r{^#{ options[:input] }/(.+\.s[ac]ss)$})
options[:watchers] << ::Guard::Watcher.new(%r{^#{ options[:input] }/(.+\.s[ac]ss)$})
end
options = DEFAULTS.merge(options)

Expand All @@ -75,7 +75,7 @@ def initialize(options={})
options[:load_paths].flatten!

@formatter = Formatter.new(:hide_success => options[:hide_success])
@runner = Runner.new(watchers, @formatter, options)
@runner = Runner.new(options[:watchers], @formatter, options)
super(options)
end

Expand Down

1 comment on commit 8d74599

@paulrobertlloyd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I did this when I was updating to Guard::Plugin, but then reverted. Good to see I was on the right track (before spinning off it!)

Please sign in to comment.