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

ruby-grape / grape / 29144212943 / 18
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: drop_namespace_description
DEFAULT BRANCH: master
Ran 11 Jul 2026 07:18AM 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

11 Jul 2026 07:16AM UTC coverage: 95.165% (+0.006%) from 95.159%
29144212943.18

Pull #2792

github

ericproulx
Nest Grape::Path inside Grape::Router::Pattern

Grape::Path only ever existed to compute the origin/suffix strings that
Grape::Router::Pattern compiles into a matcher — it had a single caller
(Endpoint#to_routes) yet sat at the top level of the Grape namespace as if
it were public.

Move it to Grape::Router::Pattern::Path and add a Pattern.build factory that
takes the raw path, namespace and inheritable settings and constructs the
Path internally, so the endpoint makes one call instead of building a Path
and threading its origin/suffix into Pattern.new. Pattern.new stays
value-based (origin:/suffix:/...), so the matcher never learns about the
settings-hash shape; only Path (and the thin factory) is settings-aware.

Grape::Path is kept as a deprecated constant proxy to the new location.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Pull Request #2792: Nest Grape::Path inside Grape::Router::Pattern

1099 of 1220 branches covered (90.08%)

Branch coverage included in aggregate %.

3546 of 3661 relevant lines covered (96.86%)

972.38 hits per line

Source Files on job run-4.0-gemfiles/rack_2_2.gemfile - 29144212943.18
  • Tree
  • List 167
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 29144212943
  • eaaee65f on github
  • Prev Job for on refactor/nest-path-in-pattern (#28782563800.24)
  • Next Job for on refactor/nest-path-in-pattern (#29200072398.32)
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