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

ruby-grape / grape / 28708868356 / 22
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 04 Jul 2026 02:18PM 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

04 Jul 2026 02:13PM UTC coverage: 95.137%. Remained the same
28708868356.22

Pull #2778

github

ericproulx
Rename Grape::Endpoint's for: keyword to api: and expose #api

`for` identified the API an endpoint belongs to, but it is a reserved
word: it can only reach `Options` through `**rest` and its value can't be
referenced as a local. Rename it to `api:`, an explicit keyword on
`Grape::Endpoint#initialize`, and drop the `**rest` workaround from
`Options`.

`api` stays in `config` because it is load-bearing: the endpoint reaches
the mounting API's live `configuration` (used by remountable APIs and
read lazily at request time) through it, so it cannot be captured at
construction. `logger` and the new public `#api` reader are exposed via
`Forwardable` delegation to the config value object.

The owning API is no longer carried on the endpoint's public options Hash
(`endpoint.options[:for]` is gone); use `endpoint.api` instead. Only
in-repo reader was one spec. Documented in UPGRADING.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2778: Rename Grape::Endpoint's for: keyword to api: and expose #api

1102 of 1224 branches covered (90.03%)

Branch coverage included in aggregate %.

3535 of 3650 relevant lines covered (96.85%)

965.75 hits per line

Source Files on job run-4.0-gemfiles/rack_2_2.gemfile - 28708868356.22
  • Tree
  • List 166
  • Changed 4
  • Source Changed 4
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 28708868356
  • e26108ba on github
  • Prev Job for on endpoint_api_kwarg (#28701584000.2)
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