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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '085a1fef0f9dbbb1afef968a25f482b183f8c81e'
4
- data.tar.gz: 9d8f288a0d9fb04d618d7882e781168e14c4fcd2
3
+ metadata.gz: 1b0eaac1a5202dad9c2c17036ae59ffc8b26d08b
4
+ data.tar.gz: 6b8043adf8b40669bb8bc02ad3cb93afbebf13a0
5
5
  SHA512:
6
- metadata.gz: 8372d099f7053ff2446a5c7d251b20ce27de1f4812295ceb6072c09c559a741c40ec0a31c1aa6355131c6c513cc4ca24eb166364ddff40766f4f272d27243d07
7
- data.tar.gz: 592c6c2c1e13ba151593c291da3afd9c31f77b8970e682ba37db6f9abfd00aafd17ae5c8dae5e745c07cb4f431e14e2989f86700b49b64355ae1330e6b74aa8a
6
+ metadata.gz: d5dd6aa53577b58d4784d1655a27ebc5bafdffa03a16438b237ab59c4cc81fa2052bf92476c9c7e3421c30fbfccc3e10327b01e0095cf3641d85726449e3ac41
7
+ data.tar.gz: aabeaf2fbfd4520d532a047b23093047f72d236a15fc0cb8f82ee9f46da60c29dc66705329d1846da1415031851c9ebb0645c4f5306f9690c84aaac2723dc24f
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-cloudfront/customizations'
43
43
  # @service
44
44
  module Aws::CloudFront
45
45
 
46
- GEM_VERSION = '1.22.0'
46
+ GEM_VERSION = '1.22.1'
47
47
 
48
48
  end
@@ -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.0'
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
- scheme, uri = scheme_and_uri(url)
29
- signed_content = signature(
30
- resource: resource(scheme, uri),
31
- expires: time(params[:expires]),
32
- policy: params[:policy]
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
- signed_content.each { |k, v|
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.0
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-07-25 00:00:00.000000000 Z
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