gitlab 3.4.0 → 3.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +30 -2
- data/README.md +22 -0
- data/bin/console +10 -0
- data/bin/setup +6 -0
- data/{bin → exe}/gitlab +0 -0
- data/gitlab.gemspec +4 -1
- data/lib/gitlab.rb +1 -1
- data/lib/gitlab/cli.rb +20 -2
- data/lib/gitlab/cli_helpers.rb +74 -15
- data/lib/gitlab/client.rb +2 -0
- data/lib/gitlab/client/commits.rb +121 -0
- data/lib/gitlab/client/groups.rb +25 -2
- data/lib/gitlab/client/issues.rb +7 -0
- data/lib/gitlab/client/milestones.rb +6 -0
- data/lib/gitlab/client/namespaces.rb +19 -0
- data/lib/gitlab/client/notes.rb +12 -0
- data/lib/gitlab/client/projects.rb +30 -0
- data/lib/gitlab/client/repositories.rb +0 -75
- data/lib/gitlab/client/repository_files.rb +16 -0
- data/lib/gitlab/client/snippets.rb +15 -0
- data/lib/gitlab/client/users.rb +54 -5
- data/lib/gitlab/configuration.rb +14 -0
- data/lib/gitlab/error.rb +3 -0
- data/lib/gitlab/request.rb +13 -2
- data/lib/gitlab/shell.rb +1 -2
- data/lib/gitlab/version.rb +1 -1
- data/spec/fixtures/branch_delete.json +0 -0
- data/spec/fixtures/get_repository_file.json +1 -0
- data/spec/fixtures/group_create_with_description.json +1 -0
- data/spec/fixtures/group_search.json +2 -0
- data/spec/fixtures/namespaces.json +1 -0
- data/spec/fixtures/project_commit_status.json +42 -0
- data/spec/fixtures/project_edit.json +21 -0
- data/spec/fixtures/project_fork.json +50 -0
- data/spec/fixtures/project_forked_for_user.json +50 -0
- data/spec/fixtures/project_update_commit_status.json +20 -0
- data/spec/fixtures/snippet_content.json +3 -0
- data/spec/fixtures/user.json +1 -1
- data/spec/fixtures/user_block_unblock.json +1 -0
- data/spec/fixtures/users.json +1 -1
- data/spec/gitlab/cli_helpers_spec.rb +6 -6
- data/spec/gitlab/cli_spec.rb +16 -0
- data/spec/gitlab/client/commits_spec.rb +137 -0
- data/spec/gitlab/client/groups_spec.rb +51 -13
- data/spec/gitlab/client/namespaces_spec.rb +22 -0
- data/spec/gitlab/client/projects_spec.rb +51 -0
- data/spec/gitlab/client/repositories_spec.rb +0 -88
- data/spec/gitlab/client/repository_files_spec.rb +17 -0
- data/spec/gitlab/client/snippets_spec.rb +15 -0
- data/spec/gitlab/client/users_spec.rb +73 -0
- data/spec/gitlab/help_spec.rb +1 -1
- data/spec/gitlab/request_spec.rb +16 -3
- data/spec/gitlab/shell_spec.rb +2 -2
- metadata +51 -6
data/spec/gitlab/shell_spec.rb
CHANGED
@@ -55,14 +55,14 @@ describe Gitlab::Shell do
|
|
55
55
|
it "should return an Array of matching commands" do
|
56
56
|
completed_cmds = @comp.call 'group'
|
57
57
|
expect(completed_cmds).to be_a Array
|
58
|
-
expect(completed_cmds.sort).to eq(['group', 'group_members', 'groups'])
|
58
|
+
expect(completed_cmds.sort).to eq(['group', 'group_members', 'group_search', 'groups'])
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|
63
63
|
describe ".parse_input" do
|
64
64
|
context "with arguments" do
|
65
|
-
it "should set command &
|
65
|
+
it "should set command & arguments" do
|
66
66
|
Gitlab::Shell.parse_input('create_branch 1 "api" "master"')
|
67
67
|
expect(Gitlab::Shell.command).to eq('create_branch')
|
68
68
|
expect(Gitlab::Shell.arguments).to eq(['1', 'api', 'master'])
|
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.
|
4
|
+
version: 3.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nihad Abbasov
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: pry
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rake
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -96,7 +110,9 @@ files:
|
|
96
110
|
- LICENSE.txt
|
97
111
|
- README.md
|
98
112
|
- Rakefile
|
99
|
-
- bin/
|
113
|
+
- bin/console
|
114
|
+
- bin/setup
|
115
|
+
- exe/gitlab
|
100
116
|
- gitlab.gemspec
|
101
117
|
- lib/gitlab.rb
|
102
118
|
- lib/gitlab/api.rb
|
@@ -104,11 +120,13 @@ files:
|
|
104
120
|
- lib/gitlab/cli_helpers.rb
|
105
121
|
- lib/gitlab/client.rb
|
106
122
|
- lib/gitlab/client/branches.rb
|
123
|
+
- lib/gitlab/client/commits.rb
|
107
124
|
- lib/gitlab/client/groups.rb
|
108
125
|
- lib/gitlab/client/issues.rb
|
109
126
|
- lib/gitlab/client/labels.rb
|
110
127
|
- lib/gitlab/client/merge_requests.rb
|
111
128
|
- lib/gitlab/client/milestones.rb
|
129
|
+
- lib/gitlab/client/namespaces.rb
|
112
130
|
- lib/gitlab/client/notes.rb
|
113
131
|
- lib/gitlab/client/projects.rb
|
114
132
|
- lib/gitlab/client/repositories.rb
|
@@ -129,11 +147,14 @@ files:
|
|
129
147
|
- spec/fixtures/branches.json
|
130
148
|
- spec/fixtures/compare_merge_request_diff.json
|
131
149
|
- spec/fixtures/error_already_exists.json
|
150
|
+
- spec/fixtures/get_repository_file.json
|
132
151
|
- spec/fixtures/group.json
|
133
152
|
- spec/fixtures/group_create.json
|
153
|
+
- spec/fixtures/group_create_with_description.json
|
134
154
|
- spec/fixtures/group_member.json
|
135
155
|
- spec/fixtures/group_member_delete.json
|
136
156
|
- spec/fixtures/group_members.json
|
157
|
+
- spec/fixtures/group_search.json
|
137
158
|
- spec/fixtures/groups.json
|
138
159
|
- spec/fixtures/issue.json
|
139
160
|
- spec/fixtures/issues.json
|
@@ -149,6 +170,7 @@ files:
|
|
149
170
|
- spec/fixtures/milestone.json
|
150
171
|
- spec/fixtures/milestone_issues.json
|
151
172
|
- spec/fixtures/milestones.json
|
173
|
+
- spec/fixtures/namespaces.json
|
152
174
|
- spec/fixtures/note.json
|
153
175
|
- spec/fixtures/notes.json
|
154
176
|
- spec/fixtures/project.json
|
@@ -156,10 +178,14 @@ files:
|
|
156
178
|
- spec/fixtures/project_commit_comment.json
|
157
179
|
- spec/fixtures/project_commit_comments.json
|
158
180
|
- spec/fixtures/project_commit_diff.json
|
181
|
+
- spec/fixtures/project_commit_status.json
|
159
182
|
- spec/fixtures/project_commits.json
|
183
|
+
- spec/fixtures/project_edit.json
|
160
184
|
- spec/fixtures/project_events.json
|
161
185
|
- spec/fixtures/project_for_user.json
|
186
|
+
- spec/fixtures/project_fork.json
|
162
187
|
- spec/fixtures/project_fork_link.json
|
188
|
+
- spec/fixtures/project_forked_for_user.json
|
163
189
|
- spec/fixtures/project_hook.json
|
164
190
|
- spec/fixtures/project_hooks.json
|
165
191
|
- spec/fixtures/project_issues.json
|
@@ -169,12 +195,14 @@ files:
|
|
169
195
|
- spec/fixtures/project_tag_annotated.json
|
170
196
|
- spec/fixtures/project_tag_lightweight.json
|
171
197
|
- spec/fixtures/project_tags.json
|
198
|
+
- spec/fixtures/project_update_commit_status.json
|
172
199
|
- spec/fixtures/projects.json
|
173
200
|
- spec/fixtures/raw_file.json
|
174
201
|
- spec/fixtures/repository_file.json
|
175
202
|
- spec/fixtures/session.json
|
176
203
|
- spec/fixtures/shell_history.json
|
177
204
|
- spec/fixtures/snippet.json
|
205
|
+
- spec/fixtures/snippet_content.json
|
178
206
|
- spec/fixtures/snippets.json
|
179
207
|
- spec/fixtures/system_hook.json
|
180
208
|
- spec/fixtures/system_hooks.json
|
@@ -182,15 +210,18 @@ files:
|
|
182
210
|
- spec/fixtures/team_members.json
|
183
211
|
- spec/fixtures/tree.json
|
184
212
|
- spec/fixtures/user.json
|
213
|
+
- spec/fixtures/user_block_unblock.json
|
185
214
|
- spec/fixtures/users.json
|
186
215
|
- spec/gitlab/cli_helpers_spec.rb
|
187
216
|
- spec/gitlab/cli_spec.rb
|
188
217
|
- spec/gitlab/client/branches_spec.rb
|
218
|
+
- spec/gitlab/client/commits_spec.rb
|
189
219
|
- spec/gitlab/client/groups_spec.rb
|
190
220
|
- spec/gitlab/client/issues_spec.rb
|
191
221
|
- spec/gitlab/client/labels_spec.rb
|
192
222
|
- spec/gitlab/client/merge_requests_spec.rb
|
193
223
|
- spec/gitlab/client/milestones_spec.rb
|
224
|
+
- spec/gitlab/client/namespaces_spec.rb
|
194
225
|
- spec/gitlab/client/notes_spec.rb
|
195
226
|
- spec/gitlab/client/projects_spec.rb
|
196
227
|
- spec/gitlab/client/repositories_spec.rb
|
@@ -206,7 +237,8 @@ files:
|
|
206
237
|
- spec/gitlab_spec.rb
|
207
238
|
- spec/spec_helper.rb
|
208
239
|
homepage: https://github.com/narkoz/gitlab
|
209
|
-
licenses:
|
240
|
+
licenses:
|
241
|
+
- BSD
|
210
242
|
metadata: {}
|
211
243
|
post_install_message:
|
212
244
|
rdoc_options: []
|
@@ -224,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
256
|
version: '0'
|
225
257
|
requirements: []
|
226
258
|
rubyforge_project:
|
227
|
-
rubygems_version: 2.
|
259
|
+
rubygems_version: 2.5.0
|
228
260
|
signing_key:
|
229
261
|
specification_version: 4
|
230
262
|
summary: A Ruby wrapper and CLI for the GitLab API
|
@@ -234,11 +266,14 @@ test_files:
|
|
234
266
|
- spec/fixtures/branches.json
|
235
267
|
- spec/fixtures/compare_merge_request_diff.json
|
236
268
|
- spec/fixtures/error_already_exists.json
|
269
|
+
- spec/fixtures/get_repository_file.json
|
237
270
|
- spec/fixtures/group.json
|
238
271
|
- spec/fixtures/group_create.json
|
272
|
+
- spec/fixtures/group_create_with_description.json
|
239
273
|
- spec/fixtures/group_member.json
|
240
274
|
- spec/fixtures/group_member_delete.json
|
241
275
|
- spec/fixtures/group_members.json
|
276
|
+
- spec/fixtures/group_search.json
|
242
277
|
- spec/fixtures/groups.json
|
243
278
|
- spec/fixtures/issue.json
|
244
279
|
- spec/fixtures/issues.json
|
@@ -254,6 +289,7 @@ test_files:
|
|
254
289
|
- spec/fixtures/milestone.json
|
255
290
|
- spec/fixtures/milestone_issues.json
|
256
291
|
- spec/fixtures/milestones.json
|
292
|
+
- spec/fixtures/namespaces.json
|
257
293
|
- spec/fixtures/note.json
|
258
294
|
- spec/fixtures/notes.json
|
259
295
|
- spec/fixtures/project.json
|
@@ -261,10 +297,14 @@ test_files:
|
|
261
297
|
- spec/fixtures/project_commit_comment.json
|
262
298
|
- spec/fixtures/project_commit_comments.json
|
263
299
|
- spec/fixtures/project_commit_diff.json
|
300
|
+
- spec/fixtures/project_commit_status.json
|
264
301
|
- spec/fixtures/project_commits.json
|
302
|
+
- spec/fixtures/project_edit.json
|
265
303
|
- spec/fixtures/project_events.json
|
266
304
|
- spec/fixtures/project_for_user.json
|
305
|
+
- spec/fixtures/project_fork.json
|
267
306
|
- spec/fixtures/project_fork_link.json
|
307
|
+
- spec/fixtures/project_forked_for_user.json
|
268
308
|
- spec/fixtures/project_hook.json
|
269
309
|
- spec/fixtures/project_hooks.json
|
270
310
|
- spec/fixtures/project_issues.json
|
@@ -274,12 +314,14 @@ test_files:
|
|
274
314
|
- spec/fixtures/project_tag_annotated.json
|
275
315
|
- spec/fixtures/project_tag_lightweight.json
|
276
316
|
- spec/fixtures/project_tags.json
|
317
|
+
- spec/fixtures/project_update_commit_status.json
|
277
318
|
- spec/fixtures/projects.json
|
278
319
|
- spec/fixtures/raw_file.json
|
279
320
|
- spec/fixtures/repository_file.json
|
280
321
|
- spec/fixtures/session.json
|
281
322
|
- spec/fixtures/shell_history.json
|
282
323
|
- spec/fixtures/snippet.json
|
324
|
+
- spec/fixtures/snippet_content.json
|
283
325
|
- spec/fixtures/snippets.json
|
284
326
|
- spec/fixtures/system_hook.json
|
285
327
|
- spec/fixtures/system_hooks.json
|
@@ -287,15 +329,18 @@ test_files:
|
|
287
329
|
- spec/fixtures/team_members.json
|
288
330
|
- spec/fixtures/tree.json
|
289
331
|
- spec/fixtures/user.json
|
332
|
+
- spec/fixtures/user_block_unblock.json
|
290
333
|
- spec/fixtures/users.json
|
291
334
|
- spec/gitlab/cli_helpers_spec.rb
|
292
335
|
- spec/gitlab/cli_spec.rb
|
293
336
|
- spec/gitlab/client/branches_spec.rb
|
337
|
+
- spec/gitlab/client/commits_spec.rb
|
294
338
|
- spec/gitlab/client/groups_spec.rb
|
295
339
|
- spec/gitlab/client/issues_spec.rb
|
296
340
|
- spec/gitlab/client/labels_spec.rb
|
297
341
|
- spec/gitlab/client/merge_requests_spec.rb
|
298
342
|
- spec/gitlab/client/milestones_spec.rb
|
343
|
+
- spec/gitlab/client/namespaces_spec.rb
|
299
344
|
- spec/gitlab/client/notes_spec.rb
|
300
345
|
- spec/gitlab/client/projects_spec.rb
|
301
346
|
- spec/gitlab/client/repositories_spec.rb
|