gnu: Add ruby-rails-html-sanitizer.

* gnu/packages/rails.scm (ruby-rails-html-sanitizer): New variable.
This commit is contained in:
Christopher Baines 2019-01-28 15:57:33 +00:00
parent 8d3c5ff68b
commit ab654da543
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 25 additions and 0 deletions

View File

@ -144,3 +144,28 @@ serialization, internationalization, and testing.")
an almost zero-configuration persistence layer for applications.")
(home-page "https://rubyonrails.org")
(license license:expat)))
(define-public ruby-rails-html-sanitizer
(package
(name "ruby-rails-html-sanitizer")
(version "1.0.4")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "rails-html-sanitizer" version))
(sha256
(base32
"1gv7vr5d9g2xmgpjfq4nxsqr70r9pr042r9ycqqnfvw5cz9c7jwr"))))
(build-system ruby-build-system)
(arguments
'(;; No included tests
#:tests? #f))
(propagated-inputs
`(("ruby-loofah" ,ruby-loofah)))
(synopsis "HTML sanitization for Rails applications")
(description
"This gem is used to handle HTML sanitization in Rails applications. If
you need similar functionality in non Rails apps consider using Loofah
directly.")
(home-page "https://github.com/rails/rails-html-sanitizer")
(license license:expat)))