kramdown-prismic 0.1.1 → 0.1.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: 784c5db25b65fde0e92c1bc62bdd66449c0146b8
4
- data.tar.gz: 37059d2067f4a37515281b650fb93b040578b0fd
3
+ metadata.gz: 478fc54041b88fe3724b5adb47ef50c1268fcfed
4
+ data.tar.gz: dc9377d07e20fd263380158356b94e49f116af53
5
5
  SHA512:
6
- metadata.gz: b8e0c03b2c032fa205ccc69dca3e30bf0ee64d2d656631aceb9c10a360fbc89eddfebe6535c2b005bb08c30f58ef42eadc36e3a145e0d79ba76e09da28fe9a18
7
- data.tar.gz: 2dc64bc2e5efa943c9c286c7b9f8bc56dae50f98ff2371b68a890fbf98d03a703305273d9e16b88f194032691f23e13f1e6133aa8acd5014b8c94f15c5e3b5ca
6
+ metadata.gz: 04deb0aed85ffb4c1f043f80a20e4ecef50ff69d53aa809eca3ec83297c07cc4383dc22d20deb13fdc9d790b48d26610454a170178aa6e0f900e81717c86a66d
7
+ data.tar.gz: f4b2afe4d8626f581ca937a35eef188d7a0cdd85235902db3dbddb7998e9a5a912c0ae397a4dfe4ee3805a5057f8c0e5a26ffd07e4b78bdad64cd86bc3a57393
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## Version 0.1.2
4
+
5
+ - fix output with empty paragraph
6
+
7
+ ## Version 0.1.1
8
+
9
+ - Fix json of the image
10
+
11
+ ## Version 0.1.0
12
+
13
+ - Initial version
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kramdown-prismic (0.1.1)
4
+ kramdown-prismic (0.1.2)
5
5
  kramdown (~> 1.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module KramdownPrismic
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -59,6 +59,7 @@ module Kramdown
59
59
  end
60
60
 
61
61
  def convert_p(element)
62
+ return nil if element.children.size == 0
62
63
  {
63
64
  type: "paragraph",
64
65
  content: extract_content(element)
@@ -309,13 +309,6 @@ class KramdownPrismicTest < Minitest::Test
309
309
 
310
310
  def test_convert_img
311
311
  expected = [
312
- {
313
- type: "paragraph",
314
- content: {
315
- text: "",
316
- spans: []
317
- }
318
- },
319
312
  {
320
313
  type: "image",
321
314
  content: {
@@ -338,13 +331,6 @@ class KramdownPrismicTest < Minitest::Test
338
331
 
339
332
  def test_convert_double_img
340
333
  expected = [
341
- {
342
- type: "paragraph",
343
- content: {
344
- text: "",
345
- spans: []
346
- }
347
- },
348
334
  {
349
335
  type: "image",
350
336
  content: {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kramdown-prismic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - François de Metz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-31 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kramdown
@@ -60,6 +60,7 @@ extra_rdoc_files: []
60
60
  files:
61
61
  - ".gitignore"
62
62
  - ".travis.yml"
63
+ - Changelog.md
63
64
  - Gemfile
64
65
  - Gemfile.lock
65
66
  - LICENSE