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 +4 -4
- data/graphql-docs.gemspec +1 -1
- data/lib/graphql-docs/generator.rb +1 -0
- data/lib/graphql-docs/parser.rb +5 -1
- data/lib/graphql-docs/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2caa4bbf75cebf1a7829a2d840b9f0be679c202c
|
4
|
+
data.tar.gz: 31c198f0974c6cfa3d95bc4dd7c61f39b6510a05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83da234485764033976a3b9209a7f4a8f50cdc76b69977e8772d7ce06a1466b8983100c0498eba86e3157cd3660f89ef99ce56e0d285f511344faf1779da2f2a
|
7
|
+
data.tar.gz: 9b94daf15048375627bd7248e2a30a5a93542226eb0304c72ba13a5ab090d9d5898414637650f93f802bc4fea1a086e6003355fd100643372780cca391c05a3f
|
data/graphql-docs.gemspec
CHANGED
@@ -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.
|
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
|
data/lib/graphql-docs/parser.rb
CHANGED
@@ -153,7 +153,7 @@ module GraphQLDocs
|
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
-
if field.
|
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
|
data/lib/graphql-docs/version.rb
CHANGED
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.
|
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-
|
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.
|
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.
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: html-pipeline
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|