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