sqlconv 0.5.0 → 0.5.1

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 -0
  3. data/sqlconv.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad9e122f339ca74831a6c206d8b148fc89e182ca51d33efbd2732d5a14ecd8c5
4
- data.tar.gz: 54473e10cdd3db7d10db62bdc36d851f76636cf09a6e0ecc9928dca1cf607f97
3
+ metadata.gz: dbf6ec2d877cd13e69263d99346eab703db7e08ff7c1a0be9c474cf686f2772f
4
+ data.tar.gz: 154c0190cb9966dd514d2567ea51777ce261dd252843019108288f308d50ebee
5
5
  SHA512:
6
- metadata.gz: 77c740a056cba408b3b85d56abfd80444b2c61acc109fc1a982fae6a4cbd5de55ff99043eaff3e747aca5b2d03a791f095120cd49d854b50be9dd04fd31c2423
7
- data.tar.gz: 2abfb13941ae049ae887509be5c2ddf194d90f085249d01a54830611659decd3a281092d27635eaa849dcccd5b0fbd31adf045848b0f238017a89a17d58e1fda
6
+ metadata.gz: 77e70dd1a66cb5595c39237c84980900bc2aff13af90564dcc56d0957a8a5943c6508c863ec65878e9bd701d191d29c2a3307f55a55c8497707236586ce62314
7
+ data.tar.gz: b96cf6c61e4c649ac95f2f332489e5dc67f36e5f6c8ab76aacaa1eaaa8090f34eb9ef7cb640e02448dbcfa2415bdbac1af15e136abd5f31e83bc7e3da7e12edd
data/bin/sqlconv CHANGED
@@ -76,6 +76,7 @@ def conv(tab1, map1, tab2, map2, dump)
76
76
  # find source table
77
77
  data.string = dump.read # dump.read(5000) # TODO: Add streaming support
78
78
  into = data.scan_for(/insert into (['"`]?)#{tab1}\1 values /io)
79
+ into or (warn "unable to find insert statements for the '#{tab1}' table" or exit)
79
80
 
80
81
  # process each line
81
82
  loop do
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.0"
5
+ s.version = "0.5.1"
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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sqlconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Shreeve