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