graphql-validation 0.1.0 → 0.1.1

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: eb7fc70820e12d0876f3638b2e520b07e8b45bfe
4
- data.tar.gz: a3274b383894df8f953f907046fcc0f322092109
3
+ metadata.gz: 38c62fa551ecaa2ab3ba18b07ca1c21108046dd4
4
+ data.tar.gz: 6f7f70e95d438a61492162e73de7c6a82b4eead4
5
5
  SHA512:
6
- metadata.gz: 7f1129848bff3dfa188f91cb4e9a49d750015f3dee19d6dc2a3a406ed5f478677743c460158a127d4e61c8476470e5abdd7fd07e9f54af9b2b0007416cf0af28
7
- data.tar.gz: 2ee00190ef91006dc339eaa110e55b75f6f80bff1c193ade3884b6de64315d57e225eeef22f46e85fdc2bb33f50e731dbe45df8efa6c8f6d5860b68d03667a6e
6
+ metadata.gz: 2537f8b6eceff1bcc25a1baac306d588dca7e1e0c5ead81760e5a4f253e797787492c28a9d4517a48bffaa73cf4506d6ef4c5301416c8de3f3f0641b7510c99e
7
+ data.tar.gz: 53013fa6e11719aebd44bff172be537348317ee306058ac5d45aa229279000ce1dc82e6c16cd1494eea0166a8d6b7766c03b638d02557b849a8e03cddd4ad38b
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Gem Version](https://badge.fury.io/rb/graphql-validation.svg)](https://badge.fury.io/rb/graphql-validation)
2
+ [![Build Status](https://travis-ci.org/adHawk/graphql-validation.svg?branch=master)](https://travis-ci.org/adHawk/graphql-validation)
3
+
1
4
  # Graphql::Validation
2
5
 
3
6
  A simple gem to help with common validating GraphQL input objects.
@@ -25,7 +25,7 @@ module Graphql
25
25
  GraphQL::Argument.accepts_definitions \
26
26
  validate_with: ->(type_defn, validator) {
27
27
  type_defn.define do
28
- prepare ->(arg) do
28
+ prepare ->(arg, _ctx) do
29
29
  result = validator.call(arg.to_h)
30
30
  raise ArgumentValidationError, result if result.failure?
31
31
  result.output
@@ -1,5 +1,5 @@
1
1
  module Graphql
2
2
  module Validation
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2017-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql