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

ruby-grape / grape / 28751727639 / 12
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 05 Jul 2026 07:11PM 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

05 Jul 2026 07:09PM UTC coverage: 95.204% (+0.003%) from 95.201%
28751727639.12

Pull #2784

github

ericproulx
Move HEAD route creation into Grape::Router::Route#to_head

`Endpoint#mount_in` built the HEAD variant of a GET route inline: dup the
route, flip its request method, then apply and append it. Duplicating a
route and turning it into a HEAD request is the route's own concern, not
the endpoint's.

Add `Route#to_head`, which returns a fresh HEAD copy of the route, and
demote `convert_to_head_request!` to `protected` now that `to_head` is
its only caller. `mount_in` keeps the decision of whether to add a HEAD
route (the `do_not_route_head` setting and the GET check) and just calls
`route.to_head.apply(self)`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2784: Move HEAD route creation into Grape::Router::Route#to_head

1103 of 1222 branches covered (90.26%)

Branch coverage included in aggregate %.

3542 of 3657 relevant lines covered (96.86%)

973.75 hits per line

Source Files on job run-4.0-gemfiles/rack_3_1.gemfile - 28751727639.12
  • Tree
  • List 166
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 28751727639
  • 7cc4ae81 on github
  • Prev Job for on head_route_on_route_class (#28751276321.31)
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