Hello community,
here is the log from the commit of package rubygem-activejob-5.2 for
openSUSE:Factory checked in at 2018-08-12 20:53:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-activejob-5.2 (Old)
and /work/SRC/openSUSE:Factory/.rubygem-activejob-5.2.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activejob-5.2"
Sun Aug 12 20:53:23 2018 rev:2 rq:628582 version:5.2.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-activejob-5.2/rubygem-activejob-5.2.changes
2018-07-18 22:47:18.996278521 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-activejob-5.2.new/rubygem-activejob-5.2.changes
2018-08-12 20:53:24.629228260 +0200
@@ -1,0 +2,10 @@
+Wed Aug 8 14:49:27 UTC 2018 - [email protected]
+
+- updated to version 5.2.1 (boo#1104209)
+
+ * Pass the error instance as the second parameter of block executed by
`discard_on`.
+ Fixes #32853.
+
+ (Yuji Yaginuma)
+
+-------------------------------------------------------------------
Old:
----
activejob-5.2.0.gem
New:
----
activejob-5.2.1.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-activejob-5.2.spec ++++++
--- /var/tmp/diff_new_pack.uuH0MQ/_old 2018-08-12 20:53:25.637230305 +0200
+++ /var/tmp/diff_new_pack.uuH0MQ/_new 2018-08-12 20:53:25.637230305 +0200
@@ -24,7 +24,7 @@
#
Name: rubygem-activejob-5.2
-Version: 5.2.0
+Version: 5.2.1
Release: 0
%define mod_name activejob
%define mod_full_name %{mod_name}-%{version}
++++++ activejob-5.2.0.gem -> activejob-5.2.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md 2018-04-09 22:04:34.000000000 +0200
+++ new/CHANGELOG.md 2018-08-07 23:42:10.000000000 +0200
@@ -1,3 +1,11 @@
+## Rails 5.2.1 (August 07, 2018) ##
+
+* Pass the error instance as the second parameter of block executed by
`discard_on`.
+
+ Fixes #32853.
+
+ *Yuji Yaginuma*
+
## Rails 5.2.0 (April 09, 2018) ##
* Allow block to be passed to `ActiveJob::Base.discard_on` to allow custom
handling of discard jobs.
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/core.rb new/lib/active_job/core.rb
--- old/lib/active_job/core.rb 2018-04-09 22:04:34.000000000 +0200
+++ new/lib/active_job/core.rb 2018-08-07 23:42:10.000000000 +0200
@@ -85,7 +85,7 @@
"provider_job_id" => provider_job_id,
"queue_name" => queue_name,
"priority" => priority,
- "arguments" => serialize_arguments(arguments),
+ "arguments" => serialize_arguments_if_needed(arguments),
"executions" => executions,
"locale" => I18n.locale.to_s
}
@@ -128,19 +128,31 @@
end
private
+ def serialize_arguments_if_needed(arguments)
+ if arguments_serialized?
+ @serialized_arguments
+ else
+ serialize_arguments(arguments)
+ end
+ end
+
def deserialize_arguments_if_needed
- if defined?(@serialized_arguments) && @serialized_arguments.present?
+ if arguments_serialized?
@arguments = deserialize_arguments(@serialized_arguments)
@serialized_arguments = nil
end
end
- def serialize_arguments(serialized_args)
- Arguments.serialize(serialized_args)
+ def serialize_arguments(arguments)
+ Arguments.serialize(arguments)
end
def deserialize_arguments(serialized_args)
Arguments.deserialize(serialized_args)
end
+
+ def arguments_serialized?
+ defined?(@serialized_arguments) && @serialized_arguments
+ end
end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/active_job/exceptions.rb
new/lib/active_job/exceptions.rb
--- old/lib/active_job/exceptions.rb 2018-04-09 22:04:34.000000000 +0200
+++ new/lib/active_job/exceptions.rb 2018-08-07 23:42:10.000000000 +0200
@@ -30,8 +30,8 @@
# class RemoteServiceJob < ActiveJob::Base
# retry_on CustomAppException # defaults to 3s wait, 5 attempts
# retry_on AnotherCustomAppException, wait: ->(executions) {
executions * 2 }
- # retry_on(YetAnotherCustomAppException) do |job, exception|
- # ExceptionNotifier.caught(exception)
+ # retry_on(YetAnotherCustomAppException) do |job, error|
+ # ExceptionNotifier.caught(error)
# end
# retry_on ActiveRecord::Deadlocked, wait: 5.seconds, attempts: 3
# retry_on Net::OpenTimeout, wait: :exponentially_longer, attempts: 10
@@ -67,8 +67,8 @@
#
# class SearchIndexingJob < ActiveJob::Base
# discard_on ActiveJob::DeserializationError
- # discard_on(CustomAppException) do |job, exception|
- # ExceptionNotifier.caught(exception)
+ # discard_on(CustomAppException) do |job, error|
+ # ExceptionNotifier.caught(error)
# end
#
# def perform(record)
@@ -79,7 +79,7 @@
def discard_on(exception)
rescue_from exception do |error|
if block_given?
- yield self, exception
+ yield self, error
else
logger.error "Discarded #{self.class} due to a #{exception}. The
original exception was #{error.cause.inspect}."
end
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 2018-04-09 22:04:34.000000000 +0200
+++ new/lib/active_job/gem_version.rb 2018-08-07 23:42:10.000000000 +0200
@@ -9,7 +9,7 @@
module VERSION
MAJOR = 5
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/metadata new/metadata
--- old/metadata 2018-04-09 22:04:34.000000000 +0200
+++ new/metadata 2018-08-07 23:42:10.000000000 +0200
@@ -1,14 +1,14 @@
--- !ruby/object:Gem::Specification
name: activejob
version: !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
platform: ruby
authors:
- David Heinemeier Hansson
autorequire:
bindir: bin
cert_chain: []
-date: 2018-04-09 00:00:00.000000000 Z
+date: 2018-08-07 00:00:00.000000000 Z
dependencies:
- !ruby/object:Gem::Dependency
name: activesupport
@@ -16,14 +16,14 @@
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
type: :runtime
prerelease: false
version_requirements: !ruby/object:Gem::Requirement
requirements:
- - '='
- !ruby/object:Gem::Version
- version: 5.2.0
+ version: 5.2.1
- !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.0/activejob
- changelog_uri:
https://github.com/rails/rails/blob/v5.2.0/activejob/CHANGELOG.md
+ source_code_uri: https://github.com/rails/rails/tree/v5.2.1/activejob
+ changelog_uri:
https://github.com/rails/rails/blob/v5.2.1/activejob/CHANGELOG.md
post_install_message:
rdoc_options: []
require_paths: