google-cloud-datastore 1.8.0 → 2.2.0
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/AUTHENTICATION.md +2 -1
- data/CHANGELOG.md +47 -0
- data/CONTRIBUTING.md +2 -2
- data/LOGGING.md +1 -1
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google-cloud-datastore.rb +13 -18
- data/lib/google/cloud/datastore.rb +12 -11
- data/lib/google/cloud/datastore/commit.rb +4 -4
- data/lib/google/cloud/datastore/convert.rb +4 -4
- data/lib/google/cloud/datastore/credentials.rb +2 -2
- data/lib/google/cloud/datastore/dataset.rb +3 -3
- data/lib/google/cloud/datastore/dataset/lookup_results.rb +5 -5
- data/lib/google/cloud/datastore/dataset/query_results.rb +6 -6
- data/lib/google/cloud/datastore/entity.rb +4 -4
- data/lib/google/cloud/datastore/gql_query.rb +19 -23
- data/lib/google/cloud/datastore/key.rb +9 -8
- data/lib/google/cloud/datastore/properties.rb +1 -1
- data/lib/google/cloud/datastore/query.rb +15 -14
- data/lib/google/cloud/datastore/service.rb +34 -86
- data/lib/google/cloud/datastore/transaction.rb +1 -1
- data/lib/google/cloud/datastore/version.rb +1 -1
- metadata +13 -68
- data/lib/google/cloud/datastore/v1.rb +0 -16
- data/lib/google/cloud/datastore/v1/credentials.rb +0 -39
- data/lib/google/cloud/datastore/v1/datastore_client.rb +0 -577
- data/lib/google/cloud/datastore/v1/datastore_client_config.json +0 -61
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb +0 -283
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb +0 -189
- data/lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb +0 -297
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/struct.rb +0 -74
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/timestamp.rb +0 -109
- data/lib/google/cloud/datastore/v1/doc/google/protobuf/wrappers.rb +0 -26
- data/lib/google/cloud/datastore/v1/doc/google/type/latlng.rb +0 -65
- data/lib/google/datastore/v1/datastore_pb.rb +0 -147
- data/lib/google/datastore/v1/datastore_services_pb.rb +0 -65
- data/lib/google/datastore/v1/entity_pb.rb +0 -64
- data/lib/google/datastore/v1/query_pb.rb +0 -132
@@ -49,7 +49,7 @@ module Google
|
|
49
49
|
# gql_query = Google::Cloud::Datastore::GqlQuery.new
|
50
50
|
#
|
51
51
|
def initialize
|
52
|
-
@grpc = Google::Datastore::V1::GqlQuery.new
|
52
|
+
@grpc = Google::Cloud::Datastore::V1::GqlQuery.new
|
53
53
|
end
|
54
54
|
|
55
55
|
##
|
@@ -157,17 +157,15 @@ module Google
|
|
157
157
|
def named_bindings= new_named_bindings
|
158
158
|
@grpc.named_bindings.clear
|
159
159
|
new_named_bindings.map do |name, value|
|
160
|
-
if value.is_a? Google::Cloud::Datastore::Cursor
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
)
|
170
|
-
end
|
160
|
+
@grpc.named_bindings[name.to_s] = if value.is_a? Google::Cloud::Datastore::Cursor
|
161
|
+
Google::Cloud::Datastore::V1::GqlQueryParameter.new(
|
162
|
+
cursor: value.to_grpc
|
163
|
+
)
|
164
|
+
else
|
165
|
+
Google::Cloud::Datastore::V1::GqlQueryParameter.new(
|
166
|
+
value: Convert.to_value(value)
|
167
|
+
)
|
168
|
+
end
|
171
169
|
end
|
172
170
|
end
|
173
171
|
|
@@ -208,17 +206,15 @@ module Google
|
|
208
206
|
def positional_bindings= new_positional_bindings
|
209
207
|
@grpc.positional_bindings.clear
|
210
208
|
new_positional_bindings.map do |value|
|
211
|
-
if value.is_a? Google::Cloud::Datastore::Cursor
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
)
|
221
|
-
end
|
209
|
+
@grpc.positional_bindings << if value.is_a? Google::Cloud::Datastore::Cursor
|
210
|
+
Google::Cloud::Datastore::V1::GqlQueryParameter.new(
|
211
|
+
cursor: value.to_grpc
|
212
|
+
)
|
213
|
+
else
|
214
|
+
Google::Cloud::Datastore::V1::GqlQueryParameter.new(
|
215
|
+
value: Convert.to_value(value)
|
216
|
+
)
|
217
|
+
end
|
222
218
|
end
|
223
219
|
end
|
224
220
|
|
@@ -268,20 +268,21 @@ module Google
|
|
268
268
|
end
|
269
269
|
|
270
270
|
##
|
271
|
-
# @private Convert the Key to a Google::Datastore::V1::Key object.
|
271
|
+
# @private Convert the Key to a Google::Cloud::Datastore::V1::Key object.
|
272
272
|
def to_grpc
|
273
273
|
grpc_path = path.map do |pe_kind, pe_id_or_name|
|
274
274
|
path_args = { kind: pe_kind }
|
275
|
-
|
275
|
+
case pe_id_or_name
|
276
|
+
when Integer
|
276
277
|
path_args[:id] = pe_id_or_name
|
277
|
-
|
278
|
+
when String
|
278
279
|
path_args[:name] = pe_id_or_name unless pe_id_or_name.empty?
|
279
280
|
end
|
280
|
-
Google::Datastore::V1::Key::PathElement.new path_args
|
281
|
+
Google::Cloud::Datastore::V1::Key::PathElement.new path_args
|
281
282
|
end
|
282
|
-
grpc = Google::Datastore::V1::Key.new path: grpc_path
|
283
|
+
grpc = Google::Cloud::Datastore::V1::Key.new path: grpc_path
|
283
284
|
if project || namespace
|
284
|
-
grpc.partition_id = Google::Datastore::V1::PartitionId.new(
|
285
|
+
grpc.partition_id = Google::Cloud::Datastore::V1::PartitionId.new(
|
285
286
|
project_id: project.to_s, namespace_id: namespace.to_s
|
286
287
|
)
|
287
288
|
end
|
@@ -289,7 +290,7 @@ module Google
|
|
289
290
|
end
|
290
291
|
|
291
292
|
##
|
292
|
-
# @private Create a new Key from a Google::Datastore::V1::Key
|
293
|
+
# @private Create a new Key from a Google::Cloud::Datastore::V1::Key
|
293
294
|
# object.
|
294
295
|
def self.from_grpc grpc
|
295
296
|
return nil if grpc.nil?
|
@@ -305,7 +306,7 @@ module Google
|
|
305
306
|
key.project = key_grpc.partition_id.project_id
|
306
307
|
key.namespace = key_grpc.partition_id.namespace_id
|
307
308
|
end
|
308
|
-
key.parent = Key.from_grpc key_grpc if key_grpc.path.count
|
309
|
+
key.parent = Key.from_grpc key_grpc if key_grpc.path.count.positive?
|
309
310
|
# Freeze the key to make it immutable.
|
310
311
|
key.freeze
|
311
312
|
key
|
@@ -61,7 +61,7 @@ module Google
|
|
61
61
|
# query = Google::Cloud::Datastore::Query.new
|
62
62
|
#
|
63
63
|
def initialize
|
64
|
-
@grpc = Google::Datastore::V1::Query.new
|
64
|
+
@grpc = Google::Cloud::Datastore::V1::Query.new
|
65
65
|
end
|
66
66
|
|
67
67
|
##
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
#
|
84
84
|
def kind *kinds
|
85
85
|
kinds.each do |kind|
|
86
|
-
grpc_kind = Google::Datastore::V1::KindExpression.new(
|
86
|
+
grpc_kind = Google::Cloud::Datastore::V1::KindExpression.new(
|
87
87
|
name: kind
|
88
88
|
)
|
89
89
|
@grpc.kind << grpc_kind
|
@@ -177,15 +177,15 @@ module Google
|
|
177
177
|
# tasks = datastore.run query
|
178
178
|
#
|
179
179
|
def where name, operator, value
|
180
|
-
@grpc.filter ||= Google::Datastore::V1::Filter.new(
|
181
|
-
composite_filter: Google::Datastore::V1::CompositeFilter.new(
|
180
|
+
@grpc.filter ||= Google::Cloud::Datastore::V1::Filter.new(
|
181
|
+
composite_filter: Google::Cloud::Datastore::V1::CompositeFilter.new(
|
182
182
|
op: :AND
|
183
183
|
)
|
184
184
|
)
|
185
185
|
@grpc.filter.composite_filter.filters << \
|
186
|
-
Google::Datastore::V1::Filter.new(
|
187
|
-
property_filter: Google::Datastore::V1::PropertyFilter.new(
|
188
|
-
property: Google::Datastore::V1::PropertyReference.new(
|
186
|
+
Google::Cloud::Datastore::V1::Filter.new(
|
187
|
+
property_filter: Google::Cloud::Datastore::V1::PropertyFilter.new(
|
188
|
+
property: Google::Cloud::Datastore::V1::PropertyReference.new(
|
189
189
|
name: name
|
190
190
|
),
|
191
191
|
op: Convert.to_prop_filter_op(operator),
|
@@ -273,8 +273,8 @@ module Google
|
|
273
273
|
# tasks = datastore.run query
|
274
274
|
#
|
275
275
|
def order name, direction = :asc
|
276
|
-
@grpc.order << Google::Datastore::V1::PropertyOrder.new(
|
277
|
-
property: Google::Datastore::V1::PropertyReference.new(
|
276
|
+
@grpc.order << Google::Cloud::Datastore::V1::PropertyOrder.new(
|
277
|
+
property: Google::Cloud::Datastore::V1::PropertyReference.new(
|
278
278
|
name: name
|
279
279
|
),
|
280
280
|
direction: prop_order_direction(direction)
|
@@ -340,9 +340,10 @@ module Google
|
|
340
340
|
# tasks = datastore.run query
|
341
341
|
#
|
342
342
|
def start cursor
|
343
|
-
|
343
|
+
case cursor
|
344
|
+
when Cursor
|
344
345
|
@grpc.start_cursor = cursor.to_grpc
|
345
|
-
|
346
|
+
when String
|
346
347
|
@grpc.start_cursor = Convert.decode_bytes cursor
|
347
348
|
else
|
348
349
|
raise ArgumentError, "Can't set a cursor using a #{cursor.class}."
|
@@ -384,8 +385,8 @@ module Google
|
|
384
385
|
#
|
385
386
|
def select *names
|
386
387
|
names.each do |name|
|
387
|
-
grpc_projection = Google::Datastore::V1::Projection.new(
|
388
|
-
property: Google::Datastore::V1::PropertyReference.new(
|
388
|
+
grpc_projection = Google::Cloud::Datastore::V1::Projection.new(
|
389
|
+
property: Google::Cloud::Datastore::V1::PropertyReference.new(
|
389
390
|
name: name
|
390
391
|
)
|
391
392
|
)
|
@@ -414,7 +415,7 @@ module Google
|
|
414
415
|
#
|
415
416
|
def group_by *names
|
416
417
|
names.each do |name|
|
417
|
-
grpc_property = Google::Datastore::V1::PropertyReference.new(
|
418
|
+
grpc_property = Google::Cloud::Datastore::V1::PropertyReference.new(
|
418
419
|
name: name
|
419
420
|
)
|
420
421
|
@grpc.distinct_on << grpc_property
|
@@ -17,7 +17,6 @@ require "google/cloud/errors"
|
|
17
17
|
require "google/cloud/datastore/credentials"
|
18
18
|
require "google/cloud/datastore/version"
|
19
19
|
require "google/cloud/datastore/v1"
|
20
|
-
require "google/gax/errors"
|
21
20
|
|
22
21
|
module Google
|
23
22
|
module Cloud
|
@@ -26,59 +25,38 @@ module Google
|
|
26
25
|
# @private Represents the GAX Datastore service, including all the API
|
27
26
|
# methods.
|
28
27
|
class Service
|
29
|
-
attr_accessor :project
|
28
|
+
attr_accessor :project
|
29
|
+
attr_accessor :credentials
|
30
|
+
attr_accessor :host
|
31
|
+
attr_accessor :timeout
|
30
32
|
|
31
33
|
##
|
32
34
|
# Creates a new Service instance.
|
33
|
-
def initialize project, credentials, host: nil, timeout: nil
|
34
|
-
client_config: nil
|
35
|
+
def initialize project, credentials, host: nil, timeout: nil
|
35
36
|
@project = project
|
36
37
|
@credentials = credentials
|
37
|
-
@host = host
|
38
|
+
@host = host
|
38
39
|
@timeout = timeout
|
39
|
-
@client_config = client_config || {}
|
40
|
-
end
|
41
|
-
|
42
|
-
def channel
|
43
|
-
require "grpc"
|
44
|
-
GRPC::Core::Channel.new host, chan_args, chan_creds
|
45
|
-
end
|
46
|
-
|
47
|
-
def chan_args
|
48
|
-
{ "grpc.service_config_disable_resolution" => 1 }
|
49
|
-
end
|
50
|
-
|
51
|
-
def chan_creds
|
52
|
-
return credentials if insecure?
|
53
|
-
require "grpc"
|
54
|
-
GRPC::Core::ChannelCredentials.new.compose \
|
55
|
-
GRPC::Core::CallCredentials.new credentials.client.updater_proc
|
56
40
|
end
|
57
41
|
|
58
42
|
def service
|
59
43
|
return mocked_service if mocked_service
|
60
|
-
@service ||= V1::
|
61
|
-
credentials
|
62
|
-
timeout
|
63
|
-
|
64
|
-
lib_name
|
65
|
-
lib_version
|
66
|
-
|
44
|
+
@service ||= V1::Datastore::Client.new do |config|
|
45
|
+
config.credentials = credentials if credentials
|
46
|
+
config.timeout = timeout if timeout
|
47
|
+
config.endpoint = host if host
|
48
|
+
config.lib_name = "gccl"
|
49
|
+
config.lib_version = Google::Cloud::Datastore::VERSION
|
50
|
+
config.metadata = { "google-cloud-resource-prefix": "projects/#{@project}" }
|
51
|
+
end
|
67
52
|
end
|
68
53
|
attr_accessor :mocked_service
|
69
54
|
|
70
|
-
def insecure?
|
71
|
-
credentials == :this_channel_is_insecure
|
72
|
-
end
|
73
|
-
|
74
55
|
##
|
75
56
|
# Allocate IDs for incomplete keys.
|
76
57
|
# (This is useful for referencing an entity before it is inserted.)
|
77
58
|
def allocate_ids *incomplete_keys
|
78
|
-
|
79
|
-
service.allocate_ids project, incomplete_keys,
|
80
|
-
options: default_options
|
81
|
-
end
|
59
|
+
service.allocate_ids project_id: project, keys: incomplete_keys
|
82
60
|
end
|
83
61
|
|
84
62
|
##
|
@@ -86,76 +64,61 @@ module Google
|
|
86
64
|
def lookup *keys, consistency: nil, transaction: nil
|
87
65
|
read_options = generate_read_options consistency, transaction
|
88
66
|
|
89
|
-
|
90
|
-
service.lookup project, keys,
|
91
|
-
read_options: read_options, options: default_options
|
92
|
-
end
|
67
|
+
service.lookup project_id: project, keys: keys, read_options: read_options
|
93
68
|
end
|
94
69
|
|
95
70
|
# Query for entities.
|
96
71
|
def run_query query, namespace = nil, consistency: nil, transaction: nil
|
97
72
|
gql_query = nil
|
98
|
-
if query.is_a? Google::Datastore::V1::GqlQuery
|
73
|
+
if query.is_a? Google::Cloud::Datastore::V1::GqlQuery
|
99
74
|
gql_query = query
|
100
75
|
query = nil
|
101
76
|
end
|
102
77
|
read_options = generate_read_options consistency, transaction
|
103
78
|
if namespace
|
104
|
-
partition_id = Google::Datastore::V1::PartitionId.new(
|
79
|
+
partition_id = Google::Cloud::Datastore::V1::PartitionId.new(
|
105
80
|
namespace_id: namespace
|
106
81
|
)
|
107
82
|
end
|
108
83
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
options: default_options
|
115
|
-
end
|
84
|
+
service.run_query project_id: project,
|
85
|
+
partition_id: partition_id,
|
86
|
+
read_options: read_options,
|
87
|
+
query: query,
|
88
|
+
gql_query: gql_query
|
116
89
|
end
|
117
90
|
|
118
91
|
##
|
119
92
|
# Begin a new transaction.
|
120
93
|
def begin_transaction read_only: nil, previous_transaction: nil
|
121
94
|
if read_only
|
122
|
-
transaction_options = Google::Datastore::V1::TransactionOptions.new
|
95
|
+
transaction_options = Google::Cloud::Datastore::V1::TransactionOptions.new
|
123
96
|
transaction_options.read_only = \
|
124
|
-
Google::Datastore::V1::TransactionOptions::ReadOnly.new
|
97
|
+
Google::Cloud::Datastore::V1::TransactionOptions::ReadOnly.new
|
125
98
|
end
|
126
99
|
if previous_transaction
|
127
100
|
transaction_options ||= \
|
128
|
-
Google::Datastore::V1::TransactionOptions.new
|
129
|
-
rw = Google::Datastore::V1::TransactionOptions::ReadWrite.new(
|
101
|
+
Google::Cloud::Datastore::V1::TransactionOptions.new
|
102
|
+
rw = Google::Cloud::Datastore::V1::TransactionOptions::ReadWrite.new(
|
130
103
|
previous_transaction: previous_transaction.encode("ASCII-8BIT")
|
131
104
|
)
|
132
105
|
transaction_options.read_write = rw
|
133
106
|
end
|
134
|
-
|
135
|
-
service.begin_transaction project,
|
136
|
-
transaction_options: transaction_options
|
137
|
-
end
|
107
|
+
service.begin_transaction project_id: project, transaction_options: transaction_options
|
138
108
|
end
|
139
109
|
|
140
110
|
##
|
141
111
|
# Commit a transaction, optionally creating, deleting or modifying
|
142
112
|
# some entities.
|
143
113
|
def commit mutations, transaction: nil
|
144
|
-
mode =
|
145
|
-
|
146
|
-
service.commit project, mode: mode,
|
147
|
-
mutations: mutations,
|
148
|
-
transaction: transaction,
|
149
|
-
options: default_options
|
150
|
-
end
|
114
|
+
mode = transaction.nil? ? :NON_TRANSACTIONAL : :TRANSACTIONAL
|
115
|
+
service.commit project_id: project, mode: mode, mutations: mutations, transaction: transaction
|
151
116
|
end
|
152
117
|
|
153
118
|
##
|
154
119
|
# Roll back a transaction.
|
155
120
|
def rollback transaction
|
156
|
-
|
157
|
-
service.rollback project, transaction, options: default_options
|
158
|
-
end
|
121
|
+
service.rollback project_id: project, transaction: transaction
|
159
122
|
end
|
160
123
|
|
161
124
|
def inspect
|
@@ -166,35 +129,20 @@ module Google
|
|
166
129
|
|
167
130
|
def generate_read_options consistency, transaction
|
168
131
|
if consistency == :eventual
|
169
|
-
return Google::Datastore::V1::ReadOptions.new(
|
132
|
+
return Google::Cloud::Datastore::V1::ReadOptions.new(
|
170
133
|
read_consistency: :EVENTUAL
|
171
134
|
)
|
172
135
|
elsif consistency == :strong
|
173
|
-
return Google::Datastore::V1::ReadOptions.new(
|
136
|
+
return Google::Cloud::Datastore::V1::ReadOptions.new(
|
174
137
|
read_consistency: :STRONG
|
175
138
|
)
|
176
139
|
elsif transaction
|
177
|
-
return Google::Datastore::V1::ReadOptions.new(
|
140
|
+
return Google::Cloud::Datastore::V1::ReadOptions.new(
|
178
141
|
transaction: transaction
|
179
142
|
)
|
180
143
|
end
|
181
144
|
nil
|
182
145
|
end
|
183
|
-
|
184
|
-
def default_headers
|
185
|
-
{ "google-cloud-resource-prefix" => "projects/#{@project}" }
|
186
|
-
end
|
187
|
-
|
188
|
-
def default_options
|
189
|
-
Google::Gax::CallOptions.new kwargs: default_headers
|
190
|
-
end
|
191
|
-
|
192
|
-
def execute
|
193
|
-
yield
|
194
|
-
rescue Google::Gax::GaxError => e
|
195
|
-
# GaxError wraps BadStatus, but exposes it as #cause
|
196
|
-
raise Google::Cloud::Error.from_error(e.cause)
|
197
|
-
end
|
198
146
|
end
|
199
147
|
end
|
200
148
|
end
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
# @private Creates a new Transaction instance.
|
51
51
|
# Takes a Service instead of project and Credentials.
|
52
52
|
def initialize service, previous_transaction: nil
|
53
|
-
|
53
|
+
super service
|
54
54
|
@previous_transaction = previous_transaction
|
55
55
|
reset!
|
56
56
|
start
|
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:
|
4
|
+
version: 2.2.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:
|
12
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -17,96 +17,56 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.5'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.5'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name: google-
|
29
|
+
name: google-cloud-datastore-v1
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '0.0'
|
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: '
|
42
|
-
- !ruby/object:Gem::Dependency
|
43
|
-
name: googleapis-common-protos
|
44
|
-
requirement: !ruby/object:Gem::Requirement
|
45
|
-
requirements:
|
46
|
-
- - ">="
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 1.3.9
|
49
|
-
- - "<"
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '2.0'
|
52
|
-
type: :runtime
|
53
|
-
prerelease: false
|
54
|
-
version_requirements: !ruby/object:Gem::Requirement
|
55
|
-
requirements:
|
56
|
-
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: 1.3.9
|
59
|
-
- - "<"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.0'
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: googleapis-common-protos-types
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.4
|
69
|
-
- - "<"
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '2.0'
|
72
|
-
type: :runtime
|
73
|
-
prerelease: false
|
74
|
-
version_requirements: !ruby/object:Gem::Requirement
|
75
|
-
requirements:
|
76
|
-
- - ">="
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version: 1.0.4
|
79
|
-
- - "<"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '2.0'
|
41
|
+
version: '0.0'
|
82
42
|
- !ruby/object:Gem::Dependency
|
83
43
|
name: google-style
|
84
44
|
requirement: !ruby/object:Gem::Requirement
|
85
45
|
requirements:
|
86
46
|
- - "~>"
|
87
47
|
- !ruby/object:Gem::Version
|
88
|
-
version: 1.
|
48
|
+
version: 1.25.1
|
89
49
|
type: :development
|
90
50
|
prerelease: false
|
91
51
|
version_requirements: !ruby/object:Gem::Requirement
|
92
52
|
requirements:
|
93
53
|
- - "~>"
|
94
54
|
- !ruby/object:Gem::Version
|
95
|
-
version: 1.
|
55
|
+
version: 1.25.1
|
96
56
|
- !ruby/object:Gem::Dependency
|
97
57
|
name: minitest
|
98
58
|
requirement: !ruby/object:Gem::Requirement
|
99
59
|
requirements:
|
100
60
|
- - "~>"
|
101
61
|
- !ruby/object:Gem::Version
|
102
|
-
version: '5.
|
62
|
+
version: '5.14'
|
103
63
|
type: :development
|
104
64
|
prerelease: false
|
105
65
|
version_requirements: !ruby/object:Gem::Requirement
|
106
66
|
requirements:
|
107
67
|
- - "~>"
|
108
68
|
- !ruby/object:Gem::Version
|
109
|
-
version: '5.
|
69
|
+
version: '5.14'
|
110
70
|
- !ruby/object:Gem::Dependency
|
111
71
|
name: minitest-autotest
|
112
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -255,22 +215,7 @@ files:
|
|
255
215
|
- lib/google/cloud/datastore/read_only_transaction.rb
|
256
216
|
- lib/google/cloud/datastore/service.rb
|
257
217
|
- lib/google/cloud/datastore/transaction.rb
|
258
|
-
- lib/google/cloud/datastore/v1.rb
|
259
|
-
- lib/google/cloud/datastore/v1/credentials.rb
|
260
|
-
- lib/google/cloud/datastore/v1/datastore_client.rb
|
261
|
-
- lib/google/cloud/datastore/v1/datastore_client_config.json
|
262
|
-
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/datastore.rb
|
263
|
-
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/entity.rb
|
264
|
-
- lib/google/cloud/datastore/v1/doc/google/datastore/v1/query.rb
|
265
|
-
- lib/google/cloud/datastore/v1/doc/google/protobuf/struct.rb
|
266
|
-
- lib/google/cloud/datastore/v1/doc/google/protobuf/timestamp.rb
|
267
|
-
- lib/google/cloud/datastore/v1/doc/google/protobuf/wrappers.rb
|
268
|
-
- lib/google/cloud/datastore/v1/doc/google/type/latlng.rb
|
269
218
|
- lib/google/cloud/datastore/version.rb
|
270
|
-
- lib/google/datastore/v1/datastore_pb.rb
|
271
|
-
- lib/google/datastore/v1/datastore_services_pb.rb
|
272
|
-
- lib/google/datastore/v1/entity_pb.rb
|
273
|
-
- lib/google/datastore/v1/query_pb.rb
|
274
219
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-datastore
|
275
220
|
licenses:
|
276
221
|
- Apache-2.0
|
@@ -283,14 +228,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
283
228
|
requirements:
|
284
229
|
- - ">="
|
285
230
|
- !ruby/object:Gem::Version
|
286
|
-
version: '2.
|
231
|
+
version: '2.5'
|
287
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
288
233
|
requirements:
|
289
234
|
- - ">="
|
290
235
|
- !ruby/object:Gem::Version
|
291
236
|
version: '0'
|
292
237
|
requirements: []
|
293
|
-
rubygems_version: 3.
|
238
|
+
rubygems_version: 3.2.13
|
294
239
|
signing_key:
|
295
240
|
specification_version: 4
|
296
241
|
summary: API Client library for Google Cloud Datastore
|