geordi 0.15.4 → 0.15.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/geordi/dump_loader.rb +6 -5
- data/lib/geordi/version.rb +1 -1
- metadata +4 -4
data/lib/geordi/dump_loader.rb
CHANGED
@@ -24,13 +24,14 @@ class DumpLoader
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def source_dump(dump)
|
27
|
-
require '
|
27
|
+
require 'open3'
|
28
28
|
output_buffer = StringIO.new
|
29
|
-
|
30
|
-
|
31
|
-
|
29
|
+
Open3.popen3(db_console_command) do |stdin, stdout, stderr|
|
30
|
+
stdin.puts("source #{dump};")
|
31
|
+
stdin.close
|
32
|
+
output_buffer.write stdout.read
|
33
|
+
output_buffer.write stderr.read
|
32
34
|
end
|
33
|
-
|
34
35
|
output_and_errors = output_buffer.string.split("\n")
|
35
36
|
output = output_and_errors.reject{ |line| line =~ /^ERROR / }
|
36
37
|
errors = output_and_errors.select{ |line| line =~ /^ERROR / }
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 41
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 15
|
9
|
-
-
|
10
|
-
version: 0.15.
|
9
|
+
- 5
|
10
|
+
version: 0.15.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-
|
18
|
+
date: 2013-06-14 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|