lib/burndown_chart.rb in trollolo-0.2.0 vs lib/burndown_chart.rb in trollolo-0.3.0
- old
+ new
@@ -82,11 +82,20 @@
end
end
def read_data(filename)
@data = YAML.load_file filename
+
+ todo_columns = @data['meta']['todo_columns']
+ @settings.todo_columns = todo_columns if todo_columns
+
+ doing_columns = @data['meta']['doing_columns']
+ @settings.doing_columns = doing_columns if doing_columns
+
not_done_columns = @data['meta']['not_done_columns']
@settings.not_done_columns = not_done_columns if not_done_columns
+
+ @settings.swimlanes = @data['meta']['swimlanes'] || []
end
def write_data(filename)
@data['days'].each do |day|
%w[story_points_extra tasks_extra].each do |key|