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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc02e5e77139872a34c39b397d3920f568b99c41
4
- data.tar.gz: 8613621b2008e7fc43c29bc5282a7f1fcd466dab
3
+ metadata.gz: a6f7920c3e028c26b365bafefa35eae2fcc5bf55
4
+ data.tar.gz: aac68deb9adbe6d7b01666a85525b45982ac40c3
5
5
  SHA512:
6
- metadata.gz: 92e446862a154edd1dafed4f8dac84f44f48da1769f115f460a806a7e347234a30207192cee743e33b484776fdf23f24aa3b57bf4a2c8630ec92666e24995836
7
- data.tar.gz: 58552dc8616730520832dc84e5e9f9dc82f45ed1bd4c9987607cf7be61addaca35970534c350d13a9182077c09eece677adcd8e2132e028f6b6bb5141edba931
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/master/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/core/environment"
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::Core::Environment.project_id
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
 
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Translate
19
- VERSION = "0.22.2"
19
+ VERSION = "0.23.0"
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-translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.2
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: 2016-12-22 00:00:00.000000000 Z
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: 0.21.0
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: 0.21.0
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.9'
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.9'
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.8
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