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 +4 -4
- data/lib/runcible/base.rb +11 -3
- data/lib/runcible/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20c3f2a8075f0735ceb37c0c6ddb9bc0aa2005593f920a23052323875b631e4a
|
4
|
+
data.tar.gz: 1568254dc329d21735840189cce18a0cee7db35f19afb90ad5d13456e86cfb88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a52b670605b2d2c8e1a5b4659df2566fc492a5f3ceeac5ef38565caa3427a090daf6c09c3423093082c96b9b61a3de6a1a747b0de173ab1759eafcf98023ad6c
|
7
|
+
data.tar.gz: a7e2388d505345dc6b8c6b7aac9f1d52e05ecd5970c12ad0eea4e90dbf0fe02e770e52ce42b89e78a31bc95311dc5e33f207bce51c265b08bfc3724a22fb5c31
|
data/lib/runcible/base.rb
CHANGED
@@ -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
|
-
|
212
|
+
logger.debug(log_message) if self.config[:logging][:debug]
|
205
213
|
end
|
206
214
|
|
207
215
|
def log_exception
|
208
|
-
|
216
|
+
logger.error(log_message) if self.config[:logging][:exception]
|
209
217
|
end
|
210
218
|
|
211
219
|
def log_info
|
212
|
-
|
220
|
+
logger.info(log_message) if self.config[:logging][:info]
|
213
221
|
end
|
214
222
|
|
215
223
|
def logger
|
data/lib/runcible/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|