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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d459ffa3cad4df54bc36547ef5dcc0b6f3ecf8fd
4
- data.tar.gz: e166361d06b235a13e34c843d682d1153124b1c4
3
+ metadata.gz: 235150e8e0307968c17a84dbfe6e3020ab58f0eb
4
+ data.tar.gz: c85fa65eb8e23ca836fe1848e9be4e3a5c93fe94
5
5
  SHA512:
6
- metadata.gz: f00c79b9623279179dbf000d54f1133ed0b65a73757f9c469c3643d6d64cf06139017e0eb919797368eb2f10fef252f0d4b9a1285202dce37ab0c8e767c4e3c6
7
- data.tar.gz: b3bd7dcf7ce3d4a653f5bc46dc4ea0a4a53774be63124c7a4d94211a5af8912ef44f3801576750d7408f77422cebde292ddc1b9a02b4ad4853fb3eb6fc2be907
6
+ metadata.gz: f8336eb9099406bd9172fd88c72300d343fbde12133060e3e90efe0ee0a2d5f88dd3e628eb640728dc1b006223592dfe216a9710393208883f1344a438c6461e
7
+ data.tar.gz: 7241576a1d9f864524dde9ff03362f4a3fe850e198b446f0142e1d29f8c6ccb749adac6eacc5fbe7ce6d710046eb5e2c2b335ba611fdab2fd46a6fafb3f6b247
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Batch
3
- VERSION = "0.3.7"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
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.7
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-09 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql