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 +4 -4
- data/CHANGELOG.md +19 -0
- data/lib/active_support/gem_version.rb +1 -1
- data/lib/active_support/inflector/methods.rb +2 -18
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22241404cc02e580fd1591eae63cc0ba8bbab2603e9d48e6baa6cefa4bbd6f1d
|
|
4
|
+
data.tar.gz: f62c817eb1ab3a3e9a3fa37d6cefabe0d52f8ac7da6de2bf9dcd0812d230eede
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
@@ -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
|
-
|
|
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.
|
|
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.
|