dumper 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,7 @@ module Dumper
31
31
  end
32
32
 
33
33
  def finalize
34
- FileUtils.remove_entry_secure tmpdir if File.exist? tmpdir
34
+ FileUtils.remove_entry_secure(tmpdir) if tmpdir and File.exist?(tmpdir)
35
35
  end
36
36
  end
37
37
  end
@@ -55,11 +55,11 @@ module Dumper
55
55
 
56
56
  module LoggingMethods
57
57
  def logger
58
- @logger ||= Dumper::Utility::SlimLogger.new("#{Rails.root}/log/dumper_agent.log", 1, 10.megabytes)
58
+ @@logger ||= Dumper::Utility::SlimLogger.new("#{Rails.root}/log/dumper_agent.log", 1, 10.megabytes)
59
59
  end
60
60
 
61
61
  def stdout_logger
62
- @stdout_logger ||= Dumper::Utility::SlimLogger.new(STDOUT)
62
+ @@stdout_logger ||= Dumper::Utility::SlimLogger.new(STDOUT)
63
63
  end
64
64
 
65
65
  def log(msg, level=:info)
@@ -70,6 +70,7 @@ module Dumper
70
70
 
71
71
  def log_last_error
72
72
  log [ $!.class.name, $!.to_s ].join(', ')
73
+ log ("\n" << $!.backtrace.join("\n")), :debug
73
74
  end
74
75
  end
75
76
 
@@ -1,3 +1,3 @@
1
1
  module Dumper
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.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.0.1
4
+ version: 1.0.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-16 00:00:00.000000000 Z
12
+ date: 2012-06-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json