Skip to content

Package git-report as an installable RubyGem (v1.0.0)#16

Merged
wteuber merged 2 commits into
masterfrom
chore/ruby-4.0.4-support
Jun 23, 2026
Merged

Package git-report as an installable RubyGem (v1.0.0)#16
wteuber merged 2 commits into
masterfrom
chore/ruby-4.0.4-support

Conversation

@wteuber

@wteuber wteuber commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Packages the tool as the git-report RubyGem so it installs via gem install git-report.

What changed

  • Gem packaging: git-report.gemspec, VERSION, lib/version.rb, Rakefile (test + RuboCop).
  • gem install sets up the git report alias via the extconf.rb extension hook (bin/git_add_alias_report); gem uninstall removes it via a rubygems_plugin.rb pre_uninstall hook (bin/git_remove_alias_report).
  • BREAKING: renamed git_reportgit-report (gem, executable, bins, docs). lib/git_report.rb keeps its underscore per Ruby convention.
  • git-report --version / -v prints the version.
  • Added 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 install builds the native ext and sets the alias; installed binary runs git report and --version. gem uninstall removes the alias.

Release of v1.0.0 to RubyGems + git tag + GitHub release follows after merge.

wteuber added 2 commits June 22, 2026 19:17
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.
@wteuber wteuber merged commit e750d1d into master Jun 23, 2026
8 checks passed
@wteuber wteuber deleted the chore/ruby-4.0.4-support branch June 23, 2026 12:27
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