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

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

Build:
Build:
LAST BUILD BRANCH: router-compile-registered-methods
DEFAULT BRANCH: master
Ran 02 Sep 2026 01:54PM UTC
Jobs 32
Files 169
Run time 2min
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

02 Sep 2026 01:54PM UTC coverage: 96.936% (-0.002%) from 96.938%
33638599393

Pull #2886

github

ericproulx
Compile the router's optimized map from the registered routes

`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 :query, '/search'`
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, QUERY, HEAD` and then answered every QUERY
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 — RFC 10008's QUERY among them.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2886: Compile the router's optimized map from the registered routes

1235 of 1330 branches covered (92.86%)

Branch coverage included in aggregate %.

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

3921 of 3989 relevant lines covered (98.3%)

27377.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml.gemfile - 33638599393.1 02 Sep 2026 01:54PM UTC 168
46.88
GitHub Action Run
2 run-4.0-gemfiles/rails_8_1.gemfile - 33638599393.2 02 Sep 2026 01:54PM UTC 169
95.69
GitHub Action Run
3 run-4.0-gemfiles/grape_entity.gemfile - 33638599393.3 02 Sep 2026 01:54PM UTC 168
50.29
GitHub Action Run
4 run-4.0-gemfiles/multi_json_1_20.gemfile - 33638599393.4 02 Sep 2026 01:54PM UTC 168
47.41
GitHub Action Run
5 run-3.4-gemfiles/rails_8_1.gemfile - 33638599393.5 02 Sep 2026 01:55PM UTC 169
95.69
GitHub Action Run
6 run-3.4-Gemfile - 33638599393.6 02 Sep 2026 01:55PM UTC 168
95.69
GitHub Action Run
7 run-3.3-gemfiles/rack_3_2.gemfile - 33638599393.7 02 Sep 2026 01:55PM UTC 168
95.69
GitHub Action Run
8 run-4.0-gemfiles/hashie.gemfile - 33638599393.8 02 Sep 2026 01:54PM UTC 168
61.77
GitHub Action Run
9 run-4.0-gemfiles/rack_3_1.gemfile - 33638599393.9 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
10 run-4.0-gemfiles/multi_json.gemfile - 33638599393.10 02 Sep 2026 01:54PM UTC 168
47.37
GitHub Action Run
11 run-3.3-gemfiles/rails_8_0.gemfile - 33638599393.11 02 Sep 2026 01:55PM UTC 169
95.69
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 33638599393.12 02 Sep 2026 01:54PM UTC 168
55.19
GitHub Action Run
13 run-4.0-gemfiles/rack_3_0.gemfile - 33638599393.13 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
14 run-3.3-gemfiles/rack_3_0.gemfile - 33638599393.14 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
15 run-4.0-gemfiles/rails_8_0.gemfile - 33638599393.15 02 Sep 2026 01:55PM UTC 169
95.69
GitHub Action Run
16 run-3.4-gemfiles/rack_3_2.gemfile - 33638599393.16 02 Sep 2026 01:55PM UTC 168
95.69
GitHub Action Run
17 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33638599393.17 02 Sep 2026 01:55PM UTC 168
46.92
GitHub Action Run
18 run-3.3-gemfiles/rails_7_2.gemfile - 33638599393.18 02 Sep 2026 01:54PM UTC 169
95.69
GitHub Action Run
19 run-3.3-Gemfile - 33638599393.19 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
20 run-3.4-gemfiles/rack_2_2.gemfile - 33638599393.20 02 Sep 2026 01:55PM UTC 168
95.65
GitHub Action Run
21 run-4.0-gemfiles/dry_validation.gemfile - 33638599393.21 02 Sep 2026 01:54PM UTC 168
57.8
GitHub Action Run
22 run-3.3-gemfiles/rack_3_1.gemfile - 33638599393.22 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
23 run-3.3-gemfiles/rails_8_1.gemfile - 33638599393.23 02 Sep 2026 01:54PM UTC 169
95.69
GitHub Action Run
24 run-3.4-gemfiles/rails_7_2.gemfile - 33638599393.24 02 Sep 2026 01:55PM UTC 169
95.69
GitHub Action Run
25 run-4.0-Gemfile - 33638599393.25 02 Sep 2026 01:55PM UTC 168
95.69
GitHub Action Run
26 run-4.0-gemfiles/rack_2_2.gemfile - 33638599393.26 02 Sep 2026 01:54PM UTC 168
95.65
GitHub Action Run
27 run-3.3-gemfiles/rack_2_2.gemfile - 33638599393.27 02 Sep 2026 01:54PM UTC 168
95.65
GitHub Action Run
28 run-3.4-gemfiles/rails_8_0.gemfile - 33638599393.28 02 Sep 2026 01:54PM UTC 169
95.69
GitHub Action Run
29 run-4.0-gemfiles/rack_3_2.gemfile - 33638599393.29 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
30 run-3.4-gemfiles/rack_3_0.gemfile - 33638599393.30 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
31 run-3.4-gemfiles/rack_3_1.gemfile - 33638599393.31 02 Sep 2026 01:54PM UTC 168
95.69
GitHub Action Run
32 run-4.0-gemfiles/rails_7_2.gemfile - 33638599393.32 02 Sep 2026 01:54PM UTC 169
95.69
GitHub Action Run
Source Files on build 33638599393
  • 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 #33638599393
  • Pull Request #2886
  • PR Base - master (#33611766024)
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