mirror of https://github.com/rails/rails
Remove deprecated file `active_support/core_ext/numeric/inquiry`
This commit is contained in:
parent
b8a8a66993
commit
959af4bfcb
|
@ -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 @@ class NumericExtFormattingTest < ActiveSupport::TestCase
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue