sql_matchers 1.0.0.pre.rc.3 → 1.0.0.pre.rc.4

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: e0cde4f12d9a94e037920bb6549a52e2ae29f14bcb8eea6efa1ea64dc927b777
4
- data.tar.gz: cf5b0efb6152a3ad11783ee44cc38083468b9e67b001e3eb8b78ced87a985a06
3
+ metadata.gz: 66c3f332209488bc1c19cfa7eba77f74ac7b42d3c7275ed55a9c6cc29376950f
4
+ data.tar.gz: cde1fe3383dbadd8abec952b59c6c606ac026790d7ba7a1d98b667841685439c
5
5
  SHA512:
6
- metadata.gz: 0f310b5513d1bef5ac0259b5d951e397dab137f27407e7ce515fdb82a4cf76177b5fe4e5507150b6a6c6dd37d313a8e43ced4a45cbf04cd366c58673962d2559
7
- data.tar.gz: 2bb8fd1381957561cf6b8cfe91df600053c2e5589b969e154b4061c3e8cb96694f66b46cc7a37e58e755ea268e90646149dd9a73d7f02ca11b852edf8c513e01
6
+ metadata.gz: d88276514b6b24f47a9230fe7a4337f45b138a5b79ff3579f5369179075c7ada5394f96d33aa5e94622dc2dce84c7a916db3a33247e236326c40bf1e77e875fd
7
+ data.tar.gz: 905ed471e547452d52eb00bec72ab6e6cf03ef015194c784902c0ee6ef72249cb973bb486518324843981fdfd6d5bbe8c7414ac307f3396730f9aa0dae2f7077
@@ -5,8 +5,8 @@ require 'anbt-sql-formatter/formatter'
5
5
  module SqlMatchers
6
6
  module Normalizers
7
7
  class Sql
8
+ SELECT_STAR_RE = /[`"]?(\w+)[`"]?\s{,1}\.\s{,1}\*/
8
9
  QUOTED_IDENT_RE = /[`"](\w+)[`"]/
9
- SELECT_STAR_RE = /[`"]?(\w+)[`"]?\s{,1}\*/
10
10
 
11
11
  def normalize(sql) = +sql.gsub(SELECT_STAR_RE, '\1.*')
12
12
  .gsub(QUOTED_IDENT_RE, '\1')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SqlMatchers
4
- VERSION = '1.0.0-rc.3'
4
+ VERSION = '1.0.0-rc.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.rc.3
4
+ version: 1.0.0.pre.rc.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zeke Gabrielse