activesupport 7.2.3.2 → 7.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 410383fdbd3989a1f2dc413ea22163403fbd2906ec49c1828c802256a3510577
4
- data.tar.gz: 63f1977fb840b24a340ac98cfa414998793149a0e358579f2b04243e1ee3aebc
3
+ metadata.gz: 00b56e0cccfa6661d29d9f1704ee5553874e194cca60cb2be1778adcb5aa1c83
4
+ data.tar.gz: 201046e3d5e25d6f61d82efb984c847414d8553dde0dafcd073a3208576782db
5
5
  SHA512:
6
- metadata.gz: a54b2237830338b91eb0609869b4be08ec2bfac741b8ee715949054f07324477db7241597eef7073560583e1af3c3ea2c8b5476722750245d4fec3577ea67c2f
7
- data.tar.gz: ddf2e56f5d1b0d40b688b37d5a32f712fb59726cbc6875b78d4f23dda63453e2ead6d6f2a63e5f5ecdf63ab9bfd635d06d03bcb7c5d13b39323d46f4c41c32a7
6
+ metadata.gz: 9796848b434671fac64d1510be706c6c6076faf126bd5c71c7f2559151006f0750cbe2f53e60526fb49e62bcce7b76598e76a11adefc5f62f4aa611293bbb86b
7
+ data.tar.gz: c906e9c1009d202c44dc4f4fe5f133ac694d88706586ae6f6fa302cbf07de62b29e355d5c36cc381a400bc6e167d9d1a2ae4f01b113436fe3eb67f60063aa236
data/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## Rails 7.2.4 (September 24, 2026) ##
2
+
3
+ * Improve `number_to_delimited` performance when `delimiter_pattern` is not specified.
4
+
5
+ *Shinichi Maeshima*
6
+
7
+ * Silence Dalli 4.0+ warning when using `ActiveSupport::Cache::MemCacheStore`.
8
+
9
+ *zzak*
10
+
11
+ * Fix `ActiveSupport::Inflector.humanize` with international characters.
12
+
13
+ ```ruby
14
+ ActiveSupport::Inflector.humanize("áÉÍÓÚ") # => "Áéíóú"
15
+ ActiveSupport::Inflector.humanize("аБВГДЕ") # => "Абвгде"
16
+ ```
17
+
18
+ *Jose Luis Duran*
19
+
20
+
1
21
  ## Rails 7.2.3.2 (July 29, 2026) ##
2
22
 
3
23
  * No changes.
@@ -90,6 +90,9 @@ module ActiveSupport
90
90
  # The value "compress: false" prevents duplicate compression within Dalli.
91
91
  @mem_cache_options[:compress] = false
92
92
  (OVERRIDDEN_OPTIONS - %i(compress)).each { |name| @mem_cache_options.delete(name) }
93
+ # Set the default serializer for Dalli to prevent warning about
94
+ # inheriting the default serializer.
95
+ @mem_cache_options[:serializer] = Marshal
93
96
  @data = self.class.build_mem_cache(*(addresses + [@mem_cache_options]))
94
97
  end
95
98
 
@@ -4,7 +4,7 @@
4
4
  require "json"
5
5
  require "bigdecimal"
6
6
  require "ipaddr"
7
- require "uri/generic"
7
+ require "uri"
8
8
  require "pathname"
9
9
  require "active_support/core_ext/big_decimal/conversions" # for #to_s
10
10
  require "active_support/core_ext/hash/except"
@@ -9,8 +9,8 @@ module ActiveSupport
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 2
12
- TINY = 3
13
- PRE = "2"
12
+ TINY = 4
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -143,13 +143,13 @@ module ActiveSupport
143
143
  result.delete_suffix!(" id")
144
144
  end
145
145
 
146
- result.gsub!(/([a-z\d]+)/i) do |match|
146
+ result.gsub!(/([[[:alpha:]]\d]+)/i) do |match|
147
147
  match.downcase!
148
148
  inflections.acronyms[match] || match
149
149
  end
150
150
 
151
151
  if capitalize
152
- result.sub!(/\A\w/) do |match|
152
+ result.sub!(/\A[[:alpha:]]/) do |match|
153
153
  match.upcase!
154
154
  match
155
155
  end
@@ -20,7 +20,7 @@ module ActiveSupport
20
20
  # ActiveSupport::JSON.decode("{\"team\":\"rails\",\"players\":\"36\"}")
21
21
  # # => {"team" => "rails", "players" => "36"}
22
22
  def decode(json)
23
- data = ::JSON.parse(json, quirks_mode: true)
23
+ data = ::JSON.parse(json)
24
24
 
25
25
  if ActiveSupport.parse_json_times
26
26
  convert_dates_from(data)
@@ -107,7 +107,7 @@ module ActiveSupport
107
107
 
108
108
  # Encode a "jsonified" Ruby data structure using the JSON gem
109
109
  def stringify(jsonified)
110
- ::JSON.generate(jsonified, quirks_mode: true, max_nesting: false)
110
+ ::JSON.generate(jsonified)
111
111
  end
112
112
  end
113
113
 
@@ -4,7 +4,7 @@ require "bigdecimal"
4
4
  require "date"
5
5
  require "ipaddr"
6
6
  require "pathname"
7
- require "uri/generic"
7
+ require "uri"
8
8
  require "msgpack/bigint"
9
9
  require "active_support/hash_with_indifferent_access"
10
10
  require "active_support/time"
@@ -7,8 +7,6 @@ module ActiveSupport
7
7
  class NumberToDelimitedConverter < NumberConverter # :nodoc:
8
8
  self.validate_float = true
9
9
 
10
- DEFAULT_DELIMITER_REGEX = /(\d)(?=(\d\d\d)+(?!\d))/
11
-
12
10
  def convert
13
11
  parts.join(options[:separator])
14
12
  end
@@ -38,7 +36,7 @@ module ActiveSupport
38
36
  end
39
37
 
40
38
  def delimiter_pattern
41
- options.fetch(:delimiter_pattern, DEFAULT_DELIMITER_REGEX)
39
+ options[:delimiter_pattern]
42
40
  end
43
41
  end
44
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesupport
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.3.2
4
+ version: 7.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -76,6 +76,9 @@ dependencies:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
78
  version: 2.2.5
79
+ - - "<"
80
+ - !ruby/object:Gem::Version
81
+ version: '3'
79
82
  type: :runtime
80
83
  prerelease: false
81
84
  version_requirements: !ruby/object:Gem::Requirement
@@ -83,6 +86,9 @@ dependencies:
83
86
  - - ">="
84
87
  - !ruby/object:Gem::Version
85
88
  version: 2.2.5
89
+ - - "<"
90
+ - !ruby/object:Gem::Version
91
+ version: '3'
86
92
  - !ruby/object:Gem::Dependency
87
93
  name: minitest
88
94
  requirement: !ruby/object:Gem::Requirement
@@ -485,10 +491,10 @@ licenses:
485
491
  - MIT
486
492
  metadata:
487
493
  bug_tracker_uri: https://github.com/rails/rails/issues
488
- changelog_uri: https://github.com/rails/rails/blob/v7.2.3.2/activesupport/CHANGELOG.md
489
- documentation_uri: https://api.rubyonrails.org/v7.2.3.2/
494
+ changelog_uri: https://github.com/rails/rails/blob/v7.2.4/activesupport/CHANGELOG.md
495
+ documentation_uri: https://api.rubyonrails.org/v7.2.4/
490
496
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
491
- source_code_uri: https://github.com/rails/rails/tree/v7.2.3.2/activesupport
497
+ source_code_uri: https://github.com/rails/rails/tree/v7.2.4/activesupport
492
498
  rubygems_mfa_required: 'true'
493
499
  rdoc_options:
494
500
  - "--encoding"
@@ -506,7 +512,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
506
512
  - !ruby/object:Gem::Version
507
513
  version: '0'
508
514
  requirements: []
509
- rubygems_version: 4.0.16
515
+ rubygems_version: 4.0.20
510
516
  specification_version: 4
511
517
  summary: A toolkit of support libraries and Ruby core extensions extracted from the
512
518
  Rails framework.