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

ruby-grape / grape / 30238893681 / 5
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/adversarial-sweep-2026-08
DEFAULT BRANCH: master
Ran 27 Jul 2026 05:10AM UTC
Files 167
Run time 8s
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

27 Jul 2026 05:07AM UTC coverage: 95.564% (+0.01%) from 95.553%
30238893681.5

Pull #2826

github

ericproulx
Set api.version when the version is the only path segment

The path versioner only extracted the version when a second slash
followed it (path_info.index('/', 1)), so the root route of a
path-versioned API (GET /v1, or /v1.json with a format suffix) matched
and ran without env['api.version'] — the `version` helper returned nil
and entity `version:` embeds were omitted.

When the path is a single segment, record the version on an exact match
against the declared versions, trimming a trailing .format suffix
(right-to-left, so dotted versions like v1.2 still match). An unmatched
segment is left for the router to resolve — never a 404 from here.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #2826: Set api.version when the version is the only path segment

1161 of 1277 branches covered (90.92%)

Branch coverage included in aggregate %.

3772 of 3885 relevant lines covered (97.09%)

1044.17 hits per line

Source Files on job run-3.3-gemfiles/rack_3_0.gemfile - 30238893681.5
  • Tree
  • List 167
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 30238893681
  • 4bd31c62 on github
  • Prev Job for on fix-path-versioner-root-version (#30226977190.4)
  • Next Job for on fix-path-versioner-root-version (#30239000391.24)
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