Skip to content

Commit

Permalink
Fix Struct initialization for upcoming change to Ruby after 3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 29, 2021
1 parent 4f76d96 commit 20528c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdf/spec/matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def io_name
@info = if (info.id rescue false)
info
elsif info.is_a?(Logger)
Info.new(logger: info)
Info.new({logger: info})
elsif info.is_a?(Hash)
Info.new(info[:id], info[:logger], info[:action], info[:result], info[:format], info[:base], info[:prefixes])
else
Expand Down

0 comments on commit 20528c3

Please sign in to comment.