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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1b17e5256dade278dacc588b1dd5483769f352fa6a44075f8984c9b98e6951b
4
- data.tar.gz: 9a17da5e7e0f0da605e290e4a17ad75d6d89c2d2c83549d6a70378f77b86c8c8
3
+ metadata.gz: 690d38d7f8cccf7a8ad6433b829c02b0e9f9fbaa48198f68ff4c7a661820d93a
4
+ data.tar.gz: 6a8b0782c6ab6cfdf194f0be0b51993e817b182a8a599d67e4c52cab11d98203
5
5
  SHA512:
6
- metadata.gz: 33b1ad115cb14c993607c4c173a8d117b19ebbe1515c7fbbaf6f7f38650dfcef0219b68e404a02a785f1092d6c1b04ffdab273c5546370569134b5fdbf596cc4
7
- data.tar.gz: 8f4595aa9df9901462e1a2d522f35fd9b84ab2d96bbaf765e78582b4378c6270324efb3b43b037aa99e38377a5ed410c2dbe63c8ab34daf4b81004c0318a1edf
6
+ metadata.gz: d8b94e1a9426345a436902611e74eb627eff7867eec1546084aaef1dd16e8a8e9af0dea24493572c8142f7dc7b530ed1cb84abf94e6dbb8acc00ef8a04ab9d65
7
+ data.tar.gz: 65162ab2d788531d21efaa23d87e7bdbafcdc8f6c3fd62f556be07f35d440f3055f830ee45cb903443aa695db56cd08b18afa02f3aa6b247b3ba761c1adfe4be
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.31.1 / 2021-05-19
4
+
5
+ #### Documentation
6
+
7
+ * Update IAMCredentialsService#sign_service_account_blob examples
8
+
3
9
  ### 1.31.0 / 2021-03-10
4
10
 
5
11
  #### Features
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 guide} for enabling
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
- # "payload": string_to_sign,
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
- # "payload": string_to_sign,
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
- # "payload": string_to_sign,
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
- # "payload": string_to_sign,
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
- # "payload": string_to_sign,
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
  #
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Storage
19
- VERSION = "1.31.0".freeze
19
+ VERSION = "1.31.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.31.0
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-03-11 00:00:00.000000000 Z
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.13
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