google-cloud-firestore 2.14.0 → 2.15.0

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: 9ff9b426ba1d870f0620a434f5e826f81cd878b09fa9aad5838d97245974b23c
4
- data.tar.gz: 9f798211b2b5252f9992f1bf1f8c413cfd99154ee656c1b9d8e72ec6945fbc64
3
+ metadata.gz: 16163a09797c60820b760bb85283dc3ab8532aacc329dbdf0e8672ab7b8e4066
4
+ data.tar.gz: a502101923eaeffb2b8ca9112134ffc14e8971970509cb9f34e5263c5889a791
5
5
  SHA512:
6
- metadata.gz: 587f4928f11528d167b2f6649a1be0b43b29c109192c200c8825315e506671321345a4bd0880652be59d44ab3349dce5ea30dd84921a10d973539e9c67dfd691
7
- data.tar.gz: 8df7d3795cc14f938b883877ee78940e2a0935b5494f799216676814533b2b77d35c66806a1677ada54a7430ed3868ce8be9b423a75dab7d60ea9b5444430040
6
+ metadata.gz: 06e1cb717e9ccdb4560f66d38af4845610aaed131557956d5dea7c86a97169c7f7af979e956ef53a7ac3ce36f19ade87c3a00a7f568bcdc2ea82aaf77dfafb77
7
+ data.tar.gz: 388eb390a647550643bdce6c1a0b57bcb98fa9ad63fdb24808971dafeac3342ac6a0943bc86103d892b9a4e572746ec01ddf167f9629ff29df768bedcc606c59
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 2.15.0 (2024-03-07)
4
+
5
+ #### Features
6
+
7
+ * Update minimum supported Ruby version to 2.7 ([#25298](https://github.com/googleapis/google-cloud-ruby/issues/25298))
8
+
3
9
  ### 2.14.0 (2024-01-31)
4
10
 
5
11
  #### Features
@@ -207,7 +207,7 @@ module Google
207
207
  ##
208
208
  # @private
209
209
  def start new_aggregate
210
- combined_aggregates = [].concat(grpc.aggregations).concat([new_aggregate])
210
+ combined_aggregates = [].concat(grpc.aggregations).push(new_aggregate)
211
211
  new_grpc = Google::Cloud::Firestore::V1::StructuredAggregationQuery.new(
212
212
  structured_query: @query.query,
213
213
  aggregations: combined_aggregates
@@ -381,12 +381,12 @@ module Google
381
381
  return val if val
382
382
  end
383
383
  when Hash
384
- obj.each do |_k, v|
384
+ obj.each_value do |v|
385
385
  val = field_value_nested? v, field_value_type
386
386
  return val if val
387
387
  end
388
388
  end
389
- nil
389
+ nil # rubocop:disable Style/ReturnNilInPredicateMethodDefinition
390
390
  end
391
391
 
392
392
  def remove_field_value_from obj, field_value_type = nil
@@ -535,13 +535,13 @@ module Google
535
535
  ESCAPED_FIELD_PATH = /\A`(.*)`\z/.freeze
536
536
 
537
537
  def build_hash_from_field_paths_and_values pairs
538
- pairs.each do |field_path, _value|
539
- raise ArgumentError unless field_path.is_a? FieldPath
538
+ pairs.each do |pair|
539
+ raise ArgumentError unless pair.first.is_a? FieldPath
540
540
  end
541
541
 
542
542
  dup_hash = {}
543
543
 
544
- pairs.each do |field_path, value|
544
+ pairs.each do |(field_path, value)|
545
545
  tmp_dup = dup_hash
546
546
  last_field = nil
547
547
  field_path.fields.map(&:to_sym).each do |field|
@@ -318,7 +318,7 @@ module Google
318
318
  ##
319
319
  # @private
320
320
  def eql? other
321
- return nil unless other.is_a? DocumentSnapshot
321
+ return false unless other.is_a? DocumentSnapshot
322
322
  return data.eql? other.data if path == other.path
323
323
  path.eql? other.path
324
324
  end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Firestore
19
- VERSION = "2.14.0".freeze
19
+ VERSION = "2.15.0".freeze
20
20
  end
21
21
  end
22
22
  end
@@ -84,7 +84,7 @@ module Google
84
84
  transport: nil,
85
85
  project: nil,
86
86
  keyfile: nil
87
- project_id ||= (project || default_project_id)
87
+ project_id ||= project || default_project_id
88
88
  scope ||= configure.scope
89
89
  timeout ||= configure.timeout
90
90
  endpoint ||= configure.endpoint
@@ -101,7 +101,7 @@ module Google
101
101
  return Firestore::Client.new service
102
102
  end
103
103
 
104
- credentials ||= (keyfile || default_credentials(scope: scope))
104
+ credentials ||= keyfile || default_credentials(scope: scope)
105
105
  unless credentials.is_a? Google::Auth::Credentials
106
106
  credentials = Firestore::Credentials.new credentials, scope: scope
107
107
  end
@@ -74,9 +74,10 @@ module Google
74
74
  database_id: nil,
75
75
  transport: nil
76
76
  transport ||= Google::Cloud.configure.firestore.transport
77
+ timeout ||= @timeout
77
78
  Google::Cloud.firestore @project, @keyfile,
78
79
  scope: scope,
79
- timeout: (timeout || @timeout),
80
+ timeout: timeout,
80
81
  database_id: database_id,
81
82
  transport: transport
82
83
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-firestore
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.0
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-31 00:00:00.000000000 Z
11
+ date: 2024-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -66,146 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.4.2
69
- - !ruby/object:Gem::Dependency
70
- name: google-style
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 1.26.1
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 1.26.1
83
- - !ruby/object:Gem::Dependency
84
- name: minitest
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '5.16'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '5.16'
97
- - !ruby/object:Gem::Dependency
98
- name: minitest-autotest
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.0'
111
- - !ruby/object:Gem::Dependency
112
- name: minitest-focus
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.1'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.1'
125
- - !ruby/object:Gem::Dependency
126
- name: minitest-rg
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '5.2'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '5.2'
139
- - !ruby/object:Gem::Dependency
140
- name: autotest-suffix
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '1.1'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '1.1'
153
- - !ruby/object:Gem::Dependency
154
- name: redcarpet
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '3.0'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '3.0'
167
- - !ruby/object:Gem::Dependency
168
- name: simplecov
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '0.9'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '0.9'
181
- - !ruby/object:Gem::Dependency
182
- name: yard
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '0.9'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '0.9'
195
- - !ruby/object:Gem::Dependency
196
- name: yard-doctest
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: 0.1.13
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: 0.1.13
209
69
  description: google-cloud-firestore is the official library for Google Cloud Firestore
210
70
  API.
211
71
  email: googleapis-packages@google.com
@@ -276,14 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
136
  requirements:
277
137
  - - ">="
278
138
  - !ruby/object:Gem::Version
279
- version: '2.6'
139
+ version: '2.7'
280
140
  required_rubygems_version: !ruby/object:Gem::Requirement
281
141
  requirements:
282
142
  - - ">="
283
143
  - !ruby/object:Gem::Version
284
144
  version: '0'
285
145
  requirements: []
286
- rubygems_version: 3.5.3
146
+ rubygems_version: 3.5.6
287
147
  signing_key:
288
148
  specification_version: 4
289
149
  summary: API Client library for Google Cloud Firestore API