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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bl/cli.rb +30 -1
  3. data/lib/bl/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1929a349a47d11af4ae06f9dc87f18090e1fce4
4
- data.tar.gz: c0d99341c6eee3b2056fdde622285121908c2968
3
+ metadata.gz: 3b314e6c4c7b8ba314540dff238244748a9c1187
4
+ data.tar.gz: 35313aa6767dc606e15c1fa502215db1dc12a5eb
5
5
  SHA512:
6
- metadata.gz: 270b3ec2a11dc3e9f484f0d0262997762384d6ec909d307b9cd95fcf35aa8389b58e1e56bc29feb44e5f70bcdcadd5f21d60df6330babc61c5f9e0a055c2a1fa
7
- data.tar.gz: 68c5e8d35b60128df42187f57a5070feb400010456b67f7e7b1742614225ae9072ddedd6cf2d9a24a6d10f120866e4dcbae1a2e20609b8b951916062ba345e91
6
+ metadata.gz: 9338cd75c09c3e9aaa7f1b34a4039d5fc633305d22c657133bc53381162e9719a2fcf4b98f8bf934de9a87f1ba5f77dd2259be8e6f5cdce573eae6724a5615b0
7
+ data.tar.gz: b0130c2bb47e1a1adb1f6139fb4382bcde9cdb4c7a9b0b1dc3d6a39e07a408f0810a425a0b299480beba7670c909b495df4da41fa4e17e9efe32cda107f37668
@@ -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 a.pretty_inspect
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
 
@@ -1,3 +1,3 @@
1
1
  module Bl
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
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.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-17 00:00:00.000000000 Z
11
+ date: 2016-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor