lib/totrello.rb in totrello-0.1.9 vs lib/totrello.rb in totrello-0.1.11
- old
+ new
@@ -31,10 +31,10 @@
todo = ToDoFind.new
todos = todo.search(@directory)
puts "Woot! We've got'em"
puts 'Generating your board'
- board_name = todos[:directory].nil? ? todos[:directory] : dir.split('/').last
+ board_name = todos[:directory].nil? ? todos[:directory] : @directory.split('/').last
puts "Creating the board: #{board_name}"
begin
board = @trello.find_board(board_name)
rescue
board = @trello.create_board(board_name, 'Auto Generated by ToTrello Gem')