pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ruby-async



Module Name:    pkgsrc
Committed By:   taca
Date:           Mon Oct 27 14:53:24 UTC 2025

Modified Files:
        pkgsrc/devel/ruby-async: Makefile PLIST distinfo

Log Message:
devel/ruby-async: update to 2.34.0

2.33.0 (2025-09-29)

* Introduce Async::Promise.fulfill for optional promise resolution.

2.34.0 (2025-10-08)

Kernel::Barrier Convenience Interface

Starting multiple concurrent tasks and waiting for them to finish is a
common pattern.  This change introduces a small ergonomic helper, Barrier,
defined in Kernel, that encapsulates this behavior: it creates an
Async::Barrier, yields it to a block, waits for completion (using Sync to
run a reactor if needed), and ensures remaining tasks are stopped on exit.

  require 'async'

  Barrier do |barrier|
          3.times do |i|
                  barrier.async do |task|
                          sleep(rand * 0.1)  # Simulate work
                          puts "Task #{i} completed"
                  end
          end
  end

  # All tasks are guaranteed to complete or be stopped when the block exits.

If an exception is raised by a task, it will be propagated to the caller,
and any remaining tasks will be stopped.  The parent: parameter can be used
to specify a parent task for the barrier, otherwise it will use the current
task if available, or create a new reactor if not.


To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 pkgsrc/devel/ruby-async/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/ruby-async/PLIST
cvs rdiff -u -r1.37 -r1.38 pkgsrc/devel/ruby-async/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-async/Makefile
diff -u pkgsrc/devel/ruby-async/Makefile:1.41 pkgsrc/devel/ruby-async/Makefile:1.42
--- pkgsrc/devel/ruby-async/Makefile:1.41       Mon Sep 15 15:11:35 2025
+++ pkgsrc/devel/ruby-async/Makefile    Mon Oct 27 14:53:24 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.41 2025/09/15 15:11:35 taca Exp $
+# $NetBSD: Makefile,v 1.42 2025/10/27 14:53:24 taca Exp $
 
-DISTNAME=      async-2.32.0
+DISTNAME=      async-2.34.0
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -11,7 +11,7 @@ LICENSE=      mit
 USE_LANGUAGES= # none
 
 DEPENDS+=      ${RUBY_PKGPREFIX}-console>=1.29<2:../../devel/ruby-console
-DEPENDS+=      ${RUBY_PKGPREFIX}-io-event>=1.12<2:../../devel/ruby-io-event
+DEPENDS+=      ${RUBY_PKGPREFIX}-io-event>=1.11<2:../../devel/ruby-io-event
 DEPENDS+=      ${RUBY_PKGPREFIX}-fiber-annotation>=0:../../devel/ruby-fiber-annotation
 DEPENDS+=      ${RUBY_PKGPREFIX}-traces>=0.18<1:../../devel/ruby-traces
 DEPENDS+=      ${RUBY_PKGPREFIX}-metrics>=0.12<1:../../devel/ruby-metrics

Index: pkgsrc/devel/ruby-async/PLIST
diff -u pkgsrc/devel/ruby-async/PLIST:1.12 pkgsrc/devel/ruby-async/PLIST:1.13
--- pkgsrc/devel/ruby-async/PLIST:1.12  Mon Sep 15 15:11:35 2025
+++ pkgsrc/devel/ruby-async/PLIST       Mon Oct 27 14:53:24 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2025/09/15 15:11:35 taca Exp $
+@comment $NetBSD: PLIST,v 1.13 2025/10/27 14:53:24 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/context/best-practices.md
 ${GEM_LIBDIR}/context/debugging.md
@@ -35,6 +35,7 @@ ${GEM_LIBDIR}/lib/async/variable.rb
 ${GEM_LIBDIR}/lib/async/version.rb
 ${GEM_LIBDIR}/lib/async/waiter.rb
 ${GEM_LIBDIR}/lib/kernel/async.rb
+${GEM_LIBDIR}/lib/kernel/barrier.rb
 ${GEM_LIBDIR}/lib/kernel/sync.rb
 ${GEM_LIBDIR}/lib/metrics/provider/async.rb
 ${GEM_LIBDIR}/lib/metrics/provider/async/task.rb

Index: pkgsrc/devel/ruby-async/distinfo
diff -u pkgsrc/devel/ruby-async/distinfo:1.37 pkgsrc/devel/ruby-async/distinfo:1.38
--- pkgsrc/devel/ruby-async/distinfo:1.37       Mon Sep 15 15:11:35 2025
+++ pkgsrc/devel/ruby-async/distinfo    Mon Oct 27 14:53:24 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.37 2025/09/15 15:11:35 taca Exp $
+$NetBSD: distinfo,v 1.38 2025/10/27 14:53:24 taca Exp $
 
-BLAKE2s (async-2.32.0.gem) = fda2de19f73199f296aee145093cc5285993999ddb467f1507833b6015523d24
-SHA512 (async-2.32.0.gem) = a21541f9c5fab97a39e69c0098077db6f342183889bfcff3ba39d740f8b5bf852e3ad6fa830f047424ff7bdab4d13984ca4f916c2d718cccf76a1b3bdccf3183
-Size (async-2.32.0.gem) = 61440 bytes
+BLAKE2s (async-2.34.0.gem) = fbffa102c4ccce2f29225c9ff063468959e2f04e5cf46f746b12f650668385e6
+SHA512 (async-2.34.0.gem) = 4ce62199bb8a40815031f74eae8179ab0fda4463fef08c5c78be60eeab21b26329f4b2eee29a4673012695ed5412e8de4f1a0b1c3230b7ed417bee0d79f0e136
+Size (async-2.34.0.gem) = 62976 bytes



Home | Main Index | Thread Index | Old Index