chimera_http_client 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -32
- data/.ruby-version +1 -1
- data/README.markdown +2 -0
- data/lib/chimera_http_client/connection.rb +1 -1
- data/lib/chimera_http_client/request.rb +1 -3
- data/lib/chimera_http_client/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0b68f9f3f76d137690c9f3fd9345b835efadee680ba8cd6b964095c554f9cb96
|
|
4
|
+
data.tar.gz: 7a86650670f451558d407c04a9870f522cf6805413f256dfc453622c9c55263f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8a12bdf778c260bdfe95f529e7d94dbecf6b0d041f21da25a5f3503c185db8aaaa041d27d01b98767ddb98466e684c2fc266cab3e0bbaf8cb61b7353a8f37071
|
|
7
|
+
data.tar.gz: 7da871e77ae5d29d207c5e6c4d95f3cdc831a15202cf7bf0a3f73ee44c8610ba1760189b542f86ff161b963640d448ac7a28fbeaa04845a1c8f462a28f13245c
|
data/.rubocop.yml
CHANGED
|
@@ -5,46 +5,19 @@ AllCops:
|
|
|
5
5
|
- vendor/**/*
|
|
6
6
|
- config.ru
|
|
7
7
|
|
|
8
|
-
Layout/AlignHash:
|
|
9
|
-
Enabled: false
|
|
10
|
-
|
|
11
8
|
# Cop supports --auto-correct.
|
|
12
9
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
13
10
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
|
14
|
-
Layout/
|
|
11
|
+
Layout/FirstHashElementIndentation:
|
|
15
12
|
EnforcedStyle: consistent
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Metrics/BlockLength:
|
|
21
|
-
Exclude:
|
|
22
|
-
- chimera_http_client.gemspec
|
|
23
|
-
- spec/**/*
|
|
24
|
-
|
|
25
|
-
# Configuration parameters: CountComments.
|
|
26
|
-
Metrics/ClassLength:
|
|
27
|
-
Max: 150
|
|
28
|
-
|
|
29
|
-
Metrics/CyclomaticComplexity:
|
|
30
|
-
Max: 15
|
|
14
|
+
Layout/HashAlignment:
|
|
15
|
+
Enabled: false
|
|
31
16
|
|
|
32
|
-
|
|
33
|
-
# URISchemes: http, https
|
|
34
|
-
Metrics/LineLength:
|
|
17
|
+
Layout/LineLength:
|
|
35
18
|
Max: 125
|
|
36
19
|
|
|
37
|
-
|
|
38
|
-
# Configuration parameters: CountComments.
|
|
39
|
-
Metrics/MethodLength:
|
|
40
|
-
Max: 32
|
|
41
|
-
|
|
42
|
-
Metrics/ParameterLists:
|
|
43
|
-
Max: 7
|
|
44
|
-
|
|
45
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
46
|
-
# SupportedStyles: braces, no_braces, context_dependent
|
|
47
|
-
Style/BracesAroundHashParameters:
|
|
20
|
+
Metrics:
|
|
48
21
|
Enabled: false
|
|
49
22
|
|
|
50
23
|
Style/CommentedKeyword:
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.7.2
|
data/README.markdown
CHANGED
|
@@ -23,6 +23,8 @@ The only other runtime dependency is Ruby's latest code loader [**zeitwerk**](ht
|
|
|
23
23
|
| = 1.0 | >= 2.4 |
|
|
24
24
|
| <= 0.5 | >= 2.1 |
|
|
25
25
|
|
|
26
|
+
The test suite of v1.3 and newer also passes on **JRuby** and on **TruffleRuby**.
|
|
27
|
+
|
|
26
28
|
### ENV variables
|
|
27
29
|
|
|
28
30
|
Setting the environment variable `ENV['CHIMERA_HTTP_CLIENT_LOG_REQUESTS']` to `true` (or `'true'`) will provide more detailed error messages for logging and also add additional information to the Error JSON. It is recommended to use this only in development environments.
|
|
@@ -16,7 +16,6 @@ module ChimeraHttpClient
|
|
|
16
16
|
@result
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
-
# rubocop:disable Metrics/MethodLength
|
|
20
19
|
def create(url:, method:, body: nil, options: {}, headers: {})
|
|
21
20
|
request_params = {
|
|
22
21
|
method: method,
|
|
@@ -73,7 +72,6 @@ module ChimeraHttpClient
|
|
|
73
72
|
|
|
74
73
|
self
|
|
75
74
|
end
|
|
76
|
-
# rubocop:enable Metrics/MethodLength
|
|
77
75
|
|
|
78
76
|
private
|
|
79
77
|
|
|
@@ -90,7 +88,7 @@ module ChimeraHttpClient
|
|
|
90
88
|
when 301, 302, 303, 307
|
|
91
89
|
RedirectionError.new(response, @options) # TODO: throw error conditionally
|
|
92
90
|
when 200..399
|
|
93
|
-
nil
|
|
91
|
+
nil # TODO: decide to either raise error or return a Response
|
|
94
92
|
when 400
|
|
95
93
|
BadRequestError.new(response, @options)
|
|
96
94
|
when 401
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chimera_http_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andreas Finger
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -256,7 +256,7 @@ homepage: https://github.com/mediafinger/chimera_http_client
|
|
|
256
256
|
licenses:
|
|
257
257
|
- MIT
|
|
258
258
|
metadata: {}
|
|
259
|
-
post_install_message:
|
|
259
|
+
post_install_message:
|
|
260
260
|
rdoc_options: []
|
|
261
261
|
require_paths:
|
|
262
262
|
- lib
|
|
@@ -271,8 +271,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
271
271
|
- !ruby/object:Gem::Version
|
|
272
272
|
version: '0'
|
|
273
273
|
requirements: []
|
|
274
|
-
rubygems_version: 3.
|
|
275
|
-
signing_key:
|
|
274
|
+
rubygems_version: 3.1.4
|
|
275
|
+
signing_key:
|
|
276
276
|
specification_version: 4
|
|
277
277
|
summary: General http client functionality to quickly connect to JSON REST API endpoints
|
|
278
278
|
and any others
|