rio 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (223) hide show
  1. data/README +18 -12
  2. data/Rakefile +57 -87
  3. data/build_doc.rb +19 -17
  4. data/doc/ANNOUNCE +3 -32
  5. data/doc/RELEASE_NOTES +4 -5
  6. data/doc/RIOIS +215 -0
  7. data/doc/generators/template/html/rio.css +428 -0
  8. data/doc/generators/template/html/rio.rb +18 -389
  9. data/doc/generators/template/html/ugly.rb +130 -0
  10. data/doc/pkg_def.rb +66 -0
  11. data/ex/catcsv.rb +64 -0
  12. data/ex/colx.rb +8 -0
  13. data/ex/findinruby +15 -0
  14. data/ex/findruby +14 -0
  15. data/ex/passwd_report.rb +8 -0
  16. data/ex/prompt.rb +25 -0
  17. data/ex/rgb.txt.gz +0 -0
  18. data/ex/riocat +42 -0
  19. data/ex/riogunzip +31 -0
  20. data/ex/riogzip +24 -0
  21. data/ex/rioprompt.rb +10 -0
  22. data/ex/targz2zip +17 -0
  23. data/ex/tonl +10 -0
  24. data/lib/rio.rb +16 -10
  25. data/lib/rio/abstract_method.rb +3 -4
  26. data/lib/rio/argv.rb +3 -4
  27. data/lib/rio/arycopy.rb +3 -4
  28. data/lib/rio/assert.rb +3 -4
  29. data/lib/rio/base.rb +3 -4
  30. data/lib/rio/callstr.rb +3 -4
  31. data/lib/rio/const.rb +3 -4
  32. data/lib/rio/construct.rb +3 -4
  33. data/lib/rio/constructor.rb +12 -8
  34. data/lib/rio/context.rb +15 -30
  35. data/lib/rio/context/autoclose.rb +3 -4
  36. data/lib/rio/context/copying.rb +3 -4
  37. data/lib/rio/context/cxx.rb +3 -4
  38. data/lib/rio/context/dir.rb +3 -4
  39. data/lib/rio/context/gzip.rb +3 -4
  40. data/lib/rio/context/methods.rb +16 -5
  41. data/lib/rio/context/skip.rb +3 -4
  42. data/lib/rio/context/stream.rb +42 -5
  43. data/lib/rio/cp.rb +7 -7
  44. data/lib/rio/def.rb +3 -4
  45. data/lib/rio/dir.rb +3 -4
  46. data/lib/rio/doc.rb +4 -5
  47. data/lib/rio/doc/EXAMPLES.rb +299 -0
  48. data/lib/rio/doc/HOWTO.rb +3 -4
  49. data/lib/rio/doc/INTRO.rb +86 -105
  50. data/lib/rio/doc/OPTIONAL.rb +4 -5
  51. data/lib/rio/doc/SYNOPSIS.rb +7 -6
  52. data/lib/rio/entrysel.rb +21 -23
  53. data/lib/rio/exception.rb +3 -4
  54. data/lib/rio/exception/copy.rb +3 -4
  55. data/lib/rio/exception/notimplemented.rb +57 -0
  56. data/lib/rio/exception/notsupported.rb +3 -4
  57. data/lib/rio/exception/open.rb +3 -4
  58. data/lib/rio/exception/state.rb +3 -4
  59. data/lib/rio/ext.rb +47 -13
  60. data/lib/rio/ext/csv.rb +4 -5
  61. data/lib/rio/ext/if.rb +45 -0
  62. data/lib/rio/ext/mp3info.rb +80 -0
  63. data/lib/rio/ext/splitlines.rb +253 -0
  64. data/lib/rio/ext/yaml.rb +9 -5
  65. data/lib/rio/ext/yaml/doc.rb +133 -0
  66. data/lib/rio/ext/yaml/tie.rb +149 -0
  67. data/lib/rio/ext/zipfile.rb +23 -4
  68. data/lib/rio/ext/zipfile/fs.rb +116 -0
  69. data/lib/rio/ext/zipfile/rl.rb +251 -0
  70. data/lib/rio/ext/zipfile/rootdir.rb +117 -0
  71. data/lib/rio/ext/zipfile/state.rb +161 -0
  72. data/lib/rio/ext/zipfile/wrap.rb +204 -0
  73. data/lib/rio/factory.rb +235 -27
  74. data/lib/rio/file.rb +4 -4
  75. data/lib/rio/filter.rb +3 -4
  76. data/lib/rio/filter/closeoneof.rb +3 -4
  77. data/lib/rio/filter/gzip.rb +9 -4
  78. data/lib/rio/fs/base.rb +3 -4
  79. data/lib/rio/fs/impl.rb +4 -5
  80. data/lib/rio/fs/native.rb +3 -4
  81. data/lib/rio/fs/stream.rb +3 -4
  82. data/lib/rio/fs/url.rb +3 -4
  83. data/lib/rio/ftp/conncache.rb +19 -5
  84. data/lib/rio/ftp/dir.rb +3 -4
  85. data/lib/rio/ftp/fs.rb +30 -24
  86. data/lib/rio/grande.rb +27 -7
  87. data/lib/rio/handle.rb +3 -4
  88. data/lib/rio/if.rb +19 -15
  89. data/lib/rio/if/basic.rb +7 -7
  90. data/lib/rio/if/csv.rb +5 -6
  91. data/lib/rio/if/dir.rb +120 -114
  92. data/lib/rio/if/file.rb +52 -44
  93. data/lib/rio/if/fileordir.rb +217 -211
  94. data/lib/rio/if/grande.rb +674 -644
  95. data/lib/rio/if/grande_entry.rb +321 -313
  96. data/lib/rio/if/grande_stream.rb +653 -553
  97. data/lib/rio/if/internal.rb +3 -4
  98. data/lib/rio/if/path.rb +425 -426
  99. data/lib/rio/if/rubyio.rb +681 -0
  100. data/lib/rio/if/string.rb +42 -5
  101. data/lib/rio/if/temp.rb +3 -4
  102. data/lib/rio/if/test.rb +245 -238
  103. data/lib/rio/if/yaml.rb +15 -41
  104. data/lib/rio/ioh.rb +7 -5
  105. data/lib/rio/iomode.rb +19 -7
  106. data/lib/rio/ios/fail.rb +4 -5
  107. data/lib/rio/ios/generic.rb +4 -5
  108. data/lib/rio/ios/mode.rb +4 -5
  109. data/lib/rio/ios/null.rb +6 -7
  110. data/lib/rio/iowrap.rb +3 -4
  111. data/lib/rio/kernel.rb +3 -5
  112. data/lib/rio/local.rb +3 -4
  113. data/lib/rio/match.rb +3 -4
  114. data/lib/rio/matchrecord.rb +3 -4
  115. data/lib/rio/no_warn.rb +3 -4
  116. data/lib/rio/nullio.rb +3 -4
  117. data/lib/rio/open3.rb +4 -5
  118. data/lib/rio/ops/construct.rb +3 -4
  119. data/lib/rio/ops/create.rb +11 -6
  120. data/lib/rio/ops/dir.rb +19 -8
  121. data/lib/rio/ops/either.rb +6 -5
  122. data/lib/rio/ops/file.rb +3 -4
  123. data/lib/rio/ops/path.rb +14 -35
  124. data/lib/rio/ops/stream.rb +3 -4
  125. data/lib/rio/ops/stream/input.rb +4 -7
  126. data/lib/rio/ops/stream/output.rb +3 -4
  127. data/lib/rio/ops/stream/read.rb +6 -5
  128. data/lib/rio/ops/stream/write.rb +3 -4
  129. data/lib/rio/ops/symlink.rb +3 -4
  130. data/lib/rio/path.rb +22 -18
  131. data/lib/rio/path/reset.rb +4 -5
  132. data/lib/rio/piper.rb +3 -4
  133. data/lib/rio/piper/cp.rb +3 -4
  134. data/lib/rio/prompt.rb +10 -5
  135. data/lib/rio/rectype.rb +5 -5
  136. data/lib/rio/rl/base.rb +17 -71
  137. data/lib/rio/rl/builder.rb +14 -38
  138. data/lib/rio/rl/chmap.rb +66 -0
  139. data/lib/rio/rl/fs2url.rb +82 -0
  140. data/lib/rio/rl/ioi.rb +4 -4
  141. data/lib/rio/rl/path.rb +44 -122
  142. data/lib/rio/rl/pathmethods.rb +19 -8
  143. data/lib/rio/rl/uri.rb +137 -60
  144. data/lib/rio/rl/withpath.rb +295 -0
  145. data/lib/rio/scheme/aryio.rb +3 -4
  146. data/lib/rio/scheme/cmdio.rb +3 -4
  147. data/lib/rio/scheme/cmdpipe.rb +4 -4
  148. data/lib/rio/scheme/fd.rb +3 -4
  149. data/lib/rio/scheme/ftp.rb +7 -7
  150. data/lib/rio/scheme/http.rb +4 -5
  151. data/lib/rio/scheme/null.rb +3 -4
  152. data/lib/rio/scheme/path.rb +3 -4
  153. data/lib/rio/scheme/stderr.rb +3 -4
  154. data/lib/rio/scheme/stdio.rb +3 -4
  155. data/lib/rio/scheme/strio.rb +3 -4
  156. data/lib/rio/scheme/sysio.rb +3 -4
  157. data/lib/rio/scheme/tcp.rb +3 -4
  158. data/lib/rio/scheme/temp.rb +6 -6
  159. data/lib/rio/state.rb +18 -46
  160. data/lib/rio/state/error.rb +3 -4
  161. data/lib/rio/stream.rb +4 -4
  162. data/lib/rio/stream/base.rb +3 -4
  163. data/lib/rio/stream/duplex.rb +3 -4
  164. data/lib/rio/stream/open.rb +3 -8
  165. data/lib/rio/symantics.rb +3 -4
  166. data/lib/rio/tempdir.rb +2 -2
  167. data/lib/rio/to_rio.rb +3 -4
  168. data/lib/rio/to_rio/all.rb +3 -4
  169. data/lib/rio/to_rio/array.rb +4 -5
  170. data/lib/rio/to_rio/io.rb +4 -5
  171. data/lib/rio/to_rio/object.rb +4 -5
  172. data/lib/rio/to_rio/string.rb +4 -5
  173. data/lib/rio/uri/file.rb +41 -5
  174. data/lib/rio/util.rb +3 -4
  175. data/lib/rio/version.rb +4 -5
  176. data/setup.rb +368 -339
  177. data/test/bin/list_dir.rb +1 -1
  178. data/test/ftp/anon_misc.rb +13 -1
  179. data/test/ftp/anon_special.rb +6 -6
  180. data/test/ftp/anon_write.rb +10 -3
  181. data/test/ftp/ftp2ftp.rb +2 -2
  182. data/test/ftp/testdef.rb +9 -6
  183. data/test/http/all.rb +3 -0
  184. data/test/http/copy-from-http.rb +140 -0
  185. data/test/lib/temp_server.rb +44 -0
  186. data/test/runalltests.rb +3 -1
  187. data/test/runhttp.rb +12 -0
  188. data/test/runhttptests.rb +1 -1
  189. data/test/runtests.rb +41 -3
  190. data/test/tc/abs.rb +9 -5
  191. data/test/tc/all.rb +9 -4
  192. data/test/tc/base.rb +1 -1
  193. data/test/tc/base2.rb +87 -0
  194. data/test/tc/{methods.rb → clone.rb} +72 -50
  195. data/test/tc/closeoncopy.rb +13 -2
  196. data/test/tc/copy-dir-samevar.rb +91 -0
  197. data/test/tc/dir_iter.rb +0 -1
  198. data/test/tc/empty.rb +6 -2
  199. data/test/tc/expand_path.rb +36 -54
  200. data/test/tc/ext.rb +42 -18
  201. data/test/tc/gzip.rb +30 -3
  202. data/test/tc/likeio.rb +5 -1
  203. data/test/tc/line_record_row.rb +51 -0
  204. data/test/tc/noqae.rb +71 -70
  205. data/test/tc/path_parts.rb +175 -0
  206. data/test/tc/programs_util.rb +3 -3
  207. data/test/tc/rename.rb +4 -5
  208. data/test/tc/riorl.rb +9 -7
  209. data/test/tc/skip.rb +35 -6
  210. data/test/tc/skiplines.rb +34 -5
  211. data/test/tc/split.rb +8 -50
  212. data/test/tc/splitlines.rb +65 -0
  213. data/test/tc/splitpath.rb +83 -0
  214. data/test/tc/testcase.rb +1 -1
  215. data/test/tc/truncate.rb +39 -0
  216. data/test/tc/yaml.rb +9 -8
  217. metadata +261 -207
  218. data/ChangeLog +0 -1418
  219. data/VERSION +0 -1
  220. data/lib/rio/doc/MISC.rb +0 -259
  221. data/lib/rio/if/stream.rb +0 -680
  222. data/lib/rio/impl/path.rb +0 -87
  223. data/test/tc/copy-from-http.rb +0 -89
@@ -0,0 +1,83 @@
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
+
10
+ class TC_splitpath < Test::RIO::TestCase
11
+ @@once = false
12
+ def self.once
13
+ @@once = true
14
+ end
15
+ def setup
16
+ super
17
+ self.class.once unless @@once
18
+ end
19
+ def test_basic
20
+ r = rio('b/c/d')
21
+ ary = r.split
22
+ assert_equal([rio('b'),rio('c'),rio('d')],ary)
23
+ assert_equal(r,ary.to_rio)
24
+ end
25
+ def test_abs_ne
26
+ r = rio('/a/b/c/d')
27
+ ary = r.split
28
+ assert_equal([rio('/'),rio('a'),rio('b'),rio('c'),rio('d')],ary)
29
+ assert_equal(r,ary.to_rio)
30
+ assert_equal(rio('d'),ary[-1])
31
+ assert_equal(r,ary[-1].abs)
32
+ assert_equal(ary[-1].abs.dirname,ary[-2].abs)
33
+ assert_equal(ary[-2].abs.dirname,ary[-3].abs)
34
+ end
35
+ def test_abs_drive
36
+ return unless $mswin32
37
+ r = rio('q:/a/b')
38
+ ary = r.split
39
+ exp = [rio('q:/'),rio('a'),rio('b')]
40
+ assert_equal(exp,ary)
41
+ assert_equal(r,ary.to_rio)
42
+ assert_equal(rio('b'),ary[-1])
43
+ assert_equal(r,ary[-1].abs)
44
+ assert_equal(ary[-1].abs.dirname.to_s,ary[-2].abs.to_s)
45
+ assert_equal(ary[-2].abs.dirname.to_s,ary[-3].abs.to_s)
46
+ end
47
+ def test_abs_host
48
+ r = rio('//ahost/a/b/c')
49
+ ary = r.split
50
+ exp = [rio('file://ahost/'),rio('a'),rio('b'),rio('c')]
51
+ #p "ary=#{ary.inspect} exp=#{exp.inspect}"
52
+ assert_equal(exp,ary)
53
+ assert_equal(r,ary.to_rio)
54
+ assert_equal(rio('c'),ary[-1])
55
+ assert_equal(r,ary[-1].abs)
56
+ #p ary[-1].abs
57
+ #p ary[-1].abs.dirname
58
+ assert_equal(ary[-1].abs.dirname.to_s,ary[-2].abs.to_s)
59
+ assert_equal(ary[-2].abs.dirname.to_s,ary[-3].abs.to_s)
60
+ end
61
+ def test_abs_url
62
+ r = rio('file://ahost/a/b/c')
63
+ ary = r.split
64
+ exp = [rio('file://ahost/'),rio('a'),rio('b'),rio('c')]
65
+ assert_equal(exp,ary)
66
+ assert_equal(r,ary.to_rio)
67
+ assert_equal(rio('c'),ary[-1])
68
+ assert_equal(r,ary[-1].abs)
69
+ assert_equal(ary[-1].abs.dirname.to_s,ary[-2].abs.to_s)
70
+ assert_equal(ary[-2].abs.dirname,ary[-3].abs)
71
+ end
72
+ def test_rel
73
+ r = rio('a/b/c')
74
+ ary = r.split
75
+ exp = [rio('a'),rio('b'),rio('c')]
76
+ assert_equal(exp,ary)
77
+ assert_equal(r,ary.to_rio)
78
+ assert_equal(rio('c'),ary[-1])
79
+ assert_equal(r.abs,ary[-1].abs)
80
+ assert_equal(ary[-1].abs.dirname,ary[-2].abs)
81
+ assert_equal(ary[-2].abs.dirname,ary[-3].abs)
82
+ end
83
+ end
@@ -135,7 +135,7 @@ module Test
135
135
  assert_equal(exp.readlink,ans.readlink,"symlinks read the same")
136
136
  when exp.file?
137
137
  assert(ans.file?,"entry is a file")
138
- assert_equal(exp.readlines,ans.readlines,"file has same contents")
138
+ assert_equal(exp.chomp.lines[],ans.chomp.lines[],"file has same contents")
139
139
  when exp.dir?
140
140
  assert(ans.dir?,"entry is a dir")
141
141
  assert_dirs_equal(exp,ans,"directories are the same")
@@ -0,0 +1,39 @@
1
+ #!/usr/local/bin/ruby
2
+ if $0 == __FILE__
3
+ Dir.chdir File.dirname(__FILE__)+'/../'
4
+ $:.unshift File.expand_path('../lib/')
5
+ end
6
+ require 'rio'
7
+ require 'tc/testcase'
8
+ require 'pp'
9
+
10
+ class TC_truncate < Test::RIO::TestCase
11
+ @@once = false
12
+ def self.once
13
+ @@once = true
14
+
15
+ end
16
+
17
+ def setup
18
+ super
19
+ self.class.once unless @@once
20
+
21
+ end
22
+
23
+ def test_basic
24
+ str = "1234567890"
25
+ f = rio("out")
26
+ f.print!(str)
27
+ assert_equal(str,f.contents)
28
+ assert_equal(str.size,f.size)
29
+ n = 5
30
+ f.truncate(n)
31
+ assert_equal(str[0,n],f.contents)
32
+ assert_equal(n,f.size)
33
+ n = 2
34
+ assert_equal(str[0,n],f.read(n))
35
+ assert_equal(n,f.truncate.size)
36
+ assert_equal(str[0,n],f.contents)
37
+ end
38
+
39
+ end
@@ -29,15 +29,22 @@ class TC_yaml < Test::RIO::TestCase
29
29
  super
