Repository navigation
Rename gem to benchwarmer-rb (#30) - #31
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #30.
benchwarmeris already claimed on RubyGems (verified: API returns 200 for it, 404 forbenchwarmer-rb), so the gem publishes asbenchwarmer-rb.Approach
The concurrent-ruby pattern: only the published name changes; the library keeps
require "benchwarmer", theBenchwarmermodule, and thelib/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.rbshim →require_relative "benchwarmer". Without this, a plaingem "benchwarmer-rb"breaks underBundler.require, which requires a gem by its own name (it would trybenchwarmer-rbthenbenchwarmer/rb, both missing). With it, norequire:option is needed.gem "benchwarmer-rb"+ a note on the namingGemfile.lockregenerated (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/checkcleangem build benchwarmer-rb.gemspecsucceeds; from the unpacked .gem, bothrequire "benchwarmer-rb"(the Bundler.require path) andrequire "benchwarmer"load the library🤖 Generated with Claude Code