geordi 1.6.3 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile.lock +1 -1
  3. data/bin/dumple +14 -7
  4. data/lib/geordi/version.rb +1 -1
  5. metadata +13 -18
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0e26ceeff6cda59134bc4de5c42ec1eda7429efd
4
+ data.tar.gz: 373751d1fb7b6c03ba89198ab331b99d0640b03c
5
+ SHA512:
6
+ metadata.gz: 4621eb4fe40f8602b96a5e7b3109eeb88bd115e3f671b612fca290553b096174ee0702c0d556ae62f6150d291a388eddaf2650a838dcb3ee8d4875cb3ed9a110
7
+ data.tar.gz: 3f2be2f0c32692fa7abfeafb7d670358988ad76d16ca2a0ca4852983a28fe97c7be46493cf59fd376ccc0f4f86bad0b7b2ad8bf03e8cc7fe8ed028ff617babe1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- geordi (1.6.3)
4
+ geordi (1.6.4)
5
5
  thor (>= 0.18.0)
6
6
 
7
7
  GEM
data/bin/dumple CHANGED
@@ -65,27 +65,34 @@ begin
65
65
  host = config['host']
66
66
  port = config['port']
67
67
 
68
- case config['adapter']
68
+ dump_command = case config['adapter']
69
69
  when /mysql/
70
- command = "mysqldump -u\"#{config['username']}\" -p\"#{config['password']}\" #{config['database']} -r #{dump_path}"
70
+ command = "mysqldump"
71
+ command << " -u\"#{config['username']}\""
72
+ command << " -p\"#{config['password']}\""
73
+ command << " #{config['database']}"
74
+ command << " -r #{dump_path}"
71
75
  if port
72
76
  command << " -h#{host || '127.0.0.1'} -P#{port}"
73
77
  else
74
78
  command << " -h#{host || 'localhost'}"
75
79
  end
76
-
77
- system(command)
80
+ command
78
81
  when /postgres/
79
- command = "PGPASSWORD=\"#{config['password']}\" pg_dump #{config['database']} --format=custom --clean"
82
+ command = "PGPASSWORD=\"#{config['password']}\""
83
+ command << " pg_dump #{config['database']}"
84
+ command << " --clean"
85
+ command << " --format=custom"
80
86
  command << " --file=#{dump_path}"
81
87
  command << " --username=\"#{config['username']}\""
82
88
  command << " --host=#{host}" if host
83
89
  command << " --port=#{port}" if port
84
-
85
- system(command)
90
+ command
86
91
  else
87
92
  raise "Adapter \"#{config['adapter']} is not supported"
88
93
  end
94
+ success = system(dump_command)
95
+ success or raise "Creating the dump failed"
89
96
 
90
97
  system "chmod 600 #{dump_path}"
91
98
 
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.6.3'
2
+ VERSION = '1.6.4'
3
3
  end
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.3
5
- prerelease:
4
+ version: 1.6.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Henning Koch
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2017-01-24 00:00:00.000000000 Z
11
+ date: 2017-06-13 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: thor
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 0.18.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: 0.18.0
30
27
  description: Collection of command line tools we use in our daily work with Ruby,
@@ -53,8 +50,8 @@ executables:
53
50
  extensions: []
54
51
  extra_rdoc_files: []
55
52
  files:
56
- - .gitignore
57
- - .ruby-version
53
+ - ".gitignore"
54
+ - ".ruby-version"
58
55
  - Gemfile
59
56
  - Gemfile.lock
60
57
  - LICENSE
@@ -132,29 +129,27 @@ files:
132
129
  homepage: http://makandra.com
133
130
  licenses:
134
131
  - MIT
135
- post_install_message: ! '* Binary `geordi` installed
136
-
137
- '
132
+ metadata: {}
133
+ post_install_message: |
134
+ * Binary `geordi` installed
138
135
  rdoc_options: []
139
136
  require_paths:
140
137
  - lib
141
138
  required_ruby_version: !ruby/object:Gem::Requirement
142
- none: false
143
139
  requirements:
144
- - - ! '>='
140
+ - - ">="
145
141
  - !ruby/object:Gem::Version
146
142
  version: '0'
147
143
  required_rubygems_version: !ruby/object:Gem::Requirement
148
- none: false
149
144
  requirements:
150
- - - ! '>='
145
+ - - ">="
151
146
  - !ruby/object:Gem::Version
152
147
  version: '0'
153
148
  requirements: []
154
149
  rubyforge_project: geordi
155
- rubygems_version: 1.8.23.2
150
+ rubygems_version: 2.6.8
156
151
  signing_key:
157
- specification_version: 3
152
+ specification_version: 4
158
153
  summary: Collection of command line tools we use in our daily work with Ruby, Rails
159
154
  and Linux at makandra.
160
155
  test_files: []