openstax_rescue_from 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bf24690f8a8f287e02d04f44588a5a99d9c4fd5
4
- data.tar.gz: 4d93f369b6ae290af96973165e09cde2c3614f37
3
+ metadata.gz: 852b1a3ad1e57449234029b6854de07b895f2938
4
+ data.tar.gz: 5ba86b4744e24377f1fd7bae8d8f4b4835124917
5
5
  SHA512:
6
- metadata.gz: 71e70db5a362c7aebbccf785e2a377734318c95335163933cd89092485dd97e768de566f75fc3798b017be90cc05f26acff7c6a29546ca28fa54a1118192d016
7
- data.tar.gz: 13125e2ad5c2a7dd7907e38bf8ce268afec1bd84eb78513db9419bf594fa09c3fbb829ab2391a167f181b7f2834590c6cd03241dbc0405a1ea6f91b8a06de1d5
6
+ metadata.gz: b4e4171380854d6ecc65985e1853cc2b495ac97dee96008c4b00b443f362a4ced5f97f1f55d949b3c64f00c39925a00db1ba2c3f640b52bc1f6094fbc47b0436
7
+ data.tar.gz: d7df25cb30b713ff98564d84c18b3088a0aacc19f9fa4c3c897ffda24b2b863ef6b8e72829e1b910cf06d7267807b59e45d6057ad3c29b5c7473918369d53f37
@@ -28,11 +28,7 @@ module OpenStax
28
28
  end
29
29
 
30
30
  def cause
31
- @cause ||= if exception.respond_to?(:cause) && exception.cause
32
- ExceptionCauseProxy.new(exception.cause)
33
- else
34
- nil
35
- end
31
+ @cause ||= exception.cause if exception.respond_to?(:cause)
36
32
  end
37
33
 
38
34
  def logger_backtrace
@@ -20,7 +20,7 @@ module OpenStax
20
20
  def record_system_error_recursively!
21
21
  if exception_proxy.cause
22
22
  RescueFrom.register_exception(exception_proxy.cause.class)
23
- @exception_proxy = ExceptionProxy.new(exception_proxy.cause)
23
+ @exception_proxy = ExceptionCauseProxy.new(exception_proxy.cause)
24
24
  record_system_error!("Exception cause")
25
25
  end
26
26
  end
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module RescueFrom
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openstax_rescue_from
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-10-05 00:00:00.000000000 Z
12
+ date: 2017-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails