graphql-persisted_queries 1.2.2 → 1.4.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 +17 -0
- data/docs/alternative_stores.md +3 -0
- data/gemfiles/graphql_1_13_7.gemfile +5 -0
- data/graphql-persisted_queries.gemspec +1 -1
- data/lib/graphql/persisted_queries/store_adapters/redis_store_adapter.rb +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: 8558536fae24e519c7b69751dea1ccf0f3cd2abec21f2811fd7bcf91418d88fe
|
4
|
+
data.tar.gz: 2b0e05c819b934c6e660bba97151c2c58b38f11aa0396d19d2631eee4285ab71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58b48712a5cc3a8330c6c7c6796c86478668f9a1ea18ac6161e7a86f2cbee04106725bf12dbf1365165f79d9e29a64d801e71b221469c88138e4c749424c0206
|
7
|
+
data.tar.gz: a276474166be60c6b80625d9f6f3ab1501fc8927e3e70fcefe817f4083a3e6dc46fa0ee7535349a9d71b3f9f5cfcafaf411ef7690859bf16d6da472af9f245c8
|
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.4.0 (2022-01-28)
|
6
|
+
|
7
|
+
- [PR#52](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/52) Drop Ruby 2.5 support, add Ruby 3.0 ([@DmitryTsepelev][])
|
8
|
+
|
9
|
+
## 1.3.0 (2021-10-19)
|
10
|
+
|
11
|
+
- [PR#51](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/51) Drop Ruby 2.3 and 2.4 support ([@DmitryTsepelev][])
|
12
|
+
|
13
|
+
## 1.2.4 (2021-06-07)
|
14
|
+
|
15
|
+
- [PR#50](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/50) Support empty redis_client arg on redis with locale cache ([@louim][])
|
16
|
+
|
17
|
+
## 1.2.3 (2021-05-14)
|
18
|
+
|
19
|
+
- [PR#49](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/49) Allow nil redis_client with ENV["REDIS_URL"] ([@louim][])
|
20
|
+
|
5
21
|
## 1.2.2 (2021-04-21)
|
6
22
|
|
7
23
|
- [PR#47](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/47) Properly initialize memory adapter inside RedisWithLocalCacheStoreAdapter ([@DmitryTsepelev][])
|
@@ -78,3 +94,4 @@
|
|
78
94
|
[@JanStevens]: https://github.com/JanStevens
|
79
95
|
[@ogidow]: https://github.com/ogidow
|
80
96
|
[@rbviz]: https://github.com/rbviz
|
97
|
+
[@louim]: https://github.com/louim
|
data/docs/alternative_stores.md
CHANGED
@@ -25,6 +25,9 @@ class GraphqlSchema < GraphQL::Schema
|
|
25
25
|
use GraphQL::PersistedQueries,
|
26
26
|
store: :redis,
|
27
27
|
redis_client: ConnectionPool.new { Redis.new(url: "redis://127.0.0.2:2214/7") }
|
28
|
+
# or with ENV["REDIS_URL"]
|
29
|
+
use GraphQL::PersistedQueries,
|
30
|
+
store: :redis
|
28
31
|
end
|
29
32
|
```
|
30
33
|
|
@@ -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
|
|
@@ -10,7 +10,7 @@ module GraphQL
|
|
10
10
|
DEFAULT_EXPIRATION = 24 * 60 * 60
|
11
11
|
DEFAULT_NAMESPACE = "graphql-persisted-query"
|
12
12
|
|
13
|
-
def initialize(redis_client
|
13
|
+
def initialize(redis_client: {}, expiration: nil, namespace: nil)
|
14
14
|
@redis_proc = build_redis_proc(redis_client)
|
15
15
|
@expiration = expiration || DEFAULT_EXPIRATION
|
16
16
|
@namespace = namespace || DEFAULT_NAMESPACE
|
@@ -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.4.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-01-28 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: []
|