graphql 0.17.0 → 0.17.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: 24203b4225051e3273a336d37502cdddd29c3c21
4
- data.tar.gz: d3c4de442aa838dfde6db055cd4da9e397a89578
3
+ metadata.gz: 0a357ade4151d40e569c04a9385a6099f2d8d269
4
+ data.tar.gz: be1830adfe4470c474c8aa73ce608b8848f4a15c
5
5
  SHA512:
6
- metadata.gz: d134105d845e9b416078a504048f9ba263943fba5741a4de5d9f3cf229a193614858794b9d6ef5b857b84cb14ea3f1bb14d1b9ffc6beb4ee9e6fff2d9c9fac1c
7
- data.tar.gz: e7107d02800a97cf95ed00dc54463056ba7dd0bc38623f5750deb4cc6a0ea736074a84ee77da81859c7c548ffe75b117a9c130e7a98fc13a6339dfdc8a8ba1ea
6
+ metadata.gz: 049e8a243a2c2aa8c40a090699ab7338560f2cf02abc294fd27bc11a8045a5abd8b650449a0349bfdfbcbead31266a59f325087fd0200677d30397b19447eca1
7
+ data.tar.gz: d89e78fcf016747bda82b6b64655de27cfa7d0dddf49a65b543b7df6cb775f594b586334bef0cbd2941febbb50cbc56ae60eb0e02d0e009daa58becddb55b536
@@ -59,9 +59,9 @@ module GraphQL
59
59
 
60
60
  def inspect(indent = 0)
61
61
  own_indent = " " * indent
62
- self_inspect = "#{own_indent}<Node #{name} (#{definition ? definition.name + ": " : ""}{#{on_types.to_a.join("|")}} -> #{return_type})>"
62
+ self_inspect = "#{own_indent}<Node #{name} (#{definition_name}: {#{definitions.keys.join("|")}} -> #{return_type})>"
63
63
  if children.any?
64
- self_inspect << " {\n#{children.values.map { |n| n.inspect(indent + 2 )}.join("\n")}\n#{own_indent}}"
64
+ self_inspect << " {\n#{children.values.map { |n| n.inspect(indent + 2)}.join("\n")}\n#{own_indent}}"
65
65
  end
66
66
  self_inspect
67
67
  end
@@ -1,3 +1,3 @@
1
1
  module GraphQL
2
- VERSION = "0.17.0"
2
+ VERSION = "0.17.1"
3
3
  end
@@ -33,6 +33,7 @@ describe GraphQL::InternalRepresentation::Rewrite do
33
33
  assert_equal 1, second_field.children.length
34
34
  assert_equal [QueryType], second_field.definitions.keys
35
35
  assert_equal CheeseType, second_field.return_type
36
+ assert second_field.inspect.is_a?(String)
36
37
  end
37
38
  end
38
39
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-21 00:00:00.000000000 Z
11
+ date: 2016-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: codeclimate-test-reporter