google-cloud-firestore 2.7.0 → 2.7.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 82ce640d6adf49f0b7f73b71c446fb23db7bacd6d9cd8347598b7a4a0c5bc76f
4
- data.tar.gz: c81d472495db054a19b0baf395341207087f6de9466e7378ce82f113abbe87c5
3
+ metadata.gz: f45d22f61cfd606f0a800da541058804c823a60d38896e77aac5ca72b01b34f4
4
+ data.tar.gz: 320a237aa81d52be3add1144de0d0bee460eb90786f4ab878e93ad79fd2c862f
5
5
  SHA512:
6
- metadata.gz: a9955e948ab4d0d6a2dbdd4aa214b1babb3a40f9f3b040fe08a97e91aa8ff7c756282698ea385affc5e8f82e25185ed2fb7d269b192062b0181ed0c3dd984c7f
7
- data.tar.gz: 2397f244f4d9a8360d1037538d04aedfa8cea6861f5d64c41672f6ae1201ed530e1d82cb14d1bd03f430c929f00794b6058e490694c3caa314b2697fdd331dd8
6
+ metadata.gz: d56c986ef8914c7b486d5c4877e4fdd681051b2203332f9a83278365826438353df177a3fb4a80bb9a11b8c33b6b190dd97e475c1de2273d11f759e01f2d7daa
7
+ data.tar.gz: b2916ce31ded50b667377bbc397356153cffeeff1a8c3f4ef71426211f5c1ed9ffe5ab53a319355d9ecbccf5079e1dd0617bc11e1c42f2009d1444d19ee840e1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release History
2
2
 
3
+ ### 2.7.1 (2022-07-15)
4
+
5
+ #### Bug Fixes
6
+
7
+ * Fix a regression in fields conversion ([#18833](https://github.com/googleapis/google-cloud-ruby/issues/18833))
8
+ #### Documentation
9
+
10
+ * Fix typo in data model reference ([#18835](https://github.com/googleapis/google-cloud-ruby/issues/18835))
11
+
3
12
  ### 2.7.0 (2022-07-02)
4
13
 
5
14
  #### Features
data/OVERVIEW.md CHANGED
@@ -108,7 +108,7 @@ and it can't contain other collections. You do not need to "create" or "delete"
108
108
  collections. After you create the first document in a collection, the collection
109
109
  exists. If you delete all of the documents in a collection, it no longer exists.
110
110
  (For more information, see [Cloud Firestore Data
111
- Model](https://cloud.google.com/firestore/docs/data-model).
111
+ Model](https://cloud.google.com/firestore/docs/data-model).)
112
112
 
113
113
  Use {Google::Cloud::Firestore::Client#cols Client#cols} to list the root-level
114
114
  collections:
@@ -50,9 +50,12 @@ module Google
50
50
  end
51
51
 
52
52
  def fields_to_hash fields, client
53
- fields.to_h do |key, value|
54
- [key.to_sym, value_to_raw(value, client)]
55
- end
53
+ # Google::Protobuf::Map#to_h ignores the given block, unlike Hash#to_h
54
+ # rubocop:disable Style/MapToHash
55
+ fields
56
+ .map { |key, value| [key.to_sym, value_to_raw(value, client)] }
57
+ .to_h
58
+ # rubocop:enable Style/MapToHash
56
59
  end
57
60
 
58
61
  def hash_to_fields hash
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Firestore
19
- VERSION = "2.7.0".freeze
19
+ VERSION = "2.7.1".freeze
20
20
  end
21
21
  end
22
22
  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.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-02 00:00:00.000000000 Z
11
+ date: 2022-07-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core