google-cloud-language 0.20.1 → 0.20.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/language/service.rb +12 -8
- data/lib/google/cloud/language/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4c7e8d3f85410dfae128039b0eca4d5a3a64757
|
4
|
+
data.tar.gz: 636b67a4a34c6b2e6b9e497c4e91d56a12890bab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50f34170360cca7eff01a4809ee8d027910912e9e9ec4fb4aafb36b2d7fc05dfe7b586057561a800fbc1c0678da0e69041ed139aca79cd00b5c1fc2cb1aca337
|
7
|
+
data.tar.gz: a7dd8f7731b4d69d5cc575422f64fc88f8dae027ce96193c35f855ad5fcff1cc67712dc214fc256042c4d7dd32ae8aa660729086f7e9bc2bdc050b1a7cd876e1
|
@@ -16,7 +16,7 @@
|
|
16
16
|
require "google/cloud/errors"
|
17
17
|
require "google/cloud/language/credentials"
|
18
18
|
require "google/cloud/language/version"
|
19
|
-
require "google/cloud/language/v1beta1/
|
19
|
+
require "google/cloud/language/v1beta1/language_service_pb"
|
20
20
|
|
21
21
|
module Google
|
22
22
|
module Cloud
|
@@ -50,13 +50,17 @@ module Google
|
|
50
50
|
|
51
51
|
def service
|
52
52
|
return mocked_service if mocked_service
|
53
|
-
@service ||=
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
53
|
+
@service ||= begin
|
54
|
+
require "google/cloud/language/v1beta1/language_service_api"
|
55
|
+
|
56
|
+
V1beta1::LanguageServiceApi.new(
|
57
|
+
service_path: host,
|
58
|
+
channel: channel,
|
59
|
+
timeout: timeout,
|
60
|
+
app_name: "google-cloud-language",
|
61
|
+
app_version: Google::Cloud::Language::VERSION)
|
62
|
+
# TODO: Get retries configured
|
63
|
+
end
|
60
64
|
end
|
61
65
|
attr_accessor :mocked_service
|
62
66
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-language
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.
|
4
|
+
version: 0.20.2
|
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
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|