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

ruby-grape / grape / 28782563800 / 3
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 06 Jul 2026 09:45AM UTC
Files 166
Run time 12s
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

06 Jul 2026 09:44AM UTC coverage: 95.2% (-0.004%) from 95.204%
28782563800.3

push

github

web-flow
Read a route's version, anchor and requirements from its pattern (#2783)

`version`, `anchor` and `requirements` are the attributes that shape the
matcher — they are passed to `Grape::Router::Pattern` to build the
mustermann pattern. They were also passed a second time to
`Grape::Router::Route` and stored as ivars, purely to back the readers.

Expose them on `Pattern` instead (`attr_reader`) and delegate the
`BaseRoute` readers to `@pattern`, alongside the existing `path`/`origin`
delegation. `to_routes` no longer passes them to `Route.new`. Metadata
that does not shape matching — `namespace`, `prefix`, `settings` — stays
as route keyword arguments.

grape-swagger already passes these to `Pattern.new` and none of them to
`Route.new`, so its routes' readers become correct rather than `nil`.

Also collapse `extract_capture` to a guard plus a single merge. With the
`format` keyword gone (#2782) it just adds an optional `version`
constraint to `requirements`, so the intermediate accumulator was noise.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

1101 of 1220 branches covered (90.25%)

Branch coverage included in aggregate %.

3540 of 3655 relevant lines covered (96.85%)

970.85 hits per line

Source Files on job run-4.0-gemfiles/rack_3_2.gemfile - 28782563800.3
  • Tree
  • List 166
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 28782563800
  • 7f7b9e93 on github
  • Prev Job for on master (#28752506290.14)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc