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

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

Build:
Build:
LAST BUILD BRANCH: fix/adversarial-sweep-2026-08
DEFAULT BRANCH: master
Ran 26 Jul 2026 04:03PM UTC
Jobs 32
Files 167
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

26 Jul 2026 04:01PM UTC coverage: 96.844% (+0.001%) from 96.843%
30209520640

push

github

ericproulx
Move stackable settings storage onto InheritableSetting

Stackable registrations now live on `Grape::Util::InheritableSetting`
itself — one plain `key => Array` Hash per scope, allocated on first
write — and inheritance is resolved by walking `#parent`, the same
recursion `#rescue_handlers` already used. Previously they lived in a
`StackableValues` instance that maintained its own parallel chain via
`#inherited_values`, so every scope carried two links to its parent and
every registration read as an assignment (`store[:helpers] = mod`) that
actually appended.

The 28 raw store pokes inside the class become a two-method seam:
`stack(key, value)` to append and `stacked(key)` to read the chain
(plus `unstack` / `stacked_keys`). `stack` returns the registered value
because it replaced an assignment expression, whose value the `add_*`
writers — and `DSL::Routing#namespace` through them — silently returned.

`StackableValues` is kept as a read-only view, rebuilt on demand by
`#namespace_stackable`, purely because grape-swagger reads that store
directly: it walks the `#inherited_values` chain and reads each level's
`#new_values` to recover per-scope registrations, which no semantic
accessor exposes. Its `#[]=` and `#delete` are gone and its constructor
now takes `(new_values, inherited_values)`. Once grape-swagger reads the
accessors instead, deleting the class is a one-file change.

`Grape::Util::BaseInheritable` is removed: it only existed to share
plumbing between the two stores, and with `StackableValues` no longer a
store it had one subclass and one now-dead method (`#keys`). Its
contents moved into `Grape::Util::InheritableValues` unchanged.

Settings semantics are otherwise identical, verified against the
previous commit by diffing grape-swagger's generated swagger doc for a
nested `route_param` API. Two pre-existing quirks are preserved rather
than fixed, and are now documented: stack readers hand back the backing
Array when only one scope registered... (continued)

1156 of 1250 branches covered (92.48%)

Branch coverage included in aggregate %.

3784 of 3851 relevant lines covered (98.26%)

21599.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_entity.gemfile - 30209520640.1 26 Jul 2026 04:03PM UTC 166
50.95
GitHub Action Run
2 run-4.0-Gemfile - 30209520640.2 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
3 run-3.3-gemfiles/rails_8_1.gemfile - 30209520640.3 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
4 run-3.3-gemfiles/rails_7_2.gemfile - 30209520640.4 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
5 run-4.0-gemfiles/multi_xml_0_8.gemfile - 30209520640.5 26 Jul 2026 04:03PM UTC 166
47.65
GitHub Action Run
6 run-4.0-gemfiles/rack_3_2.gemfile - 30209520640.6 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
7 run-4.0-gemfiles/multi_json.gemfile - 30209520640.7 26 Jul 2026 04:03PM UTC 166
48.22
GitHub Action Run
8 run-3.3-gemfiles/rails_8_0.gemfile - 30209520640.8 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
9 run-4.0-gemfiles/rails_8_1.gemfile - 30209520640.9 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
10 run-4.0-gemfiles/rack_3_0.gemfile - 30209520640.10 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
11 run-4.0-gemfiles/multi_json_1_20.gemfile - 30209520640.11 26 Jul 2026 04:03PM UTC 166
48.26
GitHub Action Run
12 run-3.3-gemfiles/rack_2_2.gemfile - 30209520640.12 26 Jul 2026 04:03PM UTC 166
95.39
GitHub Action Run
13 run-4.0-gemfiles/rack_2_2.gemfile - 30209520640.13 26 Jul 2026 04:03PM UTC 166
95.39
GitHub Action Run
14 run-4.0-gemfiles/rails_8_0.gemfile - 30209520640.14 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
15 run-3.4-gemfiles/rails_7_2.gemfile - 30209520640.15 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
16 run-4.0-gemfiles/rails_7_2.gemfile - 30209520640.16 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
17 run-3.4-Gemfile - 30209520640.17 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
18 run-3.3-gemfiles/rack_3_2.gemfile - 30209520640.18 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
19 run-3.4-gemfiles/rails_8_0.gemfile - 30209520640.19 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
20 run-4.0-gemfiles/multi_xml.gemfile - 30209520640.20 26 Jul 2026 04:03PM UTC 166
47.62
GitHub Action Run
21 run-3.4-gemfiles/rack_3_1.gemfile - 30209520640.21 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
22 run-3.4-gemfiles/rack_2_2.gemfile - 30209520640.22 26 Jul 2026 04:03PM UTC 166
95.39
GitHub Action Run
23 run-4.0-gemfiles/hashie.gemfile - 30209520640.23 26 Jul 2026 04:03PM UTC 166
62.57
GitHub Action Run
24 run-3.3-gemfiles/rack_3_1.gemfile - 30209520640.24 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
25 run-4.0-gemfiles/grape_swagger.gemfile - 30209520640.25 26 Jul 2026 04:03PM UTC 166
55.88
GitHub Action Run
26 run-3.3-Gemfile - 30209520640.26 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
27 run-3.3-gemfiles/rack_3_0.gemfile - 30209520640.27 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
28 run-3.4-gemfiles/rack_3_2.gemfile - 30209520640.28 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
29 run-4.0-gemfiles/dry_validation.gemfile - 30209520640.29 26 Jul 2026 04:03PM UTC 166
58.61
GitHub Action Run
30 run-3.4-gemfiles/rack_3_0.gemfile - 30209520640.30 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
31 run-3.4-gemfiles/rails_8_1.gemfile - 30209520640.31 26 Jul 2026 04:03PM UTC 167
95.43
GitHub Action Run
32 run-4.0-gemfiles/rack_3_1.gemfile - 30209520640.32 26 Jul 2026 04:03PM UTC 166
95.43
GitHub Action Run
Source Files on build 30209520640
  • Tree
  • List 167
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #30209520640
  • 099c4a62 on github
  • Prev Build on route-scope-accessors (#30206834055)
  • Next Build on internalize-stackable-storage (#30209553439)
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