Package git-report as an installable RubyGem (v1.0.0)#16
Merged
Conversation
Bump the development Ruby to 4.0.4, add 4.0 to the CI smoke-test matrix (and the lint job), and update the README badge and compatibility notes to document the 2.6-through-4.0 supported range. The smoke test and the git_report executable both run cleanly on Ruby 4.0.4, while the 2.6 floor is preserved.
Add gem packaging so the tool installs via `gem install git-report`: gemspec, VERSION, lib/version.rb, and a Rakefile running tests + RuboCop. - `gem install` sets up the `git report` alias via the extconf.rb extension hook calling bin/git_add_alias_report; `gem uninstall` removes it via a rubygems_plugin.rb pre_uninstall hook calling bin/git_remove_alias_report. - Rename project git_report -> git-report (gem, executable, bins, docs); lib/git_report.rb keeps its underscore per Ruby file-naming convention. - `git-report --version` / `-v` prints the version. - Add test/coverage.rb (stdlib-only, 95% gate) and CI matrix for 2.6/3.4/4.0.
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.
Packages the tool as the git-report RubyGem so it installs via
gem install git-report.What changed
git-report.gemspec,VERSION,lib/version.rb,Rakefile(test + RuboCop).gem installsets up thegit reportalias via theextconf.rbextension hook (bin/git_add_alias_report);gem uninstallremoves it via arubygems_plugin.rbpre_uninstallhook (bin/git_remove_alias_report).git_report→git-report(gem, executable, bins, docs).lib/git_report.rbkeeps its underscore per Ruby convention.git-report --version/-vprints the version.test/coverage.rb(stdlib-only, 95% gate) + CI matrix for Ruby 2.6 / 3.4 / 4.0.Verified locally (Ruby 4.0.4)
rake→ 14 runs, 38 assertions, 0 failures; RuboCop clean; coverage 100%.gem build→ correct manifest.gem installbuilds the native ext and sets the alias; installed binary runsgit reportand--version.gem uninstallremoves the alias.Release of v1.0.0 to RubyGems + git tag + GitHub release follows after merge.