geordi 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/dumple +6 -3
  2. data/lib/geordi/version.rb +1 -1
  3. metadata +9 -5
  4. checksums.yaml +0 -15
data/bin/dumple CHANGED
@@ -62,13 +62,16 @@ begin
62
62
 
63
63
  puts "> Dumping database for \"#{environment}\" environment ..."
64
64
 
65
- host = config['host'] || 'localhost'
65
+ host = config['host']
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}"
69
+ system "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path} -h#{host || 'localhost'}"
70
70
  when /postgres/
71
- command = "PGPASSWORD=\"#{config['password']}\" pg_dump -U\"#{config['username']}\" #{config['database']} -Fc -f #{dump_path} -h#{host}"
71
+ command = "PGPASSWORD=\"#{config['password']}\" pg_dump -U\"#{config['username']}\" #{config['database']} -Fc -f #{dump_path}"
72
+ if host
73
+ command << " -h#{host}"
74
+ end
72
75
  if port = config['port']
73
76
  command << " -p #{port}"
74
77
  end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.4.0'
2
+ VERSION = '1.4.1'
3
3
  end
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Henning Koch
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2016-08-12 00:00:00.000000000 Z
12
+ date: 2016-08-19 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: thor
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -128,7 +131,6 @@ files:
128
131
  homepage: http://makandra.com
129
132
  licenses:
130
133
  - MIT
131
- metadata: {}
132
134
  post_install_message: ! '* Binary `geordi` installed
133
135
 
134
136
  '
@@ -136,20 +138,22 @@ rdoc_options: []
136
138
  require_paths:
137
139
  - lib
138
140
  required_ruby_version: !ruby/object:Gem::Requirement
141
+ none: false
139
142
  requirements:
140
143
  - - ! '>='
141
144
  - !ruby/object:Gem::Version
142
145
  version: '0'
143
146
  required_rubygems_version: !ruby/object:Gem::Requirement
147
+ none: false
144
148
  requirements:
145
149
  - - ! '>='
146
150
  - !ruby/object:Gem::Version
147
151
  version: '0'
148
152
  requirements: []
149
153
  rubyforge_project: geordi
150
- rubygems_version: 2.4.8
154
+ rubygems_version: 1.8.23.2
151
155
  signing_key:
152
- specification_version: 4
156
+ specification_version: 3
153
157
  summary: Collection of command line tools we use in our daily work with Ruby, Rails
154
158
  and Linux at makandra.
155
159
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YjgwZTFjZTY5YTQxNTY2NWRlZTgxMTUyZTczZjIxM2NiZWEwMTBhYQ==
5
- data.tar.gz: !binary |-
6
- YzY3OTBkOWVkY2Q2NjQxMTc2ZDg4MjI1OTY0ZmNmYWZkYTkzMzdkMA==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- MWVmYjZjNDQzYTY3OTI0ODAyZDNkYjc1NDllOGVlYjg0ZjllMzVjYTZlOWQy
10
- YjliMGZhYWFhZDRlZjE5YTZkODA0YWQyMGQyMjQxMjhjMGU1OWYwNWQ3ZDRh
11
- MjI5YjNkMzdiNjA0YTNmZDRlZTdjNWM4N2Q0NTNmZDE5NmNhOTI=
12
- data.tar.gz: !binary |-
13
- NmNlNzU1YjczYTQwNTRiZGY3NWE4ZmJmOWI4Y2M4MmNhNTViODk3NDZkMTRi
14
- YjJiNGM0NGU0NTkzNGU4ZGUyZDZjMDIxOTlkYmE1YjVhYTRiYzYwODg0NGEy
15
- M2ZkNWI2MjQ0ODI1NmU4NWFlY2QyMmUxYTQzZDI5ZDQ4MzQyY2E=