tiptap-ruby 0.9.3 → 0.9.4

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: '0492d7a3d71f1c04116a24773305134ed9c6c91170efa6dc34689a2acb9b2cdc'
4
- data.tar.gz: a2ad51ac535e7d610cf769be234ce0c3fd3e3812712db7349c3f049c6322ca14
3
+ metadata.gz: 5d6e3f73581789f64e023a6289a9e1fa4776fdfec3a3a06bf41c8c3e5e02bd29
4
+ data.tar.gz: 3b7681d44a568b3c5323a962b278ab76418b336e9a0476ee271bda05cf71d27f
5
5
  SHA512:
6
- metadata.gz: 9a7e0d12c58cc24772e41d531d0e2ddf2e2b96fdc6a7722204884231e1dd4839e26abb1158ae6c1866cda0f82bad6a2151a32cf15e179370231d3795052e122e
7
- data.tar.gz: d2582ec30236b67a8df45f3a8eb65c5d00a3d0fa8b45feab7497a01663d2845992b67dbd48080ca0b0abeadef9be9be4ad7d16cdf56af033c5d012b8dc591fbc
6
+ metadata.gz: f0c7d198b43be937e6403094172f8a41aa3a3c00194098bc218ad38e00d6aa04590cbeaafd89c4e666d33ebb7b0aa5a1d7496a144b709b698a0b997b51c044ef
7
+ data.tar.gz: cd0265869297b4e3df16b51bde740a83714e6a7e2f124358177c6244dc82b9bb7145d5f35354f45efa2c178e4c16c0f730639c7c5b5fcbf809058e2959dfe3f9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.9.4] - 2024-07-18
4
+
5
+ - Ensure that text key is always present when converting document to a hash
6
+
3
7
  ## [0.9.0] - 2024-02-20
4
8
 
5
9
  - Update Nokogiri for security vulnerability
@@ -22,7 +22,9 @@ module TipTap
22
22
  end
23
23
 
24
24
  def to_h
25
- {type: type_name, text: text, marks: marks.map(&:deep_symbolize_keys)}.compact_blank
25
+ data = {type: type_name, text: text.presence || ""}
26
+ data[:marks] = marks.map(&:deep_symbolize_keys) unless marks.empty?
27
+ data
26
28
  end
27
29
 
28
30
  def to_html
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TipTap
4
- VERSION = "0.9.3"
4
+ VERSION = "0.9.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiptap-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Wilken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-22 00:00:00.000000000 Z
11
+ date: 2024-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview