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

ruby-grape / grape / 25973725275 / 32
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 16 May 2026 09:46PM UTC
Files 163
Run time 4s
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

16 May 2026 09:44PM UTC coverage: 95.717% (-0.001%) from 95.718%
25973725275.32

push

github

web-flow
Reuse one AttributesIterator per validator; drop Enumerable (#2726)

AttributesIterator's attrs/scope are static per validator; only params
varies per request. Build the iterator once in Base#initialize (frozen)
via an overridable iterator_class, and thread params through #each
instead of storing request-derived state in @original_params/@params.
The reused instance is shared across threads, so it must hold no
mutable per-request state.

- Remove `include Enumerable` (dead + misleading: #each never returned
  an Enumerator and nothing used map/select/etc.) and the unused
  `attr_reader :scope`.
- MultipleParamsBase#validate! now lazily builds array_errors
  (`nil` -> `||= []`) like Base, avoiding an empty-array allocation
  on the no-error path.

Allocation: one fewer object (~80 B) per validator per request;
speed-neutral. Full validation/endpoint suites green.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

1060 of 1169 branches covered (90.68%)

Branch coverage included in aggregate %.

3477 of 3571 relevant lines covered (97.37%)

994.75 hits per line

Source Files on job run-3.2-gemfiles/rack_3_0.gemfile - 25973725275.32
  • Tree
  • List 163
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25973725275
  • b690633d on github
  • Prev Job for on master (#25973567226.5)
  • Next Job for on master (#25973819196.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc