graphql-persisted_queries 1.2.2 → 1.2.3
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49c69f6c97fdc5fa85c34915dc2f214fc38d5cbc0c22051cac9c3c2eecce27e3
|
|
4
|
+
data.tar.gz: c0579d6c06361875fe255c96eae906a9317a6f993fbefd637ac181c2dc985fac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61a3c88f6f03ccfd956d50ccd49dca4a9f2b51f13fb45672f226b8b112401944f14f974f692a3dd60b120d9bc6903efe017b9f5be62ec9f0a5d17919f0f881d9
|
|
7
|
+
data.tar.gz: 5b9f8cac85ee76c5091e3d6ae87c58ee45cc1048831c480b2a06edc84a26aa8432030da2318a50c0b72f630fa12db6c05a16751121e1f741d1ed9b44b25d4297
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## master
|
|
4
4
|
|
|
5
|
+
## 1.2.3 (2021-05-14)
|
|
6
|
+
|
|
7
|
+
- [PR#49](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/49) Allow nil redis_client with ENV["REDIS_URL"] ([@louim][])
|
|
8
|
+
|
|
5
9
|
## 1.2.2 (2021-04-21)
|
|
6
10
|
|
|
7
11
|
- [PR#47](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/47) Properly initialize memory adapter inside RedisWithLocalCacheStoreAdapter ([@DmitryTsepelev][])
|
|
@@ -78,3 +82,4 @@
|
|
|
78
82
|
[@JanStevens]: https://github.com/JanStevens
|
|
79
83
|
[@ogidow]: https://github.com/ogidow
|
|
80
84
|
[@rbviz]: https://github.com/rbviz
|
|
85
|
+
[@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
|
|
|
@@ -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
|
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.2.
|
|
4
|
+
version: 1.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- DmitryTsepelev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-05-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: graphql
|