graphql-batch 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/batch/loader.rb +2 -2
- data/lib/graphql/batch/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: 235150e8e0307968c17a84dbfe6e3020ab58f0eb
|
4
|
+
data.tar.gz: c85fa65eb8e23ca836fe1848e9be4e3a5c93fe94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8336eb9099406bd9172fd88c72300d343fbde12133060e3e90efe0ee0a2d5f88dd3e628eb640728dc1b006223592dfe216a9710393208883f1344a438c6461e
|
7
|
+
data.tar.gz: 7241576a1d9f864524dde9ff03362f4a3fe850e198b446f0142e1d29f8c6ccb749adac6eacc5fbe7ce6d710046eb5e2c2b335ba611fdab2fd46a6fafb3f6b247
|
data/lib/graphql/batch/loader.rb
CHANGED
@@ -47,7 +47,7 @@ module GraphQL::Batch
|
|
47
47
|
perform(load_keys)
|
48
48
|
check_for_broken_promises(load_keys)
|
49
49
|
rescue => err
|
50
|
-
reject_pending_promises
|
50
|
+
reject_pending_promises(load_keys, err)
|
51
51
|
end
|
52
52
|
|
53
53
|
# For Promise#sync
|
@@ -115,7 +115,7 @@ module GraphQL::Batch
|
|
115
115
|
cache.fetch(cache_key(load_key))
|
116
116
|
end
|
117
117
|
|
118
|
-
def reject_pending_promises
|
118
|
+
def reject_pending_promises(load_keys, err)
|
119
119
|
load_keys.each do |key|
|
120
120
|
# promise.rb ignores reject if promise isn't pending
|
121
121
|
reject(key, err)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Thacker-Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|