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