graphql-preview 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql-preview.rb +5 -1
- data/lib/graphql-preview/schema_modification.rb +0 -4
- data/lib/graphql-preview/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc975ff4b49ae763232e7658f510a8bac187efa2
|
4
|
+
data.tar.gz: 779d52ef6311effa305f09154353f3996e0859d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 887ee46c24ca8613d3dc8af6b0b6ebc5212072dcf5d97b7a02babbb90ef28f4fe61fad47a7a83a6d71f5d93ca341f57444bc0ccbdc6df583ab8161eff968d3c9
|
7
|
+
data.tar.gz: 44ac0b9b7ee55894cb044363bec954e326264bc8ce13bdca8998ed7899938b8af7830c234bb17d7d5d962044eb430a502b857ede3bab46114b8d53bd85a99f5c
|
data/lib/graphql-preview.rb
CHANGED
@@ -10,9 +10,13 @@ end
|
|
10
10
|
|
11
11
|
module GraphQL
|
12
12
|
Schema.class_eval do
|
13
|
+
# To support `graphql-ruby`'s `.define` based API
|
13
14
|
include GraphQLPreview::Extensions::EnabledPreviews
|
14
15
|
|
15
16
|
accepts_definitions \
|
16
|
-
enabled_previews:
|
17
|
+
enabled_previews: -> (schema, previews = nil) { schema.enabled_previews(previews) }
|
18
|
+
|
19
|
+
# To support `graphql-ruby`'s class-based API
|
20
|
+
extend GraphQLPreview::Extensions::EnabledPreviews
|
17
21
|
end
|
18
22
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphql-preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: graphql
|
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
153
153
|
version: '0'
|
154
154
|
requirements: []
|
155
155
|
rubyforge_project:
|
156
|
-
rubygems_version: 2.6.
|
156
|
+
rubygems_version: 2.6.13
|
157
157
|
signing_key:
|
158
158
|
specification_version: 4
|
159
159
|
summary: Provide a system for toggling parts of a GraphQL schema on.
|