[PATCH] Add ruby-html-proofer and dependencies.

  • Done
  • quality assurance status badge
Details
2 participants
  • paul
  • Christopher Baines
Owner
unassigned
Submitted by
paul
Severity
normal
P
(address . guix-patches@gnu.org)
7f68ba03-5e8b-0df9-5362-e33c42fd3a8f@autistici.org
Dear Guixers,

I'm sending a patch series to add ruby-html-proofer and its dependencies.

Thank you,

Giacomo
G
G
Giacomo Leidi wrote on 4 Jan 2021 01:32
[PATCH 1/6] gnu: Add ruby-yell.
(address . 45641@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20210104003215.8932-1-goodoldpaul@autistici.org
* gnu/packages/ruby.scm (ruby-yell): New variable.
---
gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (37 lines)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index c5b1af79d3..f1194c4c3d 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11758,3 +11758,30 @@ defined in @file{.travis.yml} on your local machine, using @code{rvm},
you the speed and portability of libgit2 with the beauty of the Ruby
language.")
(license license:expat)))
+
+(define-public ruby-yell
+ (package
+ (name "ruby-yell")
+ (version "2.2.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "yell" version))
+ (sha256
+ (base32
+ "1g16kcdhdfvczn7x81jiq6afg3bdxmb73skqjyjlkp5nqcy6y5hx"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (invoke "rake" "examples")))))) ; there is no test target.
+ (synopsis
+ "Yell - Your Extensible Logging Library")
+ (description
+ "Yell is a comprehensive logging replacement for Ruby. It defines
+multiple adapters, various log level combinations and message formatting
+options.")
+ (home-page "https://github.com/rudionrails/yell")
+ (license license:expat)))
--
2.29.2
G
G
Giacomo Leidi wrote on 4 Jan 2021 01:32
[PATCH 2/6] gnu: Add ruby-patron.
(address . 45641@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20210104003215.8932-2-goodoldpaul@autistici.org
* gnu/packages/ruby.scm (ruby-patron): New variable.
---
gnu/packages/ruby.scm | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f1194c4c3d..d9ff47bf03 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -24,6 +24,7 @@
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de>
+;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -49,6 +50,7 @@
#:use-module (gnu packages check)
#:use-module (gnu packages compression)
#:use-module (gnu packages crypto)
+ #:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages dbm)
#:use-module (gnu packages rails)
@@ -11785,3 +11787,28 @@ multiple adapters, various log level combinations and message formatting
options.")
(home-page "https://github.com/rudionrails/yell")
(license license:expat)))
+
+(define-public ruby-patron
+ (package
+ (name "ruby-patron")
+ (version "0.13.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "patron" version))
+ (sha256
+ (base32
+ "0523gddx88zql2mq6655k60gy2ac8vybpzkcf90lmd9nx7wl3fi9"))))
+ (build-system ruby-build-system)
+ (inputs `(("curl" ,curl)))
+ (arguments
+ `(#:tests? #f)) ;there are none
+ (synopsis
+ "Ruby HTTP client library based on @code{libcurl}")
+ (description
+ "Patron is a Ruby HTTP client library based on @code{libcurl}. It does
+not try to expose the full \"power\" (read complexity) of @code{libcurl} but
+instead tries to provide a sane API while taking advantage of @code{libcurl}
+under the hood.")
+ (home-page "https://github.com/toland/patron")
+ (license license:expat)))
--
2.29.2
G
G
Giacomo Leidi wrote on 4 Jan 2021 01:32
[PATCH 4/6] gnu: Add ruby-typhoeus.
(address . 45641@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20210104003215.8932-4-goodoldpaul@autistici.org
* gnu/packages/ruby.scm (ruby-typhoeus): New variable.
---
gnu/packages/ruby.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)

Toggle diff (34 lines)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 06d4637df4..4999b95c04 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11835,3 +11835,27 @@ is a gigantic eagle. So much for the history. In the modern world, Ethon
is a very basic @code{libcurl} wrapper using ffi.")
(home-page "https://github.com/typhoeus/ethon")
(license license:expat)))
+
+(define-public ruby-typhoeus
+ (package
+ (name "ruby-typhoeus")
+ (version "1.4.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "typhoeus" version))
+ (sha256
+ (base32
+ "1m22yrkmbj81rzhlny81j427qdvz57yk5wbcf3km0nf3bl6qiygz"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:tests? #f)) ;there are none
+ (propagated-inputs `(("ruby-ethon" ,ruby-ethon)))
+ (synopsis
+ "Typhoeus wraps @code{libcurl} in order to make fast and reliable requests ")
+ (description
+ "Like a modern code version of the mythical beast with 100 serpent heads, Typhoeus
+runs HTTP requests in parallel while cleanly encapsulating handling logic.")
+ (home-page
+ "https://github.com/typhoeus/typhoeus")
+ (license license:expat)))
--
2.29.2
G
G
Giacomo Leidi wrote on 4 Jan 2021 01:32
[PATCH 3/6] gnu: Add ruby-ethon.
(address . 45641@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20210104003215.8932-3-goodoldpaul@autistici.org
* gnu/packages/ruby.scm (ruby-ethon): New variable.
---
gnu/packages/ruby.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index d9ff47bf03..06d4637df4 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11812,3 +11812,26 @@ instead tries to provide a sane API while taking advantage of @code{libcurl}
under the hood.")
(home-page "https://github.com/toland/patron")
(license license:expat)))
+
+(define-public ruby-ethon
+ (package
+ (name "ruby-ethon")
+ (version "0.12.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "ethon" version))
+ (sha256
+ (base32
+ "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:tests? #f)) ;there are none
+ (inputs `(("curl" ,curl)))
+ (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
+ (synopsis "Very lightweight @code{libcurl} wrapper")
+ (description "In Greek mythology, Ethon, the son of Typhoeus and Echidna,
+is a gigantic eagle. So much for the history. In the modern world, Ethon
+is a very basic @code{libcurl} wrapper using ffi.")
+ (home-page "https://github.com/typhoeus/ethon")
+ (license license:expat)))
--
2.29.2
G
G
Giacomo Leidi wrote on 4 Jan 2021 01:32
[PATCH 5/6] gnu: Add ruby-awesome-print.
(address . 45641@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20210104003215.8932-5-goodoldpaul@autistici.org
* gnu/packages/ruby.scm (ruby-awesome-print): New variable.
---
gnu/packages/ruby.scm | 39 +++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)

Toggle diff (49 lines)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 4999b95c04..9784e9cde9 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11859,3 +11859,42 @@ runs HTTP requests in parallel while cleanly encapsulating handling logic.")
(home-page
"https://github.com/typhoeus/typhoeus")
(license license:expat)))
+
+(define-public ruby-awesome-print
+ (package
+ (name "ruby-awesome-print")
+ (version "1.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (rubygems-uri "awesome_print" version))
+ (sha256
+ (base32
+ "14arh1ixfsd6j5md0agyzvksm5svfkvchb90fp32nn7y3avcmc2h"))))
+ (build-system ruby-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ ;; Remove failing test.
+ (for-each delete-file
+ '("spec/ext/nokogiri_spec.rb"
+ "spec/colors_spec.rb"
+ "spec/formats_spec.rb"
+ "spec/methods_spec.rb"
+ "spec/misc_spec.rb"
+ "spec/objects_spec.rb"))
+ (invoke "rspec" "-c" "spec"))))))
+ (native-inputs
+ `(("ruby-nokogiri" ,ruby-nokogiri)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-simplecov" ,ruby-simplecov)))
+ (synopsis
+ "Pretty print Ruby objects to visualize their structure")
+ (description
+ "Great Ruby dubugging companion: pretty print Ruby objects to visualize
+their structure. Supports custom object formatting via plugins")
+ (home-page
+ "https://github.com/awesome-print/awesome_print")
+ (license license:expat)))
--
2.29.2
G
G
Giacomo Leidi wrote on 4 Jan 2021 01:32
[PATCH 6/6] gnu: Add ruby-html-proofer.
(address . 45641@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20210104003215.8932-6-goodoldpaul@autistici.org
* gnu/packages/ruby.scm (ruby-html-proofer): New variable.
---
gnu/packages/ruby.scm | 44 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)

Toggle diff (54 lines)
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 9784e9cde9..b83d62a318 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -11898,3 +11898,47 @@ their structure. Supports custom object formatting via plugins")
(home-page
"https://github.com/awesome-print/awesome_print")
(license license:expat)))
+
+(define-public ruby-html-proofer
+ (package
+ (name "ruby-html-proofer")
+ (version "3.18.5")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/gjtorikian/html-proofer")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb"))))
+ (build-system ruby-build-system)
+ ;; FIXME: Tests depend on rubocop-standard.
+ (arguments
+ `(#:tests? #f))
+ (native-inputs
+ `(("ruby-awesome-print" ,ruby-awesome-print)
+ ("ruby-redcarpet" ,ruby-redcarpet)
+ ("ruby-rspec" ,ruby-rspec)
+ ("ruby-rubocop" ,ruby-rubocop)
+ ("ruby-rubocop-performance" ,ruby-rubocop-performance)
+ ("ruby-pry-byebug" ,ruby-pry-byebug)))
+ (propagated-inputs
+ `(("ruby-addressable" ,ruby-addressable)
+ ("ruby-mercenary" ,ruby-mercenary)
+ ("ruby-nokogumbo" ,ruby-nokogumbo)
+ ("ruby-parallel" ,ruby-parallel)
+ ("ruby-rainbow" ,ruby-rainbow)
+ ("ruby-typhoeus" ,ruby-typhoeus)
+ ("ruby-yell" ,ruby-yell)))
+ (synopsis
+ "Test your rendered HTML files to make sure they're accurate")
+ (description
+ "HTMLProofer is a set of tests to validate your HTML output. These
+tests check if your image references are legitimate, if they have alt tags,
+if your internal links are working, and so on. It's intended to be an
+all-in-one checker for your output.")
+ (home-page
+ "https://github.com/gjtorikian/html-proofer")
+ (license license:expat)))
--
2.29.2
C
C
Christopher Baines wrote on 5 Feb 2021 22:00
Re: [bug#45641] [PATCH] Add ruby-html-proofer and dependencies.
(name . paul)(address . goodoldpaul@autistici.org)(address . 45641-done@debbugs.gnu.org)
87pn1exma5.fsf@cbaines.net
paul <goodoldpaul@autistici.org> writes:

Toggle quote (2 lines)
> I'm sending a patch series to add ruby-html-proofer and its dependencies.

Thanks, I've made a few tweaks and pushed these to master as
9539d6bd072ed618ab737242c7f94640da0130c2.

Most importantly, I moved most packages up off the bottom of the
file. If all new packages go at the bottom of files, this increases the
chance of Git conflicts, so it's better to avoid.

Thanks again,

Chris
-----BEGIN PGP SIGNATURE-----

iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmAdsfJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF
ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh
aW5lcy5uZXQACgkQXiijOwuE9Xe6Qw//SKf20cV6aZoAAf4iTmm/TSOaQfSyIseu
lnTnWvA3xl2zYgF+5Pv0Vjp0NUQydrbWLYY35AQi8UNKI7bAOj51nQ1izz52/BMK
yLMBmTysCX0DKMp7al2kOzCAVKFkKezH+E+F2wgLZipDvW4P+jPt2DG1IIXR3TQJ
udbNuGeQErXZ9HYf7cs8FPzMShLfFGkWC+0v74n1TS8KhjAZirsXKjOy3Zjmy/HQ
9DnflWCeAdvDVW5eYowdQNX3npCAF7a/rX9i1NNYF6K+CFjInwa8iLatboEApS8a
CVssqHcn9V6CLg6ORwv4Rlg/3kaMbs8SBXYG6zeGs7yow5cy5PCzk0R/bFT3+BlV
sh3EfH2nixdBqxQrVeNE12/nZzseV0Zu1On3s/fN8NIGc4MA55Cch4mlSVshK1TC
XiPd0MjodPyzldCAh/gmoUg3zcKnSSKgkJm70WojgytYMcGO2AR4RYs0XX4HzxY2
/iURSJptMylv0JNy/gYRb+0L68ZlCFb735i8vhyp+1XOcXNK5/B46gpnwD83Jiwg
vjq6+gWqvsZBadTmhfJUOj/ZrZTWFcFAyZB8doOVfArthFzFuOHHseFUI1RCTtwn
SWcKex0ge9ECb7xDd0tn5KNnLjI6akg9ulYS0XDCdbPEqKEBgO4EePhs+eEZYsIW
KwO92Jrza5o=
=xjx3
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 45641@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 45641
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch