mixlib-authentication 3.0.6 → 3.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f961b487a4404bf999dd791952f784401e7eaf4a36eecdac52874ba9d9997a1a
|
4
|
+
data.tar.gz: 6ee8efc92cc33d7b7f94895f551877d362c38901a065360ca451db372072f31d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8719fbb1220d6df7d0ac0bef161eddcefa032333bad5f00221324658b8609b0e898912423d9a6a6c4cee937c63ecda581cd08e0fe932d3f113c2e0cf409bd439
|
7
|
+
data.tar.gz: 54371b49adc7c04b5511fd16066287d142e01ee9248aa7d30f8074b147b1d7cf4074639d9e007eff92b4e695cd70c8a4b25e3015fa35fdc1af8a4392ac10d105
|
@@ -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.
|
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.
|
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:
|
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
|