Skip to content
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

Make PKey.read raise PKey::PKeyError rather than ArgumentError #55

Merged
merged 2 commits into from
Jul 10, 2016

Conversation

rhenium
Copy link
Member

@rhenium rhenium commented Jul 3, 2016

PKey.read is a generic method to load an arbitrary PKey structure from a
PEM or DER encoded String. Each PKey classes's constructor also can load
from a String, but the behavior on error is different. While they raises
its own exception (are subclasses of PKey::PKeyError), PKey.read raises
ArguementError.

https://bugs.ruby-lang.org/issues/11774

@hsbt
Copy link
Member

hsbt commented Jul 3, 2016

It seems good improvement 👍

but it breaks backword compatibility. we need to add this change to NEWS file when we will merge into ruby core.

@rhenium
Copy link
Member Author

rhenium commented Jul 3, 2016

Thanks!

I drafted NEWS for this repository (#59). I'm thinking about picking 'Backward compatibility notes' section to ruby tree's, when releasing the openssl gem.

@rhenium rhenium force-pushed the topic/pkey-read-pkey-error branch from f2827a6 to 2a833d8 Compare July 3, 2016 13:51
@rhenium rhenium changed the title Make PKey.read raise PKey::PKeyError rather than ArguementError Make PKey.read raise PKey::PKeyError rather than ArgumentError Jul 3, 2016
PKey.read is a generic method to load an arbitrary PKey structure from a
PEM or DER encoded String. Each PKey classes's constructor also can load
from a String, but the behavior on error is different. While they raises
its own exception (are subclasses of PKey::PKeyError), PKey.read raises
ArgumentError.  [Bug #11774]
@rhenium rhenium force-pushed the topic/pkey-read-pkey-error branch from 2a833d8 to 6c09fd3 Compare July 9, 2016 05:49
@rhenium rhenium merged commit 9d5c823 into ruby:master Jul 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants