ectoplasm 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/ectoplasm.rb +4 -2
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 69c7041d0fc4715ade4a7e713b8ecf038d22a2bda97c2880832e419f36330ac9
4
- data.tar.gz: 26a379a4c5853649520349128a3e92686bb2debdb07c94b57f146e57e49aec93
3
+ metadata.gz: 401918d4609c720c05d288ba59e5dbffb6cc5a0fe8e347051fcf8864f9b824c4
4
+ data.tar.gz: f3602ae5818cdc69fbe52e6b33b25561434fedd26f59e4cdd8c1459b06c98bf8
5
5
  SHA512:
6
- metadata.gz: 69fce6d5ba25a8d5d4768a47f0e640761d0aef69c0c8d7f653a053ef6360556f3cd38758af6bd1b58384206137340fb597dfe7579e82b4640cf9c3da31869a0f
7
- data.tar.gz: 279baa2b4db4360b9f4cb0a29b40a77e891157c221189067f81f9cf9c1e1b3c56b41d4479c22a7139ed8e2ab48ed6af19fe69793b2a41538b739d8f727ae3e68
6
+ metadata.gz: 5acb63abc6603ace5e8c6a5f8a5bbfbe6f335009fd921cc02bf38ffb2774da332dee89da3544d33789fdf7bfbd0051ce56f743eaed3e877d79804fc24ae0ea36
7
+ data.tar.gz: 3cc82aa03102f8c96fe169490300b6377753164e5275d5d385a0fff97b1fdbcc6bc4adff3e542e89e5e4686d03994ff9b176ad1bc0d8d5d45f7fa64322f2cf3a
data/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ### v1.2.0
2
+
3
+ #### Minor
4
+ - `obfuscate` method added to `Hash` and `OpenStruct`
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 = 0
7
+ TINY = 1
8
8
  end
9
9
 
10
10
  VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
11
11
 
12
- DEFUALT_SECURE_KEYS = ['password', 'secret', 'token', 'secure']
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.0
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: 2021-06-10 00:00:00.000000000 Z
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