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