gitlab 3.6.1 → 3.7.0
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.
- data/.travis.yml +2 -0
- data/CHANGELOG.md +25 -0
- data/README.md +9 -2
- data/gitlab.gemspec +5 -1
- data/lib/gitlab.rb +3 -2
- data/lib/gitlab/cli_helpers.rb +8 -3
- data/lib/gitlab/client.rb +6 -0
- data/lib/gitlab/client/build_triggers.rb +51 -0
- data/lib/gitlab/client/build_variables.rb +66 -0
- data/lib/gitlab/client/builds.rb +106 -0
- data/lib/gitlab/client/commits.rb +5 -5
- data/lib/gitlab/client/groups.rb +36 -3
- data/lib/gitlab/client/issues.rb +16 -3
- data/lib/gitlab/client/labels.rb +2 -2
- data/lib/gitlab/client/merge_requests.rb +49 -8
- data/lib/gitlab/client/milestones.rb +1 -1
- data/lib/gitlab/client/notes.rb +28 -1
- data/lib/gitlab/client/projects.rb +60 -7
- data/lib/gitlab/client/repositories.rb +1 -32
- data/lib/gitlab/client/runners.rb +115 -0
- data/lib/gitlab/client/services.rb +48 -0
- data/lib/gitlab/client/snippets.rb +2 -2
- data/lib/gitlab/client/tags.rb +96 -0
- data/lib/gitlab/client/users.rb +72 -2
- data/lib/gitlab/error.rb +53 -10
- data/lib/gitlab/file_response.rb +45 -0
- data/lib/gitlab/help.rb +1 -0
- data/lib/gitlab/objectified_hash.rb +1 -1
- data/lib/gitlab/paginated_response.rb +2 -2
- data/lib/gitlab/request.rb +13 -34
- data/lib/gitlab/version.rb +1 -1
- data/spec/fixtures/build.json +38 -0
- data/spec/fixtures/build_artifacts.json +0 -0
- data/spec/fixtures/build_cancel.json +24 -0
- data/spec/fixtures/build_erase.json +24 -0
- data/spec/fixtures/build_retry.json +24 -0
- data/spec/fixtures/builds.json +78 -0
- data/spec/fixtures/builds_commits.json +64 -0
- data/spec/fixtures/error_project_not_found.json +1 -0
- data/spec/fixtures/git_hook.json +1 -0
- data/spec/fixtures/group_delete.json +1 -0
- data/spec/fixtures/group_member_edit.json +1 -0
- data/spec/fixtures/group_projects.json +44 -0
- data/spec/fixtures/merge_request_commits.json +1 -0
- data/spec/fixtures/project_runner_enable.json +7 -0
- data/spec/fixtures/project_runners.json +16 -0
- data/spec/fixtures/release_create.json +1 -0
- data/spec/fixtures/release_update.json +1 -0
- data/spec/fixtures/runner.json +26 -0
- data/spec/fixtures/runner_delete.json +7 -0
- data/spec/fixtures/runner_edit.json +26 -0
- data/spec/fixtures/runners.json +16 -0
- data/spec/fixtures/runners_all.json +30 -0
- data/spec/fixtures/service.json +1 -0
- data/spec/fixtures/tag.json +1 -0
- data/spec/fixtures/tag_create.json +1 -0
- data/spec/fixtures/tag_create_with_description.json +1 -0
- data/spec/fixtures/tag_delete.json +1 -0
- data/spec/fixtures/tags.json +1 -0
- data/spec/fixtures/trigger.json +7 -0
- data/spec/fixtures/triggers.json +16 -0
- data/spec/fixtures/user_email.json +1 -0
- data/spec/fixtures/user_emails.json +1 -0
- data/spec/fixtures/user_search.json +1 -0
- data/spec/fixtures/variable.json +4 -0
- data/spec/fixtures/variables.json +10 -0
- data/spec/gitlab/client/build_triggers_spec.rb +67 -0
- data/spec/gitlab/client/build_variables_spec.rb +86 -0
- data/spec/gitlab/client/builds_spec.rb +148 -0
- data/spec/gitlab/client/groups_spec.rb +51 -0
- data/spec/gitlab/client/issues_spec.rb +16 -0
- data/spec/gitlab/client/merge_requests_spec.rb +27 -4
- data/spec/gitlab/client/notes_spec.rb +32 -0
- data/spec/gitlab/client/projects_spec.rb +79 -0
- data/spec/gitlab/client/runners_spec.rb +185 -0
- data/spec/gitlab/client/services_spec.rb +55 -0
- data/spec/gitlab/client/tags_spec.rb +109 -0
- data/spec/gitlab/client/users_spec.rb +136 -0
- data/spec/gitlab/error_spec.rb +45 -0
- data/spec/gitlab/file_response_spec.rb +28 -0
- data/spec/gitlab/help_spec.rb +6 -1
- data/spec/gitlab/request_spec.rb +0 -27
- data/spec/gitlab/shell_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +131 -23
- checksums.yaml +0 -7
@@ -261,4 +261,140 @@ describe Gitlab::Client do
|
|
261
261
|
expect(@key.title).to eq("narkoz@helium")
|
262
262
|
end
|
263
263
|
end
|
264
|
+
|
265
|
+
describe ".emails" do
|
266
|
+
describe "without user ID" do
|
267
|
+
before do
|
268
|
+
stub_get("/user/emails", "user_emails")
|
269
|
+
@emails = Gitlab.emails
|
270
|
+
end
|
271
|
+
|
272
|
+
it "should get the correct resource" do
|
273
|
+
expect(a_get("/user/emails")).to have_been_made
|
274
|
+
end
|
275
|
+
|
276
|
+
it "should return a information about a emails of user" do
|
277
|
+
email = @emails.first
|
278
|
+
expect(email.id).to eq 1
|
279
|
+
expect(email.email).to eq("email@example.com")
|
280
|
+
end
|
281
|
+
end
|
282
|
+
|
283
|
+
describe "with user ID" do
|
284
|
+
before do
|
285
|
+
stub_get("/users/2/emails", "user_emails")
|
286
|
+
@emails = Gitlab.emails(2)
|
287
|
+
end
|
288
|
+
|
289
|
+
it "should get the correct resource" do
|
290
|
+
expect(a_get("/users/2/emails")).to have_been_made
|
291
|
+
end
|
292
|
+
|
293
|
+
it "should return a information about a emails of user" do
|
294
|
+
email = @emails.first
|
295
|
+
expect(email.id).to eq 1
|
296
|
+
expect(email.email).to eq("email@example.com")
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
300
|
+
|
301
|
+
describe ".email" do
|
302
|
+
before do
|
303
|
+
stub_get("/user/emails/2", "user_email")
|
304
|
+
@email = Gitlab.email(2)
|
305
|
+
end
|
306
|
+
|
307
|
+
it "should get the correct resource" do
|
308
|
+
expect(a_get("/user/emails/2")).to have_been_made
|
309
|
+
end
|
310
|
+
|
311
|
+
it "should return a information about a email of user" do
|
312
|
+
expect(@email.id).to eq 1
|
313
|
+
expect(@email.email).to eq("email@example.com")
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
describe ".add_email" do
|
318
|
+
describe "without user ID" do
|
319
|
+
before do
|
320
|
+
stub_post("/user/emails", "user_email")
|
321
|
+
@email = Gitlab.add_email("email@example.com")
|
322
|
+
end
|
323
|
+
|
324
|
+
it "should get the correct resource" do
|
325
|
+
body = { email: "email@example.com" }
|
326
|
+
expect(a_post("/user/emails").with(body: body)).to have_been_made
|
327
|
+
end
|
328
|
+
|
329
|
+
it "should return information about a new email" do
|
330
|
+
expect(@email.id).to eq(1)
|
331
|
+
expect(@email.email).to eq("email@example.com")
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
describe "with user ID" do
|
336
|
+
before do
|
337
|
+
stub_post("/users/2/emails", "user_email")
|
338
|
+
@email = Gitlab.add_email("email@example.com", 2)
|
339
|
+
end
|
340
|
+
|
341
|
+
it "should get the correct resource" do
|
342
|
+
body = { email: "email@example.com" }
|
343
|
+
expect(a_post("/users/2/emails").with(body: body)).to have_been_made
|
344
|
+
end
|
345
|
+
|
346
|
+
it "should return information about a new email" do
|
347
|
+
expect(@email.id).to eq(1)
|
348
|
+
expect(@email.email).to eq("email@example.com")
|
349
|
+
end
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
describe ".delete_email" do
|
354
|
+
describe "without user ID" do
|
355
|
+
before do
|
356
|
+
stub_delete("/user/emails/1", "user_email")
|
357
|
+
@email = Gitlab.delete_email(1)
|
358
|
+
end
|
359
|
+
|
360
|
+
it "should get the correct resource" do
|
361
|
+
expect(a_delete("/user/emails/1")).to have_been_made
|
362
|
+
end
|
363
|
+
|
364
|
+
it "should return information about a deleted email" do
|
365
|
+
expect(@email).to be_truthy
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
describe "with user ID" do
|
370
|
+
before do
|
371
|
+
stub_delete("/users/2/emails/1", "user_email")
|
372
|
+
@email = Gitlab.delete_email(1, 2)
|
373
|
+
end
|
374
|
+
|
375
|
+
it "should get the correct resource" do
|
376
|
+
expect(a_delete("/users/2/emails/1")).to have_been_made
|
377
|
+
end
|
378
|
+
|
379
|
+
it "should return information about a deleted email" do
|
380
|
+
expect(@email).to be_truthy
|
381
|
+
end
|
382
|
+
end
|
383
|
+
end
|
384
|
+
|
385
|
+
describe ".user_search" do
|
386
|
+
before do
|
387
|
+
stub_get("/users?search=User", "user_search")
|
388
|
+
@users = Gitlab.user_search('User')
|
389
|
+
end
|
390
|
+
|
391
|
+
it "should get the correct resource" do
|
392
|
+
expect(a_get("/users?search=User")).to have_been_made
|
393
|
+
end
|
394
|
+
|
395
|
+
it "should return an array of users found" do
|
396
|
+
expect(@users.first.id).to eq(1)
|
397
|
+
expect(@users.last.id).to eq(2)
|
398
|
+
end
|
399
|
+
end
|
264
400
|
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Gitlab::Error do
|
4
|
+
describe "#handle_message" do
|
5
|
+
require "stringio"
|
6
|
+
|
7
|
+
before do
|
8
|
+
request_object = HTTParty::Request.new(Net::HTTP::Get, '/')
|
9
|
+
response_object = Net::HTTPOK.new('1.1', 200, 'OK')
|
10
|
+
body = StringIO.new("{foo:'bar'}")
|
11
|
+
def body.message; self.string; end
|
12
|
+
|
13
|
+
parsed_response = lambda { body }
|
14
|
+
response_object['last-modified'] = Date.new(2010, 1, 15).to_s
|
15
|
+
response_object['content-length'] = "1024"
|
16
|
+
|
17
|
+
response = HTTParty::Response.new(request_object, response_object, parsed_response, body: body)
|
18
|
+
@error = Gitlab::Error::ResponseError.new(response)
|
19
|
+
|
20
|
+
@array = Array.new(['First message.', 'Second message.'])
|
21
|
+
@obj_h = Gitlab::ObjectifiedHash.new(user: ['not set'],
|
22
|
+
password: ['too short'],
|
23
|
+
embed_entity: { foo: ['bar'], sna: ['fu'] })
|
24
|
+
end
|
25
|
+
|
26
|
+
context "when passed an ObjectifiedHash" do
|
27
|
+
it "should return a joined string of error messages sorted by key" do
|
28
|
+
expect(@error.send(:handle_message, @obj_h)).to eq("'embed_entity' (foo: bar) (sna: fu), 'password' too short, 'user' not set")
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
context "when passed an Array" do
|
33
|
+
it "should return a joined string of messages" do
|
34
|
+
expect(@error.send(:handle_message, @array)).to eq("First message. Second message.")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
context "when passed a String" do
|
39
|
+
it "should return the String untouched" do
|
40
|
+
error = 'this is an error string'
|
41
|
+
expect(@error.send(:handle_message, error)).to eq('this is an error string')
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Gitlab::FileResponse do
|
4
|
+
before do
|
5
|
+
@file_response = Gitlab::FileResponse.new StringIO.new("", 'rb+')
|
6
|
+
end
|
7
|
+
|
8
|
+
context '.empty?' do
|
9
|
+
it "shoudl return false" do
|
10
|
+
expect(@file_response.empty?).to be false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
context '.to_hash' do
|
15
|
+
it "should have `filename` key and `data` key" do
|
16
|
+
h = @file_response.to_hash
|
17
|
+
expect(h.has_key?(:filename)).to be_truthy
|
18
|
+
expect(h.has_key?(:data)).to be_truthy
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
context '.parse_headers!' do
|
23
|
+
it "should parse headers" do
|
24
|
+
@file_response.parse_headers!('Content-Disposition' => "attachment; filename=artifacts.zip")
|
25
|
+
expect(@file_response.filename).to eq "artifacts.zip"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
data/spec/gitlab/help_spec.rb
CHANGED
@@ -21,11 +21,16 @@ describe Gitlab::Help do
|
|
21
21
|
before do
|
22
22
|
@cmd = "create_branch"
|
23
23
|
@help_output = "Gitlab.#{@cmd}(4, 'new-branch', 'master')"
|
24
|
+
@help_output_with_options = "Gitlab.groups({ per_page: 3 })"
|
24
25
|
end
|
25
26
|
it "should return a String of modified output" do
|
26
27
|
Gitlab::Help.change_help_output! @cmd, @help_output
|
27
28
|
expect(@help_output).to eq("Gitlab.create_branch 4 'new-branch' 'master'")
|
28
29
|
end
|
30
|
+
it "should format options hash and return a String of modified output" do
|
31
|
+
Gitlab::Help.change_help_output! 'groups', @help_output_with_options
|
32
|
+
expect(@help_output_with_options).to eq("Gitlab.groups \"{ per_page: 3 }\"")
|
33
|
+
end
|
29
34
|
end
|
30
35
|
|
31
36
|
describe ".namespace" do
|
@@ -35,7 +40,7 @@ describe Gitlab::Help do
|
|
35
40
|
end
|
36
41
|
it "should return the full namespace for a command" do
|
37
42
|
expect(@namespace).to be_a String
|
38
|
-
expect(@namespace).to eq("Gitlab::Client::
|
43
|
+
expect(@namespace).to eq("Gitlab::Client::Tags.#{@cmd}")
|
39
44
|
end
|
40
45
|
end
|
41
46
|
end
|
data/spec/gitlab/request_spec.rb
CHANGED
@@ -70,31 +70,4 @@ describe Gitlab::Request do
|
|
70
70
|
expect(@request.send(:set_authorization_header, {})).to eq("Authorization" => "Bearer 3225e2804d31fea13fc41fc83bffef00cfaedc463118646b154acc6f94747603")
|
71
71
|
end
|
72
72
|
end
|
73
|
-
|
74
|
-
describe "#handle_error" do
|
75
|
-
before do
|
76
|
-
@array = Array.new(['First message.', 'Second message.'])
|
77
|
-
@obj_h = Gitlab::ObjectifiedHash.new(user: ['not set'],
|
78
|
-
password: ['too short'],
|
79
|
-
embed_entity: { foo: ['bar'], sna: ['fu'] })
|
80
|
-
end
|
81
|
-
context "when passed an ObjectifiedHash" do
|
82
|
-
it "should return a joined string of error messages sorted by key" do
|
83
|
-
expect(@request.send(:handle_error, @obj_h)).to eq("'embed_entity' (foo: bar) (sna: fu), 'password' too short, 'user' not set")
|
84
|
-
end
|
85
|
-
end
|
86
|
-
|
87
|
-
context "when passed an Array" do
|
88
|
-
it "should return a joined string of messages" do
|
89
|
-
expect(@request.send(:handle_error, @array)).to eq("First message. Second message.")
|
90
|
-
end
|
91
|
-
end
|
92
|
-
|
93
|
-
context "when passed a String" do
|
94
|
-
it "should return the String untouched" do
|
95
|
-
error = 'this is an error string'
|
96
|
-
expect(@request.send(:handle_error, error)).to eq('this is an error string')
|
97
|
-
end
|
98
|
-
end
|
99
|
-
end
|
100
73
|
end
|
data/spec/gitlab/shell_spec.rb
CHANGED
@@ -55,7 +55,7 @@ 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(%w(group group_members group_search groups))
|
58
|
+
expect(completed_cmds.sort).to eq(%w(group group_members group_projects group_search groups))
|
59
59
|
end
|
60
60
|
end
|
61
61
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -26,10 +26,10 @@ RSpec.configure do |config|
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# GET
|
29
|
-
def stub_get(path, fixture)
|
29
|
+
def stub_get(path, fixture, status_code=200)
|
30
30
|
stub_request(:get, "#{Gitlab.endpoint}#{path}").
|
31
31
|
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token }).
|
32
|
-
to_return(body: load_fixture(fixture))
|
32
|
+
to_return(body: load_fixture(fixture), status: status_code)
|
33
33
|
end
|
34
34
|
|
35
35
|
def a_get(path)
|
metadata
CHANGED
@@ -1,97 +1,110 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.7.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Nihad Abbasov
|
8
9
|
autorequire:
|
9
10
|
bindir: exe
|
10
11
|
cert_chain: []
|
11
|
-
date:
|
12
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: httparty
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
21
|
+
version: 0.13.0
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ~>
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 0.13.0
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: terminal-table
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
|
-
- -
|
35
|
+
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
33
37
|
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
|
-
- -
|
43
|
+
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
40
45
|
version: '0'
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: pry
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: '0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0'
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: rake
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
|
-
- -
|
67
|
+
- - ! '>='
|
60
68
|
- !ruby/object:Gem::Version
|
61
69
|
version: '0'
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
|
-
- -
|
75
|
+
- - ! '>='
|
67
76
|
- !ruby/object:Gem::Version
|
68
77
|
version: '0'
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: rspec
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- -
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- -
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
- !ruby/object:Gem::Dependency
|
84
95
|
name: webmock
|
85
96
|
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
86
98
|
requirements:
|
87
|
-
- -
|
99
|
+
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '0'
|
90
102
|
type: :development
|
91
103
|
prerelease: false
|
92
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
93
106
|
requirements:
|
94
|
-
- -
|
107
|
+
- - ! '>='
|
95
108
|
- !ruby/object:Gem::Version
|
96
109
|
version: '0'
|
97
110
|
description: Ruby client and CLI for GitLab API
|
@@ -102,8 +115,8 @@ executables:
|
|
102
115
|
extensions: []
|
103
116
|
extra_rdoc_files: []
|
104
117
|
files:
|
105
|
-
-
|
106
|
-
-
|
118
|
+
- .gitignore
|
119
|
+
- .travis.yml
|
107
120
|
- CHANGELOG.md
|
108
121
|
- CONTRIBUTING.md
|
109
122
|
- Gemfile
|
@@ -120,6 +133,9 @@ files:
|
|
120
133
|
- lib/gitlab/cli_helpers.rb
|
121
134
|
- lib/gitlab/client.rb
|
122
135
|
- lib/gitlab/client/branches.rb
|
136
|
+
- lib/gitlab/client/build_triggers.rb
|
137
|
+
- lib/gitlab/client/build_variables.rb
|
138
|
+
- lib/gitlab/client/builds.rb
|
123
139
|
- lib/gitlab/client/commits.rb
|
124
140
|
- lib/gitlab/client/groups.rb
|
125
141
|
- lib/gitlab/client/issues.rb
|
@@ -131,11 +147,15 @@ files:
|
|
131
147
|
- lib/gitlab/client/projects.rb
|
132
148
|
- lib/gitlab/client/repositories.rb
|
133
149
|
- lib/gitlab/client/repository_files.rb
|
150
|
+
- lib/gitlab/client/runners.rb
|
151
|
+
- lib/gitlab/client/services.rb
|
134
152
|
- lib/gitlab/client/snippets.rb
|
135
153
|
- lib/gitlab/client/system_hooks.rb
|
154
|
+
- lib/gitlab/client/tags.rb
|
136
155
|
- lib/gitlab/client/users.rb
|
137
156
|
- lib/gitlab/configuration.rb
|
138
157
|
- lib/gitlab/error.rb
|
158
|
+
- lib/gitlab/file_response.rb
|
139
159
|
- lib/gitlab/help.rb
|
140
160
|
- lib/gitlab/objectified_hash.rb
|
141
161
|
- lib/gitlab/page_links.rb
|
@@ -147,15 +167,27 @@ files:
|
|
147
167
|
- spec/fixtures/branch.json
|
148
168
|
- spec/fixtures/branch_delete.json
|
149
169
|
- spec/fixtures/branches.json
|
170
|
+
- spec/fixtures/build.json
|
171
|
+
- spec/fixtures/build_artifacts.json
|
172
|
+
- spec/fixtures/build_cancel.json
|
173
|
+
- spec/fixtures/build_erase.json
|
174
|
+
- spec/fixtures/build_retry.json
|
175
|
+
- spec/fixtures/builds.json
|
176
|
+
- spec/fixtures/builds_commits.json
|
150
177
|
- spec/fixtures/compare_merge_request_diff.json
|
151
178
|
- spec/fixtures/error_already_exists.json
|
179
|
+
- spec/fixtures/error_project_not_found.json
|
152
180
|
- spec/fixtures/get_repository_file.json
|
181
|
+
- spec/fixtures/git_hook.json
|
153
182
|
- spec/fixtures/group.json
|
154
183
|
- spec/fixtures/group_create.json
|
155
184
|
- spec/fixtures/group_create_with_description.json
|
185
|
+
- spec/fixtures/group_delete.json
|
156
186
|
- spec/fixtures/group_member.json
|
157
187
|
- spec/fixtures/group_member_delete.json
|
188
|
+
- spec/fixtures/group_member_edit.json
|
158
189
|
- spec/fixtures/group_members.json
|
190
|
+
- spec/fixtures/group_projects.json
|
159
191
|
- spec/fixtures/group_search.json
|
160
192
|
- spec/fixtures/groups.json
|
161
193
|
- spec/fixtures/issue.json
|
@@ -168,6 +200,7 @@ files:
|
|
168
200
|
- spec/fixtures/merge_request_changes.json
|
169
201
|
- spec/fixtures/merge_request_comment.json
|
170
202
|
- spec/fixtures/merge_request_comments.json
|
203
|
+
- spec/fixtures/merge_request_commits.json
|
171
204
|
- spec/fixtures/merge_requests.json
|
172
205
|
- spec/fixtures/milestone.json
|
173
206
|
- spec/fixtures/milestone_issues.json
|
@@ -193,6 +226,8 @@ files:
|
|
193
226
|
- spec/fixtures/project_issues.json
|
194
227
|
- spec/fixtures/project_key.json
|
195
228
|
- spec/fixtures/project_keys.json
|
229
|
+
- spec/fixtures/project_runner_enable.json
|
230
|
+
- spec/fixtures/project_runners.json
|
196
231
|
- spec/fixtures/project_search.json
|
197
232
|
- spec/fixtures/project_tag_annotated.json
|
198
233
|
- spec/fixtures/project_tag_lightweight.json
|
@@ -200,7 +235,15 @@ files:
|
|
200
235
|
- spec/fixtures/project_update_commit_status.json
|
201
236
|
- spec/fixtures/projects.json
|
202
237
|
- spec/fixtures/raw_file.json
|
238
|
+
- spec/fixtures/release_create.json
|
239
|
+
- spec/fixtures/release_update.json
|
203
240
|
- spec/fixtures/repository_file.json
|
241
|
+
- spec/fixtures/runner.json
|
242
|
+
- spec/fixtures/runner_delete.json
|
243
|
+
- spec/fixtures/runner_edit.json
|
244
|
+
- spec/fixtures/runners.json
|
245
|
+
- spec/fixtures/runners_all.json
|
246
|
+
- spec/fixtures/service.json
|
204
247
|
- spec/fixtures/session.json
|
205
248
|
- spec/fixtures/shell_history.json
|
206
249
|
- spec/fixtures/snippet.json
|
@@ -208,15 +251,30 @@ files:
|
|
208
251
|
- spec/fixtures/snippets.json
|
209
252
|
- spec/fixtures/system_hook.json
|
210
253
|
- spec/fixtures/system_hooks.json
|
254
|
+
- spec/fixtures/tag.json
|
255
|
+
- spec/fixtures/tag_create.json
|
256
|
+
- spec/fixtures/tag_create_with_description.json
|
257
|
+
- spec/fixtures/tag_delete.json
|
258
|
+
- spec/fixtures/tags.json
|
211
259
|
- spec/fixtures/team_member.json
|
212
260
|
- spec/fixtures/team_members.json
|
213
261
|
- spec/fixtures/tree.json
|
262
|
+
- spec/fixtures/trigger.json
|
263
|
+
- spec/fixtures/triggers.json
|
214
264
|
- spec/fixtures/user.json
|
215
265
|
- spec/fixtures/user_block_unblock.json
|
266
|
+
- spec/fixtures/user_email.json
|
267
|
+
- spec/fixtures/user_emails.json
|
268
|
+
- spec/fixtures/user_search.json
|
216
269
|
- spec/fixtures/users.json
|
270
|
+
- spec/fixtures/variable.json
|
271
|
+
- spec/fixtures/variables.json
|
217
272
|
- spec/gitlab/cli_helpers_spec.rb
|
218
273
|
- spec/gitlab/cli_spec.rb
|
219
274
|
- spec/gitlab/client/branches_spec.rb
|
275
|
+
- spec/gitlab/client/build_triggers_spec.rb
|
276
|
+
- spec/gitlab/client/build_variables_spec.rb
|
277
|
+
- spec/gitlab/client/builds_spec.rb
|
220
278
|
- spec/gitlab/client/commits_spec.rb
|
221
279
|
- spec/gitlab/client/groups_spec.rb
|
222
280
|
- spec/gitlab/client/issues_spec.rb
|
@@ -228,9 +286,14 @@ files:
|
|
228
286
|
- spec/gitlab/client/projects_spec.rb
|
229
287
|
- spec/gitlab/client/repositories_spec.rb
|
230
288
|
- spec/gitlab/client/repository_files_spec.rb
|
289
|
+
- spec/gitlab/client/runners_spec.rb
|
290
|
+
- spec/gitlab/client/services_spec.rb
|
231
291
|
- spec/gitlab/client/snippets_spec.rb
|
232
292
|
- spec/gitlab/client/system_hooks_spec.rb
|
293
|
+
- spec/gitlab/client/tags_spec.rb
|
233
294
|
- spec/gitlab/client/users_spec.rb
|
295
|
+
- spec/gitlab/error_spec.rb
|
296
|
+
- spec/gitlab/file_response_spec.rb
|
234
297
|
- spec/gitlab/help_spec.rb
|
235
298
|
- spec/gitlab/objectified_hash_spec.rb
|
236
299
|
- spec/gitlab/page_links_spec.rb
|
@@ -243,40 +306,53 @@ files:
|
|
243
306
|
homepage: https://github.com/narkoz/gitlab
|
244
307
|
licenses:
|
245
308
|
- BSD
|
246
|
-
metadata: {}
|
247
309
|
post_install_message:
|
248
310
|
rdoc_options: []
|
249
311
|
require_paths:
|
250
312
|
- lib
|
251
313
|
required_ruby_version: !ruby/object:Gem::Requirement
|
314
|
+
none: false
|
252
315
|
requirements:
|
253
|
-
- -
|
316
|
+
- - ! '>='
|
254
317
|
- !ruby/object:Gem::Version
|
255
318
|
version: '0'
|
256
319
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
320
|
+
none: false
|
257
321
|
requirements:
|
258
|
-
- -
|
322
|
+
- - ! '>='
|
259
323
|
- !ruby/object:Gem::Version
|
260
324
|
version: '0'
|
261
325
|
requirements: []
|
262
326
|
rubyforge_project:
|
263
|
-
rubygems_version:
|
327
|
+
rubygems_version: 1.8.23
|
264
328
|
signing_key:
|
265
|
-
specification_version:
|
329
|
+
specification_version: 3
|
266
330
|
summary: A Ruby wrapper and CLI for the GitLab API
|
267
331
|
test_files:
|
268
332
|
- spec/fixtures/branch.json
|
269
333
|
- spec/fixtures/branch_delete.json
|
270
334
|
- spec/fixtures/branches.json
|
335
|
+
- spec/fixtures/build.json
|
336
|
+
- spec/fixtures/build_artifacts.json
|
337
|
+
- spec/fixtures/build_cancel.json
|
338
|
+
- spec/fixtures/build_erase.json
|
339
|
+
- spec/fixtures/build_retry.json
|
340
|
+
- spec/fixtures/builds.json
|
341
|
+
- spec/fixtures/builds_commits.json
|
271
342
|
- spec/fixtures/compare_merge_request_diff.json
|
272
343
|
- spec/fixtures/error_already_exists.json
|
344
|
+
- spec/fixtures/error_project_not_found.json
|
273
345
|
- spec/fixtures/get_repository_file.json
|
346
|
+
- spec/fixtures/git_hook.json
|
274
347
|
- spec/fixtures/group.json
|
275
348
|
- spec/fixtures/group_create.json
|
276
349
|
- spec/fixtures/group_create_with_description.json
|
350
|
+
- spec/fixtures/group_delete.json
|
277
351
|
- spec/fixtures/group_member.json
|
278
352
|
- spec/fixtures/group_member_delete.json
|
353
|
+
- spec/fixtures/group_member_edit.json
|
279
354
|
- spec/fixtures/group_members.json
|
355
|
+
- spec/fixtures/group_projects.json
|
280
356
|
- spec/fixtures/group_search.json
|
281
357
|
- spec/fixtures/groups.json
|
282
358
|
- spec/fixtures/issue.json
|
@@ -289,6 +365,7 @@ test_files:
|
|
289
365
|
- spec/fixtures/merge_request_changes.json
|
290
366
|
- spec/fixtures/merge_request_comment.json
|
291
367
|
- spec/fixtures/merge_request_comments.json
|
368
|
+
- spec/fixtures/merge_request_commits.json
|
292
369
|
- spec/fixtures/merge_requests.json
|
293
370
|
- spec/fixtures/milestone.json
|
294
371
|
- spec/fixtures/milestone_issues.json
|
@@ -314,6 +391,8 @@ test_files:
|
|
314
391
|
- spec/fixtures/project_issues.json
|
315
392
|
- spec/fixtures/project_key.json
|
316
393
|
- spec/fixtures/project_keys.json
|
394
|
+
- spec/fixtures/project_runner_enable.json
|
395
|
+
- spec/fixtures/project_runners.json
|
317
396
|
- spec/fixtures/project_search.json
|
318
397
|
- spec/fixtures/project_tag_annotated.json
|
319
398
|
- spec/fixtures/project_tag_lightweight.json
|
@@ -321,7 +400,15 @@ test_files:
|
|
321
400
|
- spec/fixtures/project_update_commit_status.json
|
322
401
|
- spec/fixtures/projects.json
|
323
402
|
- spec/fixtures/raw_file.json
|
403
|
+
- spec/fixtures/release_create.json
|
404
|
+
- spec/fixtures/release_update.json
|
324
405
|
- spec/fixtures/repository_file.json
|
406
|
+
- spec/fixtures/runner.json
|
407
|
+
- spec/fixtures/runner_delete.json
|
408
|
+
- spec/fixtures/runner_edit.json
|
409
|
+
- spec/fixtures/runners.json
|
410
|
+
- spec/fixtures/runners_all.json
|
411
|
+
- spec/fixtures/service.json
|
325
412
|
- spec/fixtures/session.json
|
326
413
|
- spec/fixtures/shell_history.json
|
327
414
|
- spec/fixtures/snippet.json
|
@@ -329,15 +416,30 @@ test_files:
|
|
329
416
|
- spec/fixtures/snippets.json
|
330
417
|
- spec/fixtures/system_hook.json
|
331
418
|
- spec/fixtures/system_hooks.json
|
419
|
+
- spec/fixtures/tag.json
|
420
|
+
- spec/fixtures/tag_create.json
|
421
|
+
- spec/fixtures/tag_create_with_description.json
|
422
|
+
- spec/fixtures/tag_delete.json
|
423
|
+
- spec/fixtures/tags.json
|
332
424
|
- spec/fixtures/team_member.json
|
333
425
|
- spec/fixtures/team_members.json
|
334
426
|
- spec/fixtures/tree.json
|
427
|
+
- spec/fixtures/trigger.json
|
428
|
+
- spec/fixtures/triggers.json
|
335
429
|
- spec/fixtures/user.json
|
336
430
|
- spec/fixtures/user_block_unblock.json
|
431
|
+
- spec/fixtures/user_email.json
|
432
|
+
- spec/fixtures/user_emails.json
|
433
|
+
- spec/fixtures/user_search.json
|
337
434
|
- spec/fixtures/users.json
|
435
|
+
- spec/fixtures/variable.json
|
436
|
+
- spec/fixtures/variables.json
|
338
437
|
- spec/gitlab/cli_helpers_spec.rb
|
339
438
|
- spec/gitlab/cli_spec.rb
|
340
439
|
- spec/gitlab/client/branches_spec.rb
|
440
|
+
- spec/gitlab/client/build_triggers_spec.rb
|
441
|
+
- spec/gitlab/client/build_variables_spec.rb
|
442
|
+
- spec/gitlab/client/builds_spec.rb
|
341
443
|
- spec/gitlab/client/commits_spec.rb
|
342
444
|
- spec/gitlab/client/groups_spec.rb
|
343
445
|
- spec/gitlab/client/issues_spec.rb
|
@@ -349,9 +451,14 @@ test_files:
|
|
349
451
|
- spec/gitlab/client/projects_spec.rb
|
350
452
|
- spec/gitlab/client/repositories_spec.rb
|
351
453
|
- spec/gitlab/client/repository_files_spec.rb
|
454
|
+
- spec/gitlab/client/runners_spec.rb
|
455
|
+
- spec/gitlab/client/services_spec.rb
|
352
456
|
- spec/gitlab/client/snippets_spec.rb
|
353
457
|
- spec/gitlab/client/system_hooks_spec.rb
|
458
|
+
- spec/gitlab/client/tags_spec.rb
|
354
459
|
- spec/gitlab/client/users_spec.rb
|
460
|
+
- spec/gitlab/error_spec.rb
|
461
|
+
- spec/gitlab/file_response_spec.rb
|
355
462
|
- spec/gitlab/help_spec.rb
|
356
463
|
- spec/gitlab/objectified_hash_spec.rb
|
357
464
|
- spec/gitlab/page_links_spec.rb
|
@@ -361,3 +468,4 @@ test_files:
|
|
361
468
|
- spec/gitlab/shell_spec.rb
|
362
469
|
- spec/gitlab_spec.rb
|
363
470
|
- spec/spec_helper.rb
|
471
|
+
has_rdoc:
|