google-cloud-firestore 2.16.0 → 3.0.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/CHANGELOG.md +17 -0
- data/lib/google/cloud/firestore/convert.rb +4 -4
- data/lib/google/cloud/firestore/field_path.rb +2 -2
- data/lib/google/cloud/firestore/query.rb +2 -2
- data/lib/google/cloud/firestore/resource_path.rb +1 -1
- data/lib/google/cloud/firestore/transaction.rb +2 -2
- data/lib/google/cloud/firestore/version.rb +1 -1
- metadata +10 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 308b67067868ac77277cef71c5d5fffcb80683344cf9e4e53c82dd7f94d0214e
|
4
|
+
data.tar.gz: 18549006ffbf3d7c31d691cd5aa08aca8365ce2462ae3459cc23e423e7017b59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a73c2637872557c0c295e5513d6f95f1e51271f1881ebcbce1b21797239f4a19e0672966e05bd1bfce01d6766c96760579a04c63db5c6b21a1dfb42e7159d7ee
|
7
|
+
data.tar.gz: 597ae0aa8b48466143524529533e8ebe5cc8512117550432cf1456c890d6cec98e3e60fe351dda4d9cbb3e00ceb778e537e0f1d04d952d0efb7bd4b1b7181334
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
### 3.0.0 (2025-03-10)
|
4
|
+
|
5
|
+
### ⚠ BREAKING CHANGES
|
6
|
+
|
7
|
+
* Updated google-cloud-firestore-v1 dependency to gem version 2.x
|
8
|
+
|
9
|
+
#### Features
|
10
|
+
|
11
|
+
* Update required version to Ruby 3.0 [#29070](https://github.com/googleapis/google-cloud-ruby/issues/29070)
|
12
|
+
* Updated google-cloud-firestore-v1 dependency to gem version 2.x
|
13
|
+
|
14
|
+
### 2.16.1 (2025-01-29)
|
15
|
+
|
16
|
+
#### Bug Fixes
|
17
|
+
|
18
|
+
* correct cursor flipping in limit_to_last ([#28137](https://github.com/googleapis/google-cloud-ruby/issues/28137))
|
19
|
+
|
3
20
|
### 2.16.0 (2024-07-09)
|
4
21
|
|
5
22
|
#### Features
|
@@ -362,7 +362,7 @@ module Google
|
|
362
362
|
)
|
363
363
|
|
364
364
|
unless exists.nil? && update_time.nil?
|
365
|
-
write.current_document =
|
365
|
+
write.current_document =
|
366
366
|
Google::Cloud::Firestore::V1::Precondition.new({
|
367
367
|
exists: exists, update_time: time_to_timestamp(update_time)
|
368
368
|
}.compact)
|
@@ -530,9 +530,9 @@ module Google
|
|
530
530
|
left_hash
|
531
531
|
end
|
532
532
|
|
533
|
-
START_FIELD_PATH_CHARS = /\A[a-zA-Z_]
|
534
|
-
INVALID_FIELD_PATH_CHARS = %r{[~*/\[\]]}
|
535
|
-
ESCAPED_FIELD_PATH = /\A`(.*)`\z
|
533
|
+
START_FIELD_PATH_CHARS = /\A[a-zA-Z_]/
|
534
|
+
INVALID_FIELD_PATH_CHARS = %r{[~*/\[\]]}
|
535
|
+
ESCAPED_FIELD_PATH = /\A`(.*)`\z/
|
536
536
|
|
537
537
|
def build_hash_from_field_paths_and_values pairs
|
538
538
|
pairs.each do |pair|
|
@@ -209,8 +209,8 @@ module Google
|
|
209
209
|
|
210
210
|
protected
|
211
211
|
|
212
|
-
INVALID_FIELD_PATH_CHARS = %r{[~*/\[\]]}
|
213
|
-
SIMPLE_FIELD_PATH_CHARS = /\A[_a-zA-Z][_a-zA-Z0-9]*\Z
|
212
|
+
INVALID_FIELD_PATH_CHARS = %r{[~*/\[\]]}
|
213
|
+
SIMPLE_FIELD_PATH_CHARS = /\A[_a-zA-Z][_a-zA-Z0-9]*\Z/
|
214
214
|
|
215
215
|
def escape_field_for_path field
|
216
216
|
field = String field
|
@@ -493,12 +493,12 @@ module Google
|
|
493
493
|
new_start_at = new_query.end_at.dup
|
494
494
|
if new_end_at
|
495
495
|
new_end_at.before = !new_end_at.before
|
496
|
-
new_query.end_at = new_end_at
|
497
496
|
end
|
498
497
|
if new_start_at
|
499
498
|
new_start_at.before = !new_start_at.before
|
500
|
-
new_query.start_at = new_start_at
|
501
499
|
end
|
500
|
+
new_query.end_at = new_end_at
|
501
|
+
new_query.start_at = new_start_at
|
502
502
|
end
|
503
503
|
|
504
504
|
new_query.limit = Google::Protobuf::Int32Value.new value: num
|
@@ -24,7 +24,7 @@ module Google
|
|
24
24
|
class ResourcePath
|
25
25
|
include Comparable
|
26
26
|
|
27
|
-
RESOURCE_PATH_RE = %r{^projects/([^/]*)/databases/([^/]*)(?:/documents/)?([\s\S]*)$}
|
27
|
+
RESOURCE_PATH_RE = %r{^projects/([^/]*)/databases/([^/]*)(?:/documents/)?([\s\S]*)$}
|
28
28
|
|
29
29
|
attr_reader :project_id
|
30
30
|
attr_reader :database_id
|
@@ -746,11 +746,11 @@ module Google
|
|
746
746
|
##
|
747
747
|
# @private
|
748
748
|
def transaction_opt
|
749
|
-
read_only =
|
749
|
+
read_only =
|
750
750
|
Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly.new \
|
751
751
|
read_time: service.read_time_to_timestamp(@read_time)
|
752
752
|
|
753
|
-
read_write =
|
753
|
+
read_write =
|
754
754
|
Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite.new
|
755
755
|
|
756
756
|
if @previous_transaction
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-firestore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google Inc
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-10 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: bigdecimal
|
@@ -44,34 +43,28 @@ dependencies:
|
|
44
43
|
requirements:
|
45
44
|
- - "~>"
|
46
45
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
46
|
+
version: '1.7'
|
48
47
|
type: :runtime
|
49
48
|
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
53
|
+
version: '1.7'
|
55
54
|
- !ruby/object:Gem::Dependency
|
56
55
|
name: google-cloud-firestore-v1
|
57
56
|
requirement: !ruby/object:Gem::Requirement
|
58
57
|
requirements:
|
59
|
-
- - "
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0.10'
|
62
|
-
- - "<"
|
58
|
+
- - "~>"
|
63
59
|
- !ruby/object:Gem::Version
|
64
|
-
version: 2.
|
60
|
+
version: '2.0'
|
65
61
|
type: :runtime
|
66
62
|
prerelease: false
|
67
63
|
version_requirements: !ruby/object:Gem::Requirement
|
68
64
|
requirements:
|
69
|
-
- - "
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '0.10'
|
72
|
-
- - "<"
|
65
|
+
- - "~>"
|
73
66
|
- !ruby/object:Gem::Version
|
74
|
-
version: 2.
|
67
|
+
version: '2.0'
|
75
68
|
- !ruby/object:Gem::Dependency
|
76
69
|
name: rbtree
|
77
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,7 +141,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-clo
|
|
148
141
|
licenses:
|
149
142
|
- Apache-2.0
|
150
143
|
metadata: {}
|
151
|
-
post_install_message:
|
152
144
|
rdoc_options: []
|
153
145
|
require_paths:
|
154
146
|
- lib
|
@@ -156,15 +148,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
156
148
|
requirements:
|
157
149
|
- - ">="
|
158
150
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
151
|
+
version: '3.0'
|
160
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
153
|
requirements:
|
162
154
|
- - ">="
|
163
155
|
- !ruby/object:Gem::Version
|
164
156
|
version: '0'
|
165
157
|
requirements: []
|
166
|
-
rubygems_version: 3.5
|
167
|
-
signing_key:
|
158
|
+
rubygems_version: 3.6.5
|
168
159
|
specification_version: 4
|
169
160
|
summary: API Client library for Google Cloud Firestore API
|
170
161
|
test_files: []
|