rio 0.3.4 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. data/ChangeLog +287 -0
  2. data/Rakefile +7 -9
  3. data/VERSION +1 -1
  4. data/doc/ANNOUNCE +20 -1
  5. data/doc/RELEASE_NOTES +41 -0
  6. data/doc/rdoc/classes/Kernel.html +181 -0
  7. data/doc/rdoc/classes/Kernel.src/M000214.html +18 -0
  8. data/doc/rdoc/classes/RIO.html +621 -0
  9. data/doc/rdoc/classes/RIO.src/M000001.html +18 -0
  10. data/doc/rdoc/classes/RIO.src/M000002.html +18 -0
  11. data/doc/rdoc/classes/RIO.src/M000003.html +18 -0
  12. data/doc/rdoc/classes/RIO/Doc.html +138 -0
  13. data/doc/rdoc/classes/RIO/Doc/HOWTO.html +1040 -0
  14. data/doc/rdoc/classes/RIO/Doc/INTRO.html +1613 -0
  15. data/doc/rdoc/classes/RIO/Doc/MISC.html +443 -0
  16. data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +338 -0
  17. data/doc/rdoc/classes/RIO/IF.html +114 -0
  18. data/doc/rdoc/classes/RIO/IF/CSV.html +202 -0
  19. data/doc/rdoc/classes/RIO/IF/CSV.src/M000004.html +19 -0
  20. data/doc/rdoc/classes/RIO/IF/CSV.src/M000005.html +16 -0
  21. data/doc/rdoc/classes/RIO/IF/CSV.src/M000006.html +16 -0
  22. data/doc/rdoc/classes/RIO/IF/YAML.html +499 -0
  23. data/doc/rdoc/classes/RIO/IF/YAML.src/M000007.html +19 -0
  24. data/doc/rdoc/classes/RIO/IF/YAML.src/M000008.html +16 -0
  25. data/doc/rdoc/classes/RIO/IF/YAML.src/M000009.html +16 -0
  26. data/doc/rdoc/classes/RIO/IF/YAML.src/M000010.html +16 -0
  27. data/doc/rdoc/classes/RIO/IF/YAML.src/M000011.html +16 -0
  28. data/doc/rdoc/classes/RIO/IF/YAML.src/M000012.html +16 -0
  29. data/doc/rdoc/classes/RIO/IF/YAML.src/M000013.html +16 -0
  30. data/doc/rdoc/classes/RIO/IF/YAML.src/M000014.html +16 -0
  31. data/doc/rdoc/classes/RIO/IF/YAML.src/M000015.html +16 -0
  32. data/doc/rdoc/classes/RIO/IF/YAML.src/M000016.html +16 -0
  33. data/doc/rdoc/classes/RIO/IF/YAML.src/M000017.html +16 -0
  34. data/doc/rdoc/classes/RIO/Rio.html +7121 -0
  35. data/doc/rdoc/classes/RIO/Rio.src/M000018.html +18 -0
  36. data/doc/rdoc/classes/RIO/Rio.src/M000019.html +20 -0
  37. data/doc/rdoc/classes/RIO/Rio.src/M000020.html +27 -0
  38. data/doc/rdoc/classes/RIO/Rio.src/M000021.html +16 -0
  39. data/doc/rdoc/classes/RIO/Rio.src/M000023.html +19 -0
  40. data/doc/rdoc/classes/RIO/Rio.src/M000024.html +20 -0
  41. data/doc/rdoc/classes/RIO/Rio.src/M000025.html +16 -0
  42. data/doc/rdoc/classes/RIO/Rio.src/M000026.html +16 -0
  43. data/doc/rdoc/classes/RIO/Rio.src/M000027.html +16 -0
  44. data/doc/rdoc/classes/RIO/Rio.src/M000028.html +16 -0
  45. data/doc/rdoc/classes/RIO/Rio.src/M000029.html +16 -0
  46. data/doc/rdoc/classes/RIO/Rio.src/M000030.html +16 -0
  47. data/doc/rdoc/classes/RIO/Rio.src/M000031.html +16 -0
  48. data/doc/rdoc/classes/RIO/Rio.src/M000032.html +16 -0
  49. data/doc/rdoc/classes/RIO/Rio.src/M000033.html +16 -0
  50. data/doc/rdoc/classes/RIO/Rio.src/M000034.html +16 -0
  51. data/doc/rdoc/classes/RIO/Rio.src/M000035.html +16 -0
  52. data/doc/rdoc/classes/RIO/Rio.src/M000036.html +16 -0
  53. data/doc/rdoc/classes/RIO/Rio.src/M000037.html +16 -0
  54. data/doc/rdoc/classes/RIO/Rio.src/M000038.html +16 -0
  55. data/doc/rdoc/classes/RIO/Rio.src/M000039.html +16 -0
  56. data/doc/rdoc/classes/RIO/Rio.src/M000040.html +16 -0
  57. data/doc/rdoc/classes/RIO/Rio.src/M000041.html +16 -0
  58. data/doc/rdoc/classes/RIO/Rio.src/M000042.html +16 -0
  59. data/doc/rdoc/classes/RIO/Rio.src/M000043.html +16 -0
  60. data/doc/rdoc/classes/RIO/Rio.src/M000044.html +16 -0
  61. data/doc/rdoc/classes/RIO/Rio.src/M000045.html +16 -0
  62. data/doc/rdoc/classes/RIO/Rio.src/M000046.html +16 -0
  63. data/doc/rdoc/classes/RIO/Rio.src/M000047.html +16 -0
  64. data/doc/rdoc/classes/RIO/Rio.src/M000048.html +16 -0
  65. data/doc/rdoc/classes/RIO/Rio.src/M000049.html +16 -0
  66. data/doc/rdoc/classes/RIO/Rio.src/M000050.html +16 -0
  67. data/doc/rdoc/classes/RIO/Rio.src/M000051.html +16 -0
  68. data/doc/rdoc/classes/RIO/Rio.src/M000052.html +16 -0
  69. data/doc/rdoc/classes/RIO/Rio.src/M000053.html +16 -0
  70. data/doc/rdoc/classes/RIO/Rio.src/M000054.html +16 -0
  71. data/doc/rdoc/classes/RIO/Rio.src/M000055.html +16 -0
  72. data/doc/rdoc/classes/RIO/Rio.src/M000056.html +16 -0
  73. data/doc/rdoc/classes/RIO/Rio.src/M000057.html +16 -0
  74. data/doc/rdoc/classes/RIO/Rio.src/M000058.html +16 -0
  75. data/doc/rdoc/classes/RIO/Rio.src/M000059.html +16 -0
  76. data/doc/rdoc/classes/RIO/Rio.src/M000060.html +16 -0
  77. data/doc/rdoc/classes/RIO/Rio.src/M000061.html +16 -0
  78. data/doc/rdoc/classes/RIO/Rio.src/M000062.html +16 -0
  79. data/doc/rdoc/classes/RIO/Rio.src/M000063.html +16 -0
  80. data/doc/rdoc/classes/RIO/Rio.src/M000064.html +16 -0
  81. data/doc/rdoc/classes/RIO/Rio.src/M000065.html +16 -0
  82. data/doc/rdoc/classes/RIO/Rio.src/M000066.html +16 -0
  83. data/doc/rdoc/classes/RIO/Rio.src/M000067.html +16 -0
  84. data/doc/rdoc/classes/RIO/Rio.src/M000068.html +16 -0
  85. data/doc/rdoc/classes/RIO/Rio.src/M000069.html +16 -0
  86. data/doc/rdoc/classes/RIO/Rio.src/M000070.html +16 -0
  87. data/doc/rdoc/classes/RIO/Rio.src/M000071.html +16 -0
  88. data/doc/rdoc/classes/RIO/Rio.src/M000072.html +16 -0
  89. data/doc/rdoc/classes/RIO/Rio.src/M000073.html +16 -0
  90. data/doc/rdoc/classes/RIO/Rio.src/M000074.html +16 -0
  91. data/doc/rdoc/classes/RIO/Rio.src/M000075.html +16 -0
  92. data/doc/rdoc/classes/RIO/Rio.src/M000076.html +16 -0
  93. data/doc/rdoc/classes/RIO/Rio.src/M000077.html +16 -0
  94. data/doc/rdoc/classes/RIO/Rio.src/M000078.html +16 -0
  95. data/doc/rdoc/classes/RIO/Rio.src/M000079.html +16 -0
  96. data/doc/rdoc/classes/RIO/Rio.src/M000080.html +16 -0
  97. data/doc/rdoc/classes/RIO/Rio.src/M000081.html +16 -0
  98. data/doc/rdoc/classes/RIO/Rio.src/M000082.html +16 -0
  99. data/doc/rdoc/classes/RIO/Rio.src/M000083.html +16 -0
  100. data/doc/rdoc/classes/RIO/Rio.src/M000084.html +16 -0
  101. data/doc/rdoc/classes/RIO/Rio.src/M000085.html +16 -0
  102. data/doc/rdoc/classes/RIO/Rio.src/M000086.html +16 -0
  103. data/doc/rdoc/classes/RIO/Rio.src/M000087.html +16 -0
  104. data/doc/rdoc/classes/RIO/Rio.src/M000088.html +16 -0
  105. data/doc/rdoc/classes/RIO/Rio.src/M000089.html +16 -0
  106. data/doc/rdoc/classes/RIO/Rio.src/M000090.html +16 -0
  107. data/doc/rdoc/classes/RIO/Rio.src/M000091.html +16 -0
  108. data/doc/rdoc/classes/RIO/Rio.src/M000092.html +16 -0
  109. data/doc/rdoc/classes/RIO/Rio.src/M000093.html +16 -0
  110. data/doc/rdoc/classes/RIO/Rio.src/M000094.html +16 -0
  111. data/doc/rdoc/classes/RIO/Rio.src/M000095.html +16 -0
  112. data/doc/rdoc/classes/RIO/Rio.src/M000096.html +16 -0
  113. data/doc/rdoc/classes/RIO/Rio.src/M000097.html +16 -0
  114. data/doc/rdoc/classes/RIO/Rio.src/M000098.html +16 -0
  115. data/doc/rdoc/classes/RIO/Rio.src/M000099.html +16 -0
  116. data/doc/rdoc/classes/RIO/Rio.src/M000100.html +16 -0
  117. data/doc/rdoc/classes/RIO/Rio.src/M000101.html +16 -0
  118. data/doc/rdoc/classes/RIO/Rio.src/M000102.html +16 -0
  119. data/doc/rdoc/classes/RIO/Rio.src/M000103.html +16 -0
  120. data/doc/rdoc/classes/RIO/Rio.src/M000104.html +16 -0
  121. data/doc/rdoc/classes/RIO/Rio.src/M000105.html +16 -0
  122. data/doc/rdoc/classes/RIO/Rio.src/M000106.html +16 -0
  123. data/doc/rdoc/classes/RIO/Rio.src/M000107.html +16 -0
  124. data/doc/rdoc/classes/RIO/Rio.src/M000108.html +16 -0
  125. data/doc/rdoc/classes/RIO/Rio.src/M000109.html +16 -0
  126. data/doc/rdoc/classes/RIO/Rio.src/M000110.html +16 -0
  127. data/doc/rdoc/classes/RIO/Rio.src/M000111.html +16 -0
  128. data/doc/rdoc/classes/RIO/Rio.src/M000112.html +16 -0
  129. data/doc/rdoc/classes/RIO/Rio.src/M000113.html +16 -0
  130. data/doc/rdoc/classes/RIO/Rio.src/M000114.html +16 -0
  131. data/doc/rdoc/classes/RIO/Rio.src/M000115.html +16 -0
  132. data/doc/rdoc/classes/RIO/Rio.src/M000116.html +16 -0
  133. data/doc/rdoc/classes/RIO/Rio.src/M000117.html +16 -0
  134. data/doc/rdoc/classes/RIO/Rio.src/M000118.html +16 -0
  135. data/doc/rdoc/classes/RIO/Rio.src/M000119.html +16 -0
  136. data/doc/rdoc/classes/RIO/Rio.src/M000120.html +16 -0
  137. data/doc/rdoc/classes/RIO/Rio.src/M000121.html +16 -0
  138. data/doc/rdoc/classes/RIO/Rio.src/M000122.html +16 -0
  139. data/doc/rdoc/classes/RIO/Rio.src/M000123.html +16 -0
  140. data/doc/rdoc/classes/RIO/Rio.src/M000124.html +16 -0
  141. data/doc/rdoc/classes/RIO/Rio.src/M000125.html +16 -0
  142. data/doc/rdoc/classes/RIO/Rio.src/M000126.html +16 -0
  143. data/doc/rdoc/classes/RIO/Rio.src/M000127.html +16 -0
  144. data/doc/rdoc/classes/RIO/Rio.src/M000128.html +16 -0
  145. data/doc/rdoc/classes/RIO/Rio.src/M000129.html +16 -0
  146. data/doc/rdoc/classes/RIO/Rio.src/M000130.html +16 -0
  147. data/doc/rdoc/classes/RIO/Rio.src/M000131.html +16 -0
  148. data/doc/rdoc/classes/RIO/Rio.src/M000132.html +16 -0
  149. data/doc/rdoc/classes/RIO/Rio.src/M000133.html +16 -0
  150. data/doc/rdoc/classes/RIO/Rio.src/M000134.html +16 -0
  151. data/doc/rdoc/classes/RIO/Rio.src/M000135.html +16 -0
  152. data/doc/rdoc/classes/RIO/Rio.src/M000136.html +16 -0
  153. data/doc/rdoc/classes/RIO/Rio.src/M000137.html +16 -0
  154. data/doc/rdoc/classes/RIO/Rio.src/M000138.html +16 -0
  155. data/doc/rdoc/classes/RIO/Rio.src/M000139.html +16 -0
  156. data/doc/rdoc/classes/RIO/Rio.src/M000140.html +16 -0
  157. data/doc/rdoc/classes/RIO/Rio.src/M000141.html +16 -0
  158. data/doc/rdoc/classes/RIO/Rio.src/M000142.html +16 -0
  159. data/doc/rdoc/classes/RIO/Rio.src/M000143.html +16 -0
  160. data/doc/rdoc/classes/RIO/Rio.src/M000144.html +16 -0
  161. data/doc/rdoc/classes/RIO/Rio.src/M000145.html +16 -0
  162. data/doc/rdoc/classes/RIO/Rio.src/M000146.html +16 -0
  163. data/doc/rdoc/classes/RIO/Rio.src/M000147.html +16 -0
  164. data/doc/rdoc/classes/RIO/Rio.src/M000148.html +16 -0
  165. data/doc/rdoc/classes/RIO/Rio.src/M000149.html +16 -0
  166. data/doc/rdoc/classes/RIO/Rio.src/M000150.html +16 -0
  167. data/doc/rdoc/classes/RIO/Rio.src/M000151.html +16 -0
  168. data/doc/rdoc/classes/RIO/Rio.src/M000152.html +16 -0
  169. data/doc/rdoc/classes/RIO/Rio.src/M000153.html +16 -0
  170. data/doc/rdoc/classes/RIO/Rio.src/M000154.html +16 -0
  171. data/doc/rdoc/classes/RIO/Rio.src/M000155.html +16 -0
  172. data/doc/rdoc/classes/RIO/Rio.src/M000156.html +16 -0
  173. data/doc/rdoc/classes/RIO/Rio.src/M000157.html +16 -0
  174. data/doc/rdoc/classes/RIO/Rio.src/M000158.html +16 -0
  175. data/doc/rdoc/classes/RIO/Rio.src/M000159.html +16 -0
  176. data/doc/rdoc/classes/RIO/Rio.src/M000160.html +16 -0
  177. data/doc/rdoc/classes/RIO/Rio.src/M000161.html +16 -0
  178. data/doc/rdoc/classes/RIO/Rio.src/M000162.html +16 -0
  179. data/doc/rdoc/classes/RIO/Rio.src/M000163.html +16 -0
  180. data/doc/rdoc/classes/RIO/Rio.src/M000164.html +16 -0
  181. data/doc/rdoc/classes/RIO/Rio.src/M000165.html +16 -0
  182. data/doc/rdoc/classes/RIO/Rio.src/M000166.html +16 -0
  183. data/doc/rdoc/classes/RIO/Rio.src/M000167.html +16 -0
  184. data/doc/rdoc/classes/RIO/Rio.src/M000168.html +16 -0
  185. data/doc/rdoc/classes/RIO/Rio.src/M000169.html +16 -0
  186. data/doc/rdoc/classes/RIO/Rio.src/M000170.html +16 -0
  187. data/doc/rdoc/classes/RIO/Rio.src/M000171.html +16 -0
  188. data/doc/rdoc/classes/RIO/Rio.src/M000172.html +16 -0
  189. data/doc/rdoc/classes/RIO/Rio.src/M000173.html +16 -0
  190. data/doc/rdoc/classes/RIO/Rio.src/M000174.html +16 -0
  191. data/doc/rdoc/classes/RIO/Rio.src/M000175.html +16 -0
  192. data/doc/rdoc/classes/RIO/Rio.src/M000176.html +16 -0
  193. data/doc/rdoc/classes/RIO/Rio.src/M000177.html +16 -0
  194. data/doc/rdoc/classes/RIO/Rio.src/M000178.html +16 -0
  195. data/doc/rdoc/classes/RIO/Rio.src/M000179.html +16 -0
  196. data/doc/rdoc/classes/RIO/Rio.src/M000180.html +16 -0
  197. data/doc/rdoc/classes/RIO/Rio.src/M000181.html +16 -0
  198. data/doc/rdoc/classes/RIO/Rio.src/M000182.html +16 -0
  199. data/doc/rdoc/classes/RIO/Rio.src/M000183.html +16 -0
  200. data/doc/rdoc/classes/RIO/Rio.src/M000184.html +16 -0
  201. data/doc/rdoc/classes/RIO/Rio.src/M000185.html +16 -0
  202. data/doc/rdoc/classes/RIO/Rio.src/M000186.html +16 -0
  203. data/doc/rdoc/classes/RIO/Rio.src/M000187.html +16 -0
  204. data/doc/rdoc/classes/RIO/Rio.src/M000188.html +16 -0
  205. data/doc/rdoc/classes/RIO/Rio.src/M000189.html +16 -0
  206. data/doc/rdoc/classes/RIO/Rio.src/M000190.html +16 -0
  207. data/doc/rdoc/classes/RIO/Rio.src/M000191.html +16 -0
  208. data/doc/rdoc/classes/RIO/Rio.src/M000192.html +16 -0
  209. data/doc/rdoc/classes/RIO/Rio.src/M000193.html +16 -0
  210. data/doc/rdoc/classes/RIO/Rio.src/M000194.html +16 -0
  211. data/doc/rdoc/classes/RIO/Rio.src/M000195.html +16 -0
  212. data/doc/rdoc/classes/RIO/Rio.src/M000196.html +16 -0
  213. data/doc/rdoc/classes/RIO/Rio.src/M000197.html +16 -0
  214. data/doc/rdoc/classes/RIO/Rio.src/M000198.html +16 -0
  215. data/doc/rdoc/classes/RIO/Rio.src/M000199.html +16 -0
  216. data/doc/rdoc/classes/RIO/Rio.src/M000200.html +16 -0
  217. data/doc/rdoc/classes/RIO/Rio.src/M000201.html +16 -0
  218. data/doc/rdoc/classes/RIO/Rio.src/M000202.html +16 -0
  219. data/doc/rdoc/classes/RIO/Rio.src/M000203.html +16 -0
  220. data/doc/rdoc/classes/RIO/Rio.src/M000204.html +16 -0
  221. data/doc/rdoc/classes/RIO/Rio.src/M000205.html +16 -0
  222. data/doc/rdoc/classes/RIO/Rio.src/M000206.html +16 -0
  223. data/doc/rdoc/classes/RIO/Rio.src/M000207.html +16 -0
  224. data/doc/rdoc/classes/RIO/Rio.src/M000208.html +16 -0
  225. data/doc/rdoc/classes/RIO/Rio.src/M000209.html +16 -0
  226. data/doc/rdoc/classes/RIO/Rio.src/M000210.html +16 -0
  227. data/doc/rdoc/classes/RIO/Rio.src/M000211.html +16 -0
  228. data/doc/rdoc/classes/RIO/Rio.src/M000212.html +16 -0
  229. data/doc/rdoc/classes/RIO/Rio.src/M000213.html +16 -0
  230. data/doc/rdoc/created.rid +1 -0
  231. data/doc/rdoc/files/README.html +243 -0
  232. data/doc/rdoc/files/lib/rio/constructor_rb.html +142 -0
  233. data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +135 -0
  234. data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +135 -0
  235. data/doc/rdoc/files/lib/rio/doc/MISC_rb.html +135 -0
  236. data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +135 -0
  237. data/doc/rdoc/files/lib/rio/if/basic_rb.html +135 -0
  238. data/doc/rdoc/files/lib/rio/if/csv_rb.html +135 -0
  239. data/doc/rdoc/files/lib/rio/if/dir_rb.html +135 -0
  240. data/doc/rdoc/files/lib/rio/if/file_rb.html +135 -0
  241. data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +135 -0
  242. data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +135 -0
  243. data/doc/rdoc/files/lib/rio/if/grande_rb.html +135 -0
  244. data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +135 -0
  245. data/doc/rdoc/files/lib/rio/if/internal_rb.html +135 -0
  246. data/doc/rdoc/files/lib/rio/if/path_rb.html +135 -0
  247. data/doc/rdoc/files/lib/rio/if/stream_rb.html +135 -0
  248. data/doc/rdoc/files/lib/rio/if/string_rb.html +135 -0
  249. data/doc/rdoc/files/lib/rio/if/temp_rb.html +135 -0
  250. data/doc/rdoc/files/lib/rio/if/test_rb.html +135 -0
  251. data/doc/rdoc/files/lib/rio/if/yaml_rb.html +135 -0
  252. data/doc/rdoc/files/lib/rio/kernel_rb.html +142 -0
  253. data/doc/rdoc/files/lib/rio_rb.html +154 -0
  254. data/doc/rdoc/fr_class_index.html +37 -0
  255. data/doc/rdoc/fr_file_index.html +49 -0
  256. data/doc/rdoc/fr_method_index.html +241 -0
  257. data/doc/rdoc/index.html +24 -0
  258. data/doc/rdoc/rdoc-style.css +384 -0
  259. data/lib/rio.rb +21 -5
  260. data/lib/rio/constructor.rb +13 -0
  261. data/lib/rio/context/copying.rb +56 -0
  262. data/lib/rio/context/methods.rb +1 -0
  263. data/lib/rio/cp.rb +53 -34
  264. data/lib/rio/doc/HOWTO.rb +9 -3
  265. data/lib/rio/doc/INTRO.rb +113 -3
  266. data/lib/rio/ext.rb +7 -1
  267. data/lib/rio/ext/csv.rb +17 -8
  268. data/lib/rio/ext/yaml.rb +182 -0
  269. data/lib/rio/factory.rb +11 -14
  270. data/lib/rio/filter/closeoneof.rb +12 -31
  271. data/lib/rio/filter/gzip.rb +7 -0
  272. data/lib/rio/if.rb +4 -1
  273. data/lib/rio/if/csv.rb +36 -35
  274. data/lib/rio/if/grande.rb +74 -5
  275. data/lib/rio/if/grande_stream.rb +11 -3
  276. data/lib/rio/if/path.rb +9 -8
  277. data/lib/rio/if/yaml.rb +218 -0
  278. data/lib/rio/ioh.rb +5 -3
  279. data/lib/rio/matchrecord.rb +9 -2
  280. data/lib/rio/ops/dir.rb +2 -1
  281. data/lib/rio/ops/either.rb +9 -9
  282. data/lib/rio/ops/file.rb +4 -1
  283. data/lib/rio/ops/path.rb +26 -20
  284. data/lib/rio/ops/stream.rb +1 -1
  285. data/lib/rio/ops/stream/input.rb +31 -9
  286. data/lib/rio/ops/stream/output.rb +7 -2
  287. data/lib/rio/ops/stream/read.rb +10 -10
  288. data/lib/rio/ops/stream/write.rb +10 -10
  289. data/lib/rio/path.rb +2 -2
  290. data/lib/rio/path/reset.rb +1 -1
  291. data/lib/rio/piper.rb +123 -0
  292. data/lib/rio/piper/cp.rb +81 -0
  293. data/lib/rio/rectype.rb +2 -2
  294. data/lib/rio/rl/base.rb +40 -17
  295. data/lib/rio/rl/builder.rb +8 -47
  296. data/lib/rio/rl/ioi.rb +3 -2
  297. data/lib/rio/rl/path.rb +101 -78
  298. data/lib/rio/rl/pathmethods.rb +95 -0
  299. data/lib/rio/rl/uri.rb +41 -51
  300. data/lib/rio/scheme/cmdio.rb +7 -1
  301. data/lib/rio/scheme/cmdpipe.rb +150 -0
  302. data/lib/rio/scheme/ftp.rb +0 -4
  303. data/lib/rio/scheme/http.rb +0 -2
  304. data/lib/rio/scheme/strio.rb +16 -0
  305. data/lib/rio/scheme/temp.rb +7 -7
  306. data/lib/rio/state.rb +23 -5
  307. data/lib/rio/stream.rb +4 -0
  308. data/lib/rio/stream/duplex.rb +1 -0
  309. data/lib/rio/stream/open.rb +8 -2
  310. data/lib/rio/version.rb +1 -1
  311. data/test/{runtests_gem.rb → gem_runtests.rb} +0 -0
  312. data/test/methods/path.rb +12 -0
  313. data/test/runtests.rb +2 -0
  314. data/test/tc/abs.rb +29 -27
  315. data/test/tc/all.rb +9 -3
  316. data/test/tc/base.rb +31 -0
  317. data/test/tc/cmdpipe.rb +146 -0
  318. data/test/tc/copydir.rb +2 -1
  319. data/test/tc/create.rb +10 -0
  320. data/test/tc/csv.rb +12 -12
  321. data/test/tc/csv2.rb +2 -2
  322. data/test/tc/csv_columns.rb +3 -3
  323. data/test/tc/each_break.rb +21 -8
  324. data/test/tc/expand_path.rb +21 -27
  325. data/test/tc/misc.rb +0 -1
  326. data/test/tc/noqae.rb +29 -21
  327. data/test/tc/overload.rb +14 -11
  328. data/test/tc/piper.rb +146 -0
  329. data/test/tc/riorl.rb +26 -17
  330. data/test/tc/route.rb +51 -0
  331. data/test/tc/skip.rb +8 -6
  332. data/test/tc/split.rb +70 -0
  333. data/test/tc/temp.rb +5 -5
  334. data/test/tc/testcase.rb +1 -0
  335. data/test/tc/yaml.rb +118 -0
  336. metadata +481 -229
  337. data/doc/README_MSWIN32.txt +0 -39
  338. data/ex/colx.rb +0 -8
  339. data/ex/findinruby +0 -23
  340. data/ex/findruby +0 -15
  341. data/ex/passwd_report.rb +0 -8
  342. data/ex/prompt.rb +0 -25
  343. data/ex/rgb.txt.gz +0 -0
  344. data/ex/riocat +0 -35
  345. data/ex/riogunzip +0 -31
  346. data/ex/riogzip +0 -24
  347. data/ex/rioprompt.rb +0 -6
  348. data/ex/tolf +0 -11
  349. data/test/mswin32.rb +0 -28
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
5
+
6
+ <!--
7
+
8
+ Rio
9
+
10
+ -->
11
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
12
+ <head>
13
+ <title>Rio</title>
14
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
15
+ </head>
16
+ <frameset rows="20%, 80%">
17
+ <frameset cols="25%,35%,45%">
18
+ <frame src="fr_file_index.html" title="Files" name="Files" />
19
+ <frame src="fr_class_index.html" name="Classes" />
20
+ <frame src="fr_method_index.html" name="Methods" />
21
+ </frameset>
22
+ <frame src="classes/RIO/Doc/SYNOPSIS.html" name="docwin" />
23
+ </frameset>
24
+ </html>
@@ -0,0 +1,384 @@
1
+
2
+ body {
3
+ font-family: Verdana,Arial,Helvetica,sans-serif;
4
+ font-size: 90%;
5
+ margin: 0;
6
+ margin-left: 40px;
7
+ padding: 0;
8
+ background: white;
9
+ }
10
+
11
+ h1,h2,h3,h4 { margin: 0; color: #8b4726; background: transparent; }
12
+ h1 { font-size: 150%; }
13
+ h2 { font-size: 140%; }
14
+ h3 { font-size: 130%; }
15
+ h4 { font-size: 120%; }
16
+ h2,h3,h4 { margin-top: 1em; }
17
+
18
+ a {
19
+ background: transparent;
20
+ color: #8b4500;
21
+ text-decoration: none;
22
+ }
23
+ a:hover {
24
+ color: #ffa500;
25
+ background: #8b4500;
26
+ }
27
+
28
+ /* Override the base stylesheet's Anchor inside a table cell */
29
+ td > a {
30
+ background: transparent;
31
+ color: #099;
32
+ text-decoration: none;
33
+ }
34
+
35
+ small {
36
+ font-size: 0.7em;
37
+ }
38
+ /* and inside a section title */
39
+ .section-title > a {
40
+ background: transparent;
41
+ color: #8b4500;
42
+ text-decoration: none;
43
+ }
44
+
45
+ /* === Structural elements =================================== */
46
+
47
+ div#index {
48
+ margin: 0;
49
+ margin-left: -40px;
50
+ padding: 0;
51
+ font-size: 90%;
52
+ background: #ffdead;
53
+ }
54
+
55
+
56
+ div#index a {
57
+ margin-left: 0.7em;
58
+ }
59
+ div#index-entries a {
60
+ background: transparent;
61
+ margin-left: 0.7em;
62
+ color: #8b4500;
63
+ }
64
+ div#index-entries a:hover {
65
+ background: transparent;
66
+ margin-left: 0.7em;
67
+ /* color: #ffdead; */
68
+ color: #ffdead;
69
+ background: #8b4500;
70
+ /*background: #ffdead;*/
71
+ }
72
+ .name-list a {
73
+ margin-left: 0.7em;
74
+ background: #ffdead;
75
+ color: #8b4500;
76
+ }
77
+ .name-list a:hover {
78
+ margin-left: 0.7em;
79
+ color: #ffdead;
80
+ background: #8b4500;
81
+ }
82
+ .section-bar {
83
+ color: #555;
84
+ /* background: #8b4500; */
85
+
86
+ border-bottom: 1px solid #999;
87
+ margin-left: -20px;
88
+ }
89
+
90
+ div#index .section-bar {
91
+ margin-left: 0px;
92
+ padding-left: 0.7em;
93
+ background: #8b4500;
94
+ color: #ffdead;
95
+ font-size: small;
96
+ }
97
+
98
+
99
+ .section-title {
100
+ /*background: #8b4500; */
101
+ background: #ffdead;
102
+ color: #eee;
103
+ padding: 3px;
104
+ margin-top: 2em;
105
+ margin-left: -30px;
106
+ border: 1px solid #999;
107
+ }
108
+
109
+ div#classHeader, div#fileHeader {
110
+ width: auto;
111
+ color: white;
112
+ padding: 0.5em 1.5em 0.5em 1.5em;
113
+ margin: 0;
114
+ margin-left: -40px;
115
+ border-bottom: 3px solid #006;
116
+ }
117
+
118
+ div#classHeader a, div#fileHeader a {
119
+ background: inherit;
120
+ color: white;
121
+ }
122
+
123
+ div#classHeader td, div#fileHeader td {
124
+ background: inherit;
125
+ color: white;
126
+ }
127
+
128
+
129
+ div#fileHeader {
130
+ background: #8b4500;
131
+
132
+ }
133
+ #fileHeader h1,#fileHeader h2,#fileHeader h3,#fileHeader h4 {
134
+ margin: 0;
135
+ color: #ffdead;
136
+ }
137
+
138
+ div#classHeader {
139
+ background: #8b4500;
140
+ }
141
+ td.class-header-space-col {
142
+ width: 2em;
143
+ }
144
+
145
+
146
+ .class-mod {
147
+ font-size: 110%;
148
+ font-weight: bold;
149
+ font-family: monospace;
150
+ text-transform: lowercase;
151
+ text-align: bottom;
152
+
153
+ }
154
+ .class-name-in-header {
155
+ font-size: 150%;
156
+ font-weight: bold;
157
+ font-family: monospace;
158
+ }
159
+ .in-url {
160
+ font-size: 80%
161
+ }
162
+
163
+ div#bodyContent {
164
+ padding: 0 1.5em 0 1.5em;
165
+ }
166
+
167
+
168
+ div#description {
169
+ padding: 0.5em 1.5em;
170
+ /* background: #efefef; */
171
+ background: #ffdead;
172
+ border: 1px dotted #999;
173
+ }
174
+
175
+ div#description h1,h2,h3,h4,h5,h6 {
176
+ color: #8b4500;
177
+ background: transparent;
178
+ }
179
+
180
+ div#validator-badges {
181
+ text-align: center;
182
+ }
183
+ div#validator-badges img { border: 0; }
184
+
185
+ div#copyright {
186
+ color: #333;
187
+ background: #efefef;
188
+ font: 0.75em sans-serif;
189
+ margin-top: 5em;
190
+ margin-bottom: 0;
191
+ padding: 0.5em 2em;
192
+ }
193
+
194
+
195
+ /* === Classes =================================== */
196
+
197
+ table.header-table {
198
+ color: white;
199
+ font-size: small;
200
+ }
201
+
202
+ .type-note {
203
+ font-size: small;
204
+ color: #DEDEDE;
205
+ }
206
+
207
+ .xxsection-bar {
208
+ background: #eee;
209
+ color: #333;
210
+ padding: 3px;
211
+ }
212
+
213
+
214
+
215
+ .section-title {
216
+ background: #79a;
217
+ color: #eee;
218
+ padding: 3px;
219
+ margin-top: 2em;
220
+ margin-left: -30px;
221
+ border: 1px solid #999;
222
+ }
223
+
224
+ .top-aligned-row { vertical-align: top }
225
+ .bottom-aligned-row { vertical-align: bottom }
226
+
227
+ /* --- Context section classes ----------------------- */
228
+
229
+ .context-row { }
230
+ .context-item-name { font-family: monospace; font-weight: bold; color: black; }
231
+ .context-item-value { font-size: small; color: #448; }
232
+ .context-item-desc { color: #333; padding-left: 2em; }
233
+
234
+ /* --- Method classes -------------------------- */
235
+ .method-detail {
236
+ background: #ffdead;
237
+ padding: 0;
238
+ margin-top: 0.5em;
239
+ margin-bottom: 1em;
240
+ border: 1px dotted #ccc;
241
+ }
242
+ .method-heading {
243
+ font-family: monospace;
244
+ font-weight: bold;
245
+ font-size: 130%;
246
+ color: #191970;
247
+ /* background: #b0c4de; */
248
+ background: #ffa07a;
249
+ border-bottom: 1px solid #666;
250
+ padding: 0.2em 0.5em 0 0.5em;
251
+ }
252
+ .method-heading a {
253
+ text-decoration: none;
254
+ }
255
+ .method-heading a:hover {
256
+ text-decoration: underline;
257
+ background: inherit;
258
+ color: inherit;
259
+ }
260
+ .method-signature { color: black; background: inherit; }
261
+ .method-name { font-weight: bold; }
262
+ .method-args { font-style: italic; }
263
+
264
+ .method-description { padding: 0 0.5em 0 0.5em; }
265
+ pre.method-description
266
+ {
267
+ padding: 0 0.5em 0 0.5em;
268
+ color: #ee2222;
269
+
270
+ }
271
+ #description pre
272
+ {
273
+ padding: 0.2em 0 0.2em 0;
274
+ margin: 0.3em 0 0.3em 0;
275
+ background: #fff8dc;
276
+ border-left: 2px solid #8b6508;
277
+ /* border-bottom: 1px solid #8b6508; */
278
+ /* border-top: 1px solid #8b6508; */
279
+ }
280
+ #description h1 {
281
+ color: #8b4500;
282
+ margin: 0.5em 0 0.2em 0;
283
+ /*border: 1px solid red;*/
284
+ }
285
+ #description h2 {
286
+ color: #8b4500;
287
+ margin: 0.5em 0 0.2em 0;
288
+ /*border: 1px solid red;*/
289
+ }
290
+ #description h3 {
291
+ color: #8b4500;
292
+ margin: 0.5em 0 0.2em 0;
293
+ /*border: 1px solid red;*/
294
+ }
295
+ #description h4 {
296
+ color: #8b4500;
297
+ margin: 0.5em 0 0.2em 0;
298
+ /*border: 1px solid red;*/
299
+ }
300
+ #description p {
301
+ margin: 0.5em 0 0.2em 0;
302
+ /*border: 1px solid red;*/
303
+ }
304
+ #description ul {
305
+ margin: 0.2em 0 0.5em 0;
306
+ /* border: 1px solid red; */
307
+ }
308
+ #description a {
309
+ background: #ffdead;
310
+ /* background: #eef; */
311
+ color: #8b4500;
312
+ text-decoration: none;
313
+ }
314
+ #description a:hover { text-decoration: underline; }
315
+ .method-description a {
316
+ background: #ffdead;
317
+ /* background: #eef; */
318
+ color: #8b4500;
319
+ text-decoration: none;
320
+ }
321
+ .method-description a:hover { text-decoration: underline; }
322
+
323
+ .method-description pre
324
+ {
325
+ padding: 0.2em 0 0.2em 0;
326
+ margin: 0.3em 0 0.3em 0;
327
+ background: #fff8dc;
328
+ border-left: 2px solid #8b6508;
329
+ }
330
+
331
+ .method-description table
332
+ {
333
+ border-top: 1px solid brown;
334
+ border-bottom: 1px solid brown;
335
+ margin: 0.4em 2em 0.4em 2em;
336
+ }
337
+ .method-description li
338
+ {
339
+ padding: 0 0 0 0;
340
+ margin: 0 0 0 0;
341
+
342
+ }
343
+ .method-description p {
344
+ margin: 0.5em 0 0.2em 0;
345
+ /* border: 1px solid red; */
346
+ }
347
+ .method-description tt {
348
+ margin: 0.5em 0 0.2em 0;
349
+ font-weight: bold;
350
+ color: navy;
351
+ }
352
+ .method-description ul {
353
+ margin: 0.2em 0 0.5em 0;
354
+ /* border: 1px solid red; */
355
+ }
356
+
357
+
358
+ /* --- Source code sections -------------------- */
359
+
360
+ a.source-toggle { font-size: 90%; }
361
+ div.method-source-code {
362
+ background: #262626;
363
+ color: #ffdead;
364
+ margin: 1em;
365
+ padding: 0.5em;
366
+ border: 1px dashed #999;
367
+ overflow: hidden;
368
+ }
369
+
370
+ div.method-source-code pre { color: #ffdead; overflow: hidden; }
371
+
372
+ /* --- Ruby keyword styles --------------------- */
373
+
374
+ .standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
375
+
376
+ .ruby-constant { color: #7fffd4; background: transparent; }
377
+ .ruby-keyword { color: #00ffff; background: transparent; }
378
+ .ruby-ivar { color: #eedd82; background: transparent; }
379
+ .ruby-operator { color: #00ffee; background: transparent; }
380
+ .ruby-identifier { color: #ffdead; background: transparent; }
381
+ .ruby-node { color: #ffa07a; background: transparent; }
382
+ .ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
383
+ .ruby-regexp { color: #ffa07a; background: transparent; }
384
+ .ruby-value { color: #7fffd4; background: transparent; }
data/lib/rio.rb CHANGED
@@ -80,7 +80,7 @@ module RIO
80
80
  end
81
81
 
82
82
  def initialize_copy(*args)
83
- #p callstr("initialize_copy",*args)
83
+ #p callstr("initialize_copy",args[0].inspect)
84
84
  super
85
85
  @state = Factory.instance.clone_state(@state)
86
86
  end
@@ -99,11 +99,25 @@ module RIO
99
99
  ario
100
100
  end
101
101
 
102
- # returns the Rio#fspath, which is the path for the Rio on the underlying filesystem
102
+ # Returns the string representation of a Rio that is used by Ruby's libraries.
103
+ # For Rios that exist on the file system this is Rio#fspath.
104
+ # For FTP and HTTP Rios, this is the URL.
105
+ #
106
+ # rio('/a/b/c').to_s ==> "/a/b/c"
107
+ # rio('b/c').to_s ==> "b/c"
108
+ # rio('C:/b/c').to_s ==> "C:/b/c"
109
+ # rio('//ahost/a/b').to_s ==> "//ahost/a/b"
110
+ # rio('file://ahost/a/b').to_s ==> "//ahost/a/b"
111
+ # rio('file:///a/b').to_s ==> "/a/b"
112
+ # rio('file://localhost/a/b').to_s ==> "/a/b"
113
+ # rio('http://ahost/index.html').to_s ==> "http://ahost/index.html"
114
+ #
103
115
  def to_s() target.to_s end
116
+
104
117
  alias :to_str :to_s
105
118
  def dup
106
- self.class.new(self.to_s)
119
+ #p callstr('dup',self)
120
+ self.class.new(self.to_rl)
107
121
  end
108
122
 
109
123
  def method_missing(sym,*args,&block) #:nodoc:
@@ -130,9 +144,11 @@ module RIO
130
144
 
131
145
  protected
132
146
 
133
- def target() @state.target end
147
+ def target() #:nodoc:
148
+ @state.target
149
+ end
134
150
 
135
- def callstr(func,*args)
151
+ def callstr(func,*args) #:nodoc:
136
152
  self.class.to_s+'.'+func.to_s+'('+args.join(',')+')'
137
153
  end
138
154