gitea-client 0.8.2 → 0.9.2
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/repository.rb +17 -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: 5b991ac643003f3bbdb6b5d127d937167e3a5a3331017958a360247c20854653
|
4
|
+
data.tar.gz: d64feef2ca9cd683b6d6285ac88987fd8ac497ab37e3a4754db9bab8539e75da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 586ca5d35e2407a9368d6c06355ee715f6219b9ff5184f7a7da2faf4fe5de7a8642e5aa18cea1f6b94ea4e8d64c32bc12ee7d8239fe6b10902d4e63675360b51
|
7
|
+
data.tar.gz: 4b26d762a32471c6cd8a2ba5ffceb3795ef5b02028be01d72b2b7c90428ac12c5629934a8af76ad8fe0f46ebdc8a9ec668416046809b4e5a2e68f93fbac6d6a8
|
data/Gemfile.lock
CHANGED
data/lib/gitea/api/repository.rb
CHANGED
@@ -29,6 +29,10 @@ module Gitea
|
|
29
29
|
@http.get("/repos/#{owner}/#{repo}/assignees", opt)
|
30
30
|
end
|
31
31
|
|
32
|
+
def get_repos_blame_by_owner_repo(owner, repo, opt = {})
|
33
|
+
@http.get("/repos/#{owner}/#{repo}/blame", opt)
|
34
|
+
end
|
35
|
+
|
32
36
|
def get_repos_branch_name_set_by_owner_repo(owner, repo, opt = {})
|
33
37
|
@http.get("/repos/#{owner}/#{repo}/branch_name_set", opt)
|
34
38
|
end
|
@@ -62,7 +66,11 @@ module Gitea
|
|
62
66
|
end
|
63
67
|
|
64
68
|
def post_repos_branches_by_owner_repo(owner, repo, opt = {})
|
65
|
-
@http.
|
69
|
+
@http.post("/repos/#{owner}/#{repo}/branches", opt)
|
70
|
+
end
|
71
|
+
|
72
|
+
def get_repos_branches_branches_slice_by_owner_repo(owner, repo, opt = {})
|
73
|
+
@http.get("/repos/#{owner}/#{repo}/branches/branches_slice", opt)
|
66
74
|
end
|
67
75
|
|
68
76
|
def get_repos_branches_branches_slice_by_owner_repo(owner, repo, opt = {})
|
@@ -93,6 +101,10 @@ module Gitea
|
|
93
101
|
@http.get("/repos/#{owner}/#{repo}/commits", opt)
|
94
102
|
end
|
95
103
|
|
104
|
+
def get_repos_commits_diff_by_owner_repo(owner, repo, opt = {})
|
105
|
+
@http.get("/repos/#{owner}/#{repo}/commits/diff", opt)
|
106
|
+
end
|
107
|
+
|
96
108
|
def get_repos_commits_status_by_owner_repo_ref(owner, repo, ref, opt = {})
|
97
109
|
@http.get("/repos/#{owner}/#{repo}/commits/#{ref}/status", opt)
|
98
110
|
end
|
@@ -109,6 +121,10 @@ module Gitea
|
|
109
121
|
@http.get("/repos/#{owner}/#{repo}/contents", opt)
|
110
122
|
end
|
111
123
|
|
124
|
+
def post_repos_contents_batch_by_owner_repo(owner, repo, opt = {})
|
125
|
+
@http.post("/repos/#{owner}/#{repo}/contents/batch", opt)
|
126
|
+
end
|
127
|
+
|
112
128
|
def get_repos_contents_by_owner_repo_filepath(owner, repo, filepath, opt = {})
|
113
129
|
@http.get("/repos/#{owner}/#{repo}/contents/#{filepath}", opt)
|
114
130
|
end
|
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.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- viletyy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|