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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6ea54f4879bd8986f51bb61675479e688510922dec567816955d9fdc82120e1
4
- data.tar.gz: 4a3c2f7ede1e8ffa3031a731ff1bc66d9521c9d8c93c997d3e00597e4016dffa
3
+ metadata.gz: e4a44344b3c4cbd860895c14ecc52953d7a698311097ad68f2e0a0caee667953
4
+ data.tar.gz: 4a44b26527e1331b2976721aad87c26b006e9906f3833be7a83d83f629b5fddf
5
5
  SHA512:
6
- metadata.gz: 852082a762e5ad0df28b520636be72c521376828793d24fe3f442bc309d637195633220f262bdbdd5a0f8273a8f643949caabe40f87b352407ac56f79e7080a8
7
- data.tar.gz: 4b9b1ffb18491caf4d4615ac4d29bdb9ab3f4c785a6968ce8ee19ea66ced56cb6acfaaf2163073e887cfa98dc2edab80e7412a6b394295fcd6fffb2b01a9106e
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.request(::EacRest::Helper.url_join(entity_root_url_suffix, url_suffix))
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
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacRest
4
- VERSION = '0.11.0'
4
+ VERSION = '0.12.0'
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.11.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-29 00:00:00.000000000 Z
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.4'
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.4'
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