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

ruby-grape / grape / 28751236776 / 19
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/router-request-time-map-mutation
DEFAULT BRANCH: master
Ran 05 Jul 2026 06:52PM UTC
Files 167
Run time 5s
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

05 Jul 2026 06:51PM UTC coverage: 95.187%. Remained the same
28751236776.19

Pull #2783

github

ericproulx
Read a route's version, anchor and requirements from its pattern

`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`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2783: Read a route's version, anchor and requirements from its pattern

1104 of 1224 branches covered (90.2%)

Branch coverage included in aggregate %.

3544 of 3659 relevant lines covered (96.86%)

972.54 hits per line

Source Files on job run-4.0-gemfiles/rails_8_0.gemfile - 28751236776.19
  • Tree
  • List 167
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 28751236776
  • 442088e3 on github
  • Prev Job for on route_match_params_via_pattern (#28747175440.29)
  • Next Job for on route_match_params_via_pattern (#28751482172.25)
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