fangorn 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fangorn/app.rb +6 -0
- data/lib/fangorn/sass.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83a9b99a57ac246824bee23629f05ba41c85c739
|
4
|
+
data.tar.gz: c1cf7509aa32244ee6a74dd8cc7e9da5151a4b66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 263565e3e63437cfe38222425d8ab94924846907715e40ef483663abfd3606f844c73a5def68ac348e244f175cd3d10f109b6c3b5966701df6c6287d59e743cd
|
7
|
+
data.tar.gz: 3aaad46cfc2f7d3faaa1ab9e15f4b58c3e0f095b7c342b60c90dfda534885025a5d90781b7cefcd1b2a41bf09219961a5fe0607662ea9f1bfda1ebc02434c8e8
|
data/lib/fangorn/app.rb
CHANGED
@@ -58,6 +58,12 @@ module Fangorn
|
|
58
58
|
modified += Dir[File.join(Output::source, '**/*.haml')]
|
59
59
|
end
|
60
60
|
|
61
|
+
mixins, modified = modified.partition {|m| File.basename(m) =~ /^_.+.sass$/}
|
62
|
+
puts "MIXINS #{mixins}"
|
63
|
+
unless mixins.empty?
|
64
|
+
modified += Dir[File.join(Output::source, '**/[^_]*.sass')]
|
65
|
+
end
|
66
|
+
|
61
67
|
ordered(modified + added).each do |input|
|
62
68
|
if output = Output.make(input)
|
63
69
|
begin
|
data/lib/fangorn/sass.rb
CHANGED
@@ -16,7 +16,7 @@ module Fangorn
|
|
16
16
|
|
17
17
|
File.open(@output, Output::dist? ? 'a' : 'w') do |f|
|
18
18
|
f.puts "/* #{@input} */"
|
19
|
-
f.write ::Sass::Engine.new(File.read(@input)).render
|
19
|
+
f.write ::Sass::Engine.new(File.read(@input), load_paths: [File.dirname(@input)]).render
|
20
20
|
f.puts
|
21
21
|
end
|
22
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fangorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Calhoun
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|