Skip to content

Commit

Permalink
don't require directory_watcher unless it's needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pjhyett committed Dec 15, 2008
1 parent 2bb59d5 commit bf9dda6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bin/jekyll
Expand Up @@ -69,6 +69,8 @@ case ARGV.size
end

if options[:auto]
require 'directory_watcher'

puts "Auto-regenerating enabled: #{source} -> #{destination}"

dw = DirectoryWatcher.new(source)
Expand Down
1 change: 0 additions & 1 deletion lib/jekyll.rb
Expand Up @@ -17,7 +17,6 @@
rescue LoadError
puts "The rdiscount gem is required for markdown support!"
end
require 'directory_watcher'

# internal requires
require 'jekyll/site'
Expand Down

0 comments on commit bf9dda6

Please sign in to comment.