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

ruby-grape / grape / 42520755555
100%

Build:
DEFAULT BRANCH: master
Ran 08 Nov 2026 08:33PM UTC
Jobs 23
Files 178
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

08 Nov 2026 08:33PM UTC coverage: 100.0%. Remained the same
42520755555

push

github

web-flow
Make a helper reach the routes declared above it in its scope (#3061)

An endpoint is built from a point-in-time copy of its scope's settings.
The copy keeps the scope's own helpers as they were at the route, but
links to the enclosing scopes live. So a `helpers` declared further
down the same scope never reached the route, and calling it raised
NameError. One declared further down an enclosing scope, or after
`mount`, did reach it.

The endpoint now also keeps the live settings of its scope and reads
the helpers from them when it compiles, by which time the whole class
body has run. A helper declared in a sibling namespace still doesn't
reach the route.

A helper defined twice in one scope therefore answers with its last
definition in every route of that scope, including those declared
between the two definitions. UPGRADING describes that change.

Since that change is silent, the endpoint warns about it when it
compiles, until 5.0. Its settings copy still holds the helpers the
route reached before, so it can tell exactly which methods a helper
declared further down now answers in their place. It warns only for
those: a helper that only adds methods doesn't warn, nor does a
redefinition in an enclosing scope, which already reached the route. The
warning lives in Endpoint::RedefinedHelpersWarning, to be deleted with
it in 5.0, which also keeps Endpoint under its ClassLength limit. The
README no longer lists `helpers` among the declarations that must come
above the routes they cover. `use`, `rescue_from` and the callbacks are
unchanged.

The route endpoint gains a sixth ivar. Per-request copies hold eight,
so their 80-byte slot is unchanged.

Fixes #34

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

1579 of 1579 branches covered (100.0%)

Branch coverage included in aggregate %.

22 of 22 new or added lines in 2 files covered. (100.0%)

4661 of 4661 relevant lines covered (100.0%)

19218.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/grape_swagger.gemfile - 42520755555.1 08 Nov 2026 08:34PM UTC 176
52.91
GitHub Action Run
2 run-4.0-gemfiles/rails_8_0.gemfile - 42520755555.2 08 Nov 2026 08:34PM UTC 178
98.86
GitHub Action Run
3 run-4.0-Gemfile - 42520755555.3 08 Nov 2026 08:34PM UTC 177
98.86
GitHub Action Run
4 run-4.0-gemfiles/grape_entity.gemfile - 42520755555.4 08 Nov 2026 08:33PM UTC 176
48.93
GitHub Action Run
5 run-4.0-gemfiles/multi_xml.gemfile - 42520755555.5 08 Nov 2026 08:33PM UTC 176
45.82
GitHub Action Run
6 run-4.0-gemfiles/multi_json_1_20.gemfile - 42520755555.6 08 Nov 2026 08:34PM UTC 176
46.11
GitHub Action Run
7 run-4.0-gemfiles/multi_xml_0_8.gemfile - 42520755555.7 08 Nov 2026 08:33PM UTC 176
45.85
GitHub Action Run
8 run-4.0-gemfiles/dry_validation.gemfile - 42520755555.8 08 Nov 2026 08:33PM UTC 176
56.88
GitHub Action Run
9 run-3.3-gemfiles/rails_8_0.gemfile - 42520755555.9 08 Nov 2026 08:34PM UTC 178
98.88
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 42520755555.10 08 Nov 2026 08:34PM UTC 177
98.86
GitHub Action Run
11 run-3.4-Gemfile - 42520755555.11 08 Nov 2026 08:34PM UTC 177
98.86
GitHub Action Run
12 run-3.3-gemfiles/rack_3_2.gemfile - 42520755555.12 08 Nov 2026 08:34PM UTC 177
98.87
GitHub Action Run
13 run-3.4-gemfiles/rack_3_2.gemfile - 42520755555.13 08 Nov 2026 08:34PM UTC 177
98.86
GitHub Action Run
14 run-3.4-gemfiles/rails_8_0.gemfile - 42520755555.14 08 Nov 2026 08:34PM UTC 178
98.86
GitHub Action Run
15 run-4.0-gemfiles/hashie.gemfile - 42520755555.15 08 Nov 2026 08:33PM UTC 176
59.4
GitHub Action Run
16 run-3.4-gemfiles/rails_8_1.gemfile - 42520755555.16 08 Nov 2026 08:34PM UTC 178
98.86
GitHub Action Run
17 run-3.3-Gemfile - 42520755555.17 08 Nov 2026 08:34PM UTC 177
98.87
GitHub Action Run
18 run-3.3-gemfiles/rack_3_1.gemfile - 42520755555.18 08 Nov 2026 08:34PM UTC 177
98.87
GitHub Action Run
19 run-4.0-gemfiles/rack_3_1.gemfile - 42520755555.19 08 Nov 2026 08:34PM UTC 177
98.86
GitHub Action Run
20 run-4.0-gemfiles/rack_3_2.gemfile - 42520755555.20 08 Nov 2026 08:34PM UTC 177
98.86
GitHub Action Run
21 run-4.0-gemfiles/multi_json.gemfile - 42520755555.21 08 Nov 2026 08:33PM UTC 176
46.08
GitHub Action Run
22 run-3.3-gemfiles/rails_8_1.gemfile - 42520755555.22 08 Nov 2026 08:34PM UTC 178
98.88
GitHub Action Run
23 run-4.0-gemfiles/rails_8_1.gemfile - 42520755555.23 08 Nov 2026 08:34PM UTC 178
98.86
GitHub Action Run
Source Files on build 42520755555
  • Tree
  • List 178
  • 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 #42520755555
  • adabadb6 on github
  • Prev Build on master (#42520358877)
  • Next Build on master (#42521047877)
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