Developer Setup¶
Prerequisites¶
| Tool | Version | Purpose |
|---|---|---|
| Ruby | 3.3+ | Build and test |
| Bundler | Latest | Dependency management |
| git | Latest | Version control |
| Docker | Latest | Local MQ containers (integration tests) |
Required repositories¶
mq-rest-admin depends on two sibling repositories:
| Repository | Purpose |
|---|---|
| mq-rest-admin-ruby | This project |
| vergil-tooling | Canonical project standards (referenced by AGENTS.md and git hooks) |
| mq-rest-admin-dev-environment | Dockerized MQ test infrastructure (local and CI) |
Recommended directory layout¶
Clone all three repositories as siblings:
cd ~/dev
git clone https://github.com/mq-rest-admin-project/mq-rest-admin-ruby.git
git clone https://github.com/vergil-project/vergil-tooling.git
git clone https://github.com/mq-rest-admin-project/mq-rest-admin-dev-environment.git
Installing dependencies¶
Testing¶
Coverage is enforced at 100% line and branch via SimpleCov.
Linting¶
Building the gem¶
Claude Code hook guard¶
The .claude/hooks/guard.sh PreToolUse hook blocks raw git and
gh commands in AI agent sessions — all operations must go through
the vrg-git / vrg-gh wrappers.