graphql-fragment_cache 1.12.0 → 1.13.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 +8 -1
- data/lib/.rbnext/2.3/graphql/fragment_cache/cache_key_builder.rb +5 -1
- data/lib/.rbnext/2.7/graphql/fragment_cache/cache_key_builder.rb +5 -1
- data/lib/graphql/fragment_cache/cache_key_builder.rb +5 -1
- data/lib/graphql/fragment_cache/version.rb +1 -1
- data/lib/graphql/fragment_cache.rb +9 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af4f8899ace77b66aaabd9af9292de07a40d2384ef8db4a24394e75bdd4be78d
|
4
|
+
data.tar.gz: 21b141a16d460b4d1b8b6cf1146e54898a87c45b4f670aa0ab6cbaac78dc48d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
|
@@ -53,11 +53,19 @@ module GraphQL
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def graphql_ruby_before_2_0?
|
56
|
-
|
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.
|
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-
|
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.
|
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: []
|