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

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

Build:
DEFAULT BRANCH: master
Ran 14 May 2026 04:58PM UTC
Files 160
Run time 9s
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

14 May 2026 04:57PM UTC coverage: 95.787% (-0.008%) from 95.795%
25873392065.22

push

github

web-flow
Convert Grape::Exceptions::ErrorResponse to a Data value object (#2717)

ErrorResponse was already structured as a value object — five readers,
kwarg-only constructor, hand-written `==`/`eql?`/`hash` — so swapping
the hand-rolled class for `Data.define` is a near-zero-risk
simplification. Twelve lines of boilerplate (the ivar-setting
constructor and the equality/hash trio) collapse into the Data
declaration itself, while the two class-level factories
(`from_exception` and `coerce`) and the custom `to_s` move into the
Data block unchanged.

Defaults stay on `#initialize` for the `Hash`-coerced branch in
`.coerce` (which slices a partial input) and for callers like
`Middleware::Error#default_rescue_handler` that build instances
without supplying `status`/`headers`.

No production behaviour change.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1062 of 1169 branches covered (90.85%)

Branch coverage included in aggregate %.

3462 of 3554 relevant lines covered (97.41%)

1002.64 hits per line

Source Files on job run-3.2-gemfiles/rack_3_2.gemfile - 25873392065.22
  • Tree
  • List 160
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25873392065
  • acd2a116 on github
  • Prev Job for on master (#25873175083.24)
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