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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (1.6.2)
4
+ geordi (1.6.3)
5
5
  thor (>= 0.18.0)
6
6
 
7
7
  GEM
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.6.2'
2
+ VERSION = '1.6.3'
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.6.2
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-18 00:00:00.000000000 Z
12
+ date: 2017-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor