geordi 1.6.2 → 1.6.3
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 +1 -1
- data/lib/geordi/dump_loader.rb +8 -8
- data/lib/geordi/version.rb +1 -1
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/lib/geordi/dump_loader.rb
CHANGED
@@ -21,11 +21,11 @@ module Geordi
|
|
21
21
|
|
22
22
|
def mysql_command
|
23
23
|
command = 'mysql --silent'
|
24
|
-
command << ' -p' << config['password'] if config['password']
|
25
|
-
command << ' -u' << config['username'] if config['username']
|
26
|
-
command << ' --port=' << config['port'] if config['port']
|
24
|
+
command << ' -p' << config['password'].to_s if config['password']
|
25
|
+
command << ' -u' << config['username'].to_s if config['username']
|
26
|
+
command << ' --port=' << config['port'].to_s if config['port']
|
27
27
|
command << ' --default-character-set=utf8'
|
28
|
-
command << ' ' << config['database']
|
28
|
+
command << ' ' << config['database'].to_s
|
29
29
|
command << ' < ' << dump_file
|
30
30
|
end
|
31
31
|
alias_method :mysql2_command, :mysql_command
|
@@ -33,10 +33,10 @@ module Geordi
|
|
33
33
|
def postgresql_command
|
34
34
|
ENV['PGPASSWORD'] = config['password']
|
35
35
|
command = 'pg_restore --no-owner --clean'
|
36
|
-
command << ' --username=' << config['username'] if config['username']
|
37
|
-
command << ' --port=' << config['port'] if config['port']
|
38
|
-
command << ' --host=' << config['host'] if config['host']
|
39
|
-
command << ' --dbname=' << config['database']
|
36
|
+
command << ' --username=' << config['username'].to_s if config['username']
|
37
|
+
command << ' --port=' << config['port'].to_s if config['port']
|
38
|
+
command << ' --host=' << config['host'].to_s if config['host']
|
39
|
+
command << ' --dbname=' << config['database'].to_s
|
40
40
|
command << ' ' << dump_file
|
41
41
|
end
|
42
42
|
|
data/lib/geordi/version.rb
CHANGED
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.6.
|
4
|
+
version: 1.6.3
|
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: 2017-01-
|
12
|
+
date: 2017-01-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|