google-cloud-datastore 2.2.4 → 2.3.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: 226ab9998e7737ce7e7aa4106ed0d16ce04774f192b26dc0770d8d9a8dd57b87
4
- data.tar.gz: c641a2aa53f1d4f5a39ec603b0cfd998fa57b71841b4e9b52dafb623dc71a76e
3
+ metadata.gz: c300ee184929b5e46058e32af1e18a2e0e786e3eb17b32d24a265713e442b75d
4
+ data.tar.gz: 06752add810608b745cc157a60fcfc23aa77ab54a7395f54e8f8b2d3867fc882
5
5
  SHA512:
6
- metadata.gz: 72ffee894e6ee4fff6651a65ed90a0f7c0b05b9be61730c2677080fffb2530a07bd3e81eac36ca2cb137b1a3a1c41e18dbc59fc4837b99bcbb7d27c0a786f1f7
7
- data.tar.gz: 5febeb8616ddb1972a7b52ec4450ee63f84ecad99ad535032de261aa7055edafbd7b2822bed53ea95b3df5ef66f8c01fd7d577bbe2bb65661cfdd78133502031
6
+ metadata.gz: aa87df55a375dba1110cd28463a59f0c81e81cfa4aa513edeb380302f63e6e4610a1e5064a47af57753aa4e31c21c092276cbbf92325a6a55b9e3cffb7cbbf35
7
+ data.tar.gz: f39b9d73f4c149cf633b376d10aa811b7f3e8a607e294753e0b796319312082771a112d049c90d548fd80c8024b7b4b18fa11940a88fe07a62ee8e16b7b61d3f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release History
2
2
 
3
+ ### 2.3.1 (2022-12-14)
4
+
5
+ #### Bug Fixes
6
+
7
+ * fixed request limit
8
+
9
+ ### 2.3.0 (2022-06-28)
10
+
11
+ #### Features
12
+
13
+ * Add support for operators "!=", "in" and "not_in" in datastore ([#18401](https://github.com/googleapis/google-cloud-ruby/issues/18401))
14
+
3
15
  ### 2.2.4 / 2022-01-11
4
16
 
5
17
  #### Documentation
data/LOGGING.md CHANGED
@@ -3,7 +3,7 @@
3
3
  To enable logging for this library, set the logger for the underlying
4
4
  [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger
5
5
  that you set may be a Ruby stdlib
6
- [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as
6
+ [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as
7
7
  shown below, or a
8
8
  [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
9
9
  that will write logs to [Stackdriver
@@ -64,6 +64,9 @@ module Google
64
64
  "=" => :EQUAL,
65
65
  "eq" => :EQUAL,
66
66
  "eql" => :EQUAL,
67
+ "!=" => :NOT_EQUAL,
68
+ "in" => :IN,
69
+ "not_in" => :NOT_IN,
67
70
  "~" => :HAS_ANCESTOR,
68
71
  "~>" => :HAS_ANCESTOR,
69
72
  "ancestor" => :HAS_ANCESTOR,
@@ -158,6 +158,10 @@ module Google
158
158
  ensure_service!
159
159
  query.start_cursor = cursor.to_grpc # should always be a Cursor...
160
160
  query.offset = 0 # Never carry an offset across batches
161
+ unless query.limit.nil?
162
+ # Reduce the limit by the number of entities returned in the current batch
163
+ query.limit.value -= count
164
+ end
161
165
  query_res = service.run_query query, namespace
162
166
  self.class.from_grpc query_res, service, namespace, query
163
167
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Datastore
19
- VERSION = "2.2.4".freeze
19
+ VERSION = "2.3.1".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: 2.2.4
4
+ version: 2.3.1
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: 2022-01-11 00:00:00.000000000 Z
12
+ date: 2022-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '5.14'
62
+ version: '5.16'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '5.14'
69
+ version: '5.16'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: minitest-autotest
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.3.4
238
+ rubygems_version: 3.3.14
239
239
  signing_key:
240
240
  specification_version: 4
241
241
  summary: API Client library for Google Cloud Datastore