lib/timetrap/formatters/csv.rb in timetrap-1.1.2 vs lib/timetrap/formatters/csv.rb in timetrap-1.1.3
- old
+ new
@@ -2,12 +2,12 @@
module Formatters
class Csv
attr_reader :output
def initialize entries
- @output = entries.inject("start,end,note\n") do |out, e|
+ @output = entries.inject("start,end,note,sheet\n") do |out, e|
next(out) unless e.end
- out << %|"#{e.start.strftime(time_format)}","#{e.end.strftime(time_format)}","#{e.note}"\n|
+ out << %|"#{e.start.strftime(time_format)}","#{e.end.strftime(time_format)}","#{e.note}","#{e.sheet}"\n|
end
end
private
def time_format