mixlib-authentication 3.0.6 → 3.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffd7c02d4d9d20fdf32da899c6409fc59caffea1183d4c0806b0c02a20054538
4
- data.tar.gz: 5f30cd2c44cc6b8375d9a950f596e2b89031654d315a822088baca00c1300b49
3
+ metadata.gz: f961b487a4404bf999dd791952f784401e7eaf4a36eecdac52874ba9d9997a1a
4
+ data.tar.gz: 6ee8efc92cc33d7b7f94895f551877d362c38901a065360ca451db372072f31d
5
5
  SHA512:
6
- metadata.gz: 288e2b5de5735c93ebfe885ec24ae267dc056bbdff205b8ff0a4ad94f7691598965db5051ffd853811574ada1aeb10775685b4a4a864a870aa08377def77a801
7
- data.tar.gz: 1c49b5589da86a7fe73d0d0c9914a148f0c95a0ff4762a711224bfc7d1a47fb20f98c7a9c6ad2a3a0d45bb6c42a90e295f7d6b98a5a8af80a99c96aafe9ecdf5
6
+ metadata.gz: 8719fbb1220d6df7d0ac0bef161eddcefa032333bad5f00221324658b8609b0e898912423d9a6a6c4cee937c63ecda581cd08e0fe932d3f113c2e0cf409bd439
7
+ data.tar.gz: 54371b49adc7c04b5511fd16066287d142e01ee9248aa7d30f8074b147b1d7cf4074639d9e007eff92b4e695cd70c8a4b25e3015fa35fdc1af8a4392ac10d105
@@ -17,7 +17,7 @@
17
17
  #
18
18
 
19
19
  require_relative "../authentication"
20
- require "openssl"
20
+ require "openssl" unless defined?(OpenSSL)
21
21
 
22
22
  module Mixlib
23
23
  module Authentication
@@ -17,8 +17,8 @@
17
17
  # limitations under the License.
18
18
  #
19
19
 
20
- require "net/http"
21
- require "forwardable"
20
+ require "net/http" unless defined?(Net::HTTP)
21
+ require "forwardable" unless defined?(Forwardable)
22
22
  require_relative "../authentication"
23
23
  require_relative "http_authentication_request"
24
24
  require_relative "signedheaderauth"
@@ -17,8 +17,8 @@
17
17
  # limitations under the License.
18
18
  #
19
19
 
20
- require "time"
21
- require "base64"
20
+ require "time" unless defined?(Time)
21
+ require "base64" unless defined?(Base64)
22
22
  require "openssl/digest"
23
23
  require_relative "../authentication"
24
24
  require_relative "digester"
@@ -306,7 +306,7 @@ module Mixlib
306
306
  def do_sign_ssh_agent(rsa_key, string_to_sign)
307
307
  # First try loading net-ssh as it is an optional dependency.
308
308
  begin
309
- require "net/ssh"
309
+ require "net/ssh" unless defined?(Net::SSH)
310
310
  rescue LoadError => e
311
311
  # ???: Since agent mode is explicitly enabled, should we even catch
312
312
  # this in the first place? Might be cleaner to let the LoadError bubble.
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Mixlib
18
18
  module Authentication
19
- VERSION = "3.0.6".freeze
19
+ VERSION = "3.0.7".freeze
20
20
  end
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-authentication
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.6
4
+ version: 3.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-30 00:00:00.000000000 Z
11
+ date: 2020-08-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Mixes in simple per-request authentication
14
14
  email: info@chef.io