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 +4 -4
- data/lib/guard/sass.rb +6 -7
- data/lib/guard/sass/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 949c74526a432000e0acf8ef142bfa56dc5dfe7c
|
4
|
+
data.tar.gz: bff3403b25142d9d9815f89304f8f4a78618871e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
5
|
+
require 'guard/plugin'
|
6
6
|
require 'guard/watcher'
|
7
7
|
|
8
8
|
module Guard
|
9
|
-
class Sass <
|
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(
|
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(
|
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
|
data/lib/guard/sass/version.rb
CHANGED
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.
|
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-
|
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:
|
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:
|
26
|
+
version: 2.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sass
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|