google-cloud-translate 1.2.4 → 3.2.3

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.
@@ -1,4 +1,6 @@
1
- # Copyright 2016 Google LLC
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
@@ -12,171 +14,102 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ # Require this file early so that the version constant gets defined before
20
+ # requiring "google/cloud". This is because google-cloud-core will load the
21
+ # entrypoint (gem name) file, which in turn re-requires this file (hence
22
+ # causing a require cycle) unless the version constant is already defined.
23
+ require "google/cloud/translate/version"
15
24
 
16
- require "google-cloud-translate"
17
- require "google/cloud/translate/api"
25
+ require "googleauth"
26
+ gem "google-cloud-core"
27
+ require "google/cloud" unless defined? ::Google::Cloud.new
18
28
  require "google/cloud/config"
19
- require "google/cloud/env"
29
+
30
+ # Set the default configuration
31
+ ::Google::Cloud.configure.add_config! :translate do |config|
32
+ config.add_field! :endpoint, "translate.googleapis.com", match: ::String
33
+ config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
34
+ config.add_field! :scope, nil, match: [::Array, ::String]
35
+ config.add_field! :lib_name, nil, match: ::String
36
+ config.add_field! :lib_version, nil, match: ::String
37
+ config.add_field! :interceptors, nil, match: ::Array
38
+ config.add_field! :timeout, nil, match: ::Numeric
39
+ config.add_field! :metadata, nil, match: ::Hash
40
+ config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
41
+ config.add_field! :quota_project, nil, match: ::String
42
+ end
20
43
 
21
44
  module Google
22
45
  module Cloud
23
- ##
24
- # # Google Cloud Translation API
25
- #
26
- # [Google Cloud Translation API](https://cloud.google.com/translation/)
27
- # provides a simple, programmatic interface for translating an arbitrary
28
- # string into any supported language. It is highly responsive, so websites
29
- # and applications can integrate with Translation API for fast, dynamic
30
- # translation of source text. Language detection is also available in cases
31
- # where the source language is unknown.
32
- #
33
- # Translation API supports more than one hundred different languages, from
34
- # Afrikaans to Zulu. Used in combination, this enables translation between
35
- # thousands of language pairs. Also, you can send in HTML and receive HTML
36
- # with translated text back. You don't need to extract your source text or
37
- # reassemble the translated content.
38
- #
39
- # See {file:OVERVIEW.md Translation Overview}.
40
- #
41
46
  module Translate
42
47
  ##
43
- # Creates a new object for connecting to Cloud Translation API. Each call
44
- # creates a new connection.
45
- #
46
- # Like other Cloud Platform services, Google Cloud Translation API
47
- # supports authentication using a project ID and OAuth 2.0 credentials. In
48
- # addition, it supports authentication using a public API access key. (If
49
- # both the API key and the project and OAuth 2.0 credentials are provided,
50
- # the API key will be used.) Instructions and configuration options are
51
- # covered in the {file:AUTHENTICATION.md Authentication Guide}.
52
- #
53
- # @param [String] project_id Project identifier for the Cloud Translation
54
- # service you are connecting to. If not present, the default project for
55
- # the credentials is used.
56
- # @param [String, Hash, Google::Auth::Credentials] credentials The path to
57
- # the keyfile as a String, the contents of the keyfile as a Hash, or a
58
- # Google::Auth::Credentials object. (See {Translate::Credentials})
59
- # @param [String] key a public API access key (not an OAuth 2.0 token)
60
- # @param [String, Array<String>] scope The OAuth 2.0 scopes controlling
61
- # the set of resources and operations that the connection can access.
62
- # See [Using OAuth 2.0 to Access Google
63
- # APIs](https://developers.google.com/identity/protocols/OAuth2).
64
- #
65
- # The default scope is:
66
- #
67
- # * `https://www.googleapis.com/auth/cloud-platform`
68
- # @param [Integer] retries Number of times to retry requests on server
69
- # error. The default value is `3`. Optional.
70
- # @param [Integer] timeout Default timeout to use in requests. Optional.
71
- # @param [String] project Alias for the `project_id` argument. Deprecated.
72
- # @param [String] keyfile Alias for the `credentials` argument.
73
- # Deprecated.
74
- #
75
- # @return [Google::Cloud::Translate::Api]
76
- #
77
- # @example
78
- # require "google/cloud/translate"
79
- #
80
- # translate = Google::Cloud::Translate.new(
81
- # project_id: "my-todo-project",
82
- # credentials: "/path/to/keyfile.json"
83
- # )
84
- #
85
- # translation = translate.translate "Hello world!", to: "la"
86
- # translation.text #=> "Salve mundi!"
87
- #
88
- # @example Using API Key.
89
- # require "google/cloud/translate"
90
- #
91
- # translate = Google::Cloud::Translate.new(
92
- # key: "api-key-abc123XYZ789"
93
- # )
48
+ # Create a new client object for TranslationService.
94
49
  #
