sqlconv 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sqlconv +1 -2
  3. data/sqlconv.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbf6ec2d877cd13e69263d99346eab703db7e08ff7c1a0be9c474cf686f2772f
4
- data.tar.gz: 154c0190cb9966dd514d2567ea51777ce261dd252843019108288f308d50ebee
3
+ metadata.gz: ad0c506523fe07b486e58a73ad256547b3a03394d5f8e402b59d493d1acb4c50
4
+ data.tar.gz: c2efba37696f826f4a83895c8c69bad6b12f8a3b8c5bc4522ecffefad128ebe6
5
5
  SHA512:
6
- metadata.gz: 77e70dd1a66cb5595c39237c84980900bc2aff13af90564dcc56d0957a8a5943c6508c863ec65878e9bd701d191d29c2a3307f55a55c8497707236586ce62314
7
- data.tar.gz: b96cf6c61e4c649ac95f2f332489e5dc67f36e5f6c8ab76aacaa1eaaa8090f34eb9ef7cb640e02448dbcfa2415bdbac1af15e136abd5f31e83bc7e3da7e12edd
6
+ metadata.gz: e51b127c2bfad28a2667818b21e26c620949a249f11c7733c6c9b4860ce52247bfc981bfceccb2ed2cc630b21b5274d7cfa04733f19851a8828b5436ab0726d0
7
+ data.tar.gz: dd824c0c63c49cd82c38a16a96171d404ae30b9bba0db70f1edb068d7c8b21a2f2938a51f280b3badd019de9a61402542e0250c930731d7d9ca032a236ea4fdd
data/bin/sqlconv CHANGED
@@ -13,7 +13,7 @@ class StringScanner
13
13
  end
14
14
 
15
15
  def scan_str(str)
16
- if string[pos, str.size] == str
16
+ if peek(str.size) == str
17
17
  self.pos += str.size
18
18
  str
19
19
  else
@@ -83,7 +83,6 @@ def conv(tab1, map1, tab2, map2, dump)
83
83
 
84
84
  # parse insert statements
85
85
  if data.scan_str("(") or data.scan_str(into + "(")
86
- /(?:insert into (['"`]?)#{tab1}\1 values )?\(/io
87
86
  cols = data.scan_while(/('.*?(?<!\\)'|(?>[^',()]+)|,)/, 2)
88
87
  cols.empty? and (warn "bad sql parse: '#{line}'" or next)
89
88
  data.scan(/\)[;,]\s*/)
data/sqlconv.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "sqlconv"
5
- s.version = "0.5.1"
5
+ s.version = "0.6.0"
6
6
  s.author = "Steve Shreeve"
7
7
  s.email = "steve.shreeve@gmail.com"
8
8
  s.summary = "Handy utility to massage MySQL dump files"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-01 00:00:00.000000000 Z
11
+ date: 2018-06-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Allows mapping columns from a source to a destination table
14
14
  email: steve.shreeve@gmail.com