Sha256: 31e71fb2b8f0fcb014717a39692c1f21dba23ddf623480cd3871cd4923f2117b

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

module Pact
  class SpecificationVersion < Gem::Version

    NIL_VERSION = Pact::SpecificationVersion.new('')

    def major
      segments.first
    end

    def === other
      major && major == other
    end

    def after? other
      major && other < major
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact-support-1.5.2 lib/pact/specification_version.rb
pact-support-1.5.1 lib/pact/specification_version.rb
pact-support-1.5.0 lib/pact/specification_version.rb