inferno_core 0.4.16 → 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: a1d6de1522b60ed9f571f8a7e153cc17698a8ea7f6e31ddd1e56f8c3f566a65f
4
- data.tar.gz: a5098db0ddc0bfe9a713f8e84a6c24f9852a71a43b4ad88aa8331a0576a29c3d
3
+ metadata.gz: 77e9c5d39c29db85f07321f5456cebad0fb4e285f0143533984d36500248fbd7
4
+ data.tar.gz: e22a7589dbb1bc4edd54ad3305526fdfeae4358fd992b2b23f5d69a8a8fa139c
5
5
  SHA512:
6
- metadata.gz: 2ea8f2e9d4912a696771f95c5078cf02b682da5b9d43afb7f4758b57af4b906c0b92e9ed75eaed663528f29dac898d211ec98bab35601ce7c906e34694b492cc
7
- data.tar.gz: 4944badab9dcd3042dbc8893b75babdcd1386e297870c131c48a23a62de102aee90fae63fa56748e7fceeab0e0e0316e91deb0a62012a85334f379a540797348
6
+ metadata.gz: 642da73f8db4428c210e80919567a7fe5586a93fa4f485e6dfaff117c1d796936a263dcb82d8bb69c309266a0b150846e93a51825e4b8bab0eaffe237ec23f20
7
+ data.tar.gz: 2f68462dee18ced89167e7327a3dd5fbb7d250adef866604e4590d5c891fcb695761127b46804125c9d165de859d0777dc74ccf4772ba5a1b9f2865f0dcda6f3
@@ -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