rio 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (208) hide show
  1. data/ChangeLog +1273 -1482
  2. data/README +2 -2
  3. data/Rakefile +5 -5
  4. data/VERSION +1 -1
  5. data/{RUNME.1st.rb → build_doc.rb} +4 -10
  6. data/doc/ANNOUNCE +33 -80
  7. data/doc/RELEASE_NOTES +31 -1
  8. data/doc/generators/template/html/rio.rb +3 -3
  9. data/lib/rio/abstract_method.rb +2 -2
  10. data/lib/rio/argv.rb +2 -2
  11. data/lib/rio/arycopy.rb +2 -2
  12. data/lib/rio/assert.rb +2 -2
  13. data/lib/rio/base.rb +2 -2
  14. data/lib/rio/callstr.rb +47 -0
  15. data/lib/rio/const.rb +52 -0
  16. data/lib/rio/construct.rb +6 -24
  17. data/lib/rio/constructor.rb +12 -2
  18. data/lib/rio/context/autoclose.rb +73 -0
  19. data/lib/rio/context/copying.rb +2 -2
  20. data/lib/rio/context/cxx.rb +2 -2
  21. data/lib/rio/context/dir.rb +2 -2
  22. data/lib/rio/context/gzip.rb +2 -2
  23. data/lib/rio/context/methods.rb +6 -34
  24. data/lib/rio/context/skip.rb +2 -2
  25. data/lib/rio/context/stream.rb +2 -2
  26. data/lib/rio/context.rb +17 -2
  27. data/lib/rio/cp.rb +35 -9
  28. data/lib/rio/def.rb +54 -0
  29. data/lib/rio/dir.rb +19 -20
  30. data/lib/rio/doc/HOWTO.rb +23 -7
  31. data/lib/rio/doc/INTRO.rb +57 -23
  32. data/lib/rio/doc/MISC.rb +2 -2
  33. data/lib/rio/doc/OPTIONAL.rb +134 -0
  34. data/lib/rio/doc/SYNOPSIS.rb +11 -4
  35. data/lib/rio/doc.rb +2 -2
  36. data/lib/rio/entrysel.rb +25 -6
  37. data/lib/rio/exception/copy.rb +2 -2
  38. data/lib/rio/exception/notsupported.rb +47 -0
  39. data/lib/rio/exception/open.rb +2 -2
  40. data/lib/rio/exception/state.rb +2 -2
  41. data/lib/rio/exception.rb +2 -2
  42. data/lib/rio/ext/csv.rb +56 -11
  43. data/lib/rio/ext/yaml.rb +2 -2
  44. data/lib/rio/ext/zipfile.rb +91 -0
  45. data/lib/rio/ext.rb +38 -3
  46. data/lib/rio/factory.rb +17 -34
  47. data/lib/rio/file.rb +48 -8
  48. data/lib/rio/filter/closeoneof.rb +36 -16
  49. data/lib/rio/filter/gzip.rb +2 -2
  50. data/lib/rio/filter.rb +2 -2
  51. data/lib/rio/fs/base.rb +42 -0
  52. data/lib/rio/fs/impl.rb +123 -0
  53. data/lib/rio/fs/native.rb +76 -0
  54. data/lib/rio/{record.rb → fs/stream.rb} +21 -18
  55. data/lib/rio/fs/url.rb +64 -0
  56. data/lib/rio/ftp/{ioh.rb → conncache.rb} +38 -39
  57. data/lib/rio/ftp/dir.rb +95 -0
  58. data/lib/rio/ftp/fs.rb +173 -0
  59. data/lib/rio/ftp/ftpfile.rb +20 -0
  60. data/lib/rio/grande.rb +2 -2
  61. data/lib/rio/handle.rb +2 -2
  62. data/lib/rio/if/basic.rb +2 -2
  63. data/lib/rio/if/csv.rb +2 -2
  64. data/lib/rio/if/dir.rb +2 -2
  65. data/lib/rio/if/file.rb +26 -2
  66. data/lib/rio/if/fileordir.rb +44 -49
  67. data/lib/rio/if/grande.rb +32 -10
  68. data/lib/rio/if/grande_entry.rb +12 -2
  69. data/lib/rio/if/grande_stream.rb +17 -28
  70. data/lib/rio/if/internal.rb +2 -2
  71. data/lib/rio/if/path.rb +7 -6
  72. data/lib/rio/if/stream.rb +85 -29
  73. data/lib/rio/if/string.rb +2 -2
  74. data/lib/rio/if/temp.rb +2 -2
  75. data/lib/rio/if/test.rb +37 -4
  76. data/lib/rio/if/yaml.rb +2 -2
  77. data/lib/rio/if.rb +2 -2
  78. data/lib/rio/impl/path.rb +2 -2
  79. data/lib/rio/ioh.rb +17 -6
  80. data/lib/rio/iomode.rb +4 -3
  81. data/lib/rio/ios/fail.rb +107 -0
  82. data/lib/rio/ios/generic.rb +120 -0
  83. data/lib/rio/ios/mode.rb +61 -0
  84. data/lib/rio/ios/null.rb +120 -0
  85. data/lib/rio/iowrap.rb +129 -0
  86. data/lib/rio/kernel.rb +12 -3
  87. data/lib/rio/local.rb +2 -2
  88. data/lib/rio/match.rb +3 -3
  89. data/lib/rio/matchrecord.rb +2 -2
  90. data/lib/rio/no_warn.rb +50 -0
  91. data/lib/rio/{arrayio.rb → nullio.rb} +47 -86
  92. data/lib/rio/open3.rb +2 -2
  93. data/lib/rio/ops/construct.rb +20 -13
  94. data/lib/rio/ops/create.rb +10 -19
  95. data/lib/rio/ops/dir.rb +60 -54
  96. data/lib/rio/ops/either.rb +11 -9
  97. data/lib/rio/ops/file.rb +28 -24
  98. data/lib/rio/ops/path.rb +45 -43
  99. data/lib/rio/ops/stream/input.rb +12 -8
  100. data/lib/rio/ops/stream/output.rb +2 -2
  101. data/lib/rio/ops/stream/read.rb +35 -32
  102. data/lib/rio/ops/stream/write.rb +5 -5
  103. data/lib/rio/ops/stream.rb +7 -3
  104. data/lib/rio/ops/symlink.rb +12 -10
  105. data/lib/rio/path/reset.rb +5 -5
  106. data/lib/rio/path.rb +32 -24
  107. data/lib/rio/piper/cp.rb +2 -2
  108. data/lib/rio/piper.rb +2 -2
  109. data/lib/rio/prompt.rb +2 -2
  110. data/lib/rio/rectype.rb +9 -7
  111. data/lib/rio/rl/base.rb +5 -4
  112. data/lib/rio/rl/builder.rb +17 -5
  113. data/lib/rio/rl/ioi.rb +14 -4
  114. data/lib/rio/rl/path.rb +23 -15
  115. data/lib/rio/rl/pathmethods.rb +12 -2
  116. data/lib/rio/rl/uri.rb +13 -6
  117. data/lib/rio/scheme/aryio.rb +3 -3
  118. data/lib/rio/scheme/cmdio.rb +4 -3
  119. data/lib/rio/scheme/cmdpipe.rb +3 -35
  120. data/lib/rio/scheme/fd.rb +4 -3
  121. data/lib/rio/scheme/ftp.rb +36 -7
  122. data/lib/rio/scheme/http.rb +2 -2
  123. data/lib/rio/{context/closeoneof.rb → scheme/null.rb} +17 -11
  124. data/lib/rio/scheme/path.rb +28 -30
  125. data/lib/rio/scheme/stderr.rb +4 -4
  126. data/lib/rio/scheme/stdio.rb +6 -5
  127. data/lib/rio/scheme/strio.rb +10 -20
  128. data/lib/rio/scheme/sysio.rb +5 -2
  129. data/lib/rio/scheme/tcp.rb +4 -3
  130. data/lib/rio/scheme/temp.rb +14 -1
  131. data/lib/rio/state/error.rb +2 -2
  132. data/lib/rio/state.rb +80 -34
  133. data/lib/rio/stream/base.rb +7 -2
  134. data/lib/rio/stream/duplex.rb +13 -10
  135. data/lib/rio/stream/open.rb +74 -79
  136. data/lib/rio/stream.rb +15 -23
  137. data/lib/rio/symantics.rb +2 -2
  138. data/lib/rio/tempdir.rb +132 -132
  139. data/lib/rio/to_rio/all.rb +40 -0
  140. data/lib/rio/to_rio/array.rb +40 -0
  141. data/lib/rio/to_rio/io.rb +41 -0
  142. data/lib/rio/to_rio/object.rb +43 -0
  143. data/lib/rio/to_rio/string.rb +41 -0
  144. data/lib/rio/to_rio.rb +13 -2
  145. data/lib/rio/uri/file.rb +2 -2
  146. data/lib/rio/util.rb +2 -2
  147. data/lib/rio/version.rb +3 -3
  148. data/lib/rio.rb +16 -25
  149. data/test/bin/count_lines.rb +11 -0
  150. data/test/bin/find_lines.rb +13 -0
  151. data/test/bin/list_dir.rb +14 -0
  152. data/test/ftp/all.rb +9 -0
  153. data/test/ftp/anon_misc.rb +112 -0
  154. data/test/ftp/anon_read.rb +105 -0
  155. data/test/ftp/anon_special.rb +68 -0
  156. data/test/ftp/anon_write.rb +63 -0
  157. data/test/ftp/ftp2ftp.rb +51 -0
  158. data/test/ftp/initftpfiles.rb +14 -0
  159. data/test/ftp/testdef.rb +51 -0
  160. data/test/gem_runtests.rb +15 -15
  161. data/test/runalltests.rb +15 -0
  162. data/test/runftptests.rb +14 -0
  163. data/test/{1.rb → runhttptests.rb} +14 -14
  164. data/test/runtests.rb +14 -14
  165. data/test/tc/all.rb +36 -21
  166. data/test/tc/cmdpipe.rb +18 -15
  167. data/test/tc/copy-from-http.rb +89 -0
  168. data/test/tc/copy-from.rb +1 -52
  169. data/test/tc/copy.rb +19 -17
  170. data/test/tc/csv2.rb +6 -3
  171. data/test/tc/empty.rb +47 -0
  172. data/test/tc/emptyriodir.rb +129 -0
  173. data/test/tc/entsel.rb +110 -0
  174. data/test/tc/files_select.rb +92 -0
  175. data/test/tc/get.rb +7 -6
  176. data/test/tc/getrec.rb +2 -5
  177. data/test/tc/gzip.rb +82 -0
  178. data/test/tc/io_each_byte.rb +60 -0
  179. data/test/tc/io_read.rb +80 -0
  180. data/test/tc/iometh.rb +149 -0
  181. data/test/tc/likeio.rb +112 -0
  182. data/test/tc/methods.rb +10 -9
  183. data/test/tc/misc.rb +1 -37
  184. data/test/tc/null.rb +45 -0
  185. data/test/tc/pid.rb +31 -0
  186. data/test/tc/piper.rb +34 -37
  187. data/test/tc/programs_util.rb +24 -0
  188. data/test/tc/readline.rb +30 -0
  189. data/test/tc/rename.rb +12 -0
  190. data/test/tc/tempfile.rb +14 -0
  191. data/test/tc/testcase.rb +6 -0
  192. data/test/tc/tonl.rb +37 -0
  193. metadata +181 -144
  194. data/ex/colx.rb +0 -8
  195. data/ex/findinruby +0 -16
  196. data/ex/findruby +0 -15
  197. data/ex/passwd_report.rb +0 -8
  198. data/ex/prompt.rb +0 -25
  199. data/ex/rgb.txt.gz +0 -0
  200. data/ex/riocat +0 -35
  201. data/ex/riogunzip +0 -31
  202. data/ex/riogzip +0 -24
  203. data/ex/rioprompt.rb +0 -6
  204. data/ex/targz2zip +0 -17
  205. data/ex/tolf +0 -11
  206. data/lib/rio/ftp/conn.rb +0 -167
  207. data/lib/rio/ftp.rb +0 -275
  208. 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
