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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a86feed7c458159c32c4a9dc5df71aea90313379611c01f3aaf2d9a92dc45b9
4
- data.tar.gz: 5d2b6143ab2818ebc53ca7242e45edaa0b410d83d4ba4e0f7f4cc573d98dda3e
3
+ metadata.gz: 5a79cb676bc05a7545c4a1ce16787561db4139ab94108e7ef238a5d52be18855
4
+ data.tar.gz: 6c76d38b97c535d9688e4397f26158dd46e3c0a5fee20c66c0de759743f9d805
5
5
  SHA512:
6
- metadata.gz: 5d7b33a67d114bdf951bb46745821d82bbd1b229cfdfd2d42fdf57ca6a2d9263a81a126f33852dcfa6d8af6442c7ae649b69298e104a375a2bf0f946e3be85bd
7
- data.tar.gz: 2537f303f67bdacc819eb4ecf753035853ca0b052e67ad038a823c9b7c3b3e4d1fe8fab945f92f0f77018f280c780e29b635497d45f0f2768b2eed5499ab4d21
6
+ metadata.gz: 1b685ab09db3a87598cb1639643760648769d9e5a7e23afc3307d687cb70ac889aba3d2bc744918d25df6766773eb27d18872ee479bde40ffff8181851a75b4a
7
+ data.tar.gz: 873320f3dec2a032ed0bf31a84888b050f73b289de9db5fed2242ad3051610bc6dfb2c72463812c97967744a3c90c9710861671b78238e0a9e5e0fd535813e2d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitea-client (0.9.1)
4
+ gitea-client (0.9.4)
5
5
  rest-client (~> 2.1.0)
6
6
 
7
7
  GEM
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitea
4
- VERSION = "0.9.1"
4
+ VERSION = "0.9.4"
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.9.1
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-15 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