gitea-client 0.6.1 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitea/api/http.rb +4 -0
- data/lib/gitea/api/repository.rb +1 -1
- data/lib/gitea/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc354d6ebcd5ec3bf4fd76fd7647cdaea7f1d024a0bd578c5058a982244f815d
|
4
|
+
data.tar.gz: 38bc505b08560028ea865c2f039cf2cb3cbc6a2a4757f397a378e8013118e240
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 636116430f19f3771b0c4f91b54466f62bf54f6c375f51d346a07166d8092c19f5814a43316806fabb39e15579ba20ffe6ce73f3b043b7e422ec0e5768a8f2ff
|
7
|
+
data.tar.gz: b6f7b35bc709f73776da18d4b3adee78ed956eb65e11ed8d3401cd796e6d82de828daf9995a0dc4ebec811fd6164c5791a8102f3854d4be0e2191748bcd6a621
|
data/Gemfile.lock
CHANGED
data/lib/gitea/api/http.rb
CHANGED
@@ -30,6 +30,10 @@ module Gitea
|
|
30
30
|
do_request('PUT', api_url, http_options, &block)
|
31
31
|
end
|
32
32
|
|
33
|
+
def patch(api_url = '', http_options = {}, &block)
|
34
|
+
do_request('PATCH', api_url, http_options, &block)
|
35
|
+
end
|
36
|
+
|
33
37
|
def post(api_url = '', http_options = {}, &block)
|
34
38
|
do_request('POST', api_url, http_options, &block)
|
35
39
|
end
|
data/lib/gitea/api/repository.rb
CHANGED
@@ -53,7 +53,7 @@ module Gitea
|
|
53
53
|
@http.patch("/repos/#{owner}/#{repo}/branch_protections/#{name}", opt)
|
54
54
|
end
|
55
55
|
|
56
|
-
def get_repos_branch_tag_count_by_owner_repo(
|
56
|
+
def get_repos_branch_tag_count_by_owner_repo(owner, repo, opt={})
|
57
57
|
@http.get("/repos/#{owner}/#{repo}/branch_tag_count", opt)
|
58
58
|
end
|
59
59
|
|
data/lib/gitea/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitea-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- viletyy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|