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

dblock / grape / 24016385370
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: add-agents-md
DEFAULT BRANCH: master
Ran 06 Apr 2026 02:34AM 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 02:34AM UTC coverage: 96.783%. First build
24016385370

push

github

dblock
Fix UnknownAuthStrategy raised when custom auth strategy inherits from Grape::Middleware::Auth::Base

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%)

33087.89 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rack_3_2.gemfile - 24016385370.1 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
2 run-3.3-gemfiles/rails_7_2.gemfile - 24016385370.2 06 Apr 2026 02:34AM UTC 151
95.59
GitHub Action Run
3 run-3.3-Gemfile - 24016385370.3 06 Apr 2026 02:34AM UTC 150
95.59
GitHub Action Run
4 run-3.2-gemfiles/rack_3_0.gemfile - 24016385370.4 06 Apr 2026 02:34AM UTC 150
95.64
GitHub Action Run
5 run-4.0-gemfiles/dry_validation.gemfile - 24016385370.5 06 Apr 2026 02:34AM UTC 150
57.24
GitHub Action Run
6 run-4.0-gemfiles/rails_8_1.gemfile - 24016385370.6 06 Apr 2026 02:34AM UTC 151
95.62
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 24016385370.7 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
8 run-4.0-gemfiles/rails_8_0.gemfile - 24016385370.8 06 Apr 2026 02:34AM UTC 151
95.62
GitHub Action Run
9 run-4.0-gemfiles/multi_json.gemfile - 24016385370.9 06 Apr 2026 02:34AM UTC 150
35.48
GitHub Action Run
10 run-3.3-gemfiles/rack_3_2.gemfile - 24016385370.10 06 Apr 2026 02:34AM UTC 150
95.59
GitHub Action Run
11 run-3.2-gemfiles/rails_8_1.gemfile - 24016385370.11 06 Apr 2026 02:34AM UTC 151
95.64
GitHub Action Run
12 run-4.0-gemfiles/rack_3_1.gemfile - 24016385370.12 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
13 run-3.4-Gemfile - 24016385370.13 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
14 run-4.0-Gemfile - 24016385370.14 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
15 run-3.4-gemfiles/rails_8_1.gemfile - 24016385370.15 06 Apr 2026 02:34AM UTC 151
95.62
GitHub Action Run
16 run-3.2-gemfiles/rack_2_2.gemfile - 24016385370.16 06 Apr 2026 02:34AM UTC 150
95.59
GitHub Action Run
17 run-4.0-gemfiles/hashie.gemfile - 24016385370.17 06 Apr 2026 02:34AM UTC 150
61.91
GitHub Action Run
18 run-3.3-gemfiles/rack_3_1.gemfile - 24016385370.18 06 Apr 2026 02:34AM UTC 150
95.59
GitHub Action Run
19 run-3.3-gemfiles/rails_8_0.gemfile - 24016385370.19 06 Apr 2026 02:34AM UTC 151
95.59
GitHub Action Run
20 run-4.0-gemfiles/rack_3_0.gemfile - 24016385370.20 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
21 run-3.2-gemfiles/rack_3_2.gemfile - 24016385370.21 06 Apr 2026 02:34AM UTC 150
95.64
GitHub Action Run
22 run-3.2-gemfiles/rack_3_1.gemfile - 24016385370.22 06 Apr 2026 02:34AM UTC 150
95.64
GitHub Action Run
23 run-3.3-gemfiles/rails_8_1.gemfile - 24016385370.23 06 Apr 2026 02:35AM UTC 151
95.59
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 24016385370.24 06 Apr 2026 02:34AM UTC 150
95.59
GitHub Action Run
25 run-4.0-gemfiles/rack_2_2.gemfile - 24016385370.25 06 Apr 2026 02:34AM UTC 150
95.57
GitHub Action Run
26 run-4.0-gemfiles/rails_7_2.gemfile - 24016385370.26 06 Apr 2026 02:34AM UTC 151
95.62
GitHub Action Run
27 run-3.4-gemfiles/rack_3_1.gemfile - 24016385370.27 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
28 run-3.2-gemfiles/rails_8_0.gemfile - 24016385370.28 06 Apr 2026 02:34AM UTC 151
95.64
GitHub Action Run
29 run-3.4-gemfiles/rails_7_2.gemfile - 24016385370.29 06 Apr 2026 02:35AM UTC 151
95.62
GitHub Action Run
30 run-3.4-gemfiles/rack_3_0.gemfile - 24016385370.30 06 Apr 2026 02:34AM UTC 150
95.61
GitHub Action Run
31 run-3.3-gemfiles/rack_2_2.gemfile - 24016385370.31 06 Apr 2026 02:34AM UTC 150
95.55
GitHub Action Run
32 run-3.4-gemfiles/rack_2_2.gemfile - 24016385370.32 06 Apr 2026 02:34AM UTC 150
95.57
GitHub Action Run
33 run-3.2-Gemfile - 24016385370.33 06 Apr 2026 02:34AM UTC 150
95.64
GitHub Action Run
34 run-3.4-gemfiles/rails_8_0.gemfile - 24016385370.34 06 Apr 2026 02:34AM UTC 151
95.62
GitHub Action Run
35 run-3.2-gemfiles/rails_7_2.gemfile - 24016385370.35 06 Apr 2026 02:34AM UTC 151
95.64
GitHub Action Run
36 run-4.0-gemfiles/grape_entity.gemfile - 24016385370.36 06 Apr 2026 02:34AM UTC 150
48.99
GitHub Action Run
37 run-4.0-gemfiles/multi_xml.gemfile - 24016385370.37 06 Apr 2026 02:34AM UTC 150
35.48
GitHub Action Run
Source Files on build 24016385370
  • Tree
  • List 151
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24016385370
  • d5102621 on github
  • Prev Build on fix/auth-base-subclass-issue-2669 (#24006778672)
  • Delete
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