google-cloud-firestore 2.6.0 → 2.6.2
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 +12 -0
- data/lib/google/cloud/firestore/field_path.rb +3 -7
- data/lib/google/cloud/firestore/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 51025089f3e6c639d79f28dd536baf2d879233250fced0a8cda7a2c0fe16e9cd
|
|
4
|
+
data.tar.gz: e93e7a44cebf91f11c7b9c93d73d0bb63db718af6d108e3563006ee49872c8be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ce514ce05e63d63ff9ffaa1a6adcb065f63315a87f3a8b6a8556761de9d962754b4b7433bcc8c543be2325b46f0401d8f858cce4ce3b100ef1d66cbbe15c342
|
|
7
|
+
data.tar.gz: 00017f0d65b023e17bed35a0d55b9548cc44f1f78bb87c1e5f888544675956f434de40ff5e8d7f808845b7c959ef96763e118f221cebb8facbc7c1ea52018544
|
data/AUTHENTICATION.md
CHANGED
|
@@ -95,7 +95,8 @@ client = Google::Cloud::Firestore.new
|
|
|
95
95
|
|
|
96
96
|
### Configuration
|
|
97
97
|
|
|
98
|
-
The **Project ID** and **Credentials JSON** can be configured
|
|
98
|
+
The **Project ID** and the path to the **Credentials JSON** file can be configured
|
|
99
|
+
instead of placing them in environment variables or providing them as arguments.
|
|
99
100
|
|
|
100
101
|
```ruby
|
|
101
102
|
require "google/cloud/firestore"
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 2.6.2 / 2021-07-26
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Update FieldPath#formatted_string to correctly escape non-simple characters
|
|
8
|
+
|
|
9
|
+
### 2.6.1 / 2021-07-08
|
|
10
|
+
|
|
11
|
+
#### Documentation
|
|
12
|
+
|
|
13
|
+
* Update AUTHENTICATION.md in handwritten packages
|
|
14
|
+
|
|
3
15
|
### 2.6.0 / 2021-06-15
|
|
4
16
|
|
|
5
17
|
#### Features
|
|
@@ -209,19 +209,15 @@ module Google
|
|
|
209
209
|
|
|
210
210
|
protected
|
|
211
211
|
|
|
212
|
-
START_FIELD_PATH_CHARS = /\A[a-zA-Z_]/.freeze
|
|
213
212
|
INVALID_FIELD_PATH_CHARS = %r{[~*/\[\]]}.freeze
|
|
213
|
+
SIMPLE_FIELD_PATH_CHARS = /\A[_a-zA-Z][_a-zA-Z0-9]*\Z/.freeze
|
|
214
214
|
|
|
215
215
|
def escape_field_for_path field
|
|
216
216
|
field = String field
|
|
217
217
|
|
|
218
|
-
if
|
|
219
|
-
field["."] || field["`"] || field["\\"]
|
|
220
|
-
escaped_field = field.gsub(/[`\\]/, "`" => "\\\`", "\\" => "\\\\")
|
|
221
|
-
return "`#{escaped_field}`"
|
|
222
|
-
end
|
|
218
|
+
return field if SIMPLE_FIELD_PATH_CHARS.match field
|
|
223
219
|
|
|
224
|
-
|
|
220
|
+
field = field.gsub(/[`\\]/, "`" => "\\`", "\\" => "\\\\")
|
|
225
221
|
|
|
226
222
|
"`#{field}`"
|
|
227
223
|
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.6.
|
|
4
|
+
version: 2.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google Inc
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|