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

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

Build:
Build:
LAST BUILD BRANCH: draft/middleware-options-data
DEFAULT BRANCH: master
Ran 08 May 2026 12:00PM UTC
Jobs 37
Files 157
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

08 May 2026 11:59AM UTC coverage: 96.921% (-0.01%) from 96.935%
25554351039

push

github

ericproulx
Replace .tap usages in lib/ with explicit local variables

`.tap` is idiomatic when you want to perform side effects on a value
and return the value unchanged, but most uses in lib/ were just a
ceremony for "build up a fresh value, then return it" — clearer as
plain locals.

Refactors across 11 files:
- `[].tap { |parts| ... }` → local + explicit return
- `Class.new.tap { |instance| ... }` → local + explicit return
- `Strategies[type].tap { raise unless ... }` → assign-then-raise
- `Rack::Builder.new.tap { ... }` → local + explicit return
- `self.class.new.tap { |s| ... }` → local + explicit return
- `keys.tap { concat + uniq! }` → `(a + b).uniq` with guard clause
- `{}.tap { |details| ... }` → local + explicit return
- `Array.wrap(x).tap { ... }.join(...)` → local, then join
- `Module.new.tap { |mod| ... }` → local + explicit return
- `||= …new.tap { … }` memoization → early-return memoization

Drive-by: replace `handler.instance_of?(Symbol)` with
`handler.is_a?(Symbol)` in `Middleware::Error#run_rescue_handler`
for consistency with the rest of the file (Symbol can't be
subclassed, so the two are behaviorally equivalent here).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1084 of 1169 branches covered (92.73%)

Branch coverage included in aggregate %.

64 of 68 new or added lines in 11 files covered. (94.12%)

3418 of 3476 relevant lines covered (98.33%)

