activesupport 6.1.7.3 → 6.1.7.5
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 +12 -0
- data/lib/active_support/encrypted_file.rb +8 -9
- data/lib/active_support/gem_version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b56b4918f12cca3fb75097f3b3fbd61e3e9f2ab8b4decc69c33a98ffca556b1b
|
4
|
+
data.tar.gz: 8c063b8ab0508738f3cccd883ccb3dc54459232aeff10ebc037ef34e424c6957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 863d31ccc7d7a0ec8910363869b433491768b213c80d15b58a98e68295c8b51c98837efa13533bc75c552fa4a85d7c9e375f6220f813f1d0162fc4322671f999
|
7
|
+
data.tar.gz: fedfac33f0f6e5a6256dfe188c1a57eb90dd6e7c1a4516ffebf91b947a918c1f338ca235da7adce9895baadb005d2b8247504cf4ac315e5ff94654b251aac823
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
## Rails 6.1.7.5 (August 22, 2023) ##
|
2
|
+
|
3
|
+
* Use a temporary file for storing unencrypted files while editing
|
4
|
+
|
5
|
+
[CVE-2023-38037]
|
6
|
+
|
7
|
+
|
8
|
+
## Rails 6.1.7.4 (June 26, 2023) ##
|
9
|
+
|
10
|
+
* No changes.
|
11
|
+
|
12
|
+
|
1
13
|
## Rails 6.1.7.3 (March 13, 2023) ##
|
2
14
|
|
3
15
|
* Implement SafeBuffer#bytesplice
|
@@ -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
|
|
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.7.
|
4
|
+
version: 6.1.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -357,10 +357,10 @@ 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.7.
|
361
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.7.
|
360
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.7.5/activesupport/CHANGELOG.md
|
361
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.7.5/
|
362
362
|
mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
|
363
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.1.7.
|
363
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.7.5/activesupport
|
364
364
|
rubygems_mfa_required: 'true'
|
365
365
|
post_install_message:
|
366
366
|
rdoc_options:
|
@@ -379,7 +379,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
379
379
|
- !ruby/object:Gem::Version
|
380
380
|
version: '0'
|
381
381
|
requirements: []
|
382
|
-
rubygems_version: 3.
|
382
|
+
rubygems_version: 3.3.3
|
383
383
|
signing_key:
|
384
384
|
specification_version: 4
|
385
385
|
summary: A toolkit of support libraries and Ruby core extensions extracted from the
|