Diff of the two buildlogs: -- --- b1/build.log 2024-05-03 21:47:02.779972139 +0000 +++ b2/build.log 2024-05-03 21:47:47.882049324 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Thu Jun 5 16:09:22 -12 2025 -I: pbuilder-time-stamp: 1749182962 +I: Current time: Sat May 4 11:47:06 +14 2024 +I: pbuilder-time-stamp: 1714772826 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -26,52 +26,84 @@ dpkg-source: info: unpacking ruby-tty-prompt_0.23.1-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3560438/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/2630170/tmp/hooks/D01_modify_environment starting +debug: Running on codethink02-arm64. +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 May 3 21:47 /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/2630170/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/2630170/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='arm64' - DEBIAN_FRONTEND='noninteractive' + 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]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='56c59b21685e45ef94737c3ce8c1502f' - 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='3560438' - PS1='# ' - PS2='> ' + INVOCATION_ID=5f1be798bf494c81adec07e3c2831494 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=2630170 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.SuaoLAzx/pbuilderrc_a3Vr --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.SuaoLAzx/b1 --logfile b1/build.log ruby-tty-prompt_0.23.1-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://192.168.101.4:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.SuaoLAzx/pbuilderrc_VNdo --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.SuaoLAzx/b2 --logfile b2/build.log ruby-tty-prompt_0.23.1-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink03-arm64 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jun 5 14:47 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3560438/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 3 08:22 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/2630170/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -254,7 +286,7 @@ Get: 135 http://deb.debian.org/debian trixie/main arm64 ruby-tty-screen all 0.8.1-2 [8924 B] Get: 136 http://deb.debian.org/debian trixie/main arm64 ruby-wisper all 2.0.1-2 [12.7 kB] Get: 137 http://deb.debian.org/debian trixie/main arm64 ruby-tty-reader all 0.9.0-1 [18.1 kB] -Fetched 46.2 MB in 0s (122 MB/s) +Fetched 46.2 MB in 0s (130 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:arm64. (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 ... 19736 files and directories currently installed.) @@ -711,8 +743,8 @@ Setting up tzdata (2024a-3) ... Current default time zone: 'Etc/UTC' -Local time is now: Fri Jun 6 04:09:43 UTC 2025. -Universal Time is now: Fri Jun 6 04:09:43 UTC 2025. +Local time is now: Fri May 3 21:47:27 UTC 2024. +Universal Time is now: Fri May 3 21:47:27 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-tty-color (0.6.0-1) ... @@ -836,7 +868,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-tty-prompt-0.23.1/ && 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-tty-prompt_0.23.1-1_source.changes +I: user script /srv/workspace/pbuilder/2630170/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/2630170/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-tty-prompt-0.23.1/ && 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-tty-prompt_0.23.1-1_source.changes dpkg-buildpackage: info: source package ruby-tty-prompt dpkg-buildpackage: info: source version 0.23.1-1 dpkg-buildpackage: info: source distribution unstable @@ -865,7 +901,7 @@ dh_prep -O--buildsystem=ruby dh_auto_install --destdir=debian/ruby-tty-prompt/ -O--buildsystem=ruby dh_ruby --install /build/reproducible-path/ruby-tty-prompt-0.23.1/debian/ruby-tty-prompt -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20250605-3569297-f9fnr/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240504-2650989-35w3zp/gemspec Failed to load /dev/null because it doesn't contain valid YAML hash WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as '~> x.y' @@ -877,7 +913,7 @@ Name: tty-prompt Version: 0.23.1 File: tty-prompt-0.23.1.gem -/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-prompt/usr/share/rubygems-integration/all /tmp/d20250605-3569297-f9fnr/tty-prompt-0.23.1.gem +/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-prompt/usr/share/rubygems-integration/all /tmp/d20240504-2650989-35w3zp/tty-prompt-0.23.1.gem Failed to load /dev/null because it doesn't contain valid YAML hash /build/reproducible-path/ruby-tty-prompt-0.23.1/debian/ruby-tty-prompt/usr/share/rubygems-integration/all/gems/tty-prompt-0.23.1/lib/tty-prompt.rb /build/reproducible-path/ruby-tty-prompt-0.23.1/debian/ruby-tty-prompt/usr/share/rubygems-integration/all/gems/tty-prompt-0.23.1/lib/tty/prompt.rb @@ -946,131 +982,283 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-prompt-0.23.1/debian/ruby-tty-prompt/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-prompt-0.23.1/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/aarch64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/aarch64-linux-gnu/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 7253 +Randomized with seed 63163 -TTY::Prompt#collect +TTY::Prompt::Choice#from + creates choice from an array with key-value pair + creates choice from an arbitrary object that responds to to_s call + creates choice from a hash with a value + creates choice from array with name and nil value + creates choice from a hash with name, value and key keys + creates choice from an array with name and false value + creates choice from an array with name only and defaults value + creates choice from a hash with a nil value + creates choice from an array with a hash with name and value keys + creates choice from a symbol + creates choice from an array with a hash without value key + creates choice from an array with name and a value + creates disabled choice + creates choice from a string + skips Choice instance + +TTY::Prompt::Evaluator + checks chained validation procs + checks chained validation objects + +TTY::Prompt#subscribe No entry for terminal type "unknown"; using dumb terminal settings. No entry for terminal type "unknown"; using dumb terminal settings. No entry for terminal type "unknown"; using dumb terminal settings. - collects more than one answer - when receiving multiple answers - overrides a non-array key on multiple answers - collects as a list if values method used in chain - collects as a list if values method used in chain with block - with multiple keys - collects into the appropriate keys - -TTY::Prompt::Choices#find_by - finds a matching choice by :key key - finds a matching choice by :value key - finds no matching choice - finds a matching choice by :name key - -TTY::Prompt::Question#in - overwrites default error message when wrong input - reads number within string range - reads letters within range - reads number within digit range - provides default error message when wrong input - reads range from option - -TTY::Prompt::Question convert numbers - fails to convert integer - converts float - converts integer - fails to convert float + subscribes to key events only for the current prompt TTY::Prompt::Question#default - uses default value in block - uses default value + sets quiet mode -TTY::Prompt::Question - fails validation check - fails required check with custom message - fails range check - fails convert check - fails convert check with custom message - fails validation check with custom message - fails validation check with inlined custom message - passes validation check - passes required check - fails range check - fails required check - passes convert check - passes range check +TTY::Prompt::Distance.distance + when prefix + is expected to eql 3 + when unicode + is expected to eql 1 + with one non empty + is expected to eql 3 + when single char + is expected to eql 2 + when empty + is expected to eql 0 + when similar + is expected to eql 1 + when nil + is expected to eql 0 + when contain similar + is expected to eql 2 + when similar + is expected to eql 0 + when end similar + is expected to eql 3 + when similar + is expected to eql 2 -TTY::Prompt::BlockPaginator#paginate - ignores per_page when less items - doesn't accept invalid pagination - paginates items not matching per_page count - ignores per_page when equal items +TTY::Prompt::Paginator#paginate paginates items matching per_page count + ignores per_page when equal items finds both start and end index for current selection starts with default selection + doesn't accept invalid pagination + paginates items not matching per_page count + ignores per_page when less items -TTY::Prompt::Question convert range - fails to convert to range - converts with valid range - -TTY::Prompt#subscribe - subscribes to key events only for the current prompt +TTY::Prompt::Question::Modifier#letter_case + nil (empty user input) + down returns nil + up returns nil + capitalize returns nil + string + changes to uppercase + changes to lower case + capitalizes text -TTY::Prompt::Question#multiline +TTY::Prompt#expand + fails to expand due to wrong key length sets quiet mode - uses defualt when no input - reads no lines - reads multiple lines with empty lines - changes help text + automatically expands hint + expands chosen option with extra information + sets quiet mode through DSL + specifies options through DSL and executes value + informs about invalid input when automatically expanding hint + changes default option + fails to expand due to lack of key attribute + expands help option and then defaults + fails to expand due to duplicate key + expands default option + fails to expand due to reserve key + specifies options through DSL -TTY::Prompt::Choices#pluck - plucks choice by key name +TTY::Prompt::Question#default + uses default value + uses default value in block -TTY::Prompt#ok - changes color to cyan - prints text in green - prints multiple lines in green +TTY::Prompt::Question convert bool + fails to convert boolean + converts positive boolean + converts single positive boolean + handles default values + converts negative boolean + handles default values TTY::Prompt::Question convert to array - converts answer to an array of booleans converts answer to an array of integers converts answer to an array + converts answer to an array of booleans -TTY::Prompt::Question#keypress - receives line feed with echo on - asks for a keypress with echo off - interrupts input - asks for a keypress with echo on - timeouts when no key provided +TTY::Prompt::Question::Modifier#whitespace + nil (empty user input) + trim returns nil + collapse returns nil + chomp returns nil + remove returns nil + string with whitespaces + chomps whitespace + collapses text + removes whitespace + trims whitespace -TTY::Prompt::Question convert char - reads single character +TTY::Prompt::Converters + :path + converts "/foo/bar/baz" to # + :string + converts "" to "" + converts "input\n" to "input" + :datetime + converts "2020/05/21 11:12:13" to # + converts "unknown" to "undefined" + :integer + converts "unknown" to "undefined" + converts "12" to 12 + :regexp + converts "\\d+" to /\d+/ + converts "unknown" to /unknown/ + :array/:list + converts "1,2,3" to [1, 2, 3] + converts ["a", "b", "c"] to ["a", "b", "c"] + converts "1,2,3" to [1.0, 2.0, 3.0] + converts "t,t,f" to [true, true, false] + converts ",," to [] + converts "a,b,c" to [:a, :b, :c] + converts "a,b,c" to ["a", "b", "c"] + converts "1,2,3" to [1, 2, 3] + converts "1,2,3" to [1, 2, 3] + converts "a,b,c" to [/a/, /b/, /c/] + converts "a,b,c" to [:a, :b, :c] + converts ",b,c" to ["b", "c"] + converts "1,2,3" to [1, 2, 3] + converts "1,2,3" to [1.0, 2.0, 3.0] + converts "t,t,f" to [true, true, false] + converts "a, , c" to ["a", "c"] + converts "a , b , c" to ["a", "b", "c"] + converts "t,t,f" to [true, true, false] + converts "a, b\\, c" to ["a", "b, c"] + :float + converts "12.3" to 12.3 + converts "unknown" to "undefined" + :uri + converts "http://foobar.com" to # + :time + converts "unknown" to "undefined" + converts "11:12:13" to 2024-05-04 11:12:13 +1400 + :boolean + converts "no" to false + converts "0" to false + converts "YES" to true + converts "true" to true + converts "1" to true + converts "t" to true + converts "FALSE" to false + converts "y" to true + converts "unknown" to "undefined" + converts "f" to false + :hash/:map + converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} + converts "a=1" to {:a=>"1"} + converts "a:t b:f c:t" to {:a=>/t/, :b=>/f/, :c=>/t/} + converts "a:1 b:2" to {:a=>"1", :b=>"2"} + converts "a:1 b:2 c:3" to {:a=>1.0, :b=>2.0, :c=>3.0} + converts "a:t b:f c:t" to {:a=>:t, :b=>:f, :c=>:t} + converts "a:1 b:2 c:3" to {"a"=>1, "b"=>2, "c"=>3} + converts "a=1&b=2&a=3" to {:a=>["1", "3"], :b=>"2"} + converts "a=1&b=2" to {:a=>"1", :b=>"2"} + converts "a:1 b:2 a:3" to {:a=>["1", "3"], :b=>"2"} + converts ["a:1", "b:2", "c:3"] to {:a=>"1", :b=>"2", :c=>"3"} + converts "a:1 b:2 c:3" to {:a=>1, :b=>2, :c=>3} + converts "" to {} + converts ["a=1", "b=2", "c=3"] to {:a=>"1", :b=>"2", :c=>"3"} + converts "a=&b=2" to {:a=>"", :b=>"2"} + converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} + converts "a:1 b:2 c:3" to {:a=>1, :b=>2, :c=>3} + converts "a:1 b:2 c:3" to {"a"=>1, "b"=>2, "c"=>3} + :date + converts "2020/05/21" to # + converts "unknown" to "undefined" + :char + converts "input" to "i" + converts "" to nil + :range + converts 1..10 to 1..10 + converts "1" to 1..1 + converts "1..10" to 1..10 + converts "1 . . . 10" to 1...10 + converts "a..z" to "a".."z" + converts "1...10" to 1...10 + converts "a . . . z" to "a"..."z" + converts "1.0" to 1.0..1.0 + converts "1 , 10" to 1..10 + converts "unknown" to "undefined" + converts "1-10" to 1..10 + converts "-5--1" to -5..-1 + converts "1.2-5.0" to 1.2..5.0 -TTY::Prompt::Question#initialize - is expected to eq true - is expected to eq TTY::Prompt::Question::UndefinedSetting - is expected to eq [] +TTY::Prompt#mask + masks output with custom character + masks output by default + validates input + ignores mask if echo is off + masks with unicode character + +TTY::Prompt::Question convert path + converts pathname + +TTY::Prompt + doesn't paginate short selections + sets quiet mode through DSL + selects default option when return pressed immediately + changes colors for selection, hint and error + shows pages matching input + raises configuration error when default is higher than number of choices + doesn't cycle around by default + cycles around when configured to do so + displays error with unrecognized input + sets choice value to nil through DSL + switches through pages with tab key + selects option by index from the list + paginates long selections + selects option through DSL with key and value + changes global symbols through DSL + raises when default name matches a disabled choice + sets quiet mode + selects option through DSL + changes global symbols + selects default choice by name + raises when default choice name is not found + with :disabled choice + fails when active item is also disabled + omits disabled choice when navigating with numbers + finds first non-disabled index + doesn't allow to choose disabled choice and defaults TTY::Prompt::Question#required + doesn't require value to be present requires value to be present requires value to be present with option - doesn't require value to be present uses required in validation check -TTY::Prompt::Question convert date - converts datetime - converts date - fails to convert date +TTY::Prompt::Choices#pluck + plucks choice by key name -TTY::Prompt::Question#validate - validates input with regex - provides custom error message for wrong input - understands custom validation like :email - deprecates :validation option - provides default error message for wrong input - validates input with proc +TTY::Prompt::Statement.new + displays prompt message in color + forces newline after the prompt message + +TTY::Prompt::Question::Validation#call + fails validation when not maching pattern + validates successfully when the value matches pattern + validates nil input + validates with custom name + validates with a proc + +TTY::Prompt::Question convert regexp + converts regex TTY::Prompt#suggest suggests a single match for two characters @@ -1078,575 +1266,423 @@ suggests few matches suggests a single match for one character -TTY::Prompt#decorate - decorates with a callable object - doesn't decorate without additional arguments - doesn't decorate when disabled - decorates with a proc - doesn't decorate empty string - decorates string with named colors +TTY::Prompt::Question convert string + converts symbol + converts string + +TTY::Prompt::Result + checks value to be valid + checks value to be invalid + +TTY::Prompt::Question convert char + reads single character + +TTY::Prompt::Question#initialize + is expected to eq true + is expected to eq TTY::Prompt::Question::UndefinedSetting + is expected to eq [] + +TTY::Prompt::Question#keypress + interrupts input + asks for a keypress with echo on + timeouts when no key provided + receives line feed with echo on + asks for a keypress with echo off + +TTY::Prompt::Question::Modifier#apply_to + combines letter case & whitespace modifications + doesn't apply modifiers + combines whitespace & letter case modifications + +TTY::Prompt::Question convert file + converts to file + +TTY::Prompt#ok + changes color to cyan + prints text in green + prints multiple lines in green + +TTY::Prompt confirmation + #no? + agrees with question + assumes default false + warns about invalid entry when using defaults + defaults suffix and converter + changes default + customizes question through DSL + disagrees with question + #yes? + customizes question through DSL + agrees with question + assumes default true + warns about invalid entry when using defaults + disagrees with question + obeys quiet mode + fails to infer default value from a word + infers default value from a word + defaults suffix and converter + customizes question through options + defaults positive and negative + accepts regex conflicting characters as suffix + changes default + +TTY::Prompt::Choices#<< + adds choice to collection + +TTY::Prompt::Timer + times out loop execution + registers a tick event + +TTY::Prompt::Choices#each + iterates over collection + +TTY::Prompt::Question convert custom + converts response with custom conversion + +TTY::Prompt::Question#echo + asks with echo on + asks with echo off TTY::Prompt::Question::Validation#coerce - coerces into regex fails to coerce pattern into validation + coerces into regex doesn't coerce symbols coerces lambda into proc -TTY::Prompt::Choices#each - iterates over collection +TTY::Prompt::Choices#find_by + finds a matching choice by :name key + finds a matching choice by :value key + finds a matching choice by :key key + finds no matching choice -TTY::Prompt::Question convert path - converts pathname +TTY::Prompt#collect + collects more than one answer + when receiving multiple answers + overrides a non-array key on multiple answers + collects as a list if values method used in chain + collects as a list if values method used in chain with block + with multiple keys + collects into the appropriate keys -TTY::Prompt - sets choice value to nil through DSL - selects option through DSL - displays error with unrecognized input - cycles around when configured to do so - selects default choice by name - raises when default name matches a disabled choice - selects option through DSL with key and value - doesn't cycle around by default - selects default option when return pressed immediately - sets quiet mode - shows pages matching input - changes global symbols - selects option by index from the list - doesn't paginate short selections - raises configuration error when default is higher than number of choices - raises when default choice name is not found - paginates long selections - changes global symbols through DSL - switches through pages with tab key - sets quiet mode through DSL - changes colors for selection, hint and error - with :disabled choice - doesn't allow to choose disabled choice and defaults - fails when active item is also disabled - omits disabled choice when navigating with numbers - finds first non-disabled index +TTY::Prompt::Question convert range + converts with valid range + fails to convert to range -TTY::Prompt::Choice#from - creates choice from an array with a hash with name and value keys - creates choice from an array with name and a value - creates choice from a string - creates choice from an array with name only and defaults value - creates choice from a symbol - creates choice from a hash with a value - creates choice from an array with a hash without value key - creates choice from an array with name and false value - creates choice from an arbitrary object that responds to to_s call - creates choice from array with name and nil value - creates disabled choice - creates choice from a hash with a nil value - creates choice from a hash with name, value and key keys - skips Choice instance - creates choice from an array with key-value pair +TTY::Prompt::Choices#enabled + returns only choices which aren't disabled TTY::Prompt::Question#modify - converts to upper case - collapses whitespace - trims whitespace strips and collapses whitespace preserves answer for unkown modification + converts to upper case + trims whitespace + collapses whitespace + +TTY::Prompt::Question convert date + fails to convert date + converts datetime + converts date + +TTY::Prompt::Question convert numbers + fails to convert integer + converts integer + converts float + fails to convert float + +TTY::Prompt#warn + displays one message + changes default yellow color to cyan + displays message with option + displays many messages + +TTY::Prompt::Question + fails required check + passes validation check + fails validation check with custom message + passes convert check + fails validation check + fails range check + passes required check + fails convert check + fails convert check with custom message + fails range check + fails required check with custom message + passes range check + fails validation check with inlined custom message + +TTY::Prompt::BlockPaginator#paginate + ignores per_page when less items + ignores per_page when equal items + finds both start and end index for current selection + paginates items matching per_page count + paginates items not matching per_page count + starts with default selection + doesn't accept invalid pagination + +TTY::Utils + #deep_copy + copies "" + copies ["foo", {:bar=>"baz"}, :fum, 11] + #blank? + detects blank of " " as true + detects blank of "foo" as false + detects blank of "" as true + detects blank of nil as true + detects blank of "\n\t " as true + detects blank of :foo as false TTY::Prompt#ask - asks question with prepopulated value - permits nil default parameter asks question - overwrites global settings - permits empty default parameter asks an empty question and returns nil if EOF is sent to stdin + sets quiet mode through DSL asks an empty question - asks a question with block - changes question color asks a question with a prefix [?] - sets quiet mode through DSL - sets quiet mode + changes question color asks an empty question with prepopulated value + sets quiet mode + permits nil default parameter + overwrites global settings + asks a question with block + permits empty default parameter + asks question with prepopulated value -TTY::Prompt::Result - checks value to be valid - checks value to be invalid +TTY::Prompt#new + sets input stream + sets prefix + sets output stream -TTY::Prompt::Choices#<< - adds choice to collection +TTY::Prompt#inspect + inspects instance attributes + +TTY::Prompt#decorate + doesn't decorate without additional arguments + decorates with a callable object + decorates with a proc + doesn't decorate empty string + doesn't decorate when disabled + decorates string with named colors + +TTY::Prompt::ConverterRegistry + fetch + retrieves uppcase named converter + retrieves converter from the registry + fails to retrieve conversion + register + registers new conversion under multiple names + registers new conversion under single name + fails to register conversion + contain + contains conversion + doesn't have conversion + checks conversion with object type TTY::Prompt - sets default choices using names - sets prompt prefix - changes to never show help - changes help text and color - changes to always show help - changes selected item color & marker - selects item when space pressed but doesn't echo item if echo: false sets choice value to nil through DSL - sets default options through DSL syntax - raises error for defaults out of range - sets choice custom values + changes help text and color selects nothing when return pressed immediately - selects item when space pressed sets default options through hash syntax + changes selected item color & marker sets prompt to quiet mode + sets default options through DSL syntax + sets prompt prefix + sets choice custom values + changes to never show help + raises error for defaults out of range sets choice name and value through DSL - with :cycle - cycles filtered choices left and right - cycles when configured to do so - doesn't cycle by default - cycles choices using left/right arrows - with :disabled - selects all non-disabled choices when ctrl+a is pressed - omits disabled choice when nagivating menu - fails when default item is also disabled - omits disabled choice when number key is pressed - adjusts active index to match first non-disabled choice - with :min - requires number of choices + sets default choices using names + selects item when space pressed but doesn't echo item if echo: false + changes to always show help + selects item when space pressed when paginated + paginates choices as hash object reverts selection accross pages with Ctrl+r - selects all paged choices with ctrl+a + paginates long selections through DSL navigates unevenly paged output with right arrow until the end of selection doesn't paginate short selections - paginates choices as hash object - paginates long selections through DSL paginates long selections - combines up/down navigation with left/right navigates evenly paged output with right arrow until end of selection + selects all paged choices with ctrl+a navigates left and right + combines up/down navigation with left/right + with :disabled + omits disabled choice when number key is pressed + selects all non-disabled choices when ctrl+a is pressed + omits disabled choice when nagivating menu + adjusts active index to match first non-disabled choice + fails when default item is also disabled with :max limits number of choices disables Ctrl+a/Ctrl+r selection when :max option is specified - with filter - doesn't lose the selection when switching between filters - -TTY::Prompt::Question convert file - converts to file - -TTY::Prompt#select - sets choice name through DSL - changes to always show help - sets choices and single choice through DSL - changes to never show help - raises when default choice matches disabled choice - changes selected item color & marker - sets choice name and value - allows navigation using events without errors - sets choice value to nil - raises when default choice doesn't match any choices - verifies default index range - changes help text - configures quiet mode - doesn't paginate short selections - sets choice name & value through DSL - sets quiet mode through DSL - sets choice value to proc and executes it - changes help text through DSL - sets default option through hash syntax - sets choice name & value through DSL - verifies default index format - selects by default first option - selects default choice by name - sets prompt prefix - with filter - doesn't exit when there are no matching entries - doesn't allow mixing enumeration and filter - filters and chooses a uniquely matching entry, ignoring case - filters based on alphanumeric and punctuation characters - navigates left and right with filtered items - filters and chooses the first of multiple matching entries - cancels a selection - with :disabled choice - doesn't show disabled choice when filtering choices - omits disabled choice when number key is pressed - omits disabled choice when navigating menu - sets active to be first non-disabled choice - prevents setting default to disabled choice - with :cycle option - cycles pages left/right with disabled items + with :cycle doesn't cycle by default - cycles around disabled items - cycles filtered choices left and right cycles choices using left/right arrows - cycles around when configured to do so - when paginated - combines up/down navigation with left/right - navigates pages up/down with disabled items - navigates unevenly paged output with right arrow until the end of selection - paginates choices as hash object - navigates pages left/right with disabled items - paginates long selections through DSL - navigates left and right - paginates long selections - navigates evenly paged output with right arrow until end of selection - -TTY::Prompt#new - sets output stream - sets input stream - sets prefix - -TTY::Prompt#warn - changes default yellow color to cyan - displays message with option - displays one message - displays many messages - -TTY::Prompt#inspect - inspects instance attributes - -TTY::Prompt::Question#echo - asks with echo on - asks with echo off - -TTY::Prompt::Question#default - sets quiet mode + cycles filtered choices left and right + cycles when configured to do so + with :min + requires number of choices + with filter + doesn't lose the selection when switching between filters TTY::Prompt#error displays message with option - displays many messages changes default red color to cyan + displays many messages displays one message TTY::Prompt#slider - specifies choices instead of calculated range - doesn't allow values outside of range - sets choice value to proc and executes it changes display colors - specifies range through DSL + specifies quiet mode through DSL changes all display symbols + changes all display symbols per instance + specifies choices through DSL + specifies ranges & step + sets choice value to proc and executes it + formats via proc changes to never show help - sets default choice by index number mixes choices as values and via DSL and keeps ordering - sets default choice by name + specifies choices instead of calculated range + doesn't allow values outside of range specifies default value - specifies quiet mode through DSL - specifies choices through DSL - formats via proc - specifies choices through DSL - changes all display symbols per instance + sets default choice by name sets quiet mode + specifies range through DSL changes to always show help - specifies ranges & step + specifies choices through DSL + sets default choice by index number -TTY::Prompt::Statement.new - displays prompt message in color - forces newline after the prompt message +TTY::Prompt::Choices.new + creates choices collection -TTY::Prompt::Question convert string - converts symbol - converts string +TTY::Prompt::Question#multiline + reads no lines + changes help text + reads multiple lines with empty lines + uses defualt when no input + sets quiet mode -TTY::Prompt::Choice#== - is false with different name attribute - is true with the same name and value attributes - is false with non-choice object - is false with different key attribute - is false with different value attribute +TTY::Prompt::Question#validate + provides default error message for wrong input + validates input with regex + understands custom validation like :email + provides custom error message for wrong input + deprecates :validation option + validates input with proc + +TTY::Prompt::Question#in + reads range from option + reads number within digit range + overwrites default error message when wrong input + provides default error message when wrong input + reads number within string range + reads letters within range + +TTY::Prompt::Question convert to hash + converts answer to a hash of integer values + converts answer to a hash of boolean values + converts answer to a hash TTY::Prompt#say prints an empty message + with color + prints message with ansi color without newline + prints message with ansi color with tab or space prints + without color + prints message without ansi with new line - prints a message with newline within text and blank space - prints a message with newline within text - prints a message without newline prints a message with newline prints a message with implicit newline - without color - prints message without ansi - with color - prints message with ansi color - prints message with ansi color without newline - -TTY::Prompt::Choices#enabled - returns only choices which aren't disabled - -TTY::Prompt::Converters - :char - converts "" to nil - converts "input" to "i" - :array/:list - converts "1,2,3" to [1, 2, 3] - converts "1,2,3" to [1.0, 2.0, 3.0] - converts "1,2,3" to [1.0, 2.0, 3.0] - converts "a,b,c" to ["a", "b", "c"] - converts "1,2,3" to [1, 2, 3] - converts "a, , c" to ["a", "c"] - converts "t,t,f" to [true, true, false] - converts "a, b\\, c" to ["a", "b, c"] - converts "a , b , c" to ["a", "b", "c"] - converts "t,t,f" to [true, true, false] - converts "a,b,c" to [/a/, /b/, /c/] - converts ",b,c" to ["b", "c"] - converts "1,2,3" to [1, 2, 3] - converts "a,b,c" to [:a, :b, :c] - converts "t,t,f" to [true, true, false] - converts ",," to [] - converts ["a", "b", "c"] to ["a", "b", "c"] - converts "1,2,3" to [1, 2, 3] - converts "a,b,c" to [:a, :b, :c] - :uri - converts "http://foobar.com" to # - :hash/:map - converts "a:1 b:2 c:3" to {:a=>1, :b=>2, :c=>3} - converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} - converts "a:1 b:2 c:3" to {"a"=>1, "b"=>2, "c"=>3} - converts "a:1 b:2 a:3" to {:a=>["1", "3"], :b=>"2"} - converts "a:t b:f c:t" to {:a=>/t/, :b=>/f/, :c=>/t/} - converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} - converts "a=1" to {:a=>"1"} - converts "a=1&b=2&a=3" to {:a=>["1", "3"], :b=>"2"} - converts "" to {} - converts "a:1 b:2 c:3" to {:a=>1.0, :b=>2.0, :c=>3.0} - converts "a=&b=2" to {:a=>"", :b=>"2"} - converts ["a=1", "b=2", "c=3"] to {:a=>"1", :b=>"2", :c=>"3"} - converts "a:1 b:2 c:3" to {:a=>1, :b=>2, :c=>3} - converts "a=1&b=2" to {:a=>"1", :b=>"2"} - converts "a:1 b:2 c:3" to {"a"=>1, "b"=>2, "c"=>3} - converts "a:t b:f c:t" to {:a=>:t, :b=>:f, :c=>:t} - converts ["a:1", "b:2", "c:3"] to {:a=>"1", :b=>"2", :c=>"3"} - converts "a:1 b:2" to {:a=>"1", :b=>"2"} - :float - converts "12.3" to 12.3 - converts "unknown" to "undefined" - :date - converts "2020/05/21" to # - converts "unknown" to "undefined" - :time - converts "11:12:13" to 2025-06-05 11:12:13 -1200 - converts "unknown" to "undefined" - :string - converts "input\n" to "input" - converts "" to "" - :integer - converts "unknown" to "undefined" - converts "12" to 12 - :boolean - converts "YES" to true - converts "true" to true - converts "0" to false - converts "unknown" to "undefined" - converts "f" to false - converts "1" to true - converts "FALSE" to false - converts "t" to true - converts "no" to false - converts "y" to true - :range - converts "1.0" to 1.0..1.0 - converts "1 . . . 10" to 1...10 - converts "-5--1" to -5..-1 - converts "1...10" to 1...10 - converts "1-10" to 1..10 - converts "1 , 10" to 1..10 - converts "a..z" to "a".."z" - converts "unknown" to "undefined" - converts "1..10" to 1..10 - converts "1" to 1..1 - converts 1..10 to 1..10 - converts "1.2-5.0" to 1.2..5.0 - converts "a . . . z" to "a"..."z" - :datetime - converts "2020/05/21 11:12:13" to # - converts "unknown" to "undefined" - :regexp - converts "unknown" to /unknown/ - converts "\\d+" to /\d+/ - :path - converts "/foo/bar/baz" to # - -TTY::Prompt confirmation - #no? - agrees with question - assumes default false - customizes question through DSL - warns about invalid entry when using defaults - changes default - defaults suffix and converter - disagrees with question - #yes? - accepts regex conflicting characters as suffix - disagrees with question - customizes question through DSL - customizes question through options - defaults suffix and converter - fails to infer default value from a word - warns about invalid entry when using defaults - agrees with question - infers default value from a word - defaults positive and negative - assumes default true - changes default - obeys quiet mode - -TTY::Utils - #blank? - detects blank of "" as true - detects blank of "\n\t " as true - detects blank of nil as true - detects blank of :foo as false - detects blank of " " as true - detects blank of "foo" as false - #deep_copy - copies ["foo", {:bar=>"baz"}, :fum, 11] - copies "" - -TTY::Prompt::Question::Modifier#letter_case - string - capitalizes text - changes to lower case - changes to uppercase - nil (empty user input) - capitalize returns nil - up returns nil - down returns nil - -TTY::Prompt::Question convert bool - converts positive boolean - fails to convert boolean - handles default values - converts single positive boolean - handles default values - converts negative boolean - -TTY::Prompt::Evaluator - checks chained validation objects - checks chained validation procs - -TTY::Prompt::Timer - times out loop execution - registers a tick event - -TTY::Prompt::Question::Validation#call - validates nil input - fails validation when not maching pattern - validates with custom name - validates successfully when the value matches pattern - validates with a proc - -TTY::Prompt#mask - ignores mask if echo is off - masks output by default - masks output with custom character - masks with unicode character - validates input - -TTY::Prompt::Question convert custom - converts response with custom conversion - -TTY::Prompt::ConverterRegistry - contain - contains conversion - checks conversion with object type - doesn't have conversion - fetch - retrieves converter from the registry - retrieves uppcase named converter - fails to retrieve conversion - register - fails to register conversion - registers new conversion under single name - registers new conversion under multiple names + prints a message without newline + prints a message with newline within text and blank space + prints a message with newline within text -TTY::Prompt::Distance.distance - when unicode - is expected to eql 1 - when nil - is expected to eql 0 - when prefix - is expected to eql 3 - with one non empty - is expected to eql 3 - when contain similar - is expected to eql 2 - when similar - is expected to eql 1 - when end similar - is expected to eql 3 - when similar - is expected to eql 0 - when similar - is expected to eql 2 - when empty - is expected to eql 0 - when single char - is expected to eql 2 +TTY::Prompt#select + verifies default index range + sets choice name and value + sets quiet mode through DSL + changes to never show help + sets default option through hash syntax + allows navigation using events without errors + sets choice value to nil + sets choices and single choice through DSL + selects default choice by name + raises when default choice doesn't match any choices + raises when default choice matches disabled choice + selects by default first option + changes help text through DSL + changes selected item color & marker + sets prompt prefix + doesn't paginate short selections + changes help text + sets choice value to proc and executes it + changes to always show help + sets choice name & value through DSL + configures quiet mode + sets choice name & value through DSL + verifies default index format + sets choice name through DSL + with :cycle option + cycles pages left/right with disabled items + cycles around disabled items + cycles choices using left/right arrows + cycles around when configured to do so + doesn't cycle by default + cycles filtered choices left and right + with :disabled choice + omits disabled choice when navigating menu + prevents setting default to disabled choice + doesn't show disabled choice when filtering choices + sets active to be first non-disabled choice + omits disabled choice when number key is pressed + when paginated + navigates pages up/down with disabled items + paginates long selections + paginates long selections through DSL + navigates pages left/right with disabled items + navigates left and right + navigates unevenly paged output with right arrow until the end of selection + navigates evenly paged output with right arrow until end of selection + paginates choices as hash object + combines up/down navigation with left/right + with filter + filters and chooses a uniquely matching entry, ignoring case + doesn't exit when there are no matching entries + doesn't allow mixing enumeration and filter + cancels a selection + navigates left and right with filtered items + filters based on alphanumeric and punctuation characters + filters and chooses the first of multiple matching entries TTY::Prompt::SelectedChoices inserts and deletes choices + inserts choices by the index order initializes with selected choices clears choices - inserts choices by the index order - -TTY::Prompt::Question::Modifier#apply_to - doesn't apply modifiers - combines whitespace & letter case modifications - combines letter case & whitespace modifications -TTY::Prompt::Question::Modifier#whitespace - string with whitespaces - collapses text - removes whitespace - chomps whitespace - trims whitespace - nil (empty user input) - collapse returns nil - trim returns nil - remove returns nil - chomp returns nil - -TTY::Prompt::Paginator#paginate - finds both start and end index for current selection - starts with default selection - ignores per_page when less items - paginates items matching per_page count - ignores per_page when equal items - doesn't accept invalid pagination - paginates items not matching per_page count - -TTY::Prompt#expand - sets quiet mode through DSL - expands help option and then defaults - expands default option - fails to expand due to wrong key length - fails to expand due to duplicate key - fails to expand due to reserve key - specifies options through DSL and executes value - expands chosen option with extra information - specifies options through DSL - changes default option - sets quiet mode - fails to expand due to lack of key attribute - informs about invalid input when automatically expanding hint - automatically expands hint - -TTY::Prompt::Question convert regexp - converts regex - -TTY::Prompt::Question convert to hash - converts answer to a hash of boolean values - converts answer to a hash of integer values - converts answer to a hash - -TTY::Prompt::Choices.new - creates choices collection +TTY::Prompt::Choice#== + is false with different key attribute + is false with non-choice object + is false with different name attribute + is false with different value attribute + is true with the same name and value attributes -Top 2 slowest examples (0.06179 seconds, 13.1% of total time): +Top 2 slowest examples (0.06206 seconds, 10.1% of total time): TTY::Prompt::Timer times out loop execution - 0.03155 seconds ./spec/unit/timer_spec.rb:4 + 0.03175 seconds ./spec/unit/timer_spec.rb:4 TTY::Prompt::Timer registers a tick event - 0.03023 seconds ./spec/unit/timer_spec.rb:15 + 0.03031 seconds ./spec/unit/timer_spec.rb:15 Top 2 slowest example groups: TTY::Prompt::Timer - 0.03106 seconds average (0.06212 seconds / 2 examples) ./spec/unit/timer_spec.rb:3 - TTY::Prompt::Question#modify - 0.00678 seconds average (0.03388 seconds / 5 examples) ./spec/unit/question/modify_spec.rb:3 + 0.03142 seconds average (0.06285 seconds / 2 examples) ./spec/unit/timer_spec.rb:3 + TTY::Prompt#subscribe + 0.00975 seconds average (0.00975 seconds / 1 example) ./spec/unit/subscribe_spec.rb:3 -Finished in 0.47263 seconds (files took 0.28631 seconds to load) +Finished in 0.61417 seconds (files took 0.30961 seconds to load) 494 examples, 0 failures -Randomized with seed 7253 +Randomized with seed 63163 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1679,12 +1715,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/2630170/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/2630170/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/3560438 and its subdirectories -I: Current time: Thu Jun 5 16:10:01 -12 2025 -I: pbuilder-time-stamp: 1749183001 +I: removing directory /srv/workspace/pbuilder/2630170 and its subdirectories +I: Current time: Sat May 4 11:47:46 +14 2024 +I: pbuilder-time-stamp: 1714772866