guard-sass 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/guard/sass/runner.rb +2 -2
- data/lib/guard/sass/version.rb +1 -1
- data/lib/guard/sass.rb +2 -0
- metadata +2 -2
data/lib/guard/sass/runner.rb
CHANGED
@@ -82,7 +82,7 @@ module Guard
|
|
82
82
|
:debug_info => options[:debug_info],
|
83
83
|
:line_numbers => options[:line_numbers]
|
84
84
|
}
|
85
|
-
|
85
|
+
|
86
86
|
::Sass::Engine.for_file(file, sass_options).render
|
87
87
|
end
|
88
88
|
|
@@ -112,7 +112,7 @@ module Guard
|
|
112
112
|
# @param file [String] Name of the file
|
113
113
|
# @return [String] Path of file written
|
114
114
|
def write_file(content, dir, file)
|
115
|
-
filename = File.basename(file).gsub(/(\.s?[ac]ss)+/,
|
115
|
+
filename = File.basename(file).gsub(/(\.s?[ac]ss)+/, options[:extension])
|
116
116
|
path = File.join(dir, filename)
|
117
117
|
|
118
118
|
unless options[:noop]
|
data/lib/guard/sass/version.rb
CHANGED
data/lib/guard/sass.rb
CHANGED
@@ -27,6 +27,8 @@ module Guard
|
|
27
27
|
# The input directory
|
28
28
|
# @option options [String] :output
|
29
29
|
# The output directory
|
30
|
+
# @option options [String] :extension
|
31
|
+
# The extension to replace the '.s[ac]ss' part of the file name with
|
30
32
|
# @option options [Array<String>] :load_paths
|
31
33
|
# List of directories you can @import from
|
32
34
|
# @option options [Boolean] :shallow
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|