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

ruby-grape / grape / 33984343304
97%
master: 99%

Build:
Build:
LAST BUILD BRANCH: standardize-error-messages
DEFAULT BRANCH: master
Ran 05 Sep 2026 06:31PM UTC
Jobs 32
Files 169
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

05 Sep 2026 06:31PM UTC coverage: 97.114%. Remained the same
33984343304

Pull #2908

github

ericproulx
Stop reassigning method parameters across lib

A parameter reassigned partway through a method means the name documents
one thing in the signature and holds another below it. Every site in
`lib` now binds the derived value to its own local, so a parameter keeps
what the caller passed for the whole method.

Two of them were reassigned to hide a mutation of the argument itself,
and those stop writing into what they were given:

* `Middleware::Formatter#ensure_content_type` merged a Content-Type into
  the response headers Hash in place, then returned it.
* `ParamsScope#process_oneof!` wrote the collected variants back into the
  options Hash from the `requires`/`optional` call site. Now
  `#collected_oneof` returns them and the caller merges.

`Endpoint::Options` is left alone; it is fixed in #2907.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2908: Stop reassigning parameters in Grape::Middleware::Error

1240 of 1330 branches covered (93.23%)

Branch coverage included in aggregate %.

75 of 76 new or added lines in 16 files covered. (98.68%)

3943 of 4007 relevant lines covered (98.4%)

27051.5 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
97.33
-0.02% lib/grape/middleware/formatter.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_0.gemfile - 33984343304.1 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
2 run-4.0-gemfiles/rails_7_2.gemfile - 33984343304.2 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
3 run-3.4-Gemfile - 33984343304.3 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
4 run-3.3-gemfiles/rack_3_2.gemfile - 33984343304.4 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
5 run-3.3-gemfiles/rails_7_2.gemfile - 33984343304.5 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
6 run-4.0-gemfiles/hashie.gemfile - 33984343304.6 05 Sep 2026 06:31PM UTC 167
61.75
GitHub Action Run
7 run-3.4-gemfiles/rails_8_0.gemfile - 33984343304.7 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
8 run-4.0-gemfiles/rack_3_1.gemfile - 33984343304.8 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
9 run-3.3-gemfiles/rack_3_0.gemfile - 33984343304.9 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
10 run-3.4-gemfiles/rack_3_2.gemfile - 33984343304.10 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
11 run-4.0-gemfiles/grape_swagger.gemfile - 33984343304.11 05 Sep 2026 06:31PM UTC 167
55.27
GitHub Action Run
12 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33984343304.12 05 Sep 2026 06:32PM UTC 167
47.05
GitHub Action Run
13 run-4.0-gemfiles/rails_8_0.gemfile - 33984343304.13 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
14 run-3.3-gemfiles/rails_8_1.gemfile - 33984343304.14 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
15 run-4.0-Gemfile - 33984343304.15 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
16 run-4.0-gemfiles/grape_entity.gemfile - 33984343304.16 05 Sep 2026 06:32PM UTC 167
50.35
GitHub Action Run
17 run-4.0-gemfiles/multi_json.gemfile - 33984343304.17 05 Sep 2026 06:32PM UTC 167
47.52
GitHub Action Run
18 run-4.0-gemfiles/dry_validation.gemfile - 33984343304.18 05 Sep 2026 06:32PM UTC 167
57.78
GitHub Action Run
19 run-3.3-gemfiles/rack_2_2.gemfile - 33984343304.19 05 Sep 2026 06:32PM UTC 168
95.82
GitHub Action Run
20 run-4.0-gemfiles/multi_xml.gemfile - 33984343304.20 05 Sep 2026 06:31PM UTC 167
47.01
GitHub Action Run
21 run-4.0-gemfiles/rack_3_2.gemfile - 33984343304.21 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
22 run-4.0-gemfiles/rails_8_1.gemfile - 33984343304.22 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 33984343304.23 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
24 run-3.4-gemfiles/rack_2_2.gemfile - 33984343304.24 05 Sep 2026 06:32PM UTC 168
95.82
GitHub Action Run
25 run-4.0-gemfiles/rack_3_0.gemfile - 33984343304.25 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
26 run-3.3-gemfiles/rails_8_0.gemfile - 33984343304.26 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
27 run-3.3-Gemfile - 33984343304.27 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
28 run-3.3-gemfiles/rack_3_1.gemfile - 33984343304.28 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
29 run-4.0-gemfiles/multi_json_1_20.gemfile - 33984343304.29 05 Sep 2026 06:31PM UTC 167
47.56
GitHub Action Run
30 run-4.0-gemfiles/rack_2_2.gemfile - 33984343304.30 05 Sep 2026 06:32PM UTC 168
95.82
GitHub Action Run
31 run-3.4-gemfiles/rack_3_1.gemfile - 33984343304.31 05 Sep 2026 06:32PM UTC 168
95.85
GitHub Action Run
32 run-3.4-gemfiles/rails_7_2.gemfile - 33984343304.32 05 Sep 2026 06:32PM UTC 169
95.86
GitHub Action Run
Source Files on build 33984343304
  • Tree
  • List 169
  • Changed 16
  • Source Changed 16
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #33984343304
  • Pull Request #2908
  • PR Base - master (#33958239245)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc