google-cloud-translate 3.7.4 → 3.8.0

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: f8cf7a32f30be7ebe4466d97398218d0a0b5844af24f2b3dbc44bef1d5edd6f7
4
- data.tar.gz: d9032461d1e52515cce444ca2e407721b53ffb02d4ad8349e82b0b0640214c7b
3
+ metadata.gz: fa03e55904f5c90e23c690ea205cdd273bd77fab300efb87781f86f28d5feac1
4
+ data.tar.gz: e01ecde9b386c407b3db1bfa67adccf731447b2b2a4d77bbc666661c76f98407
5
5
  SHA512:
6
- metadata.gz: f835ce290535e817714c4b07a746f7e0bdb0bdef5bc379debac16062541cdc25f1100139952183ab36915f7bc9135f37037f638eec6895fed959d4ec0b9df342
7
- data.tar.gz: 97ef3148b0fbe8a5a7172c7dfd8e3ad8394ac58be1f8cee02d234675827484ec8dab9b51e86307d33b048ea7144681718145b0e516f82988a5718f6b9c1e7e60
6
+ metadata.gz: ca08c0a7467a31503d18fe4650ed284327ca4cdfd37ce7aff920f67cb666215cb75a0aa7f8c3e6b4be0ffed84adc88c783a2f9153e84d8a15a2e3f3cf2b04959
7
+ data.tar.gz: c395919b7a97050451d127498d728aa03a0790f63a841006521970326ccc4cfc88a5ce5b4338d92c712f2160bf0138b48cfc83c7a96aff98b417d86598fa2786
data/AUTHENTICATION.md CHANGED
@@ -33,12 +33,6 @@ credentials, there are several methods available to you.
33
33
 
34
34
  Credentials are accepted in the following ways, in the following order or precedence:
35
35
 
36
- > [!WARNING]
37
- > If you accept a credential configuration (JSON file or Hash) from an
38
- > external source for authentication to Google Cloud, you must validate it before
39
- > providing it to a Google API client library. Providing an unvalidated credential
40
- > configuration to Google APIs can compromise the security of your systems and data.
41
-
42
36
  1. Credentials specified in method arguments
43
37
  2. Credentials specified in configuration
44
38
  3. Credentials pointed to or included in environment variables
@@ -60,30 +54,20 @@ whenever possible.
60
54
  To configure a credentials file for an individual client initialization:
61
55
 
62
56
  ```ruby
63
- require "googleauth"
64
57
  require "google/cloud/translate"
65
58
 
66
- credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
67
- json_key_io: ::File.open("/path/to/keyfile.json")
68
- )
69
-
70
59
  client = Google::Cloud::Translate.translation_service do |config|
71
- config.credentials = credentials
60
+ config.credentials = "path/to/credentialfile.json"
72
61
  end
73
62
  ```
74
63
 
75
64
  To configure a credentials file globally for all clients:
76
65
 
77
66
  ```ruby
78
- require "googleauth"
79
67
  require "google/cloud/translate"
80
68
 
81
- credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
82
- json_key_io: ::File.open("/path/to/keyfile.json")
83
- )
84
-
85
69
  Google::Cloud::Translate.configure do |config|
86
- config.credentials = credentials
70
+ config.credentials = "path/to/credentialfile.json"
87
71
  end
88
72
 
89
73
  client = Google::Cloud::Translate.translation_service
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Translate
23
- VERSION = "3.7.4"
23
+ VERSION = "3.8.0"
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.4
4
+ version: 3.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  requirements:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: '3.0'
94
+ version: '3.2'
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements:
97
97
  - - ">="