From d37db4c06caab2ab417cb54406a6d679a46fd6e5 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Thu, 16 Apr 2020 00:24:55 +0200 Subject: Fix using of the last argument as keyword parameters (deprecated) lib/asciidoctor/interdoc_reftext/processor.rb:85: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call lib/asciidoctor/interdoc_reftext/resolver.rb:16: warning: The called method `initialize' is defined here --- lib/asciidoctor/interdoc_reftext/processor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/asciidoctor/interdoc_reftext/processor.rb b/lib/asciidoctor/interdoc_reftext/processor.rb index 724a154..22f6822 100644 --- a/lib/asciidoctor/interdoc_reftext/processor.rb +++ b/lib/asciidoctor/interdoc_reftext/processor.rb @@ -82,7 +82,7 @@ module Asciidoctor::InterdocReftext # @param document [Asciidoctor::Document] the document to process. def process(document) - resolver = @resolver_class.new(document, @resolver_opts) + resolver = @resolver_class.new(document, **@resolver_opts) document.instance_variable_set(RESOLVER_VAR_NAME, resolver) nil end -- cgit v1.2.3