fangorn 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/fangorn/app.rb +8 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 38482dad95e40ba7cfdcff2f99bb4526e1fc6add
4
- data.tar.gz: 3434450ad52c2b9eccca30d222751dfbe22550f1
3
+ metadata.gz: 1731c971ae7f512c74809d106f52bfd7ee8c0b3b
4
+ data.tar.gz: 1cd66bb8c6daa8a830a441bab3debdda63b75f89
5
5
  SHA512:
6
- metadata.gz: f3bda77ff06c9655e9cb07d680a2e283b4f711a9eff525761a4ad3b101aa1db506f56157da565ec6f8804e67231060d0a66686494b3dd8aaee20eb1f53f37a2d
7
- data.tar.gz: 0abb09bc232e30bdbf5cdc6b095f5f1c919a1aacbabe45c5cfb22dbdf8346b9b10602f226627513808a837771bc0a4b96be4c14a924255ed1f22b2d408ebd668
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
- output.create!
64
- report 'generated', input, output
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
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-25 00:00:00.000000000 Z
11
+ date: 2016-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: listen