Commit d78e9e79

d78e9e79afa8Merged

Yukihiro "Matz" Matsumoto <[email protected]> · 6 months ago · 1 file · ~1 modified

Description

docs: add Contributing section to README

Resolves the question raised in #19. Keeps the document lightweight: issue tracker is the roadmap, PR workflow is the existing one (small focused PRs, Refs/Closes #N trailers, Co-Authored-By for AI assistance, regression tests under test/). Also links to @gurgeous's rubocop_spinel as community ecosystem.

Closes #19

Co-Authored-By: Claude Opus 4.7 (1M context) [email protected]

Details

Commit
d78e9e79afa8
Parent
be041e87636d

README.mdmodifiedView file

@@ -361,6 +361,34 @@
361361 - **Regexp**: Built-in engine, no external library needed.
362362 - **Bigint**: Built-in (from mruby-bigint), linked only when used.
363363
364+## Contributing
365+
366+Contributions are welcome. The issue tracker doubles as the roadmap —
367+anything open is fair game; the most useful entry points are
368+reproducer-shaped bug reports (a 5-line Ruby that fails in Spinel but
369+passes in CRuby) and codegen fixes that close one such report.
370+
371+Workflow:
372+
373+- Open a focused PR. Small and contained merges faster than sweeping
374+ refactors.
375+- Make `make` close (`gen2.c == gen3.c`) and `make test` / `make bench`
376+ pass before pushing.
377+- Add a regression test under `test/` for any fix or new feature; the
378+ harness compares Spinel's output against CRuby on the same source,
379+ so the test usually doesn't need to assert anything beyond `puts`.
380+- Reference issues with `Closes #N` / `Fixes #N` / `Refs #N` trailers
381+ in the commit message.
382+- If the work was assisted by an AI, add a `Co-Authored-By:` trailer
383+ for the assistant alongside any human co-authors. The maintainer's
384+ own AI-assisted commits use `Co-Authored-By: Claude Opus 4.7`.
385+
386+Adjacent ecosystem (community-built, not part of this repo):
387+
388+- [rubocop_spinel](https://github.com/gurgeous/rubocop_spinel) —
389+ a RuboCop custom cop that flags Ruby code Spinel doesn't yet
390+ support.
391+
364392 ## History
365393
366394 Spinel was originally implemented in C (18K lines, branch `c-version`),