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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed31563f050a9174554944066d035698dba3bf696fabd5a54874bf67d74cce57
4
- data.tar.gz: 6a9958b28e5048c8da8aa64e364ef7e8aa8fbcfc5a317e605ba2f56af57a0f75
3
+ metadata.gz: ba7417a8a85b665711d2af884fbc5e17930884e7f7767c949708eed8e47660e8
4
+ data.tar.gz: a7a924672cccfff51ca48b33cf10ee779e6c05789d6f10a9cd9ae99813996fbc
5
5
  SHA512:
6
- metadata.gz: 3a64276962feac768af8a48723edc7c9ca4a94abb71d3fe55696643b903498a4bf2952bc290d3a9cc184c206287f9fd741019b7092c76d57872c60e0ec1f6ba1
7
- data.tar.gz: 1f568bbb259fe24f8735b40fca04f24efc13a72a14a8a14f9bdcadd643764a6777205950cf0f996cc12e1563ca304be33b247f65249e832c6519cfedabd94499
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\(])'.*'/ => "\\1'value-redacted'".freeze, # literal strings
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
@@ -1,3 +1,3 @@
1
1
  module SqlFootprint
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
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.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: 2019-04-01 00:00:00.000000000 Z
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.0.3
187
+ rubygems_version: 3.1.2
188
188
  signing_key:
189
189
  specification_version: 4
190
190
  summary: Keeps your DBA happy.