Sha256: 5f82404719f9cdbcf48464a0c6971bd487b855138a89737d20d66cf18c3654de

Contents?: true

Size: 301 Bytes

Versions: 50

Compression:

Stored size: 301 Bytes

Contents

module Pact
  class SpecificationVersion < Gem::Version

    def major
      segments.first
    end

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

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

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

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
pact-support-1.21.2 lib/pact/specification_version.rb
pact-support-1.21.1 lib/pact/specification_version.rb
pact-support-1.21.0 lib/pact/specification_version.rb
pact-support-1.20.2 lib/pact/specification_version.rb
pact-support-1.20.1 lib/pact/specification_version.rb
pact-support-1.20.0 lib/pact/specification_version.rb
pact-support-1.19.0 lib/pact/specification_version.rb
pact-support-1.18.1 lib/pact/specification_version.rb
pact-support-1.18.0 lib/pact/specification_version.rb
hs-pact-support-1.17.1 lib/pact/specification_version.rb
pact-support-1.17.0 lib/pact/specification_version.rb
pact-support-1.16.10 lib/pact/specification_version.rb
pact-support-1.16.9 lib/pact/specification_version.rb
pact-support-1.16.8 lib/pact/specification_version.rb
pact-support-1.16.7 lib/pact/specification_version.rb
pact-support-1.16.6 lib/pact/specification_version.rb
pact-support-1.16.5 lib/pact/specification_version.rb
pact-support-1.16.4 lib/pact/specification_version.rb
pact-support-1.16.3 lib/pact/specification_version.rb
pact-support-1.16.2 lib/pact/specification_version.rb