Skip to content

chore(deps): update dependency toys to ">= 0.22.0", "< 0.25.1" - autoclosed - #86

Closed
renovate-bot wants to merge 1 commit into
googleapis:mainfrom
renovate-bot:renovate/toys-0.x
Closed

renovate-bot wants to merge 1 commit into
googleapis:mainfrom
renovate-bot:renovate/toys-0.x

Conversation

@renovate-bot

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
toys (source, changelog) "~> 0.22.0" → ">= 0.22.0", "< 0.25.1" age confidence

Release Notes

dazuma/toys (toys)

v0.25.0: toys 0.25.0

v0.25.0 / 2026-10-10

This is a release candidate release toward version 1.0. It includes a variety of fixes and small features, largely around adherence to clig.dev and other common CLI guidelines.

  • Major updates
    • ADDED: The -h flag is now a standard help flag, similar to --help.
  • Updates to tool lookup
    • ADDED: Toys now loads global tools from the XDG config directories
    • ADDED: The TOYS_GLOBAL_SOURCES environment variable selects which global sources are searched
    • BREAKING CHANGE: The TOYS_PATH environment variable is no longer supported. Use XDG_CONFIG_HOME, XDG_CONFIG_DIRS, or TOYS_GLOBAL_SOURCES instead.
    • BREAKING CHANGE: Toys no longer loads global tools from /etc/.toys.rb or /etc/.toys/. Move them into /etc/xdg/toys instead.
    • BREAKING CHANGE: Removed the Toys::StandardCLI::TOYS_PATH_ENV constant.
  • Updates to logging and warnings
    • ADDED: Warnings are displayed when a tool invokes a deprecated interface. They can be turned off by setting TOYS_SUPPRESS_WARNINGS to a nonempty value.
    • ADDED: Logs display with a simplified severity prefix unless verbosity is positive
    • FIXED: The DEBUG log prefix is no longer colored white
    • FIXED: Logs emitted from tool initializers honor the verbosity
  • Updates to ANSI coloring control
    • ADDED: The FORCE_COLOR environment variable forces styled output on, or off when set to 0 or false
    • FIXED: An empty NO_COLOR environment variable no longer disables styled output, per the no-color.org spec
    • FIXED: Styled output is disabled when the TERM environment variable is set to dumb
    • FIXED: The highline mixin decides whether to use color from its own output stream, and honors NO_COLOR, FORCE_COLOR, and TERM=dumb
    • FIXED: Help text displayed through a pager honors the styled output setting, including NO_COLOR, FORCE_COLOR, and TERM=dumb
  • Other fixes
    • FIXED: Bash tab completion discards stderr from the completion command, preventing unwanted output if warnings are emitted.
    • FIXED: Tool-not-found suggestions include namespaces
    • FIXED: The :push handler creates a new array rather than appending in place, so that a frozen or non-cloneable default doesn't cause problems
    • FIXED: Re-vendor simple_xdg 0.1.2 to pick up home directory fix
    • FIXED: Re-vendor git_cache 0.2.0 to report an unwritable cache directory clearly and fix repo lock races

v0.24.0: toys 0.24.0

v0.24.0 / 2026-09-11
  • Feature: The toys do builtin provides an --on-missing-gem flag that governs how the --gem flag handles gems that are not installed.
  • BREAKING CHANGE: Removed deprecated gem_version: argument from :rspec and :minitest templates.

v0.23.0: toys 0.23.0

v0.23.0 / 2026-09-09

This is a major release, with several new features. It also includes a significant refactor of some of the underlying layers, which should be mostly invisible. It is a release candidate for the upcoming version 1.0.

Highlights include:

  • Added the ability to treat unknown flags as positional args via the treat_unknown_flags_as_args DSL directive. Useful for wrapping and delegating to other commands.
  • The do builtin tool supports --gem=, --git=, and --path= flags that make additional tool sources available.
  • Running tools from within a tool should generally now be done via the new Toys::Runner object, now available in the runtime context, instead of via the Toys::CLI. The new object provides finer-grained control over error handling and verbosity.
  • Updates to error handling to improve the output and fix some long-standing issues related to tool delegation.
  • Several fixes to bundler integration, especially with Bundler 4.

