totrello 0.0.9 → 0.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29e04411e04601c53f4e8a3df79ab69f36c3e9b6
4
- data.tar.gz: 090df8ed2d5572bccda506534fe1779e9aec92a3
3
+ metadata.gz: 75b854fa65a6786196a3c821cd546e0c4ea5e509
4
+ data.tar.gz: 52df0c78f9cce98c81c85d1b262ea8ac4debf208
5
5
  SHA512:
6
- metadata.gz: b31f6254f84f6d8356775a107f68c8e1e9bf8b77adc69503c717d464c3c2d80f6d9722b3957102f9b2790e02cdd2d99bb398f7aedc256a505bb57f4fac7f5bac
7
- data.tar.gz: 9a1684f19c128dc70e866b1c9922d6f203f4429fa7940b1ee8bd2b7280e2672a903966eb45451ed7dd65b645b848bf14606c3f71ad4ba27ab3f64e4e0cdb8272
6
+ metadata.gz: ed248fe70636317424acd743893cc3c13c4422f227baaab2b4cfa037d8707c158fd11b7bae5e84d64f27abbff859e6793a2da0385f84df7a83a427af1214d063
7
+ data.tar.gz: d82bf35faed04122009a6bed572b06c9a46eb5a29c3fb79ed37f04f590737e61a501babc932814bb7dfeb9a34b909e7bb89cb7d53eb2bd624e130861715fb122
@@ -1,3 +1,3 @@
1
1
  module Totrello
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/totrello.rb CHANGED
@@ -33,11 +33,8 @@ module Totrello
33
33
  puts "Woot! We've got'em"
34
34
 
35
35
  puts 'Generating your board'
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
36
+ board = @trello.find_board(todos[:directory])
37
+ board ||= @trello.create_board(todos[:directory], 'Auto Generated by ToTrello Gem')
41
38
 
42
39
 
43
40
 
@@ -33,7 +33,11 @@ class TrelloCreator
33
33
  out = board.id
34
34
  end
35
35
  end
36
- Trello::Board.find(out)
36
+ if out == ''
37
+ nil
38
+ else
39
+ Trello::Board.find(out)
40
+ end
37
41
  end
38
42
 
39
43
  def find_list(board, list_name)
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.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Teeter