Hello community, here is the log from the commit of package rubygem-activejob-4_2 for openSUSE:Factory checked in at 2015-08-27 08:57:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-activejob-4_2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-activejob-4_2.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-activejob-4_2" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-activejob-4_2/rubygem-activejob-4_2.changes 2015-07-03 00:19:41.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-activejob-4_2.new/rubygem-activejob-4_2.changes 2015-08-27 08:57:42.000000000 +0200 @@ -1,0 +2,15 @@ +Tue Aug 25 04:30:04 UTC 2015 - co...@suse.com + +- updated to version 4.2.4 + see installed CHANGELOG.md + + ## Rails 4.2.4 (August 24, 2015) ## + + * Include I18n.locale into job serialization/deserialization and use it around + `perform`. + + Fixes #20799. + + *Johannes Opper* + +------------------------------------------------------------------- Old: ---- activejob-4.2.3.gem New: ---- activejob-4.2.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-activejob-4_2.spec ++++++ --- /var/tmp/diff_new_pack.L7ZX93/_old 2015-08-27 08:57:42.000000000 +0200 +++ /var/tmp/diff_new_pack.L7ZX93/_new 2015-08-27 08:57:42.000000000 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-activejob-4_2 -Version: 4.2.3 +Version: 4.2.4 Release: 0 %define mod_name activejob %define mod_full_name %{mod_name}-%{version} ++++++ activejob-4.2.3.gem -> activejob-4.2.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2015-06-25 23:29:55.000000000 +0200 +++ new/CHANGELOG.md 2015-08-24 20:23:18.000000000 +0200 @@ -1,3 +1,12 @@ +## Rails 4.2.4 (August 24, 2015) ## + +* Include I18n.locale into job serialization/deserialization and use it around + `perform`. + + Fixes #20799. + + *Johannes Opper* + ## Rails 4.2.3 (June 25, 2015) ## * `assert_enqueued_jobs` and `assert_performed_jobs` in block form use the 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/base.rb new/lib/active_job/base.rb --- old/lib/active_job/base.rb 2015-06-25 23:29:55.000000000 +0200 +++ new/lib/active_job/base.rb 2015-08-24 20:23:18.000000000 +0200 @@ -5,6 +5,7 @@ require 'active_job/execution' require 'active_job/callbacks' require 'active_job/logging' +require 'active_job/translation' module ActiveJob #:nodoc: # = Active Job @@ -60,6 +61,7 @@ include Execution include Callbacks include Logging + include Translation ActiveSupport.run_load_hooks(:active_job, self) end 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 2015-06-25 23:29:55.000000000 +0200 +++ new/lib/active_job/core.rb 2015-08-24 20:23:18.000000000 +0200 @@ -15,6 +15,9 @@ # Queue in which the job will reside. attr_writer :queue_name + + # I18n.locale to be used during the job. + attr_accessor :locale end # These methods will be included into any Active Job object, adding @@ -26,6 +29,7 @@ job.job_id = job_data['job_id'] job.queue_name = job_data['queue_name'] job.serialized_arguments = job_data['arguments'] + job.locale = job_data['locale'] || I18n.locale job end @@ -65,7 +69,8 @@ 'job_class' => self.class.name, 'job_id' => job_id, 'queue_name' => queue_name, - 'arguments' => serialize_arguments(arguments) + 'arguments' => serialize_arguments(arguments), + 'locale' => I18n.locale } 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 2015-06-25 23:29:55.000000000 +0200 +++ new/lib/active_job/gem_version.rb 2015-08-24 20:23:18.000000000 +0200 @@ -7,7 +7,7 @@ module VERSION MAJOR = 4 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_job/queue_adapters.rb new/lib/active_job/queue_adapters.rb --- old/lib/active_job/queue_adapters.rb 2015-06-25 23:29:55.000000000 +0200 +++ new/lib/active_job/queue_adapters.rb 2015-08-24 20:23:18.000000000 +0200 @@ -15,23 +15,22 @@ # # === Backends Features # - # | | Async | Queues | Delayed | Priorities | Timeout | Retries | - # |-------------------|-------|--------|-----------|------------|---------|---------| - # | Backburner | Yes | Yes | Yes | Yes | Job | Global | - # | Delayed Job | Yes | Yes | Yes | Job | Global | Global | - # | Qu | Yes | Yes | No | No | No | Global | - # | Que | Yes | Yes | Yes | Job | No | Job | - # | queue_classic | Yes | Yes | No* | No | No | No | - # | Resque | Yes | Yes | Yes (Gem) | Queue | Global | Yes | - # | Sidekiq | Yes | Yes | Yes | Queue | No | Job | - # | Sneakers | Yes | Yes | No | Queue | Queue | No | - # | Sucker Punch | Yes | Yes | No | No | No | No | - # | Active Job Inline | No | Yes | N/A | N/A | N/A | N/A | + # | | Async | Queues | Delayed | Priorities | Timeout | Retries | + # |-------------------|-------|--------|------------|------------|---------|---------| + # | Backburner | Yes | Yes | Yes | Yes | Job | Global | + # | Delayed Job | Yes | Yes | Yes | Job | Global | Global | + # | Qu | Yes | Yes | No | No | No | Global | + # | Que | Yes | Yes | Yes | Job | No | Job | + # | queue_classic | Yes | Yes | Yes* | No | No | No | + # | Resque | Yes | Yes | Yes (Gem) | Queue | Global | Yes | + # | Sidekiq | Yes | Yes | Yes | Queue | No | Job | + # | Sneakers | Yes | Yes | No | Queue | Queue | No | + # | Sucker Punch | Yes | Yes | No | No | No | No | + # | Active Job Inline | No | Yes | N/A | N/A | N/A | N/A | # # NOTE: - # queue_classic does not support Job scheduling. However you can implement this - # yourself or you can use the queue_classic-later gem. See the documentation for - # ActiveJob::QueueAdapters::QueueClassicAdapter. + # queue_classic supports job scheduling since version 3.1. + # For older versions you can use the queue_classic-later gem. # module QueueAdapters extend ActiveSupport::Autoload diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/active_job/translation.rb new/lib/active_job/translation.rb --- old/lib/active_job/translation.rb 1970-01-01 01:00:00.000000000 +0100 +++ new/lib/active_job/translation.rb 2015-08-24 20:23:19.000000000 +0200 @@ -0,0 +1,11 @@ +module ActiveJob + module Translation #:nodoc: + extend ActiveSupport::Concern + + included do + around_perform do |job, block, _| + I18n.with_locale(job.locale, &block) + end + end + end +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-06-25 23:29:55.000000000 +0200 +++ new/metadata 2015-08-24 20:23:18.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: activejob version: !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 platform: ruby authors: - David Heinemeier Hansson autorequire: bindir: bin cert_chain: [] -date: 2015-06-25 00:00:00.000000000 Z +date: 2015-08-24 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: activesupport @@ -16,14 +16,14 @@ requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 type: :runtime prerelease: false version_requirements: !ruby/object:Gem::Requirement requirements: - - '=' - !ruby/object:Gem::Version - version: 4.2.3 + version: 4.2.4 - !ruby/object:Gem::Dependency name: globalid requirement: !ruby/object:Gem::Requirement @@ -74,6 +74,7 @@ - lib/active_job/railtie.rb - lib/active_job/test_case.rb - lib/active_job/test_helper.rb +- lib/active_job/translation.rb - lib/active_job/version.rb - lib/rails/generators/job/job_generator.rb - lib/rails/generators/job/templates/job.rb @@ -97,8 +98,9 @@ version: '0' requirements: [] rubyforge_project: -rubygems_version: 2.4.5 +rubygems_version: 2.4.7 signing_key: specification_version: 4 summary: Job framework with pluggable queues. test_files: [] +has_rdoc: