graphql-docs 0.6.1 → 0.6.2
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c2ecb384368186912ae4330f6d725e143e00ce45
|
|
4
|
+
data.tar.gz: 37f6ff42e7f5c62eb036de963aae0f2f1d743a50
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/graphql-docs/helpers.rb
CHANGED
|
@@ -113,7 +113,10 @@ module GraphQLDocs
|
|
|
113
113
|
|
|
114
114
|
return @templates[filename] unless @templates[filename].nil?
|
|
115
115
|
|
|
116
|
-
|
|
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
|
|
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.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-
|
|
11
|
+
date: 2017-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|