google-cloud-translate-v2 1.0.0 → 1.0.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: defb46ed4459a8d3d033e264541c109690faf26d838b67d86a7b3bd7f6bc0ba6
4
- data.tar.gz: f03f622608d744f03be0147bde6dee049115f657549e83bded83cb237224b955
3
+ metadata.gz: 21d2327f3654fced1772d146226907388e42fb84a3a8d8b199ea77daa52d565a
4
+ data.tar.gz: 7cde4797c04327d070b1cdb4057d4612f4a4b1c80e32edc3b3a14a845042f464
5
5
  SHA512:
6
- metadata.gz: 4388056f4fd7b1e1f45e384cbfe6d2904f6c935cf417fbebeae9d6d4e3de68889fd2d02d63fa4443a47574b22a7f1e1247acdca149526afcad7f0fe0e70be929
7
- data.tar.gz: 3ff35cebdc4c20f7dcf5ca7a1a64cc3e3830bd79eea1734695c4bbd7342545c61db12711c8a0814c16b592aafbbd5fea5f6df0f86423e1db5aa507d549ea2b59
6
+ metadata.gz: a59bab57cc870d5a8618926243867bf07f8a4459109b9153a9f59bdba8b1a43b053a97ff35c880d51dc3587e9a84d0bfa3a82c2f69a9e23c1c2485bb854cb30d
7
+ data.tar.gz: dcaa1b6196c688d2ad9b2c8e1adf931ec6ca9ca817f7d851fda074867d3325497741403745fad2b16d893c44967a980b6d04728ab86e89e63c096214db85b2e2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 1.0.1 (2024-12-12)
4
+
5
+ #### Bug Fixes
6
+
7
+ * Ensure access token is fetched with recent googleauth versions in the non-api-key case ([#28096](https://github.com/googleapis/google-cloud-ruby/issues/28096))
8
+
3
9
  ### 1.0.0 (2024-07-08)
4
10
 
5
11
  #### Features
@@ -140,7 +140,7 @@ module Google
140
140
  client = credentials.client
141
141
  return if client.nil?
142
142
 
143
- client.fetch_access_token! if client.expires_within? 30
143
+ client.fetch_access_token! if client.access_token.nil? || client.expires_within?(30)
144
144
  client.generate_authenticated_request request: request
145
145
  request
146
146
  end
@@ -17,7 +17,7 @@ module Google
17
17
  module Cloud
18
18
  module Translate
19
19
  module V2
20
- VERSION = "1.0.0".freeze
20
+ VERSION = "1.0.1".freeze
21
21
  end
22
22
  end
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -145,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
- rubygems_version: 3.5.6
148
+ rubygems_version: 3.5.23
149
149
  signing_key:
150
150
  specification_version: 4
151
151
  summary: API Client library for Cloud Translation V2 API