rio 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING +1 -0
- data/README +11 -9
- data/Rakefile +1 -1
- data/doc/#RIOIS# +216 -0
- data/doc/ANNOUNCE +22 -16
- data/doc/RELEASE_NOTES +14 -7
- data/lib/rio/doc/EXAMPLES.rb +2 -2
- data/lib/rio/doc/INTRO.rb +0 -2
- data/lib/rio/doc/OPTIONAL.rb +1 -1
- data/lib/rio/doc/SYNOPSIS.rb +1 -1
- data/lib/rio/factory.rb +1 -0
- data/lib/rio/ftp/fs.rb +2 -1
- data/lib/rio/ftp/ftpfile.rb +20 -20
- data/lib/rio/if/grande.rb +16 -10
- data/lib/rio/if/test.rb +1 -1
- data/lib/rio/ops/construct.rb +13 -12
- data/lib/rio/ops/dir.rb +2 -1
- data/lib/rio/rl/fs2url.rb +2 -2
- data/lib/rio/rl/path.rb +1 -0
- data/lib/rio/rl/uri.rb +4 -0
- data/lib/rio/rl/withpath.rb +1 -0
- data/lib/rio/scheme/ftp.rb +46 -3
- data/lib/rio/uri/file.rb +16 -6
- data/lib/rio/version.rb +1 -1
- data/test/ftp/anon_copy_data.rb +36 -0
- data/test/ftp/testdef.rb +5 -4
- data/test/http/all.rb +1 -0
- data/test/http/copy-from-http.rb +2 -1
- data/test/http/uri-meta.rb +72 -0
- data/test/lib/temp_server.rb +3 -1
- data/test/runalltests.rb +2 -2
- data/test/runftptests.rb +1 -1
- data/test/runhttp.rb +1 -2
- metadata +5 -312
- data/doc/rdoc/classes/Kernel.html +0 -133
- data/doc/rdoc/classes/Kernel.src/M000233.html +0 -18
- data/doc/rdoc/classes/RIO.html +0 -625
- 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 -148
- data/doc/rdoc/classes/RIO/Doc/EXAMPLES.html +0 -432
- data/doc/rdoc/classes/RIO/Doc/HOWTO.html +0 -1075
- data/doc/rdoc/classes/RIO/Doc/INDEX.html +0 -368
- data/doc/rdoc/classes/RIO/Doc/INTRO.html +0 -1533
- data/doc/rdoc/classes/RIO/Doc/OPTIONAL.html +0 -221
- data/doc/rdoc/classes/RIO/Doc/SYNOPSIS.html +0 -337
- data/doc/rdoc/classes/RIO/IF.html +0 -165
- data/doc/rdoc/classes/RIO/IF/CSV.html +0 -203
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000116.html +0 -19
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000117.html +0 -16
- data/doc/rdoc/classes/RIO/IF/CSV.src/M000118.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.html +0 -343
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000045.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000046.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000047.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000048.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000049.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000050.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Dir.src/M000051.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.html +0 -223
- data/doc/rdoc/classes/RIO/IF/File.src/M000212.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.src/M000213.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.src/M000214.html +0 -16
- data/doc/rdoc/classes/RIO/IF/File.src/M000215.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.html +0 -572
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000155.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000156.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000157.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000158.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000159.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000160.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000161.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000162.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000163.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000164.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000165.html +0 -16
- data/doc/rdoc/classes/RIO/IF/FileOrDir.src/M000166.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.html +0 -1349
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000088.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000089.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000090.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000091.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000092.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000093.html +0 -21
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000094.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000095.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000096.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000097.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000098.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000099.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000100.html +0 -21
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000101.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000102.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000103.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000104.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Grande.src/M000105.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.html +0 -810
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000106.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000107.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000108.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000109.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000110.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000111.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000112.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000113.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000114.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeEntry.src/M000115.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.html +0 -1513
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000052.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000053.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000054.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000055.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000056.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000057.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000058.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000059.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000060.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000061.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000062.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000063.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000064.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000065.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000066.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000067.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000068.html +0 -19
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000069.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000070.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000071.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000072.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000073.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000074.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000075.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000076.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000077.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000078.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000079.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000080.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000081.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000082.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000083.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000084.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000085.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000086.html +0 -16
- data/doc/rdoc/classes/RIO/IF/GrandeStream.src/M000087.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.html +0 -999
- data/doc/rdoc/classes/RIO/IF/Path.src/M000180.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000181.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000182.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000183.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000184.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000185.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000186.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000187.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000188.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000189.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000190.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000191.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000192.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000193.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000194.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000195.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000196.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000197.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000198.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000199.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000200.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000201.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000202.html +0 -18
- data/doc/rdoc/classes/RIO/IF/Path.src/M000203.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000204.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000205.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000206.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000207.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000208.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000209.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000210.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Path.src/M000211.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.html +0 -1414
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000004.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000005.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000006.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000007.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000008.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000009.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000010.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000011.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000012.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000013.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000014.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000015.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000016.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000017.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000018.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000019.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000020.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000021.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000022.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000023.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000024.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000025.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000026.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000027.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000028.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000029.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000030.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000031.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000032.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000033.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000034.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000035.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000036.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000037.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000038.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000039.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000040.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000041.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000042.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000043.html +0 -16
- data/doc/rdoc/classes/RIO/IF/RubyIO.src/M000044.html +0 -16
- data/doc/rdoc/classes/RIO/IF/String.html +0 -203
- data/doc/rdoc/classes/RIO/IF/String.src/M000216.html +0 -16
- data/doc/rdoc/classes/RIO/IF/String.src/M000217.html +0 -16
- data/doc/rdoc/classes/RIO/IF/String.src/M000218.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.html +0 -990
- data/doc/rdoc/classes/RIO/IF/Test.src/M000119.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000120.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000121.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000122.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000123.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000124.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000125.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000126.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000127.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000128.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000129.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000130.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000131.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000132.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000133.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000134.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000135.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000136.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000137.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000138.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000139.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000140.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000141.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000142.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000143.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000144.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000145.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000146.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000147.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000148.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000149.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000150.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000151.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000152.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000153.html +0 -16
- data/doc/rdoc/classes/RIO/IF/Test.src/M000154.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.html +0 -517
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000167.html +0 -19
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000168.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000169.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000170.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000171.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000172.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000173.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000174.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000175.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000176.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000177.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000178.html +0 -16
- data/doc/rdoc/classes/RIO/IF/YAML.src/M000179.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.html +0 -508
- data/doc/rdoc/classes/RIO/Rio.src/M000219.html +0 -18
- data/doc/rdoc/classes/RIO/Rio.src/M000220.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000221.html +0 -27
- data/doc/rdoc/classes/RIO/Rio.src/M000222.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000224.html +0 -19
- data/doc/rdoc/classes/RIO/Rio.src/M000225.html +0 -20
- data/doc/rdoc/classes/RIO/Rio.src/M000226.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000227.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000228.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000229.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000230.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000231.html +0 -16
- data/doc/rdoc/classes/RIO/Rio.src/M000232.html +0 -16
- data/doc/rdoc/created.rid +0 -1
- data/doc/rdoc/files/README.html +0 -229
- data/doc/rdoc/files/lib/rio/constructor_rb.html +0 -141
- data/doc/rdoc/files/lib/rio/doc/EXAMPLES_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/HOWTO_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/INDEX_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/INTRO_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/OPTIONAL_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/doc/SYNOPSIS_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/basic_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/csv_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/dir_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/file_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/fileordir_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/grande_entry_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/grande_rb.html +0 -141
- data/doc/rdoc/files/lib/rio/if/grande_stream_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/internal_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/path_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/rubyio_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/string_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/temp_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/test_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/if/yaml_rb.html +0 -134
- data/doc/rdoc/files/lib/rio/kernel_rb.html +0 -142
- data/doc/rdoc/files/lib/rio_rb.html +0 -153
- data/doc/rdoc/fr_class_index.html +0 -49
- data/doc/rdoc/fr_file_index.html +0 -51
- data/doc/rdoc/fr_method_index.html +0 -259
- data/doc/rdoc/index.html +0 -30
- 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
|
|
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
|
|
26
|
-
providing a simple, intuitive, succinct interface to the
|
|
27
|
-
provided by IO, File, Dir, Pathname, FileUtils,
|
|
28
|
-
and others. Rio also provides an
|
|
29
|
-
common I/O idioms to be
|
|
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
|
|
40
|
-
that overcomes some of RDoc's weaknesses and makes the
|
|
41
|
-
usable. It is inadvisable to build the RDoc
|
|
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
data/doc/#RIOIS#
ADDED
|
@@ -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
|
data/doc/ANNOUNCE
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
Rio 0.4.
|
|
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
|
|
8
|
-
providing a simple, intuitive, succinct interface to the
|
|
9
|
-
provided by IO, File, Dir, Pathname, FileUtils,
|
|
10
|
-
and others. Rio also provides an
|
|
11
|
-
common I/O idioms to be
|
|
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
|
|
35
|
-
|
|
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| ... }
|
|
83
|
-
rio('adir').chomp.lines(/re/) { |aline| ... }
|
|
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,
|
|
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
|
|
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
|
|
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
|
data/doc/RELEASE_NOTES
CHANGED
|
@@ -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
|
|
4
|
-
providing a simple, intuitive, succinct interface to the
|
|
5
|
-
provided by IO, File, Dir, Pathname, FileUtils,
|
|
6
|
-
and others. Rio also provides an
|
|
7
|
-
common I/O idioms to be
|
|
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
|
|
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
|
data/lib/rio/doc/EXAMPLES.rb
CHANGED
|
@@ -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)
|
|
209
|
-
rio('afile').lines
|
|
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
|
data/lib/rio/doc/INTRO.rb
CHANGED
|
@@ -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
|
data/lib/rio/doc/OPTIONAL.rb
CHANGED
|
@@ -52,7 +52,7 @@ Please read the following first:
|
|
|
52
52
|
* RIO::Doc::HOWTO
|
|
53
53
|
* RIO::Rio
|
|
54
54
|
|
|
55
|
-
= Rio Optional
|
|
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
|
data/lib/rio/doc/SYNOPSIS.rb
CHANGED
|
@@ -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
|
|
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
|