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

ruby-grape / grape / 33413891834
97%

Build:
DEFAULT BRANCH: master
Ran 31 Aug 2026 04:24PM 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

31 Aug 2026 04:24PM UTC coverage: 96.983% (-0.002%) from 96.985%
33413891834

push

github

web-flow
Write route_info into the path captures instead of merging two hashes (#2877)

`Router#process_route` built the routing args from two hashes on every matched
request — one holding `route_info`, one holding the path captures — and merged
the second into the first:

    route_params = route.params_for(input)
    routing_args = { route_info: route }
    routing_args.merge!(route_params) if route_params.present?

`params_for` already returns a fresh Hash that nothing else holds, so the second
one is redundant: `route_info` can be written straight into it. Measured in one
process, on a route with one capture:

    two hashes + merge   322 ns   ->   one hash + []=   218 ns   1.48x

and one fewer object per request end to end.

The rebuild-per-attempt behaviour that #2824 depends on is unchanged — a
cascading route still cannot leak its `route_info` or captures into the next
candidate, because a fresh Hash is still built for each attempt.

One ordering consequence. A path param literally named `route_info` used to
overwrite the route object during the merge, leaving `DSL::InsideRoute#route`
answering a String; it is now shadowed by the route object instead. Neither
spelling was usable — `Request#routing_args_as_params` excludes `:route_info`
from params either way — but the internal key winning is the safer of the two.

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

1236 of 1328 branches covered (93.07%)

Branch coverage included in aggregate %.

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

3907 of 3975 relevant lines covered (98.29%)

27277.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_entity.gemfile - 33413891834.1 31 Aug 2026 04:24PM UTC 168
50.24
GitHub Action Run
2 run-4.0-gemfiles/multi_json.gemfile - 33413891834.2 31 Aug 2026 04:24PM UTC 168
47.48
GitHub Action Run
3 run-4.0-gemfiles/rails_7_2.gemfile - 33413891834.3 31 Aug 2026 04:24PM UTC 169
95.74
GitHub Action Run
4 run-4.0-gemfiles/rails_8_0.gemfile - 33413891834.4 31 Aug 2026 04:24PM UTC 169
95.74
GitHub Action Run
5 run-3.3-Gemfile - 33413891834.5 31 Aug 2026 04:25PM UTC 168
95.73
GitHub Action Run
6 run-3.3-gemfiles/rails_8_1.gemfile - 33413891834.6 31 Aug 2026 04:24PM UTC 169
95.74
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 33413891834.7 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
8 run-4.0-gemfiles/multi_json_1_20.gemfile - 33413891834.8 31 Aug 2026 04:24PM UTC 168
47.52
GitHub Action Run
9 run-3.4-gemfiles/rails_7_2.gemfile - 33413891834.9 31 Aug 2026 04:24PM UTC 169
95.74
GitHub Action Run
10 run-4.0-gemfiles/rack_2_2.gemfile - 33413891834.10 31 Aug 2026 04:24PM UTC 168
95.7
GitHub Action Run
11 run-4.0-gemfiles/rack_3_2.gemfile - 33413891834.11 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
12 run-3.3-gemfiles/rack_3_0.gemfile - 33413891834.12 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
13 run-4.0-gemfiles/dry_validation.gemfile - 33413891834.13 31 Aug 2026 04:24PM UTC 168
57.84
GitHub Action Run
14 run-3.4-Gemfile - 33413891834.14 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
15 run-4.0-gemfiles/grape_swagger.gemfile - 33413891834.15 31 Aug 2026 04:24PM UTC 168
55.2
GitHub Action Run
16 run-3.4-gemfiles/rack_3_0.gemfile - 33413891834.16 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
17 run-3.3-gemfiles/rack_3_2.gemfile - 33413891834.17 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
18 run-3.4-gemfiles/rails_8_0.gemfile - 33413891834.18 31 Aug 2026 04:25PM UTC 169
95.74
GitHub Action Run
19 run-3.4-gemfiles/rails_8_1.gemfile - 33413891834.19 31 Aug 2026 04:24PM UTC 169
95.74
GitHub Action Run
20 run-3.3-gemfiles/rails_7_2.gemfile - 33413891834.20 31 Aug 2026 04:25PM UTC 169
95.74
GitHub Action Run
21 run-3.4-gemfiles/rack_2_2.gemfile - 33413891834.21 31 Aug 2026 04:24PM UTC 168
95.7
GitHub Action Run
22 run-4.0-gemfiles/multi_xml.gemfile - 33413891834.22 31 Aug 2026 04:24PM UTC 168
46.88
GitHub Action Run
23 run-3.3-gemfiles/rack_3_1.gemfile - 33413891834.23 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
24 run-4.0-gemfiles/hashie.gemfile - 33413891834.24 31 Aug 2026 04:24PM UTC 168
61.73
GitHub Action Run
25 run-4.0-gemfiles/rack_3_0.gemfile - 33413891834.25 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
26 run-3.3-gemfiles/rails_8_0.gemfile - 33413891834.26 31 Aug 2026 04:24PM UTC 169
95.74
GitHub Action Run
27 run-4.0-gemfiles/rack_3_1.gemfile - 33413891834.27 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
28 run-3.4-gemfiles/rack_3_1.gemfile - 33413891834.28 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
29 run-4.0-gemfiles/rails_8_1.gemfile - 33413891834.29 31 Aug 2026 04:25PM UTC 169
95.74
GitHub Action Run
30 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33413891834.30 31 Aug 2026 04:24PM UTC 168
46.91
GitHub Action Run
31 run-4.0-Gemfile - 33413891834.31 31 Aug 2026 04:24PM UTC 168
95.73
GitHub Action Run
32 run-3.3-gemfiles/rack_2_2.gemfile - 33413891834.32 31 Aug 2026 04:24PM UTC 168
95.69
GitHub Action Run
Source Files on build 33413891834
  • 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 #33413891834
  • a5488082 on github
  • Prev Build on master (#33413663831)
  • Next Build on master (#33414208926)
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