95
- # translation = translate.translate "Hello world!", to: "la"
96
- # translation.text #=> "Salve mundi!"
50
+ # By default, this returns an instance of
51
+ # [Google::Cloud::Translate::V3::TranslationService::Client](https://googleapis.dev/ruby/google-cloud-translate-v3/latest/Google/Cloud/Translate/V3/TranslationService/Client.html)
52
+ # for version V3 of the API.
53
+ # However, you can specify specify a different API version by passing it in the
54
+ # `version` parameter. If the TranslationService service is
55
+ # supported by that API version, and the corresponding gem is available, the
56
+ # appropriate versioned client will be returned.
97
57
  #
98
- # @example Using API Key from the environment variable.
99
- # require "google/cloud/translate"
58
+ # ## About TranslationService
100
59
  #
101
- # ENV["TRANSLATE_KEY"] = "api-key-abc123XYZ789"
60
+ # Provides natural language translation operations.
102
61
  #
103
- # translate = Google::Cloud::Translate.new
62
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
63
+ # Defaults to `:v3`.
64
+ # @return [TranslationService::Client] A client object for the specified version.
104
65
  #
105
- # translation = translate.translate "Hello world!", to: "la"
106
- # translation.text #=> "Salve mundi!"
107
- #
108
- def self.new project_id: nil, credentials: nil, key: nil, scope: nil,
109
- retries: nil, timeout: nil, project: nil, keyfile: nil
110
- project_id ||= (project || default_project_id)
111
- project_id = project_id.to_s # Always cast to a string
112
-
113
- key ||= configure.key
114
- if key
115
- return Google::Cloud::Translate::Api.new(
116
- Google::Cloud::Translate::Service.new(
117
- project_id, nil, retries: retries, timeout: timeout, key: key
118
- )
119
- )
120
- end
121
-
122
- raise ArgumentError, "project_id is missing" if project_id.empty?
123
-
124
- scope ||= configure.scope
125
- retries ||= configure.retries
126
- timeout ||= configure.timeout
127
- credentials ||= keyfile || default_credentials(scope: scope)
128
- unless credentials.is_a? Google::Auth::Credentials
129
- credentials = Translate::Credentials.new credentials, scope: scope
130
- end
66
+ def self.translation_service version: :v3, &block
67
+ require "google/cloud/translate/#{version.to_s.downcase}"
131
68
 
132
- Translate::Api.new(
133
- Translate::Service.new(
134
- project_id, credentials, retries: retries, timeout: timeout
135
- )
136
- )
69
+ package_name = Google::Cloud::Translate
70
+ .constants
71
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
72
+ .first
73
+ package_module = Google::Cloud::Translate.const_get package_name
74
+ package_module.const_get(:TranslationService).const_get(:Client).new(&block)
137
75
  end
138
76
 
139
77
  ##
140
- # Configure the Google Cloud Translate library.
141
- #
142
- # The following Translate configuration parameters are supported:
143
- #
144
- # * `project_id` - (String) Identifier for a Translate project. (The
145
- # parameter `project` is considered deprecated, but may also be used.)
146
- # * `credentials` - (String, Hash, Google::Auth::Credentials) The path to
147
- # the keyfile as a String, the contents of the keyfile as a Hash, or a
148
- # Google::Auth::Credentials object. (See {Translate::Credentials}) (The
149
- # parameter `keyfile` is considered deprecated, but may also be used.)
150
- # * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
151
- # the set of resources and operations that the connection can access.
152
- # * `retries` - (Integer) Number of times to retry requests on server
153
- # error.
154
- # * `timeout` - (Integer) Default timeout to use in requests.
155
- #
156
- # @return [Google::Cloud::Config] The configuration object the
157
- # Google::Cloud::Translate library uses.
78
+ # Configure the google-cloud-translate library.
79
+ #
80
+ # The following configuration parameters are supported:
81
+ #
82
+ # * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
83
+ # The path to the keyfile as a String, the contents of the keyfile as a
84
+ # Hash, or a Google::Auth::Credentials object.
85
+ # * `lib_name` (*type:* `String`) -
86
+ # The library name as recorded in instrumentation and logging.
87
+ # * `lib_version` (*type:* `String`) -
88
+ # The library version as recorded in instrumentation and logging.
89
+ # * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
90
+ # An array of interceptors that are run before calls are executed.
91
+ # * `timeout` (*type:* `Numeric`) -
92
+ # Default timeout in seconds.
93
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) -
94
+ # Additional gRPC headers to be sent with the call.
95
+ # * `retry_policy` (*type:* `Hash`) -
96
+ # The retry policy. The value is a hash with the following keys:
97
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
98
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
99
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
100
+ # * `:retry_codes` (*type:* `Array<String>`) -
101
+ # The error codes that should trigger a retry.
102
+ #
103
+ # @return [::Google::Cloud::Config] The default configuration used by this library
158
104
  #
159
105
  def self.configure
160
- yield Google::Cloud.configure.translate if block_given?
106
+ yield ::Google::Cloud.configure.translate if block_given?
161
107
 
162
- Google::Cloud.configure.translate
163
- end
164
-
165
- ##
166
- # @private Default project.
167
- def self.default_project_id
168
- Google::Cloud.configure.translate.project_id ||
169
- Google::Cloud.configure.project_id ||
170
- Google::Cloud.env.project_id
171
- end
172
-
173
- ##
174
- # @private Default credentials.
175
- def self.default_credentials scope: nil
176
- Google::Cloud.configure.translate.credentials ||
177
- Google::Cloud.configure.credentials ||
178
- Translate::Credentials.default(scope: scope)
108
+ ::Google::Cloud.configure.translate
179
109
  end
180
110
  end
181
111
  end
182
112
  end
113
+
114
+ helper_path = ::File.join __dir__, "translate", "helpers.rb"
115
+ require "google/cloud/translate/helpers" if ::File.file? helper_path
@@ -1,4 +1,6 @@
1
- # Copyright 2016 Google LLC
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2020 Google LLC
2
4
  #
3
5
  # Licensed under the Apache License, Version 2.0 (the "License");
4
6
  # you may not use this file except in compliance with the License.
@@ -12,160 +14,6 @@
12
14
  # See the License for the specific language governing permissions and
13
15
  # limitations under the License.
14
16
 
15
- ##
16
- # This file is here to be autorequired by bundler, so that the
17
- # Google::Cloud.translate and Google::Cloud#translate methods can be available,
18
- # but the library and all dependencies won't be loaded until required and used.
19
-
20
-
21
- gem "google-cloud-core"
22
- require "google/cloud" unless defined? Google::Cloud.new
23
- require "google/cloud/config"
24
- require "googleauth"
25
-
26
- module Google
27
- module Cloud
28
- ##
29
- # Creates a new object for connecting to the Cloud Translation API. Each
30
- # call creates a new connection.
31
- #
32
- # Like other Cloud Platform services, Google Cloud Translation API supports
33
- # authentication using a project ID and OAuth 2.0 credentials. In addition,
34
- # it supports authentication using a public API access key. (If both the API
35
- # key and the project and OAuth 2.0 credentials are provided, the API key
36
- # will be used.) Instructions and configuration options are covered in the
37
- # {file:AUTHENTICATION.md Authentication Guide}.
38
- #
39
- # @param [String] key a public API access key (not an OAuth 2.0 token)
40
- # @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
41
- # set of resources and operations that the connection can access. See
42
- # [Using OAuth 2.0 to Access Google
43
- # APIs](https://developers.google.com/identity/protocols/OAuth2).
44
- #
45
- # The default scope is:
46
- #
47
- # * `https://www.googleapis.com/auth/cloud-platform`
48
- # @param [Integer] retries Number of times to retry requests on server
49
- # error. The default value is `3`. Optional.
50
- # @param [Integer] timeout Default timeout to use in requests. Optional.
51
- #
52
- # @return [Google::Cloud::Translate::Api]
53
- #
54
- # @example
55
- # require "google/cloud"
56
- #
57
- # gcloud = Google::Cloud.new
58
- # translate = gcloud.translate "api-key-abc123XYZ789"
59
- #
60
- # translation = translate.translate "Hello world!", to: "la"
61
- # translation.text #=> "Salve mundi!"
62
- #
63
- # @example Using API Key from the environment variable.
64
- # require "google/cloud"
65
- #
66
- # ENV["TRANSLATE_KEY"] = "api-key-abc123XYZ789"
67
- #
68
- # gcloud = Google::Cloud.new
69
- # translate = gcloud.translate
70
- #
71
- # translation = translate.translate "Hello world!", to: "la"
72
- # translation.text #=> "Salve mundi!"
73
- #
74
- def translate key = nil, scope: nil, retries: nil, timeout: nil
75
- Google::Cloud.translate key, project_id: @project, credentials: @keyfile,
76
- scope: scope,
77
- retries: (retries || @retries),
78
- timeout: (timeout || @timeout)
79
- end
80
-
81
- ##
82
- # Creates a new object for connecting to the Cloud Translation API. Each
83
- # call creates a new connection.
84
- #
85
- # Like other Cloud Platform services, Google Cloud Translation API supports
86
- # authentication using a project ID and OAuth 2.0 credentials. In addition,
87
- # it supports authentication using a public API access key. (If both the API
88
- # key and the project and OAuth 2.0 credentials are provided, the API key
89
- # will be used.) Instructions and configuration options are covered in the
90
- # {file:AUTHENTICATION.md Authentication Guide}.
91
- #
92
- # @param [String] key a public API access key (not an OAuth 2.0 token)
93
- # @param [String] project_id Project identifier for the Cloud Translation
94
- # service you are connecting to. If not present, the default project for
95
- # the credentials is used.
96
- # @param [String, Hash, Google::Auth::Credentials] credentials The path to
97
- # the keyfile as a String, the contents of the keyfile as a Hash, or a
98
- # Google::Auth::Credentials object. (See {Translate::Credentials})
99
- # @param [String, Array<String>] scope The OAuth 2.0 scopes controlling the
100
- # set of resources and operations that the connection can access. See
101
- # [Using OAuth 2.0 to Access Google
102
- # APIs](https://developers.google.com/identity/protocols/OAuth2).
103
- #
104
- # The default scope is:
105
- #
106
- # * `https://www.googleapis.com/auth/cloud-platform`
107
- # @param [Integer] retries Number of times to retry requests on server
108
- # error. The default value is `3`. Optional.
109
- # @param [Integer] timeout Default timeout to use in requests. Optional.
110
- # @param [String] project Alias for the `project_id` argument. Deprecated.
111
- # @param [String] keyfile Alias for the `credentials` argument.
112
- # Deprecated.
113
- #
114
- # @return [Google::Cloud::Translate::Api]
115
- #
116
- # @example
117
- # require "google/cloud"
118
- #
119
- # translate = Google::Cloud.translate "api-key-abc123XYZ789"
120
- #
121
- # translation = translate.translate "Hello world!", to: "la"
122
- # translation.text #=> "Salve mundi!"
123
- #
124
- # @example Using API Key from the environment variable.
125
- # require "google/cloud"
126
- #
127
- # ENV["TRANSLATE_KEY"] = "api-key-abc123XYZ789"
128
- #
129
- # translate = Google::Cloud.translate
130
- #
131
- # translation = translate.translate "Hello world!", to: "la"
132
- # translation.text #=> "Salve mundi!"
133
- #
134
- def self.translate key = nil, project_id: nil, credentials: nil, scope: nil,
135
- retries: nil, timeout: nil, project: nil, keyfile: nil
136
- require "google/cloud/translate"
137
- Google::Cloud::Translate.new key: key, project_id: project_id,
138
- credentials: credentials,
139
- scope: scope, retries: retries,
140
- timeout: timeout,
141
- project: project, keyfile: keyfile
142
- end
143
- end
144
- end
145
-
146
- # Set the default translate configuration
147
- Google::Cloud.configure.add_config! :translate do |config|
148
- default_project = Google::Cloud::Config.deferred do
149
- ENV["TRANSLATE_PROJECT"]
150
- end
151
- default_creds = Google::Cloud::Config.deferred do
152
- Google::Cloud::Config.credentials_from_env(
153
- "TRANSLATE_CREDENTIALS", "TRANSLATE_CREDENTIALS_JSON",
154
- "TRANSLATE_KEYFILE", "TRANSLATE_KEYFILE_JSON"
155
- )
156
- end
157
- default_key = Google::Cloud::Config.deferred do
158
- ENV["TRANSLATE_KEY"] || ENV["GOOGLE_CLOUD_KEY"]
159
- end
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
160
18
 
161
- config.add_field! :project_id, default_project, match: String, allow_nil: true
162
- config.add_alias! :project, :project_id
163
- config.add_field! :credentials, default_creds,
164
- match: [String, Hash, Google::Auth::Credentials],
165
- allow_nil: true
166
- config.add_alias! :keyfile, :credentials
167
- config.add_field! :key, default_key, match: String, allow_nil: true
168
- config.add_field! :scope, nil, match: [String, Array]
169
- config.add_field! :retries, nil, match: Integer
170
- config.add_field! :timeout, nil, match: Integer
171
- end
19
+ require "google/cloud/translate" unless defined? Google::Cloud::Translate::VERSION
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 3.2.3
5
5
  platform: ruby
6
6
  authors:
7
- - Mike Moore
8
- - Chris Smith
7
+ - Google LLC
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2018-09-21 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: google-cloud-core
@@ -17,70 +16,82 @@ dependencies:
17
16
  requirements:
18
17
  - - "~>"
19
18
  - !ruby/object:Gem::Version
20
- version: '1.2'
19
+ version: '1.6'
21
20
  type: :runtime
22
21
  prerelease: false
23
22
  version_requirements: !ruby/object:Gem::Requirement
24
23
  requirements:
25
24
  - - "~>"
26
25
  - !ruby/object:Gem::Version
27
- version: '1.2'
26
+ version: '1.6'
28
27
  - !ruby/object:Gem::Dependency
29
- name: faraday
28
+ name: google-cloud-translate-v2
30
29
  requirement: !ruby/object:Gem::Requirement
31
30
  requirements:
32
- - - "~>"
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0.0'
34
+ - - "<"
33
35
  - !ruby/object:Gem::Version
34
- version: '0.13'
36
+ version: 2.a
35
37
  type: :runtime
36
38
  prerelease: false
37
39
  version_requirements: !ruby/object:Gem::Requirement
38
40
  requirements:
39
- - - "~>"
41
+ - - ">="
40
42
  - !ruby/object:Gem::Version
41
- version: '0.13'
43
+ version: '0.0'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: 2.a
42
47
  - !ruby/object:Gem::Dependency
43
- name: googleauth
48
+ name: google-cloud-translate-v3
44
49
  requirement: !ruby/object:Gem::Requirement
45
50
  requirements:
46
- - - "~>"
51
+ - - ">="
47
52
  - !ruby/object:Gem::Version
48
- version: 0.6.2
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
49
57
  type: :runtime
50
58
  prerelease: false
51
59
  version_requirements: !ruby/object:Gem::Requirement
52
60
  requirements:
53
- - - "~>"
61
+ - - ">="
54
62
  - !ruby/object:Gem::Version
55
- version: 0.6.2
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
56
67
  - !ruby/object:Gem::Dependency
57
- name: minitest
68
+ name: google-style
58
69
  requirement: !ruby/object:Gem::Requirement
59
70
  requirements:
60
71
  - - "~>"
61
72
  - !ruby/object:Gem::Version
62
- version: '5.10'
73
+ version: 1.25.1
63
74
  type: :development
64
75
  prerelease: false
65
76
  version_requirements: !ruby/object:Gem::Requirement
66
77
  requirements:
67
78
  - - "~>"
68
79
  - !ruby/object:Gem::Version
69
- version: '5.10'
80
+ version: 1.25.1
70
81
  - !ruby/object:Gem::Dependency
71
- name: minitest-autotest
82
+ name: minitest
72
83
  requirement: !ruby/object:Gem::Requirement
73
84
  requirements:
74
85
  - - "~>"
75
86
  - !ruby/object:Gem::Version
76
- version: '1.0'
87
+ version: '5.14'
77
88
  type: :development
78
89
  prerelease: false
79
90
  version_requirements: !ruby/object:Gem::Requirement
80
91
  requirements:
81
92
  - - "~>"
82
93
  - !ruby/object:Gem::Version
83
- version: '1.0'
94
+ version: '5.14'
84
95
  - !ruby/object:Gem::Dependency
85
96
  name: minitest-focus
86
97
  requirement: !ruby/object:Gem::Requirement
