google-cloud-firestore 0.25.0 → 0.25.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +33 -12
- data/CHANGELOG.md +8 -1
- data/lib/google/cloud/firestore/client.rb +4 -4
- data/lib/google/cloud/firestore/collection_reference.rb +1 -1
- data/lib/google/cloud/firestore/document_reference.rb +3 -3
- data/lib/google/cloud/firestore/field_path.rb +5 -4
- data/lib/google/cloud/firestore/generate.rb +1 -1
- data/lib/google/cloud/firestore/query.rb +6 -6
- data/lib/google/cloud/firestore/transaction.rb +5 -5
- data/lib/google/cloud/firestore/v1.rb +1 -1
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/query.rb +5 -5
- data/lib/google/cloud/firestore/v1/doc/google/firestore/v1/write.rb +1 -1
- data/lib/google/cloud/firestore/v1/doc/google/protobuf/any.rb +2 -1
- data/lib/google/cloud/firestore/v1/doc/google/protobuf/timestamp.rb +15 -13
- data/lib/google/cloud/firestore/v1/doc/google/rpc/status.rb +17 -14
- data/lib/google/cloud/firestore/v1/firestore_client.rb +60 -33
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/query.rb +9 -9
- data/lib/google/cloud/firestore/v1beta1/doc/google/firestore/v1beta1/write.rb +1 -1
- data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/any.rb +2 -1
- data/lib/google/cloud/firestore/v1beta1/doc/google/protobuf/timestamp.rb +15 -13
- data/lib/google/cloud/firestore/v1beta1/doc/google/rpc/status.rb +17 -14
- data/lib/google/cloud/firestore/v1beta1/firestore_client.rb +60 -33
- data/lib/google/cloud/firestore/version.rb +1 -1
- data/lib/google/cloud/firestore/watch/enumerator_queue.rb +1 -1
- data/lib/google/cloud/firestore/watch/order.rb +2 -2
- data/lib/google/firestore/v1/common_pb.rb +1 -1
- data/lib/google/firestore/v1/document_pb.rb +1 -1
- data/lib/google/firestore/v1/firestore_services_pb.rb +1 -1
- data/lib/google/firestore/v1/query_pb.rb +5 -5
- data/lib/google/firestore/v1/write_pb.rb +1 -1
- data/lib/google/firestore/v1beta1/common_pb.rb +1 -1
- data/lib/google/firestore/v1beta1/document_pb.rb +1 -1
- data/lib/google/firestore/v1beta1/firestore_services_pb.rb +1 -1
- data/lib/google/firestore/v1beta1/query_pb.rb +5 -5
- data/lib/google/firestore/v1beta1/write_pb.rb +1 -1
- metadata +5 -6
@@ -77,9 +77,9 @@ module Google
|
|
77
77
|
return value if value.is_a? String
|
78
78
|
return value.string if value.is_a? StringIO
|
79
79
|
if value.is_a? DocumentReference
|
80
|
-
return value.path.split
|
80
|
+
return value.path.split "/".freeze
|
81
81
|
end
|
82
|
-
return value.map { |v| field_comparison
|
82
|
+
return value.map { |v| field_comparison v } if value.is_a? Array
|
83
83
|
if value.is_a? Hash
|
84
84
|
geo_pairs = Convert.hash_is_geo_point? value
|
85
85
|
return geo_pairs.map(&:last) if geo_pairs
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.firestore.v1.DocumentMask" do
|
11
11
|
repeated :field_paths, :string, 1
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/protobuf/struct_pb'
|
9
8
|
require 'google/protobuf/timestamp_pb'
|
10
9
|
require 'google/type/latlng_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_message "google.firestore.v1.Document" do
|
13
13
|
optional :name, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/firestore/v1/firestore.proto for package 'google.firestore.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/firestore/v1/document_pb'
|
9
8
|
require 'google/protobuf/wrappers_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_message "google.firestore.v1.StructuredQuery" do
|
12
12
|
optional :select, :message, 1, "google.firestore.v1.StructuredQuery.Projection"
|
@@ -62,13 +62,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
62
62
|
value :IS_NAN, 2
|
63
63
|
value :IS_NULL, 3
|
64
64
|
end
|
65
|
+
add_message "google.firestore.v1.StructuredQuery.FieldReference" do
|
66
|
+
optional :field_path, :string, 2
|
67
|
+
end
|
65
68
|
add_message "google.firestore.v1.StructuredQuery.Order" do
|
66
69
|
optional :field, :message, 1, "google.firestore.v1.StructuredQuery.FieldReference"
|
67
70
|
optional :direction, :enum, 2, "google.firestore.v1.StructuredQuery.Direction"
|
68
71
|
end
|
69
|
-
add_message "google.firestore.v1.StructuredQuery.FieldReference" do
|
70
|
-
optional :field_path, :string, 2
|
71
|
-
end
|
72
72
|
add_message "google.firestore.v1.StructuredQuery.Projection" do
|
73
73
|
repeated :fields, :message, 2, "google.firestore.v1.StructuredQuery.FieldReference"
|
74
74
|
end
|
@@ -95,8 +95,8 @@ module Google
|
|
95
95
|
StructuredQuery::FieldFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldFilter.Operator").enummodule
|
96
96
|
StructuredQuery::UnaryFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter").msgclass
|
97
97
|
StructuredQuery::UnaryFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.UnaryFilter.Operator").enummodule
|
98
|
-
StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
|
99
98
|
StructuredQuery::FieldReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.FieldReference").msgclass
|
99
|
+
StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Order").msgclass
|
100
100
|
StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Projection").msgclass
|
101
101
|
StructuredQuery::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.StructuredQuery.Direction").enummodule
|
102
102
|
Cursor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1.Cursor").msgclass
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/firestore/v1/common_pb'
|
9
8
|
require 'google/firestore/v1/document_pb'
|
10
9
|
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_message "google.firestore.v1.Write" do
|
13
13
|
optional :update_mask, :message, 3, "google.firestore.v1.DocumentMask"
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.firestore.v1beta1.DocumentMask" do
|
11
11
|
repeated :field_paths, :string, 1
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/protobuf/struct_pb'
|
9
8
|
require 'google/protobuf/timestamp_pb'
|
10
9
|
require 'google/type/latlng_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_message "google.firestore.v1beta1.Document" do
|
13
13
|
optional :name, :string, 1
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/firestore/v1beta1/firestore.proto for package 'google.firestore.v1beta1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -4,9 +4,9 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/firestore/v1beta1/document_pb'
|
9
8
|
require 'google/protobuf/wrappers_pb'
|
9
|
+
require 'google/api/annotations_pb'
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_message "google.firestore.v1beta1.StructuredQuery" do
|
12
12
|
optional :select, :message, 1, "google.firestore.v1beta1.StructuredQuery.Projection"
|
@@ -51,6 +51,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
51
51
|
value :EQUAL, 5
|
52
52
|
value :ARRAY_CONTAINS, 7
|
53
53
|
end
|
54
|
+
add_message "google.firestore.v1beta1.StructuredQuery.Projection" do
|
55
|
+
repeated :fields, :message, 2, "google.firestore.v1beta1.StructuredQuery.FieldReference"
|
56
|
+
end
|
54
57
|
add_message "google.firestore.v1beta1.StructuredQuery.UnaryFilter" do
|
55
58
|
optional :op, :enum, 1, "google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator"
|
56
59
|
oneof :operand_type do
|
@@ -69,9 +72,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
69
72
|
add_message "google.firestore.v1beta1.StructuredQuery.FieldReference" do
|
70
73
|
optional :field_path, :string, 2
|
71
74
|
end
|
72
|
-
add_message "google.firestore.v1beta1.StructuredQuery.Projection" do
|
73
|
-
repeated :fields, :message, 2, "google.firestore.v1beta1.StructuredQuery.FieldReference"
|
74
|
-
end
|
75
75
|
add_enum "google.firestore.v1beta1.StructuredQuery.Direction" do
|
76
76
|
value :DIRECTION_UNSPECIFIED, 0
|
77
77
|
value :ASCENDING, 1
|
@@ -93,11 +93,11 @@ module Google
|
|
93
93
|
StructuredQuery::CompositeFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.CompositeFilter.Operator").enummodule
|
94
94
|
StructuredQuery::FieldFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.FieldFilter").msgclass
|
95
95
|
StructuredQuery::FieldFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.FieldFilter.Operator").enummodule
|
96
|
+
StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Projection").msgclass
|
96
97
|
StructuredQuery::UnaryFilter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.UnaryFilter").msgclass
|
97
98
|
StructuredQuery::UnaryFilter::Operator = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.UnaryFilter.Operator").enummodule
|
98
99
|
StructuredQuery::Order = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Order").msgclass
|
99
100
|
StructuredQuery::FieldReference = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.FieldReference").msgclass
|
100
|
-
StructuredQuery::Projection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Projection").msgclass
|
101
101
|
StructuredQuery::Direction = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.StructuredQuery.Direction").enummodule
|
102
102
|
Cursor = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.firestore.v1beta1.Cursor").msgclass
|
103
103
|
end
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/firestore/v1beta1/common_pb'
|
9
8
|
require 'google/firestore/v1beta1/document_pb'
|
10
9
|
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_message "google.firestore.v1beta1.Write" do
|
13
13
|
optional :update_mask, :message, 3, "google.firestore.v1beta1.DocumentMask"
|
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: 0.25.
|
4
|
+
version: 0.25.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: 2019-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -156,14 +156,14 @@ dependencies:
|
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version: 0.
|
159
|
+
version: 0.64.0
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version: 0.
|
166
|
+
version: 0.64.0
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
168
|
name: simplecov
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -307,8 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
307
307
|
- !ruby/object:Gem::Version
|
308
308
|
version: '0'
|
309
309
|
requirements: []
|
310
|
-
|
311
|
-
rubygems_version: 2.7.6
|
310
|
+
rubygems_version: 3.0.3
|
312
311
|
signing_key:
|
313
312
|
specification_version: 4
|
314
313
|
summary: API Client library for Google Cloud Firestore API
|