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

ruby-grape / grape / 25877276008 / 37
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 14 May 2026 06:18PM UTC
Files 159
Run time 13s
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

14 May 2026 06:15PM UTC coverage: 62.399%. First build
25877276008.37

Pull #2719

github

ericproulx
Move content-type helpers from Middleware::Base into PrecomputedContentTypes

`Middleware::Base#content_types` / `#mime_types` / `#content_type_for` /
`#content_type` / `#content_types_indifferent_access` are only consumed by
middleware that include `PrecomputedContentTypes` — namely `Formatter`,
`Error`, and `Versioner::Base`. The other concrete middlewares
(`Filter`, `Auth::Base`) never call them.

Move the five methods into `PrecomputedContentTypes`. `Base` keeps the
ivar plumbing (`@options`, `@env`, `@app`), `Rack::Request` wrapper,
header merge, and `query_params`; the content-type concern lives with
the mixin that already takes responsibility for warming its caches.

This narrows `Base` to the storage / lifecycle layer and unblocks future
work to give per-middleware `Options` value objects without `Base`
reaching back into the option hash. No behaviour change — every
middleware that called those helpers already included
`PrecomputedContentTypes`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pull Request #2719: Move content-type helpers from Middleware::Base into PrecomputedContentTypes

371 of 1165 branches covered (31.85%)

Branch coverage included in aggregate %.

2568 of 3545 relevant lines covered (72.44%)

8.16 hits per line

Source Files on job run-4.0-gemfiles/hashie.gemfile - 25877276008.37
  • Tree
  • List 159
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25877276008
  • 51f7cc2f on github
  • Next Job for on refactor/precomputed-content-types-move (#25877308686.36)
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