totrello 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/totrello/version.rb +1 -1
- data/lib/totrello.rb +4 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjBlYTY3Y2Q5MjExZGFkNmU2YjA3NzY1ZDRjNGIwNjA4Y2NkZmI5Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGNiM2RkMWE4NzAwYTk4ZDM1MmU3NTQ3ZTE5MzFmNjZmZWRjMjEzMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTBmZTJiZTcxMmYyZWQ2ZjY0ZDk0MGNmYmJhMjgyZTFiNWYzNjI2YmJmNWRk
|
10
|
+
ZWI5YTU3NDljNzEzNGM2OTVkYmVkYjExNzc3NmMxNzc2ZThkMWNlNTAxMzhm
|
11
|
+
YzUwZDMyNmJlNTM3MzZkYzU4YWViOGExMWMyOTY4NTc4MTUzM2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YmRhMzk3M2YzODE2ZjJkODY1NzY4YmVhN2QxNDgyOGE2N2Q0OWNmNjg1MjBi
|
14
|
+
ZjBhYjFmNGY4ZmU5NmM4ZTRlYWEzOGQ2OTJhZDU4NDQzZGFmNjJkYjU4MzQx
|
15
|
+
YmU2ZjI0MDFmZTczMTc4MjcxN2ZlMTE3YmNiOTJlN2Y0ZDU3NWY=
|
data/lib/totrello/version.rb
CHANGED
data/lib/totrello.rb
CHANGED
@@ -35,13 +35,11 @@ module Totrello
|
|
35
35
|
puts 'Generating your board'
|
36
36
|
board_name = todos[:directory].nil? ? todos[:directory] : @directory.split('/').last
|
37
37
|
puts "Creating the board: #{board_name}"
|
38
|
-
|
39
|
-
|
40
|
-
rescue
|
41
|
-
board = @trello.create_board(board_name, 'Auto Generated by ToTrello Gem')
|
42
|
-
end
|
38
|
+
board = @trello.find_board(board_name)
|
39
|
+
board ||= @trello.create_board(board_name, 'Auto Generated by ToTrello Gem')
|
43
40
|
|
44
|
-
|
41
|
+
return -1 if board.nil?
|
42
|
+
puts "Created or found a board with the ID: #{board.name}"
|
45
43
|
|
46
44
|
|
47
45
|
|