rio 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +49 -0
- data/VERSION +1 -1
- data/doc/ANNOUNCE +19 -2
- data/doc/RELEASE_NOTES +17 -0
- data/ex/colx.rb +3 -1
- data/ex/passwd_report.rb +12 -0
- data/lib/rio.rb +8 -9
- data/lib/rio/argv.rb +0 -4
- data/lib/rio/base.rb +3 -1
- data/lib/rio/doc/INTRO.rb +74 -1
- data/lib/rio/ext/csv.rb +34 -5
- data/lib/rio/factory.rb +2 -2
- data/lib/rio/if.rb +3 -0
- data/lib/rio/if/csv.rb +76 -0
- data/lib/rio/if/dir.rb +14 -6
- data/lib/rio/if/fileordir.rb +6 -0
- data/lib/rio/if/grande.rb +28 -0
- data/lib/rio/if/internal.rb +75 -2
- data/lib/rio/if/methods.rb +4 -3
- data/lib/rio/if/string.rb +46 -0
- data/lib/rio/if/temp.rb +46 -0
- data/lib/rio/matchcolumns.rb +266 -0
- data/lib/rio/rangemath.rb +44 -0
- data/lib/rio/scheme/temp.rb +4 -1
- data/lib/rio/version.rb +1 -1
- data/test/tc/all.rb +4 -1
- data/test/tc/copy-from.rb +1 -1
- data/test/tc/csv2.rb +135 -0
- data/test/tc/csv_columns.rb +37 -0
- data/test/tc/csvutil.rb +56 -0
- data/test/tc/ext.rb +1 -1
- data/test/tc/methods.rb +1 -1
- data/test/tc/tempfile.rb +17 -0
- metadata +11 -228
- data/doc/rdoc/classes/Kernel.html +0 -181
- data/doc/rdoc/classes/Kernel.src/M000182.html +0 -18
- data/doc/rdoc/classes/RIO.html +0 -543
- data/doc/rdoc/classes/RIO.src/M000001.html +0 -18
- data/doc/rdoc/classes/RIO.src/M000002.html +0 -18
- data/doc/rdoc/classes/RIO.src/M000003.html +0 -18
- data/doc/rdoc/classes/RIO/Doc.html +0 -138
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1035
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1335
- data/doc/rdoc/classes/RIO/Doc/MISC.html +0 -443
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -355
- data/doc/rdoc/classes/RIO/Rio.html +0 -6358
- data/doc/rdoc/classes/RIO/Rio.src/M000004.html +0 -18
- data/doc/rdoc/classes/RIO/Rio.src/M000005.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000006.html +0 -27
- data/doc/rdoc/classes/RIO/Rio.src/M000007.html +0 -27
- data/doc/rdoc/classes/RIO/Rio.src/M000008.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000009.html +0 -18
- data/doc/rdoc/classes/RIO/Rio.src/M000010.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000011.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000012.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000013.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000014.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000015.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000016.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000017.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000018.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000019.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000020.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000021.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000022.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000023.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000024.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000025.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000026.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000027.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000028.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000029.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000030.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000031.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000032.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000033.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000034.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000035.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000036.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000037.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000038.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000039.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000040.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000041.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000042.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000043.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000044.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000045.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000046.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000047.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000048.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000049.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000050.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000051.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000052.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000053.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000054.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000055.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000056.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000057.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000058.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000059.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000060.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000061.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000062.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000063.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000064.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000065.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000066.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000067.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000068.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000069.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000070.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000071.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000072.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000073.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000074.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000075.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000076.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000077.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000078.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000079.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000080.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000081.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000082.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000083.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000084.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000085.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000086.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000087.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000088.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000089.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000090.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000091.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000092.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000093.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000094.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000095.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000096.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000097.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000098.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000099.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000100.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000101.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000102.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000103.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000104.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000105.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000106.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000107.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000108.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000109.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000110.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000111.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000112.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000113.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000114.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000115.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000116.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000117.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000118.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000119.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000120.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000121.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000122.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000123.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000124.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000125.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000126.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000127.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000128.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000129.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000130.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000131.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000132.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000133.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000134.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000135.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000136.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000137.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000138.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000139.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000140.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000141.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000142.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000143.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000144.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000145.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000146.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000147.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000148.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000149.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000150.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000151.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000152.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000153.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000154.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000155.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000156.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000157.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000158.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000159.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000160.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000161.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000162.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000163.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000164.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000165.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000166.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000167.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000168.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000169.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000170.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000171.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000172.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000173.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000174.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000175.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000176.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000177.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000178.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000179.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000180.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000181.html +0 -16
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/README.html +0 -215
- data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -142
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/MISC_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/methods_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/stream_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
- data/doc/rdoc/files/lib/rio_rb.html +0 -153
- data/doc/rdoc/fr_class_index.html +0 -34
- data/doc/rdoc/fr_file_index.html +0 -44
- data/doc/rdoc/fr_method_index.html +0 -209
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -384
@@ -0,0 +1,44 @@
|
|
1
|
+
module RIO
|
2
|
+
class Ranges
|
3
|
+
def initialize(*args)
|
4
|
+
@ranges = []
|
5
|
+
args.each { |arg|
|
6
|
+
case arg
|
7
|
+
when ::Range then @ranges << arg
|
8
|
+
else @ranges << Range.new(arg,arg)
|
9
|
+
end
|
10
|
+
}
|
11
|
+
end
|
12
|
+
def merge()
|
13
|
+
return [] if @ranges.empty
|
14
|
+
@ranges.sort_by { |r| r.first }
|
15
|
+
st = @ranges[0].start
|
16
|
+
en = @ranges[0].end
|
17
|
+
@ranges.each { |r|
|
18
|
+
break if r.start > en
|
19
|
+
en = [en,r.end].max
|
20
|
+
}
|
21
|
+
|
22
|
+
end
|
23
|
+
end
|
24
|
+
module RangeMath
|
25
|
+
def ceil
|
26
|
+
return last - 1 if exclude_end?
|
27
|
+
last
|
28
|
+
end
|
29
|
+
def -(other)
|
30
|
+
if include?(other.first) and !include?(other.ceil)
|
31
|
+
[Range.new(first,other.first,true)]
|
32
|
+
elsif include?(other.ceil) and !include?(other.first)
|
33
|
+
[Range.new(other.ceil+1,last,exclude_end?)]
|
34
|
+
elsif include?(other.ceil) and include?(other.first)
|
35
|
+
[Range.new(first,other.first,true),Range.new(other.ceil+1,last,exclude_end?)]
|
36
|
+
else
|
37
|
+
[self]
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
class Range
|
43
|
+
include RIO::RangeMath
|
44
|
+
end
|
data/lib/rio/scheme/temp.rb
CHANGED
@@ -112,7 +112,8 @@ module RIO
|
|
112
112
|
@tf = ::Tempfile.new( @prefix.to_s, @tmpdir.to_s)
|
113
113
|
super(@tf.path)
|
114
114
|
end
|
115
|
-
def open(mode='ignored'
|
115
|
+
def open(mode='ignored')
|
116
|
+
#p callstr('open',mode)
|
116
117
|
@tf
|
117
118
|
end
|
118
119
|
def close
|
@@ -129,6 +130,7 @@ module RIO
|
|
129
130
|
class Reset < State::Base
|
130
131
|
def initialize(*args)
|
131
132
|
super
|
133
|
+
#p args
|
132
134
|
@tempobj = nil
|
133
135
|
end
|
134
136
|
def check?() true end
|
@@ -156,6 +158,7 @@ module RIO
|
|
156
158
|
def open?() false end
|
157
159
|
def closed?() true end
|
158
160
|
def when_missing(sym,*args)
|
161
|
+
#p @rl.scheme
|
159
162
|
if @tempobj.nil?
|
160
163
|
file()
|
161
164
|
else
|
data/lib/rio/version.rb
CHANGED
data/test/tc/all.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
require 'test/unit'
|
2
2
|
require 'tc/testcase'
|
3
|
+
|
4
|
+
require 'tc/csv'
|
5
|
+
require 'tc/csv2'
|
6
|
+
require 'tc/csv_columns'
|
3
7
|
require 'tc/temp'
|
4
8
|
require 'tc/tempfile'
|
5
9
|
require 'tc/tempdir'
|
@@ -17,7 +21,6 @@ require 'tc/copydirlines'
|
|
17
21
|
require 'tc/copydest'
|
18
22
|
require 'tc/copylines'
|
19
23
|
require 'tc/create'
|
20
|
-
require 'tc/csv'
|
21
24
|
require 'tc/dir'
|
22
25
|
require 'tc/dirent'
|
23
26
|
require 'tc/each'
|
data/test/tc/copy-from.rb
CHANGED
@@ -70,7 +70,7 @@ class TC_copyfrom < Test::RIO::TestCase
|
|
70
70
|
|
71
71
|
def test_arrayofstrings_dir
|
72
72
|
$trace_states = false
|
73
|
-
ario = rio('
|
73
|
+
ario = rio('oup').delete!.mkdir
|
74
74
|
str = "HelloWorld"
|
75
75
|
drio = rio(str).delete!
|
76
76
|
assert_raise(Errno::ENOENT) { ario < [str] }
|
data/test/tc/csv2.rb
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
#!/usr/local/bin/ruby
|
2
|
+
if $0 == __FILE__
|
3
|
+
Dir.chdir File.dirname(__FILE__)+'/../'
|
4
|
+
$:.unshift File.expand_path('../lib/')
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rio'
|
8
|
+
require 'tc/testcase'
|
9
|
+
require 'tc/csvutil'
|
10
|
+
|
11
|
+
class TC_csv2 < Test::RIO::TestCase
|
12
|
+
include CSV_Util
|
13
|
+
|
14
|
+
@@once = false
|
15
|
+
def self.once
|
16
|
+
@@once = true
|
17
|
+
end
|
18
|
+
def setup()
|
19
|
+
super
|
20
|
+
@src = rio(?")
|
21
|
+
@dst_name = 'dst.csv'
|
22
|
+
@records,@strings,@lines,@string = create_test_csv_data(@src,3, 3, true)
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_read
|
26
|
+
rio('src1.csv') < @src
|
27
|
+
|
28
|
+
|
29
|
+
rio('src1.csv') > rio('dst.csv')
|
30
|
+
assert_equal(@string,rio('dst.csv').slurp)
|
31
|
+
assert_equal(@string,rio('dst.csv').csv.slurp)
|
32
|
+
assert_equal(@lines,rio('dst.csv')[])
|
33
|
+
assert_equal(@strings,rio('dst.csv').chomp[])
|
34
|
+
assert_equal(@lines,rio('dst.csv').to_a)
|
35
|
+
assert_equal(@strings,rio('dst.csv').chomp.to_a)
|
36
|
+
assert_equal(@lines,rio('dst.csv').readlines)
|
37
|
+
assert_equal(@strings,rio('dst.csv').chomp.readlines)
|
38
|
+
|
39
|
+
assert_equal(@records,rio('dst.csv').csv[])
|
40
|
+
assert_equal(@records,rio('dst.csv').csv.chomp[])
|
41
|
+
assert_equal(@lines,rio('dst.csv').csv.lines[])
|
42
|
+
assert_equal(@strings,rio('dst.csv').csv.chomp.lines[])
|
43
|
+
assert_equal(@records,rio('dst.csv').csv.records[])
|
44
|
+
assert_equal(@lines,rio('dst.csv').csv.records.readlines)
|
45
|
+
assert_equal(@lines[1..2],rio('dst.csv').csv.lines[1..2])
|
46
|
+
assert_equal(@lines[1..2],rio('dst.csv').csv.lines(1..2).to_a)
|
47
|
+
assert_equal(@lines,rio('dst.csv').csv.lines(1..2).readlines)
|
48
|
+
|
49
|
+
rio('dst.csv') < @string
|
50
|
+
assert_equal(@lines,::File.open('dst.csv').readlines)
|
51
|
+
|
52
|
+
rio('dst.csv').csv < @string
|
53
|
+
assert_equal(@lines,::File.open('dst.csv').readlines)
|
54
|
+
|
55
|
+
rio('dst.csv') < @lines
|
56
|
+
assert_equal(@lines,::File.open('dst.csv').readlines)
|
57
|
+
|
58
|
+
rio('dst.csv').csv < @records
|
59
|
+
assert_equal(@lines,::File.open('dst.csv').readlines)
|
60
|
+
|
61
|
+
src_str = @string.dup
|
62
|
+
rio(?",src_str) > rio(?",dst_str='')
|
63
|
+
assert_equal(src_str,dst_str)
|
64
|
+
|
65
|
+
rio(?",src_str).csv > rio(?",dst_str='')
|
66
|
+
assert_equal(@records.to_s,dst_str)
|
67
|
+
|
68
|
+
rio(?",dst_str='') < rio(?",src_str).csv
|
69
|
+
assert_equal(@records.to_s,dst_str)
|
70
|
+
|
71
|
+
dst = rio(?")
|
72
|
+
rio(?",src_str) > dst.csv
|
73
|
+
assert_equal(@records,dst[])
|
74
|
+
|
75
|
+
dst = rio(?")
|
76
|
+
dst.csv < rio(?",src_str)
|
77
|
+
assert_equal(@records,dst[])
|
78
|
+
|
79
|
+
dst = rio(?")
|
80
|
+
rio(?",src_str) > dst.csv
|
81
|
+
assert_equal(@records,dst[])
|
82
|
+
|
83
|
+
dst = rio(?").csv < rio(?",src_str)
|
84
|
+
assert_equal(@records,dst[])
|
85
|
+
|
86
|
+
dst = rio(?").csv(';') < rio(?",src_str).csv
|
87
|
+
assert_equal(src_str.gsub(/,/,';'),dst.contents)
|
88
|
+
|
89
|
+
rio(?",src_str).csv > (dst = rio(?").csv(';'))
|
90
|
+
assert_equal(src_str.gsub(/,/,';'),dst.contents)
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
end
|
95
|
+
def test_getrec
|
96
|
+
|
97
|
+
rio('src1.csv') < @src
|
98
|
+
|
99
|
+
assert_equal(@string,rio('src1.csv').slurp)
|
100
|
+
assert_equal(@string,rio('src1.csv').csv.slurp)
|
101
|
+
assert_equal(@lines[0],rio('src1.csv').getrec)
|
102
|
+
assert_equal(@strings[0],rio('src1.csv').chomp.getrec)
|
103
|
+
|
104
|
+
assert_equal(@lines[1],rio('src1.csv').lines(1).getrec)
|
105
|
+
assert_equal(@lines[1],rio('src1.csv').records(1).getrec)
|
106
|
+
assert_equal(@lines[1],rio('src1.csv').rows(1).getrec)
|
107
|
+
|
108
|
+
assert_equal(@lines[1],rio('src1.csv').csv.lines(1).getrec)
|
109
|
+
assert_equal(@records[1],rio('src1.csv').csv.records(1).getrec)
|
110
|
+
|
111
|
+
assert_equal(@records[8000],rio('src1.csv').csv.records(8000).getrec)
|
112
|
+
|
113
|
+
assert_equal(@string[0,23],rio('src1.csv').bytes(23).getrec)
|
114
|
+
|
115
|
+
rec_ary = @records[0]
|
116
|
+
rec_rio = rio('src1.csv').csv.getrec
|
117
|
+
assert_kind_of(::Array,rec_rio)
|
118
|
+
assert_equal(@strings[0],rec_rio.to_s)
|
119
|
+
|
120
|
+
rec_rio = rio('src1.csv').csv.lines.getrec
|
121
|
+
assert_kind_of(::String,rec_rio)
|
122
|
+
assert_equal(@records[0],rec_rio.to_a)
|
123
|
+
|
124
|
+
ary = rio('src1.csv').csv[]
|
125
|
+
assert_kind_of(::Array,ary[0])
|
126
|
+
assert_equal(@strings[0],ary[0].to_s)
|
127
|
+
|
128
|
+
recs = rio('src1.csv').csv.lines[]
|
129
|
+
assert_kind_of(::String,recs[0])
|
130
|
+
assert_equal(@records[0],recs[0].to_a)
|
131
|
+
return
|
132
|
+
end
|
133
|
+
|
134
|
+
|
135
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/local/bin/ruby
|
2
|
+
if $0 == __FILE__
|
3
|
+
Dir.chdir File.dirname(__FILE__)+'/../'
|
4
|
+
$:.unshift File.expand_path('../lib/')
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rio'
|
8
|
+
require 'tc/testcase'
|
9
|
+
require 'tc/csvutil'
|
10
|
+
|
11
|
+
class TC_csv_columns < Test::RIO::TestCase
|
12
|
+
include CSV_Util
|
13
|
+
|
14
|
+
@@once = false
|
15
|
+
def self.once
|
16
|
+
@@once = true
|
17
|
+
end
|
18
|
+
def setup()
|
19
|
+
super
|
20
|
+
@src = rio(?")
|
21
|
+
@dst_name = 'dst.csv'
|
22
|
+
@records,@strings,@lines,@string = create_test_csv_data(@src,1, 8, false)
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_basic
|
26
|
+
|
27
|
+
rio('src1.csv') < @src
|
28
|
+
r = @records[0]
|
29
|
+
assert_equal([[r[1],r[2],r[5]]],rio('src1.csv').csv.columns(1,2,5).to_a)
|
30
|
+
assert_equal([r[3...6]],rio('src1.csv').csv.columns(3...6).to_a)
|
31
|
+
assert_equal([[r[3],r[5]]],rio('src1.csv').csv.columns(3...6).nocolumns(4).to_a)
|
32
|
+
assert_equal([[r[0],r[7]]],rio('src1.csv').csv.nocolumns(1..6).to_a)
|
33
|
+
assert_equal([[]],rio('src1.csv').csv.nocolumns.to_a)
|
34
|
+
assert_equal([r],rio('src1.csv').csv.to_a)
|
35
|
+
|
36
|
+
end
|
37
|
+
end
|
data/test/tc/csvutil.rb
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
#!/usr/local/bin/ruby
|
2
|
+
if $0 == __FILE__
|
3
|
+
Dir.chdir File.dirname(__FILE__)+'/../'
|
4
|
+
$:.unshift File.expand_path('../lib/')
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rio'
|
8
|
+
|
9
|
+
module CSV_Util
|
10
|
+
def records_to_rows(records)
|
11
|
+
n_records = records.size
|
12
|
+
rows = []
|
13
|
+
head = records[0]
|
14
|
+
(1...n_records).each do |n|
|
15
|
+
record = records[n]
|
16
|
+
row = {}
|
17
|
+
(0...record.size).each do |ncol|
|
18
|
+
row[head[ncol]] = row[ncol]
|
19
|
+
end
|
20
|
+
rows << row
|
21
|
+
end
|
22
|
+
rows
|
23
|
+
end
|
24
|
+
def records_to_strings(records)
|
25
|
+
records.map { |values| values.join(',') }
|
26
|
+
end
|
27
|
+
def records_to_string(records)
|
28
|
+
records_to_strings(records).join("\n") + "\n"
|
29
|
+
end
|
30
|
+
def strings_to_string(strings)
|
31
|
+
strings.join("\n") + "\n"
|
32
|
+
end
|
33
|
+
def strings_to_lines(strings)
|
34
|
+
strings.map { |s| s + "\n" }
|
35
|
+
end
|
36
|
+
def create_test_csv_records(n_rows,n_cols,header=true)
|
37
|
+
records = []
|
38
|
+
|
39
|
+
records << (0...n_cols).map { |n| "Head#{n}" } if header
|
40
|
+
|
41
|
+
(0...n_rows).each do |nrow|
|
42
|
+
records << (0...n_cols).map { |n| "Dat#{nrow}#{n}" }
|
43
|
+
end
|
44
|
+
records
|
45
|
+
end
|
46
|
+
|
47
|
+
def create_test_csv_data(frio,n_rows,n_cols,header=true)
|
48
|
+
records = create_test_csv_records(n_rows,n_cols,header)
|
49
|
+
strings = records_to_strings(records)
|
50
|
+
lines = strings_to_lines(strings)
|
51
|
+
string = strings_to_string(strings)
|
52
|
+
frio < string
|
53
|
+
[records,strings,lines,string]
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|
data/test/tc/ext.rb
CHANGED
data/test/tc/methods.rb
CHANGED
data/test/tc/tempfile.rb
CHANGED
@@ -34,5 +34,22 @@ class TC_tempfile < Test::RIO::TestCase
|
|
34
34
|
assert_equal(str,rio(??).puts(str).rewind.chomp.gets)
|
35
35
|
end
|
36
36
|
|
37
|
+
def test_rl_temp
|
38
|
+
str = "Hello Tempfile"
|
39
|
+
tmp = rio('temp:')
|
40
|
+
assert(tmp.closed?)
|
41
|
+
assert_equal(str,tmp.puts(str).rewind.chomp.gets)
|
42
|
+
end
|
43
|
+
|
44
|
+
def test_rl_tempfile
|
45
|
+
str = "Hello Tempfile"
|
46
|
+
#$trace_states = true
|
47
|
+
tmp = rio('tempfile:')
|
48
|
+
assert(tmp.closed?)
|
49
|
+
tmp.puts(str)
|
50
|
+
assert(tmp.open?)
|
51
|
+
assert_equal(str,tmp.rewind.chomp.gets)
|
52
|
+
end
|
53
|
+
|
37
54
|
|
38
55
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rio
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.
|
7
|
-
date: 2005-08-
|
6
|
+
version: 0.3.3
|
7
|
+
date: 2005-08-19 00:00:00 -07:00
|
8
8
|
summary: "Rio - Ruby I/O Comfort Class"
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -58,6 +58,9 @@ files:
|
|
58
58
|
- test/tc/copynonex.rb
|
59
59
|
- test/tc/create.rb
|
60
60
|
- test/tc/csv.rb
|
61
|
+
- test/tc/csv2.rb
|
62
|
+
- test/tc/csvutil.rb
|
63
|
+
- test/tc/csv_columns.rb
|
61
64
|
- test/tc/dir.rb
|
62
65
|
- test/tc/dirautoclose.rb
|
63
66
|
- test/tc/dirent.rb
|
@@ -98,7 +101,6 @@ files:
|
|
98
101
|
- test/tc/testcase.rb
|
99
102
|
- doc/ANNOUNCE
|
100
103
|
- doc/generators
|
101
|
-
- doc/rdoc
|
102
104
|
- doc/README_MSWIN32.txt
|
103
105
|
- doc/RELEASE_NOTES
|
104
106
|
- doc/rfc1738.txt
|
@@ -106,231 +108,6 @@ files:
|
|
106
108
|
- doc/generators/template
|
107
109
|
- doc/generators/template/html
|
108
110
|
- doc/generators/template/html/rio.rb
|
109
|
-
- doc/rdoc/classes
|
110
|
-
- doc/rdoc/created.rid
|
111
|
-
- doc/rdoc/files
|
112
|
-
- doc/rdoc/fr_class_index.html
|
113
|
-
- doc/rdoc/fr_file_index.html
|
114
|
-
- doc/rdoc/fr_method_index.html
|
115
|
-
- doc/rdoc/index.html
|
116
|
-
- doc/rdoc/rdoc-style.css
|
117
|
-
- doc/rdoc/classes/Kernel.html
|
118
|
-
- doc/rdoc/classes/Kernel.src
|
119
|
-
- doc/rdoc/classes/RIO
|
120
|
-
- doc/rdoc/classes/RIO.html
|
121
|
-
- doc/rdoc/classes/RIO.src
|
122
|
-
- doc/rdoc/classes/Kernel.src/M000182.html
|
123
|
-
- doc/rdoc/classes/RIO/Doc
|
124
|
-
- doc/rdoc/classes/RIO/Doc.html
|
125
|
-
- doc/rdoc/classes/RIO/Rio.html
|
126
|
-
- doc/rdoc/classes/RIO/Rio.src
|
127
|
-
- doc/rdoc/classes/RIO/Doc/HOWTO.html
|
128
|
-
- doc/rdoc/classes/RIO/Doc/INTRO.html
|
129
|
-
- doc/rdoc/classes/RIO/Doc/MISC.html
|
130
|
-
- doc/rdoc/classes/RIO/Doc/SYNOPSIS.html
|
131
|
-
- doc/rdoc/classes/RIO/Rio.src/M000004.html
|
132
|
-
- doc/rdoc/classes/RIO/Rio.src/M000005.html
|
133
|
-
- doc/rdoc/classes/RIO/Rio.src/M000006.html
|
134
|
-
- doc/rdoc/classes/RIO/Rio.src/M000007.html
|
135
|
-
- doc/rdoc/classes/RIO/Rio.src/M000008.html
|
136
|
-
- doc/rdoc/classes/RIO/Rio.src/M000009.html
|
137
|
-
- doc/rdoc/classes/RIO/Rio.src/M000010.html
|
138
|
-
- doc/rdoc/classes/RIO/Rio.src/M000011.html
|
139
|
-
- doc/rdoc/classes/RIO/Rio.src/M000012.html
|
140
|
-
- doc/rdoc/classes/RIO/Rio.src/M000013.html
|
141
|
-
- doc/rdoc/classes/RIO/Rio.src/M000014.html
|
142
|
-
- doc/rdoc/classes/RIO/Rio.src/M000015.html
|
143
|
-
- doc/rdoc/classes/RIO/Rio.src/M000016.html
|
144
|
-
- doc/rdoc/classes/RIO/Rio.src/M000017.html
|
145
|
-
- doc/rdoc/classes/RIO/Rio.src/M000018.html
|
146
|
-
- doc/rdoc/classes/RIO/Rio.src/M000019.html
|
147
|
-
- doc/rdoc/classes/RIO/Rio.src/M000020.html
|
148
|
-
- doc/rdoc/classes/RIO/Rio.src/M000021.html
|
149
|
-
- doc/rdoc/classes/RIO/Rio.src/M000022.html
|
150
|
-
- doc/rdoc/classes/RIO/Rio.src/M000023.html
|
151
|
-
- doc/rdoc/classes/RIO/Rio.src/M000024.html
|
152
|
-
- doc/rdoc/classes/RIO/Rio.src/M000025.html
|
153
|
-
- doc/rdoc/classes/RIO/Rio.src/M000026.html
|
154
|
-
- doc/rdoc/classes/RIO/Rio.src/M000027.html
|
155
|
-
- doc/rdoc/classes/RIO/Rio.src/M000028.html
|
156
|
-
- doc/rdoc/classes/RIO/Rio.src/M000029.html
|
157
|
-
- doc/rdoc/classes/RIO/Rio.src/M000030.html
|
158
|
-
- doc/rdoc/classes/RIO/Rio.src/M000031.html
|
159
|
-
- doc/rdoc/classes/RIO/Rio.src/M000032.html
|
160
|
-
- doc/rdoc/classes/RIO/Rio.src/M000033.html
|
161
|
-
- doc/rdoc/classes/RIO/Rio.src/M000034.html
|
162
|
-
- doc/rdoc/classes/RIO/Rio.src/M000035.html
|
163
|
-
- doc/rdoc/classes/RIO/Rio.src/M000036.html
|
164
|
-
- doc/rdoc/classes/RIO/Rio.src/M000037.html
|
165
|
-
- doc/rdoc/classes/RIO/Rio.src/M000038.html
|
166
|
-
- doc/rdoc/classes/RIO/Rio.src/M000039.html
|
167
|
-
- doc/rdoc/classes/RIO/Rio.src/M000040.html
|
168
|
-
- doc/rdoc/classes/RIO/Rio.src/M000041.html
|
169
|
-
- doc/rdoc/classes/RIO/Rio.src/M000042.html
|
170
|
-
- doc/rdoc/classes/RIO/Rio.src/M000043.html
|
171
|
-
- doc/rdoc/classes/RIO/Rio.src/M000044.html
|
172
|
-
- doc/rdoc/classes/RIO/Rio.src/M000045.html
|
173
|
-
- doc/rdoc/classes/RIO/Rio.src/M000046.html
|
174
|
-
- doc/rdoc/classes/RIO/Rio.src/M000047.html
|
175
|
-
- doc/rdoc/classes/RIO/Rio.src/M000048.html
|
176
|
-
- doc/rdoc/classes/RIO/Rio.src/M000049.html
|
177
|
-
- doc/rdoc/classes/RIO/Rio.src/M000050.html
|
178
|
-
- doc/rdoc/classes/RIO/Rio.src/M000051.html
|
179
|
-
- doc/rdoc/classes/RIO/Rio.src/M000052.html
|
180
|
-
- doc/rdoc/classes/RIO/Rio.src/M000053.html
|
181
|
-
- doc/rdoc/classes/RIO/Rio.src/M000054.html
|
182
|
-
- doc/rdoc/classes/RIO/Rio.src/M000055.html
|
183
|
-
- doc/rdoc/classes/RIO/Rio.src/M000056.html
|
184
|
-
- doc/rdoc/classes/RIO/Rio.src/M000057.html
|
185
|
-
- doc/rdoc/classes/RIO/Rio.src/M000058.html
|
186
|
-
- doc/rdoc/classes/RIO/Rio.src/M000059.html
|
187
|
-
- doc/rdoc/classes/RIO/Rio.src/M000060.html
|
188
|
-
- doc/rdoc/classes/RIO/Rio.src/M000061.html
|
189
|
-
- doc/rdoc/classes/RIO/Rio.src/M000062.html
|
190
|
-
- doc/rdoc/classes/RIO/Rio.src/M000063.html
|
191
|
-
- doc/rdoc/classes/RIO/Rio.src/M000064.html
|
192
|
-
- doc/rdoc/classes/RIO/Rio.src/M000065.html
|
193
|
-
- doc/rdoc/classes/RIO/Rio.src/M000066.html
|
194
|
-
- doc/rdoc/classes/RIO/Rio.src/M000067.html
|
195
|
-
- doc/rdoc/classes/RIO/Rio.src/M000068.html
|
196
|
-
- doc/rdoc/classes/RIO/Rio.src/M000069.html
|
197
|
-
- doc/rdoc/classes/RIO/Rio.src/M000070.html
|
198
|
-
- doc/rdoc/classes/RIO/Rio.src/M000071.html
|
199
|
-
- doc/rdoc/classes/RIO/Rio.src/M000072.html
|
200
|
-
- doc/rdoc/classes/RIO/Rio.src/M000073.html
|
201
|
-
- doc/rdoc/classes/RIO/Rio.src/M000074.html
|
202
|
-
- doc/rdoc/classes/RIO/Rio.src/M000075.html
|
203
|
-
- doc/rdoc/classes/RIO/Rio.src/M000076.html
|
204
|
-
- doc/rdoc/classes/RIO/Rio.src/M000077.html
|
205
|
-
- doc/rdoc/classes/RIO/Rio.src/M000078.html
|
206
|
-
- doc/rdoc/classes/RIO/Rio.src/M000079.html
|
207
|
-
- doc/rdoc/classes/RIO/Rio.src/M000080.html
|
208
|
-
- doc/rdoc/classes/RIO/Rio.src/M000081.html
|
209
|
-
- doc/rdoc/classes/RIO/Rio.src/M000082.html
|
210
|
-
- doc/rdoc/classes/RIO/Rio.src/M000083.html
|
211
|
-
- doc/rdoc/classes/RIO/Rio.src/M000084.html
|
212
|
-
- doc/rdoc/classes/RIO/Rio.src/M000085.html
|
213
|
-
- doc/rdoc/classes/RIO/Rio.src/M000086.html
|
214
|
-
- doc/rdoc/classes/RIO/Rio.src/M000087.html
|
215
|
-
- doc/rdoc/classes/RIO/Rio.src/M000088.html
|
216
|
-
- doc/rdoc/classes/RIO/Rio.src/M000089.html
|
217
|
-
- doc/rdoc/classes/RIO/Rio.src/M000090.html
|
218
|
-
- doc/rdoc/classes/RIO/Rio.src/M000091.html
|
219
|
-
- doc/rdoc/classes/RIO/Rio.src/M000092.html
|
220
|
-
- doc/rdoc/classes/RIO/Rio.src/M000093.html
|
221
|
-
- doc/rdoc/classes/RIO/Rio.src/M000094.html
|
222
|
-
- doc/rdoc/classes/RIO/Rio.src/M000095.html
|
223
|
-
- doc/rdoc/classes/RIO/Rio.src/M000096.html
|
224
|
-
- doc/rdoc/classes/RIO/Rio.src/M000097.html
|
225
|
-
- doc/rdoc/classes/RIO/Rio.src/M000098.html
|
226
|
-
- doc/rdoc/classes/RIO/Rio.src/M000099.html
|
227
|
-
- doc/rdoc/classes/RIO/Rio.src/M000100.html
|
228
|
-
- doc/rdoc/classes/RIO/Rio.src/M000101.html
|
229
|
-
- doc/rdoc/classes/RIO/Rio.src/M000102.html
|
230
|
-
- doc/rdoc/classes/RIO/Rio.src/M000103.html
|
231
|
-
- doc/rdoc/classes/RIO/Rio.src/M000104.html
|
232
|
-
- doc/rdoc/classes/RIO/Rio.src/M000105.html
|
233
|
-
- doc/rdoc/classes/RIO/Rio.src/M000106.html
|
234
|
-
- doc/rdoc/classes/RIO/Rio.src/M000107.html
|
235
|
-
- doc/rdoc/classes/RIO/Rio.src/M000108.html
|
236
|
-
- doc/rdoc/classes/RIO/Rio.src/M000109.html
|
237
|
-
- doc/rdoc/classes/RIO/Rio.src/M000110.html
|
238
|
-
- doc/rdoc/classes/RIO/Rio.src/M000111.html
|
239
|
-
- doc/rdoc/classes/RIO/Rio.src/M000112.html
|
240
|
-
- doc/rdoc/classes/RIO/Rio.src/M000113.html
|
241
|
-
- doc/rdoc/classes/RIO/Rio.src/M000114.html
|
242
|
-
- doc/rdoc/classes/RIO/Rio.src/M000115.html
|
243
|
-
- doc/rdoc/classes/RIO/Rio.src/M000116.html
|
244
|
-
- doc/rdoc/classes/RIO/Rio.src/M000117.html
|
245
|
-
- doc/rdoc/classes/RIO/Rio.src/M000118.html
|
246
|
-
- doc/rdoc/classes/RIO/Rio.src/M000119.html
|
247
|
-
- doc/rdoc/classes/RIO/Rio.src/M000120.html
|
248
|
-
- doc/rdoc/classes/RIO/Rio.src/M000121.html
|
249
|
-
- doc/rdoc/classes/RIO/Rio.src/M000122.html
|
250
|
-
- doc/rdoc/classes/RIO/Rio.src/M000123.html
|
251
|
-
- doc/rdoc/classes/RIO/Rio.src/M000124.html
|
252
|
-
- doc/rdoc/classes/RIO/Rio.src/M000125.html
|
253
|
-
- doc/rdoc/classes/RIO/Rio.src/M000126.html
|
254
|
-
- doc/rdoc/classes/RIO/Rio.src/M000127.html
|
255
|
-
- doc/rdoc/classes/RIO/Rio.src/M000128.html
|
256
|
-
- doc/rdoc/classes/RIO/Rio.src/M000129.html
|
257
|
-
- doc/rdoc/classes/RIO/Rio.src/M000130.html
|
258
|
-
- doc/rdoc/classes/RIO/Rio.src/M000131.html
|
259
|
-
- doc/rdoc/classes/RIO/Rio.src/M000132.html
|
260
|
-
- doc/rdoc/classes/RIO/Rio.src/M000133.html
|
261
|
-
- doc/rdoc/classes/RIO/Rio.src/M000134.html
|
262
|
-
- doc/rdoc/classes/RIO/Rio.src/M000135.html
|
263
|
-
- doc/rdoc/classes/RIO/Rio.src/M000136.html
|
264
|
-
- doc/rdoc/classes/RIO/Rio.src/M000137.html
|
265
|
-
- doc/rdoc/classes/RIO/Rio.src/M000138.html
|
266
|
-
- doc/rdoc/classes/RIO/Rio.src/M000139.html
|
267
|
-
- doc/rdoc/classes/RIO/Rio.src/M000140.html
|
268
|
-
- doc/rdoc/classes/RIO/Rio.src/M000141.html
|
269
|
-
- doc/rdoc/classes/RIO/Rio.src/M000142.html
|
270
|
-
- doc/rdoc/classes/RIO/Rio.src/M000143.html
|
271
|
-
- doc/rdoc/classes/RIO/Rio.src/M000144.html
|
272
|
-
- doc/rdoc/classes/RIO/Rio.src/M000145.html
|
273
|
-
- doc/rdoc/classes/RIO/Rio.src/M000146.html
|
274
|
-
- doc/rdoc/classes/RIO/Rio.src/M000147.html
|
275
|
-
- doc/rdoc/classes/RIO/Rio.src/M000148.html
|
276
|
-
- doc/rdoc/classes/RIO/Rio.src/M000149.html
|
277
|
-
- doc/rdoc/classes/RIO/Rio.src/M000150.html
|
278
|
-
- doc/rdoc/classes/RIO/Rio.src/M000151.html
|
279
|
-
- doc/rdoc/classes/RIO/Rio.src/M000152.html
|
280
|
-
- doc/rdoc/classes/RIO/Rio.src/M000153.html
|
281
|
-
- doc/rdoc/classes/RIO/Rio.src/M000154.html
|
282
|
-
- doc/rdoc/classes/RIO/Rio.src/M000155.html
|
283
|
-
- doc/rdoc/classes/RIO/Rio.src/M000156.html
|
284
|
-
- doc/rdoc/classes/RIO/Rio.src/M000157.html
|
285
|
-
- doc/rdoc/classes/RIO/Rio.src/M000158.html
|
286
|
-
- doc/rdoc/classes/RIO/Rio.src/M000159.html
|
287
|
-
- doc/rdoc/classes/RIO/Rio.src/M000160.html
|
288
|
-
- doc/rdoc/classes/RIO/Rio.src/M000161.html
|
289
|
-
- doc/rdoc/classes/RIO/Rio.src/M000162.html
|
290
|
-
- doc/rdoc/classes/RIO/Rio.src/M000163.html
|
291
|
-
- doc/rdoc/classes/RIO/Rio.src/M000164.html
|
292
|
-
- doc/rdoc/classes/RIO/Rio.src/M000165.html
|
293
|
-
- doc/rdoc/classes/RIO/Rio.src/M000166.html
|
294
|
-
- doc/rdoc/classes/RIO/Rio.src/M000167.html
|
295
|
-
- doc/rdoc/classes/RIO/Rio.src/M000168.html
|
296
|
-
- doc/rdoc/classes/RIO/Rio.src/M000169.html
|
297
|
-
- doc/rdoc/classes/RIO/Rio.src/M000170.html
|
298
|
-
- doc/rdoc/classes/RIO/Rio.src/M000171.html
|
299
|
-
- doc/rdoc/classes/RIO/Rio.src/M000172.html
|
300
|
-
- doc/rdoc/classes/RIO/Rio.src/M000173.html
|
301
|
-
- doc/rdoc/classes/RIO/Rio.src/M000174.html
|
302
|
-
- doc/rdoc/classes/RIO/Rio.src/M000175.html
|
303
|
-
- doc/rdoc/classes/RIO/Rio.src/M000176.html
|
304
|
-
- doc/rdoc/classes/RIO/Rio.src/M000177.html
|
305
|
-
- doc/rdoc/classes/RIO/Rio.src/M000178.html
|
306
|
-
- doc/rdoc/classes/RIO/Rio.src/M000179.html
|
307
|
-
- doc/rdoc/classes/RIO/Rio.src/M000180.html
|
308
|
-
- doc/rdoc/classes/RIO/Rio.src/M000181.html
|
309
|
-
- doc/rdoc/classes/RIO.src/M000001.html
|
310
|
-
- doc/rdoc/classes/RIO.src/M000002.html
|
311
|
-
- doc/rdoc/classes/RIO.src/M000003.html
|
312
|
-
- doc/rdoc/files/lib
|
313
|
-
- doc/rdoc/files/README.html
|
314
|
-
- doc/rdoc/files/lib/rio
|
315
|
-
- doc/rdoc/files/lib/rio_rb.html
|
316
|
-
- doc/rdoc/files/lib/rio/constructor_rb.html
|
317
|
-
- doc/rdoc/files/lib/rio/doc
|
318
|
-
- doc/rdoc/files/lib/rio/if
|
319
|
-
- doc/rdoc/files/lib/rio/kernel_rb.html
|
320
|
-
- doc/rdoc/files/lib/rio/doc/HOWTO_rb.html
|
321
|
-
- doc/rdoc/files/lib/rio/doc/INTRO_rb.html
|
322
|
-
- doc/rdoc/files/lib/rio/doc/MISC_rb.html
|
323
|
-
- doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html
|
324
|
-
- doc/rdoc/files/lib/rio/if/basic_rb.html
|
325
|
-
- doc/rdoc/files/lib/rio/if/dir_rb.html
|
326
|
-
- doc/rdoc/files/lib/rio/if/fileordir_rb.html
|
327
|
-
- doc/rdoc/files/lib/rio/if/file_rb.html
|
328
|
-
- doc/rdoc/files/lib/rio/if/grande_rb.html
|
329
|
-
- doc/rdoc/files/lib/rio/if/internal_rb.html
|
330
|
-
- doc/rdoc/files/lib/rio/if/methods_rb.html
|
331
|
-
- doc/rdoc/files/lib/rio/if/path_rb.html
|
332
|
-
- doc/rdoc/files/lib/rio/if/stream_rb.html
|
333
|
-
- doc/rdoc/files/lib/rio/if/test_rb.html
|
334
111
|
- lib/rio.rb
|
335
112
|
- lib/rio/abstract_method.rb
|
336
113
|
- lib/rio/argv.rb
|
@@ -358,9 +135,11 @@ files:
|
|
358
135
|
- lib/rio/kernel.rb
|
359
136
|
- lib/rio/local.rb
|
360
137
|
- lib/rio/match.rb
|
138
|
+
- lib/rio/matchcolumns.rb
|
361
139
|
- lib/rio/matchrecord.rb
|
362
140
|
- lib/rio/open3.rb
|
363
141
|
- lib/rio/path.rb
|
142
|
+
- lib/rio/rangemath.rb
|
364
143
|
- lib/rio/record.rb
|
365
144
|
- lib/rio/rectype.rb
|
366
145
|
- lib/rio/state.rb
|
@@ -390,6 +169,7 @@ files:
|
|
390
169
|
- lib/rio/ftp/conn.rb
|
391
170
|
- lib/rio/ftp/ioh.rb
|
392
171
|
- lib/rio/if/basic.rb
|
172
|
+
- lib/rio/if/csv.rb
|
393
173
|
- lib/rio/if/dir.rb
|
394
174
|
- lib/rio/if/file.rb
|
395
175
|
- lib/rio/if/fileordir.rb
|
@@ -398,6 +178,8 @@ files:
|
|
398
178
|
- lib/rio/if/methods.rb
|
399
179
|
- lib/rio/if/path.rb
|
400
180
|
- lib/rio/if/stream.rb
|
181
|
+
- lib/rio/if/string.rb
|
182
|
+
- lib/rio/if/temp.rb
|
401
183
|
- lib/rio/if/test.rb
|
402
184
|
- lib/rio/impl/path.rb
|
403
185
|
- lib/rio/ops/create.rb
|
@@ -438,6 +220,7 @@ files:
|
|
438
220
|
- ex/colx.rb
|
439
221
|
- ex/findinruby
|
440
222
|
- ex/findruby
|
223
|
+
- ex/passwd_report.rb
|
441
224
|
- ex/prompt.rb
|
442
225
|
- ex/rgb.txt.gz
|
443
226
|
- ex/riocat
|