graphql-persisted_queries 1.2.3 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49c69f6c97fdc5fa85c34915dc2f214fc38d5cbc0c22051cac9c3c2eecce27e3
4
- data.tar.gz: c0579d6c06361875fe255c96eae906a9317a6f993fbefd637ac181c2dc985fac
3
+ metadata.gz: c6f0c75f1f94ba226e78445f322fc335e500a8b043c5ad0639339504b34d3c33
4
+ data.tar.gz: c5066d90aafb265e937c1e8de6c781874dcd8a3edff964ef4375537f5e33dbd3
5
5
  SHA512:
6
- metadata.gz: 61a3c88f6f03ccfd956d50ccd49dca4a9f2b51f13fb45672f226b8b112401944f14f974f692a3dd60b120d9bc6903efe017b9f5be62ec9f0a5d17919f0f881d9
7
- data.tar.gz: 5b9f8cac85ee76c5091e3d6ae87c58ee45cc1048831c480b2a06edc84a26aa8432030da2318a50c0b72f630fa12db6c05a16751121e1f741d1ed9b44b25d4297
6
+ metadata.gz: f7d34c82f9ba6fbca43bf4b2d209c4c762f1dd96e26bab8d8942241c1c3447c4b3412a7235b61742638294ae4083e67ac7b872258cfa09cd416abdde80111ebd
7
+ data.tar.gz: 205dade68e5c6a087cd38e3632fe21010f01c0bec57857737d0328685a74a66e42ddb9907ebdbf806fe8b1aa3d3c992600a3da8309516b9817fdd2b6a9d38703
@@ -18,12 +18,13 @@ jobs:
18
18
  strategy:
19
19
  fail-fast: false
20
20
  matrix:
21
- ruby: [2.3, 2.4, 2.5, 2.6, 2.7]
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
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ gem "graphql", "~> 1.13.7"
4
+
5
+ gemspec path: "../"
@@ -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.3"
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:, expiration: nil, namespace: nil, redis_adapter_class: nil,
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module GraphQL
4
4
  module PersistedQueries
5
- VERSION = "1.2.3"
5
+ VERSION = "1.5.0"
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.3
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: 2021-05-14 00:00:00.000000000 Z
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.3'
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.2
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: []