google-cloud-storage 1.26.0 → 1.26.1

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: 6a69b7d03384d604c8b96548b952b6894af09ee7cef01845fe92b998ea77bcc8
4
- data.tar.gz: 9fd54043ddab11b2284c73b17e780877b795a59593943deef43b9d14fbb4da1e
3
+ metadata.gz: 9083f05d349c2e50228481a762993db7250f193118f4012e8ba0b6b2036a7e1e
4
+ data.tar.gz: 4d217ea587ff127e0359b099de79e2bf0115632eb53be81b97fb8e1b2e63cc28
5
5
  SHA512:
6
- metadata.gz: 36d6b3d59ab2655020f97e7d15a33a35b48a541632e03a6a8aa01f20289c821b9582cf21fdea2799cad8111c8208bd866154246a8ec69fb33102fd78853bc49f
7
- data.tar.gz: 8d59996b1108a4c44e074e9762e48ad4a1f93c8dfd07efa11b77472a3b2285be52ce1486afa76b5301de683cf918c23d41d1d0dd877cd4bbaf0ab3d1cc91e405
6
+ metadata.gz: f330d5447ebf7b013156306bdd768d1706843f12158923a3c31b60a7e54fc549f43848085db410e3b7542841e4443ada762e42b3d722f35a1038d43505c9be3f
7
+ data.tar.gz: e803bc25863cfdea1b9fc50fccd9db7cb0d0aef652540253704fc74452bb1f95c0537b51ecd96ba764bc431046c0f4297bf682dfb435302e706ea574f4859d80
@@ -1,5 +1,12 @@
1
1
  # Release History
2
2
 
3
+ ### 1.26.1 / 2020-05-06
4
+
5
+ #### Bug Fixes
6
+
7
+ * Add missing bucket condition in SignerV4#post_object
8
+ * Ensure bucket is not returned in PostObject fields
9
+
3
10
  ### 1.26.0 / 2020-04-06
4
11
 
5
12
  #### Features
@@ -63,7 +63,6 @@ module Google
63
63
  expires ||= 60*60*24
64
64
  p["expiration"] = (now + expires).strftime "%Y-%m-%dT%H:%M:%SZ"
65
65
 
66
-
67
66
  policy_str = escape_characters p.to_json
68
67
 
69
68
  policy = Base64.strict_encode64(policy_str).force_encoding "utf-8"
@@ -174,6 +173,8 @@ module Google
174
173
  def policy_conditions base_fields, user_conditions, user_fields
175
174
  # Convert each pair in base_fields hash to a single-entry hash in an array.
176
175
  conditions = base_fields.to_a.map { |f| Hash[*f] }
176
+ # Add the bucket to the head of the base_fields. This is not returned in the PostObject fields.
177
+ conditions.unshift "bucket" => @bucket_name
177
178
  # Add user-provided conditions to the head of the conditions array.
178
179
  conditions.unshift user_conditions if user_conditions && !user_conditions.empty?
179
180
  if user_fields
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.26.0".freeze
19
+ VERSION = "1.26.1".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-storage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.0
4
+ version: 1.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-06 00:00:00.000000000 Z
12
+ date: 2020-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core