Up to [cvs.NetBSD.org] / pkgsrc / devel / ruby-console
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
devel/ruby-console: update to 1.38.0 1.38.0 (2026-09-14) * Fix Console::Progress to emit through the logger that created it and safely handle zero totals.
devel/ruby-console: update to 1.37.0 1.37.0 (2026-07-10) * Show compound units in elapsed time display.
devel/ruby-console: update to 1.36.0 1.36.0 (2026-06-02) * Add a size_limit to Console::Format::Safe (default 16KiB) which rebuilds oversized records field-by-field, keeping as many top-level fields as fit within the limit. * Degraded fields are recorded in a truncated object that maps each field name to why it was truncated: true (dropped for size) or the error (the value could not be serialized directly and a safe representation was kept in its place). * Rename Console::Format::Safe's limit: to depth_limit: (with a deprecated limit: alias) to clarify its purpose alongside the new size_limit:.
devel/ruby-console: update to 1.35.1 1.35.0 (2026-05-19) * Align decimals in elapsed time display. (#84) * Fix handling of Errno::ENODEV errors when calculating the width of a terminal that was been re-opened to File::NULL 1.35.1 (2026-05-19) * Add missing context files to gemspec. * Fix gem metadata.
devel/ruby-console: update to 1.34.3
1.34.3 (2026-02-11)
* Fix Console::Filter dynamic class creation and severity chaining. (#83)
- Add DEFAULT_LEVEL constant when creating dynamic filter classes via
Filter[].
- Make call() method handle nil level (unknown severity) by passing
through.
devel/ruby-console: update to 1.34.2
1.34.1 (2025-10-12)
* Add process_id to serialized output records for clarity (pid is still
included for backwards compatibility).
- Add object_id to serialized output records only when the subject is
not a string or class/module.
1.34.2 (2025-10-21)
* Fix tests.
* Make safe output a bit less likely to truncate data.
devel/ruby-console: update to 1.34.0 1.34.0 (2025-09-05) * Allow Console::Compatible::Logger#add to accept **options.
devel/ruby-console: update to 1.33.0 1.32.0 (2025-07-15) * Log fiber_id in serialized output. * Limit Ractor support to 3.4+. * 100% documentation coverage. 1.33.0 (2025-07-27) * Explicit support for GitHub actions.
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.
devel/ruby-console: update to 1.30.2 1.30.0 (2025-03-07) Introduce Console::Config for fine grained configuration. Introduced a new explicit configuration interface via config/console.rb to enhance logging setup in complex applications. This update gives the application code an opportunity to load files if required and control aspects such as log level, output, and more. Users can override default behaviors (e.g., make_output, make_logger, and log_level) for improved customization. # config/console.rb def log_level(env = ENV) # Set a custom log level, e.g., force debug mode: :debug end def make_logger(output = $stderr, env = ENV, **options) # Custom logger configuration with verbose output: options[:verbose] = true Logger.new(output, **options) end This approach provides a standard way to hook into the log setup process, allowing tailored adjustments for reliable and customizable logging behavior. 1.30.1 (2025-03-09) * Remove circular require 1.30.2 (2025-03-10) * Add missing require.
devel/ruby-console: update to 1.29.3 1.29.3 (2025-02-19) * Serialized output now uses IO#write with a single string to reduce the chance of interleaved output.
devel/ruby-console: update to 1.29.2 1.29.1 (2024-12-09) * Fix logging exception: keyword argument when the value was not an exception. 1.29.2 (2024-12-09) * Always return nil from Console::Filter logging methods.
devel/ruby-console: update to 1.29.0 1.28.0 (2024-11-05) * Add support for Kernel#warn redirection to Console.warn. 1.28.1 (2024-11-05) (Unknown) 1.29.0 (2024-11-06) * Don't make Kernel#warn redirection to Console.warn the default behavior, you must require 'console/warn' to enable it. * Remove deprecated Console::Logger#failure. Consistent Handling of Exceptions Console.call and all wrapper methods will now consistently handle exceptions that are the last positional argument or keyword argument. This means that the following code will work as expected: begin rescue => error # Last positional argument: Console.warn(self, "There may be an issue", error) # Keyword argument (preferable): Console.error(self, "There is an issue", exception: error) end
devel/ruby-console: update to 1.27.0 1.26.0 (2024-07-17) * Expand the Console::Capture interface for easier testing. 1.27.0 (2024-07-19) * Fix external tests. * Event::Failure: add #exception (#61)
devel/ruby-console: update to 1.25.2 1.23.7 (2024-04-20) * The exception backtrace should be split into at most 3 pieces. 1.24.0 (2024-04-22) * Add compatible shim for Exception#detailed_message. (#58) * Better output formatting of options. 1.25.0 (2024-05-03) * Separation of output formatting from log generation/schema. (#60) * Use Console::CapturedOutput everywhere. * Improve getting started guide. * Remove test file. * Add guidelines for custom events. * Set minimum version of fiber-local gem. * Compatibility with previous event argument. 1.25.1 (2024-05-03) * Add tests for Console::Event::Spawn. 1.25.2 (2024-05-04) * Apply subject/level filtering in Filter#call.
devel/ruby-console: update to 1.23.6 1.23.6 (2024-03-20) * Disable usage of Ractor.make_shareable on Ruby 3.0 as it's broken on Ruby 3.0.2. (#56)
devel/ruby-console: update to 1.23.5 1.23.5 (2024-03-06) * Console::Filter can work with Ractor. (#54)
devel/ruby-console: update to 1.23.4 1.23.4 (2024-02-12) * Add "json" dependency. * Modernize gem.
devel/ruby-console: update to 1.23.3 1.23.3 (2023-12-03) * Add "See Also" links. * Add links to documentation. * Convert annotation to string before printing. (#53) * Modernize gem.
devel/ruby-console: update to 1.23.2 1.23.2 (2023-08-15) * Better backtrace filtering. (#52)
devel/ruby-console: update to 1.23.1 1.21.0 (2023-08-07) * Expose direct interface on Console. (#46) * Default to the current console. (#47) 1.22.0 (2023-08-11) What's Changed * Introduce new "Safe" JSON serialization implementation. (#48) 1.23.0 (2023-08-11) * Remove the Encoder that is no longer used. (#49) * Introduce Console::Format for format handling. (#50) 1.23.1 (2023-08-11) * Capture enough information to debug SystemStackErrors when dumping logs. (#51)
devel/ruby-console: update to 1.20.0 1.19.0 (2023-08-03) * Add adapter module for external gems. 1.20.0 (2023-08-02) What's Changed * Modernize gem. by @ioquatix in #45 * Encode serialized output to avoid encoding errors. by @ioquatix in #44 * This release drops support for Ruby 2.7.
devel/ruby-console: update to 1.18.0 1.17.3 (2023-07-19) Reduce serialized subject to simple string field. (#41) * Only log subject class name. * Follow similar formatting rules for subject as we do for the terminal logger. 1.17.4 (2023-07-19) * Remove class as it is already part of subject. (#42) 1.18.0 (2023-07-21) Fix behaviour of CONSOLE_ON and CONSOLE_OFF. (#43) * Remove unused `enabled:` option. * Add more tests for Filter. Introduce null log output.
devel/ruby-console: update to 1.17.2 1.17.1 (2023-06-06) * Better formatting of fiber annotation. 1.17.2 (2023-06-06) * Fix formatting when yielding buffer.
devel/ruby-console: update to 1.17.0 1.17.0 (2023-06-05) * Fix tests when run interactively and incrementally. * Freeze more things. * Add support for fiber annotations in log output.
devel/ruby-console: add package version 1.16.2 Required by ruby-async package. Console Provides beautiful console logging for Ruby applications. Implements fast, buffered log output. Motivation When Ruby decided to reverse the order of exception backtraces, I finally gave up using the built in logging and decided restore sanity to the output of my programs once and for all! Features * Thread safe global logger with per-fiber context. * Carry along context with nested loggers. * Enable/disable log levels per-class. * Detailed logging of exceptions. * Beautiful logging to the terminal or structured logging using JSON.