activesupport 6.1.6.1 → 6.1.7.10
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 +66 -0
- data/lib/active_support/core_ext/string/output_safety.rb +4 -0
- data/lib/active_support/current_attributes.rb +1 -0
- data/lib/active_support/encrypted_file.rb +8 -9
- data/lib/active_support/gem_version.rb +2 -2
- data/lib/active_support/inflector/methods.rb +1 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d11e7add09b8c7e3de38aa8b0f5a2f6e82920e1a933dbe470eb1436541f9413
|
4
|
+
data.tar.gz: 75a53790ba8b139edd4744c4e20cdbc75c185e5a6737b6f5ffb01da9fcbcec84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 766b6574b39a45ef1d1030249546e0561a93a51212c615c61b5619f2d722c750b27164bf6635e699eb1157533fc5e73de87abc89e0e9e18a544868cf87a9ca1e
|
7
|
+
data.tar.gz: 765934ca6dc427f1ad29dc81cb4450f7e0fff58178837e7369761006eb9cc5d72d2acc548c5245a6828a10b0403367da4ab6b3529525885fca353ec9bbcd1454
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,74 @@
|
|
1
|
+
## Rails 6.1.7.10 (October 23, 2024) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
|
6
|
+
## Rails 6.1.7.9 (October 15, 2024) ##
|
7
|
+
|
8
|
+
* No changes.
|
9
|
+
|
10
|
+
|
11
|
+
## Rails 6.1.7.8 (June 04, 2024) ##
|
12
|
+
|
13
|
+
* No changes.
|
14
|
+
|
15
|
+
|
16
|
+
## Rails 6.1.7.7 (February 21, 2024) ##
|
17
|
+
|
18
|
+
* No changes.
|
19
|
+
|
20
|
+
|
21
|
+
## Rails 6.1.7.6 (August 22, 2023) ##
|
22
|
+
|
23
|
+
* No changes.
|
24
|
+
|
25
|
+
|
26
|
+
## Rails 6.1.7.5 (August 22, 2023) ##
|
27
|
+
|
28
|
+
* Use a temporary file for storing unencrypted files while editing
|
29
|
+
|
30
|
+
[CVE-2023-38037]
|
31
|
+
|
32
|
+
|
33
|
+
## Rails 6.1.7.4 (June 26, 2023) ##
|
34
|
+
|
35
|
+
* No changes.
|
36
|
+
|
37
|
+
|
38
|
+
## Rails 6.1.7.3 (March 13, 2023) ##
|
39
|
+
|
40
|
+
* Implement SafeBuffer#bytesplice
|
41
|
+
|
42
|
+
[CVE-2023-28120]
|
43
|
+
|
44
|
+
|
45
|
+
## Rails 6.1.7.2 (January 24, 2023) ##
|
46
|
+
|
47
|
+
* No changes.
|
48
|
+
|
49
|
+
|
50
|
+
## Rails 6.1.7.1 (January 17, 2023) ##
|
51
|
+
|
52
|
+
* Avoid regex backtracking in Inflector.underscore
|
53
|
+
|
54
|
+
[CVE-2023-22796]
|
55
|
+
|
56
|
+
|
57
|
+
## Rails 6.1.7 (September 09, 2022) ##
|
58
|
+
|
59
|
+
* No changes.
|
60
|
+
|
61
|
+
|
1
62
|
## Rails 6.1.6.1 (July 12, 2022) ##
|
2
63
|
|
3
64
|
* No changes.
|
4
65
|
|
5
66
|
|
67
|
+
## Rails 6.1.6 (May 09, 2022) ##
|
68
|
+
|
69
|
+
* No changes.
|
70
|
+
|
71
|
+
|
6
72
|
## Rails 6.1.5.1 (April 26, 2022) ##
|
7
73
|
|
8
74
|
* Fix and add protections for XSS in `ActionView::Helpers` and `ERB::Util`.
|
@@ -216,6 +216,10 @@ module ActiveSupport #:nodoc:
|
|
216
216
|
end
|
217
217
|
alias << concat
|
218
218
|
|
219
|
+
def bytesplice(*args, value)
|
220
|
+
super(*args, implicit_html_escape_interpolated_argument(value))
|
221
|
+
end
|
222
|
+
|
219
223
|
def insert(index, value)
|
220
224
|
super(index, html_escape_interpolated_argument(value))
|
221
225
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "pathname"
|
4
|
-
require "
|
4
|
+
require "tempfile"
|
5
5
|
require "active_support/message_encryptor"
|
6
6
|
|
7
7
|
module ActiveSupport
|
@@ -69,17 +69,16 @@ module ActiveSupport
|
|
69
69
|
|
70
70
|
private
|
71
71
|
def writing(contents)
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
Tempfile.create(["", "-" + content_path.basename.to_s.chomp(".enc")]) do |tmp_file|
|
73
|
+
tmp_path = Pathname.new(tmp_file)
|
74
|
+
tmp_path.binwrite contents
|
75
75
|
|
76
|
-
|
76
|
+
yield tmp_path
|
77
77
|
|
78
|
-
|
78
|
+
updated_contents = tmp_path.binread
|
79
79
|
|
80
|
-
|
81
|
-
|
82
|
-
FileUtils.rm(tmp_path) if tmp_path&.exist?
|
80
|
+
write(updated_contents) if updated_contents != contents
|
81
|
+
end
|
83
82
|
end
|
84
83
|
|
85
84
|
|
@@ -93,8 +93,7 @@ module ActiveSupport
|
|
93
93
|
return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word)
|
94
94
|
word = camel_cased_word.to_s.gsub("::", "/")
|
95
95
|
word.gsub!(inflections.acronyms_underscore_regex) { "#{$1 && '_' }#{$2.downcase}" }
|
96
|
-
word.gsub!(/([A-Z
|
97
|
-
word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
|
96
|
+
word.gsub!(/([A-Z])(?=[A-Z][a-z])|([a-z\d])(?=[A-Z])/) { ($1 || $2) << "_" }
|
98
97
|
word.tr!("-", "_")
|
99
98
|
word.downcase!
|
100
99
|
word
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.1.
|
4
|
+
version: 6.1.7.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -357,12 +357,12 @@ licenses:
|
|
357
357
|
- MIT
|
358
358
|
metadata:
|
359
359
|
bug_tracker_uri: https://github.com/rails/rails/issues
|
360
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.1.
|
361
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
360
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.7.10/activesupport/CHANGELOG.md
|
361
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.7.10/
|
362
362
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
363
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.
|
363
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.7.10/activesupport
|
364
364
|
rubygems_mfa_required: 'true'
|
365
|
-
post_install_message:
|
365
|
+
post_install_message:
|
366
366
|
rdoc_options:
|
367
367
|
- "--encoding"
|
368
368
|
- UTF-8
|
@@ -379,8 +379,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
379
379
|
- !ruby/object:Gem::Version
|
380
380
|
version: '0'
|
381
381
|
requirements: []
|
382
|
-
rubygems_version: 3.
|
383
|
-
signing_key:
|
382
|
+
rubygems_version: 3.5.16
|
383
|
+
signing_key:
|
384
384
|
specification_version: 4
|
385
385
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|
386
386
|
Rails framework.
|