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

ruby-grape / grape / 25872788683 / 35
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: fix/router-request-time-map-mutation
DEFAULT BRANCH: master
Ran 14 May 2026 04:48PM UTC
Files 159
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

14 May 2026 04:45PM UTC coverage: 95.772% (-0.02%) from 95.787%
25872788683.35

Pull #2717

github

ericproulx
Convert Grape::Exceptions::ErrorResponse to a Data value object

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>
Pull Request #2717: Convert Grape::Exceptions::ErrorResponse to a Data value object

1049 of 1155 branches covered (90.82%)

Branch coverage included in aggregate %.

3413 of 3504 relevant lines covered (97.4%)

1005.14 hits per line

Source Files on job run-3.2-gemfiles/rails_8_1.gemfile - 25872788683.35
  • Tree
  • List 159
  • Changed 8
  • Source Changed 8
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25872788683
  • c4793b24 on github
  • Prev Job for on refactor/error-response-data (#25872754667.25)
  • Next Job for on refactor/error-response-data (#25872961403.19)
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