graphql-persisted_queries 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +3 -2
- data/CHANGELOG.md +4 -0
- data/gemfiles/graphql_1_10.gemfile +5 -0
- data/lib/graphql/persisted_queries.rb +5 -3
- data/lib/graphql/persisted_queries/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e25a22a38ef43e4e30a0c71624a06dcd0999d25c8e83ea130c1861b78e5042c
|
4
|
+
data.tar.gz: 3da3aa1a7eebabe2dcd9cb82ad95a912f8a55f00fa515e9a321c6128351edc9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9c13316f7aa81fedc29f7f243d260972fac4f39f28ff9ffe934fb4b65f500564a3de1eef7bd94ec114842f4c08f942bfb53268b15e5b6c77382226badec3d6b
|
7
|
+
data.tar.gz: 6bbae59a3c5ae70551906490c9793e10767d1604aa1ed8326cc8dca3ab233ae16670a18af8131f38c6a9764bf35931db86d1a84ee91d8672a57a0b1bc5e828cc
|
data/.travis.yml
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
language: ruby
|
2
2
|
cache: bundler
|
3
3
|
|
4
|
-
sudo: false
|
5
|
-
|
6
4
|
rvm:
|
7
5
|
- 2.3
|
8
6
|
- 2.4
|
@@ -13,6 +11,7 @@ rvm:
|
|
13
11
|
gemfile:
|
14
12
|
- gemfiles/graphql_1_8.gemfile
|
15
13
|
- gemfiles/graphql_1_9.gemfile
|
14
|
+
- gemfiles/graphql_1_10.gemfile
|
16
15
|
- gemfiles/graphql_master.gemfile
|
17
16
|
|
18
17
|
|
@@ -21,3 +20,5 @@ notifications:
|
|
21
20
|
|
22
21
|
matrix:
|
23
22
|
fast_finish: true
|
23
|
+
allow_failures:
|
24
|
+
- rvm: ruby-head
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
## master
|
4
4
|
|
5
|
+
## 0.1.2 (2020-01-29)
|
6
|
+
|
7
|
+
- [PR#13](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/13) Support `graphql-ruby` 1.10 ([@DmitryTsepelev][])
|
8
|
+
|
5
9
|
## 0.1.1 (2019-10-24)
|
6
10
|
|
7
11
|
- [PR#7](https://github.com/DmitryTsepelev/graphql-ruby-persisted_queries/pull/7) Improved Redis configuration – added `Proc` and `ConnectionPool` support ([@DmitryTsepelev][])
|
@@ -8,9 +8,11 @@ module GraphQL
|
|
8
8
|
# Plugin definition
|
9
9
|
module PersistedQueries
|
10
10
|
def self.use(schema_defn, store: :memory, hash_generator: :sha256, **options)
|
11
|
-
schema_defn.
|
12
|
-
|
13
|
-
|
11
|
+
schema = schema_defn.is_a?(Class) ? schema_defn : schema_defn.target
|
12
|
+
|
13
|
+
schema.singleton_class.prepend(SchemaPatch)
|
14
|
+
schema.hash_generator = hash_generator
|
15
|
+
schema.configure_persisted_query_store(store, options)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
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: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- DmitryTsepelev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: graphql
|
@@ -111,6 +111,7 @@ files:
|
|
111
111
|
- Rakefile
|
112
112
|
- bin/console
|
113
113
|
- bin/setup
|
114
|
+
- gemfiles/graphql_1_10.gemfile
|
114
115
|
- gemfiles/graphql_1_8.gemfile
|
115
116
|
- gemfiles/graphql_1_9.gemfile
|
116
117
|
- gemfiles/graphql_master.gemfile
|