summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2020-04-16 00:24:55 +0200
committerJakub Jirutka <jakub@jirutka.cz>2020-04-16 00:25:38 +0200
commitd37db4c06caab2ab417cb54406a6d679a46fd6e5 (patch)
tree5687835ba807c88e19e87f561f9a5f9928e267ba
parent0df23cb5ebc5506710f163d7081b4b96b5554d3c (diff)
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
-rw-r--r--lib/asciidoctor/interdoc_reftext/processor.rb2
1 files changed, 1 insertions, 1 deletions
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