graphql-activerecord 0.8.0 → 0.9.0
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/CHANGELOG.md +6 -0
- data/graphql-activerecord.gemspec +1 -1
- data/lib/graphql/activerecord.rb +0 -1
- data/lib/graphql/models/monkey_patches/graphql_query_context.rb +6 -0
- data/lib/graphql/models/version.rb +1 -1
- metadata +10 -5
- data/lib/graphql/models/monkey_patches/graphql_schema_middleware_chain.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70988fb9de29f5357e4247ea1e4eafb5b58025d9
|
4
|
+
data.tar.gz: d8eeaab546711b664003a051fa33d733cc5a6e85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8813510d8b4a2fd32367abd1b76eb51cf321ab995de9c9923cd3368b5350df6947fec3d5aa7aadc3ef7fe4f55dc4d85f44041e720243f4a618a3a1465c293637
|
7
|
+
data.tar.gz: a16ba42da0662d229b26f767aeb0cb81fa7cc2522887832ecd2eb3f7e333f9b6307b121572d6c72fbf1ed511958850075057dd8317ffefc68f48c80370621af3
|
data/CHANGELOG.md
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "activesupport", ">= 4.2", '< 5'
|
23
23
|
spec.add_runtime_dependency "activerecord", ">= 4.2", '< 5'
|
24
|
-
spec.add_runtime_dependency "graphql", ">=
|
24
|
+
spec.add_runtime_dependency "graphql", ">= 1.2.1", '< 2'
|
25
25
|
spec.add_runtime_dependency "graphql-batch", ">= 0.2.4"
|
26
26
|
|
27
27
|
spec.add_development_dependency "bundler", "~> 1.11"
|
data/lib/graphql/activerecord.rb
CHANGED
@@ -5,7 +5,6 @@ require 'graphql/batch'
|
|
5
5
|
require 'graphql/relay'
|
6
6
|
|
7
7
|
require 'graphql/models/monkey_patches/graphql_query_context'
|
8
|
-
require 'graphql/models/monkey_patches/graphql_schema_middleware_chain'
|
9
8
|
require 'graphql/models/active_record_extension'
|
10
9
|
require 'graphql/models/middleware'
|
11
10
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Foster
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -56,14 +56,20 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 1.2.1
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2'
|
60
63
|
type: :runtime
|
61
64
|
prerelease: false
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
63
66
|
requirements:
|
64
67
|
- - ">="
|
65
68
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
69
|
+
version: 1.2.1
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '2'
|
67
73
|
- !ruby/object:Gem::Dependency
|
68
74
|
name: graphql-batch
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,7 +184,6 @@ files:
|
|
178
184
|
- lib/graphql/models/helpers.rb
|
179
185
|
- lib/graphql/models/middleware.rb
|
180
186
|
- lib/graphql/models/monkey_patches/graphql_query_context.rb
|
181
|
-
- lib/graphql/models/monkey_patches/graphql_schema_middleware_chain.rb
|
182
187
|
- lib/graphql/models/mutation_field_map.rb
|
183
188
|
- lib/graphql/models/mutation_helpers/apply_changes.rb
|
184
189
|
- lib/graphql/models/mutation_helpers/authorization.rb
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Monkey patch... there will soon be a PR in graphql-ruby for this functionality,
|
2
|
-
# Talked with the gem author (@rmosolgo) and he said it was a good feature, so likely to land soon
|
3
|
-
class GraphQL::Schema::MiddlewareChain
|
4
|
-
def call(next_arguments = @arguments)
|
5
|
-
@arguments = next_arguments
|
6
|
-
next_step = steps.shift
|
7
|
-
next_middleware = self
|
8
|
-
next_step.call(*arguments, next_middleware)
|
9
|
-
end
|
10
|
-
end
|