Diff of the two buildlogs: -- --- b1/build.log 2023-06-01 20:18:23.903349094 +0000 +++ b2/build.log 2023-06-01 20:24:18.647812360 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jun 1 08:07:07 -12 2023 -I: pbuilder-time-stamp: 1685650027 +I: Current time: Fri Jun 2 10:18:35 +14 2023 +I: pbuilder-time-stamp: 1685650715 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/bookworm-reproducible-base.tgz] I: copying local configuration @@ -16,7 +16,7 @@ I: copying [./ruby-dry-logic_1.2.0.orig.tar.gz] I: copying [./ruby-dry-logic_1.2.0-3.debian.tar.xz] I: Extracting source -gpgv: Signature made Wed Nov 24 09:25:28 2021 -12 +gpgv: Signature made Thu Nov 25 11:25:28 2021 +14 gpgv: using RSA key BEED4DED5544A4C03E283DC74BCD0567C296D05D gpgv: Can't check signature: No public key dpkg-source: warning: cannot verify inline signature for ./ruby-dry-logic_1.2.0-3.dsc: no acceptable signature found @@ -28,135 +28,167 @@ dpkg-source: info: applying Fix-specs-for-size-min_size-max_size-predicates-fixes-91.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2970/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/18322/tmp/hooks/D01_modify_environment starting +debug: Running on virt64b. +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 +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jun 2 10:19 /bin/sh -> /bin/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/18322/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/18322/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='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='bookworm' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="15" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.15(1)-release' + BUILDDIR=/build + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=bookworm + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='d443a730670b497da32d5626a30119b4' - 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='2970' - PS1='# ' - PS2='> ' + INVOCATION_ID=3cec59715cce44bbbb4f9191c495a37b + LANG=C + LANGUAGE=it_CH:it + LC_ALL=C + MACHTYPE=arm-unknown-linux-gnueabihf + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnueabihf + 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=18322 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/r-b-build.tvQN1Q4l/pbuilderrc_DjbW --distribution bookworm --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.tvQN1Q4l/b1 --logfile b1/build.log ruby-dry-logic_1.2.0-3.dsc' - SUDO_GID='112' - SUDO_UID='106' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://10.0.0.15:3142/' + 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/r-b-build.tvQN1Q4l/pbuilderrc_o2gc --distribution bookworm --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/bookworm-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.tvQN1Q4l/b2 --logfile b2/build.log --extrapackages usrmerge ruby-dry-logic_1.2.0-3.dsc' + SUDO_GID=113 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt32b 5.10.0-23-armmp-lpae #1 SMP Debian 5.10.179-1 (2023-05-12) armv7l GNU/Linux + Linux i-capture-the-hostname 5.10.0-23-arm64 #1 SMP Debian 5.10.179-1 (2023-05-12) aarch64 GNU/Linux I: ls -l /bin total 5072 - -rwxr-xr-x 1 root root 838488 Apr 23 09:24 bash - -rwxr-xr-x 3 root root 67144 Sep 18 2022 bunzip2 - -rwxr-xr-x 3 root root 67144 Sep 18 2022 bzcat - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzcmp -> bzdiff - -rwxr-xr-x 1 root root 2225 Sep 18 2022 bzdiff - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzegrep -> bzgrep - -rwxr-xr-x 1 root root 4893 Nov 27 2021 bzexe - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzfgrep -> bzgrep - -rwxr-xr-x 1 root root 3775 Sep 18 2022 bzgrep - -rwxr-xr-x 3 root root 67144 Sep 18 2022 bzip2 - -rwxr-xr-x 1 root root 67112 Sep 18 2022 bzip2recover - lrwxrwxrwx 1 root root 6 Sep 18 2022 bzless -> bzmore - -rwxr-xr-x 1 root root 1297 Sep 18 2022 bzmore - -rwxr-xr-x 1 root root 67632 Sep 20 2022 cat - -rwxr-xr-x 1 root root 67676 Sep 20 2022 chgrp - -rwxr-xr-x 1 root root 67644 Sep 20 2022 chmod - -rwxr-xr-x 1 root root 67684 Sep 20 2022 chown - -rwxr-xr-x 1 root root 133532 Sep 20 2022 cp - -rwxr-xr-x 1 root root 132868 Jan 5 01:20 dash - -rwxr-xr-x 1 root root 133220 Sep 20 2022 date - -rwxr-xr-x 1 root root 67732 Sep 20 2022 dd - -rwxr-xr-x 1 root root 68104 Sep 20 2022 df - -rwxr-xr-x 1 root root 133632 Sep 20 2022 dir - -rwxr-xr-x 1 root root 59128 Mar 22 21:02 dmesg - lrwxrwxrwx 1 root root 8 Dec 19 01:33 dnsdomainname -> hostname - lrwxrwxrwx 1 root root 8 Dec 19 01:33 domainname -> hostname - -rwxr-xr-x 1 root root 67560 Sep 20 2022 echo - -rwxr-xr-x 1 root root 41 Jan 24 02:43 egrep - -rwxr-xr-x 1 root root 67548 Sep 20 2022 false - -rwxr-xr-x 1 root root 41 Jan 24 02:43 fgrep - -rwxr-xr-x 1 root root 55748 Mar 22 21:02 findmnt - -rwsr-xr-x 1 root root 26208 Mar 22 20:15 fusermount - -rwxr-xr-x 1 root root 128608 Jan 24 02:43 grep - -rwxr-xr-x 2 root root 2346 Apr 9 2022 gunzip - -rwxr-xr-x 1 root root 6447 Apr 9 2022 gzexe - -rwxr-xr-x 1 root root 64220 Apr 9 2022 gzip - -rwxr-xr-x 1 root root 67032 Dec 19 01:33 hostname - -rwxr-xr-x 1 root root 67720 Sep 20 2022 ln - -rwxr-xr-x 1 root root 35132 Mar 22 21:51 login - -rwxr-xr-x 1 root root 133632 Sep 20 2022 ls - -rwxr-xr-x 1 root root 136808 Mar 22 21:02 lsblk - -rwxr-xr-x 1 root root 67800 Sep 20 2022 mkdir - -rwxr-xr-x 1 root root 67764 Sep 20 2022 mknod - -rwxr-xr-x 1 root root 67596 Sep 20 2022 mktemp - -rwxr-xr-x 1 root root 38504 Mar 22 21:02 more - -rwsr-xr-x 1 root root 38496 Mar 22 21:02 mount - -rwxr-xr-x 1 root root 9824 Mar 22 21:02 mountpoint - -rwxr-xr-x 1 root root 133532 Sep 20 2022 mv - lrwxrwxrwx 1 root root 8 Dec 19 01:33 nisdomainname -> hostname - lrwxrwxrwx 1 root root 14 Apr 2 18:25 pidof -> /sbin/killall5 - -rwxr-xr-x 1 root root 67608 Sep 20 2022 pwd - lrwxrwxrwx 1 root root 4 Apr 23 09:24 rbash -> bash - -rwxr-xr-x 1 root root 67600 Sep 20 2022 readlink - -rwxr-xr-x 1 root root 67672 Sep 20 2022 rm - -rwxr-xr-x 1 root root 67600 Sep 20 2022 rmdir - -rwxr-xr-x 1 root root 67400 Nov 2 2022 run-parts - -rwxr-xr-x 1 root root 133372 Jan 5 07:55 sed - lrwxrwxrwx 1 root root 4 Jan 5 01:20 sh -> dash - -rwxr-xr-x 1 root root 67584 Sep 20 2022 sleep - -rwxr-xr-x 1 root root 67644 Sep 20 2022 stty - -rwsr-xr-x 1 root root 50800 Mar 22 21:02 su - -rwxr-xr-x 1 root root 67584 Sep 20 2022 sync - -rwxr-xr-x 1 root root 336764 Apr 6 02:25 tar - -rwxr-xr-x 1 root root 67144 Nov 2 2022 tempfile - -rwxr-xr-x 1 root root 133224 Sep 20 2022 touch - -rwxr-xr-x 1 root root 67548 Sep 20 2022 true - -rwxr-xr-x 1 root root 9768 Mar 22 20:15 ulockmgr_server - -rwsr-xr-x 1 root root 22108 Mar 22 21:02 umount - -rwxr-xr-x 1 root root 67572 Sep 20 2022 uname - -rwxr-xr-x 2 root root 2346 Apr 9 2022 uncompress - -rwxr-xr-x 1 root root 133632 Sep 20 2022 vdir - -rwxr-xr-x 1 root root 42608 Mar 22 21:02 wdctl - lrwxrwxrwx 1 root root 8 Dec 19 01:33 ypdomainname -> hostname - -rwxr-xr-x 1 root root 1984 Apr 9 2022 zcat - -rwxr-xr-x 1 root root 1678 Apr 9 2022 zcmp - -rwxr-xr-x 1 root root 6460 Apr 9 2022 zdiff - -rwxr-xr-x 1 root root 29 Apr 9 2022 zegrep - -rwxr-xr-x 1 root root 29 Apr 9 2022 zfgrep - -rwxr-xr-x 1 root root 2081 Apr 9 2022 zforce - -rwxr-xr-x 1 root root 8103 Apr 9 2022 zgrep - -rwxr-xr-x 1 root root 2206 Apr 9 2022 zless - -rwxr-xr-x 1 root root 1842 Apr 9 2022 zmore - -rwxr-xr-x 1 root root 4577 Apr 9 2022 znew -I: user script /srv/workspace/pbuilder/2970/tmp/hooks/D02_print_environment finished + -rwxr-xr-x 1 root root 838488 Apr 24 11:24 bash + -rwxr-xr-x 3 root root 67144 Sep 19 2022 bunzip2 + -rwxr-xr-x 3 root root 67144 Sep 19 2022 bzcat + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzcmp -> bzdiff + -rwxr-xr-x 1 root root 2225 Sep 19 2022 bzdiff + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzegrep -> bzgrep + -rwxr-xr-x 1 root root 4893 Nov 28 2021 bzexe + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzfgrep -> bzgrep + -rwxr-xr-x 1 root root 3775 Sep 19 2022 bzgrep + -rwxr-xr-x 3 root root 67144 Sep 19 2022 bzip2 + -rwxr-xr-x 1 root root 67112 Sep 19 2022 bzip2recover + lrwxrwxrwx 1 root root 6 Sep 19 2022 bzless -> bzmore + -rwxr-xr-x 1 root root 1297 Sep 19 2022 bzmore + -rwxr-xr-x 1 root root 67632 Sep 21 2022 cat + -rwxr-xr-x 1 root root 67676 Sep 21 2022 chgrp + -rwxr-xr-x 1 root root 67644 Sep 21 2022 chmod + -rwxr-xr-x 1 root root 67684 Sep 21 2022 chown + -rwxr-xr-x 1 root root 133532 Sep 21 2022 cp + -rwxr-xr-x 1 root root 132868 Jan 6 03:20 dash + -rwxr-xr-x 1 root root 133220 Sep 21 2022 date + -rwxr-xr-x 1 root root 67732 Sep 21 2022 dd + -rwxr-xr-x 1 root root 68104 Sep 21 2022 df + -rwxr-xr-x 1 root root 133632 Sep 21 2022 dir + -rwxr-xr-x 1 root root 59128 Mar 23 23:02 dmesg + lrwxrwxrwx 1 root root 8 Dec 20 03:33 dnsdomainname -> hostname + lrwxrwxrwx 1 root root 8 Dec 20 03:33 domainname -> hostname + -rwxr-xr-x 1 root root 67560 Sep 21 2022 echo + -rwxr-xr-x 1 root root 41 Jan 25 04:43 egrep + -rwxr-xr-x 1 root root 67548 Sep 21 2022 false + -rwxr-xr-x 1 root root 41 Jan 25 04:43 fgrep + -rwxr-xr-x 1 root root 55748 Mar 23 23:02 findmnt + -rwsr-xr-x 1 root root 26208 Mar 23 22:15 fusermount + -rwxr-xr-x 1 root root 128608 Jan 25 04:43 grep + -rwxr-xr-x 2 root root 2346 Apr 10 2022 gunzip + -rwxr-xr-x 1 root root 6447 Apr 10 2022 gzexe + -rwxr-xr-x 1 root root 64220 Apr 10 2022 gzip + -rwxr-xr-x 1 root root 67032 Dec 20 03:33 hostname + -rwxr-xr-x 1 root root 67720 Sep 21 2022 ln + -rwxr-xr-x 1 root root 35132 Mar 23 23:51 login + -rwxr-xr-x 1 root root 133632 Sep 21 2022 ls + -rwxr-xr-x 1 root root 136808 Mar 23 23:02 lsblk + -rwxr-xr-x 1 root root 67800 Sep 21 2022 mkdir + -rwxr-xr-x 1 root root 67764 Sep 21 2022 mknod + -rwxr-xr-x 1 root root 67596 Sep 21 2022 mktemp + -rwxr-xr-x 1 root root 38504 Mar 23 23:02 more + -rwsr-xr-x 1 root root 38496 Mar 23 23:02 mount + -rwxr-xr-x 1 root root 9824 Mar 23 23:02 mountpoint + -rwxr-xr-x 1 root root 133532 Sep 21 2022 mv + lrwxrwxrwx 1 root root 8 Dec 20 03:33 nisdomainname -> hostname + lrwxrwxrwx 1 root root 14 Apr 3 20:25 pidof -> /sbin/killall5 + -rwxr-xr-x 1 root root 67608 Sep 21 2022 pwd + lrwxrwxrwx 1 root root 4 Apr 24 11:24 rbash -> bash + -rwxr-xr-x 1 root root 67600 Sep 21 2022 readlink + -rwxr-xr-x 1 root root 67672 Sep 21 2022 rm + -rwxr-xr-x 1 root root 67600 Sep 21 2022 rmdir + -rwxr-xr-x 1 root root 67400 Nov 3 2022 run-parts + -rwxr-xr-x 1 root root 133372 Jan 6 09:55 sed + lrwxrwxrwx 1 root root 9 Jun 2 10:19 sh -> /bin/bash + -rwxr-xr-x 1 root root 67584 Sep 21 2022 sleep + -rwxr-xr-x 1 root root 67644 Sep 21 2022 stty + -rwsr-xr-x 1 root root 50800 Mar 23 23:02 su + -rwxr-xr-x 1 root root 67584 Sep 21 2022 sync + -rwxr-xr-x 1 root root 336764 Apr 7 04:25 tar + -rwxr-xr-x 1 root root 67144 Nov 3 2022 tempfile + -rwxr-xr-x 1 root root 133224 Sep 21 2022 touch + -rwxr-xr-x 1 root root 67548 Sep 21 2022 true + -rwxr-xr-x 1 root root 9768 Mar 23 22:15 ulockmgr_server + -rwsr-xr-x 1 root root 22108 Mar 23 23:02 umount + -rwxr-xr-x 1 root root 67572 Sep 21 2022 uname + -rwxr-xr-x 2 root root 2346 Apr 10 2022 uncompress + -rwxr-xr-x 1 root root 133632 Sep 21 2022 vdir + -rwxr-xr-x 1 root root 42608 Mar 23 23:02 wdctl + lrwxrwxrwx 1 root root 8 Dec 20 03:33 ypdomainname -> hostname + -rwxr-xr-x 1 root root 1984 Apr 10 2022 zcat + -rwxr-xr-x 1 root root 1678 Apr 10 2022 zcmp + -rwxr-xr-x 1 root root 6460 Apr 10 2022 zdiff + -rwxr-xr-x 1 root root 29 Apr 10 2022 zegrep + -rwxr-xr-x 1 root root 29 Apr 10 2022 zfgrep + -rwxr-xr-x 1 root root 2081 Apr 10 2022 zforce + -rwxr-xr-x 1 root root 8103 Apr 10 2022 zgrep + -rwxr-xr-x 1 root root 2206 Apr 10 2022 zless + -rwxr-xr-x 1 root root 1842 Apr 10 2022 zmore + -rwxr-xr-x 1 root root 4577 Apr 10 2022 znew +I: user script /srv/workspace/pbuilder/18322/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -338,7 +370,7 @@ Get: 132 http://deb.debian.org/debian bookworm/main armhf ruby-rspec-mocks all 3.12.0c0e1m1s0-1 [79.5 kB] Get: 133 http://deb.debian.org/debian bookworm/main armhf ruby-rspec all 3.12.0c0e1m1s0-1 [5084 B] Get: 134 http://deb.debian.org/debian bookworm/main armhf ruby-warning all 1.3.0-1 [8968 B] -Fetched 44.8 MB in 10s (4445 kB/s) +Fetched 44.8 MB in 5s (9135 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:armhf. (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 ... 19324 files and directories currently installed.) @@ -897,8 +929,19 @@ Writing extended state information... Building tag database... -> Finished parsing the build-deps +Reading package lists... +Building dependency tree... +Reading state information... +usrmerge is already the newest version (35). +0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. I: Building the package -I: Running cd /build/ruby-dry-logic-1.2.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-dry-logic_1.2.0-3_source.changes +I: user script /srv/workspace/pbuilder/18322/tmp/hooks/A99_set_merged_usr starting +Re-configuring usrmerge... +removed '/etc/unsupported-skip-usrmerge-conversion' +The system has been successfully converted. +I: user script /srv/workspace/pbuilder/18322/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/ruby-dry-logic-1.2.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-dry-logic_1.2.0-3_source.changes dpkg-buildpackage: info: source package ruby-dry-logic dpkg-buildpackage: info: source version 1.2.0-3 dpkg-buildpackage: info: source distribution unstable @@ -927,7 +970,7 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-dry-logic/ -O--buildsystem=ruby dh_ruby --install /build/ruby-dry-logic-1.2.0/debian/ruby-dry-logic -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20230601-30323-vvkntb/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20230602-28679-i5ymis/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: description and summary are identical WARNING: open-ended dependency on bundler (>= 0, development) is not recommended @@ -941,7 +984,7 @@ Name: dry-logic Version: 1.2.0 File: dry-logic-1.2.0.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-dry-logic/usr/share/rubygems-integration/all /tmp/d20230601-30323-vvkntb/dry-logic-1.2.0.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-dry-logic/usr/share/rubygems-integration/all /tmp/d20230602-28679-i5ymis/dry-logic-1.2.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/ruby-dry-logic-1.2.0/debian/ruby-dry-logic/usr/share/rubygems-integration/all/gems/dry-logic-1.2.0/lib/dry-logic.rb /build/ruby-dry-logic-1.2.0/debian/ruby-dry-logic/usr/share/rubygems-integration/all/gems/dry-logic-1.2.0/lib/dry/logic.rb @@ -1001,690 +1044,244 @@ RUBYLIB=. GEM_PATH=/build/ruby-dry-logic-1.2.0/debian/ruby-dry-logic/usr/share/rubygems-integration/all:/build/ruby-dry-logic-1.2.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/arm-linux-gnueabihf/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/arm-linux-gnueabihf/rubygems-integration/3.1.0 ruby3.1 -S rake -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.12.0/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.12.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 1632 - -Dry::Logic::Predicates - #str? - when value is a string - behaves like a passing predicate - is expected to equal true - with value is not a string - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Operations::Set - #to_ast - returns result ast - returns ast - returns result ast with an :id - #to_s - returns string representation - #call - applies all its rules to the input - -Dry::Logic::Predicates - #included_in? - with value is not present in list - behaves like a failing predicate - is expected to equal false - when value is present in list - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #uuid_v4? - with value is not a valid V4 UUID - behaves like a failing predicate - is expected to equal false - when value is a valid V4 UUID - behaves like a passing predicate - is expected to equal true +Randomized with seed 52602 Dry::Logic::Predicates - #filled? - when value is filled + #decimal? + when value is a decimal behaves like a passing predicate is expected to equal true - with value is not filled - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #key? - with key is not present in value + with value is not an integer behaves like a failing predicate is expected to equal false - when key is present in value - behaves like a passing predicate - is expected to equal true Dry::Logic::Rule - with a function returning truthy value - is successful for valid input - is not successful for invalid input - #ast - returns predicate node with :id - returns predicate node with undefined args + #type + returns rule type behaves like Dry::Logic::Rule #arity returns its predicate arity - #curry - raises argument error when arity does not match - returns a curried rule - #[] - delegates to its predicate #parameters returns a list of args with their names #call returns failure for invalid input returns success for valid input - #eval_args - with a schema instance - returns a new with its predicate executed in the context of the provided object - with an unbound method - evaluates args in the context of the provided object + #[] + delegates to its predicate + #curry + raises argument error when arity does not match + returns a curried rule arity specialization - 1-arity rule - generates interface with the right arity - currying - generates correct arity on currying + constants + accepts variable number of arguments + -1 arity + accepts variable number of arguments -2 arity accepts variable number of arguments curried 1 doesn't have required arguments curried 2 doesn't have required arguments - -1 arity - accepts variable number of arguments arbitrary arity generates correct arity - constants - accepts variable number of arguments + currying + generates correct arity on currying 0-arity rule generates interface with the right arity - .new - accepts an :id - #type - returns rule type - #bind + 1-arity rule + generates interface with the right arity + #eval_args with an unbound method - returns a new rule with its predicate bound to a specific object - carries id + evaluates args in the context of the provided object with a schema instance returns a new with its predicate executed in the context of the provided object + .new + accepts an :id + #ast + returns predicate node with :id + returns predicate node with undefined args + with a function returning truthy value + is not successful for invalid input + is successful for valid input + #bind with an arbitrary block stores parameters returns a new with its predicate executed in the context of the provided object stores arity carries id + with an unbound method + carries id + returns a new rule with its predicate bound to a specific object + with a schema instance + returns a new with its predicate executed in the context of the provided object Dry::Logic::Predicates - #size? - when value size is equal to n + #uuid_v2? + when value is a valid V1 UUID behaves like a passing predicate is expected to equal true - with an unsupported size - raises an error - with value size is less than n - behaves like a failing predicate - is expected to equal false - when value size is greater than n + with value is not a valid V4 UUID behaves like a failing predicate is expected to equal false -Dry::Logic::Predicates#is? - when value is equal to the arg - behaves like a passing predicate - is expected to equal true +Dry::Logic::Predicates#eql? with value is not equal to the arg behaves like a failing predicate is expected to equal false + when value is equal to the arg + behaves like a passing predicate + is expected to equal true Dry::Logic::Predicates - #max_size? - with value size is greater than n + #excluded_from? + with value is present in list behaves like a failing predicate is expected to equal false - when value size is equal to n - behaves like a passing predicate - is expected to equal true - when value size is less than n + when value is not present in list behaves like a passing predicate is expected to equal true Dry::Logic::RuleCompiler#call - compiles exclusive or rules compiles and rules + compiles each rules compiles key rules compiles negated rules + compiles check rules compiles attr rules - compiles each rules compiles or rules - compiles check rules - compiles set rules + compiles exclusive or rules compiles attr rules - -Dry::Logic::Operations::Negation - #to_s - returns string representation - #to_ast - returns result ast with an :id - returns result ast - returns ast - #call - negates its rule - double negation - works as rule + compiles set rules Dry::Logic::Predicates - #lteq? - when value is less than n + #true? + when value is true behaves like a passing predicate is expected to equal true - with value is greater than n + with value is not true behaves like a failing predicate is expected to equal false - when value is equal to n - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Operations::Attr - #and - returns and where value is passed to the right - #call - applies predicate to the value -Dry::Logic::Predicates#eql? - when value is equal to the arg +Dry::Logic::Predicates#format? + when value does not match provided regexp + behaves like a failing predicate + is expected to equal false + when value matches provided regexp behaves like a passing predicate is expected to equal true - with value is not equal to the arg + when input is nil behaves like a failing predicate is expected to equal false -Dry::Logic::Predicates - #uuid_v1? - when value is a valid V1 UUID - behaves like a passing predicate - is expected to equal true - with value is not a valid V1 UUID - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #date_time? - with value is not an integer - behaves like a failing predicate - is expected to equal false - when value is a datetime - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #bytesize? - when value size is equal to n - behaves like a passing predicate - is expected to equal true - with value size is less than n - behaves like a failing predicate - is expected to equal false - with an unsupported size - raises an error - when value size is greater than n - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - can be included in another module - .predicate - defines a predicate method - -Dry::Logic::Predicates - #hash? - when value is a hash - behaves like a passing predicate - is expected to equal true - when value is not a hash - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Operations::And - #to_ast - returns failure result ast - returns result ast - returns ast - #or - creates or with the other - #and - creates and with the other - #to_s - returns string representation - #call - calls left and right - -Dry::Logic::Predicates - #respond_to? - when value does not respond to method - behaves like a failing predicate - is expected to equal false - when value responds to method - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #float? - when value is a float - behaves like a passing predicate - is expected to equal true - with value is not an integer - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #odd? - with value is an even int - behaves like a failing predicate - is expected to equal false - when value is an odd int - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #uuid_v3? - when value is a valid V3 UUID - behaves like a passing predicate - is expected to equal true - with value is not a valid V4 UUID - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #uuid_v2? - when value is a valid V1 UUID - behaves like a passing predicate - is expected to equal true - with value is not a valid V4 UUID - behaves like a failing predicate - is expected to equal false - -operations - key +predicates + hash? success - behaves like operation + Hash + behaves like predicate + is expected to eq true + failure + Array + behaves like predicate + is expected to eq false + number? + success + behaves like predicate + is expected to eq true + behaves like predicate + is expected to eq true + behaves like predicate is expected to eq true failure - behaves like operation + behaves like predicate is expected to eq false - nested + behaves like predicate + is expected to eq false + behaves like predicate + is expected to eq false + behaves like predicate + is expected to eq false + date_time? failure - is expected not to be a success - success - is expected to be a success - set - success - behaves like operation + behaves like predicate is expected to eq false success - behaves like operation - is expected to eq true - negation - success - behaves like operation + behaves like predicate is expected to eq true + min_size? failure - behaves like operation - is expected to eq false - operators - > - [true => true] - behaves like operation - is expected to eq true - [true => false] - behaves like operation - is expected to eq false - [false => true] - behaves like operation - is expected to eq true - | - success - behaves like operation - is expected to eq true - behaves like operation - is expected to eq true - ^ - success - behaves like operation - is expected to eq true - behaves like operation - is expected to eq true - failure - behaves like operation - is expected to eq false - & - failure - behaves like operation - is expected to eq false - success - behaves like operation - is expected to eq true - then - [false => true] - behaves like operation - is expected to eq true - [true => false] - behaves like operation + [1] + behaves like predicate is expected to eq false - [true => true] - behaves like operation + success + [1, 2, 3] + behaves like predicate is expected to eq true - each + key? success - behaves like operation - is expected to eq true + {:speed=>100} + behaves like predicate + is expected to eq true failure - behaves like operation - is expected to eq false - xor + {:age=>50} + behaves like predicate + is expected to eq false + max_bytesize? failure - behaves like operation - is expected to eq false - success - behaves like operation - is expected to eq true - behaves like operation + behaves like predicate is expected to eq true - implication - [true => false] - behaves like operation + success + behaves like predicate is expected to eq false - [true => true] - behaves like operation - is expected to eq true - [false => true] - behaves like operation - is expected to eq true - check - one path - success - behaves like operation - is expected to eq true - failure - behaves like operation - is expected to eq false - two paths - success - behaves like operation - is expected to eq true - failure - behaves like operation - is expected to eq false - or + nil? success - behaves like operation - is expected to eq true - behaves like operation + behaves like predicate is expected to eq true - and failure - behaves like operation + symbol + behaves like predicate + is expected to eq false + included_in? + failure + behaves like predicate is expected to eq false success - behaves like operation + behaves like predicate is expected to eq true - -Dry::Logic::Predicates - #excludes? - when input includes value - behaves like a failing predicate - is expected to equal false - with input of invalid type - behaves like a passing predicate - is expected to equal true - with input excludes value - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #uuid_v5? - with value is not a valid V4 UUID - behaves like a failing predicate - is expected to equal false - when value is a valid V5 UUID - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Operations::Or - #or - creates or with the other - #call - calls left and right - #and - creates and with the other - #to_s - returns string representation - #to_ast - returns result ast - returns ast - returns failure result ast - -Dry::Logic::Operations::Each - #to_ast - returns ast - returns failure result ast - returns result ast - #call - applies its rules to all elements in the input - #to_s - returns string representation - -Dry::Logic::Predicates - #even? - with value is an even int - behaves like a passing predicate - is expected to equal true - when value is an odd int - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #int? - with value is not an integer - behaves like a failing predicate - is expected to equal false - when value is an integer - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates#format? - when value does not match provided regexp - behaves like a failing predicate - is expected to equal false - when input is nil - behaves like a failing predicate - is expected to equal false - when value matches provided regexp - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #max_bytesize? - with value size is greater than n - behaves like a failing predicate - is expected to equal false - when value size is less than n - behaves like a passing predicate - is expected to equal true - when value size is equal to n - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #bool? - when value is not a bool - behaves like a failing predicate - is expected to equal false - when value is a boolean - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #empty? - when value is empty - behaves like a passing predicate - is expected to equal true - with value is not empty - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #uri? - with value is not a valid URI - behaves like a failing predicate - is expected to equal false - when value is a valid URI - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #number? - when value is numerical - behaves like a passing predicate - is expected to equal true - with value is not numerical - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Builder - leakage - given a module extending ::Builder - is expected to respond to #call - is expected not to respond to #int? - is expected to respond to #build - undefined methods - raises NameError - -Dry::Logic::Predicates - #true? - when value is true - behaves like a passing predicate - is expected to equal true - with value is not true - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #decimal? - with value is not an integer - behaves like a failing predicate - is expected to equal false - when value is a decimal - behaves like a passing predicate - is expected to equal true - -Rules - defining an exclusive disjunction - defining a disjunction - defining an implication - defining an anonymous rule with an arbitrary predicate - defining a rule with options - defining a conjunction - -Dry::Logic::Predicates - #date? - with value is not an integer - behaves like a failing predicate - is expected to equal false - when value is a date - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #case? - when the value matches the pattern - behaves like a passing predicate - is expected to equal true - when the value doesn't match the pattern - behaves like a failing predicate - is expected to equal false - -Dry::Logic::Predicates - #min_bytesize? - when value size is equal to n - behaves like a passing predicate - is expected to equal true - with value size is less than n - behaves like a failing predicate - is expected to equal false - when value size is greater than n - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Predicates - #attr? - with value does not respond to the attr name - behaves like a failing predicate - is expected to equal false - when value responds to the attr name - behaves like a passing predicate - is expected to equal true - -Dry::Logic::Rule::Predicate - #to_s - returns string representation - #name - returns predicate identifier - #to_ast - with a zero-arity predicate - returns ast - with a result - returns failure ast - returns success - without a result - returns :failure with an id - returns rule ast - behaves like Dry::Logic::Rule - #parameters - returns a list of args with their names - #curry - raises argument error when arity does not match - returns a curried rule - #arity - returns its predicate arity - #call - returns success for valid input - returns failure for invalid input - #[] - delegates to its predicate - -Dry::Logic::Predicates - #false? - when value is not false - behaves like a failing predicate - is expected to equal false - when value is false - behaves like a passing predicate - is expected to equal true - -predicates - str? + size? success - String + Range + behaves like predicate + is expected to eq true + Integer behaves like predicate is expected to eq true - failure Array behaves like predicate - is expected to eq false - hash? + is expected to eq true failure + Integer + behaves like predicate + is expected to eq false + Range + behaves like predicate + is expected to eq false Array behaves like predicate is expected to eq false + date? success - Hash + -4712-01-01 behaves like predicate is expected to eq true + failure + symbol + behaves like predicate + is expected to eq false gteq? + failure + 9 + behaves like predicate + is expected to eq false success 11 behaves like predicate @@ -1692,32 +1289,42 @@ 10 behaves like predicate is expected to eq true - failure - 9 + uri? + http + failure behaves like predicate is expected to eq false - number? - failure - behaves like predicate - is expected to eq false - behaves like predicate - is expected to eq false - behaves like predicate - is expected to eq false + success + behaves like predicate + is expected to eq true + https + failure + behaves like predicate + is expected to eq false + success + behaves like predicate + is expected to eq true + [:http, :https] + success + behaves like predicate + is expected to eq true + behaves like predicate + is expected to eq true + Regexp + success + behaves like predicate + is expected to eq true + behaves like predicate + is expected to eq true + predicate + success behaves like predicate is expected to eq false success behaves like predicate is expected to eq true - behaves like predicate - is expected to eq true - behaves like predicate - is expected to eq true empty? failure - {:key=>"value"} - behaves like predicate - is expected to eq false [1, 2] behaves like predicate is expected to eq false @@ -1727,6 +1334,9 @@ string behaves like predicate is expected to eq false + {:key=>"value"} + behaves like predicate + is expected to eq false success [] behaves like predicate @@ -1737,40 +1347,6 @@ String behaves like predicate is expected to eq true - key? - failure - {:age=>50} - behaves like predicate - is expected to eq false - success - {:speed=>100} - behaves like predicate - is expected to eq true - min_size? - success - [1, 2, 3] - behaves like predicate - is expected to eq true - failure - [1] - behaves like predicate - is expected to eq false - is? - success - behaves like predicate - is expected to eq true - failure - behaves like predicate - is expected to eq false - lteq? - failure - 11 - behaves like predicate - is expected to eq false - success - 9 - behaves like predicate - is expected to eq true case? Fixnum success @@ -1780,22 +1356,6 @@ success behaves like predicate is expected to eq true - gt? - failure - 5 - behaves like predicate - is expected to eq false - success - 200 - behaves like predicate - is expected to eq true - int? - success - behaves like predicate - is expected to eq true - failure - behaves like predicate - is expected to eq false excluded_from? success behaves like predicate @@ -1803,126 +1363,114 @@ failure behaves like predicate is expected to eq true - format? + array? success - behaves like predicate - is expected to eq true - behaves like predicate - is expected to eq true + Array + behaves like predicate + is expected to eq true failure - behaves like predicate - is expected to eq false - behaves like predicate - is expected to eq false - min_bytesize? + Hash + behaves like predicate + is expected to eq false + respond_to? success behaves like predicate is expected to eq true failure behaves like predicate is expected to eq false - uuid - uuid_v1? - success - behaves like predicate - is expected to eq true - uuid_v4? - success - behaves like predicate - is expected to eq true - odd? + even? failure - 10 + 5 behaves like predicate is expected to eq false success - 5 + 10 behaves like predicate is expected to eq true - included_in? - failure - behaves like predicate - is expected to eq false - success - behaves like predicate - is expected to eq true - attr? + max_size? failure - # + [1, 2, 3] behaves like predicate is expected to eq false success - # + [1] behaves like predicate is expected to eq true bytesize? - failure + success + Array + behaves like predicate + is expected to eq true Integer behaves like predicate - is expected to eq false + is expected to eq true Range behaves like predicate - is expected to eq false - Array + is expected to eq true + failure + Range behaves like predicate is expected to eq false - success Integer behaves like predicate - is expected to eq true + is expected to eq false Array behaves like predicate - is expected to eq true - Range + is expected to eq false + gt? + failure + 5 + behaves like predicate + is expected to eq false + success + 200 behaves like predicate is expected to eq true - predicate + float? success behaves like predicate is expected to eq false success behaves like predicate is expected to eq true - bool? + decimal? success - false - behaves like predicate - is expected to eq true - true - behaves like predicate - is expected to eq true + behaves like predicate + is expected to eq true failure - symbol - behaves like predicate - is expected to eq false - 5 - behaves like predicate - is expected to eq false - lt? + behaves like predicate + is expected to eq false + is? + success + behaves like predicate + is expected to eq true failure - 200 + behaves like predicate + is expected to eq false + type? + failure + behaves like predicate + is expected to eq false + success + string behaves like predicate - is expected to eq false + is expected to eq true + lt? success 5 behaves like predicate is expected to eq true - filled? failure - [] - behaves like predicate - is expected to eq false - {} - behaves like predicate - is expected to eq false - String + 200 behaves like predicate is expected to eq false + filled? success - string + {:key=>"value"} behaves like predicate is expected to eq true - {:key=>"value"} + string behaves like predicate is expected to eq true [1, 2] @@ -1931,224 +1479,183 @@ behaves like predicate is expected to eq true - size? failure - Array + String behaves like predicate is expected to eq false - Range + [] behaves like predicate is expected to eq false - Integer + {} behaves like predicate is expected to eq false - success - Range - behaves like predicate - is expected to eq true - Integer - behaves like predicate - is expected to eq true - Array - behaves like predicate - is expected to eq true - date_time? - success - behaves like predicate - is expected to eq true + format? failure behaves like predicate is expected to eq false - compare methods - not_eql? - success - behaves like predicate - is expected to eq false - failure - behaves like predicate - is expected to eq true - eql? - failure - behaves like predicate - is expected to eq false - success - behaves like predicate - is expected to eq true - even? - failure - 5 - behaves like predicate - is expected to eq false - success - 10 - behaves like predicate - is expected to eq true - time? + behaves like predicate + is expected to eq false success behaves like predicate is expected to eq true - failure behaves like predicate - is expected to eq false - uri? - [:http, :https] + is expected to eq true + excludes? + String success behaves like predicate is expected to eq true + failure behaves like predicate - is expected to eq true - Regexp - success + is expected to eq false + Array + failure behaves like predicate is expected to eq true + success behaves like predicate - is expected to eq true - http + is expected to eq false + compare methods + eql? success behaves like predicate is expected to eq true failure behaves like predicate is expected to eq false - https - failure + not_eql? + success behaves like predicate is expected to eq false - success + failure behaves like predicate is expected to eq true - includes? + min_bytesize? success behaves like predicate is expected to eq true failure behaves like predicate is expected to eq false - excludes? - Array - failure - behaves like predicate - is expected to eq true + uuid + uuid_v4? success behaves like predicate - is expected to eq false - String + is expected to eq true + uuid_v1? success behaves like predicate is expected to eq true - failure - behaves like predicate - is expected to eq false + int? + failure + behaves like predicate + is expected to eq false + success + behaves like predicate + is expected to eq true true? & false? - false? + true? success behaves like predicate is expected to eq true failure behaves like predicate is expected to eq false - true? + false? success behaves like predicate is expected to eq true failure behaves like predicate is expected to eq false - max_size? + lteq? success - [1] + 9 behaves like predicate is expected to eq true failure - [1, 2, 3] + 11 behaves like predicate is expected to eq false - max_bytesize? + str? failure - behaves like predicate - is expected to eq true + Array + behaves like predicate + is expected to eq false success - behaves like predicate - is expected to eq false - decimal? + String + behaves like predicate + is expected to eq true + attr? success - behaves like predicate - is expected to eq true - failure - behaves like predicate - is expected to eq false - array? + # + behaves like predicate + is expected to eq true failure - Hash + # behaves like predicate is expected to eq false + odd? success - Array + 5 behaves like predicate is expected to eq true - nil? failure - symbol + 10 behaves like predicate is expected to eq false + includes? + failure + behaves like predicate + is expected to eq false success behaves like predicate is expected to eq true - type? + time? success - string - behaves like predicate - is expected to eq true + behaves like predicate + is expected to eq true failure behaves like predicate is expected to eq false - date? + bool? failure + 5 + behaves like predicate + is expected to eq false symbol behaves like predicate is expected to eq false success - -4712-01-01 + false + behaves like predicate + is expected to eq true + true behaves like predicate is expected to eq true - float? - success - behaves like predicate - is expected to eq true - success - behaves like predicate - is expected to eq false - respond_to? - failure - behaves like predicate - is expected to eq false - success - behaves like predicate - is expected to eq true Dry::Logic::Predicates - #excluded_from? - when value is not present in list + #nil? + when value is not nil + behaves like a failing predicate + is expected to equal false + when value is nil behaves like a passing predicate is expected to equal true - with value is present in list + +Dry::Logic::Predicates + #type? + when value has a correct type + behaves like a passing predicate + is expected to equal true + with value is not true behaves like a failing predicate is expected to equal false -Dry::Logic::Operations::Check - #to_ast - returns ast - #call - with its output as input - success - is expected to be a success - failure - is expected not to be a success - with 1-level nesting - applies predicate to args extracted from the input - with 2-levels nesting - curries args properly - applies predicate to args extracted from the input +Dry::Logic::Predicates + can be included in another module + .predicate + defines a predicate method Dry::Logic::Predicates #gteq? @@ -2162,57 +1669,205 @@ behaves like a passing predicate is expected to equal true -Dry::Logic::Predicates#not_eql? - when value is equal to the arg +Dry::Logic::Predicates#is? + with value is not equal to the arg behaves like a failing predicate is expected to equal false - with value is not equal to the arg + when value is equal to the arg behaves like a passing predicate is expected to equal true -Dry::Logic::Predicates - #gt? - with value is less than n - behaves like a failing predicate - is expected to equal false - when value is greater than n - behaves like a passing predicate - is expected to equal true - when value is equal to n - behaves like a failing predicate - is expected to equal false +Dry::Logic::Operations::Each + #to_s + returns string representation + #to_ast + returns ast + returns result ast + returns failure result ast + #call + applies its rules to all elements in the input + +Dry::Logic::Operations::Key + #ast + returns ast with the input + returns ast without the input + #call + with an each rule as predicate + applies each rule to the value that passses + applies each rule to the value that fails + with a set rule as predicate + applies set rule to the value that passes + applies set rule to the value that fails + with a plain predicate + returns a failure for invalid input + returns a success for valid input + #to_s + returns string representation + #to_ast + returns ast + #and + returns and rule where value is passed to the right Dry::Logic::Result #to_s - with NOT operation + with a predicate behaves like string representation returns string representation - with THEN operation + with XOR operation behaves like string representation returns string representation - with OR operation + with AND operation behaves like string representation returns string representation - with a predicate + with NOT operation behaves like string representation returns string representation - with XOR operation + with THEN operation behaves like string representation returns string representation - with AND operation + with OR operation behaves like string representation returns string representation +Dry::Logic::Operations::Implication + #call + calls left and right + #to_ast + returns ast + #to_s + returns string representation + Dry::Logic::Predicates - #type? - with value is not true + #even? + with value is an even int + behaves like a passing predicate + is expected to equal true + when value is an odd int behaves like a failing predicate is expected to equal false - when value has a correct type + +Dry::Logic::Operations::Or + #to_ast + returns failure result ast + returns ast + returns result ast + #or + creates or with the other + #call + calls left and right + #and + creates and with the other + #to_s + returns string representation + +Dry::Logic::Predicates + #gt? + when value is equal to n + behaves like a failing predicate + is expected to equal false + with value is less than n + behaves like a failing predicate + is expected to equal false + when value is greater than n + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #respond_to? + when value does not respond to method + behaves like a failing predicate + is expected to equal false + when value responds to method + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #included_in? + when value is present in list + behaves like a passing predicate + is expected to equal true + with value is not present in list + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #bool? + when value is a boolean + behaves like a passing predicate + is expected to equal true + when value is not a bool + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #excludes? + with input excludes value + behaves like a passing predicate + is expected to equal true + with input of invalid type + behaves like a passing predicate + is expected to equal true + when input includes value + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #attr? + with value does not respond to the attr name + behaves like a failing predicate + is expected to equal false + when value responds to the attr name behaves like a passing predicate is expected to equal true Dry::Logic::Predicates + #false? + when value is false + behaves like a passing predicate + is expected to equal true + when value is not false + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #max_size? + with value size is greater than n + behaves like a failing predicate + is expected to equal false + when value size is equal to n + behaves like a passing predicate + is expected to equal true + when value size is less than n + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Operations::Negation + #call + negates its rule + double negation + works as rule + #to_s + returns string representation + #to_ast + returns ast + returns result ast with an :id + returns result ast + +Dry::Logic::Predicates + #bytesize? + with an unsupported size + raises an error + with value size is less than n + behaves like a failing predicate + is expected to equal false + when value size is equal to n + behaves like a passing predicate + is expected to equal true + when value size is greater than n + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates #min_size? when value size is greater than n behaves like a passing predicate @@ -2225,91 +1880,479 @@ is expected to equal false Dry::Logic::Predicates - #nil? - when value is not nil + #str? + when value is a string + behaves like a passing predicate + is expected to equal true + with value is not a string behaves like a failing predicate is expected to equal false - when value is nil + +Dry::Logic::Predicates + #uri? + with value is not a valid URI + behaves like a failing predicate + is expected to equal false + when value is a valid URI behaves like a passing predicate is expected to equal true -Dry::Logic::Operations::Xor - #to_s - returns string representation - #and - creates conjunction with the other +Dry::Logic::Predicates + #filled? + when value is filled + behaves like a passing predicate + is expected to equal true + with value is not filled + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #uuid_v3? + with value is not a valid V4 UUID + behaves like a failing predicate + is expected to equal false + when value is a valid V3 UUID + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #int? + when value is an integer + behaves like a passing predicate + is expected to equal true + with value is not an integer + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #max_bytesize? + when value size is less than n + behaves like a passing predicate + is expected to equal true + with value size is greater than n + behaves like a failing predicate + is expected to equal false + when value size is equal to n + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #array? + when value is an array + behaves like a passing predicate + is expected to equal true + when value is not an array + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #date? + when value is a date + behaves like a passing predicate + is expected to equal true + with value is not an integer + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Operations::And + #or + creates or with the other #call calls left and right #to_ast returns failure result ast returns result ast returns ast - #or - creates disjunction with the other - -Dry::Logic::Operations::Key #and - returns and rule where value is passed to the right + creates and with the other #to_s returns string representation - #call - with a set rule as predicate - applies set rule to the value that fails - applies set rule to the value that passes - with an each rule as predicate - applies each rule to the value that passses - applies each rule to the value that fails - with a plain predicate - returns a success for valid input - returns a failure for invalid input - #ast - returns ast without the input - returns ast with the input + +Rules + defining an exclusive disjunction + defining a disjunction + defining a conjunction + defining an anonymous rule with an arbitrary predicate + defining a rule with options + defining an implication + +operations + or + success + behaves like operation + is expected to eq true + behaves like operation + is expected to eq true + key + success + behaves like operation + is expected to eq true + failure + behaves like operation + is expected to eq false + each + failure + behaves like operation + is expected to eq false + success + behaves like operation + is expected to eq true + nested + failure + is expected not to be a success + success + is expected to be a success + check + two paths + failure + behaves like operation + is expected to eq false + success + behaves like operation + is expected to eq true + one path + success + behaves like operation + is expected to eq true + failure + behaves like operation + is expected to eq false + implication + [true => true] + behaves like operation + is expected to eq true + [true => false] + behaves like operation + is expected to eq false + [false => true] + behaves like operation + is expected to eq true + and + failure + behaves like operation + is expected to eq false + success + behaves like operation + is expected to eq true + set + success + behaves like operation + is expected to eq false + success + behaves like operation + is expected to eq true + negation + success + behaves like operation + is expected to eq true + failure + behaves like operation + is expected to eq false + xor + success + behaves like operation + is expected to eq true + behaves like operation + is expected to eq true + failure + behaves like operation + is expected to eq false + operators + ^ + success + behaves like operation + is expected to eq true + behaves like operation + is expected to eq true + failure + behaves like operation + is expected to eq false + & + failure + behaves like operation + is expected to eq false + success + behaves like operation + is expected to eq true + then + [true => false] + behaves like operation + is expected to eq false + [false => true] + behaves like operation + is expected to eq true + [true => true] + behaves like operation + is expected to eq true + | + success + behaves like operation + is expected to eq true + behaves like operation + is expected to eq true + > + [true => true] + behaves like operation + is expected to eq true + [true => false] + behaves like operation + is expected to eq false + [false => true] + behaves like operation + is expected to eq true + +Dry::Logic::Rule::Predicate + behaves like Dry::Logic::Rule + #call + returns success for valid input + returns failure for invalid input + #[] + delegates to its predicate + #arity + returns its predicate arity + #curry + returns a curried rule + raises argument error when arity does not match + #parameters + returns a list of args with their names + #to_ast + with a zero-arity predicate + returns ast + without a result + returns :failure with an id + returns rule ast + with a result + returns failure ast + returns success + #to_s + returns string representation + #name + returns predicate identifier + +Dry::Logic::Operations::Set #to_ast + returns result ast + returns result ast with an :id returns ast + #call + applies all its rules to the input + #to_s + returns string representation Dry::Logic::Predicates - #array? - when value is an array + #uuid_v1? + when value is a valid V1 UUID behaves like a passing predicate is expected to equal true - when value is not an array + with value is not a valid V1 UUID behaves like a failing predicate is expected to equal false -Dry::Logic::Operations::Implication +Dry::Logic::Builder + undefined methods + raises NameError + leakage + given a module extending ::Builder + is expected to respond to #call + is expected not to respond to #int? + is expected to respond to #build + +Dry::Logic::Predicates + #odd? + when value is an odd int + behaves like a passing predicate + is expected to equal true + with value is an even int + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Operations::Xor + #or + creates disjunction with the other + #and + creates conjunction with the other #to_s returns string representation + #call + calls left and right #to_ast + returns result ast + returns failure result ast returns ast + +Dry::Logic::Predicates + #lt? + when value is less than n + behaves like a passing predicate + is expected to equal true + when value is equal to n + behaves like a failing predicate + is expected to equal false + with value is greater than n + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Operations::Attr #call - calls left and right + applies predicate to the value + #and + returns and where value is passed to the right Dry::Logic::Predicates #time? + when value is a time + behaves like a passing predicate + is expected to equal true with value is not an integer behaves like a failing predicate is expected to equal false - when value is a time + +Dry::Logic::Operations::Check + #call + with its output as input + failure + is expected not to be a success + success + is expected to be a success + with 2-levels nesting + applies predicate to args extracted from the input + curries args properly + with 1-level nesting + applies predicate to args extracted from the input + #to_ast + returns ast + +Dry::Logic::Predicates + #hash? + when value is not a hash + behaves like a failing predicate + is expected to equal false + when value is a hash behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #lt? + #number? + with value is not numerical + behaves like a failing predicate + is expected to equal false + when value is numerical + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #size? + when value size is greater than n + behaves like a failing predicate + is expected to equal false + when value size is equal to n + behaves like a passing predicate + is expected to equal true + with value size is less than n + behaves like a failing predicate + is expected to equal false + with an unsupported size + raises an error + +Dry::Logic::Predicates + #case? + when the value matches the pattern + behaves like a passing predicate + is expected to equal true + when the value doesn't match the pattern + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #lteq? + when value is equal to n + behaves like a passing predicate + is expected to equal true when value is less than n behaves like a passing predicate is expected to equal true with value is greater than n behaves like a failing predicate is expected to equal false - when value is equal to n + +Dry::Logic::Predicates + #key? + with key is not present in value behaves like a failing predicate is expected to equal false + when key is present in value + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates#not_eql? + when value is equal to the arg + behaves like a failing predicate + is expected to equal false + with value is not equal to the arg + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #uuid_v4? + when value is a valid V4 UUID + behaves like a passing predicate + is expected to equal true + with value is not a valid V4 UUID + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #float? + when value is a float + behaves like a passing predicate + is expected to equal true + with value is not an integer + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #uuid_v5? + with value is not a valid V4 UUID + behaves like a failing predicate + is expected to equal false + when value is a valid V5 UUID + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates + #date_time? + when value is a datetime + behaves like a passing predicate + is expected to equal true + with value is not an integer + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #min_bytesize? + when value size is equal to n + behaves like a passing predicate + is expected to equal true + when value size is greater than n + behaves like a passing predicate + is expected to equal true + with value size is less than n + behaves like a failing predicate + is expected to equal false + +Dry::Logic::Predicates + #empty? + with value is not empty + behaves like a failing predicate + is expected to equal false + when value is empty + behaves like a passing predicate + is expected to equal true -Finished in 2.06 seconds (files took 1.9 seconds to load) +Finished in 3.11 seconds (files took 6.69 seconds to load) 399 examples, 0 failures -Randomized with seed 1632 +Randomized with seed 52602 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -2345,12 +2388,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/18322/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/18322/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/2970 and its subdirectories -I: Current time: Thu Jun 1 08:18:19 -12 2023 -I: pbuilder-time-stamp: 1685650699 +I: removing directory /srv/workspace/pbuilder/18322 and its subdirectories +I: Current time: Fri Jun 2 10:24:14 +14 2023 +I: pbuilder-time-stamp: 1685651054