termcolor 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/termcolor.rb +2 -2
  2. metadata +27 -9
@@ -7,7 +7,7 @@ require 'rexml/parsers/baseparser'
7
7
  require 'rexml/streamlistener'
8
8
 
9
9
  module TermColor
10
- VERSION = '1.2.0'
10
+ VERSION = '1.2.1'
11
11
  include REXML
12
12
 
13
13
  class << self
@@ -82,7 +82,7 @@ module TermColor
82
82
  def tag_end(name)
83
83
  @tag_stack.pop
84
84
  @result << HighLine::CLEAR
85
- @result << to_esc_seq(@tag_stack[-1]) unless @tag_stack.empty?
85
+ @result << @tag_stack.map{|i| to_esc_seq(i)}.join unless @tag_stack.empty?
86
86
  end
87
87
 
88
88
  def to_esc_seq(name)
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termcolor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ hash: 29
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 2
9
+ - 1
10
+ version: 1.2.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - jugyo
@@ -9,19 +15,25 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-12-28 00:00:00 +09:00
18
+ date: 2010-08-26 00:00:00 +09:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: highline
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 1
32
+ - 5
33
+ - 0
23
34
  version: 1.5.0
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  description: "Termcolor is a library for ANSI color formatting like HTML for output in terminal. '<red>red</red>'.termcolor #=> \"\e[31mred\e[0m\""
26
38
  email: jugyo.org@gmail.com
27
39
  executables: []
@@ -52,21 +64,27 @@ rdoc_options:
52
64
  require_paths:
53
65
  - lib
54
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
+ none: false
55
68
  requirements:
56
69
  - - ">="
57
70
  - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
58
74
  version: "0"
59
- version:
60
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
+ none: false
61
77
  requirements:
62
78
  - - ">="
63
79
  - !ruby/object:Gem::Version
80
+ hash: 3
81
+ segments:
82
+ - 0
64
83
  version: "0"
65
- version:
66
84
  requirements: []
67
85
 
68
86
  rubyforge_project: termcolor
69
- rubygems_version: 1.3.5
87
+ rubygems_version: 1.3.7
70
88
  signing_key:
71
89
  specification_version: 3
72
90
  summary: Termcolor is a library for ANSI color formatting like HTML for output in terminal.