google-cloud-translate 0.22.2 → 0.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/translate/api.rb +2 -2
- data/lib/google/cloud/translate/service.rb +3 -1
- data/lib/google/cloud/translate/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6f7920c3e028c26b365bafefa35eae2fcc5bf55
|
4
|
+
data.tar.gz: aac68deb9adbe6d7b01666a85525b45982ac40c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87eebb56ee7f6bbb8f58b8d18496a6f9c75bbec6d037a68e063422ad18348dcad5f32f15ee390f8ce61df43d204377ff38f05891aeea99d6342ce6422ccec184
|
7
|
+
data.tar.gz: 252c6fbb7b9c341ac6873c659b2dc71f35d29b81b7c38c48359b16c5189455c8dd4812e785b1f9a3138f634ea47e1805f1cf6ac5756d37472b9eb44fca7f01cb
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Translation API supports more than one hundred different languages, from Afrikaans to Zulu. Used in combination, this enables translation between thousands of language pairs. Also, you can send in HTML and receive HTML with translated text back. You don't need to extract your source text or reassemble the translated content.
|
6
6
|
|
7
|
-
- [google-cloud-translate API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-translate/
|
7
|
+
- [google-cloud-translate API documentation](http://googlecloudplatform.github.io/google-cloud-ruby/#/docs/google-cloud-translate/latest)
|
8
8
|
- [google-cloud-translate on RubyGems](https://rubygems.org/gems/google-cloud-translate)
|
9
9
|
- [Google Cloud Translation API documentation](https://cloud.google.com/translation/docs)
|
10
10
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
|
16
|
-
require "google/cloud/
|
16
|
+
require "google/cloud/env"
|
17
17
|
require "google/cloud/translate/service"
|
18
18
|
require "google/cloud/translate/translation"
|
19
19
|
require "google/cloud/translate/detection"
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
ENV["TRANSLATE_PROJECT"] ||
|
86
86
|
ENV["GOOGLE_CLOUD_PROJECT"] ||
|
87
87
|
ENV["GCLOUD_PROJECT"] ||
|
88
|
-
Google::Cloud
|
88
|
+
Google::Cloud.env.project_id
|
89
89
|
end
|
90
90
|
|
91
91
|
##
|
@@ -112,7 +112,9 @@ module Google
|
|
112
112
|
@default_http_headers ||= {
|
113
113
|
"User-Agent" => "gcloud-ruby/#{Google::Cloud::Translate::VERSION}",
|
114
114
|
"google-cloud-resource-prefix" => "projects/#{@project}",
|
115
|
-
"Content-Type" => "application/json"
|
115
|
+
"Content-Type" => "application/json",
|
116
|
+
"x-goog-api-client" => "gl-ruby/#{RUBY_VERSION} " \
|
117
|
+
"gccl/#{Google::Cloud::Translate::VERSION}"
|
116
118
|
}
|
117
119
|
end
|
118
120
|
|
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: 0.
|
4
|
+
version: 0.23.0
|
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:
|
12
|
+
date: 2017-04-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: '1.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version:
|
27
|
+
version: '1.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: googleauth
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,14 +45,14 @@ dependencies:
|
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '5.
|
48
|
+
version: '5.10'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '5.
|
55
|
+
version: '5.10'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: minitest-autotest
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,14 +155,14 @@ dependencies:
|
|
155
155
|
name: yard-doctest
|
156
156
|
requirement: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
|
-
- - "
|
158
|
+
- - "<="
|
159
159
|
- !ruby/object:Gem::Version
|
160
160
|
version: 0.1.8
|
161
161
|
type: :development
|
162
162
|
prerelease: false
|
163
163
|
version_requirements: !ruby/object:Gem::Requirement
|
164
164
|
requirements:
|
165
|
-
- - "
|
165
|
+
- - "<="
|
166
166
|
- !ruby/object:Gem::Version
|
167
167
|
version: 0.1.8
|
168
168
|
description: google-cloud-translate is the official library for Google Cloud Translation
|
@@ -206,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
206
206
|
version: '0'
|
207
207
|
requirements: []
|
208
208
|
rubyforge_project:
|
209
|
-
rubygems_version: 2.6.
|
209
|
+
rubygems_version: 2.6.11
|
210
210
|
signing_key:
|
211
211
|
specification_version: 4
|
212
212
|
summary: API Client library for Google Cloud Translation API
|