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

ruby-grape / grape / 34770584299
99%

Build:
DEFAULT BRANCH: master
Ran 13 Sep 2026 05:06PM 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

13 Sep 2026 05:06PM UTC coverage: 99.166% (+0.002%) from 99.164%
34770584299

push

github

web-flow
Speed up error responses, param defaults and deciding whether to read a request body (#2939)

Three request-path changes, each giving the same answers as before:

- The entity lookup behind `present` without `with:`, and behind every
  error response the error formatter renders, walked the object's
  ancestors asking each one for an `Entity` constant of its own.
  `klass.const_defined?(:Entity)` answers for the whole chain in one call,
  so a class nothing on the chain names an Entity for -- a String or Hash
  error message, most presented objects -- skips the walk. It also looks
  on Object, which the walk passes over, so a top-level ::Entity only
  sends the lookup on to the walk.

- DefaultValidator always went through the attributes iterator. On a
  scope that is always validated and does not iterate elements, once its
  params resolve to a Hash, the iterator's per-attribute checks come down
  to whether the value is missing, as Base#validate_attributes! already
  relies on for the other validators.

- The formatter asked Rack's form_data? and parseable_data? whether to
  read a body and then the media type to pick a parser: three parses of
  CONTENT_TYPE, two of them paid by a POST or DELETE with no body before
  it found nothing to read. It now checks the method and the body's
  presence off the env first, parses the media type once and tests it
  against Rack's FORM_DATA_MEDIA_TYPES and PARSEABLE_DATA_MEDIA_TYPES.
  That is the same answer: form_data?'s other branch needs a nil media
  type, which Rack only returns when CONTENT_TYPE is missing or empty.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

1353 of 1399 branches covered (96.71%)

Branch coverage included in aggregate %.

15 of 15 new or added lines in 3 files covered. (100.0%)

4115 of 4115 relevant lines covered (100.0%)

26628.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 34770584299.1 13 Sep 2026 05:07PM UTC 169
97.8
GitHub Action Run
2 run-4.0-gemfiles/rack_3_2.gemfile - 34770584299.2 13 Sep 2026 05:06PM UTC 168
97.8
GitHub Action Run
3 run-4.0-gemfiles/rails_8_1.gemfile - 34770584299.3 13 Sep 2026 05:08PM UTC 169
97.8
GitHub Action Run
4 run-3.3-gemfiles/rack_3_2.gemfile - 34770584299.4 13 Sep 2026 05:07PM UTC 168
97.82
GitHub Action Run
5 run-3.3-gemfiles/rack_3_0.gemfile - 34770584299.5 13 Sep 2026 05:07PM UTC 168
97.82
GitHub Action Run
6 run-4.0-gemfiles/hashie.gemfile - 34770584299.6 13 Sep 2026 05:07PM UTC 167
60.76
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 34770584299.7 13 Sep 2026 05:06PM UTC 167
56.88
GitHub Action Run
8 run-4.0-gemfiles/multi_xml_0_8.gemfile - 34770584299.8 13 Sep 2026 05:06PM UTC 167
46.42
GitHub Action Run
9 run-3.4-gemfiles/rack_3_2.gemfile - 34770584299.9 13 Sep 2026 05:07PM UTC 168
97.82
GitHub Action Run
10 run-4.0-gemfiles/grape_entity.gemfile - 34770584299.10 13 Sep 2026 05:07PM UTC 167
49.73
GitHub Action Run
11 run-4.0-gemfiles/rack_3_0.gemfile - 34770584299.11 13 Sep 2026 05:07PM UTC 168
97.8
GitHub Action Run
12 run-3.3-Gemfile - 34770584299.12 13 Sep 2026 05:07PM UTC 168
97.84
GitHub Action Run
13 run-4.0-gemfiles/multi_xml.gemfile - 34770584299.13 13 Sep 2026 05:06PM UTC 167
46.39
GitHub Action Run
14 run-3.3-gemfiles/rack_3_1.gemfile - 34770584299.14 13 Sep 2026 05:07PM UTC 168
97.82
GitHub Action Run
15 run-3.4-gemfiles/rails_7_2.gemfile - 34770584299.15 13 Sep 2026 05:07PM UTC 169
97.8
GitHub Action Run
16 run-3.3-gemfiles/rails_7_2.gemfile - 34770584299.16 13 Sep 2026 05:07PM UTC 169
97.82
GitHub Action Run
17 run-3.4-gemfiles/rack_3_0.gemfile - 34770584299.17 13 Sep 2026 05:06PM UTC 168
97.8
GitHub Action Run
18 run-4.0-Gemfile - 34770584299.18 13 Sep 2026 05:07PM UTC 168
97.82
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 34770584299.19 13 Sep 2026 05:06PM UTC 169
97.82
GitHub Action Run
20 run-3.4-gemfiles/rack_3_1.gemfile - 34770584299.20 13 Sep 2026 05:07PM UTC 168
97.8
GitHub Action Run
21 run-4.0-gemfiles/multi_json_1_20.gemfile - 34770584299.21 13 Sep 2026 05:06PM UTC 167
46.7
GitHub Action Run
22 run-3.4-Gemfile - 34770584299.22 13 Sep 2026 05:07PM UTC 168
97.8
GitHub Action Run
23 run-3.3-gemfiles/rails_8_1.gemfile - 34770584299.23 13 Sep 2026 05:07PM UTC 169
97.82
GitHub Action Run
24 run-3.4-gemfiles/rack_2_2.gemfile - 34770584299.24 13 Sep 2026 05:07PM UTC 168
97.77
GitHub Action Run
25 run-3.3-gemfiles/rack_2_2.gemfile - 34770584299.25 13 Sep 2026 05:07PM UTC 168
97.78
GitHub Action Run
26 run-4.0-gemfiles/grape_swagger.gemfile - 34770584299.26 13 Sep 2026 05:07PM UTC 167
53.92
GitHub Action Run
27 run-4.0-gemfiles/rack_2_2.gemfile - 34770584299.27 13 Sep 2026 05:06PM UTC 168
97.79
GitHub Action Run
28 run-4.0-gemfiles/rails_8_0.gemfile - 34770584299.28 13 Sep 2026 05:07PM UTC 169
97.82
GitHub Action Run
29 run-4.0-gemfiles/rack_3_1.gemfile - 34770584299.29 13 Sep 2026 05:07PM UTC 168
97.8
GitHub Action Run
30 run-4.0-gemfiles/multi_json.gemfile - 34770584299.30 13 Sep 2026 05:07PM UTC 167
46.66
GitHub Action Run
31 run-3.4-gemfiles/rails_8_1.gemfile - 34770584299.31 13 Sep 2026 05:07PM UTC 169
97.82
GitHub Action Run
32 run-3.3-gemfiles/rails_8_0.gemfile - 34770584299.32 13 Sep 2026 05:07PM UTC 169
97.84
GitHub Action Run
Source Files on build 34770584299
  • Tree
  • List 169
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34770584299
  • 91218be7 on github
  • Prev Build on master (#34716314708)
  • Next Build on master (#34776966334)
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