7
- date: 2005-11-25 00:00:00 -08:00
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: Rio is a convenience class wrapping much of the functionality of IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI, Zlib, and CSV.
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/ftp/conn.rb
181
- - lib/rio/ftp/ioh.rb
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
- - ex/colx.rb
238
- - ex/findinruby
239
- - ex/findruby
240
- - ex/passwd_report.rb
241
- - ex/prompt.rb
242
- - ex/rgb.txt.gz
243
- - ex/riocat
244
- - ex/riogunzip
245
- - ex/riogzip
246
- - ex/rioprompt.rb
247
- - ex/targz2zip
248
- - ex/tolf
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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require 'rio'
3
-
4
- RGBFILE = rio(__FILE__).dirname/'rgb.txt.gz'
5
-
6
- RGBFILE.gzip.lines(/^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\S.+)/) do |line,ma|
7
- printf("#%02x%02x%02x\t%s\n",*ma[1..4])
8
- end
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
@@ -1,8 +0,0 @@
1
- #!/usr/local/bin/ruby
2
- require 'rio'
3
-
4
- # Create a tab separated file of accounts in a UNIX passwd file,
5
- # listing only the username, uid, and realname fields
6
-
7
- rio('/etc/passwd').csv(':').columns(0,2,4) > rio(?-).csv("\t")
8
-
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
@@ -1,6 +0,0 @@
1
- #!/usr/local/bin/ruby
2
-
3
- require 'rio/prompt'
4
-
5
- ans = RIO.prompt("Name: ")
6
- puts "You typed '#{ans}'"
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
- }
data/ex/tolf DELETED
@@ -1,11 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'rio'
4
-
5
- ARGV.each do |path|
6
- tmp = rio(?$)
7
- tmp < rio(path).chomp.map { |l| "#{l}\n" }
8
- tmp > rio(path)
9
- end
10
-
11
- __END__