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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95608c0e9622f9225c2e437e32ca70054075a14e
4
- data.tar.gz: d2e792972fb100619276f6f0f804a9f0e0914c70
3
+ metadata.gz: ce7a07e20560758b23924c63fbe5ea5e2b6d7a99
4
+ data.tar.gz: e0f2e9fe32098cb804c6446171cfb874482506d5
5
5
  SHA512:
6
- metadata.gz: 0ad1fc5c594a1a5599d72d5eb3ff14d03dc67ca03bd3da04f24c1bb6224118308465e3179e1c4c02fd81d5e81e3da7efdc7807bce0ac37bfe7b5c578b8d4b5f6
7
- data.tar.gz: 0fcac240b2473e76c686bdb7a733323c51f287f93671583eeab9b6784f1e07566da5442d018008b7d72ba921ba0da43a4d304378dcaa713154502c69145afa1d
6
+ metadata.gz: 6cbe4dd30c4667b9b545c068e154c0e640fcdc0260b2b0901bf48dc3782f30b0914b5633fae2a076c4c68d7f16a20e470874e8f1734a99b11363750495af3900
7
+ data.tar.gz: 956a5e1d4f1c2391f6a3a1c1de73f4a5ceb1600ea1591d458c0ec747afe66e42bfaf90b7c02939b3f17e462ecd0aa50da085f65bdd09b0b230706773fc1aa4b5
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,3 @@
1
1
  module Dnc
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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.2
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-14 00:00:00.000000000 Z
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