google-cloud-translate-v2 0.1.0 → 0.1.1
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 +4 -4
- data/CHANGELOG.md +7 -1
- data/lib/google/cloud/translate/v2/service.rb +3 -3
- data/lib/google/cloud/translate/v2/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 754387cc8da7fef9ba17ee2af8c44256fd5712f4970d0e09ba25bb4ec7c44e65
|
4
|
+
data.tar.gz: 37a696b2f076fd154f43696bcca74bfdf5bf8204c125a6abdc2d798fdf5d147b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d79eea30ef0cfea5ba983367379d5d2ce930d20ccc8745a792bffbec9f5ecdbcde5014de6505751b840009ecea314cface562e6724c6136a83dc9e9d54b9526b
|
7
|
+
data.tar.gz: c561147f20ac5eff16139c3b6a05eb04ee1b34acd8247f6ecc5baea509f2be39b9b8b9391e57766dffc88ea3e84a8779e581112712be980b307e1bf9163ea9e0
|
data/CHANGELOG.md
CHANGED
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# Represents the Translation API REST service, exposing the API calls.
|
29
29
|
class Service #:nodoc:
|
30
30
|
API_VERSION = "v2".freeze
|
31
|
-
|
31
|
+
API_HOST = "translate.googleapis.com".freeze
|
32
32
|
|
33
33
|
# @private
|
34
34
|
attr_accessor :project_id, :credentials, :retries, :timeout, :key
|
@@ -41,7 +41,7 @@ module Google
|
|
41
41
|
@retries = retries
|
42
42
|
@timeout = timeout
|
43
43
|
@key = key
|
44
|
-
@
|
44
|
+
@url = "https://#{host || API_HOST}"
|
45
45
|
end
|
46
46
|
|
47
47
|
##
|
@@ -102,7 +102,7 @@ module Google
|
|
102
102
|
# The HTTP object that makes calls to API.
|
103
103
|
# This must be a Faraday object.
|
104
104
|
def http
|
105
|
-
@http ||= Faraday.new url: @
|
105
|
+
@http ||= Faraday.new url: @url, request: {
|
106
106
|
open_timeout: @timeout, timeout: @timeout
|
107
107
|
}.delete_if { |_k, v| v.nil? }
|
108
108
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
265
265
|
- !ruby/object:Gem::Version
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
|
-
rubygems_version: 3.
|
268
|
+
rubygems_version: 3.1.3
|
269
269
|
signing_key:
|
270
270
|
specification_version: 4
|
271
271
|
summary: API Client library for Cloud Translation V2 API
|