Sha256: aafa13c2e748debec75171d03586c7423daa73e62172b923b75065ed44f48170

Contents?: true

Size: 636 Bytes

Versions: 20

Compression:

Stored size: 636 Bytes

Contents

# frozen_string_literal: true

require "versionaire/cast"
require "versionaire/error"
require "versionaire/function"
require "versionaire/version"

module Versionaire
  DELIMITER = "."

  PATTERN = /
              \A(                  # Start of string and OR.
              \d*                  # Major only.
              |                    # OR pipe.
              \d+                  # Major.
              #{DELIMITER}?        # Delimiter.
              \d*                  # Minor.
              (?:#{DELIMITER}\d+)  # Passive delimiter and patch.
              )\z                  # End of OR and string.
            /x
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
versionaire-14.0.0 lib/versionaire.rb
versionaire-13.10.0 lib/versionaire.rb
versionaire-13.9.0 lib/versionaire.rb
versionaire-13.8.0 lib/versionaire.rb
versionaire-13.7.0 lib/versionaire.rb
versionaire-13.6.0 lib/versionaire.rb
versionaire-13.5.0 lib/versionaire.rb
versionaire-13.4.0 lib/versionaire.rb
versionaire-13.3.0 lib/versionaire.rb
versionaire-13.2.0 lib/versionaire.rb
versionaire-13.1.0 lib/versionaire.rb
versionaire-13.0.0 lib/versionaire.rb
versionaire-12.1.1 lib/versionaire.rb
versionaire-12.1.0 lib/versionaire.rb
versionaire-12.0.1 lib/versionaire.rb
versionaire-12.0.0 lib/versionaire.rb
versionaire-11.0.3 lib/versionaire.rb
versionaire-11.0.2 lib/versionaire.rb
versionaire-11.0.1 lib/versionaire.rb
versionaire-11.0.0 lib/versionaire.rb