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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4888dd06916a46c9d07b5e58ff98e8bc7f7e8123508bfecfde82f7326c8621b
4
- data.tar.gz: cb9ac280db2f175fb89ec3132172c0b7723885b3d62432fac2b05c4461ce5c58
3
+ metadata.gz: 5b991ac643003f3bbdb6b5d127d937167e3a5a3331017958a360247c20854653
4
+ data.tar.gz: d64feef2ca9cd683b6d6285ac88987fd8ac497ab37e3a4754db9bab8539e75da
5
5
  SHA512:
6
- metadata.gz: 543d71644fa7aa9dff5009a609172ef8bc87498fca4783f43629537987dd5c03f7f6bdc7e783905e32870b9f0430cdbdbb6c47b3c5aabd5673a142cbd4f60c58
7
- data.tar.gz: 718d0a066c54eddb5394c607da4081008a83a37456de64a38f698f332082f21990f1484200bc5a838f7db1a2b7fdd891f29d2b27b04cd92748ccf67800258183
6
+ metadata.gz: 586ca5d35e2407a9368d6c06355ee715f6219b9ff5184f7a7da2faf4fe5de7a8642e5aa18cea1f6b94ea4e8d64c32bc12ee7d8239fe6b10902d4e63675360b51
7
+ data.tar.gz: 4b26d762a32471c6cd8a2ba5ffceb3795ef5b02028be01d72b2b7c90428ac12c5629934a8af76ad8fe0f46ebdc8a9ec668416046809b4e5a2e68f93fbac6d6a8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitea-client (0.8.2)
4
+ gitea-client (0.9.2)
5
5
  rest-client (~> 2.1.0)
6
6
 
7
7
  GEM
@@ -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.get("/repos/#{owner}/#{repo}/branches", opt)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitea
4
- VERSION = "0.8.2"
4
+ VERSION = "0.9.2"
5
5
  end
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.8.2
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-06-26 00:00:00.000000000 Z
11
+ date: 2022-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client