json-schema-docs 0.2.0 → 0.2.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/lib/json-schema-docs/generator.rb +2 -1
- data/lib/json-schema-docs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1512480b48d064bd025df82c08d7d0f0044c85f928334491bdd69ad65662fbed
|
|
4
|
+
data.tar.gz: 56947c98c1d01e74435f3b0cc966d014e5d7c3f8ead63ce11e73f6b176a7670b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7bf9f702083f97e468942686ae8048b35359e8f97d7ce26c280348429791bb8eea691d13a2ec20b3b03492ef11d14a38587916a57733b8a2645e79993e89e1b4
|
|
7
|
+
data.tar.gz: 90ef8cedc62ce4808bdae597ebed3112dc7c68212386bf4bc67134e5f7aec72e3ecbb0cfdf1a2d0286cbd427d3cc7aa26dd3fd7186d75e66bab6cd7c02628c18
|
|
@@ -89,7 +89,7 @@ module JsonSchemaDocs
|
|
|
89
89
|
|
|
90
90
|
FileUtils.mkdir_p(path)
|
|
91
91
|
|
|
92
|
-
meta = { title: name, name: name }
|
|
92
|
+
meta = { type: type, title: name, name: name }
|
|
93
93
|
if has_yaml?(contents)
|
|
94
94
|
# Split data
|
|
95
95
|
meta, contents = split_into_metadata_and_contents(contents)
|
|
@@ -102,6 +102,7 @@ module JsonSchemaDocs
|
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
filename = File.join(path, 'index.html')
|
|
105
|
+
meta[:filename] = filename
|
|
105
106
|
output = @renderer.render(contents, meta: meta)
|
|
106
107
|
File.write(filename, output) unless output.nil?
|
|
107
108
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: json-schema-docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.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: 2019-09-
|
|
11
|
+
date: 2019-09-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: prmd
|