fangorn 0.0.4 → 0.0.5
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 +8 -4
- 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: 1731c971ae7f512c74809d106f52bfd7ee8c0b3b
|
4
|
+
data.tar.gz: 1cd66bb8c6daa8a830a441bab3debdda63b75f89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf80a66bfc18296d445761d39a3d3c0ef35cf6d6abbcd5eacd7290859ff7f6e9511f0df322ea38f76ad567ce52002ed66f1613a52788e380352f1d7f786f6f70
|
7
|
+
data.tar.gz: 19a05c6823832303a075c6e64ce35adba2b03a4894e450a9e26051b51bb03e02a46d2b9b1480c0d12b167f4ef3de214dd4c45a1abd6ef3f044d67939ca5a840a
|
data/lib/fangorn/app.rb
CHANGED
@@ -31,7 +31,7 @@ module Fangorn
|
|
31
31
|
|
32
32
|
if @serve
|
33
33
|
puts "Watching #{Output::source}"
|
34
|
-
listener = Listen.to(Output::source, :filter => /\.(haml|sass|js|ico)$/, &update)
|
34
|
+
listener = Listen.to(Output::source, :filter => /\.(haml|sass|js|ico|jpg)$/, &update)
|
35
35
|
listener.start
|
36
36
|
|
37
37
|
puts 'Starting server on port 8080'
|
@@ -41,7 +41,7 @@ module Fangorn
|
|
41
41
|
server.start
|
42
42
|
else
|
43
43
|
puts "Updating #{Output::source}"
|
44
|
-
update[Dir[File.join(Output::source, '**/*.{haml,sass,js,ico}')], [], []]
|
44
|
+
update[Dir[File.join(Output::source, '**/*.{haml,sass,js,ico,jpg}')], [], []]
|
45
45
|
end
|
46
46
|
end
|
47
47
|
def report(type, input, output)
|
@@ -60,8 +60,12 @@ module Fangorn
|
|
60
60
|
|
61
61
|
ordered(modified + added).each do |input|
|
62
62
|
if output = Output.make(input)
|
63
|
-
|
64
|
-
|
63
|
+
begin
|
64
|
+
output.create!
|
65
|
+
report 'generated', input, output
|
66
|
+
rescue => e
|
67
|
+
puts e
|
68
|
+
end
|
65
69
|
end
|
66
70
|
end
|
67
71
|
|
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.5
|
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-
|
11
|
+
date: 2016-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: listen
|