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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/google/cloud/storage/file/signer_v4.rb +2 -1
- data/lib/google/cloud/storage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9083f05d349c2e50228481a762993db7250f193118f4012e8ba0b6b2036a7e1e
|
|
4
|
+
data.tar.gz: 4d217ea587ff127e0359b099de79e2bf0115632eb53be81b97fb8e1b2e63cc28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f330d5447ebf7b013156306bdd768d1706843f12158923a3c31b60a7e54fc549f43848085db410e3b7542841e4443ada762e42b3d722f35a1038d43505c9be3f
|
|
7
|
+
data.tar.gz: e803bc25863cfdea1b9fc50fccd9db7cb0d0aef652540253704fc74452bb1f95c0537b51ecd96ba764bc431046c0f4297bf682dfb435302e706ea574f4859d80
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
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.
|
|
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-
|
|
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
|