gitea-client 0.8.1 → 0.9.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/gitea-client.gemspec +1 -1
- data/lib/gitea/api/repository.rb +13 -1
- data/lib/gitea/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a86feed7c458159c32c4a9dc5df71aea90313379611c01f3aaf2d9a92dc45b9
|
4
|
+
data.tar.gz: 5d2b6143ab2818ebc53ca7242e45edaa0b410d83d4ba4e0f7f4cc573d98dda3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d7b33a67d114bdf951bb46745821d82bbd1b229cfdfd2d42fdf57ca6a2d9263a81a126f33852dcfa6d8af6442c7ae649b69298e104a375a2bf0f946e3be85bd
|
7
|
+
data.tar.gz: 2537f303f67bdacc819eb4ecf753035853ca0b052e67ad038a823c9b7c3b3e4d1fe8fab945f92f0f77018f280c780e29b635497d45f0f2768b2eed5499ab4d21
|
data/Gemfile.lock
CHANGED
data/gitea-client.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = ""
|
13
13
|
spec.homepage = "https://github.com/viletyy/gitea-client"
|
14
14
|
spec.license = "MIT"
|
15
|
-
spec.required_ruby_version = ">= 2.
|
15
|
+
spec.required_ruby_version = ">= 2.4.0"
|
16
16
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
18
18
|
spec.metadata["source_code_uri"] = "https://github.com/viletyy/gitea-client"
|
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 = {})
|
@@ -109,6 +117,10 @@ module Gitea
|
|
109
117
|
@http.get("/repos/#{owner}/#{repo}/contents", opt)
|
110
118
|
end
|
111
119
|
|
120
|
+
def post_repos_contents_batch_by_owner_repo(owner, repo, opt = {})
|
121
|
+
@http.post("/repos/#{owner}/#{repo}/contents/batch", opt)
|
122
|
+
end
|
123
|
+
|
112
124
|
def get_repos_contents_by_owner_repo_filepath(owner, repo, filepath, opt = {})
|
113
125
|
@http.get("/repos/#{owner}/#{repo}/contents/#{filepath}", opt)
|
114
126
|
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.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-
|
11
|
+
date: 2022-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -77,7 +77,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
77
77
|
requirements:
|
78
78
|
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
|
-
version: 2.
|
80
|
+
version: 2.4.0
|
81
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
83
|
- - ">="
|