Diff of the two buildlogs: -- --- b1/build.log 2024-12-30 01:32:00.519642230 +0000 +++ b2/build.log 2024-12-30 01:34:03.474047881 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Sun Dec 29 13:29:59 -12 2024 -I: pbuilder-time-stamp: 1735522199 +I: Current time: Mon Dec 30 15:32:09 +14 2024 +I: pbuilder-time-stamp: 1735522329 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -22,52 +22,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/3076/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/32609/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 Dec 30 01:32 /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/32609/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/32609/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='unstable' - 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=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='4eeef21fc1da4e5398d10e1a6a042c62' - 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='3076' - PS1='# ' - PS2='> ' + INVOCATION_ID=eb9dd62ba1304c89bc3d233c6882a9b3 + 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=32609 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.lmTJKp1p/pbuilderrc_D2C7 --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.lmTJKp1p/b1 --logfile b1/build.log ruby-tty-prompt_0.23.1-1.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.lmTJKp1p/pbuilderrc_JhbS --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.lmTJKp1p/b2 --logfile b2/build.log ruby-tty-prompt_0.23.1-1.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 virt32c 6.1.0-28-armmp-lpae #1 SMP Debian 6.1.119-1 (2024-11-22) armv7l GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-arm64 #1 SMP Debian 6.1.119-1 (2024-11-22) 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/3076/tmp/hooks/D02_print_environment finished +I: user script /srv/workspace/pbuilder/32609/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -264,7 +296,7 @@ Get: 149 http://deb.debian.org/debian unstable/main armhf ruby-tty-screen all 0.8.1-2 [8924 B] Get: 150 http://deb.debian.org/debian unstable/main armhf ruby-wisper all 2.0.1-2 [12.7 kB] Get: 151 http://deb.debian.org/debian unstable/main armhf ruby-tty-reader all 0.9.0-1 [18.1 kB] -Fetched 45.4 MB in 3s (17.4 MB/s) +Fetched 45.4 MB in 6s (7869 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 ... 19573 files and directories currently installed.) @@ -770,8 +802,8 @@ Setting up tzdata (2024b-4) ... Current default time zone: 'Etc/UTC' -Local time is now: Mon Dec 30 01:31:07 UTC 2024. -Universal Time is now: Mon Dec 30 01:31:07 UTC 2024. +Local time is now: Mon Dec 30 01:33:17 UTC 2024. +Universal Time is now: Mon Dec 30 01:33:17 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-tty-color (0.6.0-1) ... @@ -905,7 +937,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/32609/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/32609/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 @@ -939,7 +975,7 @@ │ ruby-tty-prompt: Installing files and building extensions for ruby3.1 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241229-8203-tn1os9/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241230-6556-zo9pre/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' @@ -951,7 +987,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/d20241229-8203-tn1os9/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/d20241230-6556-zo9pre/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 @@ -1020,707 +1056,707 @@ 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/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 37676 +Randomized with seed 31178 -TTY::Prompt::Paginator#paginate +TTY::Prompt::Timer + registers a tick event + times out loop execution + +TTY::Prompt::Question convert path +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. + converts pathname + +TTY::Prompt::Question convert date + converts datetime + fails to convert date + converts date + +TTY::Prompt::Question convert string + converts string + converts symbol + +TTY::Prompt::Choice#== + is false with different key attribute + is false with different value attribute + is false with non-choice object + is false with different name attribute + is true with the same name and value attributes + +TTY::Prompt::Question::Modifier#letter_case + string + changes to uppercase + changes to lower case + capitalizes text + nil (empty user input) + down returns nil + capitalize returns nil + up returns nil + +TTY::Prompt::Question#required + requires value to be present with option + requires value to be present + uses required in validation check + doesn't require value to be present + +TTY::Prompt#new + sets prefix + sets input stream + sets output stream + +TTY::Prompt::BlockPaginator#paginate + ignores per_page when equal items doesn't accept invalid pagination + finds both start and end index for current selection + paginates items not matching per_page count starts with default selection ignores per_page when less items paginates items matching per_page count - ignores per_page when equal items - paginates items not matching per_page count - finds both start and end index for current selection -TTY::Prompt::Question::Validation#call - validates with custom name - fails validation when not maching pattern - validates successfully when the value matches pattern - validates nil input - validates with a proc - -TTY::Prompt::Result - checks value to be invalid - checks value to be valid - -TTY::Prompt#suggest - suggests a single match for two characters - suggests with different text and indentation - suggests a single match for one character - suggests few matches - -TTY::Prompt#select - selects default choice by name - sets choice name & value through DSL - verifies default index range - selects by default first option - doesn't paginate short selections - changes help text - sets default option through hash syntax +TTY::Prompt + sets prompt to quiet mode + sets default options through DSL syntax + selects nothing when return pressed immediately changes to never show help - verifies default index format - configures quiet mode + sets choice name and value through DSL + sets default options through hash syntax + raises error for defaults out of range + selects item when space pressed + sets prompt prefix changes to always show help - sets choice name and value - changes help text through DSL + selects item when space pressed but doesn't echo item if echo: false changes selected item color & marker - sets choice name through DSL - sets prompt prefix - sets choice value to proc and executes it - allows navigation using events without errors - sets choice name & value through DSL - sets quiet mode through DSL - sets choices and single choice through DSL - raises when default choice doesn't match any choices - sets choice value to nil - raises when default choice matches disabled choice + sets choice value to nil through DSL + sets default choices using names + sets choice custom values + changes help text and color with filter - cancels a selection - filters and chooses the first of multiple matching entries - filters based on alphanumeric and punctuation characters - navigates left and right with filtered items - doesn't allow mixing enumeration and filter - filters and chooses a uniquely matching entry, ignoring case - doesn't exit when there are no matching entries - with :cycle option - cycles around when configured to do so - cycles around disabled items - cycles pages left/right with disabled items - doesn't cycle by default + doesn't lose the selection when switching between filters + with :cycle cycles filtered choices left and right cycles choices using left/right arrows + doesn't cycle by default + cycles when configured to do so + with :max + limits number of choices + disables Ctrl+a/Ctrl+r selection when :max option is specified when paginated - paginates long selections through DSL - navigates pages up/down with disabled items navigates left and right - combines up/down navigation with left/right - navigates pages left/right with disabled items paginates choices as hash object paginates long selections - navigates unevenly paged output with right arrow until the end of selection navigates evenly paged output with right arrow until end of selection - with :disabled choice - doesn't show disabled choice when filtering choices - prevents setting default to disabled choice - omits disabled choice when navigating menu + reverts selection accross pages with Ctrl+r + doesn't paginate short selections + selects all paged choices with ctrl+a + paginates long selections through DSL + navigates unevenly paged output with right arrow until the end of selection + combines up/down navigation with left/right + with :min + requires number of choices + with :disabled + selects all non-disabled choices when ctrl+a is pressed omits disabled choice when number key is pressed - sets active to be first non-disabled choice - -TTY::Prompt#decorate - decorates with a proc - doesn't decorate when disabled - decorates with a callable object - doesn't decorate without additional arguments - decorates string with named colors - doesn't decorate empty string - -TTY::Prompt#slider - sets choice value to proc and executes it - changes all display symbols per instance - specifies choices through DSL - formats via proc - changes to never show help - changes all display symbols - changes to always show help - mixes choices as values and via DSL and keeps ordering - specifies choices instead of calculated range - sets default choice by name - sets quiet mode - sets default choice by index number - changes display colors - specifies quiet mode through DSL - doesn't allow values outside of range - specifies default value - specifies choices through DSL - specifies range through DSL - specifies ranges & step - -TTY::Prompt::Choices#<< - adds choice to collection - -TTY::Prompt::Choices.new - creates choices collection - -TTY::Prompt::Question convert bool -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. - handles default values - converts negative boolean - handles default values - converts positive boolean - fails to convert boolean - converts single positive boolean - -TTY::Prompt#warn - changes default yellow color to cyan - displays many messages - displays one message - displays message with option - -TTY::Prompt::SelectedChoices - clears choices - inserts and deletes choices - inserts choices by the index order - initializes with selected choices - -TTY::Prompt::Question#default - sets quiet mode - -TTY::Prompt::Question::Modifier#whitespace - nil (empty user input) - chomp returns nil - remove returns nil - collapse returns nil - trim returns nil - string with whitespaces - chomps whitespace - collapses text - trims whitespace - removes whitespace - -TTY::Prompt#say - prints an empty message - without color - prints message without ansi - with tab or space - prints - with color - prints message with ansi color - prints message with ansi color without newline - with new line - prints a message with newline - prints a message with newline within text - prints a message without newline - prints a message with implicit newline - prints a message with newline within text and blank space + omits disabled choice when nagivating menu + fails when default item is also disabled + adjusts active index to match first non-disabled choice 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 - overwrites default error message when wrong input + provides default error message when wrong input + reads letters within range TTY::Prompt#collect collects more than one answer when receiving multiple answers - collects as a list if values method used in chain collects as a list if values method used in chain with block overrides a non-array key on multiple answers + collects as a list if values method used in chain with multiple keys collects into the appropriate keys -TTY::Prompt::BlockPaginator#paginate - ignores per_page when equal items - doesn't accept invalid pagination - finds both start and end index for current selection - paginates items not matching per_page count - paginates items matching per_page count - starts with default selection - ignores per_page when less items - -TTY::Prompt::Timer - registers a tick event - times out loop execution - -TTY::Prompt::Question::Modifier#letter_case - string - changes to uppercase - changes to lower case - capitalizes text - nil (empty user input) - down returns nil - capitalize returns nil - up returns nil - -TTY::Prompt::Question convert custom - converts response with custom conversion +TTY::Prompt::Question::Validation#call + validates nil input + validates successfully when the value matches pattern + validates with custom name + fails validation when not maching pattern + validates with a proc TTY::Prompt::Question convert file converts to file -TTY::Prompt#expand - fails to expand due to reserve key - fails to expand due to wrong key length - expands default option - fails to expand due to duplicate key - specifies options through DSL - expands chosen option with extra information - changes default option - fails to expand due to lack of key attribute - sets quiet mode through DSL - automatically expands hint - specifies options through DSL and executes value - informs about invalid input when automatically expanding hint - expands help option and then defaults - sets quiet mode - -TTY::Prompt::Question#echo - asks with echo on - asks with echo off +TTY::Prompt::Choices#pluck + plucks choice by key name -TTY::Prompt::Question#validate - understands custom validation like :email - provides custom error message for wrong input - deprecates :validation option - provides default error message for wrong input - validates input with proc - validates input with regex +TTY::Prompt::Question::Modifier#apply_to + combines letter case & whitespace modifications + combines whitespace & letter case modifications + doesn't apply modifiers -TTY::Prompt::Question convert to hash - converts answer to a hash - converts answer to a hash of integer values - converts answer to a hash of boolean values +TTY::Prompt::Choices#find_by + finds a matching choice by :name key + finds no matching choice + finds a matching choice by :value key + finds a matching choice by :key key -TTY::Prompt::Question - passes convert check - fails validation check with inlined custom message - passes validation check - fails convert check with custom message - fails validation check with custom message - fails validation check - passes required check - passes range check - fails range check - fails required check with custom message - fails convert check - fails required check - fails range check +TTY::Prompt::Question convert numbers + fails to convert integer + converts integer + fails to convert float + converts float TTY::Utils - #deep_copy - copies ["foo", {:bar=>"baz"}, :fum, 11] - copies "" #blank? + detects blank of nil as true detects blank of :foo as false detects blank of "\n\t " as true detects blank of "foo" as false - detects blank of " " as true - detects blank of nil as true detects blank of "" as true + detects blank of " " as true + #deep_copy + copies ["foo", {:bar=>"baz"}, :fum, 11] + copies "" -TTY::Prompt::Choices#pluck - plucks choice by key name +TTY::Prompt::Question::Validation#coerce + coerces lambda into proc + fails to coerce pattern into validation + doesn't coerce symbols + coerces into regex -TTY::Prompt::Choices#find_by - finds a matching choice by :value key - finds a matching choice by :name key - finds no matching choice - finds a matching choice by :key key +TTY::Prompt::Question convert to hash + converts answer to a hash of boolean values + converts answer to a hash + converts answer to a hash of integer values + +TTY::Prompt::Question convert char + reads single character + +TTY::Prompt::Choices#each + iterates over collection + +TTY::Prompt::Result + checks value to be invalid + checks value to be valid + +TTY::Prompt#decorate + doesn't decorate without additional arguments + doesn't decorate empty string + decorates string with named colors + decorates with a proc + doesn't decorate when disabled + decorates with a callable object + +TTY::Prompt#slider + sets default choice by name + specifies choices through DSL + specifies default value + specifies choices through DSL + changes all display symbols per instance + sets quiet mode + sets choice value to proc and executes it + changes display colors + specifies choices instead of calculated range + sets default choice by index number + specifies ranges & step + mixes choices as values and via DSL and keeps ordering + specifies quiet mode through DSL + doesn't allow values outside of range + formats via proc + changes all display symbols + specifies range through DSL + changes to never show help + changes to always show help TTY::Prompt::ConverterRegistry - register - registers new conversion under multiple names - fails to register conversion - registers new conversion under single name contain + checks conversion with object type contains conversion doesn't have conversion - checks conversion with object type + register + fails to register conversion + registers new conversion under single name + registers new conversion under multiple names fetch retrieves converter from the registry - fails to retrieve conversion retrieves uppcase named converter + fails to retrieve conversion -TTY::Prompt::Question::Validation#coerce - coerces into regex - fails to coerce pattern into validation - coerces lambda into proc - doesn't coerce symbols - -TTY::Prompt - raises configuration error when default is higher than number of choices +TTY::Prompt#select + sets choice value to proc and executes it + sets choice name through DSL + verifies default index range + sets quiet mode through DSL + sets prompt prefix + sets choice name & value through DSL + configures quiet mode + sets default option through hash syntax + raises when default choice matches disabled choice selects default choice by name - cycles around when configured to do so - changes colors for selection, hint and error - sets choice value to nil through DSL - selects option through DSL + changes to never show help + sets choice name and value doesn't paginate short selections - switches through pages with tab key - changes global symbols through DSL - shows pages matching input - displays error with unrecognized input - raises when default choice name is not found - paginates long selections - raises when default name matches a disabled choice - sets quiet mode through DSL - sets quiet mode - changes global symbols - doesn't cycle around by default - selects option through DSL with key and value - selects option by index from the list - selects default option when return pressed immediately + sets choice value to nil + verifies default index format + changes help text + changes selected item color & marker + changes help text through DSL + sets choices and single choice through DSL + sets choice name & value through DSL + raises when default choice doesn't match any choices + selects by default first option + allows navigation using events without errors + changes to always show help + when paginated + navigates unevenly paged output with right arrow until the end of selection + paginates long selections + navigates pages up/down with disabled items + navigates pages left/right with disabled items + paginates choices as hash object + combines up/down navigation with left/right + navigates left and right + navigates evenly paged output with right arrow until end of selection + paginates long selections through DSL + with filter + filters based on alphanumeric and punctuation characters + 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 + navigates left and right with filtered items + cancels a selection + filters and chooses the first of multiple matching entries + with :cycle option + cycles choices using left/right arrows + doesn't cycle by default + cycles around when configured to do so + cycles around disabled items + cycles filtered choices left and right + cycles pages left/right with disabled items with :disabled choice - fails when active item is also disabled - finds first non-disabled index - doesn't allow to choose disabled choice and defaults - omits disabled choice when navigating with numbers + omits disabled choice when number key is pressed + prevents setting default to disabled choice + omits disabled choice when navigating menu + sets active to be first non-disabled choice + doesn't show disabled choice when filtering choices TTY::Prompt::Converters - :uri - converts "http://foobar.com" to # - :float - converts "unknown" to "undefined" - converts "12.3" to 12.3 - :datetime - converts "2020/05/21 11:12:13" to # - converts "unknown" to "undefined" - :date - converts "2020/05/21" to # - converts "unknown" to "undefined" :boolean + converts "t" to true + converts "YES" to true converts "0" to false converts "FALSE" to false - converts "no" to false - converts "YES" to true converts "unknown" to "undefined" - converts "true" to true - converts "1" to true converts "y" to true converts "f" to false - converts "t" to true + converts "1" to true + converts "true" to true + converts "no" to false + :date + converts "unknown" to "undefined" + converts "2020/05/21" to # + :string + converts "input\n" to "input" + converts "" to "" :time + converts "11:12:13" to 2024-12-30 11:12:13 +1400 + converts "unknown" to "undefined" + :char + converts "input" to "i" + converts "" to nil + :datetime + converts "2020/05/21 11:12:13" to # + converts "unknown" to "undefined" + :float + converts "unknown" to "undefined" + converts "12.3" to 12.3 + :range + converts "unknown" to "undefined" + converts "a..z" to "a".."z" + converts "1 , 10" to 1..10 + converts "1 . . . 10" to 1...10 + converts "1..10" to 1..10 + converts "-5--1" to -5..-1 + converts "a . . . z" to "a"..."z" + converts 1..10 to 1..10 + converts "1.2-5.0" to 1.2..5.0 + converts "1" to 1..1 + converts "1...10" to 1...10 + converts "1-10" to 1..10 + converts "1.0" to 1.0..1.0 + :uri + converts "http://foobar.com" to # + :path + converts "/foo/bar/baz" to # + :integer + converts "12" to 12 converts "unknown" to "undefined" - converts "11:12:13" to 2024-12-29 11:12:13 -1200 + :regexp + converts "unknown" to /unknown/ + converts "\\d+" to /\d+/ :array/:list - converts "1,2,3" to [1, 2, 3] - converts "a,b,c" to [:a, :b, :c] converts ",," to [] + converts "t,t,f" to [true, true, false] + 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.0, 2.0, 3.0] + converts "a, , c" to ["a", "c"] + converts "t,t,f" to [true, true, false] 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 "1,2,3" to [1, 2, 3] converts "a,b,c" to ["a", "b", "c"] 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 "1,2,3" to [1, 2, 3] - 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 "t,t,f" to [true, true, false] - converts "a , b , c" to ["a", "b", "c"] - converts ",b,c" to ["b", "c"] - converts "a, , c" to ["a", "c"] converts ["a", "b", "c"] to ["a", "b", "c"] - :regexp - converts "\\d+" to /\d+/ - converts "unknown" to /unknown/ - :path - converts "/foo/bar/baz" to # - :range - converts "1.0" to 1.0..1.0 - converts "1 , 10" to 1..10 - converts "a..z" to "a".."z" - converts "1-10" to 1..10 - 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 "a . . . z" to "a"..."z" - converts "1.2-5.0" to 1.2..5.0 - converts "1 . . . 10" to 1...10 - converts "1" to 1..1 - converts "unknown" to "undefined" + converts "1,2,3" to [1, 2, 3] :hash/:map - converts "a:1 b:2 a:3" to {:a=>["1", "3"], :b=>"2"} - converts "a=1" to {:a=>"1"} - converts "a:1 b:2 c:3" to {"a"=>1, "b"=>2, "c"=>3} - converts "" to {} - converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} + 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: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=&b=2" to {:a=>"", :b=>"2"} + 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=1" to {:a=>"1"} + 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:t b:f c:t" to {:a=>true, :b=>false, :c=>true} 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:1", "b:2", "c:3"] to {:a=>"1", :b=>"2", :c=>"3"} + converts "" to {} 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:t b:f c:t" to {:a=>true, :b=>false, :c=>true} - converts "a:t b:f c:t" to {:a=>:t, :b=>:f, :c=>:t} - 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 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 c:3" to {:a=>1.0, :b=>2.0, :c=>3.0} - :string - converts "input\n" to "input" - converts "" to "" - :integer - converts "unknown" to "undefined" - converts "12" to 12 - :char - converts "" to nil - converts "input" to "i" + converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} -TTY::Prompt#error - displays message with option - displays many messages - changes default red color to cyan - displays one message +TTY::Prompt#say + prints an empty message + without color + prints message without ansi + with tab or space + prints + with color + prints message with ansi color without newline + prints message with ansi color + with new line + prints a message with newline within text and blank space + prints a message without newline + prints a message with newline + prints a message with newline within text + prints a message with implicit newline -TTY::Prompt::Question convert date - fails to convert date - converts date - converts datetime +TTY::Prompt#subscribe + subscribes to key events only for the current prompt -TTY::Prompt#new - sets prefix - sets input stream - sets output stream +TTY::Prompt#ask + sets quiet mode + asks a question with a prefix [?] + asks an empty question + asks an empty question with prepopulated value + asks question with prepopulated value + permits nil default parameter + asks an empty question and returns nil if EOF is sent to stdin + sets quiet mode through DSL + asks question + permits empty default parameter + changes question color + overwrites global settings + asks a question with block TTY::Prompt::Question convert to array - converts answer to an array of booleans converts answer to an array converts answer to an array of integers + converts answer to an array of booleans -TTY::Prompt::Choices#each - iterates over collection +TTY::Prompt#warn + displays message with option + displays one message + displays many messages + changes default yellow color to cyan -TTY::Prompt::Question#modify - preserves answer for unkown modification - trims whitespace - collapses whitespace - strips and collapses whitespace - converts to upper case +TTY::Prompt::Question#default + uses default value + uses default value in block -TTY::Prompt::Choice#== - is false with different key attribute - is false with different name attribute - is false with different value attribute - is false with non-choice object - is true with the same name and value attributes +TTY::Prompt#suggest + suggests a single match for one character + suggests with different text and indentation + suggests few matches + suggests a single match for two characters + +TTY::Prompt#ok + changes color to cyan + prints text in green + prints multiple lines in green + +TTY::Prompt::Paginator#paginate + ignores per_page when less items + starts with default selection + paginates items not matching per_page count + ignores per_page when equal items + paginates items matching per_page count + doesn't accept invalid pagination + finds both start and end index for current selection TTY::Prompt::Question convert regexp converts regex -TTY::Prompt#inspect - inspects instance attributes +TTY::Prompt + sets quiet mode through DSL + selects default choice by name + changes global symbols through DSL + shows pages matching input + changes global symbols + doesn't paginate short selections + paginates long selections + switches through pages with tab key + doesn't cycle around by default + selects option through DSL + raises when default name matches a disabled choice + raises configuration error when default is higher than number of choices + selects option by index from the list + sets choice value to nil through DSL + selects default option when return pressed immediately + raises when default choice name is not found + selects option through DSL with key and value + changes colors for selection, hint and error + cycles around when configured to do so + displays error with unrecognized input + sets quiet mode + with :disabled choice + doesn't allow to choose disabled choice and defaults + omits disabled choice when navigating with numbers + fails when active item is also disabled + finds first non-disabled index -TTY::Prompt::Question#keypress - timeouts when no key provided - asks for a keypress with echo on - asks for a keypress with echo off - interrupts input - receives line feed with echo on +TTY::Prompt::Question#initialize + is expected to eq [] + is expected to eq true + is expected to eq TTY::Prompt::Question::UndefinedSetting -TTY::Prompt#subscribe - subscribes to key events only for the current prompt +TTY::Prompt::SelectedChoices + initializes with selected choices + clears choices + inserts choices by the index order + inserts and deletes choices -TTY::Prompt::Question#multiline +TTY::Prompt::Question#echo + asks with echo off + asks with echo on + +TTY::Prompt::Question#default sets quiet mode - reads no lines - reads multiple lines with empty lines - uses defualt when no input - changes help text -TTY::Prompt::Question convert numbers - converts float - converts integer - fails to convert integer - fails to convert float +TTY::Prompt#expand + fails to expand due to reserve key + fails to expand due to wrong key length + expands chosen option with extra information + specifies options through DSL and executes value + informs about invalid input when automatically expanding hint + expands help option and then defaults + sets quiet mode through DSL + fails to expand due to duplicate key + automatically expands hint + expands default option + specifies options through DSL + fails to expand due to lack of key attribute + changes default option + sets quiet mode -TTY::Prompt::Question convert char - reads single character +TTY::Prompt confirmation + #no? + assumes default false + warns about invalid entry when using defaults + disagrees with question + customizes question through DSL + defaults suffix and converter + agrees with question + changes default + #yes? + customizes question through DSL + changes default + fails to infer default value from a word + customizes question through options + warns about invalid entry when using defaults + defaults suffix and converter + disagrees with question + obeys quiet mode + infers default value from a word + agrees with question + assumes default true + accepts regex conflicting characters as suffix + defaults positive and negative -TTY::Prompt::Statement.new - displays prompt message in color - forces newline after the prompt message +TTY::Prompt::Choices#enabled + returns only choices which aren't disabled TTY::Prompt::Distance.distance - when end similar + when prefix is expected to eql 3 when contain similar is expected to eql 2 - when prefix - is expected to eql 3 when single char is expected to eql 2 when similar is expected to eql 0 - when unicode - is expected to eql 1 - when similar - is expected to eql 1 + when nil + is expected to eql 0 when similar is expected to eql 2 when empty is expected to eql 0 + when unicode + is expected to eql 1 + when end similar + is expected to eql 3 + when similar + is expected to eql 1 with one non empty is expected to eql 3 - when nil - is expected to eql 0 - -TTY::Prompt#ask - sets quiet mode - asks an empty question with prepopulated value - permits nil default parameter - changes question color - asks question with prepopulated value - overwrites global settings - sets quiet mode through DSL - asks a question with a prefix [?] - asks question - asks a question with block - asks an empty question and returns nil if EOF is sent to stdin - asks an empty question - permits empty default parameter -TTY::Prompt confirmation - #yes? - obeys quiet mode - agrees with question - customizes question through options - changes default - accepts regex conflicting characters as suffix - customizes question through DSL - infers default value from a word - defaults suffix and converter - warns about invalid entry when using defaults - defaults positive and negative - fails to infer default value from a word - assumes default true - disagrees with question - #no? - customizes question through DSL - defaults suffix and converter - changes default - agrees with question - warns about invalid entry when using defaults - disagrees with question - assumes default false - -TTY::Prompt - sets prompt to quiet mode - changes selected item color & marker - raises error for defaults out of range - changes help text and color - sets choice custom values - selects item when space pressed but doesn't echo item if echo: false - sets choice value to nil through DSL - sets default options through hash syntax - changes to never show help - selects item when space pressed - sets default options through DSL syntax - sets default choices using names - sets choice name and value through DSL - selects nothing when return pressed immediately - changes to always show help - sets prompt prefix - with :max - limits number of choices - disables Ctrl+a/Ctrl+r selection when :max option is specified - with :cycle - cycles when configured to do so - cycles filtered choices left and right - cycles choices using left/right arrows - doesn't cycle by default - with :min - requires number of choices - with :disabled - fails when default item is also disabled - adjusts active index to match first non-disabled choice - omits disabled choice when number key is pressed - selects all non-disabled choices when ctrl+a is pressed - omits disabled choice when nagivating menu - when paginated - paginates choices as hash object - navigates unevenly paged output with right arrow until the end of selection - selects all paged choices with ctrl+a - paginates long selections through DSL - navigates evenly paged output with right arrow until end of selection - doesn't paginate short selections - reverts selection accross pages with Ctrl+r - paginates long selections - combines up/down navigation with left/right - navigates left and right - with filter - doesn't lose the selection when switching between filters - -TTY::Prompt::Question convert path - converts pathname +TTY::Prompt#inspect + inspects instance attributes -TTY::Prompt#mask - masks with unicode character - masks output by default - validates input - ignores mask if echo is off - masks output with custom character +TTY::Prompt::Statement.new + forces newline after the prompt message + displays prompt message in color -TTY::Prompt::Question#initialize - is expected to eq true - is expected to eq [] - is expected to eq TTY::Prompt::Question::UndefinedSetting +TTY::Prompt::Question convert custom + converts response with custom conversion -TTY::Prompt#ok - prints multiple lines in green - prints text in green - changes color to cyan +TTY::Prompt::Choices#<< + adds choice to collection -TTY::Prompt::Question convert string - converts symbol - converts string +TTY::Prompt::Question convert range + converts with valid range + fails to convert to range TTY::Prompt::Choice#from + creates choice from a hash with name, value and key keys creates choice from an array with key-value pair - creates choice from a hash with a nil 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 only and defaults value + creates choice from an array with name and false value + creates choice from a symbol + skips Choice instance creates choice from an array with a hash with name and value keys - creates choice from an array with a hash without value key - creates choice from a string + creates choice from an array with name and a value creates choice from a hash with a value - skips Choice instance - creates choice from an array with name and false value creates disabled choice creates choice from an arbitrary object that responds to to_s call - creates choice from an array with name and a value - creates choice from a symbol + creates choice from an array with a hash without value key + creates choice from an array with name only and defaults value + creates choice from a hash with a nil value + creates choice from a string -TTY::Prompt::Question#required - requires value to be present - uses required in validation check - requires value to be present with option - doesn't require value to be present +TTY::Prompt::Evaluator + checks chained validation procs + checks chained validation objects -TTY::Prompt::Question convert range - fails to convert to range - converts with valid range +TTY::Prompt::Question convert bool + handles default values + handles default values + converts single positive boolean + converts positive boolean + converts negative boolean + fails to convert boolean -TTY::Prompt::Question#default - uses default value - uses default value in block +TTY::Prompt::Question#keypress + receives line feed with echo on + asks for a keypress with echo on + asks for a keypress with echo off + interrupts input + timeouts when no key provided -TTY::Prompt::Choices#enabled - returns only choices which aren't disabled +TTY::Prompt::Question::Modifier#whitespace + nil (empty user input) + collapse returns nil + remove returns nil + chomp returns nil + trim returns nil + string with whitespaces + collapses text + removes whitespace + chomps whitespace + trims whitespace -TTY::Prompt::Question::Modifier#apply_to - combines whitespace & letter case modifications - combines letter case & whitespace modifications - doesn't apply modifiers +TTY::Prompt::Question + fails range check + fails required check with custom message + passes required check + fails validation check with custom message + passes range check + passes convert check + fails convert check with custom message + fails convert check + fails range check + fails required check + passes validation check + fails validation check with inlined custom message + fails validation check -TTY::Prompt::Evaluator - checks chained validation objects - checks chained validation procs +TTY::Prompt::Question#validate + understands custom validation like :email + validates input with proc + validates input with regex + deprecates :validation option + provides custom error message for wrong input + provides default error message for wrong input + +TTY::Prompt#error + displays message with option + displays many messages + displays one message + changes default red color to cyan + +TTY::Prompt::Question#modify + preserves answer for unkown modification + converts to upper case + strips and collapses whitespace + collapses whitespace + trims whitespace + +TTY::Prompt#mask + ignores mask if echo is off + masks output with custom character + masks output by default + masks with unicode character + validates input + +TTY::Prompt::Question#multiline + reads no lines + uses defualt when no input + sets quiet mode + changes help text + reads multiple lines with empty lines + +TTY::Prompt::Choices.new + creates choices collection -Top 2 slowest examples (0.06421 seconds, 3.1% of total time): - TTY::Prompt::Timer times out loop execution - 0.03308 seconds ./spec/unit/timer_spec.rb:4 +Top 2 slowest examples (0.10948 seconds, 7.4% of total time): + TTY::Prompt::Question#validate understands custom validation like :email + 0.07599 seconds ./spec/unit/question/validate_spec.rb:36 TTY::Prompt::Timer registers a tick event - 0.03113 seconds ./spec/unit/timer_spec.rb:15 + 0.03348 seconds ./spec/unit/timer_spec.rb:15 Top 2 slowest example groups: TTY::Prompt::Timer - 0.03293 seconds average (0.06586 seconds / 2 examples) ./spec/unit/timer_spec.rb:3 - TTY::Prompt#subscribe - 0.0283 seconds average (0.0283 seconds / 1 example) ./spec/unit/subscribe_spec.rb:3 + 0.03385 seconds average (0.0677 seconds / 2 examples) ./spec/unit/timer_spec.rb:3 + TTY::Prompt::Question#validate + 0.02274 seconds average (0.13643 seconds / 6 examples) ./spec/unit/question/validate_spec.rb:3 -Finished in 2.05 seconds (files took 1.04 seconds to load) +Finished in 1.48 seconds (files took 0.68905 seconds to load) 494 examples, 0 failures -Randomized with seed 37676 +Randomized with seed 31178 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1753,12 +1789,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/32609/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/32609/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/3076 and its subdirectories -I: Current time: Sun Dec 29 13:31:56 -12 2024 -I: pbuilder-time-stamp: 1735522316 +I: removing directory /srv/workspace/pbuilder/32609 and its subdirectories +I: Current time: Mon Dec 30 15:33:59 +14 2024 +I: pbuilder-time-stamp: 1735522439