google-cloud-datastore 1.5.3 → 1.5.4

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: 59301badeac780d43d4359892ebb05ff32adb68fb4e7aa109e1c0f5142c3b49b
4
- data.tar.gz: 59a8d3cc5eb573e88d0963a396e16d5382325204b4daceacc412ed11955dccc7
3
+ metadata.gz: 60e59bd622bd925c14e52574b7d13f908af6d0c64b92e1403d198ad8d8a594a1
4
+ data.tar.gz: 5b34a868f6f109e2fa7897b053a081ac4b296393d474a2616d3c3731a47b1a33
5
5
  SHA512:
6
- metadata.gz: ccbb349970983e41bc5da88a2e7c6b8ba3a7978263637480f1537debd7fd87fbb04313e4ea24139cd5524990e651167ab70c1421c65754899d738dd26e07f729
7
- data.tar.gz: 439709052cd3111e8246929c6f0004520e510ec5c0660358f5e37dff4040c61b78458bb7deef151ec2e7f813ab473a5f6e5a2d63bf28aa4d6800adcb924e5cf0
6
+ metadata.gz: bf17f1be411eece5fe4d0b90e0eaed3852e1ae9e9a409ec506bb73c10398381c9a212a0691c236f3ac7b3ff18c5e5d356722e2e7e46b4e66cda724bd77e59495
7
+ data.tar.gz: 426156677bfc95c39a29798376c8d4b97f9f8ce9ac2b959a78e6edcd10298199c6937f54579a52950330ac0f1565793dcc8ede82f0617f63fc83d1592c583dbb
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 1.5.4 / 2019-07-08
4
+
5
+ * Support overriding service host and port for low-level API.
6
+
3
7
  ### 1.5.3 / 2019-06-12
4
8
 
5
9
  * Enable grpc.service_config_disable_resolution
@@ -91,6 +91,10 @@ module Google
91
91
  # The default timeout, in seconds, for calls made through this client.
92
92
  # @param metadata [Hash]
93
93
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
94
+ # @param service_address [String]
95
+ # Override for the service hostname, or `nil` to leave as the default.
96
+ # @param service_port [Integer]
97
+ # Override for the service port, or `nil` to leave as the default.
94
98
  # @param exception_transformer [Proc]
95
99
  # An optional proc that intercepts any exceptions raised during an API call to inject
96
100
  # custom error handling.
@@ -100,6 +104,8 @@ module Google
100
104
  client_config: {},
101
105
  timeout: DEFAULT_TIMEOUT,
102
106
  metadata: nil,
107
+ service_address: nil,
108
+ service_port: nil,
103
109
  exception_transformer: nil,
104
110
  lib_name: nil,
105
111
  lib_version: ""
@@ -153,8 +159,8 @@ module Google
153
159
  end
154
160
 
155
161
  # Allow overriding the service path/port in subclasses.
156
- service_path = self.class::SERVICE_ADDRESS
157
- port = self.class::DEFAULT_SERVICE_PORT
162
+ service_path = service_address || self.class::SERVICE_ADDRESS
163
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
158
164
  interceptors = self.class::GRPC_INTERCEPTORS
159
165
  @datastore_stub = Google::Gax::Grpc.create_stub(
160
166
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Datastore
19
- VERSION = "1.5.3".freeze
19
+ VERSION = "1.5.4".freeze
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-datastore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
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: 2019-06-13 00:00:00.000000000 Z
12
+ date: 2019-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -31,14 +31,14 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.0'
34
+ version: '1.7'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.0'
41
+ version: '1.7'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: google-protobuf
44
44
  requirement: !ruby/object:Gem::Requirement