google-cloud-translate-v2 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 9945eddee743747ee201b90c2d474159c3880d70bce075cf1453d34eda51ee2d
4
- data.tar.gz: 2af5dfdf1d2b06dad242caa5e41e4e79933ea4b1491f5adb679e4b2c1c19fc4c
3
+ metadata.gz: 754387cc8da7fef9ba17ee2af8c44256fd5712f4970d0e09ba25bb4ec7c44e65
4
+ data.tar.gz: 37a696b2f076fd154f43696bcca74bfdf5bf8204c125a6abdc2d798fdf5d147b
5
5
  SHA512:
6
- metadata.gz: 2393bf2493db022389b6ed047c43331676ab58b50ae1b2e285ccb189bb873da8d2fc04eec5e10af440daf52cbb8ae3525448268b6550b30a0624fb3c2ac3b847
7
- data.tar.gz: 974e1e240ef1650f8b48a023d2c85c5a836549d29f8197fc6064e2df88bea4a2014799578464def8eb8200b186337081b65d17ac87168036d48a154fca9afe9a
6
+ metadata.gz: d79eea30ef0cfea5ba983367379d5d2ce930d20ccc8745a792bffbec9f5ecdbcde5014de6505751b840009ecea314cface562e6724c6136a83dc9e9d54b9526b
7
+ data.tar.gz: c561147f20ac5eff16139c3b6a05eb04ee1b34acd8247f6ecc5baea509f2be39b9b8b9391e57766dffc88ea3e84a8779e581112712be980b307e1bf9163ea9e0
@@ -1,5 +1,11 @@
1
1
  # Release History
2
+
3
+ ### 0.1.1 / 2020-06-18
4
+
5
+ #### Bug Fixes
6
+
7
+ * Endpoint host can be customized as a hostname rather than a full URL
8
+
2
9
  ### 0.1.0 / 2020-05-25
3
10
 
4
11
  Initial release
5
-
@@ -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
- API_URL = "https://translation.googleapis.com".freeze
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
- @host = host || API_URL
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: @host, request: {
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
@@ -17,7 +17,7 @@ module Google
17
17
  module Cloud
18
18
  module Translate
19
19
  module V2
20
- VERSION = "0.1.0".freeze
20
+ VERSION = "0.1.1".freeze
21
21
  end
22
22
  end
23
23
  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.0
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-05-26 00:00:00.000000000 Z
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.0.6
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