graphql-preview 0.0.4 → 0.0.5

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: bdf316bb1dc2e028f3abe7b2acfd0b992c75ac5a
4
- data.tar.gz: 13555b739d883f70c5ceb65fff21339a103e670b
3
+ metadata.gz: ec6b0021eb3956036b54ed95ffe944074f414859
4
+ data.tar.gz: 5872d56d125c988408966791bc6bbc081ca1e4e1
5
5
  SHA512:
6
- metadata.gz: b9db6a515c6ae985d2cacf239b965a041ebe36f2f149a42285af990565894b48fb77fb868debf0b399139c54e18edad23b6da4b52991e95c8101004d074a1e66
7
- data.tar.gz: 4cc007d0cb3d2a5df88dd6de8c6660fbfb916f4cb5721485d624c4314bed615fb7db2c4a325e4eb0d27f3b05817f0814da95ddbe66696fe9e15248f98101b1b9
6
+ metadata.gz: 8684b3af37dfd4768ea539098e2c0f93358d8eeca6e99ee16bf3eb65e78b0d26fbb0ea73e6b16f13005663cf1209780de239cc7bddb602330431feb64b93c460
7
+ data.tar.gz: c3533ca6da4d4b23c77606ac3eea092a695f3721b7d8f25d4d85a771c395f3a269af501e46f83303e3335e51a17aac8d94f8f41496e0a0d4c63df9a229882498
@@ -1,6 +1,7 @@
1
1
  module GraphQLPreview
2
2
  class Mask
3
3
  def self.call(member, context)
4
+ return false unless member.respond_to?(:metadata)
4
5
  return false unless member.metadata.key?(:preview_toggled_by)
5
6
  unless context.key?(:schema_previews)
6
7
  raise ArgumentError, "You are using the `GraphQLPreview::Mask`, but key `:schema_previews` was not provided to the `context`"
@@ -1,3 +1,3 @@
1
1
  module GraphQLPreview
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian