dumper 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module Dumper
6
6
  include Dumper::Utility::LoggingMethods
7
7
 
8
8
  API_VERSION = 1
9
- MAX_FILESIZE = 2.gigabytes
9
+ MAX_FILESIZE = 2147483648 # 2.gigabytes
10
10
 
11
11
  attr_reader :stack, :max_filesize
12
12
 
@@ -5,7 +5,7 @@ module Dumper
5
5
  FILE_EXT = 'tar.gz'
6
6
 
7
7
  def command
8
- "cd #{tmpdir} && #{dump_tool_path} #{connection_options} #{additional_options} && tar -czf #{filename} ."
8
+ "cd #{tmpdir} && #{dump_tool_path} #{connection_options} #{additional_options} && tar -czf #{filename} --exclude='#{filename}' ."
9
9
  end
10
10
 
11
11
  def connection_options
@@ -44,6 +44,8 @@ module Dumper
44
44
  begin
45
45
  pid, stdin, stdout, stderr = popen4(@database.command)
46
46
  stdin.close
47
+ (out = stdout.read).empty? or log out, :debug
48
+ (err = stderr.read).empty? or log err, :error
47
49
  rescue
48
50
  Process.kill(:INT, pid) rescue SystemCallError
49
51
  abort_with("dump error: #{$!}", :dump_error)
@@ -1,3 +1,3 @@
1
1
  module Dumper
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dumper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-28 00:00:00.000000000 Z
12
+ date: 2012-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json