[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#32535] [PATCH 34/41] gnu: Add ruby-heredoc-unindent.
From: |
Julien Lepiller |
Subject: |
[bug#32535] [PATCH 34/41] gnu: Add ruby-heredoc-unindent. |
Date: |
Sun, 26 Aug 2018 18:41:56 +0200 |
* gnu/packages/ruby.scm (ruby-heredoc-unindent): New variable.
---
gnu/packages/ruby.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index a9150b819..0dcfd229d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -5750,3 +5750,29 @@ is compatible with stylesheets designed for pygments.")
(description "Hashie is a collection of classes and mixins that make Ruby
hashes more powerful.")
(license license:expat)))
+
+(define-public ruby-heredoc-unindent
+ (package
+ (name "ruby-heredoc-unindent")
+ (version "1.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (rubygems-uri "heredoc_unindent" version))
+ (sha256
+ (base32
+ "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
+ (build-system ruby-build-system)
+ (native-inputs
+ `(("ruby-hoe" ,ruby-hoe)))
+ (home-page "https://github.com/adrianomitre/heredoc_unindent")
+ (synopsis "Heredoc indentation cleaner")
+ (description "This gem removes common margin from indented strings, such
+as the ones produced by indented heredocs. In other words, it strips out
+leading whitespace chars at the beggining of each line, but only as much as
+the line with the smallest margin.
+
+It is acknowledged that many strings defined by heredocs are just code and
+fact is that most parsers are insensitive to indentation. If, however, the
+strings are to be used otherwise, be it for printing or testing, the extra
+indentation will probably be an issue and hence this gem.")
+ (license license:expat)))
--
2.18.0
- [bug#32535] [PATCH 17/41] gnu: Add ruby-listen-3.0., (continued)
- [bug#32535] [PATCH 17/41] gnu: Add ruby-listen-3.0., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 31/41] gnu: Add ruby-rouge., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 26/41] gnu: Add ruby-prawn., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 25/41] gnu: Add ruby-yard., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 29/41] gnu: Add ruby-http-parser.rb., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 19/41] gnu: Add ruby-parallel., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 23/41] gnu: Add ruby-pdf-inspector., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 36/41] gnu: Add ruby-mercenary., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 14/41] gnu: Add ruby-sass-spec., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 22/41] gnu: Add ruby-pdf-reader., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 34/41] gnu: Add ruby-heredoc-unindent.,
Julien Lepiller <=
- [bug#32535] [PATCH 38/41] gnu: Add ruby-forwardable-extended., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 28/41] gnu: Add ruby-kramdown., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 40/41] gnu: Add jekyll., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 27/41] gnu: Add ruby-prawn-table., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 18/41] gnu: Add ruby-jekyll-watch., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 24/41] gnu: Add ruby-pdf-core., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 32/41] gnu: Add ruby-rouge-2., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 30/41] gnu: Add ruby-em-websocket., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 41/41] gnu: Add ruby-jekyll-paginate-v2., Julien Lepiller, 2018/08/26
- [bug#32535] [PATCH 35/41] gnu: Add ruby-safe-yaml., Julien Lepiller, 2018/08/26