lib/settings.rb in trollolo-0.2.0 vs lib/settings.rb in trollolo-0.3.0

- old
+ new

@@ -16,13 +16,13 @@ # you may find current contact information at www.suse.com class Settings attr_accessor :developer_public_key, :member_token, :board_aliases, :verbose, - :raw, :not_done_columns, :todo_column, :accepted_column_name_regex, + :raw, :not_done_columns, :todo_columns, :doing_columns, :accepted_column_name_regex, :done_column_name_regex, :todo_column_name_regex, :scrum, - :no_task_checklists + :no_task_checklists, :swimlanes def initialize(config_file_path) @config_file_path = config_file_path if File.exists? config_file_path @config = YAML.load_file(config_file_path) @@ -32,13 +32,15 @@ @member_token = @config['member_token'] @board_aliases = @config['board_aliases'] || {} @scrum = OpenStruct.new(@config['scrum'] || scrum_defaults) @not_done_columns = @config['not_done_columns'].freeze || ['Sprint Backlog', 'Doing'] @no_task_checklists = @config['no_task_checklists'].freeze || ['Feedback'] - @todo_column = @config['todo_column'].freeze + @todo_columns = @config['todo_columns'].freeze || ['Sprint Backlog'] + @doing_columns = @config['doing_columns'].freeze || ['Doing'] @done_column_name_regex = @config['done_column_name_regex'].freeze || /\ADone/ @accepted_column_name_regex = @config['accepted_column_name_regex'].freeze || /\AAccepted/ @todo_column_name_regex = @config['todo_column_name_regex'].freeze || /\ATo Do\Z/ + @swimlanes = @config['swimlanes'].freeze || [] else raise "Couldn't read config data from '#{config_file_path}'" end end