ey_stonith 0.1.2 → 0.1.3

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.
@@ -33,7 +33,9 @@ module EY
33
33
  end
34
34
 
35
35
  def body
36
- process_payload(payload)
36
+ result = process_payload(payload)
37
+ def result.bytesize() size end unless result.respond_to?(:bytesize)
38
+ result
37
39
  end
38
40
 
39
41
  def payload
@@ -33,7 +33,11 @@ module EY
33
33
  Stonith.meta_data = @options[:meta_data] if @options[:meta_data]
34
34
  Stonith.logger = Logger.new(@config.log_path)
35
35
  Stonith.logger.level = Logger::INFO
36
- EM.run { Box.new(@config, @history).start }
36
+ begin
37
+ EM.run { Box.new(@config, @history).start }
38
+ rescue Exception => e
39
+ Stonith.logger.info "#{e.class.to_s}: #{e.message}\n#{e.backtrace.join("\n")}"
40
+ end
37
41
  end
38
42
  end
39
43
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ezra Zygmuntowicz
@@ -41,8 +41,8 @@ dependencies:
41
41
  segments:
42
42
  - 0
43
43
  - 0
44
- - 56
45
- version: 0.0.56
44
+ - 58
45
+ version: 0.0.58
46
46
  type: :runtime
47
47
  version_requirements: *id002
48
48
  - !ruby/object:Gem::Dependency