rich_text_renderer 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: bd86d93e5fcd820edab90eb92a7181023bd6d48c8a4bc24ebc3598d945811d01
4
- data.tar.gz: 9a8a677927b8245abc3ab5dcc6849d7abc5cff4addf9205f6fd197366b21748b
3
+ metadata.gz: 1dfd0749807b5bdb1f5d6e58ab9981b0eb53da6c77a3b83311fce965c69499dc
4
+ data.tar.gz: 1d35f014179b1e4e5a759a4fe43e924d414a8263ad7c184fb865959190845408
5
5
  SHA512:
6
- metadata.gz: b98ab775b9072176a43bcba2e5572b673138802ffde43b2b09271975db5fd81cd25010be151d74023235b10bff6e188de38a641a52c25753ac81eb08a06a96f4
7
- data.tar.gz: bc9e99081d5295c33945b6c93d97d9959071361f2c515da3fa07507f0beb2d22725c7c831315d0beb51a8863d3ad287bb5611d1cfd21567c4fe1f636c1dd4703
6
+ metadata.gz: 696565c52de7e8201425e231a45383f9fc831d58d1f491d4d775f36f02f0230a4a30fdc99c0e7999f3baf9063ef8dd5d07132cdcd8c6a706d8bfdc9fc304e6b1
7
+ data.tar.gz: 76672c8dab78fe2d309d36487fc50445f330199b2b734a4151ea0600bb371fe18c2feaddfc87711dce9b0ca8292aa87d6a69edaba9d18fd7836b8b32ce3a776e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v0.3.1
4
+ * Changed CI/CD vendor to CircleCI
5
+ * Fixed handling `nil` nodes
6
+ * Fix linting offences
7
+
3
8
  ## v0.3.0
4
9
  * Added support for Rich Text Tables
5
10
 
@@ -10,7 +10,7 @@ module RichTextRenderer
10
10
  protected
11
11
 
12
12
  def find_renderer(node)
13
- renderer = mappings[node['nodeType']]
13
+ renderer = mappings[node.to_h['nodeType']]
14
14
  return mappings[nil].new(mappings) if renderer.nil? && mappings.key?(nil)
15
15
  renderer.new(mappings) unless renderer.nil?
16
16
  end
@@ -11,6 +11,7 @@ module RichTextRenderer
11
11
  private
12
12
 
13
13
  def node_type(node)
14
+ return 'nil' if node.nil?
14
15
  return node['nodeType'] if node.key?('nodeType')
15
16
  return node['type'] if node.key?('type')
16
17
  node
@@ -1,4 +1,4 @@
1
1
  module RichTextRenderer
2
2
  # Gem Version
3
- VERSION = '0.3.0'.freeze
3
+ VERSION = '0.3.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rich_text_renderer
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
  - Contentful GmbH (David Litvak Bruno)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-26 00:00:00.000000000 Z
11
+ date: 2023-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement