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.68.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.68.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.67.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.66.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.65.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.64.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.63.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.62.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.61.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.60.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.60.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.59.2 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.59.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.59.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.58.3 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.58.2 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.58.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.57.0 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.56.1 lib/pact_broker/pacts/latest_pact_publications.rb
pact_broker-2.56.0 lib/pact_broker/pacts/latest_pact_publications.rb