richtext 0.2.3 → 0.2.4
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 +4 -4
- data/lib/richtext/document.rb +8 -0
- data/lib/richtext/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16ef90a0b51b4d329a49909ba65958daf6c47de2
|
|
4
|
+
data.tar.gz: 5deebc04e53b025b8da28ddfc706bf50631ab990
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5de128f8a275745aafd51273de5eb9e75d2fb32973e414afae0b0bddb9e7ccba96cc743611100de61ce98c0b502e6b38e2f48b83e2de9e5cde38745a361627e5
|
|
7
|
+
data.tar.gz: 52118715ab8bee14685d83db86bc1f4d552680b80f93e9776b3918ca678c418e5da424ebc62e74344a159da63c6c85cffae09ae79380620394bffa6ec31c66a2
|
data/lib/richtext/document.rb
CHANGED
|
@@ -52,6 +52,14 @@ module RichText
|
|
|
52
52
|
end
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
# To Plain
|
|
56
|
+
#
|
|
57
|
+
# Returns the strings from all of the leaf nodes without any formatting
|
|
58
|
+
# applied.
|
|
59
|
+
def to_plain
|
|
60
|
+
base.to_s
|
|
61
|
+
end
|
|
62
|
+
|
|
55
63
|
# Add (+)
|
|
56
64
|
#
|
|
57
65
|
# Add another Document to this one. If the two are of (exactly) the same
|
data/lib/richtext/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: richtext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sebastian Lindberg
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-07-
|
|
11
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|