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

ruby-grape / grape / 36250506796
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/negotiated-format-fallback
DEFAULT BRANCH: master
Ran 26 Sep 2026 03:02PM UTC
Jobs 32
Files 166
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

26 Sep 2026 03:01PM UTC coverage: 100.0%. Remained the same
36250506796

push

github

ericproulx
Read a header version holding a hyphen whole

The header versioner parses `application/vnd.<vendor>-<version>+<format>`
with one pattern for every vendor. A hyphen can end either the vendor or
the version, so the pattern keeps hyphens out of the version. A dated
version such as `2024-06-20` (or `2.0-beta`) then split at its last
hyphen: `version` answered "20" and `env['api.vendor']` "acme-2024-06".
The request still reached the right version, because the whole media
type is matched against the declared ones, but everything reading the
parsed parts was wrong. An undeclared version of that shape was also
reported as an unknown vendor.

The versioner knows its vendor, so `MediaType.parse` and `.best_quality`
now take it: with the vendor spelled out, everything after it up to the
format is the version, hyphens included. A media type naming another
vendor is parsed as before. The per-vendor pattern lives in a
Grape::Util::Cache keyed by the vendors APIs declare, not by what
clients send.

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

1498 of 1498 branches covered (100.0%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 2 files covered. (100.0%)

4321 of 4321 relevant lines covered (100.0%)

29176.66 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml.gemfile - 36250506796.1 26 Sep 2026 03:02PM UTC 164
45.64
GitHub Action Run
2 run-3.3-gemfiles/rack_3_2.gemfile - 36250506796.2 26 Sep 2026 03:02PM UTC 165
98.83
GitHub Action Run
3 run-4.0-gemfiles/rack_2_2.gemfile - 36250506796.3 26 Sep 2026 03:02PM UTC 165
98.78
GitHub Action Run
4 run-4.0-gemfiles/dry_validation.gemfile - 36250506796.4 26 Sep 2026 03:02PM UTC 164
55.81
GitHub Action Run
5 run-3.4-gemfiles/rails_8_0.gemfile - 36250506796.5 26 Sep 2026 03:02PM UTC 166
98.81
GitHub Action Run
6 run-3.4-gemfiles/rack_3_1.gemfile - 36250506796.6 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
7 run-4.0-gemfiles/rack_3_2.gemfile - 36250506796.7 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
8 run-4.0-Gemfile - 36250506796.8 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
9 run-3.4-gemfiles/rack_2_2.gemfile - 36250506796.9 26 Sep 2026 03:02PM UTC 165
98.78
GitHub Action Run
10 run-3.3-gemfiles/rails_8_1.gemfile - 36250506796.10 26 Sep 2026 03:02PM UTC 166
98.83
GitHub Action Run
11 run-3.4-gemfiles/rack_3_2.gemfile - 36250506796.11 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
12 run-4.0-gemfiles/grape_entity.gemfile - 36250506796.12 26 Sep 2026 03:02PM UTC 164
48.71
GitHub Action Run
13 run-3.3-gemfiles/rack_3_1.gemfile - 36250506796.13 26 Sep 2026 03:02PM UTC 165
98.83
GitHub Action Run
14 run-4.0-gemfiles/hashie.gemfile - 36250506796.14 26 Sep 2026 03:02PM UTC 164
59.89
GitHub Action Run
15 run-4.0-gemfiles/rack_3_1.gemfile - 36250506796.15 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
16 run-4.0-gemfiles/multi_json.gemfile - 36250506796.16 26 Sep 2026 03:02PM UTC 164
45.95
GitHub Action Run
17 run-3.4-Gemfile - 36250506796.17 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
18 run-4.0-gemfiles/grape_swagger.gemfile - 36250506796.18 26 Sep 2026 03:02PM UTC 164
53.24
GitHub Action Run
19 run-4.0-gemfiles/rack_3_0.gemfile - 36250506796.19 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
20 run-4.0-gemfiles/multi_json_1_20.gemfile - 36250506796.20 26 Sep 2026 03:02PM UTC 164
45.98
GitHub Action Run
21 run-3.3-gemfiles/rack_3_0.gemfile - 36250506796.21 26 Sep 2026 03:02PM UTC 165
98.83
GitHub Action Run
22 run-3.3-Gemfile - 36250506796.22 26 Sep 2026 03:02PM UTC 165
98.83
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 36250506796.23 26 Sep 2026 03:02PM UTC 166
98.81
GitHub Action Run
24 run-3.3-gemfiles/rack_2_2.gemfile - 36250506796.24 26 Sep 2026 03:02PM UTC 165
98.8
GitHub Action Run
25 run-3.3-gemfiles/rails_7_2.gemfile - 36250506796.25 26 Sep 2026 03:02PM UTC 166
98.83
GitHub Action Run
26 run-3.4-gemfiles/rails_7_2.gemfile - 36250506796.26 26 Sep 2026 03:02PM UTC 166
98.81
GitHub Action Run
27 run-3.3-gemfiles/rails_8_0.gemfile - 36250506796.27 26 Sep 2026 03:02PM UTC 166
98.83
GitHub Action Run
28 run-4.0-gemfiles/rails_8_0.gemfile - 36250506796.28 26 Sep 2026 03:02PM UTC 166
98.81
GitHub Action Run
29 run-4.0-gemfiles/multi_xml_0_8.gemfile - 36250506796.29 26 Sep 2026 03:02PM UTC 164
45.67
GitHub Action Run
30 run-4.0-gemfiles/rails_8_1.gemfile - 36250506796.30 26 Sep 2026 03:02PM UTC 166
98.81
GitHub Action Run
31 run-3.4-gemfiles/rack_3_0.gemfile - 36250506796.31 26 Sep 2026 03:02PM UTC 165
98.81
GitHub Action Run
32 run-4.0-gemfiles/rails_7_2.gemfile - 36250506796.32 26 Sep 2026 03:02PM UTC 166
98.81
GitHub Action Run
Source Files on build 36250506796
  • Tree
  • List 166
  • Changed 2
  • Source Changed 2
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36250506796
  • 39047c78 on github
  • Prev Build on master (#36249622083)
  • Next Build on fix/header-version-hyphen (#36250518501)
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