t1k 1.1.10 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/t1k/trackers/trello.rb +8 -10
- data/lib/t1k/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 032fd6051d9d59dc4ae603a5247c6510bd17cc2f
|
4
|
+
data.tar.gz: ca404f600d7a733a80b71d9c4af62b5b96d67996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f58526fb0d9fcb5f6266060bf56d895f9c2fba0d153cf6e811a278705327a6e06f1de1c37bc1cd966d420478d9334331e65b876cd27943cb54ac6c85d8a072
|
7
|
+
data.tar.gz: c3acb79196e7eaf8c026ef818ac4df6250d5576d9e66b0ad7f2315f6817231d99193e55b0e03ca1e7db286e9e05aeb3a956475b928740de5785096ed76df9b44
|
data/lib/t1k/trackers/trello.rb
CHANGED
@@ -29,18 +29,16 @@ module T1k
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def self.get_card url_card
|
32
|
-
|
33
|
-
puts "Catching card"
|
32
|
+
puts "Catching card"
|
34
33
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
34
|
+
me = ::Trello::Member.find(self.user_name)
|
35
|
+
raise "User not found" if me.nil?
|
36
|
+
board = me.boards.select{|x| x.name.upcase == self.board_name.upcase}.first
|
37
|
+
raise "Board not found.\nBoards available: #{me.boards.map(&:name)}" if board.nil?
|
38
|
+
card = board.cards.select{|x| x.url.index(url_card)}.first
|
39
|
+
raise "Card not found" if card.nil?
|
39
40
|
|
40
|
-
|
41
|
-
rescue
|
42
|
-
raise 'Card not found'
|
43
|
-
end
|
41
|
+
card
|
44
42
|
end
|
45
43
|
|
46
44
|
def self.update_card card, issue
|
data/lib/t1k/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: t1k
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Maia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|