google-cloud-datastore 1.5.5 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/LOGGING.md +1 -1
- data/lib/google-cloud-datastore.rb +1 -0
- data/lib/google/cloud/datastore.rb +8 -3
- data/lib/google/cloud/datastore/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: 94b7b368b6477ee21b4570bba3077a2e3fa67e76b6200f0ee10cc9f16b5ed13f
|
4
|
+
data.tar.gz: 53a302ccf50473ccf8d4615817446ce771886f9f308aa6ce836e65c9e47e6d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9c5f2e568c78c55dd2a9163cd50a860db53b012d1b577a8abe454f76fcca5f16840b8e31e0004ad0a114ac067a7d9dc3feb3665f8beb8dc96cbfd8911e0815
|
7
|
+
data.tar.gz: 163e92e6552086ab704b0ab6cb199d49ec5ba80d87ae00105b1e662d7ff57c73268f8fd0705831f2f1621e0cb90b1d35f95669bc8a4ba64cfe407fdee5e6991e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 1.6.0 / 2019-08-23
|
4
|
+
|
5
|
+
#### Features
|
6
|
+
|
7
|
+
* Support overriding of service endpoint
|
8
|
+
|
9
|
+
#### Documentation
|
10
|
+
|
11
|
+
* Update documentation
|
12
|
+
|
3
13
|
### 1.5.5 / 2019-07-12
|
4
14
|
|
5
15
|
* Update #to_hash to #to_h for compatibility with google-protobuf >= 3.9.0
|
data/LOGGING.md
CHANGED
@@ -5,7 +5,7 @@ To enable logging for this library, set the logger for the underlying
|
|
5
5
|
that you set may be a Ruby stdlib
|
6
6
|
[`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as
|
7
7
|
shown below, or a
|
8
|
-
[`Google::Cloud::Logging::Logger`](https://googleapis.
|
8
|
+
[`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
9
9
|
that will write logs to [Stackdriver
|
10
10
|
Logging](https://cloud.google.com/logging/). See
|
11
11
|
[grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
@@ -153,4 +153,5 @@ Google::Cloud.configure.add_config! :datastore do |config|
|
|
153
153
|
config.add_field! :client_config, nil, match: Hash
|
154
154
|
config.add_field! :emulator_host, default_emulator,
|
155
155
|
match: String, allow_nil: true
|
156
|
+
config.add_field! :endpoint, nil, match: String
|
156
157
|
end
|
@@ -72,6 +72,8 @@ module Google
|
|
72
72
|
# @param [Integer] timeout Default timeout to use in requests. Optional.
|
73
73
|
# @param [Hash] client_config A hash of values to override the default
|
74
74
|
# behavior of the API client. See Google::Gax::CallSettings. Optional.
|
75
|
+
# @param [String] endpoint Override of the endpoint host name. Optional.
|
76
|
+
# If the param is nil, uses the default endpoint.
|
75
77
|
# @param [String] emulator_host Datastore emulator host. Optional.
|
76
78
|
# If the param is nil, uses the value of the `emulator_host` config.
|
77
79
|
# @param [String] project Alias for the `project_id` argument. Deprecated.
|
@@ -98,12 +100,13 @@ module Google
|
|
98
100
|
# datastore.save task
|
99
101
|
#
|
100
102
|
def self.new project_id: nil, credentials: nil, scope: nil, timeout: nil,
|
101
|
-
client_config: nil,
|
102
|
-
keyfile: nil
|
103
|
+
client_config: nil, endpoint: nil, emulator_host: nil,
|
104
|
+
project: nil, keyfile: nil
|
103
105
|
project_id ||= (project || default_project_id)
|
104
106
|
scope ||= configure.scope
|
105
107
|
timeout ||= configure.timeout
|
106
108
|
client_config ||= configure.client_config
|
109
|
+
endpoint ||= configure.endpoint
|
107
110
|
emulator_host ||= configure.emulator_host
|
108
111
|
|
109
112
|
if emulator_host
|
@@ -133,7 +136,7 @@ module Google
|
|
133
136
|
Datastore::Dataset.new(
|
134
137
|
Datastore::Service.new(
|
135
138
|
project_id, credentials,
|
136
|
-
timeout: timeout, client_config: client_config
|
139
|
+
host: endpoint, timeout: timeout, client_config: client_config
|
137
140
|
)
|
138
141
|
)
|
139
142
|
end
|
@@ -157,6 +160,8 @@ module Google
|
|
157
160
|
# * `timeout` - (Integer) Default timeout to use in requests.
|
158
161
|
# * `client_config` - (Hash) A hash of values to override the default
|
159
162
|
# behavior of the API client.
|
163
|
+
# * `endpoint` - (String) Override of the endpoint host name, or `nil`
|
164
|
+
# to use the default endpoint.
|
160
165
|
# * `emulator_host` - (String) Host name of the emulator. Defaults to
|
161
166
|
# `ENV["DATASTORE_EMULATOR_HOST"]`
|
162
167
|
#
|
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.
|
4
|
+
version: 1.6.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: 2019-
|
12
|
+
date: 2019-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
264
264
|
- !ruby/object:Gem::Version
|
265
265
|
version: '0'
|
266
266
|
requirements: []
|
267
|
-
rubygems_version: 3.0.
|
267
|
+
rubygems_version: 3.0.4
|
268
268
|
signing_key:
|
269
269
|
specification_version: 4
|
270
270
|
summary: API Client library for Google Cloud Datastore
|