lib/totrello.rb in totrello-0.1.1a vs lib/totrello.rb in totrello-0.1.1

- old
+ new

@@ -31,26 +31,19 @@ todo = ToDoFind.new todos = todo.search(@directory) puts "Woot! We've got'em" puts 'Generating your board' - begin - board = @trello.find_board(todos[:directory]) - rescue - board ||= @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem') - end + @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem') + board = @trello.find_board(todos[:directory]) + puts 'Taking to Trello, this is the longest part...' todos[:todo_list].each do |tdl| tdl[:todos].each do |td| - begin - @trello.create_card(board,td, gen_description(tdl[:file],td),'To Do') unless td == '' - rescue - puts 'error posting to trello' - end - + @trello.create_card(board,td, gen_description(tdl[:file],td),'To Do') unless td == '' end end puts "And you're ready to go!" end