col 1.0.0 → 1.0.1a

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +35 -35
  2. data/lib/col.rb +350 -342
  3. data/test/col.rb +241 -229
  4. data/test/col_db.rb +14 -14
  5. 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 "More complex formatting (on_red, strikethrough, italic, dark, negative, ...)" do
65
- D "all styles (part 1)" do
66
- str1 = Col["one","two","three","four","five"].fmt(:_b, :_d, :_i, :_u, :_U)
67
- str2 = Col["one","two","three","four","five"].fmt "_b,_d,_i,_u,_U"
68
- expected = "one".bold + "two".dark + "three".italic + "four".underline \
69
- + "five".underscore
70
- Eq str1, expected
71
- Eq str2, expected
72
- end
73
- D "all styles (part 2)" do
74
- str1 = Col["one","two","three","four","five"].fmt(:_k, :_r, :_n, :_c, :_s)
75
- str2 = Col["one","two","three","four","five"].fmt "_k,_r,_n,_c,_s"
76
- expected = "one".blink + "two".rapid_blink + "three".negative \
77
- + "four".concealed + "five".strikethrough
78
- Eq str1, expected
79
- Eq str2, expected
80
- end
81
- D "all backgrounds (part 1)" do
82
- str1 = Col["one","two","three","four"].fmt(:__oB, :__or, :__og, :__oy)
83
- str2 = Col["one","two","three","four"].fmt "__oB,__or,__og,__oy"
84
- expected = "one".on_black + "two".on_red + "three".on_green + "four".on_yellow
85
- Eq str1, expected
86
- Eq str2, expected
87
- end
88
- D "all backgrounds (part 2)" do
89
- str1 = Col["one","two","three","four"].fmt(:__ob, :__om, :__oc, :__ow)
90
- str2 = Col["one","two","three","four"].fmt "__ob,__om,__oc,__ow"
91
- expected = "one".on_blue + "two".on_magenta + "three".on_cyan + "four".on_white
92
- Eq str1, expected
93
- Eq str2, expected
94
- end
95
- D "mixed 1" do
96
- str1 = Col["one","two","three","four"].fmt(:r_ow, :bnoy, :_d, :gs)
97
- str2 = Col["one","two","three","four"].fmt "r_ow,bnoy,_d,gs"
98
- expected = "one".red.on_white + "two".blue.negative.on_yellow \
99
- + "three".dark + "four".green.strikethrough
100
- Eq str1, expected
101
- Eq str2, expected
102
- end
103
- D "mixed 2" do
104
- str1 = Col["one","two","three","four"].fmt(:cUob, :wkoB, :m_or, :yc)
105
- str2 = Col["one","two","three","four"].fmt "cUob,wkoB,m_or,yc"
106
- expected = "one".cyan.underscore.on_blue + "two".white.blink.on_black \
107
- + "three".magenta.on_red + "four".yellow.concealed
108
- Eq str1, expected
109
- Eq str2, expected
110
- end
111
- end # "More complex formatting..."
112
-
113
- D ":_ (do-nothing) format specifiers" do
114
- Eq Col["..."].fmt(:_), "..."
115
- Eq Col["..."].fmt('_'), "..."
116
- Eq Col["abc","123"].fmt(:_, :_), "abc123"
117
- Eq Col["abc","123"].fmt('_,_'), "abc123"
118
- D "totally empty arguments" do
119
- Eq Col[].fmt(), ""
120
- end
121
- end
122
-
123
- D "Esoteric options" do
124
- D "italic,strikethrough,blink" do
125
- D "separate" do
126
- str1 = Col["one","two","three"].fmt(:italic, :strikethrough, :blink)
127
- expected = "one".italic + "two".strikethrough + "three".blink
128
- Eq str1, expected
129
- end
130
- D "combined" do
131
- # one string, several symbols
132
- str1 = Col["string"].fmt([:italic, :strikethrough, :blink])
133
- expected = "string".italic.strikethrough.blink
134
- Eq str1, expected
135
- end
136
- end
137
- end
138
-
139
- D "Verbose specification" do
140
- D "example 1" do
141
- str1 = Col["one","two"].fmt( [:bold, :yellow, :on_red], [:cyan, :dark] )
142
- expected = "one".bold.yellow.on_red + "two".cyan.dark
143
- Eq str1, expected
144
- end
145
- D "example 2" do
146
- str1 = Col["one","two"].fmt([:negative, :dark], [:underscore, :rapid_blink])
147
- expected = "one".negative.dark + "two".underscore.rapid_blink
148
- end
149
- end
150
-
151
- D "Col.inline" do
152
- D "with correct # arguments" do
153
- str1 = Col.inline(
154
- "foo", :blue,
155
- "bar", :rb,
156
- 12345, [:white, :negative],
157
- "qux", :_
158
- )
159
- expected = "foo".blue + "bar".red.bold + "12345".white.negative + "qux"
160
- Eq str1, expected
161
- end
162
- D "with incorrect # arguments" do
163
- E(Col::Error) do
164
- Col.inline( "foo", :blue, "bar", :red, "quux" )
165
- end
166
- Mt Attest.exception.message, /even/i
167
- end
168
- end
169
-
170
- D "Col.uncolored(string)" do
171
- str = Col["foo"].yellow.bold.on_red.to_s
172
- Eq Col.uncolored(str), "foo"
173
- Eq Col.plain(str), "foo"
174
- str = Col["foo","bar"].fmt('rboc,_i')
175
- Eq Col.uncolored(str), "foobar"
176
- Eq Col.plain(str), "foobar"
177
- str = "\e[1;4;37;41mfoo\e[0m"
178
- Eq Col.uncolored(str), "foo"
179
- Eq Col.plain(str), "foo"
180
- str = "foo"
181
- Eq Col.uncolored(str), "foo"
182
- Eq Col.plain(str), "foo"
183
- end
184
-
185
- D "Object properties" do
186
- D "Col[...].green.on_white is still a Col object" do
187
- c = Col["..."].green
188
- Ko c, Col
189
- c = Col["..."].green.on_white
190
- Ko c, Col
191
- end
192
- D "other methods, like Col[...].rb, produce a String object" do
193
- str = Col["foo"].yb
194
- Ko str, String
195
- str = Col["foo"].fmt [:yellow, :italic, :strikethrough, :on_green]
196
- Ko str, String
197
- str = Col["one","two"].fmt :g_ow, :yb
198
- Ko str, String
199
- end
200
- D "a Col object is printable (implements to_s)" do
201
- c = Col["one","two","three"]
202
- Eq c.to_s, "onetwothree"
203
- c = Col["..."].green.on_white
204
- Eq c.to_s, "...".green.on_white
205
- end
206
- D "the string returned after formatting has nothing mixed in" do
207
- # Whilesoever Term::ANSIColor is mixed in to String, as it is at the top of
208
- # this file, I can't think of a way to test this property :(
209
- # I could change all the "foo".red.bold to bold(foo("red")) but that's a
210
- # _lot_ of work and will make this file quite ugly.
211
- end
212
- end
213
-
214
- D "Erroneous specifications" do
215
- D "incorrect number of arguments" do
216
- E(Col::Error) { Col["one","two"].fmt :b }
217
- Mt Attest.exception.message, /incorrect number of arguments/i
218
- E(Col::Error) { Col["one","two"].fmt(:b, :r, :g) }
219
- Mt Attest.exception.message, /incorrect number of arguments/i
220
- E(Col::Error) { Col["one","two"].fmt(:b, :r, :g, :cbow) }
221
- Mt Attest.exception.message, /incorrect number of arguments/i
222
- end
223
-
224
- D "invalid code" do
225
- E(Col::Error) { Col["one","two"].fmt(:T, :r) }
226
- E(Col::Error) { Col["one","two"].fmt "T,r" }
227
- Mt Attest.exception.message, /invalid color code/i
228
- end
229
- end
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
- hash: 23
5
- prerelease: false
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
- date: 2010-07-25 00:00:00 +10:00
19
- default_executable:
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
- prerelease: false
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
- hash: 15
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
- version_requirements: *id001
36
- description: " Console color formatting library with abbreviations (e.g. 'rb' for\n red and bold), and the ability to format several strings easily.\n"
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
- hash: 3
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.3.7
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
- - test/_setup.rb
66
+ has_rdoc: true