Ocsv - Oxford Comma Seperated Values
Inspired by a Tweet, this is a Ruby library for reading and writing files with fields delimited by the Oxford Comma.
Installation
Add this line to your application's Gemfile:
gem 'ocsv'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ocsv
Usage
It's intended to work a lot like the standard CSV library, but it's just not as well
tested or useful. Please don't use this for anything too serious.
[1,2,3,4,5].to_ocsv
# returns
"1,2,3,4, and 5\n"
Contributing
- Fork it ( https://github.com/[my-github-username]/ocsv/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request