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

ruby-grape / grape / 39254521002
100%

Build:
DEFAULT BRANCH: master
Ran 19 Oct 2026 12:45PM UTC
Jobs 32
Files 176
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

19 Oct 2026 12:45PM UTC coverage: 99.95%. Remained the same
39254521002

push

github

web-flow
Add :md and :markdown formatters that render an object's to_markdown (#3025)

Rails 8.1 registers text/markdown as Mime[:md] and adds
`render markdown: obj`, which calls obj.to_markdown. Grape::Formatter::Markdown
is the same contract for Grape: an object answering to_markdown is
rendered with it and a String is returned as is. Anything else raises
Grape::Exceptions::InvalidFormatter, so a client that negotiated Markdown
for a Hash body gets the default format instead of its #to_s.

.md and .markdown are both common Markdown extensions, so :md and
:markdown name the same format. Declaring either content type answers
both extensions and both ?format= spellings: the Formatter middleware
resolves the other name through ContentTypes::FORMAT_SYNONYMS to the one
the API declared, so a formatter, parser or error formatter declared for
that name applies too. The lookup runs only when the requested format is
not declared, so the common path is unchanged.
Grape::Formatter::Md, an empty subclass of Markdown, registers the same
rendering under :md. Each class names its own format in the
InvalidFormatter message, derived from the class name the way the
registry derives its key.

Neither is a default content type; an API opts in with
`content_type :md, 'text/markdown; charset=utf-8'`. Errors keep the text
error formatter, and a text/markdown request body passes through
unparsed.

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

1519 of 1521 branches covered (99.87%)

Branch coverage included in aggregate %.

18 of 18 new or added lines in 4 files covered. (100.0%)

4536 of 4537 relevant lines covered (99.98%)

30534.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/dry_validation.gemfile - 39254521002.1 19 Oct 2026 12:45PM UTC 174
56.42
GitHub Action Run
2 run-4.0-gemfiles/rack_3_2.gemfile - 39254521002.2 19 Oct 2026 12:46PM UTC 175
98.81
GitHub Action Run
3 run-4.0-Gemfile - 39254521002.3 19 Oct 2026 12:45PM UTC 175
98.81
GitHub Action Run
4 run-4.0-gemfiles/multi_json_1_20.gemfile - 39254521002.4 19 Oct 2026 12:45PM UTC 174
46.61
GitHub Action Run
5 run-4.0-gemfiles/rack_3_0.gemfile - 39254521002.5 19 Oct 2026 12:46PM UTC 175
98.81
GitHub Action Run
6 run-4.0-gemfiles/rack_2_2.gemfile - 39254521002.6 19 Oct 2026 12:45PM UTC 175
98.78
GitHub Action Run
7 run-3.4-gemfiles/rack_2_2.gemfile - 39254521002.7 19 Oct 2026 12:45PM UTC 175
98.78
GitHub Action Run
8 run-4.0-gemfiles/multi_xml.gemfile - 39254521002.8 19 Oct 2026 12:45PM UTC 174
46.32
GitHub Action Run
9 run-4.0-gemfiles/grape_entity.gemfile - 39254521002.9 19 Oct 2026 12:45PM UTC 174
49.45
GitHub Action Run
10 run-4.0-gemfiles/grape_swagger.gemfile - 39254521002.10 19 Oct 2026 12:45PM UTC 174
53.65
GitHub Action Run
11 run-3.4-Gemfile - 39254521002.11 19 Oct 2026 12:45PM UTC 175
98.81
GitHub Action Run
12 run-3.3-gemfiles/rails_8_1.gemfile - 39254521002.12 19 Oct 2026 12:45PM UTC 176
98.83
GitHub Action Run
13 run-3.3-gemfiles/rails_8_0.gemfile - 39254521002.13 19 Oct 2026 12:45PM UTC 176
98.83
GitHub Action Run
14 run-4.0-gemfiles/rack_3_1.gemfile - 39254521002.14 19 Oct 2026 12:45PM UTC 175
98.81
GitHub Action Run
15 run-3.3-gemfiles/rack_3_2.gemfile - 39254521002.15 19 Oct 2026 12:45PM UTC 175
98.83
GitHub Action Run
16 run-3.3-gemfiles/rack_3_0.gemfile - 39254521002.16 19 Oct 2026 12:45PM UTC 175
98.83
GitHub Action Run
17 run-4.0-gemfiles/hashie.gemfile - 39254521002.17 19 Oct 2026 12:45PM UTC 174
60.26
GitHub Action Run
18 run-3.3-gemfiles/rack_2_2.gemfile - 39254521002.18 19 Oct 2026 12:45PM UTC 175
98.79
GitHub Action Run
19 run-3.4-gemfiles/rack_3_0.gemfile - 39254521002.19 19 Oct 2026 12:45PM UTC 175
98.81
GitHub Action Run
20 run-3.4-gemfiles/rails_7_2.gemfile - 39254521002.20 19 Oct 2026 12:45PM UTC 176
98.81
GitHub Action Run
21 run-3.4-gemfiles/rails_8_0.gemfile - 39254521002.21 19 Oct 2026 12:46PM UTC 176
98.81
GitHub Action Run
22 run-3.3-gemfiles/rails_7_2.gemfile - 39254521002.22 19 Oct 2026 12:45PM UTC 176
98.83
GitHub Action Run
23 run-3.4-gemfiles/rack_3_1.gemfile - 39254521002.23 19 Oct 2026 12:46PM UTC 175
98.81
GitHub Action Run
24 run-4.0-gemfiles/rails_8_0.gemfile - 39254521002.24 19 Oct 2026 12:45PM UTC 176
98.81
GitHub Action Run
25 run-3.4-gemfiles/rack_3_2.gemfile - 39254521002.25 19 Oct 2026 12:45PM UTC 175
98.81
GitHub Action Run
26 run-3.4-gemfiles/rails_8_1.gemfile - 39254521002.26 19 Oct 2026 12:45PM UTC 176
98.81
GitHub Action Run
27 run-3.3-Gemfile - 39254521002.27 19 Oct 2026 12:45PM UTC 175
98.83
GitHub Action Run
28 run-3.3-gemfiles/rack_3_1.gemfile - 39254521002.28 19 Oct 2026 12:45PM UTC 175
98.83
GitHub Action Run
29 run-4.0-gemfiles/rails_8_1.gemfile - 39254521002.29 19 Oct 2026 12:45PM UTC 176
98.81
GitHub Action Run
30 run-4.0-gemfiles/multi_json.gemfile - 39254521002.30 19 Oct 2026 12:45PM UTC 174
46.58
GitHub Action Run
31 run-4.0-gemfiles/multi_xml_0_8.gemfile - 39254521002.31 19 Oct 2026 12:45PM UTC 174
46.35
GitHub Action Run
32 run-4.0-gemfiles/rails_7_2.gemfile - 39254521002.32 19 Oct 2026 12:45PM UTC 176
98.81
GitHub Action Run
Source Files on build 39254521002
  • Tree
  • List 176
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #39254521002
  • 0342ddcf on github
  • Prev Build on master (#39247250281)
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