graphql-batch 0.5.1 → 0.5.2

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
  SHA256:
3
- metadata.gz: 47a1830934c614913132268636ef825fd7df42865c3b1d4dde4a605b29591627
4
- data.tar.gz: cd8ae5dcee54e53bb6b1b496b76387dede14bd0079bac9615b297a2a9d7aa269
3
+ metadata.gz: cadb2aa4640e2a2a7315b4a201ac2cee587d6696d49a6afe217850c710049b23
4
+ data.tar.gz: 22e8303ce284034b08d3c89af261c9ca82b9f9d18f4e6d2b768ff2448e544f75
5
5
  SHA512:
6
- metadata.gz: 0146b5ab9acb4d952215a4ab443b4ccd4d4fbc33a5b7502a53f5ca9598be66d25f10480cf127a9871ef957a3a2ba51d9b65db096161bdd6a8b6d6fbf4d4e7cca
7
- data.tar.gz: 62d35a163c8e244943324d704f3a273d26b95df88624fbab98159f46ef725318ca3a21c7b58f909c97fc565d3638e2befca02e6cc766cd80439deaf7c93a6df1
6
+ metadata.gz: 7c17ca80df3d0433a290ebbab09dfcac5800a2eaebed9f89d5e44fb1aee098a7d5af44607e8e6a53970e457b8734ce52a176335c542a93e4f6a80e9ddbc9a2ff
7
+ data.tar.gz: 262b06ce514d5028334fbf2557b7810137526d9f7dacae5e53acd2e0602dec19c6385b7f7c9f7574f2905c46d5f10df53b81b2e7c82c078642de40225eb47f3f
@@ -44,6 +44,13 @@ module GraphQL::Batch
44
44
 
45
45
  attr_accessor :loader_key, :executor
46
46
 
47
+ def initialize
48
+ @loader_key = nil
49
+ @executor = nil
50
+ @queue = nil
51
+ @cache = nil
52
+ end
53
+
47
54
  def load(key)
48
55
  cache[cache_key(key)] ||= begin
49
56
  queue << key
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Batch
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
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.5.1
4
+ version: 0.5.2
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: 2022-02-25 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  - !ruby/object:Gem::Version
137
137
  version: '0'
138
138
  requirements: []
139
- rubygems_version: 3.2.20
139
+ rubygems_version: 3.3.3
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A query batching executor for the graphql gem