Skip to content

[pull] master from ruby:master#1183

Merged
pull[bot] merged 9 commits into
turkdevops:masterfrom
ruby:master
Jul 5, 2026
Merged

[pull] master from ruby:master#1183
pull[bot] merged 9 commits into
turkdevops:masterfrom
ruby:master

Conversation

@pull

@pull pull Bot commented Jul 5, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

rhenium added 9 commits July 5, 2026 17:49
Allocate the wrapper object before attempting to load the provider.

Also, expand macros NewProvider() and SetProvider(), which are only
used once and are unlikely to be reused in the future.

ruby/openssl@f62cc13cfa
Simplify the code and raise exceptions with a consistent error message.

This unifies the exception type raised when #initialize is called twice
to TypeError. This should not affect valid usage of these classes.

ruby/openssl@24f72a8350
Allocate the underlying OpenSSL object in #initialize{,_copy} instead
of .allocate. Allocating an empty OpenSSL object in .allocate is
wasteful because #initialize{,_copy} cannot always reuse an existing
object and have to allocate a new one.

Some ruby/openssl classes already follow this approach, such as
OpenSSL::PKey::PKey. Let's standardize on it.

Also expand New*() and Set*() macros, which are only used once or twice
and are not very helpful for readability in my opinion.

ruby/openssl@5f10428793
@pull pull Bot locked and limited conversation to collaborators Jul 5, 2026
@pull pull Bot added the ⤵️ pull label Jul 5, 2026
@pull pull Bot merged commit b32c5de into turkdevops:master Jul 5, 2026
0 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant