Skip to content

Modernize packaging and run on current Ruby - #15

Merged
trans merged 2 commits into
masterfrom
modernize
Nov 20, 2026
Merged

trans merged 2 commits into
masterfrom
modernize

Conversation

@trans

@trans trans commented Nov 20, 2026

Copy link
Copy Markdown
Member

Brings Tapout's packaging up to date and makes it run on current Ruby. No reporter's output changes.

Packaging

  • A plain tapout.gemspec and Rakefile (rake demo, rake build, rake release) replace .index, .gemspec, Assembly, MANIFEST and var/.
  • GitHub Actions replaces Travis: the QED demos on Ruby 2.7 to 4.0, and once more on 4.0 with frozen string literals. It also runs monthly.
  • Tapout::VERSION is a constant in tapout/version.rb. Tapout.metadata, lib/tapout.yml and the lookup of metadata as constants are gone.
  • Requires Ruby 2.7 or newer.

Running on current Ruby

  • abbrev left Ruby's default gems in 3.4, so require 'abbrev' fails under Bundler there. Reporter names are now matched by unique prefix directly: tapout pro still means progress.
  • Nothing appends to a string literal any more, so Tapout works with frozen string literals.

README

  • It named a progressbar reporter, which doesn't exist; it is progress.
  • 23.char in the pause example is 23.chr.
  • Links and badges point to live addresses.

Checked

qed -Ilib demo/ passes (3 demos, 29 steps) on Ruby 3.4.9, also with frozen string literals, and on Ruby 2.7.8 in a container. The gem builds.

Not in this PR

Found while testing against rubytest 0.11 and Minitest output, for a follow-up: the markdown and html reporters raise on a failure without an exception class or backtrace; several reporters raise on a failed test from plain TAP input; and the tap reporter prints no line for pending or omitted tests (#14).

🤖 Generated with Claude Code

trans and others added 2 commits November 20, 2026 17:37
Replace the .index/.gemspec/Assembly/MANIFEST/var packaging with a
plain tapout.gemspec and Rakefile, and Travis with GitHub Actions on
Ruby 2.7 to 4.0. Tapout::VERSION is now a constant; Tapout.metadata
and lib/tapout.yml are gone.

Stop using the abbrev library, which left Ruby's default gems in 3.4:
reporter names are matched by unique prefix directly. Stop appending
to string literals, so Tapout works with frozen string literals.

Correct the README's reporter name (progress, not progressbar), a
typo in its pause example, and its links.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
require 'ansi' loads ansi/logger, which requires logger, and Ruby 4.0
no longer ships that as a default gem, so Tapout failed to load there
under Bundler. Tapout uses String#ansi and the progress bar only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@trans
trans merged commit aca44f7 into master Nov 20, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant