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

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

Build:
Build:
LAST BUILD BRANCH: refactor/params-dsl-using-except-kwargs
DEFAULT BRANCH: master
Ran 08 May 2026 06:03PM UTC
Jobs 37
Files 157
Run time 2min
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 06:02PM UTC coverage: 96.921% (-0.01%) from 96.935%
25571296655

Pull #2701

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>
Pull Request #2701: Replace .tap usages in lib/ with explicit local variables

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%)

32141.5 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-3.4-gemfiles/rack_2_2.gemfile - 25571296655.1 08 May 2026 06:03PM UTC 156
95.58
GitHub Action Run
2 run-4.0-gemfiles/multi_xml.gemfile - 25571296655.2 08 May 2026 06:08PM UTC 156
35.87
GitHub Action Run
3 run-3.2-gemfiles/rails_8_1.gemfile - 25571296655.3 08 May 2026 06:06PM UTC 157
95.65
GitHub Action Run
4 run-3.3-gemfiles/rails_7_2.gemfile - 25571296655.4 08 May 2026 06:04PM UTC 157
95.6
GitHub Action Run
5 run-3.2-gemfiles/rails_8_0.gemfile - 25571296655.5 08 May 2026 06:04PM UTC 157
95.65
GitHub Action Run
6 run-4.0-gemfiles/rails_7_2.gemfile - 25571296655.6 08 May 2026 06:06PM UTC 157
95.62
GitHub Action Run
7 run-3.3-Gemfile - 25571296655.7 08 May 2026 06:04PM UTC 156
95.6
GitHub Action Run
8 run-3.4-gemfiles/rack_3_2.gemfile - 25571296655.8 08 May 2026 06:04PM UTC 156
95.62
GitHub Action Run
9 run-4.0-gemfiles/rails_8_0.gemfile - 25571296655.9 08 May 2026 06:06PM UTC 157
95.62
GitHub Action Run
10 run-3.2-gemfiles/rack_3_0.gemfile - 25571296655.10 08 May 2026 06:04PM UTC 156
95.64
GitHub Action Run
11 run-3.3-gemfiles/rack_3_2.gemfile - 25571296655.11 08 May 2026 06:04PM UTC 156
95.6
GitHub Action Run
12 run-3.3-gemfiles/rack_3_0.gemfile - 25571296655.12 08 May 2026 06:04PM UTC 156
95.6
GitHub Action Run
13 run-3.3-gemfiles/rack_2_2.gemfile - 25571296655.13 08 May 2026 06:08PM UTC 156
95.55
GitHub Action Run
14 run-4.0-gemfiles/dry_validation.gemfile - 25571296655.14 08 May 2026 06:06PM UTC 156
58.01
GitHub Action Run
15 run-3.2-gemfiles/rack_2_2.gemfile - 25571296655.15 08 May 2026 06:06PM UTC 156
95.6
GitHub Action Run
16 run-3.4-gemfiles/rails_8_0.gemfile - 25571296655.16 08 May 2026 06:07PM UTC 157
95.62
GitHub Action Run
17 run-4.0-gemfiles/grape_entity.gemfile - 25571296655.17 08 May 2026 06:06PM UTC 156
49.81
GitHub Action Run
18 run-3.4-gemfiles/rack_3_1.gemfile - 25571296655.18 08 May 2026 06:06PM UTC 156
95.62
GitHub Action Run
19 run-4.0-gemfiles/rack_3_2.gemfile - 25571296655.19 08 May 2026 06:05PM UTC 156
95.62
GitHub Action Run
20 run-3.2-gemfiles/rack_3_2.gemfile - 25571296655.20 08 May 2026 06:03PM UTC 156
95.64
GitHub Action Run
21 run-4.0-Gemfile - 25571296655.21 08 May 2026 06:07PM UTC 156
95.62
GitHub Action Run
22 run-4.0-gemfiles/rack_2_2.gemfile - 25571296655.22 08 May 2026 06:06PM UTC 156
95.58
GitHub Action Run
23 run-4.0-gemfiles/rails_8_1.gemfile - 25571296655.23 08 May 2026 06:08PM UTC 157
95.62
GitHub Action Run
24 run-4.0-gemfiles/rack_3_0.gemfile - 25571296655.24 08 May 2026 06:07PM UTC 156
95.62
GitHub Action Run
25 run-3.2-Gemfile - 25571296655.25 08 May 2026 06:07PM UTC 156
95.64
GitHub Action Run
26 run-3.4-gemfiles/rails_8_1.gemfile - 25571296655.26 08 May 2026 06:06PM UTC 157
95.62
GitHub Action Run
27 run-3.2-gemfiles/rack_3_1.gemfile - 25571296655.27 08 May 2026 06:08PM UTC 156
95.64
GitHub Action Run
28 run-3.4-gemfiles/rack_3_0.gemfile - 25571296655.28 08 May 2026 06:04PM UTC 156
95.62
GitHub Action Run
29 run-4.0-gemfiles/hashie.gemfile - 25571296655.29 08 May 2026 06:04PM UTC 156
62.6
GitHub Action Run
30 run-3.3-gemfiles/rails_8_1.gemfile - 25571296655.30 08 May 2026 06:05PM UTC 157
95.6
GitHub Action Run
31 run-3.2-gemfiles/rails_7_2.gemfile - 25571296655.31 08 May 2026 06:03PM UTC 157
95.65
GitHub Action Run
32 run-3.3-gemfiles/rails_8_0.gemfile - 25571296655.32 08 May 2026 06:07PM UTC 157
95.6
GitHub Action Run
33 run-3.4-Gemfile - 25571296655.33 08 May 2026 06:06PM UTC 156
95.62
GitHub Action Run
34 run-4.0-gemfiles/rack_3_1.gemfile - 25571296655.34 08 May 2026 06:07PM UTC 156
95.62
GitHub Action Run
35 run-3.4-gemfiles/rails_7_2.gemfile - 25571296655.35 08 May 2026 06:07PM UTC 157
95.62
GitHub Action Run
36 run-3.3-gemfiles/rack_3_1.gemfile - 25571296655.36 08 May 2026 06:04PM UTC 156
95.6
GitHub Action Run
37 run-4.0-gemfiles/multi_json.gemfile - 25571296655.37 08 May 2026 06:09PM UTC 156
35.87
GitHub Action Run
Source Files on build 25571296655
  • 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 #25571296655
  • Pull Request #2701
  • PR Base - master (#25564552185)
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