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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 06 Jul 2026 09:58AM UTC
Jobs 32
Files 167
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

06 Jul 2026 09:57AM UTC coverage: 96.682% (+0.02%) from 96.661%
28783338172

Pull #2785

github

ericproulx
Make route params a first-class endpoint input and split Route#params

`Route#params(input = nil)` did two unrelated jobs behind one signature:
with an input it extracted param values from a matched path (the router's
job); with no input it returned the declared param definitions (grape-
swagger's job, for docs). Split them:

- `Route#params` (no arg) returns the declared definitions.
- `Route#params_for(input)` extracts values; the router calls it.

The definitions also stop riding in the `route_options` bag. `params` is
now a first-class endpoint input:

- `Grape::Endpoint::Options` gains a `:params` member and `Endpoint.new`
  a `params:` keyword.
- The DSL composes it (declared params deep-merged with any from `desc`)
  via a `prepare_params` helper and passes it on its own, out of
  `route_options`.
- `to_routes` and `#declared` read `config.params`; `Route` receives it
  as a `params:` keyword backing `#params`.

Nothing outside grape read `route.options[:params]` (grape-swagger uses
the `route.params` method), so dropping it from the bag is safe.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2785: Make route params a first-class endpoint input and split Route#params

1126 of 1220 branches covered (92.3%)

Branch coverage included in aggregate %.

20 of 20 new or added lines in 6 files covered. (100.0%)

3595 of 3663 relevant lines covered (98.14%)

23354.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-Gemfile - 28783338172.1 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
2 run-3.3-gemfiles/rack_3_2.gemfile - 28783338172.2 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
3 run-3.3-gemfiles/rack_3_1.gemfile - 28783338172.3 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
4 run-4.0-gemfiles/rails_8_1.gemfile - 28783338172.4 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
5 run-4.0-gemfiles/multi_xml_0_8.gemfile - 28783338172.5 06 Jul 2026 09:58AM UTC 166
47.12
GitHub Action Run
6 run-3.4-gemfiles/rack_3_2.gemfile - 28783338172.6 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
7 run-3.4-gemfiles/rails_8_1.gemfile - 28783338172.7 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
8 run-4.0-gemfiles/hashie.gemfile - 28783338172.8 06 Jul 2026 09:58AM UTC 166
62.42
GitHub Action Run
9 run-3.3-gemfiles/rails_7_2.gemfile - 28783338172.9 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 28783338172.10 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
11 run-3.4-gemfiles/rails_7_2.gemfile - 28783338172.11 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
12 run-4.0-gemfiles/rack_3_2.gemfile - 28783338172.12 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
13 run-4.0-gemfiles/rails_7_2.gemfile - 28783338172.13 06 Jul 2026 09:59AM UTC 167
95.23
GitHub Action Run
14 run-4.0-gemfiles/grape_entity.gemfile - 28783338172.14 06 Jul 2026 09:59AM UTC 166
50.38
GitHub Action Run
15 run-3.3-gemfiles/rails_8_0.gemfile - 28783338172.15 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
16 run-3.3-gemfiles/rack_2_2.gemfile - 28783338172.16 06 Jul 2026 09:58AM UTC 166
95.18
GitHub Action Run
17 run-3.4-gemfiles/rails_8_0.gemfile - 28783338172.17 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
18 run-4.0-gemfiles/multi_xml.gemfile - 28783338172.18 06 Jul 2026 09:58AM UTC 166
47.08
GitHub Action Run
19 run-4.0-Gemfile - 28783338172.19 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
20 run-4.0-gemfiles/rack_2_2.gemfile - 28783338172.20 06 Jul 2026 09:59AM UTC 166
95.18
GitHub Action Run
21 run-4.0-gemfiles/multi_json.gemfile - 28783338172.21 06 Jul 2026 09:58AM UTC 166
47.61
GitHub Action Run
22 run-4.0-gemfiles/multi_json_1_20.gemfile - 28783338172.22 06 Jul 2026 09:58AM UTC 166
47.65
GitHub Action Run
23 run-4.0-gemfiles/grape_swagger.gemfile - 28783338172.23 06 Jul 2026 09:58AM UTC 166
55.24
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 28783338172.24 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
25 run-4.0-gemfiles/rack_3_0.gemfile - 28783338172.25 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
26 run-4.0-gemfiles/dry_validation.gemfile - 28783338172.26 06 Jul 2026 09:58AM UTC 166
58.27
GitHub Action Run
27 run-3.4-gemfiles/rack_2_2.gemfile - 28783338172.27 06 Jul 2026 09:58AM UTC 166
95.18
GitHub Action Run
28 run-4.0-gemfiles/rails_8_0.gemfile - 28783338172.28 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
29 run-3.3-gemfiles/rails_8_1.gemfile - 28783338172.29 06 Jul 2026 09:58AM UTC 167
95.23
GitHub Action Run
30 run-3.4-gemfiles/rack_3_0.gemfile - 28783338172.30 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
31 run-4.0-gemfiles/rack_3_1.gemfile - 28783338172.31 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
32 run-3.3-Gemfile - 28783338172.32 06 Jul 2026 09:58AM UTC 166
95.22
GitHub Action Run
Source Files on build 28783338172
  • Tree
  • List 167
  • Changed 6
  • Source Changed 6
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28783338172
  • Pull Request #2785
  • PR Base - master (#28782563800)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc