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

commit 0ee94225958a641d151d7c9d1921986e6b0d7de5
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jun 18 16:26:52 2025 +0200

    gnu: Add ruby-leto.
    
    * gnu/packages/ruby-xyz.scm (ruby-leto): New variable.
---
 gnu/packages/ruby-xyz.scm | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/gnu/packages/ruby-xyz.scm b/gnu/packages/ruby-xyz.scm
index d225680472..8db55911f2 100644
--- a/gnu/packages/ruby-xyz.scm
+++ b/gnu/packages/ruby-xyz.scm
@@ -11327,6 +11327,43 @@ focus concern on individual units of behavior.")
     (home-page "https://rubyworks.github.io/lemon";)
     (license license:bsd-2)))
 
+(define-public ruby-leto
+  (package
+    (name "ruby-leto")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (rubygems-uri "leto" version))
+       (sha256
+        (base32 "1ys0qr95zjbln8mfq2bxia63nkdfj1gxy89j6mdcbn6ljy6mb3ch"))))
+    (build-system ruby-build-system)
+    (arguments
+     (list #:tests? #f ; No tests.
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-after 'unpack 'ignore-rubocop
+                 (lambda _
+                   (substitute* "Rakefile"
+                     (("RUBY_VERSION\\.to_f >= 3\\.0")
+                      "false")))))))
+    (native-inputs (list ruby-rake ruby-rspec))
+    (synopsis "Generic object traverser")
+    (description
+     "This package provides a generic object traverser for Ruby.  It takes the
+object and recursively yields:
+@itemize
+@item the given object
+@item instance variables, class variables, constants
+@item Hash keys and values
+@item Enumerable members
+@item Struct members
+@item Data members
+@item Range begins and ends
+@end itemize")
+    (home-page "https://github.com/jaynetics/leto";)
+    (license license:expat)))
+
 (define-public ruby-rubytest-cli
   (package
     (name "ruby-rubytest-cli")

Reply via email to