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:           Sat May 17 06:06:02 UTC 2025

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

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

2.24.0 (2025-05-03)

* Ruby v3.1 support is dropped.
* Async::Wrapper which was previously deprecated, is now removed.

Flexible Timeouts

When {ruby Async::Scheduler#with_timeout} is invoked with a block, it can
receive a {ruby Async::Timeout} instance.  This allows you to adjust or
cancel the timeout while the block is executing.  This is useful for
long-running tasks that may need to adjust their timeout based on external
factors.

Async do
        Async::Scheduler.with_timeout(5) do |timeout|
                # Do some work that may take a while...

                if some_condition
                        timeout.cancel! # Cancel the timeout
                else
                        # Add 10 seconds to the current timeout:
                        timeout.adjust(10)

                        # Reduce the timeout by 10 seconds:
                        timeout.adjust(-10)

                        # Set the timeout to 10 seconds from now:
                        timeout.duration = 10

                        # Increase the current duration:
                        timeout.duration += 10
                end
        end
end


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 pkgsrc/devel/ruby-async/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/ruby-async/PLIST
cvs rdiff -u -r1.29 -r1.30 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.32 pkgsrc/devel/ruby-async/Makefile:1.33
--- pkgsrc/devel/ruby-async/Makefile:1.32       Sun Mar 16 13:55:11 2025
+++ pkgsrc/devel/ruby-async/Makefile    Sat May 17 06:06:02 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.32 2025/03/16 13:55:11 taca Exp $
+# $NetBSD: Makefile,v 1.33 2025/05/17 06:06:02 taca Exp $
 
-DISTNAME=      async-2.23.1
+DISTNAME=      async-2.24.0
 CATEGORIES=    devel
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -16,5 +16,7 @@ DEPENDS+=     ${RUBY_PKGPREFIX}-fiber-annota
 DEPENDS+=      ${RUBY_PKGPREFIX}-traces>=0.15<1:../../devel/ruby-traces
 DEPENDS+=      ${RUBY_PKGPREFIX}-metrics>=0.12<1:../../devel/ruby-metrics
 
+RUBY_VERSIONS_INCOMPATIBLE=    31
+
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/ruby-async/PLIST
diff -u pkgsrc/devel/ruby-async/PLIST:1.8 pkgsrc/devel/ruby-async/PLIST:1.9
--- pkgsrc/devel/ruby-async/PLIST:1.8   Sun Feb  9 14:22:04 2025
+++ pkgsrc/devel/ruby-async/PLIST       Sat May 17 06:06:02 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.8 2025/02/09 14:22:04 taca Exp $
+@comment $NetBSD: PLIST,v 1.9 2025/05/17 06:06:02 taca Exp $
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_LIBDIR}/lib/async.rb
 ${GEM_LIBDIR}/lib/async/barrier.md
@@ -19,12 +19,12 @@ ${GEM_LIBDIR}/lib/async/semaphore.md
 ${GEM_LIBDIR}/lib/async/semaphore.rb
 ${GEM_LIBDIR}/lib/async/task.md
 ${GEM_LIBDIR}/lib/async/task.rb
+${GEM_LIBDIR}/lib/async/timeout.rb
 ${GEM_LIBDIR}/lib/async/variable.rb
 ${GEM_LIBDIR}/lib/async/version.rb
 ${GEM_LIBDIR}/lib/async/waiter.md
 ${GEM_LIBDIR}/lib/async/waiter.rb
 ${GEM_LIBDIR}/lib/async/worker_pool.rb
-${GEM_LIBDIR}/lib/async/wrapper.rb
 ${GEM_LIBDIR}/lib/kernel/async.rb
 ${GEM_LIBDIR}/lib/kernel/sync.rb
 ${GEM_LIBDIR}/lib/metrics/provider/async.rb

Index: pkgsrc/devel/ruby-async/distinfo
diff -u pkgsrc/devel/ruby-async/distinfo:1.29 pkgsrc/devel/ruby-async/distinfo:1.30
--- pkgsrc/devel/ruby-async/distinfo:1.29       Sun Mar 16 13:55:11 2025
+++ pkgsrc/devel/ruby-async/distinfo    Sat May 17 06:06:02 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.29 2025/03/16 13:55:11 taca Exp $
+$NetBSD: distinfo,v 1.30 2025/05/17 06:06:02 taca Exp $
 
-BLAKE2s (async-2.23.1.gem) = 9116fc9f04664ea240b71fd9027ed6d96e5ae6fe166ea3cc17656a2d3111f158
-SHA512 (async-2.23.1.gem) = 786c6a79b2d95fd76c6f73eb2432e817a3e9d819597c87d6c3df06e7f818c02d19956b1c3b50ef147791943bb6885e8b1b632fab91492ae3d7bd9e169364e2a7
-Size (async-2.23.1.gem) = 36352 bytes
+BLAKE2s (async-2.24.0.gem) = 9571a837f256a8b875af2f0ede444beb9ade6b01a984c0efec8f1dd4e96265f8
+SHA512 (async-2.24.0.gem) = 862919a10c07281c8f4164ccfd016d01f210409fe7353c76ddb52992fb987876349c33e8d09788df3bb51fcc1f39248cbf92c491fa7b799f5e849ffd3a4a35a3
+Size (async-2.24.0.gem) = 36864 bytes



Home | Main Index | Thread Index | Old Index