guix_mirror_bot pushed a commit to branch ruby-team
in repository guix.

commit d9d5d770fd9f327c192ae913a77ca7d4350701f0
Author: Yan Abu Arab <[email protected]>
AuthorDate: Sat Dec 20 02:37:01 2025 +0200

    gnu: Add ruby-strings.
    
    * gnu/packages/ruby-xyz.scm (ruby-strings): New variable.
    
    Change-Id: I72fe90e20fb7971f13717633fb8495319ad76dae
    Signed-off-by: Steve George <[email protected]>
---
 gnu/packages/ruby-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index c1c74dcd03..e337d20a91 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -528,6 +528,34 @@ or autoload all Ruby files in a directory.")
 hosts by wrapping the @file{rsync} binary.")
     (license license:expat)))
 
+(define-public ruby-strings
+  (package
+    (name "ruby-strings")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "strings" version))
+       (sha256
+        (base32 "1yynb0qhhhplmpzavfrrlwdnd1rh7rkwzcs4xf0mpy2wr6rr6clk"))))
+    (build-system ruby-build-system)
+    (arguments
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "rspec" "-c" "spec")))))))
+    (native-inputs (list ruby-rspec))
+    (propagated-inputs (list ruby-strings-ansi ruby-unicode-display-width
+                             ruby-unicode-utils))
+    (synopsis "Ruby functions for transforming strings")
+    (description "This package provides a set of methods for working with
+strings such as align, truncate, wrap and many more.")
+    (home-page "https://github.com/piotrmurach/strings";)
+    (license license:expat)))
+
 (define-public ruby-strings-ansi
   (package
     (name "ruby-strings-ansi")

Reply via email to