graphql-activerecord 0.8.0 → 0.9.0

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: 6cc30cdefc71e9c7880e6f49ed3a4817f69ab3ca
4
- data.tar.gz: 25d052ad19f4b048ab4498afadf0c4472b1ec974
3
+ metadata.gz: 70988fb9de29f5357e4247ea1e4eafb5b58025d9
4
+ data.tar.gz: d8eeaab546711b664003a051fa33d733cc5a6e85
5
5
  SHA512:
6
- metadata.gz: e5722b4fa3cd5a4dc07b868569e37213ba0c8552b5a17057c7859423c2ca8c9ad846796b6efa04f4bf98ec616d21f3bde880234a3655fd6b4f68ba0dd63b698f
7
- data.tar.gz: 3c9ef697f0f9f16db19b80eb9bcdfeda3ad71bb46371cb497875b48a3bbdc8da159c6ef15f58e5bf612d7684d68ceea5dd58dbd7c23c7d8eb05fcbd7c091dfd1
6
+ metadata.gz: 8813510d8b4a2fd32367abd1b76eb51cf321ab995de9c9923cd3368b5350df6947fec3d5aa7aadc3ef7fe4f55dc4d85f44041e720243f4a618a3a1465c293637
7
+ data.tar.gz: a16ba42da0662d229b26f767aeb0cb81fa7cc2522887832ecd2eb3f7e333f9b6307b121572d6c72fbf1ed511958850075057dd8317ffefc68f48c80370621af3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0
4
+ - Support for graphql version 1.2.1 and higher, but it no longer works with 0.x versions
5
+
6
+ ## 0.8.0
7
+ - Updated runtime dependency requirements
8
+
3
9
  ## 0.7.2
4
10
 
5
11
  ### Breaking Changes
@@ -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", ">= 0.18.4"
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"
@@ -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
 
@@ -3,3 +3,9 @@ class GraphQL::Query::Context
3
3
  @cached_models ||= Set.new
4
4
  end
5
5
  end
6
+
7
+ class GraphQL::Query::Context::FieldResolutionContext
8
+ def cached_models
9
+ @context.cached_models
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module GraphQL
2
2
  module Models
3
- VERSION = "0.8.0"
3
+ VERSION = "0.9.0"
4
4
  end
5
5
  end
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.8.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-09-30 00:00:00.000000000 Z
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: 0.18.4
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: 0.18.4
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