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

ruby-grape / grape / 5449198434
97%

Build:
DEFAULT BRANCH: master
Ran 03 Jul 2023 11:09PM UTC
Jobs 20
Files 203
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

pending completion
5449198434

push

github

web-flow
Allow specifying a handler for grape_exceptions (#2342)

* Allow specifying a handler for grape_exceptions

This allows you to customize the format of the error response for grape exceptions:

For example, you could do something like this:

```rb
rescue_from :grape_exceptions do |e|
  error!({ errors: [{ code: 'Error', message: e.message.squish }] }, e.status)
end
```

which would render like this:

```
{
  "errors": [
    {
      "code": "Error",
      "message": "Problem: message body does not match declared format Resolution: when specifying application/json as content-type, you must pass valid application/json in the request's 'body'"
    }
  ]
}
```

* match format

* Fix issue caught by tests

* Update README & CHANGELOG

* Add spec to demonstrate usage

* Fix rubocop offenses

* Fix rubocop offences

40 of 41 new or added lines in 3 files covered. (97.56%)

15091 of 15237 relevant lines covered (99.04%)

785.67 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.1-rack_2_0 - 5449198434.1 03 Jul 2023 11:09PM UTC 0
48.52
GitHub Action Run
2 run-2.7-rack_1_0 - 5449198434.2 03 Jul 2023 11:09PM UTC 0
98.99
GitHub Action Run
3 run-3.2-rails_6_1 - 5449198434.3 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
4 run-3.0-rails_7_0 - 5449198434.4 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
5 run-3.0-rails_6_1 - 5449198434.5 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
6 run-3.0-rails_6_0 - 5449198434.6 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
7 run-3.1-rails_6_0 - 5449198434.7 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
8 run-3.2-rails_6_0 - 5449198434.8 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
9 run-2.7-rails_6_1 - 5449198434.9 03 Jul 2023 11:10PM UTC 0
99.01
GitHub Action Run
10 run-3.1-rails_6_1 - 5449198434.10 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
11 run-2.7-multi_xml - 5449198434.11 03 Jul 2023 11:09PM UTC 0
75.0
GitHub Action Run
12 run-2.7-rails_6_0 - 5449198434.12 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
13 run-2.7-rack_2_0 - 5449198434.13 03 Jul 2023 11:10PM UTC 0
48.52
GitHub Action Run
14 run-3.0-rack_2_0 - 5449198434.14 03 Jul 2023 11:09PM UTC 0
48.52
GitHub Action Run
15 run-2.6-rails_5_2 - 5449198434.15 03 Jul 2023 11:10PM UTC 0
98.96
GitHub Action Run
16 run-3.2-rack_2_0 - 5449198434.16 03 Jul 2023 11:09PM UTC 0
48.52
GitHub Action Run
17 run-3.1-rails_7_0 - 5449198434.17 03 Jul 2023 11:09PM UTC 0
99.01
GitHub Action Run
18 run-2.7-multi_json - 5449198434.18 03 Jul 2023 11:09PM UTC 0
77.78
GitHub Action Run
19 run-2.7-rails_7_0 - 5449198434.19 03 Jul 2023 11:10PM UTC 0
99.01
GitHub Action Run
20 run-3.2-rails_7_0 - 5449198434.20 03 Jul 2023 11:10PM UTC 0
99.01
GitHub Action Run
Source Files on build 5449198434
Detailed source file information is not available for this build.
  • Back to Repo
  • 96ac079e on github
  • Prev Build on master (#5384158732)
  • Next Build on master (#5456930725)
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