bl 0.1.2 → 0.1.3

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 +33 -1
  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: 3b314e6c4c7b8ba314540dff238244748a9c1187
4
- data.tar.gz: 35313aa6767dc606e15c1fa502215db1dc12a5eb
3
+ metadata.gz: 4cb2a2c337dd55e27bdaf215c007bffaab30e041
4
+ data.tar.gz: 24bdc9f968d8caad25ae079707062351c0747b37
5
5
  SHA512:
6
- metadata.gz: 9338cd75c09c3e9aaa7f1b34a4039d5fc633305d22c657133bc53381162e9719a2fcf4b98f8bf934de9a87f1ba5f77dd2259be8e6f5cdce573eae6724a5615b0
7
- data.tar.gz: b0130c2bb47e1a1adb1f6139fb4382bcde9cdb4c7a9b0b1dc3d6a39e07a408f0810a425a0b299480beba7670c909b495df4da41fa4e17e9efe32cda107f37668
6
+ metadata.gz: 62a972ab449807441afd1068a8154fdc881670cbf67f0b39de89b3e3542df8e3df8ff2b1d1cba32a96729298d7f85ae1f43363b708f108ffd6305e41e8c039e7
7
+ data.tar.gz: 971b4421e54c97ce282afe7924459c251e5fbec8d0f80e49c3598e7f0ab30c743ff533543ca3bde38ce9fa585944e31035f1f37b513a0b8748869a5dd73cb673
@@ -4,6 +4,37 @@ module Bl
4
4
  include Bl::Requestable
5
5
  include Bl::Formatting
6
6
 
7
+ ISSUES_COUNT_PARAMS = {
8
+ projectId: :array,
9
+ issueTypeId: :array,
10
+ categoryId: :array,
11
+ versionId: :array,
12
+ milestoneId: :array,
13
+ statusId: :array,
14
+ priorityId: :array,
15
+ assigneeId: :array,
16
+ createdUserId: :array,
17
+ resolutionId: :array,
18
+ parentChild: :numeric,
19
+ attachment: :boolean,
20
+ sharedFile: :boolean,
21
+ sort: :string,
22
+ order: :string,
23
+ offset: :numeric,
24
+ count: :numeric,
25
+ createdSince: :string,
26
+ createUntil: :string,
27
+ updatedSince: :string,
28
+ updatedUntil: :string,
29
+ startDateSince: :string,
30
+ startDateUntil: :string,
31
+ dueDateSince: :string,
32
+ dueDateUntil: :string,
33
+ id: :array,
34
+ parentIssueId: :array,
35
+ keyword: :string
36
+ }
37
+
7
38
  ISSUE_BASE_ATTRIBUTES = {
8
39
  summary: :string,
9
40
  description: :string,
@@ -76,8 +107,9 @@ module Bl
76
107
  end
77
108
 
78
109
  desc 'count', 'count issues'
110
+ options ISSUES_COUNT_PARAMS
79
111
  def count
80
- puts client.get('issues/count').body.count
112
+ puts client.get('issues/count', {}.merge(options)).body.count
81
113
  end
82
114
 
83
115
  desc 'list', 'list issues'
@@ -1,3 +1,3 @@
1
1
  module Bl
2
- VERSION = '0.1.2'.freeze
2
+ VERSION = '0.1.3'.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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - saki