riel 1.1.2 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/riel/ansicolor.rb +4 -6
- data/lib/riel/array.rb +1 -0
- data/lib/riel/asciitable/cell.rb +82 -0
- data/lib/riel/asciitable/column.rb +26 -0
- data/lib/riel/asciitable/row.rb +106 -0
- data/lib/riel/asciitable/table.rb +295 -0
- data/lib/riel/fdprocessor.rb +68 -0
- data/lib/riel/integer.rb +23 -0
- data/lib/riel/io.rb +22 -17
- data/lib/riel/log/log.rb +251 -0
- data/lib/riel/log/loggable.rb +103 -0
- data/lib/riel/log/logger.rb +297 -0
- data/lib/riel/log/severity.rb +22 -0
- data/lib/riel/log.rb +9 -473
- data/lib/riel/pathname.rb +5 -1
- data/lib/riel/rcfile.rb +1 -1
- data/lib/riel/string.rb +8 -8
- data/lib/riel/text.rb +57 -53
- data/lib/riel.rb +8 -4
- data/test/riel/integer_test.rb +44 -0
- data/test/riel/io_test.rb +2 -5
- data/test/riel/log_test.rb +30 -32
- metadata +68 -56
data/lib/riel/text.rb
CHANGED
@@ -26,7 +26,7 @@ module Text
|
|
26
26
|
underscore
|
27
27
|
underline
|
28
28
|
blink
|
29
|
-
negative
|
29
|
+
negative
|
30
30
|
concealed
|
31
31
|
black
|
32
32
|
red
|
@@ -83,7 +83,7 @@ module Text
|
|
83
83
|
|
84
84
|
attr_reader :colors
|
85
85
|
|
86
|
-
def self.parse_colors
|
86
|
+
def self.parse_colors str
|
87
87
|
str.scan(Regexp.new(COLORS_RE)).collect do |color|
|
88
88
|
color[0] ? "on_" + color[0] : color[1]
|
89
89
|
end
|
@@ -103,20 +103,23 @@ module Text
|
|
103
103
|
all_colors
|
104
104
|
end
|
105
105
|
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
106
|
+
# todo: change this to use method_missing:
|
107
|
+
if false
|
108
|
+
all_colors.each do |name|
|
109
|
+
meth = Array.new
|
110
|
+
meth << "def #{name}(&blk)"
|
111
|
+
meth << " color(\"#{name}\", &blk)"
|
112
|
+
meth << "end"
|
111
113
|
|
112
|
-
|
114
|
+
self.class_eval meth.join("\n")
|
115
|
+
end
|
113
116
|
end
|
114
117
|
|
115
|
-
def initialize
|
118
|
+
def initialize colors
|
116
119
|
@colors = colors
|
117
120
|
end
|
118
121
|
|
119
|
-
def highlight
|
122
|
+
def highlight str
|
120
123
|
# implemented by subclasses
|
121
124
|
end
|
122
125
|
|
@@ -124,7 +127,7 @@ module Text
|
|
124
127
|
(@colors || '').join(' ')
|
125
128
|
end
|
126
129
|
|
127
|
-
def ==
|
130
|
+
def == other
|
128
131
|
return @colors.sort == other.colors.sort
|
129
132
|
end
|
130
133
|
|
@@ -133,8 +136,8 @@ module Text
|
|
133
136
|
# colorized and the stream is reset. Otherwise, only the code for the given
|
134
137
|
# color name is returned.
|
135
138
|
|
136
|
-
def color
|
137
|
-
#
|
139
|
+
def color colorstr, obj = self, &blk
|
140
|
+
# ^^^^ this is the Module self
|
138
141
|
|
139
142
|
colornames = self.class.parse_colors(colorstr)
|
140
143
|
result = names_to_code(colornames)
|
@@ -162,27 +165,25 @@ module Text
|
|
162
165
|
# underscore bold magenta on cyan
|
163
166
|
# underscore red on cyan
|
164
167
|
|
165
|
-
def code
|
168
|
+
def code str
|
166
169
|
fg, bg = str.split(/\s*\bon_?\s*/)
|
167
170
|
(fg ? foreground(fg) : "") + (bg ? background(bg) : "")
|
168
171
|
end
|
169
172
|
|
170
173
|
# Returns the code for the given background color(s).
|
171
|
-
def background
|
172
|
-
names_to_code
|
174
|
+
def background bgcolor
|
175
|
+
names_to_code "on_" + bgcolor
|
173
176
|
end
|
174
177
|
|
175
178
|
# Returns the code for the given foreground color(s).
|
176
|
-
def foreground
|
177
|
-
fgcolor.split(/\s+/).collect { |fg| names_to_code
|
179
|
+
def foreground fgcolor
|
180
|
+
fgcolor.split(/\s+/).collect { |fg| names_to_code fg }.join("")
|
178
181
|
end
|
179
182
|
|
180
183
|
end
|
181
184
|
|
182
185
|
# Highlights using ANSI escape sequences.
|
183
|
-
|
184
186
|
class ANSIHighlighter < Highlighter
|
185
|
-
|
186
187
|
ATTRIBUTES = Hash[
|
187
188
|
'none' => '0',
|
188
189
|
'reset' => '0',
|
@@ -212,19 +213,18 @@ module Text
|
|
212
213
|
|
213
214
|
RESET = "\e[0m"
|
214
215
|
|
215
|
-
def self.make
|
216
|
-
colors = parse_colors
|
217
|
-
ANSIHighlighter.new
|
216
|
+
def self.make str
|
217
|
+
colors = parse_colors str
|
218
|
+
ANSIHighlighter.new colors
|
218
219
|
end
|
219
220
|
|
220
|
-
def initialize
|
221
|
+
def initialize colors = DEFAULT_COLORS
|
221
222
|
super
|
222
223
|
@code = nil
|
223
224
|
end
|
224
225
|
|
225
226
|
# Returns the escape sequence for the given names.
|
226
|
-
|
227
|
-
def names_to_code(names)
|
227
|
+
def names_to_code names
|
228
228
|
str = ""
|
229
229
|
names.each do |name|
|
230
230
|
code = ATTRIBUTES[name]
|
@@ -235,11 +235,11 @@ module Text
|
|
235
235
|
str
|
236
236
|
end
|
237
237
|
|
238
|
-
def highlight
|
238
|
+
def highlight str
|
239
239
|
@code ||= begin
|
240
240
|
@code = @colors.collect do |color|
|
241
|
-
names_to_code
|
242
|
-
end.join
|
241
|
+
names_to_code color
|
242
|
+
end.join ""
|
243
243
|
end
|
244
244
|
|
245
245
|
@code + str + RESET
|
@@ -255,7 +255,6 @@ module Text
|
|
255
255
|
# Thus, no magenta or cyan.
|
256
256
|
|
257
257
|
class HTMLHighlighter < Highlighter
|
258
|
-
|
259
258
|
def initialize
|
260
259
|
# we need to know what we're resetting from (bold, font, underlined ...)
|
261
260
|
@stack = []
|
@@ -263,7 +262,7 @@ module Text
|
|
263
262
|
|
264
263
|
# Returns the start tag for the given name.
|
265
264
|
|
266
|
-
def start_style
|
265
|
+
def start_style name
|
267
266
|
case name
|
268
267
|
when "negative"
|
269
268
|
"<span style=\"color: white; background-color: black\">"
|
@@ -282,7 +281,7 @@ module Text
|
|
282
281
|
"</span>"
|
283
282
|
end
|
284
283
|
|
285
|
-
def color_value
|
284
|
+
def color_value cname
|
286
285
|
case cname
|
287
286
|
when "cyan"
|
288
287
|
"#00FFFF"
|
@@ -294,8 +293,7 @@ module Text
|
|
294
293
|
end
|
295
294
|
|
296
295
|
# Returns the code for the given name.
|
297
|
-
|
298
|
-
def names_to_code(names)
|
296
|
+
def names_to_code names
|
299
297
|
str = ""
|
300
298
|
|
301
299
|
names.each do |name|
|
@@ -342,42 +340,51 @@ module Text
|
|
342
340
|
# Does no highlighting.
|
343
341
|
|
344
342
|
class NonHighlighter < Highlighter
|
345
|
-
|
346
343
|
def initialize
|
347
|
-
super
|
344
|
+
super nil
|
348
345
|
end
|
349
346
|
|
350
347
|
# Since the NonHighlighter does no highlighting, and thus its name, this
|
351
348
|
# returns an empty string.
|
352
|
-
|
353
|
-
def names_to_code(colorname)
|
349
|
+
def names_to_code colorname
|
354
350
|
""
|
355
351
|
end
|
356
|
-
|
357
352
|
end
|
358
353
|
|
359
|
-
|
360
354
|
# An object that can be highlighted. This is used by the String class.
|
361
355
|
|
362
356
|
module Highlightable
|
363
|
-
|
364
357
|
# The highlighter for the class in which this module is included.
|
365
|
-
|
366
358
|
@@highlighter = ANSIHighlighter.new(Text::Highlighter::DEFAULT_COLORS)
|
367
359
|
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
360
|
+
if false
|
361
|
+
Text::Highlighter::ATTRIBUTES.each do |name|
|
362
|
+
meth = Array.new
|
363
|
+
meth << "def #{name}(&blk)"
|
364
|
+
meth << " @@highlighter.color(\"#{name}\", self, &blk)"
|
365
|
+
meth << "end"
|
373
366
|
|
374
|
-
|
367
|
+
self.class_eval meth.join("\n")
|
368
|
+
end
|
369
|
+
end
|
370
|
+
|
371
|
+
# this dynamically adds methods for individual colors.
|
372
|
+
def method_missing(meth, *args, &blk)
|
373
|
+
if Text::Highlighter::all_colors.include? meth.to_s
|
374
|
+
methdecl = Array.new
|
375
|
+
methdecl << "def #{meth}(&blk)"
|
376
|
+
methdecl << " @@highlighter.color(\"#{meth}\", self, &blk)"
|
377
|
+
methdecl << "end"
|
378
|
+
self.class.class_eval methdecl.join("\n")
|
379
|
+
send meth, *args, &blk
|
380
|
+
else
|
381
|
+
super
|
382
|
+
end
|
375
383
|
end
|
376
384
|
|
377
385
|
# Sets the highlighter for this class. This can be either by type or by
|
378
386
|
# String.
|
379
|
-
|
380
|
-
def highlighter=(hl)
|
387
|
+
def highlighter= hl
|
381
388
|
$VERBOSE = false
|
382
389
|
@@highlighter = case hl
|
383
390
|
when Text::Highlighter
|
@@ -393,11 +400,8 @@ module Text
|
|
393
400
|
end
|
394
401
|
|
395
402
|
end
|
396
|
-
|
397
403
|
end
|
398
|
-
|
399
404
|
$HAVE_TEXT_HIGHLIGHT = true
|
400
|
-
|
401
405
|
end
|
402
406
|
|
403
407
|
# String is extended to support highlighting.
|
data/lib/riel.rb
CHANGED
@@ -1,13 +1,17 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
riellibdir = File.dirname(__FILE__)
|
2
|
+
|
3
|
+
$:.unshift(riellibdir) unless
|
4
|
+
$:.include?(riellibdir) || $:.include?(File.expand_path(riellibdir))
|
3
5
|
|
4
6
|
module RIEL
|
5
7
|
VERSION = '0.0.1'
|
6
8
|
end
|
7
9
|
|
8
|
-
rbfiles = Dir[
|
10
|
+
rbfiles = Dir[riellibdir + "/riel/**/*.rb"]
|
11
|
+
|
12
|
+
rieldir = riellibdir + '/riel'
|
9
13
|
|
10
14
|
rbfiles.sort.each do |rbfile|
|
11
|
-
rootname = rbfile.
|
15
|
+
rootname = rbfile.sub(Regexp.new('^' + rieldir + '/([\/\w]+)\.rb'), '\1')
|
12
16
|
require "riel/" + rootname
|
13
17
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
require 'riel/integer'
|
4
|
+
|
5
|
+
module PVN
|
6
|
+
class TestInteger < Test::Unit::TestCase
|
7
|
+
|
8
|
+
def setup
|
9
|
+
end
|
10
|
+
|
11
|
+
def assert_true boolean, message = nil
|
12
|
+
assert boolean, message
|
13
|
+
end
|
14
|
+
|
15
|
+
def assert_false boolean, message = nil
|
16
|
+
assert !boolean, message
|
17
|
+
end
|
18
|
+
|
19
|
+
def assert_negative_integer val
|
20
|
+
assert_true Integer.negative? val
|
21
|
+
end
|
22
|
+
|
23
|
+
def assert_not_negative_integer val
|
24
|
+
assert_false Integer.negative? val
|
25
|
+
end
|
26
|
+
|
27
|
+
def test_negative_integer
|
28
|
+
assert_negative_integer(-3)
|
29
|
+
assert_negative_integer("-3")
|
30
|
+
assert_negative_integer(-10)
|
31
|
+
assert_negative_integer "-15"
|
32
|
+
assert_negative_integer(-100)
|
33
|
+
assert_negative_integer "-9002"
|
34
|
+
|
35
|
+
assert_not_negative_integer 1
|
36
|
+
assert_not_negative_integer "1"
|
37
|
+
assert_not_negative_integer 1.5
|
38
|
+
assert_not_negative_integer "5.1"
|
39
|
+
assert_not_negative_integer 123
|
40
|
+
assert_not_negative_integer "123"
|
41
|
+
assert_not_negative_integer "negative three"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/test/riel/io_test.rb
CHANGED
@@ -4,9 +4,7 @@
|
|
4
4
|
require 'rubyunit'
|
5
5
|
require 'riel/io'
|
6
6
|
|
7
|
-
|
8
7
|
class IOTestCase < RUNIT::TestCase
|
9
|
-
|
10
8
|
def xtest_readlines
|
11
9
|
orig = $/
|
12
10
|
|
@@ -28,10 +26,9 @@ class IOTestCase < RUNIT::TestCase
|
|
28
26
|
|
29
27
|
puts "writelines: <<<#{writelines}>>>"
|
30
28
|
|
31
|
-
IO.writelines
|
29
|
+
IO.writelines name, writelines
|
32
30
|
|
33
|
-
readlines = IO
|
31
|
+
readlines = IO::readlines name
|
34
32
|
assert_equal writelines.collect { |line| line + "\n" }, readlines
|
35
33
|
end
|
36
|
-
|
37
34
|
end
|
data/test/riel/log_test.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
#!/usr/bin/ruby -w
|
2
2
|
# -*- ruby -*-
|
3
3
|
|
4
|
-
#!/usr/bin/ruby -w
|
5
|
-
# -*- ruby -*-
|
6
|
-
|
7
4
|
require 'pathname'
|
8
5
|
require 'rubyunit'
|
9
6
|
require 'stringio'
|
@@ -39,15 +36,15 @@ class LogTestCase < RUNIT::TestCase
|
|
39
36
|
}
|
40
37
|
|
41
38
|
expected_output = [
|
42
|
-
"[log_test.rb
|
43
|
-
"[log_test.rb
|
44
|
-
"[log_test.rb
|
45
|
-
"[log_test.rb
|
46
|
-
"[log_test.rb
|
47
|
-
"[log_test.rb
|
48
|
-
"[log_test.rb
|
49
|
-
"[log_test.rb
|
50
|
-
"[log_test.rb
|
39
|
+
"[ ...test/riel/log_test.rb: 30] {test_output_arg } hello, world?",
|
40
|
+
"[ ...test/riel/log_test.rb: 31] {test_output_arg } hello, world?",
|
41
|
+
"[ ...test/riel/log_test.rb: 32] {test_output_arg } hello, world?",
|
42
|
+
"[ ...test/riel/log_test.rb: 33] {test_output_arg } hello, world?",
|
43
|
+
"[ ...test/riel/log_test.rb: 34] {test_output_arg } hello, world?",
|
44
|
+
"[ ...test/riel/log_test.rb: 35] {test_output_arg } hello, world?",
|
45
|
+
"[ ...test/riel/log_test.rb: 163] {call } ",
|
46
|
+
"[ ...test/riel/log_test.rb: 163] {run_test } ",
|
47
|
+
"[ ...test/riel/log_test.rb: 68] {test_output_arg } ",
|
51
48
|
nil,
|
52
49
|
nil,
|
53
50
|
nil,
|
@@ -68,15 +65,16 @@ class LogTestCase < RUNIT::TestCase
|
|
68
65
|
nil,
|
69
66
|
]
|
70
67
|
|
71
|
-
run_test
|
68
|
+
run_test @verbose_setup, log, *expected_output
|
72
69
|
end
|
73
70
|
|
74
71
|
def test_output_block
|
75
72
|
log = Proc.new {
|
76
|
-
Log.log { "
|
73
|
+
Log.log { "output block" }
|
77
74
|
}
|
78
75
|
|
79
|
-
|
76
|
+
Log.set_default_widths
|
77
|
+
run_test(@verbose_setup, log, "[ ...test/riel/log_test.rb: 73] {test_output_block } output block")
|
80
78
|
|
81
79
|
info_setup = Proc.new {
|
82
80
|
Log.level = Log::INFO
|
@@ -99,7 +97,7 @@ class LogTestCase < RUNIT::TestCase
|
|
99
97
|
}
|
100
98
|
|
101
99
|
Log.set_widths(-15, 4, -40)
|
102
|
-
run_test(@verbose_setup, log, "[log_test.rb
|
100
|
+
run_test(@verbose_setup, log, "[ ...log_test.rb: 96] {LogTestCase#test_instance_log } hello, world?")
|
103
101
|
|
104
102
|
Log.set_default_widths
|
105
103
|
end
|
@@ -112,40 +110,40 @@ class LogTestCase < RUNIT::TestCase
|
|
112
110
|
}
|
113
111
|
|
114
112
|
run_test(@verbose_setup, log,
|
115
|
-
"[log_test.rb
|
116
|
-
"[log_test.rb
|
117
|
-
"[log_test.rb
|
113
|
+
"[ ...test/riel/log_test.rb: 107] {LogTestCase#test_col} \e[37mwhite wedding\e[0m",
|
114
|
+
"[ ...test/riel/log_test.rb: 108] {LogTestCase#test_col} \e[34mblue iris\e[0m",
|
115
|
+
"[ ...test/riel/log_test.rb: 109] {LogTestCase#test_col} \e[46mred\e[0m")
|
118
116
|
|
119
117
|
Log.set_default_widths
|
120
118
|
end
|
121
119
|
|
122
120
|
def test_format
|
123
121
|
log = Proc.new {
|
124
|
-
Log.log "
|
122
|
+
Log.log "format"
|
125
123
|
}
|
126
124
|
|
127
125
|
Log.set_default_widths
|
128
|
-
run_test(@verbose_setup, log, "[log_test.rb
|
126
|
+
run_test(@verbose_setup, log, "[ ...test/riel/log_test.rb: 122] {test_format } format")
|
129
127
|
|
130
128
|
# Log.set_widths(file_width, line_width, func_width)
|
131
129
|
|
132
|
-
run_format_test(log, -25, 8, 30, "[log_test.rb
|
133
|
-
run_format_test(log, 25, 8, 30, "[
|
134
|
-
run_format_test(log, 25, "08", 30, "[
|
130
|
+
run_format_test(log, -25, 8, 30, "[ ...test/riel/log_test.rb: 122] { test_format} format")
|
131
|
+
run_format_test(log, 25, 8, 30, "[ ...test/riel/log_test.rb: 122] { test_format} format")
|
132
|
+
run_format_test(log, 25, "08", 30, "[ ...test/riel/log_test.rb:00000122] { test_format} format")
|
135
133
|
|
136
134
|
# useless feature of truncating line numbers, but so it goes ...
|
137
|
-
run_format_test(log, 4, 2, -10, "[
|
135
|
+
run_format_test(log, 4, 2, -10, "[ ...:12] {test_forma} format")
|
138
136
|
|
139
137
|
Log.set_default_widths
|
140
138
|
end
|
141
139
|
|
142
|
-
def run_format_test
|
143
|
-
Log.set_widths
|
144
|
-
run_test
|
140
|
+
def run_format_test log, file_width, line_width, func_width, expected
|
141
|
+
Log.set_widths file_width, line_width, func_width
|
142
|
+
run_test @verbose_setup, log, expected
|
145
143
|
end
|
146
144
|
|
147
145
|
# the ctor is down here so the lines above are less likely to change.
|
148
|
-
def initialize
|
146
|
+
def initialize test, name
|
149
147
|
@nonverbose_setup = Proc.new {
|
150
148
|
Log.verbose = false
|
151
149
|
Log.output = StringIO.new
|
@@ -159,16 +157,16 @@ class LogTestCase < RUNIT::TestCase
|
|
159
157
|
super
|
160
158
|
end
|
161
159
|
|
162
|
-
def run_test
|
160
|
+
def run_test setup, log, *expected
|
163
161
|
io = setup.call
|
164
162
|
|
165
163
|
log.call
|
166
164
|
|
167
|
-
assert_not_nil
|
165
|
+
assert_not_nil io
|
168
166
|
str = io.string
|
169
167
|
assert_not_nil str
|
170
168
|
|
171
|
-
lines = str.split
|
169
|
+
lines = str.split "\n"
|
172
170
|
|
173
171
|
assert_equals expected.size, lines.size, "number of lines of output"
|
174
172
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: riel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 6
|
10
|
+
version: 1.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Pace
|
@@ -15,11 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-08-31 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description:
|
22
|
+
description: This library extends the core Ruby libraries.
|
23
23
|
email: jpace@incava.org
|
24
24
|
executables: []
|
25
25
|
|
@@ -28,52 +28,63 @@ extensions: []
|
|
28
28
|
extra_rdoc_files:
|
29
29
|
- README
|
30
30
|
files:
|
31
|
-
- lib/riel.rb
|
32
|
-
- lib/riel/filetype.rb
|
33
|
-
- lib/riel/rcfile.rb
|
34
|
-
- lib/riel/matchdata.rb
|
35
|
-
- lib/riel/enumerable.rb
|
36
|
-
- lib/riel/size_converter.rb
|
37
|
-
- lib/riel/pathname.rb
|
38
31
|
- lib/riel/array.rb
|
39
|
-
- lib/riel/
|
40
|
-
- lib/riel/
|
41
|
-
- lib/riel/
|
42
|
-
- lib/riel/date.rb
|
32
|
+
- lib/riel/size_converter.rb
|
33
|
+
- lib/riel/enumerable.rb
|
34
|
+
- lib/riel/timer.rb
|
43
35
|
- lib/riel/hash.rb
|
44
|
-
- lib/riel/
|
45
|
-
- lib/riel/command.rb
|
46
|
-
- lib/riel/tempfile.rb
|
47
|
-
- lib/riel/file.rb
|
36
|
+
- lib/riel/fdprocessor.rb
|
48
37
|
- lib/riel/dir.rb
|
38
|
+
- lib/riel/matchdata.rb
|
39
|
+
- lib/riel/regexp.rb
|
49
40
|
- lib/riel/text.rb
|
41
|
+
- lib/riel/setdiff.rb
|
42
|
+
- lib/riel/asciitable/column.rb
|
43
|
+
- lib/riel/asciitable/cell.rb
|
44
|
+
- lib/riel/asciitable/table.rb
|
45
|
+
- lib/riel/asciitable/row.rb
|
46
|
+
- lib/riel/io.rb
|
47
|
+
- lib/riel/tempfile.rb
|
48
|
+
- lib/riel/string.rb
|
49
|
+
- lib/riel/command.rb
|
50
|
+
- lib/riel/pathname.rb
|
51
|
+
- lib/riel/file.rb
|
52
|
+
- lib/riel/integer.rb
|
53
|
+
- lib/riel/ansicolor.rb
|
54
|
+
- lib/riel/optproc.rb
|
55
|
+
- lib/riel/log/loggable.rb
|
56
|
+
- lib/riel/log/severity.rb
|
57
|
+
- lib/riel/log/logger.rb
|
58
|
+
- lib/riel/log/log.rb
|
50
59
|
- lib/riel/env.rb
|
60
|
+
- lib/riel/filetype.rb
|
61
|
+
- lib/riel/rcfile.rb
|
51
62
|
- lib/riel/log.rb
|
52
|
-
- lib/riel/
|
53
|
-
- lib/riel
|
54
|
-
- lib/riel/setdiff.rb
|
55
|
-
- test/riel/setdiff_test.rb
|
56
|
-
- test/riel/command_test.rb
|
57
|
-
- test/riel/log_test.rb
|
58
|
-
- test/riel/array_test.rb
|
59
|
-
- test/riel/optproc_test.rb
|
60
|
-
- test/riel/tempfile_test.rb
|
61
|
-
- test/riel/timer_test.rb
|
62
|
-
- test/riel/regexp_test.rb
|
63
|
-
- test/riel/dir_test.rb
|
63
|
+
- lib/riel/date.rb
|
64
|
+
- lib/riel.rb
|
64
65
|
- test/riel/date_test.rb
|
65
66
|
- test/riel/size_converter_test.rb
|
66
67
|
- test/riel/env_test.rb
|
67
|
-
- test/riel/
|
68
|
-
- test/riel/
|
68
|
+
- test/riel/array_test.rb
|
69
|
+
- test/riel/matchdata_test.rb
|
69
70
|
- test/riel/text_test.rb
|
70
|
-
- test/riel/
|
71
|
+
- test/riel/dir_test.rb
|
72
|
+
- test/riel/file_test.rb
|
73
|
+
- test/riel/regexp_test.rb
|
71
74
|
- test/riel/enumerable_test.rb
|
72
|
-
- test/riel/matchdata_test.rb
|
73
75
|
- test/riel/pathname_test.rb
|
74
|
-
- test/riel/
|
75
|
-
- test/riel/rcfile_test.rb
|
76
|
+
- test/riel/optproc_test.rb
|
76
77
|
- test/riel/io_test.rb
|
78
|
+
- test/riel/tempfile_test.rb
|
79
|
+
- test/riel/filetype_test.rb
|
80
|
+
- test/riel/log_test.rb
|
81
|
+
- test/riel/integer_test.rb
|
82
|
+
- test/riel/rcfile_test.rb
|
83
|
+
- test/riel/hash_test.rb
|
84
|
+
- test/riel/setdiff_test.rb
|
85
|
+
- test/riel/string_test.rb
|
86
|
+
- test/riel/command_test.rb
|
87
|
+
- test/riel/timer_test.rb
|
77
88
|
- README
|
78
89
|
has_rdoc: true
|
79
90
|
homepage: http://www.incava.org/projects/riel
|
@@ -105,30 +116,31 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
116
|
requirements: []
|
106
117
|
|
107
118
|
rubyforge_project:
|
108
|
-
rubygems_version: 1.
|
119
|
+
rubygems_version: 1.4.2
|
109
120
|
signing_key:
|
110
121
|
specification_version: 3
|
111
|
-
summary:
|
122
|
+
summary: Extensions to core Ruby code.
|
112
123
|
test_files:
|
113
|
-
- test/riel/setdiff_test.rb
|
114
|
-
- test/riel/command_test.rb
|
115
|
-
- test/riel/log_test.rb
|
116
|
-
- test/riel/array_test.rb
|
117
|
-
- test/riel/optproc_test.rb
|
118
|
-
- test/riel/tempfile_test.rb
|
119
|
-
- test/riel/timer_test.rb
|
120
|
-
- test/riel/regexp_test.rb
|
121
|
-
- test/riel/dir_test.rb
|
122
124
|
- test/riel/date_test.rb
|
123
125
|
- test/riel/size_converter_test.rb
|
124
126
|
- test/riel/env_test.rb
|
125
|
-
- test/riel/
|
126
|
-
- test/riel/
|
127
|
+
- test/riel/array_test.rb
|
128
|
+
- test/riel/matchdata_test.rb
|
127
129
|
- test/riel/text_test.rb
|
128
|
-
- test/riel/
|
130
|
+
- test/riel/dir_test.rb
|
131
|
+
- test/riel/file_test.rb
|
132
|
+
- test/riel/regexp_test.rb
|
129
133
|
- test/riel/enumerable_test.rb
|
130
|
-
- test/riel/matchdata_test.rb
|
131
134
|
- test/riel/pathname_test.rb
|
132
|
-
- test/riel/
|
133
|
-
- test/riel/rcfile_test.rb
|
135
|
+
- test/riel/optproc_test.rb
|
134
136
|
- test/riel/io_test.rb
|
137
|
+
- test/riel/tempfile_test.rb
|
138
|
+
- test/riel/filetype_test.rb
|
139
|
+
- test/riel/log_test.rb
|
140
|
+
- test/riel/integer_test.rb
|
141
|
+
- test/riel/rcfile_test.rb
|
142
|
+
- test/riel/hash_test.rb
|
143
|
+
- test/riel/setdiff_test.rb
|
144
|
+
- test/riel/string_test.rb
|
145
|
+
- test/riel/command_test.rb
|
146
|
+
- test/riel/timer_test.rb
|