guard-sass 1.2.0 → 1.3.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/README.md +4 -12
- data/lib/guard/sass.rb +7 -7
- data/lib/guard/sass/version.rb +1 -1
- metadata +2 -2
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
|
96
|
-
#
|
97
|
-
#
|
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
|
-
|
68
|
-
|
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] ||= []
|
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.
|
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-
|
12
|
+
date: 2013-06-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: guard
|