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