railties 6.0.0.rc2 → 6.0.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +28 -3
- data/lib/rails/api/task.rb +1 -0
- data/lib/rails/application.rb +1 -1
- data/lib/rails/autoloaders.rb +4 -0
- data/lib/rails/engine/configuration.rb +3 -2
- data/lib/rails/gem_version.rb +2 -2
- data/lib/rails/generators/app_base.rb +2 -2
- data/lib/rails/generators/rails/app/app_generator.rb +1 -0
- data/lib/rails/generators/rails/app/templates/Gemfile.tt +1 -1
- data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt +6 -1
- data/lib/rails/generators/rails/app/templates/config/puma.rb.tt +3 -0
- data/lib/rails/generators/rails/app/templates/gitignore.tt +1 -0
- data/lib/rails/generators/rails/app/templates/package.json.tt +3 -3
- data/lib/rails/generators/rails/plugin/templates/gitignore.tt +1 -0
- data/lib/rails/info.rb +1 -1
- data/lib/rails/tasks/zeitwerk.rake +2 -2
- metadata +14 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6572c25a1151fa7278fbf9a16f9a74550fa0a9ddc415ccfc79a1974a75ed96f
|
4
|
+
data.tar.gz: d689161b04f03c42b54b544cd70aa50c66d7977f928956d8a85d6de7f12652f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e43137bb2e2bc8bc71e960f25850cb04d67ae61ca5bb298f11319be5b48e10b5c0e84f6235be55e03c228026b59e4d2e182fe1e6abfdc51e1ed2511e363eb7
|
7
|
+
data.tar.gz: cacc3d9e85bca3b48590429d72f58c0c1be2c6050a2d726512e5a967c61ab8027fc6ff2da6fd0e6d0d796d5910194ffcbb8fe270cb31859eaaa4e6ca55d04940
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,34 @@
|
|
1
|
-
## Rails 6.0.
|
1
|
+
## Rails 6.0.1.rc1 (October 31, 2019) ##
|
2
|
+
|
3
|
+
* The `zeitwerk:check` Rake task reports files outside the app's root
|
4
|
+
directory, as in engines loaded from gems.
|
2
5
|
|
3
|
-
*
|
6
|
+
*Xavier Noria*
|
4
7
|
|
8
|
+
* Fixed a possible error when using the evented file update checker.
|
9
|
+
|
10
|
+
*Yuji Yaginuma*
|
5
11
|
|
6
|
-
|
12
|
+
* The sqlite3 database files created by the parallel testing feature are
|
13
|
+
included in the default `.gitignore` file for newly-generated apps.
|
14
|
+
|
15
|
+
*Yasuo Honda*
|
16
|
+
|
17
|
+
* `rails new` generates a `.keep` file in `tmp/pids`. This fixes starting
|
18
|
+
a server via `rackup` instead of `rails server`.
|
19
|
+
|
20
|
+
*Rafael Mendonça França*
|
21
|
+
|
22
|
+
|
23
|
+
## Rails 6.0.0 (August 16, 2019) ##
|
24
|
+
|
25
|
+
* `Rails.autoloaders.log!` is a logging shortcut to get the activity of the
|
26
|
+
loaders printed to standard output. May be handy for troubleshooting.
|
27
|
+
|
28
|
+
*Xavier Noria*
|
29
|
+
|
30
|
+
|
31
|
+
## Rails 6.0.0.rc2 (July 22, 2019) ##
|
7
32
|
|
8
33
|
* The new configuration point `config.add_autoload_paths_to_load_path` allows
|
9
34
|
users to opt-out from adding autoload paths to `$LOAD_PATH`. This flag is
|
data/lib/rails/api/task.rb
CHANGED
data/lib/rails/application.rb
CHANGED
@@ -350,7 +350,7 @@ module Rails
|
|
350
350
|
files, dirs = config.watchable_files.dup, config.watchable_dirs.dup
|
351
351
|
|
352
352
|
ActiveSupport::Dependencies.autoload_paths.each do |path|
|
353
|
-
dirs[path.to_s] = [:rb]
|
353
|
+
File.file?(path) ? files << path.to_s : dirs[path.to_s] = [:rb]
|
354
354
|
end
|
355
355
|
|
356
356
|
[files, dirs]
|
data/lib/rails/autoloaders.rb
CHANGED
@@ -6,7 +6,7 @@ module Rails
|
|
6
6
|
class Engine
|
7
7
|
class Configuration < ::Rails::Railtie::Configuration
|
8
8
|
attr_reader :root
|
9
|
-
attr_accessor :middleware
|
9
|
+
attr_accessor :middleware, :javascript_path
|
10
10
|
attr_writer :eager_load_paths, :autoload_once_paths, :autoload_paths
|
11
11
|
|
12
12
|
def initialize(root = nil)
|
@@ -14,6 +14,7 @@ module Rails
|
|
14
14
|
@root = root
|
15
15
|
@generators = app_generators.dup
|
16
16
|
@middleware = Rails::Configuration::MiddlewareStackProxy.new
|
17
|
+
@javascript_path = "javascript"
|
17
18
|
end
|
18
19
|
|
19
20
|
# Holds generators configuration:
|
@@ -40,7 +41,7 @@ module Rails
|
|
40
41
|
|
41
42
|
paths.add "app", eager_load: true,
|
42
43
|
glob: "{*,*/concerns}",
|
43
|
-
exclude:
|
44
|
+
exclude: ["assets", javascript_path]
|
44
45
|
paths.add "app/assets", glob: "*"
|
45
46
|
paths.add "app/controllers", eager_load: true
|
46
47
|
paths.add "app/channels", eager_load: true, glob: "**/*_channel.rb"
|
data/lib/rails/gem_version.rb
CHANGED
@@ -192,7 +192,7 @@ module Rails
|
|
192
192
|
def web_server_gemfile_entry # :doc:
|
193
193
|
return [] if options[:skip_puma]
|
194
194
|
comment = "Use Puma as the app server"
|
195
|
-
GemfileEntry.new("puma", "~>
|
195
|
+
GemfileEntry.new("puma", "~> 4.1", comment)
|
196
196
|
end
|
197
197
|
|
198
198
|
def include_all_railties? # :doc:
|
@@ -307,7 +307,7 @@ module Rails
|
|
307
307
|
def assets_gemfile_entry
|
308
308
|
return [] if options[:skip_sprockets]
|
309
309
|
|
310
|
-
GemfileEntry.version("sass-rails", "
|
310
|
+
GemfileEntry.version("sass-rails", ">= 6", "Use SCSS for stylesheets")
|
311
311
|
end
|
312
312
|
|
313
313
|
def webpacker_gemfile_entry
|
@@ -72,7 +72,7 @@ group :test do
|
|
72
72
|
# Easy installation and use of web drivers to run system tests with browsers
|
73
73
|
gem 'webdrivers'
|
74
74
|
end
|
75
|
-
<%- end -%>
|
76
75
|
|
76
|
+
<%- end -%>
|
77
77
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
78
78
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
data/lib/rails/generators/rails/app/templates/config/initializers/new_framework_defaults_6_0.rb.tt
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
# Rails.application.config.action_dispatch.use_cookies_with_metadata = true
|
18
18
|
|
19
19
|
# Change the return value of `ActionDispatch::Response#content_type` to Content-Type header without modification.
|
20
|
-
# Rails.application.config.action_dispatch.return_only_media_type_on_content_type =
|
20
|
+
# Rails.application.config.action_dispatch.return_only_media_type_on_content_type = false
|
21
21
|
|
22
22
|
# Return false instead of self when enqueuing is aborted from a callback.
|
23
23
|
# Rails.application.config.active_job.return_false_on_aborted_enqueue = true
|
@@ -38,3 +38,8 @@
|
|
38
38
|
# MailDeliveryJob to ensure all delivery jobs are processed properly.
|
39
39
|
# Make sure your entire app is migrated and stable on 6.0 before using this setting.
|
40
40
|
# Rails.application.config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"
|
41
|
+
|
42
|
+
# Enable the same cache key to be reused when the object being cached of type
|
43
|
+
# `ActiveRecord::Relation` changes by moving the volatile information (max updated at and count)
|
44
|
+
# of the relation's cache key into the cache version to support recycling cache key.
|
45
|
+
# Rails.application.config.active_record.collection_cache_versioning = true
|
@@ -16,6 +16,9 @@ port ENV.fetch("PORT") { 3000 }
|
|
16
16
|
#
|
17
17
|
environment ENV.fetch("RAILS_ENV") { "development" }
|
18
18
|
|
19
|
+
# Specifies the `pidfile` that Puma will use.
|
20
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
21
|
+
|
19
22
|
# Specifies the number of `workers` to boot in clustered mode.
|
20
23
|
# Workers are forked web server processes. If using threads and workers together
|
21
24
|
# the concurrency of the application would be max `threads` * `workers`.
|
@@ -2,10 +2,10 @@
|
|
2
2
|
"name": "<%= app_name %>",
|
3
3
|
"private": true,
|
4
4
|
"dependencies": {
|
5
|
-
"@rails/ujs": "^6.0.0
|
5
|
+
"@rails/ujs": "^6.0.0"<% unless options[:skip_turbolinks] %>,
|
6
6
|
"turbolinks": "^5.2.0"<% end -%><% unless skip_active_storage? %>,
|
7
|
-
"@rails/activestorage": "^6.0.0
|
8
|
-
"@rails/actioncable": "^6.0.0
|
7
|
+
"@rails/activestorage": "^6.0.0"<% end -%><% unless options[:skip_action_cable] %>,
|
8
|
+
"@rails/actioncable": "^6.0.0"<% end %>
|
9
9
|
},
|
10
10
|
"version": "0.1.0"
|
11
11
|
}
|
data/lib/rails/info.rb
CHANGED
@@ -46,8 +46,8 @@ namespace :zeitwerk do
|
|
46
46
|
begin
|
47
47
|
eager_load[]
|
48
48
|
rescue NameError => e
|
49
|
-
if e.message =~ /expected file .*? to define constant \
|
50
|
-
abort $&.sub(
|
49
|
+
if e.message =~ /expected file .*? to define constant [\w:]+/
|
50
|
+
abort $&.sub(/expected file #{Regexp.escape(Rails.root.to_s)}./, "expected file ")
|
51
51
|
else
|
52
52
|
raise
|
53
53
|
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.0.
|
4
|
+
version: 6.0.1.rc1
|
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: 2019-
|
11
|
+
date: 2019-10-31 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.0.
|
19
|
+
version: 6.0.1.rc1
|
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.0.
|
26
|
+
version: 6.0.1.rc1
|
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.0.
|
33
|
+
version: 6.0.1.rc1
|
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.0.
|
40
|
+
version: 6.0.1.rc1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -92,14 +92,14 @@ dependencies:
|
|
92
92
|
requirements:
|
93
93
|
- - '='
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: 6.0.
|
95
|
+
version: 6.0.1.rc1
|
96
96
|
type: :development
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - '='
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: 6.0.
|
102
|
+
version: 6.0.1.rc1
|
103
103
|
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
|
104
104
|
email: david@loudthinking.com
|
105
105
|
executables:
|
@@ -431,8 +431,11 @@ homepage: https://rubyonrails.org
|
|
431
431
|
licenses:
|
432
432
|
- MIT
|
433
433
|
metadata:
|
434
|
-
|
435
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.
|
434
|
+
bug_tracker_uri: https://github.com/rails/rails/issues
|
435
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.1.rc1/railties/CHANGELOG.md
|
436
|
+
documentation_uri: https://api.rubyonrails.org/v6.0.1.rc1/
|
437
|
+
mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk
|
438
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.1.rc1/railties
|
436
439
|
post_install_message:
|
437
440
|
rdoc_options:
|
438
441
|
- "--exclude"
|
@@ -450,7 +453,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
450
453
|
- !ruby/object:Gem::Version
|
451
454
|
version: 1.3.1
|
452
455
|
requirements: []
|
453
|
-
rubygems_version: 3.0.
|
456
|
+
rubygems_version: 3.0.3
|
454
457
|
signing_key:
|
455
458
|
specification_version: 4
|
456
459
|
summary: Tools for creating, working with, and running Rails applications.
|