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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e87a8b37e0488b859cc89f8ebcc0ed199518d3fc
4
- data.tar.gz: 738b1172d4ea87b8e4da9fc40eec476a5b0ba6a4
3
+ metadata.gz: c7ee1afd97de8627d4106e6d2506c6afeeed80bd
4
+ data.tar.gz: 902a4d04c8b376286e9da45bc03219e46e6f33c8
5
5
  SHA512:
6
- metadata.gz: e91d53b54b15a24a69944992c4da4882d2c17b549af25dab471c7b19ded12eeef36c986d2fd8f70f078cac64689aff72ec7a1071b0393cb4cad06b380e3a2f24
7
- data.tar.gz: d6b17caf80f4e3a46d478a2d31dc3562817b7da6ed541ccec5fc44d44db7462d9fe34900070d0666da28766b98ca8a2237c8898d92d8043654b990c7bbf1c7ea
6
+ metadata.gz: 4f0aedde0e2ec57c2ea17cb53c8749d1c144bb78d9f230e98ce215ff7e9daab83e1cf8998a1c2283f53c3ce5f7ea31bf39e5d606e76b600ea859bb518a268ede
7
+ data.tar.gz: c790e5974e11c75df1216c8966119cf346878b4de6c7accce636729af3b2206e9b9eef028379dcf9b6e003921d0361312834b32f02942774c69b10f275b556ba
@@ -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
- str = self.class.new(str)
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)
@@ -1,3 +1,3 @@
1
1
  module AnsiTerm
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ansiterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vidar Hokstad