Diff of the two buildlogs: -- --- b1/build.log 2021-06-20 16:03:44.688652152 +0000 +++ b2/build.log 2021-06-20 16:04:51.970106155 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Jun 20 04:03:06 -12 2021 -I: pbuilder-time-stamp: 1624204986 +I: Current time: Sun Jul 24 12:26:46 +14 2022 +I: pbuilder-time-stamp: 1658615206 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/buster-reproducible-base.tgz] I: copying local configuration @@ -17,7 +17,7 @@ I: Extracting source gpgv: unknown type of key resource 'trustedkeys.kbx' gpgv: keyblock resource '/root/.gnupg/trustedkeys.kbx': General error -gpgv: Signature made Sun Mar 18 08:10:44 2018 -12 +gpgv: Signature made Mon Mar 19 10:10:44 2018 +14 gpgv: using RSA key 7E43E9ACBF727AB3CF0885338716CE4614A452D8 gpgv: Can't check signature: No public key dpkg-source: warning: failed to verify signature on ./ruby-semantic-puppet_1.0.2-1.dsc @@ -26,136 +26,170 @@ dpkg-source: info: unpacking ruby-semantic-puppet_1.0.2-1.debian.tar.xz I: using fakeroot in build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/22410/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/51453/tmp/hooks/D01_modify_environment starting +debug: Running on ionos15-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +Removing 'diversion of /bin/sh to /bin/sh.distrib by dash' +Adding 'diversion of /bin/sh to /bin/sh.distrib by bash' +Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash' +Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash' +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/51453/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/51453/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=15' - DISTRIBUTION='' - HOME='/root' - HOST_ARCH='amd64' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="0" [2]="3" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.0.3(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=16' + DIRSTACK=() + DISTRIBUTION= + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='4d589813e9434c7f9aec9df1490f631e' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='22410' - PS1='# ' - PS2='> ' + INVOCATION_ID=656adbfc2f16447e97c02cdf5139a61b + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=51453 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.fiLgTqobs1/pbuilderrc_VyMu --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.fiLgTqobs1/b1 --logfile b1/build.log ruby-semantic-puppet_1.0.2-1.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://78.137.99.97:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/tmp.fiLgTqobs1/pbuilderrc_qgGk --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/buster-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/tmp.fiLgTqobs1/b2 --logfile b2/build.log ruby-semantic-puppet_1.0.2-1.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://85.184.249.68:3128 I: uname -a - Linux ionos1-amd64 4.19.0-17-amd64 #1 SMP Debian 4.19.194-1 (2021-06-10) x86_64 GNU/Linux + Linux i-capture-the-hostname 5.10.0-0.bpo.7-amd64 #1 SMP Debian 5.10.40-1~bpo10+1 (2021-06-04) x86_64 GNU/Linux I: ls -l /bin total 5116 - -rwxr-xr-x 1 root root 1168776 Apr 17 2019 bash - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bunzip2 - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzcat - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2227 Jul 10 2019 bzdiff - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4877 Jun 24 2019 bzexe - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3641 Jul 10 2019 bzgrep - -rwxr-xr-x 3 root root 38984 Jul 10 2019 bzip2 - -rwxr-xr-x 1 root root 14328 Jul 10 2019 bzip2recover - lrwxrwxrwx 1 root root 6 Jul 10 2019 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Jul 10 2019 bzmore - -rwxr-xr-x 1 root root 43744 Feb 28 2019 cat - -rwxr-xr-x 1 root root 64320 Feb 28 2019 chgrp - -rwxr-xr-x 1 root root 64288 Feb 28 2019 chmod - -rwxr-xr-x 1 root root 72512 Feb 28 2019 chown - -rwxr-xr-x 1 root root 146880 Feb 28 2019 cp - -rwxr-xr-x 1 root root 121464 Jan 17 2019 dash - -rwxr-xr-x 1 root root 109408 Feb 28 2019 date - -rwxr-xr-x 1 root root 76712 Feb 28 2019 dd - -rwxr-xr-x 1 root root 93744 Feb 28 2019 df - -rwxr-xr-x 1 root root 138856 Feb 28 2019 dir - -rwxr-xr-x 1 root root 84288 Jan 9 2019 dmesg - lrwxrwxrwx 1 root root 8 Sep 26 2018 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Sep 26 2018 domainname -> hostname - -rwxr-xr-x 1 root root 39520 Feb 28 2019 echo - -rwxr-xr-x 1 root root 28 Jan 7 2019 egrep - -rwxr-xr-x 1 root root 35424 Feb 28 2019 false - -rwxr-xr-x 1 root root 28 Jan 7 2019 fgrep - -rwxr-xr-x 1 root root 68880 Jan 9 2019 findmnt - -rwsr-xr-x 1 root root 34896 Apr 22 2020 fusermount - -rwxr-xr-x 1 root root 198976 Jan 7 2019 grep - -rwxr-xr-x 2 root root 2345 Jan 5 2019 gunzip - -rwxr-xr-x 1 root root 6375 Jan 5 2019 gzexe - -rwxr-xr-x 1 root root 98048 Jan 5 2019 gzip - -rwxr-xr-x 1 root root 26696 Sep 26 2018 hostname - -rwxr-xr-x 1 root root 68552 Feb 28 2019 ln - -rwxr-xr-x 1 root root 56760 Jul 26 2018 login - -rwxr-xr-x 1 root root 138856 Feb 28 2019 ls - -rwxr-xr-x 1 root root 108624 Jan 9 2019 lsblk - -rwxr-xr-x 1 root root 89088 Feb 28 2019 mkdir - -rwxr-xr-x 1 root root 68544 Feb 28 2019 mknod - -rwxr-xr-x 1 root root 43808 Feb 28 2019 mktemp - -rwxr-xr-x 1 root root 43008 Jan 9 2019 more - -rwsr-xr-x 1 root root 51280 Jan 9 2019 mount - -rwxr-xr-x 1 root root 14408 Jan 9 2019 mountpoint - -rwxr-xr-x 1 root root 138728 Feb 28 2019 mv - lrwxrwxrwx 1 root root 8 Sep 26 2018 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Feb 14 2019 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 39616 Feb 28 2019 pwd - lrwxrwxrwx 1 root root 4 Apr 17 2019 rbash -> bash - -rwxr-xr-x 1 root root 47776 Feb 28 2019 readlink - -rwxr-xr-x 1 root root 68416 Feb 28 2019 rm - -rwxr-xr-x 1 root root 47776 Feb 28 2019 rmdir - -rwxr-xr-x 1 root root 23312 Jan 21 2019 run-parts - -rwxr-xr-x 1 root root 122224 Dec 22 2018 sed - lrwxrwxrwx 1 root root 4 Jun 6 20:23 sh -> dash - -rwxr-xr-x 1 root root 39552 Feb 28 2019 sleep - -rwxr-xr-x 1 root root 80672 Feb 28 2019 stty - -rwsr-xr-x 1 root root 63568 Jan 9 2019 su - -rwxr-xr-x 1 root root 35488 Feb 28 2019 sync - -rwxr-xr-x 1 root root 445560 Apr 23 2019 tar - -rwxr-xr-x 1 root root 14440 Jan 21 2019 tempfile - -rwxr-xr-x 1 root root 97152 Feb 28 2019 touch - -rwxr-xr-x 1 root root 35424 Feb 28 2019 true - -rwxr-xr-x 1 root root 14328 Apr 22 2020 ulockmgr_server - -rwsr-xr-x 1 root root 34888 Jan 9 2019 umount - -rwxr-xr-x 1 root root 39584 Feb 28 2019 uname - -rwxr-xr-x 2 root root 2345 Jan 5 2019 uncompress - -rwxr-xr-x 1 root root 138856 Feb 28 2019 vdir - -rwxr-xr-x 1 root root 34896 Jan 9 2019 wdctl - -rwxr-xr-x 1 root root 946 Jan 21 2019 which - lrwxrwxrwx 1 root root 8 Sep 26 2018 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1983 Jan 5 2019 zcat - -rwxr-xr-x 1 root root 1677 Jan 5 2019 zcmp - -rwxr-xr-x 1 root root 5879 Jan 5 2019 zdiff - -rwxr-xr-x 1 root root 29 Jan 5 2019 zegrep - -rwxr-xr-x 1 root root 29 Jan 5 2019 zfgrep - -rwxr-xr-x 1 root root 2080 Jan 5 2019 zforce - -rwxr-xr-x 1 root root 7584 Jan 5 2019 zgrep - -rwxr-xr-x 1 root root 2205 Jan 5 2019 zless - -rwxr-xr-x 1 root root 1841 Jan 5 2019 zmore - -rwxr-xr-x 1 root root 4552 Jan 5 2019 znew -I: user script /srv/workspace/pbuilder/22410/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 1168776 Apr 18 2019 bash + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bunzip2 + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzcat + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2227 Jul 11 2019 bzdiff + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4877 Jun 25 2019 bzexe + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3641 Jul 11 2019 bzgrep + -rwxr-xr-x 3 root root 38984 Jul 11 2019 bzip2 + -rwxr-xr-x 1 root root 14328 Jul 11 2019 bzip2recover + lrwxrwxrwx 1 root root 6 Jul 11 2019 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Jul 11 2019 bzmore + -rwxr-xr-x 1 root root 43744 Mar 1 2019 cat + -rwxr-xr-x 1 root root 64320 Mar 1 2019 chgrp + -rwxr-xr-x 1 root root 64288 Mar 1 2019 chmod + -rwxr-xr-x 1 root root 72512 Mar 1 2019 chown + -rwxr-xr-x 1 root root 146880 Mar 1 2019 cp + -rwxr-xr-x 1 root root 121464 Jan 18 2019 dash + -rwxr-xr-x 1 root root 109408 Mar 1 2019 date + -rwxr-xr-x 1 root root 76712 Mar 1 2019 dd + -rwxr-xr-x 1 root root 93744 Mar 1 2019 df + -rwxr-xr-x 1 root root 138856 Mar 1 2019 dir + -rwxr-xr-x 1 root root 84288 Jan 10 2019 dmesg + lrwxrwxrwx 1 root root 8 Sep 27 2018 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Sep 27 2018 domainname -> hostname + -rwxr-xr-x 1 root root 39520 Mar 1 2019 echo + -rwxr-xr-x 1 root root 28 Jan 8 2019 egrep + -rwxr-xr-x 1 root root 35424 Mar 1 2019 false + -rwxr-xr-x 1 root root 28 Jan 8 2019 fgrep + -rwxr-xr-x 1 root root 68880 Jan 10 2019 findmnt + -rwsr-xr-x 1 root root 34896 Apr 23 2020 fusermount + -rwxr-xr-x 1 root root 198976 Jan 8 2019 grep + -rwxr-xr-x 2 root root 2345 Jan 6 2019 gunzip + -rwxr-xr-x 1 root root 6375 Jan 6 2019 gzexe + -rwxr-xr-x 1 root root 98048 Jan 6 2019 gzip + -rwxr-xr-x 1 root root 26696 Sep 27 2018 hostname + -rwxr-xr-x 1 root root 68552 Mar 1 2019 ln + -rwxr-xr-x 1 root root 56760 Jul 27 2018 login + -rwxr-xr-x 1 root root 138856 Mar 1 2019 ls + -rwxr-xr-x 1 root root 108624 Jan 10 2019 lsblk + -rwxr-xr-x 1 root root 89088 Mar 1 2019 mkdir + -rwxr-xr-x 1 root root 68544 Mar 1 2019 mknod + -rwxr-xr-x 1 root root 43808 Mar 1 2019 mktemp + -rwxr-xr-x 1 root root 43008 Jan 10 2019 more + -rwsr-xr-x 1 root root 51280 Jan 10 2019 mount + -rwxr-xr-x 1 root root 14408 Jan 10 2019 mountpoint + -rwxr-xr-x 1 root root 138728 Mar 1 2019 mv + lrwxrwxrwx 1 root root 8 Sep 27 2018 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Feb 15 2019 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 39616 Mar 1 2019 pwd + lrwxrwxrwx 1 root root 4 Apr 18 2019 rbash -> bash + -rwxr-xr-x 1 root root 47776 Mar 1 2019 readlink + -rwxr-xr-x 1 root root 68416 Mar 1 2019 rm + -rwxr-xr-x 1 root root 47776 Mar 1 2019 rmdir + -rwxr-xr-x 1 root root 23312 Jan 22 2019 run-parts + -rwxr-xr-x 1 root root 122224 Dec 23 2018 sed + lrwxrwxrwx 1 root root 4 Jul 24 12:26 sh -> bash + lrwxrwxrwx 1 root root 4 Jul 11 04:46 sh.distrib -> dash + -rwxr-xr-x 1 root root 39552 Mar 1 2019 sleep + -rwxr-xr-x 1 root root 80672 Mar 1 2019 stty + -rwsr-xr-x 1 root root 63568 Jan 10 2019 su + -rwxr-xr-x 1 root root 35488 Mar 1 2019 sync + -rwxr-xr-x 1 root root 445560 Apr 24 2019 tar + -rwxr-xr-x 1 root root 14440 Jan 22 2019 tempfile + -rwxr-xr-x 1 root root 97152 Mar 1 2019 touch + -rwxr-xr-x 1 root root 35424 Mar 1 2019 true + -rwxr-xr-x 1 root root 14328 Apr 23 2020 ulockmgr_server + -rwsr-xr-x 1 root root 34888 Jan 10 2019 umount + -rwxr-xr-x 1 root root 39584 Mar 1 2019 uname + -rwxr-xr-x 2 root root 2345 Jan 6 2019 uncompress + -rwxr-xr-x 1 root root 138856 Mar 1 2019 vdir + -rwxr-xr-x 1 root root 34896 Jan 10 2019 wdctl + -rwxr-xr-x 1 root root 946 Jan 22 2019 which + lrwxrwxrwx 1 root root 8 Sep 27 2018 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1983 Jan 6 2019 zcat + -rwxr-xr-x 1 root root 1677 Jan 6 2019 zcmp + -rwxr-xr-x 1 root root 5879 Jan 6 2019 zdiff + -rwxr-xr-x 1 root root 29 Jan 6 2019 zegrep + -rwxr-xr-x 1 root root 29 Jan 6 2019 zfgrep + -rwxr-xr-x 1 root root 2080 Jan 6 2019 zforce + -rwxr-xr-x 1 root root 7584 Jan 6 2019 zgrep + -rwxr-xr-x 1 root root 2205 Jan 6 2019 zless + -rwxr-xr-x 1 root root 1841 Jan 6 2019 zmore + -rwxr-xr-x 1 root root 4552 Jan 6 2019 znew +I: user script /srv/workspace/pbuilder/51453/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -332,7 +366,7 @@ Get: 133 http://deb.debian.org/debian buster/main amd64 ruby-thread-order all 1.1.0-1 [5096 B] Get: 134 http://deb.debian.org/debian buster/main amd64 ruby-rspec-core all 3.8.0c0e1m0s0-1 [190 kB] Get: 135 http://deb.debian.org/debian buster/main amd64 ruby-rspec all 3.8.0c0e1m0s0-1 [7620 B] -Fetched 43.1 MB in 1s (77.1 MB/s) +Fetched 43.1 MB in 1s (48.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libbsd0:amd64. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19195 files and directories currently installed.) @@ -904,7 +938,7 @@ fakeroot is already the newest version (1.23-1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-semantic-puppet-1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b +I: Running cd /build/ruby-semantic-puppet-1.0.2/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b dpkg-buildpackage: info: source package ruby-semantic-puppet dpkg-buildpackage: info: source version 1.0.2-1 dpkg-buildpackage: info: source distribution unstable @@ -981,1111 +1015,1111 @@ All examples were filtered out; ignoring {:focus=>true} -Randomized with seed 926 +Randomized with seed 5257 + +SemanticPuppet::Version + .parse + Spec v1.0.0 + Section 4 + rejects empty prerelease versions + rejects numeric prerelease identifiers with leading zeroes + rejects prerelease identifiers with non-alphanumerics + permits non-numeric prerelease identifiers with leading zeroes + permits numeric prerelease identifiers of zero + examples + 1.0.0-beta1 + 1.0.0-alpha1 + 1.0.0-beta2 + 1.0.0-rc1 + Section 2 + rejects versions that contain too few parts + rejects versions that contain too many parts + rejects versions that contain non-integers + permits zeroes in version number parts + examples + 1.10.0 + 1.11.0 + 1.9.0 + Spec v2.0.0 + Section 10 + permits numeric build identifiers with leading zeroes + rejects empty build identifiers + permits non-numeric build identifiers with leading zeroes + permits numeric build identifiers of zero + rejects empty build metadata + rejects build identifiers with non-alphanumerics + examples + 1.0.0+20130313144700 + 1.0.0-beta+exp.sha.5114f85 + 1.0.0-alpha+001 + Section 9 + permits non-numeric prerelease identifiers with leading zeroes + rejects empty prerelease version identifiers + permits numeric prerelease identifiers of zero + rejects numeric prerelease identifiers with leading zeroes + rejects prerelease identifiers with non-alphanumerics + rejects empty prerelease versions + examples + 1.0.0-0.3.7 + 1.0.0-alpha.1 + 1.0.0-x.7.z.92 + 1.0.0-alpha + Section 2 + permits zeroes in version number parts + rejects version numbers containing leading zeroes + rejects versions that contain too few parts + rejects versions that contain too many parts + rejects versions that contain negative integers + rejects versions that contain non-integers + examples + 1.9.0 + 1.11.0 + 1.10.0 + #<=> + Spec v1.0.0 + Section 4 + sorted order + Spec v2.0.0 + Section 11 + comparisons without prereleases + sorted order + comparisons against prereleases + prereleases have lower precedence + comparisions between prereleases + larger identifier sets have precendence + non-numeric identifiers sort ASCIIbetically + build metadata does figure into equality + numeric identifiers sort numerically + non-numeric identifiers have a higher precendence + identifiers are parsed left-to-right + sorted order + build metadata does not figure into precendence + identical prereleases are equal + #next + with :patch + does not modify the original version + removes any build information + returns the next patch version + removes any prerelease information + with :minor + does not modify the original version + removes any prerelease information + removes any build information + returns the next minor version + resets the patch version to 0 + with :major + removes any prerelease information + resets the minor and patch versions to 0 + removes any build information + does not modify the original version + returns the next major version + #== + should yield false when compared to something that is not a Version + should yield false when the prerelease differs + should yield false when the major differs + should yield true when comparing two equal instances + should yield false when the minor differs + should yield false when the patch differs + .valid? + Spec v2.0.0 + Section 10 + permits numeric build identifiers of zero + rejects empty build metadata + permits numeric build identifiers with leading zeroes + permits non-numeric build identifiers with leading zeroes + rejects empty build identifiers + rejects build identifiers with non-alphanumerics + Section 2 + rejects versions that contain non-integers + rejects versions that contain too few parts + rejects version numbers containing leading zeroes + rejects versions that contain too many parts + permits zeroes in version number parts + rejects versions that contain negative integers + Section 9 + permits numeric prerelease identifiers of zero + rejects prerelease identifiers with non-alphanumerics + rejects empty prerelease versions + permits non-numeric prerelease identifiers with leading zeroes + rejects numeric prerelease identifiers with leading zeroes + permits non-numeric prerelease identifiers + rejects empty prerelease version identifiers + Spec v1.0.0 + Section 4 + permits non-numeric prerelease identifiers with leading zeroes + permits numeric prerelease identifiers of zero + rejects empty prerelease versions + rejects prerelease identifiers with non-alphanumerics + rejects numeric prerelease identifiers with leading zeroes + Section 2 + rejects versions that contain too few parts + rejects versions that contain non-integers + rejects versions that contain too many parts + permits zeroes in version number parts + +SemanticPuppet::Dependency::Graph + #initialize + can be called without arguments + implements the GraphNode protocol + adds the named dependencies for every key in the passed hash + adds constraints for every key in the passed hash + #add_constraint + permits multiple constraints against the same module name + can create a new constraint on a module + #add_graph_constraint + permits multiple graph constraints + can create a new constraint on a graph + #satisfies_dependency? + is not satisfied by modules it does not depend on + is satisfied by modules that do fulfill all the constraints + is not satisfied by modules that do not fulfill the constraint + is not satisfied by modules that do not fulfill all the constraints + #satisfies_graph? + returns false if the solution violates a graph constraint + returns true if the solution violates no graph constraints + returns false if the solution violates any graph constraint + +SemanticPuppet::Dependency::ModuleRelease + #<< + does not mark mis-matching dependency versions as satisfied + does not mark mis-matching dependency names as satisfied + marks matching dependencies as satisfied + #<=> + orders releases by name first + considers releases with lesser version numbers lesser + considers releases with greater version numbers greater + orders releases with different names lexographically + #== + can compare a release with something that is not a release + considers two equal releases to be equal + considers two releases with different names to be different + considers two releases with different versions to be different + considers a release different from something that is not a release + #dependency_names + lists the names of all the release's dependencies + #satisfies_dependency? + returns false when the release does not match the dependency version + returns false when the release does not match the dependency name + returns false when there are no dependencies to satisfy + returns true when the release matches the dependency + #satisfied? + returns false when not all dependency versions have been satisified + returns true when all dependencies have been satisified + returns false when no dependencies have been satisified + returns false when not all dependencies have been satisified + returns true when there are no dependencies to satisfy + #to_s + should =~ /1.2.3/ + should =~ /foobarbaz/ + +SemanticPuppet::Dependency::GraphNode + #<< + does not append nodes with unknown names + appends satisfying nodes to the dependencies + does not append unsatisfying nodes + #populate_children + saves all relevant nodes as its children + accepts a graph solution and populates it across all nodes + #<=> + can be compared + #satisfied + is satisfied when all dependencies are fulfilled + is unsatisfied when no nodes have been appended + is unsatisfied when any dependencies are missing + dependencies + are maintained in the #dependencies Hash + are added by #add_dependency + +SemanticPuppet::Dependency::UnsatisfiableGraph + #sentence_from_list + with a list of three items + should eql "foo, bar, and baz" + with a list of more than three items + should eql "foo, bar, baz, and quux" + with a list of one item + should eql "foo" + with a list of two items + should eql "foo and bar" + #message + should match /foo, bar, and baz/ SemanticPuppet::VersionRange + The version + 2.2.4 should be above range ~>1 + 2.0.0 should not be above range <= 2.0.0(<=2.0.0) + 1.2.3 should not be above range ~1(>=1.0.0 <2.0.0) + 1.1.2 should be above range ~1.0 + 1.0.0-beta should not be above range ^0.1.0 || ~3.0.1 || 5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) + 1.2.3 should not be above range 1.2.* || 2.*(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) + 0.7.0-asdf should not be above range >=0.7.x(>=0.7.0) + 1.9999.9999 should not be above range < 2.0.0(<2.0.0) + 4.0.0 should not be below range ^3.0.0 + 1.2.1 should be below range > 1.2 + 1.1.0 should not be below range ~ 1.0 + 1.0.1 should not be above range >= 1.0.0(>=1.0.0) + 3.1.3 should be above range 1.2.x || 2.x + 1.0.0-beta should be below range > 1 + 0.7.2 should be above range <0.7.x + 2.3.0 should be below range ~2.4 + 1.0.0-beta should not be below range ^0.1.0 || ~3.0.1 || 5.0.0 + 0.6.2 should be below range =0.7.x + 1.2.3 should not be below range * + 1.0.0 should not be above range 1.0.0(1.0.0) + 2.0.0 should not be below range <= 2.0.0 + 5.0.0-0 should not be above range ^0.1.0 || ~3.0.1 || 5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) + 3.5.0 should not be above range ^0.1.0 || ~3.0.1 || >4 <=5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) + 1.0.0-beta should not be below range ^1.0.0-alpha + 1.0.1-beta1 should be above range 1.0.0 + 1.1.0 should not be above range >1.0.0(>1.0.0) + 2.1.3 should not be above range 1.2.* || 2.*(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) + 1.0.0-beta should not be above range 1(>=1.0.0 <2.0.0) + 5.0.1 should be above range 2.*.* + 0.9.9 should not be above range 1.0.0 - 2.0.0(>=1.0.0 <=2.0.0) + 0.2.9 should not be above range < 2.0.0(<2.0.0) + 1.1.1 should not be above range < 1.2(<1.2.0) + 0.7.2 should not be above range =0.7.x(>=0.7.0 <0.8.0) + 1.0.0 should not be below range =0.1.0 + 2.1.1 should be above range <=2.0.0 + 1.0.0 should not be above range >=1.0.0(>=1.0.0) + 1.0.1 should be below range 2.*.* + 0.2.4 should not be below range >=* + 0.2.3 should not be above range >=0.2.3 || <0.0.1(>=0.2.3 || <0.0.1) + 0.5.5 should not be above range ~v0.5.4-pre(>=0.5.4-pre <0.6.0) + 2.2.1 should be below range 2.3 + 1.0.0 should not be above range >= 1.0.0(>=1.0.0) + 2.4.5 should not be above range ~2.4(>=2.4.0 <2.5.0) + 3.1.3 should be above range 2.x.x + 1.2.3 should not be below range 0.1.20 || 1.2.4 + 1.2.3 should not be below range 1.2.* + 1.9999.9999 should be below range 2 + 4.0.0 should be above range 1.2.* || 2.* + 0.1.97 should not be below range >=0.1.97 + 0.6.1-pre should be above range ~v0.5.4-pre + 1.2.3 should not be below range 1.0.0 - 2.0.0 + 1.2.3 should not be below range * + 1.9999.9999 should not be below range < 2.0.0 + 1.0.0 should be below range >1 + 0.6.0 should be below range =0.7.x + 2.0.0-beta should be above range 1 + 0.2.3 should be below range 1.0.0 - 2.0.0 + 2.1.3 should not be below range 2.x.x + 1.1.1 should not be above range <1.2(<1.2.0) + 0.0.0 should not be below range >=0.2.3 || <0.0.1 + 1.2.3 should not be below range ~1 + 1.2.9 should be below range >2.0.0 + 2.2.2 should be below range 2.3 + 0.6.2 should be below range >=0.7.x + 1.1.1 should not be below range <1.2 + 1.2.3 should not be below range x + 5.0.0-0 should not be below range ^0.1.0 || ~3.0.1 || 5.0.0 + 1.2.5 should be above range 0.1.20 || 1.2.4 + 1.2.4 should not be above range 0.1.20 || >1.2.4(0.1.20 || >1.2.4) + 1.0.0 should be above range <1 + 0.1.0 should be below range ~ 1.0 + 1.0.0 should be below range 1.2.x || 2.x + 1.2.3 should not be below range ~>1 + 1.9999.9999 should not be above range <=2.0.0(<=2.0.0) + 0.1.20 should not be above range 0.1.20 || 1.2.4(0.1.20 || 1.2.4) + 1.2.3 should not be above range *(*) + 0.0.1 should be below range 1.0.0 + 2.9999.9999 should be above range <=2.0.0 + 2.0.0 should be below range >2.0.0 + 0.6.2 should not be above range <=0.7.x(<0.8.0) + 0.8.0-asdf should be above range =0.7.x + 0.5.4-alpha should be below range ~v0.5.4-pre + 0.2.5 should not be below range >0.2.3 >0.2.4 <=0.2.5 + 0.0.0-beta should be below range 1 + 1.1.3 should be below range 1.2.* + 2.9999.9999 should be above range <2.0.0 + 1.2.3 should not be above range 1.2.x || 2.x(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) + 1.2.1 should be below range ~1.2.2 + 3.1.3 should be above range 1.2.* || 2.* + 1.2.0 should be below range >1.2 + 1.1.0 should not be above range >= 1.0.0(>=1.0.0) + 3.0.0 should be above range 2.x.x + 1.1.0 should be above range ~1.0 + 0.7.0-asdf should be below range >=0.7.x + 3.1.2 should be above range 2 + 2.2.3 should be above range 1.0.0 - 2.0.0 + 1.0.2 should not be above range ~1.0(>=1.0.0 <1.1.0) + 1.0.0 should not be below range + 2.1.3 should not be above range 2.*.*(>=2.0.0 <3.0.0) + 2.3.5 should be below range ~2.4 + 1.0.1 should be above range 1.0.0 + 0.2.9 should not be above range <2.0.0(<2.0.0) + 1.0.0-beta should be below range 2 + 1.3.3 should be above range 1.2.* + 0.6.0 should be below range >=0.7.x + 1.1.3 should be below range 2.*.* + 0.0.0 should be below range ~1.0 + 1.1.0 should not be below range >1.0.0 + 2.0.1 should be above range 1.0.0 - 2.0.0 + 1.2.4 should not be below range 0.1.20 || 1.2.4 + 0.6.1-0 should be below range ~0.6.1-1 + 1.2.3 should not be above range *(*) + 2.3.1 should not be above range 2.3(>=2.3.0 <2.4.0) + 0.8.0 should be above range =0.7.x + 1.9999.9999 should not be above range <2.0.0(<2.0.0) + 2.9.9 should not be below range 1.0.0 - 2.0.0 + 1.0.1 should not be above range >=1.0.0(>=1.0.0) + 2.0.0 should be above range <2.0.0 + 1.2.9 should be below range >=2.0.0 + 0.2.4 should not be above range >=0.2.3 || <0.0.1(>=0.2.3 || <0.0.1) + 0.6.1-1 should not be below range ~0.6.1-1 + 1.2.3 should not be below range 1.2.x + 3.2.0 should not be below range ^0.1.0 || ~3.0.1 || 5.0.0 + 3.0.0 should be above range 1.2.x || 2.x + 1.3.0 should be above range ~1.2.2 + 0.2.9 should not be below range <2.0.0 + 2.2.9 should be above range <2.0.0 + 1.1.3 should be below range 1.2.* + 1.9999.9999 should not be below range <=2.0.0 + 0.6.0-asdf should be below range =0.7.x + 0.2.4 should not be above range >=*(>=0.0.0) + 0.2.3 should be below range ~> 1 + 0.1.97 should not be above range >=0.1.97(>=0.1.97) + 1.0.0-beta should be above range <1 + 2.1.3 should not be below range 1.2.* || 2.* + 1.0.2 should not be above range ~ 1.0(>=1.0.0 <1.1.0) + 2.3.0 should be below range ~2.4 + 1.2.3 should not be below range 1.2.x || 2.x + 3.3.0 should be above range ~>3.2.1 + 2.0.0-beta should be above range 1 + 0.7.0 should be above range <0.7.x + 2.2.3 should be above range ~1 + 1.0.0 should not be below range 1.0.0 + 0.1.5 should be below range 0.1.20 || 1.2.4 + 1.1.0 should not be above range > 1.0.0(>1.0.0) + 1.0.1 should not be above range > 1.0.0(>1.0.0) + 1.0.1 should not be above range >1.0.0(>1.0.0) + 2.3.1 should not be below range 2.3 + 1.1.0 should be above range ~ 1.0 + 0.2.3 should be below range ~1 + 0.2.9 should not be below range < 2.0.0 + 1.1.1 should not be below range < 1.2 + 0.0.1 should be below range 1.0.0 - 2.0.0 + 2.0.0 should not be above range ^3.0.0(>=3.0.0 <4.0.0) + 1.1.3 should be below range 2.x.x + 2.0.0 should be below range >2.0.0 + 1.1.0 should not be below range > 1.0.0 + 1.0.0 should not be above range >=1(>=1.0.0) + 1.0.0-beta should be below range 1 + 1.2.3-foo should not be above range *(*) + 1.0.1 should not be below range >=1.0.0 + 1.0.1 should not be below range >= 1.0.0 + 1.2.4 should not be below range 0.1.20 || >1.2.4 + 0.2.4 should not be above range >=0.2.3 <=0.2.4(>=0.2.3 <=0.2.4) + 2.4.0 should not be above range ~2.4(>=2.4.0 <2.5.0) + 1.0.0-beta.1 should be below range 1.0.0-beta.2 + 2.1.3 should not be above range 2.x.x(>=2.0.0 <3.0.0) + 0.2.3 should not be below range >=0.2.3 || <0.0.1 + 0.2.3 should be below range ~>1 + 1.2.1 should be below range ~1.2.2 + 2.1.2 should not be above range 2(>=2.0.0 <3.0.0) + 1.2.1 should be above range < 1.2 + 1.1.9999 should be below range 1.2.* || 2.* + 3.2.0 should not be above range ^0.1.0 || ~3.0.1 || 5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) + 1.1.3 should be below range 1.2.x || 2.x + 1.1.0 should not be above range >=1.0.0(>=1.0.0) + 1.9999.9999 should not be below range <= 2.0.0 + 0.7.0-asdf should not be above range =0.7.x(>=0.7.0 <0.8.0) + 0.2.9 should not be above range <= 2.0.0(<=2.0.0) + 1.2.3 should not be above range 1.0.0 - 2.0.0(>=1.0.0 <=2.0.0) + 2.5.0 should be above range ~2.4 + 1.0.0-0 should be below range ^1 + 0.7.2 should not be below range =0.7.x + 0.5.4-alpha should be below range ~v0.5.4-pre + 1.2.0 should be above range <1.2 + 1.0.2 should not be below range ~1.0 + 0.8.2 should be above range =0.7.x + 1.0.0 should be below range 2 + 0.2.5 should not be above range >0.2.3 >0.2.4 <=0.2.5(>0.2.4 <=0.2.5) + 1.2.3 should not be above range ~>1(>=1.0.0 <2.0.0) + 1.1.1 should be below range >=2.0.0 + 1.1.3 should be below range 1.2.x + 0.2.9 should not be below range <=2.0.0 + 1.2.3 should not be above range 1.2.* || 2.*(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) + 0.5.5 should not be below range ~v0.5.4-pre + 1.3.3 should be above range 1.2.x + 0.1.97 should not be above range >=0.1.97(>=0.1.97) + 1.0.0 should not be below range >=1 + 1.2.3 should not be above range x(*) + 0.6.0 should be above range ~v0.5.4-pre + 0.2.4 should not be below range >=0.2.3 || <0.0.1 + 0.0.0-0 should not be above range ^1(>=1.0.0 <2.0.0) + 1.0.0 should not be below range >= 1 + 1.9999.9999 should be below range >=2.0.0 + 0.5.4 should not be below range ~v0.5.4-pre + 2.0.0 should be above range 1.0.0 + 1.2.9 should be below range >=2.0.0 + 0.1.20 should not be below range 0.1.20 || 1.2.4 + 1.0.2 should not be below range ~ 1.0 + 3.2.2 should not be above range ~>3.2.1(>=3.2.1 <3.3.0) + 1.1.0 should be below range 1.2.x + 1.0.0-beta should be below range >1 + 2.1.3 should not be below range 1.2.x || 2.x + 0.2.3 should be below range ~1 + 3.3.2 should be above range ~>3.2.1 + 2.0.0 should not be above range 1.0.0 - 2.0.0(>=1.0.0 <=2.0.0) + 1.0.0-beta should be above range < 1 + 2.0.0 should not be below range <=2.0.0 + 2.0.0 should not be above range <=2.0.0(<=2.0.0) + 1.3.0 should be above range ~1.2.2 + 2.5.5 should be above range ~2.4 + 1.1.0 should not be below range >=1.0.0 + 1.2.3 should not be below range 1.2.* || 2.* + 2.2.9 should be above range <=2.0.0 + 3.2.3 should be above range ~> 1 + 0.7.0-asdf should be below range =0.7.x + 0.6.1-1 should not be above range ~0.6.1-1(>=0.6.1-1 <0.7.0) + 0.5.4 should not be above range ~v0.5.4-pre(>=0.5.4-pre <0.6.0) + 1.0.0 should not be below range >= 1.0.0 + 1.0.0 should not be below range >=1.0.0 + 2.2.3 should be above range ~>1 + 0.7.1-1 should be above range ~0.6.1-1 + 2.1.3 should not be above range 1.2.x || 2.x(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) + 1.0.0 should not be above range (*) + 2.4.5 should not be below range ~2.4 + 0.2.9 should not be below range <= 2.0.0 + 1.0.1 should not be below range > 1.0.0 + 0.7.2 should not be above range >=0.7.x(>=0.7.0) + 2.1.3 should not be below range 2.*.* + 2.5.0 should be above range ~2.4 + 2.4.1 should be above range 2.3 + 2.0.0 should not be above range ^1.0.0 || ~2.0.1(>=1.0.0 <2.0.0 || >=2.0.1 <2.1.0) + 1.9999.9999 should not be above range <= 2.0.0(<=2.0.0) + 2.0.0 should not be below range 1.0.0 - 2.0.0 + 1.2.3 should not be above range 1.2.x(>=1.2.0 <1.3.0) + 3.0.0 should be above range <=2.0.0 + 1.1.0 should not be below range >= 1.0.0 + 1.3.0 should be above range 1.2.x + 1.3.3 should be above range 1.2.* + 3.2.2 should not be below range ~>3.2.1 + 0.2.9 should not be above range <=2.0.0(<=2.0.0) + 0.1.2 should be below range ~1.0 + 1.0.0 should be below range >=2.0.0 + 3.1.3 should be above range 2.*.* + 0.0.0 should be below range 1.0.0 + 1.2.3 should not be above range 1.2.*(>=1.2.0 <1.3.0) + 0.2.4 should be below range ~>1 + 2.2.3 should be above range ~1 + 3.2.0 should be below range ~>3.2.1 + 0.2.4 should not be below range >=0.2.3 <=0.2.4 + 2.4.2 should be above range 2.3 + 3.5.0 should not be below range ^0.1.0 || ~3.0.1 || >4 <=5.0.0 + 1.9999.9999 should not be below range <2.0.0 + 1.2.3 should not be below range ~> 1 + 2.1.2 should not be below range 2 + 1.0.0-beta should not be below range ~1.0.0-alpha + 1.2.3 should not be above range 0.1.20 || 1.2.4(0.1.20 || 1.2.4) + 1.0.0 should be below range 2.x.x + 1.2.4 should not be above range 0.1.20 || 1.2.4(0.1.20 || 1.2.4) + 3.0.0 should be above range 2 + 1.2.3 should not be above range ~> 1(>=1.0.0 <2.0.0) + 2.3.2 should be below range ~>3.2.1 + 1.0.0 should not be above range >= 1(>=1.0.0) + 3.2.9 should be above range <=2.0.0 + 1.1.3 should be below range 1.2.* || 2.* + 1.3.4 should not be below range || + 1.0.1 should not be below range >1.0.0 + 2.0.0 should not be below range ^1.0.0 || ~2.0.1 + 0.7.2 should not be below range >=0.7.x + 0.0.0 should not be above range >=0.2.3 || <0.0.1(>=0.2.3 || <0.0.1) + 1.2.3 should not be below range 1.2.* || 2.* + 1.3.4 should not be above range ||(*) + 0.6.2 should not be below range <=0.7.x + 2.4.0 should not be below range ~2.4 + #intersection + cannot intersect with non-VersionRanges + is commutative + between 10.0.0 - 5.0.0 & >=10.0.0 <5.0.0 + between >=10.0.0 <5.0.0 & 10.0.0 - 5.0.0 + between >=10.0.0 <5.0.0 & 5.0.0 - 1.0.0 + between >=10.0.0 <5.0.0 & >=5.0.0 <1.0.0 + between >=10.0.0 <5.0.0 & >=7.0.0 <1.0.0 + between 10.0.0 - 5.0.0 & 9.0.0 - 6.0.0 + between >=10.0.0 <5.0.0 & 15.0.0 - 11.0.0 + between 10.0.0 - 5.0.0 & 15.0.0 - 11.0.0 + between >=10.0.0 <5.0.0 & 15.0.0 - 9.0.0 + between >=10.0.0 <5.0.0 & 11.0.0 - 4.0.0 + between 10.0.0 - 5.0.0 & 4.0.0 - 1.0.0 + between 10.0.0 - 5.0.0 & 6.0.0 - 1.0.0 + between >=10.0.0 <5.0.0 & 9.0.0 - 6.0.0 + between 10.0.0 - 5.0.0 & >=5.0.0 <1.0.0 + between 10.0.0 - 5.0.0 & 10.0.0 - 5.0.0 + between 10.0.0 - 5.0.0 & >=7.0.0 <1.0.0 + between 10.0.0 - 5.0.0 & 15.0.0 - 10.0.0 + between >=10.0.0 <5.0.0 & 6.0.0 - 1.0.0 + between >=10.0.0 <5.0.0 & 15.0.0 - 10.0.0 + between 10.0.0 - 5.0.0 & 5.0.0 - 1.0.0 + between 10.0.0 - 5.0.0 & 11.0.0 - 4.0.0 + between 10.0.0 - 5.0.0 & 15.0.0 - 9.0.0 + between >=10.0.0 <5.0.0 & >=10.0.0 <5.0.0 + between >=10.0.0 <5.0.0 & 4.0.0 - 1.0.0 + between >=10.0.0 <5.0.0 & + >=5.0.0 <1.0.0 + 10.0.0 - 5.0.0 + 4.0.0 - 1.0.0 + 15.0.0 - 10.0.0 + 15.0.0 - 9.0.0 + 5.0.0 - 1.0.0 + 15.0.0 - 11.0.0 + >=7.0.0 <1.0.0 + >=10.0.0 <5.0.0 + 6.0.0 - 1.0.0 + 11.0.0 - 4.0.0 + 9.0.0 - 6.0.0 + between 10.0.0 - 5.0.0 & + 11.0.0 - 4.0.0 + 6.0.0 - 1.0.0 + >=7.0.0 <1.0.0 + 15.0.0 - 9.0.0 + 9.0.0 - 6.0.0 + >=5.0.0 <1.0.0 + 5.0.0 - 1.0.0 + 10.0.0 - 5.0.0 + 15.0.0 - 10.0.0 + 4.0.0 - 1.0.0 + 15.0.0 - 11.0.0 + >=10.0.0 <5.0.0 .parse + loose version expressions + "1" excludes 1.0.0-alpha + parse("1.X").to_s excludes 1.0.0-alpha + parse("1.X").to_s excludes 0.999.999 + "1.2.x" stringifies as >=1.2.0 <1.3.0 + "1.x" includes 1.999.0 + parse("1.2").to_s excludes 1.1.999 + parse("1.x").to_s includes 1.999.0 + parse("1.2.x").to_s excludes 1.2.0-alpha + parse("1.2").to_s excludes 1.2.0-alpha + "1.x" excludes 1.0.0-alpha + "1.2.3" excludes 1.2.3-alpha + parse("1.2").to_s includes 1.2.0 + "1.2.3-alpha" includes 1.2.3-alpha + "1.2.X" excludes 1.3.0-0 + parse("1.2").to_s includes 1.2.999 + parse("1").to_s includes 1.0.0 + "1.X" excludes 0.999.999 + parse("1.X").to_s includes 1.0.0 + parse("1").to_s excludes 1.0.0-alpha + "1.2.3-alpha" excludes 1.2.3-beta + "1.2.X" excludes 1.1.999 + parse("1.2.X").to_s excludes 1.2.0-alpha + "1.X" stringifies as >=1.0.0 <2.0.0 + "1.2" stringifies as >=1.2.0 <1.3.0 + "1.X" excludes 1.0.0-alpha + parse("1").to_s excludes 0.999.999 + parse("1.x").to_s excludes 2.0.0-0 + parse("1.2.3").to_s excludes 1.2.4-alpha + parse("1.X").to_s excludes 2.0.0-0 + "1.2" includes 1.2.999 + parse("1.2.X").to_s excludes 1.1.999 + "1.2.x" excludes 1.1.999 + "1" includes 1.999.0 + "1.x" excludes 0.999.999 + parse("1.2.X").to_s excludes 1.3.0-0 + "1.2.x" excludes 1.3.0-0 + parse("1.2.3").to_s excludes 1.2.2 + "1" excludes 2.0.0-0 + "1.2.x" includes 1.2.0 + parse("1.2.x").to_s excludes 1.3.0-0 + parse("1.2.3-alpha").to_s excludes 1.2.3-999 + parse("1.2").to_s excludes 1.3.0-0 + "1.2" excludes 1.3.0-0 + "1.2.3-alpha" stringifies as 1.2.3-alpha + "1.2.x" excludes 1.2.0-alpha + "1.2.3" includes 1.2.3 + "1.x" excludes 2.0.0-0 + parse("1.2.x").to_s includes 1.2.999 + "1.2" includes 1.2.0 + "1.2.3-alpha" excludes 1.2.3-999 + parse("1.2.3").to_s excludes 1.2.3-alpha + parse("1.2.3-alpha").to_s includes 1.2.3-alpha + parse("1.X").to_s includes 1.999.0 + parse("1.2.3").to_s includes 1.2.3 + parse("1.2.3-alpha").to_s excludes 1.2.3-beta + parse("1.x").to_s excludes 1.0.0-alpha + "1" excludes 0.999.999 + "1.2" excludes 1.1.999 + "1.2.3" excludes 1.2.2 + "1.2.x" includes 1.2.999 + "1.2.X" includes 1.2.0 + "1.2.3" stringifies as 1.2.3 + parse("1.2.x").to_s includes 1.2.0 + "1.2.X" includes 1.2.999 + "1.x" stringifies as >=1.0.0 <2.0.0 + parse("1.2.X").to_s includes 1.2.0 + "1.2.X" stringifies as >=1.2.0 <1.3.0 + "1.x" includes 1.0.0 + parse("1").to_s excludes 2.0.0-0 + "1.X" excludes 2.0.0-0 + parse("1").to_s includes 1.999.0 + "1" includes 1.0.0 + parse("1.x").to_s excludes 0.999.999 + "1.2" excludes 1.2.0-alpha + parse("1.2.x").to_s excludes 1.1.999 + "1" stringifies as >=1.0.0 <2.0.0 + "1.X" includes 1.999.0 + "1.2.3" excludes 1.2.4-alpha + "1.2.X" excludes 1.2.0-alpha + "1.X" includes 1.0.0 + parse("1.2.X").to_s includes 1.2.999 + parse("1.x").to_s includes 1.0.0 + "reasonably close" expressions + parse("~ 1.2").to_s excludes 1.1.999 + parse("~1.2.3").to_s includes 1.2.3 + parse("~ 1.2.3-alpha").to_s excludes 1.2.4-0 + parse("~ 1").to_s excludes 1.0.0-0 + parse("~1").to_s includes 1.999.999 + "~1.2" includes 1.2.0 + parse("~1.2").to_s excludes 1.1.999 + "~ 1.2" includes 1.2.0 + parse("~1.2").to_s excludes 1.3.0-0 + "~1.2" excludes 1.2.0-0 + parse("~ 1").to_s excludes 2.0.0-0 + "~ 1.2.3" excludes 1.3.0-0 + "~ 1.2.3-alpha" includes 1.2.3 + parse("~1.2").to_s excludes 1.2.0-0 + "~ 1.2" excludes 1.3.0-0 + parse("~ 1").to_s includes 1.999.999 + parse("~1").to_s includes 1.0.0 + "~ 1" excludes 2.0.0-0 + "~ 1" stringifies as >=1.0.0 <2.0.0 + parse("~ 1.2").to_s excludes 1.3.0-0 + "~ 1" includes 1.999.999 + "~1.2.3" includes 1.2.3 + "~ 1.2.3-alpha" stringifies as >=1.2.3-alpha <1.3.0 + "~1.2.3-alpha" includes 1.2.3-alpha + parse("~1.2").to_s includes 1.2.999 + "~ 1.2.3" excludes 1.2.2 + parse("~ 1.2").to_s includes 1.2.999 + parse("~1.2.3").to_s excludes 1.3.0-0 + parse("~1.2.3").to_s excludes 1.2.3-0 + "~ 1.2.3-alpha" includes 1.2.3-alpha + parse("~ 1.2").to_s excludes 1.2.0-0 + "~1.2.3" excludes 1.2.2 + parse("~1").to_s excludes 0.999.999 + "~ 1.2" excludes 1.1.999 + "~1" includes 1.999.999 + parse("~1.2.3").to_s includes 1.2.5 + parse("~1.2.3-alpha").to_s includes 1.2.3 + parse("~1").to_s excludes 2.0.0-0 + "~ 1" includes 1.0.0 + "~ 1.2.3-alpha" excludes 1.2.3-alph + "~1" excludes 1.0.0-0 + "~1.2.3-alpha" excludes 1.2.3-alph + "~ 1.2" includes 1.2.999 + parse("~ 1.2.3").to_s excludes 1.2.2 + parse("~ 1.2.3").to_s includes 1.2.5 + parse("~ 1.2.3-alpha").to_s includes 1.2.3-alpha + "~ 1.2.3" includes 1.2.5 + "~ 1.2" excludes 1.2.0-0 + "~1.2.3" excludes 1.3.0-0 + "~ 1.2" stringifies as >=1.2.0 <1.3.0 + "~1.2" excludes 1.3.0-0 + parse("~ 1.2.3-alpha").to_s includes 1.2.3 + "~1" excludes 0.999.999 + "~1" stringifies as >=1.0.0 <2.0.0 + "~1" includes 1.0.0 + "~1.2.3-alpha" stringifies as >=1.2.3-alpha <1.3.0 + parse("~ 1.2.3").to_s excludes 1.3.0-0 + "~1.2.3" stringifies as >=1.2.3 <1.3.0 + "~1.2" excludes 1.1.999 + parse("~ 1").to_s excludes 0.999.999 + parse("~1.2.3-alpha").to_s excludes 1.2.4-0 + "~1.2" includes 1.2.999 + parse("~ 1").to_s includes 1.0.0 + "~ 1" excludes 0.999.999 + parse("~ 1.2").to_s includes 1.2.0 + "~ 1.2.3" excludes 1.2.3-0 + "~1.2" stringifies as >=1.2.0 <1.3.0 + "~ 1.2.3" stringifies as >=1.2.3 <1.3.0 + parse("~1").to_s excludes 1.0.0-0 + parse("~ 1.2.3-alpha").to_s excludes 1.2.3-alph + "~ 1" excludes 1.0.0-0 + parse("~1.2").to_s includes 1.2.0 + "~1.2.3" includes 1.2.5 + "~1.2.3-alpha" excludes 1.2.4-0 + "~1" excludes 2.0.0-0 + "~1.2.3" excludes 1.2.3-0 + parse("~ 1.2.3").to_s includes 1.2.3 + parse("~1.2.3-alpha").to_s excludes 1.2.3-alph + parse("~1.2.3-alpha").to_s includes 1.2.3-alpha + parse("~1.2.3").to_s excludes 1.2.2 + "~1.2.3-alpha" includes 1.2.3 + "~ 1.2.3" includes 1.2.3 + "~ 1.2.3-alpha" excludes 1.2.4-0 + parse("~ 1.2.3").to_s excludes 1.2.3-0 + invalid expressions + raise an appropriate exception + unioned expressions + "1 <=1.2.5" includes 1.0.0 + parse("1.2 <1.2.5").to_s excludes 1.1.999 + "1 <=1.2.5" excludes 1.9.0 + "<1.0.0 >2.0.0" excludes 0.0.0 + "1 <=1.2.5" stringifies as >=1.0.0 <=1.2.5 + parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s excludes 2.999.999 + parse("1 <=1.2.5").to_s excludes 1.0.0-0 + "1.2 <1.2.5" excludes 1.2.0-0 + "<1.0.0 >2.0.0" excludes 0.0.0-0 + "1.2 <1.2.5" excludes 1.9.0 + parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s excludes 5.0.0-0 + parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s includes 3.0.0 + "1 <=1.2.5" includes 1.2.5 + "1.2 <1.2.5" includes 1.2.4 + parse("1 <=1.2.5").to_s excludes 1.9.0 + parse("1 <=1.2.5").to_s includes 1.0.0 + ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" includes 3.0.0 + "1 <=1.2.5" excludes 1.2.6-0 + parse("1 <=1.2.5").to_s excludes 0.999.999 + parse("<1.0.0 >2.0.0").to_s excludes 0.0.0 + parse("1 <=1.2.5").to_s excludes 1.2.6-0 + ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" excludes 2.999.999 + "<1.0.0 >2.0.0" stringifies as <0.0.0 + parse("1 <=1.2.5").to_s includes 1.2.5 + parse("1.2 <1.2.5").to_s excludes 1.2.5-0 + "1.2 <1.2.5" excludes 1.2.5-0 + parse("1.2 <1.2.5").to_s excludes 1.9.0 + "1 <=1.2.5" excludes 1.0.0-0 + "1.2 <1.2.5" excludes 1.1.999 + parse("1.2 <1.2.5").to_s includes 1.2.4 + ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" stringifies as >=3.0.0 <5.0.0 + parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s includes 4.999.999 + "1.2 <1.2.5" includes 1.2.0 + parse("1.2 <1.2.5").to_s includes 1.2.0 + "1.2 <1.2.5" stringifies as >=1.2.0 <1.2.5 + "1 <=1.2.5" excludes 0.999.999 + ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" excludes 5.0.0-0 + parse("1.2 <1.2.5").to_s excludes 1.2.0-0 + parse("<1.0.0 >2.0.0").to_s excludes 0.0.0-0 + ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" includes 4.999.999 + ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" excludes 3.0.0-0 + parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s excludes 3.0.0-0 inclusive range expressions - "1.2.3 - 1.3.4" includes 1.2.3 - parse("1.2.3-alpha - 1.3.4").to_s excludes 1.3.5-0 - "1.2.3 - 1.3.4-alpha" includes 1.2.3 + "1.2.3-alpha - 1.3.4" stringifies as >=1.2.3-alpha <=1.3.4 + parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.2.3-0 + parse("1.2.3-alpha - 1.3.4").to_s includes 1.2.3-alpha + "1.2.3-alpha - 1.3.4-alpha" includes 1.2.3-alpha + parse("1.2.3-alpha - 1.3.4-alpha").to_s excludes 1.3.4-alpha0 parse("1.2.3 - 1.3.4").to_s excludes 1.2.2 "1.2.3 - 1.3.4" excludes 1.2.3-0 - "1.2.3-alpha - 1.3.4-alpha" excludes 1.3.5 - "1.2.3-alpha - 1.3.4-alpha" includes 1.3.4-alpha - "1.2.3 - 1.3.4" includes 1.3.4 + "1.2.3 - 1.3.4-alpha" excludes 1.2.3-0 + parse("1.2.3 - 1.3.4").to_s excludes 1.2.3-0 + "1.2.3 - 1.3.4" stringifies as >=1.2.3 <=1.3.4 + parse("1.2.3-alpha - 1.3.4").to_s includes 1.3.4 + parse("1.2.3-alpha - 1.3.4-alpha").to_s includes 1.2.3-alpha parse("1.2.3 - 1.3.4-alpha").to_s includes 1.3.4-alpha - "1.2.3-alpha - 1.3.4-alpha" excludes 1.3.4-alpha0 - parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.3.5 - parse("1.2.3 - 1.3.4").to_s includes 1.2.3 - "1.2.3 - 1.3.4-alpha" stringifies as >=1.2.3 <=1.3.4-alpha + "1.2.3-alpha - 1.3.4-alpha" excludes 1.2.3-alph "1.2.3 - 1.3.4-alpha" includes 1.3.4-alpha + parse("1.2.3 - 1.3.4-alpha").to_s includes 1.2.3 + "1.2.3 - 1.3.4-alpha" excludes 1.2.2 "1.2.3-alpha - 1.3.4" excludes 1.3.5-0 - parse("1.2.3-alpha - 1.3.4").to_s includes 1.3.4 - parse("1.2.3-alpha - 1.3.4-alpha").to_s includes 1.3.4-alpha - parse("1.2.3 - 1.3.4").to_s includes 1.3.4 - "1.2.3-alpha - 1.3.4" includes 1.2.3-alpha - parse("1.2.3-alpha - 1.3.4-alpha").to_s excludes 1.3.4-alpha0 "1.2.3 - 1.3.4" excludes 1.3.5-0 - parse("1.2.3-alpha - 1.3.4").to_s excludes 1.2.3-alph + "1.2.3-alpha - 1.3.4" includes 1.2.3-alpha + parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.2.2 + "1.2.3 - 1.3.4-alpha" excludes 1.3.5 + parse("1.2.3 - 1.3.4").to_s includes 1.3.4 + "1.2.3-alpha - 1.3.4" includes 1.3.4 + "1.2.3 - 1.3.4-alpha" excludes 1.3.4-alpha0 + parse("1.2.3 - 1.3.4").to_s includes 1.2.3 + parse("1.2.3-alpha - 1.3.4-alpha").to_s excludes 1.3.5 + "1.2.3 - 1.3.4-alpha" includes 1.2.3 + "1.2.3-alpha - 1.3.4-alpha" includes 1.3.4-alpha "1.2.3-alpha - 1.3.4-alpha" stringifies as >=1.2.3-alpha <=1.3.4-alpha - parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.2.3-0 + parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.3.5 + "1.2.3-alpha - 1.3.4-alpha" excludes 1.3.4-alpha0 + "1.2.3-alpha - 1.3.4-alpha" excludes 1.3.5 + parse("1.2.3-alpha - 1.3.4-alpha").to_s excludes 1.2.3-alph + "1.2.3 - 1.3.4" excludes 1.2.2 + "1.2.3 - 1.3.4-alpha" stringifies as >=1.2.3 <=1.3.4-alpha parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.3.4-alpha0 - parse("1.2.3 - 1.3.4-alpha").to_s includes 1.2.3 - parse("1.2.3-alpha - 1.3.4").to_s includes 1.2.3-alpha - "1.2.3-alpha - 1.3.4-alpha" excludes 1.2.3-alph - parse("1.2.3 - 1.3.4").to_s excludes 1.2.3-0 - parse("1.2.3-alpha - 1.3.4-alpha").to_s excludes 1.3.5 - "1.2.3 - 1.3.4-alpha" excludes 1.2.3-0 + parse("1.2.3-alpha - 1.3.4-alpha").to_s includes 1.3.4-alpha parse("1.2.3 - 1.3.4").to_s excludes 1.3.5-0 - "1.2.3-alpha - 1.3.4" includes 1.3.4 - "1.2.3 - 1.3.4-alpha" excludes 1.3.5 - parse("1.2.3-alpha - 1.3.4-alpha").to_s excludes 1.2.3-alph + parse("1.2.3-alpha - 1.3.4").to_s excludes 1.2.3-alph + parse("1.2.3-alpha - 1.3.4").to_s excludes 1.3.5-0 "1.2.3-alpha - 1.3.4" excludes 1.2.3-alph - "1.2.3 - 1.3.4" excludes 1.2.2 - parse("1.2.3 - 1.3.4-alpha").to_s excludes 1.2.2 - "1.2.3-alpha - 1.3.4-alpha" includes 1.2.3-alpha - "1.2.3 - 1.3.4-alpha" excludes 1.2.2 - parse("1.2.3-alpha - 1.3.4-alpha").to_s includes 1.2.3-alpha - "1.2.3 - 1.3.4-alpha" excludes 1.3.4-alpha0 - "1.2.3-alpha - 1.3.4" stringifies as >=1.2.3-alpha <=1.3.4 - "1.2.3 - 1.3.4" stringifies as >=1.2.3 <=1.3.4 + "1.2.3 - 1.3.4" includes 1.3.4 + "1.2.3 - 1.3.4" includes 1.2.3 open-ended expressions - "> 1.2.3" includes 999.0.0 - "<1.2.3-alpha" excludes 1.2.3-alpha - "<=1.2.3" includes 1.2.3 - ">1.2.3-alpha" excludes 1.2.3-alpha - ">=1.2.3-alpha" stringifies as >=1.2.3-alpha - ">= 1.2.3-alpha" excludes 1.2.4-alpha - parse("<1.2.3-alpha").to_s excludes 1.2.3-alpha - "<1.2.3" includes 0.0.0 - parse("> 1.2.3-alpha").to_s includes 1.2.3-alpha0 - "<1.2.3-alpha" excludes 0.0.0-0 - "<1.2.3" stringifies as <1.2.3 - "<=1.2.3-alpha" includes 0.0.0 - parse("<= 1.2.3").to_s excludes 1.2.3-0 - "<= 1.2.3" excludes 0.0.0-0 - "> 1.2.3-alpha" stringifies as >1.2.3-alpha + "<1.2.3-alpha" includes 1.2.3-alph + parse("> 1.2.3-alpha").to_s includes 1.2.3-alpha.0 + "> 1.2.3-alpha" includes 1.2.3-alpha0 + ">= 1.2.3-alpha" stringifies as >=1.2.3-alpha + parse("< 1.2.3").to_s includes 0.0.0 + parse("<1.2.3").to_s excludes 0.0.0-0 + "<1.2.3-alpha" stringifies as <1.2.3-alpha + "<=1.2.3-alpha" excludes 1.2.3-alphb ">=1.2.3" excludes 1.2.3-0 - "<= 1.2.3-alpha" excludes 1.2.3-alpha.0 - "<=1.2.3" stringifies as <=1.2.3 - parse("<= 1.2.3-alpha").to_s includes 1.2.3-alpha + "<= 1.2.3-alpha" excludes 0.0.0-0 + "<= 1.2.3" excludes 0.0.0-0 + ">= 1.2.3-alpha" includes 1.2.3-alpha0 + parse(">= 1.2.3-alpha").to_s includes 1.2.3-alpha + parse(">= 1.2.3").to_s includes 999.0.0 + parse("< 1.2.3").to_s includes 1.2.2 + parse(">= 1.2.3").to_s excludes 1.2.3-0 + ">=1.2.3-alpha" includes 999.0.0 + ">= 1.2.3-alpha" includes 1.2.3-alpha + "<1.2.3" includes 1.2.2 + "> 1.2.3-alpha" includes 999.0.0 "< 1.2.3" includes 1.2.2 - "<1.2.3" excludes 1.2.3-0 - parse("< 1.2.3-alpha").to_s excludes 1.2.3-alpha + "<1.2.3-alpha" excludes 2.0.0 + "> 1.2.3" excludes 1.2.4-0 + "<=1.2.3" excludes 0.0.0-0 + ">= 1.2.3" excludes 1.2.2 + ">= 1.2.3" includes 999.0.0 + parse("> 1.2.3").to_s excludes 1.2.3 + parse(">=1.2.3").to_s excludes 1.2.3-0 + ">=1.2.3-alpha" stringifies as >=1.2.3-alpha + parse("<=1.2.3-alpha").to_s excludes 1.2.3-alpha.0 + "< 1.2.3-alpha" excludes 1.2.3-alpha + ">1.2.3-alpha" includes 999.0.0 + parse("> 1.2.3-alpha").to_s includes 999.0.0 + "<1.2.3-alpha" includes 0.0.0 + parse(">= 1.2.3").to_s excludes 1.2.2 + parse("<=1.2.3-alpha").to_s includes 1.2.3-alpha + parse("<= 1.2.3-alpha").to_s excludes 0.0.0-0 "< 1.2.3" excludes 0.0.0-0 - ">= 1.2.3" stringifies as >=1.2.3 - parse("< 1.2.3").to_s includes 1.2.2 - parse(">= 1.2.3-alpha").to_s excludes 1.2.4-alpha - parse("< 1.2.3-alpha").to_s excludes 0.0.0-0 - parse("> 1.2.3").to_s includes 999.0.0 - "< 1.2.3" excludes 1.2.3-0 - parse("<1.2.3").to_s excludes 2.0.0 - ">1.2.3" includes 999.0.0 - "<=1.2.3" includes 0.0.0 - "<= 1.2.3" includes 1.2.3 "<1.2.3" excludes 2.0.0 - "> 1.2.3" excludes 1.2.4-0 - ">=1.2.3" stringifies as >=1.2.3 - ">=1.2.3-alpha" includes 1.2.3-alpha - parse("<1.2.3-alpha").to_s includes 1.2.3-alph + "< 1.2.3-alpha" excludes 0.0.0-0 + parse(">1.2.3-alpha").to_s includes 999.0.0 + "<=1.2.3-alpha" includes 1.2.3-alpha + "<= 1.2.3-alpha" includes 1.2.3-alpha + parse("< 1.2.3").to_s excludes 1.2.3-0 "> 1.2.3" excludes 1.2.3 - parse("< 1.2.3-alpha").to_s excludes 2.0.0 - parse(">=1.2.3-alpha").to_s includes 1.2.3-alpha0 + ">1.2.3" stringifies as >1.2.3 + parse(">=1.2.3-alpha").to_s excludes 1.2.4-alpha + "<=1.2.3-alpha" includes 0.0.0 + ">1.2.3-alpha" includes 1.2.3-alpha0 + parse("<1.2.3-alpha").to_s excludes 2.0.0 + "<= 1.2.3" excludes 1.2.3-0 + "<1.2.3" includes 0.0.0 + "<= 1.2.3" includes 1.2.3 + ">=1.2.3" stringifies as >=1.2.3 + ">= 1.2.3" stringifies as >=1.2.3 + parse("< 1.2.3").to_s excludes 2.0.0 + parse("<1.2.3").to_s excludes 1.2.3-0 + "< 1.2.3" excludes 1.2.3-0 + parse("<= 1.2.3-alpha").to_s excludes 1.2.3-alpha0 + parse(">1.2.3-alpha").to_s includes 1.2.3-alpha0 parse("> 1.2.3-alpha").to_s excludes 1.2.3-alpha - parse(">= 1.2.3").to_s excludes 1.2.3-0 - parse("<1.2.3-alpha").to_s includes 0.0.0 + parse("<=1.2.3-alpha").to_s includes 0.0.0 + "<=1.2.3-alpha" excludes 1.2.3-alpha.0 parse("< 1.2.3").to_s excludes 0.0.0-0 - parse("<= 1.2.3-alpha").to_s excludes 1.2.3-alpha0 - parse("<1.2.3").to_s excludes 0.0.0-0 + parse("<= 1.2.3").to_s includes 1.2.3 + ">1.2.3-alpha" stringifies as >1.2.3-alpha + "<= 1.2.3" includes 0.0.0 + parse("<=1.2.3").to_s includes 1.2.3 + "<=1.2.3-alpha" excludes 0.0.0-0 + ">= 1.2.3-alpha" excludes 1.2.3-alph + ">1.2.3" includes 999.0.0 + parse("<= 1.2.3").to_s excludes 0.0.0-0 + ">=1.2.3-alpha" includes 1.2.3-alpha + "<= 1.2.3-alpha" excludes 1.2.3-alpha0 + "<=1.2.3-alpha" excludes 1.2.3-alpha0 + parse("<= 1.2.3-alpha").to_s excludes 1.2.3-alphb + parse("<= 1.2.3-alpha").to_s includes 1.2.3-alpha parse("<= 1.2.3-alpha").to_s excludes 1.2.3-alpha.0 - ">= 1.2.3-alpha" includes 1.2.3-alpha0 - ">1.2.3" excludes 1.2.4-0 - parse(">1.2.3-alpha").to_s includes 999.0.0 - parse("<1.2.3").to_s excludes 1.2.3-0 - "> 1.2.3-alpha" includes 1.2.3-alpha0 - ">1.2.3-alpha" includes 999.0.0 - "<= 1.2.3-alpha" includes 1.2.3-alpha + "<=1.2.3" includes 0.0.0 + parse("<1.2.3").to_s includes 1.2.2 + parse("< 1.2.3-alpha").to_s excludes 1.2.3-alpha + "> 1.2.3-alpha" includes 1.2.3-alpha.0 + parse(">1.2.3").to_s includes 999.0.0 + parse(">=1.2.3-alpha").to_s includes 1.2.3-alpha0 + parse("<1.2.3").to_s excludes 2.0.0 + ">= 1.2.3" excludes 1.2.3-0 + parse("> 1.2.3").to_s excludes 1.2.4-0 + ">=1.2.3-alpha" excludes 1.2.4-alpha parse("<=1.2.3").to_s includes 0.0.0 - "< 1.2.3" includes 0.0.0 - parse("<=1.2.3").to_s excludes 0.0.0-0 + ">= 1.2.3-alpha" excludes 1.2.4-alpha + parse("<=1.2.3").to_s excludes 1.2.3-0 + "<1.2.3" excludes 1.2.3-0 + parse("< 1.2.3-alpha").to_s excludes 2.0.0 + "<1.2.3-alpha" excludes 0.0.0-0 + parse("<=1.2.3-alpha").to_s excludes 1.2.3-alphb + parse("> 1.2.3").to_s includes 999.0.0 + "<= 1.2.3" stringifies as <=1.2.3 + parse(">= 1.2.3-alpha").to_s excludes 1.2.3-alph + parse("<=1.2.3-alpha").to_s excludes 0.0.0-0 + "> 1.2.3" stringifies as >1.2.3 + parse(">=1.2.3-alpha").to_s includes 999.0.0 + parse(">1.2.3").to_s excludes 1.2.4-0 ">=1.2.3" excludes 1.2.2 + "<=1.2.3" excludes 1.2.3-0 + "> 1.2.3-alpha" excludes 1.2.3-alpha + "< 1.2.3" excludes 2.0.0 + parse("< 1.2.3-alpha").to_s includes 0.0.0 + ">1.2.3" excludes 1.2.4-0 + parse("<1.2.3-alpha").to_s includes 1.2.3-alph "< 1.2.3" stringifies as <1.2.3 - "<=1.2.3-alpha" excludes 0.0.0-0 + "<= 1.2.3-alpha" includes 0.0.0 + "> 1.2.3-alpha" stringifies as >1.2.3-alpha + "<= 1.2.3-alpha" excludes 1.2.3-alpha.0 + parse("<=1.2.3-alpha").to_s excludes 1.2.3-alpha0 + parse("< 1.2.3-alpha").to_s excludes 0.0.0-0 + parse(">= 1.2.3-alpha").to_s excludes 1.2.4-alpha "< 1.2.3-alpha" stringifies as <1.2.3-alpha - "< 1.2.3-alpha" excludes 2.0.0 - parse("< 1.2.3").to_s excludes 2.0.0 - "< 1.2.3-alpha" excludes 1.2.3-alpha - ">= 1.2.3" includes 999.0.0 - ">= 1.2.3" excludes 1.2.3-0 ">1.2.3-alpha" includes 1.2.3-alpha.0 - parse("<= 1.2.3").to_s excludes 0.0.0-0 - parse(">=1.2.3").to_s excludes 1.2.2 - parse(">= 1.2.3-alpha").to_s includes 1.2.3-alpha - "<= 1.2.3-alpha" includes 0.0.0 - parse(">= 1.2.3-alpha").to_s excludes 1.2.3-alph - parse("< 1.2.3-alpha").to_s includes 0.0.0 - ">1.2.3-alpha" includes 1.2.3-alpha0 + ">=1.2.3-alpha" excludes 1.2.3-alph + "<= 1.2.3-alpha" excludes 1.2.3-alphb + "<=1.2.3" stringifies as <=1.2.3 + parse(">=1.2.3-alpha").to_s includes 1.2.3-alpha + parse(">=1.2.3").to_s includes 999.0.0 + parse("> 1.2.3-alpha").to_s includes 1.2.3-alpha0 + parse("<1.2.3-alpha").to_s includes 0.0.0 parse("<= 1.2.3-alpha").to_s includes 0.0.0 - "<= 1.2.3" includes 0.0.0 - parse("<=1.2.3").to_s excludes 1.2.3-0 - "<1.2.3-alpha" includes 0.0.0 - "<1.2.3-alpha" excludes 2.0.0 - "<=1.2.3-alpha" stringifies as <=1.2.3-alpha - parse("< 1.2.3-alpha").to_s includes 1.2.3-alph - ">=1.2.3-alpha" includes 999.0.0 - parse(">1.2.3-alpha").to_s excludes 1.2.3-alpha - ">=1.2.3-alpha" includes 1.2.3-alpha0 - "<=1.2.3-alpha" excludes 1.2.3-alphb - parse(">=1.2.3-alpha").to_s includes 999.0.0 - parse("<=1.2.3-alpha").to_s excludes 1.2.3-alphb - "<= 1.2.3" excludes 1.2.3-0 - parse("<1.2.3").to_s includes 0.0.0 - parse("<=1.2.3-alpha").to_s includes 0.0.0 + parse(">= 1.2.3-alpha").to_s includes 1.2.3-alpha0 + ">1.2.3" excludes 1.2.3 + "<=1.2.3" includes 1.2.3 + ">=1.2.3" includes 999.0.0 + "<1.2.3" stringifies as <1.2.3 + "<1.2.3-alpha" excludes 1.2.3-alpha + parse("<=1.2.3").to_s excludes 0.0.0-0 + "<1.2.3" excludes 0.0.0-0 + ">= 1.2.3-alpha" includes 999.0.0 + parse("<1.2.3-alpha").to_s excludes 1.2.3-alpha "< 1.2.3-alpha" includes 0.0.0 - ">= 1.2.3-alpha" includes 1.2.3-alpha - "> 1.2.3-alpha" includes 1.2.3-alpha.0 - parse("<= 1.2.3").to_s includes 1.2.3 - parse("> 1.2.3").to_s excludes 1.2.3 - parse(">= 1.2.3").to_s includes 999.0.0 parse("<1.2.3-alpha").to_s excludes 0.0.0-0 - ">=1.2.3-alpha" excludes 1.2.4-alpha - "<= 1.2.3-alpha" excludes 1.2.3-alpha0 + "> 1.2.3" includes 999.0.0 + parse(">=1.2.3-alpha").to_s excludes 1.2.3-alph + "<=1.2.3-alpha" stringifies as <=1.2.3-alpha + parse(">1.2.3-alpha").to_s includes 1.2.3-alpha.0 "< 1.2.3-alpha" includes 1.2.3-alph - parse("> 1.2.3-alpha").to_s includes 1.2.3-alpha.0 - parse(">=1.2.3").to_s includes 999.0.0 - parse("<1.2.3-alpha").to_s excludes 2.0.0 - parse(">=1.2.3").to_s excludes 1.2.3-0 - "<=1.2.3" excludes 1.2.3-0 - "> 1.2.3" stringifies as >1.2.3 - "<= 1.2.3-alpha" excludes 0.0.0-0 - parse("<= 1.2.3-alpha").to_s excludes 1.2.3-alphb - ">= 1.2.3-alpha" includes 999.0.0 - ">1.2.3-alpha" stringifies as >1.2.3-alpha - "<=1.2.3-alpha" excludes 1.2.3-alpha0 - parse(">=1.2.3-alpha").to_s excludes 1.2.4-alpha - parse("<=1.2.3").to_s includes 1.2.3 - parse("<=1.2.3-alpha").to_s excludes 1.2.3-alpha.0 - "<=1.2.3-alpha" includes 1.2.3-alpha - "<=1.2.3-alpha" excludes 1.2.3-alpha.0 - "<= 1.2.3-alpha" excludes 1.2.3-alphb + parse(">= 1.2.3-alpha").to_s includes 999.0.0 + parse(">=1.2.3").to_s excludes 1.2.2 + parse("<= 1.2.3").to_s excludes 1.2.3-0 + ">=1.2.3-alpha" includes 1.2.3-alpha0 + parse("< 1.2.3-alpha").to_s includes 1.2.3-alph parse("<= 1.2.3").to_s includes 0.0.0 - parse("< 1.2.3").to_s includes 0.0.0 - parse(">= 1.2.3-alpha").to_s includes 1.2.3-alpha0 - parse("<=1.2.3-alpha").to_s excludes 0.0.0-0 - parse("<= 1.2.3-alpha").to_s excludes 0.0.0-0 - ">= 1.2.3-alpha" stringifies as >=1.2.3-alpha - parse("> 1.2.3-alpha").to_s includes 999.0.0 - "<1.2.3-alpha" stringifies as <1.2.3-alpha - "< 1.2.3-alpha" excludes 0.0.0-0 - "> 1.2.3-alpha" includes 999.0.0 - parse(">=1.2.3-alpha").to_s includes 1.2.3-alpha - ">=1.2.3-alpha" excludes 1.2.3-alph + "< 1.2.3-alpha" excludes 2.0.0 + ">1.2.3-alpha" excludes 1.2.3-alpha + parse(">1.2.3-alpha").to_s excludes 1.2.3-alpha "<= 1.2.3-alpha" stringifies as <=1.2.3-alpha - ">1.2.3" stringifies as >1.2.3 - parse(">=1.2.3-alpha").to_s excludes 1.2.3-alph - parse(">1.2.3").to_s excludes 1.2.4-0 - "<1.2.3-alpha" includes 1.2.3-alph - parse("<=1.2.3-alpha").to_s excludes 1.2.3-alpha0 - parse(">1.2.3").to_s includes 999.0.0 - ">1.2.3" excludes 1.2.3 - ">=1.2.3" includes 999.0.0 - parse(">= 1.2.3").to_s excludes 1.2.2 - parse("<1.2.3").to_s includes 1.2.2 - "< 1.2.3" excludes 2.0.0 - parse("> 1.2.3").to_s excludes 1.2.4-0 - parse("< 1.2.3").to_s excludes 1.2.3-0 - ">= 1.2.3" excludes 1.2.2 - "> 1.2.3-alpha" excludes 1.2.3-alpha - ">= 1.2.3-alpha" excludes 1.2.3-alph - "<1.2.3" includes 1.2.2 - parse(">1.2.3-alpha").to_s includes 1.2.3-alpha0 - parse(">= 1.2.3-alpha").to_s includes 999.0.0 - "<=1.2.3" excludes 0.0.0-0 + parse("<1.2.3").to_s includes 0.0.0 parse(">1.2.3").to_s excludes 1.2.3 - parse(">1.2.3-alpha").to_s includes 1.2.3-alpha.0 - "<= 1.2.3" stringifies as <=1.2.3 - "<1.2.3" excludes 0.0.0-0 - parse("<=1.2.3-alpha").to_s includes 1.2.3-alpha + "< 1.2.3" includes 0.0.0 ored expressions + non-overlapping + parse("1.2.3 || 1.2.5").to_s includes 1.2.5 + parse("1.2.3 || 1.2.5").to_s includes 1.2.3 + "1.2.3 || 1.2.5" stringifies as 1.2.3 || 1.2.5 + parse("1.2.3 || 1.2.5").to_s excludes 1.2.5-0 + returns nil on begin + "1.2.3 || 1.2.5" excludes 1.2.3-0 + "1.2.3 || 1.2.5" excludes 1.2.4 + returns nil on end + returns nil on exclude_end? + "1.2.3 || 1.2.5" excludes 1.2.5-0 + parse("1.2.3 || 1.2.5").to_s excludes 1.2.3-0 + "1.2.3 || 1.2.5" includes 1.2.3 + returns nil on exclude_begin? + parse("1.2.3 || 1.2.5").to_s excludes 1.2.4 + "1.2.3 || 1.2.5" includes 1.2.5 adjacent returns nil on exclude_end? - parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.6-0 - parse("1.2.3 || 1.2.4 || 1.2.5").to_s includes 1.2.3 - ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.3-0 + parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.3-0 returns nil on end - returns nil on exclude_begin? + "1.2.3 || 1.2.4 || 1.2.5" stringifies as >=1.2.3 <=1.2.5 + parse("1.2.3 || 1.2.4 || 1.2.5").to_s excludes 1.2.3-0 + parse("1.2.3 || 1.2.4 || 1.2.5").to_s includes 1.2.3 "1.2.3 || 1.2.4 || 1.2.5" includes 1.2.5 parse("1.2.3 || 1.2.4 || 1.2.5").to_s includes 1.2.5 - parse("1.2.3 || 1.2.4 || 1.2.5").to_s excludes 1.2.3-0 - "1.2.3 || 1.2.4 || 1.2.5" excludes 1.2.3-0 - ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" includes 1.2.3 - parse("1.2.3 || 1.2.4 || 1.2.5").to_s excludes 1.2.5-0 - parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.3 + "1.2.3 || 1.2.4 || 1.2.5" excludes 1.2.5-0 ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" stringifies as >=1.2.3 <1.3.0 - parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.3-0 ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.6-0 - "1.2.3 || 1.2.4 || 1.2.5" excludes 1.2.5-0 - returns expected begin - parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.6 - "1.2.3 || 1.2.4 || 1.2.5" stringifies as >=1.2.3 <=1.2.5 ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" includes 1.2.6 + returns expected begin + parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.3 + ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.3-0 "1.2.3 || 1.2.4 || 1.2.5" includes 1.2.3 - non-overlapping - "1.2.3 || 1.2.5" includes 1.2.3 - "1.2.3 || 1.2.5" includes 1.2.5 - parse("1.2.3 || 1.2.5").to_s includes 1.2.3 - parse("1.2.3 || 1.2.5").to_s excludes 1.2.3-0 - "1.2.3 || 1.2.5" excludes 1.2.3-0 - returns nil on end - parse("1.2.3 || 1.2.5").to_s excludes 1.2.4 - "1.2.3 || 1.2.5" stringifies as 1.2.3 || 1.2.5 - "1.2.3 || 1.2.5" excludes 1.2.5-0 - returns nil on begin + parse("1.2.3 || 1.2.4 || 1.2.5").to_s excludes 1.2.5-0 + ">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0" includes 1.2.3 returns nil on exclude_begin? - returns nil on exclude_end? - "1.2.3 || 1.2.5" excludes 1.2.4 - parse("1.2.3 || 1.2.5").to_s excludes 1.2.5-0 - parse("1.2.3 || 1.2.5").to_s includes 1.2.5 + parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.6-0 + "1.2.3 || 1.2.4 || 1.2.5" excludes 1.2.3-0 + parse(">=1.2.3 <1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.6 overlapping + ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" includes 1.2.3 + ">=1.2.3 || 1.2.5" stringifies as >=1.2.3 + parse(">=1.2.3 || 1.2.5").to_s excludes 1.2.4-0 + parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.3-0 + parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.3 + ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" stringifies as >=1.2.3 <1.3.0 parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.6-0 - ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.6-0 parse(">=1.2.3 || 1.2.5").to_s excludes 1.2.3-0 + ">=1.2.3 || 1.2.5" excludes 1.2.3-0 ">=1.2.3 || 1.2.5" excludes 1.2.4-0 - ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" includes 1.2.6 - ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" stringifies as >=1.2.3 <1.3.0 - parse(">=1.2.3 || 1.2.5").to_s excludes 1.2.4-0 + ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.3-0 ">=1.2.3 || 1.2.5" includes 1.2.4 - parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s excludes 1.2.3-0 + parse(">=1.2.3 || 1.2.5").to_s includes 1.2.3 parse(">=1.2.3 || 1.2.5").to_s includes 1.2.4 - ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.3-0 - parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.6 - ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" includes 1.2.3 - ">=1.2.3 || 1.2.5" excludes 1.2.3-0 - ">=1.2.3 || 1.2.5" stringifies as >=1.2.3 ">=1.2.3 || 1.2.5" includes 1.2.3 - parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.3 - parse(">=1.2.3 || 1.2.5").to_s includes 1.2.3 - "reasonably close" expressions - "~ 1" excludes 1.0.0-0 - "~1.2.3" stringifies as >=1.2.3 <1.3.0 - parse("~1.2.3-alpha").to_s includes 1.2.3 - "~1.2" includes 1.2.999 - "~1.2.3-alpha" includes 1.2.3-alpha - parse("~ 1.2.3").to_s includes 1.2.3 - parse("~1.2.3").to_s excludes 1.3.0-0 - parse("~ 1.2").to_s includes 1.2.999 - parse("~ 1.2.3-alpha").to_s includes 1.2.3-alpha - parse("~ 1.2.3").to_s excludes 1.3.0-0 - "~1.2.3-alpha" includes 1.2.3 - parse("~1.2").to_s includes 1.2.999 - parse("~1.2").to_s excludes 1.2.0-0 - parse("~ 1.2.3").to_s excludes 1.2.2 - parse("~1.2.3-alpha").to_s excludes 1.2.4-0 - "~1" excludes 2.0.0-0 - "~1.2" stringifies as >=1.2.0 <1.3.0 - parse("~ 1.2.3-alpha").to_s excludes 1.2.4-0 - "~ 1.2.3-alpha" excludes 1.2.3-alph - "~ 1.2" stringifies as >=1.2.0 <1.3.0 - parse("~ 1.2.3-alpha").to_s excludes 1.2.3-alph - parse("~ 1.2").to_s excludes 1.2.0-0 - parse("~1.2.3").to_s includes 1.2.5 - "~ 1.2" includes 1.2.999 - parse("~ 1.2").to_s includes 1.2.0 - "~ 1.2.3" includes 1.2.3 - "~ 1.2" includes 1.2.0 - parse("~1.2").to_s includes 1.2.0 - "~1.2" excludes 1.1.999 - "~ 1" includes 1.999.999 - parse("~1").to_s excludes 2.0.0-0 - "~1" includes 1.999.999 - "~1" excludes 1.0.0-0 - parse("~ 1.2.3-alpha").to_s includes 1.2.3 - "~1.2" excludes 1.3.0-0 - "~ 1.2.3-alpha" includes 1.2.3-alpha - parse("~ 1").to_s excludes 1.0.0-0 - "~1.2.3-alpha" excludes 1.2.3-alph - "~1" excludes 0.999.999 - "~ 1.2.3" stringifies as >=1.2.3 <1.3.0 - parse("~1").to_s includes 1.0.0 - parse("~1.2").to_s excludes 1.1.999 - "~1" includes 1.0.0 - "~ 1.2" excludes 1.2.0-0 - "~ 1.2" excludes 1.1.999 - "~ 1.2.3" includes 1.2.5 - "~ 1.2.3-alpha" includes 1.2.3 - parse("~ 1").to_s includes 1.0.0 - "~ 1.2.3" excludes 1.2.3-0 - "~ 1.2" excludes 1.3.0-0 - parse("~ 1.2.3").to_s includes 1.2.5 - "~1.2.3" excludes 1.2.2 - parse("~ 1").to_s excludes 0.999.999 - "~ 1" excludes 0.999.999 - "~ 1" excludes 2.0.0-0 - "~ 1.2.3-alpha" stringifies as >=1.2.3-alpha <1.3.0 - parse("~1").to_s includes 1.999.999 - parse("~ 1").to_s includes 1.999.999 - "~ 1.2.3" excludes 1.3.0-0 - parse("~1").to_s excludes 1.0.0-0 - parse("~1.2.3").to_s excludes 1.2.2 - "~1.2" excludes 1.2.0-0 - "~1.2.3" excludes 1.2.3-0 - parse("~ 1.2").to_s excludes 1.1.999 - parse("~1").to_s excludes 0.999.999 - parse("~1.2.3-alpha").to_s excludes 1.2.3-alph - "~1.2.3-alpha" stringifies as >=1.2.3-alpha <1.3.0 - parse("~ 1.2.3").to_s excludes 1.2.3-0 - "~1.2.3" excludes 1.3.0-0 - parse("~1.2.3").to_s excludes 1.2.3-0 - "~ 1.2.3-alpha" excludes 1.2.4-0 - "~1" stringifies as >=1.0.0 <2.0.0 - "~1.2" includes 1.2.0 - parse("~ 1.2").to_s excludes 1.3.0-0 - "~ 1.2.3" excludes 1.2.2 - "~1.2.3" includes 1.2.3 - parse("~1.2.3-alpha").to_s includes 1.2.3-alpha - "~1.2.3-alpha" excludes 1.2.4-0 - "~ 1" stringifies as >=1.0.0 <2.0.0 - parse("~1.2.3").to_s includes 1.2.3 - "~1.2.3" includes 1.2.5 - parse("~ 1").to_s excludes 2.0.0-0 - "~ 1" includes 1.0.0 - parse("~1.2").to_s excludes 1.3.0-0 - loose version expressions - "1.2.x" includes 1.2.999 - "1.2.x" includes 1.2.0 - "1.2.X" excludes 1.1.999 - "1.2.3-alpha" stringifies as 1.2.3-alpha - parse("1").to_s excludes 2.0.0-0 - "1.2" excludes 1.1.999 - parse("1.X").to_s excludes 2.0.0-0 - parse("1").to_s excludes 1.0.0-alpha - "1.2.3-alpha" includes 1.2.3-alpha - parse("1.2.3").to_s excludes 1.2.4-alpha - parse("1.2").to_s excludes 1.1.999 - "1.2.3" excludes 1.2.4-alpha - "1.2" excludes 1.3.0-0 - "1.2" excludes 1.2.0-alpha - parse("1.x").to_s excludes 2.0.0-0 - parse("1.x").to_s excludes 1.0.0-alpha - parse("1.2.3-alpha").to_s includes 1.2.3-alpha - "1.X" excludes 1.0.0-alpha - "1.2.x" stringifies as >=1.2.0 <1.3.0 - "1.X" includes 1.999.0 - "1.2.x" excludes 1.3.0-0 - parse("1.X").to_s excludes 0.999.999 - parse("1.2.x").to_s excludes 1.3.0-0 - "1.2.X" includes 1.2.999 - "1.x" includes 1.0.0 - "1.X" includes 1.0.0 - "1.2.X" excludes 1.3.0-0 - "1.X" stringifies as >=1.0.0 <2.0.0 - "1.2" stringifies as >=1.2.0 <1.3.0 - "1.2.3" stringifies as 1.2.3 - parse("1.2.x").to_s excludes 1.2.0-alpha - parse("1.x").to_s includes 1.0.0 - "1.2.X" excludes 1.2.0-alpha - parse("1.2.x").to_s includes 1.2.999 - "1.2.X" includes 1.2.0 - parse("1.2.X").to_s excludes 1.1.999 - parse("1.2.3-alpha").to_s excludes 1.2.3-beta - parse("1.2.3").to_s excludes 1.2.3-alpha - "1" includes 1.0.0 - parse("1.2.3").to_s excludes 1.2.2 - "1.x" stringifies as >=1.0.0 <2.0.0 - parse("1.X").to_s includes 1.0.0 - parse("1.2.X").to_s excludes 1.3.0-0 - parse("1.2").to_s excludes 1.2.0-alpha - parse("1").to_s includes 1.0.0 - "1" excludes 0.999.999 - parse("1.2.x").to_s includes 1.2.0 - "1" stringifies as >=1.0.0 <2.0.0 - "1.2.3" excludes 1.2.2 - parse("1.2").to_s excludes 1.3.0-0 - parse("1.x").to_s includes 1.999.0 - "1.X" excludes 2.0.0-0 - "1" excludes 2.0.0-0 - "1.2" includes 1.2.999 - parse("1.2.3").to_s includes 1.2.3 - parse("1.2.X").to_s includes 1.2.0 - "1.2.3" excludes 1.2.3-alpha - "1.x" excludes 1.0.0-alpha - parse("1.2.x").to_s excludes 1.1.999 - parse("1").to_s excludes 0.999.999 - parse("1.2").to_s includes 1.2.0 - "1.x" excludes 0.999.999 - parse("1.2.3-alpha").to_s excludes 1.2.3-999 - "1" includes 1.999.0 - "1.2.X" stringifies as >=1.2.0 <1.3.0 - parse("1.X").to_s includes 1.999.0 - "1.X" excludes 0.999.999 - "1.2" includes 1.2.0 - parse("1.2.X").to_s includes 1.2.999 - "1.2.3-alpha" excludes 1.2.3-999 - parse("1").to_s includes 1.999.0 - parse("1.2").to_s includes 1.2.999 - "1.x" includes 1.999.0 - parse("1.x").to_s excludes 0.999.999 - "1.2.x" excludes 1.2.0-alpha - "1.x" excludes 2.0.0-0 - parse("1.2.X").to_s excludes 1.2.0-alpha - "1.2.3" includes 1.2.3 - "1.2.3-alpha" excludes 1.2.3-beta - parse("1.X").to_s excludes 1.0.0-alpha - "1.2.x" excludes 1.1.999 - "1" excludes 1.0.0-alpha - invalid expressions - raise an appropriate exception - unioned expressions - parse("1.2 <1.2.5").to_s excludes 1.1.999 - ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" includes 3.0.0 - parse("1 <=1.2.5").to_s includes 1.2.5 - parse("1 <=1.2.5").to_s excludes 1.9.0 - "1.2 <1.2.5" includes 1.2.0 - parse("<1.0.0 >2.0.0").to_s excludes 0.0.0-0 - parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s includes 4.999.999 - parse("1 <=1.2.5").to_s includes 1.0.0 - "<1.0.0 >2.0.0" excludes 0.0.0-0 - "1 <=1.2.5" includes 1.2.5 - "1.2 <1.2.5" stringifies as >=1.2.0 <1.2.5 - parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s excludes 3.0.0-0 - parse("1.2 <1.2.5").to_s excludes 1.9.0 - parse("1.2 <1.2.5").to_s excludes 1.2.0-0 - ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" excludes 3.0.0-0 - "1 <=1.2.5" stringifies as >=1.0.0 <=1.2.5 - "1.2 <1.2.5" excludes 1.1.999 - parse("1 <=1.2.5").to_s excludes 1.0.0-0 - "1.2 <1.2.5" excludes 1.9.0 - "1.2 <1.2.5" excludes 1.2.5-0 - parse("1.2 <1.2.5").to_s excludes 1.2.5-0 - ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" includes 4.999.999 - "1 <=1.2.5" excludes 1.2.6-0 - parse("1 <=1.2.5").to_s excludes 1.2.6-0 - ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" excludes 5.0.0-0 - "1.2 <1.2.5" includes 1.2.4 - "1 <=1.2.5" excludes 1.0.0-0 - parse("1 <=1.2.5").to_s excludes 0.999.999 - "1.2 <1.2.5" excludes 1.2.0-0 - parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s excludes 2.999.999 - parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s includes 3.0.0 - parse("1.2 <1.2.5").to_s includes 1.2.0 - "1 <=1.2.5" excludes 0.999.999 - "<1.0.0 >2.0.0" stringifies as <0.0.0 - parse("<1.0.0 >2.0.0").to_s excludes 0.0.0 - ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" excludes 2.999.999 - "<1.0.0 >2.0.0" excludes 0.0.0 - parse(">1.0.0 >2.0.0 >=3.0.0 <5.0.0").to_s excludes 5.0.0-0 - parse("1.2 <1.2.5").to_s includes 1.2.4 - "1 <=1.2.5" includes 1.0.0 - "1 <=1.2.5" excludes 1.9.0 - ">1.0.0 >2.0.0 >=3.0.0 <5.0.0" stringifies as >=3.0.0 <5.0.0 - #intersection - cannot intersect with non-VersionRanges - between >=10.0.0 <5.0.0 & - >=7.0.0 <1.0.0 - >=5.0.0 <1.0.0 - 15.0.0 - 11.0.0 - 6.0.0 - 1.0.0 - 10.0.0 - 5.0.0 - 15.0.0 - 10.0.0 - 9.0.0 - 6.0.0 - 15.0.0 - 9.0.0 - >=10.0.0 <5.0.0 - 11.0.0 - 4.0.0 - 4.0.0 - 1.0.0 - 5.0.0 - 1.0.0 - is commutative - between 10.0.0 - 5.0.0 & 9.0.0 - 6.0.0 - between 10.0.0 - 5.0.0 & 11.0.0 - 4.0.0 - between 10.0.0 - 5.0.0 & >=5.0.0 <1.0.0 - between >=10.0.0 <5.0.0 & 15.0.0 - 10.0.0 - between >=10.0.0 <5.0.0 & >=7.0.0 <1.0.0 - between >=10.0.0 <5.0.0 & 15.0.0 - 11.0.0 - between >=10.0.0 <5.0.0 & 6.0.0 - 1.0.0 - between >=10.0.0 <5.0.0 & 15.0.0 - 9.0.0 - between 10.0.0 - 5.0.0 & 10.0.0 - 5.0.0 - between >=10.0.0 <5.0.0 & >=10.0.0 <5.0.0 - between >=10.0.0 <5.0.0 & 10.0.0 - 5.0.0 - between >=10.0.0 <5.0.0 & 11.0.0 - 4.0.0 - between 10.0.0 - 5.0.0 & 15.0.0 - 10.0.0 - between 10.0.0 - 5.0.0 & >=7.0.0 <1.0.0 - between >=10.0.0 <5.0.0 & 4.0.0 - 1.0.0 - between 10.0.0 - 5.0.0 & 15.0.0 - 9.0.0 - between 10.0.0 - 5.0.0 & 6.0.0 - 1.0.0 - between 10.0.0 - 5.0.0 & 4.0.0 - 1.0.0 - between 10.0.0 - 5.0.0 & 15.0.0 - 11.0.0 - between >=10.0.0 <5.0.0 & >=5.0.0 <1.0.0 - between >=10.0.0 <5.0.0 & 5.0.0 - 1.0.0 - between >=10.0.0 <5.0.0 & 9.0.0 - 6.0.0 - between 10.0.0 - 5.0.0 & >=10.0.0 <5.0.0 - between 10.0.0 - 5.0.0 & 5.0.0 - 1.0.0 - between 10.0.0 - 5.0.0 & - 15.0.0 - 9.0.0 - >=5.0.0 <1.0.0 - 9.0.0 - 6.0.0 - 15.0.0 - 11.0.0 - >=10.0.0 <5.0.0 - >=7.0.0 <1.0.0 - 5.0.0 - 1.0.0 - 11.0.0 - 4.0.0 - 6.0.0 - 1.0.0 - 4.0.0 - 1.0.0 - 10.0.0 - 5.0.0 - 15.0.0 - 10.0.0 - The version - 1.9999.9999 should not be below range <=2.0.0 - 2.1.3 should not be above range 2.x.x(>=2.0.0 <3.0.0) - 1.2.3 should not be below range 1.2.* || 2.* - 2.4.2 should be above range 2.3 - 0.0.1 should be below range 1.0.0 - 2.0.0 - 2.3.1 should not be below range 2.3 - 1.0.0-beta should not be below range ~1.0.0-alpha - 0.1.5 should be below range 0.1.20 || 1.2.4 - 2.3.1 should not be above range 2.3(>=2.3.0 <2.4.0) - 1.0.2 should not be above range ~1.0(>=1.0.0 <1.1.0) - 1.1.0 should not be above range >1.0.0(>1.0.0) - 1.0.0-beta.1 should be below range 1.0.0-beta.2 - 1.2.3 should not be below range 1.0.0 - 2.0.0 - 2.2.9 should be above range <=2.0.0 - 5.0.0-0 should not be below range ^0.1.0 || ~3.0.1 || 5.0.0 - 5.0.0-0 should not be above range ^0.1.0 || ~3.0.1 || 5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) - 2.4.5 should not be below range ~2.4 - 2.2.4 should be above range ~>1 - 1.0.0-beta should be below range >1 - 1.2.3 should not be above range 1.2.* || 2.*(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) - 1.1.1 should not be below range <1.2 - 1.2.3 should not be above range 1.2.x || 2.x(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) - 0.2.3 should be below range ~1 - 3.5.0 should not be above range ^0.1.0 || ~3.0.1 || >4 <=5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) - 2.0.0 should not be above range ^1.0.0 || ~2.0.1(>=1.0.0 <2.0.0 || >=2.0.1 <2.1.0) - 2.4.0 should not be below range ~2.4 - 1.0.0 should be below range >=2.0.0 - 0.0.0 should be below range ~1.0 - 0.2.4 should not be below range >=0.2.3 <=0.2.4 - 1.2.3 should not be below range 1.2.x || 2.x - 1.0.0 should not be above range >= 1.0.0(>=1.0.0) - 1.1.3 should be below range 1.2.* - 1.0.0-beta should be above range <1 - 1.0.0 should not be below range >= 1 - 1.9999.9999 should not be above range <2.0.0(<2.0.0) - 1.0.0 should be below range 2.x.x - 1.1.3 should be below range 1.2.* || 2.* - 2.5.5 should be above range ~2.4 - 1.0.0-beta should be below range > 1 - 0.6.0-asdf should be below range =0.7.x - 0.7.2 should not be below range =0.7.x - 2.0.0 should not be below range 1.0.0 - 2.0.0 - 1.2.3 should not be above range 1.2.* || 2.*(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) - 1.1.0 should be below range 1.2.x - 1.2.3 should not be below range * - 0.8.0-asdf should be above range =0.7.x - 1.0.0 should not be above range (*) - 2.4.5 should not be above range ~2.4(>=2.4.0 <2.5.0) - 0.0.1 should be below range 1.0.0 - 1.2.4 should not be above range 0.1.20 || 1.2.4(0.1.20 || 1.2.4) - 1.0.0-beta should not be above range 1(>=1.0.0 <2.0.0) - 1.0.0-beta should be below range 1 - 1.9999.9999 should not be below range < 2.0.0 - 0.2.9 should not be above range <= 2.0.0(<=2.0.0) - 0.9.9 should not be above range 1.0.0 - 2.0.0(>=1.0.0 <=2.0.0) - 1.1.1 should not be above range < 1.2(<1.2.0) - 2.0.0 should not be below range ^1.0.0 || ~2.0.1 - 3.0.0 should be above range <=2.0.0 - 3.1.2 should be above range 2 - 0.2.9 should not be below range <= 2.0.0 - 1.2.3-foo should not be above range *(*) - 0.1.0 should be below range ~ 1.0 - 1.0.0-0 should be below range ^1 - 2.1.3 should not be above range 1.2.x || 2.x(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) - 2.3.2 should be below range ~>3.2.1 - 3.1.3 should be above range 2.*.* - 2.0.0 should not be above range <=2.0.0(<=2.0.0) - 0.2.9 should not be below range <=2.0.0 - 0.6.2 should be below range >=0.7.x - 2.9999.9999 should be above range <=2.0.0 - 1.2.3 should not be below range 1.2.* - 1.0.0 should not be below range 1.0.0 - 1.1.3 should be below range 2.*.* - 0.5.4-alpha should be below range ~v0.5.4-pre - 1.0.0 should not be below range - 1.0.1 should not be below range > 1.0.0 - 1.0.1 should be below range 2.*.* - 1.0.2 should not be below range ~ 1.0 - 1.2.3 should not be below range 0.1.20 || 1.2.4 - 1.2.3 should not be below range ~> 1 - 1.1.0 should not be below range > 1.0.0 - 2.1.3 should not be above range 2.*.*(>=2.0.0 <3.0.0) - 0.6.1-1 should not be above range ~0.6.1-1(>=0.6.1-1 <0.7.0) - 1.1.3 should be below range 1.2.x || 2.x - 0.7.2 should not be above range >=0.7.x(>=0.7.0) - 1.2.4 should not be below range 0.1.20 || >1.2.4 - 1.9999.9999 should not be above range <= 2.0.0(<=2.0.0) - 2.4.0 should not be above range ~2.4(>=2.4.0 <2.5.0) - 1.0.1-beta1 should be above range 1.0.0 - 0.7.0-asdf should be below range =0.7.x - 1.1.9999 should be below range 1.2.* || 2.* - 1.2.3 should not be above range *(*) - 1.3.3 should be above range 1.2.* - 1.3.4 should not be below range || - 2.3.5 should be below range ~2.4 - 2.0.0 should not be above range ^3.0.0(>=3.0.0 <4.0.0) - 0.1.97 should not be above range >=0.1.97(>=0.1.97) - 0.2.4 should not be below range >=* - 1.1.0 should not be below range >=1.0.0 - 1.1.0 should not be below range ~ 1.0 - 0.2.9 should not be below range <2.0.0 - 0.1.2 should be below range ~1.0 - 1.9999.9999 should not be below range <= 2.0.0 - 0.2.9 should not be below range < 2.0.0 - 0.2.4 should not be above range >=0.2.3 || <0.0.1(>=0.2.3 || <0.0.1) - 0.2.9 should not be above range <2.0.0(<2.0.0) - 1.0.0 should not be above range >= 1(>=1.0.0) - 1.0.1 should not be below range >=1.0.0 - 4.0.0 should be above range 1.2.* || 2.* - 1.2.3 should not be above range *(*) - 0.7.0-asdf should be below range >=0.7.x - 1.2.3 should not be above range ~> 1(>=1.0.0 <2.0.0) - 3.2.9 should be above range <=2.0.0 - 1.0.0 should not be above range >=1.0.0(>=1.0.0) - 3.3.0 should be above range ~>3.2.1 - 1.1.0 should be above range ~1.0 - 2.2.2 should be below range 2.3 - 3.2.3 should be above range ~> 1 - 2.0.0-beta should be above range 1 - 0.6.1-0 should be below range ~0.6.1-1 - 0.6.0 should be below range >=0.7.x - 1.1.3 should be below range 1.2.x - 1.0.1 should not be below range >= 1.0.0 - 1.2.3 should not be above range ~>1(>=1.0.0 <2.0.0) - 1.2.9 should be below range >=2.0.0 - 0.5.4 should not be above range ~v0.5.4-pre(>=0.5.4-pre <0.6.0) - 0.6.1-pre should be above range ~v0.5.4-pre - 2.2.3 should be above range ~>1 - 0.7.2 should be above range <0.7.x - 2.2.1 should be below range 2.3 - 3.5.0 should not be below range ^0.1.0 || ~3.0.1 || >4 <=5.0.0 - 1.0.0-beta should be above range < 1 - 0.1.20 should not be above range 0.1.20 || 1.2.4(0.1.20 || 1.2.4) - 1.1.0 should not be above range > 1.0.0(>1.0.0) - 2.4.1 should be above range 2.3 - 0.5.4-alpha should be below range ~v0.5.4-pre - 2.5.0 should be above range ~2.4 - 0.1.97 should not be below range >=0.1.97 - 1.0.0 should be below range >1 - 1.2.9 should be below range >2.0.0 - 1.2.4 should not be above range 0.1.20 || >1.2.4(0.1.20 || >1.2.4) - 1.2.1 should be below range ~1.2.2 - 2.0.0 should not be above range 1.0.0 - 2.0.0(>=1.0.0 <=2.0.0) - 1.2.3 should not be above range 1.2.*(>=1.2.0 <1.3.0) - 1.0.1 should not be below range >1.0.0 - 0.6.0 should be above range ~v0.5.4-pre - 0.6.1-1 should not be below range ~0.6.1-1 - 1.0.1 should not be above range >= 1.0.0(>=1.0.0) - 1.0.0 should be below range 2 - 2.0.0 should be above range 1.0.0 - 1.1.0 should not be below range >= 1.0.0 - 1.0.0-beta should be below range 2 - 1.0.1 should not be above range >1.0.0(>1.0.0) - 1.3.0 should be above range ~1.2.2 - 1.0.1 should be above range 1.0.0 - 0.6.2 should not be above range <=0.7.x(<0.8.0) - 0.7.0 should be above range <0.7.x - 1.9999.9999 should be below range 2 - 1.9999.9999 should be below range >=2.0.0 - 1.2.9 should be below range >=2.0.0 - 0.7.2 should not be above range =0.7.x(>=0.7.0 <0.8.0) - 0.2.5 should not be below range >0.2.3 >0.2.4 <=0.2.5 - 0.5.5 should not be above range ~v0.5.4-pre(>=0.5.4-pre <0.6.0) - 0.2.4 should be below range ~>1 - 1.9999.9999 should not be below range <2.0.0 - 2.2.3 should be above range ~1 - 0.7.0-asdf should not be above range >=0.7.x(>=0.7.0) - 2.0.0 should be below range >2.0.0 - 1.0.2 should not be below range ~1.0 - 0.2.3 should be below range ~1 - 0.0.0 should not be above range >=0.2.3 || <0.0.1(>=0.2.3 || <0.0.1) - 1.2.3 should not be above range ~1(>=1.0.0 <2.0.0) - 1.0.0 should not be above range >=1(>=1.0.0) - 2.0.0 should not be above range <= 2.0.0(<=2.0.0) - 2.0.0 should not be below range <= 2.0.0 - 1.0.0 should not be below range >= 1.0.0 - 1.2.3 should not be above range x(*) - 1.2.1 should be above range < 1.2 - 3.2.0 should not be above range ^0.1.0 || ~3.0.1 || 5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) - 1.2.3 should not be below range 1.2.* || 2.* - 0.1.97 should not be above range >=0.1.97(>=0.1.97) - 2.1.3 should not be below range 1.2.x || 2.x - 4.0.0 should not be below range ^3.0.0 - 5.0.1 should be above range 2.*.* - 1.0.0 should not be below range =0.1.0 - 0.7.1-1 should be above range ~0.6.1-1 - 1.0.1 should not be above range > 1.0.0(>1.0.0) - 0.2.3 should be below range 1.0.0 - 2.0.0 - 1.1.3 should be below range 2.x.x - 3.0.0 should be above range 2 - 1.2.3 should not be below range * - 0.5.4 should not be below range ~v0.5.4-pre - 3.2.2 should not be above range ~>3.2.1(>=3.2.1 <3.3.0) - 2.3.0 should be below range ~2.4 - 1.2.3 should not be below range ~1 - 2.1.3 should not be below range 2.*.* - 1.2.3 should not be above range 1.2.x(>=1.2.0 <1.3.0) - 1.1.0 should not be above range >=1.0.0(>=1.0.0) - 1.0.0-beta should not be below range ^1.0.0-alpha - 2.0.0 should be below range >2.0.0 - 0.8.2 should be above range =0.7.x - 0.7.2 should not be below range >=0.7.x - 3.0.0 should be above range 1.2.x || 2.x - 0.7.0-asdf should not be above range =0.7.x(>=0.7.0 <0.8.0) - 1.0.0-beta should not be below range ^0.1.0 || ~3.0.1 || 5.0.0 - 3.1.3 should be above range 2.x.x - 1.0.0 should not be below range >=1.0.0 - 0.8.0 should be above range =0.7.x - 1.3.0 should be above range ~1.2.2 - 3.0.0 should be above range 2.x.x - 1.1.3 should be below range 1.2.* - 1.2.3 should not be below range 1.2.x - 0.0.0-0 should not be above range ^1(>=1.0.0 <2.0.0) - 0.1.20 should not be below range 0.1.20 || 1.2.4 - 2.2.3 should be above range 1.0.0 - 2.0.0 - 3.2.0 should not be below range ^0.1.0 || ~3.0.1 || 5.0.0 - 0.2.5 should not be above range >0.2.3 >0.2.4 <=0.2.5(>0.2.4 <=0.2.5) - 1.1.0 should not be below range >1.0.0 - 1.0.0-beta should not be above range ^0.1.0 || ~3.0.1 || 5.0.0(>=0.1.0 <0.2.0 || >=3.0.1 <3.1.0 || 5.0.0) - 1.2.3 should not be below range x - 1.0.1 should not be above range >=1.0.0(>=1.0.0) - 1.3.0 should be above range 1.2.x - 0.2.9 should not be above range < 2.0.0(<2.0.0) - 2.1.2 should not be below range 2 - 1.9999.9999 should not be above range <=2.0.0(<=2.0.0) - 1.1.2 should be above range ~1.0 - 2.1.3 should not be below range 1.2.* || 2.* - 1.2.3 should not be above range 0.1.20 || 1.2.4(0.1.20 || 1.2.4) - 3.3.2 should be above range ~>3.2.1 - 2.1.3 should not be above range 1.2.* || 2.*(>=1.2.0 <1.3.0 || >=2.0.0 <3.0.0) - 1.3.4 should not be above range ||(*) - 0.2.4 should not be above range >=*(>=0.0.0) - 1.1.0 should be above range ~ 1.0 - 1.2.0 should be above range <1.2 - 1.1.1 should be below range >=2.0.0 - 1.0.0 should be above range <1 - 2.1.2 should not be above range 2(>=2.0.0 <3.0.0) - 2.2.9 should be above range <2.0.0 - 1.9999.9999 should not be above range < 2.0.0(<2.0.0) - 2.3.0 should be below range ~2.4 - 1.1.1 should not be above range <1.2(<1.2.0) - 0.6.2 should be below range =0.7.x - 2.0.0 should be above range <2.0.0 - 2.1.3 should not be below range 2.x.x - 2.5.0 should be above range ~2.4 - 1.1.1 should not be below range < 1.2 - 2.0.0 should not be below range <=2.0.0 - 0.2.3 should be below range ~>1 - 3.2.0 should be below range ~>3.2.1 - 3.2.2 should not be below range ~>3.2.1 - 1.0.0 should be below range 1.2.x || 2.x - 0.2.9 should not be above range <=2.0.0(<=2.0.0) - 1.0.0 should not be below range >=1 - 1.2.5 should be above range 0.1.20 || 1.2.4 - 1.2.1 should be below range ~1.2.2 - 0.2.3 should be below range ~> 1 - 2.9999.9999 should be above range <2.0.0 - 0.2.3 should not be below range >=0.2.3 || <0.0.1 - 2.2.3 should be above range ~1 - 2.9.9 should not be below range 1.0.0 - 2.0.0 - 0.2.4 should not be above range >=0.2.3 <=0.2.4(>=0.2.3 <=0.2.4) - 1.1.0 should not be above range >= 1.0.0(>=1.0.0) - 0.0.0-beta should be below range 1 - 0.2.3 should not be above range >=0.2.3 || <0.0.1(>=0.2.3 || <0.0.1) - 1.3.3 should be above range 1.2.x - 1.2.3 should not be above range 1.0.0 - 2.0.0(>=1.0.0 <=2.0.0) - 3.1.3 should be above range 1.2.* || 2.* - 2.0.1 should be above range 1.0.0 - 2.0.0 - 0.0.0 should be below range 1.0.0 - 0.0.0 should not be below range >=0.2.3 || <0.0.1 - 1.2.4 should not be below range 0.1.20 || 1.2.4 - 3.1.3 should be above range 1.2.x || 2.x - 2.1.1 should be above range <=2.0.0 - 1.0.2 should not be above range ~ 1.0(>=1.0.0 <1.1.0) - 0.2.4 should not be below range >=0.2.3 || <0.0.1 - 1.0.0 should not be above range 1.0.0(1.0.0) - 0.6.0 should be below range =0.7.x - 1.2.0 should be below range >1.2 - 2.0.0-beta should be above range 1 - 0.6.2 should not be below range <=0.7.x - 0.5.5 should not be below range ~v0.5.4-pre - 1.3.3 should be above range 1.2.* - 1.2.3 should not be below range ~>1 - 1.2.1 should be below range > 1.2 - -SemanticPuppet::Dependency::GraphNode - #<=> - can be compared - #satisfied - is unsatisfied when any dependencies are missing - is unsatisfied when no nodes have been appended - is satisfied when all dependencies are fulfilled - #populate_children - accepts a graph solution and populates it across all nodes - saves all relevant nodes as its children - dependencies - are added by #add_dependency - are maintained in the #dependencies Hash - #<< - does not append unsatisfying nodes - does not append nodes with unknown names - appends satisfying nodes to the dependencies - -SemanticPuppet::Dependency::UnsatisfiableGraph - #sentence_from_list - with a list of more than three items - should eql "foo, bar, baz, and quux" - with a list of three items - should eql "foo, bar, and baz" - with a list of two items - should eql "foo and bar" - with a list of one item - should eql "foo" - #message - should match /foo, bar, and baz/ + ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" excludes 1.2.6-0 + ">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0" includes 1.2.6 + parse(">=1.2.3 <=1.2.5 || >=1.2.5 <1.3.0").to_s includes 1.2.6 SemanticPuppet::Dependency + .sources + defaults to an empty list + can be modified by using #add_source + can be emptied by using #clear_sources + is frozen .query - with multiple sources - resolves all dependencies against all sources - queries each source in turn with one source - queries the source for release information queries the source for each dependency only once queries the source for each dependency - populates the returned ModuleRelease with related dependencies - returns a ModuleRelease with the requested dependencies populates all returned ModuleReleases with related dependencies + queries the source for release information + returns a ModuleRelease with the requested dependencies + populates the returned ModuleRelease with related dependencies + with multiple sources + queries each source in turn + resolves all dependencies against all sources without sources returns an unsatisfied ModuleRelease - .sources - defaults to an empty list - can be emptied by using #clear_sources - is frozen - can be modified by using #add_source .resolve - for a module without dependencies - returns the greatest release matching the version range - when the query includes both stable and prerelease versions - returns the greatest stable release matching the range - when the query omits all versions - fails with an appropriate message - when the query omits all stable versions - returns the greatest prerelease version matching the range - that violate graph constraints - that cannot be resolved - fails with an appropriate message + for a module with circular dependencies that can be resolved terminates - for a module with dependencies - returns the greatest releases matching the dependency range - when the dependency has no stable versions - returns the greatest prerelease version matching the range - when the dependency has both stable and prerelease versions - returns the greatest stable release matching the range - when the dependency cannot be satisfied + that cannot be resolved fails with an appropriate message - for a module with circular dependencies + that violate graph constraints that can be resolved terminates that cannot be resolved fails with an appropriate message + for a module with competing dependencies + that overlap + returns the greatest release satisfying all dependencies + that do not overlap + fails with an appropriate message for a module with dependencies that violate module constraints on the graph that can be resolved terminates that cannot be resolved fails with an appropriate message - for a module with competing dependencies - that do not overlap + for a module without dependencies + returns the greatest release matching the version range + when the query includes both stable and prerelease versions + returns the greatest stable release matching the range + when the query omits all stable versions + returns the greatest prerelease version matching the range + when the query omits all versions + fails with an appropriate message + for a module with dependencies + returns the greatest releases matching the dependency range + when the dependency has both stable and prerelease versions + returns the greatest stable release matching the range + when the dependency has no stable versions + returns the greatest prerelease version matching the range + when the dependency cannot be satisfied fails with an appropriate message - that overlap - returns the greatest release satisfying all dependencies - -SemanticPuppet::Dependency::ModuleRelease - #<=> - orders releases with different names lexographically - considers releases with lesser version numbers lesser - considers releases with greater version numbers greater - orders releases by name first - #satisfies_dependency? - returns false when there are no dependencies to satisfy - returns false when the release does not match the dependency version - returns true when the release matches the dependency - returns false when the release does not match the dependency name - #to_s - should =~ /1.2.3/ - should =~ /foobarbaz/ - #== - can compare a release with something that is not a release - considers a release different from something that is not a release - considers two equal releases to be equal - considers two releases with different versions to be different - considers two releases with different names to be different - #<< - marks matching dependencies as satisfied - does not mark mis-matching dependency versions as satisfied - does not mark mis-matching dependency names as satisfied - #dependency_names - lists the names of all the release's dependencies - #satisfied? - returns true when all dependencies have been satisified - returns false when not all dependencies have been satisified - returns true when there are no dependencies to satisfy - returns false when no dependencies have been satisified - returns false when not all dependency versions have been satisified - -SemanticPuppet::Dependency::Graph - #add_graph_constraint - can create a new constraint on a graph - permits multiple graph constraints - #initialize - can be called without arguments - adds constraints for every key in the passed hash - implements the GraphNode protocol - adds the named dependencies for every key in the passed hash - #add_constraint - permits multiple constraints against the same module name - can create a new constraint on a module - #satisfies_graph? - returns false if the solution violates a graph constraint - returns false if the solution violates any graph constraint - returns true if the solution violates no graph constraints - #satisfies_dependency? - is not satisfied by modules that do not fulfill the constraint - is satisfied by modules that do fulfill all the constraints - is not satisfied by modules that do not fulfill all the constraints - is not satisfied by modules it does not depend on - -SemanticPuppet::Version - #<=> - Spec v1.0.0 - Section 4 - sorted order - Spec v2.0.0 - Section 11 - comparisions between prereleases - numeric identifiers sort numerically - identical prereleases are equal - build metadata does not figure into precendence - non-numeric identifiers have a higher precendence - build metadata does figure into equality - non-numeric identifiers sort ASCIIbetically - sorted order - larger identifier sets have precendence - identifiers are parsed left-to-right - comparisons without prereleases - sorted order - comparisons against prereleases - prereleases have lower precedence - #== - should yield false when the prerelease differs - should yield false when compared to something that is not a Version - should yield false when the major differs - should yield false when the patch differs - should yield true when comparing two equal instances - should yield false when the minor differs - #next - with :major - does not modify the original version - removes any build information - resets the minor and patch versions to 0 - returns the next major version - removes any prerelease information - with :minor - returns the next minor version - removes any prerelease information - removes any build information - resets the patch version to 0 - does not modify the original version - with :patch - does not modify the original version - returns the next patch version - removes any build information - removes any prerelease information - .parse - Spec v2.0.0 - Section 2 - rejects version numbers containing leading zeroes - rejects versions that contain too few parts - rejects versions that contain too many parts - rejects versions that contain non-integers - permits zeroes in version number parts - rejects versions that contain negative integers - examples - 1.10.0 - 1.11.0 - 1.9.0 - Section 10 - permits non-numeric build identifiers with leading zeroes - rejects build identifiers with non-alphanumerics - permits numeric build identifiers with leading zeroes - rejects empty build metadata - permits numeric build identifiers of zero - rejects empty build identifiers - examples - 1.0.0+20130313144700 - 1.0.0-beta+exp.sha.5114f85 - 1.0.0-alpha+001 - Section 9 - permits non-numeric prerelease identifiers with leading zeroes - rejects numeric prerelease identifiers with leading zeroes - permits numeric prerelease identifiers of zero - rejects empty prerelease version identifiers - rejects empty prerelease versions - rejects prerelease identifiers with non-alphanumerics - examples - 1.0.0-x.7.z.92 - 1.0.0-alpha - 1.0.0-alpha.1 - 1.0.0-0.3.7 - Spec v1.0.0 - Section 4 - rejects empty prerelease versions - rejects prerelease identifiers with non-alphanumerics - permits numeric prerelease identifiers of zero - permits non-numeric prerelease identifiers with leading zeroes - rejects numeric prerelease identifiers with leading zeroes - examples - 1.0.0-beta1 - 1.0.0-beta2 - 1.0.0-alpha1 - 1.0.0-rc1 - Section 2 - permits zeroes in version number parts - rejects versions that contain too few parts - rejects versions that contain non-integers - rejects versions that contain too many parts - examples - 1.9.0 - 1.11.0 - 1.10.0 - .valid? - Spec v1.0.0 - Section 2 - rejects versions that contain too few parts - permits zeroes in version number parts - rejects versions that contain non-integers - rejects versions that contain too many parts - Section 4 - rejects numeric prerelease identifiers with leading zeroes - rejects prerelease identifiers with non-alphanumerics - permits numeric prerelease identifiers of zero - permits non-numeric prerelease identifiers with leading zeroes - rejects empty prerelease versions - Spec v2.0.0 - Section 2 - rejects versions that contain too many parts - rejects versions that contain negative integers - rejects versions that contain non-integers - rejects version numbers containing leading zeroes - rejects versions that contain too few parts - permits zeroes in version number parts - Section 9 - rejects prerelease identifiers with non-alphanumerics - rejects empty prerelease versions - rejects empty prerelease version identifiers - permits non-numeric prerelease identifiers - rejects numeric prerelease identifiers with leading zeroes - permits numeric prerelease identifiers of zero - permits non-numeric prerelease identifiers with leading zeroes - Section 10 - rejects empty build metadata - permits numeric build identifiers of zero - rejects empty build identifiers - permits numeric build identifiers with leading zeroes - permits non-numeric build identifiers with leading zeroes - rejects build identifiers with non-alphanumerics -Finished in 0.3395 seconds (files took 0.27782 seconds to load) +Finished in 0.66649 seconds (files took 0.52811 seconds to load) 985 examples, 0 failures -Randomized with seed 926 +Randomized with seed 5257 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -2114,12 +2148,14 @@ dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: copying local configuration +I: user script /srv/workspace/pbuilder/51453/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/51453/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/22410 and its subdirectories -I: Current time: Sun Jun 20 04:03:44 -12 2021 -I: pbuilder-time-stamp: 1624205024 +I: removing directory /srv/workspace/pbuilder/51453 and its subdirectories +I: Current time: Sun Jul 24 12:27:51 +14 2022 +I: pbuilder-time-stamp: 1658615271