Skip to content

Remove leftover build files; keep the version in one place - #335

Merged
trans merged 2 commits into
mainfrom
claude/github-connector-capabilities-4qcre6
Sep 27, 2026
Merged

trans merged 2 commits into
mainfrom
claude/github-connector-capabilities-4qcre6

Conversation

@trans

@trans trans commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

These files belonged to older Rubyworks tooling (mast, index, Detroit). Nothing reads them anymore, and they had drifted out of date:

File What it was Why it's dead
MANIFEST File list kept by mast The gemspec builds its own file list (Dir['lib/**/*.rb', …]). It was missing the demos and many newer files.
Assembly Detroit's configuration detroit is commented out in the Gemfile.
.index / Indexfile Metadata kept by index The gemspec hardcodes its own metadata. .index still said version 3.1.1 (the gem is 3.2.2).
lib/core/facets.yml A 2013 copy of the index metadata Nothing loads it, and it isn't packaged in the gem (the gemspec only includes .rb files).

One source for the version (38f19f7)

The version was kept twice, in facets.gemspec and in lib/core/facets/version.rb. The gemspec now requires version.rb and uses Facets::VERSION, so a release changes one line.

The rest of the metadata .index was meant to expose to code is available from RubyGems when Facets is installed as a gem, for example Gem.loaded_specs['facets'].summary.

Rakefile

  • It read .index only to get the version for the docs output path, so the docs task was labeling output 3.1.1. It now uses Facets::VERSION.
  • The prepare task only regenerated MANIFEST and .index with mast and index. It's removed, so rake package builds the gem without either tool.

Testing

  • Gem::Specification.load('facets.gemspec') reports version 3.2.2, and rake package builds facets-3.2.2.gem.
  • rake test: 1,263 tests pass (4 pending). rake qed: 157 demos pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW

MANIFEST, Assembly (Detroit's config), .index, Indexfile and
lib/core/facets.yml belonged to older Rubyworks tooling (mast, index,
Detroit). The gemspec builds its own file list and metadata, so nothing
read them, and they had drifted: MANIFEST was missing files and .index
still said version 3.1.1.

The Rakefile only used .index for the docs version; it now uses
Facets::VERSION. The `prepare` task, which just regenerated MANIFEST
and .index with mast and index, is gone, so `rake package` builds the
gem without needing either tool.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW
The version was kept twice, in facets.gemspec and in
lib/core/facets/version.rb. The gemspec now requires version.rb and
uses Facets::VERSION, so a release changes one line. The Rakefile
already reads it there too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW
@trans trans changed the title Remove leftover build files nothing reads anymore Remove leftover build files; keep the version in one place Sep 27, 2026
@trans
trans merged commit 3d79004 into main Sep 27, 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.

2 participants