Remove deprecated file active_support/core_ext/numeric/inquiry

This commit is contained in:
Rafael Mendonça França 2020-10-28 21:51:17 +00:00
parent b8a8a66993
commit 959af4bfcb
No known key found for this signature in database
GPG Key ID: FC23B6D0F1EEE948
5 changed files with 6 additions and 12 deletions

@ -1,3 +1,7 @@
* Remove deprecated file `active_support/core_ext/numeric/inquiry`.
*Rafael Mendonça França*
* Remove deprecated file `active_support/core_ext/module/reachable`.
*Rafael Mendonça França*

@ -2,7 +2,6 @@
require "active_support/core_ext/big_decimal/conversions"
require "active_support/number_helper"
require "active_support/core_ext/module/deprecation"
module ActiveSupport
module NumericWithFormat

@ -1,5 +0,0 @@
# frozen_string_literal: true
require "active_support/deprecation"
ActiveSupport::Deprecation.warn "Ruby 2.5+ (required by Rails 6) provides Numeric#positive? and Numeric#negative? natively, so requiring active_support/core_ext/numeric/inquiry is no longer necessary. Requiring it will raise LoadError in Rails 6.1."

@ -411,10 +411,4 @@ def test_default_to_s
def test_in_milliseconds
assert_equal 10_000, 10.seconds.in_milliseconds
end
def test_requiring_inquiry_is_deprecated
assert_deprecated do
require "active_support/core_ext/numeric/inquiry"
end
end
end

@ -294,6 +294,8 @@ Please refer to the [Changelog][active-support] for detailed changes.
* Remove deprecated file `active_support/core_ext/module/reachable`.
* Remove deprecated file `active_support/core_ext/numeric/inquiry`.
### Deprecations
### Notable changes