gitlab 4.4.0 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -2
  3. data/gitlab.gemspec +3 -1
  4. data/lib/gitlab/client.rb +1 -0
  5. data/lib/gitlab/client/merge_request_approvals.rb +110 -0
  6. data/lib/gitlab/client/projects.rb +19 -9
  7. data/lib/gitlab/error.rb +10 -3
  8. data/lib/gitlab/version.rb +1 -1
  9. metadata +5 -444
  10. data/.dockerignore +0 -6
  11. data/.rubocop.yml +0 -33
  12. data/.travis.yml +0 -13
  13. data/Dockerfile +0 -8
  14. data/docker-compose.yml +0 -19
  15. data/docker.env +0 -2
  16. data/spec/fixtures/access_request.json +0 -8
  17. data/spec/fixtures/access_requests.json +0 -18
  18. data/spec/fixtures/approved_access_request.json +0 -8
  19. data/spec/fixtures/board_list.json +0 -1
  20. data/spec/fixtures/board_lists.json +0 -1
  21. data/spec/fixtures/boards.json +0 -1
  22. data/spec/fixtures/branch.json +0 -1
  23. data/spec/fixtures/branch_delete.json +0 -3
  24. data/spec/fixtures/branches.json +0 -1
  25. data/spec/fixtures/build.json +0 -38
  26. data/spec/fixtures/build_artifacts.json +0 -0
  27. data/spec/fixtures/build_cancel.json +0 -24
  28. data/spec/fixtures/build_erase.json +0 -24
  29. data/spec/fixtures/build_retry.json +0 -24
  30. data/spec/fixtures/builds.json +0 -78
  31. data/spec/fixtures/builds_commits.json +0 -64
  32. data/spec/fixtures/compare_merge_request_diff.json +0 -31
  33. data/spec/fixtures/default_approved_access_request.json +0 -8
  34. data/spec/fixtures/deployment.json +0 -57
  35. data/spec/fixtures/deployments.json +0 -116
  36. data/spec/fixtures/empty.json +0 -0
  37. data/spec/fixtures/environment.json +0 -6
  38. data/spec/fixtures/environments.json +0 -14
  39. data/spec/fixtures/error_already_exists.json +0 -1
  40. data/spec/fixtures/error_project_not_found.json +0 -1
  41. data/spec/fixtures/get_repository_file.json +0 -1
  42. data/spec/fixtures/group.json +0 -60
  43. data/spec/fixtures/group_create.json +0 -1
  44. data/spec/fixtures/group_create_with_description.json +0 -1
  45. data/spec/fixtures/group_delete.json +0 -1
  46. data/spec/fixtures/group_edit.json +0 -14
  47. data/spec/fixtures/group_member.json +0 -1
  48. data/spec/fixtures/group_member_delete.json +0 -1
  49. data/spec/fixtures/group_member_edit.json +0 -1
  50. data/spec/fixtures/group_members.json +0 -1
  51. data/spec/fixtures/group_milestone.json +0 -1
  52. data/spec/fixtures/group_milestone_issues.json +0 -1
  53. data/spec/fixtures/group_milestone_merge_requests.json +0 -1
  54. data/spec/fixtures/group_milestones.json +0 -1
  55. data/spec/fixtures/group_projects.json +0 -44
  56. data/spec/fixtures/group_search.json +0 -2
  57. data/spec/fixtures/group_subgroups.json +0 -16
  58. data/spec/fixtures/groups.json +0 -2
  59. data/spec/fixtures/issue.json +0 -1
  60. data/spec/fixtures/issue_award_emoji.json +0 -16
  61. data/spec/fixtures/issue_award_emojis.json +0 -34
  62. data/spec/fixtures/issues.json +0 -1
  63. data/spec/fixtures/job.json +0 -43
  64. data/spec/fixtures/job_trace.json +0 -1
  65. data/spec/fixtures/jobs.json +0 -91
  66. data/spec/fixtures/key.json +0 -1
  67. data/spec/fixtures/keys.json +0 -1
  68. data/spec/fixtures/label.json +0 -1
  69. data/spec/fixtures/label_unsubscribe.json +0 -1
  70. data/spec/fixtures/labels.json +0 -1
  71. data/spec/fixtures/merge_request.json +0 -1
  72. data/spec/fixtures/merge_request_award_emoji.json +0 -16
  73. data/spec/fixtures/merge_request_award_emojis.json +0 -34
  74. data/spec/fixtures/merge_request_changes.json +0 -1
  75. data/spec/fixtures/merge_request_closes_issues.json +0 -1
  76. data/spec/fixtures/merge_request_comment.json +0 -1
  77. data/spec/fixtures/merge_request_comments.json +0 -1
  78. data/spec/fixtures/merge_request_commits.json +0 -1
  79. data/spec/fixtures/merge_request_discussion.json +0 -39
  80. data/spec/fixtures/merge_request_discussion_note.json +0 -33
  81. data/spec/fixtures/merge_request_discussions.json +0 -41
  82. data/spec/fixtures/merge_requests.json +0 -1
  83. data/spec/fixtures/milestone.json +0 -1
  84. data/spec/fixtures/milestone_issues.json +0 -1
  85. data/spec/fixtures/milestone_merge_requests.json +0 -1
  86. data/spec/fixtures/milestones.json +0 -1
  87. data/spec/fixtures/namespaces.json +0 -1
  88. data/spec/fixtures/note.json +0 -1
  89. data/spec/fixtures/note_award_emoji.json +0 -16
  90. data/spec/fixtures/note_award_emojis.json +0 -18
  91. data/spec/fixtures/notes.json +0 -1
  92. data/spec/fixtures/pipeline.json +0 -23
  93. data/spec/fixtures/pipeline_cancel.json +0 -23
  94. data/spec/fixtures/pipeline_create.json +0 -23
  95. data/spec/fixtures/pipeline_jobs.json +0 -91
  96. data/spec/fixtures/pipeline_retry.json +0 -23
  97. data/spec/fixtures/pipeline_schedule.json +0 -32
  98. data/spec/fixtures/pipeline_schedule_create.json +0 -21
  99. data/spec/fixtures/pipeline_schedule_update.json +0 -26
  100. data/spec/fixtures/pipeline_schedule_variable.json +0 -5
  101. data/spec/fixtures/pipeline_schedule_variable_update.json +0 -5
  102. data/spec/fixtures/pipeline_schedules.json +0 -22
  103. data/spec/fixtures/pipelines.json +0 -48
  104. data/spec/fixtures/project.json +0 -1
  105. data/spec/fixtures/project_commit.json +0 -13
  106. data/spec/fixtures/project_commit_comment.json +0 -1
  107. data/spec/fixtures/project_commit_comments.json +0 -1
  108. data/spec/fixtures/project_commit_create.json +0 -22
  109. data/spec/fixtures/project_commit_diff.json +0 -10
  110. data/spec/fixtures/project_commit_merge_requests.json +0 -1
  111. data/spec/fixtures/project_commit_status.json +0 -42
  112. data/spec/fixtures/project_commits.json +0 -1
  113. data/spec/fixtures/project_edit.json +0 -21
  114. data/spec/fixtures/project_events.json +0 -81
  115. data/spec/fixtures/project_for_user.json +0 -1
  116. data/spec/fixtures/project_fork.json +0 -50
  117. data/spec/fixtures/project_fork_link.json +0 -1
  118. data/spec/fixtures/project_forked_for_user.json +0 -50
  119. data/spec/fixtures/project_forks.json +0 -50
  120. data/spec/fixtures/project_hook.json +0 -1
  121. data/spec/fixtures/project_hooks.json +0 -1
  122. data/spec/fixtures/project_issues.json +0 -1
  123. data/spec/fixtures/project_key.json +0 -6
  124. data/spec/fixtures/project_keys.json +0 -6
  125. data/spec/fixtures/project_runner_enable.json +0 -7
  126. data/spec/fixtures/project_runners.json +0 -16
  127. data/spec/fixtures/project_search.json +0 -1
  128. data/spec/fixtures/project_star.json +0 -44
  129. data/spec/fixtures/project_tag_annotated.json +0 -1
  130. data/spec/fixtures/project_tag_lightweight.json +0 -1
  131. data/spec/fixtures/project_tags.json +0 -1
  132. data/spec/fixtures/project_unstar.json +0 -44
  133. data/spec/fixtures/project_update_commit_status.json +0 -20
  134. data/spec/fixtures/projects.json +0 -1
  135. data/spec/fixtures/push_rule.json +0 -1
  136. data/spec/fixtures/raw_file.json +0 -2
  137. data/spec/fixtures/release_create.json +0 -1
  138. data/spec/fixtures/release_update.json +0 -1
  139. data/spec/fixtures/repository_file.json +0 -1
  140. data/spec/fixtures/run_trigger.json +0 -1
  141. data/spec/fixtures/runner.json +0 -26
  142. data/spec/fixtures/runner_delete.json +0 -7
  143. data/spec/fixtures/runner_edit.json +0 -26
  144. data/spec/fixtures/runner_jobs.json +0 -63
  145. data/spec/fixtures/runners.json +0 -16
  146. data/spec/fixtures/runners_all.json +0 -30
  147. data/spec/fixtures/service.json +0 -1
  148. data/spec/fixtures/session.json +0 -1
  149. data/spec/fixtures/shell_history.json +0 -2
  150. data/spec/fixtures/sidekiq_compound_metrics.json +0 -36
  151. data/spec/fixtures/sidekiq_job_stats.json +0 -7
  152. data/spec/fixtures/sidekiq_process_metrics.json +0 -25
  153. data/spec/fixtures/sidekiq_queue_metrics.json +0 -8
  154. data/spec/fixtures/snippet.json +0 -1
  155. data/spec/fixtures/snippet_award_emoji.json +0 -16
  156. data/spec/fixtures/snippet_award_emojis.json +0 -34
  157. data/spec/fixtures/snippet_content.json +0 -3
  158. data/spec/fixtures/snippets.json +0 -1
  159. data/spec/fixtures/system_hook.json +0 -1
  160. data/spec/fixtures/system_hooks.json +0 -1
  161. data/spec/fixtures/tag.json +0 -1
  162. data/spec/fixtures/tag_create.json +0 -1
  163. data/spec/fixtures/tag_create_with_description.json +0 -1
  164. data/spec/fixtures/tag_delete.json +0 -1
  165. data/spec/fixtures/tags.json +0 -1
  166. data/spec/fixtures/team_member.json +0 -1
  167. data/spec/fixtures/team_members.json +0 -1
  168. data/spec/fixtures/todo.json +0 -73
  169. data/spec/fixtures/todos.json +0 -148
  170. data/spec/fixtures/tree.json +0 -1
  171. data/spec/fixtures/trigger.json +0 -10
  172. data/spec/fixtures/triggers.json +0 -12
  173. data/spec/fixtures/user.json +0 -1
  174. data/spec/fixtures/user_block_unblock.json +0 -1
  175. data/spec/fixtures/user_contribution_events.json +0 -101
  176. data/spec/fixtures/user_email.json +0 -1
  177. data/spec/fixtures/user_emails.json +0 -1
  178. data/spec/fixtures/user_events.json +0 -40
  179. data/spec/fixtures/user_projects.json +0 -153
  180. data/spec/fixtures/user_search.json +0 -1
  181. data/spec/fixtures/users.json +0 -1
  182. data/spec/fixtures/variable.json +0 -4
  183. data/spec/fixtures/variables.json +0 -10
  184. data/spec/gitlab/api_spec.rb +0 -11
  185. data/spec/gitlab/cli_helpers_spec.rb +0 -56
  186. data/spec/gitlab/cli_spec.rb +0 -119
  187. data/spec/gitlab/client/access_requests_spec.rb +0 -141
  188. data/spec/gitlab/client/award_emojis_spec.rb +0 -391
  189. data/spec/gitlab/client/boards_spec.rb +0 -94
  190. data/spec/gitlab/client/branches_spec.rb +0 -118
  191. data/spec/gitlab/client/build_variables_spec.rb +0 -169
  192. data/spec/gitlab/client/builds_spec.rb +0 -148
  193. data/spec/gitlab/client/client_spec.rb +0 -11
  194. data/spec/gitlab/client/commits_spec.rb +0 -190
  195. data/spec/gitlab/client/deployments_spec.rb +0 -38
  196. data/spec/gitlab/client/environments_spec.rb +0 -132
  197. data/spec/gitlab/client/events_spec.rb +0 -48
  198. data/spec/gitlab/client/group_milestones_spec.rb +0 -98
  199. data/spec/gitlab/client/groups_spec.rb +0 -246
  200. data/spec/gitlab/client/issues_spec.rb +0 -285
  201. data/spec/gitlab/client/jobs_spec.rb +0 -135
  202. data/spec/gitlab/client/keys_spec.rb +0 -19
  203. data/spec/gitlab/client/labels_spec.rb +0 -100
  204. data/spec/gitlab/client/merge_requests_spec.rb +0 -351
  205. data/spec/gitlab/client/milestones_spec.rb +0 -98
  206. data/spec/gitlab/client/namespaces_spec.rb +0 -22
  207. data/spec/gitlab/client/notes_spec.rb +0 -333
  208. data/spec/gitlab/client/pipeline_schedules_spec.rb +0 -158
  209. data/spec/gitlab/client/pipeline_triggers_spec.rb +0 -157
  210. data/spec/gitlab/client/pipelines_spec.rb +0 -95
  211. data/spec/gitlab/client/projects_spec.rb +0 -630
  212. data/spec/gitlab/client/repositories_spec.rb +0 -94
  213. data/spec/gitlab/client/repository_files_spec.rb +0 -95
  214. data/spec/gitlab/client/runners_spec.rb +0 -193
  215. data/spec/gitlab/client/services_spec.rb +0 -55
  216. data/spec/gitlab/client/sidekiq_spec.rb +0 -64
  217. data/spec/gitlab/client/snippets_spec.rb +0 -100
  218. data/spec/gitlab/client/system_hooks_spec.rb +0 -69
  219. data/spec/gitlab/client/tags_spec.rb +0 -152
  220. data/spec/gitlab/client/todos_spec.rb +0 -45
  221. data/spec/gitlab/client/users_spec.rb +0 -418
  222. data/spec/gitlab/error_spec.rb +0 -72
  223. data/spec/gitlab/file_response_spec.rb +0 -33
  224. data/spec/gitlab/help_spec.rb +0 -46
  225. data/spec/gitlab/objectified_hash_spec.rb +0 -48
  226. data/spec/gitlab/page_links_spec.rb +0 -16
  227. data/spec/gitlab/paginated_response_spec.rb +0 -60
  228. data/spec/gitlab/request_spec.rb +0 -73
  229. data/spec/gitlab/shell_history_spec.rb +0 -53
  230. data/spec/gitlab/shell_spec.rb +0 -80
  231. data/spec/gitlab_spec.rb +0 -96
  232. data/spec/spec_helper.rb +0 -39
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30a94ccf69dc023d9f587a3435ef3bfef5f26a7899016d259533aa6172238753
4
- data.tar.gz: 2fd9974e617d7d1112739a299171f3a366c6d73a1fa77ed3b5c4aa62bcf80a72
3
+ metadata.gz: 4709e421064af0cf5367a459989920ad1e88d324dbb01437f5bf70673f7b3e98
4
+ data.tar.gz: 0d3242640c2f27ee04607b5dcd2e78b9e6e38f4c49d107d5217306abbb00ff81
5
5
  SHA512:
6
- metadata.gz: b3652cd0cda7d3d598b157dedb520f95fe5a49f04d9b1fdf0def379aadf4823e314c174ab25728185e57d4ea10e847327176dadc943c908837bddce411aa118f
7
- data.tar.gz: 2744fa91f5066133130316451c01a7f0e9c03f2209fd4fa861f7cd005a8533c6aff6fe13b433c2adf7a310f1c911e2aa87d1f52395272286198025223fa2dd71
6
+ metadata.gz: 9d5bd203c61aca2526b0c378333c3e5a003e33eedaf3e592d88270ce86c4daa1742c14cce45d35e3c4d5e1dd4dcd3eee00daa64c533fa3fbd95cbc1bdddac5a6
7
+ data.tar.gz: 947dc65cf181b02049ca052a04e9f42f68c2ca0387da7cbe36151590b7fee9e64afa6a726eda0e8ed91eae540f22e0c192c5cc6af353c05e64e5aaf9d60ba6fa
@@ -1,6 +1,8 @@
1
- ## Change Log
1
+ ## CHANGELOG
2
2
 
3
- ### Unreleased
3
+ ### Newer releases
4
+
5
+ Please see: https://github.com/NARKOZ/gitlab/releases
4
6
 
5
7
  ### 4.2.0 (13/07/2017)
6
8
  - Use `url_encode` in all `Commit` resources (@grodowski)
@@ -11,7 +11,9 @@ Gem::Specification.new do |gem|
11
11
  gem.summary = 'A Ruby wrapper and CLI for the GitLab API'
12
12
  gem.homepage = 'https://github.com/narkoz/gitlab'
13
13
 
14
- gem.files = `git ls-files`.split($/)
14
+ gem.files = `git ls-files`.split($/).
15
+ reject { |f| f[/^spec/] } -
16
+ %w[Dockerfile docker-compose.yml docker.env .travis.yml .rubocop.yml .dockerignore]
15
17
  gem.bindir = 'exe'
16
18
  gem.executables = gem.files.grep(%r{^exe/}) { |f| File.basename(f) }
17
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
@@ -20,6 +20,7 @@ module Gitlab
20
20
  include Jobs
21
21
  include Keys
22
22
  include Labels
23
+ include MergeRequestApprovals
23
24
  include MergeRequests
24
25
  include Milestones
25
26
  include Namespaces
@@ -0,0 +1,110 @@
1
+ class Gitlab::Client
2
+ # Defines methods related to MR Approvals.
3
+ # @see https://docs.gitlab.com/ee/api/merge_request_approvals.html
4
+ module MergeRequestApprovals
5
+ # Gets MR Approval Configuration for a project
6
+ #
7
+ # @example
8
+ # Gitlab.project_merge_request_approvals(1)
9
+ #
10
+ # @param [Integer] project The ID of a project.
11
+ # @return [Gitlab::ObjectifiedHash] MR approval configuration information about the project
12
+ def project_merge_request_approvals(project)
13
+ get("/projects/#{url_encode project}/approvals")
14
+ end
15
+
16
+ # Change MR Approval Configuration for a project
17
+ #
18
+ # @example
19
+ # Gitlab.edit_project_merge_request_approvals(1, {approvals_before_merge: 3})
20
+ # Gitlab.edit_project_merge_request_approvals(1, {approvals_before_merge: 3, reset_approvals_on_push: true})
21
+ # Gitlab.edit_project_merge_request_approvals(1, {approvals_before_merge: 3, disable_overriding_approvers_per_merge_request: false})
22
+ #
23
+ # @param [Integer] project(required) The ID of a project.
24
+ # @option options [Integer] :approvals_before_merge(optional) How many approvals are required before an MR can be merged
25
+ # @option options [Boolean] :reset_approvals_on_push(optional) Reset approvals on a new push
26
+ # @option options [Boolean] :disable_overriding_approvers_per_merge_request(optional) Allow/Disallow overriding approvers per MR
27
+ # @return [Gitlab::ObjectifiedHash] MR approval configuration information about the project
28
+ def edit_project_merge_request_approvals(project, options = {})
29
+ post("/projects/#{url_encode project}/approvals", body: options)
30
+ end
31
+
32
+ # Change allowed approvers and approver groups for a project
33
+ #
34
+ # @example
35
+ # Gitlab.edit_project_approvers(1, {approver_ids: [5], approver_groups: [1]})
36
+ #
37
+ # @param [Integer] project(required) The ID of a project.
38
+ # @option options [Array] :approver_ids(optional) An array of User IDs that can approve MRs
39
+ # @option options [Array] :approver_group_ids(optional) An array of Group IDs whose members can approve MRs
40
+ # @return [Gitlab::ObjectifiedHash] MR approval configuration information about the project
41
+ def edit_project_approvers(project, options = {})
42
+ put("/projects/#{url_encode project}/approvals", body: options)
43
+ end
44
+
45
+ # Get Configuration for approvals on a specific Merge Request.
46
+ #
47
+ # @example
48
+ # Gitlab.merge_request_approvals(1, 5)
49
+ #
50
+ # @param [Integer] project(required) The ID of a project.
51
+ # @param [Integer] merge_request(required) The IID of a merge_request.
52
+ # @return [Gitlab::ObjectifiedHash] MR approval configuration information about the merge request
53
+ def merge_request_approvals(project, merge_request)
54
+ get("/projects/#{url_encode project}/merge_requests/#{merge_request}/approvals")
55
+ end
56
+
57
+ # Change configuration for approvals on a specific merge request.
58
+ #
59
+ # @example
60
+ # Gitlab.edit_merge_request_approvals(1, 5, approvals_required: 2)
61
+ #
62
+ # @param [Integer] project(required) The ID of a project.
63
+ # @param [Integer] merge_request(required) The IID of a merge_request.
64
+ # @option options [Integer] :approvals_required(required) Approvals required before MR can be merged
65
+ # @return [Gitlab::ObjectifiedHash] Updated MR approval configuration information about the merge request
66
+ def edit_merge_request_approvals(project, merge_request, options = {})
67
+ post("/projects/#{url_encode project}/merge_requests/#{merge_request}/approvals", body: options)
68
+ end
69
+
70
+ # Change allowed approvers and approver groups for a merge request
71
+ #
72
+ # @example
73
+ # Gitlab.edit_merge_request_approvers(1, 5, {approver_ids: [5], approver_groups: [1]})
74
+ #
75
+ # @param [Integer] project(required) The ID of a project.
76
+ # @param [Integer] merge_request(required) The IID of a merge_request.
77
+ # @option options [Array] :approver_ids(optional) An array of User IDs that can approve MRs
78
+ # @option options [Array] :approver_group_ids(optional) An array of Group IDs whose members can approve MRs
79
+ # @return [Gitlab::ObjectifiedHash] MR approval configuration information about the project
80
+ def edit_merge_request_approvers(project, merge_request, options = {})
81
+ put("/projects/#{url_encode project}/merge_requests/#{merge_request}/approvals", body: options)
82
+ end
83
+
84
+ # Approve a merge request
85
+ #
86
+ # @example
87
+ # Gitlab.approve_merge_request(1, 5)
88
+ # Gitlab.approve_merge_request(1, 5, sha: 'fe678da')
89
+ #
90
+ # @param [Integer] project(required) The ID of a project.
91
+ # @param [Integer] merge_request(required) The IID of a merge request.
92
+ # @option options [String] :sha(optional) The HEAD of the MR
93
+ # @return [Gitlab::ObjectifiedHash] MR approval configuration information about the project
94
+ def approve_merge_request(project, merge_request, options = {})
95
+ post("/projects/#{url_encode project}/merge_requests/#{merge_request}/approve", body: options)
96
+ end
97
+
98
+ # Unapprove a merge request
99
+ #
100
+ # @example
101
+ # Gitlab.unapprove_merge_request(1, 5)
102
+ #
103
+ # @param [Integer] project(required) The ID of a project.
104
+ # @param [Integer] merge_request(required) The IID of a merge request.
105
+ # @return [void] This API call returns an empty response body.
106
+ def unapprove_merge_request(project, merge_request)
107
+ post("/projects/#{url_encode project}/merge_requests/#{merge_request}/unapprove")
108
+ end
109
+ end
110
+ end
@@ -10,14 +10,11 @@ class Gitlab::Client
10
10
  # @param [Hash] options A customizable set of options.
