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

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

Build:
DEFAULT BRANCH: master
Ran 20 Apr 2026 10:27PM UTC
Files 154
Run time 8s
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: 35.91% (-0.03%) from 35.943%
24693529552.31

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>

33 of 1155 branches covered (2.86%)

Branch coverage included in aggregate %.

1602 of 3398 relevant lines covered (47.15%)

0.69 hits per line

Source Files on job run-4.0-gemfiles/multi_json.gemfile - 24693529552.31
  • 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.26)
  • 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