From 5d7e2fde882e2f29a0ebe2df8f428eea6e6199d5 Mon Sep 17 00:00:00 2001 From: Yan Abu Arab Date: Sat, 20 Dec 2025 02:35:32 +0200 Subject: gnu: Add ruby-strings-ansi. * gnu/packages/ruby-xyz.scm (ruby-strings-ansi): New variable. Change-Id: I5cccefb9ecc2f6a7a446432134de8284beeb02b0 Signed-off-by: Steve George --- gnu/packages/ruby-xyz.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm index af0e10a256d..17fce5119c1 100644 --- a/gnu/packages/ruby-xyz.scm +++ b/gnu/packages/ruby-xyz.scm @@ -528,6 +528,29 @@ or autoload all Ruby files in a directory.") hosts by wrapping the @file{rsync} binary.") (license license:expat))) +(define-public ruby-strings-ansi + (package + (name "ruby-strings-ansi") + (version "0.2.0") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "strings-ansi" version)) + (sha256 + (base32 "120wa6yjc63b84lprglc52f40hx3fx920n4dmv14rad41rv2s9lh")))) + (build-system ruby-build-system) + (arguments + (list + ;; FIXME: tests seems to depend on ruby-strings + #:tests? #f)) + (native-inputs (list bundler ruby-rspec)) + (synopsis "Handle ANSI escape codes in strings") + (description + "@code{strings::ANSI} provides Ruby methods for processing ANSI escape +codes in strings.") + (home-page "https://github.com/piotrmurach/strings-ansi") + (license license:expat))) + (define-public ruby-tty-color (package (name "ruby-tty-color") -- cgit v1.2.3