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

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

Build:
Build:
LAST BUILD BRANCH: fix/route-success-failure-readers
DEFAULT BRANCH: master
Ran 20 Aug 2026 06:41AM UTC
Jobs 32
Files 168
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

20 Aug 2026 06:41AM UTC coverage: 97.006% (+0.007%) from 96.999%
32340656610

Pull #2846

github

ericproulx
Keep a :version path capture when the API declares no version

Grape::Request#make_params dropped :version from the routing args
unconditionally, alongside :route_info. That is right when Grape put it
there -- a path-versioned API captures the version as a segment and exposes
it through env['api.version'] rather than params -- but it is not always
Grape's.

An API that declares no version can name a param :version:

    route_param :version do
      get { params[:version] }    # => nil
    end

The route matched and Mustermann captured the segment, but the value was
filtered out before the endpoint saw it, so params[:version] came back nil
and the key was absent from params entirely. Same for a bare
get '/:version'. Silent loss of a segment on a route that had matched.

A route reports a #version only when the API declared one, so use that to
tell the two apart: drop the capture when the route carries a version,
keep it otherwise. Path, header and param versioning are unaffected --
their routes all report a version, so :version stays out of params and
env['api.version'] remains the way to read it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2846: Keep a :version path capture when the API declares no version

1218 of 1307 branches covered (93.19%)

Branch coverage included in aggregate %.

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

3836 of 3903 relevant lines covered (98.28%)

27083.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json_1_20.gemfile - 32340656610.1 20 Aug 2026 06:41AM UTC 167
47.71
GitHub Action Run
2 run-3.4-Gemfile - 32340656610.2 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
3 run-3.4-gemfiles/rails_8_1.gemfile - 32340656610.3 20 Aug 2026 06:41AM UTC 168
95.74
GitHub Action Run
4 run-3.3-Gemfile - 32340656610.4 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
5 run-3.4-gemfiles/rack_3_1.gemfile - 32340656610.5 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
6 run-4.0-gemfiles/rails_8_1.gemfile - 32340656610.6 20 Aug 2026 06:41AM UTC 168
95.74
GitHub Action Run
7 run-4.0-gemfiles/rack_2_2.gemfile - 32340656610.7 20 Aug 2026 06:41AM UTC 167
95.7
GitHub Action Run
8 run-4.0-Gemfile - 32340656610.8 20 Aug 2026 06:41AM UTC 167
95.73
GitHub Action Run
9 run-4.0-gemfiles/multi_json.gemfile - 32340656610.9 20 Aug 2026 06:41AM UTC 167
47.67
GitHub Action Run
10 run-4.0-gemfiles/rack_3_1.gemfile - 32340656610.10 20 Aug 2026 06:41AM UTC 167
95.73
GitHub Action Run
11 run-3.4-gemfiles/rack_3_2.gemfile - 32340656610.11 20 Aug 2026 06:41AM UTC 167
95.73
GitHub Action Run
12 run-3.3-gemfiles/rack_2_2.gemfile - 32340656610.12 20 Aug 2026 06:42AM UTC 167
95.7
GitHub Action Run
13 run-4.0-gemfiles/multi_xml.gemfile - 32340656610.13 20 Aug 2026 06:42AM UTC 167
47.08
GitHub Action Run
14 run-3.4-gemfiles/rails_8_0.gemfile - 32340656610.14 20 Aug 2026 06:41AM UTC 168
95.74
GitHub Action Run
15 run-3.3-gemfiles/rails_8_1.gemfile - 32340656610.15 20 Aug 2026 06:42AM UTC 168
95.74
GitHub Action Run
16 run-4.0-gemfiles/grape_swagger.gemfile - 32340656610.16 20 Aug 2026 06:42AM UTC 167
55.4
GitHub Action Run
17 run-3.3-gemfiles/rails_7_2.gemfile - 32340656610.17 20 Aug 2026 06:42AM UTC 168
95.74
GitHub Action Run
18 run-4.0-gemfiles/rack_3_2.gemfile - 32340656610.18 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
19 run-3.3-gemfiles/rails_8_0.gemfile - 32340656610.19 20 Aug 2026 06:42AM UTC 168
95.74
GitHub Action Run
20 run-3.3-gemfiles/rack_3_0.gemfile - 32340656610.20 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
21 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32340656610.21 20 Aug 2026 06:42AM UTC 167
47.12
GitHub Action Run
22 run-3.4-gemfiles/rails_7_2.gemfile - 32340656610.22 20 Aug 2026 06:42AM UTC 168
95.74
GitHub Action Run
23 run-4.0-gemfiles/rails_7_2.gemfile - 32340656610.23 20 Aug 2026 06:41AM UTC 168
95.74
GitHub Action Run
24 run-3.4-gemfiles/rack_2_2.gemfile - 32340656610.24 20 Aug 2026 06:42AM UTC 167
95.7
GitHub Action Run
25 run-3.3-gemfiles/rack_3_1.gemfile - 32340656610.25 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
26 run-3.3-gemfiles/rack_3_2.gemfile - 32340656610.26 20 Aug 2026 06:41AM UTC 167
95.73
GitHub Action Run
27 run-3.4-gemfiles/rack_3_0.gemfile - 32340656610.27 20 Aug 2026 06:41AM UTC 167
95.73
GitHub Action Run
28 run-4.0-gemfiles/dry_validation.gemfile - 32340656610.28 20 Aug 2026 06:41AM UTC 167
58.09
GitHub Action Run
29 run-4.0-gemfiles/rails_8_0.gemfile - 32340656610.29 20 Aug 2026 06:42AM UTC 168
95.74
GitHub Action Run
30 run-4.0-gemfiles/rack_3_0.gemfile - 32340656610.30 20 Aug 2026 06:42AM UTC 167
95.73
GitHub Action Run
31 run-4.0-gemfiles/hashie.gemfile - 32340656610.31 20 Aug 2026 06:42AM UTC 167
62.13
GitHub Action Run
32 run-4.0-gemfiles/grape_entity.gemfile - 32340656610.32 20 Aug 2026 06:41AM UTC 167
50.31
GitHub Action Run
Source Files on build 32340656610
  • Tree
  • List 168
  • 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 #32340656610
  • Pull Request #2846
  • PR Base - master (#32340564879)
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