CsvGenerator
Just a CSV generator :) It ensures string fields quoted.
Installation
Add this line to your application's Gemfile:
gem 'csv_generator'
And then execute:
$ bundle
Or install it yourself as:
$ gem install csv_generator
Usage
CsvGenerator.generate('example.csv') do |csv|
csv << ['0123', 456, 'this is a string']
end
# writes to example.csv:
# "0123",456,"this is a string"
Contributing
- Fork it ( https://github.com/cesare/csv_generator/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
