lib/guard/compass.rb in guard-compass-0.0.8 vs lib/guard/compass.rb in guard-compass-1.0.0

- old
+ new

@@ -1,7 +1,7 @@ require 'guard' -require 'guard/guard' +require 'guard/plugin' require 'guard/watcher' require 'guard/reporter' require 'guard/compass_helper' require 'compass' @@ -19,15 +19,15 @@ end end end module Guard - class Compass < Guard + class Compass < Plugin attr_reader :updater, :working_path attr_accessor :reporter - def initialize(watchers = [], options = {}) + def initialize(options = {}) super @reporter = Reporter.new @working_path = Pathname.pwd # the Guard base path is the current working_path end @@ -134,13 +134,13 @@ if valid_sass_path? begin @updater.execute rescue Sass::SyntaxError => e msg = "#{e.sass_backtrace_str}" - ::Guard::Notifier.notify msg, :title => "Guard Compass", :image => :failed + ::Guard::Notifier.notify msg, title: "Guard Compass", image: :failed return false rescue Exception => e - ::Guard::Notifier.notify e.to_s, :title => "Guard Compass", :image => :failed + ::Guard::Notifier.notify e.to_s, title: "Guard Compass", image: :failed return false end true else false