Skip to content

Commit 0f0ddb1

Browse files
Merge remote-tracking branch 'upstream/master' into rake-13
2 parents d5a0518 + 4faeee0 commit 0f0ddb1

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ rvm:
77
- 2.4
88
- 2.5
99
- 2.6
10+
- 2.7
1011
# optional
1112
- ruby-head
1213
- jruby-19mode

lib/net/ldap/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def socket
710710
# Wrap around Socket.tcp to normalize with other Socket initializers
711711
class DefaultSocket
712712
def self.new(host, port, socket_opts = {})
713-
Socket.tcp(host, port, socket_opts)
713+
Socket.tcp(host, port, **socket_opts)
714714
end
715715
end
716716
end # class Connection

lib/net/ldap/filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ def parse_paren_expression(scanner)
755755
# This parses a given expression inside of parentheses.
756756
def parse_filter_branch(scanner)
757757
scanner.scan(/\s*/)
758-
if token = scanner.scan(/[-\w:.]*[\w]/)
758+
if token = scanner.scan(/[-\w:.;]*[\w]/)
759759
scanner.scan(/\s*/)
760760
if op = scanner.scan(/<=|>=|!=|:=|=/)
761761
scanner.scan(/\s*/)

test/test_filter_parser.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,8 @@ def test_slash
2121
def test_colons
2222
assert_kind_of Net::LDAP::Filter, Net::LDAP::Filter::FilterParser.parse("(ismemberof=cn=edu:berkeley:app:calmessages:deans,ou=campus groups,dc=berkeley,dc=edu)")
2323
end
24+
25+
def test_attr_tag
26+
assert_kind_of Net::LDAP::Filter, Net::LDAP::Filter::FilterParser.parse("(mail;[email protected])")
27+
end
2428
end

0 commit comments

Comments
 (0)