Skip to content

Commit

Permalink
Upgrade to guard/listen 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Feb 24, 2014
1 parent 2988bb6 commit 77f26d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jekyll.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Gem::Specification.new do |s|

s.add_runtime_dependency('liquid', "~> 2.5.5")
s.add_runtime_dependency('classifier', "~> 1.3")
s.add_runtime_dependency('listen', "~> 1.3")
s.add_runtime_dependency('listen', "~> 2.5")
s.add_runtime_dependency('maruku', "0.7.0")
s.add_runtime_dependency('pygments.rb', "~> 0.5.0")
s.add_runtime_dependency('mercenary', "~> 0.3.1")
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll/commands/build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def self.watch(site, options)

Jekyll.logger.info "Auto-regeneration:", "enabled"

listener = Listen::Listener.new(source, :ignore => ignored) do |modified, added, removed|
listener = Listen.to(source, :ignore => ignored) do |modified, added, removed|
t = Time.now.strftime("%Y-%m-%d %H:%M:%S")
n = modified.length + added.length + removed.length
print Jekyll.logger.formatted_topic("Regenerating:") + "#{n} files at #{t} "
Expand Down

0 comments on commit 77f26d5

Please sign in to comment.