Thanks for your interest in contributing! This document explains how to report issues, propose changes, and submit pull requests.
This project follows the Contributor Covenant Code of Conduct. By participating, you are expected to uphold it.
Before opening an issue, please:
- Search existing issues to avoid duplicates.
- Confirm the bug reproduces on the
mainbranch. - Include:
- Ruby and Rails versions (
ruby -v,bin/rails -v) - PostgreSQL version
- Steps to reproduce
- Expected vs actual behavior
- Relevant log output or stack traces
- Ruby and Rails versions (
Do not open public issues for security vulnerabilities. See SECURITY.md for the disclosure process.
For non-trivial changes, please open an issue first to discuss the approach before investing implementation time.
- Fork the repository and create a feature branch from
main. - Make your changes with clear, focused commits.
- Add or update tests for any behavioral changes.
- Run the full test suite locally:
bin/rails test - Run the linter and security scanner:
bin/rubocop bin/brakeman --no-pager
- Push your branch and open a pull request against
main. - In the PR description, explain what changed and why.
This project uses RuboCop with the Rails Omakase style. Please ensure bin/rubocop passes before submitting.
- Tests use Minitest with parallel execution.
- Place new tests under
test/mirroring the source structure. - Use fixtures (
test/fixtures/) for test data. - Mock external HTTP calls with WebMock.
This substrate is consumed by nativeapptemplate-agent, which mechanically renames Shop, Shopkeeper, and ItemTag (and all their case forms — PascalCase, snake_case, camelCase, flat, UPPER_SNAKE, humanized lower/title/sentence × singular/plural) to user-chosen target words. Some patterns that read fine in this repo break when renamed.
Before merging changes that touch user-facing strings, OpenAPI summaries, test descriptors, or comments mentioning domain entities, read the substrate rename-safety contract.
Quick rule of thumb: avoid "a" / "an" directly preceding Shop, Shopkeeper, or ItemTag (or their humanized forms) — write self-contained or article-free phrasings instead.
Failure mode this prevents: an OpenAPI summary like "Get an item tag" or a test descriptor like test "destroy deletes an item_tag" reads correctly here but produces "Get an patient" / "destroy deletes an patient" after the rename pipeline substitutes a consonant-starting word like Patient.
See README.md for full setup instructions.
By contributing, you agree that your contributions will be licensed under the MIT License.