myreplicator 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -278,6 +278,7 @@ module Myreplicator
278
278
  update_export(:state => state,
279
279
  :export_finished_at => Time.now,
280
280
  :error => metadata.error)
281
+ raise Exceptions::ExportError.new(metadata.error)
281
282
  end
282
283
  end
283
284
 
@@ -103,8 +103,8 @@ module Myreplicator
103
103
 
104
104
  cmd = Myreplicator.mysql
105
105
  cmd += "#{flags} -u#{db_configs(db)["username"]} -p#{db_configs(db)["password"]} "
106
- cmd += "-h#{db_host} "
107
106
 
107
+ cmd += "-h#{db_host} "
108
108
  cmd += db_configs(db)["port"].blank? ? "-P3306 " : "-P#{db_configs(db)["port"]} "
109
109
  cmd += "--execute=\"#{options[:sql]}\" "
110
110
  cmd += " > #{options[:filepath]} "
@@ -175,7 +175,7 @@ module Myreplicator
175
175
  cmd += "-u#{db_configs(db)["username"]} -p#{db_configs(db)["password"]} "
176
176
  end
177
177
 
178
- cmd += "-h#{db_host} " if db_configs(db)["host"].blank?
178
+ cmd += "-h#{db_host} "
179
179
  cmd += db_configs(db)["port"].blank? ? "-P3306 " : "-P#{db_configs(db)["port"]} "
180
180
  cmd += "--execute=\"#{get_outfile_sql(options)}\" "
181
181
 
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myreplicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -370,7 +370,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
370
370
  version: '0'
371
371
  segments:
372
372
  - 0
373
- hash: -1612188071744648438
373
+ hash: 45298977780065472
374
374
  required_rubygems_version: !ruby/object:Gem::Requirement
375
375
  none: false
376
376
  requirements:
@@ -379,7 +379,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
379
379
  version: '0'
380
380
  segments:
381
381
  - 0
382
- hash: -1612188071744648438
382
+ hash: 45298977780065472
383
383
  requirements: []
384
384
  rubyforge_project:
385
385
  rubygems_version: 1.8.23