bl 0.1.3 → 0.1.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bl/cli.rb +22 -3
  3. data/lib/bl/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4cb2a2c337dd55e27bdaf215c007bffaab30e041
4
- data.tar.gz: 24bdc9f968d8caad25ae079707062351c0747b37
3
+ metadata.gz: 9533918c5a6546e01dc51828a92b05b76410c6a9
4
+ data.tar.gz: 328cdb26ae5e102ba9e0f8f26cfaa0858347166e
5
5
  SHA512:
6
- metadata.gz: 62a972ab449807441afd1068a8154fdc881670cbf67f0b39de89b3e3542df8e3df8ff2b1d1cba32a96729298d7f85ae1f43363b708f108ffd6305e41e8c039e7
7
- data.tar.gz: 971b4421e54c97ce282afe7924459c251e5fbec8d0f80e49c3598e7f0ab30c743ff533543ca3bde38ce9fa585944e31035f1f37b513a0b8748869a5dd73cb673
6
+ metadata.gz: b00f167e3f711a9459c5f8974fd258f4c3588521f752b1b312e710bf88d8d8d67e09520758cc7e094f76f4bd4152a637c3bc87cd2a4dc8eb91658e847042fe94
7
+ data.tar.gz: 7950948ff5f171da05fc7c63c22cb47a3711f13b3df46049e21b21f9cc87a9ee013e69464d0765b59713e07a25f7be83942ca49f1e5568939889c3f89ff95477
@@ -4,7 +4,7 @@ module Bl
4
4
  include Bl::Requestable
5
5
  include Bl::Formatting
6
6
 
7
- ISSUES_COUNT_PARAMS = {
7
+ ISSUES_PARAMS = {
8
8
  projectId: :array,
9
9
  issueTypeId: :array,
10
10
  categoryId: :array,
@@ -107,12 +107,31 @@ module Bl
107
107
  end
108
108
 
109
109
  desc 'count', 'count issues'
110
- options ISSUES_COUNT_PARAMS
110
+ options ISSUES_PARAMS
111
111
  def count
112
112
  puts client.get('issues/count', {}.merge(options)).body.count
113
113
  end
114
114
 
115
- desc 'list', 'list issues'
115
+ desc 'issues', 'list issues'
116
+ options ISSUES_PARAMS
117
+ def issues
118
+ client.get('issues', {}.merge(options)).body.each do |i|
119
+ puts [
120
+ colorize_type(i.issueType.name, i.issueType.color),
121
+ i.issueKey,
122
+ i.summary,
123
+ colorize_priority(i.priority.id, i.priority.name),
124
+ i.created,
125
+ i.dueDate,
126
+ i.updated,
127
+ i.createdUser.name,
128
+ i.assignee&.name,
129
+ colorize_status(i.status.id, i.status.name)
130
+ ].join("\t")
131
+ end
132
+ end
133
+
134
+ desc 'list', 'list issues by typical ways'
116
135
  option :all, type: :boolean
117
136
  option :unassigned, type: :boolean
118
137
  option :today, type: :boolean
@@ -1,3 +1,3 @@
1
1
  module Bl
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - saki