From fdb70cfd4b8d29c9c24de8f165a7b0c28df2eb79 Mon Sep 17 00:00:00 2001 From: Yousaf Nabi Date: Mon, 13 May 2024 18:10:55 +0100 Subject: [PATCH] fix: explicitly require openstruct --- lib/pact_broker/client/pacts/list_latest_versions.rb | 1 + lib/pact_broker/client/publish_pacts.rb | 1 + lib/pact_broker/client/webhooks/create.rb | 1 + lib/pactflow/client/provider_contracts/publish.rb | 1 + lib/pactflow/client/provider_contracts/publish_the_old_way.rb | 1 + spec/integration/can_i_merge_spec.rb | 1 + spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb | 1 + spec/lib/pact_broker/client/cli/broker_publish_spec.rb | 1 + .../pact_broker/client/cli/broker_run_webhook_commands_spec.rb | 1 + spec/lib/pactflow/client/provider_contracts/publish_spec.rb | 1 + 10 files changed, 10 insertions(+) diff --git a/lib/pact_broker/client/pacts/list_latest_versions.rb b/lib/pact_broker/client/pacts/list_latest_versions.rb index a60e934f..09540573 100644 --- a/lib/pact_broker/client/pacts/list_latest_versions.rb +++ b/lib/pact_broker/client/pacts/list_latest_versions.rb @@ -1,6 +1,7 @@ require 'pact_broker/client/hal' require 'pact_broker/client/command_result' require 'pact_broker/client/hal_client_methods' +require 'ostruct' module PactBroker module Client diff --git a/lib/pact_broker/client/publish_pacts.rb b/lib/pact_broker/client/publish_pacts.rb index 44340109..59a76530 100644 --- a/lib/pact_broker/client/publish_pacts.rb +++ b/lib/pact_broker/client/publish_pacts.rb @@ -4,6 +4,7 @@ require 'pact_broker/client/publish_pacts_the_old_way' require 'pact_broker/client/colorize_notices' require 'pact_broker/client/hash_refinements' +require 'ostruct' module PactBroker module Client diff --git a/lib/pact_broker/client/webhooks/create.rb b/lib/pact_broker/client/webhooks/create.rb index 738d34a6..feda1b78 100644 --- a/lib/pact_broker/client/webhooks/create.rb +++ b/lib/pact_broker/client/webhooks/create.rb @@ -5,6 +5,7 @@ require 'pact_broker/client/command_result' require "pact_broker/client/backports" require "pact_broker/client/hash_refinements" +require 'ostruct' module PactBroker module Client diff --git a/lib/pactflow/client/provider_contracts/publish.rb b/lib/pactflow/client/provider_contracts/publish.rb index 3b343162..d7df4dd7 100644 --- a/lib/pactflow/client/provider_contracts/publish.rb +++ b/lib/pactflow/client/provider_contracts/publish.rb @@ -2,6 +2,7 @@ require "pact_broker/client/base_command" require "pact_broker/client/colorize_notices" require "pactflow/client/provider_contracts/publish_the_old_way" +require 'ostruct' module Pactflow module Client diff --git a/lib/pactflow/client/provider_contracts/publish_the_old_way.rb b/lib/pactflow/client/provider_contracts/publish_the_old_way.rb index 44acaf39..9930c942 100644 --- a/lib/pactflow/client/provider_contracts/publish_the_old_way.rb +++ b/lib/pactflow/client/provider_contracts/publish_the_old_way.rb @@ -2,6 +2,7 @@ require "pact_broker/client/versions/create" require 'pact_broker/client/colorize_notices' require "base64" +require 'ostruct' module Pactflow module Client diff --git a/spec/integration/can_i_merge_spec.rb b/spec/integration/can_i_merge_spec.rb index b6a69b58..eef51a0a 100644 --- a/spec/integration/can_i_merge_spec.rb +++ b/spec/integration/can_i_merge_spec.rb @@ -1,4 +1,5 @@ require "pact_broker/client/cli/broker" +require 'ostruct' module PactBroker module Client diff --git a/spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb b/spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb index 3f4ef32d..fc9f7a0c 100644 --- a/spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb +++ b/spec/lib/pact_broker/client/cli/broker_can_i_deploy_spec.rb @@ -1,6 +1,7 @@ require 'pact_broker/client/cli/broker' require 'pact_broker/client/cli/version_selector_options_parser' require 'pact_broker/client/can_i_deploy' +require 'ostruct' module PactBroker module Client diff --git a/spec/lib/pact_broker/client/cli/broker_publish_spec.rb b/spec/lib/pact_broker/client/cli/broker_publish_spec.rb index bd58eb0e..83a2b089 100644 --- a/spec/lib/pact_broker/client/cli/broker_publish_spec.rb +++ b/spec/lib/pact_broker/client/cli/broker_publish_spec.rb @@ -1,6 +1,7 @@ require 'pact_broker/client/cli/broker' require 'pact_broker/client/publish_pacts' require 'pact_broker/client/git' +require 'ostruct' module PactBroker::Client::CLI describe Broker do diff --git a/spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb b/spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb index 7818becc..77702276 100644 --- a/spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb +++ b/spec/lib/pact_broker/client/cli/broker_run_webhook_commands_spec.rb @@ -1,5 +1,6 @@ require 'pact_broker/client/cli/broker' require 'pact_broker/client/webhooks/create' +require 'ostruct' module PactBroker module Client diff --git a/spec/lib/pactflow/client/provider_contracts/publish_spec.rb b/spec/lib/pactflow/client/provider_contracts/publish_spec.rb index cb1f5a33..6af9094d 100644 --- a/spec/lib/pactflow/client/provider_contracts/publish_spec.rb +++ b/spec/lib/pactflow/client/provider_contracts/publish_spec.rb @@ -1,4 +1,5 @@ require "pactflow/client/provider_contracts/publish" +require 'ostruct' module Pactflow module Client