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

ruby-grape / grape / 33726876820
97%

Build:
DEFAULT BRANCH: master
Ran 03 Sep 2026 07:12AM 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

03 Sep 2026 07:11AM UTC coverage: 96.938% (-0.002%) from 96.94%
33726876820

push

github

web-flow
Compile the router's optimized map from the registered routes (#2886)

`Router#compile!` built `@optimized_map` by walking
`Grape::HTTP_SUPPORTED_METHODS + ['*']`, but `#append` accepts a route for
any verb `route` was given. A route declared as, say, `route :purge, '/cache'`
was therefore kept in `@map` and left out of `@optimized_map` — the only map
`#match?` consults — so it could never be matched.

The route was not merely inert: `collect_route_config_per_pattern` builds the
resource's `Allow` header from the routes themselves, so the resource
advertised `Allow: OPTIONS, GET, PURGE, HEAD` and then answered every PURGE
request with 405, contradicting its own advertisement (RFC 9110 §10.2.1).

Compiling from `@map` instead makes the two agree, drops the now-redundant
`@map.key?` guard, and lets Grape serve methods it does not know about ahead
of time.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1237 of 1332 branches covered (92.87%)

Branch coverage included in aggregate %.

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

3923 of 3991 relevant lines covered (98.3%)

27452.08 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_0.gemfile - 33726876820.1 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
2 run-3.4-gemfiles/rack_3_2.gemfile - 33726876820.2 03 Sep 2026 07:13AM UTC 168
95.69
GitHub Action Run
3 run-4.0-gemfiles/rack_3_2.gemfile - 33726876820.3 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
4 run-3.4-Gemfile - 33726876820.4 03 Sep 2026 07:13AM UTC 168
95.69
GitHub Action Run
5 run-4.0-gemfiles/multi_json_1_20.gemfile - 33726876820.5 03 Sep 2026 07:12AM UTC 168
47.43
GitHub Action Run
6 run-3.3-gemfiles/rack_3_1.gemfile - 33726876820.6 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
7 run-3.3-gemfiles/rack_2_2.gemfile - 33726876820.7 03 Sep 2026 07:13AM UTC 168
95.65
GitHub Action Run
8 run-3.4-gemfiles/rack_3_0.gemfile - 33726876820.8 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
9 run-4.0-gemfiles/hashie.gemfile - 33726876820.9 03 Sep 2026 07:12AM UTC 168
61.75
GitHub Action Run
10 run-3.3-gemfiles/rails_8_0.gemfile - 33726876820.10 03 Sep 2026 07:12AM UTC 169
95.7
GitHub Action Run
11 run-3.3-Gemfile - 33726876820.11 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
12 run-4.0-gemfiles/grape_entity.gemfile - 33726876820.12 03 Sep 2026 07:12AM UTC 168
50.27
GitHub Action Run
13 run-3.4-gemfiles/rack_3_1.gemfile - 33726876820.13 03 Sep 2026 07:13AM UTC 168
95.69
GitHub Action Run
14 run-4.0-gemfiles/rack_3_1.gemfile - 33726876820.14 03 Sep 2026 07:13AM UTC 168
95.69
GitHub Action Run
15 run-4.0-Gemfile - 33726876820.15 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
16 run-4.0-gemfiles/multi_xml.gemfile - 33726876820.16 03 Sep 2026 07:12AM UTC 168
46.91
GitHub Action Run
17 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33726876820.17 03 Sep 2026 07:12AM UTC 168
46.94
GitHub Action Run
18 run-3.3-gemfiles/rack_3_0.gemfile - 33726876820.18 03 Sep 2026 07:12AM UTC 168
95.69
GitHub Action Run
19 run-4.0-gemfiles/multi_json.gemfile - 33726876820.19 03 Sep 2026 07:12AM UTC 168
47.4
GitHub Action Run
20 run-4.0-gemfiles/rack_2_2.gemfile - 33726876820.20 03 Sep 2026 07:13AM UTC 168
95.66
GitHub Action Run
21 run-3.3-gemfiles/rails_8_1.gemfile - 33726876820.21 03 Sep 2026 07:13AM UTC 169
95.7
GitHub Action Run
22 run-3.4-gemfiles/rails_7_2.gemfile - 33726876820.22 03 Sep 2026 07:13AM UTC 169
95.7
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 33726876820.23 03 Sep 2026 07:13AM UTC 169
95.7
GitHub Action Run
24 run-3.4-gemfiles/rails_8_0.gemfile - 33726876820.24 03 Sep 2026 07:13AM UTC 169
95.7
GitHub Action Run
25 run-4.0-gemfiles/dry_validation.gemfile - 33726876820.25 03 Sep 2026 07:13AM UTC 168
57.78
GitHub Action Run
26 run-4.0-gemfiles/grape_swagger.gemfile - 33726876820.26 03 Sep 2026 07:12AM UTC 168
55.16
GitHub Action Run
27 run-4.0-gemfiles/rails_8_0.gemfile - 33726876820.27 03 Sep 2026 07:13AM UTC 169
95.7
GitHub Action Run
28 run-4.0-gemfiles/rails_8_1.gemfile - 33726876820.28 03 Sep 2026 07:13AM UTC 169
95.7
GitHub Action Run
29 run-4.0-gemfiles/rails_7_2.gemfile - 33726876820.29 03 Sep 2026 07:12AM UTC 169
95.7
GitHub Action Run
30 run-3.3-gemfiles/rack_3_2.gemfile - 33726876820.30 03 Sep 2026 07:13AM UTC 168
95.69
GitHub Action Run
31 run-3.3-gemfiles/rails_7_2.gemfile - 33726876820.31 03 Sep 2026 07:12AM UTC 169
95.7
GitHub Action Run
32 run-3.4-gemfiles/rack_2_2.gemfile - 33726876820.32 03 Sep 2026 07:12AM UTC 168
95.66
GitHub Action Run
Source Files on build 33726876820
  • 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 #33726876820
  • 2714a196 on github
  • Prev Build on master (#33686307519)
  • Next Build on master (#33726996561)
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