trello-changelog 1.0.1 → 1.0.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: dcf21cfc9aa10d0da0b5727a1050f24cde0d4560
4
- data.tar.gz: f1118d878ba03c2ff7b5897b12894ab66401557b
3
+ metadata.gz: 7daa0a244e45f75110f3385e714623f5b68d5ca3
4
+ data.tar.gz: b4f9cd3e224eb071497a7130b039ee9b702a39b7
5
5
  SHA512:
6
- metadata.gz: e95de4e22874c3ca62c3da0fb7bbddd038934989991c8128380547d09e6f8bc0cd86e8e00241c62ddd720c5997464ee6549a9f0f4f2ff44477197d861000aab9
7
- data.tar.gz: 621986ec58ec2362fa6b1fed0dd5d486b56838491a7e67babc19769d88ff80cf13acb17395bdec6535e40071d917be18165e60b500b8e47c8a66480b55e3e12a
6
+ metadata.gz: 0c20922c96a8856f3d237a21cad56c8057e0bb1dd79c3e88dd64746a20528b05626a2853f3a86ae597403d9c3da6a8fe0f1a2adf9abfdc2fca0c8d5fa6596bec
7
+ data.tar.gz: 9f3cdb206102c46ebecfd08e9b93673903db978119f708fe38ea98cc90da2942f8848ad526f41a6658e6ec992bb35f077adf528e6cb8c3bb340840c897ed90e1
@@ -36,11 +36,8 @@ class TrelloChangelog
36
36
  end
37
37
 
38
38
  def build_unlabeled
39
- @unlabeled_done_tickets = done_tickets
40
-
41
- @config[:labels].each do |label|
42
- @unlabeled_done_tickets.select! { |ticket| !ticket.card_labels.find{ |card_label| card_label['name'] == label} }
43
- end
39
+ # We only list the cards that have none of the configured labels
40
+ @unlabeled_done_tickets = done_tickets.select { |ticket| (ticket.labels.map(&:name) & @config[:labels]).empty? }
44
41
 
45
42
  @output << "\n## Other\n\n"
46
43
  @unlabeled_done_tickets.each do |ticket|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trello-changelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giel De Bleser
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.5.1
104
+ rubygems_version: 2.5.2
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Changelog for Trello