Sha256: 460aceb7b319b243cca70b51578987e8098bb98c43e095d9659d5215fdda2f7c

Contents?: true

Size: 401 Bytes

Versions: 17

Compression:

Stored size: 401 Bytes

Contents

require 'pact_broker/db'
require 'pact_broker/repositories/helpers'

module PactBroker
  module Tags
    # The tag associated with the latest verification for a given tag
    class TagWithLatestFlag < Sequel::Model(:tags_with_latest_flag)

      dataset_module do
        include PactBroker::Repositories::Helpers
      end

      def latest?
        !values[:latest].nil?
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pact_broker-2.24.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.23.4 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.23.3 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.23.2 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.23.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.23.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.22.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.21.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.20.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.19.2 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.19.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.19.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.18.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.17.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.17.0 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.16.1 lib/pact_broker/tags/tag_with_latest_flag.rb
pact_broker-2.16.0 lib/pact_broker/tags/tag_with_latest_flag.rb