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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 16 May 2026 09:15PM UTC
Jobs 37
Files 160
Run time 1min
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: 97.035% (+0.07%) from 96.967%
25973130761

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

1084 of 1167 branches covered (92.89%)

Branch coverage included in aggregate %.

53 of 54 new or added lines in 10 files covered. (98.15%)

9 existing lines in 5 files now uncovered.

3497 of 3554 relevant lines covered (98.4%)

32149.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
92.0
-0.31% lib/grape/validations/validators/default_validator.rb

Coverage Regressions

Lines Coverage ∆ File
4
95.62
1.29% lib/grape/middleware/error.rb
2
92.86
1.19% lib/grape/middleware/base.rb
1
93.55
0.14% lib/grape/dsl/request_response.rb
1
96.3
0.0% lib/grape/error_formatter/base.rb
1
96.74
0.11% lib/grape/validations/validators/base.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json.gemfile - 25973130761.1 16 May 2026 09:15PM UTC 159
36.38
GitHub Action Run
2 run-3.2-gemfiles/rack_3_1.gemfile - 25973130761.2 16 May 2026 09:15PM UTC 159
95.78
GitHub Action Run
3 run-4.0-gemfiles/rack_3_0.gemfile - 25973130761.3 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
4 run-4.0-gemfiles/multi_xml.gemfile - 25973130761.4 16 May 2026 09:15PM UTC 159
36.38
GitHub Action Run
5 run-3.2-gemfiles/rack_3_0.gemfile - 25973130761.5 16 May 2026 09:15PM UTC 159
95.78
GitHub Action Run
6 run-3.3-gemfiles/rack_2_2.gemfile - 25973130761.6 16 May 2026 09:15PM UTC 159
95.69
GitHub Action Run
7 run-3.4-gemfiles/rack_3_1.gemfile - 25973130761.7 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
8 run-3.2-gemfiles/rails_8_0.gemfile - 25973130761.8 16 May 2026 09:16PM UTC 160
95.78
GitHub Action Run
9 run-3.4-gemfiles/rack_2_2.gemfile - 25973130761.9 16 May 2026 09:15PM UTC 159
95.69
GitHub Action Run
10 run-4.0-gemfiles/rails_8_1.gemfile - 25973130761.10 16 May 2026 09:16PM UTC 160
95.74
GitHub Action Run
11 run-3.3-gemfiles/rack_3_2.gemfile - 25973130761.11 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
12 run-3.2-gemfiles/rack_2_2.gemfile - 25973130761.12 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
13 run-3.2-gemfiles/rails_7_2.gemfile - 25973130761.13 16 May 2026 09:16PM UTC 160
95.78
GitHub Action Run
14 run-3.4-gemfiles/rack_3_2.gemfile - 25973130761.14 16 May 2026 09:16PM UTC 159
95.73
GitHub Action Run
15 run-4.0-gemfiles/rack_3_2.gemfile - 25973130761.15 16 May 2026 09:16PM UTC 159
95.73
GitHub Action Run
16 run-3.3-gemfiles/rack_3_0.gemfile - 25973130761.16 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
17 run-3.2-gemfiles/rack_3_2.gemfile - 25973130761.17 16 May 2026 09:15PM UTC 159
95.78
GitHub Action Run
18 run-3.2-gemfiles/rails_8_1.gemfile - 25973130761.18 16 May 2026 09:15PM UTC 160
95.78
GitHub Action Run
19 run-4.0-gemfiles/rack_3_1.gemfile - 25973130761.19 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
20 run-3.3-gemfiles/rack_3_1.gemfile - 25973130761.20 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
21 run-3.3-gemfiles/rails_7_2.gemfile - 25973130761.21 16 May 2026 09:15PM UTC 160
95.74
GitHub Action Run
22 run-4.0-gemfiles/grape_entity.gemfile - 25973130761.22 16 May 2026 09:15PM UTC 159
50.05
GitHub Action Run
23 run-4.0-gemfiles/dry_validation.gemfile - 25973130761.23 16 May 2026 09:15PM UTC 159
58.1
GitHub Action Run
24 run-3.4-gemfiles/rails_8_0.gemfile - 25973130761.24 16 May 2026 09:15PM UTC 160
95.74
GitHub Action Run
25 run-3.3-gemfiles/rails_8_1.gemfile - 25973130761.25 16 May 2026 09:16PM UTC 160
95.74
GitHub Action Run
26 run-3.2-Gemfile - 25973130761.26 16 May 2026 09:16PM UTC 159
95.78
GitHub Action Run
27 run-4.0-gemfiles/rails_8_0.gemfile - 25973130761.27 16 May 2026 09:16PM UTC 160
95.74
GitHub Action Run
28 run-4.0-Gemfile - 25973130761.28 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
29 run-3.3-Gemfile - 25973130761.29 16 May 2026 09:16PM UTC 159
95.73
GitHub Action Run
30 run-3.4-gemfiles/rails_8_1.gemfile - 25973130761.30 16 May 2026 09:15PM UTC 160
95.74
GitHub Action Run
31 run-4.0-gemfiles/rack_2_2.gemfile - 25973130761.31 16 May 2026 09:15PM UTC 159
95.69
GitHub Action Run
32 run-3.3-gemfiles/rails_8_0.gemfile - 25973130761.32 16 May 2026 09:16PM UTC 160
95.74
GitHub Action Run
33 run-4.0-gemfiles/rails_7_2.gemfile - 25973130761.33 16 May 2026 09:16PM UTC 160
95.74
GitHub Action Run
34 run-4.0-gemfiles/hashie.gemfile - 25973130761.34 16 May 2026 09:16PM UTC 159
62.41
GitHub Action Run
35 run-3.4-gemfiles/rack_3_0.gemfile - 25973130761.35 16 May 2026 09:15PM UTC 159
95.73
GitHub Action Run
36 run-3.4-Gemfile - 25973130761.36 16 May 2026 09:16PM UTC 159
95.73
GitHub Action Run
37 run-3.4-gemfiles/rails_7_2.gemfile - 25973130761.37 16 May 2026 09:15PM UTC 160
95.74
GitHub Action Run
Source Files on build 25973130761
  • Tree
  • List 160
  • Changed 23
  • Source Changed 22
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25973130761
  • Pull Request #2725
  • PR Base - master (#25973033231)
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