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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a3ce34db33309cbe5b6afe5bd7ed352bfca890ba176151136ab9c8223b27090
4
- data.tar.gz: f4c89d59e1329584df15437a7b39210a7bff471c0a59edfb1cd07b4bde1a7a53
3
+ metadata.gz: 615ae2857058e5aa104aa0f80df141836e80e13003eb1c30da471dfc5ee410da
4
+ data.tar.gz: 40b862ce037a71470178183c33785f40e6961d09585e377a550dab36fb36bfb6
5
5
  SHA512:
6
- metadata.gz: 3866cc2e2bbc1fe2349a1d3cd8c7a2977029d46f0afa67f7f8113439a2031ad38dc409fdf22ba0a8e2093dcc07f625c0bd9dcb3e018eaaeaad159c82d5540732
7
- data.tar.gz: 594bae158f8ac34f12629b4feb9e38c7a890ec515c6211663d94b9adb2ee532cedd6dd79a0b1084628730da6b89465353582551281b6074835e0a5d62136151c
6
+ metadata.gz: 14da74d4beaa2b11110ea07defba33a3aa86b914cae24b1224c48f6e8422fff2edea915c9703da5cf3a346b5455e9b4ae5633dba7bab78499887268553f4d6a0
7
+ data.tar.gz: 013471d06b583efa86198aeb0d337bb9c6740179c3e0b80594eebf68b73a359bd125ece382dd784a4aec28c41b26a8d9c6047e1789b8bc707acb12db63d72501
@@ -75,7 +75,10 @@ Style/EachWithObject:
75
75
  Style/StringLiterals:
76
76
  EnforcedStyle: 'single_quotes'
77
77
 
78
- Style/TrailingCommaInLiteral:
78
+ Style/TrailingCommaInArrayLiteral:
79
+ Enabled: false
80
+
81
+ Style/TrailingCommaInHashLiteral:
79
82
  Enabled: false
80
83
 
81
84
  RSpec/ExampleLength:
@@ -1,5 +1,6 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ cache: bundler
3
4
  rvm:
4
5
  - 2.2.9
5
6
  - 2.3.6
@@ -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 = OpenSSL::PKey::RSA.new(private_key, passphrase)
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Xml
4
4
  module Kit
5
- VERSION = '0.1.12'.freeze
5
+ VERSION = '0.1.13'.freeze
6
6
  end
7
7
  end
@@ -1,7 +1,7 @@
1
1
 
2
2
  # frozen_string_literal: true
3
3
 
4
- lib = File.expand_path('../lib', __FILE__)
4
+ lib = File.expand_path('lib', __dir__)
5
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
  require 'xml/kit/version'
7
7
 
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.12
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-03 00:00:00.000000000 Z
11
+ date: 2018-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel