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

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

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 10:27PM UTC
Files 154
Run time 7s
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

20 Apr 2026 10:25PM UTC coverage: 95.609% (+0.02%) from 95.594%
24693529552.32

push

github

web-flow
Introduce Grape::Util::Lazy::Base for unified lazy-type dispatch (#2683)

Adds a shared abstract parent class for Grape::Util::Lazy::Value and
Grape::Util::Lazy::Block so call sites can type-check with a single
is_a?(Grape::Util::Lazy::Base) instead of duck-typing on respond_to?(:lazy?)
/ respond_to?(:evaluate) or enumerating the concrete subclasses.

- New lib/grape/util/lazy/base.rb with a shared #to_s (deduped from Value and Block).
- Value and Block now inherit from Base; their initialize methods call super().
- The internal #lazy? method is removed — no callers remain.
- Grape::API::evaluate_arguments collapses into a single case/when on
  Grape::Util::Lazy::Base / Hash / Array; argument_lazy? indirection is
  removed and any_lazy? uses Array#any?(Base) for a C-level class match.
- Grape::DSL::Routing#evaluate_as_instance_with_configuration and
  Grape::Validations::ParamsScope#configuration swap their respond_to?
  duck checks for explicit is_a?(Grape::Util::Lazy::Base).

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

1046 of 1157 branches covered (90.41%)

Branch coverage included in aggregate %.

3309 of 3398 relevant lines covered (97.38%)

1011.77 hits per line

Source Files on job run-3.2-Gemfile - 24693529552.32
  • Tree
  • List 154
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24693529552
  • 052d0771 on github
  • Prev Job for on master (#24636068189.22)
  • Next Job for on master (#24693636281.37)
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