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

ruby-grape / grape / 34032582409
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: perf/eager-load-i18n
DEFAULT BRANCH: master
Ran 06 Sep 2026 12:15PM 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:15PM UTC coverage: 99.214% (+0.02%) from 99.196%
34032582409

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

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

27145.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-3.4-gemfiles/rails_8_0.gemfile - 34032582409.1 06 Sep 2026 12:16PM UTC 169
97.9
GitHub Action Run
2 run-3.3-Gemfile - 34032582409.2 06 Sep 2026 12:16PM UTC 168
97.9
GitHub Action Run
3 run-3.3-gemfiles/rails_7_2.gemfile - 34032582409.3 06 Sep 2026 12:16PM UTC 169
97.92
GitHub Action Run
4 run-3.3-gemfiles/rack_3_1.gemfile - 34032582409.4 06 Sep 2026 12:16PM UTC 168
97.9
GitHub Action Run
5 run-3.4-gemfiles/rack_3_1.gemfile - 34032582409.5 06 Sep 2026 12:16PM UTC 168
97.88
GitHub Action Run
6 run-3.4-gemfiles/rails_8_1.gemfile - 34032582409.6 06 Sep 2026 12:16PM UTC 169
97.88
GitHub Action Run
7 run-4.0-gemfiles/rack_3_0.gemfile - 34032582409.7 06 Sep 2026 12:16PM UTC 168
97.9
GitHub Action Run
8 run-3.4-Gemfile - 34032582409.8 06 Sep 2026 12:16PM UTC 168
97.9
GitHub Action Run
9 run-3.4-gemfiles/rack_3_2.gemfile - 34032582409.9 06 Sep 2026 12:16PM UTC 168
97.9
GitHub Action Run
10 run-4.0-gemfiles/rails_8_1.gemfile - 34032582409.10 06 Sep 2026 12:16PM UTC 169
97.9
GitHub Action Run
11 run-4.0-gemfiles/rack_2_2.gemfile - 34032582409.11 06 Sep 2026 12:16PM UTC 168
97.86
GitHub Action Run
12 run-4.0-gemfiles/rails_8_0.gemfile - 34032582409.12 06 Sep 2026 12:16PM UTC 169
97.88
GitHub Action Run
13 run-3.4-gemfiles/rack_3_0.gemfile - 34032582409.13 06 Sep 2026 12:16PM UTC 168
97.88
GitHub Action Run
14 run-4.0-gemfiles/hashie.gemfile - 34032582409.14 06 Sep 2026 12:15PM UTC 167
61.76
GitHub Action Run
15 run-4.0-gemfiles/rack_3_1.gemfile - 34032582409.15 06 Sep 2026 12:16PM UTC 168
97.88
GitHub Action Run
16 run-4.0-gemfiles/grape_entity.gemfile - 34032582409.16 06 Sep 2026 12:16PM UTC 167
50.31
GitHub Action Run
17 run-4.0-gemfiles/dry_validation.gemfile - 34032582409.17 06 Sep 2026 12:16PM UTC 167
57.79
GitHub Action Run
18 run-4.0-gemfiles/rails_7_2.gemfile - 34032582409.18 06 Sep 2026 12:16PM UTC 169
97.88
GitHub Action Run
19 run-3.3-gemfiles/rails_8_1.gemfile - 34032582409.19 06 Sep 2026 12:16PM UTC 169
97.9
GitHub Action Run
20 run-3.3-gemfiles/rack_2_2.gemfile - 34032582409.20 06 Sep 2026 12:16PM UTC 168
97.88
GitHub Action Run
21 run-3.3-gemfiles/rack_3_0.gemfile - 34032582409.21 06 Sep 2026 12:16PM UTC 168
97.9
GitHub Action Run
22 run-4.0-gemfiles/multi_xml.gemfile - 34032582409.22 06 Sep 2026 12:16PM UTC 167
46.98
GitHub Action Run
23 run-4.0-gemfiles/multi_xml_0_8.gemfile - 34032582409.23 06 Sep 2026 12:16PM UTC 167
47.02
GitHub Action Run
24 run-4.0-gemfiles/rack_3_2.gemfile - 34032582409.24 06 Sep 2026 12:16PM UTC 168
97.88
GitHub Action Run
25 run-3.3-gemfiles/rack_3_2.gemfile - 34032582409.25 06 Sep 2026 12:16PM UTC 168
97.92
GitHub Action Run
26 run-3.4-gemfiles/rack_2_2.gemfile - 34032582409.26 06 Sep 2026 12:16PM UTC 168
97.86
GitHub Action Run
27 run-4.0-Gemfile - 34032582409.27 06 Sep 2026 12:16PM UTC 168
97.88
GitHub Action Run
28 run-4.0-gemfiles/multi_json.gemfile - 34032582409.28 06 Sep 2026 12:16PM UTC 167
47.51
GitHub Action Run
29 run-3.3-gemfiles/rails_8_0.gemfile - 34032582409.29 06 Sep 2026 12:16PM UTC 169
97.92
GitHub Action Run
30 run-4.0-gemfiles/grape_swagger.gemfile - 34032582409.30 06 Sep 2026 12:15PM UTC 167
55.23
GitHub Action Run
31 run-4.0-gemfiles/multi_json_1_20.gemfile - 34032582409.31 06 Sep 2026 12:15PM UTC 167
47.54
GitHub Action Run
32 run-3.4-gemfiles/rails_7_2.gemfile - 34032582409.32 06 Sep 2026 12:16PM UTC 169
97.9
GitHub Action Run
Source Files on build 34032582409
  • 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 #34032582409
  • Pull Request #2907
  • PR Base - master (#34032439853)
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