11
11
  # @option options [Integer] :page The page number.
12
12
  # @option options [Integer] :per_page The number of results per page.
13
- # @option options [String] :scope Scope of projects. 'owned' for list of projects owned by the authenticated user, 'all' to get all projects (admin only)
13
+ # (Any provided options will be passed to Gitlab. See {https://docs.gitlab.com/ce/api/projects.html#list-all-projects Gitlab docs} for all valid options)
14
+ #
14
15
  # @return [Array<Gitlab::ObjectifiedHash>]
15
16
  def projects(options={})
16
- if options[:scope]
17
- get("/projects/#{options[:scope]}", query: options)
18
- else
19
- get("/projects", query: options)
20
- end
17
+ get("/projects", query: options)
21
18
  end
22
19
 
23
20
  # Search for projects by name.
@@ -340,14 +337,15 @@ class Gitlab::Client
340
337
  # Creates a new deploy key.
341
338
  #
342
339
  # @example
343
- # Gitlab.create_deploy_key(42, 'My Key', 'Key contents')
340
+ # Gitlab.create_deploy_key(42, 'My Key', 'Key contents', can_push: true)
344
341
  #
345
342
  # @param [Integer, String] project The ID or path of a project.
346
343
  # @param [String] title The title of a deploy key.
347
344
  # @param [String] key The content of a deploy key.
345
+ # @param [Hash] options A customizable set of options.
348
346
  # @return [Gitlab::ObjectifiedHash] Information about created deploy key.
349
- def create_deploy_key(project, title, key)
350
- post("/projects/#{url_encode project}/deploy_keys", body: { title: title, key: key })
347
+ def create_deploy_key(project, title, key, options = {})
348
+ post("/projects/#{url_encode project}/deploy_keys", body: { title: title, key: key }.merge(options))
351
349
  end
352
350
 
353
351
  # Enables a deploy key at the project.
@@ -449,6 +447,18 @@ class Gitlab::Client
449
447
  post("/projects/#{url_encode project}/share", body: { group_id: id, group_access: group_access })
450
448
  end
451
449
 
