eac_envs-http 0.3.2 → 0.4.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: 91ef89fd4cd3ad1bb09137c2c314dbeb1014b473a31d6b3a619afd5a25f49011
4
- data.tar.gz: 3d1cef722ed45d04b87ad33c7ed3b4ad14e908a311fbb5d1ce83a363491e8bc0
3
+ metadata.gz: 48aac22cbdca1645a7b8731a2c83e048cda0b4114c1141e96bf24d401e937832
4
+ data.tar.gz: ad039e47c147b31723964127d3845f00b143dd42b8f8e89ada15a26836973ef3
5
5
  SHA512:
6
- metadata.gz: 52fc388acde1ab6a9f8b45f4939dc79cfc39c6de87de58cc4f94e6219f1ef70f111db18ed951c86a6f41a8f71008d062f16162d21bc8756a03867ea021111d1b
7
- data.tar.gz: 7f38854cabb1bc75efdfe04ed201a4f1a4ef360707e99e822b32c00959c33717103f823c6ea99f5d7871d54776d4eda9346a94238ceb41bb71fcf98f33b8bdcf
6
+ metadata.gz: 0ffde084ecb995723b461aaa7b9db628f7a3b9de880bfcf84daf0a9a6ea06889f295ff4ccbf4af16af37a8db1fd1a881f2c38f2b74e7504a8bbc6c63a94c9869
7
+ data.tar.gz: 0c23b6e7688e908cd3fe651cd0dc42fdfcfac54511faf1207373d446b3dc60d1fc8969e57d3fa9f5cf1413b1838039c20368991f8926b72dae0fe2b1c6706472
@@ -34,6 +34,11 @@ module EacEnvs
34
34
  body_str
35
35
  end
36
36
 
37
+ # @param path [Pathname]
38
+ def write_body(path)
39
+ ::File.open(path, 'wb') { |fp| fp.write(performed.body) }
40
+ end
41
+
37
42
  private
38
43
 
39
44
  def body_data_from_application_json
@@ -7,7 +7,7 @@ module EacEnvs
7
7
  class Response < ::StandardError
8
8
  module Statuses
9
9
  def raise_unless_200
10
- return nil if status == 200
10
+ return nil if status >= 200 && status < 300
11
11
 
12
12
  raise self
13
13
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module EacEnvs
4
4
  module Http
5
- VERSION = '0.3.2'
5
+ VERSION = '0.4.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_envs-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-16 00:00:00.000000000 Z
11
+ date: 2023-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_fs
@@ -30,14 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.116'
33
+ version: '0.119'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 0.119.1
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: '0.116'
43
+ version: '0.119'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.119.1
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: faraday
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -47,7 +53,7 @@ dependencies:
47
53
  version: '2.7'
48
54
  - - ">="
49
55
  - !ruby/object:Gem::Version
50
- version: 2.7.4
56
+ version: 2.7.10
51
57
  type: :runtime
52
58
  prerelease: false
53
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +63,7 @@ dependencies:
57
63
  version: '2.7'
58
64
  - - ">="
59
65
  - !ruby/object:Gem::Version
60
- version: 2.7.4
66
+ version: 2.7.10
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: faraday-follow_redirects
63
69
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +118,14 @@ dependencies:
112
118
  requirements:
113
119
  - - "~>"
114
120
  - !ruby/object:Gem::Version
115
- version: '2.1'
121
+ version: '2.2'
116
122
  type: :runtime
117
123
  prerelease: false
118
124
  version_requirements: !ruby/object:Gem::Requirement
119
125
  requirements:
120
126
  - - "~>"
121
127
  - !ruby/object:Gem::Version
122
- version: '2.1'
128
+ version: '2.2'
123
129
  - !ruby/object:Gem::Dependency
124
130
  name: aranha-parsers
125
131
  requirement: !ruby/object:Gem::Requirement