Hello community, here is the log from the commit of package rubygem-railties-5.2 for openSUSE:Factory checked in at 2019-04-01 12:36:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-railties-5.2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-railties-5.2.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-railties-5.2" Mon Apr 1 12:36:28 2019 rev:6 rq:689697 version:5.2.3 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-railties-5.2/rubygem-railties-5.2.changes 2019-03-14 15:03:18.207651663 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-railties-5.2.new.25356/rubygem-railties-5.2.changes 2019-04-01 12:36:31.117860854 +0200 @@ -1,0 +2,16 @@ +Fri Mar 29 06:13:35 UTC 2019 - Stephan Kulow <co...@suse.com> + +- updated to version 5.2.3 + see installed CHANGELOG.md + + ## Rails 5.2.3 (March 27, 2019) ## + + * Seed database with inline ActiveJob job adapter. + + *Gannon McGibbon* + + * Fix boolean interaction in scaffold system tests. + + *Gannon McGibbon* + +------------------------------------------------------------------- Old: ---- railties-5.2.2.1.gem New: ---- railties-5.2.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-railties-5.2.spec ++++++ --- /var/tmp/diff_new_pack.2BtgbJ/_old 2019-04-01 12:36:32.209861388 +0200 +++ /var/tmp/diff_new_pack.2BtgbJ/_new 2019-04-01 12:36:32.213861390 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,7 +24,7 @@ # Name: rubygem-railties-5.2 -Version: 5.2.2.1 +Version: 5.2.3 Release: 0 %define mod_name railties %define mod_full_name %{mod_name}-%{version} @@ -36,10 +36,10 @@ %endif # /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: ruby-macros >= 5 BuildRequires: %{ruby >= 2.2.2} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} +BuildRequires: ruby-macros >= 5 BuildRequires: update-alternatives Url: http://rubyonrails.org Source: https://rubygems.org/gems/%{mod_full_name}.gem ++++++ railties-5.2.2.1.gem -> railties-5.2.3.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2019-03-13 17:54:44.000000000 +0100 +++ new/CHANGELOG.md 2019-03-28 04:02:35.000000000 +0100 @@ -1,3 +1,14 @@ +## Rails 5.2.3 (March 27, 2019) ## + +* Seed database with inline ActiveJob job adapter. + + *Gannon McGibbon* + +* Fix boolean interaction in scaffold system tests. + + *Gannon McGibbon* + + ## Rails 5.2.2.1 (March 11, 2019) ## * No changes. 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.rb new/lib/rails/application.rb --- old/lib/rails/application.rb 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/application.rb 2019-03-28 04:02:35.000000000 +0100 @@ -594,6 +594,7 @@ if !File.exist?(key_file) random_key = SecureRandom.hex(64) + FileUtils.mkdir_p(key_file.dirname) File.binwrite(key_file, random_key) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/command/actions.rb new/lib/rails/command/actions.rb --- old/lib/rails/command/actions.rb 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/command/actions.rb 2019-03-28 04:02:35.000000000 +0100 @@ -11,10 +11,20 @@ end def require_application_and_environment! + require_application! + require_environment! + end + + def require_application! require ENGINE_PATH if defined?(ENGINE_PATH) if defined?(APP_PATH) require APP_PATH + end + end + + def require_environment! + if defined?(APP_PATH) Rails.application.require_environment! end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/commands/credentials/credentials_command.rb new/lib/rails/commands/credentials/credentials_command.rb --- old/lib/rails/commands/credentials/credentials_command.rb 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/commands/credentials/credentials_command.rb 2019-03-28 04:02:35.000000000 +0100 @@ -17,7 +17,7 @@ end def edit - require_application_and_environment! + require_application! ensure_editor_available(command: "bin/rails credentials:edit") || (return) ensure_master_key_has_been_added if Rails.application.credentials.key.nil? @@ -31,7 +31,7 @@ end def show - require_application_and_environment! + require_application! say Rails.application.credentials.read.presence || missing_credentials_message end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/commands/encrypted/USAGE new/lib/rails/commands/encrypted/USAGE --- old/lib/rails/commands/encrypted/USAGE 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/rails/commands/encrypted/USAGE 2019-03-28 04:02:35.000000000 +0100 @@ -0,0 +1,28 @@ +=== Storing Encrypted Files in Source Control + +The Rails `encrypted` commands provide access to encrypted files or configurations. +See the `Rails.application.encrypted` documentation for using them in your app. + +=== Encryption Keys + +By default, Rails looks for the encryption key in `config/master.key` or +`ENV["RAILS_MASTER_KEY"]`, but that lookup can be overriden with `--key`: + + rails encrypted:edit config/encrypted_file.yml.enc --key config/encrypted_file.key + +Don't commit the key! Add it to your source control's ignore file. If you use +Git, Rails handles this for you. + +=== Editing Files + +To edit or create an encrypted file use: + + rails encrypted:edit config/encrypted_file.yml.enc + +This opens a temporary file in `$EDITOR` with the decrypted contents for editing. + +=== Viewing Files + +To print the decrypted contents of an encrypted file use: + + rails encrypted:show config/encrypted_file.yml.enc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/commands/encrypted/encrypted_command.rb new/lib/rails/commands/encrypted/encrypted_command.rb --- old/lib/rails/commands/encrypted/encrypted_command.rb 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/commands/encrypted/encrypted_command.rb 2019-03-28 04:02:35.000000000 +0100 @@ -16,6 +16,7 @@ def help say "Usage:\n #{self.class.banner}" say "" + say self.class.desc end end 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 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/engine.rb 2019-03-28 04:02:35.000000000 +0100 @@ -548,7 +548,7 @@ # Blog::Engine.load_seed def load_seed seed_file = paths["db/seeds.rb"].existent.first - load(seed_file) if seed_file + with_inline_jobs { load(seed_file) } if seed_file end # Add configured load paths to Ruby's load path, and remove duplicate entries. @@ -658,6 +658,18 @@ end end + def with_inline_jobs + queue_adapter = config.active_job.queue_adapter + ActiveSupport.on_load(:active_job) do + self.queue_adapter = :inline + end + yield + ensure + ActiveSupport.on_load(:active_job) do + self.queue_adapter = queue_adapter + end + end + def has_migrations? paths["db/migrate"].existent.any? end 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 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/gem_version.rb 2019-03-28 04:02:35.000000000 +0100 @@ -9,8 +9,8 @@ module VERSION MAJOR = 5 MINOR = 2 - TINY = 2 - PRE = "1" + 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/rails/app/templates/Gemfile.tt new/lib/rails/generators/rails/app/templates/Gemfile.tt --- old/lib/rails/generators/rails/app/templates/Gemfile.tt 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/generators/rails/app/templates/Gemfile.tt 2019-03-28 04:02:35.000000000 +0100 @@ -45,6 +45,7 @@ gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] end +<% end -%> group :development do <%- unless options.api? -%> # Access an interactive console on exception pages or by calling 'console' anywhere in the code. @@ -75,7 +76,6 @@ gem 'chromedriver-helper' end <%- end -%> -<% end -%> # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 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 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb 2019-03-28 04:02:35.000000000 +0100 @@ -54,6 +54,11 @@ end end.sort.to_h end + + def boolean?(name) + attribute = attributes.find { |attr| attr.name == name } + attribute && attribute.type == :boolean + end end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt new/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt --- old/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/generators/test_unit/scaffold/templates/system_test.rb.tt 2019-03-28 04:02:35.000000000 +0100 @@ -16,8 +16,12 @@ click_on "New <%= class_name.titleize %>" <%- attributes_hash.each do |attr, value| -%> + <%- if boolean?(attr) -%> + check "<%= attr.humanize %>" if <%= value %> + <%- else -%> fill_in "<%= attr.humanize %>", with: <%= value %> <%- end -%> + <%- end -%> click_on "Create <%= human_name %>" assert_text "<%= human_name %> was successfully created" @@ -29,8 +33,12 @@ click_on "Edit", match: :first <%- attributes_hash.each do |attr, value| -%> + <%- if boolean?(attr) -%> + check "<%= attr.humanize %>" if <%= value %> + <%- else -%> fill_in "<%= attr.humanize %>", with: <%= value %> <%- end -%> + <%- end -%> click_on "Update <%= human_name %>" assert_text "<%= human_name %> was successfully updated" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/tasks/yarn.rake new/lib/rails/tasks/yarn.rake --- old/lib/rails/tasks/yarn.rake 2019-03-13 17:54:44.000000000 +0100 +++ new/lib/rails/tasks/yarn.rake 2019-03-28 04:02:35.000000000 +0100 @@ -6,8 +6,7 @@ # Install only production deps when for not usual envs. valid_node_envs = %w[test development production] node_env = ENV.fetch("NODE_ENV") do - rails_env = ENV["RAILS_ENV"] - valid_node_envs.include?(rails_env) ? rails_env : "production" + valid_node_envs.include?(Rails.env) ? Rails.env : "production" end system({ "NODE_ENV" => node_env }, "./bin/yarn install --no-progress") end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2019-03-13 17:54:44.000000000 +0100 +++ new/metadata 2019-03-28 04:02:35.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: railties version: !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: exe cert_chain: [] -date: 2019-03-13 00:00:00.000000000 Z +date: 2019-03-28 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,28 +16,28 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 - !ruby/object:Gem::Dependency name: actionpack requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement @@ -92,14 +92,14 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.2.2.1 + version: 5.2.3 description: 'Rails internals: application bootup, plugins, generators, and rake tasks.' email: da...@loudthinking.com executables: @@ -143,6 +143,7 @@ - lib/rails/commands/credentials/credentials_command.rb - lib/rails/commands/dbconsole/dbconsole_command.rb - lib/rails/commands/destroy/destroy_command.rb +- lib/rails/commands/encrypted/USAGE - lib/rails/commands/encrypted/encrypted_command.rb - lib/rails/commands/generate/generate_command.rb - lib/rails/commands/help/USAGE @@ -421,8 +422,8 @@ licenses: - MIT metadata: - source_code_uri: https://github.com/rails/rails/tree/v5.2.2.1/railties - changelog_uri: https://github.com/rails/rails/blob/v5.2.2.1/railties/CHANGELOG.md + source_code_uri: https://github.com/rails/rails/tree/v5.2.3/railties + changelog_uri: https://github.com/rails/rails/blob/v5.2.3/railties/CHANGELOG.md post_install_message: rdoc_options: - "--exclude"