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

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

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

21 Aug 2026 09:19AM UTC coverage: 97.006% (+0.007%) from 96.999%
32467362871

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

27107.68 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rails_8_0.gemfile - 32467362871.1 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
2 run-4.0-gemfiles/multi_xml.gemfile - 32467362871.2 21 Aug 2026 09:20AM UTC 167
47.08
GitHub Action Run
3 run-3.4-gemfiles/rails_8_1.gemfile - 32467362871.3 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
4 run-3.3-gemfiles/rails_8_1.gemfile - 32467362871.4 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
5 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32467362871.5 21 Aug 2026 09:20AM UTC 167
47.12
GitHub Action Run
6 run-4.0-gemfiles/grape_entity.gemfile - 32467362871.6 21 Aug 2026 09:20AM UTC 167
50.31
GitHub Action Run
7 run-4.0-gemfiles/rails_7_2.gemfile - 32467362871.7 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
8 run-3.3-gemfiles/rack_2_2.gemfile - 32467362871.8 21 Aug 2026 09:20AM UTC 167
95.7
GitHub Action Run
9 run-3.3-gemfiles/rack_3_2.gemfile - 32467362871.9 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
10 run-3.3-gemfiles/rack_3_0.gemfile - 32467362871.10 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
11 run-3.4-gemfiles/rails_8_0.gemfile - 32467362871.11 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
12 run-3.4-gemfiles/rack_2_2.gemfile - 32467362871.12 21 Aug 2026 09:20AM UTC 167
95.7
GitHub Action Run
13 run-3.4-Gemfile - 32467362871.13 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
14 run-4.0-gemfiles/multi_json.gemfile - 32467362871.14 21 Aug 2026 09:20AM UTC 167
47.67
GitHub Action Run
15 run-4.0-gemfiles/rack_3_2.gemfile - 32467362871.15 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
16 run-4.0-gemfiles/rack_3_0.gemfile - 32467362871.16 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
17 run-4.0-gemfiles/dry_validation.gemfile - 32467362871.17 21 Aug 2026 09:20AM UTC 167
58.09
GitHub Action Run
18 run-3.4-gemfiles/rack_3_2.gemfile - 32467362871.18 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
19 run-4.0-gemfiles/hashie.gemfile - 32467362871.19 21 Aug 2026 09:20AM UTC 167
62.13
GitHub Action Run
20 run-4.0-gemfiles/rails_8_1.gemfile - 32467362871.20 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
21 run-3.3-gemfiles/rails_7_2.gemfile - 32467362871.21 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
22 run-3.3-Gemfile - 32467362871.22 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
23 run-4.0-gemfiles/rails_8_0.gemfile - 32467362871.23 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
24 run-4.0-gemfiles/rack_3_1.gemfile - 32467362871.24 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
25 run-3.4-gemfiles/rack_3_0.gemfile - 32467362871.25 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
26 run-3.4-gemfiles/rack_3_1.gemfile - 32467362871.26 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
27 run-3.3-gemfiles/rack_3_1.gemfile - 32467362871.27 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
28 run-3.4-gemfiles/rails_7_2.gemfile - 32467362871.28 21 Aug 2026 09:20AM UTC 168
95.74
GitHub Action Run
29 run-4.0-gemfiles/rack_2_2.gemfile - 32467362871.29 21 Aug 2026 09:20AM UTC 167
95.7
GitHub Action Run
30 run-4.0-gemfiles/multi_json_1_20.gemfile - 32467362871.30 21 Aug 2026 09:20AM UTC 167
47.71
GitHub Action Run
31 run-4.0-gemfiles/grape_swagger.gemfile - 32467362871.31 21 Aug 2026 09:20AM UTC 167
55.4
GitHub Action Run
32 run-4.0-Gemfile - 32467362871.32 21 Aug 2026 09:20AM UTC 167
95.73
GitHub Action Run
Source Files on build 32467362871
  • 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 #32467362871
  • Pull Request #2846
  • PR Base - master (#32341733105)
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