geordi 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTA5MjYyNWM4ZDMzMDRkNDgyNWFhNzEwYzc0NDdmYmIzNjJlMGI5YQ==
4
+ NTk2YTFmM2FlNWE5ZWU2YWU2OGIwNjRhZThhYTZhYzE1OGI3ZmVkNA==
5
5
  data.tar.gz: !binary |-
6
- ODM3MzAyYmVmODRlZmM4YjIxMTU5YTYzMzI4MWVkN2E5NDY2MWQ2YQ==
6
+ OWJiMjlmNWQzNTdhMmI1NTMyOTc5NTBhYWVlN2Q2Y2M3ZjBjNDMxMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MDIyNTI0MWE2ZjFlNjNkMjMyM2NjMTE4NDU0NjZlYzljZmYzNzMxOGRiMzJh
10
- ZmUzY2RkN2QxNmU1OWM5ZGFmMWIyY2YyYTIyZDI4NWI0ZGVlNzE5N2FiYjBh
11
- NmRkN2Y2YTA4NTRhYTZiMjMwNTdhYjQzNDIxYzk0Y2FkYzNhODg=
9
+ YmI5ZDYzMWZkNWRmYzAxZDBkZjFiOTNkMThjZDFlNjUyMDlhNWNhMmJiNGFh
10
+ MzJiZGE5Zjc0MjhkZTkyYjgxYjU1ODExOGMyMjM3ZmNjZmI3Mzk1MGFhNDc1
11
+ NWM4ZTNjYWEwYzRhYmI5MTNkMDcxMjAwMmUyMDFhOWM4YTA3OWI=
12
12
  data.tar.gz: !binary |-
13
- YjM1NWE5NDY1ZGYxN2FlNDQyNWJmMzc0YmQxNWIxNTAyYTFlNmMyOTdlNTQ4
14
- Yzc0ODlhNTI4M2FmODIxNjdhNTEyNzE5ZmU3MDFmZDVjZTJkYmVkZDg2Njky
15
- OTljY2UwYmFlNjZmMDg5MTZmN2NjZWU4OWZmMDI1ZmY5MWMwNDY=
13
+ NGQzZTJkNGJkMmY3Y2FjYmFiNGFkNTg4YzVmMmY0NmM2OTViOTNhN2FlYmNm
14
+ Nzg5NjUyZTcxMTRhNjNkZTZiMjE4NDM5MGYzNjFjMThkNGYzYzVmMTQ0YmYy
15
+ MDUyZmE4ODg0NGYxNmY1YWE2ZjE5ZmFkNjkwN2Y2MzA5ZWIwMDA=
@@ -21,8 +21,8 @@ module Geordi
21
21
 
22
22
  def mysql_command
23
23
  command = 'mysql --silent'
24
- command << ' -p' << config['password']
25
- command << ' -u' << config['username']
24
+ command << ' -p' << config['password'] if config['password']
25
+ command << ' -u' << config['username'] if config['username']
26
26
  command << ' --default-character-set=utf8'
27
27
  command << ' ' << config['database']
28
28
  command << ' < ' << dump_file
@@ -32,8 +32,8 @@ module Geordi
32
32
  def postgresql_command
33
33
  ENV['PGPASSWORD'] = config['password']
34
34
  command = 'pg_restore --no-owner --clean'
35
- command << ' --username=' << config['username']
36
- command << ' --host=' << config['host']
35
+ command << ' --username=' << config['username'] if config['username']
36
+ command << ' --host=' << config['host'] if config['host']
37
37
  command << ' --dbname=' << config['database']
38
38
  command << ' ' << dump_file
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.2.1'
2
+ VERSION = '1.2.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.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch