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