Truss 🚀
Welcome to TrussParser! This is a gem that parses and normalizes CSV data according to the specs in challenge.md
Installation
Assuming you have an environment set up for the Ruby ecosystem:
$ gem install truss
Usage
- After
gem installing thetrussgem:- Run
truss sample.csvto parse and normalize thesample.csvthat is shipped along in this gem. Alternatively, you can also runtruss sample-with-broken-utf8.csvas well. The Truss takes in a CSV file as an argument, and outputs normalized CSV data innormalized_data.csv.
- Run
Testing
- Run
rake specto run the RSpec tests. - You can also run
bin/consolefor an interactive prompt that will allow you to experiment.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the Truss project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.