Kouhei Sutou 2018-11-19 10:18:15 +0900 (Mon, 19 Nov 2018) Revision: e5b3cdce80d9d4d855d122d0c40d4f745fd19bc2 https://github.com/ranguba/groonga-client-model/commit/e5b3cdce80d9d4d855d122d0c40d4f745fd19bc2 Message: test rails4: update Modified files: test/apps/rails4/Gemfile.lock test/apps/rails4/bin/rails test/apps/rails4/bin/rake test/apps/rails4/config/application.rb test/apps/rails4/config/environments/development.rb test/apps/rails4/config/environments/production.rb test/apps/rails4/config/initializers/wrap_parameters.rb Modified: test/apps/rails4/Gemfile.lock (+6 -6) =================================================================== --- test/apps/rails4/Gemfile.lock 2018-11-03 19:42:37 +0900 (f3145ee) +++ test/apps/rails4/Gemfile.lock 2018-11-19 10:18:15 +0900 (a57cbcf) @@ -64,7 +64,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) debug_inspector (0.0.3) erubis (2.7.0) @@ -86,7 +86,7 @@ GEM hashie (3.6.0) i18n (0.9.5) 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) @@ -106,7 +106,7 @@ GEM multi_json (1.13.1) nokogiri (1.8.5) mini_portile2 (~> 2.3.0) - rack (1.6.10) + rack (1.6.11) rack-test (0.6.3) rack (>= 1.0) rails (4.2.10) @@ -138,7 +138,7 @@ GEM rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) rdoc (4.3.0) - 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) @@ -161,7 +161,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) @@ -169,7 +169,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 (2.3.0) activemodel (>= 4.0) Modified: test/apps/rails4/bin/rails (+0 -5) =================================================================== --- test/apps/rails4/bin/rails 2018-11-03 19:42:37 +0900 (0138d79) +++ test/apps/rails4/bin/rails 2018-11-19 10:18:15 +0900 (5191e69) @@ -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', __FILE__) require_relative '../config/boot' require 'rails/commands' Modified: test/apps/rails4/bin/rake (+0 -5) =================================================================== --- test/apps/rails4/bin/rake 2018-11-03 19:42:37 +0900 (d87d5f5) +++ test/apps/rails4/bin/rake 2018-11-19 10:18:15 +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/rails4/config/application.rb (+3 -0) =================================================================== --- test/apps/rails4/config/application.rb 2018-11-03 19:42:37 +0900 (da51278) +++ test/apps/rails4/config/application.rb 2018-11-19 10:18:15 +0900 (caf8a23) @@ -28,5 +28,8 @@ module Blog # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de + + # Do not swallow errors in after_commit/after_rollback callbacks. + config.active_record.raise_in_transactional_callbacks = true end end Modified: test/apps/rails4/config/environments/development.rb (+3 -0) =================================================================== --- test/apps/rails4/config/environments/development.rb 2018-11-03 19:42:37 +0900 (0feba2e) +++ test/apps/rails4/config/environments/development.rb 2018-11-19 10:18:15 +0900 (b55e214) @@ -19,6 +19,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. Modified: test/apps/rails4/config/environments/production.rb (+3 -0) =================================================================== --- test/apps/rails4/config/environments/production.rb 2018-11-03 19:42:37 +0900 (a008b61) +++ test/apps/rails4/config/environments/production.rb 2018-11-19 10:18:15 +0900 (5c1b32e) @@ -73,4 +73,7 @@ Rails.application.configure do # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false end Modified: test/apps/rails4/config/initializers/wrap_parameters.rb (+5 -0) =================================================================== --- test/apps/rails4/config/initializers/wrap_parameters.rb 2018-11-03 19:42:37 +0900 (b81ea74) +++ test/apps/rails4/config/initializers/wrap_parameters.rb 2018-11-19 10:18:15 +0900 (33725e9) @@ -7,3 +7,8 @@ ActiveSupport.on_load(:action_controller) do wrap_parameters format: [:json] if respond_to?(:wrap_parameters) 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/06958d5b/attachment-0001.html>