chimera_http_client 1.3.0 → 1.3.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: dc63d4372cf53748047f173b87859a5efe7a2db057a1f41be8ba2f265255b28a
4
- data.tar.gz: 1ff54acfcac10f4ffb85428d8c91b47d8d71da878d047a0937b02922f5f6ea05
3
+ metadata.gz: 0b68f9f3f76d137690c9f3fd9345b835efadee680ba8cd6b964095c554f9cb96
4
+ data.tar.gz: 7a86650670f451558d407c04a9870f522cf6805413f256dfc453622c9c55263f
5
5
  SHA512:
6
- metadata.gz: cb24d335a115edfc0ba2408b77372157bcf9e54d10a4e817d603f9923a1dc51151d342c74b181560d1f681a006f7be4e67a16d0e4c4ae5c08b3a6f164776f8b1
7
- data.tar.gz: 85fa644f64fcb9ffbef08f18d5e03e1cb3d3633020723b1db5984eb8c51c87534cd0d9c4c8d6ec7005795dd1d035f38e583c3c22cc4718c95c5e9a4164b5fbaf
6
+ metadata.gz: 8a12bdf778c260bdfe95f529e7d94dbecf6b0d041f21da25a5f3503c185db8aaaa041d27d01b98767ddb98466e684c2fc266cab3e0bbaf8cb61b7353a8f37071
7
+ data.tar.gz: 7da871e77ae5d29d207c5e6c4d95f3cdc831a15202cf7bf0a3f73ee44c8610ba1760189b542f86ff161b963640d448ac7a28fbeaa04845a1c8f462a28f13245c
@@ -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/IndentFirstHashElement:
11
+ Layout/FirstHashElementIndentation:
15
12
  EnforcedStyle: consistent
16
13
 
17
- Metrics/AbcSize:
18
- Max: 35
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
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
33
- # URISchemes: http, https
34
- Metrics/LineLength:
17
+ Layout/LineLength:
35
18
  Max: 125
36
19
 
37
- # Offense count: 5
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:
@@ -1 +1 @@
1
- 2.6.3
1
+ 2.7.2
@@ -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.
@@ -17,7 +17,7 @@ module ChimeraHttpClient
17
17
  monitor: @monitor,
18
18
  }
19
19
 
20
- @request ||= Request.new(options)
20
+ Request.new(options)
21
21
  end
22
22
 
23
23
  private
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ChimeraHttpClient
2
- VERSION = "1.3.0".freeze
2
+ VERSION = "1.3.1".freeze
3
3
  end
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.0
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: 2019-10-31 00:00:00.000000000 Z
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.0.4
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