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

ruby-grape / grape / 26468390383 / 5
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: security/mounted-rack-auth-and-html-escape
DEFAULT BRANCH: master
Ran 26 May 2026 07:01PM UTC
Files 165
Run time 23s
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

26 May 2026 06:50PM UTC coverage: 95.701% (-0.01%) from 95.712%
26468390383.5

Pull #2735

github

ericproulx
Normalize Grape::Endpoint constructor inputs into an internal Data value object

Introduces `Grape::Endpoint::Options`, a `Data.define` value object built
once from the `**options` Hash in `Endpoint#initialize`. Internal call
sites read named accessors (`config.path`, `config.app`, etc.) instead
of poking `@options[:...]`.

The public surface is unchanged: `Endpoint.new(new_settings, **options, &block)`
still takes a Hash, and `attr_reader :options` still returns that Hash —
so downstream gems (e.g. grape-swagger) that read `endpoint.options[:app]`
continue to work.

`:method` is renamed to `:http_methods` on the value object to avoid
shadowing `Object#method` via the generated Data accessor.

No behavior change.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2735: Normalize Endpoint constructor inputs into an internal Data value object

1062 of 1171 branches covered (90.69%)

Branch coverage included in aggregate %.

3501 of 3597 relevant lines covered (97.33%)

989.46 hits per line

Source Files on job run-3.4-gemfiles/rails_7_2.gemfile - 26468390383.5
  • Tree
  • List 165
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 26468390383
  • 0555ad2c on github
  • Prev Job for on refactor/endpoint-options-data (#26418525997.4)
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