jugyo-termcolor 0.2.4 → 0.2.5
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.
- data/Rakefile +2 -2
- data/examples/example.rb +1 -1
- data/lib/termcolor.rb +2 -2
- metadata +3 -3
data/Rakefile
CHANGED
@@ -17,8 +17,8 @@ task :gemspec do |t|
|
|
17
17
|
Gem::Specification.new do |s|
|
18
18
|
s.name = 'termcolor'
|
19
19
|
s.version = '#{TermColor::VERSION}'
|
20
|
-
s.summary = "Termcolor is a library for
|
21
|
-
s.description = "Termcolor is a library for
|
20
|
+
s.summary = "Termcolor is a library for ANSI color formatting like HTML for output in terminal."
|
21
|
+
s.description = "Termcolor is a library for ANSI color formatting like HTML for output in terminal."
|
22
22
|
s.files = %w( #{Dir['lib/**/*.rb'].join(' ')}
|
23
23
|
#{Dir['spec/**/*.rb'].join(' ')}
|
24
24
|
#{Dir['examples/**/*.rb'].join(' ')}
|
data/examples/example.rb
CHANGED
@@ -6,7 +6,7 @@ puts TermColor.parse <<EOS
|
|
6
6
|
|
7
7
|
<on_blue><white><bold>TermColor Example</bold></white></on_blue>
|
8
8
|
|
9
|
-
<on_green><white>Termcolor</white></on_green> is a library for <red><bold>
|
9
|
+
<on_green><white>Termcolor</white></on_green> is a library for <red><bold>ANSI</bold></red> <blue>c</blue><yellow>o</yellow><green>l</green>o<red>r</red> formatting like <on_magenta>HTML</on_magenta>
|
10
10
|
for output in terminal.
|
11
11
|
|
12
12
|
EOS
|
data/lib/termcolor.rb
CHANGED
@@ -7,7 +7,7 @@ require 'rexml/parsers/baseparser'
|
|
7
7
|
require 'rexml/streamlistener'
|
8
8
|
|
9
9
|
module TermColor
|
10
|
-
VERSION = '0.2.
|
10
|
+
VERSION = '0.2.5'
|
11
11
|
include REXML
|
12
12
|
|
13
13
|
class ParseError < StandardError; end
|
@@ -50,7 +50,7 @@ module TermColor
|
|
50
50
|
def tag_end(name)
|
51
51
|
@tag_stack.pop
|
52
52
|
@result << HighLine::CLEAR
|
53
|
-
@result << to_esc_seq(@tag_stack[-1]
|
53
|
+
@result << to_esc_seq(@tag_stack[-1]) unless @tag_stack.empty?
|
54
54
|
end
|
55
55
|
|
56
56
|
def to_esc_seq(name)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jugyo-termcolor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jugyo
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.5.0
|
24
24
|
version:
|
25
|
-
description: Termcolor is a library for
|
25
|
+
description: Termcolor is a library for ANSI color formatting like HTML for output in terminal.
|
26
26
|
email: jugyo.org@gmail.com
|
27
27
|
executables: []
|
28
28
|
|
@@ -67,6 +67,6 @@ rubyforge_project: termcolor
|
|
67
67
|
rubygems_version: 1.2.0
|
68
68
|
signing_key:
|
69
69
|
specification_version: 2
|
70
|
-
summary: Termcolor is a library for
|
70
|
+
summary: Termcolor is a library for ANSI color formatting like HTML for output in terminal.
|
71
71
|
test_files: []
|
72
72
|
|