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

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

Build:
Build:
LAST BUILD BRANCH: mount-refresh-internal
DEFAULT BRANCH: master
Ran 29 Aug 2026 12:14PM UTC
Jobs 32
Files 168
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

29 Aug 2026 12:13PM UTC coverage: 96.966% (-0.02%) from 96.989%
33251982774

Pull #2867

github

ericproulx
Extract the shared body of `requires` and `optional`

With the group-type check unified (#2864), requiredness passed as an
argument (#2865) and `as` taken as a keyword (#2866), the two methods differ
only in the name they redispatch a legacy Hash under and in whether what
they declare is required. Everything else — the group merge, the `using:`
handover, the attribute validation, the choice between a nested scope and a
leaf declaration — was written twice.

Move it into one private `declare`, leaving each DSL method a single
dispatch. `optional: !required` on the nested scope is only correct now that
`new_scope` no longer keys its type check off that flag.

The two `using:` helpers stay separate. They are not one computation with a
flag flipped: `requires` treats `except` as "these go in the other bucket",
while `optional` has no other bucket, so `:all` ignores `except` and `:none`
uses it to drop fields entirely.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2867: Extract the shared body of `requires` and `optional`

1232 of 1324 branches covered (93.05%)

Branch coverage included in aggregate %.

24 of 24 new or added lines in 2 files covered. (100.0%)

3882 of 3950 relevant lines covered (98.28%)

27188.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_0.gemfile - 33251982774.1 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
2 run-3.4-gemfiles/rack_3_2.gemfile - 33251982774.2 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
3 run-3.3-gemfiles/rack_3_0.gemfile - 33251982774.3 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
4 run-3.3-gemfiles/rails_8_1.gemfile - 33251982774.4 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
5 run-4.0-gemfiles/multi_xml.gemfile - 33251982774.5 29 Aug 2026 12:14PM UTC 167
46.89
GitHub Action Run
6 run-4.0-gemfiles/rails_8_0.gemfile - 33251982774.6 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
7 run-4.0-gemfiles/rack_3_1.gemfile - 33251982774.7 29 Aug 2026 12:15PM UTC 167
95.71
GitHub Action Run
8 run-3.3-Gemfile - 33251982774.8 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
9 run-3.4-Gemfile - 33251982774.9 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
10 run-3.3-gemfiles/rack_3_2.gemfile - 33251982774.10 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
11 run-4.0-gemfiles/dry_validation.gemfile - 33251982774.11 29 Aug 2026 12:14PM UTC 167
58.03
GitHub Action Run
12 run-4.0-gemfiles/rails_8_1.gemfile - 33251982774.12 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
13 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33251982774.13 29 Aug 2026 12:15PM UTC 167
46.92
GitHub Action Run
14 run-3.4-gemfiles/rack_3_1.gemfile - 33251982774.14 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
15 run-4.0-gemfiles/rails_7_2.gemfile - 33251982774.15 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
16 run-3.3-gemfiles/rack_3_1.gemfile - 33251982774.16 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
17 run-4.0-gemfiles/grape_swagger.gemfile - 33251982774.17 29 Aug 2026 12:15PM UTC 167
55.16
GitHub Action Run
18 run-4.0-gemfiles/multi_json_1_20.gemfile - 33251982774.18 29 Aug 2026 12:14PM UTC 167
47.49
GitHub Action Run
19 run-4.0-gemfiles/rack_3_0.gemfile - 33251982774.19 29 Aug 2026 12:15PM UTC 167
95.71
GitHub Action Run
20 run-4.0-gemfiles/grape_entity.gemfile - 33251982774.20 29 Aug 2026 12:14PM UTC 167
50.09
GitHub Action Run
21 run-3.3-gemfiles/rails_7_2.gemfile - 33251982774.21 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
22 run-3.4-gemfiles/rack_2_2.gemfile - 33251982774.22 29 Aug 2026 12:14PM UTC 167
95.67
GitHub Action Run
23 run-4.0-gemfiles/rack_2_2.gemfile - 33251982774.23 29 Aug 2026 12:14PM UTC 167
95.67
GitHub Action Run
24 run-4.0-gemfiles/multi_json.gemfile - 33251982774.24 29 Aug 2026 12:14PM UTC 167
47.46
GitHub Action Run
25 run-3.4-gemfiles/rails_7_2.gemfile - 33251982774.25 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
26 run-3.3-gemfiles/rack_2_2.gemfile - 33251982774.26 29 Aug 2026 12:14PM UTC 167
95.67
GitHub Action Run
27 run-4.0-gemfiles/rack_3_2.gemfile - 33251982774.27 29 Aug 2026 12:14PM UTC 167
95.71
GitHub Action Run
28 run-4.0-gemfiles/hashie.gemfile - 33251982774.28 29 Aug 2026 12:14PM UTC 167
61.85
GitHub Action Run
29 run-3.4-gemfiles/rails_8_1.gemfile - 33251982774.29 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
30 run-3.3-gemfiles/rails_8_0.gemfile - 33251982774.30 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
31 run-4.0-Gemfile - 33251982774.31 29 Aug 2026 12:15PM UTC 167
95.71
GitHub Action Run
32 run-3.4-gemfiles/rails_8_0.gemfile - 33251982774.32 29 Aug 2026 12:14PM UTC 168
95.71
GitHub Action Run
Source Files on build 33251982774
  • Tree
  • List 168
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33251982774
  • Pull Request #2867
  • PR Base - as-explicit-kwarg (#33251904324)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc