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

  1. Fork it ( https://github.com/[my-github-username]/ocsv/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request