From c3e2ed0b6098b7d48b485957045512d2bf927d8c Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 20 Oct 2014 12:53:02 +0200 Subject: [PATCH] todo --- lib/ledger.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ledger.rb b/lib/ledger.rb index 33c8ec7f..12021633 100644 --- a/lib/ledger.rb +++ b/lib/ledger.rb @@ -65,6 +65,7 @@ module Ledger end def cleared + # TODO: refactor : replace awk and grep by Ruby and use run CSV.parse( `ledger -f #{@file} --exchange '#{CURRENCY}' --flat cleared Assets Equity | awk '{ printf "%s %s;%s %s;%s\\n", $1, $2, $3, $4, $6 }' | grep -v ";$"`, col_sep: ';' ) .map do |row| { account: row[ 2 ],