dorian-anonymize 0.1.0 → 0.1.2

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 +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09c782ce0559219c60b0f3efae7d08cfc9f2acb37ca6c5c7a14f553d4e311919'
4
- data.tar.gz: 93f7d92df60b39de942bbe56181a537687736be131c08e5e7c04db60836aed36
3
+ metadata.gz: bbc4202107c15df7403e06e2d23d99d6e0cd246cab4e02adb2dc48646dc6d0d1
4
+ data.tar.gz: cb03f8956363d259f862db5b32eede00b6be52a88f4df33ae2e2104d65118ae5
5
5
  SHA512:
6
- metadata.gz: 6e8aa2e930b4221e89a3817b37141d2c14fb563c36af1978444b881fd55a1280916bddb38a69509d10f96aa60eb812fb752bfbd9c1e1b002d1288964197ee3bc
7
- data.tar.gz: 5cad96bc77b0d31c9dd8df0e5d92dc5000a1bdc89b094904d78273b6d878f7f7533725ba31337116730d9a709b8bced43dd2fd5a2e113b84e9f49a1f2c476fd7
6
+ metadata.gz: 54616209aba7c0478a56aa8cfaac6dd14c8d11bae891add5444559565594d9572425d0c1a87d9fec1b5066cc52622442e8d219224ca99d92b7df460640b1cbeb
7
+ data.tar.gz: 7820953145cef168412bd0ca5e128cca225cf51050cef3377fb5db8c1b5b4ddd7b984582260ccead9b6b42ad932a4269b3991a6dc2eef8d227b2cb051b14ec99
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.2
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
@@ -34,7 +34,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: '0'
37
+ version: 3.3.0
38
38
  required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="