tiptap-ruby 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd7f762d8377a8a4b86b901315b1b4d3d5bc96abd58f6b469861e84ba87b6296
4
- data.tar.gz: cfaa3409507308edef86236e01b3d563d023546f2fa75eb0c4d7a0b476bbb7d3
3
+ metadata.gz: 509879e5f27755a131f63f83c7375eb4aa2eaffb575d7f7e10531f402a59a617
4
+ data.tar.gz: 9a6006a38ca591dca214830907e3a258d6829db4aac044d0b2052c80d281c6cd
5
5
  SHA512:
6
- metadata.gz: 99ceb0b18400d9c1549e433d4c5ed488797f9599366859ebd10d17d75b64a80ffb58628786e464abddb7caea42a58d2d1a498ce901ed96d14b026dcfda85c7b1
7
- data.tar.gz: ac01ac19fd18f06518711922821b5477fc03bc56ea98797b7e4c8e2f35d4d6f9c59c333583a6c136a66d0007f7a1241987baa9c9e657dba812c6ae1b34b97c46
6
+ metadata.gz: 62a148965cdaccfc5ba2f18637c681563ee73e83947b6e907d27669ec81f9b24b74a069daf479095433a1ce8c717da7e0846f01217675b2677efdfb109468e7b
7
+ data.tar.gz: f72265d70fe15905adade16d29abda9b4b3425c1080e50d4ae34b14aeb29a2017d9276bb6b8352005dfd3d7774164f0a959e7357925353a6e2ae1e46b6c84c9e
@@ -37,7 +37,7 @@ module TipTap
37
37
  value
38
38
  end
39
39
 
40
- def to_plain_text
40
+ def to_plain_text(separator: " ")
41
41
  text
42
42
  end
43
43
 
@@ -3,8 +3,8 @@
3
3
  module TipTap
4
4
  module PlainTextRenderable
5
5
  # Useful for searching
6
- def to_plain_text
7
- content.map(&:to_plain_text).join(" ")
6
+ def to_plain_text(separator: " ")
7
+ content.map { |node| node.to_plain_text(separator: separator) }.join(separator)
8
8
  end
9
9
  end
10
10
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TipTap
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiptap-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Wilken