rio 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. data/COPYING +1 -0
  2. data/README +11 -9
  3. data/Rakefile +1 -1
  4. data/doc/#RIOIS# +216 -0
  5. data/doc/ANNOUNCE +22 -16
  6. data/doc/RELEASE_NOTES +14 -7
  7. data/lib/rio/doc/EXAMPLES.rb +2 -2
  8. data/lib/rio/doc/INTRO.rb +0 -2
  9. data/lib/rio/doc/OPTIONAL.rb +1 -1
  10. data/lib/rio/doc/SYNOPSIS.rb +1 -1
  11. data/lib/rio/factory.rb +1 -0
  12. data/lib/rio/ftp/fs.rb +2 -1
  13. data/lib/rio/ftp/ftpfile.rb +20 -20
  14. data/lib/rio/if/grande.rb +16 -10
  15. data/lib/rio/if/test.rb +1 -1
  16. data/lib/rio/ops/construct.rb +13 -12
  17. data/lib/rio/ops/dir.rb +2 -1
  18. data/lib/rio/rl/fs2url.rb +2 -2
  19. data/lib/rio/rl/path.rb +1 -0
  20. data/lib/rio/rl/uri.rb +4 -0
  21. data/lib/rio/rl/withpath.rb +1 -0
  22. data/lib/rio/scheme/ftp.rb +46 -3
  23. data/lib/rio/uri/file.rb +16 -6
  24. data/lib/rio/version.rb +1 -1
  25. data/test/ftp/anon_copy_data.rb +36 -0
  26. data/test/ftp/testdef.rb +5 -4
  27. data/test/http/all.rb +1 -0
  28. data/test/http/copy-from-http.rb +2 -1
  29. data/test/http/uri-meta.rb +72 -0
  30. data/test/lib/temp_server.rb +3 -1
  31. data/test/runalltests.rb +2 -2
  32. data/test/runftptests.rb +1 -1
  33. data/test/runhttp.rb +1 -2
  34. metadata +5 -312
  35. data/doc/rdoc/classes/Kernel.html +0 -133
  36. data/doc/rdoc/classes/Kernel.src/M000233.html +0 -18
  37. data/doc/rdoc/classes/RIO.html +0 -625
  38. data/doc/rdoc/classes/RIO.src/M000001.html +0 -18
  39. data/doc/rdoc/classes/RIO.src/M000002.html +0 -18
  40. data/doc/rdoc/classes/RIO.src/M000003.html +0 -18
  41. data/doc/rdoc/classes/RIO/Doc.html +0 -148
  42. data/doc/rdoc/classes/RIO/Doc/EXAMPLES.html +0 -432
  43. data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1075
  44. data/doc/rdoc/classes/RIO/Doc/INDEX.html +0 -368
  45. data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1533
  46. data/doc/rdoc/classes/RIO/Doc/OPTIONAL.html +0 -221
  47. data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -337
  48. data/doc/rdoc/classes/RIO/IF.html +0 -165
  49. data/doc/rdoc/classes/RIO/IF/CSV.html +0 -203
  50. data/doc/rdoc/classes/RIO/IF/CSV.src/M000116.html +0 -19
  51. data/doc/rdoc/classes/RIO/IF/CSV.src/M000117.html +0 -16
  52. data/doc/rdoc/classes/RIO/IF/CSV.src/M000118.html +0 -16
  53. data/doc/rdoc/classes/RIO/IF/Dir.html +0 -343
  54. data/doc/rdoc/classes/RIO/IF/Dir.src/M000045.html +0 -16
  55. data/doc/rdoc/classes/RIO/IF/Dir.src/M000046.html +0 -16
  56. data/doc/rdoc/classes/RIO/IF/Dir.src/M000047.html +0 -16
  57. data/doc/rdoc/classes/RIO/IF/Dir.src/M000048.html +0 -16
  58. data/doc/rdoc/classes/RIO/IF/Dir.src/M000049.html +0 -16
  59. data/doc/rdoc/classes/RIO/IF/Dir.src/M000050.html +0 -16
  60. data/doc/rdoc/classes/RIO/IF/Dir.src/M000051.html +0 -16
  61. data/doc/rdoc/classes/RIO/IF/File.html +0 -223
  62. data/doc/rdoc/classes/RIO/IF/File.src/M000212.html +0 -16
  63. data/doc/rdoc/classes/RIO/IF/File.src/M000213.html +0 -16
  64. data/doc/rdoc/classes/RIO/IF/File.src/M000214.html +0 -16
  65. data/doc/rdoc/classes/RIO/IF/File.src/M000215.html +0 -16
  66. data/doc/rdoc/classes/RIO/IF/FileOrDir.html +0 -572
  67. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000155.html +0 -16
  68. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000156.html +0 -16
  69. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000157.html +0 -16
  70. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000158.html +0 -16
  71. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000159.html +0 -16
  72. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000160.html +0 -16
  73. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000161.html +0 -16
  74. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000162.html +0 -16
  75. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000163.html +0 -16
  76. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000164.html +0 -16
  77. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000165.html +0 -16
  78. data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000166.html +0 -16
  79. data/doc/rdoc/classes/RIO/IF/Grande.html +0 -1349
  80. data/doc/rdoc/classes/RIO/IF/Grande.src/M000088.html +0 -16
  81. data/doc/rdoc/classes/RIO/IF/Grande.src/M000089.html +0 -16
  82. data/doc/rdoc/classes/RIO/IF/Grande.src/M000090.html +0 -16
  83. data/doc/rdoc/classes/RIO/IF/Grande.src/M000091.html +0 -16
  84. data/doc/rdoc/classes/RIO/IF/Grande.src/M000092.html +0 -16
  85. data/doc/rdoc/classes/RIO/IF/Grande.src/M000093.html +0 -21
  86. data/doc/rdoc/classes/RIO/IF/Grande.src/M000094.html +0 -16
  87. data/doc/rdoc/classes/RIO/IF/Grande.src/M000095.html +0 -16
  88. data/doc/rdoc/classes/RIO/IF/Grande.src/M000096.html +0 -16
  89. data/doc/rdoc/classes/RIO/IF/Grande.src/M000097.html +0 -16
  90. data/doc/rdoc/classes/RIO/IF/Grande.src/M000098.html +0 -16
  91. data/doc/rdoc/classes/RIO/IF/Grande.src/M000099.html +0 -16
  92. data/doc/rdoc/classes/RIO/IF/Grande.src/M000100.html +0 -21
  93. data/doc/rdoc/classes/RIO/IF/Grande.src/M000101.html +0 -16
  94. data/doc/rdoc/classes/RIO/IF/Grande.src/M000102.html +0 -16
  95. data/doc/rdoc/classes/RIO/IF/Grande.src/M000103.html +0 -16
  96. data/doc/rdoc/classes/RIO/IF/Grande.src/M000104.html +0 -16
  97. data/doc/rdoc/classes/RIO/IF/Grande.src/M000105.html +0 -16
  98. data/doc/rdoc/classes/RIO/IF/GrandeEntry.html +0 -810
  99. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000106.html +0 -16
  100. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000107.html +0 -16
  101. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000108.html +0 -16
  102. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000109.html +0 -16
  103. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000110.html +0 -16
  104. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000111.html +0 -16
  105. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000112.html +0 -16
  106. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000113.html +0 -16
  107. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000114.html +0 -16
  108. data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000115.html +0 -16
  109. data/doc/rdoc/classes/RIO/IF/GrandeStream.html +0 -1513
  110. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000052.html +0 -16
  111. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000053.html +0 -16
  112. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000054.html +0 -16
  113. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000055.html +0 -16
  114. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000056.html +0 -16
  115. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000057.html +0 -16
  116. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000058.html +0 -16
  117. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000059.html +0 -16
  118. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000060.html +0 -16
  119. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000061.html +0 -16
  120. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000062.html +0 -16
  121. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000063.html +0 -16
  122. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000064.html +0 -16
  123. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000065.html +0 -16
  124. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000066.html +0 -16
  125. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000067.html +0 -16
  126. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000068.html +0 -19
  127. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000069.html +0 -16
  128. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000070.html +0 -16
  129. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000071.html +0 -16
  130. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000072.html +0 -16
  131. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000073.html +0 -16
  132. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000074.html +0 -16
  133. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000075.html +0 -16
  134. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000076.html +0 -16
  135. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000077.html +0 -16
  136. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000078.html +0 -16
  137. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000079.html +0 -16
  138. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000080.html +0 -16
  139. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000081.html +0 -16
  140. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000082.html +0 -16
  141. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000083.html +0 -16
  142. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000084.html +0 -16
  143. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000085.html +0 -16
  144. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000086.html +0 -16
  145. data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000087.html +0 -16
  146. data/doc/rdoc/classes/RIO/IF/Path.html +0 -999
  147. data/doc/rdoc/classes/RIO/IF/Path.src/M000180.html +0 -16
  148. data/doc/rdoc/classes/RIO/IF/Path.src/M000181.html +0 -16
  149. data/doc/rdoc/classes/RIO/IF/Path.src/M000182.html +0 -16
  150. data/doc/rdoc/classes/RIO/IF/Path.src/M000183.html +0 -16
  151. data/doc/rdoc/classes/RIO/IF/Path.src/M000184.html +0 -16
  152. data/doc/rdoc/classes/RIO/IF/Path.src/M000185.html +0 -16
  153. data/doc/rdoc/classes/RIO/IF/Path.src/M000186.html +0 -16
  154. data/doc/rdoc/classes/RIO/IF/Path.src/M000187.html +0 -16
  155. data/doc/rdoc/classes/RIO/IF/Path.src/M000188.html +0 -16
  156. data/doc/rdoc/classes/RIO/IF/Path.src/M000189.html +0 -16
  157. data/doc/rdoc/classes/RIO/IF/Path.src/M000190.html +0 -16
  158. data/doc/rdoc/classes/RIO/IF/Path.src/M000191.html +0 -16
  159. data/doc/rdoc/classes/RIO/IF/Path.src/M000192.html +0 -16
  160. data/doc/rdoc/classes/RIO/IF/Path.src/M000193.html +0 -16
  161. data/doc/rdoc/classes/RIO/IF/Path.src/M000194.html +0 -16
  162. data/doc/rdoc/classes/RIO/IF/Path.src/M000195.html +0 -16
  163. data/doc/rdoc/classes/RIO/IF/Path.src/M000196.html +0 -16
  164. data/doc/rdoc/classes/RIO/IF/Path.src/M000197.html +0 -16
  165. data/doc/rdoc/classes/RIO/IF/Path.src/M000198.html +0 -16
  166. data/doc/rdoc/classes/RIO/IF/Path.src/M000199.html +0 -16
  167. data/doc/rdoc/classes/RIO/IF/Path.src/M000200.html +0 -16
  168. data/doc/rdoc/classes/RIO/IF/Path.src/M000201.html +0 -16
  169. data/doc/rdoc/classes/RIO/IF/Path.src/M000202.html +0 -18
  170. data/doc/rdoc/classes/RIO/IF/Path.src/M000203.html +0 -16
  171. data/doc/rdoc/classes/RIO/IF/Path.src/M000204.html +0 -16
  172. data/doc/rdoc/classes/RIO/IF/Path.src/M000205.html +0 -16
  173. data/doc/rdoc/classes/RIO/IF/Path.src/M000206.html +0 -16
  174. data/doc/rdoc/classes/RIO/IF/Path.src/M000207.html +0 -16
  175. data/doc/rdoc/classes/RIO/IF/Path.src/M000208.html +0 -16
  176. data/doc/rdoc/classes/RIO/IF/Path.src/M000209.html +0 -16
  177. data/doc/rdoc/classes/RIO/IF/Path.src/M000210.html +0 -16
  178. data/doc/rdoc/classes/RIO/IF/Path.src/M000211.html +0 -16
  179. data/doc/rdoc/classes/RIO/IF/RubyIO.html +0 -1414
  180. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000004.html +0 -16
  181. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000005.html +0 -16
  182. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000006.html +0 -16
  183. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000007.html +0 -16
  184. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000008.html +0 -16
  185. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000009.html +0 -16
  186. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000010.html +0 -16
  187. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000011.html +0 -16
  188. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000012.html +0 -16
  189. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000013.html +0 -16
  190. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000014.html +0 -16
  191. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000015.html +0 -16
  192. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000016.html +0 -16
  193. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000017.html +0 -16
  194. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000018.html +0 -16
  195. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000019.html +0 -16
  196. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000020.html +0 -16
  197. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000021.html +0 -16
  198. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000022.html +0 -16
  199. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000023.html +0 -16
  200. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000024.html +0 -16
  201. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000025.html +0 -16
  202. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000026.html +0 -16
  203. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000027.html +0 -16
  204. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000028.html +0 -16
  205. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000029.html +0 -16
  206. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000030.html +0 -16
  207. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000031.html +0 -16
  208. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000032.html +0 -16
  209. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000033.html +0 -16
  210. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000034.html +0 -16
  211. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000035.html +0 -16
  212. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000036.html +0 -16
  213. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000037.html +0 -16
  214. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000038.html +0 -16
  215. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000039.html +0 -16
  216. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000040.html +0 -16
  217. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000041.html +0 -16
  218. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000042.html +0 -16
  219. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000043.html +0 -16
  220. data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000044.html +0 -16
  221. data/doc/rdoc/classes/RIO/IF/String.html +0 -203
  222. data/doc/rdoc/classes/RIO/IF/String.src/M000216.html +0 -16
  223. data/doc/rdoc/classes/RIO/IF/String.src/M000217.html +0 -16
  224. data/doc/rdoc/classes/RIO/IF/String.src/M000218.html +0 -16
  225. data/doc/rdoc/classes/RIO/IF/Test.html +0 -990
  226. data/doc/rdoc/classes/RIO/IF/Test.src/M000119.html +0 -16
  227. data/doc/rdoc/classes/RIO/IF/Test.src/M000120.html +0 -16
  228. data/doc/rdoc/classes/RIO/IF/Test.src/M000121.html +0 -16
  229. data/doc/rdoc/classes/RIO/IF/Test.src/M000122.html +0 -16
  230. data/doc/rdoc/classes/RIO/IF/Test.src/M000123.html +0 -16
  231. data/doc/rdoc/classes/RIO/IF/Test.src/M000124.html +0 -16
  232. data/doc/rdoc/classes/RIO/IF/Test.src/M000125.html +0 -16
  233. data/doc/rdoc/classes/RIO/IF/Test.src/M000126.html +0 -16
  234. data/doc/rdoc/classes/RIO/IF/Test.src/M000127.html +0 -16
  235. data/doc/rdoc/classes/RIO/IF/Test.src/M000128.html +0 -16
  236. data/doc/rdoc/classes/RIO/IF/Test.src/M000129.html +0 -16
  237. data/doc/rdoc/classes/RIO/IF/Test.src/M000130.html +0 -16
  238. data/doc/rdoc/classes/RIO/IF/Test.src/M000131.html +0 -16
  239. data/doc/rdoc/classes/RIO/IF/Test.src/M000132.html +0 -16
  240. data/doc/rdoc/classes/RIO/IF/Test.src/M000133.html +0 -16
  241. data/doc/rdoc/classes/RIO/IF/Test.src/M000134.html +0 -16
  242. data/doc/rdoc/classes/RIO/IF/Test.src/M000135.html +0 -16
  243. data/doc/rdoc/classes/RIO/IF/Test.src/M000136.html +0 -16
  244. data/doc/rdoc/classes/RIO/IF/Test.src/M000137.html +0 -16
  245. data/doc/rdoc/classes/RIO/IF/Test.src/M000138.html +0 -16
  246. data/doc/rdoc/classes/RIO/IF/Test.src/M000139.html +0 -16
  247. data/doc/rdoc/classes/RIO/IF/Test.src/M000140.html +0 -16
  248. data/doc/rdoc/classes/RIO/IF/Test.src/M000141.html +0 -16
  249. data/doc/rdoc/classes/RIO/IF/Test.src/M000142.html +0 -16
  250. data/doc/rdoc/classes/RIO/IF/Test.src/M000143.html +0 -16
  251. data/doc/rdoc/classes/RIO/IF/Test.src/M000144.html +0 -16
  252. data/doc/rdoc/classes/RIO/IF/Test.src/M000145.html +0 -16
  253. data/doc/rdoc/classes/RIO/IF/Test.src/M000146.html +0 -16
  254. data/doc/rdoc/classes/RIO/IF/Test.src/M000147.html +0 -16
  255. data/doc/rdoc/classes/RIO/IF/Test.src/M000148.html +0 -16
  256. data/doc/rdoc/classes/RIO/IF/Test.src/M000149.html +0 -16
  257. data/doc/rdoc/classes/RIO/IF/Test.src/M000150.html +0 -16
  258. data/doc/rdoc/classes/RIO/IF/Test.src/M000151.html +0 -16
  259. data/doc/rdoc/classes/RIO/IF/Test.src/M000152.html +0 -16
  260. data/doc/rdoc/classes/RIO/IF/Test.src/M000153.html +0 -16
  261. data/doc/rdoc/classes/RIO/IF/Test.src/M000154.html +0 -16
  262. data/doc/rdoc/classes/RIO/IF/YAML.html +0 -517
  263. data/doc/rdoc/classes/RIO/IF/YAML.src/M000167.html +0 -19
  264. data/doc/rdoc/classes/RIO/IF/YAML.src/M000168.html +0 -16
  265. data/doc/rdoc/classes/RIO/IF/YAML.src/M000169.html +0 -16
  266. data/doc/rdoc/classes/RIO/IF/YAML.src/M000170.html +0 -16
  267. data/doc/rdoc/classes/RIO/IF/YAML.src/M000171.html +0 -16
  268. data/doc/rdoc/classes/RIO/IF/YAML.src/M000172.html +0 -16
  269. data/doc/rdoc/classes/RIO/IF/YAML.src/M000173.html +0 -16
  270. data/doc/rdoc/classes/RIO/IF/YAML.src/M000174.html +0 -16
  271. data/doc/rdoc/classes/RIO/IF/YAML.src/M000175.html +0 -16
  272. data/doc/rdoc/classes/RIO/IF/YAML.src/M000176.html +0 -16
  273. data/doc/rdoc/classes/RIO/IF/YAML.src/M000177.html +0 -16
  274. data/doc/rdoc/classes/RIO/IF/YAML.src/M000178.html +0 -16
  275. data/doc/rdoc/classes/RIO/IF/YAML.src/M000179.html +0 -16
  276. data/doc/rdoc/classes/RIO/Rio.html +0 -508
  277. data/doc/rdoc/classes/RIO/Rio.src/M000219.html +0 -18
  278. data/doc/rdoc/classes/RIO/Rio.src/M000220.html +0 -20
  279. data/doc/rdoc/classes/RIO/Rio.src/M000221.html +0 -27
  280. data/doc/rdoc/classes/RIO/Rio.src/M000222.html +0 -16
  281. data/doc/rdoc/classes/RIO/Rio.src/M000224.html +0 -19
  282. data/doc/rdoc/classes/RIO/Rio.src/M000225.html +0 -20
  283. data/doc/rdoc/classes/RIO/Rio.src/M000226.html +0 -16
  284. data/doc/rdoc/classes/RIO/Rio.src/M000227.html +0 -16
  285. data/doc/rdoc/classes/RIO/Rio.src/M000228.html +0 -16
  286. data/doc/rdoc/classes/RIO/Rio.src/M000229.html +0 -16
  287. data/doc/rdoc/classes/RIO/Rio.src/M000230.html +0 -16
  288. data/doc/rdoc/classes/RIO/Rio.src/M000231.html +0 -16
  289. data/doc/rdoc/classes/RIO/Rio.src/M000232.html +0 -16
  290. data/doc/rdoc/created.rid +0 -1
  291. data/doc/rdoc/files/README.html +0 -229
  292. data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -141
  293. data/doc/rdoc/files/lib/rio/doc/EXAMPLES_rb.html +0 -134
  294. data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -134
  295. data/doc/rdoc/files/lib/rio/doc/INDEX_rb.html +0 -134
  296. data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -134
  297. data/doc/rdoc/files/lib/rio/doc/OPTIONAL_rb.html +0 -134
  298. data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -134
  299. data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -134
  300. data/doc/rdoc/files/lib/rio/if/csv_rb.html +0 -134
  301. data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -134
  302. data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -134
  303. data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -134
  304. data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +0 -134
  305. data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -141
  306. data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +0 -134
  307. data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -134
  308. data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -134
  309. data/doc/rdoc/files/lib/rio/if/rubyio_rb.html +0 -134
  310. data/doc/rdoc/files/lib/rio/if/string_rb.html +0 -134
  311. data/doc/rdoc/files/lib/rio/if/temp_rb.html +0 -134
  312. data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -134
  313. data/doc/rdoc/files/lib/rio/if/yaml_rb.html +0 -134
  314. data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
  315. data/doc/rdoc/files/lib/rio_rb.html +0 -153
  316. data/doc/rdoc/fr_class_index.html +0 -49
  317. data/doc/rdoc/fr_file_index.html +0 -51
  318. data/doc/rdoc/fr_method_index.html +0 -259
  319. data/doc/rdoc/index.html +0 -30
  320. data/doc/rdoc/rdoc-style.css +0 -428
data/COPYING CHANGED
@@ -338,3 +338,4 @@ proprietary programs. If your program is a subroutine library, you may
338
338
  consider it more useful to permit linking proprietary applications with the
339
339
  library. If this is what you want to do, use the GNU Library General
340
340
  Public License instead of this License.
341
+
data/README CHANGED
@@ -20,13 +20,14 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
20
 
21
21
  = Rio - Ruby I/O Facilitator
22
22
 
23
- fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
23
+ fa-cil-i-tate: To make easy or easier
24
24
 
25
- Rio is a facade for most of the standard ruby classes that deal with I/O;
26
- providing a simple, intuitive, succinct interface to the functionality
27
- provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
28
- and others. Rio also provides an application level interface which allows many
29
- common I/O idioms to be expressed succinctly.
25
+ Rio is a facade for most of the standard ruby classes that deal with
26
+ I/O; providing a simple, intuitive, succinct interface to the
27
+ functionality provided by IO, File, Dir, Pathname, FileUtils,
28
+ Tempfile, StringIO, OpenURI and others. Rio also provides an
29
+ application level interface which allows many common I/O idioms to be
30
+ expressed succinctly.
30
31
 
31
32
  ==== Building the documentation
32
33
 
@@ -36,9 +37,10 @@ from the distribution directory.
36
37
 
37
38
  Then point your browser at the 'doc/rdoc' directory.
38
39
 
39
- The RDoc template file included with this distribution contains some RDoc hacks
40
- that overcomes some of RDoc's weaknesses and makes the documentation *much* more
41
- usable. It is inadvisable to build the RDoc documentation without these.
40
+ The RDoc template file included with this distribution contains some
41
+ RDoc hacks that overcomes some of RDoc's weaknesses and makes the
42
+ documentation *much* more usable. It is inadvisable to build the RDoc
43
+ documentation without these.
42
44
 
43
45
 
44
46
  ===== Suggested Reading
data/Rakefile CHANGED
@@ -48,7 +48,7 @@ SVN_REPOSITORY_URL = [SVN_REPOSITORY_ROOT,'trunk/rio'].join('/')
48
48
 
49
49
  require 'doc/pkg_def'
50
50
 
51
- ZIP_DIR = "/zip/ruby/rio"
51
+ ZIP_DIR = "/loc/zip/ruby/rio"
52
52
 
53
53
 
54
54
  # The default task is run if rake is given no explicit arguments.
@@ -0,0 +1,216 @@
1
+ Rio IS
2
+
3
+ === EASY
4
+
5
+ Anything that does I/O is a Rio:
6
+
7
+ File:
8
+ rio('aflile')
9
+ Directory:
10
+ rio('adir')
11
+ Web Page:
12
+ rio('http://ahost/adir/afile')
13
+ Any IO:
14
+ rio(any_io)
15
+
16
+ ... much more
17
+
18
+ Makes common tasks easy
19
+
20
+ rio('afile') > rio('copy of afile')
21
+ rio('adir') > rio('copy of adir')
22
+ rio('gzipped_file.gz').gzip > rio('ungzipped_file')
23
+ chomped_lines = rio('afile').chomp[]
24
+
25
+ ... much more
26
+
27
+ === Powerful
28
+
29
+ rb_files= rio('adir').files['*.rb']
30
+ rb_files_including_those_in_subdirectories = rio('adir').all.files['*.rb']
31
+ lines = rio('afile').chomp[0..9] # first 10 lines chomped
32
+ lines = rio('afile.gz').gzip.chomp[0..9] # from gzipped file
33
+ lines = rio('ftp://ahost/afile.gz').gzip.chomp[0..9] # on ftp server
34
+
35
+ ... much more
36
+
37
+ === Consistent
38
+
39
+ To iterate, add a block:
40
+ rio('afile').lines(/regular_expression/) { |line| ... }
41
+ rio('adir').files('
42
+ To return an array, use a subscript:
43
+ rio('afile').lines[/regular_expression/]
44
+ To copy use the copy-operator:
45
+ rio('afile').lines(/regular_expression/) > rio('destination_file')
46
+
47
+
48
+
49
+
50
+
51
+ = Rio - Ruby I/O Facilitator
52
+
53
+ fa-cil-i-tate: To make easy or easier [http://thefreedictionary.com]
54
+
55
+ == Overview
56
+
57
+ Rio is a facade for most of the standard ruby classes that deal with
58
+ I/O; providing a simple, intuitive, succinct interface to the
59
+ functionality provided by IO, File, Dir, Pathname, FileUtils,
60
+ Tempfile, StringIO, OpenURI and others. Rio also provides an
61
+ application level interface which allows many common I/O idioms to be
62
+ expressed succinctly.
63
+
64
+ == New
65
+
66
+ Enhanced support for FTP file-systems. All of Rio's most powerful
67
+ idioms are now supported seamlessly on FTP servers.
68
+
69
+ # copy a file from or to an FTP server
70
+ rio('ftp://ahost/adir/afile') > rio('localfile') # server -> local file
71
+ rio('ftp://ahost/adir/afile') < rio('localfile') # local file -> server
72
+
73
+ # copy an entire directory structure from or to an FTP server
74
+ rio('ftp://ahost/adir') > rio('localdir') # server -> local directory
75
+ rio('ftp://ahost/adir') < rio('localdir') # local directory -> server
76
+
77
+ All of Rio's grande selection and filtering options are available for
78
+ files and directories on FTP servers.
79
+
80
+ # create a gzipped copy of a web page on an ftp server
81
+ rio('ftp://ftphost/f.html.gz').gzip < rio('http://httphost/f.html')
82
+
83
+ # dump the first 10 lines of a gzipped log file on an FTP server to stdout
84
+ rio('ftp://ftphost/logfile.txt').lines(0...10) > ?-
85
+
86
+ # iterate through the entries of a directory on an FTP server
87
+ rio('ftp://ftphost/adir').entries { |entrio| ... }
88
+
89
+ # get an array of all .rb files on an ftp server
90
+ rb_files = rio('ftp://ftphost/').all.files['*.rb']
91
+
92
+
93
+ == SYNOPSIS
94
+
95
+ For the following assume:
96
+ astring = ""
97
+ anarray = []
98
+
99
+ Copy or append a file to a string
100
+ rio('afile') > astring # copy
101
+ rio('afile') >> astring # append
102
+
103
+ Copy or append a string to a file
104
+ rio('afile') < astring # copy
105
+ rio('afile') << astring # append
106
+
107
+ Copy or append the lines of a file to an array
108
+ rio('afile') > anarray
109
+ rio('afile') >> anarray
110
+
111
+ Copy or append a file to another file
112
+ rio('afile') > rio('another_file')
113
+ rio('afile') >> rio('another_file')
114
+
115
+ Copy a file to a directory
116
+ rio('adir') << rio('afile')
117
+
118
+ Copy a directory structure to another directory
119
+ rio('adir') >> rio('another_directory')
120
+
121
+ Copy a web-page to a file
122
+ rio('http://rubydoc.org/') > rio('afile')
123
+
124
+ Ways to get the chomped lines of a file into an array
125
+ anarray = rio('afile').chomp[] # subscript operator
126
+ rio('afile').chomp > anarray # copy-to operator
127
+ anarray = rio('afile').chomp.to_a # to_a
128
+ anarray = rio('afile').chomp.readlines # IO#readlines
129
+
130
+ Copy a gzipped file un-gzipping it
131
+ rio('afile.gz').gzip > rio('afile')
132
+
133
+ Copy a plain file, gzipping it
134
+ rio('afile.gz').gzip < rio('afile')
135
+
136
+ Copy a file from a ftp server into a local file un-gzipping it
137
+ rio('ftp://host/afile.gz').gzip > rio('afile')
138
+
139
+ Iterate over the entries in a directory
140
+ rio('adir').entries { |entrio| ... }
141
+
142
+ Iterate over only the files in a directory
143
+ rio('adir').files { |entrio| ... }
144
+
145
+ Iterate over only the .rb files in a directory
146
+ rio('adir').files('*.rb') { |entrio| ... }
147
+
148
+ Iterate over .rb files but not symlinks to .rb files
149
+ rio('adir').files('*.rb').skip(:symlink?) { |entrio| ... }
150
+
151
+ Iterate over only the _dot_ files in a directory
152
+ rio('adir').files(/^\./) { |entrio| ... }
153
+
154
+ Iterate over the files in a directory and its subdirectories, skipping
155
+ '.svn' and 'CVS' directories
156
+
157
+ rio('adir').norecurse(/^\.svn$/,'CVS').files { |entrio| ... }
158
+
159
+ Create an array of the .rb entries in a directory
160
+ anarray = rio('adir')['*.rb']
161
+
162
+ Create an array of the .rb entries in a directory and its
163
+ subdirectories.
164
+ anarray = rio('adir').all['*.rb']
165
+
166
+ Iterate over the .rb files in a directory and its subdirectories
167
+ rio('adir').all.files('*.rb') { |entrio| ... }
168
+
169
+ Iterate over the non-empty, non-comment chomped lines of a file
170
+ rio('afile').chomp.skip.lines(:empty?,/^\s*#/) { |line| ... }
171
+
172
+ Copy the output of th ps command into an array, skipping the header
173
+ line and the ps command entry
174
+ rio(?-,'ps -a').skip.lines(0,/ps$/) > anarray
175
+
176
+ Prompt for input and return what was typed
177
+ ans = rio(?-).print("Type Something: ").chomp.gets
178
+
179
+ Change the extension of all .htm files in a directory and its
180
+ subdirectories to .html
181
+ rio('adir').rename.all.files('*.htm') do |htmfile|
182
+ htmfile.extname = '.html'
183
+ end
184
+
185
+ Create a symbolic link 'asymlink' in 'adir' which refers to
186
+ 'adir/afile'
187
+ rio('adir/afile').symlink('adir/asymlink')
188
+
189
+ Copy a CSV file, changing the separator to a semicolon
190
+ rio('comma.csv').csv > rio('semicolon.csv').csv(';')
191
+
192
+ Iterate through a CSVfile with each line parsed into an array
193
+ rio('afile.csv').csv { |array_of_fields| ...}
194
+
195
+ Create a tab separated file of accounts in a UNIX passwd file,
196
+ listing only the username, uid, and realname fields
197
+ rio('/etc/passwd').csv(':').columns(0,2,4) > rio('rpt').csv("\t")
198
+
199
+ Pipe multiple commands
200
+ rio('afile') | rio(?-,'acmd') | 'another_cmd' | ?-
201
+
202
+ == Contact
203
+
204
+ Project:: http://rubyforge.org/projects/rio/
205
+ Documentation:: http://rio.rubyforge.org/
206
+ Bugs:: http://rubyforge.org/tracker/?group_id=821
207
+ Email:: rio4ruby@rubyforge.org
208
+
209
+ == Copyright
210
+ Copyright (c) 2005,2006,2007 Christopher Kleckner. All rights reserved
211
+
212
+ == License
213
+ Rio is released under the GNU General Public License
214
+ (http://www.gnu.org/licenses/gpl.html)
215
+
216
+ -Christopher Kleckner
@@ -1,20 +1,21 @@
1
- Rio 0.4.0
1
+ Rio 0.4.1
2
2
 
3
3
  = Rio - Ruby I/O Facilitator
4
4
 
5
+ fa-cil-i-tate: To make easy or easier.
6
+
5
7
  == Overview
6
8
 
7
- Rio is a facade for most of the standard ruby classes that deal with I/O;
8
- providing a simple, intuitive, succinct interface to the functionality
9
- provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
10
- and others. Rio also provides an application level interface which allows many
11
- common I/O idioms to be expressed succinctly.
9
+ Rio is a facade for most of the standard ruby classes that deal with
10
+ I/O; providing a simple, intuitive, succinct interface to the
11
+ functionality provided by IO, File, Dir, Pathname, FileUtils,
12
+ Tempfile, StringIO, OpenURI and others. Rio also provides an
13
+ application level interface which allows many common I/O idioms to be
14
+ expressed succinctly.
12
15
 
13
16
 
14
17
  == SYNOPSIS
15
18
 
16
- fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
17
-
18
19
  For the following assume:
19
20
  astring = ""
20
21
  anarray = []
@@ -23,7 +24,7 @@ Iterate over the .rb files in a directory.
23
24
  rio('adir').files('*.rb') { |entrio| ... }
24
25
 
25
26
  Return an array of the .rb files in a directory.
26
- rio('adir').files['*.rb']
27
+ anarray = rio('adir').files['*.rb']
27
28
 
28
29
  Copy the .rb files in a directory.to another directory.
29
30
  rio('adir').files('*.rb') > rio('another_directory')
@@ -31,8 +32,9 @@ Copy the .rb files in a directory.to another directory.
31
32
  Iterate over the .rb files in a directory and its subdirectories.
32
33
  rio('adir').all.files('*.rb') { |entrio| ... }
33
34
 
34
- Return an array of the .rb files in a directory and its subdirectories.
35
- rio('adir').all.files['*.rb']
35
+ Return an array of the .rb files in a directory and its
36
+ subdirectories.
37
+ anarray = rio('adir').all.files['*.rb']
36
38
 
37
39
  Copy or append a file to a string
38
40
  rio('afile') > astring # copy
@@ -79,8 +81,8 @@ Return selected lines of a file as an array
79
81
  rio('adir').lines[0..3,/re/] # or both
80
82
 
81
83
  Iterate over selected chomped lines of a file
82
- rio('adir').chomp.lines(0..3) { |aline| ... } # a range of lines
83
- rio('adir').chomp.lines(/re/) { |aline| ... } # by regular expression
84
+ rio('adir').chomp.lines(0..3) { |aline| ... } # a range of lines
85
+ rio('adir').chomp.lines(/re/) { |aline| ... } # by regular expression
84
86
 
85
87
  Return selected chomped lines of a file as an array
86
88
  rio('adir').chomp[0..3] # a range of lines
@@ -104,19 +106,22 @@ Put the first 10 chomped lines of a gzipped file into an array
104
106
  Copy lines 0 and 3 thru 5 of a gzipped file on an ftp server to stdout
105
107
  rio('ftp://host/afile.gz').gzip.lines(0,3..5) > ?-
106
108
 
107
- Return an array of files in a directory and its subdirectories, without descending into .svn directories.
109
+ Return an array of files in a directory and its subdirectories,
110
+ without descending into .svn directories.
108
111
  rio('adir').norecurse(/^\.svn$/).files[]
109
112
 
110
113
  Iterate over the non-empty, non-comment chomped lines of a file
111
114
  rio('afile').chomp.skip(:empty?,/^\s*#/) { |line| ... }
112
115
 
113
- Copy the output of th ps command into an array, skipping the header line and the ps command entry
116
+ Copy the output of th ps command into an array, skipping the header
117
+ line and the ps command entry
114
118
  rio(?-,'ps -a').skiplines(0,/ps$/) > anarray
115
119
 
116
120
  Prompt for input and return what was typed
117
121
  ans = rio(?-).print("Type Something: ").chomp.gets
118
122
 
119
- Change the extension of all .htm files in a directory and its subdirectories to .html
123
+ Change the extension of all .htm files in a directory and its
124
+ subdirectories to .html
120
125
  rio('adir').rename.all.files('*.htm') do |htmfile|
121
126
  htmfile.extname = '.html'
122
127
  end
@@ -140,6 +145,7 @@ Project:: http://rubyforge.org/projects/rio/
140
145
  Documentation:: http://rio.rubyforge.org/
141
146
  Bugs:: http://rubyforge.org/tracker/?group_id=821
142
147
  Email:: rio4ruby@rubyforge.org
148
+ Blog:: http://rio4ruby.blogspot.com
143
149
 
144
150
  == Copyright
145
151
  Copyright (c) 2005,2006,2007 Christopher Kleckner. All rights reserved
@@ -1,12 +1,13 @@
1
1
  === Rio - Ruby I/O Facilitator
2
2
 
3
- Rio is a facade for most of the standard ruby classes that deal with I/O;
4
- providing a simple, intuitive, succinct interface to the functionality
5
- provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
6
- and others. Rio also provides an application level interface which allows many
7
- common I/O idioms to be expressed succinctly.
3
+ Rio is a facade for most of the standard ruby classes that deal with
4
+ I/O; providing a simple, intuitive, succinct interface to the
5
+ functionality provided by IO, File, Dir, Pathname, FileUtils,
6
+ Tempfile, StringIO, OpenURI and others. Rio also provides an
7
+ application level interface which allows many common I/O idioms to be
8
+ expressed succinctly.
8
9
 
9
- fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
10
+ fa-cil-i-tate: To make easy or easier.
10
11
 
11
12
  To create the documentation for Rio run the command
12
13
  ruby build_doc.rb
@@ -20,12 +21,18 @@ Suggested Reading
20
21
  * RIO::Doc::HOWTO
21
22
  * RIO::Rio
22
23
 
24
+ == New for version 0.4.1
25
+ * Bug fixes to better handle file system paths with URI special
26
+ characters.
27
+ * Other bug fixes.
28
+
23
29
  == New for version 0.4.0
24
30
  * Alpha.
25
31
 
26
32
 
27
33
  == New for version 0.3.9
28
- * Bug fixes, code cleanup,
34
+ * Bug fixes, code cleanup.
35
+ * See Rio#split
29
36
 
30
37
 
31
38
  == New for version 0.3.8
@@ -205,8 +205,8 @@ or an actual IO operation. When an IO operation is called the Range
205
205
  will be used to limit processing to the first ten records. For
206
206
  example:
207
207
 
208
- rio('afile').lines(0...10).each { |line| ... } # block will be called for the first 10 records
209
- rio('afile').lines(0...10).to_a # the first 10 records will be returned in an array
208
+ rio('afile').lines(0...10) { |line| ... } # block will be called for the first 10 records
209
+ rio('afile').lines[0...10] # the first 10 records will be returned in an array
210
210
  rio('afile').lines(0...10) > rio('acopy') # the first 10 records will be copied to 'acopy'
211
211
 
212
212
  "But wait", you say, "In our original example the range was an
@@ -40,8 +40,6 @@ module Doc
40
40
 
41
41
  = Rio - Ruby I/O Facilitator
42
42
 
43
- fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
44
-
45
43
  Rio is a facade for most of the standard ruby classes that deal with I/O;
46
44
  providing a simple, intuitive, succinct interface to the functionality
47
45
  provided by IO, File, Dir, Pathname, FileUtils, Tempfile, StringIO, OpenURI
@@ -52,7 +52,7 @@ Please read the following first:
52
52
  * RIO::Doc::HOWTO
53
53
  * RIO::Rio
54
54
 
55
- = Rio Optional Componants
55
+ = Rio Optional Components
56
56
 
57
57
  This document describes various optional Rio components, that must be
58
58
  explicitly 'required' to be available. These are not included in
@@ -51,7 +51,7 @@ module Doc #:doc:
51
51
 
52
52
  = Rio - Ruby I/O Facilitator
53
53
 
54
- fa-cil-i-tate: To make easy or easier [http://www.thefreedictionary.com/facilitate]
54
+ fa-cil-i-tate: To make easy or easier.
55
55
 
56
56
  Rio is a facade for most of the standard ruby classes that deal with I/O;
57
57
  providing a simple, intuitive, succinct interface to the functionality
@@ -257,6 +257,7 @@ module RIO
257
257
  end
258
258
 
259
259
  def subscheme_module(sch)
260
+ #p "subscheme_module(#{sch})"
260
261
  @ss_module[sch] ||= case sch
261
262
  when 'file','path'
262
263
  require 'rio/scheme/path'