ezclient 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -3
- data/.rubocop.yml +4 -1
- data/Gemfile +11 -0
- data/Gemfile.lock +94 -70
- data/README.md +3 -0
- data/bin/rspec +1 -1
- data/ezclient.gemspec +1 -12
- data/lib/ezclient/client.rb +1 -0
- data/lib/ezclient/request.rb +6 -2
- data/lib/ezclient/response.rb +21 -2
- data/lib/ezclient/version.rb +1 -1
- metadata +4 -146
- data/gemfiles/http3.gemfile +0 -6
- data/gemfiles/http3.gemfile.lock +0 -115
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa2cb8306bd3eef023200502bf45328c0c449d3ee5c462587f6654ecdda6ed46
|
4
|
+
data.tar.gz: 122807a192e55ce43ba40f6e639d5ef37c290e53cfd04bc36fa1cd36f51e5e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28f28f6623afc9200fdc949452e88d27157ac7ee8512329cfff5b2af078dc066cac27b8d8a509fd99834776493c9625268bb523f4f30d327b2ed5adbc5754c93
|
7
|
+
data.tar.gz: c8b58ff10962b02ad3eb7948c5d912acff4f2c7c2bfdc0cd90fc10efbeb01428b8fcae963010245168cf1712306f52e11984de3ee0ac706b62c2d4cfb2e44143
|
data/.github/workflows/ci.yml
CHANGED
@@ -12,12 +12,12 @@ jobs:
|
|
12
12
|
strategy:
|
13
13
|
fail-fast: false
|
14
14
|
matrix:
|
15
|
-
ruby: ["
|
15
|
+
ruby: ["3.0", "3.1", "3.2", "3.3"]
|
16
16
|
|
17
17
|
name: ${{ matrix.ruby }}
|
18
18
|
|
19
19
|
steps:
|
20
|
-
- uses: actions/checkout@
|
20
|
+
- uses: actions/checkout@v4
|
21
21
|
|
22
22
|
- uses: ruby/setup-ruby@v1
|
23
23
|
with:
|
@@ -26,6 +26,6 @@ jobs:
|
|
26
26
|
|
27
27
|
- run: bundle exec rake
|
28
28
|
|
29
|
-
- uses: coverallsapp/github-action@
|
29
|
+
- uses: coverallsapp/github-action@v2
|
30
30
|
with:
|
31
31
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
data/.rubocop.yml
CHANGED
@@ -5,7 +5,7 @@ inherit_gem:
|
|
5
5
|
|
6
6
|
AllCops:
|
7
7
|
DisplayCopNames: true
|
8
|
-
TargetRubyVersion:
|
8
|
+
TargetRubyVersion: 3.0
|
9
9
|
Include:
|
10
10
|
- bin/console
|
11
11
|
- Gemfile
|
@@ -19,3 +19,6 @@ AllCops:
|
|
19
19
|
|
20
20
|
RSpec/Rails/HaveHttpStatus:
|
21
21
|
Enabled: false
|
22
|
+
|
23
|
+
RSpec/SpecFilePathFormat:
|
24
|
+
Enabled: false
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,137 +1,161 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ezclient (1.
|
4
|
+
ezclient (1.7.0)
|
5
5
|
http (>= 4)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (7.
|
10
|
+
activesupport (7.1.3.4)
|
11
|
+
base64
|
12
|
+
bigdecimal
|
11
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
|
+
connection_pool (>= 2.2.5)
|
15
|
+
drb
|
12
16
|
i18n (>= 1.6, < 2)
|
13
17
|
minitest (>= 5.1)
|
18
|
+
mutex_m
|
14
19
|
tzinfo (~> 2.0)
|
15
|
-
addressable (2.8.
|
16
|
-
public_suffix (>= 2.0.2, <
|
20
|
+
addressable (2.8.7)
|
21
|
+
public_suffix (>= 2.0.2, < 7.0)
|
17
22
|
ast (2.4.2)
|
23
|
+
base64 (0.2.0)
|
24
|
+
bigdecimal (3.1.8)
|
18
25
|
coderay (1.1.3)
|
19
|
-
concurrent-ruby (1.
|
26
|
+
concurrent-ruby (1.3.3)
|
27
|
+
connection_pool (2.4.1)
|
20
28
|
coveralls (0.7.2)
|
21
29
|
multi_json (~> 1.3)
|
22
30
|
rest-client (= 1.6.7)
|
23
31
|
simplecov (>= 0.7)
|
24
32
|
term-ansicolor (= 1.2.2)
|
25
33
|
thor (= 0.18.1)
|
26
|
-
crack (0.
|
34
|
+
crack (1.0.0)
|
35
|
+
bigdecimal
|
27
36
|
rexml
|
28
|
-
diff-lcs (1.5.
|
29
|
-
docile (1.4.
|
30
|
-
domain_name (0.
|
31
|
-
|
32
|
-
ffi (1.
|
33
|
-
ffi-compiler (1.
|
34
|
-
ffi (>= 1.
|
37
|
+
diff-lcs (1.5.1)
|
38
|
+
docile (1.4.1)
|
39
|
+
domain_name (0.6.20240107)
|
40
|
+
drb (2.2.1)
|
41
|
+
ffi (1.17.0)
|
42
|
+
ffi-compiler (1.3.2)
|
43
|
+
ffi (>= 1.15.5)
|
35
44
|
rake
|
36
|
-
hashdiff (1.0
|
37
|
-
http (5.
|
45
|
+
hashdiff (1.1.0)
|
46
|
+
http (5.2.0)
|
38
47
|
addressable (~> 2.8)
|
48
|
+
base64 (~> 0.1)
|
39
49
|
http-cookie (~> 1.0)
|
40
50
|
http-form_data (~> 2.2)
|
41
|
-
llhttp-ffi (~> 0.
|
42
|
-
http-cookie (1.0.
|
51
|
+
llhttp-ffi (~> 0.5.0)
|
52
|
+
http-cookie (1.0.6)
|
43
53
|
domain_name (~> 0.5)
|
44
54
|
http-form_data (2.3.0)
|
45
|
-
i18n (1.
|
55
|
+
i18n (1.14.5)
|
46
56
|
concurrent-ruby (~> 1.0)
|
47
|
-
json (2.
|
48
|
-
|
57
|
+
json (2.7.2)
|
58
|
+
language_server-protocol (3.17.0.3)
|
59
|
+
llhttp-ffi (0.5.0)
|
49
60
|
ffi-compiler (~> 1.0)
|
50
61
|
rake (~> 13.0)
|
51
|
-
method_source (1.
|
52
|
-
mime-types (3.
|
62
|
+
method_source (1.1.0)
|
63
|
+
mime-types (3.5.2)
|
53
64
|
mime-types-data (~> 3.2015)
|
54
|
-
mime-types-data (3.
|
55
|
-
minitest (5.
|
65
|
+
mime-types-data (3.2024.0702)
|
66
|
+
minitest (5.24.1)
|
56
67
|
multi_json (1.15.0)
|
57
|
-
|
58
|
-
|
68
|
+
mutex_m (0.2.0)
|
69
|
+
parallel (1.25.1)
|
70
|
+
parser (3.3.4.0)
|
59
71
|
ast (~> 2.4.1)
|
60
|
-
|
72
|
+
racc
|
73
|
+
pry (0.14.2)
|
61
74
|
coderay (~> 1.1)
|
62
75
|
method_source (~> 1.0)
|
63
|
-
public_suffix (
|
64
|
-
|
76
|
+
public_suffix (6.0.1)
|
77
|
+
racc (1.8.1)
|
78
|
+
rack (3.1.7)
|
65
79
|
rainbow (3.1.1)
|
66
|
-
rake (13.
|
67
|
-
regexp_parser (2.
|
80
|
+
rake (13.2.1)
|
81
|
+
regexp_parser (2.9.2)
|
68
82
|
rest-client (1.6.7)
|
69
83
|
mime-types (>= 1.16)
|
70
|
-
rexml (3.2
|
71
|
-
|
72
|
-
|
73
|
-
rspec-
|
74
|
-
rspec-
|
75
|
-
|
76
|
-
|
77
|
-
|
84
|
+
rexml (3.3.2)
|
85
|
+
strscan
|
86
|
+
rspec (3.13.0)
|
87
|
+
rspec-core (~> 3.13.0)
|
88
|
+
rspec-expectations (~> 3.13.0)
|
89
|
+
rspec-mocks (~> 3.13.0)
|
90
|
+
rspec-core (3.13.0)
|
91
|
+
rspec-support (~> 3.13.0)
|
92
|
+
rspec-expectations (3.13.1)
|
78
93
|
diff-lcs (>= 1.2.0, < 2.0)
|
79
|
-
rspec-support (~> 3.
|
80
|
-
rspec-mocks (3.
|
94
|
+
rspec-support (~> 3.13.0)
|
95
|
+
rspec-mocks (3.13.1)
|
81
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
82
|
-
rspec-support (~> 3.
|
83
|
-
rspec-support (3.
|
84
|
-
rubocop (1.
|
97
|
+
rspec-support (~> 3.13.0)
|
98
|
+
rspec-support (3.13.1)
|
99
|
+
rubocop (1.63.5)
|
85
100
|
json (~> 2.3)
|
101
|
+
language_server-protocol (>= 3.17.0)
|
86
102
|
parallel (~> 1.10)
|
87
|
-
parser (>= 3.
|
103
|
+
parser (>= 3.3.0.2)
|
88
104
|
rainbow (>= 2.2.2, < 4.0)
|
89
105
|
regexp_parser (>= 1.8, < 3.0)
|
90
106
|
rexml (>= 3.2.5, < 4.0)
|
91
|
-
rubocop-ast (>= 1.
|
107
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
92
108
|
ruby-progressbar (~> 1.7)
|
93
|
-
unicode-display_width (>=
|
94
|
-
rubocop-ast (1.
|
95
|
-
parser (>= 3.
|
96
|
-
rubocop-
|
97
|
-
rubocop (~> 1.
|
98
|
-
|
99
|
-
rubocop
|
109
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
110
|
+
rubocop-ast (1.31.3)
|
111
|
+
parser (>= 3.3.1.0)
|
112
|
+
rubocop-capybara (2.21.0)
|
113
|
+
rubocop (~> 1.41)
|
114
|
+
rubocop-config-umbrellio (1.63.0.93)
|
115
|
+
rubocop (~> 1.63.0)
|
116
|
+
rubocop-performance (~> 1.21.0)
|
117
|
+
rubocop-rails (~> 2.24.0)
|
100
118
|
rubocop-rake (~> 0.6.0)
|
101
|
-
rubocop-rspec (~> 2.
|
119
|
+
rubocop-rspec (~> 2.29.0)
|
102
120
|
rubocop-sequel (~> 0.3.3)
|
103
|
-
rubocop-
|
104
|
-
rubocop (
|
105
|
-
|
106
|
-
|
121
|
+
rubocop-factory_bot (2.26.1)
|
122
|
+
rubocop (~> 1.61)
|
123
|
+
rubocop-performance (1.21.1)
|
124
|
+
rubocop (>= 1.48.1, < 2.0)
|
125
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
126
|
+
rubocop-rails (2.24.1)
|
107
127
|
activesupport (>= 4.2.0)
|
108
128
|
rack (>= 1.1)
|
109
|
-
rubocop (>= 1.
|
129
|
+
rubocop (>= 1.33.0, < 2.0)
|
130
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
110
131
|
rubocop-rake (0.6.0)
|
111
132
|
rubocop (~> 1.0)
|
112
|
-
rubocop-rspec (2.
|
113
|
-
rubocop (~> 1.
|
133
|
+
rubocop-rspec (2.29.2)
|
134
|
+
rubocop (~> 1.40)
|
135
|
+
rubocop-capybara (~> 2.17)
|
136
|
+
rubocop-factory_bot (~> 2.22)
|
137
|
+
rubocop-rspec_rails (~> 2.28)
|
138
|
+
rubocop-rspec_rails (2.29.1)
|
139
|
+
rubocop (~> 1.61)
|
114
140
|
rubocop-sequel (0.3.4)
|
115
141
|
rubocop (~> 1.0)
|
116
|
-
ruby-progressbar (1.
|
117
|
-
simplecov (0.
|
142
|
+
ruby-progressbar (1.13.0)
|
143
|
+
simplecov (0.22.0)
|
118
144
|
docile (~> 1.1)
|
119
145
|
simplecov-html (~> 0.11)
|
120
146
|
simplecov_json_formatter (~> 0.1)
|
121
147
|
simplecov-html (0.12.3)
|
122
148
|
simplecov-lcov (0.8.0)
|
123
149
|
simplecov_json_formatter (0.1.4)
|
150
|
+
strscan (3.1.0)
|
124
151
|
term-ansicolor (1.2.2)
|
125
152
|
tins (~> 0.8)
|
126
153
|
thor (0.18.1)
|
127
154
|
tins (0.13.2)
|
128
|
-
tzinfo (2.0.
|
155
|
+
tzinfo (2.0.6)
|
129
156
|
concurrent-ruby (~> 1.0)
|
130
|
-
|
131
|
-
|
132
|
-
unf_ext (0.0.8.2)
|
133
|
-
unicode-display_width (2.3.0)
|
134
|
-
webmock (3.18.1)
|
157
|
+
unicode-display_width (2.5.0)
|
158
|
+
webmock (3.23.1)
|
135
159
|
addressable (>= 2.8.0)
|
136
160
|
crack (>= 0.3.2)
|
137
161
|
hashdiff (>= 0.4.0, < 2.0.0)
|
@@ -153,4 +177,4 @@ DEPENDENCIES
|
|
153
177
|
webmock
|
154
178
|
|
155
179
|
BUNDLED WITH
|
156
|
-
2.
|
180
|
+
2.5.16
|
data/README.md
CHANGED
@@ -46,6 +46,7 @@ Valid client options are:
|
|
46
46
|
- `ssl_context` – ssl context for requests (an `OpenSSL::SSL::SSLContext` instance)
|
47
47
|
- `timeout` – timeout for requests in seconds or hash like `{ read: 5, write: 5, connect: 1 }`
|
48
48
|
- `follow` – enable following redirects (`true` or hash with options – e.g. `{ max_hops: 1, strict: false}`)
|
49
|
+
- `error_wrapper` – callback called on request exception, makes it possible to handle any error, default behavior: `raise error`
|
49
50
|
|
50
51
|
All these options are passed to each request made by this client but can be overriden on per-request basis.
|
51
52
|
|
@@ -91,6 +92,7 @@ You can provide `on_complete`, `on_error` and `on_retry` callbacks like this:
|
|
91
92
|
on_complete = -> (request, response, metadata) { ... }
|
92
93
|
on_error = -> (request, error, metadata) { ... }
|
93
94
|
on_retry = -> (request, error, metadata) { ... }
|
95
|
+
error_wrapper = -> (request, error, metadata) { raise error }
|
94
96
|
|
95
97
|
client = EzClient.new(
|
96
98
|
on_complete: on_complete,
|
@@ -98,6 +100,7 @@ client = EzClient.new(
|
|
98
100
|
on_retry: on_retry,
|
99
101
|
retry_exceptions: [StandardError],
|
100
102
|
max_retries: 2,
|
103
|
+
error_wrapper: error_wrapper
|
101
104
|
)
|
102
105
|
|
103
106
|
response = client.perform!(:get, url, metadata: :hello)
|
data/bin/rspec
CHANGED
@@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
|
|
15
15
|
bundle_binstub = File.expand_path("bundle", __dir__)
|
16
16
|
|
17
17
|
if File.file?(bundle_binstub)
|
18
|
-
if
|
18
|
+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
|
19
19
|
load(bundle_binstub)
|
20
20
|
else
|
21
21
|
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
data/ezclient.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
require "ezclient/version"
|
6
6
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
|
-
spec.required_ruby_version = ">=
|
8
|
+
spec.required_ruby_version = ">= 3.0"
|
9
9
|
|
10
10
|
spec.name = "ezclient"
|
11
11
|
spec.version = EzClient::VERSION
|
@@ -20,15 +20,4 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ["lib"]
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "http", ">= 4"
|
23
|
-
|
24
|
-
spec.add_development_dependency "bundler"
|
25
|
-
spec.add_development_dependency "coveralls"
|
26
|
-
spec.add_development_dependency "pry"
|
27
|
-
spec.add_development_dependency "rake"
|
28
|
-
spec.add_development_dependency "rspec"
|
29
|
-
spec.add_development_dependency "rubocop-config-umbrellio"
|
30
|
-
spec.add_development_dependency "rubocop-rake"
|
31
|
-
spec.add_development_dependency "simplecov"
|
32
|
-
spec.add_development_dependency "simplecov-lcov"
|
33
|
-
spec.add_development_dependency "webmock"
|
34
23
|
end
|
data/lib/ezclient/client.rb
CHANGED
data/lib/ezclient/request.rb
CHANGED
@@ -23,12 +23,12 @@ class EzClient::Request
|
|
23
23
|
def perform
|
24
24
|
http_response = perform_request
|
25
25
|
|
26
|
-
EzClient::Response.new(http_response).tap do |response|
|
26
|
+
EzClient::Response.new(http_response, http_request).tap do |response|
|
27
27
|
on_complete.call(self, response, options[:metadata])
|
28
28
|
end
|
29
29
|
rescue => error
|
30
30
|
on_error.call(self, error, options[:metadata])
|
31
|
-
|
31
|
+
error_wrapper.call(self, error, options[:metadata])
|
32
32
|
end
|
33
33
|
|
34
34
|
def perform!
|
@@ -174,6 +174,10 @@ class EzClient::Request
|
|
174
174
|
options[:follow].is_a?(Hash) ? options[:follow] : {}
|
175
175
|
end
|
176
176
|
|
177
|
+
def error_wrapper
|
178
|
+
options[:error_wrapper] || proc { |_request, error, _metadata| raise error }
|
179
|
+
end
|
180
|
+
|
177
181
|
def prepare_headers(headers)
|
178
182
|
headers = HTTP::Headers.coerce(headers)
|
179
183
|
headers[:user_agent] ||= "ezclient/#{EzClient::VERSION}"
|
data/lib/ezclient/response.rb
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
class EzClient::Response
|
4
|
-
attr_accessor :http_response, :body
|
4
|
+
attr_accessor :http_response, :body, :http_request
|
5
5
|
|
6
|
-
def initialize(http_response)
|
6
|
+
def initialize(http_response, http_request)
|
7
7
|
self.http_response = http_response
|
8
|
+
self.http_request = http_request
|
8
9
|
self.body = http_response.body.to_s # Make sure we read the body for persistent connection
|
9
10
|
end
|
10
11
|
|
@@ -40,4 +41,22 @@ class EzClient::Response
|
|
40
41
|
def error?
|
41
42
|
client_error? || server_error?
|
42
43
|
end
|
44
|
+
|
45
|
+
def inspect
|
46
|
+
{
|
47
|
+
req: {
|
48
|
+
raw: http_request.inspect,
|
49
|
+
hdrs: http_request.headers,
|
50
|
+
},
|
51
|
+
resp: {
|
52
|
+
raw: http_response.inspect,
|
53
|
+
hdrs: headers,
|
54
|
+
body: body,
|
55
|
+
},
|
56
|
+
}.to_s
|
57
|
+
end
|
58
|
+
|
59
|
+
def to_s
|
60
|
+
inspect
|
61
|
+
end
|
43
62
|
end
|
data/lib/ezclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ezclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuri Smirnov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -24,146 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: coveralls
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: pry
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: rspec
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: rubocop-config-umbrellio
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rubocop-rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: simplecov
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: simplecov-lcov
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: webmock
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
27
|
description:
|
168
28
|
email:
|
169
29
|
- tycooon@yandex.ru
|
@@ -184,8 +44,6 @@ files:
|
|
184
44
|
- bin/console
|
185
45
|
- bin/rspec
|
186
46
|
- ezclient.gemspec
|
187
|
-
- gemfiles/http3.gemfile
|
188
|
-
- gemfiles/http3.gemfile.lock
|
189
47
|
- lib/ezclient.rb
|
190
48
|
- lib/ezclient/check_options.rb
|
191
49
|
- lib/ezclient/client.rb
|
@@ -207,14 +65,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
65
|
requirements:
|
208
66
|
- - ">="
|
209
67
|
- !ruby/object:Gem::Version
|
210
|
-
version: '
|
68
|
+
version: '3.0'
|
211
69
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
70
|
requirements:
|
213
71
|
- - ">="
|
214
72
|
- !ruby/object:Gem::Version
|
215
73
|
version: '0'
|
216
74
|
requirements: []
|
217
|
-
rubygems_version: 3.
|
75
|
+
rubygems_version: 3.5.16
|
218
76
|
signing_key:
|
219
77
|
specification_version: 4
|
220
78
|
summary: An HTTP gem wrapper for easy persistent connections and more.
|
data/gemfiles/http3.gemfile
DELETED
data/gemfiles/http3.gemfile.lock
DELETED
@@ -1,115 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ..
|
3
|
-
specs:
|
4
|
-
ezclient (1.0.0)
|
5
|
-
http (>= 3)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
addressable (2.5.2)
|
11
|
-
public_suffix (>= 2.0.2, < 4.0)
|
12
|
-
ast (2.4.0)
|
13
|
-
coderay (1.1.2)
|
14
|
-
coveralls (0.7.2)
|
15
|
-
multi_json (~> 1.3)
|
16
|
-
rest-client (= 1.6.7)
|
17
|
-
simplecov (>= 0.7)
|
18
|
-
term-ansicolor (= 1.2.2)
|
19
|
-
thor (= 0.18.1)
|
20
|
-
crack (0.4.3)
|
21
|
-
safe_yaml (~> 1.0.0)
|
22
|
-
diff-lcs (1.3)
|
23
|
-
docile (1.3.0)
|
24
|
-
domain_name (0.5.20180417)
|
25
|
-
unf (>= 0.0.5, < 1.0.0)
|
26
|
-
hashdiff (0.3.7)
|
27
|
-
http (3.3.0)
|
28
|
-
addressable (~> 2.3)
|
29
|
-
http-cookie (~> 1.0)
|
30
|
-
http-form_data (~> 2.0)
|
31
|
-
http_parser.rb (~> 0.6.0)
|
32
|
-
http-cookie (1.0.3)
|
33
|
-
domain_name (~> 0.5)
|
34
|
-
http-form_data (2.1.0)
|
35
|
-
http_parser.rb (0.6.0)
|
36
|
-
json (2.1.0)
|
37
|
-
method_source (0.9.0)
|
38
|
-
mime-types (3.1)
|
39
|
-
mime-types-data (~> 3.2015)
|
40
|
-
mime-types-data (3.2016.0521)
|
41
|
-
multi_json (1.13.1)
|
42
|
-
parallel (1.12.1)
|
43
|
-
parser (2.5.1.0)
|
44
|
-
ast (~> 2.4.0)
|
45
|
-
powerpack (0.1.1)
|
46
|
-
pry (0.11.3)
|
47
|
-
coderay (~> 1.1.0)
|
48
|
-
method_source (~> 0.9.0)
|
49
|
-
public_suffix (3.0.2)
|
50
|
-
rainbow (3.0.0)
|
51
|
-
rake (12.3.1)
|
52
|
-
rest-client (1.6.7)
|
53
|
-
mime-types (>= 1.16)
|
54
|
-
rspec (3.7.0)
|
55
|
-
rspec-core (~> 3.7.0)
|
56
|
-
rspec-expectations (~> 3.7.0)
|
57
|
-
rspec-mocks (~> 3.7.0)
|
58
|
-
rspec-core (3.7.1)
|
59
|
-
rspec-support (~> 3.7.0)
|
60
|
-
rspec-expectations (3.7.0)
|
61
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
62
|
-
rspec-support (~> 3.7.0)
|
63
|
-
rspec-mocks (3.7.0)
|
64
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
65
|
-
rspec-support (~> 3.7.0)
|
66
|
-
rspec-support (3.7.1)
|
67
|
-
rubocop (0.52.1)
|
68
|
-
parallel (~> 1.10)
|
69
|
-
parser (>= 2.4.0.2, < 3.0)
|
70
|
-
powerpack (~> 0.1)
|
71
|
-
rainbow (>= 2.2.2, < 4.0)
|
72
|
-
ruby-progressbar (~> 1.7)
|
73
|
-
unicode-display_width (~> 1.0, >= 1.0.1)
|
74
|
-
rubocop-config-umbrellio (0.52.1.0)
|
75
|
-
rubocop (= 0.52.1)
|
76
|
-
rubocop-rspec (= 1.22.1)
|
77
|
-
rubocop-rspec (1.22.1)
|
78
|
-
rubocop (>= 0.52.1)
|
79
|
-
ruby-progressbar (1.9.0)
|
80
|
-
safe_yaml (1.0.4)
|
81
|
-
simplecov (0.16.1)
|
82
|
-
docile (~> 1.1)
|
83
|
-
json (>= 1.8, < 3)
|
84
|
-
simplecov-html (~> 0.10.0)
|
85
|
-
simplecov-html (0.10.2)
|
86
|
-
term-ansicolor (1.2.2)
|
87
|
-
tins (~> 0.8)
|
88
|
-
thor (0.18.1)
|
89
|
-
tins (0.13.2)
|
90
|
-
unf (0.1.4)
|
91
|
-
unf_ext
|
92
|
-
unf_ext (0.0.7.5)
|
93
|
-
unicode-display_width (1.3.2)
|
94
|
-
webmock (3.3.0)
|
95
|
-
addressable (>= 2.3.6)
|
96
|
-
crack (>= 0.3.2)
|
97
|
-
hashdiff
|
98
|
-
|
99
|
-
PLATFORMS
|
100
|
-
ruby
|
101
|
-
|
102
|
-
DEPENDENCIES
|
103
|
-
bundler
|
104
|
-
coveralls
|
105
|
-
ezclient!
|
106
|
-
http (~> 3.0)
|
107
|
-
pry
|
108
|
-
rake
|
109
|
-
rspec
|
110
|
-
rubocop-config-umbrellio
|
111
|
-
simplecov
|
112
|
-
webmock
|
113
|
-
|
114
|
-
BUNDLED WITH
|
115
|
-
1.16.6
|