trello_flow 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trello_flow/api/card.rb +4 -0
- data/lib/trello_flow/api/list.rb +5 -0
- data/lib/trello_flow/version.rb +1 -1
- 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: 2b44cd47ac37171ecc417f5d41f4aeca06c62883
|
4
|
+
data.tar.gz: dc309ac29890af06342ee905d4cf3ba744f649d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db78158f7f61dde7b653e4a3e1327cc3892932e0fad547869a7a3239062a46c6d5c88f4e58a3bcf41f7c5250473aec0103bdedc47dd55e443bb3a478d3694c58
|
7
|
+
data.tar.gz: f4370603146fbb561000671fc91c8ac01efcd199abb69ce1622b954800aceb9f5fe9f1d3d1909aff6002582f478a8bc17336edf7fb0ecb4ec531ba4196dfc4da
|
data/lib/trello_flow/api/card.rb
CHANGED
@@ -20,6 +20,10 @@ module TrelloFlow
|
|
20
20
|
move_to board.lists.finished
|
21
21
|
end
|
22
22
|
|
23
|
+
def accept
|
24
|
+
move_to board.lists.accepted
|
25
|
+
end
|
26
|
+
|
23
27
|
def add_member(user)
|
24
28
|
return if member_ids.include?(user.id)
|
25
29
|
self.class.with("cards/:id/members").where(id: id, value: user.id).post
|
data/lib/trello_flow/api/list.rb
CHANGED
@@ -4,6 +4,7 @@ module TrelloFlow
|
|
4
4
|
BACKLOG_INDEX = 0
|
5
5
|
STARTED_INDEX = 1
|
6
6
|
FINISHED_INDEX = 2
|
7
|
+
ACCEPTED_INDEX = 3
|
7
8
|
|
8
9
|
has_many :cards
|
9
10
|
|
@@ -22,6 +23,10 @@ module TrelloFlow
|
|
22
23
|
def self.finished
|
23
24
|
all[FINISHED_INDEX]
|
24
25
|
end
|
26
|
+
|
27
|
+
def self.accepted
|
28
|
+
all[ACCEPTED_INDEX]
|
29
|
+
end
|
25
30
|
end
|
26
31
|
end
|
27
32
|
end
|
data/lib/trello_flow/version.rb
CHANGED