diff options
author | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
---|---|---|
committer | Toon Claes <toon@gitlab.com> | 2019-02-28 19:57:34 +0100 |
commit | 62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch) | |
tree | c3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /lib/api/project_hooks.rb | |
parent | f6453eca992a9c142268e78ac782cef98110d183 (diff) | |
download | gitlab-ce-tc-standard-gem.tar.gz |
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I
decided to try https://github.com/testdouble/standard on our codebase.
It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'lib/api/project_hooks.rb')
-rw-r--r-- | lib/api/project_hooks.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/api/project_hooks.rb b/lib/api/project_hooks.rb index 0e7576c9243..e4a0a8b90bd 100644 --- a/lib/api/project_hooks.rb +++ b/lib/api/project_hooks.rb @@ -27,10 +27,10 @@ module API end params do - requires :id, type: String, desc: 'The ID of a project' + requires :id, type: String, desc: "The ID of a project" end resource :projects, requirements: API::NAMESPACE_OR_PROJECT_REQUIREMENTS do - desc 'Get project hooks' do + desc "Get project hooks" do success Entities::ProjectHook end params do @@ -40,18 +40,18 @@ module API present paginate(user_project.hooks), with: Entities::ProjectHook end - desc 'Get a project hook' do + desc "Get a project hook" do success Entities::ProjectHook end params do - requires :hook_id, type: Integer, desc: 'The ID of a project hook' + requires :hook_id, type: Integer, desc: "The ID of a project hook" end get ":id/hooks/:hook_id" do hook = user_project.hooks.find(params[:hook_id]) present hook, with: Entities::ProjectHook end - desc 'Add hook to project' do + desc "Add hook to project" do success Entities::ProjectHook end params do @@ -72,7 +72,7 @@ module API end end - desc 'Update an existing project hook' do + desc "Update an existing project hook" do success Entities::ProjectHook end params do @@ -94,11 +94,11 @@ module API end end - desc 'Deletes project hook' do + desc "Deletes project hook" do success Entities::ProjectHook end params do - requires :hook_id, type: Integer, desc: 'The ID of the hook to delete' + requires :hook_id, type: Integer, desc: "The ID of the hook to delete" end delete ":id/hooks/:hook_id" do hook = user_project.hooks.find(params.delete(:hook_id)) |