dorian-anonymize 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/anonymize +1 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09c782ce0559219c60b0f3efae7d08cfc9f2acb37ca6c5c7a14f553d4e311919'
4
- data.tar.gz: 93f7d92df60b39de942bbe56181a537687736be131c08e5e7c04db60836aed36
3
+ metadata.gz: 307a0a8c097c409e3061cd24dee65eca36e8ff3992a78de78dd25ed9d9126c8c
4
+ data.tar.gz: 61ffa9b953207312b16e5c208dd79e9748a7e67d89170e6af1b911bb210642d1
5
5
  SHA512:
6
- metadata.gz: 6e8aa2e930b4221e89a3817b37141d2c14fb563c36af1978444b881fd55a1280916bddb38a69509d10f96aa60eb812fb752bfbd9c1e1b002d1288964197ee3bc
7
- data.tar.gz: 5cad96bc77b0d31c9dd8df0e5d92dc5000a1bdc89b094904d78273b6d878f7f7533725ba31337116730d9a709b8bced43dd2fd5a2e113b84e9f49a1f2c476fd7
6
+ metadata.gz: 474fa3d7eba48c41cf7e1cbdd757c55681e56211e7e45ea21e11c3bc51f4b11297886fc8479e2ddf1576b824dabac384c6039379080791031c365498d836eb33
7
+ data.tar.gz: 3f4b9116bf6eccb24823a4a1c7a8853f402dfd272a4a776627623b3554638c5b65626daae63c141ebf40e1d1c9806b90be5eebb72b23e33b3240ba9ab61c7948
data/bin/anonymize CHANGED
@@ -9,9 +9,7 @@ end
9
9
 
10
10
  inputs = ARGV
11
11
 
12
- if inputs.empty?
13
- inputs = $stdin.each_line.to_a
14
- end
12
+ inputs = $stdin.each_line.to_a if inputs.empty?
15
13
 
16
14
  inputs.each do |input|
17
15
  puts input.to_s.gsub(/[0-9]/, "0").gsub(/[a-z]/, "a").gsub(/[A-Z]/, "A")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-anonymize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-30 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |-
14
14
  Anonymize strings