The NetBSD Project

CVS log for pkgsrc/devel/ruby-console/distinfo

[BACK] Up to [cvs.NetBSD.org] / pkgsrc / devel / ruby-console

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.26: download - view: text, markup, annotated - select for diffs
Thu Sep 24 04:00:55 2026 UTC (7 weeks, 4 days ago) by taca
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4 lines
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.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jul 18 15:05:27 2026 UTC (3 months, 4 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q3-base, pkgsrc-2026Q3
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -4 lines
devel/ruby-console: update to 1.37.0

1.37.0 (2026-07-10)

* Show compound units in elapsed time display.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jun 7 03:10:49 2026 UTC (5 months, 1 week ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q2-base, pkgsrc-2026Q2
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -4 lines
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:.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun May 24 14:06:12 2026 UTC (5 months, 3 weeks ago) by taca
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
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.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Feb 17 13:40:36 2026 UTC (8 months, 4 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2026Q1-base, pkgsrc-2026Q1
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
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.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Oct 27 14:57:36 2025 UTC (12 months, 2 weeks ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2025Q4-base, pkgsrc-2025Q4
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -4 lines
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.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Sep 15 15:05:02 2025 UTC (14 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2025Q3-base, pkgsrc-2025Q3
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
devel/ruby-console: update to 1.34.0

1.34.0 (2025-09-05)

* Allow Console::Compatible::Logger#add to accept **options.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Jul 27 15:31:12 2025 UTC (15 months, 2 weeks ago) by taca
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4 lines
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.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Jun 8 16:46:02 2025 UTC (17 months, 1 week ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2025Q2-base, pkgsrc-2025Q2
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -4 lines
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.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Mar 16 13:50:53 2025 UTC (20 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2025Q1-base, pkgsrc-2025Q1
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -4 lines
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.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sun Feb 23 13:56:49 2025 UTC (20 months, 3 weeks ago) by taca
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
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.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Mon Dec 9 13:11:58 2024 UTC (23 months, 1 week ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q4-base, pkgsrc-2024Q4
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
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.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Wed Nov 6 14:06:53 2024 UTC (2 years ago) by taca
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -4 lines
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

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sat Jul 20 15:23:45 2024 UTC (2 years, 3 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q3-base, pkgsrc-2024Q3
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
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)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sun May 5 16:26:14 2024 UTC (2 years, 6 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q2-base, pkgsrc-2024Q2
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -4 lines
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.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Mar 24 13:41:35 2024 UTC (2 years, 7 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2024Q1-base, pkgsrc-2024Q1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +4 -4 lines
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)

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Mar 10 15:03:29 2024 UTC (2 years, 8 months ago) by taca
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -4 lines
devel/ruby-console: update to 1.23.5

1.23.5 (2024-03-06)

* Console::Filter can work with Ractor. (#54)

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Feb 19 15:02:33 2024 UTC (2 years, 8 months ago) by taca
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
devel/ruby-console: update to 1.23.4

1.23.4 (2024-02-12)

* Add "json" dependency.
* Modernize gem.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Dec 17 14:16:37 2023 UTC (2 years, 11 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q4-base, pkgsrc-2023Q4
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -4 lines
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.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 26 13:17:12 2023 UTC (3 years, 2 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4 lines
devel/ruby-console: update to 1.23.2

1.23.2 (2023-08-15)

* Better backtrace filtering. (#52)

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Aug 11 13:51:36 2023 UTC (3 years, 3 months ago) by taca
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
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)

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Aug 5 08:55:36 2023 UTC (3 years, 3 months ago) by taca
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4 lines
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.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jul 23 12:12:44 2023 UTC (3 years, 3 months ago) by taca
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +4 -4 lines
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.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Jun 9 13:47:39 2023 UTC (3 years, 5 months ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q2-base, pkgsrc-2023Q2
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -4 lines
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.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 6 13:32:44 2023 UTC (3 years, 5 months ago) by taca
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -4 lines
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.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Nov 11 13:29:25 2022 UTC (4 years ago) by taca
Branches: MAIN
CVS tags: pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>