google-cloud-storage 1.31.0 → 1.31.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/CONTRIBUTING.md +2 -3
- data/lib/google/cloud/storage/bucket.rb +12 -12
- data/lib/google/cloud/storage/file.rb +4 -4
- data/lib/google/cloud/storage/file/signer_v4.rb +2 -0
- data/lib/google/cloud/storage/project.rb +4 -4
- data/lib/google/cloud/storage/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690d38d7f8cccf7a8ad6433b829c02b0e9f9fbaa48198f68ff4c7a661820d93a
|
4
|
+
data.tar.gz: 6a8b0782c6ab6cfdf194f0be0b51993e817b182a8a599d67e4c52cab11d98203
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8b94e1a9426345a436902611e74eb627eff7867eec1546084aaef1dd16e8a8e9af0dea24493572c8142f7dc7b530ed1cb84abf94e6dbb8acc00ef8a04ab9d65
|
7
|
+
data.tar.gz: 65162ab2d788531d21efaa23d87e7bdbafcdc8f6c3fd62f556be07f35d440f3055f830ee45cb903443aa695db56cd08b18afa02f3aa6b247b3ba761c1adfe4be
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
CHANGED
@@ -119,15 +119,14 @@ If you alter an example's title, you may encounter breaking tests.
|
|
119
119
|
### Storage Acceptance Tests
|
120
120
|
|
121
121
|
The Storage acceptance tests interact with the live service API. Follow the
|
122
|
-
instructions in the {file:AUTHENTICATION.md Authentication
|
122
|
+
instructions in the {file:AUTHENTICATION.md Authentication Guide} for enabling
|
123
123
|
the Storage API. Occasionally, some API features may not yet be generally
|
124
124
|
available, making it difficult for some contributors to successfully run the
|
125
125
|
entire acceptance test suite. However, please ensure that you do successfully
|
126
126
|
run acceptance tests for any code areas covered by your pull request.
|
127
127
|
|
128
128
|
To run the acceptance tests, first create and configure a project in the Google
|
129
|
-
Developers Console, as described in the {file:AUTHENTICATION.md Authentication
|
130
|
-
guide}. Be sure to download the JSON KEY file. Make note of the PROJECT_ID and
|
129
|
+
Developers Console, as described in the {file:AUTHENTICATION.md Authentication Guide}. Be sure to download the JSON KEY file. Make note of the PROJECT_ID and
|
131
130
|
the KEYFILE location on your system.
|
132
131
|
|
133
132
|
Before you can run the Storage acceptance tests, you must first create indexes
|
@@ -1545,11 +1545,11 @@ module Google
|
|
1545
1545
|
# scopes = ["https://www.googleapis.com/auth/iam"]
|
1546
1546
|
# iam_client.authorization = Google::Auth.get_application_default scopes
|
1547
1547
|
#
|
1548
|
-
# request =
|
1549
|
-
#
|
1550
|
-
#
|
1548
|
+
# request = Google::Apis::IamcredentialsV1::SignBlobRequest.new(
|
1549
|
+
# payload: string_to_sign
|
1550
|
+
# )
|
1551
1551
|
# resource = "projects/-/serviceAccounts/#{issuer}"
|
1552
|
-
# response = iam_client.sign_service_account_blob resource, request
|
1552
|
+
# response = iam_client.sign_service_account_blob resource, request
|
1553
1553
|
# response.signed_blob
|
1554
1554
|
# end
|
1555
1555
|
#
|
@@ -1778,11 +1778,11 @@ module Google
|
|
1778
1778
|
# scopes = ["https://www.googleapis.com/auth/iam"]
|
1779
1779
|
# iam_client.authorization = Google::Auth.get_application_default scopes
|
1780
1780
|
#
|
1781
|
-
# request =
|
1782
|
-
#
|
1783
|
-
#
|
1781
|
+
# request = Google::Apis::IamcredentialsV1::SignBlobRequest.new(
|
1782
|
+
# payload: string_to_sign
|
1783
|
+
# )
|
1784
1784
|
# resource = "projects/-/serviceAccounts/#{issuer}"
|
1785
|
-
# response = iam_client.sign_service_account_blob resource, request
|
1785
|
+
# response = iam_client.sign_service_account_blob resource, request
|
1786
1786
|
# response.signed_blob
|
1787
1787
|
# end
|
1788
1788
|
#
|
@@ -1928,11 +1928,11 @@ module Google
|
|
1928
1928
|
# scopes = ["https://www.googleapis.com/auth/iam"]
|
1929
1929
|
# iam_client.authorization = Google::Auth.get_application_default scopes
|
1930
1930
|
#
|
1931
|
-
# request =
|
1932
|
-
#
|
1933
|
-
#
|
1931
|
+
# request = Google::Apis::IamcredentialsV1::SignBlobRequest.new(
|
1932
|
+
# payload: string_to_sign
|
1933
|
+
# )
|
1934
1934
|
# resource = "projects/-/serviceAccounts/#{issuer}"
|
1935
|
-
# response = iam_client.sign_service_account_blob resource, request
|
1935
|
+
# response = iam_client.sign_service_account_blob resource, request
|
1936
1936
|
# response.signed_blob
|
1937
1937
|
# end
|
1938
1938
|
#
|
@@ -1618,11 +1618,11 @@ module Google
|
|
1618
1618
|
# scopes = ["https://www.googleapis.com/auth/iam"]
|
1619
1619
|
# iam_client.authorization = Google::Auth.get_application_default scopes
|
1620
1620
|
#
|
1621
|
-
# request =
|
1622
|
-
#
|
1623
|
-
#
|
1621
|
+
# request = Google::Apis::IamcredentialsV1::SignBlobRequest.new(
|
1622
|
+
# payload: string_to_sign
|
1623
|
+
# )
|
1624
1624
|
# resource = "projects/-/serviceAccounts/#{issuer}"
|
1625
|
-
# response = iam_client.sign_service_account_blob resource, request
|
1625
|
+
# response = iam_client.sign_service_account_blob resource, request
|
1626
1626
|
# response.signed_blob
|
1627
1627
|
# end
|
1628
1628
|
#
|
@@ -129,6 +129,7 @@ module Google
|
|
129
129
|
end
|
130
130
|
|
131
131
|
# methods below are public visibility only for unit testing
|
132
|
+
# rubocop:disable Style/StringLiterals
|
132
133
|
def escape_characters str
|
133
134
|
str.split("").map do |s|
|
134
135
|
if s.ascii_only?
|
@@ -155,6 +156,7 @@ module Google
|
|
155
156
|
end
|
156
157
|
end.join
|
157
158
|
end
|
159
|
+
# rubocop:enable Style/StringLiterals
|
158
160
|
|
159
161
|
def escape_special_unicode str
|
160
162
|
str.unpack("U*").map { |i| "\\u#{i.to_s(16).rjust(4, '0')}" }.join
|
@@ -611,11 +611,11 @@ module Google
|
|
611
611
|
# scopes = ["https://www.googleapis.com/auth/iam"]
|
612
612
|
# iam_client.authorization = Google::Auth.get_application_default scopes
|
613
613
|
#
|
614
|
-
# request =
|
615
|
-
#
|
616
|
-
#
|
614
|
+
# request = Google::Apis::IamcredentialsV1::SignBlobRequest.new(
|
615
|
+
# payload: string_to_sign
|
616
|
+
# )
|
617
617
|
# resource = "projects/-/serviceAccounts/#{issuer}"
|
618
|
-
# response = iam_client.sign_service_account_blob resource, request
|
618
|
+
# response = iam_client.sign_service_account_blob resource, request
|
619
619
|
# response.signed_blob
|
620
620
|
# end
|
621
621
|
#
|
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.31.
|
4
|
+
version: 1.31.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: 2021-
|
12
|
+
date: 2021-05-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -312,7 +312,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: '0'
|
314
314
|
requirements: []
|
315
|
-
rubygems_version: 3.2.
|
315
|
+
rubygems_version: 3.2.17
|
316
316
|
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: API Client library for Google Cloud Storage
|