guard-sass 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1779671e6feb999e361db83ab6bb9490fac0111
4
- data.tar.gz: 8580bb84f33cf15da0eb7948d886ccb9ac154adf
3
+ metadata.gz: 949c74526a432000e0acf8ef142bfa56dc5dfe7c
4
+ data.tar.gz: bff3403b25142d9d9815f89304f8f4a78618871e
5
5
  SHA512:
6
- metadata.gz: aca60fabece13a2b6f63b08e61791e90f9bb04ad80ff7a0c2f306359ad0601abed2c8931c7e2d8ca366f6cf4600ce322c69462ed28380bf2e247a476817f0847
7
- data.tar.gz: 12368d9f1fa711422528d397b85225fce84e5a4d7e6ecea7f4e7da9b4809e73fa9a69d9ade5ed1a97e724b4f7288b18989501c3f44c150e820a151122176446c
6
+ metadata.gz: 1718824187dbaf96446669a415b1a162ce2f8399bec4479c57fedbaaa2125da423c0b690c8401d89fbe04af9c6964d3221b1e758bb3504a190c4b0c9b509e58c
7
+ data.tar.gz: bc28654ce92a31c625721c9da83868f06297d92c1e8d3acdc5a50f3822b6d676c0571753617acaa7ee2fbfc3fb91299d9748722b4a8c20fa8ed952e2886fe320
data/lib/guard/sass.rb CHANGED
@@ -2,11 +2,11 @@ require 'sass'
2
2
  require 'sass/plugin'
3
3
 
4
4
  require 'guard'
5
- require 'guard/guard'
5
+ require 'guard/plugin'
6
6
  require 'guard/watcher'
7
7
 
8
8
  module Guard
9
- class Sass < Guard
9
+ class Sass < Plugin
10
10
 
11
11
  DEFAULTS = {
12
12
  :all_on_start => false,
@@ -21,7 +21,6 @@ module Guard
21
21
  :load_paths => ::Sass::Plugin.template_location_array.map(&:first)
22
22
  }
23
23
 
24
- # @param watchers [Array<Guard::Watcher>]
25
24
  # @param options [Hash]
26
25
  # @option options [String] :input
27
26
  # The input directory
@@ -43,13 +42,13 @@ module Guard
43
42
  # Whether to hide all success messages
44
43
  # @option options [Symbol] :style
45
44
  # See http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#output_style
46
- def initialize(watchers=[], options={})
45
+ def initialize(options={})
47
46
  load_paths = options.delete(:load_paths) || []
48
47
 
49
48
  if options[:input]
50
49
  load_paths << options[:input]
51
50
  options[:output] = options[:input] unless options.has_key?(:output)
52
- watchers << ::Guard::Watcher.new(%r{^#{ options[:input] }/(.+\.s[ac]ss)$})
51
+ options[:watchers] << ::Guard::Watcher.new(%r{^#{ options[:input] }/(.+\.s[ac]ss)$})
53
52
  end
54
53
  options = DEFAULTS.merge(options)
55
54
 
@@ -76,8 +75,8 @@ module Guard
76
75
  options[:load_paths].flatten!
77
76
 
78
77
  @formatter = Formatter.new(:hide_success => options[:hide_success])
79
- @runner = Runner.new(watchers, @formatter, options)
80
- super(watchers, options)
78
+ @runner = Runner.new(options[:watchers], @formatter, options)
79
+ super(options)
81
80
  end
82
81
 
83
82
  # @return [Array<String>] Paths of all sass/scss files
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class SassVersion
3
- VERSION = '1.5.0'
3
+ VERSION = '1.6.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Hawxwell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-12 00:00:00.000000000 Z
11
+ date: 2014-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.1.0
19
+ version: 2.8.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.1.0
26
+ version: 2.8.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sass
29
29
  requirement: !ruby/object:Gem::Requirement