parse-stack 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changes.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/parse/model/core/querying.rb +2 -0
- data/lib/parse/stack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51e6999d35378d6ca78b0fa9dee414a514399bcf
|
4
|
+
data.tar.gz: 69d850f4bcc6dd881ddefe78046b9e28f029eb01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73838aeea4e18427b0d8ba59dec9dd540f1a2c1f21b12fa53d44902a2027d1d83d79fde141752cb3a41f3fc29d8f713b92d2b2f2f3ef5a1ceca658b095e79a56
|
7
|
+
data.tar.gz: c54006ff84b0caaea0c6a31732d666cb52a93de78fc6d5ceb9800cc9f0d0ee9c8edaf5b8c94f80483e0b6b893cec03e53eb0740d60cf4a5310f6b890e9e279b3
|
data/Changes.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -68,6 +68,7 @@ module Parse
|
|
68
68
|
def find(*parse_ids, type: :parallel, compact: true)
|
69
69
|
# flatten the list of Object ids.
|
70
70
|
parse_ids.flatten!
|
71
|
+
parse_ids.compact!
|
71
72
|
# determines if the result back to the call site is an array or a single result
|
72
73
|
as_array = parse_ids.count > 1
|
73
74
|
results = []
|
@@ -81,6 +82,7 @@ module Parse
|
|
81
82
|
# which is better than Query request (table scan). This in turn allows for caching of
|
82
83
|
# individual objects.
|
83
84
|
results = parse_ids.threaded_map do |parse_id|
|
85
|
+
next nil unless parse_id.present?
|
84
86
|
response = client.fetch_object(parse_class, parse_id)
|
85
87
|
next nil if response.error?
|
86
88
|
Parse::Object.build response.result, parse_class
|
data/lib/parse/stack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: parse-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anthony Persaud
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activemodel
|