json-schema-docs 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: 70ce09af68c836c67047b91049579f0907fe9e4e8b935211482dd6163bb96bc2
4
- data.tar.gz: a069ce9a8503d02bcf5d98f608ad734f335296b25a8528701b26a0eb4306a286
3
+ metadata.gz: 1512480b48d064bd025df82c08d7d0f0044c85f928334491bdd69ad65662fbed
4
+ data.tar.gz: 56947c98c1d01e74435f3b0cc966d014e5d7c3f8ead63ce11e73f6b176a7670b
5
5
  SHA512:
6
- metadata.gz: f4ff3f550c966a17f8faf158564610b14132e044a3aafcc0c1614f4509a961ef77ad03e0967e6d8a73a3942c1ac23c97e89904ed473ec4799117510cff93e31c
7
- data.tar.gz: 48e657b95352ef05360e07137fea1748deaa4cdcbe6d87bbb9c3f6f6c71f5c0523afd1d64ee85dfcfcbe313c5fb558e9478f6450f1c724879c22fa87e96a2075
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module JsonSchemaDocs
3
- VERSION = '0.2.0'.freeze
3
+ VERSION = '0.2.1'.freeze
4
4
  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.0
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-05 00:00:00.000000000 Z
11
+ date: 2019-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prmd