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