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

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

Build:
Build:
LAST BUILD BRANCH: perf/build-headers-each-header
DEFAULT BRANCH: master
Ran 14 Jun 2026 10:54AM UTC
Jobs 31
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

14 Jun 2026 10:54AM UTC coverage: 96.586% (-0.03%) from 96.616%
27496580206

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.

Cover both backends in CI: pin gemfiles/multi_json.gemfile to >= 1.21 and
add gemfiles/multi_json_1_20.gemfile (< 1.21), each running the
spec/integration/multi_json suite. The integration spec keys off the
`MultiJson` constant (defined on both lines) and drives a real Grape API
through the parser and JSON formatter.

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

1123 of 1221 branches covered (91.97%)

Branch coverage included in aggregate %.

14 of 16 new or added lines in 1 file covered. (87.5%)

3573 of 3641 relevant lines covered (98.13%)

23042.15 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
91.3
-8.7% lib/grape/json.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_8_0.gemfile - 27496580206.1 14 Jun 2026 10:54AM UTC 167
95.16
GitHub Action Run
2 run-3.3-gemfiles/rails_7_2.gemfile - 27496580206.2 14 Jun 2026 10:54AM UTC 167
95.16
GitHub Action Run
3 run-4.0-gemfiles/rack_3_1.gemfile - 27496580206.3 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
4 run-3.3-gemfiles/rack_3_1.gemfile - 27496580206.4 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
5 run-4.0-gemfiles/rack_3_2.gemfile - 27496580206.5 14 Jun 2026 10:55AM UTC 166
95.16
GitHub Action Run
6 run-3.3-gemfiles/rails_8_0.gemfile - 27496580206.6 14 Jun 2026 10:54AM UTC 167
95.16
GitHub Action Run
7 run-3.3-gemfiles/rack_3_0.gemfile - 27496580206.7 14 Jun 2026 10:55AM UTC 166
95.16
GitHub Action Run
8 run-3.3-gemfiles/rack_3_2.gemfile - 27496580206.8 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
9 run-3.3-gemfiles/rack_2_2.gemfile - 27496580206.9 14 Jun 2026 10:54AM UTC 166
95.12
GitHub Action Run
10 run-4.0-gemfiles/rack_3_0.gemfile - 27496580206.10 14 Jun 2026 10:55AM UTC 166
95.16
GitHub Action Run
11 run-3.4-Gemfile - 27496580206.11 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 27496580206.12 14 Jun 2026 10:54AM UTC 167
95.16
GitHub Action Run
13 run-3.3-Gemfile - 27496580206.13 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
14 run-4.0-gemfiles/multi_json.gemfile - 27496580206.14 14 Jun 2026 10:55AM UTC 166
47.55
GitHub Action Run
15 run-4.0-gemfiles/hashie.gemfile - 27496580206.15 14 Jun 2026 10:55AM UTC 166
62.34
GitHub Action Run
16 run-4.0-gemfiles/rails_8_1.gemfile - 27496580206.16 14 Jun 2026 10:55AM UTC 167
95.16
GitHub Action Run
17 run-4.0-gemfiles/multi_xml.gemfile - 27496580206.17 14 Jun 2026 10:55AM UTC 166
37.05
GitHub Action Run
18 run-4.0-gemfiles/rails_7_2.gemfile - 27496580206.18 14 Jun 2026 10:54AM UTC 167
95.16
GitHub Action Run
19 run-3.4-gemfiles/rack_3_1.gemfile - 27496580206.19 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
20 run-4.0-gemfiles/grape_entity.gemfile - 27496580206.20 14 Jun 2026 10:54AM UTC 166
50.27
GitHub Action Run
21 run-3.4-gemfiles/rack_3_2.gemfile - 27496580206.21 14 Jun 2026 10:54AM UTC 166
95.16
GitHub Action Run
22 run-4.0-gemfiles/dry_validation.gemfile - 27496580206.22 14 Jun 2026 10:54AM UTC 166
58.26
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 27496580206.23 14 Jun 2026 10:55AM UTC 167
95.16
GitHub Action Run
24 run-4.0-gemfiles/rack_2_2.gemfile - 27496580206.24 14 Jun 2026 10:55AM UTC 166
95.12
GitHub Action Run
25 run-4.0-Gemfile - 27496580206.25 14 Jun 2026 10:55AM UTC 166
95.16
GitHub Action Run
26 run-3.4-gemfiles/rack_3_0.gemfile - 27496580206.26 14 Jun 2026 10:55AM UTC 166
95.16
GitHub Action Run
27 run-4.0-gemfiles/rails_8_0.gemfile - 27496580206.27 14 Jun 2026 10:55AM UTC 167
95.16
GitHub Action Run
28 run-3.4-gemfiles/rails_7_2.gemfile - 27496580206.28 14 Jun 2026 10:54AM UTC 167
95.16
GitHub Action Run
29 run-4.0-gemfiles/multi_json_1_20.gemfile - 27496580206.29 14 Jun 2026 10:54AM UTC 166
47.59
GitHub Action Run
30 run-4.0-gemfiles/grape_swagger.gemfile - 27496580206.30 14 Jun 2026 10:55AM UTC 166
55.21
GitHub Action Run
31 run-3.4-gemfiles/rack_2_2.gemfile - 27496580206.31 14 Jun 2026 10:54AM UTC 166
95.12
GitHub Action Run
Source Files on build 27496580206
  • Tree
  • List 167
  • Changed 149
  • Source Changed 1
  • Coverage Changed 149
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27496580206
  • 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