gitea-client 1.4.6 → 1.5.6

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: 0c9bf960c8397bbfa3d3f653e4eb3ec561cee1d855907a1185986af4557d3aef
4
- data.tar.gz: b9783266c48dc655f215d72449032392adc56631e76e1d338a709198628a75e0
3
+ metadata.gz: a674aabbd18dae2ecfac091da5f85e71a820a7bfe08987c0c47b2eab6c55fc07
4
+ data.tar.gz: 70116ef3b787fa720538f9f1d9f9c29deead91470645fe69683694611bc1e331
5
5
  SHA512:
6
- metadata.gz: c1945dfcb48db6b8c4b491221aa24e7747d8bd4a6ab244cec0d6179a033f59168bdb20f77d2b67466209fbff63162ea7fdd70d4c9ca4175512681c07918f55d3
7
- data.tar.gz: b7cdd6f65aef90f3a781068ce63b95ec1f14a1d6871f1ad67a531c21845e77b577711e3146e9187368b3111d004cd7885e79a9a14cb52eaadc3f81b26fea1a3e
6
+ metadata.gz: 40d870e3a1efccc284fcd139682c3f6a3617cc1623cd4b79ab42639f2e95eba3a01861e231f34eaa3e7cf232976af246ed52ec32de732cad9417cf52bf150592
7
+ data.tar.gz: e53fe55343aaa55f66f0271720352ad222cea9e8628586701f288e60772fc7a3014b5b124b9a82d3f292aa4e276de42c812acca4fdeb169eb3eb0e3ae81f9944
data/README.md CHANGED
@@ -2,14 +2,12 @@
2
2
 
3
3
  Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gitea`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
5
  ## Installation
8
6
 
9
7
  Add this line to your application's Gemfile:
10
8
 
11
9
  ```ruby
12
- gem 'gitea-client'
10
+ gem 'gitea-client', '~> 1.4.0'
13
11
  ```
14
12
 
15
13
  And then execute:
@@ -19,8 +17,9 @@ And then execute:
19
17
  Or install it yourself as:
20
18
 
21
19
  $ gem install gitea-client
20
+
22
21
 
23
- ## Usage
22
+ ## Usage Example
24
23
 
25
24
  ```ruby
26
25
  require 'gitea-client'
@@ -31,6 +30,7 @@ client.get_users_search({query: {q: 'viletyy'}})
31
30
 
32
31
  ```
33
32
 
33
+
34
34
  ## Development
35
35
 
36
36
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -7,6 +7,7 @@ module Gitea
7
7
  def initialize(response)
8
8
  @http_code = response.code
9
9
  @attrs = JSON.parse(response.body) rescue {}
10
+ @message = @attrs['message']
10
11
  end
11
12
 
12
13
  def to_s
data/lib/gitea/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitea
4
- VERSION = "1.4.6"
4
+ VERSION = "1.5.6"
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: 1.4.6
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - viletyy
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-03-04 00:00:00.000000000 Z
11
+ date: 2024-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.2.3
95
+ rubygems_version: 3.4.10
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Gitea API 库