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

dblock / hyperclient / 33015365845
100%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dblock/fix-stale-resource-cache-after-mutation
DEFAULT BRANCH: master
Ran 26 Aug 2026 09:27PM UTC
Jobs 1
Files 9
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 Aug 2026 09:26PM UTC coverage: 100.0%. First build
33015365845

push

github

dblock
Fix Resource#to_h returning nil instead of matching #to_hash

Resource#to_h/#to_hash were both delegated via method_missing to
_attributes, guarded by an `Array.method_defined?(method)` check
meant to prevent Enumerable-ish methods (each, map, count, etc.)
from being delegated. However, Array defines #to_h but not #to_hash,
so the guard let #to_hash through while silently swallowing #to_h
(method_missing's elsif branch simply falls through, returning nil).

Fix by explicitly defining #to_h (and aliasing #to_hash to it) on
Resource, delegating to _attributes.to_h, instead of relying on the
Array.method_defined? heuristic for this specific pair of methods.

Closes #103

3 of 3 new or added lines in 1 file covered. (100.0%)

286 of 286 relevant lines covered (100.0%)

37.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 33015365845.1 26 Aug 2026 09:27PM UTC 18
100.0
GitHub Action Run
Source Files on build 33015365845
  • Tree
  • List 9
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #33015365845
  • d377c3b5 on github
  • Next Build on dblock/fix-resource-to-h (#33015388286)
  • Delete
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