Drop support for `jekyll-watch-1.4.0` and older (#7287)

Merge pull request 7287
This commit is contained in:
Ashwin Maroli 2018-10-01 18:19:31 +05:30 committed by jekyllbot
parent a70ed3713f
commit faed9c4143
1 changed files with 1 additions and 10 deletions

View File

@ -85,16 +85,7 @@ module Jekyll
end
External.require_with_graceful_fail "jekyll-watch"
watch_method = Jekyll::Watcher.method(:watch)
if watch_method.parameters.size == 1
watch_method.call(
options
)
else
watch_method.call(
options, site
)
end
Jekyll::Watcher.watch(options, site)
end
end
end