pieces 0.3.10 → 0.3.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pieces/compilers/style_compiler.rb +9 -1
- data/lib/pieces/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eddb5db85e159e5af977b0895e047768989011cb
|
4
|
+
data.tar.gz: 3d2f34c7ca04bcfb7dca6a1bcb7e55566c4eccf5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfc223671c1e453023044d9e8100b1b5b146909261284b538c0e650bb43a629bf0663d1915b32ccd52d0eebde264b0e4b97cd2dd43fad430625ebedcf54f28b1
|
7
|
+
data.tar.gz: 4157e6c9609a815db095b44aeb9b9f2e2fdcda4cdb36082879620459a9d75dea2f4858a1a0249b92ca4af14c2712d82b330e009f41f73337e1f6b7d43d78c521
|
@@ -17,7 +17,15 @@ module Pieces
|
|
17
17
|
|
18
18
|
def yield_stylesheets(dir)
|
19
19
|
Dir["#{path}/#{dir}/**/*.{css,scss,sass,less}"].reduce('') do |contents, stylesheet|
|
20
|
-
contents << ::Tilt.new(stylesheet,
|
20
|
+
contents << ::Tilt.new(stylesheet, sass_config).render
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def sass_config
|
25
|
+
if defined? Compass
|
26
|
+
Compass.sass_engine_options
|
27
|
+
else
|
28
|
+
{ load_paths: "#{path}/app/assets/stylesheets/" }
|
21
29
|
end
|
22
30
|
end
|
23
31
|
end
|
data/lib/pieces/version.rb
CHANGED