ansiterm 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ansiterm/string.rb +6 -5
- data/lib/ansiterm/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7ee1afd97de8627d4106e6d2506c6afeeed80bd
|
4
|
+
data.tar.gz: 902a4d04c8b376286e9da45bc03219e46e6f33c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f0aedde0e2ec57c2ea17cb53c8749d1c144bb78d9f230e98ce215ff7e9daab83e1cf8998a1c2283f53c3ce5f7ea31bf39e5d606e76b600ea859bb518a268ede
|
7
|
+
data.tar.gz: c790e5974e11c75df1216c8966119cf346878b4de6c7accce636729af3b2206e9b9eef028379dcf9b6e003921d0361312834b32f02942774c69b10f275b556ba
|
data/lib/ansiterm/string.rb
CHANGED
@@ -20,6 +20,10 @@ module AnsiTerm
|
|
20
20
|
out
|
21
21
|
end
|
22
22
|
|
23
|
+
def to_s
|
24
|
+
to_str
|
25
|
+
end
|
26
|
+
|
23
27
|
def encoding
|
24
28
|
@str.encoding
|
25
29
|
end
|
@@ -48,12 +52,9 @@ module AnsiTerm
|
|
48
52
|
end
|
49
53
|
|
50
54
|
def << str
|
51
|
-
|
52
|
-
@str << str.raw
|
53
|
-
@attrs << str.attrs
|
54
|
-
# parse(self.to_str + "\e[0m" + str.to_str)
|
55
|
+
parse(self.to_str + "\e[0m" + str.to_str)
|
55
56
|
end
|
56
|
-
|
57
|
+
|
57
58
|
private
|
58
59
|
|
59
60
|
def parse_color(par, params, a, attr_name)
|
data/lib/ansiterm/version.rb
CHANGED