450
+ # Unshare project with group.
451
+ #
452
+ # @example
453
+ # Gitlab.unshare_project_with_group('gitlab', 2)
454
+ #
455
+ # @param [Integer, String] project The ID or path of a project.
456
+ # @param [Integer] id The ID of a group.
457
+ # @return [void] This API call returns an empty response body.
458
+ def unshare_project_with_group(project, id)
459
+ delete("/projects/#{url_encode project}/share/#{id}")
460
+ end
461
+
452
462
  # Stars a project.
453
463
  # @see https://docs.gitlab.com/ce/api/projects.html#star-a-project
454
464
  #
@@ -11,6 +11,8 @@ module Gitlab
11
11
 
12
12
  # Custom error class for rescuing from HTTP response errors.
13
13
  class ResponseError < Error
14
+ POSSIBLE_MESSAGE_KEYS = %i(message error_description error)
15
+
14
16
  def initialize(response)
15
17
  @response = response
16
18
  super(build_error_message)
@@ -37,14 +39,19 @@ module Gitlab
37
39
  # @return [String]
38
40
  def build_error_message
39
41
  parsed_response = @response.parsed_response
40
- message = parsed_response.respond_to?(:message) ? parsed_response.message : parsed_response['message']
41
- message = parsed_response.respond_to?(:error) ? parsed_response.error : parsed_response['error'] unless message
42
-
42
+ message = check_error_keys(parsed_response)
43
43
  "Server responded with code #{@response.code}, message: " \
44
44
  "#{handle_message(message)}. " \
45
45
  "Request URI: #{@response.request.base_uri}#{@response.request.path}"
46
46
  end
47
47
 
48
+ # Error keys vary across the API, find the first key that the parsed_response
49
+ # object responds to and return that, otherwise return the original.
50
+ def check_error_keys(resp)
51
+ key = POSSIBLE_MESSAGE_KEYS.find { |k| resp.respond_to?(k) }
52
+ key ? resp.send(key) : resp
53
+ end
54
+
48
55
  # Handle error response message in case of nested hashes
49
56
  def handle_message(message)
50
57
  case message
@@ -1,3 +1,3 @@
1
1
  module Gitlab
2
- VERSION = '4.4.0'.freeze
2
+ VERSION = '4.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nihad Abbasov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-06-03 00:00:00.000000000 Z
12
+ date: 2018-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
@@ -118,21 +118,15 @@ executables:
118
118
  extensions: []
119
119
  extra_rdoc_files: []
120
120
  files:
121
- - ".dockerignore"
122
121
  - ".gitignore"
123
- - ".rubocop.yml"
124
- - ".travis.yml"
125
122
  - CHANGELOG.md
126
123
  - CONTRIBUTING.md
127
- - Dockerfile
128
124
  - Gemfile
129
125
  - LICENSE.txt
130
126
  - README.md
131
127
  - Rakefile
132
128
  - bin/console
133
129
  - bin/setup
134
- - docker-compose.yml
135
- - docker.env
136
130
  - exe/gitlab
137
131
  - gitlab.gemspec
138
132
  - lib/gitlab.rb
@@ -156,6 +150,7 @@ files:
156
150
  - lib/gitlab/client/jobs.rb
157
151
  - lib/gitlab/client/keys.rb
158
152
  - lib/gitlab/client/labels.rb
153
+ - lib/gitlab/client/merge_request_approvals.rb
159
154
  - lib/gitlab/client/merge_requests.rb
160
155
  - lib/gitlab/client/milestones.rb
161
156
  - lib/gitlab/client/namespaces.rb
@@ -185,223 +180,6 @@ files:
185
180
  - lib/gitlab/shell.rb
186
181
  - lib/gitlab/shell_history.rb
187
182
  - lib/gitlab/version.rb
