sql_footprint 0.7.0 → 0.8.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2808176972e7b35b01a34cc34f9894a7c0e09d4
|
4
|
+
data.tar.gz: b67e95f379439301c92c2f66d17b24f8a253ef1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb580a2acecdda22e4f09c6933f421279c443be4d4f22ee85b1be43e8d8d5501cb123caff8439c5683abfa15f22a648589699779706aa9cea2c4e3faa19a441b
|
7
|
+
data.tar.gz: ae06d0b3d619a26eeca98b71872e2d414d172227d64cd22e2bd55888c75a23e781cd7610139346118eb29afb285f344344fc7d0ab4c54792a0b91032f34049e7
|
@@ -2,8 +2,8 @@ module SqlFootprint
|
|
2
2
|
class SqlAnonymizer
|
3
3
|
GSUBS = {
|
4
4
|
/\sIN\s\((.*)\)/ => ' IN (values-redacted)'.freeze, # IN clauses
|
5
|
-
/\s\=\s([0-9]+)/ => ' = number-redacted'.freeze, # numbers
|
6
5
|
/\s'(.*)\'/ => " 'value-redacted'".freeze, # literal strings
|
6
|
+
/\s+(!=|=|<|>|<=|>=)\s+[0-9]+/ => ' \1 number-redacted', # numbers
|
7
7
|
}.freeze
|
8
8
|
|
9
9
|
def anonymize sql
|
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: 0.
|
4
|
+
version: 0.8.0
|
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: 2016-04-
|
13
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activerecord
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
183
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.
|
184
|
+
rubygems_version: 2.4.8
|
185
185
|
signing_key:
|
186
186
|
specification_version: 4
|
187
187
|
summary: Keeps your DBA happy.
|