30
30
  end
31
31
 
32
+ def test_ss
33
+ 0.upto(2) do |n|
34
+ exp = [TOBJS[n]]
35
+ ans = rio(TRIO).yaml[n]
36
+ assert_equal(exp,ans)
37
+ ans = rio(TRIO).yaml[TOBJS[n].class]
38
+ assert_equal(exp,ans)
39
+ end
40
+ end
32
41
  def test_copyop
33
42
  objs = rio(TRIO).yaml[]
34
43
  assert_equal(TOBJS,objs)
35
44
  out = rio('out.yaml').delete
36
45
  yout = rio(out).yaml
37
46
  yout < objs
38
- p objs
39
47
  rio(?",ostring = "").yaml < yout
40
- p ostring
41
48
  end
42
49
  def test_read
43
50
  end
@@ -56,9 +63,6 @@ class TC_yaml < Test::RIO::TestCase
56
63
  assert_instance_of(::String,obj)
57
64
  assert_equal(rio(TRIO).lines[0],[obj])
58
65
 
59
- obj = rio(TRIO).yaml.rows.get
60
- assert_instance_of(::String,obj)
61
- assert_equal(rio(TRIO).lines[0..2].to_s,obj)
62
66
  end
63
67
  def test_getrec
64
68
  exp = TOBJS[0]
@@ -120,9 +124,6 @@ class TC_yaml < Test::RIO::TestCase
120
124
  assert_equal(exp,obj)
121
125
 
122
126
  end
123
- def test_grande
124
-
125
- end
126
127
 
127
128
 
128
129
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rio
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.8
7
- date: 2006-05-05 00:00:00 -07:00
6
+ version: 0.3.9
7
+ date: 2007-03-15 00:00:00 -07:00
8
8
  summary: Rio - Ruby I/O Comfort Class
9
9
  require_paths:
10
10
  - lib
@@ -25,266 +25,320 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
25
25
  platform: ruby
26
26
  signing_key:
27
27
  cert_chain:
28
+ post_install_message:
28
29
  authors:
29
30
  - Christopher Kleckner
30
31
  files:
31
- - lib/rio/abstract_method.rb
32
- - lib/rio/argv.rb
33
- - lib/rio/arycopy.rb
34
- - lib/rio/assert.rb
35
- - lib/rio/base.rb
36
- - lib/rio/callstr.rb
37
- - lib/rio/const.rb
38
- - lib/rio/construct.rb
39
- - lib/rio/constructor.rb
40
- - lib/rio/context/autoclose.rb
41
- - lib/rio/context/copying.rb
42
- - lib/rio/context/cxx.rb
43
- - lib/rio/context/dir.rb
44
- - lib/rio/context/gzip.rb
45
- - lib/rio/context/methods.rb
46
- - lib/rio/context/skip.rb
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
52
- - lib/rio/doc/HOWTO.rb
53
- - lib/rio/doc/INTRO.rb
54
- - lib/rio/doc/MISC.rb
55
- - lib/rio/doc/OPTIONAL.rb
56
- - lib/rio/doc/SYNOPSIS.rb
57
- - lib/rio/doc.rb
58
- - lib/rio/entrysel.rb
59
- - lib/rio/exception/copy.rb
60
- - lib/rio/exception/notsupported.rb
61
- - lib/rio/exception/open.rb
62
- - lib/rio/exception/state.rb
63
- - lib/rio/exception.rb
64
- - lib/rio/ext/csv.rb
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
70
- - lib/rio/filter/closeoneof.rb
71
- - lib/rio/filter/gzip.rb
72
- - lib/rio/filter.rb
73
- - lib/rio/fs/base.rb
74
- - lib/rio/fs/impl.rb
75
32
  - lib/rio/fs/native.rb
76
33
  - lib/rio/fs/stream.rb
77
34
  - 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
84
- - lib/rio/if/basic.rb
35
+ - lib/rio/fs/base.rb
36
+ - lib/rio/fs/impl.rb
37
+ - lib/rio/if/rubyio.rb
38
+ - lib/rio/if/yaml.rb
39
+ - lib/rio/if/fileordir.rb
40
+ - lib/rio/if/string.rb
41
+ - lib/rio/if/internal.rb
42
+ - lib/rio/if/temp.rb
43
+ - lib/rio/if/test.rb
44
+ - lib/rio/if/file.rb
45
+ - lib/rio/if/grande_entry.rb
85
46
  - lib/rio/if/csv.rb
86
47
  - lib/rio/if/dir.rb
87
- - lib/rio/if/file.rb
88
- - lib/rio/if/fileordir.rb
89
48
  - lib/rio/if/grande.rb
90
- - lib/rio/if/grande_entry.rb
91
49
  - lib/rio/if/grande_stream.rb
92
- - lib/rio/if/internal.rb
93
50
  - lib/rio/if/path.rb
94
- - lib/rio/if/stream.rb
95
- - lib/rio/if/string.rb
96
- - lib/rio/if/temp.rb
97
- - lib/rio/if/test.rb
98
- - lib/rio/if/yaml.rb
99
- - lib/rio/if.rb
100
- - lib/rio/impl/path.rb
101
- - lib/rio/ioh.rb
102
- - lib/rio/iomode.rb
51
+ - lib/rio/if/basic.rb
52
+ - lib/rio/rl/withpath.rb
53
+ - lib/rio/rl/chmap.rb
54
+ - lib/rio/rl/builder.rb
55
+ - lib/rio/rl/ioi.rb
56
+ - lib/rio/rl/pathmethods.rb
57
+ - lib/rio/rl/uri.rb
58
+ - lib/rio/rl/base.rb
59
+ - lib/rio/rl/path.rb
60
+ - lib/rio/rl/fs2url.rb
61
+ - lib/rio/doc/EXAMPLES.rb
62
+ - lib/rio/doc/HOWTO.rb
63
+ - lib/rio/doc/SYNOPSIS.rb
64
+ - lib/rio/doc/INTRO.rb
65
+ - lib/rio/doc/OPTIONAL.rb
66
+ - lib/rio/ext/yaml/doc.rb
67
+ - lib/rio/ext/yaml/tie.rb
68
+ - lib/rio/ext/yaml.rb
69
+ - lib/rio/ext/zipfile.rb
70
+ - lib/rio/ext/if.rb
71
+ - lib/rio/ext/zipfile/fs.rb
72
+ - lib/rio/ext/zipfile/rl.rb
73
+ - lib/rio/ext/zipfile/state.rb
74
+ - lib/rio/ext/zipfile/rootdir.rb
75
+ - lib/rio/ext/zipfile/wrap.rb
76
+ - lib/rio/ext/csv.rb
77
+ - lib/rio/ext/mp3info.rb
78
+ - lib/rio/ext/splitlines.rb
79
+ - lib/rio/ftp/fs.rb
80
+ - lib/rio/ftp/conncache.rb
81
+ - lib/rio/ftp/ftpfile.rb
82
+ - lib/rio/ftp/dir.rb
103
83
  - lib/rio/ios/fail.rb
104
- - lib/rio/ios/generic.rb
105
84
  - lib/rio/ios/mode.rb
85
+ - lib/rio/ios/generic.rb
106
86
  - 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
115
87
  - lib/rio/ops/construct.rb
116
- - lib/rio/ops/create.rb
88
+ - lib/rio/ops/stream.rb
89
+ - lib/rio/ops/file.rb
117
90
  - lib/rio/ops/dir.rb
91
+ - lib/rio/ops/symlink.rb
118
92
  - lib/rio/ops/either.rb
119
- - lib/rio/ops/file.rb
120
- - lib/rio/ops/path.rb
121
- - lib/rio/ops/stream/input.rb
122
- - lib/rio/ops/stream/output.rb
123
93
  - lib/rio/ops/stream/read.rb
94
+ - lib/rio/ops/stream/output.rb
124
95
  - lib/rio/ops/stream/write.rb
125
- - lib/rio/ops/stream.rb
126
- - lib/rio/ops/symlink.rb
96
+ - lib/rio/ops/stream/input.rb
97
+ - lib/rio/ops/create.rb
98
+ - lib/rio/ops/path.rb
99
+ - lib/rio/uri/file.rb
127
100
  - lib/rio/path/reset.rb
128
- - lib/rio/path.rb
101
+ - lib/rio/context/stream.rb
102
+ - lib/rio/context/autoclose.rb
103
+ - lib/rio/context/methods.rb
104
+ - lib/rio/context/skip.rb
105
+ - lib/rio/context/dir.rb
106
+ - lib/rio/context/cxx.rb
107
+ - lib/rio/context/copying.rb
108
+ - lib/rio/context/gzip.rb
109
+ - lib/rio/arycopy.rb
110
+ - lib/rio/construct.rb
111
+ - lib/rio/stream.rb
112
+ - lib/rio/iowrap.rb
113
+ - lib/rio/cp.rb
114
+ - lib/rio/entrysel.rb
115
+ - lib/rio/if.rb
129
116
  - lib/rio/piper/cp.rb
130
- - lib/rio/piper.rb
131
- - lib/rio/prompt.rb
117
+ - lib/rio/state/error.rb
118
+ - lib/rio/exception/copy.rb
119
+ - lib/rio/exception/notimplemented.rb
120
+ - lib/rio/exception/state.rb
121
+ - lib/rio/exception/notsupported.rb
122
+ - lib/rio/exception/open.rb
123
+ - lib/rio/filter.rb
132
124
  - lib/rio/rectype.rb
133
- - lib/rio/rl/base.rb
134
- - lib/rio/rl/builder.rb
135
- - lib/rio/rl/ioi.rb
136
- - lib/rio/rl/path.rb
137
- - lib/rio/rl/pathmethods.rb
138
- - lib/rio/rl/uri.rb
139
- - lib/rio/scheme/aryio.rb
125
+ - lib/rio/callstr.rb
126
+ - lib/rio/assert.rb
127
+ - lib/rio/matchrecord.rb
128
+ - lib/rio/file.rb
129
+ - lib/rio/symantics.rb
130
+ - lib/rio/context.rb
131
+ - lib/rio/def.rb
132
+ - lib/rio/dir.rb
133
+ - lib/rio/doc.rb
134
+ - lib/rio/kernel.rb
135
+ - lib/rio/match.rb
136
+ - lib/rio/no_warn.rb
137
+ - lib/rio/filter/closeoneof.rb
138
+ - lib/rio/filter/gzip.rb
139
+ - lib/rio/const.rb
140
+ - lib/rio/piper.rb
141
+ - lib/rio/ext.rb
142
+ - lib/rio/ioh.rb
143
+ - lib/rio/grande.rb
144
+ - lib/rio/iomode.rb
145
+ - lib/rio/scheme/stderr.rb
140
146
  - lib/rio/scheme/cmdio.rb
141
- - lib/rio/scheme/cmdpipe.rb
142
147
  - lib/rio/scheme/fd.rb
148
+ - lib/rio/scheme/temp.rb
143
149
  - lib/rio/scheme/ftp.rb
144
- - lib/rio/scheme/http.rb
150
+ - lib/rio/scheme/sysio.rb
151
+ - lib/rio/scheme/tcp.rb
145
152
  - lib/rio/scheme/null.rb
146
- - lib/rio/scheme/path.rb
147
- - lib/rio/scheme/stderr.rb
148
153
  - lib/rio/scheme/stdio.rb
154
+ - lib/rio/scheme/path.rb
155
+ - lib/rio/scheme/cmdpipe.rb
156
+ - lib/rio/scheme/http.rb
157
+ - lib/rio/scheme/aryio.rb
149
158
  - lib/rio/scheme/strio.rb
150
- - lib/rio/scheme/sysio.rb
151
- - lib/rio/scheme/tcp.rb
152
- - lib/rio/scheme/temp.rb
153
- - lib/rio/state/error.rb
154
- - lib/rio/state.rb
155
159
  - lib/rio/stream/base.rb
156
- - lib/rio/stream/duplex.rb
157
160
  - 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
161
+ - lib/rio/stream/duplex.rb
162
+ - lib/rio/handle.rb
163
+ - lib/rio/open3.rb
164
+ - lib/rio/to_rio/string.rb
163
165
  - lib/rio/to_rio/io.rb
166
+ - lib/rio/to_rio/all.rb
164
167
  - lib/rio/to_rio/object.rb
165
- - lib/rio/to_rio/string.rb
166
- - lib/rio/to_rio.rb
167
- - lib/rio/uri/file.rb
168
+ - lib/rio/to_rio/array.rb
169
+ - lib/rio/local.rb
170
+ - lib/rio/state.rb
171
+ - lib/rio/base.rb
168
172
  - lib/rio/util.rb
173
+ - lib/rio/exception.rb
174
+ - lib/rio/constructor.rb
175
+ - lib/rio/path.rb
176
+ - lib/rio/factory.rb
177
+ - lib/rio/argv.rb
178
+ - lib/rio/prompt.rb
179
+ - lib/rio/tempdir.rb
180
+ - lib/rio/abstract_method.rb
181
+ - lib/rio/nullio.rb
169
182
  - lib/rio/version.rb
183
+ - lib/rio/to_rio.rb
170
184
  - lib/rio.rb
171
185
  - README
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
186
+ - ex/.svn
187
+ - ex/tonl
188
+ - ex/colx.rb
189
+ - ex/riogzip
190
+ - ex/targz2zip
191
+ - ex/findruby
192
+ - ex/riogunzip
193
+ - ex/findinruby
194
+ - ex/rgb.txt.gz
195
+ - ex/rioprompt.rb
196
+ - ex/riocat
197
+ - ex/catcsv.rb
198
+ - ex/passwd_report.rb
199
+ - ex/prompt.rb
181
200
  - doc/rfc1738.txt
201
+ - doc/RIOIS
202
+ - doc/pkg_def.rb
182
203
  - 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
+ - doc/RELEASE_NOTES
205
+ - doc/generators
206
+ - doc/generators/template
207
+ - doc/generators/template/html
208
+ - doc/generators/template/html/rio.css
209
+ - doc/generators/template/html/ugly.rb
210
+ - doc/generators/template/html/rio.rb
211
+ - doc/ANNOUNCE
212
+ - test/tc
213
+ - test/tc/overload.rb
214
+ - test/tc/csvutil.rb
215
+ - test/tc/testcase.rb
216
+ - test/tc/fileno.rb
217
+ - test/tc/copy.rb
218
+ - test/tc/yaml.rb
219
+ - test/tc/clone.rb
220
+ - test/tc/noqae.rb
221
+ - test/tc/programs_util.rb
222
+ - test/tc/csv2.rb
223
+ - test/tc/splitpath.rb
224
+ - test/tc/skiplines.rb
225
+ - test/tc/eq.rb
226
+ - test/tc/each.rb
227
+ - test/tc/pa.rb
228
+ - test/tc/dir_iter.rb
204
229
  - test/tc/closeoncopy.rb
205
- - test/tc/closeoneof.rb
206
- - test/tc/cmdpipe.rb
207
- - test/tc/copy-from-http.rb
230
+ - test/tc/pathop.rb
231
+ - test/tc/split.rb
232
+ - test/tc/dirss.rb
233
+ - test/tc/clearsel.rb
234
+ - test/tc/rename_assign.rb
235
+ - test/tc/likeio.rb
236
+ - test/tc/skip.rb
208
237
  - 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
238
+ - test/tc/qae_riovar.rb
239
+ - test/tc/each_break.rb
240
+ - test/tc/paths.rb
241
+ - test/tc/temp.rb
242
+ - test/tc/records.rb
214
243
  - test/tc/copydirlines.rb
215
- - test/tc/copylines.rb
216
- - test/tc/copynonex.rb
217
- - test/tc/copysymlink.rb
218
- - test/tc/create.rb
244
+ - test/tc/abs.rb
245
+ - test/tc/misc.rb
246
+ - test/tc/copydir.rb
247
+ - test/tc/empty.rb
248
+ - test/tc/all.rb
249
+ - test/tc/io_each_byte.rb
250
+ - test/tc/cd1.rb
219
251
  - test/tc/csv.rb
220
- - test/tc/csv2.rb
221
- - test/tc/csvutil.rb
222
- - test/tc/csv_columns.rb
223
252
  - 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
253
+ - test/tc/nolines.rb
254
+ - test/tc/csv_columns.rb
230
255
  - 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
256
+ - test/tc/iometh.rb
257
+ - test/tc/selnosel.rb
258
+ - test/tc/piper.rb
259
+ - test/tc/closeoneof.rb
237
260
  - test/tc/ext.rb
238
- - test/tc/fileno.rb
239
- - test/tc/files_select.rb
240
261
  - 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
262
+ - test/tc/copy-dir-samevar.rb
263
+ - test/tc/tonl.rb
264
+ - test/tc/symlink.rb
245
265
  - 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
266
+ - test/tc/copyarray.rb
267
+ - test/tc/getrec.rb
268
+ - test/tc/entary.rb
269
+ - test/tc/copydest.rb
270
+ - test/tc/path_parts.rb
271
+ - test/tc/expand_path.rb
259
272
  - test/tc/pid.rb
260
- - test/tc/piper.rb
261
- - test/tc/programs_util.rb
262
273
  - 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
274
  - test/tc/route.rb
270
- - test/tc/selnosel.rb
271
- - test/tc/skip.rb
272
- - test/tc/skiplines.rb
273
- - test/tc/split.rb
275
+ - test/tc/emptyriodir.rb
276
+ - test/tc/tempfile.rb
274
277
  - test/tc/sub.rb
275
- - test/tc/symlink.rb
278
+ - test/tc/riorl.rb
279
+ - test/tc/splitlines.rb
280
+ - test/tc/copy-to.rb
281
+ - test/tc/null.rb
282
+ - test/tc/base.rb
283
+ - test/tc/lineno.rb
284
+ - test/tc/create.rb
285
+ - test/tc/copylines.rb
286
+ - test/tc/once.rb
287
+ - test/tc/gzip.rb
288
+ - test/tc/truncate.rb
289
+ - test/tc/cmdpipe.rb
290
+ - test/tc/dirent.rb
291
+ - test/tc/rename.rb
292
+ - test/tc/entsel.rb
293
+ - test/tc/copynonex.rb
294
+ - test/tc/tempdir.rb
295
+ - test/tc/copysymlink.rb
296
+ - test/tc/files_select.rb
297
+ - test/tc/base2.rb
298
+ - test/tc/line_record_row.rb
299
+ - test/tc/dirautoclose.rb
300
+ - test/tc/readline.rb
301
+ - test/tc/lines.rb
276
302
  - test/tc/symlink0.rb
277
303
  - 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
304
+ - test/bin
305
+ - test/bin/find_lines.rb
306
+ - test/bin/list_dir.rb
307
+ - test/bin/count_lines.rb
308
+ - test/ftp
309
+ - test/ftp/testdef.rb
310
+ - test/ftp/anon_special.rb
311
+ - test/ftp/all.rb
312
+ - test/ftp/anon_read.rb
313
+ - test/ftp/anon_misc.rb
314
+ - test/ftp/ftp2ftp.rb
315
+ - test/ftp/anon_write.rb
316
+ - test/ftp/initftpfiles.rb
317
+ - test/lib
318
+ - test/lib/temp_server.rb
319
+ - test/srv
320
+ - test/srv/www
321
+ - test/srv/www/htdocs
322
+ - test/srv/www/htdocs/riotest
323
+ - test/srv/www/htdocs/riotest/dir
324
+ - test/http
325
+ - test/http/all.rb
326
+ - test/http/copy-from-http.rb
327
+ - test/runalltests.rb
328
+ - test/runftptests.rb
329
+ - test/runhttp.rb
330
+ - test/runtests.rb
331
+ - test/gem_runtests.rb
332
+ - test/runhttptests.rb
333
+ - Rakefile
334
+ - build_doc.rb
335
+ - setup.rb
336
+ - COPYING
284
337
  test_files: []
285
338
 
286
339
  rdoc_options:
287
- - - --line-numbers
340
+ - - --show-hash
341
+ - --line-numbers
288
342
  - -mRIO::Doc::SYNOPSIS
289
343
  - -Tdoc/generators/template/html/rio.rb
290
344
  extra_rdoc_files: []