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

ruby-grape / grape / 28378915412
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: security/mounted-rack-auth-and-html-escape
DEFAULT BRANCH: master
Ran 29 Jun 2026 02:20PM UTC
Jobs 32
Files 167
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

29 Jun 2026 02:20PM UTC coverage: 96.597% (+0.004%) from 96.593%
28378915412

Pull #2773

github

ericproulx
Fix middleware build crash when a top-level ::Options is in scope

Grape::Middleware::Base#initialize used self.class.const_defined?(:Options),
whose default inherit: true reaches top-level constants on Object. When any
loaded gem defines a global ::Options (e.g. the `options` gem, a transitive
dependency of progress_bar), the guard returned true for every middleware
subclass, but `self.class::Options` then raised NameError because the `::`
resolution operator does not fall back to Object. This took down the whole
middleware stack for third-party middleware that does not declare its own
Options (e.g. grape_logging's RequestLogger).

Resolve the constant through self.class::Options directly: `::` already
honours middleware inheritance (e.g. Versioner::Path -> Versioner::Base) and
never falls back to Object, so a global ::Options is no longer matched and an
absent one cleanly yields the legacy DEFAULT_OPTIONS path. Apply the same
treatment to the DEFAULT_OPTIONS lookup, which had the identical defect.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Pull Request #2773: Fix middleware build crash when a top-level ::Options constant is in scope

1128 of 1226 branches covered (92.01%)

Branch coverage included in aggregate %.

9 of 9 new or added lines in 1 file covered. (100.0%)

3584 of 3652 relevant lines covered (98.14%)

23085.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 28378915412.1 29 Jun 2026 02:20PM UTC 167
95.14
GitHub Action Run
2 run-3.3-Gemfile - 28378915412.2 29 Jun 2026 02:21PM UTC 166
95.13
GitHub Action Run
3 run-4.0-gemfiles/grape_entity.gemfile - 28378915412.3 29 Jun 2026 02:20PM UTC 166
50.29
GitHub Action Run
4 run-3.3-gemfiles/rack_3_0.gemfile - 28378915412.4 29 Jun 2026 02:20PM UTC 166
95.13
GitHub Action Run
5 run-4.0-gemfiles/grape_swagger.gemfile - 28378915412.5 29 Jun 2026 02:27PM UTC 166
55.15
GitHub Action Run
6 run-3.4-gemfiles/rack_3_2.gemfile - 28378915412.6 29 Jun 2026 02:20PM UTC 166
95.14
GitHub Action Run
7 run-4.0-gemfiles/dry_validation.gemfile - 28378915412.7 29 Jun 2026 02:21PM UTC 166
58.19
GitHub Action Run
8 run-3.3-gemfiles/rails_8_0.gemfile - 28378915412.8 29 Jun 2026 02:20PM UTC 167
95.14
GitHub Action Run
9 run-4.0-gemfiles/multi_xml.gemfile - 28378915412.9 29 Jun 2026 02:20PM UTC 166
46.98
GitHub Action Run
10 run-4.0-gemfiles/rack_2_2.gemfile - 28378915412.10 29 Jun 2026 02:20PM UTC 166
95.09
GitHub Action Run
11 run-4.0-gemfiles/multi_xml_0_8.gemfile - 28378915412.11 29 Jun 2026 02:20PM UTC 166
47.02
GitHub Action Run
12 run-4.0-gemfiles/multi_json_1_20.gemfile - 28378915412.12 29 Jun 2026 02:20PM UTC 166
47.56
GitHub Action Run
13 run-4.0-gemfiles/rack_3_0.gemfile - 28378915412.13 29 Jun 2026 02:20PM UTC 166
95.14
GitHub Action Run
14 run-3.4-gemfiles/rails_8_1.gemfile - 28378915412.14 29 Jun 2026 02:20PM UTC 167
95.14
GitHub Action Run
15 run-3.4-gemfiles/rack_3_1.gemfile - 28378915412.15 29 Jun 2026 02:20PM UTC 166
95.14
GitHub Action Run
16 run-4.0-gemfiles/rails_8_1.gemfile - 28378915412.16 29 Jun 2026 02:21PM UTC 167
95.14
GitHub Action Run
17 run-4.0-Gemfile - 28378915412.17 29 Jun 2026 02:20PM UTC 166
95.14
GitHub Action Run
18 run-3.4-gemfiles/rack_3_0.gemfile - 28378915412.18 29 Jun 2026 02:21PM UTC 166
95.14
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 28378915412.19 29 Jun 2026 02:20PM UTC 167
95.14
GitHub Action Run
20 run-4.0-gemfiles/rack_3_1.gemfile - 28378915412.20 29 Jun 2026 02:21PM UTC 166
95.14
GitHub Action Run
21 run-3.4-gemfiles/rack_2_2.gemfile - 28378915412.21 29 Jun 2026 02:20PM UTC 166
95.09
GitHub Action Run
22 run-4.0-gemfiles/rack_3_2.gemfile - 28378915412.22 29 Jun 2026 02:20PM UTC 166
95.14
GitHub Action Run
23 run-4.0-gemfiles/multi_json.gemfile - 28378915412.23 29 Jun 2026 02:21PM UTC 166
47.52
GitHub Action Run
24 run-3.4-Gemfile - 28378915412.24 29 Jun 2026 02:20PM UTC 166
95.14
GitHub Action Run
25 run-3.3-gemfiles/rails_7_2.gemfile - 28378915412.25 29 Jun 2026 02:20PM UTC 167
95.14
GitHub Action Run
26 run-3.3-gemfiles/rack_3_2.gemfile - 28378915412.26 29 Jun 2026 02:21PM UTC 166
95.13
GitHub Action Run
27 run-3.4-gemfiles/rails_7_2.gemfile - 28378915412.27 29 Jun 2026 02:21PM UTC 167
95.14
GitHub Action Run
28 run-3.3-gemfiles/rails_8_1.gemfile - 28378915412.28 29 Jun 2026 02:20PM UTC 167
95.14
GitHub Action Run
29 run-4.0-gemfiles/rails_8_0.gemfile - 28378915412.29 29 Jun 2026 02:21PM UTC 167
95.14
GitHub Action Run
30 run-3.3-gemfiles/rack_3_1.gemfile - 28378915412.30 29 Jun 2026 02:20PM UTC 166
95.13
GitHub Action Run
31 run-3.3-gemfiles/rack_2_2.gemfile - 28378915412.31 29 Jun 2026 02:21PM UTC 166
95.09
GitHub Action Run
32 run-4.0-gemfiles/hashie.gemfile - 28378915412.32 29 Jun 2026 02:20PM UTC 166
62.32
GitHub Action Run
Source Files on build 28378915412
  • Tree
  • List 167
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28378915412
  • Pull Request #2773
  • PR Base - master (#28321497933)
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