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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a01f550ea5386da4487deb12c7cba34036584176cec9112187ceb0b7086bd4d0
4
- data.tar.gz: e121287067cdd78713d88bc40f30abc892667708dad5a988c055f98734f9152a
3
+ metadata.gz: 1a86feed7c458159c32c4a9dc5df71aea90313379611c01f3aaf2d9a92dc45b9
4
+ data.tar.gz: 5d2b6143ab2818ebc53ca7242e45edaa0b410d83d4ba4e0f7f4cc573d98dda3e
5
5
  SHA512:
6
- metadata.gz: 340bee8032af5963dbef9a35972d64e2e6f29e1d7c4872081aa910e0fb4759b8cfda783b6fbcf8074164c76376157273792666be031e89e35870ea73a5052a0c
7
- data.tar.gz: 751a80f76fc107ab635ffe91eb7773d92a20d935da0aaa468ffc88fc46698c599eec0d309ee3515d0c831ba0eef3fbb1a54786b236283e20093d498c8e5cf4fe
6
+ metadata.gz: 5d7b33a67d114bdf951bb46745821d82bbd1b229cfdfd2d42fdf57ca6a2d9263a81a126f33852dcfa6d8af6442c7ae649b69298e104a375a2bf0f946e3be85bd
7
+ data.tar.gz: 2537f303f67bdacc819eb4ecf753035853ca0b052e67ad038a823c9b7c3b3e4d1fe8fab945f92f0f77018f280c780e29b635497d45f0f2768b2eed5499ab4d21
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitea-client (0.8.1)
4
+ gitea-client (0.9.1)
5
5
  rest-client (~> 2.1.0)
6
6
 
7
7
  GEM
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.6.0"
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"
@@ -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 = {})
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitea
4
- VERSION = "0.8.1"
4
+ VERSION = "0.9.1"
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.1
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-06-23 00:00:00.000000000 Z
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.6.0
80
+ version: 2.4.0
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="