8000 Add pure ruby stub methods (raise EM::Unsupported) by nevans · Pull Request #1008 · eventmachine/eventmachine · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add pure ruby stub methods (raise EM::Unsupported) #1008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nevans
Copy link
Contributor
@nevans nevans commented Sep 12, 2024

This is an extraction from (and a continuation of) #1006, which should be merged first.

Many of these may be trivial to implement in pure ruby mode, and some may be impossible, but for right now I'd prefer to simply have them all displayed as a "TODO list" in the test results.

This would have broken many tests that were previously omitted based on whether or not EM responds to these methods. However an earlier commit marked those tests as pending in pure_ruby mode.

A minor tradeoff of this PR is that EM.respond_to?(method) cannot be used as a feature detection mechanism. However, it's my belief that it already can't be used reliably for that. Additionally, most of these methods are marked as # @private, so users of EventMachine really should not make any assumptions about them. And fortunately, in my searches of public code, these are not the methods that people are checking.

@nevans nevans force-pushed the pure_ruby/add-unsupported-stub-methods branch from beee7d6 to 012c9e2 Compare September 12, 2024 17:17
Many of these may be trivial to implement in pure ruby mode, and some
may be impossible, but for right now I'd prefer to simply have them all
displayed as a "TODO list" in the test results.

_This would have broken many tests_ that were previously omitted based
on whether or not `EM` responds to these methods.  However an earlier
commit marked those tests as pending in pure_ruby mode.
@nevans nevans force-pushed the pure_ruby/add-unsupported-stub-methods branch from 012c9e2 to 0a0e56f Compare September 18, 2024 21:43
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.

1 participant
0