f_http_client 0.1.0 → 0.2.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: fa009fca4cb5465b7a9c07e71037e15c5dffbbe97804e1b6a7ee2888cbfa771c
4
- data.tar.gz: '058b8ef192570f144a44c4dac7e7f95aa401923f4176522944421b507b93e7e0'
3
+ metadata.gz: 043b1047145e6431224027e68000eb4397224d1cd36da84766fa272aa9b472a2
4
+ data.tar.gz: 660c261f27d5654909d338729ed8a8ad5166ec1038c978f05b3ba2ef6c0c0242
5
5
  SHA512:
6
- metadata.gz: a80d429fdc6fc7134ffeee8d6d627a87bad579dc4b29c38113e1a927e503cca3174de5d45829a0a39eb535c3c35b1193a2c3971bdad02acbfdc1cf04e305f1bc
7
- data.tar.gz: e1f5e810e2fb1003fa8d503b7703699c75e2c1dc139062306b6eb1ade158cbdc1fe2273ea0cf76d772858a7cc803d61dfa2f3f4d29622d5103b5a7476f24123b
6
+ metadata.gz: 46118f4a70d1715d4c0fe3c86243f8ca80ccf2248c4c257b4b7ba69b3b3d089d6481e92299dcbf84f9675aacd5f8729a4df68037b156213dbcf4f32fc0cb35f8
7
+ data.tar.gz: 146d096e199781aee21e17054994c93d9961886a454bc4bdbcabb45f9b0a4a12060c5d3149d991ff4b54ca1c96ee73320bcbd35d81114d91635c61ed690a1bba
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2023-09-27
4
+
5
+ - Add rescue to SocketError exception. #12
6
+
7
+ ## [0.2.0] - 2023-05-22
8
+
9
+ - Add FService as runtime dependency.
10
+
3
11
  ## [0.1.0] - 2023-02-13
4
12
 
5
13
  - Initial release
data/Gemfile CHANGED
@@ -6,7 +6,6 @@ source 'https://rubygems.org'
6
6
  gemspec
7
7
 
8
8
  group :development do
9
- gem 'f_service', github: 'Fretadao/f_service', branch: 'master'
10
9
  gem 'rubocop'
11
10
  gem 'rubocop-performance'
12
11
  gem 'rubocop-rspec'
data/Gemfile.lock CHANGED
@@ -1,24 +1,18 @@
1
- GIT
2
- remote: https://github.com/Fretadao/f_service.git
3
- revision: 22d3e1c8bd4aa83b14f34b1af19aa4cd22b8ad8b
4
- branch: master
5
- specs:
6
- f_service (0.2.0)
7
-
8
1
  PATH
9
2
  remote: .
10
3
  specs:
11
- f_http_client (0.1.0)
4
+ f_http_client (0.2.1)
12
5
  activesupport
13
6
  addressable
14
7
  dry-configurable
15
8
  dry-initializer
9
+ f_service (>= 0.3.0)
16
10
  httparty
17
11
 
18
12
  GEM
19
13
  remote: https://rubygems.org/
20
14
  specs:
21
- activesupport (7.0.4.3)
15
+ activesupport (7.0.8)
22
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
17
  i18n (>= 1.6, < 2)
24
18
  minitest (>= 5.1)
@@ -32,23 +26,24 @@ GEM
32
26
  rexml
33
27
  diff-lcs (1.5.0)
34
28
  docile (1.4.0)
35
- dry-configurable (1.0.1)
29
+ dry-configurable (1.1.0)
36
30
  dry-core (~> 1.0, < 2)
37
31
  zeitwerk (~> 2.6)
38
- dry-core (1.0.0)
32
+ dry-core (1.0.1)
39
33
  concurrent-ruby (~> 1.0)
40
34
  zeitwerk (~> 2.6)
41
35
  dry-initializer (3.1.1)
36
+ f_service (0.3.0)
42
37
  hashdiff (1.0.1)
43
38
  httparty (0.21.0)
44
39
  mini_mime (>= 1.0.0)
45
40
  multi_xml (>= 0.5.2)
46
- i18n (1.12.0)
41
+ i18n (1.14.1)
47
42
  concurrent-ruby (~> 1.0)
48
43
  json (2.6.3)
49
44
  method_source (1.0.0)
50
- mini_mime (1.1.2)
51
- minitest (5.18.0)
45
+ mini_mime (1.1.5)
46
+ minitest (5.20.0)
52
47
  multi_xml (0.6.0)
53
48
  parallel (1.22.1)
54
49
  parser (3.2.1.0)
@@ -110,14 +105,13 @@ GEM
110
105
  addressable (>= 2.8.0)
111
106
  crack (>= 0.3.2)
112
107
  hashdiff (>= 0.4.0, < 2.0.0)
113
- zeitwerk (2.6.7)
108
+ zeitwerk (2.6.12)
114
109
 
115
110
  PLATFORMS
116
111
  x86_64-linux
117
112
 
118
113
  DEPENDENCIES
119
114
  f_http_client!
120
- f_service!
121
115
  pry
122
116
  pry-nav
123
117
  rake (~> 13.0)
@@ -29,6 +29,8 @@ module FHTTPClient
29
29
  case error.class.to_s
30
30
  when 'Errno::ECONNREFUSED'
31
31
  :connection_refused
32
+ when 'SocketError'
33
+ :connection_error
32
34
  when /timeout/i
33
35
  :timeout
34
36
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FHTTPClient
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: f_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fretadao Tech Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-08 00:00:00.000000000 Z
11
+ date: 2023-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: f_service
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: 0.3.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: 0.3.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: httparty
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +140,7 @@ metadata:
126
140
  homepage_uri: https://github.com/Fretadao/f_http_client
127
141
  source_code_uri: https://github.com/Fretadao/f_http_client
128
142
  changelog_uri: https://github.com/Fretadao/f_http_client/blob/master/CHANGELOG.md
129
- rubygems_mfa_required: 'true'
143
+ rubygems_mfa_required: 'false'
130
144
  post_install_message:
131
145
  rdoc_options: []
132
146
  require_paths:
@@ -142,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
142
156
  - !ruby/object:Gem::Version
143
157
  version: '0'
144
158
  requirements: []
145
- rubygems_version: 3.3.5
159
+ rubygems_version: 3.2.32
146
160
  signing_key:
147
161
  specification_version: 4
148
162
  summary: Gem to provade a base for an HTTP client using FService architecture