parse-stack 1.0.2 → 1.0.3

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
  SHA1:
3
- metadata.gz: d998700db2a2b238f7eafeb3e8e9a43c47ec67a0
4
- data.tar.gz: 995a7f6d1ceb7fa9cc862668608d35be76e23228
3
+ metadata.gz: 51e6999d35378d6ca78b0fa9dee414a514399bcf
4
+ data.tar.gz: 69d850f4bcc6dd881ddefe78046b9e28f029eb01
5
5
  SHA512:
6
- metadata.gz: 53670cb96ce060bf43847f656f46cf29e6019f21e8879a253ff630faa525be861c98796475f00fd767c3b7d24f0ab6ceebc8dfddc37e361a795921f5ba8ed6ea
7
- data.tar.gz: 48a4b18295e432cf6f5180ddf6dcac7f87e562d631821dcdfffcba7076325b973dcd9b4fca67e6ed86e6edbddafeb448d8c497dad623dc9b7291f206d584d83c
6
+ metadata.gz: 73838aeea4e18427b0d8ba59dec9dd540f1a2c1f21b12fa53d44902a2027d1d83d79fde141752cb3a41f3fc29d8f713b92d2b2f2f3ef5a1ceca658b095e79a56
7
+ data.tar.gz: c54006ff84b0caaea0c6a31732d666cb52a93de78fc6d5ceb9800cc9f0d0ee9c8edaf5b8c94f80483e0b6b893cec03e53eb0740d60cf4a5310f6b890e9e279b3
data/Changes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Parse-Stack Changes
2
2
 
3
+ 1.0.3
4
+ -----------
5
+ - Fixes minor issue when passing `nil` to the class `find` method.
6
+
3
7
  1.0.2
4
8
  -----------
5
9
  - Fixes internal issue with `operate_field!` method.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parse-stack (1.0.2)
4
+ parse-stack (1.0.3)
5
5
  active_model_serializers (>= 0.9, < 1)
6
6
  activemodel (>= 4, < 5)
7
7
  activesupport (>= 4, < 5)
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Parse
2
2
  module Stack
3
- VERSION = "1.0.2"
3
+ VERSION = "1.0.3"
4
4
  end
5
5
  end
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.2
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-01-29 00:00:00.000000000 Z
12
+ date: 2016-02-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activemodel