activeldap 4.0.5 → 4.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.textile +1 -1
- data/doc/text/news.textile +14 -0
- data/lib/active_ldap/distinguished_name.rb +1 -1
- data/lib/active_ldap/version.rb +1 -1
- data/test/test_dn.rb +7 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 549828cfce6c587f25851096b0adf279c77b8da2
|
4
|
+
data.tar.gz: c8b3dc33d6e602e801f6ea7a223fcfd02fc587a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b75cccdfba4b4f3735f9a3f2b11d3e1d1595c823ecfd979c7fa351b4e034645634cec04650c6c127e888c895b96715f25613883770dbf115dc068700ec60e6fe
|
7
|
+
data.tar.gz: 4531111740536884deb9c5dd3d4be3adea9a944849bf4ebc61d96b5bc0468eeb05b144495787fa5e0f074e3430cc33f30eccb1b66dccec76bc3b3835bcbb11e7
|
data/README.textile
CHANGED
@@ -20,7 +20,7 @@ h2. Prerequisites
|
|
20
20
|
|
21
21
|
- Ruby intepreter :=
|
22
22
|
One of them:
|
23
|
-
* "Ruby":http://www.ruby-lang.org (1.9.3
|
23
|
+
* "Ruby":http://www.ruby-lang.org (1.9.3, 2.0.x, 2.1.x, 2.2.x, 2.3.0)
|
24
24
|
* "JRuby":http://www.jruby.org/
|
25
25
|
|
26
26
|
See the above links for installation.
|
data/doc/text/news.textile
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
h1. News
|
2
2
|
|
3
|
+
h2(#release-4-0-6). 4.0.6: 2016-04-07
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* Updated supported Ruby versions.
|
8
|
+
[GitHub#127] [Patch by weicheng]
|
9
|
+
* Supported spaces in DN.
|
10
|
+
[GitHub#129] [Patch by belltailjp]
|
11
|
+
|
12
|
+
h3. Thanks
|
13
|
+
|
14
|
+
* weicheng
|
15
|
+
* belltailjp
|
16
|
+
|
3
17
|
h2(#release-4-0-5). 4.0.5: 2016-01-20
|
4
18
|
|
5
19
|
h3. Improvements
|
@@ -62,7 +62,7 @@ module ActiveLdap
|
|
62
62
|
|
63
63
|
HEX_PAIR = "(?:[\\da-fA-F]{2})"
|
64
64
|
STRING_CHARS_RE = /[^,=\+<>\#;\\\"]*/ #
|
65
|
-
PAIR_RE = /\\([,=\+<>\#;]|\\|\"|(#{HEX_PAIR}))/ #
|
65
|
+
PAIR_RE = /\\([,=\+<>\#;]|\\|\"| |(#{HEX_PAIR}))/ #
|
66
66
|
HEX_STRING_RE = /\#(#{HEX_PAIR}+)/ #
|
67
67
|
def scan_attribute_value(scanner)
|
68
68
|
if scanner.scan(HEX_STRING_RE)
|
data/lib/active_ldap/version.rb
CHANGED
data/test/test_dn.rb
CHANGED
@@ -72,6 +72,13 @@ class TestDN < Test::Unit::TestCase
|
|
72
72
|
"dc = \" l o c a l \" , dc = \"+n,\\\"e\\\";t\"")
|
73
73
|
end
|
74
74
|
|
75
|
+
def test_parse_dn_with_spaces_in_attribute_value
|
76
|
+
assert_dn([["o", "xxx "], ["dc", "local"]], "o=xxx\\ ,dc=local")
|
77
|
+
assert_dn([["o", " xxx"], ["dc", "local"]], "o=\\ xxx,dc=local")
|
78
|
+
assert_dn([["o", "xxx yyy"], ["dc", "local"]], "o=xxx\\ yyy,dc=local")
|
79
|
+
assert_dn([["o", " xxx "], ["dc", "local"]], "o=\\ xxx\\ ,dc=local")
|
80
|
+
end
|
81
|
+
|
75
82
|
def test_parse_dn_in_rfc2253
|
76
83
|
assert_dn([
|
77
84
|
{"cn" => "Steve Kille"},
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Drewry
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-04-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|
@@ -347,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
347
347
|
version: '0'
|
348
348
|
requirements: []
|
349
349
|
rubyforge_project: ruby-activeldap
|
350
|
-
rubygems_version: 2.
|
350
|
+
rubygems_version: 2.5.1
|
351
351
|
signing_key:
|
352
352
|
specification_version: 4
|
353
353
|
summary: ActiveLdap is a object-oriented API to LDAP
|