totrello 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/totrello/version.rb +1 -1
- data/lib/totrello.rb +11 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 272fec0f178dc96c80d1c36e59369e9b644c89ba
|
4
|
+
data.tar.gz: b3c3f0b44a306d7fcd8c9425460ee1cafeae4743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 389ca587459d6c335a377ac8842833f1dd47c42c07d2692a06d07e9c929cef3d34747598af8a14a531f9497e58226551135b98e499ece3cb80c44c4eae4c7eab
|
7
|
+
data.tar.gz: 523db31123f532458e5fee3d750ce7863720dcb9da44e340f6de484958227ab4a67bbfc4ad5ca607fc1740b31b6a667abf95a6786a2784257f91454f8c00663b
|
data/lib/totrello/version.rb
CHANGED
data/lib/totrello.rb
CHANGED
@@ -33,16 +33,23 @@ module Totrello
|
|
33
33
|
puts "Woot! We've got'em"
|
34
34
|
|
35
35
|
puts 'Generating your board'
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
begin
|
37
|
+
board = @trello.find_board(todos[:directory])
|
38
|
+
rescue
|
39
|
+
board ||= @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem')
|
40
|
+
end
|
39
41
|
|
40
42
|
|
41
43
|
|
42
44
|
puts 'Taking to Trello, this is the longest part...'
|
43
45
|
todos[:todo_list].each do |tdl|
|
44
46
|
tdl[:todos].each do |td|
|
45
|
-
|
47
|
+
begin
|
48
|
+
@trello.create_card(board,td, gen_description(tdl[:file],td),'To Do') unless td == ''
|
49
|
+
rescue
|
50
|
+
puts 'error posting to trello'
|
51
|
+
end
|
52
|
+
|
46
53
|
end
|
47
54
|
end
|
48
55
|
puts "And you're ready to go!"
|