graphql-relay-walker 0.0.7 → 0.0.8

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: 33a0e568de4ac121c6aaa8a30ef3a7e9b475cd90
4
- data.tar.gz: 23527128be63bf80144046f9388f412861a03a48
3
+ metadata.gz: da23731da9c7227835bba494776aef1d9619873a
4
+ data.tar.gz: 86929b6a7eb0a392ad29effec1975f11e240786b
5
5
  SHA512:
6
- metadata.gz: 11bfac4f72c874e1b8d3c08519f46e9faedfc402cc47c42cce1bf0287387af61368bd98cdf51085f35583e35662410d5a8a4742ba72f7464f8f70fd098331c20
7
- data.tar.gz: 64068502afd04497a24dea49b85bca9540426184319c64687fb5254a48a0e09aa5ace1d2a3b0ad9a56b617eb5d59ae85bca610dd6df51c1b886090e4ef0183a7
6
+ metadata.gz: d78df32cc44c7496601ff4adcb1fc527a0d0337ac34fd13d1c47767462887e901e83a2d23559abd5331a5b413f2fed2733c73f3f777c82568136888a1e3442b7
7
+ data.tar.gz: 6587c0bae7a2ce6d2dc48dff94aeb75a54faded287faf041842f00de628f3306b19f12b0d04eba54f10d30e6685053b5a38b58c651e0497e1d49526382304877
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "graphql-relay-walker"
3
- s.version = "0.0.7"
3
+ s.version = "0.0.8"
4
4
  s.licenses = ["MIT"]
5
5
  s.summary = "A tool for traversing your GraphQL schema to proactively detect potential data access vulnerabilities."
6
6
  s.authors = ["Ben Toews"]
@@ -244,7 +244,11 @@ module GraphQL::Relay::Walker
244
244
  12.times.map { (SecureRandom.random_number(26) + 97).chr }.join
245
245
  end
246
246
 
247
- if GraphQL::VERSION >= "1.4.0"
247
+ if GraphQL::VERSION >= "1.5.6"
248
+ def valid_input?(type, input)
249
+ type.valid_isolated_input?(input)
250
+ end
251
+ elsif GraphQL::VERSION >= "1.4.0"
248
252
  def valid_input?(type, input)
249
253
  allow_all = GraphQL::Schema::Warden.new(->(_) { false }, schema: schema, context: nil)
250
254
  type.valid_input?(input, allow_all)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-relay-walker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Toews
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-17 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.4.5.1
105
+ rubygems_version: 2.5.1
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: A tool for traversing your GraphQL schema to proactively detect potential