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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec6b0021eb3956036b54ed95ffe944074f414859
4
- data.tar.gz: 5872d56d125c988408966791bc6bbc081ca1e4e1
3
+ metadata.gz: cc975ff4b49ae763232e7658f510a8bac187efa2
4
+ data.tar.gz: 779d52ef6311effa305f09154353f3996e0859d8
5
5
  SHA512:
6
- metadata.gz: 8684b3af37dfd4768ea539098e2c0f93358d8eeca6e99ee16bf3eb65e78b0d26fbb0ea73e6b16f13005663cf1209780de239cc7bddb602330431feb64b93c460
7
- data.tar.gz: c3533ca6da4d4b23c77606ac3eea092a695f3721b7d8f25d4d85a771c395f3a269af501e46f83303e3335e51a17aac8d94f8f41496e0a0d4c63df9a229882498
6
+ metadata.gz: 887ee46c24ca8613d3dc8af6b0b6ebc5212072dcf5d97b7a02babbb90ef28f4fe61fad47a7a83a6d71f5d93ca341f57444bc0ccbdc6df583ab8161eff968d3c9
7
+ data.tar.gz: 44ac0b9b7ee55894cb044363bec954e326264bc8ce13bdca8998ed7899938b8af7830c234bb17d7d5d962044eb430a502b857ede3bab46114b8d53bd85a99f5c
@@ -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: GraphQLPreview::Extensions::EnabledPreviews
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
@@ -1,9 +1,5 @@
1
1
  module GraphQLPreview
2
2
  class SchemaModification
3
- def self.masks
4
- ObjectSpace.each_object(Class).select { |klass| klass < self }
5
- end
6
-
7
3
  def self.to_h
8
4
  {
9
5
  title: title,
@@ -1,3 +1,3 @@
1
1
  module GraphQLPreview
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  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.5
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: 2017-12-19 00:00:00.000000000 Z
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.12
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.