@snyk/ruby-semver
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -1,2 +0,2 @@ | ||
const { GemVersion } = require('./generated'); | ||
const GemVersion = require('./generated').GemVersion; | ||
@@ -3,0 +3,0 @@ module.exports = { |
@@ -1,2 +0,2 @@ | ||
const { GemVersion } = require('./generated'); | ||
const GemVersion = require('./generated').GemVersion; | ||
@@ -3,0 +3,0 @@ module.exports = { |
@@ -1,4 +0,10 @@ | ||
const { GemVersion, GemRequirement } = require('./generated'); | ||
const { compare, rcompare } = require('./comparison'); | ||
'use strict'; | ||
const _generated = require('./generated'); | ||
const GemVersion = _generated.GemVersion; | ||
const GemRequirement = _generated.GemRequirement; | ||
const _comparison = require('./comparison'); | ||
const compare = _comparison.compare; | ||
const rcompare = _comparison.rcompare; | ||
module.exports = { | ||
@@ -20,3 +26,5 @@ validRange, | ||
const requirements = []; | ||
gemRequirement.$requirements().forEach(([op, version]) => { | ||
gemRequirement.$requirements().forEach((req) => { | ||
const op = req[0]; | ||
const version = req[1]; | ||
if (op.indexOf('~') !== -1) { | ||
@@ -23,0 +31,0 @@ requirements.push(`>= ${version}`); |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "1.1.0" | ||
"version": "1.2.0" | ||
} |
715342
16309