188
- - spec/fixtures/access_request.json
189
- - spec/fixtures/access_requests.json
190
- - spec/fixtures/approved_access_request.json
191
- - spec/fixtures/board_list.json
192
- - spec/fixtures/board_lists.json
193
- - spec/fixtures/boards.json
194
- - spec/fixtures/branch.json
195
- - spec/fixtures/branch_delete.json
196
- - spec/fixtures/branches.json
197
- - spec/fixtures/build.json
198
- - spec/fixtures/build_artifacts.json
199
- - spec/fixtures/build_cancel.json
200
- - spec/fixtures/build_erase.json
201
- - spec/fixtures/build_retry.json
202
- - spec/fixtures/builds.json
203
- - spec/fixtures/builds_commits.json
204
- - spec/fixtures/compare_merge_request_diff.json
205
- - spec/fixtures/default_approved_access_request.json
206
- - spec/fixtures/deployment.json
207
- - spec/fixtures/deployments.json
208
- - spec/fixtures/empty.json
209
- - spec/fixtures/environment.json
210
- - spec/fixtures/environments.json
211
- - spec/fixtures/error_already_exists.json
212
- - spec/fixtures/error_project_not_found.json
213
- - spec/fixtures/get_repository_file.json
214
- - spec/fixtures/group.json
215
- - spec/fixtures/group_create.json
216
- - spec/fixtures/group_create_with_description.json
217
- - spec/fixtures/group_delete.json
218
- - spec/fixtures/group_edit.json
219
- - spec/fixtures/group_member.json
220
- - spec/fixtures/group_member_delete.json
221
- - spec/fixtures/group_member_edit.json
222
- - spec/fixtures/group_members.json
223
- - spec/fixtures/group_milestone.json
224
- - spec/fixtures/group_milestone_issues.json
225
- - spec/fixtures/group_milestone_merge_requests.json
226
- - spec/fixtures/group_milestones.json
227
- - spec/fixtures/group_projects.json
228
- - spec/fixtures/group_search.json
229
- - spec/fixtures/group_subgroups.json
230
- - spec/fixtures/groups.json
231
- - spec/fixtures/issue.json
232
- - spec/fixtures/issue_award_emoji.json
233
- - spec/fixtures/issue_award_emojis.json
234
- - spec/fixtures/issues.json
235
- - spec/fixtures/job.json
236
- - spec/fixtures/job_trace.json
237
- - spec/fixtures/jobs.json
238
- - spec/fixtures/key.json
239
- - spec/fixtures/keys.json
240
- - spec/fixtures/label.json
241
- - spec/fixtures/label_unsubscribe.json
242
- - spec/fixtures/labels.json
243
- - spec/fixtures/merge_request.json
244
- - spec/fixtures/merge_request_award_emoji.json
245
- - spec/fixtures/merge_request_award_emojis.json
246
- - spec/fixtures/merge_request_changes.json
247
- - spec/fixtures/merge_request_closes_issues.json
248
- - spec/fixtures/merge_request_comment.json
249
- - spec/fixtures/merge_request_comments.json
250
- - spec/fixtures/merge_request_commits.json
251
- - spec/fixtures/merge_request_discussion.json
252
- - spec/fixtures/merge_request_discussion_note.json
253
- - spec/fixtures/merge_request_discussions.json
254
- - spec/fixtures/merge_requests.json
255
- - spec/fixtures/milestone.json
256
- - spec/fixtures/milestone_issues.json
257
- - spec/fixtures/milestone_merge_requests.json
258
- - spec/fixtures/milestones.json
259
- - spec/fixtures/namespaces.json
260
- - spec/fixtures/note.json
261
- - spec/fixtures/note_award_emoji.json
262
- - spec/fixtures/note_award_emojis.json
263
- - spec/fixtures/notes.json
264
- - spec/fixtures/pipeline.json
265
- - spec/fixtures/pipeline_cancel.json
266
- - spec/fixtures/pipeline_create.json
267
- - spec/fixtures/pipeline_jobs.json
268
- - spec/fixtures/pipeline_retry.json
269
- - spec/fixtures/pipeline_schedule.json
270
- - spec/fixtures/pipeline_schedule_create.json
271
- - spec/fixtures/pipeline_schedule_update.json
272
- - spec/fixtures/pipeline_schedule_variable.json
273
- - spec/fixtures/pipeline_schedule_variable_update.json
274
- - spec/fixtures/pipeline_schedules.json
275
- - spec/fixtures/pipelines.json
276
- - spec/fixtures/project.json
277
- - spec/fixtures/project_commit.json
278
- - spec/fixtures/project_commit_comment.json
279
- - spec/fixtures/project_commit_comments.json
280
- - spec/fixtures/project_commit_create.json
281
- - spec/fixtures/project_commit_diff.json
282
- - spec/fixtures/project_commit_merge_requests.json
283
- - spec/fixtures/project_commit_status.json
284
- - spec/fixtures/project_commits.json
285
- - spec/fixtures/project_edit.json
286
- - spec/fixtures/project_events.json
287
- - spec/fixtures/project_for_user.json
288
- - spec/fixtures/project_fork.json
289
- - spec/fixtures/project_fork_link.json
290
- - spec/fixtures/project_forked_for_user.json
291
- - spec/fixtures/project_forks.json
292
- - spec/fixtures/project_hook.json
293
- - spec/fixtures/project_hooks.json
294
- - spec/fixtures/project_issues.json
295
- - spec/fixtures/project_key.json
296
- - spec/fixtures/project_keys.json
297
- - spec/fixtures/project_runner_enable.json
298
- - spec/fixtures/project_runners.json
299
- - spec/fixtures/project_search.json
300
- - spec/fixtures/project_star.json
301
- - spec/fixtures/project_tag_annotated.json
302
- - spec/fixtures/project_tag_lightweight.json
303
- - spec/fixtures/project_tags.json
304
- - spec/fixtures/project_unstar.json
305
- - spec/fixtures/project_update_commit_status.json
306
- - spec/fixtures/projects.json
307
- - spec/fixtures/push_rule.json
308
- - spec/fixtures/raw_file.json
309
- - spec/fixtures/release_create.json
310
- - spec/fixtures/release_update.json
311
- - spec/fixtures/repository_file.json
312
- - spec/fixtures/run_trigger.json
313
- - spec/fixtures/runner.json
314
- - spec/fixtures/runner_delete.json
315
- - spec/fixtures/runner_edit.json
316
- - spec/fixtures/runner_jobs.json
317
- - spec/fixtures/runners.json
318
- - spec/fixtures/runners_all.json
319
- - spec/fixtures/service.json
320
- - spec/fixtures/session.json
321
- - spec/fixtures/shell_history.json
322
- - spec/fixtures/sidekiq_compound_metrics.json
323
- - spec/fixtures/sidekiq_job_stats.json
324
- - spec/fixtures/sidekiq_process_metrics.json
325
- - spec/fixtures/sidekiq_queue_metrics.json
326
- - spec/fixtures/snippet.json
327
- - spec/fixtures/snippet_award_emoji.json
328
- - spec/fixtures/snippet_award_emojis.json
329
- - spec/fixtures/snippet_content.json
330
- - spec/fixtures/snippets.json
331
- - spec/fixtures/system_hook.json
332
- - spec/fixtures/system_hooks.json
333
- - spec/fixtures/tag.json
334
- - spec/fixtures/tag_create.json
335
- - spec/fixtures/tag_create_with_description.json
336
- - spec/fixtures/tag_delete.json
337
- - spec/fixtures/tags.json
338
- - spec/fixtures/team_member.json
339
- - spec/fixtures/team_members.json
340
- - spec/fixtures/todo.json
341
- - spec/fixtures/todos.json
342
- - spec/fixtures/tree.json
343
- - spec/fixtures/trigger.json
344
- - spec/fixtures/triggers.json
345
- - spec/fixtures/user.json
346
- - spec/fixtures/user_block_unblock.json
347
- - spec/fixtures/user_contribution_events.json
348
- - spec/fixtures/user_email.json
349
- - spec/fixtures/user_emails.json
350
- - spec/fixtures/user_events.json
351
- - spec/fixtures/user_projects.json
352
- - spec/fixtures/user_search.json
353
- - spec/fixtures/users.json
354
- - spec/fixtures/variable.json
355
- - spec/fixtures/variables.json
356
- - spec/gitlab/api_spec.rb
357
- - spec/gitlab/cli_helpers_spec.rb
358
- - spec/gitlab/cli_spec.rb
359
- - spec/gitlab/client/access_requests_spec.rb
360
- - spec/gitlab/client/award_emojis_spec.rb
361
- - spec/gitlab/client/boards_spec.rb
362
- - spec/gitlab/client/branches_spec.rb
363
- - spec/gitlab/client/build_variables_spec.rb
364
- - spec/gitlab/client/builds_spec.rb
365
- - spec/gitlab/client/client_spec.rb
366
- - spec/gitlab/client/commits_spec.rb
367
- - spec/gitlab/client/deployments_spec.rb
368
- - spec/gitlab/client/environments_spec.rb
369
- - spec/gitlab/client/events_spec.rb
370
- - spec/gitlab/client/group_milestones_spec.rb
371
- - spec/gitlab/client/groups_spec.rb
372
- - spec/gitlab/client/issues_spec.rb
373
- - spec/gitlab/client/jobs_spec.rb
374
- - spec/gitlab/client/keys_spec.rb
375
- - spec/gitlab/client/labels_spec.rb
376
- - spec/gitlab/client/merge_requests_spec.rb
377
- - spec/gitlab/client/milestones_spec.rb
378
- - spec/gitlab/client/namespaces_spec.rb
379
- - spec/gitlab/client/notes_spec.rb
380
- - spec/gitlab/client/pipeline_schedules_spec.rb
381
- - spec/gitlab/client/pipeline_triggers_spec.rb
382
- - spec/gitlab/client/pipelines_spec.rb
383
- - spec/gitlab/client/projects_spec.rb
384
- - spec/gitlab/client/repositories_spec.rb
385
- - spec/gitlab/client/repository_files_spec.rb
386
- - spec/gitlab/client/runners_spec.rb
387
- - spec/gitlab/client/services_spec.rb
388
- - spec/gitlab/client/sidekiq_spec.rb
389
- - spec/gitlab/client/snippets_spec.rb
390
- - spec/gitlab/client/system_hooks_spec.rb
391
- - spec/gitlab/client/tags_spec.rb
392
- - spec/gitlab/client/todos_spec.rb
393
- - spec/gitlab/client/users_spec.rb
394
- - spec/gitlab/error_spec.rb
395
- - spec/gitlab/file_response_spec.rb
396
- - spec/gitlab/help_spec.rb
397
- - spec/gitlab/objectified_hash_spec.rb
398
- - spec/gitlab/page_links_spec.rb
399
- - spec/gitlab/paginated_response_spec.rb
400
- - spec/gitlab/request_spec.rb
401
- - spec/gitlab/shell_history_spec.rb
402
- - spec/gitlab/shell_spec.rb
403
- - spec/gitlab_spec.rb
404
- - spec/spec_helper.rb
405
183
  homepage: https://github.com/narkoz/gitlab
