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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 472446038c0bec9000ba7861f9e4d41b5d1cf3be
4
- data.tar.gz: 9406bfd4eb1b50205b7d8b76751be74e96ca8e3b
3
+ metadata.gz: f2808176972e7b35b01a34cc34f9894a7c0e09d4
4
+ data.tar.gz: b67e95f379439301c92c2f66d17b24f8a253ef1c
5
5
  SHA512:
6
- metadata.gz: 75ab01cb607988f3f291660d4fc4efea32d4abcc018fb0344c70ebdf9f1e3403b22bcb45b69389f318de113ab63b13a9d8f19ed574c356056077b0ed7e78ed33
7
- data.tar.gz: 5b6d1fa63a334b86808f0e2de34df9ec9b5f4d321f1dc162827a856019dbb740f0f9dcc8488d3aa65892521fa1cf358381c98b46cd0bccf8c2699ba2aeb57075
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
@@ -1,3 +1,3 @@
1
1
  module SqlFootprint
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.8.0'.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: 0.7.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-12 00:00:00.000000000 Z
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.5.1
184
+ rubygems_version: 2.4.8
185
185
  signing_key:
186
186
  specification_version: 4
187
187
  summary: Keeps your DBA happy.