railties 6.1.4.5 → 6.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/MIT-LICENSE +1 -1
- data/lib/rails/commands/credentials/credentials_command.rb +2 -1
- data/lib/rails/commands/dbconsole/dbconsole_command.rb +10 -7
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/rails/app/templates/Gemfile.tt +1 -1
- data/lib/rails/secrets.rb +4 -1
- metadata +18 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 690bf9e02892d529e78567352d170e04fef38c90f826ae8a553a98d52f1de53b
|
4
|
+
data.tar.gz: 226880d73ba31c5f0ea7b2eaeeac45ae9dd5d4f6d74b1b56a5e5425a44f5ebec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162a0e93a231aaaad5c2c9a3e28396345b53e3ea6bc91de50d4efb0a0f1e14524c4a45c1d5e4be68fe7f1b8bc40c296d3187e10c784a5c6a936e84438e54c1b0
|
7
|
+
data.tar.gz: 60083023cb39da285050e673ab7840e524762cebef71b892524f65b61f7d164cff93349db2f39b1a52e37885714356a74a9c7966957fbea42e33751567517153
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
## Rails 6.1.5 (March 09, 2022) ##
|
2
|
+
|
3
|
+
* In `zeitwerk` mode, setup the `once` autoloader first, and the `main` autoloader after it.
|
4
|
+
This order plays better with shared namespaces.
|
5
|
+
|
6
|
+
*Xavier Noria*
|
7
|
+
|
8
|
+
* Handle paths with spaces when editing credentials.
|
9
|
+
|
10
|
+
*Alex Ghiculescu*
|
11
|
+
|
12
|
+
* Support Psych 4 when loading secrets.
|
13
|
+
|
14
|
+
*Nat Morcos*
|
15
|
+
|
16
|
+
|
17
|
+
## Rails 6.1.4.7 (March 08, 2022) ##
|
18
|
+
|
19
|
+
* No changes.
|
20
|
+
|
21
|
+
|
22
|
+
## Rails 6.1.4.6 (February 11, 2022) ##
|
23
|
+
|
24
|
+
* No changes.
|
25
|
+
|
26
|
+
|
1
27
|
## Rails 6.1.4.5 (February 11, 2022) ##
|
2
28
|
|
3
29
|
* No changes.
|
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "pathname"
|
4
|
+
require "shellwords"
|
4
5
|
require "active_support"
|
5
6
|
require "rails/command/helpers/editor"
|
6
7
|
require "rails/command/environment_argument"
|
@@ -87,7 +88,7 @@ module Rails
|
|
87
88
|
|
88
89
|
def change_credentials_in_system_editor
|
89
90
|
credentials.change do |tmp_path|
|
90
|
-
system("#{ENV["EDITOR"]} #{tmp_path}")
|
91
|
+
system("#{ENV["EDITOR"]} #{Shellwords.escape(tmp_path)}")
|
91
92
|
end
|
92
93
|
end
|
93
94
|
|
@@ -98,15 +98,18 @@ module Rails
|
|
98
98
|
def db_config
|
99
99
|
return @db_config if defined?(@db_config)
|
100
100
|
|
101
|
-
#
|
102
|
-
# first
|
103
|
-
|
104
|
-
|
105
|
-
|
101
|
+
# If the user provided a database, use that. Otherwise find
|
102
|
+
# the first config in the database.yml
|
103
|
+
if database
|
104
|
+
@db_config = configurations.configs_for(env_name: environment, name: database, include_replicas: true)
|
105
|
+
else
|
106
|
+
@db_config = configurations.find_db_config(environment)
|
107
|
+
end
|
106
108
|
|
107
109
|
unless @db_config
|
110
|
+
missing_db = database ? "'#{database}' database is not" : "No databases are"
|
108
111
|
raise ActiveRecord::AdapterNotSpecified,
|
109
|
-
"
|
112
|
+
"#{missing_db} configured for '#{environment}'. Available configuration: #{configurations.inspect}"
|
110
113
|
end
|
111
114
|
|
112
115
|
@db_config
|
@@ -117,7 +120,7 @@ module Rails
|
|
117
120
|
end
|
118
121
|
|
119
122
|
def database
|
120
|
-
@options
|
123
|
+
@options[:database]
|
121
124
|
end
|
122
125
|
|
123
126
|
private
|
data/lib/rails/gem_version.rb
CHANGED
@@ -68,7 +68,7 @@ end
|
|
68
68
|
group :test do
|
69
69
|
# Adds support for Capybara system testing and selenium driver
|
70
70
|
gem 'capybara', '>= 3.26'
|
71
|
-
gem 'selenium-webdriver'
|
71
|
+
gem 'selenium-webdriver', '>= 4.0.0.rc1'
|
72
72
|
# Easy installation and use of web drivers to run system tests with browsers
|
73
73
|
gem 'webdrivers'
|
74
74
|
end
|
data/lib/rails/secrets.rb
CHANGED
@@ -25,7 +25,10 @@ module Rails
|
|
25
25
|
paths.each_with_object(Hash.new) do |path, all_secrets|
|
26
26
|
require "erb"
|
27
27
|
|
28
|
-
|
28
|
+
source = ERB.new(preprocess(path)).result
|
29
|
+
secrets = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(source) : YAML.load(source)
|
30
|
+
secrets ||= {}
|
31
|
+
|
29
32
|
all_secrets.merge!(secrets["shared"].deep_symbolize_keys) if secrets["shared"]
|
30
33
|
all_secrets.merge!(secrets[env].deep_symbolize_keys) if secrets[env]
|
31
34
|
end
|
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.
|
4
|
+
version: 6.1.5
|
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: 2022-
|
11
|
+
date: 2022-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.1.
|
19
|
+
version: 6.1.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.
|
26
|
+
version: 6.1.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.
|
33
|
+
version: 6.1.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.
|
40
|
+
version: 6.1.5
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '12.2'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '12.2'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: thor
|
57
57
|
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.
|
89
|
+
version: 6.1.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.
|
96
|
+
version: 6.1.5
|
97
97
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
98
98
|
email: david@loudthinking.com
|
99
99
|
executables:
|
@@ -426,11 +426,12 @@ 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.
|
430
|
-
documentation_uri: https://api.rubyonrails.org/v6.1.
|
429
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.1.5/railties/CHANGELOG.md
|
430
|
+
documentation_uri: https://api.rubyonrails.org/v6.1.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.
|
433
|
-
|
432
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.1.5/railties
|
433
|
+
rubygems_mfa_required: 'true'
|
434
|
+
post_install_message:
|
434
435
|
rdoc_options:
|
435
436
|
- "--exclude"
|
436
437
|
- "."
|
@@ -447,8 +448,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
447
448
|
- !ruby/object:Gem::Version
|
448
449
|
version: '0'
|
449
450
|
requirements: []
|
450
|
-
rubygems_version: 3.
|
451
|
-
signing_key:
|
451
|
+
rubygems_version: 3.3.7
|
452
|
+
signing_key:
|
452
453
|
specification_version: 4
|
453
454
|
summary: Tools for creating, working with, and running Rails applications.
|
454
455
|
test_files: []
|