eac_rest 0.9.0 → 0.9.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: 263dba755fa31847ff76531c4b4282f7dbcde55e1a422746311251d2705b5d07
4
- data.tar.gz: b9e606feb6e48a217388a71f261a1b7f134ca21ff576ef87b68807169f96f7f9
3
+ metadata.gz: 4928b33d7bd23461123a99c7b751c783d9d51ccd913235779741dea434b29825
4
+ data.tar.gz: 23d57beb8de80b2b082c10aaa9788843d16c296d81b959700108c5f73dd00784
5
5
  SHA512:
6
- metadata.gz: d0848f0ad0b5c2eede6a2c166557caca924d1ae2e73cad1cf54720678a0c4b86fee1e9ed3e1364c2cafa1a1183a7703824eb575b8712988d81cf6bbc6b622abd
7
- data.tar.gz: 65674debf48a454b8716e010360fa927e9ecdb86471539e20865dad151de462562ce3e07ec5f5aeb03819974b44b41a62a9cc41d311c1f91aeaddfbf6b8e9368
6
+ metadata.gz: eaf826d3d48054a9c3dfb1ae2c39bd2568dfd7474e00c0852b2f6683a82ec82a0995e77ccadc66d36be924b8192187bc419ce79b980e17e890b32441cb42f641
7
+ data.tar.gz: 82cd50f1374a0863b776544c061c42b6053299dca5233592c85a1be79ceb3f30b0fa3d0ac1a33c22c529cc965449ad57693c71660c7167437c5b1c8752ac1ef5
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
@@ -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.1'
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.1
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-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_envs-http
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.3'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.3.1
19
+ version: '0.4'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.3'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.3.1
26
+ version: '0.4'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: eac_fs
35
29
  requirement: !ruby/object:Gem::Requirement
@@ -50,14 +44,20 @@ dependencies:
50
44
  requirements:
51
45
  - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '0.112'
47
+ version: '0.117'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.117.1
54
51
  type: :runtime
55
52
  prerelease: false
56
53
  version_requirements: !ruby/object:Gem::Requirement
57
54
  requirements:
58
55
  - - "~>"
59
56
  - !ruby/object:Gem::Version
60
- version: '0.112'
57
+ version: '0.117'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.117.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: aranha-parsers
63
63
  requirement: !ruby/object:Gem::Requirement