json-schema-docs 0.2.1 → 0.2.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
  SHA256:
3
- metadata.gz: 1512480b48d064bd025df82c08d7d0f0044c85f928334491bdd69ad65662fbed
4
- data.tar.gz: 56947c98c1d01e74435f3b0cc966d014e5d7c3f8ead63ce11e73f6b176a7670b
3
+ metadata.gz: e2327f77f8ca5efc9430ed2c9e797d6d6dc91c3be5614b648414353ef23ae61c
4
+ data.tar.gz: 6a00ed5052091a39cfbb019eb57ccfee9473efe857f5068d7b88f0cf49e35cad
5
5
  SHA512:
6
- metadata.gz: 7bf9f702083f97e468942686ae8048b35359e8f97d7ce26c280348429791bb8eea691d13a2ec20b3b03492ef11d14a38587916a57733b8a2645e79993e89e1b4
7
- data.tar.gz: 90ef8cedc62ce4808bdae597ebed3112dc7c68212386bf4bc67134e5f7aec72e3ecbb0cfdf1a2d0286cbd427d3cc7aa26dd3fd7186d75e66bab6cd7c02628c18
6
+ metadata.gz: 42bfbc5fd1fd2b4cd9d55783e7949c340436a4ea583af9ebbee18c1996ca2b2b10698a15b455c343a8d77c551455502e4dd43bc17c69e9dee5a3b1d27cf0d0d6
7
+ data.tar.gz: ec2f864f73c431562815c3ee4bf805ba601343bb89320a4a7bbd99b4f0c4cf3dcf98f014abedb60d8195cd32705798cbb3307871144cd23ac04d257efabf327f
@@ -92,7 +92,8 @@ module JsonSchemaDocs
92
92
  meta = { type: type, title: name, name: name }
93
93
  if has_yaml?(contents)
94
94
  # Split data
95
- meta, contents = split_into_metadata_and_contents(contents)
95
+ frontmatter, contents = split_into_metadata_and_contents(contents)
96
+ meta = frontmatter.merge(meta)
96
97
  end
97
98
 
98
99
  if trim
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module JsonSchemaDocs
3
- VERSION = '0.2.1'.freeze
3
+ VERSION = '0.2.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-schema-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian