rio 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +140 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/doc/ANNOUNCE +87 -0
- data/doc/RELEASE_NOTES +7 -0
- data/doc/rdoc/classes/Kernel.html +9 -9
- data/doc/rdoc/classes/Kernel.src/{M000183.html → M000182.html} +0 -0
- data/doc/rdoc/classes/RIO.html +35 -0
- data/doc/rdoc/classes/RIO.src/M000001.html +4 -4
- data/doc/rdoc/classes/RIO.src/M000002.html +4 -4
- data/doc/rdoc/classes/RIO.src/M000003.html +4 -4
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +11 -7
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +255 -36
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +47 -17
- data/doc/rdoc/classes/RIO/Rio.html +1032 -1007
- data/doc/rdoc/classes/RIO/Rio.src/M000011.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000012.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000013.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000014.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000015.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000016.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000017.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000018.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000019.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000020.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000021.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000022.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000023.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000024.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000025.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000026.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000027.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000028.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000029.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000030.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000031.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000032.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000033.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000034.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000035.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000036.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000037.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000038.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000039.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000040.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000041.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000042.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000043.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000044.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000045.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000046.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000047.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000048.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000049.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000050.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000051.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000052.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000053.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000054.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000055.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000056.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000057.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000058.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000059.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000060.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000061.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000062.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000063.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000064.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000065.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000066.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000067.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000068.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000069.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000070.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000071.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000072.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000073.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000074.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000075.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000076.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000077.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000078.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000079.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000080.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000081.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000082.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000083.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000084.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000085.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000086.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000087.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000088.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000089.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000090.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000091.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000092.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000093.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000094.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000095.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000096.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000097.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000098.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000099.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000100.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000101.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000102.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000103.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000104.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000105.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000106.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000107.html +2 -2
- data/doc/rdoc/classes/RIO/Rio.src/M000108.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000109.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000110.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000111.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000112.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000113.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000114.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000115.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000116.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000117.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000118.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000119.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000120.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000121.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000122.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000123.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000124.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000125.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000126.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000127.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000128.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000129.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000130.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000131.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000132.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000133.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000134.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000135.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000136.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000137.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000138.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000139.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000140.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000141.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000142.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000143.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000144.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000145.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000146.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000147.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000148.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000149.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000150.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000151.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000152.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000153.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000154.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000155.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000156.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000157.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000158.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000159.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000160.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000161.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000162.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000163.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000164.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000165.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000166.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000167.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000168.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000169.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000170.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000171.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000172.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000173.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000174.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000175.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000176.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000177.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000178.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000179.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000180.html +3 -3
- data/doc/rdoc/classes/RIO/Rio.src/M000181.html +3 -3
- data/doc/rdoc/created.rid +1 -1
- data/doc/rdoc/files/lib/rio/constructor_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +1 -1
- data/doc/rdoc/files/lib/rio/if/path_rb.html +1 -1
- data/doc/rdoc/files/lib/rio_rb.html +1 -1
- data/doc/rdoc/fr_method_index.html +154 -155
- data/ex/findinruby +7 -3
- data/ex/findruby +6 -2
- data/lib/rio.rb +1 -1
- data/lib/rio/argv.rb +4 -0
- data/lib/rio/constructor.rb +17 -0
- data/lib/rio/context.rb +1 -1
- data/lib/rio/context/dir.rb +1 -0
- data/lib/rio/context/methods.rb +3 -3
- data/lib/rio/dir.rb +2 -2
- data/lib/rio/doc/HOWTO.rb +11 -6
- data/lib/rio/doc/INTRO.rb +149 -12
- data/lib/rio/doc/SYNOPSIS.rb +26 -13
- data/lib/rio/factory.rb +13 -2
- data/lib/rio/grande.rb +25 -0
- data/lib/rio/if/basic.rb +1 -1
- data/lib/rio/if/path.rb +61 -35
- data/lib/rio/matchrecord.rb +20 -1
- data/lib/rio/ops/dir.rb +2 -3
- data/lib/rio/ops/path.rb +25 -11
- data/lib/rio/ops/stream/input.rb +6 -3
- data/lib/rio/rl/base.rb +3 -2
- data/lib/rio/rl/ioi.rb +2 -1
- data/lib/rio/rl/path.rb +18 -3
- data/lib/rio/rl/uri.rb +8 -4
- data/lib/rio/scheme/cmdio.rb +1 -1
- data/lib/rio/scheme/path.rb +1 -0
- data/lib/rio/scheme/stdio.rb +1 -1
- data/lib/rio/scheme/strio.rb +1 -1
- data/lib/rio/scheme/sysio.rb +1 -1
- data/lib/rio/scheme/tcp.rb +1 -0
- data/lib/rio/scheme/temp.rb +184 -0
- data/lib/rio/state.rb +17 -6
- data/lib/rio/stream.rb +1 -1
- data/lib/rio/stream/open.rb +1 -1
- data/lib/rio/tempdir.rb +132 -0
- data/lib/rio/version.rb +1 -1
- data/test/tc/all.rb +4 -0
- data/test/tc/copylines.rb +38 -32
- data/test/tc/riorl.rb +104 -0
- data/test/tc/temp.rb +155 -0
- data/test/tc/tempdir.rb +63 -0
- data/test/tc/tempfile.rb +38 -0
- metadata +10 -5
- data/doc/rdoc/classes/RIO/Rio.src/M000182.html +0 -16
- data/lib/rio/scheme/tempfile.rb +0 -104
data/ChangeLog
CHANGED
@@ -1,4 +1,144 @@
|
|
1
1
|
------------------------------------------------------------------------
|
2
|
+
r74 | kit | 2005-08-16 11:00:55 -0700 (Tue, 16 Aug 2005) | 1 line
|
3
|
+
Changed paths:
|
4
|
+
M /rio/trunk/doc/ANNOUNCE
|
5
|
+
M /rio/trunk/doc/RELEASE_NOTES
|
6
|
+
|
7
|
+
ANNOUNCE & RELEASE_NOTES
|
8
|
+
------------------------------------------------------------------------
|
9
|
+
r72 | kit | 2005-08-16 07:42:58 -0700 (Tue, 16 Aug 2005) | 1 line
|
10
|
+
Changed paths:
|
11
|
+
M /rio/trunk/lib/rio/state.rb
|
12
|
+
|
13
|
+
initialized
|
14
|
+
------------------------------------------------------------------------
|
15
|
+
r68 | kit | 2005-08-16 07:35:28 -0700 (Tue, 16 Aug 2005) | 1 line
|
16
|
+
Changed paths:
|
17
|
+
M /rio/trunk/doc/ANNOUNCE
|
18
|
+
M /rio/trunk/doc/RELEASE_NOTES
|
19
|
+
|
20
|
+
ANNOUNCE and RELEASE_NOTES
|
21
|
+
------------------------------------------------------------------------
|
22
|
+
r63 | kit | 2005-08-15 14:58:10 -0700 (Mon, 15 Aug 2005) | 1 line
|
23
|
+
Changed paths:
|
24
|
+
M /rio/trunk/lib/rio/constructor.rb
|
25
|
+
M /rio/trunk/lib/rio/doc/INTRO.rb
|
26
|
+
|
27
|
+
Tempfile and Tempdir documentation
|
28
|
+
------------------------------------------------------------------------
|
29
|
+
r62 | kit | 2005-08-15 14:39:16 -0700 (Mon, 15 Aug 2005) | 1 line
|
30
|
+
Changed paths:
|
31
|
+
M /rio/trunk/lib/rio/factory.rb
|
32
|
+
M /rio/trunk/lib/rio/ops/dir.rb
|
33
|
+
M /rio/trunk/lib/rio/rl/base.rb
|
34
|
+
M /rio/trunk/lib/rio/rl/path.rb
|
35
|
+
A /rio/trunk/lib/rio/scheme/temp.rb
|
36
|
+
D /rio/trunk/lib/rio/scheme/tempdir.rb
|
37
|
+
D /rio/trunk/lib/rio/scheme/tempfile.rb
|
38
|
+
M /rio/trunk/test/tc/all.rb
|
39
|
+
M /rio/trunk/test/tc/riorl.rb
|
40
|
+
A /rio/trunk/test/tc/temp.rb
|
41
|
+
|
42
|
+
combined testfile and testdir
|
43
|
+
------------------------------------------------------------------------
|
44
|
+
r59 | kit | 2005-08-13 14:46:18 -0700 (Sat, 13 Aug 2005) | 1 line
|
45
|
+
Changed paths:
|
46
|
+
M /rio/trunk/lib/rio/rl/path.rb
|
47
|
+
M /rio/trunk/lib/rio/version.rb
|
48
|
+
M /rio/trunk/lib/rio.rb
|
49
|
+
M /rio/trunk/test/tc/copylines.rb
|
50
|
+
|
51
|
+
New Version
|
52
|
+
------------------------------------------------------------------------
|
53
|
+
r57 | kit | 2005-08-13 14:35:16 -0700 (Sat, 13 Aug 2005) | 1 line
|
54
|
+
Changed paths:
|
55
|
+
M /rio/trunk/ex/findinruby
|
56
|
+
M /rio/trunk/ex/findruby
|
57
|
+
M /rio/trunk/lib/rio/argv.rb
|
58
|
+
M /rio/trunk/lib/rio/context/dir.rb
|
59
|
+
M /rio/trunk/lib/rio/context.rb
|
60
|
+
M /rio/trunk/lib/rio/doc/HOWTO.rb
|
61
|
+
M /rio/trunk/lib/rio/grande.rb
|
62
|
+
M /rio/trunk/lib/rio/matchrecord.rb
|
63
|
+
M /rio/trunk/lib/rio/ops/stream/input.rb
|
64
|
+
M /rio/trunk/test/tc/all.rb
|
65
|
+
M /rio/trunk/test/tc/copylines.rb
|
66
|
+
A /rio/trunk/test/tc/tempdir.rb
|
67
|
+
|
68
|
+
documentation and fixed examples; added test for tempdirs
|
69
|
+
------------------------------------------------------------------------
|
70
|
+
r56 | kit | 2005-08-11 10:47:05 -0700 (Thu, 11 Aug 2005) | 1 line
|
71
|
+
Changed paths:
|
72
|
+
M /rio/trunk/lib/rio/dir.rb
|
73
|
+
M /rio/trunk/lib/rio/factory.rb
|
74
|
+
M /rio/trunk/lib/rio/scheme/tempdir.rb
|
75
|
+
M /rio/trunk/lib/rio/tempdir.rb
|
76
|
+
|
77
|
+
tempdir support
|
78
|
+
------------------------------------------------------------------------
|
79
|
+
r55 | kit | 2005-08-11 09:18:09 -0700 (Thu, 11 Aug 2005) | 1 line
|
80
|
+
Changed paths:
|
81
|
+
A /rio/trunk/doc/ANNOUNCE
|
82
|
+
A /rio/trunk/lib/rio/scheme/tempdir.rb
|
83
|
+
A /rio/trunk/lib/rio/tempdir.rb
|
84
|
+
M /rio/trunk/test/tc/all.rb
|
85
|
+
A /rio/trunk/test/tc/tempfile.rb
|
86
|
+
|
87
|
+
Preliminary code for tempdir: scheme
|
88
|
+
------------------------------------------------------------------------
|
89
|
+
r54 | kit | 2005-08-10 18:34:27 -0700 (Wed, 10 Aug 2005) | 1 line
|
90
|
+
Changed paths:
|
91
|
+
M /rio/trunk/lib/rio/factory.rb
|
92
|
+
M /rio/trunk/lib/rio/scheme/path.rb
|
93
|
+
M /rio/trunk/lib/rio/scheme/tempfile.rb
|
94
|
+
|
95
|
+
Fix in tempfile
|
96
|
+
------------------------------------------------------------------------
|
97
|
+
r53 | kit | 2005-08-10 12:59:56 -0700 (Wed, 10 Aug 2005) | 1 line
|
98
|
+
Changed paths:
|
99
|
+
M /rio/trunk/lib/rio/scheme/tempfile.rb
|
100
|
+
M /rio/trunk/lib/rio/state.rb
|
101
|
+
M /rio/trunk/lib/rio/stream.rb
|
102
|
+
M /rio/trunk/test/tc/all.rb
|
103
|
+
A /rio/trunk/test/tc/riorl.rb
|
104
|
+
|
105
|
+
fix for tempfile rios
|
106
|
+
------------------------------------------------------------------------
|
107
|
+
r52 | kit | 2005-08-08 09:56:51 -0700 (Mon, 08 Aug 2005) | 1 line
|
108
|
+
Changed paths:
|
109
|
+
M /rio/trunk/lib/rio/context/methods.rb
|
110
|
+
M /rio/trunk/lib/rio/doc/HOWTO.rb
|
111
|
+
M /rio/trunk/lib/rio/doc/INTRO.rb
|
112
|
+
M /rio/trunk/lib/rio/doc/SYNOPSIS.rb
|
113
|
+
M /rio/trunk/lib/rio/stream/open.rb
|
114
|
+
|
115
|
+
Channge noclose to noautoclose, and documentation
|
116
|
+
------------------------------------------------------------------------
|
117
|
+
r51 | kit | 2005-08-07 16:22:20 -0700 (Sun, 07 Aug 2005) | 1 line
|
118
|
+
Changed paths:
|
119
|
+
M /rio/trunk/lib/rio/doc/INTRO.rb
|
120
|
+
|
121
|
+
Documentation
|
122
|
+
------------------------------------------------------------------------
|
123
|
+
r50 | kit | 2005-08-07 14:49:26 -0700 (Sun, 07 Aug 2005) | 1 line
|
124
|
+
Changed paths:
|
125
|
+
M /rio/trunk/Rakefile
|
126
|
+
M /rio/trunk/lib/rio/doc/SYNOPSIS.rb
|
127
|
+
M /rio/trunk/lib/rio/if/basic.rb
|
128
|
+
M /rio/trunk/lib/rio/if/path.rb
|
129
|
+
M /rio/trunk/lib/rio/ops/path.rb
|
130
|
+
M /rio/trunk/lib/rio/rl/ioi.rb
|
131
|
+
M /rio/trunk/lib/rio/rl/path.rb
|
132
|
+
M /rio/trunk/lib/rio/rl/uri.rb
|
133
|
+
M /rio/trunk/lib/rio/scheme/cmdio.rb
|
134
|
+
M /rio/trunk/lib/rio/scheme/stdio.rb
|
135
|
+
M /rio/trunk/lib/rio/scheme/strio.rb
|
136
|
+
M /rio/trunk/lib/rio/scheme/sysio.rb
|
137
|
+
M /rio/trunk/lib/rio/scheme/tcp.rb
|
138
|
+
M /rio/trunk/lib/rio/scheme/tempfile.rb
|
139
|
+
|
140
|
+
reworked the way base paths are handled
|
141
|
+
------------------------------------------------------------------------
|
2
142
|
r45 | kit | 2005-08-06 09:17:04 -0700 (Sat, 06 Aug 2005) | 1 line
|
3
143
|
Changed paths:
|
4
144
|
M /rio/trunk/README
|
data/Rakefile
CHANGED
@@ -178,7 +178,7 @@ task :svn_version do
|
|
178
178
|
relo =`svn list #{relu.to_url}`
|
179
179
|
if relo.size > 0
|
180
180
|
$stderr.puts "Release #{relu.to_url} exists!"
|
181
|
-
exit
|
181
|
+
exit(-1)
|
182
182
|
end
|
183
183
|
msg = "Release #{PKG::VERSION} of #{PKG::NAME}"
|
184
184
|
cmd = sprintf('svn copy %s %s -m "%s"',proju.to_url, relu.to_url, msg)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/doc/ANNOUNCE
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
For your perusal -- Rio 0.3.2
|
2
|
+
|
3
|
+
== Overview
|
4
|
+
|
5
|
+
Rio is a Ruby I/O convenience class wrapping much of the functionality
|
6
|
+
of IO, File and Dir. Rio also uses Pathname, FileUtils, Tempfile,
|
7
|
+
StringIO, OpenURI, Zlib, and CSV to provide similar functionality using
|
8
|
+
a simple consistent interface. In addition to forwarding the interfaces
|
9
|
+
provided by IO, File, and Dir to an appropriate object, Rio provides
|
10
|
+
a "grande" interface that allows many common application-level I/O and
|
11
|
+
file-system tasks to be expressed succinctly.
|
12
|
+
|
13
|
+
|
14
|
+
== New for version 0.3.2
|
15
|
+
|
16
|
+
* Based on a suggestion by Wybo Decker and code attributed to Nobu Nokada,
|
17
|
+
Rio now supports temporary directories in addition to temporary files.
|
18
|
+
* Bug fixes
|
19
|
+
* More tests and documentation.
|
20
|
+
|
21
|
+
|
22
|
+
== Version 0.3.1
|
23
|
+
|
24
|
+
A Rio is and can manipulate:
|
25
|
+
* a path
|
26
|
+
* the string representing that path
|
27
|
+
* the file, directory, web-page, or IO object to which that path refers
|
28
|
+
* the object created by opening that file or directory.
|
29
|
+
|
30
|
+
A Rio open itself, closes itself and selects its mode based on how it
|
31
|
+
used and the object referenced.
|
32
|
+
|
33
|
+
== Grande interface
|
34
|
+
|
35
|
+
With the grande interface you can:
|
36
|
+
|
37
|
+
Copy...
|
38
|
+
rio('afile') > astring # a file into a string
|
39
|
+
rio('afile') < astring # a string into a file
|
40
|
+
rio('afile') > anarray # lines of a file into array
|
41
|
+
rio('afile') < anarray # an array into a file
|
42
|
+
rio('afile') > rio('another_file') # a file into another file
|
43
|
+
rio('adir') > rio('another_directory') # a directory into another
|
44
|
+
rio('http://rubydoc.org/') > rio('afile') # a web page into a file
|
45
|
+
|
46
|
+
Iterate...
|
47
|
+
rio('adir').entries { |entrio| ... } # over directory entries
|
48
|
+
rio('adir').files { |entrio| ... } # over only files
|
49
|
+
rio('adir').dirs { |entrio| ... } # over only directories
|
50
|
+
rio('afile').lines { |line| ... } # over lines in a file
|
51
|
+
|
52
|
+
Create an array...
|
53
|
+
rio('adir').files[] # of files
|
54
|
+
rio('adir').dirs[] # of directories
|
55
|
+
rio('afile').lines[] # of lines
|
56
|
+
|
57
|
+
Whether copying, iterating or returning an array
|
58
|
+
Rio provides common input manipulations
|
59
|
+
|
60
|
+
rio('afile').chomp > anarray # chomped lines to an array
|
61
|
+
anarray = rio('afile').chomp[] # same thing
|
62
|
+
rio('afile.gz').gzip > rio('afile') # ungzip a file
|
63
|
+
rio('afile.gz').gzip < rio('afile') # gzip a file
|
64
|
+
rio('afile.gz').chomp { |line| ...} # iterate chomped lines
|
65
|
+
|
66
|
+
Whether copying, iterating or returning an array
|
67
|
+
Rio provides simple input selection
|
68
|
+
|
69
|
+
rio('afile').lines(0..9) > rio('file2') # the first 10 lines
|
70
|
+
rio('afile').lines(/Rio/) { |line| ...} # lines containing 'Rio'
|
71
|
+
anarray = rio('adir').files['*.rb'] # ruby files
|
72
|
+
|
73
|
+
Manipulation and selection methods can be combined
|
74
|
+
|
75
|
+
rio('afile').gzip.lines(/Rio/) > astring # 'Rio' lines from gz file
|
76
|
+
anarray = rio('afile').chomp[0..9] # first 10 lines chomped
|
77
|
+
|
78
|
+
Many more examples and documentation at http://rio.rubyforge.org/
|
79
|
+
|
80
|
+
== Copyright
|
81
|
+
Copyright (c) 2005, Christopher Kleckner. All rights reserved
|
82
|
+
|
83
|
+
== License
|
84
|
+
Rio is released under the GNU General Public License
|
85
|
+
(http://www.gnu.org/licenses/gp l.html)
|
86
|
+
|
87
|
+
-Christopher Kleckner
|
data/doc/RELEASE_NOTES
CHANGED
@@ -24,6 +24,13 @@ Suggested Reading
|
|
24
24
|
* RIO::Doc::HOWTO
|
25
25
|
* RIO::Rio
|
26
26
|
|
27
|
+
== New for version 0.3.2
|
28
|
+
|
29
|
+
* Based on a suggestion by Wybo Decker and code attributed to Nobu Nokada,
|
30
|
+
Rio now supports temporary directories in addition to temporary files.
|
31
|
+
* Bug fixes
|
32
|
+
* More tests and documentation.
|
33
|
+
|
27
34
|
== SYNOPSIS
|
28
35
|
|
29
36
|
For the following assume:
|
@@ -112,8 +112,8 @@ subject to change without notice.</b>
|
|
112
112
|
<h3 class="section-bar">Methods</h3>
|
113
113
|
|
114
114
|
<div class="name-list">
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
115
|
+
<a href="#M000183">io</a>
|
116
|
+
<a href="#M000182">rio</a>
|
117
117
|
</div>
|
118
118
|
</div>
|
119
119
|
|
@@ -135,8 +135,8 @@ subject to change without notice.</b>
|
|
135
135
|
<div id="methods">
|
136
136
|
<h3 class="section-bar">Public Instance methods</h3>
|
137
137
|
|
138
|
-
<div id="method-
|
139
|
-
<a name="
|
138
|
+
<div id="method-M000183" class="method-detail">
|
139
|
+
<a name="M000183"></a>
|
140
140
|
|
141
141
|
<div class="method-heading">
|
142
142
|
<span class="method-name">io</span><span class="method-args">(*args)</span>
|
@@ -144,17 +144,17 @@ subject to change without notice.</b>
|
|
144
144
|
|
145
145
|
<div class="method-description">
|
146
146
|
<p>
|
147
|
-
Alias for <a href="Kernel.html#
|
147
|
+
Alias for <a href="Kernel.html#M000182">rio</a>
|
148
148
|
</p>
|
149
149
|
</div>
|
150
150
|
</div>
|
151
151
|
|
152
|
-
<div id="method-
|
153
|
-
<a name="
|
152
|
+
<div id="method-M000182" class="method-detail">
|
153
|
+
<a name="M000182"></a>
|
154
154
|
|
155
155
|
<div class="method-heading">
|
156
|
-
<a href="Kernel.src/
|
157
|
-
onclick="popupCode('Kernel.src/
|
156
|
+
<a href="Kernel.src/M000182.html" target="Code" class="method-signature"
|
157
|
+
onclick="popupCode('Kernel.src/M000182.html');return false;">
|
158
158
|
<span class="method-name">rio</span><span class="method-args">(*args) {|self| ...}</span>
|
159
159
|
</a>
|
160
160
|
</div>
|
File without changes
|
data/doc/rdoc/classes/RIO.html
CHANGED
@@ -443,6 +443,41 @@ choosing
|
|
443
443
|
rio(??)
|
444
444
|
rio(??,basename='rio',tmpdir=Dir::tmpdir)
|
445
445
|
</pre>
|
446
|
+
<p>
|
447
|
+
To create a temporary object that will become a file or a directory,
|
448
|
+
depending on how you use it:
|
449
|
+
</p>
|
450
|
+
<pre>
|
451
|
+
rio(??)
|
452
|
+
rio(??,basename='rio',tmpdir=Dir::tmpdir)
|
453
|
+
</pre>
|
454
|
+
<p>
|
455
|
+
To force it to become a file
|
456
|
+
</p>
|
457
|
+
<pre>
|
458
|
+
rio(??).file
|
459
|
+
</pre>
|
460
|
+
<p>
|
461
|
+
or just write to it.
|
462
|
+
</p>
|
463
|
+
<p>
|
464
|
+
To force it to become a directory:
|
465
|
+
</p>
|
466
|
+
<pre>
|
467
|
+
rio(??).dir
|
468
|
+
</pre>
|
469
|
+
<p>
|
470
|
+
or
|
471
|
+
</p>
|
472
|
+
<pre>
|
473
|
+
rio(??).mkdir
|
474
|
+
</pre>
|
475
|
+
<p>
|
476
|
+
or
|
477
|
+
</p>
|
478
|
+
<pre>
|
479
|
+
rio(??).chdir
|
480
|
+
</pre>
|
446
481
|
<h5>Creating a <a href="RIO/Rio.html">Rio</a> that refers to an arbitrary TCPSocket</h5>
|
447
482
|
<pre>
|
448
483
|
rio('tcp:',hostname,port)
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/rio/constructor.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/rio/constructor.rb, line 170</span>
|
14
|
+
170: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rio</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># :yields: self</span>
|
15
|
+
171: <span class="ruby-constant">Rio</span>.<span class="ruby-identifier">rio</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
16
|
+
172: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/rio/constructor.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/rio/constructor.rb, line 177</span>
|
14
|
+
177: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">cwd</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># :yields: self</span>
|
15
|
+
178: <span class="ruby-constant">Rio</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">getwd</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
16
|
+
179: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -10,9 +10,9 @@
|
|
10
10
|
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
11
11
|
</head>
|
12
12
|
<body class="standalone-code">
|
13
|
-
<pre> <span class="ruby-comment cmt"># File lib/rio/constructor.rb, line
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<pre> <span class="ruby-comment cmt"># File lib/rio/constructor.rb, line 184</span>
|
14
|
+
184: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">root</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>) <span class="ruby-comment cmt"># :yields: self</span>
|
15
|
+
185: <span class="ruby-constant">Rio</span>.<span class="ruby-identifier">new</span>.<span class="ruby-identifier">rootpath</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>,<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
16
|
+
186: <span class="ruby-keyword kw">end</span></pre>
|
17
17
|
</body>
|
18
18
|
</html>
|
@@ -161,7 +161,7 @@ line chomped
|
|
161
161
|
|
162
162
|
<pre>
|
163
163
|
# method 1
|
164
|
-
array = ario.chomp.lines
|
164
|
+
array = ario.chomp.lines[/^\s*require/]
|
165
165
|
# method 2
|
166
166
|
ario.chomp.lines(/^\s*require/) > array
|
167
167
|
</pre>
|
@@ -266,7 +266,7 @@ lines longer than 1024 chars
|
|
266
266
|
# method 2
|
267
267
|
ario.print(string)
|
268
268
|
# method 3
|
269
|
-
ario.
|
269
|
+
ario.noautoclose < string
|
270
270
|
</pre>
|
271
271
|
</li>
|
272
272
|
<li>Write a string to a file and close the file
|
@@ -288,7 +288,7 @@ lines longer than 1024 chars
|
|
288
288
|
# method 2
|
289
289
|
ario.a.print(string)
|
290
290
|
# method 3
|
291
|
-
ario.
|
291
|
+
ario.noautoclose << string
|
292
292
|
</pre>
|
293
293
|
</li>
|
294
294
|
<li>Append a string to a file and close the file
|
@@ -309,7 +309,7 @@ lines longer than 1024 chars
|
|
309
309
|
ario = rio('afile').nocloseoncopy
|
310
310
|
ario << array
|
311
311
|
# method 2
|
312
|
-
ario.
|
312
|
+
ario.noautoclose < array
|
313
313
|
</pre>
|
314
314
|
</li>
|
315
315
|
<li>Write an array to a file and close the file
|
@@ -441,12 +441,16 @@ including those in subdirectories, except those in subdirectories name
|
|
441
441
|
array = ario.norecurse('.svn')['*.txt']
|
442
442
|
</pre>
|
443
443
|
</li>
|
444
|
-
<li>Iterate through
|
445
|
-
’.svn’
|
444
|
+
<li>Iterate through ruby files in a directory and subdirectories skipping those
|
445
|
+
in the ’.svn’, and ‘pkg’ directories
|
446
446
|
|
447
447
|
<pre>
|
448
448
|
# method 1
|
449
|
-
|
449
|
+
is_ruby_exe = proc{ |f| f.executable? and f[0][0] =~ /^#!.+ruby/ }
|
450
|
+
ario.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) { |f| ... }
|
451
|
+
# method 2
|
452
|
+
is_ruby_exe = proc{ |f| f.executable? and f.gets =~ /^#!.+ruby/ }
|
453
|
+
ario.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) { |f| ... }
|
450
454
|
</pre>
|
451
455
|
</li>
|
452
456
|
<li>Put all files excluding those that are symlinks to files in an array
|