graphql-docs 0.6.1 → 0.6.2

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: f7d4303da88442d0f2054a2219161f5fb1dc9e2a
4
- data.tar.gz: a417a3985e5775be6630b023cfb7a6eec812d733
3
+ metadata.gz: c2ecb384368186912ae4330f6d725e143e00ce45
4
+ data.tar.gz: 37f6ff42e7f5c62eb036de963aae0f2f1d743a50
5
5
  SHA512:
6
- metadata.gz: ce521a2802d0f55bf87b332a416267f718d55fd0510818e2f911c8eb730143bdadcac6cd9b45e464964220bfcabfb82a99e1b49339bc3c13e38712ceff3c864f
7
- data.tar.gz: e1b2e4c08fa9dae5c831efac3b72b16b56c19ed024bbe21aa19cd2ff925349a1667ea519f3ab2909e0eb7d13277337239483a46361f4bf75b56e9f60f8512641
6
+ metadata.gz: 2dc4a7f5d016cae84c3017d5ef90c3c5c64a4273e6b7105f68cc3ff108537fc9f9222ce1da662da2de0cc638c0e313ee6fb706ab1091f9889a2f7a1f7090de8f
7
+ data.tar.gz: 5b707908d83d74f848e5efcc155d1fea2f2efce5607284b416e222cbdbde8472420ae6f4c966afa025368fdc793e4c2f38f96da806e5c43b3c839f98dc5ddcbd
@@ -189,6 +189,7 @@ module GraphQLDocs
189
189
  FileUtils.mkdir_p(path)
190
190
  end
191
191
 
192
+ # normalize spacing so that CommonMarker doesn't treat it as `pre`
192
193
  contents = @renderer.render(type, name, contents.gsub(/^\s{4}/m, ' '))
193
194
  File.write(File.join(path, 'index.html'), contents) unless contents.nil?
194
195
  end
@@ -113,7 +113,10 @@ module GraphQLDocs
113
113
 
114
114
  return @templates[filename] unless @templates[filename].nil?
115
115
 
116
- @templates[filename] = ERB.new(File.read(File.join(@options[:templates][:includes], filename)))
116
+ contents = File.read(File.join(@options[:templates][:includes], filename))
117
+ # normalize spacing so that CommonMarker doesn't treat it as `pre`
118
+ template = contents.gsub(/^\s{4}/m, ' ')
119
+ @templates[filename] = ERB.new(template)
117
120
  @templates[filename]
118
121
  end
119
122
 
@@ -1,4 +1,4 @@
1
- <table class="arguments" markdown="1">
1
+ <table class="arguments">
2
2
  <thead>
3
3
  <tr>
4
4
  <th>Argument</th>
@@ -1,3 +1,3 @@
1
1
  module GraphQLDocs
2
- VERSION = '0.6.1'
2
+ VERSION = '0.6.2'
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.1
4
+ version: 0.6.2
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-06 00:00:00.000000000 Z
11
+ date: 2017-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday