mysqlknife 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d375284a62187872eddd91fba09f0da91bcc450
4
- data.tar.gz: d556e33bf773b026f4024441949f4fa837760bee
3
+ metadata.gz: a035195f41f18f9df67401eaf9aa6f9793945bf3
4
+ data.tar.gz: 33276a6c3dfe02dd97230bba521a0491c6a1295a
5
5
  SHA512:
6
- metadata.gz: 4a47e344f675bf8ff135010b824c85dd020275f68a962d2863ca710a430863a8a1ac6ce52064747f7f715bc9efa08880b85a334dde026d33f5a688ce6513a999
7
- data.tar.gz: 2fda7a0ba3ad1c17317de5fa03cb3a2836aa28dfe612dae97fb46b3c168b4b361c8209c70501d22df21eadc1c8a5ef6011573564ba3d90f8f3de2cf9dc311407
6
+ metadata.gz: 8402b7c4209d2fcf51aafbb12902492016840299083d9915a3b18e1b24d257d34474053b2fd8049d069420b541bbb7a4ca89bcef70ddc239d9f4cd83bace753e
7
+ data.tar.gz: b3831427b4a10f7868dcbe673063c4b296abd0e4c1aa6b6b50be5c5ef7f07a7ec95b3eea6490f907e0657222b6b016c42c50937200abcabefecc5d1a2c05af19
@@ -26,16 +26,16 @@ module Mysqlknife
26
26
  end
27
27
 
28
28
  def execute(sql)
29
- begin
30
- conn = Mysql2::Client.new(host: @host,
31
- port: @port,
32
- username: @username,
33
- password: @password,
34
- database: @database)
35
- return conn.query(sql)
36
- rescue
37
- exit(1)
38
- end
29
+ conn = Mysql2::Client.new(host: @host,
30
+ port: @port,
31
+ username: @username,
32
+ password: @password,
33
+ database: @database)
34
+ return conn.query(sql)
35
+ rescue => e
36
+ puts sql
37
+ puts e
38
+ exit(1)
39
39
  end
40
40
  end
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Mysqlknife
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mysqlknife
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicola Strappazzon C.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-22 00:00:00.000000000 Z
11
+ date: 2014-03-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: MySQL knife tools
14
14
  email: nicola51980@gmail.com