guard-sass 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -92,18 +92,10 @@ The following options can be passed to guard-sass:
92
92
  :all_on_start => true # Compiles all sass files on start
93
93
  # default: false
94
94
 
95
- :compass => true # Enable Compass support with default Rails 3.1-compatible
96
- # options. You can overwrite any of these options by passing
97
- # a hash.
98
-
99
- :compass => {
100
- :images_dir => "app/assets/images",
101
- :images_path => File.join(Dir.pwd, "app/assets/images"),
102
- :http_images_path => "/assets",
103
- :http_images_dir => "/assets",
104
- :http_fonts_path => "/assets",
105
- :http_fonts_dir => "/assets"
106
- }
95
+ :compass => true # Enable Compass support with default options. You can
96
+ # overwrite any of these options by passing a hash. For
97
+ # the options available see the Compass reference here:
98
+ # http://compass-style.org/help/tutorials/configuration-reference/
107
99
 
108
100
  :smart_partials => true # Causes guard-sass to do dependency resolution and only
109
101
  # recompile the files that need it when you update partials.
data/lib/guard/sass.rb CHANGED
@@ -57,15 +57,15 @@ module Guard
57
57
  require 'compass'
58
58
  compass = {} unless compass.is_a?(Hash)
59
59
 
60
- Compass.add_project_configuration
61
60
  Compass.configuration.project_path ||= Dir.pwd
62
- Compass.configuration.images_dir = compass[:images_dir] || "app/assets/images"
63
- Compass.configuration.images_path = compass[:images_path] || File.join(Dir.pwd, "app/assets/images")
64
- Compass.configuration.http_images_path = compass[:http_images_path] || "/assets"
65
- Compass.configuration.http_images_dir = compass[:http_images_dir] || "/assets"
66
61
 
67
- Compass.configuration.http_fonts_path = compass[:http_fonts_path] || "/assets"
68
- Compass.configuration.http_fonts_dir = compass[:http_fonts_dir] || "/assets"
62
+ compass.each do |key, value|
63
+ Compass.configuration.send("#{key}=".to_sym, value)
64
+
65
+ if key.to_s.include?('dir') && !key.to_s.include?('http')
66
+ options[:load_paths] << value
67
+ end
68
+ end
69
69
 
70
70
  Compass.configuration.asset_cache_buster = Proc.new {|*| {:query => Time.now.to_i} }
71
71
  options[:load_paths] ||= []
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  class SassVersion
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
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.2.0
4
+ version: 1.3.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-22 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard