railties 7.0.6 → 7.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5d76894f7ee82ab8df507eb093d755cf69c3dd1e0adb6c965865a0ea7fa1ea5
4
- data.tar.gz: 1b8a5c3cbe5056a657f92de640b7d8db16d29b7bbc1efc226e8e37f5c0fe810d
3
+ metadata.gz: '039b80e88b28979daa3d0245fae1abb2b8745a8ab9a201f546980d24be671464'
4
+ data.tar.gz: '02748eb13c60203b519ecdfde3c5ce27246b8b3b331920ead5c76a11189a0e07'
5
5
  SHA512:
6
- metadata.gz: f6af0cb8b05213f42dc7f656d3b0df7097f39337b2cdfa3e8ee383d76ff78f21b966a180bd2459a104c32c90bfd8553a6c1b2e83c468aa9a77dc7301ddae16e0
7
- data.tar.gz: f0e75011cf18bb845a82c80f632fa2fa40e2054e44d26659abc93b5b9938880c647dd09eaba5062391745307e64b2c2fc24603f3565e5e4b21c0edd9b8c44608
6
+ metadata.gz: c88e5f59851ad2eb35a41e0aff7f099fadb665449aaa97a38b766606cfd70dbd4fcd5b215b7839aa7f2e2ec4a7a112f8a2235e3c62fce32d672ed54a575257ae
7
+ data.tar.gz: 0273a856d8370ed84550b133083d76076ee8a34252715de41b38722d58dca3f5ce155b7c851e9c089ebec69fae02d873ab0c8b0813649a83e7906febcb1cc497
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
- ## Rails 7.0.6 (June 29, 2023) ##
1
+ ## Rails 7.0.8 (September 09, 2023) ##
2
+
3
+ * Omit `webdrivers` gem dependency from `Gemfile` template
4
+
5
+ *Sean Doyle*
6
+
7
+ ## Rails 7.0.7.2 (August 22, 2023) ##
8
+
9
+ * No changes.
10
+
11
+
12
+ ## Rails 7.0.7.1 (August 22, 2023) ##
2
13
 
14
+ * No changes.
15
+
16
+
17
+ ## Rails 7.0.7 (August 09, 2023) ##
18
+
19
+ * Update default scaffold templates to set 303 (See Other) as status code
20
+ on redirect for the update action for XHR requests other than GET or POST
21
+ to avoid issues (e.g browsers trying to follow the redirect using the
22
+ original request method resulting in double PATCH/PUT)
23
+
24
+ *Guillermo Iguaran*
25
+
26
+
27
+ ## Rails 7.0.6 (June 29, 2023) ##
3
28
  * Avoid escaping paths when editing credentials.
4
29
 
5
30
  *Jonathan Hefner*
@@ -230,7 +230,6 @@ module Rails
230
230
  active_support.cache_format_version = 7.0
231
231
  active_support.use_rfc4122_namespaced_uuids = true
232
232
  active_support.executor_around_test_case = true
233
- active_support.isolation_level = :thread
234
233
  active_support.disable_to_s_conversion = true
235
234
  end
236
235
 
@@ -9,7 +9,7 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 7
11
11
  MINOR = 0
12
- TINY = 6
12
+ TINY = 8
13
13
  PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -63,6 +63,8 @@ group :test do
63
63
  # Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
64
64
  gem "capybara"
65
65
  gem "selenium-webdriver"
66
+ <%- if RUBY_VERSION < "3.0" -%>
66
67
  gem "webdrivers"
68
+ <% end %>
67
69
  end
68
70
  <%- end -%>
@@ -40,11 +40,6 @@
40
40
  # and asynchronous queries will then be enabled.
41
41
  # Rails.application.config.active_support.executor_around_test_case = true
42
42
 
43
- # Define the isolation level of most of Rails internal state.
44
- # If you use a fiber based server or job processor, you should set it to `:fiber`.
45
- # Otherwise the default of `:thread` if preferable.
46
- # Rails.application.config.active_support.isolation_level = :thread
47
-
48
43
  # Set both the `:open_timeout` and `:read_timeout` values for `:smtp` delivery method.
49
44
  # Rails.application.config.action_mailer.smtp_timeout = 5
50
45
 
@@ -34,7 +34,7 @@ class <%= controller_class_name %>Controller < ApplicationController
34
34
  # PATCH/PUT <%= route_url %>/1
35
35
  def update
36
36
  if @<%= orm_instance.update("#{singular_table_name}_params") %>
37
- redirect_to <%= redirect_resource_name %>, notice: <%= %("#{human_name} was successfully updated.") %>
37
+ redirect_to <%= redirect_resource_name %>, notice: <%= %("#{human_name} was successfully updated.") %>, status: :see_other
38
38
  else
39
39
  render :edit, status: :unprocessable_entity
40
40
  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: 7.0.6
4
+ version: 7.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-06-29 00:00:00.000000000 Z
11
+ date: 2023-09-09 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: 7.0.6
19
+ version: 7.0.8
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: 7.0.6
26
+ version: 7.0.8
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: 7.0.6
33
+ version: 7.0.8
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: 7.0.6
40
+ version: 7.0.8
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 7.0.6
103
+ version: 7.0.8
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: 7.0.6
110
+ version: 7.0.8
111
111
  description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
112
112
  email: david@loudthinking.com
113
113
  executables:
@@ -422,12 +422,12 @@ licenses:
422
422
  - MIT
423
423
  metadata:
424
424
  bug_tracker_uri: https://github.com/rails/rails/issues
425
- changelog_uri: https://github.com/rails/rails/blob/v7.0.6/railties/CHANGELOG.md
426
- documentation_uri: https://api.rubyonrails.org/v7.0.6/
425
+ changelog_uri: https://github.com/rails/rails/blob/v7.0.8/railties/CHANGELOG.md
426
+ documentation_uri: https://api.rubyonrails.org/v7.0.8/
427
427
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
428
- source_code_uri: https://github.com/rails/rails/tree/v7.0.6/railties
428
+ source_code_uri: https://github.com/rails/rails/tree/v7.0.8/railties
429
429
  rubygems_mfa_required: 'true'
430
- post_install_message:
430
+ post_install_message:
431
431
  rdoc_options:
432
432
  - "--exclude"
433
433
  - "."
@@ -444,8 +444,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
444
444
  - !ruby/object:Gem::Version
445
445
  version: '0'
446
446
  requirements: []
447
- rubygems_version: 3.4.13
448
- signing_key:
447
+ rubygems_version: 3.4.18
448
+ signing_key:
449
449
  specification_version: 4
450
450
  summary: Tools for creating, working with, and running Rails applications.
451
451
  test_files: []