bl 0.2.7 → 0.2.8

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/bl/cli.rb +13 -0
  4. data/lib/bl/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c162c4307cec68c43eda95dafe5b5bda03a0eefe
4
- data.tar.gz: e8d83a2bf127bef4ee98b7e34f6f97b9a72310b2
3
+ metadata.gz: 0f17c1d19d7c846cf3e502289e7ba0a0980e28d7
4
+ data.tar.gz: 64599d97b5283baf806c0d014c38cad22daf28e1
5
5
  SHA512:
6
- metadata.gz: 5a67c76941ae8872d07b781b7edef35a1d068b76dcf2043bf90d1dc887e2298e21b58572407e5c8793f2a140dd80cc342d58774a4368bdde60f9dd4611f9aa40
7
- data.tar.gz: 09d8fa22065e65429e48148a4727afc9f65d03ec7e5cc0bb9268dc796d277004d334eb1293b4aa491183e76d33c8e29cb2d885171f09d16c2244f7a5f9c49df2
6
+ metadata.gz: 743adde55367da58081731bb3b5ac358190be610beb5fbc1f81537d2ce9cfea61ea1f1b3552b35f483d94248d34ca03445e4ab26a6f991dcd6618a9348685a96
7
+ data.tar.gz: bad0045707a1755bc8f1f2d25cdb158ebca744088056e71b4737e33ce33a0167df302e4f5ccbcbcd8e65e460ce6ffbfb8543c9ad3cdf9d8ba6095a9e46c4ca7e
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  bl is a command line tool for Nulab's [Backlog](http://www.backlog.jp/).
4
4
 
5
5
  [![Gem Version](https://badge.fury.io/rb/bl.svg)](https://badge.fury.io/rb/bl)
6
+ [![Dependency Status](https://gemnasium.com/badges/github.com/sakihet/bl.svg)](https://gemnasium.com/github.com/sakihet/bl)
6
7
  ![License](https://img.shields.io/github/license/sakihet/bl.svg)
7
8
 
8
9
  ## Table of Contents
@@ -258,6 +258,19 @@ module Bl
258
258
  end
259
259
  end
260
260
 
261
+ desc 'user-activities USER_ID', "list user's activities"
262
+ options activityTypeId: :array, minId: :numeric, maxId: :numeric, count: :numeric, order: :string
263
+ def user_activities(user_id)
264
+ client.get("/users/#{user_id}/activities").body.each do |a|
265
+ puts [
266
+ ACTIVITY_TYPES[a.type],
267
+ a.content.inspect,
268
+ a.createdUser.name,
269
+ a.created
270
+ ].join("\t")
271
+ end
272
+ end
273
+
261
274
  desc 'activities', 'list activities'
262
275
  def activities
263
276
  client.get('/space/activities').body.each do |a|
@@ -1,3 +1,3 @@
1
1
  module Bl
2
- VERSION = '0.2.7'.freeze
2
+ VERSION = '0.2.8'.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.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - saki
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-26 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor