activesupport 8.0.5 → 8.0.5.2

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: e4952a5142700edad7b5bf62c0753a93f202873d96a6ad7dd5b231348ec9d917
4
- data.tar.gz: 7f832339286eeeec1fda1097ee5ad50b6efc3ae44bb1aa483524907dcb3aebd7
3
+ metadata.gz: 22241404cc02e580fd1591eae63cc0ba8bbab2603e9d48e6baa6cefa4bbd6f1d
4
+ data.tar.gz: f62c817eb1ab3a3e9a3fa37d6cefabe0d52f8ac7da6de2bf9dcd0812d230eede
5
5
  SHA512:
6
- metadata.gz: 5b4825cf61610686c03d69e648665d4d886e1c755a0f3bc4db14d1bb81331e0c11a79d3c96295185972cb0852e894d66bdc03d2c6787e8c6f3629f4d18e8ce43
7
- data.tar.gz: 5b7ee77d3c6a4f36a7746d2ce9a2d49d2cc18c9a4e17931626d3dc87c09edb12236180a6ef5d1c7dddcbf7cdafed9d97edb9b9146ed0d56231b286573f41795b
6
+ metadata.gz: ef9a83ed926881ac15c0f83c7786a439e79d21c3c3cbc0e72d9a2f39be2995f28bf4c62b78b1deaa079face57ed15b10200d10384f1f3dcef649b153acbf3dff
7
+ data.tar.gz: ec380533afadf6d311e522744467722aefc8575776fd1b9b8a686f645f6fcb2b4468826d5c87998e069a2ba2b7a7445adeefac43fae6a06fa181b00b5b6999bc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## Rails 8.0.5.2 (November 03, 2026) ##
2
+
3
+ * `ActiveSupport::Inflector#safe_constantize` matches the constant name in a
4
+ `LoadError` message as a literal string instead of building a `Regexp`
5
+ from it.
6
+
7
+ The name's segments were interpolated unescaped into the pattern, so input
8
+ that reaches `safe_constantize`, such as the channel identifier in an Action
9
+ Cable subscribe command, chose the source passed to the regexp compiler.
10
+
11
+ [GHSA-8474-xrp6-wh69]
12
+
13
+ *Jeremy Daer*
14
+
15
+ ## Rails 8.0.5.1 (July 29, 2026) ##
16
+
17
+ * No changes.
18
+
19
+
1
20
  ## Rails 8.0.5 (March 24, 2026) ##
2
21
 
3
22
  * Fix inflections to better handle overlapping acronyms.
@@ -10,7 +10,7 @@ module ActiveSupport
10
10
  MAJOR = 8
11
11
  MINOR = 0
12
12
  TINY = 5
13
- PRE = nil
13
+ PRE = "2"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -319,7 +319,8 @@ module ActiveSupport
319
319
  e.name.to_s == camel_cased_word.to_s)
320
320
  rescue LoadError => e
321
321
  message = e.respond_to?(:original_message) ? e.original_message : e.message
322
- raise unless /Unable to autoload constant #{const_regexp(camel_cased_word)}/.match?(message)
322
+ constant_name = camel_cased_word.split("::").find { |part| !part.empty? } || camel_cased_word
323
+ raise unless message.include?("Unable to autoload constant #{constant_name}")
323
324
  end
324
325
 
325
326
  # Returns the suffix that should be added to a number to denote the position
@@ -349,23 +350,6 @@ module ActiveSupport
349
350
  end
350
351
 
351
352
  private
352
- # Mounts a regular expression, returned as a string to ease interpolation,
353
- # that will match part by part the given constant.
354
- #
355
- # const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?"
356
- # const_regexp("::") # => "::"
357
- def const_regexp(camel_cased_word)
358
- parts = camel_cased_word.split("::")
359
-
360
- return Regexp.escape(camel_cased_word) if parts.empty?
361
-
362
- last = parts.pop
363
-
364
- parts.reverse!.inject(last) do |acc, part|
365
- part.empty? ? acc : "#{part}(::#{acc})?"
366
- end
367
- end
368
-
369
353
  # Applies inflection rules for +singularize+ and +pluralize+.
370
354
  #
371
355
  # If passed an optional +locale+ parameter, the uncountables will be
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: 8.0.5
4
+ version: 8.0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -494,10 +494,10 @@ licenses:
494
494
  - MIT
495
495
  metadata:
496
496
  bug_tracker_uri: https://github.com/rails/rails/issues
497
- changelog_uri: https://github.com/rails/rails/blob/v8.0.5/activesupport/CHANGELOG.md
498
- documentation_uri: https://api.rubyonrails.org/v8.0.5/
497
+ changelog_uri: https://github.com/rails/rails/blob/v8.0.5.2/activesupport/CHANGELOG.md
498
+ documentation_uri: https://api.rubyonrails.org/v8.0.5.2/
499
499
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
500
- source_code_uri: https://github.com/rails/rails/tree/v8.0.5/activesupport
500
+ source_code_uri: https://github.com/rails/rails/tree/v8.0.5.2/activesupport
501
501
  rubygems_mfa_required: 'true'
502
502
  rdoc_options:
503
503
  - "--encoding"
@@ -515,7 +515,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
515
515
  - !ruby/object:Gem::Version
516
516
  version: '0'
517
517
  requirements: []
518
- rubygems_version: 4.0.6
518
+ rubygems_version: 4.0.20
519
519
  specification_version: 4
520
520
  summary: A toolkit of support libraries and Ruby core extensions extracted from the
521
521
  Rails framework.