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

ruby-grape / grape / 25968435334
97%

Build:
DEFAULT BRANCH: master
Ran 16 May 2026 05:32PM UTC
Jobs 37
Files 162
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 05:32PM UTC coverage: 96.981% (+0.005%) from 96.976%
25968435334

push

github

web-flow
Use an internal Grape::Validations::SharedOptions value object (#2721)

`Validators::Base#initialize` consumed the shared `opts` via
`opts.values_at(:fail_fast, :allow_blank)` and copied the two values
into per-validator ivars.

Introduce `Grape::Validations::SharedOptions`
(`Data.define(:allow_blank, :fail_fast)` with defaults mirroring the
prior `values_at` behaviour) as an *internal* representation: `Base`
builds it from the `opts` Hash —
`SharedOptions.new(**opts.slice(:allow_blank, :fail_fast))` — and
exposes the two fields via `Forwardable.def_delegators :@opts,
:allow_blank, :fail_fast`. `#fail_fast?` calls the delegated
`fail_fast`; `ValuesValidator` (the one subclass reading `@allow_blank`
directly) uses the `allow_blank` reader.

The public 5th-argument contract of `Validators::Base#initialize`
stays a plain Hash, so custom validators and any code that
hand-constructs a validator with a Hash are unaffected. `slice` keeps
the historical tolerance of ignoring unknown keys. `ValidationsSpec`
keeps emitting the `{ allow_blank:, fail_fast: }.freeze` Hash; nothing
about its public surface changes — no UPGRADING entry needed.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Daniel (dB.) Doubrovkine <dblock@dblock.org>

1085 of 1169 branches covered (92.81%)

Branch coverage included in aggregate %.

10 of 10 new or added lines in 3 files covered. (100.0%)

3508 of 3567 relevant lines covered (98.35%)

32042.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.2-gemfiles/rack_2_2.gemfile - 25968435334.1 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
2 run-4.0-gemfiles/hashie.gemfile - 25968435334.2 16 May 2026 05:33PM UTC 161
62.51
GitHub Action Run
3 run-3.4-gemfiles/rack_2_2.gemfile - 25968435334.3 16 May 2026 05:32PM UTC 161
95.64
GitHub Action Run
4 run-3.3-gemfiles/rack_3_2.gemfile - 25968435334.4 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
5 run-3.4-gemfiles/rails_8_1.gemfile - 25968435334.5 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
6 run-3.3-gemfiles/rack_3_1.gemfile - 25968435334.6 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
7 run-3.3-gemfiles/rails_8_0.gemfile - 25968435334.7 16 May 2026 05:32PM UTC 162
95.69
GitHub Action Run
8 run-3.2-gemfiles/rack_3_2.gemfile - 25968435334.8 16 May 2026 05:32PM UTC 161
95.73
GitHub Action Run
9 run-3.2-gemfiles/rails_8_1.gemfile - 25968435334.9 16 May 2026 05:32PM UTC 162
95.73
GitHub Action Run
10 run-4.0-gemfiles/rack_3_1.gemfile - 25968435334.10 16 May 2026 05:33PM UTC 161
95.68
GitHub Action Run
11 run-3.3-Gemfile - 25968435334.11 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
12 run-3.4-gemfiles/rails_7_2.gemfile - 25968435334.12 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
13 run-3.4-gemfiles/rack_3_0.gemfile - 25968435334.13 16 May 2026 05:33PM UTC 161
95.68
GitHub Action Run
14 run-3.2-gemfiles/rack_3_0.gemfile - 25968435334.14 16 May 2026 05:32PM UTC 161
95.73
GitHub Action Run
15 run-4.0-gemfiles/rails_8_1.gemfile - 25968435334.15 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
16 run-3.2-gemfiles/rails_7_2.gemfile - 25968435334.16 16 May 2026 05:32PM UTC 162
95.73
GitHub Action Run
17 run-3.4-gemfiles/rack_3_2.gemfile - 25968435334.17 16 May 2026 05:33PM UTC 161
95.68
GitHub Action Run
18 run-3.3-gemfiles/rack_3_0.gemfile - 25968435334.18 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 25968435334.19 16 May 2026 05:33PM UTC 161
36.5
GitHub Action Run
20 run-4.0-gemfiles/rack_3_0.gemfile - 25968435334.20 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
21 run-4.0-Gemfile - 25968435334.21 16 May 2026 05:33PM UTC 161
95.68
GitHub Action Run
22 run-4.0-gemfiles/rack_3_2.gemfile - 25968435334.22 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
23 run-4.0-gemfiles/rails_7_2.gemfile - 25968435334.23 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
24 run-3.2-gemfiles/rails_8_0.gemfile - 25968435334.24 16 May 2026 05:32PM UTC 162
95.73
GitHub Action Run
25 run-4.0-gemfiles/dry_validation.gemfile - 25968435334.25 16 May 2026 05:33PM UTC 161
58.17
GitHub Action Run
26 run-4.0-gemfiles/rack_2_2.gemfile - 25968435334.26 16 May 2026 05:33PM UTC 161
95.64
GitHub Action Run
27 run-3.4-gemfiles/rack_3_1.gemfile - 25968435334.27 16 May 2026 05:33PM UTC 161
95.68
GitHub Action Run
28 run-3.4-Gemfile - 25968435334.28 16 May 2026 05:32PM UTC 161
95.68
GitHub Action Run
29 run-4.0-gemfiles/multi_json.gemfile - 25968435334.29 16 May 2026 05:33PM UTC 161
36.5
GitHub Action Run
30 run-4.0-gemfiles/rails_8_0.gemfile - 25968435334.30 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
31 run-3.2-gemfiles/rack_3_1.gemfile - 25968435334.31 16 May 2026 05:32PM UTC 161
95.73
GitHub Action Run
32 run-4.0-gemfiles/grape_entity.gemfile - 25968435334.32 16 May 2026 05:33PM UTC 161
50.13
GitHub Action Run
33 run-3.3-gemfiles/rack_2_2.gemfile - 25968435334.33 16 May 2026 05:32PM UTC 161
95.64
GitHub Action Run
34 run-3.3-gemfiles/rails_8_1.gemfile - 25968435334.34 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
35 run-3.3-gemfiles/rails_7_2.gemfile - 25968435334.35 16 May 2026 05:32PM UTC 162
95.69
GitHub Action Run
36 run-3.4-gemfiles/rails_8_0.gemfile - 25968435334.36 16 May 2026 05:33PM UTC 162
95.69
GitHub Action Run
37 run-3.2-Gemfile - 25968435334.37 16 May 2026 05:32PM UTC 161
95.73
GitHub Action Run
Source Files on build 25968435334
  • Tree
  • List 162
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25968435334
  • 72771e1d on github
  • Prev Build on master (#25968267680)
  • Next Build on master (#25972887409)
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