Skip to content
Comma is a small CSV (ie. comma separated values) generation extension for Ruby objects, that lets you seamlessly define a CSV output format via a small DSL
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
gemfiles prepare for releasing version 4.3.2 Apr 30, 2019
spec fix to catch error when it retrieves polymorphic association Apr 30, 2019
.coveralls.yml use coveralls ( Apr 5, 2015
.gitignore ignore .ruby-version and .ruby-gemset Aug 14, 2013
.rspec move spec/spec.opts to .rspec Sep 15, 2013
.rubocop.yml 🚓 rubocop Apr 20, 2019
.rubocop_todo.yml 🚓 rubocop Apr 20, 2019
.travis.yml drop rails 4.1 and update rails 4.2, 5.0, 5.1, and 5.2 Apr 21, 2019
Gemfile 🚓 rubocop Apr 20, 2019
Gemfile.lock prepare for releasing version 4.3.2 Apr 30, 2019
MIT-LICENSE Removed trailing spaces Jan 4, 2010 prepare for releasing version 4.3.2 Apr 30, 2019
Rakefile 🚓 rubocop Apr 20, 2019
comma.gemspec fix activesupport dependency Apr 21, 2019


A library to generate comma seperated value (CSV) for Ruby objects like ActiveRecord and Array

Gem Version Build Status Code Climate

Getting Started


You need to use ruby 2.3 or later. If you generate CSV from ActiveRecord models, you need to have ActiveRecord 4.2 or later.


Comma is distributed as a gem, best installed via Bundler.

Include the gem in your Gemfile:

gem 'comma', '~> 4.3.2'

Or, if you want to live life on the edge, you can get master from the main comma repository:

gem 'comma',  git: 'git://'

Then, run bundle install.


See this page for usages.

Running the tests

To run the test suite across multiple gem file sets, we're using Appraisal, use the following commands:

$ bundle exec appraisal install
$ bundle exec appraisal rake spec



We use SemVer for versioning. For the versions available, see the tags on this repository.


  • Marcus Crafter - Initial work
  • Tom Meier - Initial work
  • Eito Katagiri


This project is licensed under the MIT License - see the MIT-LICENSE file fore details.

You can’t perform that action at this time.