@renovatebot/ruby-semver
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -36,3 +36,27 @@ "use strict"; | ||
class Requirement { | ||
_requirements; | ||
// OPS = { #:nodoc: | ||
// "=" => lambda { |v, r| v == r }, | ||
// "!=" => lambda { |v, r| v != r }, | ||
// ">" => lambda { |v, r| v > r }, | ||
// "<" => lambda { |v, r| v < r }, | ||
// ">=" => lambda { |v, r| v >= r }, | ||
// "<=" => lambda { |v, r| v <= r }, | ||
// "~>" => lambda { |v, r| v >= r && v.release < r.bump } | ||
// }.freeze | ||
// | ||
// SOURCE_SET_REQUIREMENT = Struct.new(:for_lockfile).new "!" # :nodoc: | ||
// | ||
// quoted = OPS.keys.map { |k| Regexp.quote k }.join "|" | ||
// PATTERN_RAW = "\\s*(#{quoted})?\\s*(#{Gem::Version::VERSION_PATTERN})\\s*".freeze # :nodoc: | ||
// ## | ||
// # A regular expression that matches a requirement | ||
// | ||
// PATTERN = /\A#{PATTERN_RAW}\z/.freeze | ||
static PATTERN = /^\s*(=|!=|>|<|>=|<=|~>)?\s*([0-9]+(\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)\s*$/; | ||
// ## | ||
// # The default requirement matches any non-prerelease version | ||
// DefaultRequirement = [">=", Gem::Version.new(0)].freeze | ||
static DEFAULT_REQUIREMENT = ['>=', new version_1.Version('0')]; | ||
// ## | ||
// # The default requirement matches any version | ||
@@ -392,27 +416,4 @@ // | ||
} | ||
// OPS = { #:nodoc: | ||
// "=" => lambda { |v, r| v == r }, | ||
// "!=" => lambda { |v, r| v != r }, | ||
// ">" => lambda { |v, r| v > r }, | ||
// "<" => lambda { |v, r| v < r }, | ||
// ">=" => lambda { |v, r| v >= r }, | ||
// "<=" => lambda { |v, r| v <= r }, | ||
// "~>" => lambda { |v, r| v >= r && v.release < r.bump } | ||
// }.freeze | ||
// | ||
// SOURCE_SET_REQUIREMENT = Struct.new(:for_lockfile).new "!" # :nodoc: | ||
// | ||
// quoted = OPS.keys.map { |k| Regexp.quote k }.join "|" | ||
// PATTERN_RAW = "\\s*(#{quoted})?\\s*(#{Gem::Version::VERSION_PATTERN})\\s*".freeze # :nodoc: | ||
// ## | ||
// # A regular expression that matches a requirement | ||
// | ||
// PATTERN = /\A#{PATTERN_RAW}\z/.freeze | ||
Requirement.PATTERN = /^\s*(=|!=|>|<|>=|<=|~>)?\s*([0-9]+(\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)\s*$/; | ||
// ## | ||
// # The default requirement matches any non-prerelease version | ||
// DefaultRequirement = [">=", Gem::Version.new(0)].freeze | ||
Requirement.DEFAULT_REQUIREMENT = ['>=', new version_1.Version('0')]; | ||
exports.Requirement = Requirement; | ||
const parse = (obj) => Requirement.parse(obj); | ||
exports.parse = parse; |
@@ -12,2 +12,6 @@ "use strict"; | ||
class Version { | ||
// VERSION_PATTERN = '[0-9]+(?>\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?'.freeze # :nodoc: | ||
// ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/.freeze # :nodoc: | ||
static ANCHORED_VERSION_PATTERN = /^\s*([0-9]+(\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)?\s*$/; | ||
_version; | ||
// ## | ||
@@ -382,7 +386,4 @@ // # A string representation of this Version. | ||
} // end | ||
// VERSION_PATTERN = '[0-9]+(?>\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?'.freeze # :nodoc: | ||
// ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/.freeze # :nodoc: | ||
Version.ANCHORED_VERSION_PATTERN = /^\s*([0-9]+(\.[0-9a-zA-Z]+)*(-[0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*)?)?\s*$/; | ||
exports.Version = Version; | ||
const create = (val) => Version.create(val); | ||
exports.create = create; |
{ | ||
"name": "@renovatebot/ruby-semver", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"license": "MIT", | ||
@@ -39,7 +39,8 @@ "description": "Ruby SemVer in TypeScript.", | ||
"@renovate/eslint-plugin": "https://github.com/renovatebot/eslint-plugin#v0.0.5", | ||
"@types/jest": "29.5.1", | ||
"@typescript-eslint/eslint-plugin": "5.59.1", | ||
"@typescript-eslint/parser": "5.59.1", | ||
"@tsconfig/node18": "2.0.1", | ||
"@types/jest": "29.5.2", | ||
"@typescript-eslint/eslint-plugin": "5.59.8", | ||
"@typescript-eslint/parser": "5.59.8", | ||
"conventional-changelog-conventionalcommits": "5.0.0", | ||
"eslint": "8.39.0", | ||
"eslint": "8.41.0", | ||
"eslint-config-prettier": "8.8.0", | ||
@@ -58,7 +59,7 @@ "eslint-formatter-gha": "1.4.2", | ||
"prettier-plugin-package": "1.3.0", | ||
"semantic-release": "21.0.2", | ||
"semantic-release": "21.0.3", | ||
"ts-jest": "29.1.0", | ||
"typescript": "5.0.4" | ||
"typescript": "5.1.3" | ||
}, | ||
"packageManager": "yarn@1.22.19" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
38197
1049
23