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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a396eb196c442711ef2e116e7bc1a999ae5ccceb
4
- data.tar.gz: d1bfc2c1f2a9ba9b76ae828e5d5d1c43751bcc71
3
+ metadata.gz: 95608c0e9622f9225c2e437e32ca70054075a14e
4
+ data.tar.gz: d2e792972fb100619276f6f0f804a9f0e0914c70
5
5
  SHA512:
6
- metadata.gz: 5d4f4c56864855d24f42fd8cc10ebe10f0a800e4645dfec23dfc3bb3c397ede886b49f6ec096b086a34567a60318f07711f7c77516cab87b11db175923405d76
7
- data.tar.gz: 006cab85e2b1e56f9e2eddd4a2ebf8831488f0b468464c8ce37de6766e67ba768fb9086684f71723fd55c7ec9d68299f5d5d0c016f657511fca2db8b4800b0cc
6
+ metadata.gz: 0ad1fc5c594a1a5599d72d5eb3ff14d03dc67ca03bd3da04f24c1bb6224118308465e3179e1c4c02fd81d5e81e3da7efdc7807bce0ac37bfe7b5c578b8d4b5f6
7
+ data.tar.gz: 0fcac240b2473e76c686bdb7a733323c51f287f93671583eeab9b6784f1e07566da5442d018008b7d72ba921ba0da43a4d304378dcaa713154502c69145afa1d
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
 
@@ -128,7 +128,9 @@ class DN
128
128
  if dn_str.nil?
129
129
  false
130
130
  else
131
- dn_str.start_with?('CN=') || dn_str.start_with?("#{delimiter}CN=")
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
 
@@ -1,3 +1,3 @@
1
1
  module Dnc
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,7 +1,9 @@
1
1
  require 'simplecov'
2
2
  require 'coveralls'
3
- SimpleCov.formatter = Coveralls::SimpleCov::Formatter
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
@@ -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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Haddox
metadata.gz.sig CHANGED
Binary file