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: 114e2c496338ee88ac67ddededcc2025ed8e31dd
4
- data.tar.gz: 45f6a8862d3cf64eee93a0c088e15220287a61cc
3
+ metadata.gz: 8aa2e16d1dbeb37a850d4f29b9976e2b97af04cb
4
+ data.tar.gz: b9d37cfff133a4bf90d61b3f9c2e20a42e68d5eb
5
5
  SHA512:
6
- metadata.gz: da3ca55424ca83cfe7a7699519a0b62f03fa9e5d0401a9c5ccc3abd45aec8208aa2cf8cf0e35f5b5b4d1d73f12d4cf6db9979a51553516d03961e46755bf98c3
7
- data.tar.gz: 8527cb4647cee1b0c2fce8059173707f9ac69515165224d5b50cc7b600c312e63efc28090701d5a9ed2c32637de4d2f007b5f6f29e64f1878636beb860e212e8
6
+ metadata.gz: 7428f4f737d838eca82d1ea3efdee001fd6a8d3f88ed244e1ce036d7adaaa7fc2ac833723a05ed647a34284345b3de4d27b6cbd6401dfef1664acb1ac0a857fa
7
+ data.tar.gz: 694198ea6585501a6c0cfa56aee42c94811c0d05b3e83a5b2cac9bcf3650cba8cef5a9484fd44fa58705c2a166ead565f2580e040b151473607eb5e3171ad81a
@@ -1,4 +1,5 @@
1
1
  require "active_support/core_ext/date_and_time/compatibility"
2
+ require "active_support/core_ext/module/remove_method"
2
3
 
3
4
  class DateTime
4
5
  include DateAndTime::Compatibility
@@ -7,7 +7,7 @@ module ActiveSupport
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 0
10
+ TINY = 1
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -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
- rescue_with_handler(exception.cause, object: object)
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.0
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-04-27 00:00:00.000000000 Z
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.11
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: