lib/fontcustom/watcher.rb in fontcustom-0.1.3 vs lib/fontcustom/watcher.rb in fontcustom-0.1.4

- old
+ new

@@ -14,14 +14,15 @@ dir = args.first @listener = Listen.to(dir).filter(/\.(eps|svg)$/).change(&callback) begin - puts "Fontcustom is watching your icons at " + dir + puts 'Fontcustom is watching your icons at ' + dir + puts 'Press Ctrl + C to stop.' Fontcustom.compile(*args) @listener.start() - # Catches Cmd/Ctrl + C + # Catches Ctrl + C # Does listen gem have a better way of handling this? rescue SignalException stop end end