pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/ruby-console
Module Name: pkgsrc
Committed By: taca
Date: Sun Jun 8 16:46:02 UTC 2025
Modified Files:
pkgsrc/devel/ruby-console: Makefile distinfo
Log Message:
devel/ruby-console: update to 1.31.0
1.31.0 (2025-06-07)
* Ractor compatibility.
The console library now works correctly with Ruby's Ractor concurrency
model. Previously, attempting to use console logging within Ractors would
fail with errors about non-shareable objects. This has been fixed by
ensuring the default configuration is properly frozen.
# This now works without errors:
ractor = Ractor.new do
require 'console'
Console.info('Hello from Ractor!')
'Ractor completed successfully'
end
result = ractor.take
puts result # => 'Ractor completed successfully'
The fix is minimal and maintains full backward compatibility while
enabling safe parallel logging across multiple Ractors.
* Symbol log level compatibility.
Previously, returning symbols from custom log_level methods in
configuration files would cause runtime errors like "comparison of Integer
with :debug failed". This has been fixed to properly convert symbols to
their corresponding integer values.
# config/console.rb - This now works correctly:
def log_level(env = ENV)
:debug # Automatically converted to Console::Logger::LEVELS[:debug]
end
While this fix maintains backward compatibility, the recommended approach
is still to use integer values directly:
# config/console.rb - Recommended approach:
def log_level(env = ENV)
Console::Logger::LEVELS[:debug] # Returns 0
end
* Improved output format selection for cron jobs and email contexts.
When MAILTO environment variable is set (typically in cron jobs), the
console library now prefers human-readable terminal output instead of JSON
serialized output, even when the output stream is not a TTY. This ensures
that cron job output sent via email is formatted in a readable way for
administrators.
# Previously in cron jobs (non-TTY), this would output JSON:
# {"time":"2025-06-07T10:30:00Z","severity":"info","subject":"CronJob","message":["Task completed"]}
# Now with MAILTO set, it outputs human-readable format:
# 0.1s info: CronJob
# | Task completed
This change is conservative and only affects environments where MAILTO is
explicitly set, ensuring compatibility with existing deployments.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/ruby-console/Makefile \
pkgsrc/devel/ruby-console/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-console/Makefile
diff -u pkgsrc/devel/ruby-console/Makefile:1.17 pkgsrc/devel/ruby-console/Makefile:1.18
--- pkgsrc/devel/ruby-console/Makefile:1.17 Sun Mar 16 13:50:53 2025
+++ pkgsrc/devel/ruby-console/Makefile Sun Jun 8 16:46:02 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.17 2025/03/16 13:50:53 taca Exp $
+# $NetBSD: Makefile,v 1.18 2025/06/08 16:46:02 taca Exp $
-DISTNAME= console-1.30.2
+DISTNAME= console-1.31.0
CATEGORIES= devel
MAINTAINER= pkgsrc-users%NetBSD.org@localhost
Index: pkgsrc/devel/ruby-console/distinfo
diff -u pkgsrc/devel/ruby-console/distinfo:1.17 pkgsrc/devel/ruby-console/distinfo:1.18
--- pkgsrc/devel/ruby-console/distinfo:1.17 Sun Mar 16 13:50:53 2025
+++ pkgsrc/devel/ruby-console/distinfo Sun Jun 8 16:46:02 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.17 2025/03/16 13:50:53 taca Exp $
+$NetBSD: distinfo,v 1.18 2025/06/08 16:46:02 taca Exp $
-BLAKE2s (console-1.30.2.gem) = b487c15d8b2800d8504c33691aa331439c1325ee99d88389f488e578a96f5d13
-SHA512 (console-1.30.2.gem) = 6033d07ae514d70cbd19187c08a0f5db64c95e4cd405a32c44c14757d70a9a634c5234aa33257c311351db233b56461b714498bd3c75998c68e54624d44848e3
-Size (console-1.30.2.gem) = 29696 bytes
+BLAKE2s (console-1.31.0.gem) = 37a8ae3b88d215f4f6b7e50d167a1bc85c7d54ab325195149a30d4872036312e
+SHA512 (console-1.31.0.gem) = a0bcf60779a29f20ab6ac3ddfabe5adb77e37797f676e9d57c84fad8cba296f792d10bfdd7ea5ab0e81c7c52c147fb9169357cfa5ac9e3e43215df28e59e4fe6
+Size (console-1.31.0.gem) = 30720 bytes
Home |
Main Index |
Thread Index |
Old Index