geoffleyland/lua-csv — pull request #1 by kev82 (2014-05-18 18:03:32+00:00)
Title: Addition of csv.openstring plus other minor fixes

Hi Geoff,

Still don't really know what I'm doing with git/github, but following a guide, and hopefully this is ok? I've tried to stick to your coding standard as I understand it.

I don't really like the way I've done the tests, but didn't want to rewrite it without talking to you. At the moment I just run each passed test with csv.open through csv.openstring with the default buffer size (i.e. the string length)

See commit log below for details of changes

Thanks,
Kev

---------------------------- Commit Log ----------------------

Added an openstring function, by wrapping the string in an object
that supports read(bytes) and passing the object to the underlying
code. Modified all the tests to run with both open and openstring.

Changed the default buffer size in csv.lua to match the value in the
README, and added the crucial blank line to test-data/blankline.csv