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