Skip to content

Commit fb97fa4

Browse files
fix(ruby): fix TargetRubyVersion and add Rails CI note
Fix TargetRubyVersion from 3.4 to 3.1 (matches container). Add note about Rails rspec needing a dedicated CI job with database services. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e730a5d commit fb97fa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/docs/standards/ruby.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ require:
3737
- rubocop-performance
3838

3939
AllCops:
40-
TargetRubyVersion: 3.4
40+
TargetRubyVersion: 3.1
4141
NewCops: enable
4242
Exclude:
4343
- "db/schema.rb"
@@ -156,3 +156,4 @@ repos:
156156
- **`reek` runs as part of `make lint`.** It detects code smells (feature envy, too-many-instance-variables, data clump, etc.).
157157
- **`sorbet` is optional.** Projects can incrementally adopt it by adding `# typed:` sigils to Ruby files. The `sorbet-runtime` gem provides runtime type annotations.
158158
- **All tools are pre-installed in the dev-toolchain container.** Do not install them on the host.
159+
- **Rails rspec in CI:** The dev-toolchain container handles static analysis (rubocop, reek, brakeman, bundler-audit) but Rails integration tests typically need a database service (Postgres, MySQL). In CI, run a separate rspec job with the project's own `ruby` image, Bundler, and a database service. The DevRail `make _test` target handles rspec for simple cases; use a dedicated CI job when your tests require external services.

0 commit comments

Comments
 (0)