@@ -110,19 +121,19 @@ dependencies:
110
121
  - !ruby/object:Gem::Version
111
122
  version: '5.2'
112
123
  - !ruby/object:Gem::Dependency
113
- name: autotest-suffix
124
+ name: rake
114
125
  requirement: !ruby/object:Gem::Requirement
115
126
  requirements:
116
- - - "~>"
127
+ - - ">="
117
128
  - !ruby/object:Gem::Version
118
- version: '1.1'
129
+ version: '12.0'
119
130
  type: :development
120
131
  prerelease: false
121
132
  version_requirements: !ruby/object:Gem::Requirement
122
133
  requirements:
123
- - - "~>"
134
+ - - ">="
124
135
  - !ruby/object:Gem::Version
125
- version: '1.1'
136
+ version: '12.0'
126
137
  - !ruby/object:Gem::Dependency
127
138
  name: redcarpet
128
139
  requirement: !ruby/object:Gem::Requirement
@@ -137,20 +148,6 @@ dependencies:
137
148
  - - "~>"
138
149
  - !ruby/object:Gem::Version
139
150
  version: '3.0'
140
- - !ruby/object:Gem::Dependency
141
- name: rubocop
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - "~>"
145
- - !ruby/object:Gem::Version
146
- version: 0.50.0
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - "~>"
152
- - !ruby/object:Gem::Version
153
- version: 0.50.0
154
151
  - !ruby/object:Gem::Dependency
155
152
  name: simplecov
156
153
  requirement: !ruby/object:Gem::Requirement
@@ -179,47 +176,24 @@ dependencies:
179
176
  - - "~>"
180
177
  - !ruby/object:Gem::Version
181
178
  version: '0.9'
182
- - !ruby/object:Gem::Dependency
183
- name: yard-doctest
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - "~>"
187
- - !ruby/object:Gem::Version
188
- version: 0.1.13
189
- type: :development
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - "~>"
194
- - !ruby/object:Gem::Version
195
- version: 0.1.13
196
- description: google-cloud-translate is the official library for Google Cloud Translation
197
- API.
198
- email:
199
- - mike@blowmage.com
200
- - quartzmo@gmail.com
179
+ description: Cloud Translation can dynamically translate text between thousands of
180
+ language pairs. Translation lets websites and programs programmatically integrate
181
+ with the translation service.
182
+ email: googleapis-packages@google.com
201
183
  executables: []
202
184
  extensions: []
203
185
  extra_rdoc_files: []
204
186
  files:
205
187
  - ".yardopts"
206
188
  - AUTHENTICATION.md
207
- - CHANGELOG.md
208
- - CODE_OF_CONDUCT.md
209
- - CONTRIBUTING.md
210
- - LICENSE
211
- - OVERVIEW.md
212
- - TROUBLESHOOTING.md
189
+ - LICENSE.md
190
+ - MIGRATING.md
191
+ - README.md
213
192
  - lib/google-cloud-translate.rb
214
193
  - lib/google/cloud/translate.rb
215
- - lib/google/cloud/translate/api.rb
216
- - lib/google/cloud/translate/credentials.rb
217
- - lib/google/cloud/translate/detection.rb
218
- - lib/google/cloud/translate/language.rb
219
- - lib/google/cloud/translate/service.rb
220
- - lib/google/cloud/translate/translation.rb
194
+ - lib/google/cloud/translate/helpers.rb
221
195
  - lib/google/cloud/translate/version.rb
222
- homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-translate
196
+ homepage: https://github.com/googleapis/google-cloud-ruby
223
197
  licenses:
224
198
  - Apache-2.0
225
199
  metadata: {}
@@ -231,16 +205,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
231
205
  requirements:
232
206
  - - ">="
233
207
  - !ruby/object:Gem::Version
234
- version: 2.0.0
208
+ version: '2.5'
235
209
  required_rubygems_version: !ruby/object:Gem::Requirement
236
210
  requirements:
237
211
  - - ">="
238
212
  - !ruby/object:Gem::Version
239
213
  version: '0'
240
214
  requirements: []
241
- rubyforge_project:
242
- rubygems_version: 2.7.7
215
+ rubygems_version: 3.3.4
243
216
  signing_key:
244
217
  specification_version: 4
245
- summary: API Client library for Google Cloud Translation API
218
+ summary: API Client library for the Cloud Translation API
246
219
  test_files: []