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

ruby-grape / grape / 32467741741
97%

Build:
DEFAULT BRANCH: master
Ran 21 Aug 2026 09:24AM 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

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

push

github

web-flow
Keep a :version path capture when the API declares no version (#2846)

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>

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

27111.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_1.gemfile - 32467741741.1 21 Aug 2026 09:25AM UTC 167
95.73
GitHub Action Run
2 run-4.0-gemfiles/hashie.gemfile - 32467741741.2 21 Aug 2026 09:24AM UTC 167
62.13
GitHub Action Run
3 run-3.3-Gemfile - 32467741741.3 21 Aug 2026 09:24AM UTC 167
95.73
GitHub Action Run
4 run-3.4-gemfiles/rails_8_0.gemfile - 32467741741.4 21 Aug 2026 09:24AM UTC 168
95.74
GitHub Action Run
5 run-4.0-gemfiles/rack_3_1.gemfile - 32467741741.5 21 Aug 2026 09:25AM UTC 167
95.73
GitHub Action Run
6 run-3.4-gemfiles/rack_3_1.gemfile - 32467741741.6 21 Aug 2026 09:24AM UTC 167
95.73
GitHub Action Run
7 run-4.0-Gemfile - 32467741741.7 21 Aug 2026 09:25AM UTC 167
95.73
GitHub Action Run
8 run-4.0-gemfiles/multi_json.gemfile - 32467741741.8 21 Aug 2026 09:25AM UTC 167
47.67
GitHub Action Run
9 run-3.3-gemfiles/rack_3_0.gemfile - 32467741741.9 21 Aug 2026 09:25AM UTC 167
95.73
GitHub Action Run
10 run-4.0-gemfiles/rails_8_0.gemfile - 32467741741.10 21 Aug 2026 09:25AM UTC 168
95.74
GitHub Action Run
11 run-3.3-gemfiles/rack_2_2.gemfile - 32467741741.11 21 Aug 2026 09:25AM UTC 167
95.7
GitHub Action Run
12 run-3.4-gemfiles/rails_8_1.gemfile - 32467741741.12 21 Aug 2026 09:24AM UTC 168
95.74
GitHub Action Run
13 run-3.4-Gemfile - 32467741741.13 21 Aug 2026 09:25AM UTC 167
95.73
GitHub Action Run
14 run-3.4-gemfiles/rack_3_2.gemfile - 32467741741.14 21 Aug 2026 09:24AM UTC 167
95.73
GitHub Action Run
15 run-4.0-gemfiles/dry_validation.gemfile - 32467741741.15 21 Aug 2026 09:25AM UTC 167
58.09
GitHub Action Run
16 run-3.4-gemfiles/rails_7_2.gemfile - 32467741741.16 21 Aug 2026 09:25AM UTC 168
95.74
GitHub Action Run
17 run-4.0-gemfiles/grape_entity.gemfile - 32467741741.17 21 Aug 2026 09:24AM UTC 167
50.31
GitHub Action Run
18 run-3.3-gemfiles/rails_7_2.gemfile - 32467741741.18 21 Aug 2026 09:25AM UTC 168
95.74
GitHub Action Run
19 run-4.0-gemfiles/multi_xml.gemfile - 32467741741.19 21 Aug 2026 09:25AM UTC 167
47.08
GitHub Action Run
20 run-3.4-gemfiles/rack_2_2.gemfile - 32467741741.20 21 Aug 2026 09:24AM UTC 167
95.7
GitHub Action Run
21 run-4.0-gemfiles/rack_3_2.gemfile - 32467741741.21 21 Aug 2026 09:24AM UTC 167
95.73
GitHub Action Run
22 run-4.0-gemfiles/rack_2_2.gemfile - 32467741741.22 21 Aug 2026 09:25AM UTC 167
95.7
GitHub Action Run
23 run-4.0-gemfiles/multi_json_1_20.gemfile - 32467741741.23 21 Aug 2026 09:24AM UTC 167
47.71
GitHub Action Run
24 run-3.4-gemfiles/rack_3_0.gemfile - 32467741741.24 21 Aug 2026 09:24AM UTC 167
95.73
GitHub Action Run
25 run-4.0-gemfiles/grape_swagger.gemfile - 32467741741.25 21 Aug 2026 09:25AM UTC 167
55.4
GitHub Action Run
26 run-4.0-gemfiles/multi_xml_0_8.gemfile - 32467741741.26 21 Aug 2026 09:24AM UTC 167
47.12
GitHub Action Run
27 run-4.0-gemfiles/rails_7_2.gemfile - 32467741741.27 21 Aug 2026 09:24AM UTC 168
95.74
GitHub Action Run
28 run-3.3-gemfiles/rails_8_1.gemfile - 32467741741.28 21 Aug 2026 09:24AM UTC 168
95.74
GitHub Action Run
29 run-4.0-gemfiles/rack_3_0.gemfile - 32467741741.29 21 Aug 2026 09:25AM UTC 167
95.73
GitHub Action Run
30 run-3.3-gemfiles/rack_3_2.gemfile - 32467741741.30 21 Aug 2026 09:24AM UTC 167
95.73
GitHub Action Run
31 run-3.3-gemfiles/rails_8_0.gemfile - 32467741741.31 21 Aug 2026 09:24AM UTC 168
95.74
GitHub Action Run
32 run-4.0-gemfiles/rails_8_1.gemfile - 32467741741.32 21 Aug 2026 09:24AM UTC 168
95.74
GitHub Action Run
Source Files on build 32467741741
  • 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 #32467741741
  • 22d79756 on github
  • Prev Build on master (#32341733105)
  • Next Build on master (#32581434646)
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