Details follow.

  • Changes to tool definition:

    • Added the treat_unknown_flags_as_args DSL directive (and the corresponding ToolDefinition#treat_unknown_flags_as_args setter and ToolDefinition#unknown_flags_are_args? query), which redirects unrecognized flags to the tool's positional arguments instead of reporting a usage error. Useful for wrapping and delegating to other commands.
    • The set_context_directory DSL directive can now take Pathname arguments and handles relative paths (by expanding to absolute paths).
    • When two or more flags are declared using the same context key, within a flag group, the flag group's requirements now evaluate correctly.
    • A flag or optional/remaining positional argument declared with a nil default no longer clears default data already set for the same key by an earlier declaration.
    • Toys now raises Toys::ToolDefinitionError if you attempt to "reset" a tool previously defined using a Toys::Tool subclass.
    • SECURITY FIX: Toys now raises Toys::ToolSourceError if a tool loaded from a RubyGem attempts to load tools from the local file system.
    • BREAKING CHANGE: Toys now raises Toys::ToolDefintionError if you attempt to create or descend into a subtool from a subtool_apply block or a middleware-based config.
    • Caught additional cases of incorrectly located Toys::Tool subclasses and raised Toys::ToolDefinitionError
    • Toys directory contents are loaded in deterministic (sorted) order.
  • Changes to tool execution:

    • Added Toys::Context#runner for access to the Toys::Runner object. This is now the preferred way to run tools from within other tools (instead of Toys::CLI#run), unless you need to change the configuration.
    • Added Toys::Context#loader for access to the Toys::Loader object.
    • BREAKING CHANGE: Toys::Context#context_directory, and Toys::Context#get with the associated context key, now never return nil. If no context directory is set for the tool, these now return the current working directory.
    • BREAKING CHANGE: Removed git- and gem- specific attributes from Toys::SourceInfo and replaced with Toys::SourceInfo#origin.
    • Standard context keys and sentinels use the new class Toys::UniqueKey, which displays useful names in diagnostic output.
    • Delegation now propagates the caller's verbosity to the delegate target, rather than resetting it to zero.
    • When a tool delegates, a SignalException unhandled by the inner tool now propagates outward so each tool in the delegation chain gets a chance at its own on_interrupt / on_signal handler.
    • A nested run that shares a logger with the run that called it now uses the base level already in effect for that logger, so verbosity no longer compounds across nested runs.
    • Revamped the output and stack trace printed when an exception occurs.
  • Changes to shell completion:

    • Fixed shell completion for non-flag words containing = or :: completions are now computed against the whole word, and the engine trims candidates to the span the shell will actually replace.
    • Zsh completion now replaces the entire word rather than only the text after an = or :, matching how zsh actually handles word breaks; bash continues to break at = and :.
    • Word-break trimming for bash now ignores = and : characters that were quoted or backslash-escaped, since the shell does not break a word at a quoted character.
    • Subtool completion now uses the loader's configured delimiters to decide where a tool path ends, rather than a separate regex over the fragment prefix, so completing a partially typed tool path works consistently with any configured extra delimiters.
  • Changes to builtin tools:

    • The do builtin tool supports --gem=, --git=, and --path= flags that make additional tool sources available.
  • Changes to CLI interfaces:

    • Toys::CLI#child accepts copy_sources: true, which populates the new CLI's loader with the same sources as the original. This makes it easy to create a new CLI with additional sources on top of the current.
    • You can get the Toys::Runner for a CLI using Toys::CLI#runner, providing a way to customize the run process more closely than using Toys::CLI#run.
    • Added add_source method that takes an instance of the new Toys::SourceSpec types that describe a tool source. This method replaces the now deprecated add_config_* methods (although those methods will continue to be supported for a time). In general, the "config" terminology is being retired in favor of "source" which I think better describes what is going on.
    • BREAKING CHANGE: The config_file_name and config_dir_name arguments to CLI have been renamed to toplevel_tool_file_name and toplevel_tool_dir_name, respectively, as part of a general removal of the "config" term. The old names are not aliased.
    • BREAKING CHANGE: Toys::CLI#run no longer accepts the delegated_from: keyword argument. Tool delegation is now handled internally and its runtime is not exposed in the public interface.
    • BREAKING CHANGE: Renamed the StandardCLI::CONFIG_DIR_NAME to StandardCLI::TOPLEVEL_TOOL_DIR_NAME and StandardCLI::CONFIG_FILE_NAME to StandardCLI::TOPLEVEL_TOOL_FILE_NAME.
    • BREAKING CHANGE: Removed the constants INDEX_FILE_NAME, PRELOAD_DIR_NAME, PRELOAD_FILE_NAME, DATA_DIR_NAME, and LIB_DIR_NAME from StandardCLI.
    • The Toys::StandardCLI constructor now takes git_cache and gems_util keyword arguments letting you customize the objects used to resolve git and gem sources.
    • Path parameters for the methods that add sources, such as path and context_directory, can now take Pathname objects and can handle relative paths properly (by expanding them into absolute paths).
  • Rubygems/Bundler integration changes:

    • Bundler integration requires Bundler 2.4 or later. This is the default on Ruby 3.2, but requires that Bundler is updated on earlier Rubies.
    • Bundler integration properly detects provenance attributes such as path: and git:.
    • Calling bundler integration with a nonempty group list no longer loses gems that were already loaded.
    • Bundler integration now honors BUNDLE_LOCKFILE (new in Bundler 4) and stops leaking it from the modified bundle.
  • Other fixes

    • Terminal mixin now raises the correct ArgumentError (instead of NameError) if given an unknown style code.
    • Toys::Loader#list_subtools now ensures returned tools have been finished by their middleware. This affects listing tools not underneath the currently running tool.

A number of additional minor breaking changes were made to internal interfaces in the toys-core gem classes. It is unlikely you will encounter these unless you are extending the framework, but you can see the toys-core changelog for details.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate-bot
renovate-bot requested a review from a team as a code owner October 12, 2026 05:48
@trusted-contributions-gcf trusted-contributions-gcf Bot added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 12, 2026
@torreypayne torreypayne added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Oct 29, 2026
@renovate-bot renovate-bot changed the title chore(deps): update dependency toys to ">= 0.22.0", "< 0.25.1" chore(deps): update dependency toys to ">= 0.22.0", "< 0.25.1" - autoclosed Nov 4, 2026
@renovate-bot
renovate-bot deleted the renovate/toys-0.x branch November 4, 2026 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing. kokoro:force-run Add this label to force Kokoro to re-run the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants