File tree Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Expand file tree Collapse file tree 4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
1
+ * Deprecate ` String#mb_chars ` and ` ActiveSupport::Multibyte::Chars ` .
2
+
3
+ These APIs are a relic of the Ruby 1.8 days when Ruby strings weren't encoding
4
+ aware. There is no legitimate reasons to need these APIs today.
5
+
6
+ * Jean Boussier*
7
+
1
8
* Deprecate ` ActiveSupport::Configurable `
2
9
3
10
* Sean Doyle*
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ module Multibyte
12
12
#
13
13
# ActiveSupport::Multibyte.proxy_class = CharsForUTF32
14
14
def self . proxy_class = ( klass )
15
+ ActiveSupport . deprecator . warn (
16
+ "ActiveSupport::Multibyte.proxy_class= is deprecated and will be removed in Rails 8.2. " \
17
+ "Use normal string methods instead."
18
+ )
15
19
@proxy_class = klass
16
20
end
17
21
Original file line number Diff line number Diff line change 5
5
require "active_support/core_ext/string/behavior"
6
6
require "active_support/core_ext/module/delegation"
7
7
8
+ ActiveSupport . deprecator . warn (
9
+ "ActiveSupport::Multibyte::Chars and String#mb_chars are deprecated and will be removed in Rails 8.2. " \
10
+ "Use normal string methods instead."
11
+ )
12
+
8
13
module ActiveSupport # :nodoc:
9
14
module Multibyte # :nodoc:
10
15
# = Active Support \Multibyte \Chars
Original file line number Diff line number Diff line change 34
34
# Disable available locale checks to avoid warnings running the test suite.
35
35
I18n . enforce_available_locales = false
36
36
37
+ ActiveSupport . deprecator . silence do
38
+ ActiveSupport ::Multibyte . const_get ( :Chars )
39
+ end
40
+
37
41
class ActiveSupport ::TestCase
38
42
if Process . respond_to? ( :fork ) && !Gem . win_platform?
39
43
parallelize
You can’t perform that action at this time.
0 commit comments