geordi 0.15.4 → 0.15.5

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.
@@ -24,13 +24,14 @@ class DumpLoader
24
24
  end
25
25
 
26
26
  def source_dump(dump)
27
- require 'pty'
27
+ require 'open3'
28
28
  output_buffer = StringIO.new
29
- PTY.spawn(db_console_command) do |output, input, pid|
30
- input.write("source #{dump};\nexit;\n")
31
- output_buffer.write output.read
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 / }
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.15.4'
2
+ VERSION = '0.15.5'
3
3
  end
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: 43
4
+ hash: 41
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 15
9
- - 4
10
- version: 0.15.4
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-04-22 00:00:00 +02:00
18
+ date: 2013-06-14 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21