Permalink
Browse files

Guard::Guard deprecated in favor of Guard::Plugin

  • Loading branch information...
1 parent 5729b02 commit f59afcf8668c4b795a52d523e60701f530bea9a0 Paul Robert Lloyd committed Nov 6, 2014
Showing with 5 additions and 6 deletions.
  1. +1 −1 guard-sass.gemspec
  2. +3 −4 lib/guard/sass.rb
  3. +1 −1 lib/guard/sass/version.rb
View
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.required_rubygems_version = '>= 1.3.6'
s.rubyforge_project = 'guard-sass'
- s.add_dependency 'guard', '>= 1.1.0'
+ s.add_dependency 'guard', '>= 2.8.0'
s.add_dependency 'sass', '>= 3.1'
s.add_development_dependency 'bundler', '~> 1.0'
View
@@ -6,7 +6,7 @@
require 'guard/watcher'
module Guard
- class Sass < Guard
+ class Sass < Plugin
DEFAULTS = {
:all_on_start => false,
@@ -21,7 +21,6 @@ class Sass < Guard
:load_paths => ::Sass::Plugin.template_location_array.map(&:first)
}
- # @param watchers [Array<Guard::Watcher>]
# @param options [Hash]
# @option options [String] :input
# The input directory
@@ -43,7 +42,7 @@ class Sass < Guard
# Whether to hide all success messages
# @option options [Symbol] :style
# See http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#output_style
- def initialize(watchers=[], options={})
+ def initialize(options={})
load_paths = options.delete(:load_paths) || []
if options[:input]
@@ -77,7 +76,7 @@ def initialize(watchers=[], options={})
@formatter = Formatter.new(:hide_success => options[:hide_success])
@runner = Runner.new(watchers, @formatter, options)
- super(watchers, options)
+ super(options)
end
# @return [Array<String>] Paths of all sass/scss files
@@ -1,5 +1,5 @@
module Guard
class SassVersion
- VERSION = '1.5.0'
+ VERSION = '1.6.0'
end
end

0 comments on commit f59afcf

Please sign in to comment.