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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b457aace5d72669ba3ed04ec9ed826dbc1828773d8e0236edd8928f4a360b4e9
4
- data.tar.gz: 73a7333915bea522eec6f1361b4db6b177f78cb14a3741ec6834e3521855e77f
3
+ metadata.gz: 6d11e7add09b8c7e3de38aa8b0f5a2f6e82920e1a933dbe470eb1436541f9413
4
+ data.tar.gz: 75a53790ba8b139edd4744c4e20cdbc75c185e5a6737b6f5ffb01da9fcbcec84
5
5
  SHA512:
6
- metadata.gz: 7479b00d0759dfb5517b187d3f57e18b0408876efe999b5bfc02425936422f0f624dcec8403be2519d0f8baee1452657a9ec70517cb404c4c1d75118e29ca2d4
7
- data.tar.gz: f14ce57aac4745c7ec3ddaa166fc3ff840f88c2763709801fe3338ee76cf9e4e3d6821e6c11d083cb26b3763c825c94beb241c41268e69d336df29712f31bf2a
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
@@ -164,6 +164,7 @@ module ActiveSupport
164
164
 
165
165
  send(name, *args, &block)
166
166
  end
167
+ ruby2_keywords(:method_missing) if respond_to?(:ruby2_keywords, true)
167
168
  end
168
169
 
169
170
  attr_accessor :attributes
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "pathname"
4
- require "tmpdir"
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
- tmp_file = "#{Process.pid}.#{content_path.basename.to_s.chomp('.enc')}"
73
- tmp_path = Pathname.new File.join(Dir.tmpdir, tmp_file)
74
- tmp_path.binwrite contents
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
- yield tmp_path
76
+ yield tmp_path
77
77
 
78
- updated_contents = tmp_path.binread
78
+ updated_contents = tmp_path.binread
79
79
 
80
- write(updated_contents) if updated_contents != contents
81
- ensure
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
 
@@ -9,8 +9,8 @@ module ActiveSupport
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 6
13
- PRE = "1"
12
+ TINY = 7
13
+ PRE = "10"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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\d]+)([A-Z][a-z])/, '\1_\2')
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.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: 2022-07-12 00:00:00.000000000 Z
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.6.1/activesupport/CHANGELOG.md
361
- documentation_uri: https://api.rubyonrails.org/v6.1.6.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.6.1/activesupport
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.3.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.