json-schema-docs 0.3.0 → 0.3.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: 4019d4c71037dd5a121688f86360f0118434a11f134e284da52d861598f1aa55
4
- data.tar.gz: 6fbc6806b2d8ab850781561fb9938e11b1a406276faa089f573a2777116430a1
3
+ metadata.gz: e12dab13997ed70d61d00ca46e556038e158061d80cabdfe27bca4eb79dbdf25
4
+ data.tar.gz: 5b62515b720996aebcf3caf180dfcb612b5c53742ea9191fbbac1dd68e2df574
5
5
  SHA512:
6
- metadata.gz: 767adbf626fc89f13958b7c93f554a8f7da8f5d2576f98691b96de45c98665c912822ea8afff48c630b2827f326a78315a84d1b527a197d0c5a8165eec16d0a8
7
- data.tar.gz: 7968f9aa70dc48f2569a5350d2a40fe0948010657e3f702809e67a6a3760f56677fced6402e35fbbf9d8a5ee358f2cbbca45ecd0157f89d38765a36bb692e6d4
6
+ metadata.gz: b7f25060eef4c867fcb0dfd69b79e1c40f15fdc20323b99ca673ddec481f65a5858eac77c63f39d83fd10fc49cc6f03fb13105bad1192d4337a515adb4ddee76
7
+ data.tar.gz: 8af89ced4d25ca59d24faf4c8ebb26b2d8f5ffb15b2337824d885ecd6e3ee69238d15c5f6af89a775a2b2e1cd34e9bb77a6e27c55b2c85ca135b536e8bf168c2
@@ -96,12 +96,6 @@ module JsonSchemaDocs
96
96
  meta = frontmatter.merge(meta)
97
97
  end
98
98
 
99
- if trim
100
- # normalize spacing so that CommonMarker doesn't treat it as `pre`
101
- contents = contents.gsub(/^\s+$/, '')
102
- contents = contents.gsub(/^\s{4}/m, ' ')
103
- end
104
-
105
99
  filename = File.join(path, 'index.html')
106
100
  meta[:filename] = filename
107
101
  output = @renderer.render(contents, meta: meta)
@@ -368,7 +368,7 @@ module JsonSchemaDocs
368
368
  end
369
369
 
370
370
  def pretty_json(json)
371
- JSON.neat_generate(json, wrap: true, sort: true)
371
+ JSON.neat_generate(json, after_colon_1: 1, after_colon_n: 1, wrap: true, sort: true)
372
372
  end
373
373
  end
374
374
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module JsonSchemaDocs
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.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.3.0
4
+ version: 0.3.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-12 00:00:00.000000000 Z
11
+ date: 2019-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prmd