Diff of the two buildlogs: -- --- b1/build.log 2025-01-16 18:49:08.295272283 +0000 +++ b2/build.log 2025-01-16 18:50:43.610958044 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jan 16 06:43:33 -12 2025 -I: pbuilder-time-stamp: 1737053013 +I: Current time: Fri Jan 17 08:49:16 +14 2025 +I: pbuilder-time-stamp: 1737053356 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ 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/11602/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/23122/tmp/hooks/D01_modify_environment starting +debug: Running on virt64z. +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 Jan 16 18:49 /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/23122/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/23122/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - 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='trixie' - 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]="37" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + 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=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='bec2abc324284e31b60c1439266b4f5a' - 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='11602' - PS1='# ' - PS2='> ' + INVOCATION_ID=e5cdf294977042699381ee2cc40e48c5 + 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=23122 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.979u3TzL/pbuilderrc_Vzat --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.979u3TzL/b1 --logfile b1/build.log 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+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.979u3TzL/pbuilderrc_O53U --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.979u3TzL/b2 --logfile b2/build.log ruby-dry-logic_1.2.0-3.dsc' + SUDO_GID=110 + SUDO_UID=103 + 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 cbxi4a 6.1.0-23-armmp #1 SMP Debian 6.1.99-1 (2024-07-15) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-arm64 #1 SMP Debian 6.1.124-1 (2025-01-12) aarch64 GNU/Linux I: ls -l /bin lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/11602/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/23122/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -266,7 +298,7 @@ Get: 146 http://deb.debian.org/debian trixie/main armhf ruby-rspec-mocks all 3.13.0c0e0m0s1-2 [81.3 kB] Get: 147 http://deb.debian.org/debian trixie/main armhf ruby-rspec all 3.13.0c0e0m0s1-2 [5184 B] Get: 148 http://deb.debian.org/debian trixie/main armhf ruby-warning all 1.3.0-1 [8968 B] -Fetched 45.7 MB in 6s (8025 kB/s) +Fetched 45.7 MB in 5s (9590 kB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.12-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 ... 19566 files and directories currently installed.) @@ -763,8 +795,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Thu Jan 16 18:46:46 UTC 2025. -Universal Time is now: Thu Jan 16 18:46:46 UTC 2025. +Local time is now: Thu Jan 16 18:50:06 UTC 2025. +Universal Time is now: Thu Jan 16 18:50:06 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up autotools-dev (20220109.1) ... @@ -895,7 +927,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/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/23122/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/23122/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/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 @@ -929,7 +965,7 @@ │ ruby-dry-logic: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250116-20947-u4ycoo/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250117-28256-blllpw/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 @@ -943,7 +979,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/d20250116-20947-u4ycoo/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/d20250117-28256-blllpw/dry-logic-1.2.0.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/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/reproducible-path/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 @@ -1003,318 +1039,199 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-dry-logic-1.2.0/debian/ruby-dry-logic/usr/share/rubygems-integration/all:/build/reproducible-path/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 --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 31341 +Randomized with seed 44405 -Dry::Logic::Predicates - #uuid_v5? - when value is a valid V5 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::Operations::Implication + #call + calls left and right + #to_ast + returns ast + #to_s + returns string representation 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 + #lteq? + when value is less than n 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 - #float? - with value is not an integer + with value is greater than n behaves like a failing predicate is expected to equal false - when value is a float + when value is equal to n behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #lteq? - when value is equal to n - behaves like a passing predicate - is expected to equal true - with value is greater than n + #true? + with value is not true behaves like a failing predicate is expected to equal false - when value is less than n + when value is true behaves like a passing predicate is expected to equal true Dry::Logic::Operations::Negation + #to_ast + returns ast + returns result ast with an :id + returns result ast + #to_s + returns string representation #call negates its rule double negation works as rule - #to_s - returns string representation - #to_ast - returns result ast with an :id - returns ast - returns result ast + +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 - #bool? - when value is a boolean - behaves like a passing predicate - is expected to equal true - when value is not a bool + #hash? + when value is not a hash behaves like a failing predicate is expected to equal false - -Dry::Logic::Predicates - #array? - when value is an array + when value is a hash 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 - #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 + #empty? + when value is empty behaves like a passing predicate is expected to equal true - -Dry::Logic::Predicates - #attr? - with value does not respond to the attr name + with value is not empty 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 - -Rules - defining an exclusive disjunction - defining an implication - defining a rule with options - defining a disjunction - defining a conjunction - defining an anonymous rule with an arbitrary predicate Dry::Logic::Predicates - #nil? - when value is nil + #uuid_v2? + when value is a valid V1 UUID behaves like a passing predicate is expected to equal true - when value is not nil + with value is not a valid V4 UUID behaves like a failing predicate is expected to equal false -Dry::Logic::Predicates#format? - 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 - when value does not match provided regexp - behaves like a failing predicate - is expected to equal false - Dry::Logic::Predicates - #max_size? - with value size is greater than n + #uuid_v5? + with value is not a valid V4 UUID 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 + when value is a valid V5 UUID behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #max_bytesize? - 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 - with value size is greater than n + #case? + when the value doesn't match the pattern behaves like a failing predicate is expected to equal false - -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 - can be included in another module - .predicate - defines a predicate method Dry::Logic::Predicates - #hash? - when value is a hash + #respond_to? + when value responds to method 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::Set - #call - applies all its rules to the input - #to_s - returns string representation - #to_ast - returns result ast with an :id - returns ast - returns result ast - -Dry::Logic::RuleCompiler#call - compiles exclusive or rules - compiles and rules - compiles each rules - compiles attr rules - compiles or rules - compiles attr rules - compiles negated rules - compiles key rules - compiles check rules - compiles set rules - -Dry::Logic::Predicates - #type? - with value is not true + when value does not respond to method behaves like a failing predicate is expected to equal false - when value has a correct type - behaves like a passing predicate - is expected to equal true Dry::Logic::Predicates - #false? - when value is not false + #nil? + when value is not nil behaves like a failing predicate is expected to equal false - when value is false + when value is nil behaves like a passing predicate is expected to equal true -Dry::Logic::Rule - #eval_args - with an unbound method - 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 - arity specialization - 0-arity rule - generates interface with the right arity - 1-arity rule - generates interface with the right arity - -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 - #bind - with an arbitrary block - stores arity - returns a new with its predicate executed in the context of the provided object - stores parameters - carries id - with an unbound method - returns a new rule with its predicate bound to a specific object - carries id - with a schema instance - returns a new with its predicate executed in the context of the provided object - .new - accepts an :id - with a function returning truthy value - is not successful for invalid input - is successful for valid input - behaves like Dry::Logic::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 - #arity - returns its predicate arity - #curry - returns a curried rule - raises argument error when arity does not match - #ast - returns predicate node with undefined args - returns predicate node with :id - #type - returns rule type - -Dry::Logic::Predicates - #gteq? - 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 passing predicate - is expected to equal true - with value is less than n - behaves like a failing predicate - is expected to equal false +Dry::Logic::Result + #to_s + with OR operation + behaves like string representation + returns string representation + with a predicate + behaves like string representation + returns string representation + with NOT operation + behaves like string representation + returns string representation + with XOR operation + behaves like string representation + returns string representation + with AND operation + behaves like string representation + returns string representation + with THEN operation + behaves like string representation + returns string representation operations - set + each + failure + behaves like operation + is expected to eq false success behaves like operation is expected to eq true - success + and + failure behaves like operation is expected to eq false - each + success + 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 + set + success + behaves like operation + is expected to eq true + success + behaves like operation + is expected to eq false nested + success + is expected to be a success failure is expected not to be a success + 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 + or success - is expected to be a success + behaves like operation + is expected to eq true + behaves like operation + is expected to eq true check two paths - success - behaves like operation - is expected to eq true failure behaves like operation is expected to eq false + success + behaves like operation + is expected to eq true one path failure behaves like operation @@ -1323,19 +1240,22 @@ 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 > [false => true] behaves like operation @@ -1347,279 +1267,239 @@ behaves like operation is expected to eq true then - [false => true] - behaves like operation - is expected to eq true [true => false] behaves like operation is expected to eq false - [true => true] + [false => true] behaves like operation is expected to eq true - & - failure + [true => true] behaves like operation - is expected to eq false + 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 - success + & + failure behaves like operation - is expected to eq true + is expected to eq false + success behaves like operation is expected to eq true - key - failure - behaves like operation - is expected to eq false - success - 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 - implication - [true => false] - behaves like operation - 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 - or - success - behaves like operation - is expected to eq true - behaves like operation - is expected to eq true - 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 Dry::Logic::Predicates - #date? - with value is not an integer + can be included in another module + .predicate + defines a predicate method + +Dry::Logic::Predicates + #str? + with value is not a string behaves like a failing predicate is expected to equal false - when value is a date + when value is a string behaves like a passing predicate is expected to equal true -Dry::Logic::Operations::And - #or - creates or with the other - #to_ast - returns failure result ast - returns result ast - returns ast - #to_s - returns string representation - #and - creates and with the other - #call - calls left and right - Dry::Logic::Predicates - #excluded_from? - with value is present in list + #uuid_v4? + with value is not a valid V4 UUID behaves like a failing predicate is expected to equal false - when value is not present in list + when value is a valid V4 UUID behaves like a passing predicate is expected to equal true -Dry::Logic::Operations::Check - #call - with 1-level nesting - applies predicate to args extracted from the input - with its output as input - failure - is expected not to be a success - success - is expected to be a success - with 2-levels nesting - curries args properly - applies predicate to args extracted from the input - #to_ast - returns ast - Dry::Logic::Predicates - #date_time? - with value is not an integer + #uuid_v3? + with value is not a valid V4 UUID behaves like a failing predicate is expected to equal false - when value is a datetime + when value is a valid V3 UUID behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #respond_to? - when value responds to method + #time? + when value is a time behaves like a passing predicate is expected to equal true - when value does not respond to method + with value is not an integer behaves like a failing predicate is expected to equal false +Rules + defining a rule with options + defining a conjunction + defining a disjunction + defining an implication + defining an anonymous rule with an arbitrary predicate + defining an exclusive disjunction + +Dry::Logic::Operations::Or + #to_ast + returns ast + returns result ast + returns failure result ast + #and + creates and with the other + #or + creates or with the other + #call + calls left and right + #to_s + returns string representation + Dry::Logic::Predicates - #min_bytesize? - with value size is less than n + #key? + with key is not present in value 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 + when key is present in value behaves like a passing predicate is expected to equal true +Dry::Logic::Predicates#eql? + when value is equal to the arg + behaves like a passing predicate + is expected to equal true + with value is not equal to the arg + behaves like a failing predicate + is expected to equal false + Dry::Logic::Predicates - #min_size? - with value size is less than n + #false? + when value is not false 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 - when value size is equal to n + when value is false behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #number? - when value is numerical + #excluded_from? + when value is not present in list behaves like a passing predicate is expected to equal true - with value is not numerical + with value is present in list behaves like a failing predicate is expected to equal false +Dry::Logic::RuleCompiler#call + compiles each rules + compiles check rules + compiles exclusive or rules + compiles attr rules + compiles key rules + compiles and rules + compiles set rules + compiles attr rules + compiles negated rules + compiles or rules + +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 - #filled? - with value is not filled + #excludes? + when input includes value behaves like a failing predicate is expected to equal false - when value is filled + with input excludes value behaves like a passing predicate is expected to equal true - -Dry::Logic::Predicates - #uri? - when value is a valid URI + with input of invalid type behaves like a passing predicate is expected to equal true - with value is not a valid URI - behaves like a failing predicate - is expected to equal false Dry::Logic::Predicates - #uuid_v4? - when value is a valid V4 UUID + #date_time? + when value is a datetime behaves like a passing predicate is expected to equal true - with value is not a valid V4 UUID + with value is not an integer behaves like a failing predicate is expected to equal false -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 - #lt? - when value is equal to n - behaves like a failing predicate - is expected to equal false - 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 +Dry::Logic::Operations::Xor + #and + creates conjunction with the other + #call + calls left and right + #or + creates disjunction with the other + #to_ast + returns failure result ast + returns ast + returns result ast + #to_s + returns string representation Dry::Logic::Predicates - #uuid_v1? - with value is not a valid V1 UUID + #uri? + with value is not a valid URI behaves like a failing predicate is expected to equal false - when value is a valid V1 UUID + when value is a valid URI behaves like a passing predicate is expected to equal true -Dry::Logic::Operations::Attr - #call - applies predicate to the value - #and - returns and where value is passed to the right - -Dry::Logic::Operations::Xor +Dry::Logic::Operations::Check #to_ast returns ast - returns failure result ast - returns result ast - #or - creates disjunction with the other #call - calls left and right - #and - creates conjunction with the other - #to_s - returns string representation - -Dry::Logic::Predicates#is? - when value is equal to the arg - behaves like a passing predicate - is expected to equal true - with value is not equal to the arg - behaves like a failing predicate - is expected to equal false + with 1-level nesting + applies predicate to args extracted from the input + with its output as input + success + is expected to be a success + failure + is expected not to be a success + with 2-levels nesting + applies predicate to args extracted from the input + curries args properly Dry::Logic::Predicates - #key? - with key is not present in value + #bool? + when value is not a bool behaves like a failing predicate is expected to equal false - when key is present in value + when value is a boolean behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #time? - when value is a time + #size? + 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 - with value is not an integer + when value size is greater than n behaves like a failing predicate is expected to equal false -Dry::Logic::Operations::Implication - #to_s - returns string representation - #call - calls left and right - #to_ast - returns ast - Dry::Logic::Predicates #even? when value is an odd int @@ -1629,79 +1509,115 @@ behaves like a passing predicate is expected to equal true -Dry::Logic::Operations::Each +Dry::Logic::Predicates + #array? + when value is not an array + behaves like a failing predicate + is expected to equal false + when value is an array + behaves like a passing predicate + is expected to equal true + +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::Predicates#is? + 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::Rule::Predicate + #name + returns predicate identifier #to_ast - returns ast - returns failure result ast - returns result ast + with a result + returns success + returns failure ast + without a result + returns rule ast + returns :failure with an id + with a zero-arity predicate + returns ast + behaves like Dry::Logic::Rule + #parameters + returns a list of args with their names + #call + returns failure for invalid input + returns success for valid input + #arity + returns its predicate arity + #[] + delegates to its predicate + #curry + raises argument error when arity does not match + returns a curried rule #to_s returns string representation - #call - applies its rules to all elements in the input predicates - type? - failure - behaves like predicate - is expected to eq false - success - string + compare methods + eql? + success behaves like predicate is expected to eq true - hash? - success - Hash + failure behaves like predicate - is expected to eq true - failure - Array + is expected to eq false + not_eql? + success behaves like predicate is expected to eq false - max_size? - success - [1] + failure behaves like predicate is expected to eq true - failure - [1, 2, 3] - behaves like predicate - is expected to eq false - bool? + gteq? success - true + 10 behaves like predicate is expected to eq true - false + 11 behaves like predicate is expected to eq true failure - symbol + 9 behaves like predicate is expected to eq false - 5 + excludes? + String + success + behaves like predicate + is expected to eq true + failure behaves like predicate is expected to eq false - str? - failure - Array + Array + success behaves like predicate is expected to eq false - success - String + failure behaves like predicate is expected to eq true filled? success - {:key=>"value"} + string behaves like predicate is expected to eq true - + {:key=>"value"} behaves like predicate is expected to eq true [1, 2] behaves like predicate is expected to eq true - string + behaves like predicate is expected to eq true failure @@ -1714,81 +1630,153 @@ [] behaves like predicate is expected to eq false - excluded_from? + array? success + Array + behaves like predicate + is expected to eq true + failure + Hash + behaves like predicate + is expected to eq false + decimal? + failure behaves like predicate is expected to eq false - failure + success behaves like predicate is expected to eq true - excludes? - String + attr? + failure + # + behaves like predicate + is expected to eq false + success + # + behaves like predicate + is expected to eq true + true? & false? + false? failure behaves like predicate is expected to eq false success behaves like predicate is expected to eq true - Array + true? success behaves like predicate + is expected to eq true + failure + behaves like predicate + is expected to eq false + key? + failure + {:age=>50} + behaves like predicate is expected to eq false + success + {:speed=>100} + behaves like predicate + is expected to eq true + uri? + [: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 + https failure behaves like predicate + is expected to eq false + success + behaves like predicate + is expected to eq true + http + success + behaves like predicate is expected to eq true + failure + behaves like predicate + is expected to eq false included_in? - failure - behaves like predicate - is expected to eq false success behaves like predicate is expected to eq true - bytesize? + failure + behaves like predicate + is expected to eq false + str? success - Array - behaves like predicate - is expected to eq true - Integer - behaves like predicate - is expected to eq true - Range + String behaves like predicate is expected to eq true failure Array behaves like predicate is expected to eq false - Range + lteq? + success + 9 behaves like predicate - is expected to eq false - Integer + is expected to eq true + failure + 11 behaves like predicate is expected to eq false - date_time? + max_bytesize? failure behaves like predicate - is expected to eq false + is expected to eq true success behaves like predicate - is expected to eq true - odd? + is expected to eq false + hash? + success + Hash + behaves like predicate + is expected to eq true failure - 10 + Array behaves like predicate is expected to eq false + max_size? success - 5 + [1] behaves like predicate is expected to eq true - format? failure - behaves like predicate - is expected to eq false + [1, 2, 3] + behaves like predicate + is expected to eq false + float? + success behaves like predicate is expected to eq false success behaves like predicate is expected to eq true + date? + success + -4712-01-01 + behaves like predicate + is expected to eq true + failure + symbol + 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 size? @@ -1803,149 +1791,95 @@ behaves like predicate is expected to eq false success - Integer + Array behaves like predicate is expected to eq true - Array + Integer behaves like predicate is expected to eq true Range behaves like predicate is expected to eq true - nil? + min_bytesize? success behaves like predicate is expected to eq true failure - symbol - behaves like predicate - is expected to eq false - lt? - success - 5 - behaves like predicate - is expected to eq true - failure - 200 - behaves like predicate - is expected to eq false - max_bytesize? - success behaves like predicate is expected to eq false - failure - 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? + includes? failure behaves like predicate is expected to eq false success behaves like predicate is expected to eq true - min_bytesize? - failure + predicate + success behaves like predicate is expected to eq false success behaves like predicate is expected to eq true - respond_to? + lt? failure - behaves like predicate - is expected to eq false + 200 + behaves like predicate + is expected to eq false success - behaves like predicate - is expected to eq true - time? + 5 + behaves like predicate + is expected to eq true + uuid + uuid_v4? + success + behaves like predicate + is expected to eq true + uuid_v1? + success + behaves like predicate + is expected to eq true + date_time? failure behaves like predicate is expected to eq false success behaves like predicate is expected to eq true - includes? - failure - behaves like predicate - is expected to eq false + nil? success behaves like predicate is expected to eq true - key? failure - {:age=>50} + symbol behaves like predicate is expected to eq false - success - {:speed=>100} - behaves like predicate - is expected to eq true - empty? + gt? failure - [1, 2] - behaves like predicate - is expected to eq false - string - behaves like predicate - is expected to eq false - - behaves like predicate - is expected to eq false - {:key=>"value"} + 5 behaves like predicate is expected to eq false success - [] - behaves like predicate - is expected to eq true - String - behaves like predicate - is expected to eq true - {} + 200 behaves like predicate is expected to eq true - even? + min_size? failure - 5 + [1] behaves like predicate is expected to eq false success - 10 + [1, 2, 3] behaves like predicate is expected to eq true - predicate + number? success behaves like predicate is expected to eq true - success - behaves like predicate - is expected to eq false - lteq? - success - 9 - behaves like predicate - is expected to eq true - failure - 11 - behaves like predicate - is expected to eq false - float? - success behaves like predicate - is expected to eq false - success + is expected to eq true behaves like predicate is expected to eq true - number? failure behaves like predicate is expected to eq false @@ -1955,74 +1889,74 @@ is expected to eq false 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 - date? + bytesize? failure - symbol + Integer behaves like predicate is expected to eq false - success - -4712-01-01 - behaves like predicate - is expected to eq true - uri? - https - success - behaves like predicate - is expected to eq true - failure + Range behaves like predicate is expected to eq false - [:http, :https] - success - behaves like predicate - is expected to eq true - behaves like predicate - is expected to eq true - http - failure + Array behaves like predicate is expected to eq false - success + success + Array behaves like predicate is expected to eq true - Regexp - success + Range behaves like predicate is expected to eq true + Integer behaves like predicate is expected to eq true - uuid - uuid_v1? - success + bool? + success + true behaves like predicate is expected to eq true - uuid_v4? - success + false behaves like predicate is expected to eq true - gt? failure 5 behaves like predicate is expected to eq false + symbol + behaves like predicate + is expected to eq false + even? success - 200 + 10 behaves like predicate is expected to eq true - decimal? + failure + 5 + 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 + excluded_from? failure behaves like predicate + is expected to eq true + success + behaves like predicate is expected to eq false + odd? + success + 5 + behaves like predicate + is expected to eq true + failure + 10 + behaves like predicate + is expected to eq false case? Fixnum success @@ -2032,286 +1966,388 @@ success behaves like predicate is expected to eq true - true? & false? - false? - failure + type? + success + string behaves like predicate - is expected to eq false - success + is expected to eq true + failure + behaves like predicate + is expected to eq false + time? + failure + behaves like predicate + is expected to eq false + success + behaves like predicate + is expected to eq true + empty? + success + [] behaves like predicate is expected to eq true - true? - failure + {} behaves like predicate - is expected to eq false - success + is expected to eq true + String behaves like predicate is expected to eq true - attr? failure - # + string behaves like predicate is expected to eq false - success - # - behaves like predicate - is expected to eq true - gteq? - failure - 9 + {:key=>"value"} behaves like predicate is expected to eq false - success - 11 + behaves like predicate - is expected to eq true - 10 + is expected to eq false + [1, 2] behaves like predicate - is expected to eq true - int? + is expected to eq false + format? success 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 - array? + behaves like predicate + is expected to eq false + is? success - Array - behaves like predicate - is expected to eq true + behaves like predicate + is expected to eq true failure - Hash - behaves like predicate - is expected to eq false - compare methods - not_eql? - failure - behaves like predicate - is expected to eq true - success - behaves like predicate - is expected to eq false - eql? - failure - behaves like predicate - is expected to eq false - success - behaves like predicate - is expected to eq true + behaves like predicate + is expected to eq false Dry::Logic::Predicates - #str? - with value is not a string + #int? + with value is not an integer behaves like a failing predicate is expected to equal false - when value is a string + when value is an integer behaves like a passing predicate is expected to equal true -Dry::Logic::Rule::Predicate - behaves like Dry::Logic::Rule - #arity - returns its predicate arity - #[] - delegates to its predicate - #curry - returns a curried rule - raises argument error when arity does not match - #parameters - returns a list of args with their names - #call - returns success for valid input - returns failure for invalid input +Dry::Logic::Operations::Set #to_s returns string representation + #call + applies all its rules to the input #to_ast - with a zero-arity predicate - returns ast - without a result - returns rule ast - returns :failure with an id - with a result - returns success - returns failure ast - #name - returns predicate identifier + returns result ast + returns result ast with an :id + returns ast Dry::Logic::Predicates - #uuid_v2? - when value is a valid V1 UUID + #min_size? + when value size is equal to n behaves like a passing predicate is expected to equal true - with value is not a valid V4 UUID + 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::Operations::Each + #to_ast + returns failure result ast + returns ast + returns result ast + #to_s + returns string representation + #call + applies its rules to all elements in the input Dry::Logic::Predicates - #empty? - when value is empty + #attr? + when value responds to the attr name behaves like a passing predicate is expected to equal true - with value is not empty + with value does not respond to the attr name behaves like a failing predicate is expected to equal false Dry::Logic::Predicates - #bytesize? - when value size is equal to n + #number? + when value is numerical behaves like a passing predicate is expected to equal true - with an unsupported size - raises an error - when value size is greater than n + with value is not numerical behaves like a failing predicate is expected to equal false - with value size is less than n + +Dry::Logic::Predicates + #decimal? + when value is a decimal + 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::Result +Dry::Logic::Predicates + #filled? + with value is not filled + behaves like a failing predicate + is expected to equal false + when value is filled + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Operations::And + #and + creates and with the other + #to_ast + returns failure result ast + returns ast + returns result ast #to_s - with NOT operation - behaves like string representation - returns string representation - with a predicate - behaves like string representation - returns string representation - with OR operation - behaves like string representation - returns string representation - with XOR operation - behaves like string representation - returns string representation - with THEN operation - behaves like string representation - returns string representation - with AND operation - behaves like string representation - returns string representation + returns string representation + #call + calls left and right + #or + creates or with the other Dry::Logic::Predicates - #int? + #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::Operations::Attr + #and + returns and where value is passed to the right + #call + applies predicate to the value + +Dry::Logic::Predicates + #float? with value is not an integer behaves like a failing predicate is expected to equal false - when value is an integer + when value is a float behaves like a passing predicate is expected to equal true Dry::Logic::Operations::Key - #to_s - returns string representation + #and + returns and rule where value is passed to the right #call - with a plain predicate - returns a failure for invalid input - returns a success for valid input with an each rule as predicate - applies each rule to the value that fails 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 with a set rule as predicate - applies set rule to the value that fails applies set rule to the value that passes - #ast - returns ast with the input - returns ast without the input - #and - returns and rule where value is passed to the right + applies set rule to the value that fails + #to_s + returns string representation #to_ast returns ast + #ast + returns ast without the input + returns ast with the input Dry::Logic::Predicates - #decimal? - with value is not an integer + #bytesize? + when value size is greater than n behaves like a failing predicate is expected to equal false - when value is a decimal + 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 + with an unsupported size + raises an error Dry::Logic::Predicates - #excludes? - when input includes value + #min_bytesize? + 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 - with input excludes value + when value size is equal to n behaves like a passing predicate is expected to equal true - with input of invalid type + +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::Predicates - #true? - with value is not true + #max_bytesize? + when value size is equal to 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 is true + when value size is less than n behaves like a passing predicate is expected to equal true Dry::Logic::Predicates - #gt? - when value is equal to n + #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 + #gteq? with value is less than n 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 when value is greater than n behaves like a passing predicate is expected to equal true -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::Operations::Or - #or - creates or with the other - #call - calls left and right - #and - creates and with the other - #to_ast - returns result ast - returns failure result ast - returns ast - #to_s - returns string representation - Dry::Logic::Predicates - #odd? - when value is an odd int + #gt? + when value is greater than n behaves like a passing predicate is expected to equal true - with value is an even int + 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 Dry::Logic::Predicates - #size? - with an unsupported size - raises an error - when value size is greater than n + #max_size? + with value size is greater than n behaves like a failing predicate is expected to equal false - with value size is less than n + 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::Predicates + #date? + with value is not an integer behaves like a failing predicate is expected to equal false - when value size is equal to n + when value is a date behaves like a passing predicate is expected to equal true -Finished in 4.41 seconds (files took 5.26 seconds to load) +Dry::Logic::Rule + #bind + with a schema instance + returns a new with its predicate executed in the context of the provided object + with an arbitrary block + returns a new with its predicate executed in the context of the provided object + carries id + stores parameters + stores arity + with an unbound method + returns a new rule with its predicate bound to a specific object + carries id + with a function returning truthy value + is successful for valid input + is not successful for invalid input + behaves like Dry::Logic::Rule + #arity + returns its predicate arity + #call + returns success for valid input + returns failure for invalid input + #parameters + returns a list of args with their names + #[] + delegates to its predicate + #curry + raises argument error when arity does not match + returns a curried rule + .new + accepts an :id + #eval_args + with an unbound method + 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 + arity specialization + currying + generates correct arity on currying + constants + accepts variable number of arguments + 1-arity rule + generates interface with the right arity + -2 arity + accepts variable number of arguments + curried 2 + doesn't have required arguments + curried 1 + doesn't have required arguments + arbitrary arity + generates correct arity + 0-arity rule + generates interface with the right arity + -1 arity + accepts variable number of arguments + #type + returns rule type + #ast + returns predicate node with :id + returns predicate node with undefined args + +Dry::Logic::Predicates + #type? + with value is not true + behaves like a failing predicate + is expected to equal false + when value has a correct type + behaves like a passing predicate + is expected to equal true + +Dry::Logic::Predicates#format? + 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 + when value does not match provided regexp + behaves like a failing predicate + is expected to equal false + +Finished in 1.05 seconds (files took 1.09 seconds to load) 399 examples, 0 failures -Randomized with seed 31341 +Randomized with seed 44405 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -2347,12 +2383,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/23122/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/23122/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/11602 and its subdirectories -I: Current time: Thu Jan 16 06:49:03 -12 2025 -I: pbuilder-time-stamp: 1737053343 +I: removing directory /srv/workspace/pbuilder/23122 and its subdirectories +I: Current time: Fri Jan 17 08:50:39 +14 2025 +I: pbuilder-time-stamp: 1737053439