rio 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +171 -0
- data/README +3 -16
- data/RUNME.1st.rb +1 -3
- data/Rakefile +10 -7
- data/VERSION +1 -1
- data/doc/ANNOUNCE +1 -1
- data/doc/RELEASE_NOTES +3 -4
- data/ex/colx.rb +8 -0
- data/ex/findinruby +16 -0
- data/ex/findruby +15 -0
- data/ex/passwd_report.rb +8 -0
- data/ex/prompt.rb +25 -0
- data/ex/rgb.txt.gz +0 -0
- data/ex/riocat +35 -0
- data/ex/riogunzip +31 -0
- data/ex/riogzip +24 -0
- data/ex/rioprompt.rb +6 -0
- data/ex/targz2zip +17 -0
- data/ex/tolf +11 -0
- data/lib/rio.rb +0 -3
- data/lib/rio/construct.rb +14 -20
- data/lib/rio/dir.rb +2 -2
- data/lib/rio/doc/INTRO.rb +12 -16
- data/lib/rio/ext.rb +2 -1
- data/lib/rio/ext/csv.rb +5 -1
- data/lib/rio/ext/yaml.rb +11 -12
- data/lib/rio/filter.rb +1 -1
- data/lib/rio/ftp.rb +1 -1
- data/lib/rio/if/dir.rb +2 -2
- data/lib/rio/if/grande.rb +7 -1
- data/lib/rio/if/yaml.rb +1 -1
- data/lib/rio/ioh.rb +11 -1
- data/lib/rio/ops/construct.rb +11 -10
- data/lib/rio/ops/dir.rb +38 -19
- data/lib/rio/rl/ioi.rb +2 -2
- data/lib/rio/scheme/temp.rb +2 -2
- data/lib/rio/state.rb +1 -1
- data/lib/rio/stream/open.rb +9 -6
- data/lib/rio/util.rb +49 -0
- data/lib/rio/version.rb +1 -1
- data/test/tc/all.rb +3 -1
- data/test/tc/cd1.rb +0 -3
- data/test/tc/clearsel.rb +1 -2
- data/test/tc/copy-from.rb +0 -3
- data/test/tc/copy-to.rb +0 -3
- data/test/tc/copyarray.rb +1 -4
- data/test/tc/copydir.rb +0 -3
- data/test/tc/copydirlines.rb +0 -3
- data/test/tc/copynonex.rb +0 -3
- data/test/tc/csv.rb +0 -3
- data/test/tc/dir.rb +0 -3
- data/test/tc/dir_iter.rb +384 -0
- data/test/tc/dirautoclose.rb +4 -7
- data/test/tc/dirent.rb +3 -5
- data/test/tc/dirss.rb +2 -5
- data/test/tc/each.rb +3 -3
- data/test/tc/each_break.rb +17 -28
- data/test/tc/edf.rb +1 -2
- data/test/tc/entary.rb +1 -4
- data/test/tc/expand_path.rb +1 -2
- data/test/tc/ext.rb +0 -3
- data/test/tc/fileno.rb +1 -2
- data/test/tc/get.rb +151 -0
- data/test/tc/lineno.rb +1 -2
- data/test/tc/methods.rb +1 -1
- data/test/tc/misc.rb +1 -5
- data/test/tc/nolines.rb +3 -4
- data/test/tc/noqae.rb +1 -4
- data/test/tc/pa.rb +1 -2
- data/test/tc/pathop.rb +0 -3
- data/test/tc/paths.rb +1 -3
- data/test/tc/qae.rb +1 -2
- data/test/tc/qae_riovar.rb +1 -2
- data/test/tc/records.rb +1 -2
- data/test/tc/rename.rb +1 -3
- data/test/tc/rename_assign.rb +0 -3
- data/test/tc/riorl.rb +82 -52
- data/test/tc/selnosel.rb +0 -3
- data/test/tc/sub.rb +0 -3
- data/test/tc/symlink.rb +1 -2
- data/test/tc/symlink0.rb +1 -2
- data/test/tc/symlink1.rb +1 -2
- data/test/tc/temp.rb +0 -3
- data/test/tc/tempdir.rb +0 -3
- data/test/tc/tempfile.rb +0 -3
- data/test/tc/testcase.rb +9 -4
- data/test/tc/yaml.rb +11 -1
- metadata +141 -386
- data/doc/rdoc/classes/Kernel.html +0 -181
- data/doc/rdoc/classes/Kernel.src/M000214.html +0 -18
- data/doc/rdoc/classes/RIO.html +0 -621
- data/doc/rdoc/classes/RIO.src/M000001.html +0 -18
- data/doc/rdoc/classes/RIO.src/M000002.html +0 -18
- data/doc/rdoc/classes/RIO.src/M000003.html +0 -18
- data/doc/rdoc/classes/RIO/Doc.html +0 -138
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1040
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1613
- data/doc/rdoc/classes/RIO/Doc/MISC.html +0 -443
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -338
- data/doc/rdoc/classes/RIO/IF.html +0 -114
- data/doc/rdoc/classes/RIO/IF/CSV.html +0 -202
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000004.html +0 -19
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000005.html +0 -16
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000006.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.html +0 -499
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000007.html +0 -19
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000008.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000009.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000010.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000011.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000012.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000013.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000014.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000015.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000016.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000017.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.html +0 -7121
- data/doc/rdoc/classes/RIO/Rio.src/M000018.html +0 -18
- data/doc/rdoc/classes/RIO/Rio.src/M000019.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000020.html +0 -27
- data/doc/rdoc/classes/RIO/Rio.src/M000021.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000023.html +0 -19
- data/doc/rdoc/classes/RIO/Rio.src/M000024.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000025.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000026.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000027.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000028.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000029.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000030.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000031.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000032.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000033.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000034.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000035.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000036.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000037.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000038.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000039.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000040.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000041.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000042.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000043.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000044.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000045.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000046.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000047.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000048.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000049.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000050.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000051.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000052.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000053.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000054.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000055.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000056.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000057.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000058.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000059.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000060.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000061.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000062.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000063.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000064.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000065.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000066.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000067.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000068.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000069.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000070.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000071.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000072.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000073.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000074.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000075.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000076.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000077.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000078.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000079.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000080.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000081.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000082.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000083.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000084.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000085.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000086.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000087.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000088.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000089.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000090.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000091.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000092.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000093.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000094.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000095.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000096.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000097.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000098.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000099.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000100.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000101.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000102.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000103.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000104.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000105.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000106.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000107.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000108.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000109.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000110.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000111.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000112.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000113.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000114.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000115.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000116.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000117.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000118.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000119.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000120.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000121.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000122.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000123.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000124.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000125.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000126.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000127.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000128.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000129.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000130.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000131.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000132.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000133.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000134.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000135.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000136.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000137.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000138.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000139.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000140.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000141.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000142.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000143.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000144.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000145.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000146.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000147.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000148.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000149.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000150.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000151.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000152.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000153.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000154.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000155.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000156.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000157.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000158.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000159.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000160.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000161.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000162.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000163.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000164.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000165.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000166.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000167.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000168.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000169.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000170.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000171.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000172.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000173.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000174.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000175.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000176.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000177.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000178.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000179.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000180.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000181.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000182.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000183.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000184.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000185.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000186.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000187.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000188.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000189.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000190.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000191.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000192.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000193.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000194.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000195.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000196.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000197.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000198.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000199.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000200.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000201.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000202.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000203.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000204.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000205.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000206.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000207.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000208.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000209.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000210.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000211.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000212.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000213.html +0 -16
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/README.html +0 -243
- data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -142
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/MISC_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/csv_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/stream_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/string_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/temp_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/if/yaml_rb.html +0 -135
- data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
- data/doc/rdoc/files/lib/rio_rb.html +0 -154
- data/doc/rdoc/fr_class_index.html +0 -37
- data/doc/rdoc/fr_file_index.html +0 -49
- data/doc/rdoc/fr_method_index.html +0 -241
- data/doc/rdoc/index.html +0 -24
- data/doc/rdoc/rdoc-style.css +0 -384
- data/test/methods/path.rb +0 -12
data/ex/riogunzip
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rio'
|
3
|
+
# riogzip: reads from stdin, gzips and writes it to stdout
|
4
|
+
# example use:
|
5
|
+
# riogunzip < afile.txt.gz
|
6
|
+
#
|
7
|
+
# explanation:
|
8
|
+
#
|
9
|
+
# rio(?-).gzip
|
10
|
+
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
11
|
+
# .gzip: filter the input or output through Zlib:Gzip[Reader or Writer]
|
12
|
+
#
|
13
|
+
# rio(?-)
|
14
|
+
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
15
|
+
#
|
16
|
+
# <
|
17
|
+
# rio copy operator indicating the direction of data
|
18
|
+
# pointed in this direction the rio on the right is read from and the one on the left is
|
19
|
+
# written. (or stdin and stdout respectively)
|
20
|
+
#
|
21
|
+
rio(?-).gzip > rio(?-)
|
22
|
+
|
23
|
+
# could be written this way
|
24
|
+
# rio(?-) < rio(?-).gzip
|
25
|
+
#
|
26
|
+
# this is similar, but reads the entire file in before writing it out
|
27
|
+
# rio(?-).print!( rio(?-).gzip.contents )
|
28
|
+
#
|
29
|
+
#rio(?-).gzip.each_record do |rec|
|
30
|
+
# rio(?-).print(rec)
|
31
|
+
#end
|
data/ex/riogzip
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'rio'
|
3
|
+
# riogzip: reads from stdin, gzips and writes it to stdout
|
4
|
+
# example use:
|
5
|
+
# riogzip < afile.txt > afile.txt.gz
|
6
|
+
#
|
7
|
+
# explanation:
|
8
|
+
#
|
9
|
+
# rio(?-).gzip
|
10
|
+
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
11
|
+
# .gzip: filter the input or output through Zlib:Gzip[Reader or Writer]
|
12
|
+
#
|
13
|
+
# rio(?-)
|
14
|
+
# rio(?-): a rio that will be connected to stdin or stdout depending how it is used
|
15
|
+
#
|
16
|
+
# <
|
17
|
+
# rio copy operator indicating the direction of data
|
18
|
+
|
19
|
+
rio(?-).gzip < rio(?-)
|
20
|
+
|
21
|
+
#
|
22
|
+
# could also be written:
|
23
|
+
# rio(?-) > rio(?-).gzip
|
24
|
+
#
|
data/ex/rioprompt.rb
ADDED
data/ex/targz2zip
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/usr/local/bin/ruby
|
2
|
+
|
3
|
+
require 'rio'
|
4
|
+
require 'rio/argv'
|
5
|
+
|
6
|
+
# Create a zip archive from a gzipped tar archive.
|
7
|
+
# This depends on the GNU programs 'tar' and 'zip' being available in your PATH
|
8
|
+
|
9
|
+
TAR='tar'
|
10
|
+
ZIP='zip'
|
11
|
+
|
12
|
+
RIO.ARGV.each { |f|
|
13
|
+
f.ext('.tar.gz') if f =~ /\.tar\.gz$/
|
14
|
+
rio(??).chdir {
|
15
|
+
rio(?-,"#{TAR} xvzkf #{f.abs}") | "#{ZIP} -@ #{f.abs.dirname/f.basename+'.zip'}" | ?-
|
16
|
+
}
|
17
|
+
}
|
data/ex/tolf
ADDED
data/lib/rio.rb
CHANGED
data/lib/rio/construct.rb
CHANGED
@@ -36,16 +36,8 @@
|
|
36
36
|
|
37
37
|
|
38
38
|
module RIO
|
39
|
-
|
40
|
-
|
41
|
-
def stderr(*args) rio(:stderr,*args) end
|
42
|
-
def temp(*args) rio(:temp,*args) end
|
43
|
-
def tempfile(*args) rio(:tempfile,*args) end
|
44
|
-
def tempdir(*args) rio(:tempdir,*args) end
|
45
|
-
def tcp(*args) rio(:tcp,*args) end
|
46
|
-
def cmdio(*args) rio(:cmdio,*args) end
|
47
|
-
def sysio(*args) rio(:sysio,*args) end
|
48
|
-
def fd(*args) rio(:fd,*args) end
|
39
|
+
require 'rio/ops/construct'
|
40
|
+
include Ops::Construct
|
49
41
|
|
50
42
|
module_function :strio
|
51
43
|
module_function :stdio
|
@@ -55,21 +47,23 @@ module RIO
|
|
55
47
|
module_function :tempdir
|
56
48
|
module_function :tcp
|
57
49
|
module_function :cmdio
|
50
|
+
module_function :cmdpipe
|
58
51
|
module_function :sysio
|
59
52
|
module_function :fd
|
60
53
|
end
|
61
54
|
|
62
55
|
module RIO
|
63
56
|
class Rio
|
64
|
-
def self.strio(*args) rio(:strio,*args) end
|
65
|
-
def self.stdio(*args) rio(:stdio,*args) end
|
66
|
-
def self.stderr(*args) rio(:stderr,*args) end
|
67
|
-
def self.temp(*args) rio(:temp,*args) end
|
68
|
-
def self.tempfile(*args) rio(:tempfile,*args) end
|
69
|
-
def self.tempdir(*args) rio(:tempdir,*args) end
|
70
|
-
def self.tcp(*args) rio(:tcp,*args) end
|
71
|
-
def self.cmdio(*args) rio(:cmdio,*args) end
|
72
|
-
def self.
|
73
|
-
def self.
|
57
|
+
def self.strio(*args,&block) rio(:strio,*args,&block) end
|
58
|
+
def self.stdio(*args,&block) rio(:stdio,*args,&block) end
|
59
|
+
def self.stderr(*args,&block) rio(:stderr,*args,&block) end
|
60
|
+
def self.temp(*args,&block) rio(:temp,*args,&block) end
|
61
|
+
def self.tempfile(*args,&block) rio(:tempfile,*args,&block) end
|
62
|
+
def self.tempdir(*args,&block) rio(:tempdir,*args,&block) end
|
63
|
+
def self.tcp(*args,&block) rio(:tcp,*args,&block) end
|
64
|
+
def self.cmdio(*args,&block) rio(:cmdio,*args,&block) end
|
65
|
+
def self.cmdpipe(*args,&block) rio(:cmdpipe,*args,&block) end
|
66
|
+
def self.sysio(*args,&block) rio(:sysio,*args,&block) end
|
67
|
+
def self.fd(*args,&block) rio(:fd,*args,&block) end
|
74
68
|
end
|
75
69
|
end
|
data/lib/rio/dir.rb
CHANGED
@@ -53,7 +53,7 @@ module RIO
|
|
53
53
|
include Ops::Dir::NonExisting
|
54
54
|
def check?() not self.exist? end
|
55
55
|
def when_missing(sym,*args) gofigure(sym,*args) end
|
56
|
-
end
|
56
|
+
end
|
57
57
|
|
58
58
|
class Existing < Base
|
59
59
|
include Ops::Dir::Existing
|
@@ -64,7 +64,7 @@ module RIO
|
|
64
64
|
self.rl = RIO::Dir::RL.new(self.to_uri)
|
65
65
|
become 'Dir::Open'
|
66
66
|
end
|
67
|
-
end
|
67
|
+
end
|
68
68
|
class Open < Base
|
69
69
|
def check?() true end
|
70
70
|
def open(m=nil,*args)
|
data/lib/rio/doc/INTRO.rb
CHANGED
@@ -171,7 +171,7 @@ to stdin or stdout until an I/O operation is specified.
|
|
171
171
|
rio(?")
|
172
172
|
* create a Rio that refers to a string of your choosing
|
173
173
|
astring = ""
|
174
|
-
rio(?",
|
174
|
+
rio(?",astring)
|
175
175
|
|
176
176
|
===== Creating a Rio that refers to a Temporary object
|
177
177
|
|
@@ -182,13 +182,7 @@ or a directory, depending on how you use it:
|
|
182
182
|
rio(??)
|
183
183
|
rio(??,basename='rio',tmpdir=Dir::tmpdir)
|
184
184
|
|
185
|
-
To force it to become a file
|
186
|
-
rio(??).file
|
187
|
-
or just write to it.
|
188
|
-
|
189
185
|
To force it to become a directory:
|
190
|
-
rio(??).dir
|
191
|
-
or
|
192
186
|
rio(??).mkdir
|
193
187
|
or
|
194
188
|
rio(??).chdir
|
@@ -289,10 +283,10 @@ Rio#join and Rio#/ do the same thing, but the operator version
|
|
289
283
|
|
290
284
|
The arguments to +join+ and <tt>/</tt> do not need to be Rios, of course
|
291
285
|
ario = rio('adir')
|
292
|
-
ario/'afile.rb' #=> rio('
|
293
|
-
ario.join('b','c','d') #=> rio('
|
294
|
-
ario/'b'/'c'/'d' #=> rio('
|
295
|
-
ario /= 'e' #=> rio('
|
286
|
+
ario/'afile.rb' #=> rio('adir/afile.rb')
|
287
|
+
ario.join('b','c','d') #=> rio('adir/b/c/d')
|
288
|
+
ario/'b'/'c'/'d' #=> rio('adir/b/c/d')
|
289
|
+
ario /= 'e' #=> rio('adir/b/c/d/e')
|
296
290
|
|
297
291
|
==== Manipulating a Rio path by treating it as a string.
|
298
292
|
|
@@ -335,19 +329,19 @@ list of all of Rio's configuration methods.
|
|
335
329
|
|
336
330
|
Rio's configuration mehods fall into three categories.
|
337
331
|
|
338
|
-
|
332
|
+
* I/O manipulators
|
339
333
|
|
340
|
-
An
|
334
|
+
An I/O manipulator alters the behavior of a Rio's underlying IO
|
341
335
|
object. These affect the behaviour of I/O methods which are
|
342
336
|
forwarded directly to the underlying object as well as the grande
|
343
337
|
I/O methods.
|
344
338
|
|
345
|
-
|
339
|
+
* Grande configuration methods
|
346
340
|
|
347
341
|
The grande configuration methods affect the behaviour of Rio's
|
348
342
|
grande I/O methods
|
349
343
|
|
350
|
-
|
344
|
+
* Grande selection methods
|
351
345
|
|
352
346
|
The grande selection methods select what data is returned by Rio's
|
353
347
|
grande I/O methods
|
@@ -849,7 +843,7 @@ mode selection.
|
|
849
843
|
|
850
844
|
Rio uses the CSV class from the Ruby standard library to provide
|
851
845
|
support for reading and writing comma-separated-value files. Normally
|
852
|
-
using <tt>(
|
846
|
+
using <tt>(skip)records</tt> is identical to <tt>(skip)lines</tt> because
|
853
847
|
while +records+ only selects and does not specify the record-type,
|
854
848
|
+lines+ is the default.
|
855
849
|
|
@@ -936,6 +930,8 @@ operators:
|
|
936
930
|
|
937
931
|
==== YAML mode
|
938
932
|
|
933
|
+
<b>YAML Mode is currently in work. Please disregard this section</b>
|
934
|
+
|
939
935
|
Rio uses the YAML class from the Ruby standard library to provide
|
940
936
|
support for reading and writing YAML files. Normally
|
941
937
|
using <tt>(skip)records</tt> is identical to <tt>(skip)lines</tt> because
|
data/lib/rio/ext.rb
CHANGED
@@ -37,9 +37,10 @@
|
|
37
37
|
|
38
38
|
require 'rio/ext/csv'
|
39
39
|
require 'rio/ext/yaml'
|
40
|
+
require 'rio/util'
|
40
41
|
module RIO
|
41
42
|
module Ext #:nodoc: all
|
42
|
-
OUTPUT_SYMS = (CSV::Output.instance_methods + YAML::Output.instance_methods)
|
43
|
+
OUTPUT_SYMS = Util::build_sym_hash(CSV::Output.instance_methods + YAML::Output.instance_methods)
|
43
44
|
|
44
45
|
module Cx
|
45
46
|
include CSV::Cx
|
data/lib/rio/ext/csv.rb
CHANGED
@@ -174,7 +174,11 @@ module RIO
|
|
174
174
|
dat = _l2a(line,fs,rs)
|
175
175
|
names = cnames(dat.length)
|
176
176
|
dat = trim(dat)
|
177
|
-
|
177
|
+
rw = {}
|
178
|
+
(0...names.length).each { |i|
|
179
|
+
rw[names[i]] = dat[i]
|
180
|
+
}
|
181
|
+
rw
|
178
182
|
end
|
179
183
|
|
180
184
|
def _rec_to_s_proc(fs,rs)
|
data/lib/rio/ext/yaml.rb
CHANGED
@@ -39,7 +39,7 @@ require 'yaml'
|
|
39
39
|
|
40
40
|
module RIO
|
41
41
|
module Ext
|
42
|
-
module YAML
|
42
|
+
module YAML #:nodoc: all
|
43
43
|
module Cx
|
44
44
|
def yaml(&block)
|
45
45
|
cxx('yaml',true,&block)
|
@@ -73,10 +73,13 @@ module RIO
|
|
73
73
|
else super
|
74
74
|
end
|
75
75
|
end
|
76
|
-
def cpto_io_(
|
77
|
-
self.
|
78
|
-
|
79
|
-
|
76
|
+
def cpto_io_(ioarg)
|
77
|
+
recs = self.to_a
|
78
|
+
if recs.size == 1
|
79
|
+
YAML.dump(recs[0],ioarg)
|
80
|
+
else
|
81
|
+
YAML.dump(recs,ioarg)
|
82
|
+
end
|
80
83
|
end
|
81
84
|
def cpto_obj_(arg)
|
82
85
|
self.each { |obj|
|
@@ -89,9 +92,7 @@ module RIO
|
|
89
92
|
}
|
90
93
|
end
|
91
94
|
def cpto_string_(string)
|
92
|
-
self.
|
93
|
-
string << el.to_yaml + $/
|
94
|
-
}
|
95
|
+
string << YAML.dump_stream(self.contents)
|
95
96
|
end
|
96
97
|
def get_(arg=nil)
|
97
98
|
case cx['stream_itertype']
|
@@ -141,7 +142,7 @@ module RIO
|
|
141
142
|
|
142
143
|
def cpfrom_(arg)
|
143
144
|
case arg
|
144
|
-
when ::Array then cpfrom_array_(arg)
|
145
|
+
#when ::Array then cpfrom_array_(arg)
|
145
146
|
when Rio,::IO,::StringIO then super
|
146
147
|
else self.put_(arg)
|
147
148
|
end
|
@@ -154,9 +155,7 @@ module RIO
|
|
154
155
|
self
|
155
156
|
end
|
156
157
|
def cpfrom_rio_(ario)
|
157
|
-
ario
|
158
|
-
self.put_(el)
|
159
|
-
}
|
158
|
+
ioh.puts(::YAML.dump_stream(*ario[]))
|
160
159
|
self
|
161
160
|
end
|
162
161
|
def put_(obj)
|
data/lib/rio/filter.rb
CHANGED
@@ -44,7 +44,7 @@ module RIO
|
|
44
44
|
def gets(*args) super.__send__(:#{sym}) end
|
45
45
|
def readline(*args) super.__send__(:#{sym}) end
|
46
46
|
def each_line(*args,&block) super { |l| yield l.__send__(:#{sym}) } end
|
47
|
-
def readlines(*args) super.map(
|
47
|
+
def readlines(*args) super.map{|el| el.__send__(:#{sym})} end
|
48
48
|
end
|
49
49
|
include IOE
|
50
50
|
end
|
data/lib/rio/ftp.rb
CHANGED
@@ -133,7 +133,7 @@ module RIO
|
|
133
133
|
self
|
134
134
|
end
|
135
135
|
def cpto_err(sym,*args)
|
136
|
-
cs = "#{sym}("+args.map
|
136
|
+
cs = "#{sym}("+args.map{|el| el.to_s}.join(',')+")"
|
137
137
|
msg = "Go Figure! rio('#{self.to_s}').#{cs} Failed"
|
138
138
|
|
139
139
|
raise ArgumentError,"#{msg}\nArgument to '#{sym}' must be a Rio was a '#{args[0].class}'\n"
|
data/lib/rio/if/dir.rb
CHANGED
@@ -55,7 +55,7 @@ module RIO
|
|
55
55
|
# }
|
56
56
|
# # the working directory here is /home
|
57
57
|
#
|
58
|
-
def chdir(&block) target.chdir(&block) end
|
58
|
+
def chdir(&block) target.chdir(&block);self end
|
59
59
|
|
60
60
|
|
61
61
|
|
@@ -66,7 +66,7 @@ module RIO
|
|
66
66
|
# a directory structure using a Rio. See Rio#each and Rio#all.
|
67
67
|
#
|
68
68
|
# Calls the block passing a Rio for each entry found. The Rio inherits
|
69
|
-
# attrubutes from the directory Rio.
|
69
|
+
# file attrubutes from the directory Rio.
|
70
70
|
#
|
71
71
|
# Returns itself
|
72
72
|
#
|
data/lib/rio/if/grande.rb
CHANGED
@@ -601,7 +601,8 @@ module RIO
|
|
601
601
|
#
|
602
602
|
def getline() target.getline() end
|
603
603
|
|
604
|
-
# Reads and returns the next record from a Rio,
|
604
|
+
# Reads and returns the next record or entry from a Rio,
|
605
|
+
# honoring the grande selection methods.
|
605
606
|
#
|
606
607
|
# Returns nil on end of file.
|
607
608
|
#
|
@@ -612,6 +613,11 @@ module RIO
|
|
612
613
|
# line11 = ario.get
|
613
614
|
# line12 = ario.get
|
614
615
|
# a_nil = ario.get
|
616
|
+
#
|
617
|
+
# ario = rio('adir').entries('*.txt')
|
618
|
+
# ent1 = ario.get
|
619
|
+
# ent2 = ario.get
|
620
|
+
#
|
615
621
|
def get() target.get() end
|
616
622
|
|
617
623
|
# Writes a single record to a Rio
|
data/lib/rio/if/yaml.rb
CHANGED
data/lib/rio/ioh.rb
CHANGED
@@ -129,9 +129,19 @@ module RIO
|
|
129
129
|
end
|
130
130
|
end
|
131
131
|
def closed?() @ios.nil? end
|
132
|
+
def each(&block)
|
133
|
+
while filename = handle.read
|
134
|
+
yield filename
|
135
|
+
end
|
136
|
+
end
|
137
|
+
def each0(&block)
|
138
|
+
handle.each { |filename|
|
139
|
+
yield filename
|
140
|
+
}
|
141
|
+
end
|
132
142
|
extend Forwardable
|
133
143
|
def_instance_delegators(:handle,
|
134
|
-
:
|
144
|
+
:read,
|
135
145
|
:pos,:pos=,:tell,:seek,:rewind)
|
136
146
|
end
|
137
147
|
end
|
data/lib/rio/ops/construct.rb
CHANGED
@@ -38,16 +38,17 @@
|
|
38
38
|
module RIO
|
39
39
|
module Ops
|
40
40
|
module Construct
|
41
|
-
def strio(*args)
|
42
|
-
def stdio(*args)
|
43
|
-
def stderr(*args)
|
44
|
-
def temp(*args)
|
45
|
-
def tempfile(*args)
|
46
|
-
def tempdir(*args)
|
47
|
-
def tcp(*args)
|
48
|
-
def cmdio(*args)
|
49
|
-
def
|
50
|
-
def
|
41
|
+
def strio(*args,&block) Rio.rio(:strio,*args,&block) end
|
42
|
+
def stdio(*args,&block) Rio.rio(:stdio,*args,&block) end
|
43
|
+
def stderr(*args,&block) Rio.rio(:stderr,*args,&block) end
|
44
|
+
def temp(*args,&block) Rio.rio(:temp,*args,&block) end
|
45
|
+
def tempfile(*args,&block) Rio.rio(:tempfile,*args,&block) end
|
46
|
+
def tempdir(*args,&block) Rio.rio(:tempdir,*args,&block) end
|
47
|
+
def tcp(*args,&block) Rio.rio(:tcp,*args,&block) end
|
48
|
+
def cmdio(*args,&block) Rio.rio(:cmdio,*args,&block) end
|
49
|
+
def cmdpipe(*args,&block) Rio.rio(:cmdpipe,*args,&block) end
|
50
|
+
def sysio(*args,&block) Rio.rio(:sysio,*args,&block) end
|
51
|
+
def fd(*args,&block) Rio.rio(:fd,*args,&block) end
|
51
52
|
end
|
52
53
|
end
|
53
54
|
end
|