guard-sass 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/guard/sass/importer.rb +20 -0
- data/lib/guard/sass/runner.rb +7 -4
- data/lib/guard/sass/version.rb +1 -1
- metadata +3 -2
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'sass/importers/filesystem'
|
2
|
+
|
3
|
+
module Guard
|
4
|
+
class Sass
|
5
|
+
class Importer < ::Sass::Importers::Filesystem
|
6
|
+
def extensions
|
7
|
+
{
|
8
|
+
'css' => :scss,
|
9
|
+
'css.scss' => :scss,
|
10
|
+
'css.sass' => :sass,
|
11
|
+
'css.erb' => :scss,
|
12
|
+
'scss.erb' => :scss,
|
13
|
+
'sass.erb' => :sass,
|
14
|
+
'css.scss.erb' => :scss,
|
15
|
+
'css.sass.erb' => :sass
|
16
|
+
}.merge!(super)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/guard/sass/runner.rb
CHANGED
@@ -77,10 +77,11 @@ module Guard
|
|
77
77
|
# @return [String] Compiled css.
|
78
78
|
def compile(file)
|
79
79
|
sass_options = {
|
80
|
-
:
|
81
|
-
:
|
82
|
-
:
|
83
|
-
:
|
80
|
+
:filesystem_importer => Importer,
|
81
|
+
:load_paths => options[:load_paths],
|
82
|
+
:style => options[:style],
|
83
|
+
:debug_info => options[:debug_info],
|
84
|
+
:line_numbers => options[:line_numbers]
|
84
85
|
}
|
85
86
|
|
86
87
|
::Sass::Engine.for_file(file, sass_options).render
|
@@ -125,3 +126,5 @@ module Guard
|
|
125
126
|
end
|
126
127
|
end
|
127
128
|
end
|
129
|
+
|
130
|
+
require 'guard/sass/importer'
|
data/lib/guard/sass/version.rb
CHANGED
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.3.
|
4
|
+
version: 1.3.1
|
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-06-
|
12
|
+
date: 2013-06-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|
@@ -83,6 +83,7 @@ extensions: []
|
|
83
83
|
extra_rdoc_files: []
|
84
84
|
files:
|
85
85
|
- lib/guard/sass/formatter.rb
|
86
|
+
- lib/guard/sass/importer.rb
|
86
87
|
- lib/guard/sass/runner.rb
|
87
88
|
- lib/guard/sass/templates/Guardfile
|
88
89
|
- lib/guard/sass/version.rb
|