railties 6.1.7.4 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cb28f9be4135fda6f4d1b1a331a87d9f9bc137019887d807620b6c61e6730ee
4
- data.tar.gz: f34a53d8db641e8c6e97ee73d376535d3371a840277f922bd63187d70147ea82
3
+ metadata.gz: 5eb9db788c96f6198a6cbc23783bf379ddca72ca4abf011fc34434b626046f91
4
+ data.tar.gz: 1fa83fa05bf375a9b35b2e7f5306abcaae52dadc74a6545634bf02912f326ebe
5
5
  SHA512:
6
- metadata.gz: 96b1fb01bca4b933d751b281f5c347a3867fe3aa8fcf4b50581c019d9eca74436166435c875c5cbd78e83162bb15113c46cfece2b40b241888dd0b85fdea2c6d
7
- data.tar.gz: baaa112f2ab0e8560f5262567cbf4c0db8242bc246488e32095011cdef0413a169ca1ba3372a7026a57c6474bd505f1dab17410d36640c9ac69a58580b11e5f1
6
+ metadata.gz: c79f2c2747449b12b35c3755d11938fc8d29bdcdc87b50d36e7d79beabfa41f306bd2d4595dbc33e83788ea8b392a884f435a7d99f7de63cfabd6bf161e71382
7
+ data.tar.gz: e50cb09292e0fa3a3ec5d84324af7d40ead6d19f6a104f2345120960b16b730fd338c9d0fc28f17243ca3762c279b93361a308e1d5b75b510ce0faf8e696f922
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 6.1.7.5 (August 22, 2023) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 6.1.7.4 (June 26, 2023) ##
2
7
 
3
8
  * No changes.
@@ -10,7 +10,7 @@ module Rails
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
12
  TINY = 7
13
- PRE = "4"
13
+ PRE = "5"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
data/lib/rails/secrets.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "yaml"
4
+ require "tempfile"
4
5
  require "active_support/message_encryptor"
5
6
 
6
7
  module Rails
@@ -87,17 +88,18 @@ module Rails
87
88
  end
88
89
 
89
90
  def writing(contents)
90
- tmp_file = "#{File.basename(path)}.#{Process.pid}"
91
- tmp_path = File.join(Dir.tmpdir, tmp_file)
92
- IO.binwrite(tmp_path, contents)
91
+ file_name = "#{File.basename(path)}.#{Process.pid}"
93
92
 
94
- yield tmp_path
93
+ Tempfile.create(["", "-" + file_name]) do |tmp_file|
94
+ tmp_path = Pathname.new(tmp_file)
95
+ tmp_path.binwrite contents
95
96
 
96
- updated_contents = IO.binread(tmp_path)
97
+ yield tmp_path
97
98
 
98
- write(updated_contents) if updated_contents != contents
99
- ensure
100
- FileUtils.rm(tmp_path) if File.exist?(tmp_path)
99
+ updated_contents = tmp_path.binread
100
+
101
+ write(updated_contents) if updated_contents != contents
102
+ end
101
103
  end
102
104
 
103
105
  def encryptor
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railties
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.7.4
4
+ version: 6.1.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-26 00:00:00.000000000 Z
11
+ date: 2023-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 6.1.7.4
19
+ version: 6.1.7.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 6.1.7.4
26
+ version: 6.1.7.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 6.1.7.4
33
+ version: 6.1.7.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 6.1.7.4
40
+ version: 6.1.7.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 6.1.7.4
89
+ version: 6.1.7.5
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 6.1.7.4
96
+ version: 6.1.7.5
97
97
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
98
98
  email: david@loudthinking.com
99
99
  executables:
@@ -426,10 +426,10 @@ licenses:
426
426
  - MIT
427
427
  metadata:
428
428
  bug_tracker_uri: https://github.com/rails/rails/issues
429
- changelog_uri: https://github.com/rails/rails/blob/v6.1.7.4/railties/CHANGELOG.md
430
- documentation_uri: https://api.rubyonrails.org/v6.1.7.4/
429
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.7.5/railties/CHANGELOG.md
430
+ documentation_uri: https://api.rubyonrails.org/v6.1.7.5/
431
431
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
432
- source_code_uri: https://github.com/rails/rails/tree/v6.1.7.4/railties
432
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.7.5/railties
433
433
  rubygems_mfa_required: 'true'
434
434
  post_install_message:
435
435
  rdoc_options: