Skip to content

Rename gem to benchwarmer-rb (#30) - #31

Merged
jeffperrin merged 2 commits into
mainfrom
30-rename-gem-benchwarmer-rb
Jul 11, 2026
Merged

jeffperrin merged 2 commits into
mainfrom
30-rename-gem-benchwarmer-rb

Conversation

@jeffperrin

Copy link
Copy Markdown
Owner

Closes #30. benchwarmer is already claimed on RubyGems (verified: API returns 200 for it, 404 for benchwarmer-rb), so the gem publishes as benchwarmer-rb.

Approach

The concurrent-ruby pattern: only the published name changes; the library keeps require "benchwarmer", the Benchwarmer module, and the lib/benchwarmer/ layout. Nothing in consuming code changes except the Gemfile line.

  • spec.name = "benchwarmer-rb", gemspec file renamed to match (with a comment explaining the arrangement)
  • lib/benchwarmer-rb.rb shim → require_relative "benchwarmer". Without this, a plain gem "benchwarmer-rb" breaks under Bundler.require, which requires a gem by its own name (it would try benchwarmer-rb then benchwarmer/rb, both missing). With it, no require: option is needed.
  • README install section: gem "benchwarmer-rb" + a note on the naming
  • Gemfile.lock regenerated (also folds in a pending bundler checksum line)

Repo name and issue/PR flow unchanged.

Verification

  • bundle exec rake test (134 runs, 0 failures) + bin/check clean
  • gem build benchwarmer-rb.gemspec succeeds; from the unpacked .gem, both require "benchwarmer-rb" (the Bundler.require path) and require "benchwarmer" load the library

🤖 Generated with Claude Code

jeffperrin and others added 2 commits July 11, 2026 08:31
Closes #30. "benchwarmer" is already claimed on RubyGems, so the gem
publishes as benchwarmer-rb while the library keeps its names -- you
still `require "benchwarmer"` and use the Benchwarmer module, the same
arrangement as concurrent-ruby -> require "concurrent".

- spec.name = "benchwarmer-rb"; gemspec file renamed to match
- lib/benchwarmer-rb.rb shim so Bundler.require's default require of
  the gem's own name works without a require: option
- README install section updated with the name/require note
- Gemfile.lock regenerated (also picks up a pending bundler checksum
  line from a newer bundler)

Verified: rake test + bin/check green; `gem build` succeeds and, from
the unpacked .gem, both `require "benchwarmer-rb"` (the Bundler path)
and `require "benchwarmer"` load the library.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jeffperrin
jeffperrin merged commit 29010a9 into main Jul 11, 2026
2 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.

Rename gem to benchwarmer-rb (name taken on RubyGems)

1 participant