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

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

Build:
Build:
LAST BUILD BRANCH: robust_mounted_app_comparison
DEFAULT BRANCH: master
Ran 29 Jun 2026 02:11PM UTC
Jobs 32
Files 167
Run time 2min
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:11PM UTC coverage: 96.598% (+0.005%) from 96.593%
28378346436

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 via a new options_const_owner helper that walks the
ancestry with const_defined?(name, false) and stops at Object, so middleware
inheritance (e.g. Versioner::Path -> Versioner::Base) keeps working without
matching unrelated globals. Apply the same fix to the DEFAULT_OPTIONS path,
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

1130 of 1228 branches covered (92.02%)

Branch coverage included in aggregate %.

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

1 existing line in 1 file now uncovered.

3584 of 3652 relevant lines covered (98.14%)

23151.08 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
94.29
0.63% lib/grape/middleware/base.rb
Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_8_0.gemfile - 28378346436.1 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
2 run-3.3-gemfiles/rails_8_0.gemfile - 28378346436.2 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
3 run-4.0-gemfiles/multi_json_1_20.gemfile - 28378346436.3 29 Jun 2026 02:12PM UTC 166
47.58
GitHub Action Run
4 run-3.4-gemfiles/rack_3_2.gemfile - 28378346436.4 29 Jun 2026 02:11PM UTC 166
95.14
GitHub Action Run
5 run-3.4-Gemfile - 28378346436.5 29 Jun 2026 02:12PM UTC 166
95.14
GitHub Action Run
6 run-4.0-gemfiles/grape_entity.gemfile - 28378346436.6 29 Jun 2026 02:12PM UTC 166
50.31
GitHub Action Run
7 run-4.0-gemfiles/multi_xml.gemfile - 28378346436.7 29 Jun 2026 02:12PM UTC 166
47.0
GitHub Action Run
8 run-4.0-gemfiles/dry_validation.gemfile - 28378346436.8 29 Jun 2026 02:12PM UTC 166
58.21
GitHub Action Run
9 run-3.4-gemfiles/rails_8_1.gemfile - 28378346436.9 29 Jun 2026 02:13PM UTC 167
95.14
GitHub Action Run
10 run-4.0-gemfiles/rack_3_0.gemfile - 28378346436.10 29 Jun 2026 02:11PM UTC 166
95.14
GitHub Action Run
11 run-3.3-gemfiles/rack_3_0.gemfile - 28378346436.11 29 Jun 2026 02:11PM UTC 166
95.14
GitHub Action Run
12 run-4.0-Gemfile - 28378346436.12 29 Jun 2026 02:13PM UTC 166
95.14
GitHub Action Run
13 run-3.3-gemfiles/rack_2_2.gemfile - 28378346436.13 29 Jun 2026 02:12PM UTC 166
95.1
GitHub Action Run
14 run-3.4-gemfiles/rack_2_2.gemfile - 28378346436.14 29 Jun 2026 02:12PM UTC 166
95.1
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 28378346436.15 29 Jun 2026 02:12PM UTC 166
95.1
GitHub Action Run
16 run-3.3-gemfiles/rack_3_2.gemfile - 28378346436.16 29 Jun 2026 02:12PM UTC 166
95.14
GitHub Action Run
17 run-4.0-gemfiles/hashie.gemfile - 28378346436.17 29 Jun 2026 02:13PM UTC 166
62.33
GitHub Action Run
18 run-4.0-gemfiles/rails_7_2.gemfile - 28378346436.18 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
19 run-3.4-gemfiles/rails_7_2.gemfile - 28378346436.19 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
20 run-3.4-gemfiles/rack_3_0.gemfile - 28378346436.20 29 Jun 2026 02:13PM UTC 166
95.14
GitHub Action Run
21 run-4.0-gemfiles/grape_swagger.gemfile - 28378346436.21 29 Jun 2026 02:12PM UTC 166
55.17
GitHub Action Run
22 run-4.0-gemfiles/multi_json.gemfile - 28378346436.22 29 Jun 2026 02:12PM UTC 166
47.54
GitHub Action Run
23 run-3.3-Gemfile - 28378346436.23 29 Jun 2026 02:12PM UTC 166
95.14
GitHub Action Run
24 run-4.0-gemfiles/rails_8_0.gemfile - 28378346436.24 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
25 run-4.0-gemfiles/rails_8_1.gemfile - 28378346436.25 29 Jun 2026 02:13PM UTC 167
95.14
GitHub Action Run
26 run-3.3-gemfiles/rack_3_1.gemfile - 28378346436.26 29 Jun 2026 02:12PM UTC 166
95.14
GitHub Action Run
27 run-4.0-gemfiles/rack_3_2.gemfile - 28378346436.27 29 Jun 2026 02:13PM UTC 166
95.14
GitHub Action Run
28 run-3.4-gemfiles/rack_3_1.gemfile - 28378346436.28 29 Jun 2026 02:12PM UTC 166
95.14
GitHub Action Run
29 run-4.0-gemfiles/multi_xml_0_8.gemfile - 28378346436.29 29 Jun 2026 02:12PM UTC 166
47.05
GitHub Action Run
30 run-3.3-gemfiles/rails_8_1.gemfile - 28378346436.30 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
31 run-4.0-gemfiles/rack_3_1.gemfile - 28378346436.31 29 Jun 2026 02:12PM UTC 166
95.14
GitHub Action Run
32 run-3.3-gemfiles/rails_7_2.gemfile - 28378346436.32 29 Jun 2026 02:12PM UTC 167
95.14
GitHub Action Run
Source Files on build 28378346436
  • 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 #28378346436
  • 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