pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ruby-activejob70



Module Name:    pkgsrc
Committed By:   taca
Date:           Sun Jan 16 14:06:14 UTC 2022

Modified Files:
        pkgsrc/devel/ruby-activejob70: distinfo

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ruby-activejob70/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ruby-activejob70/distinfo
diff -u pkgsrc/devel/ruby-activejob70/distinfo:1.1 pkgsrc/devel/ruby-activejob70/distinfo:1.2
--- pkgsrc/devel/ruby-activejob70/distinfo:1.1  Sun Dec 19 05:53:19 2021
+++ pkgsrc/devel/ruby-activejob70/distinfo      Sun Jan 16 14:06:14 2022
@@ -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