Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * lib/csv.rb (IOReader, BasicWriter): call binmode when a given IO | nahi | 2003-10-06 | 1 | -3/+5 |
| | | | | | | | | | | respond_to?(:binmode). record separator was wrong when you gave text mode IO to Reader.parse and Writer.generate. * test/csv/test_csv.rb: add tests for above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | ||||
* | * lib/csv.rb: add extra pamameter to specify row(record) separater character. | nahi | 2003-09-15 | 1 | -55/+69 |
| | | | | | | | | | | | | | | | To parse Mac's CR separated CSV, do like this. CSV.open("mac.csv", "r", ?,,?\r) { |row| p row.to_a } The 3rd parameter in this example ?, is for column separater and the 4th ?\r is for row separater. Row separater is nil by default. Nil separater means "\r\n" or "\n". * test/csv/test_csv.rb: add tests for above feature. * test/csv/mac.csv: added. Sample CR separated CSV file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e | ||||
* | * lib/csv.rb: Import csv module. | nahi | 2003-06-19 | 1 | -0/+1322 |
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |