Skip to content

Commit

Permalink
Credit source of CSV->JSON code
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Webb committed Nov 30, 2014
1 parent a65543f commit 3e57bcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -47,6 +47,7 @@ end

desc "Save the #{results_file} file as JSON."
task :json do
# Borrowed from http://jasonheppler.org/2014/07/12/parsing-csv-to-json/
def is_int(str)
# Check if a string should be an integer
return !!(str =~ /^[-+]?[1-9]([0-9]*)?$/)
Expand Down

0 comments on commit 3e57bcf

Please sign in to comment.