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

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

Build:
Build:
LAST BUILD BRANCH: route-param-bare-requirements
DEFAULT BRANCH: master
Ran 05 Sep 2026 06:11PM UTC
Jobs 32
Files 169
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

05 Sep 2026 06:10PM UTC coverage: 97.131% (+0.02%) from 97.114%
33983254581

Pull #2907

github

ericproulx
Stop Endpoint::Options from appending to the caller's path Array

`Array(ary)` hands back the very Array it was given, so defaulting an
empty path by appending grew the Array the caller passed in.

A route declared inside a `namespace`, `resource`, `group` or
`route_param` block reaches `Grape::Endpoint` directly, so this is
visible from the public DSL — and a frozen Array raises at boot:

    PATHS = [].freeze

    class API < Grape::API
      namespace :v1 do
        get(PATHS) { 'ok' }   # FrozenError: can't modify frozen Array: []
      end
    end

A top-level route is shielded, but only incidentally: `Grape::API`
replays recorded setup steps through `evaluate_arguments`, which rebuilds
Array arguments with `map`, so the append lands on that copy instead.
Nested scopes run their block against the instance and skip it.

Build a new Array instead. Calling `super` with explicit keywords rather
than zsuper is what removes the need to assign back over the parameter.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Pull Request #2907: Stop Grape::Endpoint::Options from appending to the caller's path Array

1239 of 1328 branches covered (93.3%)

Branch coverage included in aggregate %.

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

3941 of 4005 relevant lines covered (98.4%)

27179.16 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.3-gemfiles/rack_3_2.gemfile - 33983254581.1 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
2 run-3.4-gemfiles/rack_3_0.gemfile - 33983254581.2 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
3 run-3.4-gemfiles/rack_3_2.gemfile - 33983254581.3 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
4 run-3.3-gemfiles/rails_8_1.gemfile - 33983254581.4 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
5 run-4.0-gemfiles/rack_3_2.gemfile - 33983254581.5 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
6 run-3.3-gemfiles/rack_3_1.gemfile - 33983254581.6 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
7 run-3.3-gemfiles/rails_8_0.gemfile - 33983254581.7 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
8 run-3.4-gemfiles/rack_3_1.gemfile - 33983254581.8 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
9 run-4.0-gemfiles/rails_7_2.gemfile - 33983254581.9 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
10 run-4.0-gemfiles/grape_swagger.gemfile - 33983254581.10 05 Sep 2026 06:11PM UTC 167
55.29
GitHub Action Run
11 run-4.0-gemfiles/rails_8_0.gemfile - 33983254581.11 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
12 run-3.3-gemfiles/rack_2_2.gemfile - 33983254581.12 05 Sep 2026 06:11PM UTC 168
95.85
GitHub Action Run
13 run-4.0-gemfiles/hashie.gemfile - 33983254581.13 05 Sep 2026 06:11PM UTC 167
61.8
GitHub Action Run
14 run-3.4-gemfiles/rails_8_1.gemfile - 33983254581.14 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
15 run-4.0-gemfiles/dry_validation.gemfile - 33983254581.15 05 Sep 2026 06:11PM UTC 167
57.8
GitHub Action Run
16 run-4.0-gemfiles/multi_xml.gemfile - 33983254581.16 05 Sep 2026 06:11PM UTC 167
47.05
GitHub Action Run
17 run-3.3-gemfiles/rack_3_0.gemfile - 33983254581.17 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
18 run-3.4-Gemfile - 33983254581.18 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
19 run-4.0-gemfiles/rails_8_1.gemfile - 33983254581.19 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
20 run-4.0-gemfiles/multi_json_1_20.gemfile - 33983254581.20 05 Sep 2026 06:11PM UTC 167
47.59
GitHub Action Run
21 run-3.3-Gemfile - 33983254581.21 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
22 run-4.0-gemfiles/rack_3_0.gemfile - 33983254581.22 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
23 run-3.4-gemfiles/rack_2_2.gemfile - 33983254581.23 05 Sep 2026 06:11PM UTC 168
95.85
GitHub Action Run
24 run-4.0-Gemfile - 33983254581.24 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
25 run-3.3-gemfiles/rails_7_2.gemfile - 33983254581.25 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
26 run-4.0-gemfiles/grape_entity.gemfile - 33983254581.26 05 Sep 2026 06:11PM UTC 167
50.35
GitHub Action Run
27 run-3.4-gemfiles/rails_7_2.gemfile - 33983254581.27 05 Sep 2026 06:12PM UTC 169
95.89
GitHub Action Run
28 run-3.4-gemfiles/rails_8_0.gemfile - 33983254581.28 05 Sep 2026 06:11PM UTC 169
95.89
GitHub Action Run
29 run-4.0-gemfiles/rack_3_1.gemfile - 33983254581.29 05 Sep 2026 06:11PM UTC 168
95.89
GitHub Action Run
30 run-4.0-gemfiles/multi_xml_0_8.gemfile - 33983254581.30 05 Sep 2026 06:11PM UTC 167
47.09
GitHub Action Run
31 run-4.0-gemfiles/multi_json.gemfile - 33983254581.31 05 Sep 2026 06:11PM UTC 167
47.56
GitHub Action Run
32 run-4.0-gemfiles/rack_2_2.gemfile - 33983254581.32 05 Sep 2026 06:11PM UTC 168
95.85
GitHub Action Run
Source Files on build 33983254581
  • Tree
  • List 169
  • 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 #33983254581
  • Pull Request #2907
  • PR Base - master (#33958239245)
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