summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-07-08 11:28:21 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2020-07-08 11:28:21 -0400
commitf2a1b7facb975bd20a402d2cc2b24f40a7934942 (patch)
tree0fa714ffe1b6ab99fad0fe9a0fddf24dce66faf2
parentf048ef520fe92c114a100e9ace0f9c323119c74c (diff)
downloadguix-f2a1b7facb975bd20a402d2cc2b24f40a7934942.tar.gz
gnu: Add ruby-unindent.
* gnu/packages/ruby.scm (ruby-unindent): New variable.
-rw-r--r--gnu/packages/ruby.scm19
1 files changed, 19 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index b05f9c069e..8a732b5eab 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6643,6 +6643,25 @@ API.")
     (home-page "https://coveralls.io")
     (license license:expat)))
 
+(define-public ruby-unindent
+  (package
+  (name "ruby-unindent")
+  (version "1.0")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (rubygems-uri "unindent" version))
+      (sha256
+        (base32
+          "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
+  (build-system ruby-build-system)
+  (synopsis "Ruby method to unindent strings")
+  (description "This module provides a @code{String#unindent} Ruby method to
+unindent strings, which can be useful to unindent multiline strings embedded
+in already-indented code.")
+  (home-page "https://github.com/mynyml/unindent")
+  (license license:expat)))
+
 (define-public ruby-cucumber-core
   (package
     (name "ruby-cucumber-core")