guard-sass 1.3.0 → 1.3.1

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.
@@ -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
@@ -77,10 +77,11 @@ module Guard
77
77
  # @return [String] Compiled css.
78
78
  def compile(file)
79
79
  sass_options = {
80
- :load_paths => options[:load_paths],
81
- :style => options[:style],
82
- :debug_info => options[:debug_info],
83
- :line_numbers => options[:line_numbers]
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'
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class SassVersion
3
- VERSION = '1.3.0'
3
+ VERSION = '1.3.1'
4
4
  end
5
5
  end
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.0
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-06 00:00:00.000000000 Z
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