runcible 2.13.0 → 2.13.1

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: 6128273fa443858de7a93a47f239d118b275cdba2d93e7335237ef5780b1f3e1
4
- data.tar.gz: 890e73d9953180d85dbe4c3188a76c2e2dcbacd74cfab5fb26dabc7578ff4dbd
3
+ metadata.gz: 20c3f2a8075f0735ceb37c0c6ddb9bc0aa2005593f920a23052323875b631e4a
4
+ data.tar.gz: 1568254dc329d21735840189cce18a0cee7db35f19afb90ad5d13456e86cfb88
5
5
  SHA512:
6
- metadata.gz: f9e64524447c10c06919f23d8d807bed32dbb7fa41ea955bcea471d3f908e0b6a3f23eefda7c1f9ca138c180850bad2e361a5a1852dee999a7eb9f5e70b8dbc6
7
- data.tar.gz: 49ec59dead10746c38d9bdba891d84885f0ef538acbf27f0ccbb76eca86cc76a97816e6f44f1363180ca80d21e9171343f6c5727a1fb0f80b16ddc4ec82f4519
6
+ metadata.gz: a52b670605b2d2c8e1a5b4659df2566fc492a5f3ceeac5ef38565caa3427a090daf6c09c3423093082c96b9b61a3de6a1a747b0de173ab1759eafcf98023ad6c
7
+ data.tar.gz: a7e2388d505345dc6b8c6b7aac9f1d52e05ecd5970c12ad0eea4e90dbf0fe02e770e52ce42b89e78a31bc95311dc5e33f207bce51c265b08bfc3724a22fb5c31
@@ -200,16 +200,24 @@ module Runcible
200
200
  return headers
201
201
  end
202
202
 
203
+ def log_message
204
+ filter_sensitive_data(self.logs.join("\n"))
205
+ end
206
+
207
+ def filter_sensitive_data(payload)
208
+ payload.gsub(/-----BEGIN RSA PRIVATE KEY-----[\s\S]*-----END RSA PRIVATE KEY-----/, '[private key filtered]')
209
+ end
210
+
203
211
  def log_debug
204
- self.config[:logging][:logger].debug(self.logs.join("\n")) if self.config[:logging][:debug]
212
+ logger.debug(log_message) if self.config[:logging][:debug]
205
213
  end
206
214
 
207
215
  def log_exception
208
- self.config[:logging][:logger].error(self.logs.join("\n")) if self.config[:logging][:exception]
216
+ logger.error(log_message) if self.config[:logging][:exception]
209
217
  end
210
218
 
211
219
  def log_info
212
- self.config[:logging][:logger].info(self.logs.join("\n")) if self.config[:logging][:info]
220
+ logger.info(log_message) if self.config[:logging][:info]
213
221
  end
214
222
 
215
223
  def logger
@@ -1,3 +1,3 @@
1
1
  module Runcible
2
- VERSION = '2.13.0'.freeze
2
+ VERSION = '2.13.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runcible
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.0
4
+ version: 2.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D Helms, Justin Sherrill
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-20 00:00:00.000000000 Z
11
+ date: 2020-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json