aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2019-03-27 22:14:39 -0400
committerGitHub <noreply@github.com>2019-03-27 22:14:39 -0400
commita7723b80f031f3b19c2fc73f054f6e06c3a88141 (patch)
tree004f91e60a6d2d67c158cee6138a827cb8bc671e /activesupport/CHANGELOG.md
parent5f043c0094173a26bea1cfc15c6d3bdbe8c9954b (diff)
parentca2a3bcaad04b522a08b89aafaf0ecb6db7d05ca (diff)
downloadrails-a7723b80f031f3b19c2fc73f054f6e06c3a88141.tar.gz
rails-a7723b80f031f3b19c2fc73f054f6e06c3a88141.tar.bz2
rails-a7723b80f031f3b19c2fc73f054f6e06c3a88141.zip
Merge pull request #35776 from owst/fix-range-comparisons-with-excluded-end-range
Fix bug in Range comparisons when comparing to excluded-end Range
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 0551f0781f..f30249cb3f 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,3 +1,17 @@
+* Fix bug in Range comparisons when comparing to an excluded-end Range
+
+ Before:
+
+ (1..10).cover?(1...11) => false
+
+ After:
+
+ (1..10).cover?(1...11) => true
+
+ With the same change for `Range#include?` and `Range#===`.
+
+ *Owen Stephens*
+
* Use weak references in descendants tracker to allow anonymous subclasses to
be garbage collected.