tiptap-ruby 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/lib/tip_tap/json_renderable.rb +2 -3
- data/lib/tip_tap/node.rb +1 -1
- data/lib/tip_tap/nodes/text.rb +1 -1
- data/lib/tip_tap/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72933879434ba89c5d8e4098c88742ca7c0cba2695440de87a549583df48241d
|
4
|
+
data.tar.gz: f54733e71099b36b8cf59b3beb83a36f330930cc687c768ff9fad5256175ef74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec61a23fa173bf933d2296f7eab32d30192f2d2636004012e22bdf80df985c35dcf8438ef714c119a52e683db22493af03750c961fc2293dfe4486de884f07d4
|
7
|
+
data.tar.gz: e370161edd3717f8a22641e00a468254962c1cd3e4d3e1c89ff64c90d5d85a90e5872c245dfdd1351acf3f0ad076e0ff55eb8f7a024da21793e92a41868b133e
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -9,13 +9,12 @@ module TipTap
|
|
9
9
|
end
|
10
10
|
|
11
11
|
# Generate a JSON object that is useable by the editor
|
12
|
-
def
|
12
|
+
def to_h
|
13
13
|
json = {type: type_name}
|
14
|
-
json = json.merge(content: content.map(&:
|
14
|
+
json = json.merge(content: content.map(&:to_h)) if should_include_content?
|
15
15
|
json = json.merge(attrs: attrs.deep_symbolize_keys) if attrs.present?
|
16
16
|
json
|
17
17
|
end
|
18
|
-
alias_method :to_h, :as_json
|
19
18
|
|
20
19
|
private
|
21
20
|
|
data/lib/tip_tap/node.rb
CHANGED
data/lib/tip_tap/nodes/text.rb
CHANGED
data/lib/tip_tap/version.rb
CHANGED