rio 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +1273 -1482
- data/README +2 -2
- data/Rakefile +5 -5
- data/VERSION +1 -1
- data/{RUNME.1st.rb → build_doc.rb} +4 -10
- data/doc/ANNOUNCE +33 -80
- data/doc/RELEASE_NOTES +31 -1
- data/doc/generators/template/html/rio.rb +3 -3
- data/lib/rio/abstract_method.rb +2 -2
- data/lib/rio/argv.rb +2 -2
- data/lib/rio/arycopy.rb +2 -2
- data/lib/rio/assert.rb +2 -2
- data/lib/rio/base.rb +2 -2
- data/lib/rio/callstr.rb +47 -0
- data/lib/rio/const.rb +52 -0
- data/lib/rio/construct.rb +6 -24
- data/lib/rio/constructor.rb +12 -2
- data/lib/rio/context/autoclose.rb +73 -0
- data/lib/rio/context/copying.rb +2 -2
- data/lib/rio/context/cxx.rb +2 -2
- data/lib/rio/context/dir.rb +2 -2
- data/lib/rio/context/gzip.rb +2 -2
- data/lib/rio/context/methods.rb +6 -34
- data/lib/rio/context/skip.rb +2 -2
- data/lib/rio/context/stream.rb +2 -2
- data/lib/rio/context.rb +17 -2
- data/lib/rio/cp.rb +35 -9
- data/lib/rio/def.rb +54 -0
- data/lib/rio/dir.rb +19 -20
- data/lib/rio/doc/HOWTO.rb +23 -7
- data/lib/rio/doc/INTRO.rb +57 -23
- data/lib/rio/doc/MISC.rb +2 -2
- data/lib/rio/doc/OPTIONAL.rb +134 -0
- data/lib/rio/doc/SYNOPSIS.rb +11 -4
- data/lib/rio/doc.rb +2 -2
- data/lib/rio/entrysel.rb +25 -6
- data/lib/rio/exception/copy.rb +2 -2
- data/lib/rio/exception/notsupported.rb +47 -0
- data/lib/rio/exception/open.rb +2 -2
- data/lib/rio/exception/state.rb +2 -2
- data/lib/rio/exception.rb +2 -2
- data/lib/rio/ext/csv.rb +56 -11
- data/lib/rio/ext/yaml.rb +2 -2
- data/lib/rio/ext/zipfile.rb +91 -0
- data/lib/rio/ext.rb +38 -3
- data/lib/rio/factory.rb +17 -34
- data/lib/rio/file.rb +48 -8
- data/lib/rio/filter/closeoneof.rb +36 -16
- data/lib/rio/filter/gzip.rb +2 -2
- data/lib/rio/filter.rb +2 -2
- data/lib/rio/fs/base.rb +42 -0
- data/lib/rio/fs/impl.rb +123 -0
- data/lib/rio/fs/native.rb +76 -0
- data/lib/rio/{record.rb → fs/stream.rb} +21 -18
- data/lib/rio/fs/url.rb +64 -0
- data/lib/rio/ftp/{ioh.rb → conncache.rb} +38 -39
- data/lib/rio/ftp/dir.rb +95 -0
- data/lib/rio/ftp/fs.rb +173 -0
- data/lib/rio/ftp/ftpfile.rb +20 -0
- data/lib/rio/grande.rb +2 -2
- data/lib/rio/handle.rb +2 -2
- data/lib/rio/if/basic.rb +2 -2
- data/lib/rio/if/csv.rb +2 -2
- data/lib/rio/if/dir.rb +2 -2
- data/lib/rio/if/file.rb +26 -2
- data/lib/rio/if/fileordir.rb +44 -49
- data/lib/rio/if/grande.rb +32 -10
- data/lib/rio/if/grande_entry.rb +12 -2
- data/lib/rio/if/grande_stream.rb +17 -28
- data/lib/rio/if/internal.rb +2 -2
- data/lib/rio/if/path.rb +7 -6
- data/lib/rio/if/stream.rb +85 -29
- data/lib/rio/if/string.rb +2 -2
- data/lib/rio/if/temp.rb +2 -2
- data/lib/rio/if/test.rb +37 -4
- data/lib/rio/if/yaml.rb +2 -2
- data/lib/rio/if.rb +2 -2
- data/lib/rio/impl/path.rb +2 -2
- data/lib/rio/ioh.rb +17 -6
- data/lib/rio/iomode.rb +4 -3
- data/lib/rio/ios/fail.rb +107 -0
- data/lib/rio/ios/generic.rb +120 -0
- data/lib/rio/ios/mode.rb +61 -0
- data/lib/rio/ios/null.rb +120 -0
- data/lib/rio/iowrap.rb +129 -0
- data/lib/rio/kernel.rb +12 -3
- data/lib/rio/local.rb +2 -2
- data/lib/rio/match.rb +3 -3
- data/lib/rio/matchrecord.rb +2 -2
- data/lib/rio/no_warn.rb +50 -0
- data/lib/rio/{arrayio.rb → nullio.rb} +47 -86
- data/lib/rio/open3.rb +2 -2
- data/lib/rio/ops/construct.rb +20 -13
- data/lib/rio/ops/create.rb +10 -19
- data/lib/rio/ops/dir.rb +60 -54
- data/lib/rio/ops/either.rb +11 -9
- data/lib/rio/ops/file.rb +28 -24
- data/lib/rio/ops/path.rb +45 -43
- data/lib/rio/ops/stream/input.rb +12 -8
- data/lib/rio/ops/stream/output.rb +2 -2
- data/lib/rio/ops/stream/read.rb +35 -32
- data/lib/rio/ops/stream/write.rb +5 -5
- data/lib/rio/ops/stream.rb +7 -3
- data/lib/rio/ops/symlink.rb +12 -10
- data/lib/rio/path/reset.rb +5 -5
- data/lib/rio/path.rb +32 -24
- data/lib/rio/piper/cp.rb +2 -2
- data/lib/rio/piper.rb +2 -2
- data/lib/rio/prompt.rb +2 -2
- data/lib/rio/rectype.rb +9 -7
- data/lib/rio/rl/base.rb +5 -4
- data/lib/rio/rl/builder.rb +17 -5
- data/lib/rio/rl/ioi.rb +14 -4
- data/lib/rio/rl/path.rb +23 -15
- data/lib/rio/rl/pathmethods.rb +12 -2
- data/lib/rio/rl/uri.rb +13 -6
- data/lib/rio/scheme/aryio.rb +3 -3
- data/lib/rio/scheme/cmdio.rb +4 -3
- data/lib/rio/scheme/cmdpipe.rb +3 -35
- data/lib/rio/scheme/fd.rb +4 -3
- data/lib/rio/scheme/ftp.rb +36 -7
- data/lib/rio/scheme/http.rb +2 -2
- data/lib/rio/{context/closeoneof.rb → scheme/null.rb} +17 -11
- data/lib/rio/scheme/path.rb +28 -30
- data/lib/rio/scheme/stderr.rb +4 -4
- data/lib/rio/scheme/stdio.rb +6 -5
- data/lib/rio/scheme/strio.rb +10 -20
- data/lib/rio/scheme/sysio.rb +5 -2
- data/lib/rio/scheme/tcp.rb +4 -3
- data/lib/rio/scheme/temp.rb +14 -1
- data/lib/rio/state/error.rb +2 -2
- data/lib/rio/state.rb +80 -34
- data/lib/rio/stream/base.rb +7 -2
- data/lib/rio/stream/duplex.rb +13 -10
- data/lib/rio/stream/open.rb +74 -79
- data/lib/rio/stream.rb +15 -23
- data/lib/rio/symantics.rb +2 -2
- data/lib/rio/tempdir.rb +132 -132
- data/lib/rio/to_rio/all.rb +40 -0
- data/lib/rio/to_rio/array.rb +40 -0
- data/lib/rio/to_rio/io.rb +41 -0
- data/lib/rio/to_rio/object.rb +43 -0
- data/lib/rio/to_rio/string.rb +41 -0
- data/lib/rio/to_rio.rb +13 -2
- data/lib/rio/uri/file.rb +2 -2
- data/lib/rio/util.rb +2 -2
- data/lib/rio/version.rb +3 -3
- data/lib/rio.rb +16 -25
- data/test/bin/count_lines.rb +11 -0
- data/test/bin/find_lines.rb +13 -0
- data/test/bin/list_dir.rb +14 -0
- data/test/ftp/all.rb +9 -0
- data/test/ftp/anon_misc.rb +112 -0
- data/test/ftp/anon_read.rb +105 -0
- data/test/ftp/anon_special.rb +68 -0
- data/test/ftp/anon_write.rb +63 -0
- data/test/ftp/ftp2ftp.rb +51 -0
- data/test/ftp/initftpfiles.rb +14 -0
- data/test/ftp/testdef.rb +51 -0
- data/test/gem_runtests.rb +15 -15
- data/test/runalltests.rb +15 -0
- data/test/runftptests.rb +14 -0
- data/test/{1.rb → runhttptests.rb} +14 -14
- data/test/runtests.rb +14 -14
- data/test/tc/all.rb +36 -21
- data/test/tc/cmdpipe.rb +18 -15
- data/test/tc/copy-from-http.rb +89 -0
- data/test/tc/copy-from.rb +1 -52
- data/test/tc/copy.rb +19 -17
- data/test/tc/csv2.rb +6 -3
- data/test/tc/empty.rb +47 -0
- data/test/tc/emptyriodir.rb +129 -0
- data/test/tc/entsel.rb +110 -0
- data/test/tc/files_select.rb +92 -0
- data/test/tc/get.rb +7 -6
- data/test/tc/getrec.rb +2 -5
- data/test/tc/gzip.rb +82 -0
- data/test/tc/io_each_byte.rb +60 -0
- data/test/tc/io_read.rb +80 -0
- data/test/tc/iometh.rb +149 -0
- data/test/tc/likeio.rb +112 -0
- data/test/tc/methods.rb +10 -9
- data/test/tc/misc.rb +1 -37
- data/test/tc/null.rb +45 -0
- data/test/tc/pid.rb +31 -0
- data/test/tc/piper.rb +34 -37
- data/test/tc/programs_util.rb +24 -0
- data/test/tc/readline.rb +30 -0
- data/test/tc/rename.rb +12 -0
- data/test/tc/tempfile.rb +14 -0
- data/test/tc/testcase.rb +6 -0
- data/test/tc/tonl.rb +37 -0
- metadata +181 -144
- data/ex/colx.rb +0 -8
- data/ex/findinruby +0 -16
- data/ex/findruby +0 -15
- data/ex/passwd_report.rb +0 -8
- data/ex/prompt.rb +0 -25
- data/ex/rgb.txt.gz +0 -0
- data/ex/riocat +0 -35
- data/ex/riogunzip +0 -31
- data/ex/riogzip +0 -24
- data/ex/rioprompt.rb +0 -6
- data/ex/targz2zip +0 -17
- data/ex/tolf +0 -11
- data/lib/rio/ftp/conn.rb +0 -167
- data/lib/rio/ftp.rb +0 -275
- data/test/once.rb +0 -7
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
!ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
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:
|
6
|
+
version: 0.3.8
|
7
|
+
date: 2006-05-05 00:00:00 -07:00
|
8
8
|
summary: Rio - Ruby I/O Comfort Class
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: rio4ruby@rubyforge.org
|
12
12
|
homepage: http://rio.rubyforge.org/
|
13
13
|
rubyforge_project: rio
|
14
|
-
description:
|
14
|
+
description:
|
15
15
|
autorequire: rio
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
@@ -28,137 +28,16 @@ cert_chain:
|
|
28
28
|
authors:
|
29
29
|
- Christopher Kleckner
|
30
30
|
files:
|
31
|
-
- setup.rb
|
32
|
-
- RUNME.1st.rb
|
33
|
-
- COPYING
|
34
|
-
- Rakefile
|
35
|
-
- ChangeLog
|
36
|
-
- VERSION
|
37
|
-
- test/1.rb
|
38
|
-
- test/gem_runtests.rb
|
39
|
-
- test/once.rb
|
40
|
-
- test/runtests.rb
|
41
|
-
- test/tc/abs.rb
|
42
|
-
- test/tc/all.rb
|
43
|
-
- test/tc/base.rb
|
44
|
-
- test/tc/cd1.rb
|
45
|
-
- test/tc/clearsel.rb
|
46
|
-
- test/tc/closeoncopy.rb
|
47
|
-
- test/tc/closeoneof.rb
|
48
|
-
- test/tc/cmdpipe.rb
|
49
|
-
- test/tc/copy-from.rb
|
50
|
-
- test/tc/copy-to.rb
|
51
|
-
- test/tc/copy.rb
|
52
|
-
- test/tc/copyarray.rb
|
53
|
-
- test/tc/copydest.rb
|
54
|
-
- test/tc/copydir.rb
|
55
|
-
- test/tc/copydirlines.rb
|
56
|
-
- test/tc/copylines.rb
|
57
|
-
- test/tc/copynonex.rb
|
58
|
-
- test/tc/copysymlink.rb
|
59
|
-
- test/tc/create.rb
|
60
|
-
- test/tc/csv.rb
|
61
|
-
- test/tc/csv2.rb
|
62
|
-
- test/tc/csvutil.rb
|
63
|
-
- test/tc/csv_columns.rb
|
64
|
-
- test/tc/dir.rb
|
65
|
-
- test/tc/dirautoclose.rb
|
66
|
-
- test/tc/dirent.rb
|
67
|
-
- test/tc/dirss.rb
|
68
|
-
- test/tc/dir_iter.rb
|
69
|
-
- test/tc/each.rb
|
70
|
-
- test/tc/each_break.rb
|
71
|
-
- test/tc/edf.rb
|
72
|
-
- test/tc/entary.rb
|
73
|
-
- test/tc/eq.rb
|
74
|
-
- test/tc/expand_path.rb
|
75
|
-
- test/tc/ext.rb
|
76
|
-
- test/tc/fileno.rb
|
77
|
-
- test/tc/get.rb
|
78
|
-
- test/tc/getrec.rb
|
79
|
-
- test/tc/lineno.rb
|
80
|
-
- test/tc/lines.rb
|
81
|
-
- test/tc/methods.rb
|
82
|
-
- test/tc/misc.rb
|
83
|
-
- test/tc/nolines.rb
|
84
|
-
- test/tc/noqae.rb
|
85
|
-
- test/tc/once.rb
|
86
|
-
- test/tc/overload.rb
|
87
|
-
- test/tc/pa.rb
|
88
|
-
- test/tc/pathop.rb
|
89
|
-
- test/tc/paths.rb
|
90
|
-
- test/tc/piper.rb
|
91
|
-
- test/tc/qae.rb
|
92
|
-
- test/tc/qae_riovar.rb
|
93
|
-
- test/tc/records.rb
|
94
|
-
- test/tc/rename.rb
|
95
|
-
- test/tc/rename_assign.rb
|
96
|
-
- test/tc/riorl.rb
|
97
|
-
- test/tc/route.rb
|
98
|
-
- test/tc/selnosel.rb
|
99
|
-
- test/tc/skip.rb
|
100
|
-
- test/tc/skiplines.rb
|
101
|
-
- test/tc/split.rb
|
102
|
-
- test/tc/sub.rb
|
103
|
-
- test/tc/symlink.rb
|
104
|
-
- test/tc/symlink0.rb
|
105
|
-
- test/tc/symlink1.rb
|
106
|
-
- test/tc/temp.rb
|
107
|
-
- test/tc/tempdir.rb
|
108
|
-
- test/tc/tempfile.rb
|
109
|
-
- test/tc/testcase.rb
|
110
|
-
- test/tc/yaml.rb
|
111
|
-
- doc/ANNOUNCE
|
112
|
-
- doc/generators
|
113
|
-
- doc/RELEASE_NOTES
|
114
|
-
- doc/rfc1738.txt
|
115
|
-
- doc/rfc959.txt
|
116
|
-
- doc/generators/template
|
117
|
-
- doc/generators/template/html
|
118
|
-
- doc/generators/template/html/rio.rb
|
119
|
-
- lib/rio.rb
|
120
31
|
- lib/rio/abstract_method.rb
|
121
32
|
- lib/rio/argv.rb
|
122
|
-
- lib/rio/arrayio.rb
|
123
33
|
- lib/rio/arycopy.rb
|
124
34
|
- lib/rio/assert.rb
|
125
35
|
- lib/rio/base.rb
|
36
|
+
- lib/rio/callstr.rb
|
37
|
+
- lib/rio/const.rb
|
126
38
|
- lib/rio/construct.rb
|
127
39
|
- lib/rio/constructor.rb
|
128
|
-
- lib/rio/context.rb
|
129
|
-
- lib/rio/cp.rb
|
130
|
-
- lib/rio/dir.rb
|
131
|
-
- lib/rio/doc.rb
|
132
|
-
- lib/rio/entrysel.rb
|
133
|
-
- lib/rio/exception.rb
|
134
|
-
- lib/rio/ext.rb
|
135
|
-
- lib/rio/factory.rb
|
136
|
-
- lib/rio/file.rb
|
137
|
-
- lib/rio/filter.rb
|
138
|
-
- lib/rio/ftp.rb
|
139
|
-
- lib/rio/grande.rb
|
140
|
-
- lib/rio/handle.rb
|
141
|
-
- lib/rio/if.rb
|
142
|
-
- lib/rio/ioh.rb
|
143
|
-
- lib/rio/iomode.rb
|
144
|
-
- lib/rio/kernel.rb
|
145
|
-
- lib/rio/local.rb
|
146
|
-
- lib/rio/match.rb
|
147
|
-
- lib/rio/matchrecord.rb
|
148
|
-
- lib/rio/open3.rb
|
149
|
-
- lib/rio/path.rb
|
150
|
-
- lib/rio/piper.rb
|
151
|
-
- lib/rio/prompt.rb
|
152
|
-
- lib/rio/record.rb
|
153
|
-
- lib/rio/rectype.rb
|
154
|
-
- lib/rio/state.rb
|
155
|
-
- lib/rio/stream.rb
|
156
|
-
- lib/rio/symantics.rb
|
157
|
-
- lib/rio/tempdir.rb
|
158
|
-
- lib/rio/to_rio.rb
|
159
|
-
- lib/rio/util.rb
|
160
|
-
- lib/rio/version.rb
|
161
|
-
- lib/rio/context/closeoneof.rb
|
40
|
+
- lib/rio/context/autoclose.rb
|
162
41
|
- lib/rio/context/copying.rb
|
163
42
|
- lib/rio/context/cxx.rb
|
164
43
|
- lib/rio/context/dir.rb
|
@@ -166,19 +45,42 @@ files:
|
|
166
45
|
- lib/rio/context/methods.rb
|
167
46
|
- lib/rio/context/skip.rb
|
168
47
|
- lib/rio/context/stream.rb
|
48
|
+
- lib/rio/context.rb
|
49
|
+
- lib/rio/cp.rb
|
50
|
+
- lib/rio/def.rb
|
51
|
+
- lib/rio/dir.rb
|
169
52
|
- lib/rio/doc/HOWTO.rb
|
170
53
|
- lib/rio/doc/INTRO.rb
|
171
54
|
- lib/rio/doc/MISC.rb
|
55
|
+
- lib/rio/doc/OPTIONAL.rb
|
172
56
|
- lib/rio/doc/SYNOPSIS.rb
|
57
|
+
- lib/rio/doc.rb
|
58
|
+
- lib/rio/entrysel.rb
|
173
59
|
- lib/rio/exception/copy.rb
|
60
|
+
- lib/rio/exception/notsupported.rb
|
174
61
|
- lib/rio/exception/open.rb
|
175
62
|
- lib/rio/exception/state.rb
|
63
|
+
- lib/rio/exception.rb
|
176
64
|
- lib/rio/ext/csv.rb
|
177
65
|
- lib/rio/ext/yaml.rb
|
66
|
+
- lib/rio/ext/zipfile.rb
|
67
|
+
- lib/rio/ext.rb
|
68
|
+
- lib/rio/factory.rb
|
69
|
+
- lib/rio/file.rb
|
178
70
|
- lib/rio/filter/closeoneof.rb
|
179
71
|
- lib/rio/filter/gzip.rb
|
180
|
-
- lib/rio/
|
181
|
-
- lib/rio/
|
72
|
+
- lib/rio/filter.rb
|
73
|
+
- lib/rio/fs/base.rb
|
74
|
+
- lib/rio/fs/impl.rb
|
75
|
+
- lib/rio/fs/native.rb
|
76
|
+
- lib/rio/fs/stream.rb
|
77
|
+
- lib/rio/fs/url.rb
|
78
|
+
- lib/rio/ftp/conncache.rb
|
79
|
+
- lib/rio/ftp/dir.rb
|
80
|
+
- lib/rio/ftp/fs.rb
|
81
|
+
- lib/rio/ftp/ftpfile.rb
|
82
|
+
- lib/rio/grande.rb
|
83
|
+
- lib/rio/handle.rb
|
182
84
|
- lib/rio/if/basic.rb
|
183
85
|
- lib/rio/if/csv.rb
|
184
86
|
- lib/rio/if/dir.rb
|
@@ -194,21 +96,40 @@ files:
|
|
194
96
|
- lib/rio/if/temp.rb
|
195
97
|
- lib/rio/if/test.rb
|
196
98
|
- lib/rio/if/yaml.rb
|
99
|
+
- lib/rio/if.rb
|
197
100
|
- lib/rio/impl/path.rb
|
101
|
+
- lib/rio/ioh.rb
|
102
|
+
- lib/rio/iomode.rb
|
103
|
+
- lib/rio/ios/fail.rb
|
104
|
+
- lib/rio/ios/generic.rb
|
105
|
+
- lib/rio/ios/mode.rb
|
106
|
+
- lib/rio/ios/null.rb
|
107
|
+
- lib/rio/iowrap.rb
|
108
|
+
- lib/rio/kernel.rb
|
109
|
+
- lib/rio/local.rb
|
110
|
+
- lib/rio/match.rb
|
111
|
+
- lib/rio/matchrecord.rb
|
112
|
+
- lib/rio/no_warn.rb
|
113
|
+
- lib/rio/nullio.rb
|
114
|
+
- lib/rio/open3.rb
|
198
115
|
- lib/rio/ops/construct.rb
|
199
116
|
- lib/rio/ops/create.rb
|
200
117
|
- lib/rio/ops/dir.rb
|
201
118
|
- lib/rio/ops/either.rb
|
202
119
|
- lib/rio/ops/file.rb
|
203
120
|
- lib/rio/ops/path.rb
|
204
|
-
- lib/rio/ops/stream.rb
|
205
|
-
- lib/rio/ops/symlink.rb
|
206
121
|
- lib/rio/ops/stream/input.rb
|
207
122
|
- lib/rio/ops/stream/output.rb
|
208
123
|
- lib/rio/ops/stream/read.rb
|
209
124
|
- lib/rio/ops/stream/write.rb
|
125
|
+
- lib/rio/ops/stream.rb
|
126
|
+
- lib/rio/ops/symlink.rb
|
210
127
|
- lib/rio/path/reset.rb
|
128
|
+
- lib/rio/path.rb
|
211
129
|
- lib/rio/piper/cp.rb
|
130
|
+
- lib/rio/piper.rb
|
131
|
+
- lib/rio/prompt.rb
|
132
|
+
- lib/rio/rectype.rb
|
212
133
|
- lib/rio/rl/base.rb
|
213
134
|
- lib/rio/rl/builder.rb
|
214
135
|
- lib/rio/rl/ioi.rb
|
@@ -221,6 +142,7 @@ files:
|
|
221
142
|
- lib/rio/scheme/fd.rb
|
222
143
|
- lib/rio/scheme/ftp.rb
|
223
144
|
- lib/rio/scheme/http.rb
|
145
|
+
- lib/rio/scheme/null.rb
|
224
146
|
- lib/rio/scheme/path.rb
|
225
147
|
- lib/rio/scheme/stderr.rb
|
226
148
|
- lib/rio/scheme/stdio.rb
|
@@ -229,27 +151,142 @@ files:
|
|
229
151
|
- lib/rio/scheme/tcp.rb
|
230
152
|
- lib/rio/scheme/temp.rb
|
231
153
|
- lib/rio/state/error.rb
|
154
|
+
- lib/rio/state.rb
|
232
155
|
- lib/rio/stream/base.rb
|
233
156
|
- lib/rio/stream/duplex.rb
|
234
157
|
- lib/rio/stream/open.rb
|
158
|
+
- lib/rio/stream.rb
|
159
|
+
- lib/rio/symantics.rb
|
160
|
+
- lib/rio/tempdir.rb
|
161
|
+
- lib/rio/to_rio/all.rb
|
162
|
+
- lib/rio/to_rio/array.rb
|
163
|
+
- lib/rio/to_rio/io.rb
|
164
|
+
- lib/rio/to_rio/object.rb
|
165
|
+
- lib/rio/to_rio/string.rb
|
166
|
+
- lib/rio/to_rio.rb
|
235
167
|
- lib/rio/uri/file.rb
|
168
|
+
- lib/rio/util.rb
|
169
|
+
- lib/rio/version.rb
|
170
|
+
- lib/rio.rb
|
236
171
|
- README
|
237
|
-
-
|
238
|
-
-
|
239
|
-
-
|
240
|
-
-
|
241
|
-
-
|
242
|
-
-
|
243
|
-
-
|
244
|
-
-
|
245
|
-
-
|
246
|
-
-
|
247
|
-
-
|
248
|
-
-
|
172
|
+
- build_doc.rb
|
173
|
+
- ChangeLog
|
174
|
+
- COPYING
|
175
|
+
- Rakefile
|
176
|
+
- setup.rb
|
177
|
+
- VERSION
|
178
|
+
- doc/ANNOUNCE
|
179
|
+
- doc/generators/template/html/rio.rb
|
180
|
+
- doc/RELEASE_NOTES
|
181
|
+
- doc/rfc1738.txt
|
182
|
+
- doc/rfc959.txt
|
183
|
+
- test/bin/count_lines.rb
|
184
|
+
- test/bin/find_lines.rb
|
185
|
+
- test/bin/list_dir.rb
|
186
|
+
- test/ftp/all.rb
|
187
|
+
- test/ftp/anon_misc.rb
|
188
|
+
- test/ftp/anon_read.rb
|
189
|
+
- test/ftp/anon_special.rb
|
190
|
+
- test/ftp/anon_write.rb
|
191
|
+
- test/ftp/ftp2ftp.rb
|
192
|
+
- test/ftp/initftpfiles.rb
|
193
|
+
- test/ftp/testdef.rb
|
194
|
+
- test/gem_runtests.rb
|
195
|
+
- test/runalltests.rb
|
196
|
+
- test/runftptests.rb
|
197
|
+
- test/runhttptests.rb
|
198
|
+
- test/runtests.rb
|
199
|
+
- test/tc/abs.rb
|
200
|
+
- test/tc/all.rb
|
201
|
+
- test/tc/base.rb
|
202
|
+
- test/tc/cd1.rb
|
203
|
+
- test/tc/clearsel.rb
|
204
|
+
- test/tc/closeoncopy.rb
|
205
|
+
- test/tc/closeoneof.rb
|
206
|
+
- test/tc/cmdpipe.rb
|
207
|
+
- test/tc/copy-from-http.rb
|
208
|
+
- test/tc/copy-from.rb
|
209
|
+
- test/tc/copy-to.rb
|
210
|
+
- test/tc/copy.rb
|
211
|
+
- test/tc/copyarray.rb
|
212
|
+
- test/tc/copydest.rb
|
213
|
+
- test/tc/copydir.rb
|
214
|
+
- test/tc/copydirlines.rb
|
215
|
+
- test/tc/copylines.rb
|
216
|
+
- test/tc/copynonex.rb
|
217
|
+
- test/tc/copysymlink.rb
|
218
|
+
- test/tc/create.rb
|
219
|
+
- test/tc/csv.rb
|
220
|
+
- test/tc/csv2.rb
|
221
|
+
- test/tc/csvutil.rb
|
222
|
+
- test/tc/csv_columns.rb
|
223
|
+
- test/tc/dir.rb
|
224
|
+
- test/tc/dirautoclose.rb
|
225
|
+
- test/tc/dirent.rb
|
226
|
+
- test/tc/dirss.rb
|
227
|
+
- test/tc/dir_iter.rb
|
228
|
+
- test/tc/each.rb
|
229
|
+
- test/tc/each_break.rb
|
230
|
+
- test/tc/edf.rb
|
231
|
+
- test/tc/empty.rb
|
232
|
+
- test/tc/emptyriodir.rb
|
233
|
+
- test/tc/entary.rb
|
234
|
+
- test/tc/entsel.rb
|
235
|
+
- test/tc/eq.rb
|
236
|
+
- test/tc/expand_path.rb
|
237
|
+
- test/tc/ext.rb
|
238
|
+
- test/tc/fileno.rb
|
239
|
+
- test/tc/files_select.rb
|
240
|
+
- test/tc/get.rb
|
241
|
+
- test/tc/getrec.rb
|
242
|
+
- test/tc/gzip.rb
|
243
|
+
- test/tc/iometh.rb
|
244
|
+
- test/tc/io_each_byte.rb
|
245
|
+
- test/tc/io_read.rb
|
246
|
+
- test/tc/likeio.rb
|
247
|
+
- test/tc/lineno.rb
|
248
|
+
- test/tc/lines.rb
|
249
|
+
- test/tc/methods.rb
|
250
|
+
- test/tc/misc.rb
|
251
|
+
- test/tc/nolines.rb
|
252
|
+
- test/tc/noqae.rb
|
253
|
+
- test/tc/null.rb
|
254
|
+
- test/tc/once.rb
|
255
|
+
- test/tc/overload.rb
|
256
|
+
- test/tc/pa.rb
|
257
|
+
- test/tc/pathop.rb
|
258
|
+
- test/tc/paths.rb
|
259
|
+
- test/tc/pid.rb
|
260
|
+
- test/tc/piper.rb
|
261
|
+
- test/tc/programs_util.rb
|
262
|
+
- test/tc/qae.rb
|
263
|
+
- test/tc/qae_riovar.rb
|
264
|
+
- test/tc/readline.rb
|
265
|
+
- test/tc/records.rb
|
266
|
+
- test/tc/rename.rb
|
267
|
+
- test/tc/rename_assign.rb
|
268
|
+
- test/tc/riorl.rb
|
269
|
+
- test/tc/route.rb
|
270
|
+
- test/tc/selnosel.rb
|
271
|
+
- test/tc/skip.rb
|
272
|
+
- test/tc/skiplines.rb
|
273
|
+
- test/tc/split.rb
|
274
|
+
- test/tc/sub.rb
|
275
|
+
- test/tc/symlink.rb
|
276
|
+
- test/tc/symlink0.rb
|
277
|
+
- test/tc/symlink1.rb
|
278
|
+
- test/tc/temp.rb
|
279
|
+
- test/tc/tempdir.rb
|
280
|
+
- test/tc/tempfile.rb
|
281
|
+
- test/tc/testcase.rb
|
282
|
+
- test/tc/tonl.rb
|
283
|
+
- test/tc/yaml.rb
|
249
284
|
test_files: []
|
250
285
|
|
251
286
|
rdoc_options:
|
252
287
|
- - --line-numbers
|
288
|
+
- -mRIO::Doc::SYNOPSIS
|
289
|
+
- -Tdoc/generators/template/html/rio.rb
|
253
290
|
extra_rdoc_files: []
|
254
291
|
|
255
292
|
executables: []
|
data/ex/colx.rb
DELETED
data/ex/findinruby
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'rio'
|
4
|
-
require 'rio/argv'
|
5
|
-
|
6
|
-
re = ARGV.shift
|
7
|
-
|
8
|
-
is_ruby_exe = proc{ |f| f.executable? and f[0][0] =~ /^#!.+ruby/ }
|
9
|
-
|
10
|
-
RIO.ARGV.each do |rpath|
|
11
|
-
rpath.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) do |f|
|
12
|
-
print f.lines[/#{re}/].map{ |line| "#{f}: #{line}" }
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
__END__
|
data/ex/findruby
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'rio'
|
4
|
-
require 'rio/argv'
|
5
|
-
|
6
|
-
#is_ruby_exe = proc{ |f| f.executable? and f[0][0] =~ /^#!.+ruby/ }
|
7
|
-
is_ruby_exe = proc{ |f| f.executable? and f.gets =~ /^#!.+ruby/ }
|
8
|
-
|
9
|
-
RIO.ARGV.each do |rpath|
|
10
|
-
rpath.norecurse('.svn','pkg').files('*.rb',is_ruby_exe) do |f|
|
11
|
-
puts f
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
__END__
|
data/ex/passwd_report.rb
DELETED
data/ex/prompt.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
|
3
|
-
require 'rio'
|
4
|
-
|
5
|
-
ans = rio(?-).chomp.print("Type Something: ").gets
|
6
|
-
rio(?-).puts("You typed '#{ans}'")
|
7
|
-
|
8
|
-
# Could also be written like this
|
9
|
-
#
|
10
|
-
#stdio = rio(?-).chomp
|
11
|
-
#ans = stdio.print("Type Something: ").gets
|
12
|
-
#stdio.puts("You typed '#{ans}'")
|
13
|
-
#
|
14
|
-
# Or even this
|
15
|
-
#
|
16
|
-
#stdio = rio(?-).chomp
|
17
|
-
#stdio.puts("You typed '#{stdio.print("Type Something: ").gets}'")
|
18
|
-
#
|
19
|
-
# Or this
|
20
|
-
#
|
21
|
-
#rio(?-).puts("You typed '#{rio(?-).chomp.print("Type Something: ").gets}'")
|
22
|
-
#
|
23
|
-
|
24
|
-
|
25
|
-
__END__
|
data/ex/rgb.txt.gz
DELETED
Binary file
|
data/ex/riocat
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'rio'
|
3
|
-
# riogzip: reads from stdin, gzips and writes it to stdout
|
4
|
-
# example use:
|
5
|
-
# riocat < afile.txt >bfile.txt
|
6
|
-
#
|
7
|
-
# explanation:
|
8
|
-
#
|
9
|
-
# rio(?-)
|
10
|
-
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
11
|
-
#
|
12
|
-
# rio(?-)
|
13
|
-
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
14
|
-
#
|
15
|
-
# <
|
16
|
-
# <: copy operator indicating rio on left is written to and the rio on the right is read from
|
17
|
-
#
|
18
|
-
rio(?-) < rio(?-)
|
19
|
-
|
20
|
-
#
|
21
|
-
# this could also be written
|
22
|
-
# rio(?-) > rio(?-)
|
23
|
-
#
|
24
|
-
# this is similar but reads the entire file before writing
|
25
|
-
#rio(?-).print!( rio(?-).slurp )
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
#rio(?-).print!( rio(?-).slurp)
|
30
|
-
|
31
|
-
|
32
|
-
# DONT TO THIS:
|
33
|
-
#io = rio(?-)
|
34
|
-
#io.print!( io.slurp )
|
35
|
-
|
data/ex/riogunzip
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'rio'
|
3
|
-
# riogzip: reads from stdin, gzips and writes it to stdout
|
4
|
-
# example use:
|
5
|
-
# riogunzip < afile.txt.gz
|
6
|
-
#
|
7
|
-
# explanation:
|
8
|
-
#
|
9
|
-
# rio(?-).gzip
|
10
|
-
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
11
|
-
# .gzip: filter the input or output through Zlib:Gzip[Reader or Writer]
|
12
|
-
#
|
13
|
-
# rio(?-)
|
14
|
-
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
15
|
-
#
|
16
|
-
# <
|
17
|
-
# rio copy operator indicating the direction of data
|
18
|
-
# pointed in this direction the rio on the right is read from and the one on the left is
|
19
|
-
# written. (or stdin and stdout respectively)
|
20
|
-
#
|
21
|
-
rio(?-).gzip > rio(?-)
|
22
|
-
|
23
|
-
# could be written this way
|
24
|
-
# rio(?-) < rio(?-).gzip
|
25
|
-
#
|
26
|
-
# this is similar, but reads the entire file in before writing it out
|
27
|
-
# rio(?-).print!( rio(?-).gzip.contents )
|
28
|
-
#
|
29
|
-
#rio(?-).gzip.each_record do |rec|
|
30
|
-
# rio(?-).print(rec)
|
31
|
-
#end
|
data/ex/riogzip
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
require 'rio'
|
3
|
-
# riogzip: reads from stdin, gzips and writes it to stdout
|
4
|
-
# example use:
|
5
|
-
# riogzip < afile.txt > afile.txt.gz
|
6
|
-
#
|
7
|
-
# explanation:
|
8
|
-
#
|
9
|
-
# rio(?-).gzip
|
10
|
-
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
11
|
-
# .gzip: filter the input or output through Zlib:Gzip[Reader or Writer]
|
12
|
-
#
|
13
|
-
# rio(?-)
|
14
|
-
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
15
|
-
#
|
16
|
-
# <
|
17
|
-
# rio copy operator indicating the direction of data
|
18
|
-
|
19
|
-
rio(?-).gzip < rio(?-)
|
20
|
-
|
21
|
-
#
|
22
|
-
# could also be written:
|
23
|
-
# rio(?-) > rio(?-).gzip
|
24
|
-
#
|
data/ex/rioprompt.rb
DELETED
data/ex/targz2zip
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
#!/usr/local/bin/ruby
|
2
|
-
|
3
|
-
require 'rio'
|
4
|
-
require 'rio/argv'
|
5
|
-
|
6
|
-
# Create a zip archive from a gzipped tar archive.
|
7
|
-
# This depends on the GNU programs 'tar' and 'zip' being available in your PATH
|
8
|
-
|
9
|
-
TAR='tar'
|
10
|
-
ZIP='zip'
|
11
|
-
|
12
|
-
RIO.ARGV.each { |f|
|
13
|
-
f.ext('.tar.gz') if f =~ /\.tar\.gz$/
|
14
|
-
rio(??).chdir {
|
15
|
-
rio(?-,"#{TAR} xvzkf #{f.abs}") | "#{ZIP} -@ #{f.abs.dirname/f.basename+'.zip'}" | ?-
|
16
|
-
}
|
17
|
-
}
|