bl 0.1.1 → 0.1.2
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 +30 -1
- data/lib/bl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b314e6c4c7b8ba314540dff238244748a9c1187
|
|
4
|
+
data.tar.gz: 35313aa6767dc606e15c1fa502215db1dc12a5eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9338cd75c09c3e9aaa7f1b34a4039d5fc633305d22c657133bc53381162e9719a2fcf4b98f8bf934de9a87f1ba5f77dd2259be8e6f5cdce573eae6724a5615b0
|
|
7
|
+
data.tar.gz: b0130c2bb47e1a1adb1f6139fb4382bcde9cdb4c7a9b0b1dc3d6a39e07a408f0810a425a0b299480beba7670c909b495df4da41fa4e17e9efe32cda107f37668
|
data/lib/bl/cli.rb
CHANGED
|
@@ -18,6 +18,29 @@ module Bl
|
|
|
18
18
|
assigneeId: :numeric
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
ACTIVITY_TYPES = {
|
|
22
|
+
1 => 'Issue Created',
|
|
23
|
+
2 => 'Issue Updated',
|
|
24
|
+
3 => 'Issue Commented',
|
|
25
|
+
4 => 'Issue Deleted',
|
|
26
|
+
5 => 'Wiki Created',
|
|
27
|
+
6 => 'Wiki Updated',
|
|
28
|
+
7 => 'Wiki Deleted',
|
|
29
|
+
8 => 'File Added',
|
|
30
|
+
9 => 'File Updated',
|
|
31
|
+
10 => 'File Deleted',
|
|
32
|
+
11 => 'SVN Committed',
|
|
33
|
+
12 => 'Git Pushed',
|
|
34
|
+
13 => 'Git Repository Created',
|
|
35
|
+
14 => 'Issue Multi Updated',
|
|
36
|
+
15 => 'Project User Added',
|
|
37
|
+
16 => 'Project User Deleted',
|
|
38
|
+
17 => 'Comment Notification Added',
|
|
39
|
+
18 => 'Pull Request Added',
|
|
40
|
+
19 => 'Pull Request Updated',
|
|
41
|
+
20 => 'Comment Added on Pull Request'
|
|
42
|
+
}
|
|
43
|
+
|
|
21
44
|
def initialize(*)
|
|
22
45
|
@config = Bl::Config.instance
|
|
23
46
|
super
|
|
@@ -204,7 +227,13 @@ module Bl
|
|
|
204
227
|
desc 'activities', 'list activities'
|
|
205
228
|
def activities
|
|
206
229
|
client.get('/space/activities').body.each do |a|
|
|
207
|
-
puts
|
|
230
|
+
puts [
|
|
231
|
+
ACTIVITY_TYPES[a.type],
|
|
232
|
+
"#{a.project.projectKey}-#{a.content.key_id}",
|
|
233
|
+
a.content.summary,
|
|
234
|
+
a.createdUser.name,
|
|
235
|
+
a.created
|
|
236
|
+
].join("\t")
|
|
208
237
|
end
|
|
209
238
|
end
|
|
210
239
|
|
data/lib/bl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- saki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-05-
|
|
11
|
+
date: 2016-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|