Sha256: 16d959940e66452e65b889922b158ecaa503135c184ed41306ee0c27d3308c24

Contents?: true

Size: 465 Bytes

Versions: 20

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true
module Puppet::Util::Package::Version
  class Gem < ::Gem::Version
    def self.parse(version)
      raise ValidationFailure, version unless version.is_a? String
      raise ValidationFailure, version unless version =~ ANCHORED_VERSION_PATTERN
      new(version)
    end

    class ValidationFailure < ArgumentError
      def initialize(version)
        super("#{version} is not a valid ruby gem version.")
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
puppet-8.3.0 lib/puppet/util/package/version/gem.rb
puppet-8.3.0-x86-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.3.0-x64-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.3.0-universal-darwin lib/puppet/util/package/version/gem.rb
puppet-8.3.1 lib/puppet/util/package/version/gem.rb
puppet-8.3.1-x86-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.3.1-x64-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.3.1-universal-darwin lib/puppet/util/package/version/gem.rb
puppet-8.2.0 lib/puppet/util/package/version/gem.rb
puppet-8.2.0-x86-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.2.0-x64-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.2.0-universal-darwin lib/puppet/util/package/version/gem.rb
puppet-8.1.0 lib/puppet/util/package/version/gem.rb
puppet-8.1.0-x86-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.1.0-x64-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.1.0-universal-darwin lib/puppet/util/package/version/gem.rb
puppet-8.0.1 lib/puppet/util/package/version/gem.rb
puppet-8.0.1-x86-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.0.1-x64-mingw32 lib/puppet/util/package/version/gem.rb
puppet-8.0.1-universal-darwin lib/puppet/util/package/version/gem.rb