xml-kit 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/.travis.yml +1 -0
- data/lib/xml/kit/key_pair.rb +6 -1
- data/lib/xml/kit/version.rb +1 -1
- data/xml-kit.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 615ae2857058e5aa104aa0f80df141836e80e13003eb1c30da471dfc5ee410da
|
4
|
+
data.tar.gz: 40b862ce037a71470178183c33785f40e6961d09585e377a550dab36fb36bfb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14da74d4beaa2b11110ea07defba33a3aa86b914cae24b1224c48f6e8422fff2edea915c9703da5cf3a346b5455e9b4ae5633dba7bab78499887268553f4d6a0
|
7
|
+
data.tar.gz: 013471d06b583efa86198aeb0d337bb9c6740179c3e0b80594eebf68b73a359bd125ece382dd784a4aec28c41b26a8d9c6047e1789b8bc707acb12db63d72501
|
data/.rubocop.yml
CHANGED
@@ -75,7 +75,10 @@ Style/EachWithObject:
|
|
75
75
|
Style/StringLiterals:
|
76
76
|
EnforcedStyle: 'single_quotes'
|
77
77
|
|
78
|
-
Style/
|
78
|
+
Style/TrailingCommaInArrayLiteral:
|
79
|
+
Enabled: false
|
80
|
+
|
81
|
+
Style/TrailingCommaInHashLiteral:
|
79
82
|
Enabled: false
|
80
83
|
|
81
84
|
RSpec/ExampleLength:
|
data/.travis.yml
CHANGED
data/lib/xml/kit/key_pair.rb
CHANGED
@@ -9,7 +9,12 @@ module Xml
|
|
9
9
|
|
10
10
|
def initialize(certificate, private_key, passphrase, use)
|
11
11
|
@certificate = ::Xml::Kit::Certificate.new(certificate, use: use)
|
12
|
-
@private_key =
|
12
|
+
@private_key =
|
13
|
+
if passphrase.present?
|
14
|
+
OpenSSL::PKey::RSA.new(private_key, passphrase)
|
15
|
+
else
|
16
|
+
OpenSSL::PKey::RSA.new(private_key)
|
17
|
+
end
|
13
18
|
@public_key = @private_key.public_key
|
14
19
|
end
|
15
20
|
|
data/lib/xml/kit/version.rb
CHANGED
data/xml-kit.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml-kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mo khan
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|