Hello community, here is the log from the commit of package rubygem-railties-6.0 for openSUSE:Factory checked in at 2020-05-11 13:39:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-railties-6.0 (Old) and /work/SRC/openSUSE:Factory/.rubygem-railties-6.0.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-railties-6.0" Mon May 11 13:39:35 2020 rev:6 rq:802369 version:6.0.3 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-railties-6.0/rubygem-railties-6.0.changes 2020-04-27 23:41:07.687845316 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-railties-6.0.new.2738/rubygem-railties-6.0.changes 2020-05-11 13:39:38.956903195 +0200 @@ -1,0 +2,48 @@ +Thu May 7 21:20:20 UTC 2020 - Stephan Kulow <co...@suse.com> + +- updated to version 6.0.3 + see installed CHANGELOG.md + + ## Rails 6.0.3 (May 06, 2020) ## + + * Cache compiled view templates when running tests by default + + When generating a new app without `--skip-spring`, caching classes is + disabled in `environments/test.rb`. This implicitly disables caching + view templates too. This change will enable view template caching by + adding this to the generated `environments/test.rb`: + + ````ruby + config.action_view.cache_template_loading = true + ```` + + *Jorge Manrubia* + + * `Rails::Application#eager_load!` is available again to load application code + manually as it was possible in previous versions. + + Please, note this is not integrated with the whole eager loading logic that + runs when Rails boots with eager loading enabled, you can think of this + method as a vanilla recursive code loader. + + This ability has been restored because there are some use cases for it, such + as indexers that need to have all application classes and modules in memory. + + *Xavier Noria* + + * Generators that inherit from NamedBase respect `--force` option + + *Josh Brody* + + * Regression fix: The Rake task `zeitwerk:check` supports eager loaded + namespaces which do not have eager load paths, like the recently added + `i18n`. These namespaces are only required to respond to `eager_load!`. + + *Xavier Noria* + + + ## Rails 6.0.2.2 (March 19, 2020) ## + + * No changes. + +------------------------------------------------------------------- Old: ---- railties-6.0.2.2.gem New: ---- railties-6.0.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-railties-6.0.spec ++++++ --- /var/tmp/diff_new_pack.1e80mJ/_old 2020-05-11 13:39:39.812904989 +0200 +++ /var/tmp/diff_new_pack.1e80mJ/_new 2020-05-11 13:39:39.812904989 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-railties-6.0 -Version: 6.0.2.2 +Version: 6.0.3 Release: 0 %define mod_name railties %define mod_full_name %{mod_name}-%{version} ++++++ gem2rpm.yml ++++++ --- /var/tmp/diff_new_pack.1e80mJ/_old 2020-05-11 13:39:39.840905049 +0200 +++ /var/tmp/diff_new_pack.1e80mJ/_new 2020-05-11 13:39:39.840905049 +0200 @@ -9,7 +9,7 @@ # ## used by gem2rpm # :license: MIT or Ruby # ## used by gem2rpm and gem_packages -# :version_suffix: -x_y +:version_suffix: '-6.0' # ## used by gem2rpm and gem_packages # :disable_docs: true # ## used by gem2rpm ++++++ railties-6.0.2.2.gem -> railties-6.0.3.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2020-03-19 17:42:49.000000000 +0100 +++ new/CHANGELOG.md 2020-05-06 20:00:05.000000000 +0200 @@ -1,3 +1,46 @@ +## Rails 6.0.3 (May 06, 2020) ## + +* Cache compiled view templates when running tests by default + + When generating a new app without `--skip-spring`, caching classes is + disabled in `environments/test.rb`. This implicitly disables caching + view templates too. This change will enable view template caching by + adding this to the generated `environments/test.rb`: + + ````ruby + config.action_view.cache_template_loading = true + ```` + + *Jorge Manrubia* + +* `Rails::Application#eager_load!` is available again to load application code + manually as it was possible in previous versions. + + Please, note this is not integrated with the whole eager loading logic that + runs when Rails boots with eager loading enabled, you can think of this + method as a vanilla recursive code loader. + + This ability has been restored because there are some use cases for it, such + as indexers that need to have all application classes and modules in memory. + + *Xavier Noria* + +* Generators that inherit from NamedBase respect `--force` option + + *Josh Brody* + +* Regression fix: The Rake task `zeitwerk:check` supports eager loaded + namespaces which do not have eager load paths, like the recently added + `i18n`. These namespaces are only required to respond to `eager_load!`. + + *Xavier Noria* + + +## Rails 6.0.2.2 (March 19, 2020) ## + +* No changes. + + ## Rails 6.0.2.1 (December 18, 2019) ## * No changes. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2020-03-19 17:42:49.000000000 +0100 +++ new/README.rdoc 2020-05-06 20:00:05.000000000 +0200 @@ -37,4 +37,4 @@ Feature requests should be discussed on the rails-core mailing list here: -* https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core +* https://discuss.rubyonrails.org/c/rubyonrails-core Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/application/bootstrap.rb new/lib/rails/application/bootstrap.rb --- old/lib/rails/application/bootstrap.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/application/bootstrap.rb 2020-05-06 20:00:05.000000000 +0200 @@ -26,7 +26,7 @@ * test - set it to false (unless you use a tool that preloads your test environment) * production - set it to true -INFO + INFO config.eager_load = config.cache_classes end end @@ -56,7 +56,7 @@ # Initialize cache early in the stack so railties can make use of it. initializer :initialize_cache, group: :all do unless Rails.cache - Rails.cache = ActiveSupport::Cache.lookup_store(config.cache_store) + Rails.cache = ActiveSupport::Cache.lookup_store(*config.cache_store) if Rails.cache.respond_to?(:middleware) config.middleware.insert_before(::Rack::Runtime, Rails.cache.middleware) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/application/configuration.rb new/lib/rails/application/configuration.rb --- old/lib/rails/application/configuration.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/application/configuration.rb 2020-05-06 20:00:05.000000000 +0200 @@ -31,7 +31,7 @@ @filter_parameters = [] @filter_redirect = [] @helpers_paths = [] - @hosts = Array(([IPAddr.new("0.0.0.0/0"), IPAddr.new("::/0"), ".localhost"] if Rails.env.development?)) + @hosts = Array(([".localhost", IPAddr.new("0.0.0.0/0"), IPAddr.new("::/0")] if Rails.env.development?)) @public_file_server = ActiveSupport::OrderedOptions.new @public_file_server.enabled = true @public_file_server.index_name = "index" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/application/default_middleware_stack.rb new/lib/rails/application/default_middleware_stack.rb --- old/lib/rails/application/default_middleware_stack.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/application/default_middleware_stack.rb 2020-05-06 20:00:05.000000000 +0200 @@ -16,7 +16,7 @@ middleware.use ::ActionDispatch::HostAuthorization, config.hosts, config.action_dispatch.hosts_response_app if config.force_ssl - middleware.use ::ActionDispatch::SSL, config.ssl_options + middleware.use ::ActionDispatch::SSL, **config.ssl_options end middleware.use ::Rack::Sendfile, config.action_dispatch.x_sendfile_header @@ -79,7 +79,6 @@ end private - def load_rack_cache rack_cache = config.action_dispatch.rack_cache return unless rack_cache diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/application/routes_reloader.rb new/lib/rails/application/routes_reloader.rb --- old/lib/rails/application/routes_reloader.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/application/routes_reloader.rb 2020-05-06 20:00:05.000000000 +0200 @@ -25,7 +25,6 @@ end private - def updater @updater ||= ActiveSupport::FileUpdateChecker.new(paths) { reload! } end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/application.rb new/lib/rails/application.rb --- old/lib/rails/application.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/application.rb 2020-05-06 20:00:05.000000000 +0200 @@ -501,8 +501,16 @@ ordered_railties.flatten - [self] end - protected + # Eager loads the application code. + def eager_load! + if Rails.autoloaders.zeitwerk_enabled? + Rails.autoloaders.each(&:eager_load) + else + super + end + end + protected alias :build_middleware_stack :app def run_tasks_blocks(app) #:nodoc: @@ -582,7 +590,6 @@ end private - def generate_development_secret if secrets.secret_key_base.nil? key_file = Rails.root.join("tmp/development_secret.txt") @@ -624,7 +631,6 @@ end private - def convert_key(key) unless key.kind_of?(Symbol) ActiveSupport::Deprecation.warn(<<~MESSAGE.squish) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/application_controller.rb new/lib/rails/application_controller.rb --- old/lib/rails/application_controller.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/application_controller.rb 2020-05-06 20:00:05.000000000 +0200 @@ -12,7 +12,6 @@ end private - def require_local! unless local_request? render html: "<p>For security purposes, this information is only available to local requests.</p>".html_safe, status: :forbidden diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/code_statistics.rb new/lib/rails/code_statistics.rb --- old/lib/rails/code_statistics.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/code_statistics.rb 2020-05-06 20:00:05.000000000 +0200 @@ -8,6 +8,8 @@ "Helper tests", "Model tests", "Mailer tests", + "Mailbox tests", + "Channel tests", "Job tests", "Integration tests", "System tests"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/command/behavior.rb new/lib/rails/command/behavior.rb --- old/lib/rails/command/behavior.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/command/behavior.rb 2020-05-06 20:00:05.000000000 +0200 @@ -44,7 +44,7 @@ require path return rescue LoadError => e - raise unless e.message =~ /#{Regexp.escape(path)}$/ + raise unless /#{Regexp.escape(path)}$/.match?(e.message) rescue Exception => e warn "[WARNING] Could not load #{command_type} #{path.inspect}. Error: #{e.message}.\n#{e.backtrace.join("\n")}" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/command/spellchecker.rb new/lib/rails/command/spellchecker.rb --- old/lib/rails/command/spellchecker.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/command/spellchecker.rb 2020-05-06 20:00:05.000000000 +0200 @@ -13,7 +13,6 @@ end private - # This code is based directly on the Text gem implementation. # Copyright (c) 2006-2013 Paul Battley, Michael Neumann, Tim Fletcher. # diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/configuration.rb new/lib/rails/configuration.rb --- old/lib/rails/configuration.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/configuration.rb 2020-05-06 20:00:05.000000000 +0200 @@ -41,34 +41,39 @@ end def insert_before(*args, &block) - @operations << [__method__, args, block] + @operations << -> middleware { middleware.send(__method__, *args, &block) } end + ruby2_keywords(:insert_before) if respond_to?(:ruby2_keywords, true) alias :insert :insert_before def insert_after(*args, &block) - @operations << [__method__, args, block] + @operations << -> middleware { middleware.send(__method__, *args, &block) } end + ruby2_keywords(:insert_after) if respond_to?(:ruby2_keywords, true) def swap(*args, &block) - @operations << [__method__, args, block] + @operations << -> middleware { middleware.send(__method__, *args, &block) } end + ruby2_keywords(:swap) if respond_to?(:ruby2_keywords, true) def use(*args, &block) - @operations << [__method__, args, block] + @operations << -> middleware { middleware.send(__method__, *args, &block) } end + ruby2_keywords(:use) if respond_to?(:ruby2_keywords, true) def delete(*args, &block) - @delete_operations << [__method__, args, block] + @delete_operations << -> middleware { middleware.send(__method__, *args, &block) } end def unshift(*args, &block) - @operations << [__method__, args, block] + @operations << -> middleware { middleware.send(__method__, *args, &block) } end + ruby2_keywords(:unshift) if respond_to?(:ruby2_keywords, true) def merge_into(other) #:nodoc: - (@operations + @delete_operations).each do |operation, args, block| - other.send(operation, *args, &block) + (@operations + @delete_operations).each do |operation| + operation.call(other) end other diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/engine.rb new/lib/rails/engine.rb --- old/lib/rails/engine.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/engine.rb 2020-05-06 20:00:05.000000000 +0200 @@ -470,7 +470,8 @@ end def eager_load! - # Already done by Zeitwerk::Loader.eager_load_all in the finisher. + # Already done by Zeitwerk::Loader.eager_load_all. We need this guard to + # easily provide a compatible API for both zeitwerk and classic modes. return if Rails.autoloaders.zeitwerk_enabled? config.eager_load_paths.each do |load_path| @@ -654,14 +655,12 @@ end protected - def run_tasks_blocks(*) #:nodoc: super paths["lib/tasks"].existent.sort.each { |ext| load(ext) } end private - def load_config_initializer(initializer) # :doc: ActiveSupport::Notifications.instrument("load_config_initializer.railties", initializer: initializer) do load(initializer) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/gem_version.rb new/lib/rails/gem_version.rb --- old/lib/rails/gem_version.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/gem_version.rb 2020-05-06 20:00:05.000000000 +0200 @@ -9,8 +9,8 @@ module VERSION MAJOR = 6 MINOR = 0 - TINY = 2 - PRE = "2" + TINY = 3 + PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/actions/create_migration.rb new/lib/rails/generators/actions/create_migration.rb --- old/lib/rails/generators/actions/create_migration.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/actions/create_migration.rb 2020-05-06 20:00:05.000000000 +0200 @@ -40,7 +40,6 @@ alias :exists? :existing_migration private - def on_conflict_behavior # :doc: options = base.options.merge(config) if identical? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/actions.rb new/lib/rails/generators/actions.rb --- old/lib/rails/generators/actions.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/actions.rb 2020-05-06 20:00:05.000000000 +0200 @@ -268,7 +268,6 @@ end private - # Define log for backwards compatibility. If just one argument is sent, # invoke say, otherwise invoke say_status. Differently from say and # similarly to say_status, this method respects the quiet? option given. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/app_base.rb new/lib/rails/generators/app_base.rb --- old/lib/rails/generators/app_base.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/app_base.rb 2020-05-06 20:00:05.000000000 +0200 @@ -108,7 +108,6 @@ end private - def gemfile_entry(name, *args) # :doc: options = args.extract_options! version = args.first diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/base.rb new/lib/rails/generators/base.rb --- old/lib/rails/generators/base.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/base.rb 2020-05-06 20:00:05.000000000 +0200 @@ -249,11 +249,11 @@ end private - # Check whether the given class names are already taken by user # application or Ruby on Rails. def class_collisions(*class_names) return unless behavior == :invoke + return if options.force? class_names.flatten.each do |class_name| class_name = class_name.to_s @@ -266,8 +266,8 @@ if last && last.const_defined?(last_name.camelize, false) raise Error, "The name '#{class_name}' is either already used in your application " \ - "or reserved by Ruby on Rails. Please choose an alternative and run " \ - "this generator again." + "or reserved by Ruby on Rails. Please choose an alternative or use " \ + "--force to skip this check and run this generator again." end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/erb/mailer/mailer_generator.rb new/lib/rails/generators/erb/mailer/mailer_generator.rb --- old/lib/rails/generators/erb/mailer/mailer_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/erb/mailer/mailer_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -29,7 +29,6 @@ end private - def formats [:text, :html] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/erb/scaffold/scaffold_generator.rb new/lib/rails/generators/erb/scaffold/scaffold_generator.rb --- old/lib/rails/generators/erb/scaffold/scaffold_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/erb/scaffold/scaffold_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -24,7 +24,6 @@ end private - def available_views %w(index edit show new _form) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/erb.rb new/lib/rails/generators/erb.rb --- old/lib/rails/generators/erb.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/erb.rb 2020-05-06 20:00:05.000000000 +0200 @@ -6,7 +6,6 @@ module Generators # :nodoc: class Base < Rails::Generators::NamedBase #:nodoc: private - def formats [format] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/generated_attribute.rb new/lib/rails/generators/generated_attribute.rb --- old/lib/rails/generators/generated_attribute.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/generated_attribute.rb 2020-05-06 20:00:05.000000000 +0200 @@ -39,7 +39,6 @@ end private - # parse possible attribute options like :limit for string/text/binary/integer, :precision/:scale for decimals or :polymorphic for references/belongs_to # when declaring options curly brackets should be used def parse_type_and_options(type) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/app/app_generator.rb new/lib/rails/generators/rails/app/app_generator.rb --- old/lib/rails/generators/rails/app/app_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/app/app_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -68,7 +68,7 @@ def version_control if !options[:skip_git] && !options[:pretend] - run "git init", capture: options[:quiet] + run "git init", capture: options[:quiet], abort_on_failure: false end end @@ -79,7 +79,7 @@ def app directory "app" - keep_file "app/assets/images" + empty_directory_with_keep_file "app/assets/images" keep_file "app/controllers/concerns" keep_file "app/models/concerns" @@ -494,7 +494,6 @@ end private - # Define file as an alias to create_file for backwards compatibility. def file(*args, &block) create_file(*args, &block) @@ -539,7 +538,6 @@ end private - def handle_version_request!(argument) if ["--version", "-v"].include?(argument) require "rails/version" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/app/templates/Gemfile.tt new/lib/rails/generators/rails/app/templates/Gemfile.tt --- old/lib/rails/generators/rails/app/templates/Gemfile.tt 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/app/templates/Gemfile.tt 2020-05-06 20:00:05.000000000 +0200 @@ -53,7 +53,7 @@ <%- end -%> <%- end -%> <% if depend_on_listen? -%> - gem 'listen', '>= 3.0.5', '< 3.2' + gem 'listen', '~> 3.2' <% end -%> <% if spring_install? -%> # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt new/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt --- old/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt 2020-05-06 20:00:05.000000000 +0200 @@ -6,9 +6,10 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - <%-# Spring executes the reloaders when files change. %> + <%-# Spring executes the reloaders when files change. -%> <%- if spring_install? -%> config.cache_classes = false + config.action_view.cache_template_loading = true <%- else -%> config.cache_classes = true <%- end -%> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/app/templates/gitignore.tt new/lib/rails/generators/rails/app/templates/gitignore.tt --- old/lib/rails/generators/rails/app/templates/gitignore.tt 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/app/templates/gitignore.tt 2020-05-06 20:00:05.000000000 +0200 @@ -20,6 +20,11 @@ <% if keeps? -%> !/log/.keep !/tmp/.keep + +# Ignore pidfiles, but keep the directory. +/tmp/pids/* +!/tmp/pids/ +!/tmp/pids/.keep <% end -%> <% unless skip_active_storage? -%> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/controller/controller_generator.rb new/lib/rails/generators/rails/controller/controller_generator.rb --- old/lib/rails/generators/rails/controller/controller_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/controller/controller_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -25,7 +25,6 @@ end private - def file_name @_file_name ||= remove_possible_suffix(super) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb new/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb --- old/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/encrypted_file/encrypted_file_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -8,8 +8,12 @@ class EncryptedFileGenerator < Base # :nodoc: def add_encrypted_file_silently(file_path, key_path, template = encrypted_file_template) unless File.exist?(file_path) - setup = { content_path: file_path, key_path: key_path, env_key: "RAILS_MASTER_KEY", raise_if_missing_key: true } - ActiveSupport::EncryptedFile.new(setup).write(template) + ActiveSupport::EncryptedFile.new( + content_path: file_path, + key_path: key_path, + env_key: "RAILS_MASTER_KEY", + raise_if_missing_key: true + ).write(template) end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/generator/generator_generator.rb new/lib/rails/generators/rails/generator/generator_generator.rb --- old/lib/rails/generators/rails/generator/generator_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/generator/generator_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -15,7 +15,6 @@ hook_for :test_framework private - def generator_dir if options[:namespace] File.join("lib", "generators", regular_class_path, file_name) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/plugin/plugin_generator.rb new/lib/rails/generators/rails/plugin/plugin_generator.rb --- old/lib/rails/generators/rails/plugin/plugin_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/plugin/plugin_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -269,7 +269,6 @@ end private - def create_dummy_app(path = nil) dummy_path(path) if path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb new/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb --- old/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -34,7 +34,6 @@ end private - def permitted_params attachments, others = attributes_names.partition { |name| attachments?(name) } params = others.map { |name| ":#{name}" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/test_unit/generator/generator_generator.rb new/lib/rails/generators/test_unit/generator/generator_generator.rb --- old/lib/rails/generators/test_unit/generator/generator_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/test_unit/generator/generator_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -15,7 +15,6 @@ end private - def generator_path if options[:namespace] File.join("generators", regular_class_path, file_name, "#{file_name}_generator") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/test_unit/integration/integration_generator.rb new/lib/rails/generators/test_unit/integration/integration_generator.rb --- old/lib/rails/generators/test_unit/integration/integration_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/test_unit/integration/integration_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -12,7 +12,6 @@ end private - def file_name @_file_name ||= super.sub(/_test\z/i, "") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb new/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb --- old/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb 2020-05-06 20:00:05.000000000 +0200 @@ -38,7 +38,6 @@ end private - def attributes_string attributes_hash.map { |k, v| "#{k}: #{v}" }.join(", ") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/testing/behaviour.rb new/lib/rails/generators/testing/behaviour.rb --- old/lib/rails/generators/testing/behaviour.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators/testing/behaviour.rb 2020-05-06 20:00:05.000000000 +0200 @@ -88,7 +88,6 @@ end private - def destination_root_is_set? raise "You need to configure your Rails::Generators::TestCase destination root." unless destination_root end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators.rb new/lib/rails/generators.rb --- old/lib/rails/generators.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/generators.rb 2020-05-06 20:00:05.000000000 +0200 @@ -287,7 +287,6 @@ end private - def print_list(base, namespaces) # :doc: namespaces = namespaces.reject { |n| hidden_namespaces.include?(n) } super diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/info_controller.rb new/lib/rails/info_controller.rb --- old/lib/rails/info_controller.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/info_controller.rb 2020-05-06 20:00:05.000000000 +0200 @@ -33,7 +33,6 @@ end private - def match_route _routes.routes.select { |route| yield route.path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/paths.rb new/lib/rails/paths.rb --- old/lib/rails/paths.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/paths.rb 2020-05-06 20:00:05.000000000 +0200 @@ -98,7 +98,6 @@ end private - def filter_by(&block) all_paths.find_all(&block).flat_map { |path| paths = path.existent @@ -223,7 +222,6 @@ alias to_a expanded private - def files_in(path) Dir.chdir(path) do files = Dir.glob(@glob) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/rack/logger.rb new/lib/rails/rack/logger.rb --- old/lib/rails/rack/logger.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/rack/logger.rb 2020-05-06 20:00:05.000000000 +0200 @@ -30,7 +30,6 @@ end private - def call_app(request, env) # :doc: instrumenter = ActiveSupport::Notifications.instrumenter instrumenter.start "request.action_dispatch", request: request diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/railtie/configurable.rb new/lib/rails/railtie/configurable.rb --- old/lib/rails/railtie/configurable.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/railtie/configurable.rb 2020-05-06 20:00:05.000000000 +0200 @@ -27,7 +27,6 @@ end private - def method_missing(*args, &block) instance.send(*args, &block) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/railtie/configuration.rb new/lib/rails/railtie/configuration.rb --- old/lib/rails/railtie/configuration.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/railtie/configuration.rb 2020-05-06 20:00:05.000000000 +0200 @@ -87,7 +87,6 @@ end private - def method_missing(name, *args, &blk) if name.to_s =~ /=$/ @@options[$`.to_sym] = args.first diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/railtie.rb new/lib/rails/railtie.rb --- old/lib/rails/railtie.rb 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/railtie.rb 2020-05-06 20:00:05.000000000 +0200 @@ -228,7 +228,6 @@ end protected - def run_console_blocks(app) #:nodoc: each_registered_block(:console) { |block| block.call(app) } end @@ -247,7 +246,6 @@ end private - # run `&block` in every registered block in `#register_block_for` def each_registered_block(type, &block) klass = self.class diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/tasks/framework.rake new/lib/rails/tasks/framework.rake --- old/lib/rails/tasks/framework.rake 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/tasks/framework.rake 2020-05-06 20:00:05.000000000 +0200 @@ -8,7 +8,7 @@ task template: :environment do template = ENV["LOCATION"] raise "No LOCATION value given. Please set LOCATION either as path to a file or a URL" if template.blank? - template = File.expand_path(template) if template !~ %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} + template = File.expand_path(template) if !%r{\A[A-Za-z][A-Za-z0-9+\-\.]*://}.match?(template) require "rails/generators" require "rails/generators/rails/app/app_generator" generator = Rails::Generators::AppGenerator.new [Rails.root], {}, { destination_root: Rails.root } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/tasks/zeitwerk.rake new/lib/rails/tasks/zeitwerk.rake --- old/lib/rails/tasks/zeitwerk.rake 2020-03-19 17:42:49.000000000 +0100 +++ new/lib/rails/tasks/zeitwerk.rake 2020-05-06 20:00:05.000000000 +0200 @@ -14,8 +14,8 @@ report_not_checked = ->(not_checked) do puts puts <<~EOS - WARNING: The files in these directories cannot be checked because they - are not eager loaded: + WARNING: The following directories will only be checked if you configure + them to be eager loaded: EOS puts @@ -53,8 +53,11 @@ end end + require "active_support/core_ext/object/try" eager_load_paths = Rails.configuration.eager_load_namespaces.map do |eln| - eln.config.eager_load_paths if eln.respond_to?(:config) + # Quick regression fix for 6.0.3 to support namespaces that do not have + # eager load paths, like the recently added i18n. I'll rewrite this task. + eln.try(:config).try(:eager_load_paths) end.compact.flatten not_checked = ActiveSupport::Dependencies.autoload_paths - eager_load_paths diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2020-03-19 17:42:49.000000000 +0100 +++ new/metadata 2020-05-06 20:00:05.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: railties version: !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: exe cert_chain: [] -date: 2020-03-19 00:00:00.000000000 Z +date: 2020-05-06 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,28 +16,28 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 - !ruby/object:Gem::Dependency name: actionpack requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement @@ -92,14 +92,14 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 6.0.2.2 + version: 6.0.3 description: 'Rails internals: application bootup, plugins, generators, and rake tasks.' email: da...@loudthinking.com executables: @@ -432,10 +432,10 @@ - MIT metadata: bug_tracker_uri: https://github.com/rails/rails/issues - changelog_uri: https://github.com/rails/rails/blob/v6.0.2.2/railties/CHANGELOG.md - documentation_uri: https://api.rubyonrails.org/v6.0.2.2/ - mailing_list_uri: https://groups.google.com/forum/#!forum/rubyonrails-talk - source_code_uri: https://github.com/rails/rails/tree/v6.0.2.2/railties + changelog_uri: https://github.com/rails/rails/blob/v6.0.3/railties/CHANGELOG.md + documentation_uri: https://api.rubyonrails.org/v6.0.3/ + mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk + source_code_uri: https://github.com/rails/rails/tree/v6.0.3/railties post_install_message: rdoc_options: - "--exclude" @@ -453,7 +453,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.0.3 +rubygems_version: 3.1.2 signing_key: specification_version: 4 summary: Tools for creating, working with, and running Rails applications.