contentful_converter 0.0.1.14 → 0.0.1.15

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
  SHA256:
3
- metadata.gz: b1237c1b023971ca2e44261d2f1bfbe0d6945ec4c857b212446a82785de4cbce
4
- data.tar.gz: ceab77b90406545fabe458c82b2dcb242c47e4f87edb8136edfca25da787f999
3
+ metadata.gz: e7f8152b19db08a3594c2e7366c463347c09bdb806b331e5fac5be913e4b612d
4
+ data.tar.gz: 61e49c0f09a8dc0dc575e541971a7f6c34568dcd3e2f43f4fed527e60c2bd249
5
5
  SHA512:
6
- metadata.gz: 23dc5e0c24d82fea3dc3588862f70c25bd7ba3aa9feb66fca8728e1b50a652cc56ea69ed1328bfdb050e4d27c4a23977741b41a46703205bc7fc005648d51629
7
- data.tar.gz: 6517391e888f88dc67a799aecf914acd76f9e759402a9929405c454a03ba4741628948515fbbe578b349d7720e7c4cc360407ae9e6238bd0b0863d70beed70b0
6
+ metadata.gz: e5fa7529bc96ee6dc6c3ed9542c30e811e146e43d06f4b064bc67be677ef7b392d8a2c0c39f36871ec4311654a88b73c5fe9e8b3d7570c038237865a749b14aa
7
+ data.tar.gz: b3b83b8e8f494d683675f2285a31a468a2f341a5fd2a5ed771b5b5fddff527d9e96ac4ffc8931c1baaec3a4c3095bb5a568f5b5840d19c65587375e1ad7e6c11
data/README.md CHANGED
@@ -1,11 +1,9 @@
1
- ## Contentful HTML to Rich Text converter
1
+ ## Contentful HTML to Rich Text converter (BETA)
2
2
 
3
3
  [![Build Status](https://travis-ci.org/AlexAvlonitis/contentful_converter.svg?branch=master)](https://travis-ci.org/AlexAvlonitis/contentful_converter)
4
4
 
5
5
  Converts plain html string to contentful specific rich_text hash structure.
6
6
 
7
- *WIP, does not cover all html elements, contributions are welcome*
8
-
9
7
  ### Install
10
8
  ```ruby
11
9
  # Rails
@@ -6,6 +6,8 @@ module ContentfulConverter
6
6
  module Nodes
7
7
  class Text < Base
8
8
  def to_h(params = options)
9
+ return nil if value.strip.empty?
10
+
9
11
  super
10
12
  params.delete(:content)
11
13
  params
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ContentfulConverter
4
- VERSION = '0.0.1.14'
4
+ VERSION = '0.0.1.15'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.14
4
+ version: 0.0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Avlonitis