trello_cli 0.1.0 → 0.2.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: 8dd54548d1a4cf7dc3c63d2102e726348a85ad46
4
- data.tar.gz: 593765120c44a9e4f272b604c80489ac763f9c52
3
+ metadata.gz: acc1c203294fdfbafe7edb464560e3f25e669585
4
+ data.tar.gz: f417e233a240549ef58203fd2d0d288d69f3f26d
5
5
  SHA512:
6
- metadata.gz: a442a359bd2c7e176ee799b1a3ac549b3331e60a5d17987b6509c87ad7018830bd166900aacccbae3d16e193bce3de4ef99903220949fabef7c6f5392d76ed2a
7
- data.tar.gz: cecd01c4a00165ca9da59e4ed2151e26bd4b66e96074a6046d1fe3b7d1e2ff4a5e5def76abddd5a548c013355a8534afcfc3ff92f1c912f287559b5e8b1b2027
6
+ metadata.gz: c51feb2abc89c53281f2e34ea74c6a8ca39cda1f3a15ff18219f21ca2dfcd6824923696d17fe66d94bbb334993d2c8b876e7ed677e4c66cabf1a2b3037639973
7
+ data.tar.gz: 96250d05153d7cb4a8251d0feabef5d79f2d1120b24156f39634a8b96c42224da15c7d3a38977435d0a245bf84578610c215b62bf6d415c0e3d880b6e0b21491
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.0:
2
+
3
+ * Added option to not list closed boards
4
+
1
5
  ## 0.1.0:
2
6
 
3
7
  * Bug fix, updated description in list
@@ -10,9 +10,10 @@ module TrelloCli
10
10
  def run
11
11
  option_parser.parse!
12
12
 
13
- list_boards.each do |list|
14
- name = list.attributes[:name]
15
- id = list.attributes[:id]
13
+ list_boards.each do |board|
14
+ return unless !board.attributes[:closed] || @options[:closed]
15
+ name = board.attributes[:name]
16
+ id = board.attributes[:id]
16
17
 
17
18
  puts "#{name} ( #{id} )"
18
19
  end
@@ -28,6 +29,10 @@ module TrelloCli
28
29
  def option_parser(options=@options)
29
30
  OptionParser.new do |opts|
30
31
  opts.banner = "Usage: trello board [list]"
32
+
33
+ opts.on("-c", "--closed", "Include closed board." ) do |o|
34
+ @options[:closed] = o
35
+ end
31
36
  end
32
37
  end
33
38
 
@@ -1,3 +1,3 @@
1
1
  module TrelloCli
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trello_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Weaver