32140.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
91.23
-1.63% lib/grape/dsl/helpers.rb
Jobs
ID Job ID Ran Files Coverage
1 run-4.0-Gemfile - 25554351039.1 08 May 2026 12:00PM UTC 156
95.62
GitHub Action Run
2 run-3.2-gemfiles/rails_7_2.gemfile - 25554351039.2 08 May 2026 12:01PM UTC 157
95.65
GitHub Action Run
3 run-3.4-gemfiles/rack_3_1.gemfile - 25554351039.3 08 May 2026 12:02PM UTC 156
95.62
GitHub Action Run
4 run-3.2-gemfiles/rails_8_1.gemfile - 25554351039.4 08 May 2026 12:01PM UTC 157
95.65
GitHub Action Run
5 run-3.2-gemfiles/rack_3_2.gemfile - 25554351039.5 08 May 2026 12:00PM UTC 156
95.64
GitHub Action Run
6 run-4.0-gemfiles/rack_3_2.gemfile - 25554351039.6 08 May 2026 12:00PM UTC 156
95.62
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 25554351039.7 08 May 2026 12:02PM UTC 156
95.62
GitHub Action Run
8 run-3.3-gemfiles/rails_8_1.gemfile - 25554351039.8 08 May 2026 12:02PM UTC 157
95.6
GitHub Action Run
9 run-3.3-gemfiles/rails_8_0.gemfile - 25554351039.9 08 May 2026 12:01PM UTC 157
95.6
GitHub Action Run
10 run-4.0-gemfiles/rails_8_0.gemfile - 25554351039.10 08 May 2026 12:02PM UTC 157
95.62
GitHub Action Run
11 run-3.4-Gemfile - 25554351039.11 08 May 2026 12:02PM UTC 156
95.62
GitHub Action Run
12 run-3.4-gemfiles/rack_3_0.gemfile - 25554351039.12 08 May 2026 12:01PM UTC 156
95.62
GitHub Action Run
13 run-4.0-gemfiles/hashie.gemfile - 25554351039.13 08 May 2026 12:00PM UTC 156
62.6
GitHub Action Run
14 run-3.3-gemfiles/rack_2_2.gemfile - 25554351039.14 08 May 2026 12:00PM UTC 156
95.55
GitHub Action Run
15 run-4.0-gemfiles/dry_validation.gemfile - 25554351039.15 08 May 2026 12:03PM UTC 156
58.01
GitHub Action Run
16 run-3.2-gemfiles/rails_8_0.gemfile - 25554351039.16 08 May 2026 12:02PM UTC 157
95.65
GitHub Action Run
17 run-4.0-gemfiles/multi_xml.gemfile - 25554351039.17 08 May 2026 12:02PM UTC 156
35.87
GitHub Action Run
18 run-4.0-gemfiles/rack_3_0.gemfile - 25554351039.18 08 May 2026 12:02PM UTC 156
95.62
GitHub Action Run
19 run-4.0-gemfiles/multi_json.gemfile - 25554351039.19 08 May 2026 12:02PM UTC 156
35.87
GitHub Action Run
20 run-3.3-gemfiles/rack_3_1.gemfile - 25554351039.20 08 May 2026 12:02PM UTC 156
95.6
GitHub Action Run
21 run-3.3-gemfiles/rack_3_2.gemfile - 25554351039.21 08 May 2026 12:01PM UTC 156
95.6
GitHub Action Run
22 run-3.2-gemfiles/rack_3_0.gemfile - 25554351039.22 08 May 2026 12:00PM UTC 156
95.64
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 25554351039.23 08 May 2026 12:02PM UTC 157
95.62
GitHub Action Run
24 run-3.3-Gemfile - 25554351039.24 08 May 2026 12:01PM UTC 156
95.6
GitHub Action Run
25 run-3.2-gemfiles/rack_3_1.gemfile - 25554351039.25 08 May 2026 12:00PM UTC 156
95.64
GitHub Action Run
26 run-3.3-gemfiles/rails_7_2.gemfile - 25554351039.26 08 May 2026 12:03PM UTC 157
95.6
GitHub Action Run
27 run-3.4-gemfiles/rails_7_2.gemfile - 25554351039.27 08 May 2026 12:01PM UTC 157
95.62
GitHub Action Run
28 run-4.0-gemfiles/rack_3_1.gemfile - 25554351039.28 08 May 2026 12:02PM UTC 156
95.62
GitHub Action Run
29 run-4.0-gemfiles/rails_7_2.gemfile - 25554351039.29 08 May 2026 12:03PM UTC 157
95.62
GitHub Action Run
30 run-3.3-gemfiles/rack_3_0.gemfile - 25554351039.30 08 May 2026 12:00PM UTC 156
95.6
GitHub Action Run
31 run-4.0-gemfiles/rails_8_1.gemfile - 25554351039.31 08 May 2026 12:02PM UTC 157
95.62
GitHub Action Run
32 run-3.2-Gemfile - 25554351039.32 08 May 2026 12:02PM UTC 156
95.64
GitHub Action Run
33 run-3.4-gemfiles/rails_8_0.gemfile - 25554351039.33 08 May 2026 12:00PM UTC 157
95.62
GitHub Action Run
34 run-3.4-gemfiles/rack_2_2.gemfile - 25554351039.34 08 May 2026 12:01PM UTC 156
95.58
GitHub Action Run
35 run-4.0-gemfiles/rack_2_2.gemfile - 25554351039.35 08 May 2026 12:02PM UTC 156
95.58
GitHub Action Run
36 run-4.0-gemfiles/grape_entity.gemfile - 25554351039.36 08 May 2026 12:01PM UTC 156
49.81
GitHub Action Run
37 run-3.2-gemfiles/rack_2_2.gemfile - 25554351039.37 08 May 2026 12:00PM UTC 156
95.6
GitHub Action Run
Source Files on build 25554351039
  • Tree
  • List 157
  • Changed 11
  • Source Changed 11
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25554351039
  • 71c9288d on github
  • Prev Build on master (#25406647923)
  • Next Build on refactor/replace-tap-usages (#25554369412)
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