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.
- checksums.yaml +4 -4
- data/lib/bl/cli.rb +33 -1
- data/lib/bl/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: 4cb2a2c337dd55e27bdaf215c007bffaab30e041
|
|
4
|
+
data.tar.gz: 24bdc9f968d8caad25ae079707062351c0747b37
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62a972ab449807441afd1068a8154fdc881670cbf67f0b39de89b3e3542df8e3df8ff2b1d1cba32a96729298d7f85ae1f43363b708f108ffd6305e41e8c039e7
|
|
7
|
+
data.tar.gz: 971b4421e54c97ce282afe7924459c251e5fbec8d0f80e49c3598e7f0ab30c743ff533543ca3bde38ce9fa585944e31035f1f37b513a0b8748869a5dd73cb673
|
data/lib/bl/cli.rb
CHANGED
|
@@ -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'
|
data/lib/bl/version.rb
CHANGED