graphql-parallel 0.2.0 → 0.2.1
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 +4 -4
- data/README.md +1 -1
- data/lib/graphql/parallel/execution_strategy.rb +1 -10
- data/lib/graphql/parallel/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: 9fd6c7d63866d8836f321891ec39346a7dd3e6c8
|
|
4
|
+
data.tar.gz: 631f9990f0f5e06612040a28207634b30a2ba3bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: db23b51a493acc332e9f2e2c96551fe8ea96b0b6578eeed5c3344460a42973dd1b38001386e871cd0979fd257cb20eb22915a812e468576b4c64be5212a2d531
|
|
7
|
+
data.tar.gz: 2da328cb35d1bbfd243a9aa9e77c6135dd760b596a05787261ac78c9887b130657bb797db00c5ee5104a1fb480167605c11d3bb4635d9348723a9599b6b9b233
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.org/rmosolgo/graphql-parallel)
|
|
4
4
|
|
|
5
|
-
Provides one layer of asynchronous field resolution to the [`graphql` gem](https://github.com/rmosolgo/graphql-ruby), backed Celluloid.
|
|
5
|
+
Provides one layer of asynchronous field resolution to the [`graphql` gem](https://github.com/rmosolgo/graphql-ruby), backed by Celluloid.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module GraphQL
|
|
2
2
|
module Parallel
|
|
3
|
-
class ExecutionStrategy < GraphQL::Query::
|
|
3
|
+
class ExecutionStrategy < GraphQL::Query::SerialExecution
|
|
4
4
|
def initialize
|
|
5
5
|
# Why isn't `require "celluloid/current"` enough here?
|
|
6
6
|
Celluloid.boot unless Celluloid.running?
|
|
@@ -55,9 +55,6 @@ module GraphQL
|
|
|
55
55
|
end
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
-
class SelectionResolution < GraphQL::Query::SerialExecution::SelectionResolution
|
|
59
|
-
end
|
|
60
|
-
|
|
61
58
|
class FieldResolution < GraphQL::Query::SerialExecution::FieldResolution
|
|
62
59
|
def get_finished_value(raw_value)
|
|
63
60
|
if raw_value.is_a?(Celluloid::Future)
|
|
@@ -67,12 +64,6 @@ module GraphQL
|
|
|
67
64
|
end
|
|
68
65
|
end
|
|
69
66
|
end
|
|
70
|
-
|
|
71
|
-
class InlineFragmentResolution < GraphQL::Query::SerialExecution::InlineFragmentResolution
|
|
72
|
-
end
|
|
73
|
-
|
|
74
|
-
class FragmentSpreadResolution < GraphQL::Query::SerialExecution::FragmentSpreadResolution
|
|
75
|
-
end
|
|
76
67
|
end
|
|
77
68
|
end
|
|
78
69
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: graphql-parallel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Robert Mosolgo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-09-
|
|
11
|
+
date: 2015-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|