tiptap-ruby 0.9.10 → 0.9.12

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: c1ee50b9c118cf49598981228e48bd274c25d69b14cf72eb86b4e8d8b37c96d3
4
- data.tar.gz: f2a363ce03dc224783fafdbe021f0afa6aa3a4d2fc33fedec9678ac1f1677a48
3
+ metadata.gz: 4a0a40b9c23ed1c8eeb1c3647fa388a2d56bd0daf3c98312a9f58a653dca333f
4
+ data.tar.gz: 5a87ef32fb583d65aa93755be40f183837c924144e5a94eb5ceed3c7a3046dd7
5
5
  SHA512:
6
- metadata.gz: 62e0c461e67452722fc416bea4f2eb05549c81250fc3e9ec7a892291e040f76222a14bee06b28ceec0cb30e1d4da216587b90f9145b408f9e9b336bb605865a6
7
- data.tar.gz: 6d859665510c6199248d383414632e15b2d1581cf9fb5b9adc33ce35c3f1a839c99bf473b15af1648355e0b3776a6c403a3bc02cb60714b2a0bef47c1eb948c0
6
+ metadata.gz: 595e2b238d23308e84794ad0f7a40ecfec32d0f080b271d7f3a0f33fba0b8f5426eb92e3e0cae1aa00354721cbdc9625821fcbc8bb943ee78a071f118e81c68a
7
+ data.tar.gz: d6f45b9c5ea6f699622906ea92ab06ee546ff131924906062c48d4813f223ac3f099659dc216fe5dce5b1f60ad2e34aca86d506080c7d0b7c793960b758bda2e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.9.12] - 2024-12-20
4
+
5
+ - Add inline styles when converting headings and paragraphs to HTML
6
+
7
+ ## [0.9.11] - 2024-09-19
8
+
9
+ - Bump rails-html-sanitizer to 1.6.1 for CVE
10
+ - Raise minimum version of ActionText to >= 7.0
11
+
3
12
  ## [0.9.9] - 2024-09-19
4
13
 
5
14
  - Added ordered_list to Document
@@ -54,7 +54,17 @@ module TipTap
54
54
  end
55
55
 
56
56
  def to_html
57
- content_tag(html_tag, safe_join(content.map(&:to_html)), class: html_class_name)
57
+ content_tag(html_tag, safe_join(content.map(&:to_html)), html_attributes)
58
+ end
59
+
60
+ def html_attributes
61
+ {style: inline_styles, class: html_class_name}.reject { |key, value| value.blank? }
62
+ end
63
+
64
+ def inline_styles
65
+ styles = []
66
+ styles << "text-align: #{attrs["textAlign"]};" if attrs["textAlign"]
67
+ styles.join(" ")
58
68
  end
59
69
  end
60
70
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TipTap
4
- VERSION = "0.9.10"
4
+ VERSION = "0.9.12"
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.10
4
+ version: 0.9.12
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-10-29 00:00:00.000000000 Z
11
+ date: 2024-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionview
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '6.0'
19
+ version: '7.0'
20
20
  type: :runtime
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: '6.0'
26
+ version: '7.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  - !ruby/object:Gem::Version
100
100
  version: '0'
101
101
  requirements: []
102
- rubygems_version: 3.5.16
102
+ rubygems_version: 3.5.22
103
103
  signing_key:
104
104
  specification_version: 4
105
105
  summary: Parse, generate and render TipTap documents in Ruby.