From ead61f4ac85a2bf0fffa436dd034812bbfb5738d Mon Sep 17 00:00:00 2001 From: eregon Date: Tue, 25 Apr 2017 11:42:43 +0000 Subject: no longer rescue exceptions of #<=> when initializing a Range * range.c (range_init): no longer hide the user exception with a ArgumentError, just let the user exception go through. * test/ruby/test_range.rb (test_new): add tests. [Feature #7688] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- NEWS | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 9c805927f6..399f1fe010 100644 --- a/NEWS +++ b/NEWS @@ -46,6 +46,12 @@ with all sufficient information, see the ChangeLog file or Redmine of #coerce. Return nil in #coerce if the coercion is impossible. [Feature #7688] +* Range + * Range#initialize no longer rescue exceptions when comparing begin and + end with #<=> and raise a "bad value for range" ArgumentError + but instead let the exception from the #<=> call go through. + [Feature #7688] + * Regexp * Update Onigmo 6.1.1. * Support absent operator https://github.com/k-takata/Onigmo/issues/82 -- cgit v1.2.3