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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 489bea8286589e29979cc43cf03b39cbc394a41b81b33664a879b23f276067a4
4
- data.tar.gz: fb26d86462da6cc0a2e6133aea107cfb17c558d3ff2365c583a16c05b2daf7c2
3
+ metadata.gz: 690bf9e02892d529e78567352d170e04fef38c90f826ae8a553a98d52f1de53b
4
+ data.tar.gz: 226880d73ba31c5f0ea7b2eaeeac45ae9dd5d4f6d74b1b56a5e5425a44f5ebec
5
5
  SHA512:
6
- metadata.gz: 4ed6944eb00111122969e9140ba625d8ee4b7a8a692c61f500df87a52c7d31028b9035467342ee0b16d9af9f4256c94eef584865efa15aac06430afad4a181da
7
- data.tar.gz: 844c7d699ee01fcee3de06c115748f3d7c5c4781efa01e56927fa6961930b9e9e92201fbaf590f8bdf9b02f1b9ff48412a345551d8aff1355454ac6379b89228
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,4 +1,4 @@
1
- Copyright (c) 2004-2020 David Heinemeier Hansson
1
+ Copyright (c) 2004-2022 David Heinemeier Hansson
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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
- # We need to check whether the user passed the database the
102
- # first time around to show a consistent error message to people
103
- # relying on 2-level database configuration.
104
-
105
- @db_config = configurations.configs_for(env_name: environment, name: database, include_replicas: true)
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
- "'#{database}' database is not configured for '#{environment}'. Available configuration: #{configurations.inspect}"
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.fetch(:database, "primary")
123
+ @options[:database]
121
124
  end
122
125
 
123
126
  private
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 4
13
- PRE = "5"
12
+ TINY = 5
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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
- secrets = YAML.load(ERB.new(preprocess(path)).result) || {}
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.5
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-02-11 00:00:00.000000000 Z
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.4.5
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.4.5
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.4.5
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.4.5
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: '0.13'
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: '0.13'
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.4.5
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.4.5
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.4.5/railties/CHANGELOG.md
430
- documentation_uri: https://api.rubyonrails.org/v6.1.4.5/
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.4.5/railties
433
- post_install_message:
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.2.22
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: []