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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTFjN2VhYWYzZDY2NWZkYmYzNjY1ODI0MDA0ZTZlZThlZmVhMjRmOA==
4
+ NjBlYTY3Y2Q5MjExZGFkNmU2YjA3NzY1ZDRjNGIwNjA4Y2NkZmI5Yw==
5
5
  data.tar.gz: !binary |-
6
- YWFkZDRjNzBiMTllZDAyZDViMjcxZDllZjM3YTgwYTRkNTE4NzRmYQ==
6
+ ZGNiM2RkMWE4NzAwYTk4ZDM1MmU3NTQ3ZTE5MzFmNjZmZWRjMjEzMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NTFlMzFiMjg5Njg3ZTZjODdkYzAzNmIzYTZlNzk4NmJlZjIwNzNkYzM4NjA3
10
- MzMxZWI3ZmY0MDZhZTg5NzNiNTgyOTYwYTUwOWNlZTkxMDhlOTgyM2U4YTQ0
11
- ZGViMDlmOGFlYTlmMDI0ZjM4MmMzZTQxNjQ0MGFiNDMwZTk1YzU=
9
+ YTBmZTJiZTcxMmYyZWQ2ZjY0ZDk0MGNmYmJhMjgyZTFiNWYzNjI2YmJmNWRk
10
+ ZWI5YTU3NDljNzEzNGM2OTVkYmVkYjExNzc3NmMxNzc2ZThkMWNlNTAxMzhm
11
+ YzUwZDMyNmJlNTM3MzZkYzU4YWViOGExMWMyOTY4NTc4MTUzM2Y=
12
12
  data.tar.gz: !binary |-
13
- Njk4MGI5NWQ5NjAyZTY5ZjE0M2YyNjJmMDM5ZjZjMTRjYjAwN2Y3OGFjYjhj
14
- ZGQ5N2U4OTVkMjczMTVjZWJhYjA0ZWE4Y2MwODc2ZTU3NGI5ZGU5MDM5Yjg0
15
- NGUyZmZhZWZkNWQ1ZGZhZmY5MjIyODE4MGY4MjgxODYyOTI5ZTE=
13
+ YmRhMzk3M2YzODE2ZjJkODY1NzY4YmVhN2QxNDgyOGE2N2Q0OWNmNjg1MjBi
14
+ ZjBhYjFmNGY4ZmU5NmM4ZTRlYWEzOGQ2OTJhZDU4NDQzZGFmNjJkYjU4MzQx
15
+ YmU2ZjI0MDFmZTczMTc4MjcxN2ZlMTE3YmNiOTJlN2Y0ZDU3NWY=
@@ -1,3 +1,3 @@
1
1
  module Totrello
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
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
- begin
39
- board = @trello.find_board(board_name)
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
- puts "Created or found a board with the ID: #{board}"
41
+ return -1 if board.nil?
42
+ puts "Created or found a board with the ID: #{board.name}"
45
43
 
46
44
 
47
45
 
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.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Teeter