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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/gitea/api/http.rb +5 -1
- data/lib/gitea/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a01f550ea5386da4487deb12c7cba34036584176cec9112187ceb0b7086bd4d0
|
4
|
+
data.tar.gz: e121287067cdd78713d88bc40f30abc892667708dad5a988c055f98734f9152a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 340bee8032af5963dbef9a35972d64e2e6f29e1d7c4872081aa910e0fb4759b8cfda783b6fbcf8074164c76376157273792666be031e89e35870ea73a5052a0c
|
7
|
+
data.tar.gz: 751a80f76fc107ab635ffe91eb7773d92a20d935da0aaa468ffc88fc46698c599eec0d309ee3515d0c831ba0eef3fbb1a54786b236283e20093d498c8e5cf4fe
|
data/Gemfile.lock
CHANGED
data/lib/gitea/api/http.rb
CHANGED
@@ -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
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.
|
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-
|
11
|
+
date: 2022-06-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|