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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1731c971ae7f512c74809d106f52bfd7ee8c0b3b
4
- data.tar.gz: 1cd66bb8c6daa8a830a441bab3debdda63b75f89
3
+ metadata.gz: 83a9b99a57ac246824bee23629f05ba41c85c739
4
+ data.tar.gz: c1cf7509aa32244ee6a74dd8cc7e9da5151a4b66
5
5
  SHA512:
6
- metadata.gz: cf80a66bfc18296d445761d39a3d3c0ef35cf6d6abbcd5eacd7290859ff7f6e9511f0df322ea38f76ad567ce52002ed66f1613a52788e380352f1d7f786f6f70
7
- data.tar.gz: 19a05c6823832303a075c6e64ce35adba2b03a4894e450a9e26051b51bb03e02a46d2b9b1480c0d12b167f4ef3de214dd4c45a1abd6ef3f044d67939ca5a840a
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.5
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-05-31 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen