graphql-docs 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +3 -0
- data/lib/graphql-docs/generator.rb +2 -1
- data/lib/graphql-docs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7d4303da88442d0f2054a2219161f5fb1dc9e2a
|
|
4
|
+
data.tar.gz: a417a3985e5775be6630b023cfb7a6eec812d733
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce521a2802d0f55bf87b332a416267f718d55fd0510818e2f911c8eb730143bdadcac6cd9b45e464964220bfcabfb82a99e1b49339bc3c13e38712ceff3c864f
|
|
7
|
+
data.tar.gz: e1b2e4c08fa9dae5c831efac3b72b16b56c19ed024bbe21aa19cd2ff925349a1667ea519f3ab2909e0eb7d13277337239483a46361f4bf75b56e9f60f8512641
|
data/Rakefile
CHANGED
|
@@ -13,6 +13,7 @@ end
|
|
|
13
13
|
|
|
14
14
|
task default: :test
|
|
15
15
|
|
|
16
|
+
desc 'Set up a console'
|
|
16
17
|
task :console do
|
|
17
18
|
require 'pry'
|
|
18
19
|
require 'graphql-docs'
|
|
@@ -26,6 +27,7 @@ task :console do
|
|
|
26
27
|
Pry.start
|
|
27
28
|
end
|
|
28
29
|
|
|
30
|
+
desc 'Generate the documentation'
|
|
29
31
|
task :generate_sample, [:base_url] do |task, args|
|
|
30
32
|
require 'graphql-docs'
|
|
31
33
|
|
|
@@ -37,6 +39,7 @@ task :generate_sample, [:base_url] do |task, args|
|
|
|
37
39
|
GraphQLDocs.build(options)
|
|
38
40
|
end
|
|
39
41
|
|
|
42
|
+
desc 'Generate the documentation and run a web server'
|
|
40
43
|
task sample: [:generate_sample] do
|
|
41
44
|
require 'webrick'
|
|
42
45
|
|
|
@@ -188,7 +188,8 @@ module GraphQLDocs
|
|
|
188
188
|
path = File.join(@options[:output_dir], type, name.downcase)
|
|
189
189
|
FileUtils.mkdir_p(path)
|
|
190
190
|
end
|
|
191
|
-
|
|
191
|
+
|
|
192
|
+
contents = @renderer.render(type, name, contents.gsub(/^\s{4}/m, ' '))
|
|
192
193
|
File.write(File.join(path, 'index.html'), contents) unless contents.nil?
|
|
193
194
|
end
|
|
194
195
|
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: 0.6.
|
|
4
|
+
version: 0.6.1
|
|
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-06-
|
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|