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