dnc 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dnc/version.rb +1 -1
- data/spec/lib/dn_spec.rb +7 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce7a07e20560758b23924c63fbe5ea5e2b6d7a99
|
4
|
+
data.tar.gz: e0f2e9fe32098cb804c6446171cfb874482506d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cbe4dd30c4667b9b545c068e154c0e640fcdc0260b2b0901bf48dc3782f30b0914b5633fae2a076c4c68d7f16a20e470874e8f1734a99b11363750495af3900
|
7
|
+
data.tar.gz: 956a5e1d4f1c2391f6a3a1c1de73f4a5ceb1600ea1591d458c0ec747afe66e42bfaf90b7c02939b3f17e462ecd0aa50da085f65bdd09b0b230706773fc1aa4b5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/dnc/version.rb
CHANGED
data/spec/lib/dn_spec.rb
CHANGED
@@ -59,6 +59,13 @@ describe DN do
|
|
59
59
|
expect(dn.to_s).to eq(dn_string)
|
60
60
|
end
|
61
61
|
|
62
|
+
it "should support customized return order for RDN elements" do
|
63
|
+
dn_string = 'CN=Last First M (initial),O=rb,OU=people,C=us,DC=org,DC=example'
|
64
|
+
dn = DN.new(dn_string: dn_string, string_order: %w(cn ou o dc c))
|
65
|
+
customized_string = 'CN=LAST FIRST M (INITIAL),OU=PEOPLE,O=RB,DC=ORG,DC=EXAMPLE,C=US'
|
66
|
+
expect(dn.to_s).to eq(customized_string)
|
67
|
+
end
|
68
|
+
|
62
69
|
# it "should parse common DN formats into DN objects" do
|
63
70
|
# File.readlines('spec/fixtures/common_dns.txt').each do |line|
|
64
71
|
# dn_in = line.rstrip.split('%')[0]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dnc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Haddox
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
42qdwEXvvkODZAD6KAIXPdmbMfBgPbcd+B/4eUA0PyKo+4dgL1NuqX4MPWToevIZ
|
31
31
|
O8EKLF2X7NmC6FY1bOsSj/J8r1SOkx0rxgF+geRvY1P+hfNjDfxTsjU=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-01-
|
33
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: logging
|
metadata.gz.sig
CHANGED
Binary file
|