pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-activejob70 devel/ruby-activejob70: update ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d1bd0dd8897c
branches:  trunk
changeset: 371914:d1bd0dd8897c
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Jan 16 14:06:14 2022 +0000

description:
devel/ruby-activejob70: update to 7.0.1

7.0.1 (2021-01-06)

* Allow testing discard_on/retry_on ActiveJob::DeserializationError

  Previously in perform_enqueued_jobs, deserialize_arguments_if_needed
  was called before calling perform_now.  When a record no longer
  exists and is serialized using GlobalID this led to raising an
  ActiveJob::DeserializationError before reaching perform_now call.
  This behaviour makes difficult testing the job discard_on/retry_on
  logic.

  Now deserialize_arguments_if_needed call is postponed to when
  perform_now is called.

  Example:

        class UpdateUserJob < ActiveJob::Base
          discard_on ActiveJob::DeserializationError

          def perform(user)
            # ...
          end
        end

        # In the test
        User.destroy_all
        assert_nothing_raised do
          perform_enqueued_jobs only: UpdateUserJob
        end

  Jacopo Beschi

diffstat:

 devel/ruby-activejob70/distinfo |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (13 lines):

diff -r c7ca89176fa1 -r d1bd0dd8897c devel/ruby-activejob70/distinfo
--- a/devel/ruby-activejob70/distinfo   Sun Jan 16 14:05:43 2022 +0000
+++ b/devel/ruby-activejob70/distinfo   Sun Jan 16 14:06:14 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1 2021/12/19 05:53:19 taca Exp $
+$NetBSD: distinfo,v 1.2 2022/01/16 14:06:14 taca Exp $
 
-BLAKE2s (activejob-7.0.0.gem) = ecda540ba6c4bc1856933ba7ac22fedc3fff9e08b9a1b16eff07b54a78850882
-SHA512 (activejob-7.0.0.gem) = 19de95c908c6b4d6670ae23de63d40d595380ece98f7e067694d02b6e9b506a68d841c8e5b08ad844c4938a2d09fa2bc493b2097916a464c9c9ad1551e22e88e
-Size (activejob-7.0.0.gem) = 32768 bytes
+BLAKE2s (activejob-7.0.1.gem) = f74aa4a6f5c85da71327a8114ac6219882571346074bf8c87987a146981199cb
+SHA512 (activejob-7.0.1.gem) = b73f284bd7ed9ddf90e2a44d154d20262dc64573f53571cccc700f221c199d0862ecd196cdd145189cce7d8ceebecb14799710aab2e64fa5bc15b86eb6550f49
+Size (activejob-7.0.1.gem) = 32768 bytes



Home | Main Index | Thread Index | Old Index