gitlab 3.6.0 → 3.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f71b98abae4830188738c95c3c90310473de96a7
4
- data.tar.gz: 64134f58cbba17afe03218750cea381d37865f93
3
+ metadata.gz: 301e52d18ded3288a111012aa1c0d006937a47af
4
+ data.tar.gz: 7a4b6163d5a16df96db5fc4e98632c0558809817
5
5
  SHA512:
6
- metadata.gz: f1e92645b84ff2e71918812296ce9b70ae67215b2c5919b901fc49de1f5c587c7dbacdb194b9091228a065fe30917b23cadfc3b4c5ea7fcc6659765b2581db6b
7
- data.tar.gz: 97d106205c7a38c8e51469e133fa7209b8c0e3fe69f43dbe928df7ed16bb5e202674c35e05a072ef8cddc112fb73c7d7df65fbc0e5757410979752e1da901abd
6
+ metadata.gz: 43cc8981b2529bca0938a2a4d36c19e9aa50405ff3cafaca6d240984b02784ab52ecdec111cf24f54689155ad2bd7c919a755df4ad90fe3ff92d04beb75d5948
7
+ data.tar.gz: 5c652574397d79ca7d4985dfcc03d94a6eba17001bf1dde589ebceb740c8c21f00ccb43e73032b24ce0c8e03438c3fc2c742b873aae67aca95549cefb78544d8
@@ -1,5 +1,9 @@
1
1
  ## Change Log
2
2
 
3
+ ### 3.6.1 (13/12/2015)
4
+
5
+ - Fixed CLI output for collections
6
+
3
7
  ### 3.6.0 (11/12/2015)
4
8
 
5
9
  - Improved output of the CLI help (@thomasdarimont)
@@ -93,7 +93,7 @@ class Gitlab::CLI
93
93
  case data
94
94
  when Gitlab::ObjectifiedHash
95
95
  puts record_table([data], cmd, args)
96
- when Array
96
+ when Gitlab::PaginatedResponse
97
97
  puts record_table(data, cmd, args)
98
98
  else # probably just an error msg
99
99
  puts data
@@ -107,7 +107,7 @@ class Gitlab::CLI
107
107
  hash_result = case data
108
108
  when Gitlab::ObjectifiedHash
109
109
  record_hash([data], cmd, args, true)
110
- when Array
110
+ when Gitlab::PaginatedResponse
111
111
  record_hash(data, cmd, args)
112
112
  else
113
113
  { cmd: cmd, data: data, args: args }
@@ -1,3 +1,3 @@
1
1
  module Gitlab
2
- VERSION = "3.6.0"
2
+ VERSION = "3.6.1"
3
3
  end
@@ -43,6 +43,23 @@ describe Gitlab::CLI do
43
43
  expect(@output).to include('John Smith')
44
44
  end
45
45
  end
46
+
47
+ context "when command is users" do
48
+ before do
49
+ stub_get("/users", "users")
50
+ @output = capture_output { Gitlab::CLI.run('users') }
51
+ end
52
+
53
+ it "should show executed command" do
54
+ expect(@output).to include('Gitlab.users')
55
+ end
56
+
57
+ it "should show users data" do
58
+ expect(@output).to include('name')
59
+ expect(@output).to include('John Smith')
60
+ expect(@output).to include('Jack Smith')
61
+ end
62
+ end
46
63
  end
47
64
 
48
65
  describe ".start" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nihad Abbasov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-11 00:00:00.000000000 Z
11
+ date: 2015-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty