From 8bba62c490ebad338d12b6e1b1a2b158f96308a0 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Tue, 30 May 2023 23:46:30 +0200 Subject: [PATCH] Fix deprecated way of calling ERB.new in Ruby 3.1 See https://bugs.ruby-lang.org/issues/14256 - `eoutvar` is supposed to be passed as a keyword argument now. In Ruby 3.1 (but probably since some earlier version than that), the old way was triggering a deprecation warning. --- _build/build-html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_build/build-html b/_build/build-html index b717adb6a..4e8ca5dda 100755 --- a/_build/build-html +++ b/_build/build-html @@ -457,7 +457,7 @@ class FormatPagesGenerator def erb(name) bin_dir = File.expand_path(File.dirname(__FILE__)) - ERB.new(File.read("#{bin_dir}/#{name}.html.erb"), nil, nil, "_erbout_#{name}") + ERB.new(File.read("#{bin_dir}/#{name}.html.erb"), eoutvar: "_erbout_#{name}") end end