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

dblock / hyperclient
100%
master: 95%

Build:
Build:
LAST BUILD BRANCH: dblock/fix-stale-resource-cache-after-mutation
DEFAULT BRANCH: master
Repo Added 16 Feb 2023 03:20PM UTC
Token jep21zWWqe4IeJoqAEIyz0cQjoVvSEnWy regen
Build 35 Last
Files 9
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

LAST BUILD ON BRANCH dblock/fix-stale-resource-cache-after-mutation
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add-coverage
  • add-missing-test-coverage
  • danger-pr-comment
  • dblock/add-ruby-4-ci
  • dblock/doc-non-hal-json-responses
  • dblock/fix-resource-to-h
  • dblock/fix-stale-resource-cache-after-mutation
  • faraday-2
  • fix-coveralls-badge
  • fix-simplecov-coveralls
  • follow-redirects
  • maintenance
  • master
  • revert-simplecov-fix
  • ruby-3.2.0
  • upgrade-rubocop

26 Aug 2026 09:57PM UTC coverage: 100.0%. First build
33017627114

push

github

dblock
Fix Link caching stale resource after a mutating request (#107)

Link#http_method previously cached every HTTP response (GET, POST, PUT,
PATCH, DELETE) into @resource, and #_resource returned @resource if set.
This meant that after a _post/_put/_patch/_delete, subsequent calls that
rely on #_resource (method_missing delegation, #each, etc.) would see the
mutation's response instead of fetching a fresh resource via GET, requiring
users to instantiate a new client to see up-to-date data.

Only cache the response for GET requests now, and clear the delegate_method
cache after every request so it is recomputed against the current resource.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

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

289 of 289 relevant lines covered (100.0%)

37.97 hits per line

Relevant lines Covered
Build:
Build:
289 RELEVANT LINES 289 COVERED LINES
37.97 HITS PER LINE
Source Files on master
  • Tree
  • List 9
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
33017627114 dblock/fix-stale-resource-cache-after-mutation Fix Link caching stale resource after a mutating request (#107) Link#http_method previously cached every HTTP response (GET, POST, PUT, PATCH, DELETE) into @resource, and #_resource returned @resource if set. This meant that after a _post/_put/_p... push 26 Aug 2026 09:57PM UTC dblock github
100.0
33017069021 dblock/fix-resource-to-h Fix Resource#to_h returning nil instead of matching #to_hash Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> push 26 Aug 2026 09:49PM UTC dblock github
100.0
33016815520 dblock/doc-non-hal-json-responses Document how to handle non-hal+json responses Addresses #134: by default, Hyperclient requires a Content-Type of application/hal+json and raises InvalidRepresentationError otherwise. This documents the existing workaround (broadening the response... push 26 Aug 2026 09:46PM UTC dblock github
100.0
33016569512 dblock/add-ruby-4-ci Add Ruby 4.0 to CI Adds Ruby 4.0 to the test matrix, and bumps the coverage, danger, and rubocop workflows to run on Ruby 4.0. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> push 26 Aug 2026 09:42PM UTC dblock github
100.0
33016312832 dblock/fix-resource-to-h Fix Resource#to_h returning nil instead of matching #to_hash Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> push 26 Aug 2026 09:38PM UTC dblock github
100.0
33016285281 dblock/fix-resource-to-h Add explicit #to_h test coverage for Collection Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> push 26 Aug 2026 09:38PM UTC dblock github
100.0
33015666877 dblock/doc-non-hal-json-responses Document how to handle non-hal+json responses Addresses #134: by default, Hyperclient requires a Content-Type of application/hal+json and raises InvalidRepresentationError otherwise. This documents the existing workaround (broadening the response... push 26 Aug 2026 09:31PM UTC dblock github
100.0
33015388286 dblock/fix-resource-to-h Fix PR number reference in CHANGELOG push 26 Aug 2026 09:27PM UTC dblock github
100.0
33015365845 dblock/fix-resource-to-h 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, cou... push 26 Aug 2026 09:27PM UTC dblock github
100.0
31854409679 add-missing-test-coverage Add missing test coverage Adds tests for previously uncovered branches identified from https://coveralls.io/jobs/186251746, bringing line coverage from 94.68% to 100%: * Collection#to_s and #method_missing raise path * Attributes#initialize when... push 15 Aug 2026 12:42AM UTC dblock github
100.0
See All Builds (31)

Badge your Repo: hyperclient

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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