Diff of the two buildlogs: -- --- b1/build.log 2024-03-26 19:53:32.197790558 +0000 +++ b2/build.log 2024-03-26 19:55:43.264231774 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Mar 26 07:48:59 -12 2024 -I: pbuilder-time-stamp: 1711482539 +I: Current time: Wed Mar 27 09:53:49 +14 2024 +I: pbuilder-time-stamp: 1711482829 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/28309/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/21474/tmp/hooks/D01_modify_environment starting +debug: Running on virt32c. +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 Mar 26 19:54 /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/21474/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/21474/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='armhf' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=3 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='armhf' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="21" [3]="1" [4]="release" [5]="arm-unknown-linux-gnueabihf") + 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=armhf + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=4 ' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=arm + HOST_ARCH=armhf IFS=' ' - INVOCATION_ID='47ae7efc34a94cc8af09b51d752ae202' - 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='28309' - PS1='# ' - PS2='> ' + INVOCATION_ID=0548e89f856e4f67bee3456200adf3fd + 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=21474 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.HmcB3wDc/pbuilderrc_G8KO --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.HmcB3wDc/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.HmcB3wDc/pbuilderrc_iwrt --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.HmcB3wDc/b2 --logfile b2/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-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://10.0.0.15:3142/ I: uname -a - Linux virt64c 6.1.0-18-arm64 #1 SMP Debian 6.1.76-1 (2024-02-01) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-18-armmp-lpae #1 SMP Debian 6.1.76-1 (2024-02-01) armv7l GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 25 11:26 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/28309/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 24 11:24 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/21474/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 armhf ruby-tty-screen all 0.8.1-2 [8924 B] Get: 136 http://deb.debian.org/debian trixie/main armhf ruby-wisper all 2.0.1-2 [12.7 kB] Get: 137 http://deb.debian.org/debian trixie/main armhf ruby-tty-reader all 0.9.0-1 [18.1 kB] -Fetched 45.1 MB in 3s (13.8 MB/s) +Fetched 45.1 MB in 2s (29.4 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpython3.11-minimal:armhf. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19577 files and directories currently installed.) @@ -706,8 +738,8 @@ Setting up tzdata (2024a-1) ... Current default time zone: 'Etc/UTC' -Local time is now: Tue Mar 26 19:51:00 UTC 2024. -Universal Time is now: Tue Mar 26 19:51:00 UTC 2024. +Local time is now: Tue Mar 26 19:54:53 UTC 2024. +Universal Time is now: Tue Mar 26 19:54:53 UTC 2024. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-tty-color (0.6.0-1) ... @@ -832,7 +864,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/21474/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/21474/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 @@ -861,7 +897,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/d20240326-1643-t12v3/gemspec +/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20240327-26561-rq21cr/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' @@ -873,7 +909,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/d20240326-1643-t12v3/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/d20240327-26561-rq21cr/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 @@ -942,82 +978,106 @@ 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 7403 +Randomized with seed 2916 -TTY::Prompt#decorate - decorates with a proc - decorates string with named colors - doesn't decorate empty string - doesn't decorate when disabled - decorates with a callable object - doesn't decorate without additional arguments - -TTY::Prompt#suggest - suggests a single match for two characters - suggests with different text and indentation - suggests few matches - suggests a single match for one character - -TTY::Prompt#ok - prints text in green - changes color to cyan - prints multiple lines in green +TTY::Prompt::Result + checks value to be valid + checks value to be invalid -TTY::Prompt::Question::Validation#coerce - doesn't coerce symbols - coerces into regex - coerces lambda into proc - fails to coerce pattern into validation +TTY::Prompt#slider + sets choice value to proc and executes it + specifies ranges & step + changes all display symbols + formats via proc + mixes choices as values and via DSL and keeps ordering + specifies choices through DSL + changes all display symbols per instance + changes to always show help + doesn't allow values outside of range + specifies default value + specifies quiet mode through DSL + specifies choices through DSL + sets default choice by name + specifies range through DSL + sets default choice by index number + changes display colors + sets quiet mode + specifies choices instead of calculated range + changes to never show help -TTY::Prompt::Question convert string +TTY::Prompt confirmation + #no? 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 string - converts symbol - -TTY::Prompt::Question::Modifier#apply_to - combines letter case & whitespace modifications - combines whitespace & letter case modifications - doesn't apply modifiers - -TTY::Prompt::Question#required - doesn't require value to be present - requires value to be present with option - uses required in validation check - requires value to be present - -TTY::Prompt::Choices#find_by - finds a matching choice by :key key - finds a matching choice by :name key - finds no matching choice - finds a matching choice by :value key + changes default + warns about invalid entry when using defaults + customizes question through DSL + agrees with question + assumes default false + disagrees with question + defaults suffix and converter + #yes? + warns about invalid entry when using defaults + accepts regex conflicting characters as suffix + fails to infer default value from a word + customizes question through DSL + defaults suffix and converter + customizes question through options + changes default + defaults positive and negative + obeys quiet mode + disagrees with question + infers default value from a word + assumes default true + agrees with question -TTY::Prompt::Choice#== - is false with different key attribute - is true with the same name and value attributes - is false with different name attribute - is false with non-choice object - is false with different value attribute +TTY::Prompt::Question convert numbers + converts integer + fails to convert integer + converts float + fails to convert float TTY::Prompt::Question convert date fails to convert date converts date converts datetime -TTY::Prompt::Choices.new - creates choices collection +TTY::Prompt::Choices#pluck + plucks choice by key name -TTY::Prompt::Choices#each - iterates over collection +TTY::Prompt#ok + prints text in green + changes color to cyan + prints multiple lines in green -TTY::Prompt#new - sets input stream - sets prefix - sets output stream +TTY::Prompt::Paginator#paginate + paginates items matching per_page count + finds both start and end index for current selection + starts with default selection + ignores per_page when less items + paginates items not matching per_page count + doesn't accept invalid pagination + ignores per_page when equal items + +TTY::Prompt#expand + informs about invalid input when automatically expanding hint + expands help option and then defaults + changes default option + specifies options through DSL and executes value + fails to expand due to lack of key attribute + sets quiet mode through DSL + fails to expand due to wrong key length + fails to expand due to duplicate key + automatically expands hint + expands default option + fails to expand due to reserve key + expands chosen option with extra information + specifies options through DSL + sets quiet mode TTY::Prompt::SelectedChoices inserts choices by the index order @@ -1025,409 +1085,504 @@ inserts and deletes choices clears choices -TTY::Prompt - changes selected item color & marker +TTY::Utils + #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 " " as true + #deep_copy + copies "" + copies ["foo", {:bar=>"baz"}, :fum, 11] + +TTY::Prompt::Question#echo + asks with echo off + asks with echo on + +TTY::Prompt::Question::Modifier#whitespace + string with whitespaces + removes whitespace + trims whitespace + collapses text + chomps whitespace + nil (empty user input) + collapse returns nil + trim returns nil + chomp returns nil + remove returns nil + +TTY::Prompt#select + sets choice name & value through DSL + allows navigation using events without errors + sets quiet mode through DSL + verifies default index range sets prompt prefix - sets default options through hash syntax - changes help text and color + sets choice name through DSL + sets choice value to nil + verifies default index format + changes selected item color & marker + sets choices and single choice through DSL + sets choice name & value through DSL + configures quiet mode + doesn't paginate short selections changes to never show help - sets choice custom values - selects nothing when return pressed immediately - sets choice name and value through DSL - selects item when space pressed - sets prompt to quiet mode - sets default choices using names - selects item when space pressed but doesn't echo item if echo: false + raises when default choice doesn't match any choices changes to always show help - raises error for defaults out of range - sets choice value to nil through DSL - sets default options through DSL syntax - with :max - limits number of choices - disables Ctrl+a/Ctrl+r selection when :max option is specified + changes help text through DSL + raises when default choice matches disabled choice + sets choice value to proc and executes it + sets default option through hash syntax + sets choice name and value + selects default choice by name + changes help text + selects by default first option + with filter + doesn't exit when there are no matching entries + filters and chooses the first of multiple matching entries + filters based on alphanumeric and punctuation characters + filters and chooses a uniquely matching entry, ignoring case + doesn't allow mixing enumeration and filter + navigates left and right with filtered items + cancels a selection + with :disabled choice + doesn't show disabled choice when filtering choices + prevents setting default to disabled choice + sets active to be first non-disabled choice + omits disabled choice when number key is pressed + omits disabled choice when navigating menu when paginated - navigates evenly paged output with right arrow until end of selection - reverts selection accross pages with Ctrl+r navigates left and right + paginates long selections through DSL + navigates pages left/right with disabled items + combines up/down navigation with left/right + navigates evenly paged output with right arrow until end of selection + navigates pages up/down with disabled items paginates long selections navigates unevenly paged output with right arrow until the end of selection - combines up/down navigation with left/right - doesn't paginate short selections - paginates long selections through DSL - selects all paged choices with ctrl+a paginates choices as hash object - with filter - doesn't lose the selection when switching between filters - with :disabled - fails when default item is also disabled - adjusts active index to match first non-disabled choice - omits disabled choice when nagivating menu - omits disabled choice when number key is pressed - selects all non-disabled choices when ctrl+a is pressed - with :min - requires number of choices - with :cycle + with :cycle option + cycles around disabled items + cycles pages left/right with disabled items + cycles around when configured to do so cycles choices using left/right arrows doesn't cycle by default cycles filtered choices left and right - cycles when configured to do so -TTY::Prompt::Choices#<< - adds choice to collection - -TTY::Prompt#subscribe - subscribes to key events only for the current prompt +TTY::Prompt::Question#multiline + changes help text + reads no lines + sets quiet mode + reads multiple lines with empty lines + uses defualt when no input TTY::Prompt::Question convert file converts to file -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 - doesn't have conversion - contains conversion - fetch - retrieves uppcase named converter - retrieves converter from the registry - fails to retrieve conversion +TTY::Prompt::Choices#find_by + finds a matching choice by :name key + finds a matching choice by :value key + finds no matching choice + finds a matching choice by :key key -TTY::Prompt#mask - masks output by default - masks with unicode character - masks output with custom character - validates input - ignores mask if echo is off +TTY::Prompt::Question::Validation#call + validates nil input + validates with a proc + fails validation when not maching pattern + validates with custom name + validates successfully when the value matches pattern -TTY::Prompt#slider - doesn't allow values outside of range - mixes choices as values and via DSL and keeps ordering - specifies range through DSL - specifies quiet mode through DSL - changes to always show help - changes display colors - specifies choices through DSL - formats via proc - specifies choices instead of calculated range - changes all display symbols +TTY::Prompt::Choices.new + creates choices collection + +TTY::Prompt::Choice#== + is false with different value attribute + is false with non-choice object + is true with the same name and value attributes + is false with different name attribute + is false with different key attribute + +TTY::Prompt::Question::Modifier#apply_to + doesn't apply modifiers + combines letter case & whitespace modifications + combines whitespace & letter case modifications + +TTY::Prompt#say + prints an empty message + without color + prints message without ansi + with tab or space + prints + with new line + prints a message with newline + prints a message with newline within text and blank space + prints a message without newline + prints a message with newline within text + prints a message with implicit newline + with color + prints message with ansi color without newline + prints message with ansi color + +TTY::Prompt::Question::Validation#coerce + fails to coerce pattern into validation + coerces into regex + doesn't coerce symbols + coerces lambda into proc + +TTY::Prompt + selects option through DSL + changes global symbols + selects option through DSL with key and value + sets quiet mode through DSL + doesn't cycle around by default + displays error with unrecognized input + sets choice value to nil through DSL + shows pages matching input + changes colors for selection, hint and error + raises when default choice name is not found + switches through pages with tab key + doesn't paginate short selections sets quiet mode - changes all display symbols per instance - specifies default value - specifies choices through DSL - specifies ranges & step - changes to never show help - sets choice value to proc and executes it - sets default choice by index number - sets default choice by name + selects default choice by name + raises when default name matches a disabled choice + selects default option when return pressed immediately + cycles around when configured to do so + paginates long selections + raises configuration error when default is higher than number of choices + selects option by index from the list + changes global symbols through DSL + 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::Choice#from + creates choice from an arbitrary object that responds to to_s call + creates choice from an array with a hash without value key + creates choice from a hash with name, value and key keys + skips Choice instance + creates choice from a string + creates choice from an array with a hash with name and value keys + creates choice from a hash with a nil value + creates disabled choice + creates choice from a symbol + creates choice from an array with key-value pair + creates choice from an array with name and false value + creates choice from an array with name and a value + creates choice from array with name and nil value + creates choice from a hash with a value + creates choice from an array with name only and defaults value + +TTY::Prompt#error + displays message with option + displays one message + changes default red color to cyan + displays many messages + +TTY::Prompt::Choices#each + iterates over collection TTY::Prompt::Question#keypress - timeouts when no key provided - interrupts input asks for a keypress with echo off - asks for a keypress with echo on + interrupts input receives line feed with echo on + asks for a keypress with echo on + timeouts when no key provided + +TTY::Prompt::Question convert path + converts pathname + +TTY::Prompt::Question convert string + converts string + converts symbol + +TTY::Prompt::Question#validate + validates input with proc + validates input with regex + understands custom validation like :email + deprecates :validation option + provides custom error message for wrong input + provides default error message for wrong input + +TTY::Prompt#inspect + inspects instance attributes + +TTY::Prompt::Statement.new + displays prompt message in color + forces newline after the prompt message + +TTY::Prompt::Question convert char + reads single character + +TTY::Prompt#decorate + decorates string with named colors + doesn't decorate when disabled + decorates with a callable object + doesn't decorate without additional arguments + doesn't decorate empty string + decorates with a proc + +TTY::Prompt#new + sets prefix + sets input stream + sets output stream + +TTY::Prompt#suggest + suggests with different text and indentation + suggests a single match for two characters + suggests few matches + suggests a single match for one character + +TTY::Prompt::Question convert range + converts with valid range + fails to convert to range + +TTY::Prompt::Evaluator + checks chained validation objects + checks chained validation procs + +TTY::Prompt#ask + asks an empty question and returns nil if EOF is sent to stdin + asks an empty question with prepopulated value + asks a question with block + changes question color + asks question with prepopulated value + overwrites global settings + asks question + asks a question with a prefix [?] + sets quiet mode through DSL + asks an empty question + sets quiet mode + permits empty default parameter + permits nil default parameter + +TTY::Prompt::Question convert bool + converts negative boolean + handles default values + handles default values + fails to convert boolean + converts positive boolean + converts single positive boolean + +TTY::Prompt#subscribe + subscribes to key events only for the current prompt + +TTY::Prompt::Question#modify + preserves answer for unkown modification + collapses whitespace + converts to upper case + strips and collapses whitespace + trims whitespace + +TTY::Prompt#warn + displays message with option + displays many messages + displays one message + changes default yellow color to cyan + +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#mask + validates input + masks output by default + ignores mask if echo is off + masks output with custom character + masks with unicode character TTY::Prompt::Converters - :char - converts "input" to "i" - converts "" to nil - :string - converts "input\n" to "input" - converts "" to "" - :time - converts "unknown" to "undefined" - converts "11:12:13" to 2024-03-26 11:12:13 -1200 + :hash/:map + 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" 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: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 b:2 a:3" to {:a=>["1", "3"], :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.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" to {:a=>"1", :b=>"2"} + converts "" to {} + 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} + :regexp + converts "\\d+" to /\d+/ + converts "unknown" to /unknown/ :date - converts "2020/05/21" to # converts "unknown" to "undefined" - :integer + converts "2020/05/21" to # + :float converts "unknown" to "undefined" - converts "12" to 12 - :regexp - converts "unknown" to /unknown/ - converts "\\d+" to /\d+/ - :path - converts "/foo/bar/baz" to # + converts "12.3" to 12.3 :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 "-5--1" to -5..-1 - converts "1...10" to 1...10 converts "1.0" to 1.0..1.0 - converts "1 , 10" to 1..10 - converts "unknown" to "undefined" converts "a . . . z" to "a"..."z" - converts "1.2-5.0" to 1.2..5.0 - converts "a..z" to "a".."z" converts "1 . . . 10" to 1...10 converts 1..10 to 1..10 - converts "1..10" to 1..10 - :boolean - converts "t" to true - converts "f" to false - converts "no" to false - converts "FALSE" to false - converts "true" to true - converts "1" to true - converts "YES" to true + converts "1.2-5.0" to 1.2..5.0 converts "unknown" to "undefined" - converts "y" to true - converts "0" to false - :hash/:map - 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", "c=3"] to {:a=>"1", :b=>"2", :c=>"3"} - converts "" to {} - converts "a=1" to {:a=>"1"} - converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} - converts "a:t b:f c:t" to {:a=>true, :b=>false, :c=>true} - converts "a:1 b:2 c:3" to {:a=>1.0, :b=>2.0, :c=>3.0} - 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" 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: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 "1...10" to 1...10 + :uri + converts "http://foobar.com" to # + :string + converts "" to "" + converts "input\n" to "input" + :integer + converts "unknown" to "undefined" + converts "12" to 12 :datetime converts "unknown" to "undefined" converts "2020/05/21 11:12:13" to # - :uri - converts "http://foobar.com" to # :array/:list converts "1,2,3" to [1.0, 2.0, 3.0] + converts "1,2,3" to [1.0, 2.0, 3.0] + converts ",b,c" to ["b", "c"] converts "a,b,c" to [:a, :b, :c] converts "t,t,f" to [true, true, false] - converts ",b,c" to ["b", "c"] converts "a , b , c" to ["a", "b", "c"] - converts ["a", "b", "c"] to ["a", "b", "c"] converts "a,b,c" to [:a, :b, :c] + converts "a, b\\, c" to ["a", "b, c"] + converts ["a", "b", "c"] to ["a", "b", "c"] converts ",," to [] converts "1,2,3" to [1, 2, 3] - converts "a, , c" to ["a", "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 "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 "a, , c" to ["a", "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 "1,2,3" to [1, 2, 3] - :float - converts "12.3" to 12.3 + converts "a,b,c" to ["a", "b", "c"] + :boolean + converts "true" to true + converts "FALSE" to false + converts "0" to false + converts "t" to true + converts "1" to true + converts "y" to true + converts "YES" to true + converts "f" to false + converts "no" to false converts "unknown" to "undefined" + :time + converts "unknown" to "undefined" + converts "11:12:13" to 2024-03-27 11:12:13 +1400 + :path + converts "/foo/bar/baz" to # + :char + converts "" to nil + converts "input" to "i" -TTY::Prompt::Question#in - reads letters within range - reads number within digit range - provides default error message when wrong input - reads number within string range - overwrites default error message when wrong input - reads range from option - -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#select - sets choices and single choice through DSL - selects default choice by name - verifies default index format - sets default option through hash syntax - sets choice name & value through DSL - raises when default choice matches disabled choice - doesn't paginate short selections - sets quiet mode through DSL - configures quiet mode - changes to never show help - changes help text through DSL - allows navigation using events without errors - sets choice name and value - sets choice value to proc and executes it - selects by default first option - sets choice value to nil - verifies default index range - sets choice name & value through DSL - changes help text - sets choice name through DSL - raises when default choice doesn't match any choices +TTY::Prompt + sets default options through hash syntax + selects item when space pressed changes to always show help + sets choice name and value through DSL + sets default choices using names + changes to never show help + sets default options through DSL syntax + changes help text and color + sets choice value to nil through DSL sets prompt prefix + sets choice custom values + selects item when space pressed but doesn't echo item if echo: false + selects nothing when return pressed immediately + raises error for defaults out of range + sets prompt to quiet mode changes selected item color & marker - with :cycle option - cycles pages left/right with disabled items - cycles around disabled items + with :min + requires number of choices + with :disabled + omits disabled choice when number key is pressed + adjusts active index to match first non-disabled choice + omits disabled choice when nagivating menu + selects all non-disabled choices when ctrl+a is pressed + fails when default item is also disabled + with :max + disables Ctrl+a/Ctrl+r selection when :max option is specified + limits number of choices + with :cycle + doesn't cycle by default cycles choices using left/right arrows cycles filtered choices left and right - cycles around when configured to do so - doesn't cycle by default - with :disabled choice - sets active to be first non-disabled choice - doesn't show disabled choice when filtering choices - omits disabled choice when number key is pressed - prevents setting default to disabled choice - omits disabled choice when navigating menu + cycles when configured to do so with filter - cancels a selection - filters based on alphanumeric and punctuation characters - doesn't exit when there are no matching entries - navigates left and right with filtered items - filters and chooses a uniquely matching entry, ignoring case - doesn't allow mixing enumeration and filter - filters and chooses the first of multiple matching entries + doesn't lose the selection when switching between filters when paginated - navigates evenly paged output with right arrow until end of selection - navigates pages up/down with disabled items - combines up/down navigation with left/right - paginates long selections navigates left and right + combines up/down navigation with left/right + selects all paged choices with ctrl+a + reverts selection accross pages with Ctrl+r + doesn't paginate short selections + navigates evenly paged output with right arrow until end of selection navigates unevenly paged output with right arrow until the end of selection + paginates long selections paginates long selections through DSL - navigates pages left/right with disabled items paginates choices as hash object -TTY::Prompt#warn - changes default yellow color to cyan - displays many messages - displays one message - displays message with option - -TTY::Prompt::Question::Modifier#letter_case - nil (empty user input) - capitalize returns nil - down returns nil - up returns nil - string - capitalizes text - changes to lower case - changes to uppercase - -TTY::Prompt::Question#default - uses default value - uses default value in block - -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 bool - handles default values - handles default values - fails to convert boolean - converts positive boolean - converts negative boolean - converts single positive boolean - -TTY::Prompt::Question::Validation#call - validates nil input - validates with custom name - validates successfully when the value matches pattern - fails validation when not maching pattern - validates with a proc - -TTY::Prompt::Question#multiline - reads no lines - changes help text - sets quiet mode - uses defualt when no input - reads multiple lines with empty lines - -TTY::Prompt::Question convert range - fails to convert to range - converts with valid range - TTY::Prompt::Distance.distance - with one non empty + when end similar is expected to eql 3 - when similar - is expected to eql 1 - when contain similar - is expected to eql 2 when prefix is expected to eql 3 when unicode is expected to eql 1 - when similar - is expected to eql 0 - when similar + when contain similar is expected to eql 2 when empty is expected to eql 0 - when end similar - is expected to eql 3 when single char is expected to eql 2 + when similar + is expected to eql 2 + when similar + is expected to eql 0 + with one non empty + is expected to eql 3 + when similar + is expected to eql 1 when nil is expected to eql 0 -TTY::Prompt::Question convert to array - converts answer to an array - converts answer to an array of integers - converts answer to an array of booleans - -TTY::Prompt::Choice#from - creates disabled choice - creates choice from an array with name only and defaults value - skips Choice instance - 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 an arbitrary object that responds to to_s call - creates choice from a hash with name, value and key keys - creates choice from array with name and nil 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 array with name and a value - creates choice from a symbol - creates choice from an array with key-value pair - creates choice from a hash with a value - creates choice from a string - -TTY::Prompt::Choices#pluck - plucks choice by key name - -TTY::Prompt::Question#validate - provides default error message for wrong input - deprecates :validation option - understands custom validation like :email - provides custom error message for wrong input - validates input with proc - validates input with regex +TTY::Prompt::Timer + registers a tick event + times out loop execution TTY::Prompt::Question - fails validation check - passes validation check - fails validation check with custom message - passes range check - fails validation check with inlined custom message - fails required check with custom message passes convert check - fails range check - fails range check + fails required check with custom message fails convert check - fails required check + fails range check + fails validation check with custom message fails convert check with custom message + fails validation check with inlined custom message + fails required check + passes validation check + passes range check + fails validation check passes required check - -TTY::Prompt#error - displays message with option - changes default red color to cyan - displays many messages - displays one message + fails range check TTY::Prompt#collect collects more than one answer when receiving multiple answers - 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 block collects as a list if values method used in chain with multiple keys collects into the appropriate keys @@ -1435,214 +1590,95 @@ TTY::Prompt::Question#default sets quiet mode -TTY::Prompt::Question convert char - reads single character +TTY::Prompt::Question convert to array + converts answer to an array + converts answer to an array of booleans + converts answer to an array of integers + +TTY::Prompt::Question::Modifier#letter_case + nil (empty user input) + down returns nil + up returns nil + capitalize returns nil + string + changes to uppercase + capitalizes text + changes to lower case + +TTY::Prompt::Choices#enabled + returns only choices which aren't disabled TTY::Prompt::BlockPaginator#paginate - paginates items matching per_page count 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 equal items ignores per_page when less items - -TTY::Prompt::Question#echo - asks with echo on - asks with echo off - -TTY::Prompt#ask - asks an empty question with prepopulated value - sets quiet mode - permits empty default parameter - overwrites global settings - changes question color - asks question - asks an empty question and returns nil if EOF is sent to stdin - asks question with prepopulated value - asks a question with block - asks an empty question - sets quiet mode through DSL - asks a question with a prefix [?] - permits nil default parameter - -TTY::Prompt::Paginator#paginate - paginates items matching per_page count - doesn't accept invalid pagination ignores per_page when equal items - paginates items not matching per_page count - finds both start and end index for current selection starts with default selection - ignores per_page when less items - -TTY::Prompt::Statement.new - forces newline after the prompt message - displays prompt message in color + paginates items matching per_page count + finds both start and end index for current selection -TTY::Prompt::Question convert path - converts pathname +TTY::Prompt::Question#default + uses default value in block + uses default value TTY::Prompt::Question convert custom converts response with custom conversion -TTY::Prompt#inspect - inspects instance attributes - -TTY::Prompt::Timer - registers a tick event - times out loop execution - -TTY::Prompt::Question::Modifier#whitespace - nil (empty user input) - chomp returns nil - trim returns nil - remove returns nil - collapse returns nil - string with whitespaces - trims whitespace - chomps whitespace - collapses text - removes whitespace - -TTY::Prompt::Evaluator - checks chained validation procs - checks chained validation objects - -TTY::Prompt::Result - checks value to be valid - checks value to be invalid - -TTY::Prompt::Choices#enabled - returns only choices which aren't disabled - -TTY::Prompt#expand - changes default option - automatically expands hint - fails to expand due to duplicate key - sets quiet mode - fails to expand due to wrong key length - sets quiet mode through DSL - fails to expand due to lack of key attribute - expands default option - informs about invalid input when automatically expanding hint - expands help option and then defaults - specifies options through DSL and executes value - expands chosen option with extra information - fails to expand due to reserve key - specifies options through DSL - -TTY::Prompt#say - prints an empty message - without color - prints message without ansi - with new line - prints a message with newline within text - prints a message without newline - prints a message with newline within text and blank space - prints a message with newline - prints a message with implicit newline - with tab or space - prints - with color - prints message with ansi color - prints message with ansi color without newline - -TTY::Prompt - changes global symbols - doesn't cycle around by default - changes colors for selection, hint and error - doesn't paginate short selections - selects option through DSL - selects option through DSL with key and value - raises when default choice name is not found - sets choice value to nil through DSL - switches through pages with tab key - sets quiet mode through DSL - selects default option when return pressed immediately - changes global symbols through DSL - raises configuration error when default is higher than number of choices - selects default choice by name - cycles around when configured to do so - shows pages matching input - sets quiet mode - paginates long selections - selects option by index from the list - raises when default name matches a disabled choice - displays error with unrecognized input - with :disabled choice - omits disabled choice when navigating with numbers - finds first non-disabled index - doesn't allow to choose disabled choice and defaults - fails when active item is also disabled +TTY::Prompt::Question convert regexp + converts regex -TTY::Prompt::Question convert numbers - fails to convert float - converts integer - fails to convert integer - converts float +TTY::Prompt::Question#required + doesn't require value to be present + uses required in validation check + requires value to be present with option + requires value to be present -TTY::Utils - #deep_copy - copies ["foo", {:bar=>"baz"}, :fum, 11] - copies "" - #blank? - detects blank of "" as true - detects blank of :foo as false - detects blank of " " as true - detects blank of "foo" as false - detects blank of "\n\t " as true - detects blank of nil as true +TTY::Prompt::Choices#<< + adds choice to collection -TTY::Prompt::Question convert regexp - converts regex +TTY::Prompt::Question#initialize + is expected to eq true + is expected to eq TTY::Prompt::Question::UndefinedSetting + is expected to eq [] -TTY::Prompt confirmation - #no? - assumes default false - disagrees with question - customizes question through DSL - agrees with question - warns about invalid entry when using defaults - changes default - defaults suffix and converter - #yes? - defaults positive and negative - defaults suffix and converter - changes default - assumes default true - infers default value from a word - fails to infer default value from a word - customizes question through DSL - agrees with question - obeys quiet mode - disagrees with question - accepts regex conflicting characters as suffix - customizes question through options - warns about invalid entry when using defaults +TTY::Prompt::Question#in + reads letters within range + overwrites default error message when wrong input + reads range from option + reads number within digit range + reads number within string range + provides default error message when wrong input -TTY::Prompt::Question#modify - strips and collapses whitespace - collapses whitespace - converts to upper case - trims whitespace - preserves answer for unkown modification +TTY::Prompt::ConverterRegistry + contain + checks conversion with object type + contains conversion + doesn't have conversion + fetch + retrieves uppcase named converter + fails to retrieve conversion + retrieves converter from the registry + register + fails to register conversion + registers new conversion under multiple names + registers new conversion under single name -Top 2 slowest examples (0.23558 seconds, 3.7% of total time): - TTY::Prompt#select with filter navigates left and right with filtered items - 0.12969 seconds ./spec/unit/select_spec.rb:968 - TTY::Prompt shows pages matching input - 0.10588 seconds ./spec/unit/enum_select_spec.rb:350 +Top 2 slowest examples (0.08112 seconds, 4.3% of total time): + TTY::Prompt#subscribe subscribes to key events only for the current prompt + 0.04828 seconds ./spec/unit/subscribe_spec.rb:4 + TTY::Prompt::Timer times out loop execution + 0.03284 seconds ./spec/unit/timer_spec.rb:4 Top 2 slowest example groups: - TTY::Prompt#collect - 0.09094 seconds average (0.45469 seconds / 5 examples) ./spec/unit/collect_spec.rb:3 TTY::Prompt#subscribe - 0.06413 seconds average (0.06413 seconds / 1 example) ./spec/unit/subscribe_spec.rb:3 + 0.05858 seconds average (0.05858 seconds / 1 example) ./spec/unit/subscribe_spec.rb:3 + TTY::Prompt::Timer + 0.0333 seconds average (0.0666 seconds / 2 examples) ./spec/unit/timer_spec.rb:3 -Finished in 6.44 seconds (files took 4.06 seconds to load) +Finished in 1.87 seconds (files took 1.12 seconds to load) 494 examples, 0 failures -Randomized with seed 7403 +Randomized with seed 2916 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1675,12 +1711,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/21474/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/21474/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/28309 and its subdirectories -I: Current time: Tue Mar 26 07:53:27 -12 2024 -I: pbuilder-time-stamp: 1711482807 +I: removing directory /srv/workspace/pbuilder/21474 and its subdirectories +I: Current time: Wed Mar 27 09:55:38 +14 2024 +I: pbuilder-time-stamp: 1711482938