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

ruby-grape / grape / 27480306073
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 13 Jun 2026 09:57PM UTC
Jobs 30
Files 167
Run time 1min
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

13 Jun 2026 09:57PM UTC coverage: 96.462% (-0.2%) from 96.616%
27480306073

Pull #2764

github

ericproulx
Route Grape::Json through the non-deprecated MultiJSON API

multi_json 1.21.0 deprecated the `MultiJson` constant (in favor of
`MultiJSON`) and `MultiJSON.dump` (in favor of `generate`), removed in
2.0. Grape detected the backend via `::MultiJson` and called `dump`, so
users on multi_json >= 1.21 saw deprecation warnings (#2763).

Detect `::MultiJSON` and give `Grape::Json` a small facade whose `dump`
delegates to `MultiJSON.generate` (byte-identical output), re-exposing
`parse` since the facade no longer inherits MultiJSON's methods. Behavior
is unchanged; the stdlib fallback is untouched.

Following #2762 (Grape standardizes on `parse`, never `load`, for JSON),
the two remaining `Grape::Json.load` spec helpers move to `parse`, so
`Grape::Json.load` no longer appears anywhere and the facade needs no
`load`.

Also give the legacy multi_json (< 1.21) branch the same facade treatment
mapping dump/parse onto the dump/load it exposes — it has no generate/parse,
so `Grape::Json.parse` would otherwise raise NoMethodError there.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2764: Route Grape::Json through the non-deprecated MultiJSON API

1122 of 1221 branches covered (91.89%)

Branch coverage included in aggregate %.

9 of 16 new or added lines in 1 file covered. (56.25%)

3568 of 3641 relevant lines covered (98.0%)

23041.43 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
65.22
-34.78% lib/grape/json.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_json.gemfile - 27480306073.1 13 Jun 2026 09:57PM UTC 166
37.13
GitHub Action Run
2 run-4.0-gemfiles/grape_swagger.gemfile - 27480306073.2 13 Jun 2026 09:57PM UTC 166
55.21
GitHub Action Run
3 run-4.0-gemfiles/rails_7_2.gemfile - 27480306073.3 13 Jun 2026 09:58PM UTC 167
95.16
GitHub Action Run
4 run-4.0-gemfiles/rack_3_1.gemfile - 27480306073.4 13 Jun 2026 09:58PM UTC 166
95.16
GitHub Action Run
5 run-4.0-gemfiles/rack_2_2.gemfile - 27480306073.5 13 Jun 2026 09:57PM UTC 166
95.12
GitHub Action Run
6 run-4.0-gemfiles/dry_validation.gemfile - 27480306073.6 13 Jun 2026 09:57PM UTC 166
58.26
GitHub Action Run
7 run-4.0-gemfiles/rack_3_0.gemfile - 27480306073.7 13 Jun 2026 09:58PM UTC 166
95.16
GitHub Action Run
8 run-4.0-gemfiles/rails_8_1.gemfile - 27480306073.8 13 Jun 2026 09:58PM UTC 167
95.16
GitHub Action Run
9 run-3.3-gemfiles/rack_3_1.gemfile - 27480306073.9 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
10 run-3.4-gemfiles/rack_3_0.gemfile - 27480306073.10 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
11 run-3.3-gemfiles/rack_3_2.gemfile - 27480306073.11 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
12 run-3.4-gemfiles/rails_8_1.gemfile - 27480306073.12 13 Jun 2026 09:58PM UTC 167
95.16
GitHub Action Run
13 run-3.4-gemfiles/rack_3_1.gemfile - 27480306073.13 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
14 run-4.0-Gemfile - 27480306073.14 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
15 run-4.0-gemfiles/multi_xml.gemfile - 27480306073.15 13 Jun 2026 09:57PM UTC 166
37.05
GitHub Action Run
16 run-3.4-gemfiles/rails_8_0.gemfile - 27480306073.16 13 Jun 2026 09:57PM UTC 167
95.16
GitHub Action Run
17 run-3.4-gemfiles/rails_7_2.gemfile - 27480306073.17 13 Jun 2026 09:57PM UTC 167
95.16
GitHub Action Run
18 run-3.4-Gemfile - 27480306073.18 13 Jun 2026 09:58PM UTC 166
95.16
GitHub Action Run
19 run-3.4-gemfiles/rack_2_2.gemfile - 27480306073.19 13 Jun 2026 09:58PM UTC 166
95.12
GitHub Action Run
20 run-3.4-gemfiles/rack_3_2.gemfile - 27480306073.20 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
21 run-4.0-gemfiles/rails_8_0.gemfile - 27480306073.21 13 Jun 2026 09:57PM UTC 167
95.16
GitHub Action Run
22 run-3.3-gemfiles/rack_3_0.gemfile - 27480306073.22 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
23 run-3.3-gemfiles/rails_7_2.gemfile - 27480306073.23 13 Jun 2026 09:57PM UTC 167
95.16
GitHub Action Run
24 run-4.0-gemfiles/hashie.gemfile - 27480306073.24 13 Jun 2026 09:58PM UTC 166
62.34
GitHub Action Run
25 run-4.0-gemfiles/rack_3_2.gemfile - 27480306073.25 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
26 run-3.3-gemfiles/rails_8_1.gemfile - 27480306073.26 13 Jun 2026 09:58PM UTC 167
95.16
GitHub Action Run
27 run-3.3-gemfiles/rails_8_0.gemfile - 27480306073.27 13 Jun 2026 09:57PM UTC 167
95.16
GitHub Action Run
28 run-3.3-gemfiles/rack_2_2.gemfile - 27480306073.28 13 Jun 2026 09:57PM UTC 166
95.12
GitHub Action Run
29 run-4.0-gemfiles/grape_entity.gemfile - 27480306073.29 13 Jun 2026 09:57PM UTC 166
50.27
GitHub Action Run
30 run-3.3-Gemfile - 27480306073.30 13 Jun 2026 09:57PM UTC 166
95.16
GitHub Action Run
Source Files on build 27480306073
  • Tree
  • List 167
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27480306073
  • Pull Request #2764
  • PR Base - master (#27449980546)
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