graphql-docs 0.6.0 → 0.6.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: d0fd963b6afd32780ffcd9f1a3dae77cd4d6697f
4
- data.tar.gz: e41b12fda08e07d88e1eb24cdff91c0f70bca83c
3
+ metadata.gz: f7d4303da88442d0f2054a2219161f5fb1dc9e2a
4
+ data.tar.gz: a417a3985e5775be6630b023cfb7a6eec812d733
5
5
  SHA512:
6
- metadata.gz: 7e271aabf4871fc6f6d64f373c82fca51e24aba426f411aa702e91a434cf897ee3b82b049162365ac90fdd41681fc4892f7b3f4e98ee6a124798f96a700fe0c2
7
- data.tar.gz: f85df4c97ce95419aff00d8d1653f83a334dcaac0fcc250254e7bf58d67a3f70de6a5d1df4dff767ec9e028f9f754bbb79ce6915a30c1f1b470b1957add3aea8
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
- contents = @renderer.render(type, name, contents)
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
@@ -1,3 +1,3 @@
1
1
  module GraphQLDocs
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
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: 0.6.0
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-01 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday