inferno_core 0.4.15 → 0.4.17

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: 13deb950bfbdc2c45ab08aeac66ef3c028add9884e1d491f571557fbc0423705
4
- data.tar.gz: 7db2887846038851353aa44008ef9bfc8af56dca114817b7338ced697480609c
3
+ metadata.gz: 77e9c5d39c29db85f07321f5456cebad0fb4e285f0143533984d36500248fbd7
4
+ data.tar.gz: e22a7589dbb1bc4edd54ad3305526fdfeae4358fd992b2b23f5d69a8a8fa139c
5
5
  SHA512:
6
- metadata.gz: 67f87cb218cf454ecd4b71f0b705e7d6656fe6033469979c259f4263c9d929679ecc67cb5c65c5e6f31ca2800c78e26e43f49f3f1577cdfb6f6a0ac42a722711
7
- data.tar.gz: 5c1d94c57be857888fe58eb22229659e057cdd62b68ea98129e06007e2f78f970264f9d236ba632399ee3947b42778e78d97021e945671926027bbf392f75c3f
6
+ metadata.gz: 642da73f8db4428c210e80919567a7fe5586a93fa4f485e6dfaff117c1d796936a263dcb82d8bb69c309266a0b150846e93a51825e4b8bab0eaffe237ec23f20
7
+ data.tar.gz: 2f68462dee18ced89167e7327a3dd5fbb7d250adef866604e4590d5c891fcb695761127b46804125c9d165de859d0777dc74ccf4772ba5a1b9f2865f0dcda6f3
@@ -16,7 +16,7 @@ module Inferno
16
16
  # # create a named client for a group
17
17
  # fhir_client :with_custom_header do
18
18
  # url 'https://example.com/fhir'
19
- # headers { 'X-my-custom-header': 'ABC123' }
19
+ # headers 'X-my-custom-header': 'ABC123'
20
20
  # end
21
21
  #
22
22
  # test :some_test do
@@ -97,7 +97,16 @@ module Inferno
97
97
  # `error`.
98
98
  # @return [void]
99
99
  def check_configuration(&block)
100
- @check_configuration_block = block
100
+ @check_configuration_block = lambda do
101
+ block.call&.each do |configuration_message|
102
+ case configuration_message[:type]
103
+ when 'warning'
104
+ Application[:logger].warn(configuration_message[:message])
105
+ when 'error'
106
+ Application[:logger].error(configuration_message[:message])
107
+ end
108
+ end
109
+ end
101
110
  end
102
111
 
103
112
  # @private