Skip to content

Commit 175b0ba

Browse files
Adapt Guardfile to support nanoc-cli >= 4.14.7 by handling removed reps kwarg.
1 parent 8c02e86 commit 175b0ba

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

bin/template/Guardfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# guard-nanoc 2.1.x passes `reps: []` to FileActionPrinter.new, but
2+
# nanoc-cli >= 4.14.7 removed that parameter. Absorb the stale kwarg.
3+
require 'nanoc/cli'
4+
::Nanoc::CLI::CompileListeners::FileActionPrinter.prepend(Module.new do
5+
def initialize(**); super(); end
6+
end)
7+
18
guard 'rack', :port => 3000 do
29
watch 'Gemfile.lock'
310
end

0 commit comments

Comments
 (0)