Skip to content

Modernize: current Ruby, Facets and Git; tests on Spectrum - #19

Merged
trans merged 1 commit into
masterfrom
modernize
Nov 24, 2026
Merged

trans merged 1 commit into
masterfrom
modernize

Conversation

@trans

@trans trans commented Nov 24, 2026

Copy link
Copy Markdown
Member

VCLog's master didn't load on current Ruby, and had been left part-way through a 2013 change to its configuration. This makes it work again and moves its tests to Spectrum.

Fixes

  • Loading: Facets 4 no longer has the String#tabto and Enumerable#group_by files (Error: rubygems/core_ext/kernel_require.rb:121:in `require': cannot load such file #18). VCLog now carries its own tabto.
  • Release histories: a tagged commit was listed under the release after its own (changes skipping to next release #16).
  • Git tags: tags are read with git for-each-ref instead of by parsing git show. The old parser took any message line starting with a letter a to f for a commit id, and could hand a whole tag message to Time.parse; VCLog's own 1.9.2 tag broke vclog -r, vclog-version and vclog-bump that way. This is probably what versions < 1.0 seem to not work (git) #15 reported, though I couldn't reproduce that report exactly.
  • Empty commits: a commit or tag with an empty message crashed. Commits that change no files, the subject of Patch to properly handle situation where a git commit has an empty file set #17, are handled by the new parsing and tested.
  • Current version: it was the last tag by name, so 0.2.0 beat 0.10.0. It is now the highest version.
  • -p: the option was inverted. Points were split by default and kept whole with -p.
  • Config and history files: the config file lookup referred to a constant that didn't exist, and History.md wasn't found on a case-sensitive file system.
  • Formats: HTML failed with current RDoc, and the ERB templates used an argument form Ruby 3 dropped.
  • Smaller ones: Heuristics.eval, Heuristics#level, the Subversion adapter's tag, errors printed to standard output.

Packaging

  • vclog.gemspec, Rakefile and GitHub Actions (Ruby 2.7 to 4.0) replace .index, index/, .gemspec, Manifest.txt, Assembly and .travis.yml.
  • Dependencies now include ostruct, json and rdoc.
  • The RC configuration support, added for the unreleased 1.9.3 and then deprecated, is removed.
  • Version is 1.10.0 in lib/vclog/version.rb; History.md has the entry under Unreleased.

Tests

  • Unit tests use spectrum/testcase and features use spectrum/feature, with Assay's AE notation.
  • They run against a small Git repository built in a temporary directory, with annotated and lightweight tags and a commit with no files.
  • The old features cloned repositories over the network, and their "exit status should be" step assigned the number instead of comparing it, so they could not fail.

Not covered

  • Mercurial, Subversion and Darcs are untested: none was installed where this was written. The two Mercurial features, which cloned a Bitbucket repository that no longer exists, are removed.
  • vclog-bump treats a level above 1 as a major change, but the built-in rules give [minor] commits level 2, so a minor change bumps the major number unless a project sets its own levels. Left as it is.

🤖 Generated with Claude Code

Makes VCLog load and run on current Ruby, fixes the bugs found on the
way (see History.md), replaces the build files with a gemspec, Rakefile
and GitHub Actions, and moves the tests from Citron and Lime to Spectrum,
run against a Git repository built for the purpose.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@trans
trans merged commit 0d00793 into master Nov 24, 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