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

ruby-grape / grape / 26494640124
97%

Build:
DEFAULT BRANCH: master
Ran 27 May 2026 06:24AM UTC
Jobs 38
Files 165
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

27 May 2026 06:24AM UTC coverage: 97.006%. First build
26494640124

push

github

web-flow
Readability pass: guard clauses, small refactors across lib/ (#2741)

Mostly cosmetic, no behavior change except where noted.

Guard-clause lifts (lift the short-circuit above the if/elsif/else,
let the main flow sit at top indentation):

- `Grape::DSL::Logger#logger`, `DSL::InsideRoute#stream`/`#return_no_content`
- `Grape::Formatter::SerializableHash#serialize`
- `Grape::Middleware::Base#merge_default_options`
- `Grape::Middleware::Error#redispatch`
- `Grape::Middleware::Formatter` (`call!`, `negotiate_content_type`)
- `Grape::Router::Pattern#build_path_from_pattern`
- `Grape::ServeStream::SendfileResponse#respond_to?`
- `Grape::Validations::ParamsScope#configure_declared_params`
- `Grape::Exceptions::ErrorResponse.coerce` (case/when reformatted)

Small extractions:

- `DSL::Entity#entity_class_for_obj`: extract `object_class(object)`
  private helper.
- `DSL::InsideRoute#status`: collapse Symbol/Integer branches and
  extract `default_status` private helper. Error message for an
  unknown status symbol now bubbles up `Rack::Utils.status_code`'s
  own message ("Unrecognized status code :foo_bar") instead of
  Grape's pre-validation message ("Status code :foo_bar is invalid.");
  spec updated.
- `DSL::InsideRoute#stream`: extract `stream_body(value)` private
  helper.
- `DSL::InsideRoute#return_no_content`: drop the redundant `status 204`
  call — `body false` already sets it via the `body` setter.

Minor: `return nil unless` → `return unless` in `Grape::API::Boolean.build`
and `PrimitiveCoercer#call`.

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

1097 of 1183 branches covered (92.73%)

Branch coverage included in aggregate %.

48 of 52 new or added lines in 14 files covered. (92.31%)

3537 of 3594 relevant lines covered (98.41%)

31262.72 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
50.0
4.55% lib/grape/serve_stream/sendfile_response.rb
1
93.0
0.0% lib/grape/dsl/request_response.rb
1
77.42
-1.99% lib/grape/formatter/serializable_hash.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_2.gemfile - 26494640124.1 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
2 run-4.0-gemfiles/rails_7_2.gemfile - 26494640124.2 27 May 2026 06:24AM UTC 165
95.75
GitHub Action Run
3 run-3.3-gemfiles/rails_7_2.gemfile - 26494640124.3 27 May 2026 06:24AM UTC 165
95.74
GitHub Action Run
4 run-3.2-Gemfile - 26494640124.4 27 May 2026 06:24AM UTC 164
95.78
GitHub Action Run
5 run-3.2-gemfiles/rack_3_2.gemfile - 26494640124.5 27 May 2026 06:24AM UTC 164
95.78
GitHub Action Run
6 run-3.4-Gemfile - 26494640124.6 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
7 run-3.3-gemfiles/rack_3_1.gemfile - 26494640124.7 27 May 2026 06:24AM UTC 164
95.74
GitHub Action Run
8 run-3.2-gemfiles/rack_2_2.gemfile - 26494640124.8 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
9 run-3.3-Gemfile - 26494640124.9 27 May 2026 06:24AM UTC 164
95.74
GitHub Action Run
10 run-4.0-gemfiles/hashie.gemfile - 26494640124.10 27 May 2026 06:25AM UTC 164
62.91
GitHub Action Run
11 run-3.4-gemfiles/rack_3_1.gemfile - 26494640124.11 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
12 run-4.0-gemfiles/rack_3_2.gemfile - 26494640124.12 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
13 run-3.4-gemfiles/rack_2_2.gemfile - 26494640124.13 27 May 2026 06:24AM UTC 164
95.7
GitHub Action Run
14 run-4.0-gemfiles/grape_entity.gemfile - 26494640124.14 27 May 2026 06:25AM UTC 164
50.6
GitHub Action Run
15 run-3.2-gemfiles/rack_3_0.gemfile - 26494640124.15 27 May 2026 06:24AM UTC 164
95.78
GitHub Action Run
16 run-4.0-gemfiles/rack_3_0.gemfile - 26494640124.16 27 May 2026 06:24AM UTC 164
95.74
GitHub Action Run
17 run-3.4-gemfiles/rails_7_2.gemfile - 26494640124.17 27 May 2026 06:25AM UTC 165
95.75
GitHub Action Run
18 run-3.4-gemfiles/rails_8_1.gemfile - 26494640124.18 27 May 2026 06:25AM UTC 165
95.75
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 26494640124.19 27 May 2026 06:25AM UTC 165
95.75
GitHub Action Run
20 run-4.0-gemfiles/rails_8_0.gemfile - 26494640124.20 27 May 2026 06:24AM UTC 165
95.75
GitHub Action Run
21 run-3.2-gemfiles/rails_8_0.gemfile - 26494640124.21 27 May 2026 06:24AM UTC 165
95.79
GitHub Action Run
22 run-3.3-gemfiles/rails_8_1.gemfile - 26494640124.22 27 May 2026 06:24AM UTC 165
95.74
GitHub Action Run
23 run-4.0-gemfiles/dry_validation.gemfile - 26494640124.23 27 May 2026 06:25AM UTC 164
58.72
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 26494640124.24 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
25 run-4.0-gemfiles/rack_3_1.gemfile - 26494640124.25 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
26 run-4.0-gemfiles/rails_8_1.gemfile - 26494640124.26 27 May 2026 06:25AM UTC 165
95.75
GitHub Action Run
27 run-4.0-gemfiles/multi_xml.gemfile - 26494640124.27 27 May 2026 06:25AM UTC 164
36.98
GitHub Action Run
28 run-3.4-gemfiles/rack_3_0.gemfile - 26494640124.28 27 May 2026 06:24AM UTC 164
95.74
GitHub Action Run
29 run-4.0-gemfiles/multi_json.gemfile - 26494640124.29 27 May 2026 06:25AM UTC 164
36.98
GitHub Action Run
30 run-4.0-gemfiles/grape_swagger.gemfile - 26494640124.30 27 May 2026 06:25AM UTC 164
55.63
GitHub Action Run
31 run-3.2-gemfiles/rails_8_1.gemfile - 26494640124.31 27 May 2026 06:25AM UTC 165
95.79
GitHub Action Run
32 run-4.0-Gemfile - 26494640124.32 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
33 run-3.4-gemfiles/rack_3_2.gemfile - 26494640124.33 27 May 2026 06:25AM UTC 164
95.74
GitHub Action Run
34 run-3.2-gemfiles/rack_3_1.gemfile - 26494640124.34 27 May 2026 06:24AM UTC 164
95.78
GitHub Action Run
35 run-3.3-gemfiles/rack_2_2.gemfile - 26494640124.35 27 May 2026 06:24AM UTC 164
95.7
GitHub Action Run
36 run-3.2-gemfiles/rails_7_2.gemfile - 26494640124.36 27 May 2026 06:24AM UTC 165
95.79
GitHub Action Run
37 run-3.3-gemfiles/rails_8_0.gemfile - 26494640124.37 27 May 2026 06:24AM UTC 165
95.74
GitHub Action Run
38 run-4.0-gemfiles/rack_2_2.gemfile - 26494640124.38 27 May 2026 06:24AM UTC 164
95.7
GitHub Action Run
Source Files on build 26494640124
  • Tree
  • List 165
  • Changed 14
  • Source Changed 14
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26494640124
  • 11f0fd41 on github
  • Prev Build on master (#26494474144)
  • Next Build on master (#26494895924)
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