totrello 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40ba7c43065edcb80c137577acc9bb815fccd985
4
- data.tar.gz: a5fdb0964133242267069e15b8ea0e9f5bfb2e50
3
+ metadata.gz: 272fec0f178dc96c80d1c36e59369e9b644c89ba
4
+ data.tar.gz: b3c3f0b44a306d7fcd8c9425460ee1cafeae4743
5
5
  SHA512:
6
- metadata.gz: 34e5b02adb34f4b795667146a1e2aeff2037b8f49c0f5b90e84d6f5a7e16e8e464d1e8360649c85639f6570a95b55bf4bc430ce69dfba8d1ea428a0c2b05e208
7
- data.tar.gz: 57c336758fffd65e921f97b7803e7edd7d891953fbae23bcfaa15294268d3de7d78b251fc1b52f07e28abe0ab8f4d2abceccdc0fa8fbbcff0bf70f336e55eb9b
6
+ metadata.gz: 389ca587459d6c335a377ac8842833f1dd47c42c07d2692a06d07e9c929cef3d34747598af8a14a531f9497e58226551135b98e499ece3cb80c44c4eae4c7eab
7
+ data.tar.gz: 523db31123f532458e5fee3d750ce7863720dcb9da44e340f6de484958227ab4a67bbfc4ad5ca607fc1740b31b6a667abf95a6786a2784257f91454f8c00663b
@@ -1,3 +1,3 @@
1
1
  module Totrello
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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
- @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem')
38
- board = @trello.find_board(todos[:directory])
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
- @trello.create_card(board,td, gen_description(tdl[:file],td),'To Do') unless td == ''
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!"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: totrello
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Teeter