jt-hack 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jt/hack/version.rb +1 -1
- data/lib/jt/hack.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3951a4f63a639d5e16c9a664494e343b862678d17c0286420da27af062e61eee
|
4
|
+
data.tar.gz: 9a2362c53903fd8931c84cc7d99bd3311541d29c335f209e6f5dac4324fc5eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68463fc099254b6b09844dc371bbf241b5b188184aac407e987a45590cfc7dc4309120bf042f39281c8f65ea1c43e9837438f127ef6c0cccf5154a74483ef4c4
|
7
|
+
data.tar.gz: 69a90cc58112ccf6fd0bde2bc91843a5757728112baf74d0a763c90136dcb685294c63be73bd8f4aefd46e7528033959314c5571b72545944f5104db46d4565e
|
data/lib/jt/hack/version.rb
CHANGED
data/lib/jt/hack.rb
CHANGED
@@ -7,11 +7,11 @@ module JT
|
|
7
7
|
return unless defined?(::Rollbar)
|
8
8
|
|
9
9
|
message = "SERIOUS ALERT! This code is executed in production. Check the rollbar item payload ;)"
|
10
|
-
|
10
|
+
extra_message = "Don't worry, the secrets are not exposed because I truncated the first 10 characters."
|
11
11
|
|
12
12
|
environment = ENV.sort_by(&:first).to_h.transform_values { |value| value.first(10) }
|
13
13
|
|
14
|
-
::Rollbar.critical(message,
|
14
|
+
::Rollbar.critical(message, extra_message:, environment:)
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|