TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'import_export'And then execute:
$ bundle
Or install it yourself as:
$ gem install import_export
$ rake
$ ruby -Ilib import_export
csv_importer = CSVImporter.new(input_file: './data/input.csv', header: 1)
json_exporter = JSONExporter.new(output_file: './output.json')
ImportExport.convert_data(importer: csv_importer, exporter: json_exporter)
- Fork it ( https://github.com/[my-github-username]/import_export/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