diff options
author | Brian Leung <bkleung89@gmail.com> | 2019-08-13 06:44:20 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2019-08-23 23:39:22 +0200 |
commit | 7bddb6aa53d396bc5540a08f2d7d91394d12645a (patch) | |
tree | d702b08ab43e281ee093ec5019e27975f56071a8 /gnu | |
parent | 9e065a8aa2e993e1683962190d0023161f84532c (diff) | |
download | guix-7bddb6aa53d396bc5540a08f2d7d91394d12645a.tar.gz |
gnu: Add ruby-htmlentities.
* gnu/packages/ruby.scm (ruby-htmlentities): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/ruby.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm index 93a47b7afa..63b3facd29 100644 --- a/gnu/packages/ruby.scm +++ b/gnu/packages/ruby.scm @@ -8572,6 +8572,33 @@ characteristics.") (home-page "https://github.com/sinatra/mustermann") (license license:expat))) +(define-public ruby-htmlentities + (package + (name "ruby-htmlentities") + (version "4.3.4") + (source + (origin + (method url-fetch) + (uri (rubygems-uri "htmlentities" version)) + (sha256 + (base32 + "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj")))) + (build-system ruby-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + (map (lambda (file) + (invoke "ruby" "-Itest" file)) + (find-files "./test" ".*_test\\.rb"))))))) + (synopsis "Encode and decode (X)HTML entities") + (description + "This package provides a module for encoding and decoding (X)HTML +entities.") + (home-page "https://github.com/threedaymonk/htmlentities") + (license license:expat))) + (define-public ruby-sinatra (package (name "ruby-sinatra") |