ectoplasm 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ectoplasm.rb +4 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 401918d4609c720c05d288ba59e5dbffb6cc5a0fe8e347051fcf8864f9b824c4
|
4
|
+
data.tar.gz: f3602ae5818cdc69fbe52e6b33b25561434fedd26f59e4cdd8c1459b06c98bf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5acb63abc6603ace5e8c6a5f8a5bbfbe6f335009fd921cc02bf38ffb2774da332dee89da3544d33789fdf7bfbd0051ce56f743eaed3e877d79804fc24ae0ea36
|
7
|
+
data.tar.gz: 3cc82aa03102f8c96fe169490300b6377753164e5275d5d385a0fff97b1fdbcc6bc4adff3e542e89e5e4686d03994ff9b176ad1bc0d8d5d45f7fa64322f2cf3a
|
data/CHANGELOG.md
ADDED
data/lib/ectoplasm.rb
CHANGED
@@ -4,12 +4,12 @@ module Ectoplasm
|
|
4
4
|
module Version
|
5
5
|
MAJOR = 1
|
6
6
|
MINOR = 2
|
7
|
-
TINY =
|
7
|
+
TINY = 1
|
8
8
|
end
|
9
9
|
|
10
10
|
VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
|
11
11
|
|
12
|
-
|
12
|
+
DEFAULT_SECURE_KEYS = ['password', 'secret', 'token', 'secure']
|
13
13
|
|
14
14
|
class ::String
|
15
15
|
@@colored = false
|
@@ -204,6 +204,8 @@ module Ectoplasm
|
|
204
204
|
self.each do |k, v|
|
205
205
|
if v.is_a? Hash
|
206
206
|
v.obfuscate!(secure_keys)
|
207
|
+
elsif v.is_a? Array
|
208
|
+
v.each { |x| v.obfuscate!(secure_keys) }
|
207
209
|
elsif secure_keys.any? { |x| k.to_s.downcase.include? x.downcase }
|
208
210
|
self[k] = '*****'
|
209
211
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ectoplasm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Neubauer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Adds some extension methods to build in types to add prettier console
|
14
14
|
output
|
@@ -19,6 +19,7 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- ".gitignore"
|
22
|
+
- CHANGELOG.md
|
22
23
|
- Gemfile
|
23
24
|
- LICENSE.txt
|
24
25
|
- README.md
|