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: 51e6b75b3baabc1ace75eab3b689bcbb6ee7082362036d6fc0dc70858f803a04
4
- data.tar.gz: 4db1546160fd4ca16f9a67899b6e4cbd97140f75afa689e0214d3d7197ee729f
3
+ metadata.gz: 49c69f6c97fdc5fa85c34915dc2f214fc38d5cbc0c22051cac9c3c2eecce27e3
4
+ data.tar.gz: c0579d6c06361875fe255c96eae906a9317a6f993fbefd637ac181c2dc985fac
5
5
  SHA512:
6
- metadata.gz: aa30f3bddf9c7f933cc62d69199bceb5c55a430e8b3eca8e36c8eb9e1c78bb71f285b1f849b448e81fcb980afa9e5e2c6c4bc34e26041b6a612e830a8e4548a1
7
- data.tar.gz: c1975bef00a57a1f18c37fde0811c5eb81d5ebfd8bd9704d02f05924e42251aa2c83f3008d7b3f2ba71face9567f39df5a3d4f2cfbbfef61be04c6a610b0942c
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
@@ -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:, expiration: nil, namespace: nil)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module PersistedQueries
5
- VERSION = "1.2.2"
5
+ VERSION = "1.2.3"
6
6
  end
7
7
  end
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.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-04-21 00:00:00.000000000 Z
11
+ date: 2021-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql