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

ruby-grape / grape / 35996772782
100%

Build:
DEFAULT BRANCH: master
Ran 24 Sep 2026 12:04PM UTC
Jobs 32
Files 168
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

24 Sep 2026 12:04PM UTC coverage: 100.0%. Remained the same
35996772782

push

github

web-flow
Answer params and versions holding invalid bytes instead of raising (#3006)

ActiveSupport's String#blank? matches a whitespace regexp, and a regexp
raises ArgumentError on a UTF-8 String holding bytes the encoding does
not allow -- which is what Rack decodes `%FF` in a query string into.
Request-time checks asked it of an unscrubbed value, so any client
could turn these into a 500:

- `given :a` with `?a=%FF`
- an optional Hash scope with `?a=%FF`, at the root or inside a `given`
- an optional Array scope with `?a[]=%FF`
- `version using: :param` with `?apiver=%FF`
- `version using: :header` with an Accept header holding invalid UTF-8
  (a server handing headers over as binary was not affected)

ParamsScope now asks a private `blank_param?`, which keeps `blank?`'s
answer -- `given` is documented to use it, so `false` and whitespace
still count as absent -- except that a String holding an invalid byte
is never blank: the byte is not whitespace. #2954 applied the same rule
to a DELETE body. The Param versioner scrubs the value, as
AcceptVersionHeader already does, and the Header versioner scrubs the
header before anything reads it: `downcase`, `split` and Rack's q-value
parsing raise on such bytes too. Its precomputed table is still read
with the header as it came, so a hit costs nothing more.

Each now answers as for any other value it does not recognise: the
dependency is met, a String where a Hash is declared is invalid, and an
unknown version is a 404, or a 406 under `strict`.

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

1490 of 1490 branches covered (100.0%)

Branch coverage included in aggregate %.

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

4325 of 4325 relevant lines covered (100.0%)

29278.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rack_3_2.gemfile - 35996772782.1 24 Sep 2026 12:04PM UTC 167
98.81
GitHub Action Run
2 run-3.3-Gemfile - 35996772782.2 24 Sep 2026 12:04PM UTC 167
98.83
GitHub Action Run
3 run-4.0-gemfiles/rack_2_2.gemfile - 35996772782.3 24 Sep 2026 12:05PM UTC 167
98.78
GitHub Action Run
4 run-4.0-gemfiles/grape_entity.gemfile - 35996772782.4 24 Sep 2026 12:05PM UTC 166
48.9
GitHub Action Run
5 run-4.0-gemfiles/multi_xml.gemfile - 35996772782.5 24 Sep 2026 12:05PM UTC 166
45.81
GitHub Action Run
6 run-3.3-gemfiles/rack_3_2.gemfile - 35996772782.6 24 Sep 2026 12:05PM UTC 167
98.83
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 35996772782.7 24 Sep 2026 12:04PM UTC 166
56.06
GitHub Action Run
8 run-4.0-gemfiles/grape_swagger.gemfile - 35996772782.8 24 Sep 2026 12:05PM UTC 166
53.45
GitHub Action Run
9 run-3.3-gemfiles/rack_3_0.gemfile - 35996772782.9 24 Sep 2026 12:04PM UTC 167
98.83
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 35996772782.10 24 Sep 2026 12:05PM UTC 167
98.81
GitHub Action Run
11 run-4.0-gemfiles/rails_7_2.gemfile - 35996772782.11 24 Sep 2026 12:04PM UTC 168
98.81
GitHub Action Run
12 run-4.0-gemfiles/multi_json_1_20.gemfile - 35996772782.12 24 Sep 2026 12:04PM UTC 166
46.15
GitHub Action Run
13 run-4.0-gemfiles/hashie.gemfile - 35996772782.13 24 Sep 2026 12:05PM UTC 166
60.12
GitHub Action Run
14 run-4.0-gemfiles/rack_3_1.gemfile - 35996772782.14 24 Sep 2026 12:04PM UTC 167
98.81
GitHub Action Run
15 run-3.3-gemfiles/rails_7_2.gemfile - 35996772782.15 24 Sep 2026 12:04PM UTC 168
98.83
GitHub Action Run
16 run-3.4-gemfiles/rails_8_1.gemfile - 35996772782.16 24 Sep 2026 12:04PM UTC 168
98.81
GitHub Action Run
17 run-3.4-gemfiles/rails_7_2.gemfile - 35996772782.17 24 Sep 2026 12:04PM UTC 168
98.81
GitHub Action Run
18 run-3.3-gemfiles/rack_3_1.gemfile - 35996772782.18 24 Sep 2026 12:04PM UTC 167
98.83
GitHub Action Run
19 run-4.0-gemfiles/rack_3_0.gemfile - 35996772782.19 24 Sep 2026 12:05PM UTC 167
98.81
GitHub Action Run
20 run-4.0-Gemfile - 35996772782.20 24 Sep 2026 12:05PM UTC 167
98.81
GitHub Action Run
21 run-4.0-gemfiles/rails_8_0.gemfile - 35996772782.21 24 Sep 2026 12:04PM UTC 168
98.81
GitHub Action Run
22 run-4.0-gemfiles/rails_8_1.gemfile - 35996772782.22 24 Sep 2026 12:05PM UTC 168
98.81
GitHub Action Run
23 run-3.4-gemfiles/rack_3_0.gemfile - 35996772782.23 24 Sep 2026 12:04PM UTC 167
98.81
GitHub Action Run
24 run-3.4-gemfiles/rack_2_2.gemfile - 35996772782.24 24 Sep 2026 12:04PM UTC 167
98.78
GitHub Action Run
25 run-3.3-gemfiles/rails_8_1.gemfile - 35996772782.25 24 Sep 2026 12:05PM UTC 168
98.83
GitHub Action Run
26 run-3.4-gemfiles/rails_8_0.gemfile - 35996772782.26 24 Sep 2026 12:04PM UTC 168
98.81
GitHub Action Run
27 run-4.0-gemfiles/multi_json.gemfile - 35996772782.27 24 Sep 2026 12:04PM UTC 166
46.12
GitHub Action Run
28 run-3.4-Gemfile - 35996772782.28 24 Sep 2026 12:04PM UTC 167
98.81
GitHub Action Run
29 run-3.3-gemfiles/rails_8_0.gemfile - 35996772782.29 24 Sep 2026 12:04PM UTC 168
98.83
GitHub Action Run
30 run-4.0-gemfiles/rack_3_2.gemfile - 35996772782.30 24 Sep 2026 12:05PM UTC 167
98.81
GitHub Action Run
31 run-4.0-gemfiles/multi_xml_0_8.gemfile - 35996772782.31 24 Sep 2026 12:04PM UTC 166
45.84
GitHub Action Run
32 run-3.3-gemfiles/rack_2_2.gemfile - 35996772782.32 24 Sep 2026 12:04PM UTC 167
98.79
GitHub Action Run
Source Files on build 35996772782
  • Tree
  • List 168
  • Changed 3
  • Source Changed 3
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35996772782
  • 2132e225 on github
  • Prev Build on master (#35980339697)
  • Next Build on master (#36049206838)
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