Hello community, here is the log from the commit of package rubygem-railties-5_0 for openSUSE:Factory checked in at 2017-03-21 22:49:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-railties-5_0 (Old) and /work/SRC/openSUSE:Factory/.rubygem-railties-5_0.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-railties-5_0" Tue Mar 21 22:49:05 2017 rev:4 rq:479647 version:5.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-railties-5_0/rubygem-railties-5_0.changes 2016-12-29 22:48:26.709648935 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-railties-5_0.new/rubygem-railties-5_0.changes 2017-03-21 22:49:08.430248661 +0100 @@ -1,0 +2,30 @@ +Thu Mar 2 05:55:03 UTC 2017 - co...@suse.com + +- updated to version 5.0.2 + see installed CHANGELOG.md + + ## Rails 5.0.2 (March 01, 2017) ## + + * Fix running multiple tests in one `rake` command + + e.g. `bin/rake test:models test:controllers` + + *Dominic Cleal* + + * Don't generate HTML/ERB templates for scaffold controller with `--api` flag. + + Fixes #27591. + + *Prathamesh Sonpatki* + + * Make `Rails.env` fall back to `development` when `RAILS_ENV` and `RACK_ENV` is an empty string. + + *Daniel Deng* + + * Reset a new session directly after its creation in ActionDispatch::IntegrationTest#open_session + + Fixes Issue #22742 + + *Tawan Sierek* + +------------------------------------------------------------------- Old: ---- railties-5.0.1.gem New: ---- railties-5.0.2.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-railties-5_0.spec ++++++ --- /var/tmp/diff_new_pack.RghccU/_old 2017-03-21 22:49:09.250132751 +0100 +++ /var/tmp/diff_new_pack.RghccU/_new 2017-03-21 22:49:09.254132186 +0100 @@ -1,7 +1,7 @@ # # spec file for package rubygem-railties-5_0 # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-railties-5_0 -Version: 5.0.1 +Version: 5.0.2 Release: 0 %define mod_name railties %define mod_full_name %{mod_name}-%{version} ++++++ railties-5.0.1.gem -> railties-5.0.2.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2016-12-21 01:07:31.000000000 +0100 +++ new/CHANGELOG.md 2017-03-02 00:12:12.000000000 +0100 @@ -1,3 +1,28 @@ +## Rails 5.0.2 (March 01, 2017) ## + +* Fix running multiple tests in one `rake` command + + e.g. `bin/rake test:models test:controllers` + + *Dominic Cleal* + +* Don't generate HTML/ERB templates for scaffold controller with `--api` flag. + + Fixes #27591. + + *Prathamesh Sonpatki* + +* Make `Rails.env` fall back to `development` when `RAILS_ENV` and `RACK_ENV` is an empty string. + + *Daniel Deng* + +* Reset a new session directly after its creation in ActionDispatch::IntegrationTest#open_session + + Fixes Issue #22742 + + *Tawan Sierek* + + ## Rails 5.0.1 (December 21, 2016) ## * 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/commands/test.rb new/lib/rails/commands/test.rb --- old/lib/rails/commands/test.rb 2016-12-21 01:07:31.000000000 +0100 +++ new/lib/rails/commands/test.rb 2017-03-02 00:12:12.000000000 +0100 @@ -6,6 +6,6 @@ $LOAD_PATH << File.expand_path("../../test", APP_PATH) end -Minitest.run_via[:rails] = true +Minitest.run_via = :rails require "active_support/testing/autorun" 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 2016-12-21 01:07:31.000000000 +0100 +++ new/lib/rails/gem_version.rb 2017-03-02 00:12:12.000000000 +0100 @@ -7,7 +7,7 @@ module VERSION MAJOR = 5 MINOR = 0 - TINY = 1 + TINY = 2 PRE = nil STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/named_base.rb new/lib/rails/generators/named_base.rb --- old/lib/rails/generators/named_base.rb 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/named_base.rb 2017-03-02 00:12:12.000000000 +0100 @@ -78,6 +78,10 @@ !options[:skip_namespace] && namespace end + def namespace_dirs + @namespace_dirs ||= namespace.name.split("::").map(&:underscore) + end + def file_path @file_path ||= (class_path + [file_name]).join('/') end @@ -95,11 +99,11 @@ end def namespaced_class_path - @namespaced_class_path ||= [namespaced_path] + @class_path + @namespaced_class_path ||= namespace_dirs + @class_path end def namespaced_path - @namespaced_path ||= namespace.name.split("::").first.underscore + @namespaced_path ||= namespace_dirs.join("/") end def class_name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml new/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml --- old/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/rails/app/templates/config/databases/sqlserver.yml 2017-03-02 00:12:12.000000000 +0100 @@ -1,4 +1,4 @@ -# SQL Server (2005 or higher recommended) +# SQL Server (2012 or higher recommended) # # Install the adapters and driver # gem install tiny_tds @@ -8,28 +8,12 @@ # gem 'tiny_tds' # gem 'activerecord-sqlserver-adapter' # -# You should make sure freetds is configured correctly first. -# freetds.conf contains host/port/protocol_versions settings. -# http://freetds.schemamania.org/userguide/freetdsconf.htm -# -# A typical Microsoft server -# [mssql] -# host = mssqlserver.yourdomain.com -# port = 1433 -# tds version = 7.1 - -# If you can connect with "tsql -S servername", your basic FreeTDS installation is working. -# 'man tsql' for more info -# Set timeout to a larger number if valid queries against a live db fail -# default: &default adapter: sqlserver encoding: utf8 - reconnect: false - username: <%= app_name %> - password: - timeout: 25 - dataserver: from_freetds.conf + username: sa + password: <%= ENV['SA_PASSWORD'] %> + host: localhost development: <<: *default 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 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/rails/controller/controller_generator.rb 2017-03-02 00:12:12.000000000 +0100 @@ -3,6 +3,8 @@ class ControllerGenerator < NamedBase # :nodoc: argument :actions, type: :array, default: [], banner: "action action" class_option :skip_routes, type: :boolean, desc: "Don't add routes to config/routes.rb." + class_option :helper, type: :boolean + class_option :assets, type: :boolean check_class_collision suffix: "Controller" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/plugin/templates/bin/test.tt new/lib/rails/generators/rails/plugin/templates/bin/test.tt --- old/lib/rails/generators/rails/plugin/templates/bin/test.tt 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/rails/plugin/templates/bin/test.tt 2017-03-02 00:12:13.000000000 +0100 @@ -5,6 +5,6 @@ Rails::TestUnitReporter.executable = 'bin/test' -Minitest.run_via[:rails] = true +Minitest.run_via = :rails require "active_support/testing/autorun" 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 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb 2017-03-02 00:12:13.000000000 +0100 @@ -20,7 +20,12 @@ template template_file, File.join('app/controllers', controller_class_path, "#{controller_file_name}_controller.rb") end - hook_for :template_engine, :test_framework, as: :scaffold + + hook_for :template_engine, as: :scaffold do |template_engine| + invoke template_engine unless options.api? + end + + hook_for :test_framework, as: :scaffold # Invoke the helper using the controller name (pluralized) hook_for :helper, as: :scaffold do |invoked| diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/test_unit/integration/templates/integration_test.rb new/lib/rails/generators/test_unit/integration/templates/integration_test.rb --- old/lib/rails/generators/test_unit/integration/templates/integration_test.rb 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/test_unit/integration/templates/integration_test.rb 2017-03-02 00:12:13.000000000 +0100 @@ -1,7 +1,9 @@ require 'test_helper' +<% module_namespacing do -%> class <%= class_name %>Test < ActionDispatch::IntegrationTest # test "the truth" do # assert true # end end +<% 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 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/generators/test_unit/scaffold/scaffold_generator.rb 2017-03-02 00:12:13.000000000 +0100 @@ -22,7 +22,7 @@ def fixture_name @fixture_name ||= if mountable_engine? - "%s_%s" % [namespaced_path, table_name] + (namespace_dirs + [table_name]).join("_") else table_name 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 2016-12-21 01:07:31.000000000 +0100 +++ new/lib/rails/generators.rb 2017-03-02 00:12:12.000000000 +0100 @@ -59,7 +59,7 @@ stylesheets: true, stylesheet_engine: :css, scaffold_stylesheet: true, - test_framework: false, + test_framework: nil, template_engine: :erb } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/test_unit/minitest_plugin.rb new/lib/rails/test_unit/minitest_plugin.rb --- old/lib/rails/test_unit/minitest_plugin.rb 2016-12-21 01:07:32.000000000 +0100 +++ new/lib/rails/test_unit/minitest_plugin.rb 2017-03-02 00:12:13.000000000 +0100 @@ -54,19 +54,18 @@ options[:color] = true options[:output_inline] = true - options[:patterns] = defined?(@rake_patterns) ? @rake_patterns : opts.order! + options[:patterns] = opts.order! unless run_via.rake? end - # Running several Rake tasks in a single command would trip up the runner, - # as the patterns would also contain the other Rake tasks. def self.rake_run(patterns) # :nodoc: - @rake_patterns = patterns + self.run_via = :rake unless run_via.set? + ::Rails::TestRequirer.require_files(patterns) autorun end module RunRespectingRakeTestopts def run(args = []) - if defined?(@rake_patterns) + if run_via.rake? args = Shellwords.split(ENV["TESTOPTS"] || "") end @@ -81,8 +80,9 @@ def self.plugin_rails_init(options) ENV["RAILS_ENV"] = options[:environment] || "test" - # If run via `ruby` we've been passed the files to run directly. - unless run_via[:ruby] + # If run via `ruby` we've been passed the files to run directly, or if run + # via `rake` then they have already been eagerly required. + unless run_via.ruby? || run_via.rake? ::Rails::TestRequirer.require_files(options[:patterns]) end @@ -97,7 +97,33 @@ reporter << ::Rails::TestUnitReporter.new(options[:io], options) end - mattr_accessor(:run_via) { Hash.new } + def self.run_via=(runner) + if run_via.set? + raise ArgumentError, "run_via already assigned" + else + run_via.runner = runner + end + end + + class RunVia + attr_accessor :runner + alias set? runner + + # Backwardscompatibility with Rails 5.0 generated plugin test scripts. + def []=(runner, *) + @runner = runner + end + + def ruby? + runner == :ruby + end + + def rake? + runner == :rake + end + end + + mattr_reader(:run_via) { RunVia.new } end # Put Rails as the first plugin minitest initializes so other plugins diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails.rb new/lib/rails.rb --- old/lib/rails.rb 2016-12-21 01:07:31.000000000 +0100 +++ new/lib/rails.rb 2017-03-02 00:12:12.000000000 +0100 @@ -7,6 +7,7 @@ require 'active_support/core_ext/kernel/reporting' require 'active_support/core_ext/module/delegation' require 'active_support/core_ext/array/extract_options' +require 'active_support/core_ext/object/blank' require 'rails/application' require 'rails/version' @@ -67,7 +68,7 @@ # Rails.env.development? # => true # Rails.env.production? # => false def env - @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"] || ENV["RACK_ENV"] || "development") + @_env ||= ActiveSupport::StringInquirer.new(ENV["RAILS_ENV"].presence || ENV["RACK_ENV"].presence || "development") end # Sets the Rails environment. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2016-12-21 01:07:31.000000000 +0100 +++ new/metadata 2017-03-02 00:12:12.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: railties version: !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: exe cert_chain: [] -date: 2016-12-21 00:00:00.000000000 Z +date: 2017-03-01 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,28 +16,28 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 - !ruby/object:Gem::Dependency name: actionpack requirement: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 - !ruby/object:Gem::Dependency name: rake requirement: !ruby/object:Gem::Requirement @@ -92,14 +92,14 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 type: :development prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 5.0.1 + version: 5.0.2 description: 'Rails internals: application bootup, plugins, generators, and rake tasks.' email: da...@loudthinking.com executables: @@ -404,9 +404,8 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.5.2 +rubygems_version: 2.6.10 signing_key: specification_version: 4 summary: Tools for creating, working with, and running Rails applications. test_files: [] -has_rdoc: