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/test/tc/dirautoclose.rb
CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
|
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'rio'
|
8
|
-
require 'test/unit'
|
9
|
-
require 'test/unit/testsuite'
|
10
|
-
require 'extensions/symbol'
|
11
8
|
require 'tc/testcase'
|
12
9
|
|
13
10
|
class TC_dirss < Test::Unit::TestCase
|
@@ -35,9 +32,9 @@ class TC_dirss < Test::Unit::TestCase
|
|
35
32
|
indir = rio('tdir')
|
36
33
|
#indir = @d[1]
|
37
34
|
$trace_states = true
|
38
|
-
p indir.map
|
35
|
+
p indir.map{|el| el.to_s}
|
39
36
|
ary = indir[]
|
40
|
-
#p ary.map
|
37
|
+
#p ary.map{|el| el.to_s}
|
41
38
|
p indir,indir.ioh
|
42
39
|
newext = '.txt'
|
43
40
|
indir.files.rename.each { |ent|
|
@@ -55,9 +52,9 @@ class TC_dirss < Test::Unit::TestCase
|
|
55
52
|
indir = rio('tdir')
|
56
53
|
#indir = @d[1]
|
57
54
|
$trace_states = true
|
58
|
-
p indir.map
|
55
|
+
p indir.map{|el| el.to_s}
|
59
56
|
ary = indir[]
|
60
|
-
#p ary.map
|
57
|
+
#p ary.map{|el| el.to_s}
|
61
58
|
p indir,indir.ioh
|
62
59
|
newext = '.txt'
|
63
60
|
indir.files.rename.each { |ent|
|
data/test/tc/dirent.rb
CHANGED
@@ -7,11 +7,9 @@ end
|
|
7
7
|
require 'rio'
|
8
8
|
require 'test/unit'
|
9
9
|
require 'test/unit/testsuite'
|
10
|
-
require 'extensions/object'
|
11
10
|
|
12
11
|
class TC_RIO_dirent < Test::Unit::TestCase
|
13
|
-
|
14
|
-
def smap(a) a.map( &:to_s ) end
|
12
|
+
def smap(a) a.map { |el| el.to_s } end
|
15
13
|
def tdir() rio(%w/qp dirent/) end
|
16
14
|
def mkafile(*args)
|
17
15
|
file = rio(*args)
|
@@ -83,7 +81,7 @@ class TC_RIO_dirent < Test::Unit::TestCase
|
|
83
81
|
re = /1/
|
84
82
|
exp = []
|
85
83
|
rio('d0').entries(re).each { |ent| exp << ent }
|
86
|
-
rio('d0').files.each { |ent| exp << ent unless
|
84
|
+
rio('d0').files.each { |ent| exp << ent unless exp.include?(ent) }
|
87
85
|
|
88
86
|
ans = []
|
89
87
|
rio('d0').entries(re).files.each { |ent| ans << ent }
|
@@ -94,7 +92,7 @@ class TC_RIO_dirent < Test::Unit::TestCase
|
|
94
92
|
re = /1/
|
95
93
|
exp = []
|
96
94
|
rio('d0').entries(re).each { |ent| exp << ent }
|
97
|
-
rio('d0').dirs.each { |ent| exp << ent unless
|
95
|
+
rio('d0').dirs.each { |ent| exp << ent unless exp.include?(ent) }
|
98
96
|
|
99
97
|
|
100
98
|
ans = []
|
data/test/tc/dirss.rb
CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
|
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'rio'
|
8
|
-
require 'test/unit'
|
9
|
-
require 'test/unit/testsuite'
|
10
|
-
require 'extensions/symbol'
|
11
8
|
require 'tc/testcase'
|
12
9
|
|
13
10
|
class TC_dirss < Test::Unit::TestCase
|
@@ -69,9 +66,9 @@ class TC_dirss < Test::Unit::TestCase
|
|
69
66
|
indir = rio('tdir')
|
70
67
|
#indir = @d[1]
|
71
68
|
$trace_states = true
|
72
|
-
p indir.map
|
69
|
+
p indir.map{|el| el.to_s}
|
73
70
|
ary = indir[]
|
74
|
-
#p ary.map
|
71
|
+
#p ary.map{|el| el.to_s}
|
75
72
|
p indir,indir.ioh
|
76
73
|
newext = '.txt'
|
77
74
|
indir.files.rename.each { |ent|
|
data/test/tc/each.rb
CHANGED
@@ -53,15 +53,15 @@ class TC_RIO_each < Test::Unit::TestCase
|
|
53
53
|
|
54
54
|
ans = []
|
55
55
|
rio('basic.txt').chomp.lines(/2/).each { |line| ans.push(line) }
|
56
|
-
assert_equal([expa[1],expa[4],expa[6]].map
|
56
|
+
assert_equal([expa[1],expa[4],expa[6]].map{|el| el.chomp},ans)
|
57
57
|
|
58
58
|
ans = []
|
59
59
|
rio('basic.txt').chomp.lines(/2/) { |line| ans.push(line) }
|
60
|
-
assert_equal([expa[1],expa[4],expa[6]].map
|
60
|
+
assert_equal([expa[1],expa[4],expa[6]].map{|el| el.chomp},ans)
|
61
61
|
|
62
62
|
ans = []
|
63
63
|
rio('basic.txt').lines(/2/).chomp { |line| ans.push(line) }
|
64
|
-
assert_equal([expa[1],expa[4],expa[6]].map
|
64
|
+
assert_equal([expa[1],expa[4],expa[6]].map{|el| el.chomp},ans)
|
65
65
|
|
66
66
|
|
67
67
|
expb = ["L1: 0:0\nL2: 3:2\nL3: 6:4\nL4: 9:6\n", "L5: 12:8\nL6: 15:10\nL7: 18:12\nLin", "e Z\n"]
|
data/test/tc/each_break.rb
CHANGED
@@ -5,9 +5,6 @@ if $0 == __FILE__
|
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'rio'
|
8
|
-
require 'test/unit'
|
9
|
-
require 'test/unit/testsuite'
|
10
|
-
require 'extensions/symbol'
|
11
8
|
require 'tc/testcase'
|
12
9
|
|
13
10
|
class TC_each_break < Test::Unit::TestCase
|
@@ -71,7 +68,7 @@ class TC_each_break < Test::Unit::TestCase
|
|
71
68
|
assert_array_equal(@dirs,ans)
|
72
69
|
|
73
70
|
end
|
74
|
-
def
|
71
|
+
def test_dir_sel
|
75
72
|
ans = []
|
76
73
|
@dir.entries.each { |ent| ans << ent; break }
|
77
74
|
assert_array_equal(@ents[0..0],ans)
|
@@ -131,48 +128,40 @@ class TC_each_break < Test::Unit::TestCase
|
|
131
128
|
assert_equal(@e2[0..0],ans)
|
132
129
|
|
133
130
|
end
|
134
|
-
def
|
131
|
+
def test_dir_readmore
|
135
132
|
ans = []
|
136
133
|
### LOOK INTO THIS
|
137
134
|
### Something changed in ruby 1.8.3
|
138
135
|
### See the file q/dir_readmore.q for a simple example
|
139
|
-
@d1
|
140
|
-
|
136
|
+
dir1 = rio(@d1)
|
137
|
+
dir1.each { |ent|
|
141
138
|
ans << ent;
|
142
139
|
break
|
143
140
|
}
|
144
|
-
assert(
|
141
|
+
assert(dir1.open?)
|
145
142
|
assert_equal(@e1[0..0],ans)
|
146
143
|
|
147
|
-
# #$trace_states = true
|
148
|
-
# ans = []
|
149
|
-
# @d1.each { |ent|
|
150
|
-
# p ent
|
151
|
-
# ans << ent;
|
152
|
-
# break
|
153
|
-
# }
|
154
|
-
# assert(@d1.closed?)
|
155
|
-
# assert_equal([],ans)
|
156
|
-
# $trace_states = false
|
157
|
-
|
158
144
|
ans = []
|
159
|
-
|
160
|
-
|
161
|
-
|
145
|
+
#$trace_states = true
|
146
|
+
dir1.each { |ent| ans << ent; break }
|
147
|
+
assert(dir1.closed?)
|
148
|
+
assert_equal([],ans)
|
149
|
+
|
150
|
+
dir2 = rio(@d2)
|
162
151
|
|
163
152
|
ans = []
|
164
|
-
|
165
|
-
assert(
|
153
|
+
dir2.each { |ent| ans << ent; break }
|
154
|
+
assert(dir2.open?)
|
166
155
|
assert_equal(@e2[0..0],ans)
|
167
156
|
|
168
157
|
ans = []
|
169
|
-
|
170
|
-
assert(
|
158
|
+
dir2.each { |ent| ans << ent; break }
|
159
|
+
assert(dir2.open?)
|
171
160
|
assert_equal(@e2[1..1],ans)
|
172
161
|
|
173
162
|
ans = []
|
174
|
-
|
175
|
-
assert(
|
163
|
+
dir2.each { |ent| ans << ent; break }
|
164
|
+
assert(dir2.closed?)
|
176
165
|
assert_equal([],ans)
|
177
166
|
|
178
167
|
end
|
data/test/tc/edf.rb
CHANGED
@@ -13,8 +13,7 @@ class TC_RIO_edf < Test::Unit::TestCase
|
|
13
13
|
def assert!(a,msg="negative assertion")
|
14
14
|
assert((!(a)),msg)
|
15
15
|
end
|
16
|
-
|
17
|
-
def smap(a) a.map( &:to_s ) end
|
16
|
+
def smap(a) a.map{|el| el.to_s} end
|
18
17
|
def mkafile(*args)
|
19
18
|
file = rio(*args)
|
20
19
|
file < (0..1).map { |i| "L#{i}:#{file.to_s}\n" }
|
data/test/tc/entary.rb
CHANGED
@@ -5,13 +5,10 @@ if $0 == __FILE__
|
|
5
5
|
end
|
6
6
|
|
7
7
|
require 'rio'
|
8
|
-
require 'test/unit'
|
9
|
-
require 'test/unit/testsuite'
|
10
8
|
require 'tc/testcase'
|
11
9
|
|
12
10
|
class TC_RIO_entary < Test::Unit::TestCase
|
13
|
-
|
14
|
-
def smap(a) a.map( &:to_s ) end
|
11
|
+
def smap(a) a.map { |el| el.to_s } end
|
15
12
|
def tdir() rio(%w/qp entary/) end
|
16
13
|
def mkafile(*args)
|
17
14
|
file = rio(*args)
|
data/test/tc/expand_path.rb
CHANGED
@@ -9,7 +9,6 @@ require 'test/unit'
|
|
9
9
|
require 'test/unit/testsuite'
|
10
10
|
|
11
11
|
class TC_RIO_expand_path < Test::Unit::TestCase
|
12
|
-
require 'extensions/symbol'
|
13
12
|
def initialize(*args)
|
14
13
|
super
|
15
14
|
@once = false
|
@@ -18,7 +17,7 @@ class TC_RIO_expand_path < Test::Unit::TestCase
|
|
18
17
|
def assert!(a,msg="negative assertion")
|
19
18
|
assert((!(a)),msg)
|
20
19
|
end
|
21
|
-
def smap(a) a.map
|
20
|
+
def smap(a) a.map{|el| el.to_s} end
|
22
21
|
def setup
|
23
22
|
s_dir = ''
|
24
23
|
#$trace_states = true
|
data/test/tc/ext.rb
CHANGED
data/test/tc/fileno.rb
CHANGED
@@ -9,11 +9,10 @@ require 'test/unit'
|
|
9
9
|
require 'test/unit/testsuite'
|
10
10
|
|
11
11
|
class TC_RIO_fileno < Test::Unit::TestCase
|
12
|
-
require 'extensions/symbol'
|
13
12
|
def assert!(a,msg="negative assertion")
|
14
13
|
assert((!(a)),msg)
|
15
14
|
end
|
16
|
-
def smap(a) a.map
|
15
|
+
def smap(a) a.map{|el| el.to_s} end
|
17
16
|
def tdir() rio(%w/qp fileno/) end
|
18
17
|
def mkafile(*args)
|
19
18
|
file = rio(*args)
|
data/test/tc/get.rb
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
#!/usr/local/bin/ruby
|
2
|
+
if $0 == __FILE__
|
3
|
+
Dir.chdir File.dirname(__FILE__)+'/../'
|
4
|
+
$:.unshift File.expand_path('../lib/')
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rio'
|
8
|
+
require 'tc/testcase'
|
9
|
+
|
10
|
+
class TC_get < Test::RIO::TestCase
|
11
|
+
@@once = false
|
12
|
+
def self.once
|
13
|
+
@@once = true
|
14
|
+
end
|
15
|
+
def setup
|
16
|
+
super
|
17
|
+
self.class.once unless @@once
|
18
|
+
end
|
19
|
+
def test_file
|
20
|
+
(0..4).each do |n_lines|
|
21
|
+
get_each(n_lines)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
def get_each(n_lines)
|
25
|
+
f = rio('f.txt')
|
26
|
+
expa = (0..n_lines-1).map { |a| "Line#{a}\n" }
|
27
|
+
f < expa
|
28
|
+
|
29
|
+
f = rio('f.txt')
|
30
|
+
assert_equal(expa,f[])
|
31
|
+
# $trace_states = true
|
32
|
+
|
33
|
+
# iterate twice using #get (no auto close)
|
34
|
+
begin
|
35
|
+
f = rio('f.txt').nocloseoneof
|
36
|
+
ans = []
|
37
|
+
while rec = f.get
|
38
|
+
ans << rec
|
39
|
+
end
|
40
|
+
assert_equal(expa,ans)
|
41
|
+
while rec = f.get
|
42
|
+
ans << rec
|
43
|
+
end
|
44
|
+
assert_equal(expa,ans)
|
45
|
+
end
|
46
|
+
|
47
|
+
# iterate using #get then using #each (no auto close)
|
48
|
+
begin
|
49
|
+
f = rio('f.txt').nocloseoneof
|
50
|
+
ans = []
|
51
|
+
while rec = f.get
|
52
|
+
ans << rec
|
53
|
+
end
|
54
|
+
assert_equal(expa,ans)
|
55
|
+
f.each do |rec|
|
56
|
+
ans << rec
|
57
|
+
end
|
58
|
+
assert_equal(expa,ans)
|
59
|
+
end
|
60
|
+
|
61
|
+
# iterate using #each then using #get (no auto close)
|
62
|
+
begin
|
63
|
+
f = rio('f.txt').nocloseoneof
|
64
|
+
ans = []
|
65
|
+
f.each do |rec|
|
66
|
+
ans << rec
|
67
|
+
end
|
68
|
+
assert_equal(expa,ans)
|
69
|
+
while rec = f.get
|
70
|
+
ans << rec
|
71
|
+
end
|
72
|
+
assert_equal(expa,ans)
|
73
|
+
end
|
74
|
+
|
75
|
+
# iterate twice using #get (with auto close)
|
76
|
+
begin
|
77
|
+
f = rio('f.txt')
|
78
|
+
ans = []
|
79
|
+
while rec = f.get
|
80
|
+
ans << rec
|
81
|
+
end
|
82
|
+
assert_equal(expa,ans)
|
83
|
+
while rec = f.get
|
84
|
+
ans << rec
|
85
|
+
end
|
86
|
+
assert_equal(expa+expa,ans)
|
87
|
+
end
|
88
|
+
|
89
|
+
# assure get returns nil once after iteration using #get (with auto close)
|
90
|
+
begin
|
91
|
+
f = rio('f.txt')
|
92
|
+
ans = []
|
93
|
+
|
94
|
+
f.each do |rec|
|
95
|
+
ans << rec
|
96
|
+
end
|
97
|
+
assert_equal(expa,ans)
|
98
|
+
|
99
|
+
rec = f.get
|
100
|
+
assert_nil(rec)
|
101
|
+
|
102
|
+
rec = f.get
|
103
|
+
assert_equal(expa[0],rec)
|
104
|
+
end
|
105
|
+
|
106
|
+
begin
|
107
|
+
f = rio('f.txt')
|
108
|
+
ans = []
|
109
|
+
|
110
|
+
rec = f.get
|
111
|
+
assert_equal(expa[0],rec)
|
112
|
+
ans << rec unless rec.nil?
|
113
|
+
f.each do |rec|
|
114
|
+
ans << rec
|
115
|
+
end
|
116
|
+
rec = f.get
|
117
|
+
assert_nil(rec)
|
118
|
+
end
|
119
|
+
|
120
|
+
begin
|
121
|
+
f = rio('f.txt')
|
122
|
+
ans = []
|
123
|
+
|
124
|
+
(0...n_lines).each do |n|
|
125
|
+
rec = f.get
|
126
|
+
assert_equal(expa[n],rec)
|
127
|
+
end
|
128
|
+
rec = f.get
|
129
|
+
assert_nil(rec)
|
130
|
+
|
131
|
+
f.each do |rec|
|
132
|
+
ans << rec
|
133
|
+
end
|
134
|
+
assert_equal(expa,ans)
|
135
|
+
end
|
136
|
+
|
137
|
+
begin
|
138
|
+
f = rio('f.txt')
|
139
|
+
ans = []
|
140
|
+
|
141
|
+
(0...n_lines).each do |n|
|
142
|
+
rec = f.get
|
143
|
+
assert_equal(expa[n],rec)
|
144
|
+
end
|
145
|
+
f.each do |rec|
|
146
|
+
ans << rec
|
147
|
+
end
|
148
|
+
assert_equal(expa,ans)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
data/test/tc/lineno.rb
CHANGED
@@ -9,11 +9,10 @@ require 'test/unit'
|
|
9
9
|
require 'test/unit/testsuite'
|
10
10
|
|
11
11
|
class TC_RIO_lineno < Test::Unit::TestCase
|
12
|
-
require 'extensions/symbol'
|
13
12
|
def assert!(a,msg="negative assertion")
|
14
13
|
assert((!(a)),msg)
|
15
14
|
end
|
16
|
-
def smap(a) a.map
|
15
|
+
def smap(a) a.map{|el| el.to_s} end
|
17
16
|
def tdir() rio(%w/qp lineno/) end
|
18
17
|
def mkafile(*args)
|
19
18
|
file = rio(*args)
|
data/test/tc/methods.rb
CHANGED
@@ -72,7 +72,7 @@ class TC_RIO_methods < Test::Unit::TestCase
|
|
72
72
|
# $trace_states = true
|
73
73
|
@dir.mkpath.chdir
|
74
74
|
@lines = (0..5).map { |n| "Line#{n}" }
|
75
|
-
@chlines = @lines.map
|
75
|
+
@chlines = @lines.map{|el| el.chomp}
|
76
76
|
::File.open('lines','w') do |f|
|
77
77
|
@lines.each do |li|
|
78
78
|
f.puts(li)
|
data/test/tc/misc.rb
CHANGED
@@ -4,8 +4,6 @@ if $0 == __FILE__
|
|
4
4
|
$:.unshift File.expand_path('../lib/')
|
5
5
|
end
|
6
6
|
require 'rio'
|
7
|
-
require 'test/unit'
|
8
|
-
require 'test/unit/testsuite'
|
9
7
|
require 'tc/testcase'
|
10
8
|
|
11
9
|
#require 'tc_myfirsttests'
|
@@ -246,9 +244,7 @@ class TC_RIO_misc < Test::Unit::TestCase
|
|
246
244
|
|
247
245
|
}
|
248
246
|
end
|
249
|
-
|
250
|
-
def pa(a) p a.map( &:to_s ) end
|
251
|
-
def smap(a) a.map( &:to_s ) end
|
247
|
+
def smap(a) a.map { |el| el.to_s } end
|
252
248
|
def emap(d,a)
|
253
249
|
exp = a.map { |f| File.join(d,f) }.sort
|
254
250
|
end
|