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

ruby-grape / grape / 24050758336
96%

Build:
DEFAULT BRANCH: master
Ran 06 Apr 2026 08:53PM UTC
Jobs 37
Files 151
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

06 Apr 2026 08:53PM UTC coverage: 96.783% (+0.02%) from 96.759%
24050758336

push

github

web-flow
Fix UnknownAuthStrategy raised when custom auth strategy inherits from Grape::Middleware::Auth::Base (#2674)

When a custom auth strategy class inherits from Grape::Middleware::Auth::Base
and is registered via Grape::Middleware::Auth::Strategies.add, it would raise
Grape::Exceptions::UnknownAuthStrategy with a blank strategy name upon being
instantiated by StrategyInfo#create.

The root cause: PR #2563 moved the strategy lookup from request-time (_call)
to initialization-time (initialize). When StrategyInfo#create instantiates
the custom class via auth_class.new(app) (without options), the inherited
initialize tries to look up options[:type] which is nil, causing the error.

The fix: guard the strategy lookup so it only runs when :type is present in
options. This preserves compile-time validation for the outer middleware
wrapper while allowing subclasses to be instantiated as actual strategies.

Fixes #2669.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

1073 of 1164 branches covered (92.18%)

Branch coverage included in aggregate %.

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

3349 of 3405 relevant lines covered (98.36%)

33089.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.2-gemfiles/rack_3_2.gemfile - 24050758336.1 06 Apr 2026 08:54PM UTC 150
95.64
GitHub Action Run
2 run-3.2-Gemfile - 24050758336.2 06 Apr 2026 08:54PM UTC 150
95.64
GitHub Action Run
3 run-3.3-gemfiles/rails_8_0.gemfile - 24050758336.3 06 Apr 2026 08:54PM UTC 151
95.59
GitHub Action Run
4 run-3.3-gemfiles/rack_3_1.gemfile - 24050758336.4 06 Apr 2026 08:54PM UTC 150
95.59
GitHub Action Run
5 run-3.2-gemfiles/rails_8_1.gemfile - 24050758336.5 06 Apr 2026 08:54PM UTC 151
95.64
GitHub Action Run
6 run-3.2-gemfiles/rails_7_2.gemfile - 24050758336.6 06 Apr 2026 08:54PM UTC 151
95.64
GitHub Action Run
7 run-4.0-gemfiles/rack_3_1.gemfile - 24050758336.7 06 Apr 2026 08:54PM UTC 150
95.61
GitHub Action Run
8 run-3.4-gemfiles/rails_8_0.gemfile - 24050758336.8 06 Apr 2026 08:56PM UTC 151
95.62
GitHub Action Run
9 run-4.0-gemfiles/multi_xml.gemfile - 24050758336.9 06 Apr 2026 08:55PM UTC 150
35.48
GitHub Action Run
10 run-4.0-gemfiles/dry_validation.gemfile - 24050758336.10 06 Apr 2026 08:54PM UTC 150
57.24
GitHub Action Run
11 run-4.0-gemfiles/multi_json.gemfile - 24050758336.11 06 Apr 2026 08:56PM UTC 150
35.48
GitHub Action Run
12 run-3.2-gemfiles/rack_3_0.gemfile - 24050758336.12 06 Apr 2026 08:55PM UTC 150
95.64
GitHub Action Run
13 run-4.0-gemfiles/hashie.gemfile - 24050758336.13 06 Apr 2026 08:57PM UTC 150
61.91
GitHub Action Run
14 run-3.4-Gemfile - 24050758336.14 06 Apr 2026 08:54PM UTC 150
95.61
GitHub Action Run
15 run-3.4-gemfiles/rack_3_0.gemfile - 24050758336.15 06 Apr 2026 08:54PM UTC 150
95.61
GitHub Action Run
16 run-3.3-gemfiles/rack_3_2.gemfile - 24050758336.16 06 Apr 2026 08:54PM UTC 150
95.59
GitHub Action Run
17 run-4.0-gemfiles/rack_2_2.gemfile - 24050758336.17 06 Apr 2026 08:55PM UTC 150
95.57
GitHub Action Run
18 run-3.2-gemfiles/rack_3_1.gemfile - 24050758336.18 06 Apr 2026 08:57PM UTC 150
95.64
GitHub Action Run
19 run-4.0-gemfiles/grape_entity.gemfile - 24050758336.19 06 Apr 2026 08:56PM UTC 150
48.99
GitHub Action Run
20 run-4.0-Gemfile - 24050758336.20 06 Apr 2026 08:54PM UTC 150
95.61
GitHub Action Run
21 run-4.0-gemfiles/rack_3_0.gemfile - 24050758336.21 06 Apr 2026 08:55PM UTC 150
95.61
GitHub Action Run
22 run-3.4-gemfiles/rack_2_2.gemfile - 24050758336.22 06 Apr 2026 08:55PM UTC 150
95.57
GitHub Action Run
23 run-3.4-gemfiles/rails_8_1.gemfile - 24050758336.23 06 Apr 2026 08:57PM UTC 151
95.62
GitHub Action Run
24 run-4.0-gemfiles/rails_8_1.gemfile - 24050758336.24 06 Apr 2026 08:55PM UTC 151
95.62
GitHub Action Run
25 run-3.4-gemfiles/rack_3_2.gemfile - 24050758336.25 06 Apr 2026 08:55PM UTC 150
95.61
GitHub Action Run
26 run-3.2-gemfiles/rails_8_0.gemfile - 24050758336.26 06 Apr 2026 08:54PM UTC 151
95.64
GitHub Action Run
27 run-4.0-gemfiles/rack_3_2.gemfile - 24050758336.27 06 Apr 2026 08:54PM UTC 150
95.61
GitHub Action Run
28 run-4.0-gemfiles/rails_8_0.gemfile - 24050758336.28 06 Apr 2026 08:56PM UTC 151
95.62
GitHub Action Run
29 run-3.3-gemfiles/rack_2_2.gemfile - 24050758336.29 06 Apr 2026 08:54PM UTC 150
95.55
GitHub Action Run
30 run-4.0-gemfiles/rails_7_2.gemfile - 24050758336.30 06 Apr 2026 08:55PM UTC 151
95.62
GitHub Action Run
31 run-3.4-gemfiles/rails_7_2.gemfile - 24050758336.31 06 Apr 2026 08:54PM UTC 151
95.62
GitHub Action Run
32 run-3.2-gemfiles/rack_2_2.gemfile - 24050758336.32 06 Apr 2026 08:53PM UTC 150
95.59
GitHub Action Run
33 run-3.3-gemfiles/rack_3_0.gemfile - 24050758336.33 06 Apr 2026 08:54PM UTC 150
95.59
GitHub Action Run
34 run-3.3-gemfiles/rails_8_1.gemfile - 24050758336.34 06 Apr 2026 08:54PM UTC 151
95.59
GitHub Action Run
35 run-3.3-gemfiles/rails_7_2.gemfile - 24050758336.35 06 Apr 2026 08:54PM UTC 151
95.59
GitHub Action Run
36 run-3.4-gemfiles/rack_3_1.gemfile - 24050758336.36 06 Apr 2026 08:55PM UTC 150
95.61
GitHub Action Run
37 run-3.3-Gemfile - 24050758336.37 06 Apr 2026 08:57PM UTC 150
95.59
GitHub Action Run
Source Files on build 24050758336
  • Tree
  • List 151
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24050758336
  • 46384819 on github
  • Prev Build on master (#24050692906)
  • Next Build on master (#24050845896)
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