diff --git a/Gemfile.lock b/Gemfile.lock index 821a748..bdde65e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - gitea-client (0.4.0) + gitea-client (0.5.0) rest-client (~> 2.1.0) GEM diff --git a/lib/gitea/api/repository.rb b/lib/gitea/api/repository.rb index 121715e..f4ec735 100644 --- a/lib/gitea/api/repository.rb +++ b/lib/gitea/api/repository.rb @@ -69,6 +69,10 @@ module Gitea @http.get("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt) end + def put_repos_collaborators_by_owner_repo_collaborator(owner, repo, collaborator, opt = {}) + @http.put("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt) + end + def delete_repos_collaborators_by_owner_repo_collaborator(owner, repo, collaborator, opt = {}) @http.delete("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt) end diff --git a/lib/gitea/version.rb b/lib/gitea/version.rb index 778a6ba..6e4cb40 100644 --- a/lib/gitea/version.rb +++ b/lib/gitea/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Gitea - VERSION = "0.4.0" + VERSION = "0.5.0" end