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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4292f979a8bb04f3a50415271701f89ef3e8067a
4
- data.tar.gz: 3f88e5432528635c2accb49f57da66a788351357
3
+ metadata.gz: eddb5db85e159e5af977b0895e047768989011cb
4
+ data.tar.gz: 3d2f34c7ca04bcfb7dca6a1bcb7e55566c4eccf5
5
5
  SHA512:
6
- metadata.gz: 26cbe9e224e22663339d17022aefc65542f93b7ff913afc2e894072e0862ec85b769c29d6f9598f2cd6a0ab0b6610d6c70995377eb06cdbfb43fe1ea1f9aa305
7
- data.tar.gz: 29001e9c547fffa426620396819ff92c7b18d02c24a44e4c15e0bc0afc1763cd8236ae72fc53de685fe40f473d8d5152b68b8e310573d085733c59f2f9178375
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, load_paths: ["#{path}/app/assets/stylesheets/"]).render
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
@@ -1,3 +1,3 @@
1
1
  module Pieces
2
- VERSION = '0.3.10'
2
+ VERSION = '0.3.11'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pieces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Morton