https://github.com/mattbrictson/gem
A GitHub template for creating Ruby gems
https://github.com/mattbrictson/gem
gem ruby template
Last synced: 4 months ago
JSON representation
A GitHub template for creating Ruby gems
- Host: GitHub
- URL: https://github.com/mattbrictson/gem
- Owner: mattbrictson
- License: mit
- Created: 2019-06-28T02:03:38.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T00:28:15.000Z (5 months ago)
- Last Synced: 2025-02-27T20:44:18.679Z (5 months ago)
- Topics: gem, ruby, template
- Language: Ruby
- Homepage:
- Size: 226 KB
- Stars: 51
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# gem template
This is a GitHub template for creating Ruby gems. Press [**Use this template**](https://github.com/mattbrictson/gem/generate) to generate a project from this template. In the generated project, run this script to rename the gem to meet your needs:
```
ruby rename_template.rb
```Note that to get the full benefits of the script, you will need the [gh](https://github.com/cli/cli) command installed.
This template is based on `bundle gem` with some notable improvements:
- GitHub Actions configuration
- Minitest, with minitest-rg for nicely formatted test output
- Rubocop with a good set of configuration
- CLI scaffolding, built on top of Thor (optional; for more background, read [Fixing Thor’s CLI Quirks](https://mattbrictson.com/blog/fixing-thor-cli-behavior))
- [release-drafter](https://github.com/apps/release-drafter) GitHub Action for automating release notes
- A `rake bump` task to keep your Ruby and Bundler dependencies up to date
- A nice README with badges ready to go (see below)---
# example
[](https://rubygems.org/gems/replace_with_gem_name)
[](https://www.ruby-toolbox.com/projects/replace_with_gem_name)
[](https://github.com/mattbrictson/gem/actions/workflows/ci.yml)
[](https://codeclimate.com/github/mattbrictson/gem)TODO: Description of this gem goes here.
---
- [Quick start](#quick-start)
- [Support](#support)
- [License](#license)
- [Code of conduct](#code-of-conduct)
- [Contribution guide](#contribution-guide)## Quick start
```
gem install example
``````ruby
require "example"
```## Support
If you want to report a bug, or have ideas, feedback or questions about the gem, [let me know via GitHub issues](https://github.com/mattbrictson/gem/issues/new) and I will do my best to provide a helpful answer. Happy hacking!
## License
The gem is available as open source under the terms of the [MIT License](LICENSE.txt).
## Code of conduct
Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](CODE_OF_CONDUCT.md).
## Contribution guide
Pull requests are welcome!