-
Notifications
You must be signed in to change notification settings - Fork 254
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
Fix unknow pdu Error and show the Ber class #352
base: master
Are you sure you want to change the base?
Conversation
lib/net/ldap/pdu.rb
Outdated
@@ -84,7 +84,8 @@ class Error < RuntimeError; end | |||
|
|||
def initialize(ber_object) | |||
begin | |||
@message_id = ber_object[0].to_i | |||
id = ber_object[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the point of this 2 line change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No one, sorry, I try to understand the ber object and I forgot that lines
@@ -84,7 +84,7 @@ class Error < RuntimeError; end | |||
|
|||
def initialize(ber_object) | |||
begin | |||
@message_id = ber_object[0].to_i | |||
@message_id = ber_object[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the benefit of removing this coercion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ggalancs ☝️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HarlemSquirrel Believe this was to prevent a few casting issues when the item could not be converted into an integer. Run into a few of these myself when testing.
@@ -1,5 +1,5 @@ | |||
module Net | |||
class LDAP | |||
VERSION = "0.16.2" | |||
VERSION = "0.16.2.3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change the version here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update this from the latest master. I've got a couple of questions as well. Thank you!
No description provided.