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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 675e7410955b3db15a67651cf4e38f4d57855bd10bd08464a3d5948060c564c2
4
- data.tar.gz: 595646ed9429a025598744f2dd9dabf7d273662e044e8de5aabe7529afc7a4ad
3
+ metadata.gz: d6572c25a1151fa7278fbf9a16f9a74550fa0a9ddc415ccfc79a1974a75ed96f
4
+ data.tar.gz: d689161b04f03c42b54b544cd70aa50c66d7977f928956d8a85d6de7f12652f5
5
5
  SHA512:
6
- metadata.gz: 0a789a9816b7c53b1a5891b1bec4b23a009c66a0a1e11866e2b73afb5ad4e19d776654211bae88d1d495f793592d6bdf4c3f00a69767df874b71c4653719ca69
7
- data.tar.gz: fdaf816aeba243f1e45c34db27ab3a0742636dc07ff4f21a4c8cf3ea414516f910854da9269c7e636195f56745c93b11dedbf5d117570eb85176d5c6e0a1d8d8
6
+ metadata.gz: 94e43137bb2e2bc8bc71e960f25850cb04d67ae61ca5bb298f11319be5b48e10b5c0e84f6235be55e03c228026b59e4d2e182fe1e6abfdc51e1ed2511e363eb7
7
+ data.tar.gz: cacc3d9e85bca3b48590429d72f58c0c1be2c6050a2d726512e5a967c61ab8027fc6ff2da6fd0e6d0d796d5910194ffcbb8fe270cb31859eaaa4e6ca55d04940
@@ -1,9 +1,34 @@
1
- ## Rails 6.0.0.rc2 (July 22, 2019) ##
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
- * No changes.
6
+ *Xavier Noria*
4
7
 
8
+ * Fixed a possible error when using the evented file update checker.
9
+
10
+ *Yuji Yaginuma*
5
11
 
6
- ## (Unreleased)
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
@@ -18,6 +18,7 @@ module Rails
18
18
  include: %w(
19
19
  README.rdoc
20
20
  lib/active_record/**/*.rb
21
+ lib/arel.rb
21
22
  )
22
23
  },
23
24
 
@@ -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]
@@ -36,6 +36,10 @@ module Rails
36
36
  each { |loader| loader.logger = logger }
37
37
  end
38
38
 
39
+ def log!
40
+ each(&:log!)
41
+ end
42
+
39
43
  def zeitwerk_enabled?
40
44
  Rails.configuration.autoloader == :zeitwerk
41
45
  end
@@ -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: %w(assets javascript)
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"
@@ -9,8 +9,8 @@ module Rails
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 0
12
- TINY = 0
13
- PRE = "rc2"
12
+ TINY = 1
13
+ PRE = "rc1"
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -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", "~> 3.11", comment)
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", "~> 5", "Use SCSS for stylesheets")
310
+ GemfileEntry.version("sass-rails", ">= 6", "Use SCSS for stylesheets")
311
311
  end
312
312
 
313
313
  def webpacker_gemfile_entry
@@ -225,6 +225,7 @@ module Rails
225
225
 
226
226
  def tmp
227
227
  empty_directory_with_keep_file "tmp"
228
+ empty_directory_with_keep_file "tmp/pids"
228
229
  empty_directory "tmp/cache"
229
230
  empty_directory "tmp/cache/assets"
230
231
  end
@@ -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]
@@ -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 = true
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`.
@@ -11,6 +11,7 @@
11
11
  # Ignore the default SQLite database.
12
12
  /db/*.sqlite3
13
13
  /db/*.sqlite3-journal
14
+ /db/*.sqlite3-*
14
15
 
15
16
  <% end -%>
16
17
  # Ignore all logfiles and tempfiles.
@@ -2,10 +2,10 @@
2
2
  "name": "<%= app_name %>",
3
3
  "private": true,
4
4
  "dependencies": {
5
- "@rails/ujs": "^6.0.0-alpha"<% unless options[:skip_turbolinks] %>,
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-alpha"<% end -%><% unless options[:skip_action_cable] %>,
8
- "@rails/actioncable": "^6.0.0-alpha"<% end %>
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
  }
@@ -5,6 +5,7 @@ pkg/
5
5
  <% if sqlite3? -%>
6
6
  <%= dummy_path %>/db/*.sqlite3
7
7
  <%= dummy_path %>/db/*.sqlite3-journal
8
+ <%= dummy_path %>/db/*.sqlite3-*
8
9
  <% end -%>
9
10
  <%= dummy_path %>/log/*.log
10
11
  <% unless options[:skip_javascript] -%>
@@ -68,7 +68,7 @@ module Rails
68
68
 
69
69
  # The RubyGems version, if it's installed.
70
70
  property "RubyGems version" do
71
- Gem::RubyGemsVersion
71
+ Gem::VERSION
72
72
  end
73
73
 
74
74
  property "Rack version" do
@@ -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 \S+/
50
- abort $&.sub(/#{Regexp.escape(Rails.root.to_s)}./, "")
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.0.rc2
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-07-22 00:00:00.000000000 Z
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.0.rc2
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.0.rc2
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.0.rc2
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.0.rc2
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.0.rc2
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.0.rc2
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
- source_code_uri: https://github.com/rails/rails/tree/v6.0.0.rc2/railties
435
- changelog_uri: https://github.com/rails/rails/blob/v6.0.0.rc2/railties/CHANGELOG.md
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.1
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.