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 +4 -4
- data/lib/eac_rest/api.rb +1 -1
- data/lib/eac_rest/response.rb +2 -0
- data/lib/eac_rest/version.rb +1 -1
- metadata +14 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 945584092ca9aed7a69937868f4d63f064372e74315c359f43d1fb8d6ec23546
|
4
|
+
data.tar.gz: 44353ff6d28eb8515f75b79bf7a6b6e2eee0c8be20ff5866a45395ffe3e339a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/eac_rest/response.rb
CHANGED
data/lib/eac_rest/version.rb
CHANGED
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.
|
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-
|
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.
|
19
|
+
version: '0.4'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0.
|
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.
|
29
|
+
version: '0.4'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
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.
|
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.
|
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
|