graphql-persisted_queries 1.2.3 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +2 -1
- data/CHANGELOG.md +16 -0
- data/README.md +0 -10
- data/gemfiles/graphql_1_13_7.gemfile +5 -0
- data/graphql-persisted_queries.gemspec +1 -1
- data/lib/graphql/persisted_queries/store_adapters/redis_with_local_cache_store_adapter.rb +1 -1
- data/lib/graphql/persisted_queries/version.rb +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6f0c75f1f94ba226e78445f322fc335e500a8b043c5ad0639339504b34d3c33
|
4
|
+
data.tar.gz: c5066d90aafb265e937c1e8de6c781874dcd8a3edff964ef4375537f5e33dbd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d34c82f9ba6fbca43bf4b2d209c4c762f1dd96e26bab8d8942241c1c3447c4b3412a7235b61742638294ae4083e67ac7b872258cfa09cd416abdde80111ebd
|
7
|
+
data.tar.gz: 205dade68e5c6a087cd38e3632fe21010f01c0bec57857737d0328685a74a66e42ddb9907ebdbf806fe8b1aa3d3c992600a3da8309516b9817fdd2b6a9d38703
|
data/.github/workflows/rspec.yml
CHANGED
@@ -18,12 +18,13 @@ jobs:
|
|
18
18
|
strategy:
|
19
19
|
fail-fast: false
|
20
20
|
matrix:
|
21
|
-
ruby: [2.
|
21
|
+
ruby: [2.6, 2.7, 3.0]
|
22
22
|
gemfile: [
|
23
23
|
"gemfiles/graphql_1_10.gemfile",
|
24
24
|
"gemfiles/graphql_1_11.gemfile",
|
25
25
|
"gemfiles/graphql_1_12_0.gemfile",
|
26
26
|
"gemfiles/graphql_1_12_4.gemfile",
|
27
|
+
"gemfiles/graphql_1_13_7.gemfile",
|
27
28
|
"gemfiles/graphql_master.gemfile"
|
28
29
|
]
|
29
30
|
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 1.5.0 (2022-02-10)
|
6
|
+
|
7
|
+
- [PR#53](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/53) Support graphql-ruby 2.0.0 ([@DmitryTsepelev][])
|
8
|
+
|
9
|
+
## 1.4.0 (2022-01-28)
|
10
|
+
|
11
|
+
- [PR#52](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/52) Drop Ruby 2.5 support, add Ruby 3.0 ([@DmitryTsepelev][])
|
12
|
+
|
13
|
+
## 1.3.0 (2021-10-19)
|
14
|
+
|
15
|
+
- [PR#51](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/51) Drop Ruby 2.3 and 2.4 support ([@DmitryTsepelev][])
|
16
|
+
|
17
|
+
## 1.2.4 (2021-06-07)
|
18
|
+
|
19
|
+
- [PR#50](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/50) Support empty redis_client arg on redis with locale cache ([@louim][])
|
20
|
+
|
5
21
|
## 1.2.3 (2021-05-14)
|
6
22
|
|
7
23
|
- [PR#49](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/49) Allow nil redis_client with ENV["REDIS_URL"] ([@louim][])
|
data/README.md
CHANGED
@@ -38,16 +38,6 @@ class GraphqlSchema < GraphQL::Schema
|
|
38
38
|
end
|
39
39
|
```
|
40
40
|
|
41
|
-
**Heads up!** If you've already switched to interpreter mode and and AST analyzers—make sure AST plugin is added _before_ `GraphQL::PersistedQueries`:
|
42
|
-
|
43
|
-
```ruby
|
44
|
-
class GraphqlSchema < GraphQL::Schema
|
45
|
-
use GraphQL::Execution::Interpreter
|
46
|
-
use GraphQL::Analysis::AST
|
47
|
-
use GraphQL::PersistedQueries
|
48
|
-
end
|
49
|
-
```
|
50
|
-
|
51
41
|
Pass `:extensions` argument as part of a `context` to all calls of `GraphqlSchema#execute`, usually it happens in `GraphqlController`, `GraphqlChannel` and tests:
|
52
42
|
|
53
43
|
```ruby
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.required_ruby_version = ">= 2.
|
23
|
+
spec.required_ruby_version = ">= 2.6"
|
24
24
|
|
25
25
|
spec.add_dependency "graphql", ">= 1.10"
|
26
26
|
|
@@ -8,7 +8,7 @@ module GraphQL
|
|
8
8
|
DEFAULT_REDIS_ADAPTER_CLASS = RedisStoreAdapter
|
9
9
|
DEFAULT_MEMORY_ADAPTER_CLASS = MemoryStoreAdapter
|
10
10
|
|
11
|
-
def initialize(redis_client
|
11
|
+
def initialize(redis_client: {}, expiration: nil, namespace: nil, redis_adapter_class: nil,
|
12
12
|
memory_adapter_class: nil)
|
13
13
|
redis_adapter_class ||= DEFAULT_REDIS_ADAPTER_CLASS
|
14
14
|
memory_adapter_class ||= DEFAULT_MEMORY_ADAPTER_CLASS
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-persisted_queries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- gemfiles/graphql_1_11.gemfile
|
141
141
|
- gemfiles/graphql_1_12_0.gemfile
|
142
142
|
- gemfiles/graphql_1_12_4.gemfile
|
143
|
+
- gemfiles/graphql_1_13_7.gemfile
|
143
144
|
- gemfiles/graphql_master.gemfile
|
144
145
|
- graphql-persisted_queries.gemspec
|
145
146
|
- lib/graphql/persisted_queries.rb
|
@@ -172,7 +173,7 @@ homepage: https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries
|
|
172
173
|
licenses:
|
173
174
|
- MIT
|
174
175
|
metadata: {}
|
175
|
-
post_install_message:
|
176
|
+
post_install_message:
|
176
177
|
rdoc_options: []
|
177
178
|
require_paths:
|
178
179
|
- lib
|
@@ -180,15 +181,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
181
|
requirements:
|
181
182
|
- - ">="
|
182
183
|
- !ruby/object:Gem::Version
|
183
|
-
version: '2.
|
184
|
+
version: '2.6'
|
184
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
185
186
|
requirements:
|
186
187
|
- - ">="
|
187
188
|
- !ruby/object:Gem::Version
|
188
189
|
version: '0'
|
189
190
|
requirements: []
|
190
|
-
rubygems_version: 3.1
|
191
|
-
signing_key:
|
191
|
+
rubygems_version: 3.0.3.1
|
192
|
+
signing_key:
|
192
193
|
specification_version: 4
|
193
194
|
summary: Persisted queries for graphql-ruby
|
194
195
|
test_files: []
|