dnc 0.1.1 → 0.1.2
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/README.md +3 -1
- data/lib/dnc/dn.rb +3 -1
- data/lib/dnc/version.rb +1 -1
- data/spec/spec_helper.rb +3 -1
- metadata +1 -1
- 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: 95608c0e9622f9225c2e437e32ca70054075a14e
|
4
|
+
data.tar.gz: d2e792972fb100619276f6f0f804a9f0e0914c70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad1fc5c594a1a5599d72d5eb3ff14d03dc67ca03bd3da04f24c1bb6224118308465e3179e1c4c02fd81d5e81e3da7efdc7807bce0ac37bfe7b5c578b8d4b5f6
|
7
|
+
data.tar.gz: 0fcac240b2473e76c686bdb7a733323c51f287f93671583eeab9b6784f1e07566da5442d018008b7d72ba921ba0da43a4d304378dcaa713154502c69145afa1d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
# Distinguished Name (DN) Converter
|
1
|
+
# Distinguished Name (DN) Converter [![Gem Version](https://badge.fury.io/rb/dnc.png)](http://badge.fury.io/rb/dnc)
|
2
|
+
|
3
|
+
[![Travis CI](https://travis-ci.org/stevenhaddox/dnc.svg?branch=master)](https://travis-ci.org/stevenhaddox/dnc) [![Dependency Status](https://gemnasium.com/stevenhaddox/dnc.png)](https://gemnasium.com/stevenhaddox/dnc) [![Coverage Status](https://coveralls.io/repos/stevenhaddox/dnc/badge.png)](https://coveralls.io/r/stevenhaddox/dnc) [![Code Climate](https://codeclimate.com/github/stevenhaddox/dnc/badges/gpa.svg)](https://codeclimate.com/github/stevenhaddox/dnc) [![Inline docs](http://inch-ci.org/github/stevenhaddox/dnc.svg?branch=master)](http://inch-ci.org/github/stevenhaddox/dnc)
|
2
4
|
|
3
5
|
Convert multiple X509 DN strings into a consistent format.
|
4
6
|
|
data/lib/dnc/dn.rb
CHANGED
@@ -128,7 +128,9 @@ class DN
|
|
128
128
|
if dn_str.nil?
|
129
129
|
false
|
130
130
|
else
|
131
|
-
|
131
|
+
with_delim = "#{delimiter}/CN=".send(@transformation.to_sym)
|
132
|
+
without_delim = 'CN='.send(@transformation.to_sym)
|
133
|
+
dn_str.start_with?(without_delim) || dn_str.start_with?(with_delim)
|
132
134
|
end
|
133
135
|
end
|
134
136
|
|
data/lib/dnc/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
require 'simplecov'
|
2
2
|
require 'coveralls'
|
3
|
-
SimpleCov.
|
3
|
+
SimpleCov.formatters = [SimpleCov::Formatter::HTMLFormatter,
|
4
|
+
Coveralls::SimpleCov::Formatter]
|
4
5
|
SimpleCov.start do
|
6
|
+
add_group "Models", "lib/dnc"
|
5
7
|
add_filter '/spec/'
|
6
8
|
end
|
7
9
|
# SimpleCov always comes before **anything** else
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|