gitea-client 0.9.1 → 0.9.4
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 +8 -0
- 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: 5a79cb676bc05a7545c4a1ce16787561db4139ab94108e7ef238a5d52be18855
|
4
|
+
data.tar.gz: 6c76d38b97c535d9688e4397f26158dd46e3c0a5fee20c66c0de759743f9d805
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b685ab09db3a87598cb1639643760648769d9e5a7e23afc3307d687cb70ac889aba3d2bc744918d25df6766773eb27d18872ee479bde40ffff8181851a75b4a
|
7
|
+
data.tar.gz: 873320f3dec2a032ed0bf31a84888b050f73b289de9db5fed2242ad3051610bc6dfb2c72463812c97967744a3c90c9710861671b78238e0a9e5e0fd535813e2d
|
data/Gemfile.lock
CHANGED
data/lib/gitea/api/repository.rb
CHANGED
@@ -85,6 +85,10 @@ module Gitea
|
|
85
85
|
@http.delete("/repos/#{owner}/#{repo}/branches/#{branch}", opt)
|
86
86
|
end
|
87
87
|
|
88
|
+
def get_repos_compare_by_owner_repo_from_to(owner, repo, from, to, opt = {})
|
89
|
+
@http.get("/repos/#{owner}/#{repo}/compare/#{to}...#{from}", opt)
|
90
|
+
end
|
91
|
+
|
88
92
|
def get_repos_collaborators_by_owner_repo_collaborator(owner, repo, collaborator, opt = {})
|
89
93
|
@http.get("/repos/#{owner}/#{repo}/collaborators/#{collaborator}", opt)
|
90
94
|
end
|
@@ -101,6 +105,10 @@ module Gitea
|
|
101
105
|
@http.get("/repos/#{owner}/#{repo}/commits", opt)
|
102
106
|
end
|
103
107
|
|
108
|
+
def get_repos_commits_diff_by_owner_repo_sha(owner, repo, sha, opt = {})
|
109
|
+
@http.get("/repos/#{owner}/#{repo}/commits/#{sha}/diff", opt)
|
110
|
+
end
|
111
|
+
|
104
112
|
def get_repos_commits_status_by_owner_repo_ref(owner, repo, ref, opt = {})
|
105
113
|
@http.get("/repos/#{owner}/#{repo}/commits/#{ref}/status", opt)
|
106
114
|
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.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- viletyy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|