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

Fix unknow pdu Error and show the Ber class #352

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ggalancs
Copy link

No description provided.

@@ -84,7 +84,8 @@ class Error < RuntimeError; end

def initialize(ber_object)
begin
@message_id = ber_object[0].to_i
id = ber_object[0]
Copy link
Contributor

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?

Copy link
Author

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]
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ggalancs ☝️

Copy link
Contributor

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"
Copy link
Member

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?

Copy link
Member

@HarlemSquirrel HarlemSquirrel left a 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!

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.

4 participants