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

ruby-grape / grape / 34032720543
99%

Build:
DEFAULT BRANCH: master
Ran 06 Sep 2026 12:18PM 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

06 Sep 2026 12:18PM UTC coverage: 99.214% (+0.02%) from 99.196%
34032720543

push

github

web-flow
Stop Endpoint::Options from appending to the caller's path Array (#2907)

`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>

1290 of 1332 branches covered (96.85%)

Branch coverage included in aggregate %.

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

4011 of 4011 relevant lines covered (100.0%)

27141.01 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_7_2.gemfile - 34032720543.1 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
2 run-4.0-gemfiles/rails_8_0.gemfile - 34032720543.2 06 Sep 2026 12:19PM UTC 169
97.88
GitHub Action Run
3 run-3.4-gemfiles/rails_8_1.gemfile - 34032720543.3 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
4 run-4.0-Gemfile - 34032720543.4 06 Sep 2026 12:19PM UTC 168
97.9
GitHub Action Run
5 run-3.3-gemfiles/rack_3_0.gemfile - 34032720543.5 06 Sep 2026 12:19PM UTC 168
97.9
GitHub Action Run
6 run-4.0-gemfiles/rack_3_0.gemfile - 34032720543.6 06 Sep 2026 12:19PM UTC 168
97.88
GitHub Action Run
7 run-3.4-gemfiles/rack_3_2.gemfile - 34032720543.7 06 Sep 2026 12:19PM UTC 168
97.88
GitHub Action Run
8 run-3.3-gemfiles/rack_3_2.gemfile - 34032720543.8 06 Sep 2026 12:19PM UTC 168
97.92
GitHub Action Run
9 run-3.4-gemfiles/rack_3_0.gemfile - 34032720543.9 06 Sep 2026 12:19PM UTC 168
97.88
GitHub Action Run
10 run-3.3-gemfiles/rails_8_0.gemfile - 34032720543.10 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
11 run-4.0-gemfiles/multi_json_1_20.gemfile - 34032720543.11 06 Sep 2026 12:18PM UTC 167
47.54
GitHub Action Run
12 run-3.4-gemfiles/rack_2_2.gemfile - 34032720543.12 06 Sep 2026 12:19PM UTC 168
97.85
GitHub Action Run
13 run-3.3-gemfiles/rack_3_1.gemfile - 34032720543.13 06 Sep 2026 12:19PM UTC 168
97.92
GitHub Action Run
14 run-4.0-gemfiles/multi_xml_0_8.gemfile - 34032720543.14 06 Sep 2026 12:18PM UTC 167
47.02
GitHub Action Run
15 run-4.0-gemfiles/grape_swagger.gemfile - 34032720543.15 06 Sep 2026 12:18PM UTC 167
55.23
GitHub Action Run
16 run-3.4-gemfiles/rails_7_2.gemfile - 34032720543.16 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
17 run-4.0-gemfiles/rack_3_2.gemfile - 34032720543.17 06 Sep 2026 12:19PM UTC 168
97.88
GitHub Action Run
18 run-3.4-gemfiles/rack_3_1.gemfile - 34032720543.18 06 Sep 2026 12:19PM UTC 168
97.88
GitHub Action Run
19 run-4.0-gemfiles/rack_2_2.gemfile - 34032720543.19 06 Sep 2026 12:19PM UTC 168
97.85
GitHub Action Run
20 run-4.0-gemfiles/rails_8_1.gemfile - 34032720543.20 06 Sep 2026 12:19PM UTC 169
97.88
GitHub Action Run
21 run-4.0-gemfiles/dry_validation.gemfile - 34032720543.21 06 Sep 2026 12:18PM UTC 167
57.79
GitHub Action Run
22 run-3.4-gemfiles/rails_8_0.gemfile - 34032720543.22 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
23 run-3.3-Gemfile - 34032720543.23 06 Sep 2026 12:19PM UTC 168
97.9
GitHub Action Run
24 run-4.0-gemfiles/grape_entity.gemfile - 34032720543.24 06 Sep 2026 12:19PM UTC 167
50.31
GitHub Action Run
25 run-3.3-gemfiles/rails_7_2.gemfile - 34032720543.25 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
26 run-4.0-gemfiles/multi_json.gemfile - 34032720543.26 06 Sep 2026 12:19PM UTC 167
47.51
GitHub Action Run
27 run-4.0-gemfiles/multi_xml.gemfile - 34032720543.27 06 Sep 2026 12:19PM UTC 167
46.98
GitHub Action Run
28 run-4.0-gemfiles/hashie.gemfile - 34032720543.28 06 Sep 2026 12:19PM UTC 167
61.76
GitHub Action Run
29 run-3.3-gemfiles/rack_2_2.gemfile - 34032720543.29 06 Sep 2026 12:19PM UTC 168
97.86
GitHub Action Run
30 run-4.0-gemfiles/rack_3_1.gemfile - 34032720543.30 06 Sep 2026 12:19PM UTC 168
97.9
GitHub Action Run
31 run-3.4-Gemfile - 34032720543.31 06 Sep 2026 12:19PM UTC 168
97.9
GitHub Action Run
32 run-3.3-gemfiles/rails_8_1.gemfile - 34032720543.32 06 Sep 2026 12:19PM UTC 169
97.9
GitHub Action Run
Source Files on build 34032720543
  • Tree
  • List 169
  • 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 #34032720543
  • d1e6a28a on github
  • Prev Build on master (#34032439853)
  • Next Build on master (#34049202971)
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