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

ruby-grape / grape / 30486032579 / 17
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 29 Jul 2026 07:49PM UTC
Files 166
Run time 6s
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

29 Jul 2026 07:48PM UTC coverage: 95.575% (-0.01%) from 95.585%
30486032579.17

push

github

web-flow
Set api.version when the version is the only path segment (#2826)

* 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>

* Clarify dotted version and prefix contexts with nested RSpec contexts

Split the dotted version and prefix test cases into separate nested contexts
to make it explicit that they test different scenarios (different options
overrides). This answers the question: why do we need to override options[:versions]
or options[:prefix] mid-context? Answer: we don't — each scenario gets its own
context with its own let(:options).

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

1169 of 1283 branches covered (91.11%)

Branch coverage included in aggregate %.

3756 of 3870 relevant lines covered (97.05%)

1114.21 hits per line

Source Files on job run-3.4-gemfiles/rack_3_0.gemfile - 30486032579.17
  • Tree
  • List 166
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 30486032579
  • ba112453 on github
  • Prev Job for on master (#30485820748.22)
  • Next Job for on master (#30542026971.1)
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