eac_rest 0.9.0 → 0.9.2

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: 263dba755fa31847ff76531c4b4282f7dbcde55e1a422746311251d2705b5d07
4
- data.tar.gz: b9e606feb6e48a217388a71f261a1b7f134ca21ff576ef87b68807169f96f7f9
3
+ metadata.gz: 945584092ca9aed7a69937868f4d63f064372e74315c359f43d1fb8d6ec23546
4
+ data.tar.gz: 44353ff6d28eb8515f75b79bf7a6b6e2eee0c8be20ff5866a45395ffe3e339a2
5
5
  SHA512:
6
- metadata.gz: d0848f0ad0b5c2eede6a2c166557caca924d1ae2e73cad1cf54720678a0c4b86fee1e9ed3e1364c2cafa1a1183a7703824eb575b8712988d81cf6bbc6b622abd
7
- data.tar.gz: 65674debf48a454b8716e010360fa927e9ecdb86471539e20865dad151de462562ce3e07ec5f5aeb03819974b44b41a62a9cc41d311c1f91aeaddfbf6b8e9368
6
+ metadata.gz: ffa21fcadef6f88f12f549b23cc8b844c4d8bda459e7e1e2d8824ae1ff137ae5ff55fa84b713da8e2d5e2652acc46eb41f22d0c7bf444833c5a47b641e5b8898
7
+ data.tar.gz: e7828dd79341ea1b2af6002e4ae2d1420ab79a514c9b687f4cd0f64540f3ccd85f5596dcb3a8dac80d19b2971c80eebbe3e19aa055943386dc04aeee5f0ef8b0
data/lib/eac_rest/api.rb CHANGED
@@ -32,7 +32,7 @@ module EacRest
32
32
 
33
33
  def request_json(service_url_suffix, headers = {}, &body_data_proc)
34
34
  request(service_url_suffix, headers.merge('Accept' => 'application/json')) do |body_data|
35
- r = ::JSON.parse(body_data)
35
+ r = body_data.is_a?(::Enumerable) ? body_data : ::JSON.parse(body_data)
36
36
  r = body_data_proc.call(r) if body_data_proc
37
37
  r
38
38
  end
@@ -19,6 +19,8 @@ module EacRest
19
19
  internal_response.send(method_name, *args, &block)
20
20
  rescue ::EacEnvs::Http::Error
21
21
  raise ::EacRest::Error
22
+ rescue ::EacEnvs::Http::Response
23
+ raise self
22
24
  end
23
25
  end
24
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRest
4
- VERSION = '0.9.0'
4
+ VERSION = '0.9.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo H. Bogoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-06 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_envs-http
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
19
+ version: '0.4'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.3.1
22
+ version: 0.4.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.3'
29
+ version: '0.4'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.3.1
32
+ version: 0.4.1
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: eac_fs
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +50,20 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.112'
53
+ version: '0.119'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.119.1
54
57
  type: :runtime
55
58
  prerelease: false
56
59
  version_requirements: !ruby/object:Gem::Requirement
57
60
  requirements:
58
61
  - - "~>"
59
62
  - !ruby/object:Gem::Version
60
- version: '0.112'
63
+ version: '0.119'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.119.1
61
67
  - !ruby/object:Gem::Dependency
62
68
  name: aranha-parsers
63
69
  requirement: !ruby/object:Gem::Requirement