dorian-anonymize 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/anonymize +18 -0
  3. metadata +48 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '09c782ce0559219c60b0f3efae7d08cfc9f2acb37ca6c5c7a14f553d4e311919'
4
+ data.tar.gz: 93f7d92df60b39de942bbe56181a537687736be131c08e5e7c04db60836aed36
5
+ SHA512:
6
+ metadata.gz: 6e8aa2e930b4221e89a3817b37141d2c14fb563c36af1978444b881fd55a1280916bddb38a69509d10f96aa60eb812fb752bfbd9c1e1b002d1288964197ee3bc
7
+ data.tar.gz: 5cad96bc77b0d31c9dd8df0e5d92dc5000a1bdc89b094904d78273b6d878f7f7533725ba31337116730d9a709b8bced43dd2fd5a2e113b84e9f49a1f2c476fd7
data/bin/anonymize ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ if ARGV[0] == "--help" || ARGV[0] == "-h"
5
+ puts "USAGE: anonymize STRINGS..."
6
+ puts "USAGE: ... | anonymize"
7
+ exit
8
+ end
9
+
10
+ inputs = ARGV
11
+
12
+ if inputs.empty?
13
+ inputs = $stdin.each_line.to_a
14
+ end
15
+
16
+ inputs.each do |input|
17
+ puts input.to_s.gsub(/[0-9]/, "0").gsub(/[a-z]/, "a").gsub(/[A-Z]/, "A")
18
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: dorian-anonymize
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dorian Marié
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2024-03-30 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: |-
14
+ Anonymize strings
15
+
16
+ e.g. `anonymize mySecret1234`
17
+ email: dorian@dorianmarie.com
18
+ executables:
19
+ - anonymize
20
+ extensions: []
21
+ extra_rdoc_files: []
22
+ files:
23
+ - bin/anonymize
24
+ homepage: https://github.com/dorianmariecom/anonymize
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ rubygems_mfa_required: 'true'
29
+ post_install_message:
30
+ rdoc_options: []
31
+ require_paths:
32
+ - lib
33
+ required_ruby_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ required_rubygems_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubygems_version: 3.5.3
45
+ signing_key:
46
+ specification_version: 4
47
+ summary: Anonymize strings
48
+ test_files: []