openSUSE Commits
Threads by month
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
November 2019
- 1 participants
- 2390 discussions
Hello community,
here is the log from the commit of package rubygem-actionview-5.2 for openSUSE:Factory checked in at 2019-11-30 10:39:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-actionview-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-actionview-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-actionview-5.2"
Sat Nov 30 10:39:08 2019 rev:7 rq:751751 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-actionview-5.2/rubygem-actionview-5.2.changes 2019-04-01 12:35:55.881843617 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-actionview-5.2.new.26869/rubygem-actionview-5.2.changes 2019-11-30 10:40:39.588148562 +0100
@@ -1,0 +2,10 @@
+Thu Nov 28 12:53:13 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * Allow programmatic click events to trigger Rails UJS click handlers.
+ Programmatic click events (eg. ones generated by `Rails.fire(link, "click")`) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.
+
+ *Sudara Williams*
+
+-------------------------------------------------------------------
Old:
----
actionview-5.2.3.gem
New:
----
actionview-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-actionview-5.2.spec ++++++
--- /var/tmp/diff_new_pack.oYeJu4/_old 2019-11-30 10:40:40.464148457 +0100
+++ /var/tmp/diff_new_pack.oYeJu4/_new 2019-11-30 10:40:40.488148454 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-actionview-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name actionview
%define mod_full_name %{mod_name}-%{version}
++++++ actionview-5.2.3.gem -> actionview-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 04:00:56.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:40:05.000000000 +0100
@@ -1,3 +1,11 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* Allow programmatic click events to trigger Rails UJS click handlers.
+ Programmatic click events (eg. ones generated by `Rails.fire(link, "click")`) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.
+
+ *Sudara Williams*
+
+
## Rails 5.2.3 (March 27, 2019) ##
* Prevent non-primary mouse keys from triggering Rails UJS click handlers.
@@ -15,7 +23,16 @@
## Rails 5.2.2.1 (March 11, 2019) ##
-* No changes.
+* Only accept formats from registered mime types
+
+ A lack of filtering on mime types could allow an attacker to read
+ arbitrary files on the target server or to perform a denial of service
+ attack.
+
+ Fixes CVE-2019-5418
+ Fixes CVE-2019-5419
+
+ *John Hawthorn*, *Eileen M. Uchitelle*, *Aaron Patterson*
## Rails 5.2.2 (December 04, 2018) ##
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_view/gem_version.rb new/lib/action_view/gem_version.rb
--- old/lib/action_view/gem_version.rb 2019-03-28 04:00:56.000000000 +0100
+++ new/lib/action_view/gem_version.rb 2019-11-27 16:40:05.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_view/helpers/form_helper.rb new/lib/action_view/helpers/form_helper.rb
--- old/lib/action_view/helpers/form_helper.rb 2019-03-28 04:00:56.000000000 +0100
+++ new/lib/action_view/helpers/form_helper.rb 2019-11-27 16:40:05.000000000 +0100
@@ -736,7 +736,7 @@
# def labelled_form_with(**options, &block)
# form_with(**options.merge(builder: LabellingFormBuilder), &block)
# end
- def form_with(model: nil, scope: nil, url: nil, format: nil, **options)
+ def form_with(model: nil, scope: nil, url: nil, format: nil, **options, &block)
options[:allow_method_names_outside_object] = true
options[:skip_default_ids] = !form_with_generates_ids
@@ -749,7 +749,7 @@
if block_given?
builder = instantiate_builder(scope, model, options)
- output = capture(builder, &Proc.new)
+ output = capture(builder, &block)
options[:multipart] ||= builder.multipart?
html_options = html_options_for_form_with(url, model, options)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_view/helpers/form_tag_helper.rb new/lib/action_view/helpers/form_tag_helper.rb
--- old/lib/action_view/helpers/form_tag_helper.rb 2019-03-28 04:00:56.000000000 +0100
+++ new/lib/action_view/helpers/form_tag_helper.rb 2019-11-27 16:40:05.000000000 +0100
@@ -163,6 +163,8 @@
# * <tt>:size</tt> - The number of visible characters that will fit in the input.
# * <tt>:maxlength</tt> - The maximum number of characters that the browser will allow the user to enter.
# * <tt>:placeholder</tt> - The text contained in the field by default which is removed when the field receives focus.
+ # If set to true, use a translation is found in the current I18n locale
+ # (through helpers.placeholders.<modelname>.<attribute>).
# * Any other key creates standard HTML attributes for the tag.
#
# ==== Examples
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/action_view/helpers/url_helper.rb new/lib/action_view/helpers/url_helper.rb
--- old/lib/action_view/helpers/url_helper.rb 2019-03-28 04:00:56.000000000 +0100
+++ new/lib/action_view/helpers/url_helper.rb 2019-11-27 16:40:05.000000000 +0100
@@ -253,7 +253,7 @@
# # <input value="New" type="submit" />
# # </form>"
#
- # <%= button_to "New", new_articles_path %>
+ # <%= button_to "New", new_article_path %>
# # => "<form method="post" action="/articles/new" class="button_to">
# # <input value="New" type="submit" />
# # </form>"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/assets/compiled/rails-ujs.js new/lib/assets/compiled/rails-ujs.js
--- old/lib/assets/compiled/rails-ujs.js 2019-03-28 04:00:56.000000000 +0100
+++ new/lib/assets/compiled/rails-ujs.js 2019-11-27 16:40:05.000000000 +0100
@@ -2,7 +2,7 @@
Unobtrusive JavaScript
https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts
Released under the MIT license
- */
+ */;
(function() {
var context = this;
@@ -622,14 +622,14 @@
};
Rails.preventInsignificantClick = function(e) {
- var data, insignificantMetaClick, link, metaClick, method, primaryMouseKey;
+ var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;
link = this;
method = (link.getAttribute('data-method') || 'GET').toUpperCase();
data = link.getAttribute('data-params');
metaClick = e.metaKey || e.ctrlKey;
insignificantMetaClick = metaClick && method === 'GET' && !data;
- primaryMouseKey = e.button === 0;
- if (!primaryMouseKey || insignificantMetaClick) {
+ nonPrimaryMouseClick = (e.button != null) && e.button !== 0;
+ if (nonPrimaryMouseClick || insignificantMetaClick) {
return e.stopImmediatePropagation();
}
};
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 04:00:56.000000000 +0100
+++ new/metadata 2019-11-27 16:40:05.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: actionview
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: builder
requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
description: Simple, battle-tested conventions and helpers for building web pages.
email: david(a)loudthinking.com
executables: []
@@ -230,8 +230,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/actionview
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/actionview/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/actionview
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/actionview/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths:
@@ -248,7 +248,7 @@
version: '0'
requirements:
- none
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Rendering framework putting the V in MVC (part of Rails).
1
0
Hello community,
here is the log from the commit of package rubygem-activejob-5.2 for openSUSE:Factory checked in at 2019-11-30 10:39:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activejob-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activejob-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activejob-5.2"
Sat Nov 30 10:39:06 2019 rev:7 rq:751750 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-activejob-5.2/rubygem-activejob-5.2.changes 2019-04-01 12:36:04.877848018 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-activejob-5.2.new.26869/rubygem-activejob-5.2.changes 2019-11-30 10:40:38.688148670 +0100
@@ -1,0 +2,7 @@
+Thu Nov 28 12:54:14 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * no changes
+
+-------------------------------------------------------------------
Old:
----
activejob-5.2.3.gem
New:
----
activejob-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activejob-5.2.spec ++++++
--- /var/tmp/diff_new_pack.fbJK1M/_old 2019-11-30 10:40:39.180148611 +0100
+++ /var/tmp/diff_new_pack.fbJK1M/_new 2019-11-30 10:40:39.184148610 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-activejob-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name activejob
%define mod_full_name %{mod_name}-%{version}
++++++ activejob-5.2.3.gem -> activejob-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 04:02:09.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:40:11.000000000 +0100
@@ -1,3 +1,8 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* No changes.
+
+
## Rails 5.2.3 (March 27, 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/active_job/gem_version.rb new/lib/active_job/gem_version.rb
--- old/lib/active_job/gem_version.rb 2019-03-28 04:02:09.000000000 +0100
+++ new/lib/active_job/gem_version.rb 2019-11-27 16:40:11.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 04:02:09.000000000 +0100
+++ new/metadata 2019-11-27 16:40:11.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activejob
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: globalid
requirement: !ruby/object:Gem::Requirement
@@ -86,8 +86,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activejob
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activejob/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/activejob
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/activejob/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths:
@@ -103,7 +103,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Job framework with pluggable queues.
1
0
Hello community,
here is the log from the commit of package rubygem-activemodel-5.2 for openSUSE:Factory checked in at 2019-11-30 10:39:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activemodel-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activemodel-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activemodel-5.2"
Sat Nov 30 10:39:04 2019 rev:7 rq:751749 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-activemodel-5.2/rubygem-activemodel-5.2.changes 2019-04-01 12:36:11.349851183 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-activemodel-5.2.new.26869/rubygem-activemodel-5.2.changes 2019-11-30 10:40:37.732148785 +0100
@@ -1,0 +2,11 @@
+Thu Nov 28 12:55:07 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * Type cast falsy boolean symbols on boolean attribute as false.
+
+ Fixes #35676.
+
+ *Ryuta Kamizono*
+
+-------------------------------------------------------------------
Old:
----
activemodel-5.2.3.gem
New:
----
activemodel-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activemodel-5.2.spec ++++++
--- /var/tmp/diff_new_pack.s6nZav/_old 2019-11-30 10:40:38.428148701 +0100
+++ /var/tmp/diff_new_pack.s6nZav/_new 2019-11-30 10:40:38.432148700 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-activemodel-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name activemodel
%define mod_full_name %{mod_name}-%{version}
++++++ activemodel-5.2.3.gem -> activemodel-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 03:59:23.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:39:54.000000000 +0100
@@ -1,3 +1,12 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* Type cast falsy boolean symbols on boolean attribute as false.
+
+ Fixes #35676.
+
+ *Ryuta Kamizono*
+
+
## Rails 5.2.3 (March 27, 2019) ##
* Fix date value when casting a multiparameter date hash to not convert
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_model/gem_version.rb new/lib/active_model/gem_version.rb
--- old/lib/active_model/gem_version.rb 2019-03-28 03:59:23.000000000 +0100
+++ new/lib/active_model/gem_version.rb 2019-11-27 16:39:54.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_model/type/boolean.rb new/lib/active_model/type/boolean.rb
--- old/lib/active_model/type/boolean.rb 2019-03-28 03:59:23.000000000 +0100
+++ new/lib/active_model/type/boolean.rb 2019-11-27 16:39:54.000000000 +0100
@@ -14,7 +14,16 @@
# - Empty strings are coerced to +nil+
# - All other values will be coerced to +true+
class Boolean < Value
- FALSE_VALUES = [false, 0, "0", "f", "F", "false", "FALSE", "off", "OFF"].to_set
+ FALSE_VALUES = [
+ false, 0,
+ "0", :"0",
+ "f", :f,
+ "F", :F,
+ "false", :false,
+ "FALSE", :FALSE,
+ "off", :off,
+ "OFF", :OFF,
+ ].to_set.freeze
def type # :nodoc:
:boolean
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 03:59:23.000000000 +0100
+++ new/metadata 2019-11-27 16:39:54.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activemodel
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
description: A toolkit for building modeling frameworks like Active Record. Rich support
for attributes, callbacks, validations, serialization, internationalization, and
testing.
@@ -101,8 +101,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activemodel
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activemodel/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/activemodel
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/activemodel/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths:
@@ -118,7 +118,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: A toolkit for building modeling frameworks (part of Rails).
1
0
Hello community,
here is the log from the commit of package rubygem-activerecord-5.2 for openSUSE:Factory checked in at 2019-11-30 10:38:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activerecord-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activerecord-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activerecord-5.2"
Sat Nov 30 10:38:57 2019 rev:7 rq:751748 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-activerecord-5.2/rubygem-activerecord-5.2.changes 2019-04-01 12:36:19.533855187 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-activerecord-5.2.new.26869/rubygem-activerecord-5.2.changes 2019-11-30 10:40:36.952148878 +0100
@@ -1,0 +2,42 @@
+Thu Nov 28 12:59:13 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * Fix circular `autosave: true` causes invalid records to be saved.
+
+ Prior to the fix, when there was a circular series of `autosave: true`
+ associations, the callback for a `has_many` association was run while
+ another instance of the same callback on the same association hadn't
+ finished running. When control returned to the first instance of the
+ callback, the instance variable had changed, and subsequent associated
+ records weren't saved correctly. Specifically, the ID field for the
+ `belongs_to` corresponding to the `has_many` was `nil`.
+
+ Fixes #28080.
+
+ *Larry Reid*
+
+ * PostgreSQL: Fix GROUP BY with ORDER BY virtual count attribute.
+
+ Fixes #36022.
+
+ *Ryuta Kamizono*
+
+ * Fix sqlite3 collation parsing when using decimal columns.
+
+ *Martin R. Schuster*
+
+ * Make ActiveRecord `ConnectionPool.connections` method thread-safe.
+
+ Fixes #36465.
+
+ *Jeff Doering*
+
+ * Assign all attributes before calling `build` to ensure the child record is visible in
+ `before_add` and `after_add` callbacks for `has_many :through` associations.
+
+ Fixes #33249.
+
+ *Ryan H. Kerr*
+
+-------------------------------------------------------------------
Old:
----
activerecord-5.2.3.gem
New:
----
activerecord-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activerecord-5.2.spec ++++++
--- /var/tmp/diff_new_pack.I5LLCd/_old 2019-11-30 10:40:37.424148821 +0100
+++ /var/tmp/diff_new_pack.I5LLCd/_new 2019-11-30 10:40:37.424148821 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-activerecord-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name activerecord
%define mod_full_name %{mod_name}-%{version}
++++++ activerecord-5.2.3.gem -> activerecord-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 03:59:25.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:39:57.000000000 +0100
@@ -1,3 +1,43 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* Fix circular `autosave: true` causes invalid records to be saved.
+
+ Prior to the fix, when there was a circular series of `autosave: true`
+ associations, the callback for a `has_many` association was run while
+ another instance of the same callback on the same association hadn't
+ finished running. When control returned to the first instance of the
+ callback, the instance variable had changed, and subsequent associated
+ records weren't saved correctly. Specifically, the ID field for the
+ `belongs_to` corresponding to the `has_many` was `nil`.
+
+ Fixes #28080.
+
+ *Larry Reid*
+
+* PostgreSQL: Fix GROUP BY with ORDER BY virtual count attribute.
+
+ Fixes #36022.
+
+ *Ryuta Kamizono*
+
+* Fix sqlite3 collation parsing when using decimal columns.
+
+ *Martin R. Schuster*
+
+* Make ActiveRecord `ConnectionPool.connections` method thread-safe.
+
+ Fixes #36465.
+
+ *Jeff Doering*
+
+* Assign all attributes before calling `build` to ensure the child record is visible in
+ `before_add` and `after_add` callbacks for `has_many :through` associations.
+
+ Fixes #33249.
+
+ *Ryan H. Kerr*
+
+
## Rails 5.2.3 (March 27, 2019) ##
* Fix different `count` calculation when using `size` with manual `select` with DISTINCT.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/associations/builder/collection_association.rb new/lib/active_record/associations/builder/collection_association.rb
--- old/lib/active_record/associations/builder/collection_association.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/associations/builder/collection_association.rb 2019-11-27 16:39:57.000000000 +0100
@@ -20,10 +20,10 @@
}
end
- def self.define_extensions(model, name)
+ def self.define_extensions(model, name, &block)
if block_given?
extension_module_name = "#{model.name.demodulize}#{name.to_s.camelize}AssociationExtension"
- extension = Module.new(&Proc.new)
+ extension = Module.new(&block)
model.parent.const_set(extension_module_name, extension)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/associations/has_many_through_association.rb new/lib/active_record/associations/has_many_through_association.rb
--- old/lib/active_record/associations/has_many_through_association.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/associations/has_many_through_association.rb 2019-11-27 16:39:57.000000000 +0100
@@ -57,21 +57,14 @@
@through_records[record.object_id] ||= begin
ensure_mutable
- through_record = through_association.build(*options_for_through_record)
- through_record.send("#{source_reflection.name}=", record)
+ attributes = through_scope_attributes
+ attributes[source_reflection.name] = record
+ attributes[source_reflection.foreign_type] = options[:source_type] if options[:source_type]
- if options[:source_type]
- through_record.send("#{source_reflection.foreign_type}=", options[:source_type])
- end
-
- through_record
+ through_association.build(attributes)
end
end
- def options_for_through_record
- [through_scope_attributes]
- end
-
def through_scope_attributes
scope.where_values_hash(through_association.reflection.name.to_s).
except!(through_association.reflection.foreign_key,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/associations/join_dependency/join_association.rb new/lib/active_record/associations/join_dependency/join_association.rb
--- old/lib/active_record/associations/join_dependency/join_association.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/associations/join_dependency/join_association.rb 2019-11-27 16:39:57.000000000 +0100
@@ -30,17 +30,21 @@
table = tables[-i]
klass = reflection.klass
- constraint = reflection.build_join_constraint(table, foreign_table)
+ join_scope = reflection.join_scope(table, foreign_table, foreign_klass)
- joins << table.create_join(table, table.create_on(constraint), join_type)
-
- join_scope = reflection.join_scope(table, foreign_klass)
arel = join_scope.arel(alias_tracker.aliases)
+ nodes = arel.constraints.first
+
+ others, children = nodes.children.partition do |node|
+ !fetch_arel_attribute(node) { |attr| attr.relation.name == table.name }
+ end
+ nodes = table.create_and(children)
- if arel.constraints.any?
+ joins << table.create_join(table, table.create_on(nodes), join_type)
+
+ unless others.empty?
joins.concat arel.join_sources
- right = joins.last.right
- right.expr = right.expr.and(arel.constraints)
+ append_constraints(joins.last, others)
end
# The current table in this iteration becomes the foreign table in the next
@@ -54,6 +58,23 @@
@tables = tables
@table = tables.first
end
+
+ private
+ def fetch_arel_attribute(value)
+ case value
+ when Arel::Nodes::Between, Arel::Nodes::In, Arel::Nodes::NotIn, Arel::Nodes::Equality, Arel::Nodes::NotEqual, Arel::Nodes::LessThan, Arel::Nodes::LessThanOrEqual, Arel::Nodes::GreaterThan, Arel::Nodes::GreaterThanOrEqual
+ yield value.left.is_a?(Arel::Attributes::Attribute) ? value.left : value.right
+ end
+ end
+
+ def append_constraints(join, constraints)
+ if join.is_a?(Arel::Nodes::StringJoin)
+ join_string = table.create_and(constraints.unshift(join.left))
+ join.left = Arel.sql(base_klass.connection.visitor.compile(join_string))
+ else
+ join.right.expr.children.concat(constraints)
+ end
+ end
end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/associations/preloader.rb new/lib/active_record/associations/preloader.rb
--- old/lib/active_record/associations/preloader.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/associations/preloader.rb 2019-11-27 16:39:57.000000000 +0100
@@ -177,7 +177,7 @@
# and attach it to a relation. The class returned implements a `run` method
# that accepts a preloader.
def preloader_for(reflection, owners)
- if owners.first.association(reflection.name).loaded?
+ if owners.all? { |o| o.association(reflection.name).loaded? }
return AlreadyLoaded
end
reflection.check_preloadable!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/autosave_association.rb new/lib/active_record/autosave_association.rb
--- old/lib/active_record/autosave_association.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/autosave_association.rb 2019-11-27 16:39:57.000000000 +0100
@@ -272,7 +272,7 @@
# or saved. If +autosave+ is +false+ only new records will be returned,
# unless the parent is/was a new record itself.
def associated_records_to_validate_or_save(association, new_record, autosave)
- if new_record
+ if new_record || custom_validation_context?
association && association.target
elsif autosave
association.target.find_all(&:changed_for_autosave?)
@@ -304,7 +304,7 @@
def validate_single_association(reflection)
association = association_instance_get(reflection.name)
record = association && association.reader
- association_valid?(reflection, record) if record
+ association_valid?(reflection, record) if record && (record.changed_for_autosave? || custom_validation_context?)
end
# Validate the associated records if <tt>:validate</tt> or
@@ -324,7 +324,7 @@
def association_valid?(reflection, record, index = nil)
return true if record.destroyed? || (reflection.options[:autosave] && record.marked_for_destruction?)
- context = validation_context unless [:create, :update].include?(validation_context)
+ context = validation_context if custom_validation_context?
unless valid = record.valid?(context)
if reflection.options[:autosave]
@@ -382,10 +382,14 @@
if association = association_instance_get(reflection.name)
autosave = reflection.options[:autosave]
+ # By saving the instance variable in a local variable,
+ # we make the whole callback re-entrant.
+ new_record_before_save = @new_record_before_save
+
# reconstruct the scope now that we know the owner's id
association.reset_scope
- if records = associated_records_to_validate_or_save(association, @new_record_before_save, autosave)
+ if records = associated_records_to_validate_or_save(association, new_record_before_save, autosave)
if autosave
records_to_destroy = records.select(&:marked_for_destruction?)
records_to_destroy.each { |record| association.destroy(record) }
@@ -397,7 +401,7 @@
saved = true
- if autosave != false && (@new_record_before_save || record.new_record?)
+ if autosave != false && (new_record_before_save || record.new_record?)
if autosave
saved = association.insert_record(record, false)
elsif !reflection.nested?
@@ -457,10 +461,16 @@
# If the record is new or it has changed, returns true.
def record_changed?(reflection, record, key)
record.new_record? ||
- (record.has_attribute?(reflection.foreign_key) && record[reflection.foreign_key] != key) ||
+ association_foreign_key_changed?(reflection, record, key) ||
record.will_save_change_to_attribute?(reflection.foreign_key)
end
+ def association_foreign_key_changed?(reflection, record, key)
+ return false if reflection.through_reflection?
+
+ record.has_attribute?(reflection.foreign_key) && record[reflection.foreign_key] != key
+ end
+
# Saves the associated record if it's new or <tt>:autosave</tt> is enabled.
#
# In addition, it will destroy the association if it was marked for destruction.
@@ -489,6 +499,10 @@
end
end
+ def custom_validation_context?
+ validation_context && [:create, :update].exclude?(validation_context)
+ end
+
def _ensure_no_duplicate_errors
errors.messages.each_key do |attribute|
errors[attribute].uniq!
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/connection_adapters/abstract/connection_pool.rb new/lib/active_record/connection_adapters/abstract/connection_pool.rb
--- old/lib/active_record/connection_adapters/abstract/connection_pool.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/connection_adapters/abstract/connection_pool.rb 2019-11-27 16:39:58.000000000 +0100
@@ -310,7 +310,7 @@
include QueryCache::ConnectionPoolConfiguration
attr_accessor :automatic_reconnect, :checkout_timeout, :schema_cache
- attr_reader :spec, :connections, :size, :reaper
+ attr_reader :spec, :size, :reaper
# Creates a new ConnectionPool object. +spec+ is a ConnectionSpecification
# object which describes database connection information (e.g. adapter,
@@ -379,7 +379,7 @@
# #connection can be called any number of times; the connection is
# held in a cache keyed by a thread.
def connection
- @thread_cached_conns[connection_cache_key(@lock_thread || Thread.current)] ||= checkout
+ @thread_cached_conns[connection_cache_key(current_thread)] ||= checkout
end
# Returns true if there is an open connection being used for the current thread.
@@ -388,7 +388,7 @@
# #connection or #with_connection methods. Connections obtained through
# #checkout will not be detected by #active_connection?
def active_connection?
- @thread_cached_conns[connection_cache_key(Thread.current)]
+ @thread_cached_conns[connection_cache_key(current_thread)]
end
# Signal that the thread is finished with the current connection.
@@ -423,6 +423,21 @@
synchronize { @connections.any? }
end
+ # Returns an array containing the connections currently in the pool.
+ # Access to the array does not require synchronization on the pool because
+ # the array is newly created and not retained by the pool.
+ #
+ # However; this method bypasses the ConnectionPool's thread-safe connection
+ # access pattern. A returned connection may be owned by another thread,
+ # unowned, or by happen-stance owned by the calling thread.
+ #
+ # Calling methods on a connection without ownership is subject to the
+ # thread-safety guarantees of the underlying method. Many of the methods
+ # on connection adapter classes are inherently multi-thread unsafe.
+ def connections
+ synchronize { @connections.dup }
+ end
+
# Disconnects all connections in the pool, and clears the pool.
#
# Raises:
@@ -668,6 +683,10 @@
thread
end
+ def current_thread
+ @lock_thread || Thread.current
+ end
+
# Take control of all existing connections so a "group" action such as
# reload/disconnect can be performed safely. It is no longer enough to
# wrap it in +synchronize+ because some pool's actions are allowed
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/connection_adapters/abstract/query_cache.rb new/lib/active_record/connection_adapters/abstract/query_cache.rb
--- old/lib/active_record/connection_adapters/abstract/query_cache.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/connection_adapters/abstract/query_cache.rb 2019-11-27 16:39:58.000000000 +0100
@@ -32,17 +32,17 @@
end
def enable_query_cache!
- @query_cache_enabled[connection_cache_key(Thread.current)] = true
+ @query_cache_enabled[connection_cache_key(current_thread)] = true
connection.enable_query_cache! if active_connection?
end
def disable_query_cache!
- @query_cache_enabled.delete connection_cache_key(Thread.current)
+ @query_cache_enabled.delete connection_cache_key(current_thread)
connection.disable_query_cache! if active_connection?
end
def query_cache_enabled
- @query_cache_enabled[connection_cache_key(Thread.current)]
+ @query_cache_enabled[connection_cache_key(current_thread)]
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/connection_adapters/abstract/schema_statements.rb new/lib/active_record/connection_adapters/abstract/schema_statements.rb
--- old/lib/active_record/connection_adapters/abstract/schema_statements.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/connection_adapters/abstract/schema_statements.rb 2019-11-27 16:39:58.000000000 +0100
@@ -100,7 +100,7 @@
def index_exists?(table_name, column_name, options = {})
column_names = Array(column_name).map(&:to_s)
checks = []
- checks << lambda { |i| i.columns == column_names }
+ checks << lambda { |i| Array(i.columns) == column_names }
checks << lambda { |i| i.unique } if options[:unique]
checks << lambda { |i| i.name == options[:name].to_s } if options[:name]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/connection_adapters/sqlite3_adapter.rb new/lib/active_record/connection_adapters/sqlite3_adapter.rb
--- old/lib/active_record/connection_adapters/sqlite3_adapter.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/connection_adapters/sqlite3_adapter.rb 2019-11-27 16:39:58.000000000 +0100
@@ -525,9 +525,9 @@
result = exec_query(sql, "SCHEMA").first
if result
- # Splitting with left parentheses and picking up last will return all
+ # Splitting with left parentheses and discarding the first part will return all
# columns separated with comma(,).
- columns_string = result["sql"].split("(").last
+ columns_string = result["sql"].split("(", 2).last
columns_string.split(",").each do |column_string|
# This regex will match the column name and collation type and will save
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/gem_version.rb new/lib/active_record/gem_version.rb
--- old/lib/active_record/gem_version.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/gem_version.rb 2019-11-27 16:39:58.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/reflection.rb new/lib/active_record/reflection.rb
--- old/lib/active_record/reflection.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/reflection.rb 2019-11-27 16:39:58.000000000 +0100
@@ -174,28 +174,24 @@
scope ? [scope] : []
end
- def build_join_constraint(table, foreign_table)
- key = join_keys.key
- foreign_key = join_keys.foreign_key
-
- constraint = table[key].eq(foreign_table[foreign_key])
-
- if klass.finder_needs_type_condition?
- table.create_and([constraint, klass.send(:type_condition, table)])
- else
- constraint
- end
- end
-
- def join_scope(table, foreign_klass)
+ def join_scope(table, foreign_table, foreign_klass)
predicate_builder = predicate_builder(table)
scope_chain_items = join_scopes(table, predicate_builder)
klass_scope = klass_join_scope(table, predicate_builder)
+ key = join_keys.key
+ foreign_key = join_keys.foreign_key
+
+ klass_scope.where!(table[key].eq(foreign_table[foreign_key]))
+
if type
klass_scope.where!(type => foreign_klass.polymorphic_name)
end
+ if klass.finder_needs_type_condition?
+ klass_scope.where!(klass.send(:type_condition, table))
+ end
+
scope_chain_items.inject(klass_scope, &:merge!)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/relation/calculations.rb new/lib/active_record/relation/calculations.rb
--- old/lib/active_record/relation/calculations.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/relation/calculations.rb 2019-11-27 16:39:58.000000000 +0100
@@ -133,11 +133,12 @@
relation = apply_join_dependency
if operation.to_s.downcase == "count"
- relation.distinct!
- # PostgreSQL: ORDER BY expressions must appear in SELECT list when using DISTINCT
- if (column_name == :all || column_name.nil?) && select_values.empty?
- relation.order_values = []
+ unless distinct_value || distinct_select?(column_name || select_for_count)
+ relation.distinct!
+ relation.select_values = [ klass.primary_key || table[Arel.star] ]
end
+ # PostgreSQL: ORDER BY expressions must appear in SELECT list when using DISTINCT
+ relation.order_values = []
end
relation.calculate(operation, column_name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/relation/finder_methods.rb new/lib/active_record/relation/finder_methods.rb
--- old/lib/active_record/relation/finder_methods.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/relation/finder_methods.rb 2019-11-27 16:39:58.000000000 +0100
@@ -360,7 +360,7 @@
def construct_relation_for_exists(conditions)
if distinct_value && offset_value
- relation = limit(1)
+ relation = except(:order).limit!(1)
else
relation = except(:select, :distinct, :order)._select!(ONE_AS_ONE).limit!(1)
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/relation/query_methods.rb new/lib/active_record/relation/query_methods.rb
--- old/lib/active_record/relation/query_methods.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/relation/query_methods.rb 2019-11-27 16:39:58.000000000 +0100
@@ -232,9 +232,6 @@
def _select!(*fields) # :nodoc:
fields.flatten!
- fields.map! do |field|
- klass.attribute_alias?(field) ? klass.attribute_alias(field).to_sym : field
- end
self.select_values += fields
self
end
@@ -1053,10 +1050,11 @@
columns.flat_map do |field|
case field
when Symbol
- field = field.to_s
- arel_column(field) { connection.quote_table_name(field) }
+ arel_column(field.to_s) do |attr_name|
+ connection.quote_table_name(attr_name)
+ end
when String
- arel_column(field) { field }
+ arel_column(field, &:itself)
when Proc
field.call
else
@@ -1072,7 +1070,7 @@
if klass.columns_hash.key?(field) && (!from || table_name_matches?(from))
arel_attribute(field)
else
- yield
+ yield field
end
end
@@ -1161,20 +1159,14 @@
order_args.map! do |arg|
case arg
when Symbol
- arg = arg.to_s
- arel_column(arg) {
- Arel.sql(connection.quote_table_name(arg))
- }.asc
+ order_column(arg.to_s).asc
when Hash
arg.map { |field, dir|
case field
when Arel::Nodes::SqlLiteral
field.send(dir.downcase)
else
- field = field.to_s
- arel_column(field) {
- Arel.sql(connection.quote_table_name(field))
- }.send(dir.downcase)
+ order_column(field.to_s).send(dir.downcase)
end
}
else
@@ -1183,6 +1175,16 @@
end.flatten!
end
+ def order_column(field)
+ arel_column(field) do |attr_name|
+ if attr_name == "count" && !group_values.empty?
+ arel_attribute(attr_name)
+ else
+ Arel.sql(connection.quote_table_name(attr_name))
+ end
+ end
+ end
+
# Checks to make sure that the arguments are not blank. Note that if some
# blank-like object were initially passed into the query method, then this
# method will not raise an error.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/scoping/default.rb new/lib/active_record/scoping/default.rb
--- old/lib/active_record/scoping/default.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/scoping/default.rb 2019-11-27 16:39:58.000000000 +0100
@@ -86,8 +86,8 @@
# # Should return a scope, you can call 'super' here etc.
# end
# end
- def default_scope(scope = nil) # :doc:
- scope = Proc.new if block_given?
+ def default_scope(scope = nil, &block) # :doc:
+ scope = block if block_given?
if scope.is_a?(Relation) || !scope.respond_to?(:call)
raise ArgumentError,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/statement_cache.rb new/lib/active_record/statement_cache.rb
--- old/lib/active_record/statement_cache.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/statement_cache.rb 2019-11-27 16:39:58.000000000 +0100
@@ -87,8 +87,8 @@
end
end
- def self.create(connection, block = Proc.new)
- relation = block.call Params.new
+ def self.create(connection, callable = nil, &block)
+ relation = (callable || block).call Params.new
query_builder, binds = connection.cacheable_query(self, relation.arel)
bind_map = BindMap.new(binds)
new(query_builder, bind_map, relation.klass)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_record/transactions.rb new/lib/active_record/transactions.rb
--- old/lib/active_record/transactions.rb 2019-03-28 03:59:25.000000000 +0100
+++ new/lib/active_record/transactions.rb 2019-11-27 16:39:58.000000000 +0100
@@ -340,6 +340,7 @@
# Ensure that it is not called if the object was never persisted (failed create),
# but call it after the commit of a destroyed object.
def committed!(should_run_callbacks: true) #:nodoc:
+ force_clear_transaction_record_state
if should_run_callbacks && (destroyed? || persisted?)
@_committed_already_called = true
_run_commit_without_transaction_enrollment_callbacks
@@ -347,7 +348,6 @@
end
ensure
@_committed_already_called = false
- force_clear_transaction_record_state
end
# Call the #after_rollback callbacks. The +force_restore_state+ argument indicates if the record
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 03:59:25.000000000 +0100
+++ new/metadata 2019-11-27 16:39:57.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activerecord
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,28 +16,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: arel
requirement: !ruby/object:Gem::Requirement
@@ -307,8 +307,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activerecord
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activerecord/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/activerecord
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/activerecord/CHANGELOG.md
post_install_message:
rdoc_options:
- "--main"
@@ -326,7 +326,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Object-relational mapper framework (part of Rails).
1
0
Hello community,
here is the log from the commit of package rubygem-activesupport-5.2 for openSUSE:Factory checked in at 2019-11-30 10:38:39
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activesupport-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activesupport-5.2"
Sat Nov 30 10:38:39 2019 rev:7 rq:751746 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-activesupport-5.2/rubygem-activesupport-5.2.changes 2019-04-01 12:37:10.149879949 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-activesupport-5.2.new.26869/rubygem-activesupport-5.2.changes 2019-11-30 10:40:35.556149046 +0100
@@ -1,0 +2,37 @@
+Thu Nov 28 13:07:37 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * Make ActiveSupport::Logger Fiber-safe. Fixes #36752.
+
+ Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order
+ to make log level local to Ruby Fibers in addition to Threads.
+
+ Example:
+
+ logger = ActiveSupport::Logger.new(STDOUT)
+ logger.level = 1
+ p "Main is debug? #{logger.debug?}"
+
+ Fiber.new {
+ logger.local_level = 0
+ p "Thread is debug? #{logger.debug?}"
+ }.resume
+
+ p "Main is debug? #{logger.debug?}"
+
+ Before:
+
+ Main is debug? false
+ Thread is debug? true
+ Main is debug? true
+
+ After:
+
+ Main is debug? false
+ Thread is debug? true
+ Main is debug? false
+
+ *Alexander Varnin*
+
+-------------------------------------------------------------------
Old:
----
activesupport-5.2.3.gem
New:
----
activesupport-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activesupport-5.2.spec ++++++
--- /var/tmp/diff_new_pack.6rp80Z/_old 2019-11-30 10:40:35.996148993 +0100
+++ /var/tmp/diff_new_pack.6rp80Z/_new 2019-11-30 10:40:36.000148993 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-activesupport-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name activesupport
%define mod_full_name %{mod_name}-%{version}
++++++ activesupport-5.2.3.gem -> activesupport-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 03:59:21.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:39:51.000000000 +0100
@@ -1,3 +1,38 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* Make ActiveSupport::Logger Fiber-safe. Fixes #36752.
+
+ Use `Fiber.current.__id__` in `ActiveSupport::Logger#local_level=` in order
+ to make log level local to Ruby Fibers in addition to Threads.
+
+ Example:
+
+ logger = ActiveSupport::Logger.new(STDOUT)
+ logger.level = 1
+ p "Main is debug? #{logger.debug?}"
+
+ Fiber.new {
+ logger.local_level = 0
+ p "Thread is debug? #{logger.debug?}"
+ }.resume
+
+ p "Main is debug? #{logger.debug?}"
+
+ Before:
+
+ Main is debug? false
+ Thread is debug? true
+ Main is debug? true
+
+ After:
+
+ Main is debug? false
+ Thread is debug? true
+ Main is debug? false
+
+ *Alexander Varnin*
+
+
## Rails 5.2.3 (March 27, 2019) ##
* Add `ActiveSupport::HashWithIndifferentAccess#assoc`.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/core_ext/digest.rb new/lib/active_support/core_ext/digest.rb
--- old/lib/active_support/core_ext/digest.rb 1970-01-01 01:00:00.000000000 +0100
+++ new/lib/active_support/core_ext/digest.rb 2019-11-27 16:39:51.000000000 +0100
@@ -0,0 +1,3 @@
+# frozen_string_literal: true
+
+require "active_support/core_ext/digest/uuid"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/gem_version.rb new/lib/active_support/gem_version.rb
--- old/lib/active_support/gem_version.rb 2019-03-28 03:59:22.000000000 +0100
+++ new/lib/active_support/gem_version.rb 2019-11-27 16:39:51.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/logger_thread_safe_level.rb new/lib/active_support/logger_thread_safe_level.rb
--- old/lib/active_support/logger_thread_safe_level.rb 2019-03-28 03:59:22.000000000 +0100
+++ new/lib/active_support/logger_thread_safe_level.rb 2019-11-27 16:39:51.000000000 +0100
@@ -1,6 +1,7 @@
# frozen_string_literal: true
require "active_support/concern"
+require "fiber"
module ActiveSupport
module LoggerThreadSafeLevel # :nodoc:
@@ -11,7 +12,7 @@
end
def local_log_id
- Thread.current.__id__
+ Fiber.current.__id__
end
def local_level
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/notifications/fanout.rb new/lib/active_support/notifications/fanout.rb
--- old/lib/active_support/notifications/fanout.rb 2019-03-28 03:59:22.000000000 +0100
+++ new/lib/active_support/notifications/fanout.rb 2019-11-27 16:39:51.000000000 +0100
@@ -18,8 +18,8 @@
super
end
- def subscribe(pattern = nil, block = Proc.new)
- subscriber = Subscribers.new pattern, block
+ def subscribe(pattern = nil, callable = nil, &block)
+ subscriber = Subscribers.new(pattern, callable || block)
synchronize do
@subscribers << subscriber
@listeners_for.clear
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_support/ordered_options.rb new/lib/active_support/ordered_options.rb
--- old/lib/active_support/ordered_options.rb 2019-03-28 03:59:22.000000000 +0100
+++ new/lib/active_support/ordered_options.rb 2019-11-27 16:39:51.000000000 +0100
@@ -39,7 +39,7 @@
end
def method_missing(name, *args)
- name_string = name.to_s
+ name_string = name.to_s.dup
if name_string.chomp!("=")
self[name_string] = args.first
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 03:59:21.000000000 +0100
+++ new/metadata 2019-11-27 16:39:51.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activesupport
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: i18n
@@ -139,6 +139,7 @@
- lib/active_support/core_ext/date_time/calculations.rb
- lib/active_support/core_ext/date_time/compatibility.rb
- lib/active_support/core_ext/date_time/conversions.rb
+- lib/active_support/core_ext/digest.rb
- lib/active_support/core_ext/digest/uuid.rb
- lib/active_support/core_ext/enumerable.rb
- lib/active_support/core_ext/file.rb
@@ -332,8 +333,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activesupport
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activesupport/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/activesupport
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/activesupport/CHANGELOG.md
post_install_message:
rdoc_options:
- "--encoding"
@@ -351,7 +352,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: A toolkit of support libraries and Ruby core extensions extracted from the
1
0
Hello community,
here is the log from the commit of package rubygem-activestorage-5.2 for openSUSE:Factory checked in at 2019-11-30 10:38:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activestorage-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activestorage-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activestorage-5.2"
Sat Nov 30 10:38:51 2019 rev:7 rq:751747 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-activestorage-5.2/rubygem-activestorage-5.2.changes 2019-04-01 12:37:11.789880751 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-activestorage-5.2.new.26869/rubygem-activestorage-5.2.changes 2019-11-30 10:40:36.260148962 +0100
@@ -1,0 +2,7 @@
+Thu Nov 28 13:01:08 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * no changes
+
+-------------------------------------------------------------------
Old:
----
activestorage-5.2.3.gem
New:
----
activestorage-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activestorage-5.2.spec ++++++
--- /var/tmp/diff_new_pack.Zid6YO/_old 2019-11-30 10:40:36.580148923 +0100
+++ /var/tmp/diff_new_pack.Zid6YO/_new 2019-11-30 10:40:36.584148923 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-activestorage-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name activestorage
%define mod_full_name %{mod_name}-%{version}
++++++ activestorage-5.2.3.gem -> activestorage-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 05:27:50.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:40:21.000000000 +0100
@@ -1,3 +1,8 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* No changes.
+
+
## Rails 5.2.3 (March 27, 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/active_storage/gem_version.rb new/lib/active_storage/gem_version.rb
--- old/lib/active_storage/gem_version.rb 2019-03-28 05:27:50.000000000 +0100
+++ new/lib/active_storage/gem_version.rb 2019-11-27 16:40:21.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_storage/service/disk_service.rb new/lib/active_storage/service/disk_service.rb
--- old/lib/active_storage/service/disk_service.rb 2019-03-28 05:27:50.000000000 +0100
+++ new/lib/active_storage/service/disk_service.rb 2019-11-27 16:40:21.000000000 +0100
@@ -86,8 +86,12 @@
purpose: :blob_key }
)
+ current_uri = URI.parse(current_host)
+
generated_url = url_helpers.rails_disk_service_url(verified_key_with_expiration,
- host: current_host,
+ protocol: current_uri.scheme,
+ host: current_uri.host,
+ port: current_uri.port,
disposition: content_disposition,
content_type: content_type,
filename: filename
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 05:27:50.000000000 +0100
+++ new/metadata 2019-11-27 16:40:21.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activestorage
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: actionpack
@@ -16,28 +16,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activerecord
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: marcel
requirement: !ruby/object:Gem::Requirement
@@ -124,8 +124,8 @@
licenses:
- MIT
metadata:
- source_code_uri: https://github.com/rails/rails/tree/v5.2.3/activestorage
- changelog_uri: https://github.com/rails/rails/blob/v5.2.3/activestorage/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/activestorage
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/activestorage/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths:
@@ -141,7 +141,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Local and cloud file storage framework.
1
0
Hello community,
here is the log from the commit of package rubygem-rails-5.2 for openSUSE:Factory checked in at 2019-11-30 10:38:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-rails-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-rails-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-rails-5.2"
Sat Nov 30 10:38:37 2019 rev:9 rq:751745 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-rails-5.2/rubygem-rails-5.2.changes 2019-04-01 12:36:36.257863368 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-rails-5.2.new.26869/rubygem-rails-5.2.changes 2019-11-30 10:40:34.396149185 +0100
@@ -1,0 +2,7 @@
+Thu Nov 28 12:45:26 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * Look at the changelogs of Rails's submodules
+
+-------------------------------------------------------------------
Old:
----
rails-5.2.3.gem
New:
----
rails-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-rails-5.2.spec ++++++
--- /var/tmp/diff_new_pack.qNmp6T/_old 2019-11-30 10:40:35.092149102 +0100
+++ /var/tmp/diff_new_pack.qNmp6T/_new 2019-11-30 10:40:35.116149099 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-rails-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name rails
%define mod_full_name %{mod_name}-%{version}
++++++ rails-5.2.3.gem -> rails-5.2.4.gem ++++++
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 04:02:38.000000000 +0100
+++ new/metadata 2019-11-27 16:40:24.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: rails
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,140 +16,140 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: actionpack
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: actionview
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activemodel
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activerecord
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: actionmailer
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activejob
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: actioncable
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: activestorage
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: railties
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: bundler
requirement: !ruby/object:Gem::Requirement
@@ -206,7 +206,7 @@
- !ruby/object:Gem::Version
version: 1.8.11
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Full-stack web application framework.
1
0
Hello community,
here is the log from the commit of package rubygem-railties-5.2 for openSUSE:Factory checked in at 2019-11-30 10:38:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-railties-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-railties-5.2.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-railties-5.2"
Sat Nov 30 10:38:35 2019 rev:7 rq:751744 version:5.2.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-railties-5.2/rubygem-railties-5.2.changes 2019-04-01 12:36:31.117860854 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-railties-5.2.new.26869/rubygem-railties-5.2.changes 2019-11-30 10:40:32.920149363 +0100
@@ -1,0 +2,19 @@
+Thu Nov 28 13:08:44 UTC 2019 - Manuel Schnitzer <mschnitzer(a)suse.com>
+
+- updated to version 5.2.4
+
+ * Use original `bundler` environment variables during the process of generating a new rails project.
+
+ *Marco Costa*
+
+ * Allow loading seeds without ActiveJob.
+
+ Fixes #35782
+
+ *Jeremy Weathers*
+
+ * Only force `:async` ActiveJob adapter to `:inline` during seeding.
+
+ *BatedUrGonnaDie*
+
+-------------------------------------------------------------------
Old:
----
railties-5.2.3.gem
New:
----
railties-5.2.4.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-railties-5.2.spec ++++++
--- /var/tmp/diff_new_pack.TJ8LIA/_old 2019-11-30 10:40:33.916149243 +0100
+++ /var/tmp/diff_new_pack.TJ8LIA/_new 2019-11-30 10:40:33.932149241 +0100
@@ -24,7 +24,7 @@
#
Name: rubygem-railties-5.2
-Version: 5.2.3
+Version: 5.2.4
Release: 0
%define mod_name railties
%define mod_full_name %{mod_name}-%{version}
++++++ railties-5.2.3.gem -> railties-5.2.4.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2019-03-28 04:02:35.000000000 +0100
+++ new/CHANGELOG.md 2019-11-27 16:40:23.000000000 +0100
@@ -1,3 +1,20 @@
+## Rails 5.2.4 (November 27, 2019) ##
+
+* Use original `bundler` environment variables during the process of generating a new rails project.
+
+ *Marco Costa*
+
+* Allow loading seeds without ActiveJob.
+
+ Fixes #35782
+
+ *Jeremy Weathers*
+
+* Only force `:async` ActiveJob adapter to `:inline` during seeding.
+
+ *BatedUrGonnaDie*
+
+
## Rails 5.2.3 (March 27, 2019) ##
* Seed database with inline ActiveJob job adapter.
@@ -11,7 +28,16 @@
## Rails 5.2.2.1 (March 11, 2019) ##
-* No changes.
+* Generate random development secrets
+
+ A random development secret is now generated to tmp/development_secret.txt
+
+ This avoids an issue where development mode servers were vulnerable to
+ remote code execution.
+
+ Fixes CVE-2019-5420
+
+ *Eileen M. Uchitelle*, *Aaron Patterson*, *John Hawthorn*
## Rails 5.2.2 (December 04, 2018) ##
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/command/base.rb new/lib/rails/command/base.rb
--- old/lib/rails/command/base.rb 2019-03-28 04:02:35.000000000 +0100
+++ new/lib/rails/command/base.rb 2019-11-27 16:40:23.000000000 +0100
@@ -17,6 +17,10 @@
include Actions
class << self
+ def exit_on_failure? # :nodoc:
+ false
+ end
+
# Returns true when the app is a Rails engine.
def engine?
defined?(ENGINE_ROOT)
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-28 04:02:35.000000000 +0100
+++ new/lib/rails/engine.rb 2019-11-27 16:40:23.000000000 +0100
@@ -531,9 +531,9 @@
# Defines the routes for this engine. If a block is given to
# routes, it is appended to the engine.
- def routes
+ def routes(&block)
@routes ||= ActionDispatch::Routing::RouteSet.new_with_config(config)
- @routes.append(&Proc.new) if block_given?
+ @routes.append(&block) if block_given?
@routes
end
@@ -548,7 +548,13 @@
# Blog::Engine.load_seed
def load_seed
seed_file = paths["db/seeds.rb"].existent.first
- with_inline_jobs { load(seed_file) } if seed_file
+ return unless seed_file
+
+ if config.try(:active_job).try!(:queue_adapter) == :async
+ with_inline_jobs { load(seed_file) }
+ else
+ load(seed_file)
+ end
end
# Add configured load paths to Ruby's load path, and remove duplicate entries.
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-28 04:02:35.000000000 +0100
+++ new/lib/rails/gem_version.rb 2019-11-27 16:40:23.000000000 +0100
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
MINOR = 2
- TINY = 3
+ TINY = 4
PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
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 2019-03-28 04:02:35.000000000 +0100
+++ new/lib/rails/generators/app_base.rb 2019-11-27 16:40:23.000000000 +0100
@@ -408,19 +408,21 @@
# its own vendored Thor, which could be a different version. Running both
# things in the same process is a recipe for a night with paracetamol.
#
- # We unset temporary bundler variables to load proper bundler and Gemfile.
- #
# Thanks to James Tucker for the Gem tricks involved in this call.
_bundle_command = Gem.bin_path("bundler", "bundle")
require "bundler"
- Bundler.with_clean_env do
- full_command = %Q["#{Gem.ruby}" "#{_bundle_command}" #{command}]
- if options[:quiet]
- system(full_command, out: File::NULL)
- else
- system(full_command)
- end
+ Bundler.with_original_env do
+ exec_bundle_command(_bundle_command, command)
+ end
+ end
+
+ def exec_bundle_command(bundle_command, command)
+ full_command = %Q["#{Gem.ruby}" "#{bundle_command}" #{command}]
+ if options[:quiet]
+ system(full_command, out: File::NULL)
+ else
+ system(full_command)
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/base.rb new/lib/rails/generators/base.rb
--- old/lib/rails/generators/base.rb 2019-03-28 04:02:35.000000000 +0100
+++ new/lib/rails/generators/base.rb 2019-11-27 16:40:23.000000000 +0100
@@ -24,6 +24,10 @@
add_runtime_options!
strict_args_position!
+ def self.exit_on_failure? # :nodoc:
+ false
+ end
+
# Returns the source root for this generator using default_source_root as default.
def self.source_root(path = nil)
@_source_root = path if path
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 2019-03-28 04:02:35.000000000 +0100
+++ new/lib/rails/generators/rails/app/app_generator.rb 2019-11-27 16:40:23.000000000 +0100
@@ -232,6 +232,7 @@
def tmp
empty_directory_with_keep_file "tmp"
+ empty_directory_with_keep_file "tmp/pids"
empty_directory "tmp/cache"
empty_directory "tmp/cache/assets"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/rails/generators/rails/app/templates/config/puma.rb.tt new/lib/rails/generators/rails/app/templates/config/puma.rb.tt
--- old/lib/rails/generators/rails/app/templates/config/puma.rb.tt 2019-03-28 04:02:35.000000000 +0100
+++ new/lib/rails/generators/rails/app/templates/config/puma.rb.tt 2019-11-27 16:40:23.000000000 +0100
@@ -15,6 +15,9 @@
#
environment ENV.fetch("RAILS_ENV") { "development" }
+# Specifies the `pidfile` that Puma will use.
+pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
+
# Specifies the number of `workers` to boot in clustered mode.
# Workers are forked webserver processes. If using threads and workers together
# the concurrency of the application would be max `threads` * `workers`.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2019-03-28 04:02:35.000000000 +0100
+++ new/metadata 2019-11-27 16:40:23.000000000 +0100
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: railties
version: !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: exe
cert_chain: []
-date: 2019-03-28 00:00:00.000000000 Z
+date: 2019-11-27 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,28 +16,28 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: actionpack
requirement: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
- !ruby/object:Gem::Dependency
name: rake
requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
type: :development
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.3
+ version: 5.2.4
description: 'Rails internals: application bootup, plugins, generators, and rake tasks.'
email: david(a)loudthinking.com
executables:
@@ -422,8 +422,8 @@
licenses:
- MIT
metadata:
- 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
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.4/railties
+ changelog_uri: https://github.com/rails/rails/blob/v5.2.4/railties/CHANGELOG.md
post_install_message:
rdoc_options:
- "--exclude"
@@ -441,7 +441,7 @@
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubygems_version: 3.0.1
+rubygems_version: 3.0.3
signing_key:
specification_version: 4
summary: Tools for creating, working with, and running Rails applications.
1
0
Hello community,
here is the log from the commit of package perl-POSIX-strftime-Compiler for openSUSE:Factory checked in at 2019-11-30 10:38:32
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-POSIX-strftime-Compiler (Old)
and /work/SRC/openSUSE:Factory/.perl-POSIX-strftime-Compiler.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-POSIX-strftime-Compiler"
Sat Nov 30 10:38:32 2019 rev:5 rq:751737 version:0.42
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-POSIX-strftime-Compiler/perl-POSIX-strftime-Compiler.changes 2015-02-08 11:42:40.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.perl-POSIX-strftime-Compiler.new.26869/perl-POSIX-strftime-Compiler.changes 2019-11-30 10:40:29.960149718 +0100
@@ -1,0 +2,15 @@
+Thu Nov 28 22:20:23 UTC 2019 - <tina.mueller(a)suse.com>
+
+- Add manual dependency timezone
+
+-------------------------------------------------------------------
+Wed Apr 3 07:21:34 UTC 2019 - Stephan Kulow <coolo(a)suse.com>
+
+- updated to 0.42
+ see /usr/share/doc/packages/perl-POSIX-strftime-Compiler/Changes
+
+ 0.42 2016-07-11T10:04:37Z
+
+ - import musl patch
+
+-------------------------------------------------------------------
Old:
----
POSIX-strftime-Compiler-0.41.tar.gz
New:
----
POSIX-strftime-Compiler-0.42.tar.gz
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-POSIX-strftime-Compiler.spec ++++++
--- /var/tmp/diff_new_pack.qgf3GO/_old 2019-11-30 10:40:31.536149529 +0100
+++ /var/tmp/diff_new_pack.qgf3GO/_new 2019-11-30 10:40:31.564149526 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-POSIX-strftime-Compiler
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,28 +12,30 @@
# 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/
#
Name: perl-POSIX-strftime-Compiler
-Version: 0.41
+Version: 0.42
Release: 0
%define cpan_name POSIX-strftime-Compiler
Summary: GNU C library compatible strftime for loggers and servers
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/POSIX-strftime-Compiler/
-Source: http://www.cpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{version}.tar.gz
+Url: https://metacpan.org/release/%{cpan_name}
+Source0: https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/%{cpan_name}-%{version}.…
+Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
-BuildRequires: perl(Module::Build) >= 0.38
+BuildRequires: perl(Module::Build) >= 0.380000
BuildRequires: perl(Test::More) >= 0.98
%{perl_requires}
-# MANUAL
+# MANUAL BEGIN
BuildRequires: timezone
+# MANUAL END
%description
POSIX::strftime::Compiler provides GNU C library compatible strftime(3).
@@ -47,7 +49,7 @@
%setup -q -n %{cpan_name}-%{version}
%build
-%{__perl} Build.PL installdirs=vendor
+perl Build.PL installdirs=vendor
./Build build flags=%{?_smp_mflags}
%check
@@ -59,6 +61,7 @@
%files -f %{name}.files
%defattr(-,root,root,755)
-%doc Changes cpanfile LICENSE minil.toml README.md
+%doc Changes minil.toml README.md
+%license LICENSE
%changelog
++++++ POSIX-strftime-Compiler-0.41.tar.gz -> POSIX-strftime-Compiler-0.42.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/POSIX-strftime-Compiler-0.41/Changes new/POSIX-strftime-Compiler-0.42/Changes
--- old/POSIX-strftime-Compiler-0.41/Changes 2015-01-05 04:26:31.000000000 +0100
+++ new/POSIX-strftime-Compiler-0.42/Changes 2016-07-11 12:04:45.000000000 +0200
@@ -1,5 +1,9 @@
Revision history for Perl extension POSIX-strftime-Compiler
+0.42 2016-07-11T10:04:37Z
+
+ - import musl patch
+
0.41 2015-01-05T03:25:28Z
- fixed synopsis
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/POSIX-strftime-Compiler-0.41/META.json new/POSIX-strftime-Compiler-0.42/META.json
--- old/POSIX-strftime-Compiler-0.41/META.json 2015-01-05 04:26:31.000000000 +0100
+++ new/POSIX-strftime-Compiler-0.42/META.json 2016-07-11 12:04:45.000000000 +0200
@@ -4,7 +4,7 @@
"Masahiro Nagano <kazeburo(a)gmail.com>"
],
"dynamic_config" : 0,
- "generated_by" : "Minilla/v2.2.1",
+ "generated_by" : "Minilla/v2.4.1",
"license" : [
"perl_5"
],
@@ -61,7 +61,7 @@
"provides" : {
"POSIX::strftime::Compiler" : {
"file" : "lib/POSIX/strftime/Compiler.pm",
- "version" : "0.41"
+ "version" : "0.42"
}
},
"release_status" : "stable",
@@ -75,8 +75,9 @@
"web" : "https://github.com/kazeburo/POSIX-strftime-Compiler"
}
},
- "version" : "0.41",
+ "version" : "0.42",
"x_contributors" : [
"Piotr Roszatycki <piotr.roszatycki(a)gmail.com>"
- ]
+ ],
+ "x_serialization_backend" : "JSON::PP version 2.27203"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/POSIX-strftime-Compiler-0.41/META.yml new/POSIX-strftime-Compiler-0.42/META.yml
--- old/POSIX-strftime-Compiler-0.41/META.yml 2015-01-05 04:26:31.000000000 +0100
+++ new/POSIX-strftime-Compiler-0.42/META.yml 2016-07-11 12:04:45.000000000 +0200
@@ -7,7 +7,7 @@
configure_requires:
Module::Build: '0.38'
dynamic_config: 0
-generated_by: 'Minilla/v2.2.1, CPAN::Meta::Converter version 2.141170'
+generated_by: 'Minilla/v2.4.1, CPAN::Meta::Converter version 2.150005'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -26,7 +26,7 @@
provides:
POSIX::strftime::Compiler:
file: lib/POSIX/strftime/Compiler.pm
- version: '0.41'
+ version: '0.42'
requires:
Carp: '0'
Exporter: '0'
@@ -37,6 +37,7 @@
bugtracker: https://github.com/kazeburo/POSIX-strftime-Compiler/issues
homepage: https://github.com/kazeburo/POSIX-strftime-Compiler
repository: git://github.com/kazeburo/POSIX-strftime-Compiler.git
-version: '0.41'
+version: '0.42'
x_contributors:
- 'Piotr Roszatycki <piotr.roszatycki(a)gmail.com>'
+x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/POSIX-strftime-Compiler-0.41/lib/POSIX/strftime/Compiler.pm new/POSIX-strftime-Compiler-0.42/lib/POSIX/strftime/Compiler.pm
--- old/POSIX-strftime-Compiler-0.41/lib/POSIX/strftime/Compiler.pm 2015-01-05 04:26:31.000000000 +0100
+++ new/POSIX-strftime-Compiler-0.42/lib/POSIX/strftime/Compiler.pm 2016-07-11 12:04:45.000000000 +0200
@@ -8,7 +8,7 @@
use POSIX qw//;
use base qw/Exporter/;
-our $VERSION = "0.41";
+our $VERSION = "0.42";
our @EXPORT_OK = qw/strftime/;
use constant {
@@ -238,6 +238,8 @@
'c' => [q!$weekday_abbr[$_[WDAY]] . ' ' . $month_abbr[$_[MONTH]] . ' ' . substr(' '.$_[DAY],-2) . ' %H:%M:%S %Y'!,1],
'C' => [q!substr('0'.int(($_[YEAR]+1900)/100), -2)!], #century
'h' => [q!$month_abbr[$_[MONTH]]!],
+ 'k' => [q!substr(' '.$_[HOUR],-2)!],
+ 'l' => [q!substr(' '.($_[HOUR]%12 || 1),-2)!],
'N' => [q!substr(sprintf('%.9f', $_[SEC] - int $_[SEC]), 2)!],
'n' => [q!"\n"!],
'p' => [q!$_[HOUR] > 0 && $_[HOUR] < 13 ? "AM" : "PM"!],
@@ -261,8 +263,6 @@
'V' => [q!substr('0'.isoweeknum(@_),-2)!,1],
'e' => [q!substr(' '.$_[DAY],-2)!],
'g' => [q!substr('0'.isoyearnum(@_)%100,-2)!,1],
- 'k' => [q!substr(' '.$_[HOUR],-2)!],
- 'l' => [q!substr(' '.($_[HOUR]%12 || 1),-2)!],
's' => [q!int(Time::Local::timegm(@_))!,1],
'u' => [q!$_[WDAY] || 7!,1],
'z' => [q!tzoffset(@_)!,1],
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
# override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
preamble: |-
BuildRequires: timezone
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
1
0
Hello community,
here is the log from the commit of package plib for openSUSE:Factory checked in at 2019-11-30 10:38:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/plib (Old)
and /work/SRC/openSUSE:Factory/.plib.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plib"
Sat Nov 30 10:38:30 2019 rev:4 rq:751734 version:1.8.5+svn.2173
Changes:
--------
--- /work/SRC/openSUSE:Factory/plib/plib.changes 2017-11-30 12:46:13.776090476 +0100
+++ /work/SRC/openSUSE:Factory/.plib.new.26869/plib.changes 2019-11-30 10:40:25.740150225 +0100
@@ -1,0 +2,6 @@
+Thu Nov 28 14:09:47 UTC 2019 - Luigi Baldoni <aloisio(a)gmx.com>
+
+- Fix factory build
+- Spec cleanup
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ plib.spec ++++++
--- /var/tmp/diff_new_pack.j4u1jR/_old 2019-11-30 10:40:27.284150040 +0100
+++ /var/tmp/diff_new_pack.j4u1jR/_new 2019-11-30 10:40:27.308150037 +0100
@@ -1,7 +1,7 @@
#
# spec file for package plib
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -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/
#
@@ -20,9 +20,9 @@
Version: 1.8.5+svn.2173
Release: 0
Summary: A collection of game libraries
-License: LGPL-2.1+
+License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
-Url: http://plib.sourceforge.net/
+URL: http://plib.sourceforge.net/
Source: %{name}-%{version}.tar.xz
Source99: %{name}-rpmlintrc
# PATCH-FEATURE-UPSTREAM -- https://sourceforge.net/p/plib/bugs/40/
@@ -35,8 +35,9 @@
Patch3: plib-1.8.5-CVE-2012-4552.patch
BuildRequires: gcc-c++
BuildRequires: libtool
+BuildRequires: pkgconfig
BuildRequires: pkgconfig(gl)
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: pkgconfig(x11)
%description
Plib contains a selection of libraries that can be helpful for 3D game
@@ -87,26 +88,20 @@
make %{?_smp_mflags}
%install
-make %{?_smp_mflags} DESTDIR=%{buildroot} install
+%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libplib0 -p /sbin/ldconfig
%postun -n libplib0 -p /sbin/ldconfig
%files -n libplib0
-%defattr(-,root,root)
-%doc ChangeLog KNOWN_BUGS
-%if 0%{?suse_version} > 1320
%license AUTHORS COPYING
-%else
-%doc AUTHORS COPYING
-%endif
-%{_libdir}/*.so.*
+%doc ChangeLog KNOWN_BUGS
+%{_libdir}/libplib*.so.*
%files devel
-%defattr(-,root,root)
%doc NOTICE README README.GLUT
%{_includedir}/plib
-%{_libdir}/*.so
+%{_libdir}/libplib*.so
%changelog
1
0