Sha256: b4e8c6941ea9971b31bcf622b05c63d23dbe58b9593cfb6125f37b3237222fe0

Contents?: true

Size: 1.26 KB

Versions: 41

Compression:

Stored size: 1.26 KB

Contents

require 'pact_broker/pacts/latest_pact_publications_by_consumer_version'
require 'pact_broker/pacts/head_pact'

module PactBroker
  module Pacts

    # latest pact for each consumer/provider pair
    class LatestPactPublications < LatestPactPublicationsByConsumerVersion
      set_dataset(:latest_pact_publications)

      # This pact may well be the latest for certain tags, but in this query
      # we don't know what they are
      def to_domain
        HeadPact.new(super, consumer_version_number, nil)
      end
    end
  end
end

# Table: latest_pact_publications
# Columns:
#  id                      | integer                     |
#  consumer_id             | integer                     |
#  consumer_name           | text                        |
#  consumer_version_id     | integer                     |
#  consumer_version_number | text                        |
#  consumer_version_order  | integer                     |
#  provider_id             | integer                     |
#  provider_name           | text                        |
#  revision_number         | integer                     |
#  pact_version_id         | integer                     |
#  pact_version_sha        | text                        |
#  created_at              | timestamp without time zone |

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
pact_broker-2.55.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.54.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.53.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.52.2 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.52.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.52.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.51.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.50.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.50.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.49.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.48.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.47.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.47.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.46.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.45.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.44.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.43.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.42.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.41.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.40.0 lib/pact_broker/pacts/latest_pact_publications.rb