gitea-client 0.6.1 → 0.7.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: 226566445bfa1d0c76c1571252751666f86afc3bfc3d02dd3b0fbef3517dac5a
4
- data.tar.gz: 1e369532bfe8f4d543b07101e6383d31e2cb9b949c2061c90558f01bb3fbca6b
3
+ metadata.gz: cc354d6ebcd5ec3bf4fd76fd7647cdaea7f1d024a0bd578c5058a982244f815d
4
+ data.tar.gz: 38bc505b08560028ea865c2f039cf2cb3cbc6a2a4757f397a378e8013118e240
5
5
  SHA512:
6
- metadata.gz: 5b654595793fbe84fae3d64b373dc6afe215ed388c7e494a1a17a88038f5d822a4a611250b8d014ce323e8e8a353681f20ee816269b5e2d31654cfd6a957f989
7
- data.tar.gz: 7f95890636177fe1fcd0ffc1b9ba87231074a3530d228e93f83f0e0140d2a978c2bf3eeeb433068503625ba4b86c55cadc9ac65fead4182c3563816b97e2d0a7
6
+ metadata.gz: 636116430f19f3771b0c4f91b54466f62bf54f6c375f51d346a07166d8092c19f5814a43316806fabb39e15579ba20ffe6ce73f3b043b7e422ec0e5768a8f2ff
7
+ data.tar.gz: b6f7b35bc709f73776da18d4b3adee78ed956eb65e11ed8d3401cd796e6d82de828daf9995a0dc4ebec811fd6164c5791a8102f3854d4be0e2191748bcd6a621
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitea-client (0.6.1)
4
+ gitea-client (0.7.1)
5
5
  rest-client (~> 2.1.0)
6
6
 
7
7
  GEM
@@ -30,6 +30,10 @@ module Gitea
30
30
  do_request('PUT', api_url, http_options, &block)
31
31
  end
32
32
 
33
+ def patch(api_url = '', http_options = {}, &block)
34
+ do_request('PATCH', api_url, http_options, &block)
35
+ end
36
+
33
37
  def post(api_url = '', http_options = {}, &block)
34
38
  do_request('POST', api_url, http_options, &block)
35
39
  end
@@ -53,7 +53,7 @@ module Gitea
53
53
  @http.patch("/repos/#{owner}/#{repo}/branch_protections/#{name}", opt)
54
54
  end
55
55
 
56
- def get_repos_branch_tag_count_by_owner_repo(owenr, repo, opt={})
56
+ def get_repos_branch_tag_count_by_owner_repo(owner, repo, opt={})
57
57
  @http.get("/repos/#{owner}/#{repo}/branch_tag_count", opt)
58
58
  end
59
59
 
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.6.1"
4
+ VERSION = "0.7.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.6.1
4
+ version: 0.7.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-22 00:00:00.000000000 Z
11
+ date: 2022-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client