From 25664850f1515789d922e4dd0f0e91ac62a6c2a8 Mon Sep 17 00:00:00 2001 From: David Kinzer Date: Thu, 15 Dec 2022 16:16:03 -0500 Subject: [PATCH] Fix argument error in ruby 3.1 version. --- lib/cob_web_index.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cob_web_index.rb b/lib/cob_web_index.rb index 99f98d2..49d1ec3 100644 --- a/lib/cob_web_index.rb +++ b/lib/cob_web_index.rb @@ -51,7 +51,7 @@ def self.pull(opts = {}) .each do |path| url = "#{base_url}#{path}.json" - ingest(opts.merge(ingest_path: url, delete_collection: delete.once)) + ingest(**opts.merge(ingest_path: url, delete_collection: delete.once)) end end @@ -70,7 +70,7 @@ def self.ingest_fixtures(opts = {}) delete = TrueOnce.new Dir.glob(fixtures).each do |file| - ingest(opts.merge(ingest_path: file, delete_collection: delete.once)) + ingest(**opts.merge(ingest_path: file, delete_collection: delete.once)) end end end