Sha256: 774e46644d86c565b9567204899ffe68f38c8808dab54a8ccbf8157e8a2a04f6

Contents?: true

Size: 687 Bytes

Versions: 90

Compression:

Stored size: 687 Bytes

Contents

require 'pact_broker/api/resources/provider_pacts'
require 'pact_broker/configuration'
require 'pact_broker/api/decorators/provider_pacts_decorator'

module PactBroker
  module Api
    module Resources
      class LatestProviderPacts < ProviderPacts
        private

        def pacts
          pact_service.find_latest_pact_versions_for_provider provider_name, tag: identifier_from_path[:tag]
        end

        def resource_title
          suffix = identifier_from_path[:tag] ? " with consumer version tag '#{identifier_from_path[:tag]}'" : ""
          "Latest pact versions for the provider #{identifier_from_path[:provider_name]}#{suffix}"
        end
      end
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
pact_broker-2.79.1 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.79.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.78.1 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.78.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.77.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.76.2 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.76.1 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.76.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.75.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.74.1 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.74.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.73.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.72.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.71.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.70.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.69.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.68.1 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.68.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.67.0 lib/pact_broker/api/resources/latest_provider_pacts.rb
pact_broker-2.66.0 lib/pact_broker/api/resources/latest_provider_pacts.rb