sql_footprint 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sql_footprint/sql_anonymizer.rb +1 -1
- data/lib/sql_footprint/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba7417a8a85b665711d2af884fbc5e17930884e7f7767c949708eed8e47660e8
|
4
|
+
data.tar.gz: a7a924672cccfff51ca48b33cf10ee779e6c05789d6f10a9cd9ae99813996fbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95d61ccb70f85f10c92425916c80b2e9da475a0a45963d1a9a7625344eb350b48fb7ffa3826be3ecb3a65ee13f04ec71318034e0b0dbe9649d4120ba3a11608f
|
7
|
+
data.tar.gz: a1db2ed51c05e0dc260696f33f381ddb9a4fb7c09660c68b49bc5e8c0e37fca63c0bed478e63ff211ff76462f0280720a91f894721a088fd08dc18f5e054ab99
|
@@ -2,7 +2,7 @@ module SqlFootprint
|
|
2
2
|
class SqlAnonymizer
|
3
3
|
@rules = {
|
4
4
|
/\sIN\s\(.*\)/ => ' IN (values-redacted)'.freeze, # IN clauses
|
5
|
-
/([\s\(])'
|
5
|
+
/([\s\(])'.*?'/ => "\\1'value-redacted'".freeze, # literal strings
|
6
6
|
/N''.*''/ => "N''value-redacted''".freeze, # literal MSSQL strings
|
7
7
|
/\s+(!=|=|<|>|<=|>=)\s+[0-9]+/ => ' \1 number-redacted'.freeze, # numbers
|
8
8
|
/\s+VALUES\s+\(.+\)/ => ' VALUES (values-redacted)'.freeze, # VALUES
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sql_footprint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Joyce
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -184,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
|
-
rubygems_version: 3.
|
187
|
+
rubygems_version: 3.1.2
|
188
188
|
signing_key:
|
189
189
|
specification_version: 4
|
190
190
|
summary: Keeps your DBA happy.
|