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

ruby-grape / grape / 33958323629
97%
master: 99%

Build:
Build:
LAST BUILD BRANCH: fix/declared-blank-array-elements
DEFAULT BRANCH: master
Ran 05 Sep 2026 09:34AM UTC
Jobs 32
Files 169
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

05 Sep 2026 09:33AM UTC coverage: 97.156% (+0.004%) from 97.152%
33958323629

Pull #2905

github

ericproulx
Nest any lone route_param requirement, and reject a non-Hash elsewhere

`route_param` nested a lone `requirements:` under the param name only when it
was a Regexp. Every other constraint — a capture type such as `Integer` or
`:date` — travelled unwrapped into `Endpoint#prepare_routes_requirements`,
which merges the requirement Hashes of the namespaces a route sits in, and
raised `TypeError: no implicit conversion of Class into Hash` there. That
happens when routes are built, so a mistake in the API's definition surfaced
on the first request, from a method that names neither the route nor the
requirement.

The param is named at the call, so nest any lone constraint, the way the
Regexp shorthand already did. `namespace` and an endpoint have no single param
to attach one to, so they now reject a non-Hash `requirements` where it is
written, with a message that says what was expected.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2905: Nest any lone route_param requirement, and reject a non-Hash elsewhere

1243 of 1332 branches covered (93.32%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 1 file covered. (100.0%)

3949 of 4012 relevant lines covered (98.43%)

27241.58 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-Gemfile - 33958323629.1 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
2 run-4.0-gemfiles/rails_8_1.gemfile - 33958323629.2 05 Sep 2026 09:34AM UTC 169
95.92
GitHub Action Run
3 run-4.0-gemfiles/multi_json_1_20.gemfile - 33958323629.3 05 Sep 2026 09:34AM UTC 167
47.63
GitHub Action Run
4 run-4.0-gemfiles/rack_3_2.gemfile - 33958323629.4 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
5 run-4.0-Gemfile - 33958323629.5 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
6 run-4.0-gemfiles/rack_3_0.gemfile - 33958323629.6 05 Sep 2026 09:34AM UTC 168
95.92
GitHub Action Run
7 run-4.0-gemfiles/grape_swagger.gemfile - 33958323629.7 05 Sep 2026 09:34AM UTC 167
55.31
GitHub Action Run
8 run-3.3-gemfiles/rack_3_0.gemfile - 33958323629.8 05 Sep 2026 09:34AM UTC 168
95.92
GitHub Action Run
9 run-3.3-gemfiles/rails_8_1.gemfile - 33958323629.9 05 Sep 2026 09:36AM UTC 169
95.92
GitHub Action Run
10 run-3.4-Gemfile - 33958323629.10 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
11 run-3.4-gemfiles/rails_8_1.gemfile - 33958323629.11 05 Sep 2026 09:35AM UTC 169
95.92
GitHub Action Run
12 run-4.0-gemfiles/multi_json.gemfile - 33958323629.12 05 Sep 2026 09:35AM UTC 167
47.59
GitHub Action Run
13 run-3.4-gemfiles/rails_8_0.gemfile - 33958323629.13 05 Sep 2026 09:36AM UTC 169
95.92
GitHub Action Run
14 run-4.0-gemfiles/rack_3_1.gemfile - 33958323629.14 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
15 run-4.0-gemfiles/rails_8_0.gemfile - 33958323629.15 05 Sep 2026 09:35AM UTC 169
95.92
GitHub Action Run
16 run-3.3-gemfiles/rack_3_2.gemfile - 33958323629.16 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
17 run-3.4-gemfiles/rack_3_0.gemfile - 33958323629.17 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
18 run-3.3-gemfiles/rails_7_2.gemfile - 33958323629.18 05 Sep 2026 09:35AM UTC 169
95.92
GitHub Action Run
19 run-3.4-gemfiles/rack_3_2.gemfile - 33958323629.19 05 Sep 2026 09:36AM UTC 168
95.92
GitHub Action Run
20 run-3.4-gemfiles/rack_3_1.gemfile - 33958323629.20 05 Sep 2026 09:36AM UTC 168
95.92
GitHub Action Run
21 run-4.0-gemfiles/rails_7_2.gemfile - 33958323629.21 05 Sep 2026 09:35AM UTC 169
95.92
GitHub Action Run
22 run-3.3-gemfiles/rack_3_1.gemfile - 33958323629.22 05 Sep 2026 09:35AM UTC 168
95.92
GitHub Action Run
23 run-4.0-gemfiles/rack_2_2.gemfile - 33958323629.23 05 Sep 2026 09:35AM UTC 168
95.88
GitHub Action Run
24 run-3.4-gemfiles/rack_2_2.gemfile - 33958323629.24 05 Sep 2026 09:34AM UTC 168
95.88
GitHub Action Run
25 run-4.0-gemfiles/grape_entity.gemfile - 33958323629.25 05 Sep 2026 09:34AM UTC 167
50.38
GitHub Action Run
26 run-4.0-gemfiles/multi_xml.gemfile - 33958323629.26 05 Sep 2026 09:35AM UTC 167
47.08
GitHub Action Run
27 run-3.4-gemfiles/rails_7_2.gemfile - 33958323629.27 05 Sep 2026 09:36AM UTC 169
95.92
GitHub Action Run
28 run-4.0-gemfiles/hashie.gemfile - 33958323629.28 05 Sep 2026 09:34AM UTC 167
61.82
GitHub Action Run
29 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33958323629.29 05 Sep 2026 09:35AM UTC 167
47.12
GitHub Action Run
30 run-3.3-gemfiles/rails_8_0.gemfile - 33958323629.30 05 Sep 2026 09:35AM UTC 169
95.92
GitHub Action Run
31 run-4.0-gemfiles/dry_validation.gemfile - 33958323629.31 05 Sep 2026 09:34AM UTC 167
57.83
GitHub Action Run
32 run-3.3-gemfiles/rack_2_2.gemfile - 33958323629.32 05 Sep 2026 09:34AM UTC 168
95.88
GitHub Action Run
Source Files on build 33958323629
  • Tree
  • List 169
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33958323629
  • Pull Request #2905
  • PR Base - document-typed-route-requirements (#33958303572)
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