lwe_slate_serializer 1.0.6 → 1.0.7

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: 3203523064340477771165b0b642ea2bb693016bb0c13dfeca8c203e1f2dc229
4
- data.tar.gz: b3444845964c10bb1884bed7e6809c806e3be77a495cc556c96b6f5db3febf41
3
+ metadata.gz: 357ee78ae9c5e22655caebfce304878620477033d63f13a75923a8509dfb6f67
4
+ data.tar.gz: 03f957e81cea5001d40ab05316bee3910509acd5c5c9e396627d370f0782676b
5
5
  SHA512:
6
- metadata.gz: df39513022207149f021beeb14eed2793b0d02ac83b273020de91969c0ee8d7ade06710586fd18d3244aebbc5abc141f92b59904d6ac849eed9dffb80e4a95f8
7
- data.tar.gz: d07eeb965a463e1ac112471ba32af6267d722af8030745e58567be2f0b786bcd23391e5deab49a6b8369356a20a74393623c4a9d9fea66a9e5578ce546c2c4c1
6
+ metadata.gz: ec50813c392a9fc2cc0acfd6063f3346c10512b364e7b7000ba351d654bca283c8c45638a82f8d95e0ffc72e6fd630dcf91a93873774b1e462ea6640ee690c10
7
+ data.tar.gz: c3e120dc1585c020715a4bc1392f0b4aba0c57d51908898d8ccc28f3fb8122fa1442fa108c4e16b89e9506cf7bea8e233112a07576e2771295f8b389ae56aac7
@@ -139,10 +139,10 @@ module SlateSerializer
139
139
 
140
140
  def element_to_node(element, marks = [])
141
141
  handler = @element_register[element.name]
142
- marks = [*marks, handler.mark].compact
142
+ marks = [*marks, handler&.mark].compact
143
143
 
144
144
  children = element.children.flat_map do |child|
145
- if handler.mark
145
+ if handler&.mark
146
146
  element_to_text(child, marks)
147
147
  elsif child.text?
148
148
  next if child.text.strip == ''
@@ -1,3 +1,3 @@
1
1
  module SlateSerializer
2
- VERSION = '1.0.6'.freeze
2
+ VERSION = '1.0.7'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lwe_slate_serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Stam