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

ruby-grape / grape / 26327699911 / 14
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 23 May 2026 08:12AM UTC
Files 163
Run time 8s
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

23 May 2026 08:07AM UTC coverage: 95.69% (+0.002%) from 95.688%
26327699911.14

Pull #2734

github

ericproulx
Extract `options_route_enabled` from Endpoint options Hash into a dedicated accessor

`options_route_enabled` is not a constructor input — it's set later by
`Grape::API::Instance#configure_options_routes` via
`last_route.app.options[:options_route_enabled] = true`. Threading it
through the `**options` Hash was the only reason `Endpoint#options` had
to remain externally mutable.

This change:

- Adds `attr_accessor :options_route_enabled` on `Grape::Endpoint`,
  initialized to `false`.
- Rewrites `options?` to read the ivar instead of `options[:options_route_enabled]`.
- Rewrites the writer at `Grape::API::Instance` to use
  `last_route.app.options_route_enabled = true`.

No behavior change. Sets the stage for tightening the rest of the
Endpoint constructor surface in a follow-up.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2734: Extract options_route_enabled from Endpoint options Hash into a dedicated accessor

1062 of 1171 branches covered (90.69%)

Branch coverage included in aggregate %.

3489 of 3585 relevant lines covered (97.32%)

989.59 hits per line

Source Files on job run-3.4-Gemfile - 26327699911.14
  • Tree
  • List 163
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26327699911
  • de79306b on github
  • Prev Job for on refactor/endpoint-options-route-enabled (#26292056269.38)
  • Next Job for on refactor/endpoint-options-route-enabled (#26418394429.29)
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