gnu: Add ruby-command-line-reporter.
[jackhill/guix/guix.git] / gnu / packages / ruby.scm
CommitLineData
6ef8c59a 1;;; GNU Guix --- Functional package management for GNU
37ab3aba 2;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
402b03e6 3;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
f586c877 4;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
37ab3aba 5;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
cf36174f 6;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
cba53c60 7;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
4a78fd46 8;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
0899352f 9;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
de429a93 10;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
81a22171 11;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
6a9d2266 12;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
6ef8c59a
PP
13;;;
14;;; This file is part of GNU Guix.
15;;;
16;;; GNU Guix is free software; you can redistribute it and/or modify it
17;;; under the terms of the GNU General Public License as published by
18;;; the Free Software Foundation; either version 3 of the License, or (at
19;;; your option) any later version.
20;;;
21;;; GNU Guix is distributed in the hope that it will be useful, but
22;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24;;; GNU General Public License for more details.
25;;;
26;;; You should have received a copy of the GNU General Public License
27;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
28
29(define-module (gnu packages ruby)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (gnu packages)
1db791d5 32 #:use-module (gnu packages base)
6ef8c59a 33 #:use-module (gnu packages compression)
4a9e0585 34 #:use-module (gnu packages databases)
6ef8c59a 35 #:use-module (gnu packages readline)
6ef8c59a 36 #:use-module (gnu packages autotools)
ad79eb55 37 #:use-module (gnu packages java)
6ef8c59a 38 #:use-module (gnu packages libffi)
34138e42 39 #:use-module (gnu packages maths)
fe5dd5f4 40 #:use-module (gnu packages networking)
ac09beba 41 #:use-module (gnu packages python)
763624f5 42 #:use-module (gnu packages ragel)
cc2b77df 43 #:use-module (gnu packages tls)
66e20863 44 #:use-module (gnu packages version-control)
6ef8c59a
PP
45 #:use-module (guix packages)
46 #:use-module (guix download)
bda0c139 47 #:use-module (guix git-download)
6ef8c59a 48 #:use-module (guix utils)
acf735f2 49 #:use-module (guix build-system gnu)
e920bfca 50 #:use-module (gnu packages xml)
c2c4e5b2 51 #:use-module (gnu packages web)
acf735f2 52 #:use-module (guix build-system ruby))
6ef8c59a
PP
53
54(define-public ruby
55 (package
56 (name "ruby")
02f21a87 57 (version "2.4.3")
6ef8c59a
PP
58 (source
59 (origin
60 (method url-fetch)
6becfdff
MW
61 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
62 (version-major+minor version)
12d39eb5 63 "/ruby-" version ".tar.xz"))
6ef8c59a
PP
64 (sha256
65 (base32
02f21a87 66 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
ff9d1a2f 67 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
65e84e31
BW
68 (modules '((guix build utils)))
69 (snippet `(begin
70 ;; Remove bundled libffi
c033c195 71 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
65e84e31 72 #t))))
6ef8c59a
PP
73 (build-system gnu-build-system)
74 (arguments
75 `(#:test-target "test"
6ef8c59a 76 #:phases
9656b8be 77 (modify-phases %standard-phases
65e84e31 78 (add-before 'configure 'replace-bin-sh-and-remove-libffi
9656b8be
BW
79 (lambda _
80 (substitute* '("Makefile.in"
81 "ext/pty/pty.c"
82 "io.c"
83 "lib/mkmf.rb"
84 "process.c"
85 "test/rubygems/test_gem_ext_configure_builder.rb"
86 "test/rdoc/test_rdoc_parser.rb"
87 "test/ruby/test_rubyoptions.rb"
88 "test/ruby/test_process.rb"
89 "test/ruby/test_system.rb"
90 "tool/rbinstall.rb")
91 (("/bin/sh") (which "sh")))
92 #t)))))
6ef8c59a
PP
93 (inputs
94 `(("readline" ,readline)
6ef8c59a
PP
95 ("openssl" ,openssl)
96 ("libffi" ,libffi)
97 ("gdbm" ,gdbm)
98 ("zlib" ,zlib)))
99 (native-search-paths
100 (list (search-path-specification
101 (variable "GEM_PATH")
3cb3fa67 102 (files (list (string-append "lib/ruby/vendor_ruby"))))))
6becfdff 103 (synopsis "Programming language interpreter")
6ef8c59a
PP
104 (description "Ruby is a dynamic object-oriented programming language with
105a focus on simplicity and productivity.")
bf3be6a5 106 (home-page "https://www.ruby-lang.org")
6ef8c59a
PP
107 (license license:ruby)))
108
98bb983c 109(define-public ruby-2.3
800a7dd5
BW
110 (package
111 (inherit ruby)
049edeb2 112 (version "2.3.7")
800a7dd5
BW
113 (source
114 (origin
115 (method url-fetch)
116 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
117 (version-major+minor version)
118 "/ruby-" version ".tar.xz"))
119 (sha256
120 (base32
049edeb2 121 "1nwfaifq5624p1ml56qq5dy5w38z37x22r0qgrbgbzrzklmqy7y6"))
800a7dd5
BW
122 (modules '((guix build utils)))
123 (snippet `(begin
124 ;; Remove bundled libffi
125 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
126 #t))))))
127
65e84e31
BW
128(define-public ruby-2.2
129 (package (inherit ruby)
8456a4c5 130 (version "2.2.10")
65e84e31
BW
131 (source
132 (origin
133 (method url-fetch)
134 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
135 (version-major+minor version)
136 "/ruby-" version ".tar.xz"))
137 (sha256
138 (base32
8456a4c5 139 "0l5nk9mc0q4769d2i9d9y1izk0pk0lms2bl8s3lclv36wsvvqxxz"))))))
65e84e31 140
9942e803
PP
141(define-public ruby-2.1
142 (package (inherit ruby)
a754eaf1 143 (version "2.1.10")
9942e803
PP
144 (source
145 (origin
146 (method url-fetch)
147 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
148 (version-major+minor version)
149 "/ruby-" version ".tar.bz2"))
150 (sha256
151 (base32
a754eaf1 152 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
9942e803
PP
153 (arguments
154 `(#:test-target "test"
155 #:parallel-tests? #f
156 #:phases
dc1d3cde
KK
157 (modify-phases %standard-phases
158 (add-before 'configure 'replace-bin-sh
159 (lambda _
160 (substitute* '("Makefile.in"
161 "ext/pty/pty.c"
162 "io.c"
163 "lib/mkmf.rb"
164 "process.c")
165 (("/bin/sh") (which "sh")))
3cb3fa67 166 #t)))))))
9942e803 167
218ee89b
PP
168(define-public ruby-1.8
169 (package (inherit ruby)
218ee89b
PP
170 (version "1.8.7-p374")
171 (source
172 (origin
173 (method url-fetch)
6becfdff
MW
174 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
175 (version-major+minor version)
176 "/ruby-" version ".tar.bz2"))
218ee89b
PP
177 (sha256
178 (base32
179 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
180 (native-search-paths '())
181 (arguments
182 `(#:test-target "test"
183 #:parallel-tests? #f
184 #:phases
dc1d3cde
KK
185 (modify-phases %standard-phases
186 (add-before 'configure 'replace-bin-sh
187 (lambda _
188 (substitute* '("Makefile.in"
189 "ext/pty/pty.c"
190 "io.c"
191 "lib/mkmf.rb"
192 "process.c")
193 (("/bin/sh") (which "sh")))
194 #t)))))))
218ee89b 195
352b5d7e
JL
196(define-public ruby-concurrent
197 (package
198 (name "ruby-concurrent")
199 (version "1.0.5")
200 (source (origin
201 (method url-fetch)
202 (uri (rubygems-uri "concurrent-ruby" version))
203 (sha256
204 (base32
205 "183lszf5gx84kcpb779v6a2y0mx9sssy8dgppng1z9a505nj1qcf"))))
206 (build-system ruby-build-system)
207 (arguments `(#:tests? #f)); No rakefile
208 (home-page "https://github.com/ruby-concurrency/concurrent-ruby")
209 (synopsis "Concurrency tools for Ruby")
210 (description "This gem provides concurrency tools for Ruby. It provides
211a library of common thread-safe types and data-structures as well as abstractions
212for concurrency and communication between threads.")
213 (license license:expat)))
214
823ed097
CB
215(define-public ruby-highline
216 (package
217 (name "ruby-highline")
405cb5ab 218 (version "1.7.10")
823ed097
CB
219 (source
220 (origin
221 (method url-fetch)
222 (uri (rubygems-uri "highline" version))
223 (sha256
224 (base32
405cb5ab 225 "01ib7jp85xjc4gh4jg0wyzllm46hwv8p0w1m4c75pbgi41fps50y"))))
823ed097
CB
226 (build-system ruby-build-system)
227 (arguments
228 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
229 (native-inputs
230 `(("bundler" ,bundler)
231 ("ruby-code-statistics" ,ruby-code-statistics)))
232 (synopsis
233 "HighLine helps you build command-line interfaces")
234 (description
235 "HighLine provides a high-level IO library that provides validation,
236type conversion, and more for command-line interfaces. HighLine also includes
237a menu system for providing multiple options to the user.")
238 (home-page "https://github.com/JEG2/highline")
239 (license (list license:gpl2 license:ruby))))
240
bda0c139
DT
241(define-public ruby-hoe
242 (package
243 (name "ruby-hoe")
05f2f8bc 244 (version "3.16.2")
bda0c139 245 (source (origin
e83c6d00
DT
246 (method url-fetch)
247 (uri (rubygems-uri "hoe" version))
bda0c139
DT
248 (sha256
249 (base32
05f2f8bc 250 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
bda0c139 251 (build-system ruby-build-system)
bda0c139
DT
252 (synopsis "Ruby project management helper")
253 (description
254 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
255maintain, and release projects and includes a dynamic plug-in system allowing
256for easy extensibility. Hoe ships with plug-ins for all the usual project
257tasks including rdoc generation, testing, packaging, deployment, and
258announcement.")
2f3800e5 259 (home-page "https://www.zenspider.com/projects/hoe.html")
bda0c139
DT
260 (license license:expat)))
261
022170dc
PP
262(define-public ruby-rake-compiler
263 (package
264 (name "ruby-rake-compiler")
0cd7b816 265 (version "1.0.4")
022170dc
PP
266 (source (origin
267 (method url-fetch)
e83c6d00 268 (uri (rubygems-uri "rake-compiler" version))
022170dc
PP
269 (sha256
270 (base32
0cd7b816 271 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
022170dc
PP
272 (build-system ruby-build-system)
273 (arguments
e83c6d00 274 '(#:tests? #f)) ; needs cucumber
022170dc 275 (synopsis "Building and packaging helper for Ruby native extensions")
e881752c 276 (description "Rake-compiler provides a framework for building and
022170dc
PP
277packaging native C and Java extensions in Ruby.")
278 (home-page "https://github.com/rake-compiler/rake-compiler")
279 (license license:expat)))
280
acf735f2
DT
281(define-public ruby-i18n
282 (package
283 (name "ruby-i18n")
cbb50182 284 (version "1.1.0")
acf735f2
DT
285 (source (origin
286 (method url-fetch)
e83c6d00 287 (uri (rubygems-uri "i18n" version))
acf735f2
DT
288 (sha256
289 (base32
cbb50182 290 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
acf735f2
DT
291 (build-system ruby-build-system)
292 (arguments
0bfdfd37 293 '(#:tests? #f)) ; no tests
cbb50182 294 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
acf735f2
DT
295 (synopsis "Internationalization library for Ruby")
296 (description "Ruby i18n is an internationalization and localization
297solution for Ruby programs. It features translation and localization,
298interpolation of values to translations, pluralization, customizable
299transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
300translation data, custom key/scope separator, custom exception handlers, and
301an extensible architecture with a swappable backend.")
7bf837fd 302 (home-page "https://github.com/svenfuchs/i18n")
acf735f2 303 (license license:expat)))
eb0c2dd6 304
62b138ca
CB
305(define-public ruby-iruby
306 (package
307 (name "ruby-iruby")
308 (version "0.3")
309 (source
310 (origin
311 (method url-fetch)
312 (uri (rubygems-uri "iruby" version))
313 (sha256
314 (base32
315 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
316 (build-system ruby-build-system)
317 (arguments
318 ;; TODO: Tests currently fail.
319 ;;
320 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
321 ;;
322 ;; 1) Failure:
323 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
324 ;; In [ expected
325 ;;
326 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
327 '(#:tests? #f
328 #:phases
329 (modify-phases %standard-phases
330 (add-after 'unpack 'patch-ipython
331 (lambda* (#:key inputs #:allow-other-keys)
332 (substitute* "lib/iruby/command.rb"
333 (("version = `")
334 (string-append
335 "version = `"
336 (assoc-ref inputs "python-ipython")
337 "/bin/"))
338 (("Kernel\\.exec\\('")
339 (string-append
340 "Kernel.exec('"
341 (assoc-ref inputs "python-ipython")
342 "/bin/")))
343 #t)))))
344 (inputs
345 `(("python-ipython" ,python-ipython)))
346 (propagated-inputs
347 `(("ruby-bond" ,ruby-bond)
348 ("ruby-data_uri" ,ruby-data_uri)
349 ("ruby-mimemagic" ,ruby-mimemagic)
350 ("ruby-multi-json" ,ruby-multi-json)
351 ("ruby-cztop" ,ruby-cztop)
352 ;; Optional inputs
353 ("ruby-pry" ,ruby-pry)))
354 (synopsis "Ruby kernel for Jupyter/IPython")
355 (description
356 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
357notebook).")
358 (home-page "https://github.com/SciRuby/iruby")
359 (license license:expat)))
360
eb0c2dd6
DT
361;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
362;; dependencies use RSpec for their test suites! To avoid these circular
363;; dependencies, we disable tests for all of the RSpec-related packages.
364(define ruby-rspec-support
365 (package
366 (name "ruby-rspec-support")
2d9f1c06 367 (version "3.5.0")
eb0c2dd6
DT
368 (source (origin
369 (method url-fetch)
e83c6d00 370 (uri (rubygems-uri "rspec-support" version))
eb0c2dd6
DT
371 (sha256
372 (base32
2d9f1c06 373 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
eb0c2dd6
DT
374 (build-system ruby-build-system)
375 (arguments
376 '(#:tests? #f)) ; avoid dependency cycles
377 (synopsis "RSpec support library")
378 (description "Support utilities for RSpec gems.")
379 (home-page "https://github.com/rspec/rspec-support")
380 (license license:expat)))
381
382(define-public ruby-rspec-core
383 (package
384 (name "ruby-rspec-core")
c5949118 385 (version "3.5.4")
eb0c2dd6
DT
386 (source (origin
387 (method url-fetch)
e83c6d00 388 (uri (rubygems-uri "rspec-core" version))
eb0c2dd6
DT
389 (sha256
390 (base32
c5949118 391 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
eb0c2dd6
DT
392 (build-system ruby-build-system)
393 (arguments
394 '(#:tests? #f)) ; avoid dependency cycles
395 (propagated-inputs
396 `(("ruby-rspec-support" ,ruby-rspec-support)))
397 (synopsis "RSpec core library")
398 (description "Rspec-core provides the RSpec test runner and example
399groups.")
400 (home-page "https://github.com/rspec/rspec-core")
401 (license license:expat)))
e6962009 402
64c318f2
BW
403(define-public ruby-rspec-core-2
404 (package (inherit ruby-rspec-core)
405 (version "2.14.8")
406 (source (origin
407 (method url-fetch)
408 (uri (rubygems-uri "rspec-core" version))
409 (sha256
410 (base32
411 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
412 (propagated-inputs `())))
413
20c05ea9 414(define-public ruby-diff-lcs
e6962009
DT
415 (package
416 (name "ruby-diff-lcs")
e2fcef39 417 (version "1.3")
e6962009
DT
418 (source (origin
419 (method url-fetch)
e83c6d00 420 (uri (rubygems-uri "diff-lcs" version))
e6962009
DT
421 (sha256
422 (base32
e2fcef39 423 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
e6962009
DT
424 (build-system ruby-build-system)
425 (arguments
426 '(#:tests? #f)) ; avoid dependency cycles
427 (synopsis "Compute the difference between two Enumerable sequences")
428 (description "Diff::LCS computes the difference between two Enumerable
429sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
430It includes utilities to create a simple HTML diff output format and a
431standard diff-like tool.")
432 (home-page "https://github.com/halostatue/diff-lcs")
433 (license license:expat)))
434
435(define-public ruby-rspec-expectations
436 (package
437 (name "ruby-rspec-expectations")
2d9f1c06 438 (version "3.5.0")
e6962009
DT
439 (source (origin
440 (method url-fetch)
e83c6d00 441 (uri (rubygems-uri "rspec-expectations" version))
e6962009
DT
442 (sha256
443 (base32
2d9f1c06 444 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
e6962009
DT
445 (build-system ruby-build-system)
446 (arguments
447 '(#:tests? #f)) ; avoid dependency cycles
448 (propagated-inputs
449 `(("ruby-rspec-support" ,ruby-rspec-support)
20c05ea9 450 ("ruby-diff-lcs" ,ruby-diff-lcs)))
e881752c 451 (synopsis "RSpec expectations library")
e6962009
DT
452 (description "Rspec-expectations provides a simple API to express expected
453outcomes of a code example.")
454 (home-page "https://github.com/rspec/rspec-expectations")
455 (license license:expat)))
4f2a0cac 456
fb157f25
BW
457(define-public ruby-rspec-expectations-2
458 (package (inherit ruby-rspec-expectations)
459 (version "2.14.5")
460 (source (origin
461 (method url-fetch)
462 (uri (rubygems-uri "rspec-expectations" version))
463 (sha256
464 (base32
465 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
466 (propagated-inputs
467 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
468
999ffb26
DM
469(define-public ruby-rspec-its
470 (package
471 (name "ruby-rspec-its")
472 (version "1.2.0")
473 (source
474 (origin
475 (method url-fetch)
476 (uri (rubygems-uri "rspec-its" version))
477 (sha256
478 (base32
479 "1pwphny5jawcm1hda3vs9pjv1cybaxy17dc1s75qd7drrvx697p3"))))
480 (build-system ruby-build-system)
481 (arguments
482 `(#:tests? #f)) ; needs cucumber.
483 (propagated-inputs
484 `(("ruby-rspec-core" ,ruby-rspec-core)
485 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
486 (synopsis "RSpec extension gem for attribute matching")
487 (description "@code{rspec-its} is an RSpec extension gem for attribute
488matching.")
489 (home-page "https://github.com/rspec/rspec-its")
490 (license license:expat)))
491
4f2a0cac
DT
492(define-public ruby-rspec-mocks
493 (package
494 (name "ruby-rspec-mocks")
2d9f1c06 495 (version "3.5.0")
4f2a0cac
DT
496 (source (origin
497 (method url-fetch)
e83c6d00 498 (uri (rubygems-uri "rspec-mocks" version))
4f2a0cac
DT
499 (sha256
500 (base32
2d9f1c06 501 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
4f2a0cac
DT
502 (build-system ruby-build-system)
503 (arguments
504 '(#:tests? #f)) ; avoid dependency cycles
505 (propagated-inputs
506 `(("ruby-rspec-support" ,ruby-rspec-support)
20c05ea9 507 ("ruby-diff-lcs" ,ruby-diff-lcs)))
4f2a0cac
DT
508 (synopsis "RSpec stubbing and mocking library")
509 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
510support for stubbing and mocking.")
511 (home-page "https://github.com/rspec/rspec-mocks")
512 (license license:expat)))
d4fde1f2 513
6da9adeb
BW
514(define-public ruby-rspec-mocks-2
515 (package (inherit ruby-rspec-mocks)
516 (version "2.14.6")
517 (source (origin
518 (method url-fetch)
519 (uri (rubygems-uri "rspec-mocks" version))
520 (sha256
521 (base32
522 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
523 (propagated-inputs
524 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
525
d4fde1f2
DT
526(define-public ruby-rspec
527 (package
528 (name "ruby-rspec")
2d9f1c06 529 (version "3.5.0")
d4fde1f2
DT
530 (source (origin
531 (method url-fetch)
e83c6d00 532 (uri (rubygems-uri "rspec" version))
d4fde1f2
DT
533 (sha256
534 (base32
2d9f1c06 535 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
d4fde1f2
DT
536 (build-system ruby-build-system)
537 (arguments
538 '(#:tests? #f)) ; avoid dependency cycles
539 (propagated-inputs
540 `(("ruby-rspec-core" ,ruby-rspec-core)
541 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
542 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
543 (synopsis "Behavior-driven development framework for Ruby")
544 (description "RSpec is a behavior-driven development (BDD) framework for
545Ruby. This meta-package includes the RSpec test runner, along with the
546expectations and mocks frameworks.")
547 (home-page "http://rspec.info/")
548 (license license:expat)))
2cbc105b 549
5ac984b3
BW
550(define-public ruby-rspec-2
551 (package (inherit ruby-rspec)
552 (version "2.14.1")
553 (source (origin
554 (method url-fetch)
555 (uri (rubygems-uri "rspec" version))
556 (sha256
557 (base32
558 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
559 (propagated-inputs
560 `(("ruby-rspec-core" ,ruby-rspec-core-2)
561 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
562 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
563
2cbc105b
DT
564;; Bundler is yet another source of circular dependencies, so we must disable
565;; its test suite as well.
566(define-public bundler
567 (package
568 (name "bundler")
29a33257 569 (version "1.15.4")
2cbc105b
DT
570 (source (origin
571 (method url-fetch)
e83c6d00 572 (uri (rubygems-uri "bundler" version))
2cbc105b
DT
573 (sha256
574 (base32
29a33257 575 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
2cbc105b
DT
576 (build-system ruby-build-system)
577 (arguments
578 '(#:tests? #f)) ; avoid dependency cycles
579 (synopsis "Ruby gem bundler")
580 (description "Bundler automatically downloads and installs a list of gems
581specified in a \"Gemfile\", as well as their dependencies.")
2f3800e5 582 (home-page "https://bundler.io/")
2cbc105b 583 (license license:expat)))
98b87b82 584
cf36174f
RW
585(define-public ruby-builder
586 (package
587 (name "ruby-builder")
42b48db2 588 (version "3.2.3")
cf36174f
RW
589 (source (origin
590 (method url-fetch)
591 (uri (rubygems-uri "builder" version))
592 (sha256
593 (base32
42b48db2 594 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
cf36174f
RW
595 (build-system ruby-build-system)
596 (arguments
597 `(#:phases
598 (modify-phases %standard-phases
599 (add-after 'unpack 'do-not-use-rvm
600 (lambda _
601 (substitute* "rakelib/tags.rake"
602 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
603 #t)))))
604 (synopsis "Ruby library to create structured data")
605 (description "Builder provides a number of builder objects that make it
606easy to create structured data. Currently the following builder objects are
607supported: XML Markup and XML Events.")
608 (home-page "https://github.com/jimweirich/builder")
609 (license license:expat)))
610
ad79eb55
RW
611(define-public ruby-rjb
612 (package
613 (name "ruby-rjb")
aeb4e61e 614 (version "1.5.5")
ad79eb55
RW
615 (source (origin
616 (method url-fetch)
617 (uri (rubygems-uri "rjb" version))
618 (sha256
619 (base32
aeb4e61e 620 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
ad79eb55
RW
621 (build-system ruby-build-system)
622 (arguments
623 `(#:tests? #f ; no rakefile
624 #:phases
625 (modify-phases %standard-phases
626 (add-before 'build 'set-java-home
627 (lambda* (#:key inputs #:allow-other-keys)
628 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
629 #t)))))
630 (native-inputs
d2540f80 631 `(("jdk" ,icedtea "jdk")))
ad79eb55
RW
632 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
633 (description "RJB is a bridge program that connects Ruby and Java via the
634Java Native Interface.")
2f3800e5 635 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
ad79eb55
RW
636 (license license:lgpl2.1+)))
637
f9ae2c06
PP
638(define-public ruby-log4r
639 (package
640 (name "ruby-log4r")
641 (version "1.1.10")
642 (source
643 (origin
644 (method url-fetch)
645 (uri (rubygems-uri "log4r" version))
646 (sha256
647 (base32
648 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
649 (build-system ruby-build-system)
650 (arguments
651 '(#:tests? #f)) ; no Rakefile in gem
652 (synopsis "Flexible logging library for Ruby")
653 (description "Comprehensive and flexible logging library written
654in Ruby for use in Ruby programs. It features a hierarchical logging
655system of any number of levels, custom level names, logger
656inheritance, multiple output destinations per log event, execution
657tracing, custom formatting, thread safteyness, XML and YAML
658configuration, and more.")
659 (home-page "http://log4r.rubyforge.org/")
660 (license license:bsd-3)))
661
71a03c29
RW
662(define-public ruby-atoulme-antwrap
663 (package
664 (name "ruby-atoulme-antwrap")
665 (version "0.7.5")
666 (source (origin
667 (method url-fetch)
668 (uri (rubygems-uri "atoulme-Antwrap" version))
669 (sha256
670 (base32
671 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
672 (build-system ruby-build-system)
673 ;; Test data required for most of the tests are not included.
674 (arguments `(#:tests? #f))
675 (native-inputs
676 `(("ruby-hoe" ,ruby-hoe)))
677 (inputs
678 `(("ruby-rjb" ,ruby-rjb)))
679 (synopsis "Ruby wrapper for the Ant build tool")
680 (description "Antwrap is a Ruby module that wraps the Apache Ant build
681tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
682script.")
683 (home-page "http://rubyforge.org/projects/antwrap/")
684 (license license:expat)))
685
fe1ddad5
RW
686(define-public ruby-atoulme-saikuro
687 (package
688 (name "ruby-atoulme-saikuro")
689 (version "1.2.1")
690 (source (origin
691 (method url-fetch)
692 (uri (rubygems-uri "atoulme-Saikuro" version))
693 (sha256
694 (base32
695 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
696 (build-system ruby-build-system)
697 ;; FIXME: There are no unit tests. The tests are demonstrations of the
698 ;; "saikuro" tool.
699 (arguments `(#:tests? #f))
700 (synopsis "Cyclomatic complexity analyzer")
701 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
702given Ruby source code Saikuro will generate a report listing the cyclomatic
703complexity of each method found. In addition, Saikuro counts the number of
704lines per method and can generate a listing of the number of tokens on each
705line of code.")
706 (home-page "http://www.github.com/atoulme/Saikuro")
707 ;; File headers contain the BSD-3 license and the README.rdoc says that
708 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
709 ;; of the Expat license.
710 (license license:bsd-3)))
711
34138e42
BW
712(define-public ruby-asciidoctor
713 (package
714 (name "ruby-asciidoctor")
9933a8e7 715 (version "1.5.7.1")
34138e42
BW
716 (source
717 (origin
718 (method url-fetch)
719 (uri (rubygems-uri "asciidoctor" version))
720 (sha256
721 (base32
9933a8e7 722 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
34138e42
BW
723 (build-system ruby-build-system)
724 (arguments
725 `(#:test-target "test:all"
726 #:phases
727 (modify-phases %standard-phases
728 (add-before 'check 'remove-circular-tests
729 (lambda _
730 ;; Remove tests that require circular dependencies to load or pass.
731 (delete-file "test/invoker_test.rb")
732 (delete-file "test/converter_test.rb")
733 (delete-file "test/options_test.rb")
734 #t)))))
735 (native-inputs
736 `(("ruby-minitest" ,ruby-minitest)
737 ("ruby-nokogiri" ,ruby-nokogiri)
738 ("ruby-asciimath" ,ruby-asciimath)
739 ("ruby-coderay" ,ruby-coderay)))
740 (synopsis "Converter from AsciiDoc content to other formats")
741 (description
742 "Asciidoctor is a text processor and publishing toolchain for converting
20860819 743AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
bba082a1 744 (home-page "https://asciidoctor.org")
34138e42
BW
745 (license license:expat)))
746
b88502c9
BW
747(define-public ruby-sporkmonger-rack-mount
748 ;; Testing the addressable gem requires a newer commit than that released, so
749 ;; use an up to date version.
750 (let ((revision "1")
751 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
752 (package
753 (name "ruby-sporkmonger-rack-mount")
754 (version (git-version "0.8.3" revision commit))
755 (source (origin
756 (method git-fetch)
757 (uri (git-reference
758 (url "https://github.com/sporkmonger/rack-mount.git")
759 (commit commit)))
760 (file-name (git-file-name name version))
761 (sha256
762 (base32
763 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
764 (build-system ruby-build-system)
765 (arguments
766 ;; Tests currently fail so disable them.
767 ;; https://github.com/sporkmonger/rack-mount/pull/1
768 `(#:tests? #f))
769 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
770 (synopsis "Stackable dynamic tree based Rack router")
771 (description
772 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
773continue trying routes if the response returns pass. This allows multiple
774routes to be nested or stacked on top of each other.")
775 (home-page "https://github.com/sporkmonger/rack-mount")
776 (license license:expat))))
777
2f9e0b68
RW
778(define-public ruby-ci-reporter
779 (package
780 (name "ruby-ci-reporter")
781 (version "2.0.0")
782 (source (origin
783 (method url-fetch)
784 (uri (rubygems-uri "ci_reporter" version))
785 (sha256
786 (base32
787 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
788 (build-system ruby-build-system)
789 (arguments
790 `(#:test-target "rspec"))
791 (propagated-inputs
792 `(("ruby-builder" ,ruby-builder)))
793 (native-inputs
794 `(("bundler" ,bundler)
795 ("ruby-rspec" ,ruby-rspec)))
796 (synopsis "Generate XML reports of runs test")
797 (description
798 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
799you to generate XML reports of your test runs. The resulting files can be
800read by a continuous integration system that understands Ant's JUnit report
801format.")
802 (home-page "https://github.com/nicksieger/ci_reporter")
803 (license license:expat)))
804
fe5dd5f4
CB
805(define-public ruby-czmq-ffi-gen
806 (package
807 (name "ruby-czmq-ffi-gen")
808 (version "0.13.0")
809 (source
810 (origin
811 (method url-fetch)
812 (uri (rubygems-uri "czmq-ffi-gen" version))
813 (sha256
814 (base32
815 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
816 (build-system ruby-build-system)
817 (arguments
818 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
819 #:phases
820 (modify-phases %standard-phases
821 (add-after 'unpack 'patch-lib_dirs
822 (lambda* (#:key inputs #:allow-other-keys)
823 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
824 (("lib\\_dirs = \\[.*\\]")
825 (string-append "lib_dirs = ['"
826 (assoc-ref inputs "czmq") "/lib"
827 "']")))
828 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
829 (("lib\\_dirs = \\[.*\\]")
830 (string-append "lib_dirs = ['"
831 (assoc-ref inputs "zeromq") "/lib"
832 "']"))))))))
833 (inputs
834 `(("zeromq" ,zeromq)
835 ("czmq" ,czmq)))
836 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
837 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
838 (description
839 "These Ruby bindings are not intended to be directly used, but rather
840used by higher level bindings like those provided by CZTop.")
841 (home-page
842 "https://github.com/paddor/czmq-ffi-gen")
843 (license license:isc)))
844
d0afff26
CB
845(define-public ruby-cztop
846 (package
847 (name "ruby-cztop")
848 (version "0.12.2")
849 (source
850 (origin
851 (method url-fetch)
852 (uri (rubygems-uri "cztop" version))
853 (sha256
854 (base32
855 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
856 (build-system ruby-build-system)
857 (arguments
858 '(#:test-target "spec"
859 #:phases
860 (modify-phases %standard-phases
861 (add-after 'unpack 'patch-lib_paths
862 (lambda* (#:key inputs #:allow-other-keys)
863 (substitute* "lib/cztop/poller/zmq.rb"
864 (("lib\\_paths = \\[.*\\]")
865 (string-append "lib_paths = ['"
866 (assoc-ref inputs "zeromq") "/lib"
867 "']"))))))))
868 (native-inputs
869 `(("bundler" ,bundler)
870 ("ruby-rspec" ,ruby-rspec)))
871 (inputs
872 `(("zeromq" ,zeromq)))
873 (propagated-inputs
874 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
875 (synopsis "CZMQ Ruby bindings")
876 (description
877 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
878CZMQ. The focus of of CZTop is on being easy to use and providing first class
879support for security mechanisms.")
880 (home-page "https://github.com/paddor/cztop")
881 (license license:isc)))
882
b004fb6a
RW
883(define-public ruby-saikuro-treemap
884 (package
885 (name "ruby-saikuro-treemap")
886 (version "0.2.0")
887 (source (origin
888 (method url-fetch)
889 (uri (rubygems-uri "saikuro_treemap" version))
890 (sha256
891 (base32
892 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
893 (build-system ruby-build-system)
894 ;; Some of the tests fail because the generated JSON has keys in a
895 ;; different order. This is a problem with the test suite rather than any
896 ;; of the involved libraries.
897 (arguments `(#:tests? #f))
898 (propagated-inputs
899 `(("ruby-json-pure" ,ruby-json-pure)
900 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
901 (synopsis "Generate complexity treemap based on saikuro analysis")
902 (description
903 "This gem generates a treemap showing the complexity of Ruby code on
904which it is run. It uses Saikuro under the covers to analyze Ruby code
905complexity.")
7bf837fd 906 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
b004fb6a
RW
907 (license license:expat)))
908
cef87ed6
CB
909(define-public ruby-options
910 (package
911 (name "ruby-options")
912 (version "2.3.2")
913 (source
914 (origin
915 (method url-fetch)
916 (uri (rubygems-uri "options" version))
917 (sha256
918 (base32
919 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
920 (build-system ruby-build-system)
921 (arguments
922 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
923 #:phases
924 (modify-phases %standard-phases
925 (add-before 'check 'set-LIB
926 (lambda _
927 ;; This is used in the Rakefile, and setting it avoids an issue
928 ;; with running the tests.
fe27238c
CB
929 (setenv "LIB" "options")
930 #t)))))
cef87ed6
CB
931 (synopsis "Ruby library to parse options from *args cleanly")
932 (description
933 "The @code{options} library helps with parsing keyword options in Ruby
934functions.")
935 (home-page "https://github.com/ahoward/options")
936 (license license:ruby)))
937
d64ebebd
BW
938(define-public ruby-erubis
939 (package
940 (name "ruby-erubis")
941 (version "2.7.0")
942 (source
943 (origin
944 (method url-fetch)
945 (uri (rubygems-uri "erubis" version))
946 (sha256
947 (base32
948 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
949 (build-system ruby-build-system)
950 (arguments
951 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
952 (synopsis "Implementation of embedded Ruby (eRuby)")
953 (description
954 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
955features such as multi-language support, auto escaping, auto trimming spaces
956around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
957support.")
958 (home-page "http://www.kuwata-lab.com/erubis/")
959 (license license:expat)))
960
cc53e630
RW
961(define-public ruby-orderedhash
962 (package
963 (name "ruby-orderedhash")
964 (version "0.0.6")
965 (source (origin
966 (method url-fetch)
967 (uri (rubygems-uri "orderedhash" version))
968 (sha256
969 (base32
970 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
971 (build-system ruby-build-system)
972 (arguments
973 '(#:tests? #f)) ; no test suite
974 (synopsis "Ruby library providing an order-preserving hash")
975 (description "Orderedhash is a Ruby library providing a hash
976implementation that preserves the order of items and features some array-like
977extensions.")
978 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
979 (license license:public-domain)))
980
28c5d42d
PP
981(define-public ruby-libxml
982 (package
983 (name "ruby-libxml")
acbc5062 984 (version "3.0.0")
28c5d42d
PP
985 (source
986 (origin
987 (method url-fetch)
988 (uri (rubygems-uri "libxml-ruby" version))
989 (sha256
990 (base32
acbc5062 991 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
28c5d42d
PP
992 (build-system ruby-build-system)
993 (inputs
994 `(("zlib" ,zlib)
995 ("libxml2" ,libxml2)))
996 (arguments
997 '(#:tests? #f ; test suite hangs for unknown reason
998 #:gem-flags
999 (list "--"
1000 (string-append "--with-xml2-include="
1001 (assoc-ref %build-inputs "libxml2")
1002 "/include/libxml2" ))))
1003 (synopsis "Ruby bindings for GNOME Libxml2")
1004 (description "The Libxml-Ruby project provides Ruby language bindings for
1005the GNOME Libxml2 XML toolkit.")
2f3800e5 1006 (home-page "https://xml4r.github.com/libxml-ruby")
28c5d42d
PP
1007 (license license:expat)))
1008
8b9bde07
RW
1009(define-public ruby-xml-simple
1010 (package
1011 (name "ruby-xml-simple")
1012 (version "1.1.5")
1013 (source (origin
1014 (method url-fetch)
1015 (uri (rubygems-uri "xml-simple" version))
1016 (sha256
1017 (base32
1018 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1019 (build-system ruby-build-system)
1020 (arguments
1021 '(#:tests? #f)) ; no test suite
1022 (synopsis "Simple Ruby library for XML processing")
1023 (description "This library provides a simple API for XML processing in
1024Ruby.")
1025 (home-page "https://github.com/maik/xml-simple")
1026 (license license:ruby)))
1027
2cb3ab48
RW
1028(define-public ruby-thor
1029 (package
1030 (name "ruby-thor")
2e8cd862 1031 (version "0.19.4")
2cb3ab48
RW
1032 (source (origin
1033 (method url-fetch)
1034 (uri (rubygems-uri "thor" version))
1035 (sha256
1036 (base32
2e8cd862 1037 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
2cb3ab48
RW
1038 (build-system ruby-build-system)
1039 (arguments
1040 '(#:tests? #f)) ; no test suite
1041 (native-inputs
1042 `(("bundler" ,bundler)))
1043 (synopsis "Ruby toolkit for building command-line interfaces")
1044 (description "Thor is a toolkit for building powerful command-line
1045interfaces.")
1046 (home-page "http://whatisthor.com/")
1047 (license license:expat)))
1048
ec79018e
RW
1049(define-public ruby-lumberjack
1050 (package
1051 (name "ruby-lumberjack")
41700efa 1052 (version "1.0.13")
ec79018e
RW
1053 (source (origin
1054 (method url-fetch)
1055 (uri (rubygems-uri "lumberjack" version))
1056 (sha256
1057 (base32
41700efa 1058 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
ec79018e
RW
1059 (build-system ruby-build-system)
1060 (native-inputs
8be62d3f
BW
1061 `(("ruby-rspec" ,ruby-rspec)
1062 ("ruby-timecop" ,ruby-timecop)))
ec79018e
RW
1063 (synopsis "Logging utility library for Ruby")
1064 (description "Lumberjack is a simple logging utility that can be a drop in
1065replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1066for automatically rolling log files even with multiple processes writing the
1067same log file.")
7bf837fd 1068 (home-page "https://github.com/bdurand/lumberjack")
ec79018e
RW
1069 (license license:expat)))
1070
70b4cf38
RW
1071(define-public ruby-nenv
1072 (package
1073 (name "ruby-nenv")
12313cd0 1074 (version "0.3.0")
70b4cf38
RW
1075 (source (origin
1076 (method url-fetch)
1077 (uri (rubygems-uri "nenv" version))
1078 (sha256
1079 (base32
12313cd0 1080 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
70b4cf38
RW
1081 (build-system ruby-build-system)
1082 (arguments
1083 `(#:tests? #f)) ; no tests included
1084 (native-inputs
1085 `(("ruby-rspec" ,ruby-rspec)
1086 ("bundler" ,bundler)))
1087 (synopsis "Ruby interface for modifying the environment")
1088 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1089and inspect the environment.")
1090 (home-page "https://github.com/e2/nenv")
1091 (license license:expat)))
1092
8d9e9f28
RW
1093(define-public ruby-permutation
1094 (package
1095 (name "ruby-permutation")
1096 (version "0.1.8")
1097 (source (origin
1098 (method url-fetch)
1099 (uri (rubygems-uri "permutation" version))
1100 (sha256
1101 (base32
1102 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1103 (build-system ruby-build-system)
1104 (arguments
1105 `(#:phases
1106 (modify-phases %standard-phases
1107 (add-after 'unpack 'fix-rakefile
1108 (lambda _
1109 (substitute* "Rakefile"
1110 (("require 'rake/gempackagetask'")
1111 "require 'rubygems/package_task'")
1112 (("include Config") ""))
1113 #t))
1114 (replace 'check
1115 (lambda _
1116 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
1117 (synopsis "Library to perform operations with sequence permutations")
1118 (description "This package provides a Ruby library to perform different
1119operations with permutations of sequences, such as strings and arrays.")
2f3800e5 1120 (home-page "https://flori.github.io/permutation")
8d9e9f28
RW
1121 (license license:gpl2))) ; GPL 2 only
1122
c5d14d42
RW
1123(define-public ruby-shellany
1124 (package
1125 (name "ruby-shellany")
1126 (version "0.0.1")
1127 (source (origin
1128 (method url-fetch)
1129 (uri (rubygems-uri "shellany" version))
1130 (sha256
1131 (base32
1132 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1133 (build-system ruby-build-system)
1134 (arguments
1135 `(#:test-target "default"
1136 #:phases
1137 (modify-phases %standard-phases
1138 (add-after 'unpack 'fix-version-test
1139 (lambda _
1140 (substitute* "spec/shellany_spec.rb"
1141 (("^RSpec") "require \"shellany\"\nRSpec"))
1142 #t)))))
1143 (native-inputs
1144 `(("ruby-rspec" ,ruby-rspec)
1145 ("ruby-nenv" ,ruby-nenv)
1146 ("bundler" ,bundler)))
1147 (synopsis "Capture command output")
1148 (description "Shellany is a Ruby library providing functions to capture
1149the output produced by running shell commands.")
1150 (home-page "https://rubygems.org/gems/shellany")
1151 (license license:expat)))
1152
d152162f
RW
1153(define-public ruby-notiffany
1154 (package
1155 (name "ruby-notiffany")
a7ca218c 1156 (version "0.1.1")
d152162f
RW
1157 (source (origin
1158 (method url-fetch)
1159 (uri (rubygems-uri "notiffany" version))
1160 (sha256
1161 (base32
a7ca218c 1162 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
d152162f
RW
1163 (build-system ruby-build-system)
1164 ;; Tests are not included in the gem.
1165 (arguments `(#:tests? #f))
1166 (propagated-inputs
1167 `(("ruby-shellany" ,ruby-shellany)
1168 ("ruby-nenv" ,ruby-nenv)))
1169 (native-inputs
1170 `(("bundler" ,bundler)))
1171 (synopsis "Wrapper libray for notification libraries")
1172 (description "Notiffany is a Ruby wrapper libray for notification
1173libraries such as Libnotify.")
1174 (home-page "https://github.com/guard/notiffany")
1175 (license license:expat)))
1176
8528365b
RW
1177(define-public ruby-formatador
1178 (package
1179 (name "ruby-formatador")
1180 (version "0.2.5")
1181 (source (origin
1182 (method url-fetch)
1183 (uri (rubygems-uri "formatador" version))
1184 (sha256
1185 (base32
1186 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1187 (build-system ruby-build-system)
1188 ;; Circular dependency: Tests require ruby-shindo, which requires
1189 ;; ruby-formatador at runtime.
1190 (arguments `(#:tests? #f))
1191 (synopsis "Ruby library to format text on stdout")
1192 (description "Formatador is a Ruby library to format text printed to the
1193standard output stream.")
7bf837fd 1194 (home-page "https://github.com/geemus/formatador")
8528365b
RW
1195 (license license:expat)))
1196
7ac4610f
RW
1197(define-public ruby-shindo
1198 (package
1199 (name "ruby-shindo")
1200 (version "0.3.8")
1201 (source (origin
1202 (method url-fetch)
1203 (uri (rubygems-uri "shindo" version))
1204 (sha256
1205 (base32
1206 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1207 (build-system ruby-build-system)
1208 (arguments
1209 `(#:test-target "shindo_tests"
1210 #:phases
1211 (modify-phases %standard-phases
1212 (add-after 'unpack 'fix-tests
1213 (lambda _
1214 (substitute* "Rakefile"
1215 (("system \"shindo") "system \"./bin/shindo")
1216 ;; This test doesn't work, so we disable it.
1217 (("fail \"The build_error test should fail") "#"))
1218 #t)))))
1219 (propagated-inputs
1220 `(("ruby-formatador" ,ruby-formatador)))
1221 (synopsis "Simple depth first Ruby testing")
1222 (description "Shindo is a simple depth first testing library for Ruby.")
1223 (home-page "https://github.com/geemus/shindo")
1224 (license license:expat)))
1225
f13636f2
RW
1226(define-public ruby-rubygems-tasks
1227 (package
1228 (name "ruby-rubygems-tasks")
1229 (version "0.2.4")
1230 (source (origin
1231 (method url-fetch)
1232 (uri (rubygems-uri "rubygems-tasks" version))
1233 (sha256
1234 (base32
1235 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1236 (build-system ruby-build-system)
1237 ;; Tests need Internet access.
1238 (arguments `(#:tests? #f))
1239 (native-inputs
1240 `(("ruby-rspec" ,ruby-rspec)
1241 ("ruby-yard" ,ruby-yard)))
1242 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1243 (description "Rubygems-task provides Rake tasks for managing and releasing
1244Ruby Gems.")
1245 (home-page "https://github.com/postmodern/rubygems-tasks")
1246 (license license:expat)))
1247
cb6bc5df
CB
1248(define-public ruby-rubyzip
1249 (package
1250 (name "ruby-rubyzip")
1251 (version "1.2.1")
1252 (source
1253 (origin
1254 (method url-fetch)
1255 (uri (rubygems-uri "rubyzip" version))
1256 (sha256
1257 (base32
1258 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1259 (build-system ruby-build-system)
1260 (arguments
1261 '(#:phases
1262 (modify-phases %standard-phases
1263 (add-before 'check 'patch-tests
1264 (lambda* (#:key inputs #:allow-other-keys)
1265 (substitute* "test/gentestfiles.rb"
1266 (("/usr/bin/zip")
1267 (string-append
1268 (assoc-ref inputs "zip") "/bin/zip")))
1269 (substitute* "test/input_stream_test.rb"
1270 (("/usr/bin/env ruby") (which "ruby")))
1271 #t)))))
1272 (native-inputs
1273 `(("bundler" ,bundler)
1274 ("ruby-simplecov" ,ruby-simplecov)
1275 ("zip" ,zip)
1276 ("unzip" ,unzip)))
1277 (synopsis "Ruby module is for reading and writing zip files")
1278 (description
1279 "The rubyzip module provides ways to read from and create zip files.")
1280 (home-page "http://github.com/rubyzip/rubyzip")
1281 (license license:bsd-2)))
1282
58b59742
RW
1283(define-public ruby-simplecov-html
1284 (package
1285 (name "ruby-simplecov-html")
53fd476f 1286 (version "0.10.2")
58b59742
RW
1287 (source (origin
1288 (method url-fetch)
1289 (uri (rubygems-uri "simplecov-html" version))
1290 (sha256
1291 (base32
53fd476f 1292 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
58b59742 1293 (build-system ruby-build-system)
8b749cf3 1294 (arguments `(#:tests? #f)) ; there are no tests
58b59742
RW
1295 (native-inputs
1296 `(("bundler" ,bundler)))
1297 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1298 (description "This package provides the default HTML formatter for
1299the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1300 (home-page "https://github.com/colszowka/simplecov-html")
1301 (license license:expat)))
1302
a84fa2ad
RW
1303(define-public ruby-simplecov
1304 (package
1305 (name "ruby-simplecov")
1b107245 1306 (version "0.12.0")
a84fa2ad
RW
1307 (source (origin
1308 (method url-fetch)
1309 (uri (rubygems-uri "simplecov" version))
1310 (sha256
1311 (base32
1b107245 1312 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
a84fa2ad
RW
1313 (build-system ruby-build-system)
1314 ;; Simplecov depends on rubocop for code style checking at build time.
1315 ;; Rubocop needs simplecov at build time.
1316 (arguments `(#:tests? #f))
1317 (propagated-inputs
1318 `(("ruby-json" ,ruby-json)
1319 ("ruby-docile" ,ruby-docile)
1320 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1321 (native-inputs
1322 `(("bundler" ,bundler)))
1323 (synopsis "Code coverage framework for Ruby")
1324 (description "SimpleCov is a code coverage framework for Ruby with a
1325powerful configuration library and automatic merging of coverage across test
1326suites.")
7bf837fd 1327 (home-page "https://github.com/colszowka/simplecov")
a84fa2ad
RW
1328 (license license:expat)))
1329
98b87b82
DT
1330(define-public ruby-useragent
1331 (package
1332 (name "ruby-useragent")
3b0e45c8 1333 (version "0.16.8")
98b87b82
DT
1334 (source (origin
1335 (method url-fetch)
e83c6d00 1336 (uri (rubygems-uri "useragent" version))
98b87b82
DT
1337 (sha256
1338 (base32
3b0e45c8 1339 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
98b87b82
DT
1340 (build-system ruby-build-system)
1341 (arguments
e83c6d00 1342 '(#:tests? #f)) ; no test suite
98b87b82
DT
1343 (synopsis "HTTP user agent parser for Ruby")
1344 (description "UserAgent is a Ruby library that parses and compares HTTP
1345User Agents.")
1346 (home-page "https://github.com/gshutler/useragent")
1347 (license license:expat)))
96086cc5
DT
1348
1349(define-public ruby-bacon
1350 (package
1351 (name "ruby-bacon")
e83c6d00 1352 (version "1.2.0")
96086cc5
DT
1353 (source (origin
1354 (method url-fetch)
e83c6d00 1355 (uri (rubygems-uri "bacon" version))
96086cc5
DT
1356 (sha256
1357 (base32
e83c6d00 1358 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
96086cc5 1359 (build-system ruby-build-system)
96086cc5
DT
1360 (synopsis "Small RSpec clone")
1361 (description "Bacon is a small RSpec clone providing all essential
1362features.")
1363 (home-page "https://github.com/chneukirchen/bacon")
1364 (license license:expat)))
de59d316 1365
a8d2bf3c
CB
1366(define-public ruby-bacon-bits
1367 (package
1368 (name "ruby-bacon-bits")
1369 (version "0.1.0")
1370 (source
1371 (origin
1372 (method url-fetch)
1373 (uri (rubygems-uri "bacon-bits" version))
1374 (sha256
1375 (base32
1376 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
1377 (build-system ruby-build-system)
1378 (arguments
1379 ;; No tests
1380 '(#:tests? #f))
1381 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
1382 (synopsis "Extensions to Bacon, for disabling tests, before and after
1383blocks and more")
1384 (description
1385 "This extends the bacon testing framework with useful extensions to
1386disable tests, have before and after blocks that run once and more.")
1387 (home-page "https://github.com/cldwalker/bacon-bits")
1388 (license license:expat)))
1389
e259bdf0
DT
1390(define-public ruby-connection-pool
1391 (package
1392 (name "ruby-connection-pool")
58021db4 1393 (version "2.2.2")
e259bdf0
DT
1394 (source (origin
1395 (method url-fetch)
e83c6d00 1396 (uri (rubygems-uri "connection_pool" version))
e259bdf0
DT
1397 (sha256
1398 (base32
58021db4 1399 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
e259bdf0
DT
1400 (build-system ruby-build-system)
1401 (native-inputs
1402 `(("bundler" ,bundler)))
1403 (synopsis "Generic connection pool for Ruby")
1404 (description "Connection_pool provides a generic connection pooling
1405interface for Ruby programs.")
1406 (home-page "https://github.com/mperham/connection_pool")
1407 (license license:expat)))
4c0aeb44
DT
1408
1409(define-public ruby-net-http-persistent
1410 (package
1411 (name "ruby-net-http-persistent")
185ea446 1412 (version "3.0.0")
4c0aeb44
DT
1413 (source (origin
1414 (method url-fetch)
e83c6d00 1415 (uri (rubygems-uri "net-http-persistent" version))
4c0aeb44
DT
1416 (sha256
1417 (base32
185ea446 1418 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
4c0aeb44 1419 (build-system ruby-build-system)
4c0aeb44
DT
1420 (native-inputs
1421 `(("ruby-connection-pool" ,ruby-connection-pool)
1422 ("ruby-hoe" ,ruby-hoe)))
1423 (synopsis "Persistent HTTP connection manager")
1424 (description "Net::HTTP::Persistent manages persistent HTTP connections
1425using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1426 (home-page "https://github.com/drbrain/net-http-persistent")
1427 (license license:expat)))
afbbdf77 1428
f88bacaf
RW
1429(define-public ruby-power-assert
1430 (package
1431 (name "ruby-power-assert")
3918146b 1432 (version "0.2.7")
f88bacaf
RW
1433 (source (origin
1434 (method url-fetch)
1435 (uri (rubygems-uri "power_assert" version))
1436 (sha256
1437 (base32
3918146b 1438 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
f88bacaf
RW
1439 (build-system ruby-build-system)
1440 (native-inputs
1441 `(("bundler" ,bundler)))
1442 (synopsis "Assert library with descriptive assertion messages")
1443 (description "Power-assert is an assertion library providing descriptive
1444assertion messages for tests.")
1445 (home-page "https://github.com/k-tsj/power_assert")
1446 (license (list license:bsd-2 license:ruby))))
1447
347eb21e
RW
1448(define-public ruby-locale
1449 (package
1450 (name "ruby-locale")
1451 (version "2.1.2")
1452 (source (origin
1453 (method url-fetch)
1454 (uri (rubygems-uri "locale" version))
1455 (sha256
1456 (base32
1457 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1458 (build-system ruby-build-system)
1459 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1460 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1461 ;; dependency cycle we disable tests.
1462 (arguments `(#:tests? #f))
1463 (native-inputs
1464 `(("bundler" ,bundler)
1465 ("ruby-yard" ,ruby-yard)))
1466 (synopsis "Ruby library providing basic localization APIs")
1467 (description
1468 "Ruby-Locale is the pure ruby library which provides basic APIs for
1469localization.")
1470 (home-page "https://github.com/ruby-gettext/locale")
1471 (license (list license:lgpl3+ license:ruby))))
1472
e2333ea3
RW
1473(define-public ruby-text
1474 (package
1475 (name "ruby-text")
1476 (version "1.3.1")
1477 (source (origin
1478 (method url-fetch)
1479 (uri (rubygems-uri "text" version))
1480 (sha256
1481 (base32
1482 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1483 (build-system ruby-build-system)
1484 (synopsis "Collection of text algorithms for Ruby")
1485 (description
1486 "This package provides a collection of text algorithms: Levenshtein,
1487Soundex, Metaphone, Double Metaphone, Porter Stemming.")
7bf837fd 1488 (home-page "https://github.com/threedaymonk/text")
e2333ea3
RW
1489 (license license:expat)))
1490
c1f52261
RW
1491(define-public ruby-gettext
1492 (package
1493 (name "ruby-gettext")
1494 (version "3.1.7")
1495 (source (origin
1496 (method url-fetch)
1497 (uri (rubygems-uri "gettext" version))
1498 (sha256
1499 (base32
1500 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1501 (build-system ruby-build-system)
1502 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1503 ;; which needs ruby-gettext. To break the dependency cycle we disable
1504 ;; tests.
1505 (arguments `(#:tests? #f))
1506 (propagated-inputs
1507 `(("ruby-locale" ,ruby-locale)
1508 ("ruby-text" ,ruby-text)))
1509 (native-inputs
1510 `(("bundler" ,bundler)
1511 ("ruby-yard" ,ruby-yard)))
1512 (synopsis "GNU gettext-like program for Ruby")
1513 (description
1514 "Gettext is a GNU gettext-like program for Ruby. The catalog
1515file (po-file) used is the same as that used by GNU gettext, allowing you to
1516use GNU gettext tools for maintenance.")
2f3800e5 1517 (home-page "https://ruby-gettext.github.com/")
c1f52261
RW
1518 (license (list license:lgpl3+ license:ruby))))
1519
cc5aeb8c
RW
1520(define-public ruby-packnga
1521 (package
1522 (name "ruby-packnga")
1d60c436 1523 (version "1.0.4")
cc5aeb8c
RW
1524 (source (origin
1525 (method url-fetch)
1526 (uri (rubygems-uri "packnga" version))
1527 (sha256
1528 (base32
1d60c436 1529 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
cc5aeb8c
RW
1530 (build-system ruby-build-system)
1531 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1532 ;; To break the dependency cycle we disable tests.
1533 (arguments `(#:tests? #f))
1534 (propagated-inputs
1535 `(("ruby-gettext" ,ruby-gettext)
1536 ("ruby-yard" ,ruby-yard)))
1537 (native-inputs
1538 `(("bundler" ,bundler)))
1539 (synopsis "Utility library to package internationalized libraries")
1540 (description
1541 "Packnga is a library to translate to many languages using YARD.")
1542 (home-page "http://ranguba.org/packnga/")
1543 (license license:lgpl2.0+)))
1544
3383f5bd
RW
1545(define-public ruby-test-unit
1546 (package
1547 (name "ruby-test-unit")
d74d96e4 1548 (version "3.2.5")
3383f5bd
RW
1549 (source (origin
1550 (method url-fetch)
1551 (uri (rubygems-uri "test-unit" version))
1552 (sha256
1553 (base32
d74d96e4 1554 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3383f5bd
RW
1555 (build-system ruby-build-system)
1556 (propagated-inputs
1557 `(("ruby-power-assert" ,ruby-power-assert)))
1558 (native-inputs
1559 `(("bundler" ,bundler)
1560 ("ruby-packnga" ,ruby-packnga)
1561 ("ruby-yard" ,ruby-yard)))
1562 (synopsis "Unit testing framework for Ruby")
1563 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1564on xUnit principles. These were originally designed by Kent Beck, creator of
1565extreme programming software development methodology, for Smalltalk's SUnit.
1566It allows writing tests, checking results and automated testing in Ruby.")
2f3800e5 1567 (home-page "https://test-unit.github.io/")
3383f5bd
RW
1568 (license (list license:psfl license:ruby))))
1569
25d6d49b
RW
1570(define-public ruby-metaclass
1571 (package
1572 (name "ruby-metaclass")
1573 (version "0.0.4")
1574 (source (origin
1575 (method url-fetch)
1576 (uri (rubygems-uri "metaclass" version))
1577 (sha256
1578 (base32
1579 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1580 (build-system ruby-build-system)
1581 (arguments
1582 `(#:phases
1583 (modify-phases %standard-phases
1584 (add-after 'unpack 'add-test-unit-to-search-path
761e7042 1585 (lambda* (#:key inputs #:allow-other-keys)
3cb3fa67 1586 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
761e7042
BW
1587 (substitute* "Rakefile"
1588 (("t\\.libs << \"test\"" line)
1589 (string-append line "; t.libs << \""
3cb3fa67 1590 test-unit "/lib/ruby/vendor_ruby"
761e7042
BW
1591 "/gems/test-unit-"
1592 ,(package-version ruby-test-unit)
1593 "/lib\""))))
1594 #t)))))
25d6d49b
RW
1595 (native-inputs
1596 `(("bundler" ,bundler)
1597 ("ruby-test-unit" ,ruby-test-unit)))
1598 (synopsis "Ruby library adding metaclass method to all objects")
1599 (description
1600 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1601objects.")
7bf837fd 1602 (home-page "https://github.com/floehopper/metaclass")
25d6d49b
RW
1603 (license license:expat)))
1604
21f7b7bd
RW
1605(define-public ruby-blankslate
1606 (package
1607 (name "ruby-blankslate")
1608 (version "3.1.3")
1609 (source (origin
1610 (method url-fetch)
1611 (uri (rubygems-uri "blankslate" version))
1612 (sha256
1613 (base32
1614 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1615 (build-system ruby-build-system)
1616 (arguments
1617 `(#:phases
1618 (modify-phases %standard-phases
1619 (replace 'check
1620 (lambda _ (zero? (system* "rspec" "spec/")))))))
1621 (native-inputs
1622 `(("bundler" ,bundler)
1623 ("ruby-rspec" ,ruby-rspec)))
1624 (synopsis "Abstract base class with no predefined methods")
1625 (description
1626 "BlankSlate provides an abstract base class with no predefined
1627methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1628as a base class when writing classes that depend upon
1629@code{method_missing} (e.g. dynamic proxies).")
7bf837fd 1630 (home-page "https://github.com/masover/blankslate")
21f7b7bd
RW
1631 (license license:expat)))
1632
afdb437c
CB
1633(define-public ruby-bond
1634 (package
1635 (name "ruby-bond")
1636 (version "0.5.1")
1637 (source
1638 (origin
1639 (method url-fetch)
1640 (uri (rubygems-uri "bond" version))
1641 (sha256
1642 (base32
1643 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
1644 (build-system ruby-build-system)
1645 (native-inputs
1646 `(("ruby-bacon" ,ruby-bacon)
1647 ("ruby-bacon-bits" ,ruby-bacon-bits)
1648 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
1649 (synopsis "Bond can provide custom autocompletion for arguments, methods
1650and more")
1651 (description
1652 "Bond can autocomplete argument(s) to methods, uniquely completing per
1653module, per method and per argument. Bond provides a configuration system and
1654a DSL for creating custom completions and completion rules. Bond can also
1655load completions that ship with gems. Bond is able to offer more than irb's
1656completion since it uses the full line of input when completing as opposed to
1657irb's last-word approach.")
1658 (home-page "http://tagaholic.me/bond/")
1659 (license license:expat)))
1660
4016ba3f
RW
1661(define-public ruby-instantiator
1662 (package
1663 (name "ruby-instantiator")
688c9076 1664 (version "0.0.7")
4016ba3f
RW
1665 (source (origin
1666 (method url-fetch)
1667 (uri (rubygems-uri "instantiator" version))
1668 (sha256
1669 (base32
688c9076 1670 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
4016ba3f
RW
1671 (build-system ruby-build-system)
1672 (arguments
1673 `(#:phases
1674 (modify-phases %standard-phases
1675 (add-after 'unpack 'add-test-unit-to-search-path
761e7042 1676 (lambda* (#:key inputs #:allow-other-keys)
3cb3fa67 1677 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
761e7042
BW
1678 (substitute* "Rakefile"
1679 (("t\\.libs << \"test\"" line)
1680 (string-append line "; t.libs << \""
3cb3fa67 1681 test-unit "/lib/ruby/vendor_ruby"
761e7042
BW
1682 "/gems/test-unit-"
1683 ,(package-version ruby-test-unit)
1684 "/lib\""))))
1685 #t)))))
4016ba3f
RW
1686 (propagated-inputs
1687 `(("ruby-blankslate" ,ruby-blankslate)))
1688 (native-inputs
1689 `(("bundler" ,bundler)
1690 ("ruby-test-unit" ,ruby-test-unit)))
1691 (synopsis "Instantiate an arbitrary Ruby class")
1692 (description
1693 "Instantiator lets you instantiate an arbitrary Ruby class without
1694knowing anything about the constructor.")
1695 (home-page "https://github.com/floehopper/instantiator")
1696 (license license:expat)))
1697
97aee8d3
RW
1698(define-public ruby-introspection
1699 (package
1700 (name "ruby-introspection")
98ff58a5 1701 (version "0.0.4")
97aee8d3
RW
1702 (source (origin
1703 (method url-fetch)
1704 (uri (rubygems-uri "introspection" version))
1705 (sha256
1706 (base32
98ff58a5 1707 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
97aee8d3
RW
1708 (build-system ruby-build-system)
1709 (arguments
1710 `(#:phases
1711 (modify-phases %standard-phases
1712 (add-after 'unpack 'add-test-unit-to-search-path
1713 (lambda* (#:key inputs #:allow-other-keys)
3cb3fa67 1714 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
761e7042
BW
1715 (substitute* "Rakefile"
1716 (("t\\.libs << \"test\"" line)
1717 (string-append line "; t.libs << \""
3cb3fa67 1718 test-unit "/lib/ruby/vendor_ruby"
761e7042
BW
1719 "/gems/test-unit-"
1720 ,(package-version ruby-test-unit)
1721 "/lib\""))))
97aee8d3
RW
1722 #t)))))
1723 (propagated-inputs
1724 `(("ruby-instantiator" ,ruby-instantiator)
1725 ("ruby-metaclass" ,ruby-metaclass)))
1726 (native-inputs
1727 `(("bundler" ,bundler)
1728 ("ruby-blankslate" ,ruby-blankslate)
1729 ("ruby-test-unit" ,ruby-test-unit)))
1730 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1731 (description
1732 "Introspection provides tools to inspect the hierarchy of method
1733definitions on a Ruby object.")
1734 (home-page "https://github.com/floehopper/introspection")
1735 (license license:expat)))
1736
d93062fd
RW
1737(define-public ruby-redcarpet
1738 (package
1739 (name "ruby-redcarpet")
5ca48923 1740 (version "3.4.0")
d93062fd
RW
1741 (source (origin
1742 (method url-fetch)
1743 (uri (rubygems-uri "redcarpet" version))
1744 (sha256
1745 (base32
5ca48923 1746 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
d93062fd
RW
1747 (build-system ruby-build-system)
1748 (arguments
1749 `(#:phases
1750 (modify-phases %standard-phases
1751 ;; The gem archive does not include the conformance tests.
1752 (add-after 'unpack 'disable-conformance-tests
1753 (lambda _
1754 (substitute* "Rakefile"
1755 (("task :test => %w\\[test:unit test:conformance\\]")
1756 "task :test => %w[test:unit]"))
1757 #t)))))
1758 (native-inputs
1759 `(("bundler" ,bundler)
1760 ("ruby-test-unit" ,ruby-test-unit)
1761 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1762 (synopsis "Extensible Markdown to (X)HTML converter")
1763 (description
1764 "Redcarpet is an extensible Ruby library for Markdown processing and
1765conversion to (X)HTML.")
7bf837fd 1766 (home-page "https://github.com/vmg/redcarpet")
d93062fd
RW
1767 (license license:expat)))
1768
4f2a52ae
RW
1769(define-public ruby-mocha
1770 (package
1771 (name "ruby-mocha")
1772 (version "1.1.0")
1773 (source (origin
1774 (method url-fetch)
1775 (uri (rubygems-uri "mocha" version))
1776 (sha256
1777 (base32
1778 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1779 (build-system ruby-build-system)
1780 (arguments
1781 `(#:phases
1782 (modify-phases %standard-phases
1783 (add-after 'unpack 'add-test-unit-to-search-path
1784 (lambda* (#:key inputs #:allow-other-keys)
3cb3fa67 1785 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
761e7042
BW
1786 (substitute* "Rakefile"
1787 (("t\\.libs << 'test'" line)
1788 (string-append line "; t.libs << \""
3cb3fa67 1789 test-unit "/lib/ruby/vendor_ruby"
761e7042
BW
1790 "/gems/test-unit-"
1791 ,(package-version ruby-test-unit)
1792 "/lib\""))))
4f2a52ae
RW
1793 #t))
1794 (add-before 'check 'use-latest-redcarpet
1795 (lambda _
1796 (substitute* "mocha.gemspec"
71596c3c
BW
1797 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1798 "<redcarpet>.freeze, [\">= 3\"]"))
4f2a52ae
RW
1799 #t))
1800 (add-before 'check 'hardcode-version
1801 (lambda _
1802 ;; Mocha is undefined at build time
1803 (substitute* "Rakefile"
1804 (("#\\{Mocha::VERSION\\}") ,version))
1805 #t))
1806 (add-before 'check 'remove-failing-test
1807 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1808 (lambda _
1809 (delete-file "test/acceptance/stubbing_nil_test.rb")
1810 #t)))))
1811 (propagated-inputs
1812 `(("ruby-metaclass" ,ruby-metaclass)))
1813 (native-inputs
1814 `(("bundler" ,bundler)
1815 ("ruby-yard" ,ruby-yard)
1816 ("ruby-introspection" ,ruby-introspection)
1817 ("ruby-test-unit" ,ruby-test-unit)
1818 ("ruby-redcarpet" ,ruby-redcarpet)))
1819 (synopsis "Mocking and stubbing library for Ruby")
1820 (description
1821 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1822allows mocking and stubbing of methods on real (non-mock) classes.")
1823 (home-page "http://gofreerange.com/mocha/docs")
1824 (license license:expat)))
1825
cf646acf
CB
1826(define-public ruby-mocha-on-bacon
1827 (package
1828 (name "ruby-mocha-on-bacon")
1829 (version "0.2.3")
1830 (source
1831 (origin
1832 (method url-fetch)
1833 (uri (rubygems-uri "mocha-on-bacon" version))
1834 (sha256
1835 (base32
1836 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
1837 (build-system ruby-build-system)
1838 (arguments
1839 ;; rubygems.org release missing tests
1840 '(#:tests? #f))
1841 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
1842 (synopsis "Mocha adapter for Bacon")
1843 (description
1844 "This package provides a Mocha adapter for Bacon, allowing you to use the
1845Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
1846 (home-page
1847 "https://github.com/alloy/mocha-on-bacon")
1848 (license license:expat)))
1849
2c84ba7e
RW
1850(define-public ruby-net-ssh
1851 (package
1852 (name "ruby-net-ssh")
5803f872 1853 (version "4.2.0")
2c84ba7e
RW
1854 (source (origin
1855 (method url-fetch)
1856 (uri (rubygems-uri "net-ssh" version))
1857 (sha256
1858 (base32
5803f872 1859 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2c84ba7e
RW
1860 (build-system ruby-build-system)
1861 (native-inputs
a7938625
MB
1862 `(("bundler" ,bundler)
1863 ("ruby-mocha" ,ruby-mocha)
2c84ba7e
RW
1864 ("ruby-test-unit" ,ruby-test-unit)))
1865 (synopsis "Ruby implementation of the SSH2 client protocol")
1866 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1867client protocol. It allows you to write programs that invoke and interact
1868with processes on remote servers, via SSH2.")
1869 (home-page "https://github.com/net-ssh/net-ssh")
1870 (license license:expat)))
1871
d38755cb
DM
1872(define-public ruby-net-scp
1873 (package
1874 (name "ruby-net-scp")
1875 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
1876 (version "1.2.2.rc2")
1877 (source
1878 (origin
1879 (method url-fetch)
1880 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
1881 version ".tar.gz"))
1882 (sha256
1883 (base32
1884 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
1885 (build-system ruby-build-system)
1886 (native-inputs
1887 `(("bundler" ,bundler)
1888 ("ruby-test-unit" ,ruby-test-unit)
1889 ("ruby-mocha" ,ruby-mocha)))
1890 (propagated-inputs
1891 `(("ruby-net-ssh" ,ruby-net-ssh)))
1892 (synopsis "Pure-Ruby SCP client library")
1893 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
1894client protocol.")
1895 (home-page "https://github.com/net-ssh/net-scp")
1896 (license license:expat)))
1897
2206e948
DT
1898(define-public ruby-minitest
1899 (package
1900 (name "ruby-minitest")
483846ac 1901 (version "5.10.3")
2206e948 1902 (source (origin
e83c6d00
DT
1903 (method url-fetch)
1904 (uri (rubygems-uri "minitest" version))
2206e948
DT
1905 (sha256
1906 (base32
483846ac 1907 "05521clw19lrksqgvg2kmm025pvdhdaniix52vmbychrn2jm7kz2"))))
2206e948 1908 (build-system ruby-build-system)
2206e948
DT
1909 (native-inputs
1910 `(("ruby-hoe" ,ruby-hoe)))
1911 (synopsis "Small test suite library for Ruby")
1912 (description "Minitest provides a complete suite of Ruby testing
1913facilities supporting TDD, BDD, mocking, and benchmarking.")
1914 (home-page "https://github.com/seattlerb/minitest")
1915 (license license:expat)))
1916
1db6e09f
RW
1917;; This is the last release of Minitest 4, which is used by some packages.
1918(define-public ruby-minitest-4
1919 (package (inherit ruby-minitest)
1920 (version "4.7.5")
1921 (source (origin
1922 (method url-fetch)
1923 (uri (rubygems-uri "minitest" version))
1924 (sha256
1925 (base32
1926 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1927 (arguments
1928 `(#:phases
1929 (modify-phases %standard-phases
1930 (add-after 'unpack 'remove-unsupported-method
1931 (lambda _
1932 (substitute* "Rakefile"
1933 (("self\\.rubyforge_name = .*") ""))
9a7017eb
BW
1934 #t))
1935 (add-after 'build 'exclude-failing-tests
1936 (lambda _
1937 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
1938 ;; Fixnum.
1939 (delete-file "test/minitest/test_minitest_spec.rb")
1940 #t)))))))
1db6e09f 1941
35130835
DT
1942(define-public ruby-minitest-sprint
1943 (package
1944 (name "ruby-minitest-sprint")
1945 (version "1.1.0")
1946 (source (origin
e83c6d00
DT
1947 (method url-fetch)
1948 (uri (rubygems-uri "minitest-sprint" version))
35130835
DT
1949 (sha256
1950 (base32
e83c6d00 1951 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
35130835 1952 (build-system ruby-build-system)
35130835
DT
1953 (native-inputs
1954 `(("ruby-hoe" ,ruby-hoe)
1955 ("ruby-minitest" ,ruby-minitest)))
1956 (synopsis "Fast test suite runner for minitest")
1957 (description "Minitest-sprint is a test runner for minitest that makes it
1958easier to re-run individual failing tests.")
1959 (home-page "https://github.com/seattlerb/minitest-sprint")
1960 (license license:expat)))
1961
0808e361
DT
1962(define-public ruby-minitest-bacon
1963 (package
1964 (name "ruby-minitest-bacon")
6f9652b0 1965 (version "1.0.3")
0808e361 1966 (source (origin
e83c6d00
DT
1967 (method url-fetch)
1968 (uri (rubygems-uri "minitest-bacon" version))
0808e361
DT
1969 (sha256
1970 (base32
6f9652b0 1971 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
0808e361 1972 (build-system ruby-build-system)
0808e361
DT
1973 (native-inputs
1974 `(("ruby-hoe" ,ruby-hoe)))
1975 (inputs
1976 `(("ruby-minitest" ,ruby-minitest)))
1977 (synopsis "Bacon compatibility library for minitest")
1978 (description "Minitest-bacon extends minitest with bacon-like
1979functionality, making it easier to migrate test suites from bacon to minitest.")
1980 (home-page "https://github.com/seattlerb/minitest-bacon")
1981 (license license:expat)))
1982
39dc0eb5
BW
1983(define-public ruby-minitest-focus
1984 (package
1985 (name "ruby-minitest-focus")
1986 (version "1.1.2")
1987 (source
1988 (origin
1989 (method url-fetch)
1990 (uri (rubygems-uri "minitest-focus" version))
1991 (sha256
1992 (base32
1993 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1994 (build-system ruby-build-system)
1995 (propagated-inputs
1996 `(("ruby-minitest" ,ruby-minitest)))
1997 (native-inputs
1998 `(("ruby-hoe" ,ruby-hoe)))
1999 (synopsis "Allows a few specific tests to be focused on")
2000 (description
2001 "@code{minitest-focus} gives the ability focus on a few tests with ease
2002without having to use command-line arguments. It introduces a @code{focus}
2003class method for use in testing classes, specifying that the next defined test
2004is to be run.")
2005 (home-page "https://github.com/seattlerb/minitest-focus")
2006 (license license:expat)))
2007
99fc5cd5
BW
2008(define-public ruby-minitest-pretty-diff
2009 ;; Use git reference because gem is out of date and does not contain testing
2010 ;; script. There are no releases on GitHub.
2011 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
2012 (package
2013 (name "ruby-minitest-pretty-diff")
2014 (version (string-append "0.1-1." (string-take commit 8)))
2015 (source (origin
2016 (method git-fetch)
2017 (uri (git-reference
2018 (url "https://github.com/adammck/minitest-pretty_diff.git")
2019 (commit commit)))
2020 (file-name (string-append name "-" version "-checkout"))
2021 (sha256
2022 (base32
2023 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
2024 (build-system ruby-build-system)
2025 (arguments
2026 `(#:phases
2027 (modify-phases %standard-phases
2028 (replace 'check
2029 (lambda _
2030 (zero? (system* "script/test")))))))
2031 (native-inputs
2032 `(("bundler" ,bundler)
2033 ("ruby-turn" ,ruby-turn)))
2034 (synopsis "Pretty-print hashes and arrays in MiniTest")
2035 (description
2036 "@code{minitest-pretty_diff} monkey-patches
2037@code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
2038diffing them. This makes it easier to spot differences between nested
2039structures when tests fail.")
2040 (home-page "https://github.com/adammck/minitest-pretty_diff")
2041 (license license:expat))))
2042
685d0d2f
BW
2043(define-public ruby-minitest-moar
2044 (package
2045 (name "ruby-minitest-moar")
2046 (version "0.0.4")
2047 (source
2048 (origin
2049 (method url-fetch)
2050 (uri (rubygems-uri "minitest-moar" version))
2051 (sha256
2052 (base32
2053 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
2054 (build-system ruby-build-system)
2055 (arguments
2056 `(#:phases
2057 (modify-phases %standard-phases
2058 (add-before 'check 'clean-dependencies
2059 (lambda _
2060 ;; Remove all gems defined in the Gemfile because these are not
2061 ;; truly needed.
2062 (substitute* "Gemfile"
2063 (("gem .*") ""))
2064 ;; Remove byebug as not needed to run tests.
2065 (substitute* "test/test_helper.rb"
2066 (("require 'byebug'") ""))
2067 #t)))))
2068 (native-inputs
2069 `(("bundler" ,bundler)
2070 ("ruby-minitest" ,ruby-minitest)))
2071 (synopsis "Extra features and changes to MiniTest")
2072 (description "@code{MiniTest Moar} add some additional features and
2073changes some default behaviours in MiniTest. For instance, Moar replaces the
2074MiniTest @code{Object#stub} with a global @code{stub} method.")
2075 (home-page "https://github.com/dockyard/minitest-moar")
2076 (license license:expat)))
2077
e07ef1d6
BW
2078(define-public ruby-minitest-bonus-assertions
2079 (package
2080 (name "ruby-minitest-bonus-assertions")
c9e261b7 2081 (version "3.0")
e07ef1d6
BW
2082 (source
2083 (origin
2084 (method url-fetch)
2085 (uri (rubygems-uri "minitest-bonus-assertions" version))
2086 (sha256
2087 (base32
c9e261b7 2088 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
e07ef1d6
BW
2089 (build-system ruby-build-system)
2090 (arguments
2091 `(#:phases
2092 (modify-phases %standard-phases
2093 (add-before 'check 'clean-dependencies
2094 (lambda _
2095 ;; Remove unneeded require statement that would entail another
2096 ;; dependency.
2097 (substitute* "test/minitest_config.rb"
2098 (("require 'minitest/bisect'") ""))
2099 #t)))))
2100 (native-inputs
2101 `(("ruby-hoe" ,ruby-hoe)
2102 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
2103 ("ruby-minitest-focus" ,ruby-minitest-focus)
2104 ("ruby-minitest-moar" ,ruby-minitest-moar)))
2105 (synopsis "Bonus assertions for @code{Minitest}")
2106 (description
2107 "Minitest bonus assertions provides extra MiniTest assertions. For
2108instance, it provides @code{assert_true}, @code{assert_false} and
2109@code{assert_set_equal}.")
2110 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
2111 (license license:expat)))
2112
e582fa93
BW
2113(define-public ruby-minitest-rg
2114 (package
2115 (name "ruby-minitest-rg")
2116 (version "5.2.0")
2117 (source
2118 (origin
2119 (method url-fetch)
2120 (uri (rubygems-uri "minitest-rg" version))
2121 (sha256
2122 (base32
2123 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
2124 (build-system ruby-build-system)
2125 (arguments
2126 ;; Some tests fail even outside Guix, so disable tests.
2127 ;; https://github.com/blowmage/minitest-rg/issues/12
2128 ;; https://github.com/blowmage/minitest-rg/pull/13
2129 `(#:tests? #f))
2130 (propagated-inputs
2131 `(("ruby-minitest" ,ruby-minitest)))
2132 (synopsis "Coloured output for Minitest")
2133 (description
2134 "@code{minitest-rg} changes the colour of the output from Minitest.")
2135 (home-page "http://blowmage.com/minitest-rg")
2136 (license license:expat)))
2137
2a96dbe6
BW
2138(define-public ruby-minitest-hooks
2139 (package
2140 (name "ruby-minitest-hooks")
eaaf8b12 2141 (version "1.4.2")
2a96dbe6
BW
2142 (source
2143 (origin
2144 (method url-fetch)
2145 (uri (rubygems-uri "minitest-hooks" version))
2146 (sha256
2147 (base32
eaaf8b12 2148 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
2a96dbe6
BW
2149 (build-system ruby-build-system)
2150 (arguments
2151 '(#:test-target "spec"))
2152 (native-inputs
2153 `(("ruby-sequel" ,ruby-sequel)
2154 ("ruby-sqlite3" ,ruby-sqlite3)))
2155 (synopsis "Hooks for the minitest framework")
2156 (description
2157 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
2158@code{around_all} hooks for Minitest. This allows, for instance, running each
2159suite of specs inside a database transaction, running each spec inside its own
2160savepoint inside that transaction. This can significantly speed up testing
2161for specs that share expensive database setup code.")
7bf837fd 2162 (home-page "https://github.com/jeremyevans/minitest-hooks")
2a96dbe6
BW
2163 (license license:expat)))
2164
afbbdf77
DT
2165(define-public ruby-daemons
2166 (package
2167 (name "ruby-daemons")
f03153db 2168 (version "1.2.5")
afbbdf77
DT
2169 (source (origin
2170 (method url-fetch)
e83c6d00 2171 (uri (rubygems-uri "daemons" version))
afbbdf77
DT
2172 (sha256
2173 (base32
f03153db 2174 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
afbbdf77
DT
2175 (build-system ruby-build-system)
2176 (arguments
2177 `(#:tests? #f)) ; no test suite
2178 (synopsis "Daemonize Ruby programs")
2179 (description "Daemons provides a way to wrap existing Ruby scripts to be
2180run as a daemon and to be controlled by simple start/stop/restart commands.")
2181 (home-page "https://github.com/thuehlinger/daemons")
2182 (license license:expat)))
b03eb6ac
CB
2183
2184(define-public ruby-data_uri
2185 (package
2186 (name "ruby-data_uri")
2187 (version "0.1.0")
2188 (source
2189 (origin
2190 (method url-fetch)
2191 (uri (rubygems-uri "data_uri" version))
2192 (sha256
2193 (base32
2194 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
2195 (build-system ruby-build-system)
2196 (synopsis "URI class for parsing data URIs")
2197 (description
2198 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
2199embedded inside a URI. The URI::Data class provides support for parsing these
2200URIs using the normal URI.parse method.")
2201 (home-page "https://github.com/dball/data_uri")
2202 (license license:expat)))
66e20863
DT
2203
2204(define-public ruby-git
2205 (package
2206 (name "ruby-git")
ceaff59e 2207 (version "1.3.0")
66e20863
DT
2208 (source (origin
2209 (method url-fetch)
e83c6d00 2210 (uri (rubygems-uri "git" version))
66e20863
DT
2211 (sha256
2212 (base32
ceaff59e 2213 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
66e20863
DT
2214 (build-system ruby-build-system)
2215 (arguments
e83c6d00
DT
2216 `(#:tests? #f ; no tests
2217 #:phases (modify-phases %standard-phases
2218 (add-after 'install 'patch-git-binary
2219 (lambda* (#:key inputs outputs #:allow-other-keys)
66e20863
DT
2220 ;; Make the default git binary an absolute path to the
2221 ;; store.
e83c6d00
DT
2222 (let ((git (string-append (assoc-ref inputs "git")
2223 "/bin/git"))
3cb3fa67
CB
2224 (config (string-append
2225 (assoc-ref outputs "out")
2226 "/lib/ruby/vendor_ruby/gems/git-"
2227 ,version "/lib/git/config.rb")))
e83c6d00 2228 (substitute* (list config)
66e20863
DT
2229 (("'git'")
2230 (string-append "'" git "'")))
e83c6d00 2231 #t))))))
66e20863
DT
2232 (inputs
2233 `(("git" ,git)))
2234 (synopsis "Ruby wrappers for Git")
2235 (description "Ruby/Git is a Ruby library that can be used to create, read
2236and manipulate Git repositories by wrapping system calls to the git binary.")
2237 (home-page "https://github.com/schacon/ruby-git")
2238 (license license:expat)))
71d3e2c2
DT
2239
2240(define-public ruby-slop
2241 (package
2242 (name "ruby-slop")
d14e5eaa 2243 (version "4.5.0")
71d3e2c2
DT
2244 (source (origin
2245 (method url-fetch)
e83c6d00 2246 (uri (rubygems-uri "slop" version))
71d3e2c2
DT
2247 (sha256
2248 (base32
d14e5eaa 2249 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
71d3e2c2
DT
2250 (build-system ruby-build-system)
2251 (native-inputs
2252 `(("ruby-minitest" ,ruby-minitest)))
2253 (synopsis "Ruby command line option parser")
2254 (description "Slop provides a Ruby domain specific language for gathering
2255options and parsing command line flags.")
2256 (home-page "https://github.com/leejarvis/slop")
2257 (license license:expat)))
e778a549 2258
5337f8b9
DT
2259(define-public ruby-slop-3
2260 (package (inherit ruby-slop)
2261 (version "3.6.0")
2262 (source (origin
2263 (method url-fetch)
2264 (uri (rubygems-uri "slop" version))
2265 (sha256
2266 (base32
2267 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
2268
e778a549
DT
2269(define-public ruby-multipart-post
2270 (package
2271 (name "ruby-multipart-post")
2272 (version "2.0.0")
2273 (source (origin
2274 (method url-fetch)
e83c6d00 2275 (uri (rubygems-uri "multipart-post" version))
e778a549
DT
2276 (sha256
2277 (base32
e83c6d00 2278 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
e778a549
DT
2279 (build-system ruby-build-system)
2280 (native-inputs
2281 `(("bundler" ,bundler)))
2282 (synopsis "Multipart POST library for Ruby")
2283 (description "Multipart-Post Adds multipart POST capability to Ruby's
2284net/http library.")
2285 (home-page "https://github.com/nicksieger/multipart-post")
2286 (license license:expat)))
f8da3af0 2287
9a97e7ce
CB
2288(define-public ruby-multi-json
2289 (package
2290 (name "ruby-multi-json")
2291 (version "1.12.2")
2292 (source
2293 (origin
2294 (method url-fetch)
2295 (uri (rubygems-uri "multi_json" version))
2296 (sha256
2297 (base32
2298 "1raim9ddjh672m32psaa9niw67ywzjbxbdb8iijx3wv9k5b0pk2x"))))
2299 (build-system ruby-build-system)
2300 (arguments
2301 '(#:tests? #f)) ;; No testsuite included in the gem.
2302 (synopsis "Common interface to multiple JSON libraries for Ruby")
2303 (description
2304 "This package provides a common interface to multiple JSON libraries,
2305including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
2306NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
2307 (home-page "http://github.com/intridea/multi_json")
2308 (license license:expat)))
2309
f8da3af0
DT
2310(define-public ruby-arel
2311 (package
2312 (name "ruby-arel")
8e5ff250 2313 (version "8.0.0")
f8da3af0
DT
2314 (source (origin
2315 (method url-fetch)
2316 (uri (rubygems-uri "arel" version))
2317 (sha256
2318 (base32
8e5ff250 2319 "0nw0qbc6ph625p6n3maqq9f527vz3nbl0hk72fbyka8jzsmplxzl"))))
f8da3af0
DT
2320 (build-system ruby-build-system)
2321 (arguments '(#:tests? #f)) ; no tests
2322 (home-page "https://github.com/rails/arel")
2323 (synopsis "SQL AST manager for Ruby")
6f23e2fb
TGR
2324 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
2325Ruby. It simplifies the generation of complex SQL queries and adapts to
2326various relational database implementations.")
f8da3af0 2327 (license license:expat)))
616eaead
DT
2328
2329(define-public ruby-minitar
bfaf8efd
BW
2330 ;; We package from the GitHub source to fix the security issue reported at
2331 ;; https://github.com/halostatue/minitar/issues/16.
2332 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
2333 (package
2334 (name "ruby-minitar")
2335 (version (string-append "0.5.4-1." (string-take commit 8)))
2336 (source
2337 (origin
2338 (method git-fetch)
2339 (uri (git-reference
2340 (url "https://github.com/halostatue/minitar.git")
2341 (commit commit)))
2342 (file-name (string-append name "-" version "-checkout"))
2343 (sha256
2344 (base32
2345 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
2346 (build-system ruby-build-system)
2347 (arguments
2348 '(#:tests? #f)) ; missing a gemspec
2349 (synopsis "Ruby library and utility for handling tar archives")
2350 (description
2351 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
616eaead 2352that provides the ability to deal with POSIX tar archive files.")
bfaf8efd
BW
2353 (home-page "http://www.github.com/atoulme/minitar")
2354 (license (list license:gpl2+ license:ruby)))))
bea1c0e2
DT
2355
2356(define-public ruby-mini-portile
2357 (package
2358 (name "ruby-mini-portile")
2359 (version "0.6.2")
2360 (source
2361 (origin
2362 (method url-fetch)
2363 (uri (rubygems-uri "mini_portile" version))
2364 (sha256
2365 (base32
2366 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
2367 (build-system ruby-build-system)
2368 (arguments
2369 '(#:tests? #f)) ; tests require network access
2370 (synopsis "Ports system for Ruby developers")
2371 (description "Mini-portile is a port/recipe system for Ruby developers.
2372It provides a standard way to compile against specific versions of libraries
2373to reproduce user environments.")
7bf837fd 2374 (home-page "https://github.com/flavorjones/mini_portile")
bea1c0e2 2375 (license license:expat)))
e920bfca 2376
d000fc92
BW
2377(define-public ruby-mini-portile-2
2378 (package (inherit ruby-mini-portile)
26f4a377 2379 (version "2.2.0")
d000fc92
BW
2380 (source (origin
2381 (method url-fetch)
2382 (uri (rubygems-uri "mini_portile2" version))
2383 (sha256
2384 (base32
26f4a377 2385 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
d000fc92 2386
e920bfca
DT
2387(define-public ruby-nokogiri
2388 (package
2389 (name "ruby-nokogiri")
efb94fda 2390 (version "1.8.0")
e920bfca
DT
2391 (source (origin
2392 (method url-fetch)
2393 (uri (rubygems-uri "nokogiri" version))
2394 (sha256
2395 (base32
efb94fda 2396 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
e920bfca
DT
2397 (build-system ruby-build-system)
2398 (arguments
2399 ;; Tests fail because Nokogiri can only test with an installed extension,
2400 ;; and also because many test framework dependencies are missing.
7b01f250 2401 `(#:tests? #f
e920bfca
DT
2402 #:gem-flags (list "--" "--use-system-libraries"
2403 (string-append "--with-xml2-include="
2404 (assoc-ref %build-inputs "libxml2")
5e7f1b0b
BW
2405 "/include/libxml2" ))
2406 #:phases
2407 (modify-phases %standard-phases
7b01f250
BW
2408 (add-before 'build 'patch-extconf
2409 ;; 'pkg-config' is not included in the GEM_PATH during
2410 ;; installation, so we add it directly to the load path.
2411 (lambda* (#:key inputs #:allow-other-keys)
3cb3fa67 2412 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
7b01f250
BW
2413 (substitute* "ext/nokogiri/extconf.rb"
2414 (("gem 'pkg-config'.*")
2415 (string-append "$:.unshift '"
3cb3fa67 2416 pkg-config "/lib/ruby/vendor_ruby"
7b01f250
BW
2417 "/gems/pkg-config-"
2418 ,(package-version ruby-pkg-config)
2419 "/lib'\n"))))
5e7f1b0b 2420 #t)))))
e920bfca 2421 (native-inputs
7b01f250 2422 `(("ruby-hoe" ,ruby-hoe)))
e920bfca
DT
2423 (inputs
2424 `(("zlib" ,zlib)
2425 ("libxml2" ,libxml2)
2426 ("libxslt" ,libxslt)))
2427 (propagated-inputs
7b01f250
BW
2428 `(("ruby-mini-portile" ,ruby-mini-portile-2)
2429 ("ruby-pkg-config" ,ruby-pkg-config)))
e920bfca
DT
2430 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
2431 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
2432both CSS3 selector and XPath 1.0 support.")
2433 (home-page "http://www.nokogiri.org/")
2434 (license license:expat)))
30b0b725
DT
2435
2436(define-public ruby-method-source
2437 (package
2438 (name "ruby-method-source")
c8355037 2439 (version "0.9.0")
30b0b725
DT
2440 (source
2441 (origin
2442 (method url-fetch)
2443 (uri (rubygems-uri "method_source" version))
2444 (sha256
2445 (base32
c8355037 2446 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
30b0b725 2447 (build-system ruby-build-system)
c8355037
BW
2448 (arguments
2449 `(#:test-target "spec"))
30b0b725 2450 (native-inputs
c8355037 2451 `(("ruby-rspec" ,ruby-rspec)
30b0b725
DT
2452 ("git" ,git)))
2453 (synopsis "Retrieve the source code for Ruby methods")
2454 (description "Method_source retrieves the source code for Ruby methods.
2455Additionally, it can extract source code from Proc and Lambda objects or just
2456extract comments.")
2457 (home-page "https://github.com/banister/method_source")
2458 (license license:expat)))
2e3fdea4
DT
2459
2460(define-public ruby-coderay
2461 (package
2462 (name "ruby-coderay")
5cf0997a 2463 (version "1.1.2")
2e3fdea4
DT
2464 (source
2465 (origin
2466 (method url-fetch)
2467 (uri (rubygems-uri "coderay" version))
2468 (sha256
2469 (base32
5cf0997a 2470 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
2e3fdea4
DT
2471 (build-system ruby-build-system)
2472 (arguments
2473 '(#:tests? #f)) ; missing test files
2474 (synopsis "Ruby syntax highlighting library")
2475 (description "Coderay is a Ruby library that provides syntax highlighting
2476for select languages.")
2477 (home-page "http://coderay.rubychan.de")
2478 (license license:expat)))
96e76083 2479
268643b9
CB
2480(define-public ruby-progress_bar
2481 (package
2482 (name "ruby-progress_bar")
2483 (version "1.1.0")
2484 (source
2485 (origin
2486 (method url-fetch)
2487 (uri (rubygems-uri "progress_bar" version))
2488 (sha256
2489 (base32
2490 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
2491 (build-system ruby-build-system)
2492 (arguments
2493 '(#:test-target "spec"))
2494 (propagated-inputs
2495 `(("ruby-highline" ,ruby-highline)
2496 ("ruby-options" ,ruby-options)))
2497 (native-inputs
2498 `(("bundler" ,bundler)
2499 ("ruby-rspec" ,ruby-rspec)
2500 ("ruby-timecop" ,ruby-timecop)))
2501 (synopsis
2502 "Ruby library for displaying progress bars")
2503 (description
2504 "ProgressBar is a simple library for displaying progress bars. The
2505maximum value is configurable, and additional information can be displayed
2506like the percentage completion, estimated time remaining, elapsed time and
2507rate.")
2508 (home-page "https://github.com/paul/progress_bar")
2509 (license license:wtfpl2)))
2510
96e76083
DT
2511(define-public ruby-pry
2512 (package
2513 (name "ruby-pry")
1bf02b20 2514 (version "0.11.3")
96e76083
DT
2515 (source
2516 (origin
2517 (method url-fetch)
2518 (uri (rubygems-uri "pry" version))
2519 (sha256
2520 (base32
1bf02b20 2521 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
96e76083
DT
2522 (build-system ruby-build-system)
2523 (arguments
2524 '(#:tests? #f)) ; no tests
2525 (propagated-inputs
2526 `(("ruby-coderay" ,ruby-coderay)
1960d4fd 2527 ("ruby-method-source" ,ruby-method-source)))
96e76083
DT
2528 (synopsis "Ruby REPL")
2529 (description "Pry is an IRB alternative and runtime developer console for
2530Ruby. It features syntax highlighting, a plugin architecture, runtime
2531invocation, and source and documentation browsing.")
2f3800e5 2532 (home-page "https://pryrepl.org")
96e76083 2533 (license license:expat)))
1415792a 2534
051deeb7
RW
2535(define-public ruby-guard
2536 (package
2537 (name "ruby-guard")
2538 (version "2.13.0")
2539 (source (origin
2540 (method url-fetch)
2541 ;; The gem does not include a Rakefile, nor does it contain a
2542 ;; gemspec file, nor does it come with the tests. This is why
2543 ;; we fetch the tarball from Github.
2544 (uri (string-append "https://github.com/guard/guard/archive/v"
2545 version ".tar.gz"))
2546 (file-name (string-append name "-" version ".tar.gz"))
2547 (sha256
2548 (base32
2549 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2550 (build-system ruby-build-system)
2551 (arguments
2552 `(#:tests? #f ; tests require cucumber
2553 #:phases
2554 (modify-phases %standard-phases
2555 (add-after 'unpack 'remove-git-ls-files
2556 (lambda* (#:key outputs #:allow-other-keys)
2557 (substitute* "guard.gemspec"
2558 (("git ls-files -z") "find . -type f -print0"))
2559 #t))
2560 (replace 'build
2561 (lambda _
2562 (zero? (system* "gem" "build" "guard.gemspec")))))))
2563 (propagated-inputs
2564 `(("ruby-formatador" ,ruby-formatador)
2565 ("ruby-listen" ,ruby-listen)
2566 ("ruby-lumberjack" ,ruby-lumberjack)
2567 ("ruby-nenv" ,ruby-nenv)
2568 ("ruby-notiffany" ,ruby-notiffany)
2569 ("ruby-pry" ,ruby-pry)
2570 ("ruby-shellany" ,ruby-shellany)
2571 ("ruby-thor" ,ruby-thor)))
2572 (native-inputs
2573 `(("bundler" ,bundler)
2574 ("ruby-rspec" ,ruby-rspec)))
2575 (synopsis "Tool to handle events on file system modifications")
2576 (description
2577 "Guard is a command line tool to easily handle events on file system
2578modifications. Guard automates various tasks by running custom rules whenever
2579file or directories are modified.")
2580 (home-page "http://guardgem.org/")
2581 (license license:expat)))
2582
1415792a
DT
2583(define-public ruby-thread-safe
2584 (package
2585 (name "ruby-thread-safe")
313dd5dd 2586 (version "0.3.6")
1415792a
DT
2587 (source
2588 (origin
2589 (method url-fetch)
2590 (uri (rubygems-uri "thread_safe" version))
2591 (sha256
2592 (base32
313dd5dd 2593 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
1415792a
DT
2594 (build-system ruby-build-system)
2595 (arguments
2596 '(#:tests? #f)) ; needs simplecov, among others
2597 (synopsis "Thread-safe utilities for Ruby")
2598 (description "The thread_safe library provides thread-safe collections and
2599utilities for Ruby.")
2600 (home-page "https://github.com/ruby-concurrency/thread_safe")
2601 (license license:asl2.0)))
08a1b701
DT
2602
2603(define-public ruby-tzinfo
2604 (package
2605 (name "ruby-tzinfo")
4237af85 2606 (version "1.2.4")
08a1b701
DT
2607 (source
2608 (origin
2609 (method url-fetch)
2610 (uri (rubygems-uri "tzinfo" version))
2611 (sha256
2612 (base32
4237af85 2613 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
08a1b701
DT
2614 (build-system ruby-build-system)
2615 (propagated-inputs
2616 `(("ruby-thread-safe" ,ruby-thread-safe)))
2617 (synopsis "Time zone library for Ruby")
2618 (description "TZInfo is a Ruby library that provides daylight savings
2619aware transformations between times in different time zones.")
2f3800e5 2620 (home-page "https://tzinfo.github.io")
1e12924a
BW
2621 (license license:expat)))
2622
2623(define-public ruby-tzinfo-data
2624 (package
2625 (name "ruby-tzinfo-data")
92513191 2626 (version "1.2017.3")
1e12924a
BW
2627 (source
2628 (origin
2629 (method url-fetch)
2630 ;; Download from GitHub because the rubygems version does not contain
2631 ;; Rakefile or tests.
2632 (uri (string-append
2633 "https://github.com/tzinfo/tzinfo-data/archive/v"
2634 version
2635 ".tar.gz"))
2636 (file-name (string-append name "-" version ".tar.gz"))
2637 (sha256
2638 (base32
92513191 2639 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
1e12924a
BW
2640 ;; Remove the known test failure.
2641 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2642 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2643 (patches (search-patches
2644 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2645 (build-system ruby-build-system)
2646 (propagated-inputs
2647 `(("ruby-tzinfo" ,ruby-tzinfo)))
2648 (synopsis "Data from the IANA Time Zone database")
2649 (description
2650 "This library provides @code{TZInfo::Data}, which contains data from the
2651IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2f3800e5 2652 (home-page "https://tzinfo.github.io")
08a1b701 2653 (license license:expat)))
c99e2247 2654
48e6851f
RW
2655(define-public ruby-rb-inotify
2656 (package
2657 (name "ruby-rb-inotify")
32bbfea8 2658 (version "0.9.10")
48e6851f
RW
2659 (source
2660 (origin
2661 (method url-fetch)
2662 (uri (rubygems-uri "rb-inotify" version))
2663 (sha256
2664 (base32
32bbfea8 2665 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
48e6851f
RW
2666 (build-system ruby-build-system)
2667 (arguments
2668 '(#:tests? #f ; there are no tests
2669 #:phases
2670 (modify-phases %standard-phases
2671 ;; Building the gemspec with rake is not working here since it is
2672 ;; generated with Jeweler. It is also unnecessary because the
2673 ;; existing gemspec does not use any development tools to generate a
2674 ;; list of files.
2675 (replace 'build
2676 (lambda _
2677 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2678 (propagated-inputs
2679 `(("ruby-ffi" ,ruby-ffi)))
2680 (native-inputs
2681 `(("ruby-yard" ,ruby-yard)))
2682 (synopsis "Ruby wrapper for Linux's inotify")
2683 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2684kernel subsystem for monitoring changes to files and directories.")
2685 (home-page "https://github.com/nex3/rb-inotify")
2686 (license license:expat)))
2687
a75bdfce
RW
2688(define-public ruby-pry-editline
2689 (package
2690 (name "ruby-pry-editline")
2691 (version "1.1.2")
2692 (source (origin
2693 (method url-fetch)
2694 (uri (rubygems-uri "pry-editline" version))
2695 (sha256
2696 (base32
2697 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2698 (build-system ruby-build-system)
2699 (arguments `(#:tests? #f)) ; no tests included
2700 (native-inputs
2701 `(("bundler" ,bundler)))
2702 (synopsis "Open the current REPL line in an editor")
2703 (description
2704 "This gem provides a plugin for the Ruby REPL to enable opening the
2705current line in an external editor.")
2706 (home-page "https://github.com/tpope/pry-editline")
2707 (license license:expat)))
2708
d3b20a02
RW
2709(define-public ruby-sdoc
2710 (package
2711 (name "ruby-sdoc")
fdf3a68d 2712 (version "0.4.2")
d3b20a02
RW
2713 (source (origin
2714 (method url-fetch)
2715 (uri (rubygems-uri "sdoc" version))
2716 (sha256
2717 (base32
fdf3a68d 2718 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
d3b20a02
RW
2719 (build-system ruby-build-system)
2720 (arguments
2721 `(#:phases
2722 (modify-phases %standard-phases
fc29d5e6 2723 (add-before 'check 'set-rubylib-and-patch-gemfile
d3b20a02 2724 (lambda _
fdf3a68d 2725 (setenv "RUBYLIB" "lib")
fc29d5e6
BW
2726 (substitute* "sdoc.gemspec"
2727 (("s.add_runtime_dependency.*") "\n")
2728 (("s.add_dependency.*") "\n"))
2729 (substitute* "Gemfile"
2730 (("gem \"rake\".*")
2731 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
d3b20a02
RW
2732 #t)))))
2733 (propagated-inputs
2734 `(("ruby-json" ,ruby-json)))
2735 (native-inputs
2736 `(("bundler" ,bundler)
fdf3a68d
BW
2737 ("ruby-minitest" ,ruby-minitest)
2738 ("ruby-hoe" ,ruby-hoe)))
d3b20a02
RW
2739 (synopsis "Generate searchable RDoc documentation")
2740 (description
2741 "SDoc is an RDoc documentation generator to build searchable HTML
2742documentation for Ruby code.")
7bf837fd 2743 (home-page "https://github.com/voloko/sdoc")
d3b20a02
RW
2744 (license license:expat)))
2745
70b002aa
RW
2746(define-public ruby-tins
2747 (package
2748 (name "ruby-tins")
fbefd6ff 2749 (version "1.15.0")
70b002aa
RW
2750 (source (origin
2751 (method url-fetch)
2752 (uri (rubygems-uri "tins" version))
2753 (sha256
2754 (base32
fbefd6ff 2755 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
70b002aa
RW
2756 (build-system ruby-build-system)
2757 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2758 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2759 ;; the gemspec.
2760 (arguments
2761 `(#:tests? #f ; there are no tests
2762 #:phases
2763 (modify-phases %standard-phases
2764 (replace 'build
2765 (lambda _
2766 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2767 ;; causes an error.
2768 (substitute* "tins.gemspec"
2769 (("\"lib/spruz\", ") ""))
2770 (zero? (system* "gem" "build" "tins.gemspec")))))))
2771 (synopsis "Assorted tools for Ruby")
2772 (description "Tins is a Ruby library providing assorted tools.")
2773 (home-page "https://github.com/flori/tins")
2774 (license license:expat)))
2775
bc8277e4
RW
2776(define-public ruby-gem-hadar
2777 (package
2778 (name "ruby-gem-hadar")
3fd577e3 2779 (version "1.9.1")
bc8277e4
RW
2780 (source (origin
2781 (method url-fetch)
2782 (uri (rubygems-uri "gem_hadar" version))
2783 (sha256
2784 (base32
3fd577e3 2785 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
bc8277e4
RW
2786 (build-system ruby-build-system)
2787 ;; This gem needs itself at development time. We disable rebuilding of the
2788 ;; gemspec to avoid this loop.
2789 (arguments
2790 `(#:tests? #f ; there are no tests
2791 #:phases
2792 (modify-phases %standard-phases
2793 (replace 'build
2794 (lambda _
2795 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2796 (propagated-inputs
2797 `(("git" ,git)
2798 ("ruby-tins" ,ruby-tins)
3fd577e3 2799 ("ruby-yard" ,ruby-yard)))
bc8277e4
RW
2800 (synopsis "Library for the development of Ruby gems")
2801 (description
2802 "This library contains some useful functionality to support the
2803development of Ruby gems.")
2804 (home-page "https://github.com/flori/gem_hadar")
2805 (license license:expat)))
2806
d8cafe29
RW
2807(define-public ruby-minitest-tu-shim
2808 (package
2809 (name "ruby-minitest-tu-shim")
2810 (version "1.3.3")
2811 (source (origin
2812 (method url-fetch)
2813 (uri (rubygems-uri "minitest_tu_shim" version))
2814 (sha256
2815 (base32
2816 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2817 (build-system ruby-build-system)
2818 (arguments
2819 `(#:phases
2820 (modify-phases %standard-phases
2821 (add-after 'unpack 'fix-test-include-path
2822 (lambda* (#:key inputs #:allow-other-keys)
3cb3fa67 2823 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
761e7042
BW
2824 (substitute* "Rakefile"
2825 (("Hoe\\.add_include_dirs .*")
2826 (string-append "Hoe.add_include_dirs \""
3cb3fa67 2827 minitest "/lib/ruby/vendor_ruby"
761e7042
BW
2828 "/gems/minitest-"
2829 ,(package-version ruby-minitest-4)
2830 "/lib" "\""))))
2831 #t))
d8cafe29
RW
2832 (add-before 'check 'fix-test-assumptions
2833 (lambda _
2834 ;; The test output includes the file name, so a couple of tests
2835 ;; fail. Changing the regular expressions slightly fixes this
2836 ;; problem.
2837 (substitute* "test/test_mini_test.rb"
2838 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2839 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2840 (("gsub\\(/.*, 'FILE:LINE'\\)")
2841 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2842 #t)))))
2843 (propagated-inputs
2844 `(("ruby-minitest-4" ,ruby-minitest-4)))
2845 (native-inputs
2846 `(("ruby-hoe" ,ruby-hoe)))
2847 (synopsis "Adapter library between minitest and test/unit")
2848 (description
2849 "This library bridges the gap between the small and fast minitest and
2850Ruby's large and slower test/unit.")
2851 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2852 (license license:expat)))
2853
fd83a212
RW
2854(define-public ruby-term-ansicolor
2855 (package
2856 (name "ruby-term-ansicolor")
f3a6311a 2857 (version "1.6.0")
fd83a212
RW
2858 (source (origin
2859 (method url-fetch)
2860 (uri (rubygems-uri "term-ansicolor" version))
2861 (sha256
2862 (base32
f3a6311a 2863 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
fd83a212
RW
2864 (build-system ruby-build-system)
2865 ;; Rebuilding the gemspec seems to require git, even though this is not a
2866 ;; git repository, so we just build the gem from the existing gemspec.
2867 (arguments
2868 `(#:phases
2869 (modify-phases %standard-phases
2870 (replace 'build
2871 (lambda _
2872 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2873 (propagated-inputs
2874 `(("ruby-tins" ,ruby-tins)))
2875 (native-inputs
2876 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2877 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2878 (synopsis "Ruby library to control the attributes of terminal output")
2879 (description
2880 "This Ruby library uses ANSI escape sequences to control the attributes
2881of terminal output.")
2f3800e5 2882 (home-page "https://flori.github.io/term-ansicolor/")
fd83a212
RW
2883 ;; There is no mention of the "or later" clause.
2884 (license license:gpl2)))
2885
6e376ca4
RW
2886(define-public ruby-pstree
2887 (package
2888 (name "ruby-pstree")
2889 (version "0.1.0")
2890 (source (origin
2891 (method url-fetch)
2892 (uri (rubygems-uri "pstree" version))
2893 (sha256
2894 (base32
2895 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2896 (build-system ruby-build-system)
2897 (native-inputs
2898 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2899 ("bundler" ,bundler)))
2900 (synopsis "Create a process tree data structure")
2901 (description
2902 "This library uses the output of the @code{ps} command to create a
2903process tree data structure for the current host.")
2f3800e5 2904 (home-page "https://github.com/flori/pstree")
6e376ca4
RW
2905 ;; There is no mention of the "or later" clause.
2906 (license license:gpl2)))
2907
53239b5f
RW
2908(define-public ruby-utils
2909 (package
2910 (name "ruby-utils")
cd698b6e 2911 (version "0.9.0")
53239b5f
RW
2912 (source (origin
2913 (method url-fetch)
2914 (uri (rubygems-uri "utils" version))
2915 (sha256
2916 (base32
cd698b6e 2917 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
53239b5f
RW
2918 (build-system ruby-build-system)
2919 (propagated-inputs
2920 `(("ruby-tins" ,ruby-tins)
2921 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2922 ("ruby-pstree" ,ruby-pstree)
2923 ("ruby-pry-editline" ,ruby-pry-editline)))
2924 (native-inputs
2925 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2926 ("bundler" ,bundler)))
2927 (synopsis "Command line tools for working with Ruby")
2928 (description
2929 "This package provides assorted command line tools that may be useful
2930when working with Ruby code.")
2931 (home-page "https://github.com/flori/utils")
2932 ;; There is no mention of the "or later" clause.
2933 (license license:gpl2)))
2934
c99e2247
DT
2935(define-public ruby-json
2936 (package
2937 (name "ruby-json")
a281acce 2938 (version "2.1.0")
c99e2247
DT
2939 (source
2940 (origin
2941 (method url-fetch)
2942 (uri (rubygems-uri "json" version))
2943 (sha256
2944 (base32
a281acce 2945 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
c99e2247
DT
2946 (build-system ruby-build-system)
2947 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2948 (synopsis "JSON library for Ruby")
2949 (description "This Ruby library provides a JSON implementation written as
2950a native C extension.")
2951 (home-page "http://json-jruby.rubyforge.org/")
2952 (license (list license:ruby license:gpl2)))) ; GPL2 only
5ff89a1b 2953
763624f5
RW
2954(define-public ruby-json-pure
2955 (package
2956 (name "ruby-json-pure")
ac01cb07 2957 (version "2.1.0")
763624f5
RW
2958 (source (origin
2959 (method url-fetch)
2960 (uri (rubygems-uri "json_pure" version))
2961 (sha256
2962 (base32
ac01cb07 2963 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
763624f5
RW
2964 (build-system ruby-build-system)
2965 (arguments
ac01cb07 2966 `(#:phases
763624f5 2967 (modify-phases %standard-phases
ac01cb07 2968 (add-after 'unpack 'fix-rakefile
763624f5 2969 (lambda _
ac01cb07
BW
2970 (substitute* "Rakefile"
2971 ;; Since this is not a git repository, do not call 'git'.
2972 (("`git ls-files`") "`find . -type f |sort`")
2973 ;; Loosen dependency constraint.
2974 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
2975 #t))
2976 (add-after 'replace-git-ls-files 'regenerate-gemspec
2977 (lambda _
2978 ;; Regenerate gemspec so loosened dependency constraints are
2979 ;; propagated.
2980 (zero? (system* "rake" "gemspec")))))))
763624f5 2981 (native-inputs
ac01cb07 2982 `(("bundler" ,bundler)
0c9f73cd
TGR
2983 ("ragel" ,ragel)
2984 ("ruby-simplecov" ,ruby-simplecov)
2985 ("ruby-test-unit" ,ruby-test-unit)))
763624f5
RW
2986 (synopsis "JSON implementation in pure Ruby")
2987 (description
2988 "This package provides a JSON implementation written in pure Ruby.")
2f3800e5 2989 (home-page "https://flori.github.com/json")
763624f5
RW
2990 (license license:ruby)))
2991
16b324cd
RW
2992;; Even though this package only provides bindings for a Mac OSX API it is
2993;; required by "ruby-listen" at runtime.
2994(define-public ruby-rb-fsevent
2995 (package
2996 (name "ruby-rb-fsevent")
b0ef15ed 2997 (version "0.10.3")
16b324cd
RW
2998 (source (origin
2999 (method url-fetch)
3000 (uri (rubygems-uri "rb-fsevent" version))
3001 (sha256
3002 (base32
b0ef15ed 3003 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
16b324cd
RW
3004 (build-system ruby-build-system)
3005 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
3006 ;; "listen", which needs "rb-fsevent" at runtime.
3007 (arguments `(#:tests? #f))
3008 (synopsis "FSEvents API with signals catching")
3009 (description
3010 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
3011 (home-page "https://rubygems.org/gems/rb-fsevent")
3012 (license license:expat)))
3013
b86be2ad
RW
3014(define-public ruby-listen
3015 (package
3016 (name "ruby-listen")
c3b36fa1 3017 (version "3.1.5")
b86be2ad
RW
3018 (source
3019 (origin
3020 (method url-fetch)
3021 (uri (rubygems-uri "listen" version))
3022 (sha256
3023 (base32
c3b36fa1 3024 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
b86be2ad
RW
3025 (build-system ruby-build-system)
3026 (arguments '(#:tests? #f)) ; no tests
3027 (propagated-inputs
cf1a01f4
RW
3028 `(("ruby-rb-inotify" ,ruby-rb-inotify)
3029 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
b86be2ad
RW
3030 (synopsis "Listen to file modifications")
3031 (description "The Listen gem listens to file modifications and notifies
3032you about the changes.")
3033 (home-page "https://github.com/guard/listen")
3034 (license license:expat)))
3035
5ff89a1b
DT
3036(define-public ruby-activesupport
3037 (package
3038 (name "ruby-activesupport")
ef381322 3039 (version "5.2.1")
5ff89a1b
DT
3040 (source
3041 (origin
3042 (method url-fetch)
3043 (uri (rubygems-uri "activesupport" version))
3044 (sha256
3045 (base32
ef381322 3046 "0ziy6xk31k4fs115cdkba1ys4i8nzcyri7a2jig7nx7k5h7li6l2"))))
5ff89a1b
DT
3047 (build-system ruby-build-system)
3048 (arguments
2af45e50
BW
3049 `(#:phases
3050 (modify-phases %standard-phases
3051 (replace 'check
3052 (lambda _
3053 ;; There is no tests, instead attempt to load the library.
3054 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
5ff89a1b 3055 (propagated-inputs
2af45e50
BW
3056 `(("ruby-concurrent" ,ruby-concurrent)
3057 ("ruby-i18n" ,ruby-i18n)
5ff89a1b 3058 ("ruby-minitest" ,ruby-minitest)
606ee9a1
BW
3059 ("ruby-tzinfo" ,ruby-tzinfo)
3060 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
5ff89a1b
DT
3061 (synopsis "Ruby on Rails utility library")
3062 (description "ActiveSupport is a toolkit of support libraries and Ruby
3063core extensions extracted from the Rails framework. It includes support for
3064multibyte strings, internationalization, time zones, and testing.")
3065 (home-page "http://www.rubyonrails.org")
3066 (license license:expat)))
f847ad7b 3067
3996f0aa
RW
3068(define-public ruby-crass
3069 (package
3070 (name "ruby-crass")
a0e0f9d7 3071 (version "1.0.4")
3996f0aa
RW
3072 (source (origin
3073 (method url-fetch)
3074 (uri (rubygems-uri "crass" version))
3075 (sha256
3076 (base32
a0e0f9d7 3077 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
3996f0aa
RW
3078 (build-system ruby-build-system)
3079 (native-inputs
3080 `(("bundler" ,bundler)
3081 ("ruby-minitest" ,ruby-minitest)))
3082 (synopsis "Pure Ruby CSS parser")
3083 (description
3084 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
3085 (home-page "https://github.com/rgrove/crass/")
3086 (license license:expat)))
3087
c2c4e5b2 3088(define-public ruby-nokogumbo
f1ae7c62
BW
3089 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
3090 (package
3091 (name "ruby-nokogumbo")
3092 (version (string-append "1.4.7-1." (string-take commit 8)))
3093 (source (origin
3094 ;; We use the git reference, because there's no Rakefile in the
3095 ;; published gem and the tarball on Github is outdated.
3096 (method git-fetch)
3097 (uri (git-reference
3098 (url "https://github.com/rubys/nokogumbo.git")
3099 (commit "d56f954d20a")))
3100 (file-name (string-append name "-" version "-checkout"))
3101 (sha256
3102 (base32
3103 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
3104 (build-system ruby-build-system)
3105 (arguments
3106 `(#:modules ((guix build ruby-build-system)
3107 (guix build utils)
3108 (ice-9 rdelim))
3109 #:phases
3110 (modify-phases %standard-phases
5c31e981 3111 (add-after 'unpack 'build-gemspec
f1ae7c62
BW
3112 (lambda _
3113 (substitute* "Rakefile"
3114 ;; Build Makefile even without a copy of gumbo-parser sources
3115 (("'gumbo-parser/src',") "")
3116 ;; We don't bundle gumbo-parser sources
3117 (("'gumbo-parser/src/\\*',") "")
3118 (("'gumbo-parser/visualc/include/\\*',") "")
3119 ;; The definition of SOURCES will be cut in gemspec, and
3120 ;; "FileList" will be undefined.
3121 (("SOURCES \\+ FileList\\[")
3122 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
3123
3124 ;; Copy the Rakefile and cut out the gemspec.
3125 (copy-file "Rakefile" ".gemspec")
3126 (with-atomic-file-replacement ".gemspec"
3127 (lambda (in out)
3128 (let loop ((line (read-line in 'concat))
3129 (skipping? #t))
3130 (if (eof-object? line)
3131 #t
3132 (let ((skip-next? (if skipping?
3133 (not (string-prefix? "SPEC =" line))
3134 (string-prefix? "end" line))))
3135 (when (or (not skipping?)
3136 (and skipping? (not skip-next?)))
3137 (format #t "~a" line)
3138 (display line out))
3139 (loop (read-line in 'concat) skip-next?))))))
3140 #t)))))
3141 (inputs
3142 `(("gumbo-parser" ,gumbo-parser)))
3143 (propagated-inputs
3144 `(("ruby-nokogiri" ,ruby-nokogiri)))
3145 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
3146 (description
3147 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
c2c4e5b2 3148access the result as a Nokogiri parsed document.")
f1ae7c62
BW
3149 (home-page "https://github.com/rubys/nokogumbo/")
3150 (license license:asl2.0))))
c2c4e5b2 3151
d56ff88b
RW
3152(define-public ruby-sanitize
3153 (package
3154 (name "ruby-sanitize")
f812145e 3155 (version "4.6.3")
d56ff88b
RW
3156 (source (origin
3157 (method url-fetch)
3158 ;; The gem does not include the Rakefile, so we download the
3159 ;; release tarball from Github.
3160 (uri (string-append "https://github.com/rgrove/"
3161 "sanitize/archive/v" version ".tar.gz"))
3162 (file-name (string-append name "-" version ".tar.gz"))
3163 (sha256
3164 (base32
f812145e 3165 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
d56ff88b
RW
3166 (build-system ruby-build-system)
3167 (propagated-inputs
3168 `(("ruby-crass" ,ruby-crass)
3169 ("ruby-nokogiri" ,ruby-nokogiri)
3170 ("ruby-nokogumbo" ,ruby-nokogumbo)))
3171 (native-inputs
3172 `(("bundler" ,bundler)
3173 ("ruby-minitest" ,ruby-minitest)
3174 ("ruby-redcarpet" ,ruby-redcarpet)
3175 ("ruby-yard" ,ruby-yard)))
3176 (synopsis "Whitelist-based HTML and CSS sanitizer")
3177 (description
3178 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
3179acceptable elements, attributes, and CSS properties, Sanitize will remove all
3180unacceptable HTML and/or CSS from a string.")
3181 (home-page "https://github.com/rgrove/sanitize/")
3182 (license license:expat)))
3183
f847ad7b
DT
3184(define-public ruby-ox
3185 (package
3186 (name "ruby-ox")
263c0dbf 3187 (version "2.6.0")
f847ad7b
DT
3188 (source
3189 (origin
3190 (method url-fetch)
3191 (uri (rubygems-uri "ox" version))
3192 (sha256
3193 (base32
263c0dbf 3194 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
f847ad7b
DT
3195 (build-system ruby-build-system)
3196 (arguments
3197 '(#:tests? #f)) ; no tests
3198 (synopsis "Optimized XML library for Ruby")
3199 (description
3200 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
3201written as a native C extension. It was designed to be an alternative to
3202Nokogiri and other Ruby XML parsers for generic XML parsing and as an
3203alternative to Marshal for Object serialization. ")
3204 (home-page "http://www.ohler.com/ox")
3205 (license license:expat)))
4a9e0585 3206
0c4e7625
RW
3207(define-public ruby-redcloth
3208 (package
3209 (name "ruby-redcloth")
2a91494e 3210 (version "4.3.2")
0c4e7625
RW
3211 (source (origin
3212 (method url-fetch)
3213 (uri (rubygems-uri "RedCloth" version))
3214 (sha256
3215 (base32
2a91494e 3216 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
0c4e7625
RW
3217 (build-system ruby-build-system)
3218 (arguments
3219 `(#:tests? #f ; no tests
3220 #:phases
3221 (modify-phases %standard-phases
3222 ;; Redcloth has complicated rake tasks to build various versions for
3223 ;; multiple targets using RVM. We don't want this so we just use the
3224 ;; existing gemspec.
3225 (replace 'build
3226 (lambda _
0076f5a9 3227 (zero? (system* "gem" "build" "redcloth.gemspec")))))))
0c4e7625
RW
3228 (native-inputs
3229 `(("bundler" ,bundler)
3230 ("ruby-diff-lcs" ,ruby-diff-lcs)
3231 ("ruby-rspec-2" ,ruby-rspec-2)))
3232 (synopsis "Textile markup language parser for Ruby")
3233 (description
3234 "RedCloth is a Ruby parser for the Textile markup language.")
3235 (home-page "http://redcloth.org")
3236 (license license:expat)))
3237
4a9e0585
DT
3238(define-public ruby-pg
3239 (package
3240 (name "ruby-pg")
ce5f5230 3241 (version "0.21.0")
4a9e0585
DT
3242 (source
3243 (origin
3244 (method url-fetch)
3245 (uri (rubygems-uri "pg" version))
3246 (sha256
3247 (base32
ce5f5230 3248 "00vhasqwc4f98qb4wxqn2h07fjwzhp5lwyi41j2gndi2g02wrdqh"))))
4a9e0585
DT
3249 (build-system ruby-build-system)
3250 (arguments
3251 '(#:test-target "spec"))
3252 (native-inputs
3253 `(("ruby-rake-compiler" ,ruby-rake-compiler)
3254 ("ruby-hoe" ,ruby-hoe)
3255 ("ruby-rspec" ,ruby-rspec)))
3256 (inputs
abd78128 3257 `(("postgresql" ,postgresql-9.6)))
4a9e0585
DT
3258 (synopsis "Ruby interface to PostgreSQL")
3259 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
3260with PostgreSQL 8.4 and later.")
3261 (home-page "https://bitbucket.org/ged/ruby-pg")
3262 (license license:ruby)))
468e5657
DT
3263
3264(define-public ruby-byebug
3265 (package
3266 (name "ruby-byebug")
d5489a61 3267 (version "9.0.6")
468e5657
DT
3268 (source
3269 (origin
3270 (method url-fetch)
3271 (uri (rubygems-uri "byebug" version))
3272 (sha256
3273 (base32
d5489a61 3274 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
468e5657
DT
3275 (build-system ruby-build-system)
3276 (arguments
3277 '(#:tests? #f)) ; no tests
3278 (synopsis "Debugger for Ruby 2")
3279 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
3280TracePoint C API for execution control and the Debug Inspector C API for call
3281stack navigation. The core component provides support that front-ends can
3282build on. It provides breakpoint handling and bindings for stack frames among
3283other things and it comes with a command line interface.")
7bf837fd 3284 (home-page "https://github.com/deivid-rodriguez/byebug")
468e5657 3285 (license license:bsd-2)))
64b6ccc3 3286
5799bc2b
RW
3287(define-public ruby-netrc
3288 (package
3289 (name "ruby-netrc")
3290 (version "0.11.0")
3291 (source (origin
3292 (method url-fetch)
3293 (uri (rubygems-uri "netrc" version))
3294 (sha256
3295 (base32
3296 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
3297 (build-system ruby-build-system)
3298 (arguments
3299 `(#:phases
3300 (modify-phases %standard-phases
3301 (replace 'check
3302 ;; There is no Rakefile and minitest can only run one file at once,
3303 ;; so we have to iterate over all test files.
3304 (lambda _
3305 (and (map (lambda (file)
3306 (zero? (system* "ruby" "-Itest" file)))
3307 (find-files "./test" "test_.*\\.rb"))))))))
3308 (native-inputs
3309 `(("ruby-minitest" ,ruby-minitest)))
3310 (synopsis "Library to read and update netrc files")
3311 (description
3312 "This library can read and update netrc files, preserving formatting
3313including comments and whitespace.")
3314 (home-page "https://github.com/geemus/netrc")
3315 (license license:expat)))
3316
3a6989ce
RW
3317(define-public ruby-unf-ext
3318 (package
3319 (name "ruby-unf-ext")
3320 (version "0.0.7.1")
3321 (source (origin
3322 (method url-fetch)
3323 (uri (rubygems-uri "unf_ext" version))
3324 (sha256
3325 (base32
3326 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
3327 (build-system ruby-build-system)
b809cc9a
RW
3328 (arguments
3329 `(#:phases
3330 (modify-phases %standard-phases
3331 (add-after 'build 'build-ext
3332 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
3a6989ce
RW
3333 (native-inputs
3334 `(("bundler" ,bundler)
3335 ("ruby-rake-compiler" ,ruby-rake-compiler)
3336 ("ruby-test-unit" ,ruby-test-unit)))
3337 (synopsis "Unicode normalization form support library")
3338 (description
3339 "This package provides unicode normalization form support for Ruby.")
3340 (home-page "https://github.com/knu/ruby-unf_ext")
3341 (license license:expat)))
3342
2632a067 3343(define-public ruby-tdiff
5071f17b
BW
3344 ;; Use a newer than released snapshot so that rspec-2 is not required.
3345 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
3346 (package
3347 (name "ruby-tdiff")
3348 (version (string-append "0.3.3-1." (string-take commit 8)))
3349 (source (origin
3350 (method git-fetch)
3351 (uri (git-reference
3352 (url "https://github.com/postmodern/tdiff.git")
3353 (commit commit)))
3354 (file-name (string-append name "-" version "-checkout"))
3355 (sha256
3356 (base32
3357 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
3358 (build-system ruby-build-system)
3359 (native-inputs
3360 `(("ruby-rspec" ,ruby-rspec)
3361 ("ruby-yard" ,ruby-yard)
3362 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3363 (synopsis "Calculate the differences between two tree-like structures")
3364 (description
3365 "This library provides functions to calculate the differences between two
2632a067 3366tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5071f17b
BW
3367 (home-page "https://github.com/postmodern/tdiff")
3368 (license license:expat))))
2632a067 3369
f60f5002 3370(define-public ruby-nokogiri-diff
5b0c223a
BW
3371 ;; Use a newer than released snapshot so that rspec-2 is not required.
3372 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
3373 (package
3374 (name "ruby-nokogiri-diff")
3375 (version (string-append "0.2.0-1." (string-take commit 8)))
3376 (source (origin
3377 (method git-fetch)
3378 (uri (git-reference
3379 (url "https://github.com/postmodern/nokogiri-diff.git")
3380 (commit commit)))
3381 (file-name (string-append name "-" version "-checkout"))
3382 (sha256
3383 (base32
3384 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
3385 (build-system ruby-build-system)
3386 (propagated-inputs
3387 `(("ruby-tdiff" ,ruby-tdiff)
3388 ("ruby-nokogiri" ,ruby-nokogiri)))
3389 (native-inputs
3390 `(("ruby-rspec" ,ruby-rspec)
3391 ("ruby-yard" ,ruby-yard)
3392 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3393 (synopsis "Calculate the differences between two XML/HTML documents")
3394 (description
3395 "@code{Nokogiri::Diff} adds the ability to calculate the
f60f5002 3396differences (added or removed nodes) between two XML/HTML documents.")
5b0c223a
BW
3397 (home-page "https://github.com/postmodern/nokogiri-diff")
3398 (license license:expat))))
f60f5002 3399
64b6ccc3
DT
3400(define-public ruby-rack
3401 (package
3402 (name "ruby-rack")
9347bbf4 3403 (version "2.0.5")
64b6ccc3
DT
3404 (source
3405 (origin
3406 (method url-fetch)
1db791d5
BW
3407 ;; Download from GitHub so that the patch can be applied.
3408 (uri (string-append
3409 "https://github.com/rack/rack/archive/"
3410 version
3411 ".tar.gz"))
3412 (file-name (string-append name "-" version ".tar.gz"))
64b6ccc3
DT
3413 (sha256
3414 (base32
9347bbf4 3415 "1k1k4wk10l6bxx46pw58j2p3nmyzjqnr65hbjjqydd6517fmxgib"))
1db791d5
BW
3416 ;; Ignore test which fails inside the build environment but works
3417 ;; outside.
3418 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
64b6ccc3
DT
3419 (build-system ruby-build-system)
3420 (arguments
3421 '(#:phases
3422 (modify-phases %standard-phases
3423 (add-before 'check 'fix-tests
3424 (lambda _
3425 ;; A few of the tests use the length of a file on disk for
3426 ;; Content-Length and Content-Range headers. However, this file
3427 ;; has a shebang in it which an earlier phase patches, growing
3428 ;; the file size from 193 to 239 bytes when the store prefix is
3429 ;; "/gnu/store".
3430 (let ((size-diff (- (string-length (which "ruby"))
3431 (string-length "/usr/bin/env ruby"))))
3432 (substitute* '("test/spec_file.rb")
3433 (("193")
3434 (number->string (+ 193 size-diff)))
3435 (("bytes(.)22-33" all delimiter)
3436 (string-append "bytes"
3437 delimiter
3438 (number->string (+ 22 size-diff))
3439 "-"
3440 (number->string (+ 33 size-diff))))))
3441 #t)))))
3442 (native-inputs
1db791d5
BW
3443 `(("ruby-minitest" ,ruby-minitest)
3444 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
3445 ("which" ,which)))
3446 (propagated-inputs
3447 `(("ruby-concurrent" ,ruby-concurrent)))
64b6ccc3
DT
3448 (synopsis "Unified web application interface for Ruby")
3449 (description "Rack provides a minimal, modular and adaptable interface for
3450developing web applications in Ruby. By wrapping HTTP requests and responses,
3451it unifies the API for web servers, web frameworks, and software in between
3452into a single method call.")
2f3800e5 3453 (home-page "https://rack.github.io/")
64b6ccc3 3454 (license license:expat)))
62e4cc5a 3455
20a0f804
BW
3456(define-public ruby-rack-test
3457 (package
3458 (name "ruby-rack-test")
3459 (version "0.8.3")
3460 (source
3461 (origin
3462 (method url-fetch)
3463 (uri (rubygems-uri "rack-test" version))
3464 (sha256
3465 (base32
3466 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
3467 (build-system ruby-build-system)
3468 (arguments
3469 ;; Disable tests because of circular dependencies: requires sinatra,
3470 ;; which requires rack-protection, which requires rack-test. Instead
3471 ;; simply require the library.
3472 `(#:phases
3473 (modify-phases %standard-phases
3474 (replace 'check
3475 (lambda _
3476 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
3477 (propagated-inputs
3478 `(("ruby-rack" ,ruby-rack)))
3479 (synopsis "Testing API for Rack applications")
3480 (description
3481 "Rack::Test is a small, simple testing API for Rack applications. It can
3482be used on its own or as a reusable starting point for Web frameworks and
3483testing libraries to build on.")
3484 (home-page "https://github.com/rack-test/rack-test")
3485 (license license:expat)))
3486
a0a7e690
BW
3487(define-public ruby-rack-protection
3488 (package
3489 (name "ruby-rack-protection")
603822b0 3490 (version "2.0.3")
a0a7e690
BW
3491 (source
3492 (origin
3493 (method url-fetch)
3494 (uri (rubygems-uri "rack-protection" version))
3495 (sha256
3496 (base32
603822b0 3497 "1z5598qipilmnf45428jnxi63ykrgvnyywa5ckpr52zv2vpd8jdp"))))
a0a7e690
BW
3498 (build-system ruby-build-system)
3499 (arguments
fafeeaa2 3500 '(;; Tests missing from the gem.
a0a7e690
BW
3501 #:tests? #f))
3502 (propagated-inputs
3503 `(("ruby-rack" ,ruby-rack)))
3504 (native-inputs
3505 `(("bundler" ,bundler)
3506 ("ruby-rspec" ,ruby-rspec-2)
3507 ("ruby-rack-test" ,ruby-rack-test)))
3508 (synopsis "Rack middleware that protects against typical web attacks")
3509 (description "Rack middleware that can be used to protect against typical
3510web attacks. It can protect all Rack apps, including Rails. For instance, it
3511protects against cross site request forgery, cross site scripting,
3512clickjacking, directory traversal, session hijacking and IP spoofing.")
3513 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
3514 (license license:expat)))
3515
6ef85256
BW
3516(define-public ruby-contest
3517 (package
3518 (name "ruby-contest")
3519 (version "0.1.3")
3520 (source
3521 (origin
3522 (method url-fetch)
3523 (uri (rubygems-uri "contest" version))
3524 (sha256
3525 (base32
3526 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
3527 (build-system ruby-build-system)
3528 (synopsis "Write declarative tests using nested contexts")
3529 (description
3530 "Contest allows writing declarative @code{Test::Unit} tests using nested
3531contexts without performance penalties.")
3532 (home-page "https://github.com/citrusbyte/contest")
3533 (license license:expat)))
3534
c4550f75
BW
3535(define-public ruby-creole
3536 (package
3537 (name "ruby-creole")
3538 (version "0.5.0")
3539 (source
3540 (origin
3541 (method url-fetch)
3542 (uri (rubygems-uri "creole" version))
3543 (sha256
3544 (base32
3545 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
3546 (build-system ruby-build-system)
3547 (native-inputs
3548 `(("ruby-bacon" ,ruby-bacon)))
3549 (synopsis "Creole markup language converter")
3550 (description
3551 "Creole is a lightweight markup language and this library for converting
3552creole to @code{HTML}.")
3553 (home-page "https://github.com/minad/creole")
3554 (license license:ruby)))
3555
6aaa815e
PP
3556(define-public ruby-docile
3557 (package
3558 (name "ruby-docile")
3559 (version "1.1.5")
3560 (source
3561 (origin
3562 (method url-fetch)
3563 (uri (rubygems-uri "docile" version))
3564 (sha256
3565 (base32
3566 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
3567 (build-system ruby-build-system)
3568 (arguments
3569 '(#:tests? #f)) ; needs github-markup, among others
3570 (synopsis "Ruby EDSL helper library")
3571 (description "Docile is a Ruby library that provides an interface for
3572creating embedded domain specific languages (EDSLs) that manipulate existing
3573Ruby classes.")
3574 (home-page "https://ms-ati.github.io/docile/")
3575 (license license:expat)))
3576
44514637 3577(define-public ruby-gherkin
62e4cc5a 3578 (package
44514637 3579 (name "ruby-gherkin")
8929f0a4 3580 (version "4.1.3")
62e4cc5a
PP
3581 (source
3582 (origin
3583 (method url-fetch)
44514637 3584 (uri (rubygems-uri "gherkin" version))
62e4cc5a
PP
3585 (sha256
3586 (base32
8929f0a4 3587 "1d18r8mf2qyd9jbq9xxvca8adyysdzvwdy8v9c2s5hrd6p02kg79"))))
62e4cc5a
PP
3588 (build-system ruby-build-system)
3589 (native-inputs
3590 `(("bundler" ,bundler)))
3591 (arguments
3592 '(#:tests? #f)) ; needs simplecov, among others
3593 (synopsis "Gherkin parser for Ruby")
44514637
BW
3594 (description "Gherkin is a parser and compiler for the Gherkin language.
3595It is intended be used by all Cucumber implementations to parse '.feature'
3596files.")
62e4cc5a
PP
3597 (home-page "https://github.com/cucumber/gherkin3")
3598 (license license:expat)))
cd89fecb
PP
3599
3600(define-public ruby-cucumber-core
3601 (package
3602 (name "ruby-cucumber-core")
dc97df2e 3603 (version "2.0.0")
cd89fecb
PP
3604 (source
3605 (origin
3606 (method url-fetch)
3607 (uri (rubygems-uri "cucumber-core" version))
3608 (sha256
3609 (base32
dc97df2e 3610 "136hnvqv444qyxzcgy1k60y4i6cn3sn9lbqr4wan9dzz1yzllqbm"))))
cd89fecb
PP
3611 (build-system ruby-build-system)
3612 (propagated-inputs
44514637 3613 `(("ruby-gherkin" ,ruby-gherkin)))
cd89fecb
PP
3614 (native-inputs
3615 `(("bundler" ,bundler)))
3616 (arguments
3617 '(#:tests? #f)) ; needs simplecov, among others
3618 (synopsis "Core library for the Cucumber BDD app")
3619 (description "Cucumber is a tool for running automated tests
3620written in plain language. Because they're written in plain language,
3621they can be read by anyone on your team. Because they can be read by
3622anyone, you can use them to help improve communication, collaboration
3623and trust on your team.")
3624 (home-page "https://cucumber.io/")
3625 (license license:expat)))
212d563d
PP
3626
3627(define-public ruby-bio-logger
3628 (package
3629 (name "ruby-bio-logger")
3630 (version "1.0.1")
3631 (source
3632 (origin
3633 (method url-fetch)
3634 (uri (rubygems-uri "bio-logger" version))
3635 (sha256
3636 (base32
3637 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3638 (build-system ruby-build-system)
3639 (arguments
3640 `(#:tests? #f)) ; rake errors, missing shoulda
3641 (propagated-inputs
3642 `(("ruby-log4r" ,ruby-log4r)))
3643 (synopsis "Log4r wrapper for Ruby")
3644 (description "Bio-logger is a wrapper around Log4r adding extra logging
3645features such as filtering and fine grained logging.")
3646 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3647 (license license:expat)))
07f61cb2
BW
3648
3649(define-public ruby-yard
6499893e
BW
3650 (package
3651 (name "ruby-yard")
3652 (version "0.9.6")
3653 (source
3654 (origin
3655 (method url-fetch)
3656 ;; Tests do not pass if we build from the distributed gem.
3657 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3a3e3099 3658 version ".tar.gz"))
6499893e
BW
3659 (file-name (string-append name "-" version ".tar.gz"))
3660 (sha256
3661 (base32
3662 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3663 (build-system ruby-build-system)
3664 (arguments
3665 `(#:phases
3666 (modify-phases %standard-phases
3667 (replace 'check
3668 (lambda _
3669 ;; $HOME needs to be set to somewhere writeable for tests to run
3670 (setenv "HOME" "/tmp")
3671 ;; Run tests without using 'rake' to avoid dependencies.
3672 (zero? (system* "rspec")))))))
3673 (native-inputs
3674 `(("ruby-rspec" ,ruby-rspec)
3675 ("ruby-rack" ,ruby-rack)))
3676 (synopsis "Documentation generation tool for Ruby")
3677 (description
3678 "YARD is a documentation generation tool for the Ruby programming
07f61cb2
BW
3679language. It enables the user to generate consistent, usable documentation
3680that can be exported to a number of formats very easily, and also supports
3681extending for custom Ruby constructs such as custom class level definitions.")
2f3800e5 3682 (home-page "https://yardoc.org")
6499893e 3683 (license license:expat)))
2cbcd23a 3684
ad686ef3
RW
3685(define-public ruby-clap
3686 (package
3687 (name "ruby-clap")
3688 (version "1.0.0")
3689 (source (origin
3690 (method url-fetch)
3691 (uri (rubygems-uri "clap" version))
3692 (sha256
3693 (base32
3694 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3695 (build-system ruby-build-system)
3696 ;; Clap needs cutest for running tests, but cutest needs clap.
3697 (arguments `(#:tests? #f))
3698 (synopsis "Command line argument parsing for simple applications")
3699 (description
3700 "Clap provides command line argument parsing features. It covers the
3701simple case of executing code based on the flags or parameters passed.")
3702 (home-page "https://github.com/djanowski/cutest")
0c80451e
RW
3703 (license license:expat)))
3704
3705(define-public ruby-cutest
3706 (package
3707 (name "ruby-cutest")
3708 (version "1.2.2")
3709 (source (origin
3710 (method url-fetch)
3711 (uri (rubygems-uri "cutest" version))
3712 (sha256
3713 (base32
3714 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3715 (build-system ruby-build-system)
3716 (propagated-inputs
3717 `(("ruby-clap" ,ruby-clap)))
3718 (synopsis "Run tests in separate processes")
3719 (description
3720 "Cutest runs tests in separate processes to avoid shared state.")
3721 (home-page "https://github.com/djanowski/cutest")
ad686ef3
RW
3722 (license license:expat)))
3723
ac09beba
RW
3724(define-public ruby-pygmentize
3725 (package
3726 (name "ruby-pygmentize")
3727 (version "0.0.3")
3728 (source (origin
3729 (method url-fetch)
3730 (uri (rubygems-uri "pygmentize" version))
3731 (sha256
3732 (base32
3733 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3734 (build-system ruby-build-system)
3735 (arguments
3736 `(#:phases
3737 (modify-phases %standard-phases
3738 (add-after 'unpack 'fix-pygmentize-path
3739 (lambda _
3740 (substitute* "lib/pygmentize.rb"
3741 (("\"/usr/bin/env python.*")
3742 (string-append "\"" (which "pygmentize") "\"\n")))
3743 #t))
3744 (add-after 'build 'do-not-use-vendor-directory
3745 (lambda _
3746 ;; Remove bundled pygments sources
3747 ;; FIXME: ruby-build-system does not support snippets.
3748 (delete-file-recursively "vendor")
3749 (substitute* "pygmentize.gemspec"
3750 (("\"vendor/\\*\\*/\\*\",") ""))
3751 #t)))))
3752 (inputs
3753 `(("pygments" ,python-pygments)))
3754 (native-inputs
3755 `(("ruby-cutest" ,ruby-cutest)
3756 ("ruby-nokogiri" ,ruby-nokogiri)))
3757 (synopsis "Thin Ruby wrapper around pygmentize")
3758 (description
3759 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3760application.")
3761 (home-page "https://github.com/djanowski/pygmentize")
3762 (license license:expat)))
3763
2cbcd23a
DT
3764(define-public ruby-eventmachine
3765 (package
3766 (name "ruby-eventmachine")
c207fa5e 3767 (version "1.2.7")
2cbcd23a
DT
3768 (source
3769 (origin
3770 (method url-fetch)
3771 (uri (rubygems-uri "eventmachine" version))
3772 (sha256
3773 (base32
c207fa5e 3774 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
2cbcd23a
DT
3775 (build-system ruby-build-system)
3776 (arguments
c5d269fb 3777 '(#:tests? #f)) ; test suite tries to connect to google.com
2cbcd23a
DT
3778 (native-inputs
3779 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3780 (synopsis "Single-threaded network event framework for Ruby")
3781 (description
3782 "EventMachine implements a single-threaded engine for arbitrary network
3783communications. EventMachine wraps all interactions with sockets, allowing
3784programs to concentrate on the implementation of network protocols. It can be
3785used to create both network servers and clients.")
24a26227
TGR
3786 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
3787 (home-page "https://github.com/eventmachine/eventmachine")
2cbcd23a 3788 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
7d3a1a2d 3789
e218b0c8
BW
3790(define-public ruby-ruby-engine
3791 (package
3792 (name "ruby-ruby-engine")
3793 (version "1.0.1")
3794 (source
3795 (origin
3796 (method url-fetch)
3797 (uri (rubygems-uri "ruby_engine" version))
3798 (sha256
3799 (base32
3800 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
3801 (build-system ruby-build-system)
3802 (arguments
3803 `(#:phases
3804 (modify-phases %standard-phases
3805 (add-before 'check 'clean-up
3806 (lambda _
3807 (delete-file "Gemfile.lock")
3808 (substitute* "ruby_engine.gemspec"
3809 ;; Remove unnecessary imports that would entail further
3810 ;; dependencies.
3811 ((".*<rdoc.*") "")
3812 ((".*<rubygems-tasks.*") "")
3813 ;; Remove extraneous .gem file
3814 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
3815 ;; Soften rake dependency
3816 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
3817 "%q<rake>.freeze, [\">= 10.0\"]")
3818 ;; Soften the rspec dependency
3819 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
3820 "%q<rspec>.freeze, [\">= 2.4\"]"))
3821 (substitute* "Rakefile"
3822 (("require 'rubygems/tasks'") "")
3823 (("Gem::Tasks.new") ""))
3824 ;; Remove extraneous .gem file that otherwise gets installed.
3825 (delete-file "pkg/ruby_engine-1.0.0.gem")
3826 #t)))))
3827 (native-inputs
3828 `(("bundler" ,bundler)
3829 ("ruby-rake" ,ruby-rake)
3830 ("ruby-rspec" ,ruby-rspec)))
3831 (synopsis "Simplifies checking for Ruby implementation")
3832 (description
3833 "@code{ruby_engine} provides an RubyEngine class that can be used to
3834check which implementation of Ruby is in use. It can provide the interpreter
3835name and provides query methods such as @{RubyEngine.mri?}.")
3836 (home-page "https://github.com/janlelis/ruby_engine")
3837 (license license:expat)))
3838
8092e333
BW
3839(define-public ruby-turn
3840 (package
3841 (name "ruby-turn")
3842 (version "0.9.7")
3843 (source
3844 (origin
3845 (method url-fetch)
3846 (uri (rubygems-uri "turn" version))
3847 (sha256
3848 (base32
3849 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3850 (build-system ruby-build-system)
3851 (arguments
3852 `(#:phases
3853 (modify-phases %standard-phases
3854 ;; Tests fail because turn changes its environment so can no longer
3855 ;; find test/unit. Instead simply test if the executable runs
3856 ;; without issue.
3857 (replace 'check
3858 (lambda _
3859 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3860 (propagated-inputs
3861 `(("ruby-ansi" ,ruby-ansi)
3862 ("ruby-minitest" ,ruby-minitest-4)))
3863 (synopsis "Alternate set of alternative runners for MiniTest")
3864 (description
3865 "TURN provides a set of alternative runners for MiniTest which are both
3866colorful and informative. TURN displays each test on a separate line with
3867failures being displayed immediately instead of at the end of the tests. Note
3868that TURN is no longer being maintained.")
3869 (home-page "http://rubygems.org/gems/turn")
3870 (license license:expat)))
3871
8279b1d3
CB
3872(define-public ruby-mimemagic
3873 (package
3874 (name "ruby-mimemagic")
3875 (version "0.3.2")
3876 (source
3877 (origin
3878 (method url-fetch)
3879 (uri (rubygems-uri "mimemagic" version))
3880 (sha256
3881 (base32
3882 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
3883 (build-system ruby-build-system)
3884 (arguments
3885 '(#:phases
3886 (modify-phases %standard-phases
3887 ;; This phase breaks the tests, as it patches some of the test data.
3888 (delete 'patch-source-shebangs))))
3889 (native-inputs
3890 `(("ruby-bacon" ,ruby-bacon)))
3891 (synopsis "Ruby library for MIME detection by extension or content")
3892 (description
3893 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
3894extension or content, using the freedesktop.org.xml shared-mime-info
3895database.")
3896 (home-page "https://github.com/minad/mimemagic")
3897 (license license:expat)))
3898
32d1c06f
BW
3899(define-public ruby-mime-types-data
3900 (package
3901 (name "ruby-mime-types-data")
f49511db 3902 (version "3.2016.0521")
32d1c06f
BW
3903 (source
3904 (origin
3905 (method url-fetch)
3906 (uri (rubygems-uri "mime-types-data" version))
3907 (sha256
3908 (base32
f49511db 3909 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
32d1c06f
BW
3910 (build-system ruby-build-system)
3911 (native-inputs
3912 `(("ruby-hoe" ,ruby-hoe)))
3913 (synopsis "Registry for information about MIME media type definitions")
3914 (description
3915 "@code{mime-types-data} provides a registry for information about
3916Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3917be used with the Ruby mime-types library or other software to determine
3918defined filename extensions for MIME types, or to use filename extensions to
3919look up the likely MIME type definitions.")
3920 (home-page "https://github.com/mime-types/mime-types-data/")
3921 (license license:expat)))
3922
d39b606c
BW
3923(define-public ruby-mime-types
3924 (package
3925 (name "ruby-mime-types")
803bcc81 3926 (version "3.1")
d39b606c
BW
3927 (source
3928 (origin
3929 (method url-fetch)
3930 (uri (rubygems-uri "mime-types" version))
3931 (sha256
3932 (base32
803bcc81 3933 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
d39b606c
BW
3934 (build-system ruby-build-system)
3935 (propagated-inputs
3936 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3937 (native-inputs
3938 `(("ruby-hoe" ,ruby-hoe)
3939 ("ruby-fivemat" ,ruby-fivemat)
3940 ("ruby-minitest-focus" ,ruby-minitest-focus)
3941 ("ruby-minitest-rg" ,ruby-minitest-rg)
803bcc81
BW
3942 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3943 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
d39b606c
BW
3944 (synopsis "Library and registry for MIME content type definitions")
3945 (description "The mime-types library provides a library and registry for
3946information about Multipurpose Internet Mail Extensions (MIME) content type
3947definitions. It can be used to determine defined filename extensions for MIME
3948types, or to use filename extensions to look up the likely MIME type
3949definitions.")
3950 (home-page "https://github.com/mime-types/ruby-mime-types")
3951 (license license:expat)))
3952
eb5e0bd9
BW
3953(define-public ruby-fivemat
3954 (package
3955 (name "ruby-fivemat")
7e2a4a6b 3956 (version "1.3.6")
eb5e0bd9
BW
3957 (source
3958 (origin
3959 (method url-fetch)
3960 (uri (rubygems-uri "fivemat" version))
3961 (sha256
3962 (base32
7e2a4a6b 3963 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
eb5e0bd9
BW
3964 (build-system ruby-build-system)
3965 (arguments
3966 `(#:tests? #f)) ; no tests
3967 (synopsis "Each test file given its own line of dots")
3968 (description
3969 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3970its own line of dots during testing. It aims to provide test output that is
3971neither too verbose nor too minimal.")
3972 (home-page "https://github.com/tpope/fivemat")
3973 (license license:expat)))
3974
4fea500b
BW
3975(define-public ruby-sqlite3
3976 (package
3977 (name "ruby-sqlite3")
cba53c60 3978 (version "1.3.13")
4fea500b
BW
3979 (source
3980 (origin
3981 (method url-fetch)
3982 (uri (rubygems-uri "sqlite3" version))
3983 (sha256
3984 (base32
cba53c60 3985 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
4fea500b
BW
3986 (build-system ruby-build-system)
3987 (arguments
3988 `(#:phases
3989 (modify-phases %standard-phases
54a93355
MB
3990 (add-before 'check 'adjust-failing-test
3991 (lambda _
3992 ;; XXX: This test fails with SQLite versions >= 3.21.
3993 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
3994 (substitute* "test/test_integration_resultset.rb"
3995 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
3996 #t))
4fea500b
BW
3997 (add-before 'check 'add-gemtest-file
3998 ;; This file exists in the repository but is not distributed.
3999 (lambda _ (zero? (system* "touch" ".gemtest")))))))
4000 (inputs
4001 `(("sqlite" ,sqlite)))
4002 (native-inputs
4003 `(("ruby-hoe" ,ruby-hoe)
4004 ("ruby-rake-compiler" ,ruby-rake-compiler)
4005 ("ruby-mini-portile" ,ruby-mini-portile)))
4006 (synopsis "Interface with SQLite3 databases")
4007 (description
4008 "This module allows Ruby programs to interface with the SQLite3 database
4009engine.")
4010 (home-page
4011 "https://github.com/sparklemotion/sqlite3-ruby")
4012 (license license:bsd-3)))
4013
4dfa39cc
BW
4014(define-public ruby-shoulda-context
4015 (package
4016 (name "ruby-shoulda-context")
e7d1d472 4017 (version "1.2.2")
4dfa39cc
BW
4018 (source
4019 (origin
4020 (method url-fetch)
4021 (uri (rubygems-uri "shoulda-context" version))
4022 (sha256
4023 (base32
e7d1d472 4024 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
4dfa39cc
BW
4025 (build-system ruby-build-system)
4026 (arguments
4027 `(#:phases
4028 (modify-phases %standard-phases
4029 (replace 'check
4030 (lambda _
4031 ;; Do not run tests to avoid circular dependence with rails.
4032 ;; Instead just import the library to test.
4033 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
4034 (synopsis "Test::Unit context framework extracted from Shoulda")
4035 (description
4036 "@code{shoulda-context} is the context framework extracted from Shoulda.
4037Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
4038context, setup, and should blocks combine to produce natural test method
4039names.")
4040 (home-page "https://github.com/thoughtbot/shoulda-context")
4041 (license license:expat)))
4042
e4fea008
BW
4043(define-public ruby-shoulda-matchers
4044 (package
4045 (name "ruby-shoulda-matchers")
d1c1f368 4046 (version "3.1.2")
e4fea008
BW
4047 (source
4048 (origin
4049 (method url-fetch)
4050 (uri (rubygems-uri "shoulda-matchers" version))
4051 (sha256
4052 (base32
d1c1f368 4053 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
e4fea008
BW
4054 (build-system ruby-build-system)
4055 (arguments
4056 `(#:phases
4057 (modify-phases %standard-phases
e4fea008
BW
4058 (replace 'check
4059 (lambda _
4060 ;; Do not run tests to avoid circular dependence with rails. Instead
4061 ;; just import the library to test.
4062 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
4063 (propagated-inputs
4064 `(("ruby-activesupport" ,ruby-activesupport)))
4065 (synopsis "Collection of testing matchers extracted from Shoulda")
4066 (description
4067 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
4068test common Rails functionality. These tests would otherwise be much longer,
4069more complex, and error-prone.")
4070 (home-page "https://github.com/thoughtbot/shoulda-matchers")
4071 (license license:expat)))
4072
3885c58b
BW
4073(define-public ruby-shoulda-matchers-2
4074 (package
4075 (inherit ruby-shoulda-matchers)
4076 (version "2.8.0")
4077 (source (origin
4078 (method url-fetch)
4079 (uri (rubygems-uri "shoulda-matchers" version))
4080 (sha256
4081 (base32
4082 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
4083
6f390716
BW
4084(define-public ruby-shoulda
4085 (package
4086 (name "ruby-shoulda")
4087 (version "3.5.0")
4088 (source
4089 (origin
4090 (method url-fetch)
4091 (uri (rubygems-uri "shoulda" version))
4092 (sha256
4093 (base32
4094 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
4095 (build-system ruby-build-system)
4096 (arguments
4097 `(#:phases
4098 (modify-phases %standard-phases
4099 (replace 'check
4100 ;; Don't run tests to avoid circular dependence with rails. Instead
4101 ;; just import the library to test.
4102 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
4103 (propagated-inputs
4104 `(("ruby-shoulda-context" ,ruby-shoulda-context)
4105 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
4106 (synopsis "Context framework and matchers for testing")
4107 (description
4108 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
4109@code{shoulda-matchers} providing tools for writing tests.")
4110 (home-page "https://github.com/thoughtbot/shoulda")
4111 (license license:expat)))
4112
3b44bcdf
BW
4113(define-public ruby-unf
4114 (package
4115 (name "ruby-unf")
4116 (version "0.1.4")
4117 (source
4118 (origin
4119 (method url-fetch)
4120 (uri (rubygems-uri "unf" version))
4121 (sha256
4122 (base32
4123 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
4124 (build-system ruby-build-system)
4125 (arguments
4126 `(#:phases
4127 (modify-phases %standard-phases
4128 (add-before 'check 'add-dependency-to-bundler
4129 (lambda _
4130 ;; test-unit is required but not provided by the bundler
4131 ;; environment. This is fixed in the upstream repository but fix
4132 ;; has not been released.
4133 (substitute* "Gemfile"
4134 (("^gemspec") "gem 'test-unit'\ngemspec"))
4135 #t)))))
4136 (propagated-inputs
4137 `(("ruby-unf-ext" ,ruby-unf-ext)))
4138 (native-inputs
4139 `(("ruby-shoulda" ,ruby-shoulda)
4140 ("bundler" ,bundler)
4141 ("ruby-test-unit" ,ruby-test-unit)))
4142 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
4143 (description
4144 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
4145support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
4146@code{java.text.Normalizer} on JRuby.")
4147 (home-page "https://github.com/knu/ruby-unf")
4148 (license license:bsd-2)))
4149
5799aadd
BW
4150(define-public ruby-domain-name
4151 (package
4152 (name "ruby-domain-name")
222999c9 4153 (version "0.5.20180417")
5799aadd
BW
4154 (source
4155 (origin
4156 (method url-fetch)
4157 (uri (rubygems-uri "domain_name" version))
4158 (sha256
4159 (base32
222999c9 4160 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
5799aadd
BW
4161 (build-system ruby-build-system)
4162 (arguments
4163 `(#:phases
4164 (modify-phases %standard-phases
4165 (add-before 'check 'fix-versions
4166 (lambda _
4167 ;; Fix NameError that appears to already be fixed upstream.
4168 (substitute* "Rakefile"
4169 (("DomainName::VERSION")
4170 "Bundler::GemHelper.gemspec.version"))
4171 ;; Loosen unnecessarily strict test-unit version specification.
4172 (substitute* "domain_name.gemspec"
71596c3c 4173 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
5799aadd
BW
4174 #t)))))
4175 (propagated-inputs
4176 `(("ruby-unf" ,ruby-unf)))
4177 (native-inputs
4178 `(("ruby-shoulda" ,ruby-shoulda)
4179 ("bundler" ,bundler)
4180 ("ruby-test-unit" ,ruby-test-unit)))
4181 (synopsis "Domain name manipulation library")
4182 (description
4183 "@code{domain_name} is a Domain name manipulation library. It parses a
4184domain name ready for extracting the registered domain and TLD (Top Level
4185Domain). It can also be used for cookie domain validation based on the Public
4186Suffix List.")
4187 (home-page "https://github.com/knu/ruby-domain_name")
4188 (license license:bsd-2)))
4189
d114ceeb
BW
4190(define-public ruby-http-cookie
4191 (package
4192 (name "ruby-http-cookie")
2a2eb07d 4193 (version "1.0.3")
d114ceeb
BW
4194 (source
4195 (origin
4196 (method url-fetch)
4197 (uri (rubygems-uri "http-cookie" version))
4198 (sha256
4199 (base32
2a2eb07d 4200 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
d114ceeb
BW
4201 (build-system ruby-build-system)
4202 (arguments
4203 `(#:phases
4204 (modify-phases %standard-phases
4205 (add-before 'check 'add-dependency-to-bundler
4206 (lambda _
4207 ;; Fix NameError
4208 (substitute* "Rakefile"
4209 (("HTTP::Cookie::VERSION")
4210 "Bundler::GemHelper.gemspec.version"))
4211 #t)))))
4212 (propagated-inputs
4213 `(("ruby-domain-name" ,ruby-domain-name)))
4214 (native-inputs
4215 `(("rubysimplecov" ,ruby-simplecov)
4216 ("bundler" ,bundler)
4217 ("ruby-sqlite3" ,ruby-sqlite3)
4218 ("ruby-test-unit" ,ruby-test-unit)))
4219 (synopsis "Handle HTTP Cookies based on RFC 6265")
4220 (description
4221 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
4222RFC 6265. It has been designed with security, standards compliance and
4223compatibility in mind, to behave just the same as today's major web browsers.
4224It has built-in support for the legacy @code{cookies.txt} and
4225@code{cookies.sqlite} formats of Mozilla Firefox.")
4226 (home-page "https://github.com/sparklemotion/http-cookie")
4227 (license license:expat)))
4228
1c8e6fd3
CB
4229(define-public ruby-httpclient
4230 (package
4231 (name "ruby-httpclient")
4232 (version "2.8.3")
4233 (source
4234 (origin
4235 (method url-fetch)
4236 (uri (rubygems-uri "httpclient" version))
4237 (sha256
4238 (base32
4239 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
4240 (build-system ruby-build-system)
4241 (arguments
4242 '(;; TODO: Some tests currently fail
4243 ;; ------
4244 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
4245 ;; 2 omissions, 0 notifications
4246 ;; 91.866% passed
4247 ;; ------
4248 ;; 6.49 tests/s, 22.41 assertions/s
4249 #:tests? #f
4250 #:phases
4251 (modify-phases %standard-phases
4252 (replace 'check
4253 (lambda* (#:key tests? #:allow-other-keys)
4254 (if tests?
4255 (zero?
4256 (system* "ruby"
4257 "-Ilib"
4258 "test/runner.rb"))
0076f5a9 4259 #t))))))
1c8e6fd3
CB
4260 (native-inputs
4261 `(("ruby-rack" ,ruby-rack)))
4262 (synopsis
4263 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
4264 (description
4265 "The @code{httpclient} ruby library provides functionality related to
4266HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
4267Cookie, multithreading and authentication (digest, NTLM) support.
4268
4269Also provided is a @command{httpclient} command, which can perform HTTP
4270requests either using arguments or with an interactive prompt.")
4271 (home-page "https://github.com/nahi/httpclient")
4272 (license license:ruby)))
4273
7d3a1a2d
BW
4274(define-public ruby-ansi
4275 (package
4276 (name "ruby-ansi")
4277 (version "1.5.0")
4278 (source
4279 (origin
4280 (method url-fetch)
4281 ;; Fetch from GitHub as the gem does not contain testing code.
4282 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
4283 version ".tar.gz"))
4284 (file-name (string-append name "-" version ".tar.gz"))
4285 (sha256
4286 (base32
4287 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
4288 (build-system ruby-build-system)
4289 (arguments
4290 `(#:phases
4291 (modify-phases %standard-phases
4292 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
4293 ;; cycle ansi, qed, ansi. Instead simply test that the library can
4294 ;; be require'd.
4295 (replace 'check
4296 (lambda _
0899352f
MB
4297 (zero? (system* "ruby" "-Ilib" "-r" "ansi"))))
4298 (add-before 'validate-runpath 'replace-broken-symlink
4299 (lambda* (#:key outputs #:allow-other-keys)
4300 (let* ((out (assoc-ref outputs "out"))
3cb3fa67
CB
4301 (file (string-append
4302 out "/lib/ruby/vendor_ruby/gems/ansi-"
4303 ,version "/lib/ansi.yml")))
0899352f
MB
4304 ;; XXX: This symlink is broken since ruby 2.4.
4305 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
4306 (delete-file file)
4307 (symlink "../.index" file)
4308 #t))))))
7d3a1a2d
BW
4309 (synopsis "ANSI escape code related libraries")
4310 (description
4311 "This package is a collection of ANSI escape code related libraries
4312enabling ANSI colorization and stylization of console output. Included in the
4313library are the @code{Code} module, which defines ANSI codes as constants and
4314methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
4315@code{ProgressBar}, and a @code{String} subclass. The library also includes a
4316@code{Terminal} module which provides information about the current output
4317device.")
2f3800e5 4318 (home-page "https://rubyworks.github.io/ansi")
7d3a1a2d 4319 (license license:bsd-2)))
7c033c46
BW
4320
4321(define-public ruby-systemu
4322 (package
4323 (name "ruby-systemu")
4324 (version "2.6.5")
4325 (source
4326 (origin
4327 (method url-fetch)
4328 (uri (rubygems-uri "systemu" version))
4329 (sha256
4330 (base32
4331 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
4332 (build-system ruby-build-system)
4333 (arguments
4334 `(#:phases
4335 (modify-phases %standard-phases
4336 (add-before 'check 'set-version
4337 (lambda _
4338 (setenv "VERSION" ,version)
4339 #t)))))
4340 (synopsis "Capture of stdout/stderr and handling of child processes")
4341 (description
4342 "Systemu can be used on any platform to return status, stdout, and stderr
4343of any command. Unlike other methods like @code{open3} and @code{popen4}
4344there is no danger of full pipes or threading issues hanging your process or
4345subprocess.")
4346 (home-page "https://github.com/ahoward/systemu")
4347 (license license:ruby)))
3d84a99e
BW
4348
4349(define-public ruby-bio-commandeer
4350 (package
4351 (name "ruby-bio-commandeer")
37b08547 4352 (version "0.4.0")
3d84a99e
BW
4353 (source
4354 (origin
4355 (method url-fetch)
4356 (uri (rubygems-uri "bio-commandeer" version))
4357 (sha256
4358 (base32
37b08547 4359 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
3d84a99e
BW
4360 (build-system ruby-build-system)
4361 (arguments
4362 `(#:phases
4363 (modify-phases %standard-phases
4364 (replace 'check
4365 ;; Run test without calling 'rake' so that jeweler is
4366 ;; not required as an input.
4367 (lambda _
4368 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
4369 (propagated-inputs
4370 `(("ruby-bio-logger" ,ruby-bio-logger)
4371 ("ruby-systemu" ,ruby-systemu)))
4372 (native-inputs
4373 `(("bundler" ,bundler)
4374 ("ruby-rspec" ,ruby-rspec)))
4375 (synopsis "Simplified running of shell commands from within Ruby")
4376 (description
4377 "Bio-commandeer provides an opinionated method of running shell commands
4378from within Ruby. The advantage of bio-commandeer over other methods of
4379running external commands is that when something goes wrong, messages printed
4380to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
4381detail to ease debugging.")
7bf837fd 4382 (home-page "https://github.com/wwood/bioruby-commandeer")
3d84a99e 4383 (license license:expat)))
7c8131c7
BW
4384
4385(define-public ruby-rubytest
4386 (package
4387 (name "ruby-rubytest")
4388 (version "0.8.1")
4389 (source
4390 (origin
4391 (method url-fetch)
4392 (uri (rubygems-uri "rubytest" version))
4393 (sha256
4394 (base32
4395 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
4396 (build-system ruby-build-system)
4397 (arguments
4398 ;; Disable regular testing to break the cycle rubytest, qed, brass,
4399 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
4400 ;; simply test that the library can be require'd.
4401 `(#:phases
4402 (modify-phases %standard-phases
4403 (replace 'check
4404 (lambda _
4405 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
4406 (propagated-inputs
4407 `(("ruby-ansi" ,ruby-ansi)))
4408 (synopsis "Universal test harness for Ruby")
4409 (description
4410 "Rubytest is a testing meta-framework for Ruby. It can handle any
4411compliant test framework and can run tests from multiple frameworks in a
4412single pass.")
2f3800e5 4413 (home-page "https://rubyworks.github.io/rubytest")
7c8131c7 4414 (license license:bsd-2)))
90fcedf2
BW
4415
4416(define-public ruby-brass
4417 (package
4418 (name "ruby-brass")
4419 (version "1.2.1")
4420 (source
4421 (origin
4422 (method url-fetch)
4423 (uri (rubygems-uri "brass" version))
4424 (sha256
4425 (base32
4426 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
4427 (build-system ruby-build-system)
4428 (arguments
4429 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
4430 ;; Instead simply test that the library can be require'd.
4431 `(#:phases
4432 (modify-phases %standard-phases
4433 (replace 'check
4434 (lambda _
4435 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
4436 (synopsis "Basic foundational assertions framework")
4437 (description
4438 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
4439foundational assertions framework for other assertion and test frameworks to
4440make use of.")
2f3800e5 4441 (home-page "https://rubyworks.github.io/brass")
90fcedf2 4442 (license license:bsd-2)))
120fc74b
BW
4443
4444(define-public ruby-qed
4445 (package
4446 (name "ruby-qed")
4447 (version "2.9.2")
4448 (source
4449 (origin
4450 (method url-fetch)
4451 (uri (rubygems-uri "qed" version))
4452 (sha256
4453 (base32
4454 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
4455 (build-system ruby-build-system)
4456 (arguments
4457 ;; Disable testing to break the cycle qed, ansi, qed, among others.
4458 ;; Instead simply test that the executable runs using --copyright.
4459 `(#:phases
4460 (modify-phases %standard-phases
4461 (replace 'check
4462 (lambda _
4463 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
4464 (propagated-inputs
4465 `(("ruby-ansi" ,ruby-ansi)
4466 ("ruby-brass" ,ruby-brass)))
4467 (synopsis "Test framework utilizing literate programming techniques")
4468 (description
4469 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
4470@dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
4471Development} (BDD) utilizing Literate Programming techniques. QED sits
4472somewhere between lower-level testing tools like @code{Test::Unit} and
4473requirement specifications systems like Cucumber.")
2f3800e5 4474 (home-page "https://rubyworks.github.io/qed")
120fc74b 4475 (license license:bsd-2)))
9273ee8f
BW
4476
4477(define-public ruby-ae
4478 (package
4479 (name "ruby-ae")
4480 (version "1.8.2")
4481 (source
4482 (origin
4483 (method url-fetch)
4484 ;; Fetch from github so tests are included.
4485 (uri (string-append
4486 "https://github.com/rubyworks/ae/archive/"
4487 version ".tar.gz"))
4488 (file-name (string-append name "-" version ".tar.gz"))
4489 (sha256
4490 (base32
4491 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
4492 (build-system ruby-build-system)
4493 (arguments
4494 `(#:phases
4495 (modify-phases %standard-phases
4496 (replace 'check
de6f6efd
MB
4497 (lambda _ (zero? (system* "qed"))))
4498 (add-before 'validate-runpath 'replace-broken-symlink
4499 (lambda* (#:key outputs #:allow-other-keys)
4500 (let* ((out (assoc-ref outputs "out"))
3cb3fa67
CB
4501 (file (string-append
4502 out "/lib/ruby/vendor_ruby/gems/ae-"
4503 ,version "/lib/ae.yml")))
de6f6efd
MB
4504 ;; XXX: This symlink is broken since ruby 2.4.
4505 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
4506 (delete-file file)
4507 (symlink "../.index" file)
4508 #t))))))
9273ee8f
BW
4509 (propagated-inputs
4510 `(("ruby-ansi" ,ruby-ansi)))
4511 (native-inputs
4512 `(("ruby-qed" ,ruby-qed)))
4513 (synopsis "Assertions library")
4514 (description
4515 "Assertive Expressive (AE) is an assertions library specifically designed
4516for reuse by other test frameworks.")
2f3800e5 4517 (home-page "https://rubyworks.github.io/ae")
9273ee8f 4518 (license license:bsd-2)))
78bb471f
BW
4519
4520(define-public ruby-lemon
4521 (package
4522 (name "ruby-lemon")
4523 (version "0.9.1")
4524 (source
4525 (origin
4526 (method url-fetch)
4527 (uri (rubygems-uri "lemon" version))
4528 (sha256
4529 (base32
4530 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
4531 (build-system ruby-build-system)
4532 (arguments
4533 `(#:phases
4534 (modify-phases %standard-phases
4535 (replace 'check (lambda _ (zero? (system* "qed")))))))
4536 (propagated-inputs
4537 `(("ruby-ae" ,ruby-ae)
4538 ("ruby-ansi" ,ruby-ansi)
4539 ("ruby-rubytest" ,ruby-rubytest)))
4540 (native-inputs
4541 `(("ruby-qed" ,ruby-qed)))
4542 (synopsis "Test framework correlating code structure and test unit")
4543 (description
4544 "Lemon is a unit testing framework that enforces highly formal
4545case-to-class and unit-to-method test construction. This enforcement can help
4546focus concern on individual units of behavior.")
2f3800e5 4547 (home-page "https://rubyworks.github.io/lemon")
78bb471f 4548 (license license:bsd-2)))
0832804e
BW
4549
4550(define-public ruby-rubytest-cli
4551 (package
4552 (name "ruby-rubytest-cli")
4553 (version "0.2.0")
4554 (source
4555 (origin
4556 (method url-fetch)
4557 (uri (rubygems-uri "rubytest-cli" version))
4558 (sha256
4559 (base32
4560 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
4561 (build-system ruby-build-system)
4562 (arguments
4563 `(#:tests? #f)) ; no tests
4564 (propagated-inputs
4565 `(("ruby-ansi" ,ruby-ansi)
4566 ("ruby-rubytest" ,ruby-rubytest)))
4567 (synopsis "Command-line interface for rubytest")
4568 (description
4569 "Rubytest CLI is a command-line interface for running tests for
4570Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
2f3800e5 4571 (home-page "https://rubyworks.github.io/rubytest-cli")
0832804e 4572 (license license:bsd-2)))
72ccbfe3
BW
4573
4574(define-public ruby-hashery
4575 (package
4576 (name "ruby-hashery")
cba96208 4577 (version "2.1.2")
72ccbfe3
BW
4578 (source
4579 (origin
4580 (method url-fetch)
4581 (uri (rubygems-uri "hashery" version))
4582 (sha256
4583 (base32
cba96208 4584 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
72ccbfe3
BW
4585 (build-system ruby-build-system)
4586 (arguments
4587 `(#:phases
4588 (modify-phases %standard-phases
4589 (replace 'check
4590 (lambda _
4591 (and (zero? (system* "qed"))
4592 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
4593 (native-inputs
4594 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
4595 ("ruby-qed" ,ruby-qed)
4596 ("ruby-lemon" ,ruby-lemon)))
4597 (synopsis "Hash-like classes with extra features")
4598 (description
4599 "The Hashery is a tight collection of @code{Hash}-like classes.
4600Included are the auto-sorting @code{Dictionary} class, the efficient
4601@code{LRUHash}, the flexible @code{OpenHash} and the convenient
4602@code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
4603defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
4604standard @code{Hash} making it possible to subclass and augment to fit any
4605specific use case.")
2f3800e5 4606 (home-page "https://rubyworks.github.io/hashery")
72ccbfe3 4607 (license license:bsd-2)))
1f1d71e0
BW
4608
4609(define-public ruby-rc4
4610 (package
4611 (name "ruby-rc4")
4612 (version "0.1.5")
4613 (source
4614 (origin
4615 (method url-fetch)
4616 (uri (rubygems-uri "ruby-rc4" version))
4617 (sha256
4618 (base32
4619 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
4620 (build-system ruby-build-system)
4621 (arguments
4622 `(#:phases
4623 (modify-phases %standard-phases
4624 (replace 'check
4625 (lambda _
4626 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
4627 (native-inputs
4628 `(("ruby-rspec" ,ruby-rspec-2)))
4629 (synopsis "Implementation of the RC4 algorithm")
4630 (description
4631 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
4632 (home-page "https://github.com/caiges/Ruby-RC4")
4633 (license license:expat)))
f3e085a8
BW
4634
4635(define-public ruby-afm
4636 (package
4637 (name "ruby-afm")
4638 (version "0.2.2")
4639 (source
4640 (origin
4641 (method url-fetch)
4642 (uri (rubygems-uri "afm" version))
4643 (sha256
4644 (base32
4645 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
4646 (build-system ruby-build-system)
4647 (native-inputs
4648 `(("bundler" ,bundler)))
4649 (synopsis "Read Adobe Font Metrics (afm) files")
4650 (description
4651 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
4652files and use the data therein.")
7bf837fd 4653 (home-page "https://github.com/halfbyte/afm")
f3e085a8 4654 (license license:expat)))
acb6be42
BW
4655
4656(define-public ruby-ascii85
4657 (package
4658 (name "ruby-ascii85")
5854082a 4659 (version "1.0.3")
acb6be42
BW
4660 (source
4661 (origin
4662 (method url-fetch)
4663 (uri (rubygems-uri "Ascii85" version))
4664 (sha256
4665 (base32
5854082a 4666 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
acb6be42
BW
4667 (build-system ruby-build-system)
4668 (native-inputs
4669 `(("bundler" ,bundler)))
4670 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
4671 (description
4672 "This library provides methods to encode and decode Ascii85
4673binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
4674@dfn{Portable Document Format} (PDF) file formats.")
4675 (home-page "https://github.com/datawraith/ascii85gem")
4676 (license license:expat)))
edf8caae
BW
4677
4678(define-public ruby-ttfunk
4679 (package
4680 (name "ruby-ttfunk")
afb7a3e8 4681 (version "1.5.1")
edf8caae
BW
4682 (source
4683 (origin
4684 (method url-fetch)
4685 ;; fetch from github as the gem does not contain testing code
4686 (uri (string-append
4687 "https://github.com/prawnpdf/ttfunk/archive/"
4688 version ".tar.gz"))
4689 (file-name (string-append name "-" version ".tar.gz"))
4690 (sha256
4691 (base32
afb7a3e8 4692 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
edf8caae
BW
4693 (build-system ruby-build-system)
4694 (arguments
4695 `(#:test-target "spec"
4696 #:phases
4697 (modify-phases %standard-phases
afb7a3e8
JL
4698 (add-before 'build 'remove-ssh
4699 (lambda _
4700 ;; remove dependency on an ssh key pair that doesn't exist
4701 (substitute* "ttfunk.gemspec"
4702 (("spec.signing_key.*") ""))
4703 #t))
edf8caae
BW
4704 (add-before 'check 'remove-rubocop
4705 (lambda _
4706 ;; remove rubocop as a dependency as not needed for testing
4707 (substitute* "ttfunk.gemspec"
4708 (("spec.add_development_dependency\\('rubocop'.*") ""))
4709 (substitute* "Rakefile"
4710 (("require 'rubocop/rake_task'") "")
afb7a3e8 4711 (("RuboCop::RakeTask.new") ""))
edf8caae
BW
4712 #t)))))
4713 (native-inputs
4714 `(("ruby-rspec" ,ruby-rspec)
afb7a3e8 4715 ("ruby-yard" ,ruby-yard)
edf8caae
BW
4716 ("bundler" ,bundler)))
4717 (synopsis "Font metrics parser for the Prawn PDF generator")
4718 (description
4719 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
4720part of the Prawn PDF generator.")
4721 (home-page "https://github.com/prawnpdf/ttfunk")
4722 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
4723 ;; for details."
4724 (license (list license:gpl2 license:gpl3 license:ruby))))
cbdd428c 4725
9270298f
BW
4726(define-public ruby-puma
4727 (package
4728 (name "ruby-puma")
63755fcd 4729 (version "3.9.1")
9270298f
BW
4730 (source
4731 (origin
4732 (method url-fetch)
4733 ;; Fetch from GitHub because distributed gem does not contain tests.
4734 (uri (string-append "https://github.com/puma/puma/archive/v"
4735 version ".tar.gz"))
4736 (file-name (string-append name "-" version ".tar.gz"))
4737 (sha256
4738 (base32
63755fcd 4739 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
9270298f
BW
4740 (build-system ruby-build-system)
4741 (arguments
63755fcd
BW
4742 `(#:tests? #f ; Tests require an out-dated version of minitest.
4743 #:phases
9270298f
BW
4744 (modify-phases %standard-phases
4745 (add-before 'build 'fix-gemspec
4746 (lambda _
4747 (substitute* "puma.gemspec"
4748 (("git ls-files") "find * |sort"))
4749 #t)))))
9270298f
BW
4750 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4751 (description
4752 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4753for Ruby/Rack applications. Puma is intended for use in both development and
4754production environments. In order to get the best throughput, it is highly
4755recommended that you use a Ruby implementation with real threads like Rubinius
4756or JRuby.")
4757 (home-page "http://puma.io")
4758 (license license:expat)))
4759
b0813490
BW
4760(define-public ruby-hoe-git
4761 (package
4762 (name "ruby-hoe-git")
4763 (version "1.6.0")
4764 (source
4765 (origin
4766 (method url-fetch)
4767 (uri (rubygems-uri "hoe-git" version))
4768 (sha256
4769 (base32
4770 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4771 (build-system ruby-build-system)
4772 (propagated-inputs
4773 `(("ruby-hoe" ,ruby-hoe)
4774 ("git" ,git)))
4775 (synopsis "Hoe plugins for tighter Git integration")
4776 (description
4777 "This package provides a set of Hoe plugins for tighter Git integration.
4778It provides tasks to automate release tagging and pushing and changelog
4779generation.")
7bf837fd 4780 (home-page "https://github.com/jbarnette/hoe-git")
b0813490
BW
4781 (license license:expat)))
4782
cbdd428c
BW
4783(define-public ruby-sequel
4784 (package
4785 (name "ruby-sequel")
65a7f09c 4786 (version "4.49.0")
cbdd428c
BW
4787 (source
4788 (origin
4789 (method url-fetch)
4790 (uri (rubygems-uri "sequel" version))
4791 (sha256
4792 (base32
65a7f09c 4793 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
cbdd428c
BW
4794 (build-system ruby-build-system)
4795 (arguments
4796 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4797 (synopsis "Database toolkit for Ruby")
4798 (description "Sequel provides thread safety, connection pooling and a
4799concise DSL for constructing SQL queries and table schemas. It includes a
4800comprehensive ORM layer for mapping records to Ruby objects and handling
4801associated records.")
4802 (home-page "http://sequel.jeremyevans.net")
4803 (license license:expat)))
3cc78097
BW
4804
4805(define-public ruby-timecop
4806 (package
4807 (name "ruby-timecop")
3d4a5eb5 4808 (version "0.9.1")
3cc78097
BW
4809 (source
4810 (origin
4811 (method url-fetch)
4812 (uri (rubygems-uri "timecop" version))
4813 (sha256
4814 (base32
3d4a5eb5 4815 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
3cc78097
BW
4816 (build-system ruby-build-system)
4817 (arguments
4818 `(#:phases
4819 (modify-phases %standard-phases
4820 (add-before 'check 'set-check-rubylib
4821 (lambda _
4822 ;; Set RUBYLIB so timecop tests finds its own lib.
4823 (setenv "RUBYLIB" "lib")
4824 #t)))))
4825 (native-inputs
4826 `(("bundler" ,bundler)
4827 ("ruby-minitest-rg" ,ruby-minitest-rg)
4828 ("ruby-mocha" ,ruby-mocha)
4829 ("ruby-activesupport" ,ruby-activesupport)))
66e07664 4830 (synopsis "Test mocks for time-dependent functions")
3cc78097
BW
4831 (description
4832 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4833making it easier to test time-dependent code. It provides a unified method to
4834mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4835call.")
4836 (home-page "https://github.com/travisjeffery/timecop")
4837 (license license:expat)))
4838
dae620b8
BW
4839(define-public ruby-concurrent
4840 (package
4841 (name "ruby-concurrent")
21aecec1 4842 (version "1.0.5")
dae620b8
BW
4843 (source
4844 (origin
4845 (method url-fetch)
4846 ;; Download from GitHub because the rubygems version does not contain
4847 ;; Rakefile.
4848 (uri (string-append
4849 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4850 version
4851 ".tar.gz"))
4852 (file-name (string-append name "-" version ".tar.gz"))
4853 (sha256
4854 (base32
21aecec1 4855 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
dae620b8
BW
4856 ;; Exclude failing test reported at
4857 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
402b03e6
LC
4858 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
4859 "ruby-concurrent-test-arm.patch"))))
dae620b8
BW
4860 (build-system ruby-build-system)
4861 (arguments
4862 `(#:test-target "spec"
4863 #:phases
4864 (modify-phases %standard-phases
520e89eb 4865 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
dae620b8
BW
4866 (lambda _
4867 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4868 ;; correct one.
4869 (delete-file "concurrent-ruby-edge.gemspec")
4870 (delete-file "concurrent-ruby-ext.gemspec")
4871 #t))
520e89eb
BW
4872 (add-before 'build 'replace-git-ls-files2
4873 (lambda _
4874 (substitute* "support/file_map.rb"
4875 (("git ls-files") "find * |sort"))
4876 #t))
dae620b8
BW
4877 (add-before 'check 'rake-compile
4878 ;; Fix the test error described at
4879 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
9019b37f
BW
4880 (lambda _ (zero? (system* "rake" "compile"))))
4881 (add-before 'check 'remove-timecop-dependency
4882 ;; Remove timecop-dependent tests as having timecop as a depedency
4883 ;; causes circular depedencies.
4884 (lambda _
4885 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4886 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4887 #t)))))
dae620b8
BW
4888 (native-inputs
4889 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9019b37f 4890 ("ruby-rspec" ,ruby-rspec)))
dae620b8
BW
4891 (synopsis "Concurrency tools for Ruby")
4892 (description
4893 "This library provides modern concurrency tools including agents,
4894futures, promises, thread pools, actors, supervisors, and more. It is
4895inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4896patterns.")
4897 (home-page "http://www.concurrent-ruby.com")
4898 (license license:expat)))
2de61e34
BW
4899
4900(define-public ruby-pkg-config
4901 (package
4902 (name "ruby-pkg-config")
884a80dd 4903 (version "1.2.5")
2de61e34
BW
4904 (source
4905 (origin
4906 (method url-fetch)
4907 (uri (rubygems-uri "pkg-config" version))
4908 (sha256
4909 (base32
884a80dd 4910 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
2de61e34
BW
4911 (build-system ruby-build-system)
4912 (arguments
4913 ;; Tests require extra files not included in the gem.
4914 `(#:tests? #f))
4915 (synopsis "Detect libraries for compiling Ruby native extensions")
4916 (description
4917 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4918libraries for compiling Ruby native extensions.")
4919 (home-page "https://github.com/ruby-gnome2/pkg-config")
4920 (license license:lgpl2.0+)))
6689c636
MFM
4921
4922(define-public ruby-net-http-digest-auth
4923 (package
4924 (name "ruby-net-http-digest-auth")
ba074a85 4925 (version "1.4.1")
6689c636
MFM
4926 (source
4927 (origin
4928 (method url-fetch)
4929 (uri (rubygems-uri "net-http-digest_auth" version))
4930 (sha256
4931 (base32
ba074a85 4932 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
6689c636
MFM
4933 (build-system ruby-build-system)
4934 (native-inputs
4935 `(("ruby-hoe" ,ruby-hoe)))
4936 (synopsis "RFC 2617 HTTP digest authentication library")
4937 (description
4938 "This library implements HTTP's digest authentication scheme based on
4939RFC 2617. This enables the use of the digest authentication scheme instead
4940of the more insecure basic authentication scheme.")
7bf837fd 4941 (home-page "https://github.com/drbrain/net-http-digest_auth")
6689c636 4942 (license license:expat)))
06116573 4943
4944(define-public ruby-mail
4945 (package
4946 (name "ruby-mail")
04de0cb5 4947 (version "2.6.6")
06116573 4948 (source
4949 (origin
4950 (method url-fetch)
4951 (uri (rubygems-uri "mail" version))
4952 (sha256
4953 (base32
04de0cb5 4954 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
06116573 4955 (build-system ruby-build-system)
4956 (propagated-inputs
4957 `(("ruby-mime-types" ,ruby-mime-types)))
4958 (arguments
4959 ;; Tests require extra gems not included in the Gemfile.
4960 ;; XXX: Try enabling this for the next version with mini_mime.
4961 `(#:tests? #f))
4962 (synopsis "Mail library for Ruby")
4963 (description
4964 "Mail is an internet library for Ruby that is designed to handle email
4965generation, parsing and sending. The purpose of this library is to provide
4966a single point of access to handle all email functions, including sending
4967and receiving emails. All network type actions are done through proxy
4968methods to @code{Net::SMTP}, @code{Net::POP3} etc.
4969
4970Mail has been designed with a very simple object oriented system that
4971really opens up the email messages you are parsing, if you know what you
4972are doing, you can fiddle with every last bit of your email directly.")
4973 (home-page "https://github.com/mikel/mail")
4974 (license license:expat)))
9b4c8e1b
BW
4975
4976(define-public ruby-code-statistics
4977 (package
4978 (name "ruby-code-statistics")
4979 (version "0.2.13")
4980 (source
4981 (origin
4982 (method url-fetch)
4983 (uri (rubygems-uri "code_statistics" version))
4984 (sha256
4985 (base32
4986 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
4987 (build-system ruby-build-system)
4988 (arguments
4989 `(#:tests? #f)) ; Not all test code is included in gem.
4990 (synopsis "Port of the rails 'rake stats' method")
4991 (description
4992 "This gem is a port of the rails 'rake stats' method so it can be made
4993more robust and work for non rails projects.")
4994 (home-page "http://github.com/danmayer/code_statistics")
4995 (license license:expat)))
f90c25c1
CL
4996
4997(define-public ruby-rubypants
4998 (package
4999 (name "ruby-rubypants")
5000 (version "0.6.0")
5001 (source (origin
5002 (method url-fetch)
5003 (uri (rubygems-uri "rubypants" version))
5004 (sha256
5005 (base32
5006 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
5007 (build-system ruby-build-system)
5008 (arguments
5009 '(#:tests? #f)) ; need Codecov
5010 (synopsis "Port of the smart-quotes library SmartyPants")
5011 (description
5012 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
5013original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
5014and BBEdit that easily translates plain ASCII punctuation characters into
5015smart typographic punctuation HTML entities.")
5016 (home-page "https://github.com/jmcnevin/rubypants")
5017 (license license:bsd-2)))
beb34835
CL
5018
5019(define-public ruby-org-ruby
5020 (package
5021 (name "ruby-org-ruby")
5022 (version "0.9.12")
5023 (source (origin
5024 (method url-fetch)
5025 (uri (rubygems-uri "org-ruby" version))
5026 (sha256
5027 (base32
5028 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
5029 (build-system ruby-build-system)
5030 (arguments
5031 '(#:tests? #f)) ; no rakefile
5032 (propagated-inputs
5033 `(("ruby-rubypants" ,ruby-rubypants)))
5034 (synopsis "Org-mode parser written in Ruby")
5035 (description
5036 "Org-ruby is an org-mode parser written in Ruby. The most significant
5037thing this library does today is convert org-mode files to HTML or Textile or
5038Markdown.")
5039 (home-page "https://github.com/wallyqs/org-ruby")
5040 (license license:expat)))
670ee20a
BW
5041
5042(define-public ruby-rake
5043 (package
5044 (name "ruby-rake")
d6fb32b8 5045 (version "12.3.1")
670ee20a
BW
5046 (source
5047 (origin
5048 (method url-fetch)
5049 (uri (rubygems-uri "rake" version))
5050 (sha256
5051 (base32
d6fb32b8 5052 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
670ee20a
BW
5053 (build-system ruby-build-system)
5054 (native-inputs
5055 `(("bundler" ,bundler)))
5056 (synopsis "Rake is a Make-like program implemented in Ruby")
5057 (description
5058 "Rake is a Make-like program where tasks and dependencies are specified
5059in standard Ruby syntax.")
5060 (home-page "https://github.com/ruby/rake")
5061 (license license:expat)))
45498f51 5062
1f10e28d 5063(define-public ruby-childprocess-0.6
45498f51
DM
5064 (package
5065 (name "ruby-childprocess")
1f10e28d 5066 (version "0.6.3")
45498f51
DM
5067 (source
5068 (origin
5069 (method url-fetch)
5070 (uri (rubygems-uri "childprocess" version))
5071 (sha256
5072 (base32
1f10e28d 5073 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
45498f51
DM
5074 (build-system ruby-build-system)
5075 (arguments
5076 `(#:tests? #f))
5077 (native-inputs
5078 `(("bundler" ,bundler)
5079 ("ruby-rspec" ,ruby-rspec)))
5080 (propagated-inputs
5081 `(("ruby-ffi" ,ruby-ffi)))
5082 (synopsis "Control external programs running in the background, in Ruby")
5083 (description "@code{childprocess} provides a gem to control external
5084programs running in the background, in Ruby.")
5085 (home-page "http://github.com/enkessler/childprocess")
5086 (license license:expat)))
1f10e28d
DM
5087
5088(define-public ruby-childprocess
5089 (package
5090 (inherit ruby-childprocess-0.6)
5091 (name "ruby-childprocess")
5092 (version "0.9.0")
5093 (source
5094 (origin
5095 (method url-fetch)
5096 (uri (rubygems-uri "childprocess" version))
5097 (sha256
5098 (base32
5099 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
0d16905b
JL
5100
5101(define-public ruby-public-suffix
5102 (package
5103 (name "ruby-public-suffix")
5104 (version "3.0.3")
5105 (source (origin
5106 (method url-fetch)
5107 (uri (rubygems-uri "public_suffix" version))
5108 (sha256
5109 (base32
5110 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
5111 (build-system ruby-build-system)
5112 (arguments
5113 ;; Tests require network
5114 `(#:tests? #f))
5115 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
5116 (synopsis "Domain name parser")
5117 (description "The gem @code{public_suffix} is a domain name parser,
5118written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
5119is one under which Internet users can (or historically could) directly
5120register names. Some examples of public suffixes are @code{.com},
5121@code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
5122all known public suffixes.")
5123 (license license:expat)))
6f2c4efb
JL
5124
5125(define-public ruby-addressable
5126 (package
5127 (name "ruby-addressable")
5128 (version "2.5.2")
5129 (source (origin
5130 (method url-fetch)
5131 (uri (rubygems-uri "addressable" version))
5132 (sha256
5133 (base32
5134 "0viqszpkggqi8hq87pqp0xykhvz60g99nwmkwsb0v45kc2liwxvk"))))
5135 (build-system ruby-build-system)
5136 (propagated-inputs
5137 `(("ruby-public-suffix" ,ruby-public-suffix)))
5138 (arguments
5139 ;; No test target
5140 `(#:tests? #f))
5141 (home-page "https://github.com/sporkmonger/addressable")
5142 (synopsis "Alternative URI implementation")
5143 (description "Addressable is a replacement for the URI implementation that
5144is part of Ruby's standard library. It more closely conforms to RFC 3986,
5145RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
5146 (license license:asl2.0)))
9c7f15c0
JL
5147
5148(define-public ruby-colorator
5149 (package
5150 (name "ruby-colorator")
5151 (version "1.1.0")
5152 (source (origin
5153 (method url-fetch)
5154 (uri (rubygems-uri "colorator" version))
5155 (sha256
5156 (base32
5157 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
5158 (build-system ruby-build-system)
5159 (arguments
5160 ;; No test target
5161 `(#:tests? #f))
5162 (home-page "http://octopress.org/colorator/")
5163 (synopsis "Terminal color library")
5164 (description "Colorator is a Ruby gem that helps you colorize your text
5165for the terminal.")
5166 (license license:expat)))
78b9c291
JL
5167
5168(define-public ruby-command-line-reporter
5169 (package
5170 (name "ruby-command-line-reporter")
5171 (version "4.0.0")
5172 (source (origin
5173 (method url-fetch)
5174 (uri (rubygems-uri "command_line_reporter" version))
5175 (sha256
5176 (base32
5177 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
5178 (build-system ruby-build-system)
5179 (arguments
5180 ;; No Rakefile
5181 `(#:tests? #f
5182 #:phases
5183 (modify-phases %standard-phases
5184 (add-before 'build 'fix-dependencies
5185 (lambda _
5186 (substitute* ".gemspec"
5187 ;; colored is unmaintained
5188 (("colored") "colorator")
5189 ;; colorator version
5190 (("= 1.2") "= 1.1"))
5191 #t)))))
5192 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
5193 (home-page "https://github.com/wbailey/command_line_reporter")
5194 (synopsis "Report production while executing Ruby scripts")
5195 (description "This gem provides a DSL that makes it easy to write reports
5196of various types in ruby. It eliminates the need to litter your source with
5197puts statements, instead providing a more readable, expressive interface to
5198your application.")
5199 (license license:asl2.0)))