geordi 1.4.1 → 1.4.2

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.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (1.3.2)
4
+ geordi (1.4.2)
5
5
  thor (>= 0.18.0)
6
6
 
7
7
  GEM
data/bin/dumple CHANGED
@@ -53,7 +53,7 @@ begin
53
53
  Dir.mkdir(dump_dir)
54
54
  system("chmod 700 #{dump_dir}")
55
55
  end
56
-
56
+
57
57
  if ARGV.find{ |arg| arg == '--for_download'}
58
58
  dump_path = "#{dump_dir}/dump_for_download.dump"
59
59
  else
@@ -66,7 +66,13 @@ begin
66
66
 
67
67
  case config['adapter']
68
68
  when /mysql/
69
- system "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path} -h#{host || 'localhost'}"
69
+ command = "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path}"
70
+ if port = config['port']
71
+ command << " -h#{host || '127.0.0.1'} -P#{port}"
72
+ else
73
+ command << " -h#{host || 'localhost'}"
74
+ end
75
+ system(command)
70
76
  when /postgres/
71
77
  command = "PGPASSWORD=\"#{config['password']}\" pg_dump -U\"#{config['username']}\" #{config['database']} -Fc -f #{dump_path}"
72
78
  if host
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-19 00:00:00.000000000 Z
12
+ date: 2016-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor