col 1.0.0 → 1.0.1a
Sign up to get free protection for your applications and to get access to all the features.
- data/README +35 -35
- data/lib/col.rb +350 -342
- data/test/col.rb +241 -229
- data/test/col_db.rb +14 -14
- metadata +33 -57
data/test/col.rb
CHANGED
@@ -1,229 +1,241 @@
|
|
1
|
-
|
2
|
-
# This enhancement to String is needed for testing this file.
|
3
|
-
class String
|
4
|
-
require 'term/ansicolor'
|
5
|
-
include Term::ANSIColor
|
6
|
-
end
|
7
|
-
|
8
|
-
D "Simple formatting (single string)" do
|
9
|
-
D "yellow" do
|
10
|
-
Eq Col["string"].y.to_s, "string".yellow
|
11
|
-
Eq Col["string"].fmt("y"), "string".yellow
|
12
|
-
Eq Col["string"].fmt(:y), "string".yellow
|
13
|
-
end
|
14
|
-
D "red" do
|
15
|
-
Eq Col["string"].r.to_s, "string".red
|
16
|
-
Eq Col["string"].fmt(:r), "string".red
|
17
|
-
Eq Col["string"].fmt("r"), "string".red
|
18
|
-
end
|
19
|
-
D "red bold" do
|
20
|
-
Eq Col["string"].rb.to_s, "string".red.bold
|
21
|
-
Eq Col["string"].fmt(:rb), "string".red.bold
|
22
|
-
Eq (Col["string"].fmt [:red, :bold]), "string".red.bold
|
23
|
-
end
|
24
|
-
D "bold" do
|
25
|
-
Eq Col["string"]._b.to_s, "string".bold
|
26
|
-
Eq Col["string"].fmt(:_b), "string".bold
|
27
|
-
end
|
28
|
-
D "black" do
|
29
|
-
Eq Col["string"].B.to_s, "string".black
|
30
|
-
Eq Col["string"].fmt(:B), "string".black
|
31
|
-
end
|
32
|
-
end
|
33
|
-
|
34
|
-
D "General formatting (multiple strings)" do
|
35
|
-
D "example 1" do
|
36
|
-
str1 = Col("one", "two", "three", "four").fmt(:rb, :y, :cb, :m)
|
37
|
-
str2 = Col("one", "two", "three", "four").fmt "rb,y,cb,m"
|
38
|
-
expected = "one".red.bold + "two".yellow + "three".cyan.bold + "four".magenta
|
39
|
-
Eq str1, expected
|
40
|
-
Eq str2, expected
|
41
|
-
end
|
42
|
-
D "example 2" do
|
43
|
-
str1 = Col("one", "two", "three").fmt(:Bb, :_b, :w_) # the _ in w_ is optional
|
44
|
-
str2 = Col("one", "two", "three").fmt "Bb,_b,w_"
|
45
|
-
expected = "one".black.bold + "two".bold + "three".white
|
46
|
-
Eq str1, expected
|
47
|
-
Eq str2, expected
|
48
|
-
end
|
49
|
-
D "example 3" do
|
50
|
-
str1 = Col["one","two"].fmt "y,r"
|
51
|
-
expected = "one".yellow + "two".red
|
52
|
-
Eq str1, expected
|
53
|
-
end
|
54
|
-
D "including strings where no formatting is done" do
|
55
|
-
name, age = "Peter", 14
|
56
|
-
str1 = Col["Name: ", name, " Age: ", age].fmt(:_, :rb, :_, :gb)
|
57
|
-
str2 = Col["Name: ", name, " Age: ", age].fmt "_,rb,_,gb"
|
58
|
-
expected = "Name: " + name.red.bold + " Age: " + age.to_s.green.bold
|
59
|
-
Eq str1, expected
|
60
|
-
Eq str2, expected
|
61
|
-
end
|
62
|
-
end
|
63
|
-
|
64
|
-
D "
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
D "all styles (part
|
74
|
-
str1 = Col["one","two","three","four","five"].fmt(:
|
75
|
-
str2 = Col["one","two","three","four","five"].fmt "
|
76
|
-
expected = "one".
|
77
|
-
+ "
|
78
|
-
Eq str1, expected
|
79
|
-
Eq str2, expected
|
80
|
-
end
|
81
|
-
D "all
|
82
|
-
str1 = Col["one","two","three","four"].fmt(:
|
83
|
-
str2 = Col["one","two","three","four"].fmt "
|
84
|
-
expected = "one".
|
85
|
-
|
86
|
-
Eq
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
Eq
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
Eq str1, expected
|
101
|
-
Eq str2, expected
|
102
|
-
end
|
103
|
-
D "mixed
|
104
|
-
str1 = Col["one","two","three","four"].fmt(:
|
105
|
-
str2 = Col["one","two","three","four"].fmt "
|
106
|
-
expected = "one".
|
107
|
-
+ "three".
|
108
|
-
Eq str1, expected
|
109
|
-
Eq str2, expected
|
110
|
-
end
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
end
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
end
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
D "
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
str
|
181
|
-
Eq Col.
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
Ko
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
c = Col["
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
end
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
1
|
+
|
2
|
+
# This enhancement to String is needed for testing this file.
|
3
|
+
class String
|
4
|
+
require 'term/ansicolor'
|
5
|
+
include Term::ANSIColor
|
6
|
+
end
|
7
|
+
|
8
|
+
D "Simple formatting (single string)" do
|
9
|
+
D "yellow" do
|
10
|
+
Eq Col["string"].y.to_s, "string".yellow
|
11
|
+
Eq Col["string"].fmt("y"), "string".yellow
|
12
|
+
Eq Col["string"].fmt(:y), "string".yellow
|
13
|
+
end
|
14
|
+
D "red" do
|
15
|
+
Eq Col["string"].r.to_s, "string".red
|
16
|
+
Eq Col["string"].fmt(:r), "string".red
|
17
|
+
Eq Col["string"].fmt("r"), "string".red
|
18
|
+
end
|
19
|
+
D "red bold" do
|
20
|
+
Eq Col["string"].rb.to_s, "string".red.bold
|
21
|
+
Eq Col["string"].fmt(:rb), "string".red.bold
|
22
|
+
Eq (Col["string"].fmt [:red, :bold]), "string".red.bold
|
23
|
+
end
|
24
|
+
D "bold" do
|
25
|
+
Eq Col["string"]._b.to_s, "string".bold
|
26
|
+
Eq Col["string"].fmt(:_b), "string".bold
|
27
|
+
end
|
28
|
+
D "black" do
|
29
|
+
Eq Col["string"].B.to_s, "string".black
|
30
|
+
Eq Col["string"].fmt(:B), "string".black
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
D "General formatting (multiple strings)" do
|
35
|
+
D "example 1" do
|
36
|
+
str1 = Col("one", "two", "three", "four").fmt(:rb, :y, :cb, :m)
|
37
|
+
str2 = Col("one", "two", "three", "four").fmt "rb,y,cb,m"
|
38
|
+
expected = "one".red.bold + "two".yellow + "three".cyan.bold + "four".magenta
|
39
|
+
Eq str1, expected
|
40
|
+
Eq str2, expected
|
41
|
+
end
|
42
|
+
D "example 2" do
|
43
|
+
str1 = Col("one", "two", "three").fmt(:Bb, :_b, :w_) # the _ in w_ is optional
|
44
|
+
str2 = Col("one", "two", "three").fmt "Bb,_b,w_"
|
45
|
+
expected = "one".black.bold + "two".bold + "three".white
|
46
|
+
Eq str1, expected
|
47
|
+
Eq str2, expected
|
48
|
+
end
|
49
|
+
D "example 3" do
|
50
|
+
str1 = Col["one","two"].fmt "y,r"
|
51
|
+
expected = "one".yellow + "two".red
|
52
|
+
Eq str1, expected
|
53
|
+
end
|
54
|
+
D "including strings where no formatting is done" do
|
55
|
+
name, age = "Peter", 14
|
56
|
+
str1 = Col["Name: ", name, " Age: ", age].fmt(:_, :rb, :_, :gb)
|
57
|
+
str2 = Col["Name: ", name, " Age: ", age].fmt "_,rb,_,gb"
|
58
|
+
expected = "Name: " + name.red.bold + " Age: " + age.to_s.green.bold
|
59
|
+
Eq str1, expected
|
60
|
+
Eq str2, expected
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
D "Method names, like Col('foo').red.bold" do
|
65
|
+
Eq Col::VERSION, "1.0.1a"
|
66
|
+
Ko Col('foo').red, Col
|
67
|
+
Ko Col('foo').red.bold, Col
|
68
|
+
Eq Col('foo').red.bold.to_str, "foo".red.bold
|
69
|
+
Eq Col['foo'].red.bold.to_str, "foo".red.bold
|
70
|
+
end
|
71
|
+
|
72
|
+
D "More complex formatting (on_red, strikethrough, italic, dark, negative, ...)" do
|
73
|
+
D "all styles (part 1)" do
|
74
|
+
str1 = Col["one","two","three","four","five"].fmt(:_b, :_d, :_i, :_u, :_U)
|
75
|
+
str2 = Col["one","two","three","four","five"].fmt "_b,_d,_i,_u,_U"
|
76
|
+
expected = "one".bold + "two".dark + "three".italic + "four".underline \
|
77
|
+
+ "five".underscore
|
78
|
+
Eq str1, expected
|
79
|
+
Eq str2, expected
|
80
|
+
end
|
81
|
+
D "all styles (part 2)" do
|
82
|
+
str1 = Col["one","two","three","four","five"].fmt(:_k, :_r, :_n, :_c, :_s)
|
83
|
+
str2 = Col["one","two","three","four","five"].fmt "_k,_r,_n,_c,_s"
|
84
|
+
expected = "one".blink + "two".rapid_blink + "three".negative \
|
85
|
+
+ "four".concealed + "five".strikethrough
|
86
|
+
Eq str1, expected
|
87
|
+
Eq str2, expected
|
88
|
+
end
|
89
|
+
D "all backgrounds (part 1)" do
|
90
|
+
str1 = Col["one","two","three","four"].fmt(:__oB, :__or, :__og, :__oy)
|
91
|
+
str2 = Col["one","two","three","four"].fmt "__oB,__or,__og,__oy"
|
92
|
+
expected = "one".on_black + "two".on_red + "three".on_green + "four".on_yellow
|
93
|
+
Eq str1, expected
|
94
|
+
Eq str2, expected
|
95
|
+
end
|
96
|
+
D "all backgrounds (part 2)" do
|
97
|
+
str1 = Col["one","two","three","four"].fmt(:__ob, :__om, :__oc, :__ow)
|
98
|
+
str2 = Col["one","two","three","four"].fmt "__ob,__om,__oc,__ow"
|
99
|
+
expected = "one".on_blue + "two".on_magenta + "three".on_cyan + "four".on_white
|
100
|
+
Eq str1, expected
|
101
|
+
Eq str2, expected
|
102
|
+
end
|
103
|
+
D "mixed 1" do
|
104
|
+
str1 = Col["one","two","three","four"].fmt(:r_ow, :bnoy, :_d, :gs)
|
105
|
+
str2 = Col["one","two","three","four"].fmt "r_ow,bnoy,_d,gs"
|
106
|
+
expected = "one".red.on_white + "two".blue.negative.on_yellow \
|
107
|
+
+ "three".dark + "four".green.strikethrough
|
108
|
+
Eq str1, expected
|
109
|
+
Eq str2, expected
|
110
|
+
end
|
111
|
+
D "mixed 2" do
|
112
|
+
str1 = Col["one","two","three","four"].fmt(:cUob, :wkoB, :m_or, :yc)
|
113
|
+
str2 = Col["one","two","three","four"].fmt "cUob,wkoB,m_or,yc"
|
114
|
+
expected = "one".cyan.underscore.on_blue + "two".white.blink.on_black \
|
115
|
+
+ "three".magenta.on_red + "four".yellow.concealed
|
116
|
+
Eq str1, expected
|
117
|
+
Eq str2, expected
|
118
|
+
end
|
119
|
+
end # "More complex formatting..."
|
120
|
+
|
121
|
+
D ":_ (do-nothing) format specifiers" do
|
122
|
+
Eq Col["..."].fmt(:_), "..."
|
123
|
+
Eq Col["..."].fmt('_'), "..."
|
124
|
+
Eq Col["abc","123"].fmt(:_, :_), "abc123"
|
125
|
+
Eq Col["abc","123"].fmt('_,_'), "abc123"
|
126
|
+
D "totally empty arguments" do
|
127
|
+
Eq Col[].fmt(), ""
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
D "Esoteric options" do
|
132
|
+
D "italic,strikethrough,blink" do
|
133
|
+
D "separate" do
|
134
|
+
str1 = Col["one","two","three"].fmt(:italic, :strikethrough, :blink)
|
135
|
+
expected = "one".italic + "two".strikethrough + "three".blink
|
136
|
+
Eq str1, expected
|
137
|
+
end
|
138
|
+
D "combined" do
|
139
|
+
# one string, several symbols
|
140
|
+
str1 = Col["string"].fmt([:italic, :strikethrough, :blink])
|
141
|
+
expected = "string".italic.strikethrough.blink
|
142
|
+
Eq str1, expected
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
D "Verbose specification" do
|
148
|
+
D "example 1" do
|
149
|
+
str1 = Col["one","two"].fmt( [:bold, :yellow, :on_red], [:cyan, :dark] )
|
150
|
+
expected = "one".bold.yellow.on_red + "two".cyan.dark
|
151
|
+
Eq str1, expected
|
152
|
+
end
|
153
|
+
D "example 2" do
|
154
|
+
str1 = Col["one","two"].fmt([:negative, :dark], [:underscore, :rapid_blink])
|
155
|
+
expected = "one".negative.dark + "two".underscore.rapid_blink
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
D "Col.inline" do
|
160
|
+
D "with correct # arguments" do
|
161
|
+
str1 = Col.inline(
|
162
|
+
"foo", :blue,
|
163
|
+
"bar", :rb,
|
164
|
+
12345, [:white, :negative],
|
165
|
+
"qux", :_
|
166
|
+
)
|
167
|
+
expected = "foo".blue + "bar".red.bold + "12345".white.negative + "qux"
|
168
|
+
Eq str1, expected
|
169
|
+
end
|
170
|
+
D "with incorrect # arguments" do
|
171
|
+
E(Col::Error) do
|
172
|
+
Col.inline( "foo", :blue, "bar", :red, "quux" )
|
173
|
+
end
|
174
|
+
Mt Attest.exception.message, /even/i
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
D "Col.uncolored(string)" do
|
179
|
+
str = Col["foo"].yellow.bold.on_red.to_s
|
180
|
+
Eq Col.uncolored(str), "foo"
|
181
|
+
Eq Col.plain(str), "foo"
|
182
|
+
str = Col["foo","bar"].fmt('rboc,_i')
|
183
|
+
Eq Col.uncolored(str), "foobar"
|
184
|
+
Eq Col.plain(str), "foobar"
|
185
|
+
str = "\e[1;4;37;41mfoo\e[0m"
|
186
|
+
Eq Col.uncolored(str), "foo"
|
187
|
+
Eq Col.plain(str), "foo"
|
188
|
+
str = "foo"
|
189
|
+
Eq Col.uncolored(str), "foo"
|
190
|
+
Eq Col.plain(str), "foo"
|
191
|
+
end
|
192
|
+
|
193
|
+
D "Object properties" do
|
194
|
+
D "Col[...] and Col(...) produce a Col object" do
|
195
|
+
Ko Col['...'], Col
|
196
|
+
Ko Col('...'), Col
|
197
|
+
end
|
198
|
+
D "Col[...].green.on_white is still a Col object" do
|
199
|
+
c = Col["..."].green
|
200
|
+
Ko c, Col
|
201
|
+
c = Col["..."].green.on_white
|
202
|
+
Ko c, Col
|
203
|
+
end
|
204
|
+
D "other methods, like Col[...].rb, produce a String object" do
|
205
|
+
str = Col["foo"].yb
|
206
|
+
Ko str, String
|
207
|
+
str = Col["foo"].fmt [:yellow, :italic, :strikethrough, :on_green]
|
208
|
+
Ko str, String
|
209
|
+
str = Col["one","two"].fmt :g_ow, :yb
|
210
|
+
Ko str, String
|
211
|
+
end
|
212
|
+
D "a Col object is printable (implements to_s)" do
|
213
|
+
c = Col["one","two","three"]
|
214
|
+
Eq c.to_s, "onetwothree"
|
215
|
+
c = Col["..."].green.on_white
|
216
|
+
Eq c.to_s, "...".green.on_white
|
217
|
+
end
|
218
|
+
D "the string returned after formatting has nothing mixed in" do
|
219
|
+
# Whilesoever Term::ANSIColor is mixed in to String, as it is at the top of
|
220
|
+
# this file, I can't think of a way to test this property :(
|
221
|
+
# I could change all the "foo".red.bold to bold(foo("red")) but that's a
|
222
|
+
# _lot_ of work and will make this file quite ugly.
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
D "Erroneous specifications" do
|
227
|
+
D "incorrect number of arguments" do
|
228
|
+
E(Col::Error) { Col["one","two"].fmt :b }
|
229
|
+
Mt Attest.exception.message, /incorrect number of arguments/i
|
230
|
+
E(Col::Error) { Col["one","two"].fmt(:b, :r, :g) }
|
231
|
+
Mt Attest.exception.message, /incorrect number of arguments/i
|
232
|
+
E(Col::Error) { Col["one","two"].fmt(:b, :r, :g, :cbow) }
|
233
|
+
Mt Attest.exception.message, /incorrect number of arguments/i
|
234
|
+
end
|
235
|
+
|
236
|
+
D "invalid code" do
|
237
|
+
E(Col::Error) { Col["one","two"].fmt(:T, :r) }
|
238
|
+
E(Col::Error) { Col["one","two"].fmt "T,r" }
|
239
|
+
Mt Attest.exception.message, /invalid color code/i
|
240
|
+
end
|
241
|
+
end
|
data/test/col_db.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
D "Col::DB" do
|
2
|
-
D "method?" do
|
3
|
-
D "given symbol" do
|
4
|
-
T Col::DB.method? :yellow
|
5
|
-
T Col::DB.method? :blink
|
6
|
-
T Col::DB.method? :on_cyan
|
7
|
-
end
|
8
|
-
D "given string" do
|
9
|
-
T Col::DB.method? "yellow"
|
10
|
-
T Col::DB.method? "blink"
|
11
|
-
T Col::DB.method? "on_cyan"
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
1
|
+
D "Col::DB" do
|
2
|
+
D "method?" do
|
3
|
+
D "given symbol" do
|
4
|
+
T Col::DB.method? :yellow
|
5
|
+
T Col::DB.method? :blink
|
6
|
+
T Col::DB.method? :on_cyan
|
7
|
+
end
|
8
|
+
D "given string" do
|
9
|
+
T Col::DB.method? "yellow"
|
10
|
+
T Col::DB.method? "blink"
|
11
|
+
T Col::DB.method? "on_cyan"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
metadata
CHANGED
@@ -1,90 +1,66 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: col
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1a
|
5
|
+
prerelease: 5
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Gavin Sinclair
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-12-31 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
22
15
|
name: term-ansicolor
|
23
|
-
|
24
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &2164543120 !ruby/object:Gem::Requirement
|
25
17
|
none: false
|
26
|
-
requirements:
|
27
|
-
- -
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 0
|
33
|
-
version: "1.0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.0'
|
34
22
|
type: :runtime
|
35
|
-
|
36
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2164543120
|
25
|
+
description: ! " Console color formatting library with abbreviations (e.g. 'rb'
|
26
|
+
for\n red and bold), and the ability to format several strings easily.\n"
|
37
27
|
email: gsinclair@gmail.com
|
38
28
|
executables: []
|
39
|
-
|
40
29
|
extensions: []
|
41
|
-
|
42
30
|
extra_rdoc_files: []
|
43
|
-
|
44
|
-
files:
|
31
|
+
files:
|
45
32
|
- lib/col.rb
|
46
33
|
- LICENCE
|
47
34
|
- README
|
35
|
+
- test/_setup.rb
|
48
36
|
- test/col.rb
|
49
37
|
- test/col_db.rb
|
50
|
-
- test/_setup.rb
|
51
|
-
has_rdoc: true
|
52
38
|
homepage: http://gsinclair.github.com/col.html
|
53
39
|
licenses: []
|
54
|
-
|
55
40
|
post_install_message:
|
56
41
|
rdoc_options: []
|
57
|
-
|
58
|
-
require_paths:
|
42
|
+
require_paths:
|
59
43
|
- lib
|
60
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
45
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
hash: 59
|
66
|
-
segments:
|
67
|
-
- 1
|
68
|
-
- 8
|
69
|
-
- 6
|
46
|
+
requirements:
|
47
|
+
- - ! '>='
|
48
|
+
- !ruby/object:Gem::Version
|
70
49
|
version: 1.8.6
|
71
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
51
|
none: false
|
73
|
-
requirements:
|
74
|
-
- -
|
75
|
-
- !ruby/object:Gem::Version
|
76
|
-
|
77
|
-
segments:
|
78
|
-
- 0
|
79
|
-
version: "0"
|
52
|
+
requirements:
|
53
|
+
- - ! '>'
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.3.1
|
80
56
|
requirements: []
|
81
|
-
|
82
57
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.
|
58
|
+
rubygems_version: 1.8.10
|
84
59
|
signing_key:
|
85
60
|
specification_version: 3
|
86
61
|
summary: high-level console color formatting
|
87
|
-
test_files:
|
62
|
+
test_files:
|
63
|
+
- test/_setup.rb
|
88
64
|
- test/col.rb
|
89
65
|
- test/col_db.rb
|
90
|
-
|
66
|
+
has_rdoc: true
|