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

ruby-grape / grape / 42261138475
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: fix/version-positional-options
DEFAULT BRANCH: master
Ran 06 Nov 2026 05:23PM UTC
Jobs 32
Files 177
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 Nov 2026 05:23PM UTC coverage: 100.0%. Remained the same
42261138475

Pull #3055

github

ericproulx
Keep grape.allowed_methods from leaking into the next app's env

When a path has no route for the request's method, the router answers
through the allowed-methods route and sets env['grape.allowed_methods']
so the endpoint knows to answer 405 (or auto-OPTIONS) instead of running
a route block. The key was never removed. Rack::Cascade moves on from a
405 to its next app with the same env, so when that app was another
Grape API, its endpoint found the key and answered 405 as well, even for
a route that matched the method:

    Rack::Cascade.new([
      Class.new(Grape::API) { get('/items') { 'index' } },
      Class.new(Grape::API) { post('/items') { 'create' } }
    ])
    # POST /items -> 405, from the second API

The allowed-methods route now goes through its own
process_allowed_methods_route, which publishes the key for as long as
the route runs and deletes it in an ensure. The endpoint and the header
versioner, which read it, both run inside that call. process_route
loses its include_allow_header keyword.

Found while triaging #1534.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3055: Keep grape.allowed_methods from leaking into the next app's env

1529 of 1529 branches covered (100.0%)

Branch coverage included in aggregate %.

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

4567 of 4567 relevant lines covered (100.0%)

30878.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/multi_xml_0_8.gemfile - 42261138475.1 06 Nov 2026 05:23PM UTC 175
46.24
GitHub Action Run
2 run-4.0-gemfiles/multi_xml.gemfile - 42261138475.2 06 Nov 2026 05:23PM UTC 175
46.21
GitHub Action Run
3 run-4.0-gemfiles/hashie.gemfile - 42261138475.3 06 Nov 2026 05:23PM UTC 175
60.09
GitHub Action Run
4 run-3.4-gemfiles/rack_3_1.gemfile - 42261138475.4 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
5 run-4.0-gemfiles/rails_8_0.gemfile - 42261138475.5 06 Nov 2026 05:23PM UTC 177
98.87
GitHub Action Run
6 run-4.0-gemfiles/rack_3_1.gemfile - 42261138475.6 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
7 run-3.3-gemfiles/rack_3_2.gemfile - 42261138475.7 06 Nov 2026 05:23PM UTC 176
98.88
GitHub Action Run
8 run-3.3-gemfiles/rack_2_2.gemfile - 42261138475.8 06 Nov 2026 05:23PM UTC 176
98.85
GitHub Action Run
9 run-4.0-gemfiles/rails_8_1.gemfile - 42261138475.9 06 Nov 2026 05:23PM UTC 177
98.87
GitHub Action Run
10 run-4.0-gemfiles/rack_3_2.gemfile - 42261138475.10 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
11 run-3.3-gemfiles/rails_8_0.gemfile - 42261138475.11 06 Nov 2026 05:23PM UTC 177
98.88
GitHub Action Run
12 run-4.0-gemfiles/multi_json_1_20.gemfile - 42261138475.12 06 Nov 2026 05:23PM UTC 175
46.5
GitHub Action Run
13 run-3.3-gemfiles/rack_3_0.gemfile - 42261138475.13 06 Nov 2026 05:23PM UTC 176
98.88
GitHub Action Run
14 run-3.4-gemfiles/rack_3_0.gemfile - 42261138475.14 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
15 run-3.4-gemfiles/rails_8_0.gemfile - 42261138475.15 06 Nov 2026 05:23PM UTC 177
98.87
GitHub Action Run
16 run-3.3-Gemfile - 42261138475.16 06 Nov 2026 05:23PM UTC 176
98.88
GitHub Action Run
17 run-4.0-gemfiles/rack_3_0.gemfile - 42261138475.17 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
18 run-3.4-Gemfile - 42261138475.18 06 Nov 2026 05:24PM UTC 176
98.87
GitHub Action Run
19 run-4.0-Gemfile - 42261138475.19 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
20 run-4.0-gemfiles/rails_7_2.gemfile - 42261138475.20 06 Nov 2026 05:23PM UTC 177
98.87
GitHub Action Run
21 run-4.0-gemfiles/multi_json.gemfile - 42261138475.21 06 Nov 2026 05:23PM UTC 175
46.47
GitHub Action Run
22 run-3.4-gemfiles/rack_2_2.gemfile - 42261138475.22 06 Nov 2026 05:23PM UTC 176
98.83
GitHub Action Run
23 run-4.0-gemfiles/rack_2_2.gemfile - 42261138475.23 06 Nov 2026 05:23PM UTC 176
98.83
GitHub Action Run
24 run-4.0-gemfiles/grape_entity.gemfile - 42261138475.24 06 Nov 2026 05:23PM UTC 175
49.39
GitHub Action Run
25 run-3.4-gemfiles/rails_8_1.gemfile - 42261138475.25 06 Nov 2026 05:23PM UTC 177
98.87
GitHub Action Run
26 run-3.3-gemfiles/rails_7_2.gemfile - 42261138475.26 06 Nov 2026 05:23PM UTC 177
98.88
GitHub Action Run
27 run-3.3-gemfiles/rack_3_1.gemfile - 42261138475.27 06 Nov 2026 05:23PM UTC 176
98.88
GitHub Action Run
28 run-3.3-gemfiles/rails_8_1.gemfile - 42261138475.28 06 Nov 2026 05:23PM UTC 177
98.88
GitHub Action Run
29 run-3.4-gemfiles/rack_3_2.gemfile - 42261138475.29 06 Nov 2026 05:23PM UTC 176
98.87
GitHub Action Run
30 run-4.0-gemfiles/grape_swagger.gemfile - 42261138475.30 06 Nov 2026 05:23PM UTC 175
53.46
GitHub Action Run
31 run-3.4-gemfiles/rails_7_2.gemfile - 42261138475.31 06 Nov 2026 05:23PM UTC 177
98.87
GitHub Action Run
32 run-4.0-gemfiles/dry_validation.gemfile - 42261138475.32 06 Nov 2026 05:23PM UTC 175
56.28
GitHub Action Run
Source Files on build 42261138475
  • Tree
  • List 177
  • 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 #42261138475
  • Pull Request #3055
  • PR Base - master (#42258606199)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc