• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 25973130761 / 17
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/recompile-settings-mutation-race
DEFAULT BRANCH: master
Ran 16 May 2026 09:16PM UTC
Files 159
Run time 6s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 May 2026 09:14PM UTC coverage: 95.777% (+0.06%) from 95.716%
25973130761.17

Pull #2725

github

ericproulx
Encapsulate Grape::Validations::Validators::Base state behind readers

Route all internal reads of the Base validator's instance variables
through accessor methods instead of touching @ivars directly, in Base
and every subclass.

- Add private `attr_reader :options, :scope, :required, :allow_blank,
  :exception_message`; `:attrs` stays a public reader (unchanged
  external behavior).
- Booleans get `?` aliases consistent with `fail_fast?`:
  `required?`, `allow_blank?`, `fail_fast?` (now `attr_reader` + alias).
- Only `attrs`/`fail_fast?` remain public — the readers actually
  crossing the validator boundary (Grape::Endpoint#run_validators).
- Rename locals that shadowed the new readers (`attrs`/`scope`).

Pure internal refactor: no behavior change, full validation and
endpoint suites green.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2725: Encapsulate Grape::Validations::Validators::Base state behind readers

1060 of 1167 branches covered (90.83%)

Branch coverage included in aggregate %.

3453 of 3545 relevant lines covered (97.4%)

1005.75 hits per line

Source Files on job run-3.2-gemfiles/rack_3_2.gemfile - 25973130761.17
  • Tree
  • List 159
  • Changed 22
  • Source Changed 22
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25973130761
  • 42e20254 on github
  • Prev Job for on refactor/base-validator-encapsulation (#25973033231.28)
  • Next Job for on refactor/base-validator-encapsulation (#25973524233.18)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc