eac_rest 0.11.0 → 0.12.0
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/entity/fetching.rb +8 -1
- data/lib/eac_rest/response.rb +1 -1
- data/lib/eac_rest/version.rb +1 -1
- metadata +4 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4a44344b3c4cbd860895c14ecc52953d7a698311097ad68f2e0a0caee667953
|
4
|
+
data.tar.gz: 4a44b26527e1331b2976721aad87c26b006e9906f3833be7a83d83f629b5fddf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ce1615c18e320116bd20cf2f4b0ba35eb059cfd4ae87b0715b1a31bc9a44d72a0bbf64c6f2a089e657a919fda100aeebe437fd5f6e5f4d482320f33501b926e
|
7
|
+
data.tar.gz: b049d5c0b97534f51b6fc96038c37a07328be2bbbba6a5daefcbd0807ce71f5d3c2d3f9b807a8986365a348f1981d4e4f6f23eef22b9098e03f8764a91a8f3b4
|
@@ -11,9 +11,16 @@ module EacRest
|
|
11
11
|
parent_entity.if_present('', &:entity_root_url_suffix).to_uri
|
12
12
|
end
|
13
13
|
|
14
|
+
# @param url_suffix [Addressable::URI]
|
14
15
|
# @return [EacRest::Request]
|
15
16
|
def request(url_suffix)
|
16
|
-
api.
|
17
|
+
api.request_json(request_url(url_suffix))
|
18
|
+
end
|
19
|
+
|
20
|
+
# @param url_suffix [Addressable::URI]
|
21
|
+
# @return [Addressable::URI]
|
22
|
+
def request_url(url_suffix)
|
23
|
+
::EacRest::Helper.url_join(entity_root_url_suffix, url_suffix)
|
17
24
|
end
|
18
25
|
end
|
19
26
|
end
|
data/lib/eac_rest/response.rb
CHANGED
@@ -13,7 +13,7 @@ module EacRest
|
|
13
13
|
@internal_response ||= request.internal_request.response
|
14
14
|
end
|
15
15
|
|
16
|
-
%i[body_data body_data_or_raise body_str body_str_or_raise header headers
|
16
|
+
%i[body_data body_data! body_data_or_raise body_str body_str_or_raise header headers
|
17
17
|
link links raise_unless_200 status to_s url].each do |method_name| # rubocop:disable Naming/VariableNumber
|
18
18
|
define_method method_name do |*args, &block|
|
19
19
|
internal_response.send(method_name, *args, &block)
|
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.
|
4
|
+
version: 0.12.0
|
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-12-04 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.
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.4.1
|
19
|
+
version: '0.5'
|
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.
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 0.4.1
|
26
|
+
version: '0.5'
|
33
27
|
- !ruby/object:Gem::Dependency
|
34
28
|
name: eac_fs
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|