Kouhei Sutou 2018-11-19 10:21:29 +0900 (Mon, 19 Nov 2018) Revision: ad8e300c911864aadda8970fbd96f932a910b9ee https://github.com/ranguba/groonga-client-model/commit/ad8e300c911864aadda8970fbd96f932a910b9ee Message: test rails5: update Modified files: test/apps/rails5.0/Gemfile.lock test/apps/rails5.0/bin/rails test/apps/rails5.0/bin/rake test/apps/rails5.0/config/environments/development.rb test/apps/rails5.0/config/environments/production.rb test/apps/rails5.0/config/initializers/application_controller_renderer.rb test/apps/rails5.0/config/initializers/new_framework_defaults.rb test/apps/rails5.0/config/initializers/wrap_parameters.rb Modified: test/apps/rails5.0/Gemfile.lock (+7 -7) =================================================================== --- test/apps/rails5.0/Gemfile.lock 2018-11-19 10:18:58 +0900 (4a37e2f) +++ test/apps/rails5.0/Gemfile.lock 2018-11-19 10:21:29 +0900 (d381a9e) @@ -66,7 +66,7 @@ GEM coffee-script-source execjs coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) + concurrent-ruby (1.1.3) crass (1.0.4) erubis (2.7.0) execjs (2.7.0) @@ -87,7 +87,7 @@ GEM hashie (3.6.0) i18n (1.1.1) concurrent-ruby (~> 1.0) - jbuilder (2.7.0) + jbuilder (2.8.0) activesupport (>= 4.2.0) multi_json (>= 1.2) jquery-rails (4.3.3) @@ -104,7 +104,7 @@ GEM nokogiri (>= 1.5.9) mail (2.7.1) mini_mime (>= 0.1.1) - method_source (0.9.1) + method_source (0.9.2) mini_mime (1.0.1) mini_portile2 (2.3.0) minitest (5.11.3) @@ -113,7 +113,7 @@ GEM nokogiri (1.8.5) mini_portile2 (~> 2.3.0) puma (3.12.0) - rack (2.0.5) + rack (2.0.6) rack-test (0.6.3) rack (>= 1.0) rails (5.0.7) @@ -143,7 +143,7 @@ GEM rb-fsevent (0.10.3) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) - sass (3.6.0) + sass (3.7.2) sass-listen (~> 4.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) @@ -166,7 +166,7 @@ GEM actionpack (>= 4.0) activesupport (>= 4.0) sprockets (>= 3.0.0) - thor (0.20.0) + thor (0.20.3) thread_safe (0.3.6) tilt (2.0.8) turbolinks (5.2.0) @@ -174,7 +174,7 @@ GEM turbolinks-source (5.2.0) tzinfo (1.2.5) thread_safe (~> 0.1) - uglifier (4.1.19) + uglifier (4.1.20) execjs (>= 0.3.0, < 3) web-console (3.7.0) actionview (>= 5.0) Modified: test/apps/rails5.0/bin/rails (+0 -5) =================================================================== --- test/apps/rails5.0/bin/rails 2018-11-19 10:18:58 +0900 (5badb2f) +++ test/apps/rails5.0/bin/rails 2018-11-19 10:21:29 +0900 (0739660) @@ -1,9 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands' Modified: test/apps/rails5.0/bin/rake (+0 -5) =================================================================== --- test/apps/rails5.0/bin/rake 2018-11-19 10:18:58 +0900 (d87d5f5) +++ test/apps/rails5.0/bin/rake 2018-11-19 10:21:29 +0900 (1724048) @@ -1,9 +1,4 @@ #!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end require_relative '../config/boot' require 'rake' Rake.application.run Modified: test/apps/rails5.0/config/environments/development.rb (+4 -1) =================================================================== --- test/apps/rails5.0/config/environments/development.rb 2018-11-19 10:18:58 +0900 (58d20de) +++ test/apps/rails5.0/config/environments/development.rb 2018-11-19 10:21:29 +0900 (e64889c) @@ -34,6 +34,9 @@ Rails.application.configure do # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load + # Debug mode disables concatenation and preprocessing of assets. # This option may cause significant delays in view rendering with a large # number of complex assets. @@ -47,5 +50,5 @@ Rails.application.configure do # Use an evented file watcher to asynchronously detect changes in source code, # routes, locales, etc. This feature depends on the listen gem. - config.file_watcher = ActiveSupport::EventedFileUpdateChecker + # config.file_watcher = ActiveSupport::EventedFileUpdateChecker end Modified: test/apps/rails5.0/config/environments/production.rb (+3 -0) =================================================================== --- test/apps/rails5.0/config/environments/production.rb 2018-11-19 10:18:58 +0900 (84704b2) +++ test/apps/rails5.0/config/environments/production.rb 2018-11-19 10:21:29 +0900 (18fd8e4) @@ -80,4 +80,7 @@ Rails.application.configure do logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger) end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false end Modified: test/apps/rails5.0/config/initializers/application_controller_renderer.rb (+6 -4) =================================================================== --- test/apps/rails5.0/config/initializers/application_controller_renderer.rb 2018-11-19 10:18:58 +0900 (51639b6) +++ test/apps/rails5.0/config/initializers/application_controller_renderer.rb 2018-11-19 10:21:29 +0900 (89d2efa) @@ -1,6 +1,8 @@ # Be sure to restart your server when you modify this file. -# ApplicationController.renderer.defaults.merge!( -# http_host: 'example.org', -# https: false -# ) +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end Modified: test/apps/rails5.0/config/initializers/new_framework_defaults.rb (+12 -8) =================================================================== --- test/apps/rails5.0/config/initializers/new_framework_defaults.rb 2018-11-19 10:18:58 +0900 (b5b71ff) +++ test/apps/rails5.0/config/initializers/new_framework_defaults.rb 2018-11-19 10:21:29 +0900 (cbf423a) @@ -2,20 +2,24 @@ # # This file contains migration options to ease your Rails 5.0 upgrade. # -# Read the Rails 5.0 release notes for more info on each option. +# Once upgraded flip defaults one by one to migrate to the new default. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true # Enable per-form CSRF tokens. Previous versions had false. -Rails.application.config.action_controller.per_form_csrf_tokens = true +Rails.application.config.action_controller.per_form_csrf_tokens = false # Enable origin-checking CSRF mitigation. Previous versions had false. -Rails.application.config.action_controller.forgery_protection_origin_check = true +Rails.application.config.action_controller.forgery_protection_origin_check = false # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. # Previous versions had false. -ActiveSupport.to_time_preserves_timezone = true +ActiveSupport.to_time_preserves_timezone = false -# Do not halt callback chains when a callback returns false. Previous versions had true. -ActiveSupport.halt_callback_chains_on_return_false = false +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = false -# Configure SSL options to enable HSTS with subdomains. Previous versions had false. -Rails.application.config.ssl_options = { hsts: { subdomains: true } } +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = true Modified: test/apps/rails5.0/config/initializers/wrap_parameters.rb (+5 -0) =================================================================== --- test/apps/rails5.0/config/initializers/wrap_parameters.rb 2018-11-19 10:18:58 +0900 (633c1c8) +++ test/apps/rails5.0/config/initializers/wrap_parameters.rb 2018-11-19 10:21:29 +0900 (bbfc396) @@ -7,3 +7,8 @@ ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] end + +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181119/ef8017f9/attachment-0001.html>