gitea-client 0.6.2 → 0.8.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: ae418c26d24a55d1a2894fde3b209eb2480df36a60406985c9f9deacbd09bbd1
4
- data.tar.gz: 8f3417141703a80a14d9e704cd7c7483f9e3c6deeb1cfee6fe8c73644991bee9
3
+ metadata.gz: a01f550ea5386da4487deb12c7cba34036584176cec9112187ceb0b7086bd4d0
4
+ data.tar.gz: e121287067cdd78713d88bc40f30abc892667708dad5a988c055f98734f9152a
5
5
  SHA512:
6
- metadata.gz: 46e99dde1fdf46cb980be9d2e06892237fa859494ee6a09d2f72900fb72fb8b4049027103df43f77cfabc3aa554d6d51a8511167f3b8cddabf9f7bad50693acc
7
- data.tar.gz: 5edeb5c5242313a2a0d4702986b8d6fda118bc9fc4231272e269515daa498fd264a4fd1f877bb3d8126ba4fe7a9cfe39bca1cd6fb5edb96b8ff6725425974738
6
+ metadata.gz: 340bee8032af5963dbef9a35972d64e2e6f29e1d7c4872081aa910e0fb4759b8cfda783b6fbcf8074164c76376157273792666be031e89e35870ea73a5052a0c
7
+ data.tar.gz: 751a80f76fc107ab635ffe91eb7773d92a20d935da0aaa468ffc88fc46698c599eec0d309ee3515d0c831ba0eef3fbb1a54786b236283e20093d498c8e5cf4fe
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitea-client (0.6.2)
4
+ gitea-client (0.8.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
@@ -100,7 +104,7 @@ module Gitea
100
104
  response.return!
101
105
  end
102
106
 
103
- JSON.parse(response)
107
+ JSON.parse(response) rescue {}
104
108
  end
105
109
 
106
110
  def get_user_agent
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.2"
4
+ VERSION = "0.8.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.2
4
+ version: 0.8.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