rio 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (342) hide show
  1. data/ChangeLog +171 -0
  2. data/README +3 -16
  3. data/RUNME.1st.rb +1 -3
  4. data/Rakefile +10 -7
  5. data/VERSION +1 -1
  6. data/doc/ANNOUNCE +1 -1
  7. data/doc/RELEASE_NOTES +3 -4
  8. data/ex/colx.rb +8 -0
  9. data/ex/findinruby +16 -0
  10. data/ex/findruby +15 -0
  11. data/ex/passwd_report.rb +8 -0
  12. data/ex/prompt.rb +25 -0
  13. data/ex/rgb.txt.gz +0 -0
  14. data/ex/riocat +35 -0
  15. data/ex/riogunzip +31 -0
  16. data/ex/riogzip +24 -0
  17. data/ex/rioprompt.rb +6 -0
  18. data/ex/targz2zip +17 -0
  19. data/ex/tolf +11 -0
  20. data/lib/rio.rb +0 -3
  21. data/lib/rio/construct.rb +14 -20
  22. data/lib/rio/dir.rb +2 -2
  23. data/lib/rio/doc/INTRO.rb +12 -16
  24. data/lib/rio/ext.rb +2 -1
  25. data/lib/rio/ext/csv.rb +5 -1
  26. data/lib/rio/ext/yaml.rb +11 -12
  27. data/lib/rio/filter.rb +1 -1
  28. data/lib/rio/ftp.rb +1 -1
  29. data/lib/rio/if/dir.rb +2 -2
  30. data/lib/rio/if/grande.rb +7 -1
  31. data/lib/rio/if/yaml.rb +1 -1
  32. data/lib/rio/ioh.rb +11 -1
  33. data/lib/rio/ops/construct.rb +11 -10
  34. data/lib/rio/ops/dir.rb +38 -19
  35. data/lib/rio/rl/ioi.rb +2 -2
  36. data/lib/rio/scheme/temp.rb +2 -2
  37. data/lib/rio/state.rb +1 -1
  38. data/lib/rio/stream/open.rb +9 -6
  39. data/lib/rio/util.rb +49 -0
  40. data/lib/rio/version.rb +1 -1
  41. data/test/tc/all.rb +3 -1
  42. data/test/tc/cd1.rb +0 -3
  43. data/test/tc/clearsel.rb +1 -2
  44. data/test/tc/copy-from.rb +0 -3
  45. data/test/tc/copy-to.rb +0 -3
  46. data/test/tc/copyarray.rb +1 -4
  47. data/test/tc/copydir.rb +0 -3
  48. data/test/tc/copydirlines.rb +0 -3
  49. data/test/tc/copynonex.rb +0 -3
  50. data/test/tc/csv.rb +0 -3
  51. data/test/tc/dir.rb +0 -3
  52. data/test/tc/dir_iter.rb +384 -0
  53. data/test/tc/dirautoclose.rb +4 -7
  54. data/test/tc/dirent.rb +3 -5
  55. data/test/tc/dirss.rb +2 -5
  56. data/test/tc/each.rb +3 -3
  57. data/test/tc/each_break.rb +17 -28
  58. data/test/tc/edf.rb +1 -2
  59. data/test/tc/entary.rb +1 -4
  60. data/test/tc/expand_path.rb +1 -2
  61. data/test/tc/ext.rb +0 -3
  62. data/test/tc/fileno.rb +1 -2
  63. data/test/tc/get.rb +151 -0
  64. data/test/tc/lineno.rb +1 -2
  65. data/test/tc/methods.rb +1 -1
  66. data/test/tc/misc.rb +1 -5
  67. data/test/tc/nolines.rb +3 -4
  68. data/test/tc/noqae.rb +1 -4
  69. data/test/tc/pa.rb +1 -2
  70. data/test/tc/pathop.rb +0 -3
  71. data/test/tc/paths.rb +1 -3
  72. data/test/tc/qae.rb +1 -2
  73. data/test/tc/qae_riovar.rb +1 -2
  74. data/test/tc/records.rb +1 -2
  75. data/test/tc/rename.rb +1 -3
  76. data/test/tc/rename_assign.rb +0 -3
  77. data/test/tc/riorl.rb +82 -52
  78. data/test/tc/selnosel.rb +0 -3
  79. data/test/tc/sub.rb +0 -3
  80. data/test/tc/symlink.rb +1 -2
  81. data/test/tc/symlink0.rb +1 -2
  82. data/test/tc/symlink1.rb +1 -2
  83. data/test/tc/temp.rb +0 -3
  84. data/test/tc/tempdir.rb +0 -3
  85. data/test/tc/tempfile.rb +0 -3
  86. data/test/tc/testcase.rb +9 -4
  87. data/test/tc/yaml.rb +11 -1
  88. metadata +141 -386
  89. data/doc/rdoc/classes/Kernel.html +0 -181
  90. data/doc/rdoc/classes/Kernel.src/M000214.html +0 -18
  91. data/doc/rdoc/classes/RIO.html +0 -621
  92. data/doc/rdoc/classes/RIO.src/M000001.html +0 -18
  93. data/doc/rdoc/classes/RIO.src/M000002.html +0 -18
  94. data/doc/rdoc/classes/RIO.src/M000003.html +0 -18
  95. data/doc/rdoc/classes/RIO/Doc.html +0 -138
  96. data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1040
  97. data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1613
  98. data/doc/rdoc/classes/RIO/Doc/MISC.html +0 -443
  99. data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -338
  100. data/doc/rdoc/classes/RIO/IF.html +0 -114
  101. data/doc/rdoc/classes/RIO/IF/CSV.html +0 -202
  102. data/doc/rdoc/classes/RIO/IF/CSV.src/M000004.html +0 -19
  103. data/doc/rdoc/classes/RIO/IF/CSV.src/M000005.html +0 -16
  104. data/doc/rdoc/classes/RIO/IF/CSV.src/M000006.html +0 -16
  105. data/doc/rdoc/classes/RIO/IF/YAML.html +0 -499
  106. data/doc/rdoc/classes/RIO/IF/YAML.src/M000007.html +0 -19
  107. data/doc/rdoc/classes/RIO/IF/YAML.src/M000008.html +0 -16
  108. data/doc/rdoc/classes/RIO/IF/YAML.src/M000009.html +0 -16
  109. data/doc/rdoc/classes/RIO/IF/YAML.src/M000010.html +0 -16
  110. data/doc/rdoc/classes/RIO/IF/YAML.src/M000011.html +0 -16
  111. data/doc/rdoc/classes/RIO/IF/YAML.src/M000012.html +0 -16
  112. data/doc/rdoc/classes/RIO/IF/YAML.src/M000013.html +0 -16
  113. data/doc/rdoc/classes/RIO/IF/YAML.src/M000014.html +0 -16
  114. data/doc/rdoc/classes/RIO/IF/YAML.src/M000015.html +0 -16
  115. data/doc/rdoc/classes/RIO/IF/YAML.src/M000016.html +0 -16
  116. data/doc/rdoc/classes/RIO/IF/YAML.src/M000017.html +0 -16
  117. data/doc/rdoc/classes/RIO/Rio.html +0 -7121
  118. data/doc/rdoc/classes/RIO/Rio.src/M000018.html +0 -18
  119. data/doc/rdoc/classes/RIO/Rio.src/M000019.html +0 -20
  120. data/doc/rdoc/classes/RIO/Rio.src/M000020.html +0 -27
  121. data/doc/rdoc/classes/RIO/Rio.src/M000021.html +0 -16
  122. data/doc/rdoc/classes/RIO/Rio.src/M000023.html +0 -19
  123. data/doc/rdoc/classes/RIO/Rio.src/M000024.html +0 -20
  124. data/doc/rdoc/classes/RIO/Rio.src/M000025.html +0 -16
  125. data/doc/rdoc/classes/RIO/Rio.src/M000026.html +0 -16
  126. data/doc/rdoc/classes/RIO/Rio.src/M000027.html +0 -16
  127. data/doc/rdoc/classes/RIO/Rio.src/M000028.html +0 -16
  128. data/doc/rdoc/classes/RIO/Rio.src/M000029.html +0 -16
  129. data/doc/rdoc/classes/RIO/Rio.src/M000030.html +0 -16
  130. data/doc/rdoc/classes/RIO/Rio.src/M000031.html +0 -16
  131. data/doc/rdoc/classes/RIO/Rio.src/M000032.html +0 -16
  132. data/doc/rdoc/classes/RIO/Rio.src/M000033.html +0 -16
  133. data/doc/rdoc/classes/RIO/Rio.src/M000034.html +0 -16
  134. data/doc/rdoc/classes/RIO/Rio.src/M000035.html +0 -16
  135. data/doc/rdoc/classes/RIO/Rio.src/M000036.html +0 -16
  136. data/doc/rdoc/classes/RIO/Rio.src/M000037.html +0 -16
  137. data/doc/rdoc/classes/RIO/Rio.src/M000038.html +0 -16
  138. data/doc/rdoc/classes/RIO/Rio.src/M000039.html +0 -16
  139. data/doc/rdoc/classes/RIO/Rio.src/M000040.html +0 -16
  140. data/doc/rdoc/classes/RIO/Rio.src/M000041.html +0 -16
  141. data/doc/rdoc/classes/RIO/Rio.src/M000042.html +0 -16
  142. data/doc/rdoc/classes/RIO/Rio.src/M000043.html +0 -16
  143. data/doc/rdoc/classes/RIO/Rio.src/M000044.html +0 -16
  144. data/doc/rdoc/classes/RIO/Rio.src/M000045.html +0 -16
  145. data/doc/rdoc/classes/RIO/Rio.src/M000046.html +0 -16
  146. data/doc/rdoc/classes/RIO/Rio.src/M000047.html +0 -16
  147. data/doc/rdoc/classes/RIO/Rio.src/M000048.html +0 -16
  148. data/doc/rdoc/classes/RIO/Rio.src/M000049.html +0 -16
  149. data/doc/rdoc/classes/RIO/Rio.src/M000050.html +0 -16
  150. data/doc/rdoc/classes/RIO/Rio.src/M000051.html +0 -16
  151. data/doc/rdoc/classes/RIO/Rio.src/M000052.html +0 -16
  152. data/doc/rdoc/classes/RIO/Rio.src/M000053.html +0 -16
  153. data/doc/rdoc/classes/RIO/Rio.src/M000054.html +0 -16
  154. data/doc/rdoc/classes/RIO/Rio.src/M000055.html +0 -16
  155. data/doc/rdoc/classes/RIO/Rio.src/M000056.html +0 -16
  156. data/doc/rdoc/classes/RIO/Rio.src/M000057.html +0 -16
  157. data/doc/rdoc/classes/RIO/Rio.src/M000058.html +0 -16
  158. data/doc/rdoc/classes/RIO/Rio.src/M000059.html +0 -16
  159. data/doc/rdoc/classes/RIO/Rio.src/M000060.html +0 -16
  160. data/doc/rdoc/classes/RIO/Rio.src/M000061.html +0 -16
  161. data/doc/rdoc/classes/RIO/Rio.src/M000062.html +0 -16
  162. data/doc/rdoc/classes/RIO/Rio.src/M000063.html +0 -16
  163. data/doc/rdoc/classes/RIO/Rio.src/M000064.html +0 -16
  164. data/doc/rdoc/classes/RIO/Rio.src/M000065.html +0 -16
  165. data/doc/rdoc/classes/RIO/Rio.src/M000066.html +0 -16
  166. data/doc/rdoc/classes/RIO/Rio.src/M000067.html +0 -16
  167. data/doc/rdoc/classes/RIO/Rio.src/M000068.html +0 -16
  168. data/doc/rdoc/classes/RIO/Rio.src/M000069.html +0 -16
  169. data/doc/rdoc/classes/RIO/Rio.src/M000070.html +0 -16
  170. data/doc/rdoc/classes/RIO/Rio.src/M000071.html +0 -16
  171. data/doc/rdoc/classes/RIO/Rio.src/M000072.html +0 -16
  172. data/doc/rdoc/classes/RIO/Rio.src/M000073.html +0 -16
  173. data/doc/rdoc/classes/RIO/Rio.src/M000074.html +0 -16
  174. data/doc/rdoc/classes/RIO/Rio.src/M000075.html +0 -16
  175. data/doc/rdoc/classes/RIO/Rio.src/M000076.html +0 -16
  176. data/doc/rdoc/classes/RIO/Rio.src/M000077.html +0 -16
  177. data/doc/rdoc/classes/RIO/Rio.src/M000078.html +0 -16
  178. data/doc/rdoc/classes/RIO/Rio.src/M000079.html +0 -16
  179. data/doc/rdoc/classes/RIO/Rio.src/M000080.html +0 -16
  180. data/doc/rdoc/classes/RIO/Rio.src/M000081.html +0 -16
  181. data/doc/rdoc/classes/RIO/Rio.src/M000082.html +0 -16
  182. data/doc/rdoc/classes/RIO/Rio.src/M000083.html +0 -16
  183. data/doc/rdoc/classes/RIO/Rio.src/M000084.html +0 -16
  184. data/doc/rdoc/classes/RIO/Rio.src/M000085.html +0 -16
  185. data/doc/rdoc/classes/RIO/Rio.src/M000086.html +0 -16
  186. data/doc/rdoc/classes/RIO/Rio.src/M000087.html +0 -16
  187. data/doc/rdoc/classes/RIO/Rio.src/M000088.html +0 -16
  188. data/doc/rdoc/classes/RIO/Rio.src/M000089.html +0 -16
  189. data/doc/rdoc/classes/RIO/Rio.src/M000090.html +0 -16
  190. data/doc/rdoc/classes/RIO/Rio.src/M000091.html +0 -16
  191. data/doc/rdoc/classes/RIO/Rio.src/M000092.html +0 -16
  192. data/doc/rdoc/classes/RIO/Rio.src/M000093.html +0 -16
  193. data/doc/rdoc/classes/RIO/Rio.src/M000094.html +0 -16
  194. data/doc/rdoc/classes/RIO/Rio.src/M000095.html +0 -16
  195. data/doc/rdoc/classes/RIO/Rio.src/M000096.html +0 -16
  196. data/doc/rdoc/classes/RIO/Rio.src/M000097.html +0 -16
  197. data/doc/rdoc/classes/RIO/Rio.src/M000098.html +0 -16
  198. data/doc/rdoc/classes/RIO/Rio.src/M000099.html +0 -16
  199. data/doc/rdoc/classes/RIO/Rio.src/M000100.html +0 -16
  200. data/doc/rdoc/classes/RIO/Rio.src/M000101.html +0 -16
  201. data/doc/rdoc/classes/RIO/Rio.src/M000102.html +0 -16
  202. data/doc/rdoc/classes/RIO/Rio.src/M000103.html +0 -16
  203. data/doc/rdoc/classes/RIO/Rio.src/M000104.html +0 -16
  204. data/doc/rdoc/classes/RIO/Rio.src/M000105.html +0 -16
  205. data/doc/rdoc/classes/RIO/Rio.src/M000106.html +0 -16
  206. data/doc/rdoc/classes/RIO/Rio.src/M000107.html +0 -16
  207. data/doc/rdoc/classes/RIO/Rio.src/M000108.html +0 -16
  208. data/doc/rdoc/classes/RIO/Rio.src/M000109.html +0 -16
  209. data/doc/rdoc/classes/RIO/Rio.src/M000110.html +0 -16
  210. data/doc/rdoc/classes/RIO/Rio.src/M000111.html +0 -16
  211. data/doc/rdoc/classes/RIO/Rio.src/M000112.html +0 -16
  212. data/doc/rdoc/classes/RIO/Rio.src/M000113.html +0 -16
  213. data/doc/rdoc/classes/RIO/Rio.src/M000114.html +0 -16
  214. data/doc/rdoc/classes/RIO/Rio.src/M000115.html +0 -16
  215. data/doc/rdoc/classes/RIO/Rio.src/M000116.html +0 -16
  216. data/doc/rdoc/classes/RIO/Rio.src/M000117.html +0 -16
  217. data/doc/rdoc/classes/RIO/Rio.src/M000118.html +0 -16
  218. data/doc/rdoc/classes/RIO/Rio.src/M000119.html +0 -16
  219. data/doc/rdoc/classes/RIO/Rio.src/M000120.html +0 -16
  220. data/doc/rdoc/classes/RIO/Rio.src/M000121.html +0 -16
  221. data/doc/rdoc/classes/RIO/Rio.src/M000122.html +0 -16
  222. data/doc/rdoc/classes/RIO/Rio.src/M000123.html +0 -16
  223. data/doc/rdoc/classes/RIO/Rio.src/M000124.html +0 -16
  224. data/doc/rdoc/classes/RIO/Rio.src/M000125.html +0 -16
  225. data/doc/rdoc/classes/RIO/Rio.src/M000126.html +0 -16
  226. data/doc/rdoc/classes/RIO/Rio.src/M000127.html +0 -16
  227. data/doc/rdoc/classes/RIO/Rio.src/M000128.html +0 -16
  228. data/doc/rdoc/classes/RIO/Rio.src/M000129.html +0 -16
  229. data/doc/rdoc/classes/RIO/Rio.src/M000130.html +0 -16
  230. data/doc/rdoc/classes/RIO/Rio.src/M000131.html +0 -16
  231. data/doc/rdoc/classes/RIO/Rio.src/M000132.html +0 -16
  232. data/doc/rdoc/classes/RIO/Rio.src/M000133.html +0 -16
  233. data/doc/rdoc/classes/RIO/Rio.src/M000134.html +0 -16
  234. data/doc/rdoc/classes/RIO/Rio.src/M000135.html +0 -16
  235. data/doc/rdoc/classes/RIO/Rio.src/M000136.html +0 -16
  236. data/doc/rdoc/classes/RIO/Rio.src/M000137.html +0 -16
  237. data/doc/rdoc/classes/RIO/Rio.src/M000138.html +0 -16
  238. data/doc/rdoc/classes/RIO/Rio.src/M000139.html +0 -16
  239. data/doc/rdoc/classes/RIO/Rio.src/M000140.html +0 -16
  240. data/doc/rdoc/classes/RIO/Rio.src/M000141.html +0 -16
  241. data/doc/rdoc/classes/RIO/Rio.src/M000142.html +0 -16
  242. data/doc/rdoc/classes/RIO/Rio.src/M000143.html +0 -16
  243. data/doc/rdoc/classes/RIO/Rio.src/M000144.html +0 -16
  244. data/doc/rdoc/classes/RIO/Rio.src/M000145.html +0 -16
  245. data/doc/rdoc/classes/RIO/Rio.src/M000146.html +0 -16
  246. data/doc/rdoc/classes/RIO/Rio.src/M000147.html +0 -16
  247. data/doc/rdoc/classes/RIO/Rio.src/M000148.html +0 -16
  248. data/doc/rdoc/classes/RIO/Rio.src/M000149.html +0 -16
  249. data/doc/rdoc/classes/RIO/Rio.src/M000150.html +0 -16
  250. data/doc/rdoc/classes/RIO/Rio.src/M000151.html +0 -16
  251. data/doc/rdoc/classes/RIO/Rio.src/M000152.html +0 -16
  252. data/doc/rdoc/classes/RIO/Rio.src/M000153.html +0 -16
  253. data/doc/rdoc/classes/RIO/Rio.src/M000154.html +0 -16
  254. data/doc/rdoc/classes/RIO/Rio.src/M000155.html +0 -16
  255. data/doc/rdoc/classes/RIO/Rio.src/M000156.html +0 -16
  256. data/doc/rdoc/classes/RIO/Rio.src/M000157.html +0 -16
  257. data/doc/rdoc/classes/RIO/Rio.src/M000158.html +0 -16
  258. data/doc/rdoc/classes/RIO/Rio.src/M000159.html +0 -16
  259. data/doc/rdoc/classes/RIO/Rio.src/M000160.html +0 -16
  260. data/doc/rdoc/classes/RIO/Rio.src/M000161.html +0 -16
  261. data/doc/rdoc/classes/RIO/Rio.src/M000162.html +0 -16
  262. data/doc/rdoc/classes/RIO/Rio.src/M000163.html +0 -16
  263. data/doc/rdoc/classes/RIO/Rio.src/M000164.html +0 -16
  264. data/doc/rdoc/classes/RIO/Rio.src/M000165.html +0 -16
  265. data/doc/rdoc/classes/RIO/Rio.src/M000166.html +0 -16
  266. data/doc/rdoc/classes/RIO/Rio.src/M000167.html +0 -16
  267. data/doc/rdoc/classes/RIO/Rio.src/M000168.html +0 -16
  268. data/doc/rdoc/classes/RIO/Rio.src/M000169.html +0 -16
  269. data/doc/rdoc/classes/RIO/Rio.src/M000170.html +0 -16
  270. data/doc/rdoc/classes/RIO/Rio.src/M000171.html +0 -16
  271. data/doc/rdoc/classes/RIO/Rio.src/M000172.html +0 -16
  272. data/doc/rdoc/classes/RIO/Rio.src/M000173.html +0 -16
  273. data/doc/rdoc/classes/RIO/Rio.src/M000174.html +0 -16
  274. data/doc/rdoc/classes/RIO/Rio.src/M000175.html +0 -16
  275. data/doc/rdoc/classes/RIO/Rio.src/M000176.html +0 -16
  276. data/doc/rdoc/classes/RIO/Rio.src/M000177.html +0 -16
  277. data/doc/rdoc/classes/RIO/Rio.src/M000178.html +0 -16
  278. data/doc/rdoc/classes/RIO/Rio.src/M000179.html +0 -16
  279. data/doc/rdoc/classes/RIO/Rio.src/M000180.html +0 -16
  280. data/doc/rdoc/classes/RIO/Rio.src/M000181.html +0 -16
  281. data/doc/rdoc/classes/RIO/Rio.src/M000182.html +0 -16
  282. data/doc/rdoc/classes/RIO/Rio.src/M000183.html +0 -16
  283. data/doc/rdoc/classes/RIO/Rio.src/M000184.html +0 -16
  284. data/doc/rdoc/classes/RIO/Rio.src/M000185.html +0 -16
  285. data/doc/rdoc/classes/RIO/Rio.src/M000186.html +0 -16
  286. data/doc/rdoc/classes/RIO/Rio.src/M000187.html +0 -16
  287. data/doc/rdoc/classes/RIO/Rio.src/M000188.html +0 -16
  288. data/doc/rdoc/classes/RIO/Rio.src/M000189.html +0 -16
  289. data/doc/rdoc/classes/RIO/Rio.src/M000190.html +0 -16
  290. data/doc/rdoc/classes/RIO/Rio.src/M000191.html +0 -16
  291. data/doc/rdoc/classes/RIO/Rio.src/M000192.html +0 -16
  292. data/doc/rdoc/classes/RIO/Rio.src/M000193.html +0 -16
  293. data/doc/rdoc/classes/RIO/Rio.src/M000194.html +0 -16
  294. data/doc/rdoc/classes/RIO/Rio.src/M000195.html +0 -16
  295. data/doc/rdoc/classes/RIO/Rio.src/M000196.html +0 -16
  296. data/doc/rdoc/classes/RIO/Rio.src/M000197.html +0 -16
  297. data/doc/rdoc/classes/RIO/Rio.src/M000198.html +0 -16
  298. data/doc/rdoc/classes/RIO/Rio.src/M000199.html +0 -16
  299. data/doc/rdoc/classes/RIO/Rio.src/M000200.html +0 -16
  300. data/doc/rdoc/classes/RIO/Rio.src/M000201.html +0 -16
  301. data/doc/rdoc/classes/RIO/Rio.src/M000202.html +0 -16
  302. data/doc/rdoc/classes/RIO/Rio.src/M000203.html +0 -16
  303. data/doc/rdoc/classes/RIO/Rio.src/M000204.html +0 -16
  304. data/doc/rdoc/classes/RIO/Rio.src/M000205.html +0 -16
  305. data/doc/rdoc/classes/RIO/Rio.src/M000206.html +0 -16
  306. data/doc/rdoc/classes/RIO/Rio.src/M000207.html +0 -16
  307. data/doc/rdoc/classes/RIO/Rio.src/M000208.html +0 -16
  308. data/doc/rdoc/classes/RIO/Rio.src/M000209.html +0 -16
  309. data/doc/rdoc/classes/RIO/Rio.src/M000210.html +0 -16
  310. data/doc/rdoc/classes/RIO/Rio.src/M000211.html +0 -16
  311. data/doc/rdoc/classes/RIO/Rio.src/M000212.html +0 -16
  312. data/doc/rdoc/classes/RIO/Rio.src/M000213.html +0 -16
  313. data/doc/rdoc/created.rid +0 -1
  314. data/doc/rdoc/files/README.html +0 -243
  315. data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -142
  316. data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -135
  317. data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -135
  318. data/doc/rdoc/files/lib/rio/doc/MISC_rb.html +0 -135
  319. data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -135
  320. data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -135
  321. data/doc/rdoc/files/lib/rio/if/csv_rb.html +0 -135
  322. data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -135
  323. data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -135
  324. data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -135
  325. data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +0 -135
  326. data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -135
  327. data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +0 -135
  328. data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -135
  329. data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -135
  330. data/doc/rdoc/files/lib/rio/if/stream_rb.html +0 -135
  331. data/doc/rdoc/files/lib/rio/if/string_rb.html +0 -135
  332. data/doc/rdoc/files/lib/rio/if/temp_rb.html +0 -135
  333. data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -135
  334. data/doc/rdoc/files/lib/rio/if/yaml_rb.html +0 -135
  335. data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
  336. data/doc/rdoc/files/lib/rio_rb.html +0 -154
  337. data/doc/rdoc/fr_class_index.html +0 -37
  338. data/doc/rdoc/fr_file_index.html +0 -49
  339. data/doc/rdoc/fr_method_index.html +0 -241
  340. data/doc/rdoc/index.html +0 -24
  341. data/doc/rdoc/rdoc-style.css +0 -384
  342. data/test/methods/path.rb +0 -12
data/test/tc/nolines.rb CHANGED
@@ -13,8 +13,7 @@ class TC_RIO_skiplines < Test::Unit::TestCase
13
13
  def assert!(a,msg="negative assertion")
14
14
  assert((!(a)),msg)
15
15
  end
16
- require 'extensions/symbol'
17
- def smap(a) a.map( &:to_s ) end
16
+ def smap(a) a.map { |el| el.to_s } end
18
17
  def mkafile(*args)
19
18
  file = rio(*args)
20
19
  file < (0..1).map { |i| "L#{i}:#{file.to_s}\n" }
@@ -45,10 +44,10 @@ class TC_RIO_skiplines < Test::Unit::TestCase
45
44
 
46
45
  exp = lines[0..0] + lines[2..5] + lines[7...8]
47
46
  ans = file.chomp.skiplines[:empty?]
48
- assert_equal(exp.map(&:chomp),ans)
47
+ assert_equal(exp.map{|el| el.chomp},ans)
49
48
 
50
49
  ans = file.skiplines(:empty?).chomp.to_a
51
- assert_equal(exp.map(&:chomp),ans)
50
+ assert_equal(exp.map{|el| el.chomp},ans)
52
51
 
53
52
  file.close
54
53
  rio('..').chdir
data/test/tc/noqae.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  class TC_RIO_noqae < Test::Unit::TestCase
13
10
  @@tdir = rio(%w/qp noqae/)
@@ -19,7 +16,7 @@ class TC_RIO_noqae < Test::Unit::TestCase
19
16
  def assert!(a,msg="negative assertion")
20
17
  assert((!(a)),msg)
21
18
  end
22
- def smap(a) a.map( &:to_s ) end
19
+ def smap(a) a.map{|el| el.to_s} end
23
20
  def setup
24
21
  s_dir = ''
25
22
  #$trace_states = true
data/test/tc/pa.rb CHANGED
@@ -7,9 +7,8 @@ end
7
7
  require 'rio'
8
8
  require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
10
 
12
- def smap(a) a.map( &:to_s ) end
11
+ def smap(a) a.map { |el| el.to_s } end
13
12
 
14
13
  class TC_RIO_pa < Test::Unit::TestCase
15
14
  def test_pa
data/test/tc/pathop.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
 
13
10
  class TC_pathop < Test::RIO::TestCase
data/test/tc/paths.rb CHANGED
@@ -8,9 +8,7 @@ require 'test/unit'
8
8
  require 'test/unit/testsuite'
9
9
 
10
10
  class TC_RIO_paths < Test::Unit::TestCase
11
- require 'extensions/symbol'
12
- def pa(a) p a.map( &:to_s ) end
13
- def smap(a) a.map( &:to_s ) end
11
+ def smap(a) a.map { |el| el.to_s } end
14
12
  def pmap(a)
15
13
  a.sort
16
14
  end
data/test/tc/qae.rb CHANGED
@@ -7,13 +7,12 @@ end
7
7
  require 'rio'
8
8
  require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
10
 
12
11
  class TC_RIO_qae < Test::Unit::TestCase
13
12
  @@tdir = rio(%w/qp qae/)
14
13
  @@once = false
15
14
 
16
- def smap(a) a.map( &:to_s ) end
15
+ def smap(a) a.map { |el| el.to_s } end
17
16
  def setup
18
17
  s_dir = ''
19
18
  #$trace_states = true
@@ -7,12 +7,11 @@ end
7
7
  require 'rio'
8
8
  require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
10
 
12
11
  class TC_RIO_qae_riovar < Test::Unit::TestCase
13
12
  @@tdir = rio(%w/qp qae/)
14
13
  @@once = false
15
- def smap(a) a.map( &:to_s ) end
14
+ def smap(a) a.map { |el| el.to_s } end
16
15
  def self.once()
17
16
  @@tdir.rmtree.mkpath.chdir do
18
17
  rio('d0').mkpath.chdir {
data/test/tc/records.rb CHANGED
@@ -9,11 +9,10 @@ require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
10
 
11
11
  class TC_RIO_records < Test::Unit::TestCase
12
- require 'extensions/symbol'
13
12
  def assert!(a,msg="negative assertion")
14
13
  assert((!(a)),msg)
15
14
  end
16
- def smap(a) a.map( &:to_s ) end
15
+ def smap(a) a.map { |el| el.to_s } end
17
16
  def tdir() rio(%w/qp records/) end
18
17
  def mkafile(*args)
19
18
  file = rio(*args)
data/test/tc/rename.rb CHANGED
@@ -5,10 +5,8 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
9
+
12
10
  class TC_rename < Test::RIO::TestCase
13
11
  @@once = false
14
12
  def self.once
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  class TC_rename_assign < Test::RIO::TestCase
13
10
  @@once = false
data/test/tc/riorl.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  require 'tmpdir'
13
10
 
@@ -39,21 +36,36 @@ class TC_riorl < Test::RIO::TestCase
39
36
  printf(fmt, pi[:scheme].inspect,pi[:opaque].inspect,pi[:path].inspect,
40
37
  pi[:fspath].inspect,pi[:to_s].inspect,pi[:to_url].inspect)
41
38
  end
42
- def mkrios1()
39
+ def mkrioinfo(astring)
40
+ rinfo = mksyminfo(astring)
41
+ rinfo[?-] = rinfo[:stdio]
42
+ rinfo[?=] = rinfo[:stderr]
43
+ rinfo[??] = rinfo[:temp]
44
+ rinfo[?"] = rinfo[:strio]
45
+ rinfo[?_] = rinfo[:sysio]
46
+ rinfo[?`] = rinfo[:cmdio]
47
+ rinfo[?#] = rinfo[:fd]
48
+ rinfo
49
+ end
50
+
51
+ def mksyminfo(astring)
43
52
  rinfo = {
44
- ?- => ['stdio',"",nil,nil,"stdio:","stdio:"],
45
- ?= => ['stderr',"",nil,nil,"stderr:","stderr:"],
46
- # ?" => ['strio',"",nil,nil,"strio:","strio:"],
47
- ?? => ['temp',@tmppath,nil,nil,"temp:#{@tmppath}","temp:#{@tmppath}"],
53
+ :stdio => ['stdio',"",nil,nil,"stdio:","stdio:"],
54
+ :stderr => ['stderr',"",nil,nil,"stderr:","stderr:"],
55
+ :temp => ['temp',@tmppath,nil,nil,"temp:#{@tmppath}","temp:#{@tmppath}"],
48
56
  }
49
- astring = ""
50
57
  strpq = sprintf("0x%08x",astring.object_id)
51
- rinfo[?"] = ['strio',strpq,nil,nil,"strio:#{strpq}","strio:#{strpq}"]
58
+ rinfo[:strio] = ['strio',strpq,nil,nil,"strio:#{strpq}","strio:#{strpq}"]
52
59
 
53
60
  siopq = sprintf("0x%08x",$stdout.object_id)
54
- rinfo[?_] = ['sysio',siopq,nil,nil,"sysio:#{siopq}","sysio:#{siopq}"]
55
- rinfo[?`] = ['cmdio','echo%20x',nil,nil,'echo x','cmdio:echo%20x']
56
- rinfo[?#] = ['fd','1',nil,nil,'fd:1','fd:1']
61
+ rinfo[:sysio] = ['sysio',siopq,nil,nil,"sysio:#{siopq}","sysio:#{siopq}"]
62
+ rinfo[:cmdio] = ['cmdio','echo%20x',nil,nil,'echo x','cmdio:echo%20x']
63
+ rinfo[:fd] = ['fd','1',nil,nil,'fd:1','fd:1']
64
+ rinfo
65
+ end
66
+
67
+ def mkrios1()
68
+ rinfo = mkrioinfo(astring="")
57
69
  rios = {
58
70
  ?- => rio(?-),
59
71
  ?= => rio(?=),
@@ -65,48 +77,50 @@ class TC_riorl < Test::RIO::TestCase
65
77
  }
66
78
  [rios,rinfo]
67
79
  end
80
+
68
81
  def mkrios_sym
69
- rinfo = {
70
- :stdio => ['stdio',"",nil,nil,"stdio:","stdio:"],
71
- :stderr => ['stderr',"",nil,nil,"stderr:","stderr:"],
72
- #:strio => ['strio',"",nil,nil,"strio:","strio:"],
73
- :temp => ['temp',@tmppath,nil,nil,"temp:#{@tmppath}","temp:#{@tmppath}"],
74
- }
75
- astring = ""
76
- strpq = sprintf("0x%08x",astring.object_id)
77
- rinfo[:strio] = ['strio',strpq,nil,nil,"strio:#{strpq}","strio:#{strpq}"]
82
+ rinfo = mksyminfo(astring="")
78
83
 
79
- siopq = sprintf("0x%08x",$stdout.object_id)
80
- rinfo[:sysio] = ['sysio',siopq,nil,nil,"sysio:#{siopq}","sysio:#{siopq}"]
81
- rinfo[:cmdio] = ['cmdio','echo%20x',nil,nil,'echo x','cmdio:echo%20x']
82
- rinfo[:fd] = ['fd','1',nil,nil,'fd:1','fd:1']
83
84
  rios = {
84
85
  :stdio => rio(:stdio),
85
86
  :stderr => rio(:stderr),
86
87
  :strio => rio(:strio,astring),
87
88
  :temp => rio(:temp),
88
- :sysio => rio($stdout),
89
- :cmdio => rio(?`,'echo x'),
90
- :fd => rio(?#,1),
89
+ :sysio => rio(:sysio,$stdout),
90
+ :cmdio => rio(:cmdio,'echo x'),
91
+ :fd => rio(:fd,1),
91
92
  }
93
+
92
94
  [rios,rinfo]
93
95
  end
94
- def mkrios2()
95
- rinfo = {
96
- ?- => ['stdout',/^$/,nil,nil,/^stdout:$/,/^stdout:$/],
97
- ?? => ['file',%r|//#{@tmppath}\d+\.\d+|,%r|#{@tmppath}\d+\.\d+|,%r|#{@tmppath}\d+\.\d+|,/#{@tmppath}\d+\.\d+/,/#{@tmppath}\d+\.\d+/],
96
+ def mkrios_modfunc
97
+ rinfo = mksyminfo(astring="")
98
+ rios = {
99
+ :stdio => RIO.stdio,
100
+ :stderr => RIO.stderr,
101
+ :strio => RIO.strio(astring),
102
+ :temp => RIO.temp,
103
+ :sysio => RIO.sysio($stdout),
104
+ :cmdio => RIO.cmdio('echo x'),
105
+ :fd => RIO.fd(1),
98
106
  }
99
- siopq = sprintf("0x%08x",$stdout.object_id)
107
+ [rios,rinfo]
108
+ end
109
+ def mkrios_classmeth
110
+ rinfo = mksyminfo(astring="")
100
111
  rios = {
101
- ?- => rio(?-).print("."),
102
- ?? => rio(??).puts("hw"),
112
+ :stdio => RIO::Rio.stdio,
113
+ :stderr => RIO::Rio.stderr,
114
+ :strio => RIO::Rio.strio(astring),
115
+ :temp => RIO::Rio.temp,
116
+ :sysio => RIO::Rio.sysio($stdout),
117
+ :cmdio => RIO::Rio.cmdio('echo x'),
118
+ :fd => RIO::Rio.fd(1),
103
119
  }
104
120
  [rios,rinfo]
105
121
  end
106
- def test_specialpaths
107
- fmt = "%-12s %-12s %-8s %-8s %-20s %-20s\n"
122
+ def check_rios(rios,rinfo,fmt="%-12s %-12s %-8s %-8s %-20s %-20s\n")
108
123
  #printf(fmt,'scheme','opaque','path','fspath','to_s','url')
109
- rios,rinfo = mkrios1()
110
124
  rios.each do |k,r|
111
125
  #pinfo(fmt,pathinfo(r))
112
126
  assert_equal(rinfo[k][0],r.scheme)
@@ -117,25 +131,41 @@ class TC_riorl < Test::RIO::TestCase
117
131
  assert_equal(rinfo[k][5],r.to_url)
118
132
  end
119
133
  end
134
+ def test_specialpaths
135
+ rios,rinfo = mkrios1()
136
+ check_rios(rios,rinfo)
137
+ end
138
+
120
139
  def test_specialpaths_sym
121
- fmt = "%-12s %-12s %-8s %-8s %-20s %-20s\n"
122
- #printf(fmt,'scheme','opaque','path','fspath','to_s','url')
123
140
  rios,rinfo = mkrios_sym()
124
- rios.each do |k,r|
125
- #pinfo(fmt,pathinfo(r))
126
- assert_equal(rinfo[k][0],r.scheme)
127
- assert_equal(rinfo[k][1],r.opaque)
128
- assert_equal(rinfo[k][2],r.path)
129
- assert_equal(rinfo[k][3],r.fspath)
130
- assert_equal(rinfo[k][4],r.to_s)
131
- assert_equal(rinfo[k][5],r.to_url)
132
- end
141
+ check_rios(rios,rinfo)
142
+ end
143
+ def test_specialpaths_modfunc
144
+ rios,rinfo = mkrios_modfunc()
145
+ check_rios(rios,rinfo)
146
+ end
147
+ def test_specialpaths_classmeth
148
+ rios,rinfo = mkrios_classmeth()
149
+ check_rios(rios,rinfo)
133
150
  end
134
151
 
135
- def test_specialpaths_op
152
+ def mkrios_open()
153
+ rinfo = {
154
+ ?- => ['stdout',/^$/,nil,nil,/^stdout:$/,/^stdout:$/],
155
+ ?? => ['file',%r|//#{@tmppath}\d+\.\d+|,%r|#{@tmppath}\d+\.\d+|,%r|#{@tmppath}\d+\.\d+|,
156
+ /#{@tmppath}\d+\.\d+/,/#{@tmppath}\d+\.\d+/],
157
+ }
158
+ siopq = sprintf("0x%08x",$stdout.object_id)
159
+ rios = {
160
+ ?- => rio(?-).print("."),
161
+ ?? => rio(??).puts("hw"),
162
+ }
163
+ [rios,rinfo]
164
+ end
165
+ def test_specialpaths_open
136
166
  fmt = "%-12s %-12s %-8s %-8s %-20s %-20s\n"
137
167
  #printf(fmt,'scheme','opaque','path','fspath','to_s','url')
138
- rios,rinfo = mkrios2()
168
+ rios,rinfo = mkrios_open()
139
169
  rios.each do |k,r|
140
170
  #pinfo(fmt,pathinfo(r))
141
171
  assert_equal(rinfo[k][0],r.scheme)
data/test/tc/selnosel.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  require 'tmpdir'
13
10
 
data/test/tc/sub.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  class TC_sub < Test::RIO::TestCase
13
10
  @@once = false
data/test/tc/symlink.rb CHANGED
@@ -9,11 +9,10 @@ require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
10
 
11
11
  class TC_RIO_symlink < Test::Unit::TestCase
12
- require 'extensions/symbol'
13
12
  def assert!(a,msg="negative assertion")
14
13
  assert((!(a)),msg)
15
14
  end
16
- def smap(a) a.map( &:to_s ) end
15
+ def smap(a) a.map { |el| el.to_s } end
17
16
  def tdir() rio(%w/qp symlink/) end
18
17
  def mkafile(*args)
19
18
  file = rio(*args)
data/test/tc/symlink0.rb CHANGED
@@ -9,11 +9,10 @@ require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
10
 
11
11
  class TC_RIO_symlink0 < Test::Unit::TestCase
12
- require 'extensions/symbol'
13
12
  def assert!(a,msg="negative assertion")
14
13
  assert((!(a)),msg)
15
14
  end
16
- def smap(a) a.map( &:to_s ) end
15
+ def smap(a) a.map { |el| el.to_s } end
17
16
  def tdir() rio(%w/qp symlink0/) end
18
17
  def mkafile(*args)
19
18
  file = rio(*args)
data/test/tc/symlink1.rb CHANGED
@@ -9,11 +9,10 @@ require 'test/unit'
9
9
  require 'test/unit/testsuite'
10
10
 
11
11
  class TC_RIO_symlink1 < Test::Unit::TestCase
12
- require 'extensions/symbol'
13
12
  def assert!(a,msg="negative assertion")
14
13
  assert((!(a)),msg)
15
14
  end
16
- def smap(a) a.map( &:to_s ) end
15
+ def smap(a) a.map { |el| el.to_s } end
17
16
  def tdir() rio(%w/qp symlink1/) end
18
17
  def mkafile(*args)
19
18
  file = rio(*args)
data/test/tc/temp.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  require 'tmpdir'
13
10
 
data/test/tc/tempdir.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  require 'tmpdir'
13
10
 
data/test/tc/tempfile.rb CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
5
5
  end
6
6
 
7
7
  require 'rio'
8
- require 'test/unit'
9
- require 'test/unit/testsuite'
10
- require 'extensions/symbol'
11
8
  require 'tc/testcase'
12
9
  require 'tmpdir'
13
10
 
data/test/tc/testcase.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rio'
2
2
  require 'test/unit'
3
3
  require 'test/unit/testsuite'
4
- require 'extensions/symbol'
4
+
5
5
 
6
6
 
7
7
  module RIOSupport
@@ -48,7 +48,7 @@ module RIO_TestCase
48
48
  def assert_array_equal(a,b,msg="array same regardless of order")
49
49
  assert_equal(smap(a).sort,smap(b).sort,msg)
50
50
  end
51
- def smap(a) a.map( &:to_s ) end
51
+ def smap(a) a.map { |el| el.to_s } end
52
52
  def mkafile(*args)
53
53
  file = rio(*args)
54
54
  file < (0..1).map { |i| "L#{i}:#{file.to_s}\n" }
@@ -103,7 +103,13 @@ module Test
103
103
  assert((!(a)),msg)
104
104
  end
105
105
  def assert_array_equal(a,b,msg="array same regardless of order")
106
- assert_equal(smap(a).sort,smap(b).sort,msg)
106
+ if a.nil?
107
+ assert_nil(b)
108
+ elsif b.nil?
109
+ assert_nil(a)
110
+ else
111
+ assert_equal(smap(a).sort,smap(b).sort,msg)
112
+ end
107
113
  end
108
114
  def assert_dirs_equal(exp,d,msg="")
109
115
  exp.each do |ent|
@@ -130,7 +136,6 @@ module Test
130
136
  end
131
137
  end
132
138
 
133
- def smap(a) a.map( &:to_s ) end
134
139
  def self.make_lines_file(n_lines=8,*args)
135
140
  file = rio(*args)
136
141
  lines = (0...n_lines).map { |i| "L#{i}:#{file}" + $/ }