activesupport 5.1.0 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activesupport might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aa2e16d1dbeb37a850d4f29b9976e2b97af04cb
|
4
|
+
data.tar.gz: b9d37cfff133a4bf90d61b3f9c2e20a42e68d5eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7428f4f737d838eca82d1ea3efdee001fd6a8d3f88ed244e1ce036d7adaaa7fc2ac833723a05ed647a34284345b3de4d27b6cbd6401dfef1664acb1ac0a857fa
|
7
|
+
data.tar.gz: 694198ea6585501a6c0cfa56aee42c94811c0d05b3e83a5b2cac9bcf3650cba8cef5a9484fd44fa58705c2a166ead565f2580e040b151473607eb5e3171ad81a
|
@@ -84,12 +84,18 @@ module ActiveSupport
|
|
84
84
|
# end
|
85
85
|
#
|
86
86
|
# Returns the exception if it was handled and +nil+ if it was not.
|
87
|
-
def rescue_with_handler(exception, object: self)
|
87
|
+
def rescue_with_handler(exception, object: self, visited_exceptions: [])
|
88
|
+
visited_exceptions << exception
|
89
|
+
|
88
90
|
if handler = handler_for_rescue(exception, object: object)
|
89
91
|
handler.call exception
|
90
92
|
exception
|
91
93
|
elsif exception
|
92
|
-
|
94
|
+
if visited_exceptions.include?(exception.cause)
|
95
|
+
nil
|
96
|
+
else
|
97
|
+
rescue_with_handler(exception.cause, object: object, visited_exceptions: visited_exceptions)
|
98
|
+
end
|
93
99
|
end
|
94
100
|
end
|
95
101
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -331,9 +331,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
331
331
|
version: '0'
|
332
332
|
requirements: []
|
333
333
|
rubyforge_project:
|
334
|
-
rubygems_version: 2.6.
|
334
|
+
rubygems_version: 2.6.10
|
335
335
|
signing_key:
|
336
336
|
specification_version: 4
|
337
337
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
338
338
|
Rails framework.
|
339
339
|
test_files: []
|
340
|
+
has_rdoc:
|