graphql-fragment_cache 1.12.0 → 1.13.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
  SHA256:
3
- metadata.gz: fb58b8735fa1b7a92dae359467252e366bf34da888f46ef98db0737db7b6dfc4
4
- data.tar.gz: 037dd3a8c61ed1f359b50d6ae0e4ae7f169d825fb5c6da8cf0ee8968c6e1b9b4
3
+ metadata.gz: af4f8899ace77b66aaabd9af9292de07a40d2384ef8db4a24394e75bdd4be78d
4
+ data.tar.gz: 21b141a16d460b4d1b8b6cf1146e54898a87c45b4f670aa0ab6cbaac78dc48d3
5
5
  SHA512:
6
- metadata.gz: 6eef1102518837f505b077f515b7a6e38a6e37993f072921193e30a2a877aec2e67899e8d256b23738cabda2bddf7a8e99967743c14b504afcedd389e2d23734
7
- data.tar.gz: cb110783f67fb0674065fae17ff860e6c2a81a2fde04f5800634c689f2a1bcf01a54d5183e0ffbf5359d709a9b5493d967be39809abccf91fb5701b00eac7f7f
6
+ metadata.gz: 6af77b269f6712c5c39983a796c0f109d6098297de2ad2c2fd87b5f4b8c0e53f9b71d14a2d6e7d8eb0ec1f03c55f43f84f766cdc4663bcf0cd8c7c1148fef506
7
+ data.tar.gz: e396f56ee9182d1147662fb484264ead58ea34efb867a9c6be9d1d018b94f9fb69089b981cb510c693ecd142a9c1fc20280d34c26bab71d9dc40af45d471944b
data/CHANGELOG.md CHANGED
@@ -2,9 +2,16 @@
2
2
 
3
3
  ## master
4
4
 
5
- ## 1.11.0 (2022-02-26)
5
+ ## 1.13.0 (2022-09-12)
6
+
7
+ - [PR#83](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/83) Update Lookahead usage to support graphql-2.0.14 ([@DmitryTsepelev][])
8
+
9
+ ## 1.12.0 (2022-08-05)
6
10
 
7
11
  - [PR#70](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/70), [PR#82](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/82) Add #read_multi for fragments ([@daukadolt][], [@frostmark][])
12
+
13
+ ## 1.11.0 (2022-02-26)
14
+
8
15
  - [PR#79](https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/pull/79) Support graphql-ruby 2.0.0 ([@DmitryTsepelev][])
9
16
 
10
17
  ## 1.10.0 (2022-01-30)
@@ -76,7 +76,11 @@ module GraphQL
76
76
  arguments = arguments.is_a?(::GraphQL::Execution::Interpreter::Arguments) ? arguments.keyword_arguments : arguments
77
77
  @ast_nodes.each do |ast_node|
78
78
  ast_node.selections.each do |selection|
79
- find_selected_nodes(selection, next_field_name, next_field_defn, arguments: arguments, matches: next_nodes)
79
+ if GraphQL::FragmentCache.graphql_ruby_after_2_0_13?
80
+ find_selected_nodes(selection, next_field_defn, arguments: arguments, matches: next_nodes)
81
+ else
82
+ find_selected_nodes(selection, next_field_name, next_field_defn, arguments: arguments, matches: next_nodes)
83
+ end
80
84
  end
81
85
  end
82
86
 
@@ -76,7 +76,11 @@ module GraphQL
76
76
  arguments = arguments.is_a?(::GraphQL::Execution::Interpreter::Arguments) ? arguments.keyword_arguments : arguments
77
77
  @ast_nodes.each do |ast_node|
78
78
  ast_node.selections.each do |selection|
79
- find_selected_nodes(selection, next_field_name, next_field_defn, arguments: arguments, matches: next_nodes)
79
+ if GraphQL::FragmentCache.graphql_ruby_after_2_0_13?
80
+ find_selected_nodes(selection, next_field_defn, arguments: arguments, matches: next_nodes)
81
+ else
82
+ find_selected_nodes(selection, next_field_name, next_field_defn, arguments: arguments, matches: next_nodes)
83
+ end
80
84
  end
81
85
  end
82
86
 
@@ -76,7 +76,11 @@ module GraphQL
76
76
  arguments = arguments.is_a?(::GraphQL::Execution::Interpreter::Arguments) ? arguments.keyword_arguments : arguments
77
77
  @ast_nodes.each do |ast_node|
78
78
  ast_node.selections.each do |selection|
79
- find_selected_nodes(selection, next_field_name, next_field_defn, arguments: arguments, matches: next_nodes)
79
+ if GraphQL::FragmentCache.graphql_ruby_after_2_0_13?
80
+ find_selected_nodes(selection, next_field_defn, arguments: arguments, matches: next_nodes)
81
+ else
82
+ find_selected_nodes(selection, next_field_name, next_field_defn, arguments: arguments, matches: next_nodes)
83
+ end
80
84
  end
81
85
  end
82
86
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module FragmentCache
5
- VERSION = "1.12.0"
5
+ VERSION = "1.13.0"
6
6
  end
7
7
  end
@@ -53,11 +53,19 @@ module GraphQL
53
53
  end
54
54
 
55
55
  def graphql_ruby_before_2_0?
56
- Gem::Dependency.new("graphql", "< 2.0.0").match?("graphql", GraphQL::VERSION)
56
+ check_graphql_version "< 2.0.0"
57
+ end
58
+
59
+ def graphql_ruby_after_2_0_13?
60
+ check_graphql_version "> 2.0.13"
57
61
  end
58
62
 
59
63
  private
60
64
 
65
+ def check_graphql_version(predicate)
66
+ Gem::Dependency.new("graphql", predicate).match?("graphql", GraphQL::VERSION)
67
+ end
68
+
61
69
  def verify_interpreter_and_analysis!(schema_defn)
62
70
  if graphql_ruby_before_2_0?
63
71
  unless schema_defn.interpreter?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-fragment_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DmitryTsepelev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -220,7 +220,7 @@ metadata:
220
220
  homepage_uri: https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache
221
221
  source_code_uri: https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache
222
222
  changelog_uri: https://github.com/DmitryTsepelev/graphql-ruby-fragment_cache/CHANGELOG.md
223
- post_install_message:
223
+ post_install_message:
224
224
  rdoc_options: []
225
225
  require_paths:
226
226
  - lib
@@ -235,8 +235,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  requirements: []
238
- rubygems_version: 3.3.3
239
- signing_key:
238
+ rubygems_version: 3.1.6
239
+ signing_key:
240
240
  specification_version: 4
241
241
  summary: Fragment cache for graphql-ruby
242
242
  test_files: []