Diff of the two buildlogs: -- --- b1/build.log 2025-01-28 07:18:01.039262603 +0000 +++ b2/build.log 2025-01-28 07:19:10.056158001 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Mar 2 01:40:24 -12 2026 -I: pbuilder-time-stamp: 1772458824 +I: Current time: Tue Jan 28 21:18:04 +14 2025 +I: pbuilder-time-stamp: 1738048684 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,54 +25,86 @@ dpkg-source: info: applying 0001-drop-bundler.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/88346/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/57877/tmp/hooks/D01_modify_environment starting +debug: Running on ionos2-i386. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Jan 28 07:18 /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/57877/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/57877/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='i386' - DEBIAN_FRONTEND='noninteractive' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=22 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='i386' + 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]="i686-pc-linux-gnu") + 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=i386 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=10 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=i686 + HOST_ARCH=i386 IFS=' ' - INVOCATION_ID='8ea81be1a075432aa2b2221cae0b813b' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - LD_LIBRARY_PATH='/usr/lib/libeatmydata' - LD_PRELOAD='libeatmydata.so' - 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='88346' - PS1='# ' - PS2='> ' + INVOCATION_ID=c5035bed07ec436b9b75ee406bcfb0bf + LANG=C + LANGUAGE=de_CH:de + LC_ALL=C + LD_LIBRARY_PATH=/usr/lib/libeatmydata + LD_PRELOAD=libeatmydata.so + MACHTYPE=i686-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=57877 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.3YpOkDUH/pbuilderrc_R1z5 --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.3YpOkDUH/b1 --logfile b1/build.log ruby-tty-reader_0.9.0-1.dsc' - SUDO_GID='112' - SUDO_UID='107' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152:3128' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.3YpOkDUH/pbuilderrc_UuH1 --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.3YpOkDUH/b2 --logfile b2/build.log ruby-tty-reader_0.9.0-1.dsc' + SUDO_GID=112 + SUDO_UID=107 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos6-i386 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-30-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.124-1 (2025-01-12) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/88346/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/57877/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -266,7 +298,7 @@ Get: 144 http://deb.debian.org/debian unstable/main i386 ruby-tty-cursor all 0.7.1-2 [8076 B] Get: 145 http://deb.debian.org/debian unstable/main i386 ruby-tty-screen all 0.8.1-2 [8924 B] Get: 146 http://deb.debian.org/debian unstable/main i386 ruby-wisper all 2.0.1-2 [12.7 kB] -Fetched 56.6 MB in 0s (125 MB/s) +Fetched 56.6 MB in 1s (66.4 MB/s) Preconfiguring packages ... Selecting previously unselected package libpython3.13-minimal:i386. (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 ... 19829 files and directories currently installed.) @@ -752,8 +784,8 @@ Setting up tzdata (2025a-1) ... Current default time zone: 'Etc/UTC' -Local time is now: Mon Mar 2 13:40:47 UTC 2026. -Universal Time is now: Mon Mar 2 13:40:47 UTC 2026. +Local time is now: Tue Jan 28 07:18:41 UTC 2025. +Universal Time is now: Tue Jan 28 07:18:41 UTC 2025. Run 'dpkg-reconfigure tzdata' if you wish to change it. Setting up ruby-minitest (5.22.3-1) ... @@ -885,7 +917,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/ruby-tty-reader-0.9.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../ruby-tty-reader_0.9.0-1_source.changes +I: user script /srv/workspace/pbuilder/57877/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/57877/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/ruby-tty-reader-0.9.0/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../ruby-tty-reader_0.9.0-1_source.changes dpkg-buildpackage: info: source package ruby-tty-reader dpkg-buildpackage: info: source version 0.9.0-1 dpkg-buildpackage: info: source distribution unstable @@ -919,7 +955,7 @@ │ ruby-tty-reader: Installing files and building extensions for ruby3.3 │ └──────────────────────────────────────────────────────────────────────────────┘ -/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20260302-95673-5hgzdx/gemspec +/usr/bin/ruby3.3 -S gem build --config-file /dev/null --verbose /tmp/d20250128-9754-7dmwry/gemspec WARNING: open-ended dependency on rake (>= 0, development) is not recommended use a bounded requirement, such as "~> x.y" WARNING: open-ended dependency on rspec (>= 3.0, development) is not recommended @@ -930,7 +966,7 @@ Name: tty-reader Version: 0.9.0 File: tty-reader-0.9.0.gem -/usr/bin/ruby3.3 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-reader/usr/share/rubygems-integration/all /tmp/d20260302-95673-5hgzdx/tty-reader-0.9.0.gem +/usr/bin/ruby3.3 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-tty-reader/usr/share/rubygems-integration/all /tmp/d20250128-9754-7dmwry/tty-reader-0.9.0.gem /build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all/gems/tty-reader-0.9.0/lib/tty-reader.rb /build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all/gems/tty-reader-0.9.0/lib/tty/reader.rb /build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all/gems/tty-reader-0.9.0/lib/tty/reader/console.rb @@ -973,155 +1009,155 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-reader-0.9.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/i386-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/i386-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.3 -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 44487 +Randomized with seed 19419 + +TTY::Reader#read_keypress + reads single key press + reads multibyte key press + when Ctrl+C pressed + sends interrupt signal when :signal option is chosen + evaluates custom handler when proc object is provided + defaults to raising InputInterrupt + exits with 130 code when :exit option is chosen + skips handler when handler is nil TTY::Reader::History - has no lines - excludes lines matching pattern - gets line based on index - doesn't navigate through empty buffer + iterates over lines adds items to history without overflowing - navigates through history buffer with cycling - presents string representation - retrieves current line allows duplicates + clears all lines + returns enumerator when iterating without a block + prevents duplicates + gets line based on index + excludes lines matching pattern + retrieves current line + has no lines defaults maximum size navigates through history buffer without cycling - iterates over lines - returns enumerator when iterating without a block excludes empty lines by default - clears all lines - allows to cycle through non-empty buffer - prevents duplicates + navigates through history buffer with cycling checks if navigation is possible + doesn't navigate through empty buffer + presents string representation + allows to cycle through non-empty buffer -TTY::Reader#publish_keypress_event - publishes :keyescape events - publishes :keypress events - publishes :keynum event - publishes :keyreturn event - subscribes to ctrl+X type of event event - publishes :keyup for read_keypress - publishes :keydown event for read_keypress - subscribes to multiple events - -TTY::Reader#read_line - displays a prompt before input - buffers non-empty input and restores it back when history has no more lines - restores empty line when history has no more lines - echoes characters back - masks characters - doesn't echo characters back - reads multibyte line - displays custom input with a prompt - deletes characters when backspace pressed - supports multiline prompts - -TTY::Reader#read_keypress - reads single key press - reads multibyte key press - when Ctrl+C pressed - sends interrupt signal when :signal option is chosen - exits with 130 code when :exit option is chosen - defaults to raising InputInterrupt - evaluates custom handler when proc object is provided - skips handler when handler is nil +TTY::Reader#read_multiline + skips empty lines + sets initial input line + reads lines with echo off + reads a line and terminates on Ctrl+d + reads multibyte lines + reads few lines + reads no lines + reads a line and terminates on Ctrl+z + reads lines with a prompt + reads and yiels every line -TTY::Reader::Line - replaces current line with new preserving cursor - inserts chars in empty string - removes char before current cursor position - inserts char at end of the line - inserts char inside the line - moves cursor left and right - inserts characters with #insert call - inserts characters inside a line - provides access to the prompt - inserts char at start of the line - inserts char outside of the line size - deletes char under current cursor position +TTY::Reader#with_history_disabled + leaves the line alone on :up + leaves the line alone on :down TTY::Reader::KeyEvent#from - parses \\[D as left key - parses \OP as f1 key - parses \\[\[E as f5 key - parses \\[\[D as f4 key - parses \\[14\~ as f4 key - parses \\[6\~ as page_down key - parses \\[4\~ as end key - parses \\[A as up key + parses \\[3\~ as delete key + parses \\[F as end key + parses \\[7\~ as home key + parses \\[C as right key + parses \\[2\~ as insert key + parses \\[\[B as f2 key + parses \OS as f4 key + parses \\[H as home key parses ctrl-a to ctrl-z inputs + parses \\[6\~ as page_down key parses \\[20\~ as f9 key - parses number char - parses \\[11\~ as f1 key - parses \\[18\~ as f7 key - parses \\[E as clear key exposes line value - parses \\[\[B as f2 key - parses \\[19\~ as f8 key + parses \\[18\~ as f7 key + parses uknown key + parses \\[D as left key parses backspace - parses \\[12\~ as f2 key parses \\[24\~ as f12 key - parses \\[C as right key - parses \\[17\~ as f6 key - parses \\[23\~ as f11 key - parses \\[1\~ as home key - parses \OR as f3 key + parses \\[19\~ as f8 key + parses \\[\[E as f5 key + parses \\[14\~ as f4 key + parses \\[\[C as f3 key + parses number char parses lowercase char - parses \\[15\~ as f5 key - parses \\[3\~ as delete key - parses \\[21\~ as f10 key + parses \\[E as clear key + parses \\[4\~ as end key + parses \\[12\~ as f2 key parses \OQ as f2 key - parses \\[2\~ as insert key + parses \\[17\~ as f6 key + parses \\[13\~ as f3 key + parses \\[5\~ as page_up key + parses \OP as f1 key + parses \\[\[D as f4 key parses uppercase char + parses \\[23\~ as f11 key parses \OF as end key - parses \\[7\~ as home key - parses \\[F as end key - parses \OS as f4 key - parses \\[H as home key - parses uknown key - parses \\[\[A as f1 key - parses \\[5\~ as page_up key + parses \\[21\~ as f10 key parses \\[B as down key - parses \\[\[C as f3 key - parses \\[13\~ as f3 key - -TTY::Reader#with_history_disabled - leaves the line alone on :down - leaves the line alone on :up + parses \\[\[A as f1 key + parses \OR as f3 key + parses \\[15\~ as f5 key + parses \\[11\~ as f1 key + parses \\[1\~ as home key + parses \\[A as up key TTY::Reader#subscribe subscribes to receive events subscribes to listen to events only in a block -TTY::Reader#read_multiline - skips empty lines - reads lines with a prompt - reads few lines - reads a line and terminates on Ctrl+d - reads lines with echo off - sets initial input line - reads a line and terminates on Ctrl+z - reads and yiels every line - reads multibyte lines - reads no lines +TTY::Reader#read_line + supports multiline prompts + masks characters + reads multibyte line + buffers non-empty input and restores it back when history has no more lines + displays a prompt before input + displays custom input with a prompt + deletes characters when backspace pressed + doesn't echo characters back + restores empty line when history has no more lines + echoes characters back + +TTY::Reader::Line + inserts chars in empty string + removes char before current cursor position + inserts characters inside a line + inserts char outside of the line size + deletes char under current cursor position + inserts char at start of the line + inserts char inside the line + provides access to the prompt + replaces current line with new preserving cursor + inserts characters with #insert call + moves cursor left and right + inserts char at end of the line -Top 2 slowest examples (0.07688 seconds, 45.9% of total time): - TTY::Reader#publish_keypress_event publishes :keyescape events - 0.07035 seconds ./spec/unit/publish_keypress_event_spec.rb:23 - TTY::Reader#read_line supports multiline prompts - 0.00653 seconds ./spec/unit/read_line_spec.rb:97 +TTY::Reader#publish_keypress_event + publishes :keynum event + publishes :keypress events + publishes :keyup for read_keypress + subscribes to multiple events + publishes :keyescape events + subscribes to ctrl+X type of event event + publishes :keydown event for read_keypress + publishes :keyreturn event + +Top 2 slowest examples (0.19924 seconds, 51.4% of total time): + TTY::Reader#read_multiline skips empty lines + 0.18523 seconds ./spec/unit/read_multiline_spec.rb:38 + TTY::Reader#read_keypress when Ctrl+C pressed sends interrupt signal when :signal option is chosen + 0.01401 seconds ./spec/unit/read_keypress_spec.rb:39 Top 2 slowest example groups: - TTY::Reader#publish_keypress_event - 0.00932 seconds average (0.07454 seconds / 8 examples) ./spec/unit/publish_keypress_event_spec.rb:3 TTY::Reader#read_multiline - 0.00266 seconds average (0.02662 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 + 0.02414 seconds average (0.24143 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 + TTY::Reader#subscribe + 0.00377 seconds average (0.00753 seconds / 2 examples) ./spec/unit/subscribe_spec.rb:3 -Finished in 0.16746 seconds (files took 0.16805 seconds to load) +Finished in 0.38791 seconds (files took 0.26958 seconds to load) 112 examples, 0 failures -Randomized with seed 44487 +Randomized with seed 19419 /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner @@ -1138,161 +1174,161 @@ RUBYLIB=. GEM_PATH=/build/reproducible-path/ruby-tty-reader-0.9.0/debian/ruby-tty-reader/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-tty-reader-0.9.0/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/i386-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/i386-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation -Randomized with seed 2109 +Randomized with seed 41164 -TTY::Reader#with_history_disabled +TTY::Reader::Line + inserts char at start of the line + inserts char outside of the line size + inserts char at end of the line + moves cursor left and right + inserts char inside the line + removes char before current cursor position + deletes char under current cursor position + inserts chars in empty string + inserts characters with #insert call + replaces current line with new preserving cursor 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. - leaves the line alone on :down - leaves the line alone on :up + provides access to the prompt + inserts characters inside a line + +TTY::Reader::History + has no lines + gets line based on index + navigates through history buffer without cycling + excludes lines matching pattern + excludes empty lines by default + returns enumerator when iterating without a block + presents string representation + iterates over lines + allows to cycle through non-empty buffer + allows duplicates + clears all lines + retrieves current line + prevents duplicates + doesn't navigate through empty buffer + defaults maximum size + checks if navigation is possible + adds items to history without overflowing + navigates through history buffer with cycling TTY::Reader#publish_keypress_event - publishes :keyescape events - publishes :keypress events - publishes :keyup for read_keypress publishes :keynum event - publishes :keydown event for read_keypress + publishes :keypress events + publishes :keyescape events subscribes to multiple events - publishes :keyreturn event + publishes :keydown event for read_keypress + publishes :keyup for read_keypress subscribes to ctrl+X type of event event - -TTY::Reader#subscribe - subscribes to receive events - subscribes to listen to events only in a block - -TTY::Reader#read_multiline - reads a line and terminates on Ctrl+z - reads multibyte lines - reads lines with a prompt - sets initial input line - skips empty lines - reads few lines - reads and yiels every line - reads no lines - reads a line and terminates on Ctrl+d - reads lines with echo off + publishes :keyreturn event TTY::Reader#read_keypress reads single key press reads multibyte key press when Ctrl+C pressed - evaluates custom handler when proc object is provided sends interrupt signal when :signal option is chosen + exits with 130 code when :exit option is chosen + evaluates custom handler when proc object is provided defaults to raising InputInterrupt skips handler when handler is nil - exits with 130 code when :exit option is chosen -TTY::Reader#read_line - displays custom input with a prompt - supports multiline prompts - restores empty line when history has no more lines - masks characters - reads multibyte line - displays a prompt before input - echoes characters back - doesn't echo characters back - deletes characters when backspace pressed - buffers non-empty input and restores it back when history has no more lines - -TTY::Reader::Line - provides access to the prompt - inserts characters inside a line - removes char before current cursor position - replaces current line with new preserving cursor - inserts char at start of the line - moves cursor left and right - deletes char under current cursor position - inserts characters with #insert call - inserts char inside the line - inserts char at end of the line - inserts char outside of the line size - inserts chars in empty string - -TTY::Reader::History - prevents duplicates - retrieves current line - allows to cycle through non-empty buffer - adds items to history without overflowing - excludes lines matching pattern - checks if navigation is possible - allows duplicates - excludes empty lines by default - navigates through history buffer with cycling - has no lines - clears all lines - presents string representation - navigates through history buffer without cycling - returns enumerator when iterating without a block - doesn't navigate through empty buffer - iterates over lines - defaults maximum size - gets line based on index +TTY::Reader#with_history_disabled + leaves the line alone on :down + leaves the line alone on :up TTY::Reader::KeyEvent#from - parses \OF as end key - parses \\[21\~ as f10 key parses uknown key - parses \\[12\~ as f2 key - parses \\[D as left key - parses \\[4\~ as end key + parses \\[18\~ as f7 key parses \\[11\~ as f1 key - parses \\[14\~ as f4 key - parses \\[F as end key - exposes line value - parses \\[\[D as f4 key - parses backspace - parses \\[B as down key - parses \\[13\~ as f3 key - parses \\[15\~ as f5 key - parses \OR as f3 key - parses \\[3\~ as delete key - parses \\[5\~ as page_up key - parses \\[\[A as f1 key - parses \\[20\~ as f9 key parses \OQ as f2 key - parses \OS as f4 key - parses \\[2\~ as insert key - parses \\[7\~ as home key - parses uppercase char - parses \\[6\~ as page_down key - parses lowercase char - parses \\[1\~ as home key - parses \\[\[E as f5 key - parses \\[19\~ as f8 key - parses \\[\[B as f2 key - parses \\[24\~ as f12 key - parses \\[18\~ as f7 key parses \\[C as right key + parses \\[B as down key + parses \OP as f1 key + parses \\[\[E as f5 key + parses \\[\[D as f4 key + exposes line value + parses lowercase char + parses uppercase char + parses \\[\[A as f1 key parses number char + parses \\[17\~ as f6 key + parses \\[H as home key + parses \\[5\~ as page_up key parses \\[\[C as f3 key - parses \\[A as up key - parses \OP as f1 key + parses \\[F as end key + parses \\[2\~ as insert key parses ctrl-a to ctrl-z inputs - parses \\[E as clear key + parses \\[A as up key + parses \\[19\~ as f8 key + parses \\[24\~ as f12 key + parses \\[3\~ as delete key + parses \OF as end key + parses \\[15\~ as f5 key + parses \OR as f3 key + parses \\[12\~ as f2 key + parses \\[7\~ as home key + parses \\[21\~ as f10 key + parses \OS as f4 key + parses backspace parses \\[23\~ as f11 key - parses \\[H as home key - parses \\[17\~ as f6 key + parses \\[\[B as f2 key + parses \\[4\~ as end key + parses \\[D as left key + parses \\[20\~ as f9 key + parses \\[E as clear key + parses \\[14\~ as f4 key + parses \\[1\~ as home key + parses \\[13\~ as f3 key + parses \\[6\~ as page_down key -Top 2 slowest examples (0.01246 seconds, 12.9% of total time): - TTY::Reader#read_keypress when Ctrl+C pressed sends interrupt signal when :signal option is chosen - 0.0063 seconds ./spec/unit/read_keypress_spec.rb:39 - TTY::Reader#with_history_disabled leaves the line alone on :down - 0.00616 seconds ./spec/unit/history_disabled_spec.rb:26 +TTY::Reader#read_line + doesn't echo characters back + masks characters + reads multibyte line + supports multiline prompts + echoes characters back + displays custom input with a prompt + displays a prompt before input + buffers non-empty input and restores it back when history has no more lines + restores empty line when history has no more lines + deletes characters when backspace pressed + +TTY::Reader#subscribe + subscribes to listen to events only in a block + subscribes to receive events + +TTY::Reader#read_multiline + reads few lines + reads lines with a prompt + reads no lines + reads and yiels every line + reads a line and terminates on Ctrl+z + reads multibyte lines + reads a line and terminates on Ctrl+d + sets initial input line + reads lines with echo off + skips empty lines + +Top 2 slowest examples (0.04127 seconds, 14.5% of total time): + TTY::Reader#read_multiline reads few lines + 0.02243 seconds ./spec/unit/read_multiline_spec.rb:31 + TTY::Reader#read_line restores empty line when history has no more lines + 0.01885 seconds ./spec/unit/read_line_spec.rb:120 Top 2 slowest example groups: - TTY::Reader#with_history_disabled - 0.00409 seconds average (0.00819 seconds / 2 examples) ./spec/unit/history_disabled_spec.rb:3 + TTY::Reader#read_line + 0.00886 seconds average (0.08864 seconds / 10 examples) ./spec/unit/read_line_spec.rb:3 TTY::Reader#read_multiline - 0.00227 seconds average (0.02269 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 + 0.0062 seconds average (0.06199 seconds / 10 examples) ./spec/unit/read_multiline_spec.rb:3 -Finished in 0.09683 seconds (files took 0.16271 seconds to load) +Finished in 0.28371 seconds (files took 0.35581 seconds to load) 112 examples, 0 failures -Randomized with seed 2109 +Randomized with seed 41164 ┌──────────────────────────────────────────────────────────────────────────────┐ @@ -1325,12 +1361,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/57877/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/57877/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/88346 and its subdirectories -I: Current time: Mon Mar 2 01:40:59 -12 2026 -I: pbuilder-time-stamp: 1772458859 +I: removing directory /srv/workspace/pbuilder/57877 and its subdirectories +I: Current time: Tue Jan 28 21:19:08 +14 2025 +I: pbuilder-time-stamp: 1738048748