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

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

Build:
Build:
LAST BUILD BRANCH: standardize-error-messages
DEFAULT BRANCH: master
Ran 31 Aug 2026 10:23AM 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 10:22AM UTC coverage: 96.977% (-0.001%) from 96.978%
33382111996

Pull #2877

github

ericproulx
Write route_info into the path captures instead of merging two hashes

`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>
Pull Request #2877: Write route_info into the path captures instead of merging two hashes

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%)

3896 of 3964 relevant lines covered (98.28%)

27153.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_7_2.gemfile - 33382111996.1 31 Aug 2026 10:24AM UTC 169
95.73
GitHub Action Run
2 run-4.0-Gemfile - 33382111996.2 31 Aug 2026 10:24AM UTC 168
95.72
GitHub Action Run
3 run-3.4-gemfiles/rails_8_1.gemfile - 33382111996.3 31 Aug 2026 10:27AM UTC 169
95.73
GitHub Action Run
4 run-3.4-gemfiles/rails_7_2.gemfile - 33382111996.4 31 Aug 2026 10:27AM UTC 169
95.73
GitHub Action Run
5 run-3.4-gemfiles/rack_3_1.gemfile - 33382111996.5 31 Aug 2026 10:25AM UTC 168
95.72
GitHub Action Run
6 run-4.0-gemfiles/grape_entity.gemfile - 33382111996.6 31 Aug 2026 10:26AM UTC 168
50.09
GitHub Action Run
7 run-3.3-gemfiles/rails_8_1.gemfile - 33382111996.7 31 Aug 2026 10:24AM UTC 169
95.73
GitHub Action Run
8 run-3.3-gemfiles/rack_3_1.gemfile - 33382111996.8 31 Aug 2026 10:27AM UTC 168
95.72
GitHub Action Run
9 run-3.3-Gemfile - 33382111996.9 31 Aug 2026 10:25AM UTC 168
95.72
GitHub Action Run
10 run-3.4-gemfiles/rack_2_2.gemfile - 33382111996.10 31 Aug 2026 10:28AM UTC 168
95.69
GitHub Action Run
11 run-4.0-gemfiles/rack_3_1.gemfile - 33382111996.11 31 Aug 2026 10:27AM UTC 168
95.72
GitHub Action Run
12 run-4.0-gemfiles/grape_swagger.gemfile - 33382111996.12 31 Aug 2026 10:27AM UTC 168
55.16
GitHub Action Run
13 run-3.3-gemfiles/rails_8_0.gemfile - 33382111996.13 31 Aug 2026 10:27AM UTC 169
95.73
GitHub Action Run
14 run-3.3-gemfiles/rack_3_0.gemfile - 33382111996.14 31 Aug 2026 10:26AM UTC 168
95.72
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 33382111996.15 31 Aug 2026 10:25AM UTC 168
95.69
GitHub Action Run
16 run-3.3-gemfiles/rack_3_2.gemfile - 33382111996.16 31 Aug 2026 10:23AM UTC 168
95.72
GitHub Action Run
17 run-4.0-gemfiles/multi_xml.gemfile - 33382111996.17 31 Aug 2026 10:25AM UTC 168
46.78
GitHub Action Run
18 run-4.0-gemfiles/rack_3_2.gemfile - 33382111996.18 31 Aug 2026 10:26AM UTC 168
95.72
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 33382111996.19 31 Aug 2026 10:27AM UTC 169
95.73
GitHub Action Run
20 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33382111996.20 31 Aug 2026 10:28AM UTC 168
46.82
GitHub Action Run
21 run-3.4-gemfiles/rack_3_0.gemfile - 33382111996.21 31 Aug 2026 10:26AM UTC 168
95.72
GitHub Action Run
22 run-3.4-gemfiles/rack_3_2.gemfile - 33382111996.22 31 Aug 2026 10:26AM UTC 168
95.72
GitHub Action Run
23 run-4.0-gemfiles/multi_json_1_20.gemfile - 33382111996.23 31 Aug 2026 10:26AM UTC 168
47.43
GitHub Action Run
24 run-4.0-gemfiles/dry_validation.gemfile - 33382111996.24 31 Aug 2026 10:27AM UTC 168
57.78
GitHub Action Run
25 run-4.0-gemfiles/rails_8_0.gemfile - 33382111996.25 31 Aug 2026 10:26AM UTC 169
95.73
GitHub Action Run
26 run-4.0-gemfiles/multi_json.gemfile - 33382111996.26 31 Aug 2026 10:26AM UTC 168
47.39
GitHub Action Run
27 run-4.0-gemfiles/hashie.gemfile - 33382111996.27 31 Aug 2026 10:26AM UTC 168
61.62
GitHub Action Run
28 run-3.4-Gemfile - 33382111996.28 31 Aug 2026 10:24AM UTC 168
95.72
GitHub Action Run
29 run-3.3-gemfiles/rack_2_2.gemfile - 33382111996.29 31 Aug 2026 10:27AM UTC 168
95.69
GitHub Action Run
30 run-4.0-gemfiles/rails_7_2.gemfile - 33382111996.30 31 Aug 2026 10:27AM UTC 169
95.73
GitHub Action Run
31 run-4.0-gemfiles/rails_8_1.gemfile - 33382111996.31 31 Aug 2026 10:26AM UTC 169
95.73
GitHub Action Run
32 run-4.0-gemfiles/rack_3_0.gemfile - 33382111996.32 31 Aug 2026 10:24AM UTC 168
95.72
GitHub Action Run
Source Files on build 33382111996
  • Tree
  • List 169
  • 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 #33382111996
  • Pull Request #2877
  • PR Base - master (#33365105943)
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