Sha256: 573342b568a1e79453439a8b85fd0279ba288b6148f1c94fdb58d92721b15435

Contents?: true

Size: 630 Bytes

Versions: 17

Compression:

Stored size: 630 Bytes

Contents

module PactBroker
  module Api
    module Resources
      module PacticipantResourceMethods

        def potential_duplicate_pacticipants? pacticipant_names
          if PactBroker.configuration.check_for_potential_duplicate_pacticipant_names
            messages = pacticipant_service.messages_for_potential_duplicate_pacticipants pacticipant_names, base_url
            if messages.any?
              response.body = messages.join("\n")
              response.headers["Content-Type"] = "text/plain"
            end
            messages.any?
          else
            false
          end
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pact_broker-2.112.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.111.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.109.1 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.109.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.108.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.107.1 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.107.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.106.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.105.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.104.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.103.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.102.2 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.102.1 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.102.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.101.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb
pact_broker-2.100.0 lib/pact_broker/api/resources/pacticipant_resource_methods.rb