- Install Ruby (if not already installed)
- Install Bundler:
gem install bundler
- Download the code from this repository or (better) clone it with git
- Open a terminal, cd to the code directory, and type
bundle install
to install the dependencies
- in a terminal type
./parse.rb
to run the script - It accepts three parameters, in this order:
- the name of the input file
- the name of the column containing text to be parsed for emojis
- the name of the column containing the id of the row
- The default values are set here, and are suitable for the test csv
- The script will output two files:
<inputfile>-output.html
and<inputfile>-output.csv
.
There are RSpec tests for the basic functionality. Run bundle exec rspec
.