Fix auto-generation #899

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+2 −3
Split
View
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('liquid', "~> 2.3")
s.add_runtime_dependency('classifier', "~> 1.3")
- s.add_runtime_dependency('directory_watcher', "~> 1.4.1")
+ s.add_runtime_dependency('directory_watcher', "~> 1.5.1")
s.add_runtime_dependency('maruku', "~> 0.5")
s.add_runtime_dependency('kramdown', "~> 0.14")
s.add_runtime_dependency('pygments.rb', "~> 0.3.2")
@@ -51,9 +51,8 @@ def self.watch(site, options)
puts " Destination: #{destination}"
puts " Auto-regeneration: enabled"
- dw = DirectoryWatcher.new(source)
+ dw = DirectoryWatcher.new('.', :glob => self.globs(source, destination), :pre_load => true)
dw.interval = 1
- dw.glob = self.globs(source, destination)
dw.add_observer do |*args|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")