406
184
  licenses:
407
185
  - BSD
@@ -422,225 +200,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
200
  version: '0'
423
201
  requirements: []
424
202
  rubyforge_project:
425
- rubygems_version: 2.7.6
203
+ rubygems_version: 2.7.7
426
204
  signing_key:
427
205
  specification_version: 4
428
206
  summary: A Ruby wrapper and CLI for the GitLab API
429
- test_files:
430
- - spec/fixtures/access_request.json
431
- - spec/fixtures/access_requests.json
432
- - spec/fixtures/approved_access_request.json
433
- - spec/fixtures/board_list.json
434
- - spec/fixtures/board_lists.json
435
- - spec/fixtures/boards.json
436
- - spec/fixtures/branch.json
437
- - spec/fixtures/branch_delete.json
438
- - spec/fixtures/branches.json
439
- - spec/fixtures/build.json
440
- - spec/fixtures/build_artifacts.json
441
- - spec/fixtures/build_cancel.json
442
- - spec/fixtures/build_erase.json
443
- - spec/fixtures/build_retry.json
444
- - spec/fixtures/builds.json
445
- - spec/fixtures/builds_commits.json
446
- - spec/fixtures/compare_merge_request_diff.json
447
- - spec/fixtures/default_approved_access_request.json
448
- - spec/fixtures/deployment.json
449
- - spec/fixtures/deployments.json
450
- - spec/fixtures/empty.json
451
- - spec/fixtures/environment.json
452
- - spec/fixtures/environments.json
453
- - spec/fixtures/error_already_exists.json
454
- - spec/fixtures/error_project_not_found.json
455
- - spec/fixtures/get_repository_file.json
456
- - spec/fixtures/group.json
457
- - spec/fixtures/group_create.json
458
- - spec/fixtures/group_create_with_description.json
459
- - spec/fixtures/group_delete.json
460
- - spec/fixtures/group_edit.json
461
- - spec/fixtures/group_member.json
462
- - spec/fixtures/group_member_delete.json
463
- - spec/fixtures/group_member_edit.json
464
- - spec/fixtures/group_members.json
465
- - spec/fixtures/group_milestone.json
466
- - spec/fixtures/group_milestone_issues.json
467
- - spec/fixtures/group_milestone_merge_requests.json
468
- - spec/fixtures/group_milestones.json
469
- - spec/fixtures/group_projects.json
470
- - spec/fixtures/group_search.json
471
- - spec/fixtures/group_subgroups.json
472
- - spec/fixtures/groups.json
473
- - spec/fixtures/issue.json
474
- - spec/fixtures/issue_award_emoji.json
475
- - spec/fixtures/issue_award_emojis.json
476
- - spec/fixtures/issues.json
477
- - spec/fixtures/job.json
478
- - spec/fixtures/job_trace.json
479
- - spec/fixtures/jobs.json
480
- - spec/fixtures/key.json
481
- - spec/fixtures/keys.json
482
- - spec/fixtures/label.json
483
- - spec/fixtures/label_unsubscribe.json
484
- - spec/fixtures/labels.json
485
- - spec/fixtures/merge_request.json
486
- - spec/fixtures/merge_request_award_emoji.json
487
- - spec/fixtures/merge_request_award_emojis.json
488
- - spec/fixtures/merge_request_changes.json
489
- - spec/fixtures/merge_request_closes_issues.json
490
- - spec/fixtures/merge_request_comment.json
491
- - spec/fixtures/merge_request_comments.json
492
- - spec/fixtures/merge_request_commits.json
493
- - spec/fixtures/merge_request_discussion.json
494
- - spec/fixtures/merge_request_discussion_note.json
495
- - spec/fixtures/merge_request_discussions.json
496
- - spec/fixtures/merge_requests.json
497
- - spec/fixtures/milestone.json
498
- - spec/fixtures/milestone_issues.json
499
- - spec/fixtures/milestone_merge_requests.json
500
- - spec/fixtures/milestones.json
501
- - spec/fixtures/namespaces.json
502
- - spec/fixtures/note.json
503
- - spec/fixtures/note_award_emoji.json
504
- - spec/fixtures/note_award_emojis.json
505
- - spec/fixtures/notes.json
506
- - spec/fixtures/pipeline.json
507
- - spec/fixtures/pipeline_cancel.json
508
- - spec/fixtures/pipeline_create.json
509
- - spec/fixtures/pipeline_jobs.json
510
- - spec/fixtures/pipeline_retry.json
511
- - spec/fixtures/pipeline_schedule.json
512
- - spec/fixtures/pipeline_schedule_create.json
513
- - spec/fixtures/pipeline_schedule_update.json
514
- - spec/fixtures/pipeline_schedule_variable.json
515
- - spec/fixtures/pipeline_schedule_variable_update.json
516
- - spec/fixtures/pipeline_schedules.json
517
- - spec/fixtures/pipelines.json
518
- - spec/fixtures/project.json
519
- - spec/fixtures/project_commit.json
520
- - spec/fixtures/project_commit_comment.json
521
- - spec/fixtures/project_commit_comments.json
522
- - spec/fixtures/project_commit_create.json
523
- - spec/fixtures/project_commit_diff.json
524
- - spec/fixtures/project_commit_merge_requests.json
525
- - spec/fixtures/project_commit_status.json
526
- - spec/fixtures/project_commits.json
527
- - spec/fixtures/project_edit.json
528
- - spec/fixtures/project_events.json
529
- - spec/fixtures/project_for_user.json
530
- - spec/fixtures/project_fork.json
531
- - spec/fixtures/project_fork_link.json
532
- - spec/fixtures/project_forked_for_user.json
533
- - spec/fixtures/project_forks.json
534
- - spec/fixtures/project_hook.json
535
- - spec/fixtures/project_hooks.json
536
- - spec/fixtures/project_issues.json
537
- - spec/fixtures/project_key.json
538
- - spec/fixtures/project_keys.json
539
- - spec/fixtures/project_runner_enable.json
540
- - spec/fixtures/project_runners.json
541
- - spec/fixtures/project_search.json
542
- - spec/fixtures/project_star.json
543
- - spec/fixtures/project_tag_annotated.json
544
- - spec/fixtures/project_tag_lightweight.json
545
- - spec/fixtures/project_tags.json
546
- - spec/fixtures/project_unstar.json
547
- - spec/fixtures/project_update_commit_status.json
548
- - spec/fixtures/projects.json
549
- - spec/fixtures/push_rule.json
550
- - spec/fixtures/raw_file.json
551
- - spec/fixtures/release_create.json
552
- - spec/fixtures/release_update.json
553
- - spec/fixtures/repository_file.json
554
- - spec/fixtures/run_trigger.json
555
- - spec/fixtures/runner.json
556
- - spec/fixtures/runner_delete.json
557
- - spec/fixtures/runner_edit.json
558
- - spec/fixtures/runner_jobs.json
559
- - spec/fixtures/runners.json
560
- - spec/fixtures/runners_all.json
561
- - spec/fixtures/service.json
562
- - spec/fixtures/session.json
563
- - spec/fixtures/shell_history.json
564
- - spec/fixtures/sidekiq_compound_metrics.json
565
- - spec/fixtures/sidekiq_job_stats.json
566
- - spec/fixtures/sidekiq_process_metrics.json
567
- - spec/fixtures/sidekiq_queue_metrics.json
568
- - spec/fixtures/snippet.json
569
- - spec/fixtures/snippet_award_emoji.json
570
- - spec/fixtures/snippet_award_emojis.json
571
- - spec/fixtures/snippet_content.json
572
- - spec/fixtures/snippets.json
573
- - spec/fixtures/system_hook.json
574
- - spec/fixtures/system_hooks.json
575
- - spec/fixtures/tag.json
576
- - spec/fixtures/tag_create.json
577
- - spec/fixtures/tag_create_with_description.json
578
- - spec/fixtures/tag_delete.json
579
- - spec/fixtures/tags.json
580
- - spec/fixtures/team_member.json
581
- - spec/fixtures/team_members.json
582
- - spec/fixtures/todo.json
583
- - spec/fixtures/todos.json
584
- - spec/fixtures/tree.json
585
- - spec/fixtures/trigger.json
586
- - spec/fixtures/triggers.json
587
- - spec/fixtures/user.json
588
- - spec/fixtures/user_block_unblock.json
589
- - spec/fixtures/user_contribution_events.json
590
- - spec/fixtures/user_email.json
591
- - spec/fixtures/user_emails.json
592
- - spec/fixtures/user_events.json
593
- - spec/fixtures/user_projects.json
594
- - spec/fixtures/user_search.json
595
- - spec/fixtures/users.json
596
- - spec/fixtures/variable.json
597
- - spec/fixtures/variables.json
598
- - spec/gitlab/api_spec.rb
599
- - spec/gitlab/cli_helpers_spec.rb
600
- - spec/gitlab/cli_spec.rb
601
- - spec/gitlab/client/access_requests_spec.rb
602
- - spec/gitlab/client/award_emojis_spec.rb
603
- - spec/gitlab/client/boards_spec.rb
604
- - spec/gitlab/client/branches_spec.rb
605
- - spec/gitlab/client/build_variables_spec.rb
606
- - spec/gitlab/client/builds_spec.rb
607
- - spec/gitlab/client/client_spec.rb
608
- - spec/gitlab/client/commits_spec.rb
609
- - spec/gitlab/client/deployments_spec.rb
610
- - spec/gitlab/client/environments_spec.rb
611
- - spec/gitlab/client/events_spec.rb
612
- - spec/gitlab/client/group_milestones_spec.rb
613
- - spec/gitlab/client/groups_spec.rb
614
- - spec/gitlab/client/issues_spec.rb
615
- - spec/gitlab/client/jobs_spec.rb
616
- - spec/gitlab/client/keys_spec.rb
617
- - spec/gitlab/client/labels_spec.rb
618
- - spec/gitlab/client/merge_requests_spec.rb
619
- - spec/gitlab/client/milestones_spec.rb
620
- - spec/gitlab/client/namespaces_spec.rb
621
- - spec/gitlab/client/notes_spec.rb
622
- - spec/gitlab/client/pipeline_schedules_spec.rb
623
- - spec/gitlab/client/pipeline_triggers_spec.rb
624
- - spec/gitlab/client/pipelines_spec.rb
625
- - spec/gitlab/client/projects_spec.rb
626
- - spec/gitlab/client/repositories_spec.rb
627
- - spec/gitlab/client/repository_files_spec.rb
628
- - spec/gitlab/client/runners_spec.rb
629
- - spec/gitlab/client/services_spec.rb
630
- - spec/gitlab/client/sidekiq_spec.rb
631
- - spec/gitlab/client/snippets_spec.rb
632
- - spec/gitlab/client/system_hooks_spec.rb
633
- - spec/gitlab/client/tags_spec.rb
634
- - spec/gitlab/client/todos_spec.rb
635
- - spec/gitlab/client/users_spec.rb
636
- - spec/gitlab/error_spec.rb
637
- - spec/gitlab/file_response_spec.rb
638
- - spec/gitlab/help_spec.rb
639
- - spec/gitlab/objectified_hash_spec.rb
640
- - spec/gitlab/page_links_spec.rb
641
- - spec/gitlab/paginated_response_spec.rb
642
- - spec/gitlab/request_spec.rb
643
- - spec/gitlab/shell_history_spec.rb
644
- - spec/gitlab/shell_spec.rb
645
- - spec/gitlab_spec.rb
646
- - spec/spec_helper.rb
207
+ test_files: []