mixlib-authentication 3.0.7 → 3.0.10

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: f961b487a4404bf999dd791952f784401e7eaf4a36eecdac52874ba9d9997a1a
4
- data.tar.gz: 6ee8efc92cc33d7b7f94895f551877d362c38901a065360ca451db372072f31d
3
+ metadata.gz: ac1a3385da424178633636f21d00020703e56ef7720521b964eb64480ee8242b
4
+ data.tar.gz: bae34c40662e2ac3c8cc80891d5c7ab8e765cb3da91bd8bfe09c4f3af883e029
5
5
  SHA512:
6
- metadata.gz: 8719fbb1220d6df7d0ac0bef161eddcefa032333bad5f00221324658b8609b0e898912423d9a6a6c4cee937c63ecda581cd08e0fe932d3f113c2e0cf409bd439
7
- data.tar.gz: 54371b49adc7c04b5511fd16066287d142e01ee9248aa7d30f8074b147b1d7cf4074639d9e007eff92b4e695cd70c8a4b25e3015fa35fdc1af8a4392ac10d105
6
+ metadata.gz: 51b94f8b9c0598a33a51fe0ac747e6af49910448c4236be28d563800998e0b63b7334d453682b881bc54951bd7d1ee44beb8923e6658eb0aebe88993c6ee4e84
7
+ data.tar.gz: 26996121e0c805b7fc65d1466825157299bad9387d8cf76516b1152ef6c09578348492c6f5731a40dade560cc41daf437eadf576ac628c2270268baaa8bae4c9
@@ -17,7 +17,7 @@
17
17
  # limitations under the License.
18
18
  #
19
19
 
20
- require "time" unless defined?(Time)
20
+ require "time" unless defined?(Time.zone_offset)
21
21
  require "base64" unless defined?(Base64)
22
22
  require "openssl/digest"
23
23
  require_relative "../authentication"
@@ -127,7 +127,7 @@ module Mixlib
127
127
  }
128
128
 
129
129
  signature = Base64.encode64(do_sign(rsa_key, digest, sign_algorithm, sign_version, use_ssh_agent)).chomp
130
- signature_lines = signature.split(/\n/)
130
+ signature_lines = signature.split("\n")
131
131
  signature_lines.each_index do |idx|
132
132
  key = "X-Ops-Authorization-#{idx + 1}"
133
133
  header_hash[key] = signature_lines[idx]
@@ -196,7 +196,7 @@ module Mixlib
196
196
  # TODO: tim 2009-12-28: It'd be nice to just remove this special case,
197
197
  # always sign the entire request body, using the expanded multipart
198
198
  # body in the case of a file being include.
199
- @hashed_body ||= if file && file.respond_to?(:read)
199
+ @hashed_body ||= if file&.respond_to?(:read)
200
200
  digester.hash_file(file, digest)
201
201
  else
202
202
  digester.hash_string(body, digest)
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Mixlib
18
18
  module Authentication
19
- VERSION = "3.0.7".freeze
19
+ VERSION = "3.0.10".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.7
4
+ version: 3.0.10
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: 2020-08-21 00:00:00.000000000 Z
11
+ date: 2021-03-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Mixes in simple per-request authentication
14
14
  email: info@chef.io
@@ -43,7 +43,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  - !ruby/object:Gem::Version
44
44
  version: '0'
45
45
  requirements: []
46
- rubygems_version: 3.0.3
46
+ rubygems_version: 3.1.4
47
47
  signing_key:
48
48
  specification_version: 4
49
49
  summary: Mixes in simple per-request authentication