aws-sdk-cloudfront 1.22.0 → 1.22.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-cloudfront.rb +1 -1
- data/lib/aws-sdk-cloudfront/client.rb +1 -1
- data/lib/aws-sdk-cloudfront/cookie_signer.rb +10 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0eaac1a5202dad9c2c17036ae59ffc8b26d08b
|
4
|
+
data.tar.gz: 6b8043adf8b40669bb8bc02ad3cb93afbebf13a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5dd6aa53577b58d4784d1655a27ebc5bafdffa03a16438b237ab59c4cc81fa2052bf92476c9c7e3421c30fbfccc3e10327b01e0095cf3641d85726449e3ac41
|
7
|
+
data.tar.gz: aabeaf2fbfd4520d532a047b23093047f72d236a15fc0cb8f82ee9f46da60c29dc66705329d1846da1415031851c9ebb0645c4f5306f9690c84aaac2723dc24f
|
data/lib/aws-sdk-cloudfront.rb
CHANGED
@@ -4081,7 +4081,7 @@ module Aws::CloudFront
|
|
4081
4081
|
params: params,
|
4082
4082
|
config: config)
|
4083
4083
|
context[:gem_name] = 'aws-sdk-cloudfront'
|
4084
|
-
context[:gem_version] = '1.22.
|
4084
|
+
context[:gem_version] = '1.22.1'
|
4085
4085
|
Seahorse::Client::Request.new(handlers, context)
|
4086
4086
|
end
|
4087
4087
|
|
@@ -25,15 +25,18 @@ module Aws
|
|
25
25
|
# @option params [Time, DateTime, Date, String, Integer<timestamp>] :expires
|
26
26
|
# @option params [String<JSON>] :policy
|
27
27
|
def signed_cookie(url, params = {})
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
28
|
+
content = {}.tap do |c|
|
29
|
+
if params[:policy]
|
30
|
+
c[:policy] = params[:policy]
|
31
|
+
elsif url && params[:expires]
|
32
|
+
scheme, uri = scheme_and_uri(url)
|
33
|
+
c[:resource] = resource(scheme, uri)
|
34
|
+
c[:expires] = time(params[:expires])
|
35
|
+
end
|
36
|
+
end
|
34
37
|
|
35
38
|
cookie_parameters = {}
|
36
|
-
|
39
|
+
signature(content).each { |k, v|
|
37
40
|
cookie_parameters["CloudFront-#{k}"] = v.to_s.gsub("\n", '')
|
38
41
|
}
|
39
42
|
cookie_parameters
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-cloudfront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.22.
|
4
|
+
version: 1.22.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|