gitlab-akerl 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.prospectus +11 -0
- data/.travis.yml +8 -0
- data/CHANGELOG.md +229 -0
- data/CONTRIBUTING.md +195 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +24 -0
- data/README.md +192 -0
- data/Rakefile +9 -0
- data/bin/console +10 -0
- data/bin/setup +6 -0
- data/exe/gitlab +7 -0
- data/gitlab-akerl.gemspec +31 -0
- data/lib/gitlab.rb +45 -0
- data/lib/gitlab/api.rb +19 -0
- data/lib/gitlab/cli.rb +89 -0
- data/lib/gitlab/cli_helpers.rb +241 -0
- data/lib/gitlab/client.rb +48 -0
- data/lib/gitlab/client/branches.rb +91 -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 +121 -0
- data/lib/gitlab/client/groups.rb +144 -0
- data/lib/gitlab/client/issues.rb +113 -0
- data/lib/gitlab/client/labels.rb +57 -0
- data/lib/gitlab/client/merge_requests.rb +168 -0
- data/lib/gitlab/client/milestones.rb +78 -0
- data/lib/gitlab/client/namespaces.rb +20 -0
- data/lib/gitlab/client/notes.rb +161 -0
- data/lib/gitlab/client/pipelines.rb +68 -0
- data/lib/gitlab/client/projects.rb +471 -0
- data/lib/gitlab/client/repositories.rb +78 -0
- data/lib/gitlab/client/repository_files.rb +88 -0
- data/lib/gitlab/client/runners.rb +115 -0
- data/lib/gitlab/client/services.rb +50 -0
- data/lib/gitlab/client/snippets.rb +91 -0
- data/lib/gitlab/client/system_hooks.rb +59 -0
- data/lib/gitlab/client/tags.rb +96 -0
- data/lib/gitlab/client/users.rb +250 -0
- data/lib/gitlab/configuration.rb +55 -0
- data/lib/gitlab/error.rb +85 -0
- data/lib/gitlab/file_response.rb +46 -0
- data/lib/gitlab/help.rb +95 -0
- data/lib/gitlab/objectified_hash.rb +34 -0
- data/lib/gitlab/page_links.rb +33 -0
- data/lib/gitlab/paginated_response.rb +97 -0
- data/lib/gitlab/request.rb +117 -0
- data/lib/gitlab/shell.rb +84 -0
- data/lib/gitlab/shell_history.rb +59 -0
- data/lib/gitlab/version.rb +3 -0
- data/spec/fixtures/branch.json +1 -0
- data/spec/fixtures/branch_delete.json +3 -0
- data/spec/fixtures/branches.json +1 -0
- 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/compare_merge_request_diff.json +31 -0
- data/spec/fixtures/error_already_exists.json +1 -0
- data/spec/fixtures/error_project_not_found.json +1 -0
- data/spec/fixtures/get_repository_file.json +1 -0
- data/spec/fixtures/git_hook.json +1 -0
- data/spec/fixtures/group.json +60 -0
- data/spec/fixtures/group_create.json +1 -0
- data/spec/fixtures/group_create_with_description.json +1 -0
- data/spec/fixtures/group_delete.json +1 -0
- data/spec/fixtures/group_member.json +1 -0
- data/spec/fixtures/group_member_delete.json +1 -0
- data/spec/fixtures/group_member_edit.json +1 -0
- data/spec/fixtures/group_members.json +1 -0
- data/spec/fixtures/group_projects.json +44 -0
- data/spec/fixtures/group_search.json +2 -0
- data/spec/fixtures/groups.json +2 -0
- data/spec/fixtures/issue.json +1 -0
- data/spec/fixtures/issues.json +1 -0
- data/spec/fixtures/key.json +1 -0
- data/spec/fixtures/keys.json +1 -0
- data/spec/fixtures/label.json +1 -0
- data/spec/fixtures/labels.json +1 -0
- data/spec/fixtures/merge_request.json +1 -0
- data/spec/fixtures/merge_request_changes.json +1 -0
- data/spec/fixtures/merge_request_comment.json +1 -0
- data/spec/fixtures/merge_request_comments.json +1 -0
- data/spec/fixtures/merge_request_commits.json +1 -0
- data/spec/fixtures/merge_requests.json +1 -0
- data/spec/fixtures/milestone.json +1 -0
- data/spec/fixtures/milestone_issues.json +1 -0
- data/spec/fixtures/milestones.json +1 -0
- data/spec/fixtures/namespaces.json +1 -0
- data/spec/fixtures/note.json +1 -0
- data/spec/fixtures/notes.json +1 -0
- data/spec/fixtures/pipeline.json +23 -0
- data/spec/fixtures/pipeline_cancel.json +23 -0
- data/spec/fixtures/pipeline_create.json +23 -0
- data/spec/fixtures/pipeline_retry.json +23 -0
- data/spec/fixtures/pipelines.json +48 -0
- data/spec/fixtures/project.json +1 -0
- data/spec/fixtures/project_commit.json +13 -0
- data/spec/fixtures/project_commit_comment.json +1 -0
- data/spec/fixtures/project_commit_comments.json +1 -0
- data/spec/fixtures/project_commit_diff.json +10 -0
- data/spec/fixtures/project_commit_status.json +42 -0
- data/spec/fixtures/project_commits.json +1 -0
- data/spec/fixtures/project_edit.json +21 -0
- data/spec/fixtures/project_events.json +1 -0
- data/spec/fixtures/project_for_user.json +1 -0
- data/spec/fixtures/project_fork.json +50 -0
- data/spec/fixtures/project_fork_link.json +1 -0
- data/spec/fixtures/project_forked_for_user.json +50 -0
- data/spec/fixtures/project_hook.json +1 -0
- data/spec/fixtures/project_hooks.json +1 -0
- data/spec/fixtures/project_issues.json +1 -0
- data/spec/fixtures/project_key.json +6 -0
- data/spec/fixtures/project_keys.json +6 -0
- data/spec/fixtures/project_runner_enable.json +7 -0
- data/spec/fixtures/project_runners.json +16 -0
- data/spec/fixtures/project_search.json +1 -0
- data/spec/fixtures/project_star.json +44 -0
- data/spec/fixtures/project_tag_annotated.json +1 -0
- data/spec/fixtures/project_tag_lightweight.json +1 -0
- data/spec/fixtures/project_tags.json +1 -0
- data/spec/fixtures/project_unstar.json +44 -0
- data/spec/fixtures/project_update_commit_status.json +20 -0
- data/spec/fixtures/projects.json +1 -0
- data/spec/fixtures/raw_file.json +2 -0
- data/spec/fixtures/release_create.json +1 -0
- data/spec/fixtures/release_update.json +1 -0
- data/spec/fixtures/repository_file.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/session.json +1 -0
- data/spec/fixtures/shell_history.json +2 -0
- data/spec/fixtures/snippet.json +1 -0
- data/spec/fixtures/snippet_content.json +3 -0
- data/spec/fixtures/snippets.json +1 -0
- data/spec/fixtures/system_hook.json +1 -0
- data/spec/fixtures/system_hooks.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/team_member.json +1 -0
- data/spec/fixtures/team_members.json +1 -0
- data/spec/fixtures/tree.json +1 -0
- data/spec/fixtures/trigger.json +7 -0
- data/spec/fixtures/triggers.json +16 -0
- data/spec/fixtures/user.json +1 -0
- data/spec/fixtures/user_block_unblock.json +1 -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/users.json +1 -0
- data/spec/fixtures/variable.json +4 -0
- data/spec/fixtures/variables.json +10 -0
- data/spec/gitlab/cli_helpers_spec.rb +57 -0
- data/spec/gitlab/cli_spec.rb +110 -0
- data/spec/gitlab/client/branches_spec.rb +99 -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/client_spec.rb +11 -0
- data/spec/gitlab/client/commits_spec.rb +137 -0
- data/spec/gitlab/client/groups_spec.rb +197 -0
- data/spec/gitlab/client/issues_spec.rb +138 -0
- data/spec/gitlab/client/labels_spec.rb +68 -0
- data/spec/gitlab/client/merge_requests_spec.rb +177 -0
- data/spec/gitlab/client/milestones_spec.rb +82 -0
- data/spec/gitlab/client/namespaces_spec.rb +22 -0
- data/spec/gitlab/client/notes_spec.rb +205 -0
- data/spec/gitlab/client/pipelines_spec.rb +95 -0
- data/spec/gitlab/client/projects_spec.rb +603 -0
- data/spec/gitlab/client/repositories_spec.rb +109 -0
- data/spec/gitlab/client/repository_files_spec.rb +62 -0
- data/spec/gitlab/client/runners_spec.rb +185 -0
- data/spec/gitlab/client/services_spec.rb +55 -0
- data/spec/gitlab/client/snippets_spec.rb +100 -0
- data/spec/gitlab/client/system_hooks_spec.rb +69 -0
- data/spec/gitlab/client/tags_spec.rb +109 -0
- data/spec/gitlab/client/users_spec.rb +418 -0
- data/spec/gitlab/error_spec.rb +45 -0
- data/spec/gitlab/file_response_spec.rb +33 -0
- data/spec/gitlab/help_spec.rb +46 -0
- data/spec/gitlab/objectified_hash_spec.rb +48 -0
- data/spec/gitlab/page_links_spec.rb +16 -0
- data/spec/gitlab/paginated_response_spec.rb +60 -0
- data/spec/gitlab/request_spec.rb +73 -0
- data/spec/gitlab/shell_history_spec.rb +53 -0
- data/spec/gitlab/shell_spec.rb +80 -0
- data/spec/gitlab_spec.rb +97 -0
- data/spec/spec_helper.rb +74 -0
- metadata +476 -0
data/spec/gitlab_spec.rb
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Gitlab do
|
4
|
+
after { Gitlab.reset }
|
5
|
+
|
6
|
+
describe ".client" do
|
7
|
+
it "should be a Gitlab::Client" do
|
8
|
+
expect(Gitlab.client).to be_a Gitlab::Client
|
9
|
+
end
|
10
|
+
|
11
|
+
it "should not override each other" do
|
12
|
+
client1 = Gitlab.client(endpoint: 'https://api1.example.com', private_token: '001')
|
13
|
+
client2 = Gitlab.client(endpoint: 'https://api2.example.com', private_token: '002')
|
14
|
+
expect(client1.endpoint).to eq('https://api1.example.com')
|
15
|
+
expect(client2.endpoint).to eq('https://api2.example.com')
|
16
|
+
expect(client1.private_token).to eq('001')
|
17
|
+
expect(client2.private_token).to eq('002')
|
18
|
+
end
|
19
|
+
|
20
|
+
it "should set private_token to the auth_token when provided" do
|
21
|
+
client = Gitlab.client(endpoint: 'https://api2.example.com', auth_token: '3225e2804d31fea13fc41fc83bffef00cfaedc463118646b154acc6f94747603')
|
22
|
+
expect(client.private_token).to eq('3225e2804d31fea13fc41fc83bffef00cfaedc463118646b154acc6f94747603')
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
describe ".actions" do
|
27
|
+
it "should return an array of client methods" do
|
28
|
+
actions = Gitlab.actions
|
29
|
+
expect(actions).to be_an Array
|
30
|
+
expect(actions.first).to be_a Symbol
|
31
|
+
expect(actions.sort.first).to eq(:accept_merge_request)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe ".endpoint=" do
|
36
|
+
it "should set endpoint" do
|
37
|
+
Gitlab.endpoint = 'https://api.example.com'
|
38
|
+
expect(Gitlab.endpoint).to eq('https://api.example.com')
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe ".private_token=" do
|
43
|
+
it "should set private_token" do
|
44
|
+
Gitlab.private_token = 'secret'
|
45
|
+
expect(Gitlab.private_token).to eq('secret')
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
describe ".auth_token=" do
|
50
|
+
it "should set auth_token", focus: true do
|
51
|
+
Gitlab.auth_token = 'auth_secret'
|
52
|
+
expect(Gitlab.private_token).to eq('auth_secret')
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe ".sudo=" do
|
57
|
+
it "should set sudo" do
|
58
|
+
Gitlab.sudo = 'user'
|
59
|
+
expect(Gitlab.sudo).to eq('user')
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe ".user_agent" do
|
64
|
+
it "should return default user_agent" do
|
65
|
+
expect(Gitlab.user_agent).to eq(Gitlab::Configuration::DEFAULT_USER_AGENT)
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe ".user_agent=" do
|
70
|
+
it "should set user_agent" do
|
71
|
+
Gitlab.user_agent = 'Custom User Agent'
|
72
|
+
expect(Gitlab.user_agent).to eq('Custom User Agent')
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe ".configure" do
|
77
|
+
Gitlab::Configuration::VALID_OPTIONS_KEYS.each do |key|
|
78
|
+
it "should set #{key}" do
|
79
|
+
Gitlab.configure do |config|
|
80
|
+
config.send("#{key}=", key)
|
81
|
+
expect(Gitlab.send(key)).to eq(key)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
describe ".http_proxy" do
|
88
|
+
it "delegates the method to Gitlab::Request" do
|
89
|
+
Gitlab.endpoint = 'https://api.example.com'
|
90
|
+
request = class_spy(Gitlab::Request).as_stubbed_const
|
91
|
+
|
92
|
+
Gitlab.http_proxy('fazbearentertainment.com', 1987, 'ffazbear', 'itsme')
|
93
|
+
expect(request).to have_received(:http_proxy).
|
94
|
+
with('fazbearentertainment.com', 1987, 'ffazbear', 'itsme')
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
require 'rspec'
|
2
|
+
require 'webmock/rspec'
|
3
|
+
|
4
|
+
require File.expand_path('../../lib/gitlab', __FILE__)
|
5
|
+
require File.expand_path('../../lib/gitlab/cli', __FILE__)
|
6
|
+
|
7
|
+
def capture_output
|
8
|
+
out = StringIO.new
|
9
|
+
$stdout = out
|
10
|
+
$stderr = out
|
11
|
+
yield
|
12
|
+
$stdout = STDOUT
|
13
|
+
$stderr = STDERR
|
14
|
+
out.string
|
15
|
+
end
|
16
|
+
|
17
|
+
def load_fixture(name)
|
18
|
+
File.new(File.dirname(__FILE__) + "/fixtures/#{name}.json")
|
19
|
+
end
|
20
|
+
|
21
|
+
RSpec.configure do |config|
|
22
|
+
config.before(:all) do
|
23
|
+
Gitlab.endpoint = 'https://api.example.com'
|
24
|
+
Gitlab.private_token = 'secret'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# GET
|
29
|
+
def stub_get(path, fixture, status_code=200)
|
30
|
+
stub_request(:get, "#{Gitlab.endpoint}#{path}").
|
31
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token }).
|
32
|
+
to_return(body: load_fixture(fixture), status: status_code)
|
33
|
+
end
|
34
|
+
|
35
|
+
def a_get(path)
|
36
|
+
a_request(:get, "#{Gitlab.endpoint}#{path}").
|
37
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token })
|
38
|
+
end
|
39
|
+
|
40
|
+
# POST
|
41
|
+
def stub_post(path, fixture, status_code=200)
|
42
|
+
stub_request(:post, "#{Gitlab.endpoint}#{path}").
|
43
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token }).
|
44
|
+
to_return(body: load_fixture(fixture), status: status_code)
|
45
|
+
end
|
46
|
+
|
47
|
+
def a_post(path)
|
48
|
+
a_request(:post, "#{Gitlab.endpoint}#{path}").
|
49
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token })
|
50
|
+
end
|
51
|
+
|
52
|
+
# PUT
|
53
|
+
def stub_put(path, fixture)
|
54
|
+
stub_request(:put, "#{Gitlab.endpoint}#{path}").
|
55
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token }).
|
56
|
+
to_return(body: load_fixture(fixture))
|
57
|
+
end
|
58
|
+
|
59
|
+
def a_put(path)
|
60
|
+
a_request(:put, "#{Gitlab.endpoint}#{path}").
|
61
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token })
|
62
|
+
end
|
63
|
+
|
64
|
+
# DELETE
|
65
|
+
def stub_delete(path, fixture)
|
66
|
+
stub_request(:delete, "#{Gitlab.endpoint}#{path}").
|
67
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token }).
|
68
|
+
to_return(body: load_fixture(fixture))
|
69
|
+
end
|
70
|
+
|
71
|
+
def a_delete(path)
|
72
|
+
a_request(:delete, "#{Gitlab.endpoint}#{path}").
|
73
|
+
with(headers: { 'PRIVATE-TOKEN' => Gitlab.private_token })
|
74
|
+
end
|
metadata
ADDED
@@ -0,0 +1,476 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gitlab-akerl
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nihad Abbasov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-01-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: httparty
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.14.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.14.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: terminal-table
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.7.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.7.1
|
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'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Ruby client and CLI for GitLab API
|
98
|
+
email:
|
99
|
+
- mail@narkoz.me
|
100
|
+
executables:
|
101
|
+
- gitlab
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".prospectus"
|
107
|
+
- ".travis.yml"
|
108
|
+
- CHANGELOG.md
|
109
|
+
- CONTRIBUTING.md
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- exe/gitlab
|
117
|
+
- gitlab-akerl.gemspec
|
118
|
+
- lib/gitlab.rb
|
119
|
+
- lib/gitlab/api.rb
|
120
|
+
- lib/gitlab/cli.rb
|
121
|
+
- lib/gitlab/cli_helpers.rb
|
122
|
+
- lib/gitlab/client.rb
|
123
|
+
- lib/gitlab/client/branches.rb
|
124
|
+
- lib/gitlab/client/build_triggers.rb
|
125
|
+
- lib/gitlab/client/build_variables.rb
|
126
|
+
- lib/gitlab/client/builds.rb
|
127
|
+
- lib/gitlab/client/commits.rb
|
128
|
+
- lib/gitlab/client/groups.rb
|
129
|
+
- lib/gitlab/client/issues.rb
|
130
|
+
- lib/gitlab/client/labels.rb
|
131
|
+
- lib/gitlab/client/merge_requests.rb
|
132
|
+
- lib/gitlab/client/milestones.rb
|
133
|
+
- lib/gitlab/client/namespaces.rb
|
134
|
+
- lib/gitlab/client/notes.rb
|
135
|
+
- lib/gitlab/client/pipelines.rb
|
136
|
+
- lib/gitlab/client/projects.rb
|
137
|
+
- lib/gitlab/client/repositories.rb
|
138
|
+
- lib/gitlab/client/repository_files.rb
|
139
|
+
- lib/gitlab/client/runners.rb
|
140
|
+
- lib/gitlab/client/services.rb
|
141
|
+
- lib/gitlab/client/snippets.rb
|
142
|
+
- lib/gitlab/client/system_hooks.rb
|
143
|
+
- lib/gitlab/client/tags.rb
|
144
|
+
- lib/gitlab/client/users.rb
|
145
|
+
- lib/gitlab/configuration.rb
|
146
|
+
- lib/gitlab/error.rb
|
147
|
+
- lib/gitlab/file_response.rb
|
148
|
+
- lib/gitlab/help.rb
|
149
|
+
- lib/gitlab/objectified_hash.rb
|
150
|
+
- lib/gitlab/page_links.rb
|
151
|
+
- lib/gitlab/paginated_response.rb
|
152
|
+
- lib/gitlab/request.rb
|
153
|
+
- lib/gitlab/shell.rb
|
154
|
+
- lib/gitlab/shell_history.rb
|
155
|
+
- lib/gitlab/version.rb
|
156
|
+
- spec/fixtures/branch.json
|
157
|
+
- spec/fixtures/branch_delete.json
|
158
|
+
- spec/fixtures/branches.json
|
159
|
+
- spec/fixtures/build.json
|
160
|
+
- spec/fixtures/build_artifacts.json
|
161
|
+
- spec/fixtures/build_cancel.json
|
162
|
+
- spec/fixtures/build_erase.json
|
163
|
+
- spec/fixtures/build_retry.json
|
164
|
+
- spec/fixtures/builds.json
|
165
|
+
- spec/fixtures/builds_commits.json
|
166
|
+
- spec/fixtures/compare_merge_request_diff.json
|
167
|
+
- spec/fixtures/error_already_exists.json
|
168
|
+
- spec/fixtures/error_project_not_found.json
|
169
|
+
- spec/fixtures/get_repository_file.json
|
170
|
+
- spec/fixtures/git_hook.json
|
171
|
+
- spec/fixtures/group.json
|
172
|
+
- spec/fixtures/group_create.json
|
173
|
+
- spec/fixtures/group_create_with_description.json
|
174
|
+
- spec/fixtures/group_delete.json
|
175
|
+
- spec/fixtures/group_member.json
|
176
|
+
- spec/fixtures/group_member_delete.json
|
177
|
+
- spec/fixtures/group_member_edit.json
|
178
|
+
- spec/fixtures/group_members.json
|
179
|
+
- spec/fixtures/group_projects.json
|
180
|
+
- spec/fixtures/group_search.json
|
181
|
+
- spec/fixtures/groups.json
|
182
|
+
- spec/fixtures/issue.json
|
183
|
+
- spec/fixtures/issues.json
|
184
|
+
- spec/fixtures/key.json
|
185
|
+
- spec/fixtures/keys.json
|
186
|
+
- spec/fixtures/label.json
|
187
|
+
- spec/fixtures/labels.json
|
188
|
+
- spec/fixtures/merge_request.json
|
189
|
+
- spec/fixtures/merge_request_changes.json
|
190
|
+
- spec/fixtures/merge_request_comment.json
|
191
|
+
- spec/fixtures/merge_request_comments.json
|
192
|
+
- spec/fixtures/merge_request_commits.json
|
193
|
+
- spec/fixtures/merge_requests.json
|
194
|
+
- spec/fixtures/milestone.json
|
195
|
+
- spec/fixtures/milestone_issues.json
|
196
|
+
- spec/fixtures/milestones.json
|
197
|
+
- spec/fixtures/namespaces.json
|
198
|
+
- spec/fixtures/note.json
|
199
|
+
- spec/fixtures/notes.json
|
200
|
+
- spec/fixtures/pipeline.json
|
201
|
+
- spec/fixtures/pipeline_cancel.json
|
202
|
+
- spec/fixtures/pipeline_create.json
|
203
|
+
- spec/fixtures/pipeline_retry.json
|
204
|
+
- spec/fixtures/pipelines.json
|
205
|
+
- spec/fixtures/project.json
|
206
|
+
- spec/fixtures/project_commit.json
|
207
|
+
- spec/fixtures/project_commit_comment.json
|
208
|
+
- spec/fixtures/project_commit_comments.json
|
209
|
+
- spec/fixtures/project_commit_diff.json
|
210
|
+
- spec/fixtures/project_commit_status.json
|
211
|
+
- spec/fixtures/project_commits.json
|
212
|
+
- spec/fixtures/project_edit.json
|
213
|
+
- spec/fixtures/project_events.json
|
214
|
+
- spec/fixtures/project_for_user.json
|
215
|
+
- spec/fixtures/project_fork.json
|
216
|
+
- spec/fixtures/project_fork_link.json
|
217
|
+
- spec/fixtures/project_forked_for_user.json
|
218
|
+
- spec/fixtures/project_hook.json
|
219
|
+
- spec/fixtures/project_hooks.json
|
220
|
+
- spec/fixtures/project_issues.json
|
221
|
+
- spec/fixtures/project_key.json
|
222
|
+
- spec/fixtures/project_keys.json
|
223
|
+
- spec/fixtures/project_runner_enable.json
|
224
|
+
- spec/fixtures/project_runners.json
|
225
|
+
- spec/fixtures/project_search.json
|
226
|
+
- spec/fixtures/project_star.json
|
227
|
+
- spec/fixtures/project_tag_annotated.json
|
228
|
+
- spec/fixtures/project_tag_lightweight.json
|
229
|
+
- spec/fixtures/project_tags.json
|
230
|
+
- spec/fixtures/project_unstar.json
|
231
|
+
- spec/fixtures/project_update_commit_status.json
|
232
|
+
- spec/fixtures/projects.json
|
233
|
+
- spec/fixtures/raw_file.json
|
234
|
+
- spec/fixtures/release_create.json
|
235
|
+
- spec/fixtures/release_update.json
|
236
|
+
- spec/fixtures/repository_file.json
|
237
|
+
- spec/fixtures/runner.json
|
238
|
+
- spec/fixtures/runner_delete.json
|
239
|
+
- spec/fixtures/runner_edit.json
|
240
|
+
- spec/fixtures/runners.json
|
241
|
+
- spec/fixtures/runners_all.json
|
242
|
+
- spec/fixtures/service.json
|
243
|
+
- spec/fixtures/session.json
|
244
|
+
- spec/fixtures/shell_history.json
|
245
|
+
- spec/fixtures/snippet.json
|
246
|
+
- spec/fixtures/snippet_content.json
|
247
|
+
- spec/fixtures/snippets.json
|
248
|
+
- spec/fixtures/system_hook.json
|
249
|
+
- spec/fixtures/system_hooks.json
|
250
|
+
- spec/fixtures/tag.json
|
251
|
+
- spec/fixtures/tag_create.json
|
252
|
+
- spec/fixtures/tag_create_with_description.json
|
253
|
+
- spec/fixtures/tag_delete.json
|
254
|
+
- spec/fixtures/tags.json
|
255
|
+
- spec/fixtures/team_member.json
|
256
|
+
- spec/fixtures/team_members.json
|
257
|
+
- spec/fixtures/tree.json
|
258
|
+
- spec/fixtures/trigger.json
|
259
|
+
- spec/fixtures/triggers.json
|
260
|
+
- spec/fixtures/user.json
|
261
|
+
- spec/fixtures/user_block_unblock.json
|
262
|
+
- spec/fixtures/user_email.json
|
263
|
+
- spec/fixtures/user_emails.json
|
264
|
+
- spec/fixtures/user_search.json
|
265
|
+
- spec/fixtures/users.json
|
266
|
+
- spec/fixtures/variable.json
|
267
|
+
- spec/fixtures/variables.json
|
268
|
+
- spec/gitlab/cli_helpers_spec.rb
|
269
|
+
- spec/gitlab/cli_spec.rb
|
270
|
+
- spec/gitlab/client/branches_spec.rb
|
271
|
+
- spec/gitlab/client/build_triggers_spec.rb
|
272
|
+
- spec/gitlab/client/build_variables_spec.rb
|
273
|
+
- spec/gitlab/client/builds_spec.rb
|
274
|
+
- spec/gitlab/client/client_spec.rb
|
275
|
+
- spec/gitlab/client/commits_spec.rb
|
276
|
+
- spec/gitlab/client/groups_spec.rb
|
277
|
+
- spec/gitlab/client/issues_spec.rb
|
278
|
+
- spec/gitlab/client/labels_spec.rb
|
279
|
+
- spec/gitlab/client/merge_requests_spec.rb
|
280
|
+
- spec/gitlab/client/milestones_spec.rb
|
281
|
+
- spec/gitlab/client/namespaces_spec.rb
|
282
|
+
- spec/gitlab/client/notes_spec.rb
|
283
|
+
- spec/gitlab/client/pipelines_spec.rb
|
284
|
+
- spec/gitlab/client/projects_spec.rb
|
285
|
+
- spec/gitlab/client/repositories_spec.rb
|
286
|
+
- spec/gitlab/client/repository_files_spec.rb
|
287
|
+
- spec/gitlab/client/runners_spec.rb
|
288
|
+
- spec/gitlab/client/services_spec.rb
|
289
|
+
- spec/gitlab/client/snippets_spec.rb
|
290
|
+
- spec/gitlab/client/system_hooks_spec.rb
|
291
|
+
- spec/gitlab/client/tags_spec.rb
|
292
|
+
- spec/gitlab/client/users_spec.rb
|
293
|
+
- spec/gitlab/error_spec.rb
|
294
|
+
- spec/gitlab/file_response_spec.rb
|
295
|
+
- spec/gitlab/help_spec.rb
|
296
|
+
- spec/gitlab/objectified_hash_spec.rb
|
297
|
+
- spec/gitlab/page_links_spec.rb
|
298
|
+
- spec/gitlab/paginated_response_spec.rb
|
299
|
+
- spec/gitlab/request_spec.rb
|
300
|
+
- spec/gitlab/shell_history_spec.rb
|
301
|
+
- spec/gitlab/shell_spec.rb
|
302
|
+
- spec/gitlab_spec.rb
|
303
|
+
- spec/spec_helper.rb
|
304
|
+
homepage: https://github.com/narkoz/gitlab
|
305
|
+
licenses:
|
306
|
+
- BSD
|
307
|
+
metadata: {}
|
308
|
+
post_install_message:
|
309
|
+
rdoc_options: []
|
310
|
+
require_paths:
|
311
|
+
- lib
|
312
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
313
|
+
requirements:
|
314
|
+
- - ">="
|
315
|
+
- !ruby/object:Gem::Version
|
316
|
+
version: 2.0.0
|
317
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
318
|
+
requirements:
|
319
|
+
- - ">="
|
320
|
+
- !ruby/object:Gem::Version
|
321
|
+
version: '0'
|
322
|
+
requirements: []
|
323
|
+
rubyforge_project:
|
324
|
+
rubygems_version: 2.6.8
|
325
|
+
signing_key:
|
326
|
+
specification_version: 4
|
327
|
+
summary: A Ruby wrapper and CLI for the GitLab API
|
328
|
+
test_files:
|
329
|
+
- spec/fixtures/branch.json
|
330
|
+
- spec/fixtures/branch_delete.json
|
331
|
+
- spec/fixtures/branches.json
|
332
|
+
- spec/fixtures/build.json
|
333
|
+
- spec/fixtures/build_artifacts.json
|
334
|
+
- spec/fixtures/build_cancel.json
|
335
|
+
- spec/fixtures/build_erase.json
|
336
|
+
- spec/fixtures/build_retry.json
|
337
|
+
- spec/fixtures/builds.json
|
338
|
+
- spec/fixtures/builds_commits.json
|
339
|
+
- spec/fixtures/compare_merge_request_diff.json
|
340
|
+
- spec/fixtures/error_already_exists.json
|
341
|
+
- spec/fixtures/error_project_not_found.json
|
342
|
+
- spec/fixtures/get_repository_file.json
|
343
|
+
- spec/fixtures/git_hook.json
|
344
|
+
- spec/fixtures/group.json
|
345
|
+
- spec/fixtures/group_create.json
|
346
|
+
- spec/fixtures/group_create_with_description.json
|
347
|
+
- spec/fixtures/group_delete.json
|
348
|
+
- spec/fixtures/group_member.json
|
349
|
+
- spec/fixtures/group_member_delete.json
|
350
|
+
- spec/fixtures/group_member_edit.json
|
351
|
+
- spec/fixtures/group_members.json
|
352
|
+
- spec/fixtures/group_projects.json
|
353
|
+
- spec/fixtures/group_search.json
|
354
|
+
- spec/fixtures/groups.json
|
355
|
+
- spec/fixtures/issue.json
|
356
|
+
- spec/fixtures/issues.json
|
357
|
+
- spec/fixtures/key.json
|
358
|
+
- spec/fixtures/keys.json
|
359
|
+
- spec/fixtures/label.json
|
360
|
+
- spec/fixtures/labels.json
|
361
|
+
- spec/fixtures/merge_request.json
|
362
|
+
- spec/fixtures/merge_request_changes.json
|
363
|
+
- spec/fixtures/merge_request_comment.json
|
364
|
+
- spec/fixtures/merge_request_comments.json
|
365
|
+
- spec/fixtures/merge_request_commits.json
|
366
|
+
- spec/fixtures/merge_requests.json
|
367
|
+
- spec/fixtures/milestone.json
|
368
|
+
- spec/fixtures/milestone_issues.json
|
369
|
+
- spec/fixtures/milestones.json
|
370
|
+
- spec/fixtures/namespaces.json
|
371
|
+
- spec/fixtures/note.json
|
372
|
+
- spec/fixtures/notes.json
|
373
|
+
- spec/fixtures/pipeline.json
|
374
|
+
- spec/fixtures/pipeline_cancel.json
|
375
|
+
- spec/fixtures/pipeline_create.json
|
376
|
+
- spec/fixtures/pipeline_retry.json
|
377
|
+
- spec/fixtures/pipelines.json
|
378
|
+
- spec/fixtures/project.json
|
379
|
+
- spec/fixtures/project_commit.json
|
380
|
+
- spec/fixtures/project_commit_comment.json
|
381
|
+
- spec/fixtures/project_commit_comments.json
|
382
|
+
- spec/fixtures/project_commit_diff.json
|
383
|
+
- spec/fixtures/project_commit_status.json
|
384
|
+
- spec/fixtures/project_commits.json
|
385
|
+
- spec/fixtures/project_edit.json
|
386
|
+
- spec/fixtures/project_events.json
|
387
|
+
- spec/fixtures/project_for_user.json
|
388
|
+
- spec/fixtures/project_fork.json
|
389
|
+
- spec/fixtures/project_fork_link.json
|
390
|
+
- spec/fixtures/project_forked_for_user.json
|
391
|
+
- spec/fixtures/project_hook.json
|
392
|
+
- spec/fixtures/project_hooks.json
|
393
|
+
- spec/fixtures/project_issues.json
|
394
|
+
- spec/fixtures/project_key.json
|
395
|
+
- spec/fixtures/project_keys.json
|
396
|
+
- spec/fixtures/project_runner_enable.json
|
397
|
+
- spec/fixtures/project_runners.json
|
398
|
+
- spec/fixtures/project_search.json
|
399
|
+
- spec/fixtures/project_star.json
|
400
|
+
- spec/fixtures/project_tag_annotated.json
|
401
|
+
- spec/fixtures/project_tag_lightweight.json
|
402
|
+
- spec/fixtures/project_tags.json
|
403
|
+
- spec/fixtures/project_unstar.json
|
404
|
+
- spec/fixtures/project_update_commit_status.json
|
405
|
+
- spec/fixtures/projects.json
|
406
|
+
- spec/fixtures/raw_file.json
|
407
|
+
- spec/fixtures/release_create.json
|
408
|
+
- spec/fixtures/release_update.json
|
409
|
+
- spec/fixtures/repository_file.json
|
410
|
+
- spec/fixtures/runner.json
|
411
|
+
- spec/fixtures/runner_delete.json
|
412
|
+
- spec/fixtures/runner_edit.json
|
413
|
+
- spec/fixtures/runners.json
|
414
|
+
- spec/fixtures/runners_all.json
|
415
|
+
- spec/fixtures/service.json
|
416
|
+
- spec/fixtures/session.json
|
417
|
+
- spec/fixtures/shell_history.json
|
418
|
+
- spec/fixtures/snippet.json
|
419
|
+
- spec/fixtures/snippet_content.json
|
420
|
+
- spec/fixtures/snippets.json
|
421
|
+
- spec/fixtures/system_hook.json
|
422
|
+
- spec/fixtures/system_hooks.json
|
423
|
+
- spec/fixtures/tag.json
|
424
|
+
- spec/fixtures/tag_create.json
|
425
|
+
- spec/fixtures/tag_create_with_description.json
|
426
|
+
- spec/fixtures/tag_delete.json
|
427
|
+
- spec/fixtures/tags.json
|
428
|
+
- spec/fixtures/team_member.json
|
429
|
+
- spec/fixtures/team_members.json
|
430
|
+
- spec/fixtures/tree.json
|
431
|
+
- spec/fixtures/trigger.json
|
432
|
+
- spec/fixtures/triggers.json
|
433
|
+
- spec/fixtures/user.json
|
434
|
+
- spec/fixtures/user_block_unblock.json
|
435
|
+
- spec/fixtures/user_email.json
|
436
|
+
- spec/fixtures/user_emails.json
|
437
|
+
- spec/fixtures/user_search.json
|
438
|
+
- spec/fixtures/users.json
|
439
|
+
- spec/fixtures/variable.json
|
440
|
+
- spec/fixtures/variables.json
|
441
|
+
- spec/gitlab/cli_helpers_spec.rb
|
442
|
+
- spec/gitlab/cli_spec.rb
|
443
|
+
- spec/gitlab/client/branches_spec.rb
|
444
|
+
- spec/gitlab/client/build_triggers_spec.rb
|
445
|
+
- spec/gitlab/client/build_variables_spec.rb
|
446
|
+
- spec/gitlab/client/builds_spec.rb
|
447
|
+
- spec/gitlab/client/client_spec.rb
|
448
|
+
- spec/gitlab/client/commits_spec.rb
|
449
|
+
- spec/gitlab/client/groups_spec.rb
|
450
|
+
- spec/gitlab/client/issues_spec.rb
|
451
|
+
- spec/gitlab/client/labels_spec.rb
|
452
|
+
- spec/gitlab/client/merge_requests_spec.rb
|
453
|
+
- spec/gitlab/client/milestones_spec.rb
|
454
|
+
- spec/gitlab/client/namespaces_spec.rb
|
455
|
+
- spec/gitlab/client/notes_spec.rb
|
456
|
+
- spec/gitlab/client/pipelines_spec.rb
|
457
|
+
- spec/gitlab/client/projects_spec.rb
|
458
|
+
- spec/gitlab/client/repositories_spec.rb
|
459
|
+
- spec/gitlab/client/repository_files_spec.rb
|
460
|
+
- spec/gitlab/client/runners_spec.rb
|
461
|
+
- spec/gitlab/client/services_spec.rb
|
462
|
+
- spec/gitlab/client/snippets_spec.rb
|
463
|
+
- spec/gitlab/client/system_hooks_spec.rb
|
464
|
+
- spec/gitlab/client/tags_spec.rb
|
465
|
+
- spec/gitlab/client/users_spec.rb
|
466
|
+
- spec/gitlab/error_spec.rb
|
467
|
+
- spec/gitlab/file_response_spec.rb
|
468
|
+
- spec/gitlab/help_spec.rb
|
469
|
+
- spec/gitlab/objectified_hash_spec.rb
|
470
|
+
- spec/gitlab/page_links_spec.rb
|
471
|
+
- spec/gitlab/paginated_response_spec.rb
|
472
|
+
- spec/gitlab/request_spec.rb
|
473
|
+
- spec/gitlab/shell_history_spec.rb
|
474
|
+
- spec/gitlab/shell_spec.rb
|
475
|
+
- spec/gitlab_spec.rb
|
476
|
+
- spec/spec_helper.rb
|