gitlab 3.6.0 → 3.6.1
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/CHANGELOG.md +4 -0
- data/lib/gitlab/cli_helpers.rb +2 -2
- data/lib/gitlab/version.rb +1 -1
- data/spec/gitlab/cli_spec.rb +17 -0
- 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: 301e52d18ded3288a111012aa1c0d006937a47af
|
4
|
+
data.tar.gz: 7a4b6163d5a16df96db5fc4e98632c0558809817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43cc8981b2529bca0938a2a4d36c19e9aa50405ff3cafaca6d240984b02784ab52ecdec111cf24f54689155ad2bd7c919a755df4ad90fe3ff92d04beb75d5948
|
7
|
+
data.tar.gz: 5c652574397d79ca7d4985dfcc03d94a6eba17001bf1dde589ebceb740c8c21f00ccb43e73032b24ce0c8e03438c3fc2c742b873aae67aca95549cefb78544d8
|
data/CHANGELOG.md
CHANGED
data/lib/gitlab/cli_helpers.rb
CHANGED
@@ -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
|
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
|
110
|
+
when Gitlab::PaginatedResponse
|
111
111
|
record_hash(data, cmd, args)
|
112
112
|
else
|
113
113
|
{ cmd: cmd, data: data, args: args }
|
data/lib/gitlab/version.rb
CHANGED
data/spec/gitlab/cli_spec.rb
CHANGED
@@ -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.
|
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
|
+
date: 2015-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|