From 26fb391fd994e985c8dcd310477eaffe0b72947a Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Sat, 1 Apr 2023 17:50:48 -0400 Subject: [PATCH] Fix compiled_content filter on Ruby 3. It is apparently now required to use ** when passing a hash to a function that takes keyword arguments. --- lib/compiledcontent.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiledcontent.rb b/lib/compiledcontent.rb index 016ed23..80e7911 100644 --- a/lib/compiledcontent.rb +++ b/lib/compiledcontent.rb @@ -1,7 +1,7 @@ # Nick's web site: compiled_content filter. Simply calls the compiled_content # method on the current item to retrieve the text from a named rep or snapshot. # -# Copyright © 2022 Nick Bowler +# Copyright © 2022-2023 Nick Bowler # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -20,6 +20,6 @@ class CompiledContentFilter < Nanoc::Filter identifier :compiled_content def run(content, params = {}) - return @item.compiled_content(params) + return @item.compiled_content(**params) end end -- 2.43.0