graphql 2.1.8 → 2.1.9

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: 5171a9a622fedcee350cbb3edff60fa524d000aa88e3bab802de59089d46d00f
4
- data.tar.gz: 4d111262bacb8a687a1c2113de7f065af18b3e9153f19c87341d10cd14aeda34
3
+ metadata.gz: 85210767fa6162b49189f17ff57be701393a99cc19b78750b6a47004a66d7310
4
+ data.tar.gz: 4ae9769770245ed92151e4779698ef280c1f22b4d39167c41a5d1ecd337da771
5
5
  SHA512:
6
- metadata.gz: 23d10d5146a5ba2ef8092e75197d932e23a30f2763354bd0114c37b1c9fba25c757a3a78bd3ae789a47c9317c02b5e3654a47064bcb42dd750464228f29b97c5
7
- data.tar.gz: 13863ed6840cf38f52cb81b6c90539bacc0a76f3aea96cc86f69aeed397306bee1aaa48c760f4c17e39074f9d3c588338aff7887450bd6c792b0d6911b3af59c
6
+ metadata.gz: 1352340c9daf585df4eac26079530aa1b53f2fca54286505d2884620e0c245178ec2d28435764cf90ec9fb9f2beb4865c7e3a2a457e1db6b74949c600a951bcf
7
+ data.tar.gz: 2f4145975d6c8e61db4a48a92f0bc676a953c59b180ec2fc9f0b4c7a572ae4b4ac214cc6edbc95e2bfa953a0e2bf29bb73da770efcafabe696b4df2fbbb0f4fc
@@ -178,36 +178,35 @@ module GraphQL
178
178
  source_fibers = []
179
179
  next_source_fibers = []
180
180
  first_pass = true
181
- manager = spawn_fiber do
182
- while first_pass || job_fibers.any?
183
- first_pass = false
184
181
 
185
- while (f = job_fibers.shift || spawn_job_fiber)
186
- if f.alive?
187
- finished = run_fiber(f)
188
- if !finished
189
- next_job_fibers << f
190
- end
191
- end
182
+ while first_pass || job_fibers.any?
183
+ first_pass = false
184
+
185
+ while (f = job_fibers.shift || spawn_job_fiber)
186
+ if f.alive?
187
+ run_fiber(f)
188
+ next_job_fibers << f
192
189
  end
193
- join_queues(job_fibers, next_job_fibers)
190
+ end
191
+ join_queues(job_fibers, next_job_fibers)
194
192
 
195
- while source_fibers.any? || @source_cache.each_value.any? { |group_sources| group_sources.each_value.any?(&:pending?) }
196
- while (f = source_fibers.shift || spawn_source_fiber)
197
- if f.alive?
198
- finished = run_fiber(f)
199
- if !finished
200
- next_source_fibers << f
201
- end
202
- end
193
+ while source_fibers.any? || @source_cache.each_value.any? { |group_sources| group_sources.each_value.any?(&:pending?) }
194
+ while (f = source_fibers.shift || spawn_source_fiber)
195
+ if f.alive?
196
+ run_fiber(f)
197
+ next_source_fibers << f
203
198
  end
204
- join_queues(source_fibers, next_source_fibers)
205
199
  end
206
-
200
+ join_queues(source_fibers, next_source_fibers)
207
201
  end
208
202
  end
209
203
 
210
- run_fiber(manager)
204
+ if job_fibers.any?
205
+ raise "Invariant: job fibers should have exited but #{job_fibers.size} remained"
206
+ end
207
+ if source_fibers.any?
208
+ raise "Invariant: source fibers should have exited but #{source_fibers.size} remained"
209
+ end
211
210
 
212
211
  rescue UncaughtThrowError => e
213
212
  throw e.tag, e.value
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "2.1.8"
3
+ VERSION = "2.1.9"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.8
4
+ version: 2.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-18 00:00:00.000000000 Z
11
+ date: 2023-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: racc