jugyo-termcolor 0.2.1 → 0.2.2
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/README.rdoc +1 -1
- data/examples/example.rb +14 -0
- data/lib/termcolor.rb +1 -1
- metadata +2 -1
data/README.rdoc
CHANGED
data/examples/example.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
require 'rubygems'
|
3
|
+
require 'termcolor'
|
4
|
+
|
5
|
+
puts TermColor.parse <<EOS
|
6
|
+
|
7
|
+
<on_blue><white><bold>TermColor Example</bold></white></on_blue>
|
8
|
+
|
9
|
+
<on_green><white>Termcolor</white></on_green> is a library for <red><bold>ANSII</bold></red> <blue>c</blue><yellow>o</yellow><green>l</green>o<red>r</red> formatting like <on_magenta>HTML</on_magenta>
|
10
|
+
for output in terminal.
|
11
|
+
|
12
|
+
EOS
|
13
|
+
|
14
|
+
["REVERSE", "ON_RED", "DARK", "MAGENTA", "ColorScheme", "RESET", "RED", "ON_BLUE", "BLINK", "ON_BLACK", "BOLD", "BLUE", "ON_WHITE", "QuestionError", "CLEAR", "BLACK", "ON_YELLOW", "SampleColorScheme", "UNDERSCORE", "WHITE", "SystemExtensions", "ERASE_CHAR", "YELLOW", "ON_CYAN", "CONCEALED", "ON_GREEN", "CHARACTER_MODE", "UNDERLINE", "CYAN", "Question", "Menu", "VERSION", "ERASE_LINE", "GREEN", "ON_MAGENTA"]
|
data/lib/termcolor.rb
CHANGED
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jugyo
|
@@ -35,6 +35,7 @@ files:
|
|
35
35
|
- lib/termcolor.rb
|
36
36
|
- spec/spec_helper.rb
|
37
37
|
- spec/termcolor_spec.rb
|
38
|
+
- examples/example.rb
|
38
39
|
- README.rdoc
|
39
40
|
- History.txt
|
40
41
|
- Rakefile
|