color_text 0.0.1 → 0.0.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/lib/color_text.rb +5 -5
- metadata +3 -3
data/lib/color_text.rb
CHANGED
|
@@ -2,13 +2,13 @@ module ColorText
|
|
|
2
2
|
def colorize(text, color_code)
|
|
3
3
|
"\e[#{color_code}m#{text}\e[0m"
|
|
4
4
|
end
|
|
5
|
-
GRAY
|
|
6
|
-
RED
|
|
7
|
-
GREEN
|
|
5
|
+
GRAY = 30
|
|
6
|
+
RED = 31
|
|
7
|
+
GREEN = 32
|
|
8
8
|
YELLOW = 33
|
|
9
|
-
BLUE
|
|
9
|
+
BLUE = 34
|
|
10
10
|
PURPLE = 35
|
|
11
|
-
NEON
|
|
11
|
+
NEON = 36
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
class String
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: color_text
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -11,7 +11,7 @@ bindir: bin
|
|
|
11
11
|
cert_chain: []
|
|
12
12
|
date: 2012-07-01 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
|
-
description: Make
|
|
14
|
+
description: Make your terminal output colored text with ease.
|
|
15
15
|
email: john.isaacks@programming-perils.com
|
|
16
16
|
executables: []
|
|
17
17
|
extensions: []
|
|
@@ -41,5 +41,5 @@ rubyforge_project:
|
|
|
41
41
|
rubygems_version: 1.8.15
|
|
42
42
|
signing_key:
|
|
43
43
|
specification_version: 3
|
|
44
|
-
summary: Easy
|
|
44
|
+
summary: Easy text colors in bash!
|
|
45
45
|
test_files: []
|