dnc 0.1.6 → 0.1.8

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: 3e1c53c79e85a52ee7f8edf4dc124c20b4fb5d96
4
- data.tar.gz: 22e6c488baf13880cc1bd045476c3ec5d51b83f5
3
+ metadata.gz: 9dc10e756bf70d6fff772d6df04ceb1b2581efd0
4
+ data.tar.gz: 741f68265f15537730d63030d007fe2ee91d7804
5
5
  SHA512:
6
- metadata.gz: db035c940b3bd052d5234bfd08928f5bdb2a7aa2b0706c16eab6d6677c1edb7da32a849857eedcc0fb01ee2a106298210c9b6e20333f111b6b0ece302f44dc22
7
- data.tar.gz: b56183f864b07685a1255eaf7f6c7e4c694608a17b9b0d7090bc20a1f9a8309baeaf407f75e43dd095ea2b8917feecd318b228783f4db64700fea238a7161fe7
6
+ metadata.gz: ae9fbedfd927345a2448c6e4938485c9c3d24bfecfea166d578be915858bd5bcc29d48cad7b5868a7e6bb8a4c1eb34e49663b9ebb3b7899810563ff98a2f1e26
7
+ data.tar.gz: f81c31003cbeb3c190b7735f3efa399931c02200920e9d6bdccb672155ef4521da0042ed46c46560c204e8e5d6f4b056219279271fcfbc927873b2c7ac60d05a
@@ -1 +1,4 @@
1
- 0JC���K㮨�i2��c���+k�ܘ��mIY��e��%r�� �Ǟ} ��#�G��B�y��7��U��i�ևk�K���扜W��^��663S�`,ظ�[zOȅ|���y|���`^�;��Qx
1
+ r2Ky�=А#�}��FPb��!^�=-����@�D�;���O8 �����V,�נ��~"8����x'�M�Ĕʆ��
2
+ ���?�n�r7��d7����`���<EH� �⏎��x���y�UJ��6�
3
+ ��`#"�f��k/�y�
4
+ �j��%Z�d���(V�h�:
data.tar.gz.sig CHANGED
Binary file
@@ -8,4 +8,7 @@ rvm:
8
8
  - 2.0.0
9
9
  - 1.9.3
10
10
 
11
+ before_install:
12
+ - gem install bundler
13
+
11
14
  script: 'bundle exec rake'
@@ -26,7 +26,7 @@ class DN
26
26
  # @return [DN]
27
27
  def initialize(opts = {})
28
28
  @dn_string = opts[:dn_string]
29
- fail 'dnc: dn_string parameter is **required**' if dn_string.nil?
29
+ raise 'dnc: dn_string parameter is **required**' if dn_string.nil?
30
30
  @original_dn = dn_string
31
31
  @logger = opts[:logger] || logger
32
32
  @transformation = opts[:transformation] || 'upcase'
@@ -114,7 +114,7 @@ class DN
114
114
 
115
115
  def assign_rdn_as_array(method_name, value)
116
116
  send("#{method_name}=", Array.wrap(send(method_name)))
117
- send("#{method_name}").push(value)
117
+ send(method_name).push(value)
118
118
  end
119
119
 
120
120
  # Ensure order of DN elements is proper for CAS server
@@ -123,7 +123,7 @@ class DN
123
123
  if dn_begins_properly?(formatted_dn)
124
124
  @dn_string = formatted_dn
125
125
  else
126
- fail "DN invalid format for LDAP authentication, DN:\r\n#{original_dn}"
126
+ raise "DN invalid format for LDAP authentication, DN:\r\n#{original_dn}"
127
127
  end
128
128
  end
129
129
 
@@ -134,7 +134,7 @@ class DN
134
134
  else
135
135
  with_delim = "#{delimiter}/CN=".send(@transformation.to_sym)
136
136
  without_delim = 'CN='.send(@transformation.to_sym)
137
- dn_str.start_with?(without_delim) || dn_str.start_with?(with_delim)
137
+ dn_str.start_with?(without_delim, with_delim)
138
138
  end
139
139
  end
140
140
 
@@ -1,3 +1,3 @@
1
1
  module Dnc
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
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.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Haddox
@@ -30,7 +30,7 @@ cert_chain:
30
30
  jH+3qEZXITKNXNROebXFcF9+0OcQ5HnfOYtVvOlneFJGLMGkPaZMTHgcgjILoaxL
31
31
  L7rj/ffYaFLQeWVQkhbMRtdJKXeuTkFt5Ix2xxueDKskBiSutC3Iy60=
32
32
  -----END CERTIFICATE-----
33
- date: 2016-01-18 00:00:00.000000000 Z
33
+ date: 2016-02-27 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: logging
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- �2L?'<��?�5�P� b�����xH�f�:X���@'�#[3�dO�V�����Eiq�y��O+H�X,���i�K��_g��y��e��&񅶴Hl~�)�E�,�>��#z+���C�>d�G̹M�X˸tdp��OD6�8�j��v;�g�u�4��yH�H�#�}��1χ��Z��!��N�|���JM��v�jW�[+�bOo�|��!�'����5�����Տ�2��a.�.� ��PB�
1
+ [ ,9�Ώ9��nZx7��(‚��
2
+ H�Q�?�>��id�u�iQT�Х��N�)>Ýk�tG<,_���y���̚�����S�s5 ::�b��a�G��3�+%�j��1LsDQM"5�c��� 8���z[�p