katinguele 1.0.1 → 1.0.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: 1f41df12c6dfe4dc79fa33f5cf5b356c020e4423155bbd5274c0dc1308450a86
4
- data.tar.gz: 35ac0954fb8b2506d892033510620f49a553f0dcbfbe3fa2d5f9d5b1620d172b
3
+ metadata.gz: f9adb7c923a26a85b0b578eea0ee7969b3bb186b001baf8a9a8398c8201cd9a3
4
+ data.tar.gz: 8e8b90639d264c4aa0b5002f6d3ce111bc1bf8f4842b1226b11c1df94dc81967
5
5
  SHA512:
6
- metadata.gz: c6e5702cceb029adb73e0ad66b79f1ed57b8192f896bfc8ecebff6af67a26514f99c5a3c9d7e619d743d30bbf348d555a326bd41e03d4bd940d8585e24a4484f
7
- data.tar.gz: 81ce7bab406d570704ceefdf71c26736c9a32094d5c60333bc057c1ad6b95fe8a1ffdbdb08dc87f7fee2cf8fec388636c2dac35793234d6fe30d00fd3e25c0e7
6
+ metadata.gz: b03302f1e92e81e04fb406e0e2dcbe2ee004cd86f64d7431227ed39bc9f85115a7d0a0f32667a8f45ce7792fea1fea56d14c3fc1c7d06c0d7955195d87e86bed
7
+ data.tar.gz: 87f4e35e05905dbcbe78ff2d8b8024f7db0f3e4d4b9ba86644fc9075421e2bd0ddc66d19be46797053c4a712bb4dabe7e33da1316a149c38f0537b02599f2252
@@ -7,6 +7,7 @@ module Katinguele
7
7
  module Builder
8
8
  def self.extended(base)
9
9
  base.send(:build_katinguele_options)
10
+ base.send(:build_katinguele_request_attributes)
10
11
  base.katinguele_options
11
12
  end
12
13
 
@@ -40,7 +41,11 @@ module Katinguele
40
41
  .then { |service| handle_unknown_service!(service) }
41
42
  .then { |service| create_request(service) }
42
43
  .then { |request| katinguele_options[:request] = request }
43
- .then { |request| katinguele_options[:request_all_options] = request&.attributes || {} }
44
+ build_katinguele_request_attributes
45
+ end
46
+
47
+ def build_katinguele_request_attributes
48
+ define_singleton_method(:katinguele_request_attributes) { katinguele_options&.[](:request)&.attributes }
44
49
  end
45
50
 
46
51
  def handle_unknown_service!(service)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Katinguele
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: katinguele
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - linqueta