Skip to content

Deprecate Resolvable#limit compatibility bridge for timeout#115

Draft
silug wants to merge 2 commits intoOpenVoxProject:mainfrom
silug:deprecate-resolvable-limit
Draft

Deprecate Resolvable#limit compatibility bridge for timeout#115
silug wants to merge 2 commits intoOpenVoxProject:mainfrom
silug:deprecate-resolvable-limit

Conversation

@silug
Copy link
Copy Markdown

@silug silug commented Apr 13, 2026

Short description

limit was added to avoid a naming conflict with Timeout.timeout overwriting the attr_reader. Move internal callers in value to use @timeout || 0 directly so the deprecation warning only fires for external callers.

Closes #91

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

silug and others added 2 commits April 13, 2026 15:51
`limit` was added to avoid a naming conflict with `Timeout.timeout`
overwriting the `attr_reader`. Move internal callers in value to use
`@timeout || 0` directly so the deprecation warning only fires for
external callers.

Closes OpenVoxProject#91

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Steven Pritchard <steven.pritchard@gmail.com>
The before block stubs Facter::Log.new, which inadvertently intercepts
Facter.logger's lazy @logger ||= Log.new(self) initializer. When the
invalid-UTF-8 test calls Facter.send(:logger), the RSpec spy gets stored
in Facter's module-level @logger. After the example ends the spy is torn
down but the stale reference persists, causing spec_random failures.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Deprecation] Resolvable#limit Compatibility Bridge for timeout

1 participant