Hello community,
here is the log from the commit of package rubygem-railties-4_2 for
openSUSE:Factory checked in at 2015-03-28 18:38:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-railties-4_2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-railties-4_2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-railties-4_2"
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-railties-4_2/rubygem-railties-4_2.changes
2015-02-16 21:08:32.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.rubygem-railties-4_2.new/rubygem-railties-4_2.changes
2015-03-28 18:38:33.000000000 +0100
@@ -1,0 +2,25 @@
+Fri Mar 20 20:16:53 UTC 2015 - [email protected]
+
+- updated to version 4.2.1
+ * Add a new-line to the end of route method generated code.
+
+ We need to add a `\n`, because we cannot have two routes
+ in the same line.
+
+ *arthurnn*
+
+ * Force generated routes to be inserted into routes.rb
+
+ *Andrew White*
+
+ * Don't remove all line endings from routes.rb when revoking scaffold.
+
+ Fixes #15913.
+
+ *Andrew White*
+
+ * Fix scaffold generator with `--helper=false` option.
+
+ *Rafael Mendonça França*
+
+-------------------------------------------------------------------
Old:
----
railties-4.2.0.gem
New:
----
railties-4.2.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-railties-4_2.spec ++++++
--- /var/tmp/diff_new_pack.QWbAPr/_old 2015-03-28 18:38:34.000000000 +0100
+++ /var/tmp/diff_new_pack.QWbAPr/_new 2015-03-28 18:38:34.000000000 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-railties-4_2
-Version: 4.2.0
+Version: 4.2.1
Release: 0
%define mod_name railties
%define mod_full_name %{mod_name}-%{version}
++++++ gem2rpm.yml ++++++
--- /var/tmp/diff_new_pack.QWbAPr/_old 2015-03-28 18:38:34.000000000 +0100
+++ /var/tmp/diff_new_pack.QWbAPr/_new 2015-03-28 18:38:34.000000000 +0100
@@ -1,76 +1,5 @@
-# ---
-# ## used by gem2rpm
-# :summary: this is a custom summary
-# ## used by gem2rpm
-# :description: |-
-# this is a custom description
-#
-# it can be multiline
-# ## used by gem2rpm
-# :license: MIT or Ruby
-# ## used by gem2rpm and gem_packages
-# :version_suffix: -x_y
-# ## used by gem2rpm and gem_packages
-# :disable_docs: true
-# ## used by gem2rpm
-# :disable_automatic_rdoc_dep: true
-# ## used by gem2rpm
-# :preamble: |-
-# BuildRequires: foobar
-# Requires: foobar
-# ## used by gem2rpm
-# :patches:
-# foo.patch: -p1
-# bar.patch:
-# ## used by gem2rpm
-# :sources:
-# - foo.desktop
-# - bar.desktop
-# :gem_install_args: '....'
-# ## used by gem2rpm
-# :pre_install: |-
-# %if 0%{?use_system_libev}
-# export USE_VENDORED_LIBEV="no"
-# %endif
-# ## used by gem2rpm
-# :post_install: |-
-# # delete custom files here or do other fancy stuff
-# install -D -m 0644 %{S:1} %{buildroot}%{_bindir}/gem2rpm-opensuse
-# ## used by gem2rpm
-# :testsuite_command: |-
-# (pushd %{buildroot}%{gem_base}/gems/%{mod_full_name} && rake test)
-# ## used by gem2rpm
-# :filelist: |-
-# /usr/bin/gem2rpm-opensuse
-# ## used by gem2rpm
-# :scripts:
-# :post: |-
-# /bin/echo foo
-# ## used by gem_packages
-# :main:
-# :preamble: |-
-# Requires: util-linux
-# Recommends: pwgen
-# :filelist: |-
-# /usr/bin/gem2rpm-opensuse
-# ## used by gem_packages
-# :custom:
-# apache:
-# :preamble: |-
-# Requires: .....
-# :filelist: |-
-# /etc/apache2/conf.d/passenger.conf
-# :summary: Custom summary is optional
-# :description: |-
-# Custom description is optional
-#
-# bar
-# :post: |-
-# /bin/echo foo
-#
---
:version_suffix: '-4_2'
-
:preamble: |-
%if 0%{?suse_version} == 1110
%define rb_build_versions ruby21
++++++ railties-4.2.0.gem -> railties-4.2.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2014-12-20 01:14:38.000000000 +0100
+++ new/CHANGELOG.md 2015-03-19 17:41:39.000000000 +0100
@@ -1,3 +1,29 @@
+## Rails 4.2.1 (March 19, 2014) ##
+
+* Add a new-line to the end of route method generated code.
+
+ We need to add a `\n`, because we cannot have two routes
+ in the same line.
+
+ *arthurnn*
+
+* Force generated routes to be inserted into routes.rb
+
+ *Andrew White*
+
+* Don't remove all line endings from routes.rb when revoking scaffold.
+
+ Fixes #15913.
+
+ *Andrew White*
+
+* Fix scaffold generator with `--helper=false` option.
+
+ *Rafael Mendonça França*
+
+
+## Rails 4.2.0 (December 20, 2014) ##
+
* Deprecate `config.serve_static_assets` in favor of
`config.serve_static_files`
to clarify that the option is unrelated to the asset pipeline.
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 2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/application.rb 2015-03-19 17:41:39.000000000 +0100
@@ -368,7 +368,21 @@
@config = configuration
end
- def secrets #:nodoc:
+ # Returns secrets added to config/secrets.yml.
+ #
+ # Example:
+ #
+ # development:
+ # secret_key_base:
836fa3665997a860728bcb9e9a1e704d427cfc920e79d847d79c8a9a907b9e965defa4154b2b86bdec6930adbe33f21364523a6f6ce363865724549fdfc08553
+ # test:
+ # secret_key_base:
5a37811464e7d378488b0f073e2193b093682e4e21f5d6f3ae0a4e1781e61a351fdc878a843424e81c73fb484a40d23f92c8dafac4870e74ede6e5e174423010
+ # production:
+ # secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
+ # namespace: my_app_production
+ #
+ # +Rails.application.secrets.namespace+ returns +my_app_production+ in the
+ # production environment.
+ def secrets
@secrets ||= begin
secrets = ActiveSupport::OrderedOptions.new
yaml = config.paths["config/secrets"].first
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 2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/engine.rb 2015-03-19 17:41:39.000000000 +0100
@@ -571,10 +571,10 @@
end
initializer :add_routing_paths do |app|
- paths = self.paths["config/routes.rb"].existent
+ routing_paths = self.paths["config/routes.rb"].existent
- if routes? || paths.any?
- app.routes_reloader.paths.unshift(*paths)
+ if routes? || routing_paths.any?
+ app.routes_reloader.paths.unshift(*routing_paths)
app.routes_reloader.route_sets << routes
end
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 2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/gem_version.rb 2015-03-19 17:41:39.000000000 +0100
@@ -7,7 +7,7 @@
module VERSION
MAJOR = 4
MINOR = 2
- TINY = 0
+ TINY = 1
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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 2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/generators/actions.rb 2015-03-19 17:41:39.000000000 +0100
@@ -219,10 +219,10 @@
# route "root 'welcome#index'"
def route(routing_code)
log :route, routing_code
- sentinel = /\.routes\.draw do\s*$/
+ sentinel = /\.routes\.draw do\s*\n/m
in_root do
- inject_into_file 'config/routes.rb', "\n #{routing_code}", { after:
sentinel, verbose: false }
+ inject_into_file 'config/routes.rb', " #{routing_code}\n", { after:
sentinel, verbose: false, force: true }
end
end
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 2014-12-20 01:14:38.000000000
+0100
+++ new/lib/rails/generators/app_base.rb 2015-03-19 17:41:39.000000000
+0100
@@ -283,7 +283,7 @@
end
def javascript_runtime_gemfile_entry
- comment = 'See https://github.com/sstephenson/execjs#readme for more
supported runtimes'
+ comment = 'See https://github.com/rails/execjs#readme for more
supported runtimes'
if defined?(JRUBY_VERSION)
GemfileEntry.version 'therubyrhino', nil, comment
else
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 2014-12-20
01:14:38.000000000 +0100
+++ new/lib/rails/generators/generated_attribute.rb 2015-03-19
17:41:39.000000000 +0100
@@ -159,6 +159,10 @@
options.delete(:required)
options[:null] = false
end
+
+ if reference? && !polymorphic?
+ options[:foreign_key] = true
+ end
end
end
end
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 2014-12-20
01:14:38.000000000 +0100
+++ new/lib/rails/generators/rails/app/app_generator.rb 2015-03-19
17:41:39.000000000 +0100
@@ -340,7 +340,7 @@
#
# This class should be called before the AppGenerator is required and
started
# since it configures and mutates ARGV correctly.
- class ARGVScrubber # :nodoc
+ class ARGVScrubber # :nodoc:
def initialize(argv = ARGV)
@argv = argv
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
new/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
---
old/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
2014-12-20 01:14:38.000000000 +0100
+++
new/lib/rails/generators/rails/app/templates/app/assets/javascripts/application.js.tt
2015-03-19 17:41:39.000000000 +0100
@@ -7,7 +7,7 @@
// It's not advisable to add code directly here, but if you do, it'll appear
at the bottom of the
// compiled file.
//
-// Read Sprockets README
(https://github.com/sstephenson/sprockets#sprockets-directives) for details
+// Read Sprockets README
(https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
<% unless options[:skip_javascript] -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/app/templates/config/application.rb
new/lib/rails/generators/rails/app/templates/config/application.rb
--- old/lib/rails/generators/rails/app/templates/config/application.rb
2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/generators/rails/app/templates/config/application.rb
2015-03-19 17:41:39.000000000 +0100
@@ -3,6 +3,7 @@
<% if include_all_railties? -%>
require 'rails/all'
<% else -%>
+require "rails"
# Pick the frameworks you want:
require "active_model/railtie"
require "active_job/railtie"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators/rails/model/USAGE
new/lib/rails/generators/rails/model/USAGE
--- old/lib/rails/generators/rails/model/USAGE 2014-12-20 01:14:38.000000000
+0100
+++ new/lib/rails/generators/rails/model/USAGE 2015-03-19 17:41:39.000000000
+0100
@@ -22,7 +22,7 @@
If you pass a namespaced model name (e.g. admin/account or Admin::Account)
then the generator will create a module with a table_name_prefix method
- to prefix the model's table name with the module name (e.g. admin_account)
+ to prefix the model's table name with the module name (e.g. admin_accounts)
Available field types:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rails/generators/rails/plugin/templates/Gemfile
new/lib/rails/generators/rails/plugin/templates/Gemfile
--- old/lib/rails/generators/rails/plugin/templates/Gemfile 2014-12-20
01:14:38.000000000 +0100
+++ new/lib/rails/generators/rails/plugin/templates/Gemfile 2015-03-19
17:41:39.000000000 +0100
@@ -45,3 +45,7 @@
# gem 'byebug', group: [:development, :test]
<%- end -%>
<% end -%>
+
+<% if RUBY_PLATFORM.match(/bccwin|cygwin|emx|mingw|mswin|wince|java/) -%>
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
+<% end -%>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/plugin/templates/rails/javascripts.js
new/lib/rails/generators/rails/plugin/templates/rails/javascripts.js
--- old/lib/rails/generators/rails/plugin/templates/rails/javascripts.js
2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/generators/rails/plugin/templates/rails/javascripts.js
2015-03-19 17:41:39.000000000 +0100
@@ -7,7 +7,7 @@
// It's not advisable to add code directly here, but if you do, it'll appear
at the bottom of the
// compiled file.
//
-// Read Sprockets README
(https://github.com/sstephenson/sprockets#sprockets-directives) for details
+// Read Sprockets README
(https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require_tree .
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
new/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
--- old/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/generators/rails/plugin/templates/test/test_helper.rb
2015-03-19 17:41:39.000000000 +0100
@@ -20,4 +20,5 @@
# Load fixtures from the engine
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures",
__FILE__)
+ ActiveSupport::TestCase.fixtures :all
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/lib/rails/generators/rails/resource_route/resource_route_generator.rb
new/lib/rails/generators/rails/resource_route/resource_route_generator.rb
--- old/lib/rails/generators/rails/resource_route/resource_route_generator.rb
2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/generators/rails/resource_route/resource_route_generator.rb
2015-03-19 17:41:39.000000000 +0100
@@ -29,8 +29,10 @@
write("end", route_length - index)
end
- # route prepends two spaces onto the front of the string that is
passed, this corrects that
- route route_string[2..-1]
+ # route prepends two spaces onto the front of the string that is
passed, this corrects that.
+ # Also it adds a \n to the end of each line, as route already adds that
+ # we need to correct that too.
+ route route_string[2..-2]
end
private
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
2014-12-20 01:14:38.000000000 +0100
+++
new/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb
2015-03-19 17:41:39.000000000 +0100
@@ -7,6 +7,7 @@
check_class_collision suffix: "Controller"
+ class_option :helper, type: :boolean
class_option :orm, banner: "NAME", type: :string, required: true,
desc: "ORM to generate the controller for"
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 2014-12-20 01:14:38.000000000 +0100
+++ new/lib/rails/railtie.rb 2015-03-19 17:41:39.000000000 +0100
@@ -93,7 +93,7 @@
# end
# end
#
- # By default, Rails load generators from your load path. However, if you
want to place
+ # By default, Rails loads generators from your load path. However, if you
want to place
# your generators at a different location, you can specify in your Railtie a
block which
# will load them during normal generators lookup:
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2014-12-20 01:14:38.000000000 +0100
+++ new/metadata 2015-03-19 17:41:39.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: railties
version: !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2014-12-20 00:00:00.000000000 Z
+date: 2015-03-19 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,28 +16,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
- !ruby/object:Gem::Dependency
name: actionpack
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
- !ruby/object:Gem::Dependency
name: rake
requirement: !ruby/object:Gem::Requirement
@@ -78,14 +78,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 4.2.0
+ version: 4.2.1
description: 'Rails internals: application bootup, plugins, generators, and
rake tasks.'
email: [email protected]
executables:
@@ -357,7 +357,7 @@
version: '0'
requirements: []
rubyforge_project:
-rubygems_version: 2.2.2
+rubygems_version: 2.4.5
signing_key:
specification_version: 4
summary: Tools for creating, working with, and running Rails applications.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]