activeldap 4.0.5 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4f80df61b7c3ce5999e745306e16007bc5b17f6d
4
- data.tar.gz: 6de78b2c730aab8884c3de3d0a49efce255a45b3
3
+ metadata.gz: 549828cfce6c587f25851096b0adf279c77b8da2
4
+ data.tar.gz: c8b3dc33d6e602e801f6ea7a223fcfd02fc587a3
5
5
  SHA512:
6
- metadata.gz: 2a6bbedd08e66e15391642d7c37132e4c83b90c01d2fbf213fbdcdff9352a80f0112716f28e1c373b89908f18d5a2b5f36975425c1d248c6b094cc4a02e3df4b
7
- data.tar.gz: 472d41a261d52c4001f333fbdf5e07e4450cfbff210cf199a592e9e47c7f123032c250f6ebea79b9e7d7c9c1989e3d93742cfa92e0fb6e2404f35cf0ab7e4d70
6
+ metadata.gz: b75cccdfba4b4f3735f9a3f2b11d3e1d1595c823ecfd979c7fa351b4e034645634cec04650c6c127e888c895b96715f25613883770dbf115dc068700ec60e6fe
7
+ data.tar.gz: 4531111740536884deb9c5dd3d4be3adea9a944849bf4ebc61d96b5bc0468eeb05b144495787fa5e0f074e3430cc33f30eccb1b66dccec76bc3b3835bcbb11e7
@@ -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 or 2.0.x)
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.
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module ActiveLdap
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.6"
3
3
  end
@@ -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.5
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-01-20 00:00:00.000000000 Z
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.4.5.1
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