debian/0000755000000000000000000000000012203666277007201 5ustar debian/patches/0000755000000000000000000000000012203520746010616 5ustar debian/patches/1001_require_semver.patch0000644000000000000000000000055211730464314015341 0ustar Description: executable should require semver, not the above dir. Forwarded: not-needed, upstream will just ignore that problem Author: Jérémy Lal Last-Update: 2012-03-15 --- a/bin/semver +++ b/bin/semver @@ -9,7 +9,7 @@ , gt = [] , lt = [] , eq = [] - , semver = require("../semver") + , semver = require("semver") main() debian/patches/2002_minify_only.patch0000644000000000000000000000107412203520746014640 0ustar Description: build only non-gzipped versions of semver for browser Forwarded: not-needed Author: Jérémy Lal Last-Update: 2013-08-16 --- a/Makefile +++ b/Makefile @@ -1,7 +1,5 @@ files = semver.browser.js \ - semver.min.js \ - semver.browser.js.gz \ - semver.min.js.gz + semver.min.js all: $(files) @@ -16,7 +14,7 @@ cat foot.js ) > semver.browser.js semver.min.js: semver.browser.js - uglifyjs -m semver.min.js + uglifyjs semver.browser.js >semver.min.js %.gz: % gzip --stdout -9 <$< >$@ debian/patches/series0000644000000000000000000000007012203516474012033 0ustar 2001_rename_node_to_nodejs.patch 2002_minify_only.patch debian/patches/2001_rename_node_to_nodejs.patch0000644000000000000000000000060012027033772016617 0ustar Description: Rename node to nodejs in shebang. Forwarded: not-needed Author: Jérémy Lal Last-Update: 2012-09-21 --- a/bin/semver +++ b/bin/semver @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/env nodejs // Standalone semver comparison program. // Exits successfully and prints matching version(s) if // any supplied version is valid and passes all tests. debian/docs0000644000000000000000000000001211730464314010035 0ustar README.md debian/manpages0000644000000000000000000000002011730464314010677 0ustar debian/semver.1 debian/watch0000644000000000000000000000023512123005674010217 0ustar version=3 opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-semver-$1.tar.gz/ \ https://github.com/isaacs/node-semver/tags .*/archive/v?([\d\.]+).tar.gz debian/node-semver.install0000644000000000000000000000015012203521632012772 0ustar semver.js usr/lib/nodejs/semver bin/semver usr/lib/nodejs/semver/bin package.json usr/lib/nodejs/semver debian/control0000644000000000000000000000263712203666117010605 0ustar Source: node-semver Section: web Priority: extra Maintainer: Debian Javascript Maintainers Uploaders: Jérémy Lal Build-Depends: debhelper (>= 8.0.0) , dh-buildinfo , node-uglify Standards-Version: 3.9.4 Homepage: https://github.com/isaacs/node-semver Vcs-Git: git://anonscm.debian.org/collab-maint/node-semver.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-semver.git Package: node-semver Architecture: all Depends: ${misc:Depends} , nodejs Description: Semantic Versioning for Node.js Test if version(s) satisfy the supplied range(s), and sort them. Multiple versions or ranges may be supplied. Program exits successfully if any valid version satisfies all supplied ranges, and prints all satisfying versions. . This package provides the `semver` executable and the Node.js module. . Node.js is an event-based server-side javascript engine. Package: libjs-semver Architecture: all Depends: ${misc:Depends} Description: Semantic Versioning for Node.js Test if version(s) satisfy the supplied range(s), and sort them. Multiple versions or ranges may be supplied. Program exits successfully if any valid version satisfies all supplied ranges, and prints all satisfying versions. . This package provides a version usable in a browser, along with its minified file. . Node.js is an event-based server-side javascript engine. debian/copyright0000644000000000000000000000316412203161133011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: semver Upstream-Contact: https://github.com/isaacs/node-semver/issues Source: https://github.com/isaacs/node-semver Files: * Copyright: 2009-2013 Isaac Z. Schlueter License: BSD-2-clause Files: debian/* Copyright: 2012, Jérémy Lal License: BSD-2-clause License: BSD-2-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/libjs-semver.install0000644000000000000000000000012612203516643013161 0ustar semver.browser.js usr/lib/javascript/semver/ semver.min.js usr/lib/javascript/semver/ debian/node-semver.links0000644000000000000000000000015712203516346012461 0ustar usr/lib/nodejs/semver/semver.js usr/lib/nodejs/semver/index.js usr/lib/nodejs/semver/bin/semver usr/bin/semver debian/source/0000755000000000000000000000000011730464314010471 5ustar debian/source/format0000644000000000000000000000001411730464314011677 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211730464314010367 0ustar 8 debian/rules0000755000000000000000000000026212203517444010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ override_dh_auto_clean: rm -f semver.browser.js semver.min.js debian/semver.10000644000000000000000000001326412203522140010546 0ustar .TH "SEMVER" "1" "August 2013" "" "" .SH "NAME" \fBsemver\fR \- The semantic versioner for npm .SH Usage .P .RS 2 .EX $ npm install semver semver\.valid(\'1\.2\.3\') // \'1\.2\.3\' semver\.valid(\'a\.b\.c\') // null semver\.clean(\' =v1\.2\.3 \') // \'1\.2\.3\' semver\.satisfies(\'1\.2\.3\', \'1\.x || >=2\.5\.0 || 5\.0\.0 \- 7\.2\.3\') // true semver\.gt(\'1\.2\.3\', \'9\.8\.7\') // false semver\.lt(\'1\.2\.3\', \'9\.8\.7\') // true .EE .RE .P As a command\-line utility: .P .RS 2 .EX $ semver \-h Usage: semver [ [\.\.\.]] [\-r | \-i | \-d ] Test if version(s) satisfy the supplied range(s), and sort them\. Multiple versions or ranges may be supplied, unless increment or decrement options are specified\. In that case, only a single version may be used, and it is incremented by the specified level Program exits successfully if any valid version satisfies all supplied ranges, and prints all satisfying versions\. If no versions are valid, or ranges are not satisfied, then exits failure\. Versions are printed in ascending order, so supplying multiple versions to the utility will just sort them\. .EE .RE .SH Versions .P A "version" is described by the v2\.0\.0 specification found at http://semver\.org/\|\. .P A leading \fB"="\fR or \fB"v"\fR character is stripped off and ignored\. .SH Ranges .P The following range styles are supported: .RS 2 .IP \(bu 2 \fB1\.2\.3\fR A specific version\. When nothing else will do\. Note that build metadata is still ignored, so \fB1\.2\.3+build2012\fR will satisfy this range\. .IP \(bu 2 \fB>1\.2\.3\fR Greater than a specific version\. .IP \(bu 2 \fB<1\.2\.3\fR Less than a specific version\. If there is no prerelease tag on the version range, then no prerelease version will be allowed either, even though these are technically "less than"\. .IP \(bu 2 \fB>=1\.2\.3\fR Greater than or equal to\. Note that prerelease versions are NOT equal to their "normal" equivalents, so \fB1\.2\.3\-beta\fR will not satisfy this range, but \fB2\.3\.0\-beta\fR will\. .IP \(bu 2 \fB<=1\.2\.3\fR Less than or equal to\. In this case, prerelease versions ARE allowed, so \fB1\.2\.3\-beta\fR would satisfy\. .IP \(bu 2 \fB1\.2\.3 \- 2\.3\.4\fR := \fB>=1\.2\.3 <=2\.3\.4\fR .IP \(bu 2 \fB~1\.2\.3\fR := \fB>=1\.2\.3\-0 <1\.3\.0\-0\fR "Reasonably close to 1\.2\.3"\. When using tilde operators, prerelease versions are supported as well, but a prerelease of the next significant digit will NOT be satisfactory, so \fB1\.3\.0\-beta\fR will not satisfy \fB~1\.2\.3\fR\|\. .IP \(bu 2 \fB^1\.2\.3\fR := \fB>=1\.2\.3\-0 <2\.0\.0\-0\fR "Compatible with 1\.2\.3"\. When using caret operators, anything from the specified version (including prerelease) will be supported up to, but not including, the next major version (or its prereleases)\. \fB1\.5\.1\fR will satisfy \fB^1\.2\.3\fR, while \fB1\.2\.2\fR and \fB2\.0\.0\-beta\fR will not\. .IP \(bu 2 \fB^0\.1\.3\fR := \fB>=0\.1\.3\-0 <0\.2\.0\-0\fR "Compatible with 0\.1\.3"\. 0\.x\.x versions are special: the first non\-zero component indicates potentially breaking changes, meaning the caret operator matches any version with the same first non\-zero component starting at the specified version\. .IP \(bu 2 \fB^0\.0\.2\fR := \fB=0\.0\.2\fR "Only the version 0\.0\.2 is considered compatible" .IP \(bu 2 \fB~1\.2\fR := \fB>=1\.2\.0\-0 <1\.3\.0\-0\fR "Any version starting with 1\.2" .IP \(bu 2 \fB^1\.2\fR := \fB>=1\.2\.0\-0 <2\.0\.0\-0\fR "Any version compatible with 1\.2" .IP \(bu 2 \fB1\.2\.x\fR := \fB>=1\.2\.0\-0 <1\.3\.0\-0\fR "Any version starting with 1\.2" .IP \(bu 2 \fB~1\fR := \fB>=1\.0\.0\-0 <2\.0\.0\-0\fR "Any version starting with 1" .IP \(bu 2 \fB^1\fR := \fB>=1\.0\.0\-0 <2\.0\.0\-0\fR "Any version compatible with 1" .IP \(bu 2 \fB1\.x\fR := \fB>=1\.0\.0\-0 <2\.0\.0\-0\fR "Any version starting with 1" .RE .P Ranges can be joined with either a space (which implies "and") or a \fB||\fR (which implies "or")\. .SH Functions .P All methods and classes take a final \fBloose\fR boolean argument that, if true, will be more forgiving about not\-quite\-valid semver strings\. The resulting output will always be 100% strict, of course\. .P Strict\-mode Comparators and Ranges will be strict about the SemVer strings that they parse\. .RS 2 .IP \(bu 2 valid(v): Return the parsed version, or null if it\'s not valid\. .IP \(bu 2 inc(v, release): Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it\'s not valid\. .RE .SS Comparison .RS 2 .IP \(bu 2 gt(v1, v2): \fBv1 > v2\fR .IP \(bu 2 gte(v1, v2): \fBv1 >= v2\fR .IP \(bu 2 lt(v1, v2): \fBv1 < v2\fR .IP \(bu 2 lte(v1, v2): \fBv1 <= v2\fR .IP \(bu 2 eq(v1, v2): \fBv1 == v2\fR This is true if they\'re logically equivalent, even if they\'re not the exact same string\. You already know how to compare strings\. .IP \(bu 2 neq(v1, v2): \fBv1 != v2\fR The opposite of eq\. .IP \(bu 2 cmp(v1, comparator, v2): Pass in a comparison string, and it\'ll call the corresponding function above\. \fB"==="\fR and \fB"!=="\fR do simple string comparison, but are included for completeness\. Throws if an invalid comparison string is provided\. .IP \(bu 2 compare(v1, v2): Return 0 if v1 == v2, or 1 if v1 is greater, or \-1 if v2 is greater\. Sorts in ascending order if passed to Array\.sort()\. .IP \(bu 2 rcompare(v1, v2): The reverse of compare\. Sorts an array of versions in descending order when passed to Array\.sort()\. .RE .SS Ranges .RS 2 .IP \(bu 2 validRange(range): Return the valid range or null if it\'s not valid .IP \(bu 2 satisfies(version, range): Return true if the version satisfies the range\. .IP \(bu 2 maxSatisfying(versions, range): Return the highest version in the list that satisfies the range, or null if none of them do\. .RE debian/changelog0000644000000000000000000000300512203666261011042 0ustar node-semver (2.1.0-2) unstable; urgency=low * Improve long descriptions to explain which package provides what. -- Jérémy Lal Sat, 17 Aug 2013 14:28:39 +0200 node-semver (2.1.0-1) unstable; urgency=low * Upstream update * control: + Standards-Version 3.9.4 + canonicalize Vcs fields + add node-uglify as Build-Dependency * copyright: + add Upstream-Contact, Source fields + use module name for Upstream-Name + upstream switch to BSD-2-clause. Stick to it for debian/* * package libjs-semver, which is a distinct version from node-semver, along with its minified file. * install bin/semver next to semver.js, along with package.json, they are required to work without patches. * update semver.1 * patches: + remove 1001 patch, no longer necessary + add 2002 patch to fix build of browser files -- Jérémy Lal Sat, 17 Aug 2013 00:17:00 +0200 node-semver (1.1.4-1) experimental; urgency=low * Upstream update. * Depend on nodejs (>= 0.6.19~dfsg1-3), shebang renamed to "nodejs". * Use github url in watch file. -- Jérémy Lal Fri, 22 Mar 2013 08:58:07 +0100 node-semver (1.0.13-2) unstable; urgency=low * Fix watch file. * Rename node shebang to nodejs. Closes: #684418. -- Jérémy Lal Fri, 21 Sep 2012 12:18:26 +0200 node-semver (1.0.13-1) unstable; urgency=low * Initial release (Closes: #664154) -- Jérémy Lal Sat, 17 Mar 2012 23:35:56 +0100