Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (15 sloc) 0.581 kb
#!/usr/bin/env ruby
require 'mustache'
require 'csv'
CSV.foreach('./mint-export.csv') do |row|
puts Mustache.render("---
- Date:{{Date}}\tDescription:{{Description}}
- OriginalDescription:{{OriginalDescription}}
- Amount:{{Amount}}\tTransactionType:{{TransactionType}}\tCategory:{{Category}}
- AccountName:{{AccountName}}\tLabels:{{Labels}}
- Notes:{{Notes}}
", :Date => row[0], :Description => row[1], :OriginalDescription => row[2],
:Amount => row[3], :TransactionType => row[4], :Category => row[5],
:AccountName => row[6], :Labels => row[7], :Notes => row[8])
# break
end
Jump to Line
Something went wrong with that request. Please try again.