graphql-docs 1.0.0.pre → 1.0.0.pre1

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: d57299436da71122f707b8566d5c3866817206c9
4
- data.tar.gz: f3d9e7e6c3f01a7720211bcbee87d1a26da2bb9c
3
+ metadata.gz: 2caa4bbf75cebf1a7829a2d840b9f0be679c202c
4
+ data.tar.gz: 31c198f0974c6cfa3d95bc4dd7c61f39b6510a05
5
5
  SHA512:
6
- metadata.gz: d77c30246e5dfe9a3a54243e08549b73e8b32ad933d78a39da04db84a69a8869fc074dfbcc677b1bd438792732d2f08fb1c7b9058593ac227ed340fde0d87975
7
- data.tar.gz: c9b376846e30727006fb5282061e105ae9c28cf5f3659aec7389444cba5b87e4b28b92f1e7437c70996265b6c4d23c80198dae4518a113cf72ba9389bb519711
6
+ metadata.gz: 83da234485764033976a3b9209a7f4a8f50cdc76b69977e8772d7ce06a1466b8983100c0498eba86e3157cd3660f89ef99ce56e0d285f511344faf1779da2f2a
7
+ data.tar.gz: 9b94daf15048375627bd7248e2a30a5a93542226eb0304c72ba13a5ab090d9d5898414637650f93f802bc4fea1a086e6003355fd100643372780cca391c05a3f
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ['lib']
22
22
 
23
- spec.add_dependency 'graphql', '~> 1.4'
23
+ spec.add_dependency 'graphql', '~> 1.6'
24
24
 
25
25
  # rendering
26
26
  spec.add_dependency 'html-pipeline', '~> 2.2'
@@ -187,6 +187,7 @@ module GraphQLDocs
187
187
  end
188
188
 
189
189
  # normalize spacing so that CommonMarker doesn't treat it as `pre`
190
+ contents.gsub!(/^\s*$/, '')
190
191
  contents = @renderer.render(type, name, contents.gsub(/^\s{4}/m, ' '))
191
192
  File.write(File.join(path, 'index.html'), contents) unless contents.nil?
192
193
  end
@@ -153,7 +153,7 @@ module GraphQLDocs
153
153
  end
154
154
  end
155
155
 
156
- if field.type.unwrap.name.end_with?('Connection')
156
+ if !argument?(field) && field.connection?
157
157
  connections << hash
158
158
  else
159
159
  fields << hash
@@ -192,5 +192,9 @@ module GraphQLDocs
192
192
  info: type.to_s
193
193
  }
194
194
  end
195
+
196
+ def argument?(field)
197
+ field.is_a?(::GraphQL::Argument)
198
+ end
195
199
  end
196
200
  end
@@ -1,3 +1,3 @@
1
1
  module GraphQLDocs
2
- VERSION = '1.0.0.pre'
2
+ VERSION = '1.0.0.pre1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre
4
+ version: 1.0.0.pre1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-12 00:00:00.000000000 Z
11
+ date: 2017-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphql
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.4'
19
+ version: '1.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.4'
26
+ version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: html-pipeline
29
29
  requirement: !ruby/object:Gem::Requirement