1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 ng0 <contact.ng0@cryptolab.net>
9 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
11 ;;; This file is part of GNU Guix.
13 ;;; GNU Guix is free software; you can redistribute it and/or modify it
14 ;;; under the terms of the GNU General Public License as published by
15 ;;; the Free Software Foundation; either version 3 of the License, or (at
16 ;;; your option) any later version.
18 ;;; GNU Guix is distributed in the hope that it will be useful, but
19 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 ;;; GNU General Public License for more details.
23 ;;; You should have received a copy of the GNU General Public License
24 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
26 (define-module (gnu packages ruby)
27 #:use-module ((guix licenses) #:prefix license:)
28 #:use-module (gnu packages)
29 #:use-module (gnu packages base)
30 #:use-module (gnu packages compression)
31 #:use-module (gnu packages databases)
32 #:use-module (gnu packages readline)
33 #:use-module (gnu packages autotools)
34 #:use-module (gnu packages java)
35 #:use-module (gnu packages libffi)
36 #:use-module (gnu packages python)
37 #:use-module (gnu packages ragel)
38 #:use-module (gnu packages tls)
39 #:use-module (gnu packages version-control)
40 #:use-module (guix packages)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix utils)
44 #:use-module (guix build-system gnu)
45 #:use-module (gnu packages xml)
46 #:use-module (gnu packages web)
47 #:use-module (guix build-system ruby))
56 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
57 (version-major+minor version)
58 "/ruby-" version ".tar.xz"))
61 "0dgp4ypk3smrsbh2c249n5pl6nqhpd2igq9484dbsh81sf08k2kl"))
62 (modules '((guix build utils)))
64 ;; Remove bundled libffi
65 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
67 (build-system gnu-build-system)
69 `(#:test-target "test"
71 (modify-phases %standard-phases
72 (add-before 'configure 'replace-bin-sh-and-remove-libffi
74 (substitute* '("Makefile.in"
79 "test/rubygems/test_gem_ext_configure_builder.rb"
80 "test/rdoc/test_rdoc_parser.rb"
81 "test/ruby/test_rubyoptions.rb"
82 "test/ruby/test_process.rb"
83 "test/ruby/test_system.rb"
85 (("/bin/sh") (which "sh")))
88 `(("readline" ,readline)
94 (list (search-path-specification
96 (files (list (string-append "lib/ruby/gems/"
97 (version-major+minor version)
99 (synopsis "Programming language interpreter")
100 (description "Ruby is a dynamic object-oriented programming language with
101 a focus on simplicity and productivity.")
102 (home-page "https://ruby-lang.org")
103 (license license:ruby)))
105 (define-public ruby-2.3
112 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
113 (version-major+minor version)
114 "/ruby-" version ".tar.xz"))
117 "1npzcnq5kh0f9y88w5gj4v6ln8csr91361k3r43dmhlhn6mpsfkx"))
118 (modules '((guix build utils)))
120 ;; Remove bundled libffi
121 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
124 (define-public ruby-2.2
125 (package (inherit ruby)
130 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
131 (version-major+minor version)
132 "/ruby-" version ".tar.xz"))
135 "1c31slidv2bdnnir3qfmdjs193b5s2ycb9pnf1lc55kk0cazrsip"))))))
137 (define-public ruby-2.1
138 (package (inherit ruby)
143 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
144 (version-major+minor version)
145 "/ruby-" version ".tar.bz2"))
148 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
150 `(#:test-target "test"
153 (modify-phases %standard-phases
154 (add-before 'configure 'replace-bin-sh
156 (substitute* '("Makefile.in"
161 (("/bin/sh") (which "sh")))
164 (list (search-path-specification
165 (variable "GEM_PATH")
166 (files (list (string-append "lib/ruby/gems/"
167 (version-major+minor version)
170 (define-public ruby-1.8
171 (package (inherit ruby)
172 (version "1.8.7-p374")
176 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
177 (version-major+minor version)
178 "/ruby-" version ".tar.bz2"))
181 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
182 (native-search-paths '())
184 `(#:test-target "test"
187 (modify-phases %standard-phases
188 (add-before 'configure 'replace-bin-sh
190 (substitute* '("Makefile.in"
195 (("/bin/sh") (which "sh")))
198 (define-public ruby-hoe
204 (uri (rubygems-uri "hoe" version))
207 "03r8nsw4n4mnia9iqiqk9kqhvrl96m2i81j4yg8cpnppd8vk7vlb"))))
208 (build-system ruby-build-system)
209 (synopsis "Ruby project management helper")
211 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
212 maintain, and release projects and includes a dynamic plug-in system allowing
213 for easy extensibility. Hoe ships with plug-ins for all the usual project
214 tasks including rdoc generation, testing, packaging, deployment, and
216 (home-page "http://www.zenspider.com/projects/hoe.html")
217 (license license:expat)))
219 (define-public ruby-rake-compiler
221 (name "ruby-rake-compiler")
225 (uri (rubygems-uri "rake-compiler" version))
228 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
229 (build-system ruby-build-system)
231 '(#:tests? #f)) ; needs cucumber
232 (synopsis "Building and packaging helper for Ruby native extensions")
233 (description "Rake-compiler provides a framework for building and
234 packaging native C and Java extensions in Ruby.")
235 (home-page "https://github.com/rake-compiler/rake-compiler")
236 (license license:expat)))
238 (define-public ruby-i18n
244 (uri (rubygems-uri "i18n" version))
247 "1i5z1ykl8zhszsxcs8mzl8d0dxgs3ylz8qlzrw74jb0gplkx6758"))))
248 (build-system ruby-build-system)
250 '(#:tests? #f)) ; no tests
251 (synopsis "Internationalization library for Ruby")
252 (description "Ruby i18n is an internationalization and localization
253 solution for Ruby programs. It features translation and localization,
254 interpolation of values to translations, pluralization, customizable
255 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
256 translation data, custom key/scope separator, custom exception handlers, and
257 an extensible architecture with a swappable backend.")
258 (home-page "https://github.com/svenfuchs/i18n")
259 (license license:expat)))
261 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
262 ;; dependencies use RSpec for their test suites! To avoid these circular
263 ;; dependencies, we disable tests for all of the RSpec-related packages.
264 (define ruby-rspec-support
266 (name "ruby-rspec-support")
270 (uri (rubygems-uri "rspec-support" version))
273 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
274 (build-system ruby-build-system)
276 '(#:tests? #f)) ; avoid dependency cycles
277 (synopsis "RSpec support library")
278 (description "Support utilities for RSpec gems.")
279 (home-page "https://github.com/rspec/rspec-support")
280 (license license:expat)))
282 (define-public ruby-rspec-core
284 (name "ruby-rspec-core")
288 (uri (rubygems-uri "rspec-core" version))
291 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
292 (build-system ruby-build-system)
294 '(#:tests? #f)) ; avoid dependency cycles
296 `(("ruby-rspec-support" ,ruby-rspec-support)))
297 (synopsis "RSpec core library")
298 (description "Rspec-core provides the RSpec test runner and example
300 (home-page "https://github.com/rspec/rspec-core")
301 (license license:expat)))
303 (define-public ruby-rspec-core-2
304 (package (inherit ruby-rspec-core)
308 (uri (rubygems-uri "rspec-core" version))
311 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
312 (propagated-inputs `())))
314 (define-public ruby-diff-lcs
316 (name "ruby-diff-lcs")
320 (uri (rubygems-uri "diff-lcs" version))
323 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
324 (build-system ruby-build-system)
326 '(#:tests? #f)) ; avoid dependency cycles
327 (synopsis "Compute the difference between two Enumerable sequences")
328 (description "Diff::LCS computes the difference between two Enumerable
329 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
330 It includes utilities to create a simple HTML diff output format and a
331 standard diff-like tool.")
332 (home-page "https://github.com/halostatue/diff-lcs")
333 (license license:expat)))
335 (define-public ruby-rspec-expectations
337 (name "ruby-rspec-expectations")
341 (uri (rubygems-uri "rspec-expectations" version))
344 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
345 (build-system ruby-build-system)
347 '(#:tests? #f)) ; avoid dependency cycles
349 `(("ruby-rspec-support" ,ruby-rspec-support)
350 ("ruby-diff-lcs" ,ruby-diff-lcs)))
351 (synopsis "RSpec expectations library")
352 (description "Rspec-expectations provides a simple API to express expected
353 outcomes of a code example.")
354 (home-page "https://github.com/rspec/rspec-expectations")
355 (license license:expat)))
357 (define-public ruby-rspec-expectations-2
358 (package (inherit ruby-rspec-expectations)
362 (uri (rubygems-uri "rspec-expectations" version))
365 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
367 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
369 (define-public ruby-rspec-mocks
371 (name "ruby-rspec-mocks")
375 (uri (rubygems-uri "rspec-mocks" version))
378 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
379 (build-system ruby-build-system)
381 '(#:tests? #f)) ; avoid dependency cycles
383 `(("ruby-rspec-support" ,ruby-rspec-support)
384 ("ruby-diff-lcs" ,ruby-diff-lcs)))
385 (synopsis "RSpec stubbing and mocking library")
386 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
387 support for stubbing and mocking.")
388 (home-page "https://github.com/rspec/rspec-mocks")
389 (license license:expat)))
391 (define-public ruby-rspec-mocks-2
392 (package (inherit ruby-rspec-mocks)
396 (uri (rubygems-uri "rspec-mocks" version))
399 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
401 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
403 (define-public ruby-rspec
409 (uri (rubygems-uri "rspec" version))
412 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
413 (build-system ruby-build-system)
415 '(#:tests? #f)) ; avoid dependency cycles
417 `(("ruby-rspec-core" ,ruby-rspec-core)
418 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
419 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
420 (synopsis "Behavior-driven development framework for Ruby")
421 (description "RSpec is a behavior-driven development (BDD) framework for
422 Ruby. This meta-package includes the RSpec test runner, along with the
423 expectations and mocks frameworks.")
424 (home-page "http://rspec.info/")
425 (license license:expat)))
427 (define-public ruby-rspec-2
428 (package (inherit ruby-rspec)
432 (uri (rubygems-uri "rspec" version))
435 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
437 `(("ruby-rspec-core" ,ruby-rspec-core-2)
438 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
439 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
441 ;; Bundler is yet another source of circular dependencies, so we must disable
442 ;; its test suite as well.
443 (define-public bundler
449 (uri (rubygems-uri "bundler" version))
452 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
453 (build-system ruby-build-system)
455 '(#:tests? #f)) ; avoid dependency cycles
456 (synopsis "Ruby gem bundler")
457 (description "Bundler automatically downloads and installs a list of gems
458 specified in a \"Gemfile\", as well as their dependencies.")
459 (home-page "http://bundler.io/")
460 (license license:expat)))
462 (define-public ruby-builder
464 (name "ruby-builder")
468 (uri (rubygems-uri "builder" version))
471 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
472 (build-system ruby-build-system)
475 (modify-phases %standard-phases
476 (add-after 'unpack 'do-not-use-rvm
478 (substitute* "rakelib/tags.rake"
479 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
481 (synopsis "Ruby library to create structured data")
482 (description "Builder provides a number of builder objects that make it
483 easy to create structured data. Currently the following builder objects are
484 supported: XML Markup and XML Events.")
485 (home-page "https://github.com/jimweirich/builder")
486 (license license:expat)))
488 (define-public ruby-rjb
494 (uri (rubygems-uri "rjb" version))
497 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
498 (build-system ruby-build-system)
500 `(#:tests? #f ; no rakefile
502 (modify-phases %standard-phases
503 (add-before 'build 'set-java-home
504 (lambda* (#:key inputs #:allow-other-keys)
505 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
508 `(("jdk" ,icedtea "jdk")))
509 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
510 (description "RJB is a bridge program that connects Ruby and Java via the
511 Java Native Interface.")
512 (home-page "http://www.artonx.org/collabo/backyard/?RubyJavaBridge")
513 (license license:lgpl2.1+)))
515 (define-public ruby-log4r
522 (uri (rubygems-uri "log4r" version))
525 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
526 (build-system ruby-build-system)
528 '(#:tests? #f)) ; no Rakefile in gem
529 (synopsis "Flexible logging library for Ruby")
530 (description "Comprehensive and flexible logging library written
531 in Ruby for use in Ruby programs. It features a hierarchical logging
532 system of any number of levels, custom level names, logger
533 inheritance, multiple output destinations per log event, execution
534 tracing, custom formatting, thread safteyness, XML and YAML
535 configuration, and more.")
536 (home-page "http://log4r.rubyforge.org/")
537 (license license:bsd-3)))
539 (define-public ruby-atoulme-antwrap
541 (name "ruby-atoulme-antwrap")
545 (uri (rubygems-uri "atoulme-Antwrap" version))
548 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
549 (build-system ruby-build-system)
550 ;; Test data required for most of the tests are not included.
551 (arguments `(#:tests? #f))
553 `(("ruby-hoe" ,ruby-hoe)))
555 `(("ruby-rjb" ,ruby-rjb)))
556 (synopsis "Ruby wrapper for the Ant build tool")
557 (description "Antwrap is a Ruby module that wraps the Apache Ant build
558 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
560 (home-page "http://rubyforge.org/projects/antwrap/")
561 (license license:expat)))
563 (define-public ruby-atoulme-saikuro
565 (name "ruby-atoulme-saikuro")
569 (uri (rubygems-uri "atoulme-Saikuro" version))
572 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
573 (build-system ruby-build-system)
574 ;; FIXME: There are no unit tests. The tests are demonstrations of the
576 (arguments `(#:tests? #f))
577 (synopsis "Cyclomatic complexity analyzer")
578 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
579 given Ruby source code Saikuro will generate a report listing the cyclomatic
580 complexity of each method found. In addition, Saikuro counts the number of
581 lines per method and can generate a listing of the number of tokens on each
583 (home-page "http://www.github.com/atoulme/Saikuro")
584 ;; File headers contain the BSD-3 license and the README.rdoc says that
585 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
586 ;; of the Expat license.
587 (license license:bsd-3)))
589 (define-public ruby-ci-reporter
591 (name "ruby-ci-reporter")
595 (uri (rubygems-uri "ci_reporter" version))
598 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
599 (build-system ruby-build-system)
601 `(#:test-target "rspec"))
603 `(("ruby-builder" ,ruby-builder)))
605 `(("bundler" ,bundler)
606 ("ruby-rspec" ,ruby-rspec)))
607 (synopsis "Generate XML reports of runs test")
609 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
610 you to generate XML reports of your test runs. The resulting files can be
611 read by a continuous integration system that understands Ant's JUnit report
613 (home-page "https://github.com/nicksieger/ci_reporter")
614 (license license:expat)))
616 (define-public ruby-saikuro-treemap
618 (name "ruby-saikuro-treemap")
622 (uri (rubygems-uri "saikuro_treemap" version))
625 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
626 (build-system ruby-build-system)
627 ;; Some of the tests fail because the generated JSON has keys in a
628 ;; different order. This is a problem with the test suite rather than any
629 ;; of the involved libraries.
630 (arguments `(#:tests? #f))
632 `(("ruby-json-pure" ,ruby-json-pure)
633 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
634 (synopsis "Generate complexity treemap based on saikuro analysis")
636 "This gem generates a treemap showing the complexity of Ruby code on
637 which it is run. It uses Saikuro under the covers to analyze Ruby code
639 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
640 (license license:expat)))
642 (define-public ruby-orderedhash
644 (name "ruby-orderedhash")
648 (uri (rubygems-uri "orderedhash" version))
651 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
652 (build-system ruby-build-system)
654 '(#:tests? #f)) ; no test suite
655 (synopsis "Ruby library providing an order-preserving hash")
656 (description "Orderedhash is a Ruby library providing a hash
657 implementation that preserves the order of items and features some array-like
659 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
660 (license license:public-domain)))
662 (define-public ruby-libxml
669 (uri (rubygems-uri "libxml-ruby" version))
672 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
673 (build-system ruby-build-system)
676 ("libxml2" ,libxml2)))
678 '(#:tests? #f ; test suite hangs for unknown reason
681 (string-append "--with-xml2-include="
682 (assoc-ref %build-inputs "libxml2")
683 "/include/libxml2" ))))
684 (synopsis "Ruby bindings for GNOME Libxml2")
685 (description "The Libxml-Ruby project provides Ruby language bindings for
686 the GNOME Libxml2 XML toolkit.")
687 (home-page "http://xml4r.github.com/libxml-ruby")
688 (license license:expat)))
690 (define-public ruby-xml-simple
692 (name "ruby-xml-simple")
696 (uri (rubygems-uri "xml-simple" version))
699 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
700 (build-system ruby-build-system)
702 '(#:tests? #f)) ; no test suite
703 (synopsis "Simple Ruby library for XML processing")
704 (description "This library provides a simple API for XML processing in
706 (home-page "https://github.com/maik/xml-simple")
707 (license license:ruby)))
709 (define-public ruby-thor
715 (uri (rubygems-uri "thor" version))
718 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
719 (build-system ruby-build-system)
721 '(#:tests? #f)) ; no test suite
723 `(("bundler" ,bundler)))
724 (synopsis "Ruby toolkit for building command-line interfaces")
725 (description "Thor is a toolkit for building powerful command-line
727 (home-page "http://whatisthor.com/")
728 (license license:expat)))
730 (define-public ruby-lumberjack
732 (name "ruby-lumberjack")
736 (uri (rubygems-uri "lumberjack" version))
739 "0yz26k9mi0djx1qvlmvdw1xw2yf7a2rkfmnb2j0d28kms33xpibp"))))
740 (build-system ruby-build-system)
742 `(("ruby-rspec" ,ruby-rspec)
743 ("ruby-timecop" ,ruby-timecop)))
744 (synopsis "Logging utility library for Ruby")
745 (description "Lumberjack is a simple logging utility that can be a drop in
746 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
747 for automatically rolling log files even with multiple processes writing the
749 (home-page "https://github.com/bdurand/lumberjack")
750 (license license:expat)))
752 (define-public ruby-nenv
758 (uri (rubygems-uri "nenv" version))
761 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
762 (build-system ruby-build-system)
764 `(#:tests? #f)) ; no tests included
766 `(("ruby-rspec" ,ruby-rspec)
767 ("bundler" ,bundler)))
768 (synopsis "Ruby interface for modifying the environment")
769 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
770 and inspect the environment.")
771 (home-page "https://github.com/e2/nenv")
772 (license license:expat)))
774 (define-public ruby-permutation
776 (name "ruby-permutation")
780 (uri (rubygems-uri "permutation" version))
783 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
784 (build-system ruby-build-system)
787 (modify-phases %standard-phases
788 (add-after 'unpack 'fix-rakefile
790 (substitute* "Rakefile"
791 (("require 'rake/gempackagetask'")
792 "require 'rubygems/package_task'")
793 (("include Config") ""))
797 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
798 (synopsis "Library to perform operations with sequence permutations")
799 (description "This package provides a Ruby library to perform different
800 operations with permutations of sequences, such as strings and arrays.")
801 (home-page "http://flori.github.io/permutation")
802 (license license:gpl2))) ; GPL 2 only
804 (define-public ruby-shellany
806 (name "ruby-shellany")
810 (uri (rubygems-uri "shellany" version))
813 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
814 (build-system ruby-build-system)
816 `(#:test-target "default"
818 (modify-phases %standard-phases
819 (add-after 'unpack 'fix-version-test
821 (substitute* "spec/shellany_spec.rb"
822 (("^RSpec") "require \"shellany\"\nRSpec"))
825 `(("ruby-rspec" ,ruby-rspec)
826 ("ruby-nenv" ,ruby-nenv)
827 ("bundler" ,bundler)))
828 (synopsis "Capture command output")
829 (description "Shellany is a Ruby library providing functions to capture
830 the output produced by running shell commands.")
831 (home-page "https://rubygems.org/gems/shellany")
832 (license license:expat)))
834 (define-public ruby-notiffany
836 (name "ruby-notiffany")
840 (uri (rubygems-uri "notiffany" version))
843 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
844 (build-system ruby-build-system)
845 ;; Tests are not included in the gem.
846 (arguments `(#:tests? #f))
848 `(("ruby-shellany" ,ruby-shellany)
849 ("ruby-nenv" ,ruby-nenv)))
851 `(("bundler" ,bundler)))
852 (synopsis "Wrapper libray for notification libraries")
853 (description "Notiffany is a Ruby wrapper libray for notification
854 libraries such as Libnotify.")
855 (home-page "https://github.com/guard/notiffany")
856 (license license:expat)))
858 (define-public ruby-formatador
860 (name "ruby-formatador")
864 (uri (rubygems-uri "formatador" version))
867 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
868 (build-system ruby-build-system)
869 ;; Circular dependency: Tests require ruby-shindo, which requires
870 ;; ruby-formatador at runtime.
871 (arguments `(#:tests? #f))
872 (synopsis "Ruby library to format text on stdout")
873 (description "Formatador is a Ruby library to format text printed to the
874 standard output stream.")
875 (home-page "https://github.com/geemus/formatador")
876 (license license:expat)))
878 (define-public ruby-shindo
884 (uri (rubygems-uri "shindo" version))
887 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
888 (build-system ruby-build-system)
890 `(#:test-target "shindo_tests"
892 (modify-phases %standard-phases
893 (add-after 'unpack 'fix-tests
895 (substitute* "Rakefile"
896 (("system \"shindo") "system \"./bin/shindo")
897 ;; This test doesn't work, so we disable it.
898 (("fail \"The build_error test should fail") "#"))
901 `(("ruby-formatador" ,ruby-formatador)))
902 (synopsis "Simple depth first Ruby testing")
903 (description "Shindo is a simple depth first testing library for Ruby.")
904 (home-page "https://github.com/geemus/shindo")
905 (license license:expat)))
907 (define-public ruby-rubygems-tasks
909 (name "ruby-rubygems-tasks")
913 (uri (rubygems-uri "rubygems-tasks" version))
916 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
917 (build-system ruby-build-system)
918 ;; Tests need Internet access.
919 (arguments `(#:tests? #f))
921 `(("ruby-rspec" ,ruby-rspec)
922 ("ruby-yard" ,ruby-yard)))
923 (synopsis "Rake tasks for managing and releasing Ruby Gems")
924 (description "Rubygems-task provides Rake tasks for managing and releasing
926 (home-page "https://github.com/postmodern/rubygems-tasks")
927 (license license:expat)))
929 (define-public ruby-ffi
935 (uri (rubygems-uri "ffi" version))
938 "034f52xf7zcqgbvwbl20jwdyjwznvqnwpbaps9nk18v9lgb1dpx0"))))
939 (build-system ruby-build-system)
940 ;; FIXME: Before running tests the build system attempts to build libffi
942 (arguments `(#:tests? #f))
944 `(("ruby-rake-compiler" ,ruby-rake-compiler)
945 ("ruby-rspec" ,ruby-rspec)
946 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
948 `(("libffi" ,libffi)))
949 (synopsis "Ruby foreign function interface library")
950 (description "Ruby-FFI is a Ruby extension for programmatically loading
951 dynamic libraries, binding functions within them, and calling those functions
952 from Ruby code. Moreover, a Ruby-FFI extension works without changes on Ruby
954 (home-page "http://wiki.github.com/ffi/ffi")
955 (license license:bsd-3)))
957 (define-public ruby-simplecov-html
959 (name "ruby-simplecov-html")
963 (uri (rubygems-uri "simplecov-html" version))
966 "0f3psphismgp6jp1fxxz09zbswh7m2xxxr6gqlzdh7sgv415clvm"))))
967 (build-system ruby-build-system)
968 (arguments `(#:tests? #f)) ; there are no tests
970 `(("bundler" ,bundler)))
971 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
972 (description "This package provides the default HTML formatter for
973 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
974 (home-page "https://github.com/colszowka/simplecov-html")
975 (license license:expat)))
977 (define-public ruby-simplecov
979 (name "ruby-simplecov")
983 (uri (rubygems-uri "simplecov" version))
986 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
987 (build-system ruby-build-system)
988 ;; Simplecov depends on rubocop for code style checking at build time.
989 ;; Rubocop needs simplecov at build time.
990 (arguments `(#:tests? #f))
992 `(("ruby-json" ,ruby-json)
993 ("ruby-docile" ,ruby-docile)
994 ("ruby-simplecov-html" ,ruby-simplecov-html)))
996 `(("bundler" ,bundler)))
997 (synopsis "Code coverage framework for Ruby")
998 (description "SimpleCov is a code coverage framework for Ruby with a
999 powerful configuration library and automatic merging of coverage across test
1001 (home-page "https://github.com/colszowka/simplecov")
1002 (license license:expat)))
1004 (define-public ruby-useragent
1006 (name "ruby-useragent")
1010 (uri (rubygems-uri "useragent" version))
1013 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1014 (build-system ruby-build-system)
1016 '(#:tests? #f)) ; no test suite
1017 (synopsis "HTTP user agent parser for Ruby")
1018 (description "UserAgent is a Ruby library that parses and compares HTTP
1020 (home-page "https://github.com/gshutler/useragent")
1021 (license license:expat)))
1023 (define-public ruby-bacon
1029 (uri (rubygems-uri "bacon" version))
1032 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1033 (build-system ruby-build-system)
1034 (synopsis "Small RSpec clone")
1035 (description "Bacon is a small RSpec clone providing all essential
1037 (home-page "https://github.com/chneukirchen/bacon")
1038 (license license:expat)))
1040 (define-public ruby-connection-pool
1042 (name "ruby-connection-pool")
1046 (uri (rubygems-uri "connection_pool" version))
1049 "17vpaj6kyf2i8bimaxz7rg1kyadf4d10642ja67qiqlhwgczl2w7"))))
1050 (build-system ruby-build-system)
1052 `(("bundler" ,bundler)))
1053 (synopsis "Generic connection pool for Ruby")
1054 (description "Connection_pool provides a generic connection pooling
1055 interface for Ruby programs.")
1056 (home-page "https://github.com/mperham/connection_pool")
1057 (license license:expat)))
1059 (define-public ruby-net-http-persistent
1061 (name "ruby-net-http-persistent")
1065 (uri (rubygems-uri "net-http-persistent" version))
1068 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1069 (build-system ruby-build-system)
1071 `(("ruby-connection-pool" ,ruby-connection-pool)
1072 ("ruby-hoe" ,ruby-hoe)))
1073 (synopsis "Persistent HTTP connection manager")
1074 (description "Net::HTTP::Persistent manages persistent HTTP connections
1075 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1076 (home-page "https://github.com/drbrain/net-http-persistent")
1077 (license license:expat)))
1079 (define-public ruby-power-assert
1081 (name "ruby-power-assert")
1085 (uri (rubygems-uri "power_assert" version))
1088 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1089 (build-system ruby-build-system)
1091 `(("bundler" ,bundler)))
1092 (synopsis "Assert library with descriptive assertion messages")
1093 (description "Power-assert is an assertion library providing descriptive
1094 assertion messages for tests.")
1095 (home-page "https://github.com/k-tsj/power_assert")
1096 (license (list license:bsd-2 license:ruby))))
1098 (define-public ruby-locale
1100 (name "ruby-locale")
1104 (uri (rubygems-uri "locale" version))
1107 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1108 (build-system ruby-build-system)
1109 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1110 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1111 ;; dependency cycle we disable tests.
1112 (arguments `(#:tests? #f))
1114 `(("bundler" ,bundler)
1115 ("ruby-yard" ,ruby-yard)))
1116 (synopsis "Ruby library providing basic localization APIs")
1118 "Ruby-Locale is the pure ruby library which provides basic APIs for
1120 (home-page "https://github.com/ruby-gettext/locale")
1121 (license (list license:lgpl3+ license:ruby))))
1123 (define-public ruby-text
1129 (uri (rubygems-uri "text" version))
1132 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1133 (build-system ruby-build-system)
1134 (synopsis "Collection of text algorithms for Ruby")
1136 "This package provides a collection of text algorithms: Levenshtein,
1137 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1138 (home-page "https://github.com/threedaymonk/text")
1139 (license license:expat)))
1141 (define-public ruby-gettext
1143 (name "ruby-gettext")
1147 (uri (rubygems-uri "gettext" version))
1150 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1151 (build-system ruby-build-system)
1152 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1153 ;; which needs ruby-gettext. To break the dependency cycle we disable
1155 (arguments `(#:tests? #f))
1157 `(("ruby-locale" ,ruby-locale)
1158 ("ruby-text" ,ruby-text)))
1160 `(("bundler" ,bundler)
1161 ("ruby-yard" ,ruby-yard)))
1162 (synopsis "GNU gettext-like program for Ruby")
1164 "Gettext is a GNU gettext-like program for Ruby. The catalog
1165 file (po-file) used is the same as that used by GNU gettext, allowing you to
1166 use GNU gettext tools for maintenance.")
1167 (home-page "http://ruby-gettext.github.com/")
1168 (license (list license:lgpl3+ license:ruby))))
1170 (define-public ruby-packnga
1172 (name "ruby-packnga")
1176 (uri (rubygems-uri "packnga" version))
1179 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
1180 (build-system ruby-build-system)
1181 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1182 ;; To break the dependency cycle we disable tests.
1183 (arguments `(#:tests? #f))
1185 `(("ruby-gettext" ,ruby-gettext)
1186 ("ruby-yard" ,ruby-yard)))
1188 `(("bundler" ,bundler)))
1189 (synopsis "Utility library to package internationalized libraries")
1191 "Packnga is a library to translate to many languages using YARD.")
1192 (home-page "http://ranguba.org/packnga/")
1193 (license license:lgpl2.0+)))
1195 (define-public ruby-test-unit
1197 (name "ruby-test-unit")
1201 (uri (rubygems-uri "test-unit" version))
1204 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
1205 (build-system ruby-build-system)
1207 `(("ruby-power-assert" ,ruby-power-assert)))
1209 `(("bundler" ,bundler)
1210 ("ruby-packnga" ,ruby-packnga)
1211 ("ruby-yard" ,ruby-yard)))
1212 (synopsis "Unit testing framework for Ruby")
1213 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1214 on xUnit principles. These were originally designed by Kent Beck, creator of
1215 extreme programming software development methodology, for Smalltalk's SUnit.
1216 It allows writing tests, checking results and automated testing in Ruby.")
1217 (home-page "http://test-unit.github.io/")
1218 (license (list license:psfl license:ruby))))
1220 (define-public ruby-metaclass
1222 (name "ruby-metaclass")
1226 (uri (rubygems-uri "metaclass" version))
1229 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1230 (build-system ruby-build-system)
1233 (modify-phases %standard-phases
1234 (add-after 'unpack 'add-test-unit-to-search-path
1235 (lambda* (#:key inputs #:allow-other-keys)
1236 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1237 (test-unit-home (gem-home test-unit
1238 ,(package-version ruby))))
1239 (substitute* "Rakefile"
1240 (("t\\.libs << \"test\"" line)
1241 (string-append line "; t.libs << \""
1244 ,(package-version ruby-test-unit)
1248 `(("bundler" ,bundler)
1249 ("ruby-test-unit" ,ruby-test-unit)))
1250 (synopsis "Ruby library adding metaclass method to all objects")
1252 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1254 (home-page "https://github.com/floehopper/metaclass")
1255 (license license:expat)))
1257 (define-public ruby-blankslate
1259 (name "ruby-blankslate")
1263 (uri (rubygems-uri "blankslate" version))
1266 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1267 (build-system ruby-build-system)
1270 (modify-phases %standard-phases
1272 (lambda _ (zero? (system* "rspec" "spec/")))))))
1274 `(("bundler" ,bundler)
1275 ("ruby-rspec" ,ruby-rspec)))
1276 (synopsis "Abstract base class with no predefined methods")
1278 "BlankSlate provides an abstract base class with no predefined
1279 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1280 as a base class when writing classes that depend upon
1281 @code{method_missing} (e.g. dynamic proxies).")
1282 (home-page "https://github.com/masover/blankslate")
1283 (license license:expat)))
1285 (define-public ruby-instantiator
1287 (name "ruby-instantiator")
1291 (uri (rubygems-uri "instantiator" version))
1294 "0mfmqhg9xrv9i8i1kmphf15ywddhivyh2z3ccl0xjw8qy54zr21i"))))
1295 (build-system ruby-build-system)
1298 (modify-phases %standard-phases
1299 (add-after 'unpack 'add-test-unit-to-search-path
1300 (lambda* (#:key inputs #:allow-other-keys)
1301 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1302 (test-unit-home (gem-home test-unit ,(package-version
1304 (substitute* "Rakefile"
1305 (("t\\.libs << \"test\"" line)
1306 (string-append line "; t.libs << \""
1309 ,(package-version ruby-test-unit)
1313 `(("ruby-blankslate" ,ruby-blankslate)))
1315 `(("bundler" ,bundler)
1316 ("ruby-test-unit" ,ruby-test-unit)))
1317 (synopsis "Instantiate an arbitrary Ruby class")
1319 "Instantiator lets you instantiate an arbitrary Ruby class without
1320 knowing anything about the constructor.")
1321 (home-page "https://github.com/floehopper/instantiator")
1322 (license license:expat)))
1324 (define-public ruby-introspection
1326 (name "ruby-introspection")
1330 (uri (rubygems-uri "introspection" version))
1333 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
1334 (build-system ruby-build-system)
1337 (modify-phases %standard-phases
1338 (add-after 'unpack 'add-test-unit-to-search-path
1339 (lambda* (#:key inputs #:allow-other-keys)
1340 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1341 (test-unit-home (gem-home test-unit ,(package-version
1343 (substitute* "Rakefile"
1344 (("t\\.libs << \"test\"" line)
1345 (string-append line "; t.libs << \""
1348 ,(package-version ruby-test-unit)
1352 `(("ruby-instantiator" ,ruby-instantiator)
1353 ("ruby-metaclass" ,ruby-metaclass)))
1355 `(("bundler" ,bundler)
1356 ("ruby-blankslate" ,ruby-blankslate)
1357 ("ruby-test-unit" ,ruby-test-unit)))
1358 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1360 "Introspection provides tools to inspect the hierarchy of method
1361 definitions on a Ruby object.")
1362 (home-page "https://github.com/floehopper/introspection")
1363 (license license:expat)))
1365 (define-public ruby-redcarpet
1367 (name "ruby-redcarpet")
1371 (uri (rubygems-uri "redcarpet" version))
1374 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
1375 (build-system ruby-build-system)
1378 (modify-phases %standard-phases
1379 ;; The gem archive does not include the conformance tests.
1380 (add-after 'unpack 'disable-conformance-tests
1382 (substitute* "Rakefile"
1383 (("task :test => %w\\[test:unit test:conformance\\]")
1384 "task :test => %w[test:unit]"))
1387 `(("bundler" ,bundler)
1388 ("ruby-test-unit" ,ruby-test-unit)
1389 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1390 (synopsis "Extensible Markdown to (X)HTML converter")
1392 "Redcarpet is an extensible Ruby library for Markdown processing and
1393 conversion to (X)HTML.")
1394 (home-page "https://github.com/vmg/redcarpet")
1395 (license license:expat)))
1397 (define-public ruby-mocha
1403 (uri (rubygems-uri "mocha" version))
1406 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1407 (build-system ruby-build-system)
1410 (modify-phases %standard-phases
1411 (add-after 'unpack 'add-test-unit-to-search-path
1412 (lambda* (#:key inputs #:allow-other-keys)
1413 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1414 (test-unit-home (gem-home test-unit
1415 ,(package-version ruby))))
1416 (substitute* "Rakefile"
1417 (("t\\.libs << 'test'" line)
1418 (string-append line "; t.libs << \""
1421 ,(package-version ruby-test-unit)
1424 (add-before 'check 'use-latest-redcarpet
1426 (substitute* "mocha.gemspec"
1427 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1428 "<redcarpet>.freeze, [\">= 3\"]"))
1430 (add-before 'check 'hardcode-version
1432 ;; Mocha is undefined at build time
1433 (substitute* "Rakefile"
1434 (("#\\{Mocha::VERSION\\}") ,version))
1436 (add-before 'check 'remove-failing-test
1437 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1439 (delete-file "test/acceptance/stubbing_nil_test.rb")
1442 `(("ruby-metaclass" ,ruby-metaclass)))
1444 `(("bundler" ,bundler)
1445 ("ruby-yard" ,ruby-yard)
1446 ("ruby-introspection" ,ruby-introspection)
1447 ("ruby-test-unit" ,ruby-test-unit)
1448 ("ruby-redcarpet" ,ruby-redcarpet)))
1449 (synopsis "Mocking and stubbing library for Ruby")
1451 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1452 allows mocking and stubbing of methods on real (non-mock) classes.")
1453 (home-page "http://gofreerange.com/mocha/docs")
1454 (license license:expat)))
1456 (define-public ruby-net-ssh
1458 (name "ruby-net-ssh")
1462 (uri (rubygems-uri "net-ssh" version))
1465 "013p5jb4wy0cq7x7036piw2a3s1i9p752ki1srx2m289mpz4ml3q"))))
1466 (build-system ruby-build-system)
1468 `(("bundler" ,bundler)
1469 ("ruby-mocha" ,ruby-mocha)
1470 ("ruby-test-unit" ,ruby-test-unit)))
1471 (synopsis "Ruby implementation of the SSH2 client protocol")
1472 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1473 client protocol. It allows you to write programs that invoke and interact
1474 with processes on remote servers, via SSH2.")
1475 (home-page "https://github.com/net-ssh/net-ssh")
1476 (license license:expat)))
1478 (define-public ruby-minitest
1480 (name "ruby-minitest")
1484 (uri (rubygems-uri "minitest" version))
1487 "05521clw19lrksqgvg2kmm025pvdhdaniix52vmbychrn2jm7kz2"))))
1488 (build-system ruby-build-system)
1490 `(("ruby-hoe" ,ruby-hoe)))
1491 (synopsis "Small test suite library for Ruby")
1492 (description "Minitest provides a complete suite of Ruby testing
1493 facilities supporting TDD, BDD, mocking, and benchmarking.")
1494 (home-page "https://github.com/seattlerb/minitest")
1495 (license license:expat)))
1497 ;; This is the last release of Minitest 4, which is used by some packages.
1498 (define-public ruby-minitest-4
1499 (package (inherit ruby-minitest)
1503 (uri (rubygems-uri "minitest" version))
1506 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1509 (modify-phases %standard-phases
1510 (add-after 'unpack 'remove-unsupported-method
1512 (substitute* "Rakefile"
1513 (("self\\.rubyforge_name = .*") ""))
1515 (add-after 'build 'exclude-failing-tests
1517 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
1519 (delete-file "test/minitest/test_minitest_spec.rb")
1522 (define-public ruby-minitest-sprint
1524 (name "ruby-minitest-sprint")
1528 (uri (rubygems-uri "minitest-sprint" version))
1531 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
1532 (build-system ruby-build-system)
1534 `(("ruby-hoe" ,ruby-hoe)
1535 ("ruby-minitest" ,ruby-minitest)))
1536 (synopsis "Fast test suite runner for minitest")
1537 (description "Minitest-sprint is a test runner for minitest that makes it
1538 easier to re-run individual failing tests.")
1539 (home-page "https://github.com/seattlerb/minitest-sprint")
1540 (license license:expat)))
1542 (define-public ruby-minitest-bacon
1544 (name "ruby-minitest-bacon")
1548 (uri (rubygems-uri "minitest-bacon" version))
1551 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
1552 (build-system ruby-build-system)
1554 `(("ruby-hoe" ,ruby-hoe)))
1556 `(("ruby-minitest" ,ruby-minitest)))
1557 (synopsis "Bacon compatibility library for minitest")
1558 (description "Minitest-bacon extends minitest with bacon-like
1559 functionality, making it easier to migrate test suites from bacon to minitest.")
1560 (home-page "https://github.com/seattlerb/minitest-bacon")
1561 (license license:expat)))
1563 (define-public ruby-minitest-focus
1565 (name "ruby-minitest-focus")
1570 (uri (rubygems-uri "minitest-focus" version))
1573 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1574 (build-system ruby-build-system)
1576 `(("ruby-minitest" ,ruby-minitest)))
1578 `(("ruby-hoe" ,ruby-hoe)))
1579 (synopsis "Allows a few specific tests to be focused on")
1581 "@code{minitest-focus} gives the ability focus on a few tests with ease
1582 without having to use command-line arguments. It introduces a @code{focus}
1583 class method for use in testing classes, specifying that the next defined test
1585 (home-page "https://github.com/seattlerb/minitest-focus")
1586 (license license:expat)))
1588 (define-public ruby-minitest-pretty-diff
1589 ;; Use git reference because gem is out of date and does not contain testing
1590 ;; script. There are no releases on GitHub.
1591 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
1593 (name "ruby-minitest-pretty-diff")
1594 (version (string-append "0.1-1." (string-take commit 8)))
1598 (url "https://github.com/adammck/minitest-pretty_diff.git")
1600 (file-name (string-append name "-" version "-checkout"))
1603 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
1604 (build-system ruby-build-system)
1607 (modify-phases %standard-phases
1610 (zero? (system* "script/test")))))))
1612 `(("bundler" ,bundler)
1613 ("ruby-turn" ,ruby-turn)))
1614 (synopsis "Pretty-print hashes and arrays in MiniTest")
1616 "@code{minitest-pretty_diff} monkey-patches
1617 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
1618 diffing them. This makes it easier to spot differences between nested
1619 structures when tests fail.")
1620 (home-page "https://github.com/adammck/minitest-pretty_diff")
1621 (license license:expat))))
1623 (define-public ruby-minitest-moar
1625 (name "ruby-minitest-moar")
1630 (uri (rubygems-uri "minitest-moar" version))
1633 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
1634 (build-system ruby-build-system)
1637 (modify-phases %standard-phases
1638 (add-before 'check 'clean-dependencies
1640 ;; Remove all gems defined in the Gemfile because these are not
1642 (substitute* "Gemfile"
1644 ;; Remove byebug as not needed to run tests.
1645 (substitute* "test/test_helper.rb"
1646 (("require 'byebug'") ""))
1649 `(("bundler" ,bundler)
1650 ("ruby-minitest" ,ruby-minitest)))
1651 (synopsis "Extra features and changes to MiniTest")
1652 (description "@code{MiniTest Moar} add some additional features and
1653 changes some default behaviours in MiniTest. For instance, Moar replaces the
1654 MiniTest @code{Object#stub} with a global @code{stub} method.")
1655 (home-page "https://github.com/dockyard/minitest-moar")
1656 (license license:expat)))
1658 (define-public ruby-minitest-bonus-assertions
1660 (name "ruby-minitest-bonus-assertions")
1665 (uri (rubygems-uri "minitest-bonus-assertions" version))
1668 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
1669 (build-system ruby-build-system)
1672 (modify-phases %standard-phases
1673 (add-before 'check 'clean-dependencies
1675 ;; Remove unneeded require statement that would entail another
1677 (substitute* "test/minitest_config.rb"
1678 (("require 'minitest/bisect'") ""))
1681 `(("ruby-hoe" ,ruby-hoe)
1682 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
1683 ("ruby-minitest-focus" ,ruby-minitest-focus)
1684 ("ruby-minitest-moar" ,ruby-minitest-moar)))
1685 (synopsis "Bonus assertions for @code{Minitest}")
1687 "Minitest bonus assertions provides extra MiniTest assertions. For
1688 instance, it provides @code{assert_true}, @code{assert_false} and
1689 @code{assert_set_equal}.")
1690 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
1691 (license license:expat)))
1693 (define-public ruby-minitest-rg
1695 (name "ruby-minitest-rg")
1700 (uri (rubygems-uri "minitest-rg" version))
1703 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
1704 (build-system ruby-build-system)
1706 ;; Some tests fail even outside Guix, so disable tests.
1707 ;; https://github.com/blowmage/minitest-rg/issues/12
1708 ;; https://github.com/blowmage/minitest-rg/pull/13
1711 `(("ruby-minitest" ,ruby-minitest)))
1712 (synopsis "Coloured output for Minitest")
1714 "@code{minitest-rg} changes the colour of the output from Minitest.")
1715 (home-page "http://blowmage.com/minitest-rg")
1716 (license license:expat)))
1718 (define-public ruby-minitest-hooks
1720 (name "ruby-minitest-hooks")
1725 (uri (rubygems-uri "minitest-hooks" version))
1728 "05bngfyxwq1cflk568nhddgfrmws5ff6kiqax4skklsjnh71ykbi"))))
1729 (build-system ruby-build-system)
1731 '(#:test-target "spec"))
1733 `(("ruby-sequel" ,ruby-sequel)
1734 ("ruby-sqlite3" ,ruby-sqlite3)))
1735 (synopsis "Hooks for the minitest framework")
1737 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
1738 @code{around_all} hooks for Minitest. This allows, for instance, running each
1739 suite of specs inside a database transaction, running each spec inside its own
1740 savepoint inside that transaction. This can significantly speed up testing
1741 for specs that share expensive database setup code.")
1742 (home-page "https://github.com/jeremyevans/minitest-hooks")
1743 (license license:expat)))
1745 (define-public ruby-daemons
1747 (name "ruby-daemons")
1751 (uri (rubygems-uri "daemons" version))
1754 "1bmb4qrd95b5gl3ym5j3q6mf090209f4vkczggn49n56w6s6zldz"))))
1755 (build-system ruby-build-system)
1757 `(#:tests? #f)) ; no test suite
1758 (synopsis "Daemonize Ruby programs")
1759 (description "Daemons provides a way to wrap existing Ruby scripts to be
1760 run as a daemon and to be controlled by simple start/stop/restart commands.")
1761 (home-page "https://github.com/thuehlinger/daemons")
1762 (license license:expat)))
1764 (define-public ruby-git
1770 (uri (rubygems-uri "git" version))
1773 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
1774 (build-system ruby-build-system)
1776 `(#:tests? #f ; no tests
1777 #:phases (modify-phases %standard-phases
1778 (add-after 'install 'patch-git-binary
1779 (lambda* (#:key inputs outputs #:allow-other-keys)
1780 ;; Make the default git binary an absolute path to the
1782 (let ((git (string-append (assoc-ref inputs "git")
1784 (config (string-append (getenv "GEM_HOME")
1785 "/gems/git-" ,version
1786 "/lib/git/config.rb")))
1787 (substitute* (list config)
1789 (string-append "'" git "'")))
1793 (synopsis "Ruby wrappers for Git")
1794 (description "Ruby/Git is a Ruby library that can be used to create, read
1795 and manipulate Git repositories by wrapping system calls to the git binary.")
1796 (home-page "https://github.com/schacon/ruby-git")
1797 (license license:expat)))
1799 (define-public ruby-slop
1805 (uri (rubygems-uri "slop" version))
1808 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
1809 (build-system ruby-build-system)
1811 `(("ruby-minitest" ,ruby-minitest)))
1812 (synopsis "Ruby command line option parser")
1813 (description "Slop provides a Ruby domain specific language for gathering
1814 options and parsing command line flags.")
1815 (home-page "https://github.com/leejarvis/slop")
1816 (license license:expat)))
1818 (define-public ruby-slop-3
1819 (package (inherit ruby-slop)
1823 (uri (rubygems-uri "slop" version))
1826 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
1828 (define-public ruby-multipart-post
1830 (name "ruby-multipart-post")
1834 (uri (rubygems-uri "multipart-post" version))
1837 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
1838 (build-system ruby-build-system)
1840 `(("bundler" ,bundler)))
1841 (synopsis "Multipart POST library for Ruby")
1842 (description "Multipart-Post Adds multipart POST capability to Ruby's
1844 (home-page "https://github.com/nicksieger/multipart-post")
1845 (license license:expat)))
1847 (define-public ruby-arel
1853 (uri (rubygems-uri "arel" version))
1856 "0nw0qbc6ph625p6n3maqq9f527vz3nbl0hk72fbyka8jzsmplxzl"))))
1857 (build-system ruby-build-system)
1858 (arguments '(#:tests? #f)) ; no tests
1859 (home-page "https://github.com/rails/arel")
1860 (synopsis "SQL AST manager for Ruby")
1861 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
1862 Ruby. It simplifies the generation of complex SQL queries and adapts to
1863 various relational database implementations.")
1864 (license license:expat)))
1866 (define-public ruby-minitar
1867 ;; We package from the GitHub source to fix the security issue reported at
1868 ;; https://github.com/halostatue/minitar/issues/16.
1869 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
1871 (name "ruby-minitar")
1872 (version (string-append "0.5.4-1." (string-take commit 8)))
1877 (url "https://github.com/halostatue/minitar.git")
1879 (file-name (string-append name "-" version "-checkout"))
1882 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
1883 (build-system ruby-build-system)
1885 '(#:tests? #f)) ; missing a gemspec
1886 (synopsis "Ruby library and utility for handling tar archives")
1888 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
1889 that provides the ability to deal with POSIX tar archive files.")
1890 (home-page "http://www.github.com/atoulme/minitar")
1891 (license (list license:gpl2+ license:ruby)))))
1893 (define-public ruby-mini-portile
1895 (name "ruby-mini-portile")
1900 (uri (rubygems-uri "mini_portile" version))
1903 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
1904 (build-system ruby-build-system)
1906 '(#:tests? #f)) ; tests require network access
1907 (synopsis "Ports system for Ruby developers")
1908 (description "Mini-portile is a port/recipe system for Ruby developers.
1909 It provides a standard way to compile against specific versions of libraries
1910 to reproduce user environments.")
1911 (home-page "https://github.com/flavorjones/mini_portile")
1912 (license license:expat)))
1914 (define-public ruby-mini-portile-2
1915 (package (inherit ruby-mini-portile)
1919 (uri (rubygems-uri "mini_portile2" version))
1922 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
1924 (define-public ruby-nokogiri
1926 (name "ruby-nokogiri")
1930 (uri (rubygems-uri "nokogiri" version))
1933 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
1934 (build-system ruby-build-system)
1936 ;; Tests fail because Nokogiri can only test with an installed extension,
1937 ;; and also because many test framework dependencies are missing.
1939 #:gem-flags (list "--" "--use-system-libraries"
1940 (string-append "--with-xml2-include="
1941 (assoc-ref %build-inputs "libxml2")
1942 "/include/libxml2" ))
1944 (modify-phases %standard-phases
1945 (add-before 'build 'patch-extconf
1946 ;; 'pkg-config' is not included in the GEM_PATH during
1947 ;; installation, so we add it directly to the load path.
1948 (lambda* (#:key inputs #:allow-other-keys)
1949 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))
1950 (pkg-config-home (gem-home pkg-config
1951 ,(package-version ruby))))
1952 (substitute* "ext/nokogiri/extconf.rb"
1953 (("gem 'pkg-config'.*")
1954 (string-append "$:.unshift '"
1957 ,(package-version ruby-pkg-config)
1961 `(("ruby-hoe" ,ruby-hoe)))
1964 ("libxml2" ,libxml2)
1965 ("libxslt" ,libxslt)))
1967 `(("ruby-mini-portile" ,ruby-mini-portile-2)
1968 ("ruby-pkg-config" ,ruby-pkg-config)))
1969 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
1970 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
1971 both CSS3 selector and XPath 1.0 support.")
1972 (home-page "http://www.nokogiri.org/")
1973 (license license:expat)))
1975 (define-public ruby-method-source
1977 (name "ruby-method-source")
1982 (uri (rubygems-uri "method_source" version))
1985 "1g5i4w0dmlhzd18dijlqw5gk27bv6dj2kziqzrzb7mpgxgsd1sf2"))))
1986 (build-system ruby-build-system)
1988 `(("ruby-bacon" ,ruby-bacon)
1990 (synopsis "Retrieve the source code for Ruby methods")
1991 (description "Method_source retrieves the source code for Ruby methods.
1992 Additionally, it can extract source code from Proc and Lambda objects or just
1994 (home-page "https://github.com/banister/method_source")
1995 (license license:expat)))
1997 (define-public ruby-coderay
1999 (name "ruby-coderay")
2004 (uri (rubygems-uri "coderay" version))
2007 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
2008 (build-system ruby-build-system)
2010 '(#:tests? #f)) ; missing test files
2011 (synopsis "Ruby syntax highlighting library")
2012 (description "Coderay is a Ruby library that provides syntax highlighting
2013 for select languages.")
2014 (home-page "http://coderay.rubychan.de")
2015 (license license:expat)))
2017 (define-public ruby-pry
2024 (uri (rubygems-uri "pry" version))
2027 "05xbzyin63aj2prrv8fbq2d5df2mid93m81hz5bvf2v4hnzs42ar"))))
2028 (build-system ruby-build-system)
2030 '(#:tests? #f)) ; no tests
2032 `(("ruby-coderay" ,ruby-coderay)
2033 ("ruby-method-source" ,ruby-method-source)
2034 ("ruby-slop" ,ruby-slop-3)))
2035 (synopsis "Ruby REPL")
2036 (description "Pry is an IRB alternative and runtime developer console for
2037 Ruby. It features syntax highlighting, a plugin architecture, runtime
2038 invocation, and source and documentation browsing.")
2039 (home-page "http://pryrepl.org")
2040 (license license:expat)))
2042 (define-public ruby-guard
2048 ;; The gem does not include a Rakefile, nor does it contain a
2049 ;; gemspec file, nor does it come with the tests. This is why
2050 ;; we fetch the tarball from Github.
2051 (uri (string-append "https://github.com/guard/guard/archive/v"
2053 (file-name (string-append name "-" version ".tar.gz"))
2056 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2057 (build-system ruby-build-system)
2059 `(#:tests? #f ; tests require cucumber
2061 (modify-phases %standard-phases
2062 (add-after 'unpack 'remove-git-ls-files
2063 (lambda* (#:key outputs #:allow-other-keys)
2064 (substitute* "guard.gemspec"
2065 (("git ls-files -z") "find . -type f -print0"))
2069 (zero? (system* "gem" "build" "guard.gemspec")))))))
2071 `(("ruby-formatador" ,ruby-formatador)
2072 ("ruby-listen" ,ruby-listen)
2073 ("ruby-lumberjack" ,ruby-lumberjack)
2074 ("ruby-nenv" ,ruby-nenv)
2075 ("ruby-notiffany" ,ruby-notiffany)
2076 ("ruby-pry" ,ruby-pry)
2077 ("ruby-shellany" ,ruby-shellany)
2078 ("ruby-thor" ,ruby-thor)))
2080 `(("bundler" ,bundler)
2081 ("ruby-rspec" ,ruby-rspec)))
2082 (synopsis "Tool to handle events on file system modifications")
2084 "Guard is a command line tool to easily handle events on file system
2085 modifications. Guard automates various tasks by running custom rules whenever
2086 file or directories are modified.")
2087 (home-page "http://guardgem.org/")
2088 (license license:expat)))
2090 (define-public ruby-thread-safe
2092 (name "ruby-thread-safe")
2097 (uri (rubygems-uri "thread_safe" version))
2100 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
2101 (build-system ruby-build-system)
2103 '(#:tests? #f)) ; needs simplecov, among others
2104 (synopsis "Thread-safe utilities for Ruby")
2105 (description "The thread_safe library provides thread-safe collections and
2106 utilities for Ruby.")
2107 (home-page "https://github.com/ruby-concurrency/thread_safe")
2108 (license license:asl2.0)))
2110 (define-public ruby-tzinfo
2112 (name "ruby-tzinfo")
2117 (uri (rubygems-uri "tzinfo" version))
2120 "05r81lk7q7275rdq7xipfm0yxgqyd2ggh73xpc98ypngcclqcscl"))))
2121 (build-system ruby-build-system)
2123 `(("ruby-thread-safe" ,ruby-thread-safe)))
2124 (synopsis "Time zone library for Ruby")
2125 (description "TZInfo is a Ruby library that provides daylight savings
2126 aware transformations between times in different time zones.")
2127 (home-page "http://tzinfo.github.io")
2128 (license license:expat)))
2130 (define-public ruby-tzinfo-data
2132 (name "ruby-tzinfo-data")
2133 (version "1.2016.9")
2137 ;; Download from GitHub because the rubygems version does not contain
2138 ;; Rakefile or tests.
2140 "https://github.com/tzinfo/tzinfo-data/archive/v"
2143 (file-name (string-append name "-" version ".tar.gz"))
2146 "0i8vz2j7wmcpr4pd066qvlg4if5blscjrgxk2imavfa49nq5lp06"))
2147 ;; Remove the known test failure.
2148 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2149 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2150 (patches (search-patches
2151 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2152 (build-system ruby-build-system)
2154 `(("ruby-tzinfo" ,ruby-tzinfo)))
2155 (synopsis "Data from the IANA Time Zone database")
2157 "This library provides @code{TZInfo::Data}, which contains data from the
2158 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2159 (home-page "http://tzinfo.github.io")
2160 (license license:expat)))
2162 (define-public ruby-rb-inotify
2164 (name "ruby-rb-inotify")
2169 (uri (rubygems-uri "rb-inotify" version))
2172 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
2173 (build-system ruby-build-system)
2175 '(#:tests? #f ; there are no tests
2177 (modify-phases %standard-phases
2178 ;; Building the gemspec with rake is not working here since it is
2179 ;; generated with Jeweler. It is also unnecessary because the
2180 ;; existing gemspec does not use any development tools to generate a
2184 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2186 `(("ruby-ffi" ,ruby-ffi)))
2188 `(("ruby-yard" ,ruby-yard)))
2189 (synopsis "Ruby wrapper for Linux's inotify")
2190 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2191 kernel subsystem for monitoring changes to files and directories.")
2192 (home-page "https://github.com/nex3/rb-inotify")
2193 (license license:expat)))
2195 (define-public ruby-pry-editline
2197 (name "ruby-pry-editline")
2201 (uri (rubygems-uri "pry-editline" version))
2204 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2205 (build-system ruby-build-system)
2206 (arguments `(#:tests? #f)) ; no tests included
2208 `(("bundler" ,bundler)))
2209 (synopsis "Open the current REPL line in an editor")
2211 "This gem provides a plugin for the Ruby REPL to enable opening the
2212 current line in an external editor.")
2213 (home-page "https://github.com/tpope/pry-editline")
2214 (license license:expat)))
2216 (define-public ruby-sdoc
2222 (uri (rubygems-uri "sdoc" version))
2225 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
2226 (build-system ruby-build-system)
2229 (modify-phases %standard-phases
2230 (add-before 'check 'set-rubylib-and-patch-gemfile
2232 (setenv "RUBYLIB" "lib")
2233 (substitute* "sdoc.gemspec"
2234 (("s.add_runtime_dependency.*") "\n")
2235 (("s.add_dependency.*") "\n"))
2236 (substitute* "Gemfile"
2238 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
2241 `(("ruby-json" ,ruby-json)))
2243 `(("bundler" ,bundler)
2244 ("ruby-minitest" ,ruby-minitest)
2245 ("ruby-hoe" ,ruby-hoe)))
2246 (synopsis "Generate searchable RDoc documentation")
2248 "SDoc is an RDoc documentation generator to build searchable HTML
2249 documentation for Ruby code.")
2250 (home-page "https://github.com/voloko/sdoc")
2251 (license license:expat)))
2253 (define-public ruby-tins
2259 (uri (rubygems-uri "tins" version))
2262 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
2263 (build-system ruby-build-system)
2264 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2265 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2268 `(#:tests? #f ; there are no tests
2270 (modify-phases %standard-phases
2273 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2275 (substitute* "tins.gemspec"
2276 (("\"lib/spruz\", ") ""))
2277 (zero? (system* "gem" "build" "tins.gemspec")))))))
2278 (synopsis "Assorted tools for Ruby")
2279 (description "Tins is a Ruby library providing assorted tools.")
2280 (home-page "https://github.com/flori/tins")
2281 (license license:expat)))
2283 (define-public ruby-gem-hadar
2285 (name "ruby-gem-hadar")
2289 (uri (rubygems-uri "gem_hadar" version))
2292 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
2293 (build-system ruby-build-system)
2294 ;; This gem needs itself at development time. We disable rebuilding of the
2295 ;; gemspec to avoid this loop.
2297 `(#:tests? #f ; there are no tests
2299 (modify-phases %standard-phases
2302 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2305 ("ruby-tins" ,ruby-tins)
2306 ("ruby-yard" ,ruby-yard)))
2307 (synopsis "Library for the development of Ruby gems")
2309 "This library contains some useful functionality to support the
2310 development of Ruby gems.")
2311 (home-page "https://github.com/flori/gem_hadar")
2312 (license license:expat)))
2314 (define-public ruby-minitest-tu-shim
2316 (name "ruby-minitest-tu-shim")
2320 (uri (rubygems-uri "minitest_tu_shim" version))
2323 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2324 (build-system ruby-build-system)
2327 (modify-phases %standard-phases
2328 (add-after 'unpack 'fix-test-include-path
2329 (lambda* (#:key inputs #:allow-other-keys)
2330 (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))
2331 (minitest-home (gem-home minitest
2332 ,(package-version ruby))))
2333 (substitute* "Rakefile"
2334 (("Hoe\\.add_include_dirs .*")
2335 (string-append "Hoe.add_include_dirs \""
2338 ,(package-version ruby-minitest-4)
2341 (add-before 'check 'fix-test-assumptions
2343 ;; The test output includes the file name, so a couple of tests
2344 ;; fail. Changing the regular expressions slightly fixes this
2346 (substitute* "test/test_mini_test.rb"
2347 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2348 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2349 (("gsub\\(/.*, 'FILE:LINE'\\)")
2350 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2353 `(("ruby-minitest-4" ,ruby-minitest-4)))
2355 `(("ruby-hoe" ,ruby-hoe)))
2356 (synopsis "Adapter library between minitest and test/unit")
2358 "This library bridges the gap between the small and fast minitest and
2359 Ruby's large and slower test/unit.")
2360 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2361 (license license:expat)))
2363 (define-public ruby-term-ansicolor
2365 (name "ruby-term-ansicolor")
2369 (uri (rubygems-uri "term-ansicolor" version))
2372 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
2373 (build-system ruby-build-system)
2374 ;; Rebuilding the gemspec seems to require git, even though this is not a
2375 ;; git repository, so we just build the gem from the existing gemspec.
2378 (modify-phases %standard-phases
2381 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2383 `(("ruby-tins" ,ruby-tins)))
2385 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2386 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2387 (synopsis "Ruby library to control the attributes of terminal output")
2389 "This Ruby library uses ANSI escape sequences to control the attributes
2390 of terminal output.")
2391 (home-page "http://flori.github.io/term-ansicolor/")
2392 ;; There is no mention of the "or later" clause.
2393 (license license:gpl2)))
2395 (define-public ruby-pstree
2397 (name "ruby-pstree")
2401 (uri (rubygems-uri "pstree" version))
2404 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2405 (build-system ruby-build-system)
2407 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2408 ("bundler" ,bundler)))
2409 (synopsis "Create a process tree data structure")
2411 "This library uses the output of the @code{ps} command to create a
2412 process tree data structure for the current host.")
2413 (home-page "http://flori.github.com/pstree")
2414 ;; There is no mention of the "or later" clause.
2415 (license license:gpl2)))
2417 (define-public ruby-utils
2423 (uri (rubygems-uri "utils" version))
2426 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
2427 (build-system ruby-build-system)
2429 `(("ruby-tins" ,ruby-tins)
2430 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2431 ("ruby-pstree" ,ruby-pstree)
2432 ("ruby-pry-editline" ,ruby-pry-editline)))
2434 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2435 ("bundler" ,bundler)))
2436 (synopsis "Command line tools for working with Ruby")
2438 "This package provides assorted command line tools that may be useful
2439 when working with Ruby code.")
2440 (home-page "https://github.com/flori/utils")
2441 ;; There is no mention of the "or later" clause.
2442 (license license:gpl2)))
2444 (define-public ruby-json
2451 (uri (rubygems-uri "json" version))
2454 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
2455 (build-system ruby-build-system)
2456 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2457 (synopsis "JSON library for Ruby")
2458 (description "This Ruby library provides a JSON implementation written as
2459 a native C extension.")
2460 (home-page "http://json-jruby.rubyforge.org/")
2461 (license (list license:ruby license:gpl2)))) ; GPL2 only
2463 (define-public ruby-json-pure
2465 (name "ruby-json-pure")
2469 (uri (rubygems-uri "json_pure" version))
2472 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
2473 (build-system ruby-build-system)
2476 (modify-phases %standard-phases
2477 (add-after 'unpack 'fix-rakefile
2479 (substitute* "Rakefile"
2480 ;; Since this is not a git repository, do not call 'git'.
2481 (("`git ls-files`") "`find . -type f |sort`")
2482 ;; Loosen dependency constraint.
2483 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
2485 (add-after 'replace-git-ls-files 'regenerate-gemspec
2487 ;; Regenerate gemspec so loosened dependency constraints are
2489 (zero? (system* "rake" "gemspec")))))))
2491 `(("bundler" ,bundler)
2492 ("ruby-test-unit" ,ruby-test-unit)
2493 ("ruby-simplecov" ,ruby-simplecov)))
2494 (synopsis "JSON implementation in pure Ruby")
2496 "This package provides a JSON implementation written in pure Ruby.")
2497 (home-page "http://flori.github.com/json")
2498 (license license:ruby)))
2500 ;; Even though this package only provides bindings for a Mac OSX API it is
2501 ;; required by "ruby-listen" at runtime.
2502 (define-public ruby-rb-fsevent
2504 (name "ruby-rb-fsevent")
2508 (uri (rubygems-uri "rb-fsevent" version))
2511 "1fbpmjypwxkb8r7y1kmhmyp6gawa4byw0yb3jc3dn9ly4ld9lizf"))))
2512 (build-system ruby-build-system)
2513 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
2514 ;; "listen", which needs "rb-fsevent" at runtime.
2515 (arguments `(#:tests? #f))
2516 (synopsis "FSEvents API with signals catching")
2518 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
2519 (home-page "https://rubygems.org/gems/rb-fsevent")
2520 (license license:expat)))
2522 (define-public ruby-listen
2524 (name "ruby-listen")
2529 (uri (rubygems-uri "listen" version))
2532 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
2533 (build-system ruby-build-system)
2534 (arguments '(#:tests? #f)) ; no tests
2536 `(("ruby-rb-inotify" ,ruby-rb-inotify)
2537 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
2538 (synopsis "Listen to file modifications")
2539 (description "The Listen gem listens to file modifications and notifies
2540 you about the changes.")
2541 (home-page "https://github.com/guard/listen")
2542 (license license:expat)))
2544 (define-public ruby-activesupport
2546 (name "ruby-activesupport")
2551 (uri (rubygems-uri "activesupport" version))
2554 "0sgf4rsfr7jcaqsx0wwzx4l4k9xsjlwv0mzl08pxiyp1qzyx8scr"))))
2555 (build-system ruby-build-system)
2558 (modify-phases %standard-phases
2561 ;; There is no tests, instead attempt to load the library.
2562 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
2564 `(("ruby-concurrent" ,ruby-concurrent)
2565 ("ruby-i18n" ,ruby-i18n)
2566 ("ruby-minitest" ,ruby-minitest)
2567 ("ruby-tzinfo" ,ruby-tzinfo)
2568 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
2569 (synopsis "Ruby on Rails utility library")
2570 (description "ActiveSupport is a toolkit of support libraries and Ruby
2571 core extensions extracted from the Rails framework. It includes support for
2572 multibyte strings, internationalization, time zones, and testing.")
2573 (home-page "http://www.rubyonrails.org")
2574 (license license:expat)))
2576 (define-public ruby-crass
2582 (uri (rubygems-uri "crass" version))
2585 "1c377r8g7m58y22803iyjgqkkvnnii0pymskda1pardxrzaighj9"))))
2586 (build-system ruby-build-system)
2588 `(("bundler" ,bundler)
2589 ("ruby-minitest" ,ruby-minitest)))
2590 (synopsis "Pure Ruby CSS parser")
2592 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
2593 (home-page "https://github.com/rgrove/crass/")
2594 (license license:expat)))
2596 (define-public ruby-nokogumbo
2597 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
2599 (name "ruby-nokogumbo")
2600 (version (string-append "1.4.7-1." (string-take commit 8)))
2602 ;; We use the git reference, because there's no Rakefile in the
2603 ;; published gem and the tarball on Github is outdated.
2606 (url "https://github.com/rubys/nokogumbo.git")
2607 (commit "d56f954d20a")))
2608 (file-name (string-append name "-" version "-checkout"))
2611 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
2612 (build-system ruby-build-system)
2614 `(#:modules ((guix build ruby-build-system)
2618 (modify-phases %standard-phases
2619 (add-after 'unpack 'build-gemspec
2621 (substitute* "Rakefile"
2622 ;; Build Makefile even without a copy of gumbo-parser sources
2623 (("'gumbo-parser/src',") "")
2624 ;; We don't bundle gumbo-parser sources
2625 (("'gumbo-parser/src/\\*',") "")
2626 (("'gumbo-parser/visualc/include/\\*',") "")
2627 ;; The definition of SOURCES will be cut in gemspec, and
2628 ;; "FileList" will be undefined.
2629 (("SOURCES \\+ FileList\\[")
2630 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
2632 ;; Copy the Rakefile and cut out the gemspec.
2633 (copy-file "Rakefile" ".gemspec")
2634 (with-atomic-file-replacement ".gemspec"
2636 (let loop ((line (read-line in 'concat))
2638 (if (eof-object? line)
2640 (let ((skip-next? (if skipping?
2641 (not (string-prefix? "SPEC =" line))
2642 (string-prefix? "end" line))))
2643 (when (or (not skipping?)
2644 (and skipping? (not skip-next?)))
2645 (format #t "~a" line)
2647 (loop (read-line in 'concat) skip-next?))))))
2650 `(("gumbo-parser" ,gumbo-parser)))
2652 `(("ruby-nokogiri" ,ruby-nokogiri)))
2653 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
2655 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
2656 access the result as a Nokogiri parsed document.")
2657 (home-page "https://github.com/rubys/nokogumbo/")
2658 (license license:asl2.0))))
2660 (define-public ruby-sanitize
2662 (name "ruby-sanitize")
2666 ;; The gem does not include the Rakefile, so we download the
2667 ;; release tarball from Github.
2668 (uri (string-append "https://github.com/rgrove/"
2669 "sanitize/archive/v" version ".tar.gz"))
2670 (file-name (string-append name "-" version ".tar.gz"))
2673 "055xnj38l60gxnnng76kpy2l2jbrp0byjdyq17jw79w7l4b40znr"))))
2674 (build-system ruby-build-system)
2676 `(("ruby-crass" ,ruby-crass)
2677 ("ruby-nokogiri" ,ruby-nokogiri)
2678 ("ruby-nokogumbo" ,ruby-nokogumbo)))
2680 `(("bundler" ,bundler)
2681 ("ruby-minitest" ,ruby-minitest)
2682 ("ruby-redcarpet" ,ruby-redcarpet)
2683 ("ruby-yard" ,ruby-yard)))
2684 (synopsis "Whitelist-based HTML and CSS sanitizer")
2686 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
2687 acceptable elements, attributes, and CSS properties, Sanitize will remove all
2688 unacceptable HTML and/or CSS from a string.")
2689 (home-page "https://github.com/rgrove/sanitize/")
2690 (license license:expat)))
2692 (define-public ruby-ox
2699 (uri (rubygems-uri "ox" version))
2702 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
2703 (build-system ruby-build-system)
2705 '(#:tests? #f)) ; no tests
2706 (synopsis "Optimized XML library for Ruby")
2708 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
2709 written as a native C extension. It was designed to be an alternative to
2710 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
2711 alternative to Marshal for Object serialization. ")
2712 (home-page "http://www.ohler.com/ox")
2713 (license license:expat)))
2715 (define-public ruby-redcloth
2717 (name "ruby-redcloth")
2721 (uri (rubygems-uri "RedCloth" version))
2724 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
2725 (build-system ruby-build-system)
2727 `(#:tests? #f ; no tests
2729 (modify-phases %standard-phases
2730 ;; Redcloth has complicated rake tasks to build various versions for
2731 ;; multiple targets using RVM. We don't want this so we just use the
2732 ;; existing gemspec.
2735 (zero? (system* "gem" "build" "redcloth.gemspec"))))
2736 ;; Make sure that the "redcloth" executable finds required Ruby
2738 (add-after 'install 'wrap-bin-redcloth
2739 (lambda* (#:key outputs #:allow-other-keys)
2740 (wrap-program (string-append (assoc-ref outputs "out")
2742 `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
2745 `(("bundler" ,bundler)
2746 ("ruby-diff-lcs" ,ruby-diff-lcs)
2747 ("ruby-rspec-2" ,ruby-rspec-2)))
2748 (synopsis "Textile markup language parser for Ruby")
2750 "RedCloth is a Ruby parser for the Textile markup language.")
2751 (home-page "http://redcloth.org")
2752 (license license:expat)))
2754 (define-public ruby-pg
2761 (uri (rubygems-uri "pg" version))
2764 "00vhasqwc4f98qb4wxqn2h07fjwzhp5lwyi41j2gndi2g02wrdqh"))))
2765 (build-system ruby-build-system)
2767 '(#:test-target "spec"))
2769 `(("ruby-rake-compiler" ,ruby-rake-compiler)
2770 ("ruby-hoe" ,ruby-hoe)
2771 ("ruby-rspec" ,ruby-rspec)))
2773 `(("postgresql" ,postgresql)))
2774 (synopsis "Ruby interface to PostgreSQL")
2775 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
2776 with PostgreSQL 8.4 and later.")
2777 (home-page "https://bitbucket.org/ged/ruby-pg")
2778 (license license:ruby)))
2780 (define-public ruby-byebug
2782 (name "ruby-byebug")
2787 (uri (rubygems-uri "byebug" version))
2790 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
2791 (build-system ruby-build-system)
2793 '(#:tests? #f)) ; no tests
2794 (synopsis "Debugger for Ruby 2")
2795 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
2796 TracePoint C API for execution control and the Debug Inspector C API for call
2797 stack navigation. The core component provides support that front-ends can
2798 build on. It provides breakpoint handling and bindings for stack frames among
2799 other things and it comes with a command line interface.")
2800 (home-page "https://github.com/deivid-rodriguez/byebug")
2801 (license license:bsd-2)))
2803 (define-public ruby-netrc
2809 (uri (rubygems-uri "netrc" version))
2812 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
2813 (build-system ruby-build-system)
2816 (modify-phases %standard-phases
2818 ;; There is no Rakefile and minitest can only run one file at once,
2819 ;; so we have to iterate over all test files.
2821 (and (map (lambda (file)
2822 (zero? (system* "ruby" "-Itest" file)))
2823 (find-files "./test" "test_.*\\.rb"))))))))
2825 `(("ruby-minitest" ,ruby-minitest)))
2826 (synopsis "Library to read and update netrc files")
2828 "This library can read and update netrc files, preserving formatting
2829 including comments and whitespace.")
2830 (home-page "https://github.com/geemus/netrc")
2831 (license license:expat)))
2833 (define-public ruby-unf-ext
2835 (name "ruby-unf-ext")
2839 (uri (rubygems-uri "unf_ext" version))
2842 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
2843 (build-system ruby-build-system)
2846 (modify-phases %standard-phases
2847 (add-after 'build 'build-ext
2848 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
2850 `(("bundler" ,bundler)
2851 ("ruby-rake-compiler" ,ruby-rake-compiler)
2852 ("ruby-test-unit" ,ruby-test-unit)))
2853 (synopsis "Unicode normalization form support library")
2855 "This package provides unicode normalization form support for Ruby.")
2856 (home-page "https://github.com/knu/ruby-unf_ext")
2857 (license license:expat)))
2859 (define-public ruby-tdiff
2860 ;; Use a newer than released snapshot so that rspec-2 is not required.
2861 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
2864 (version (string-append "0.3.3-1." (string-take commit 8)))
2868 (url "https://github.com/postmodern/tdiff.git")
2870 (file-name (string-append name "-" version "-checkout"))
2873 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
2874 (build-system ruby-build-system)
2876 `(("ruby-rspec" ,ruby-rspec)
2877 ("ruby-yard" ,ruby-yard)
2878 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2879 (synopsis "Calculate the differences between two tree-like structures")
2881 "This library provides functions to calculate the differences between two
2882 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
2883 (home-page "https://github.com/postmodern/tdiff")
2884 (license license:expat))))
2886 (define-public ruby-nokogiri-diff
2887 ;; Use a newer than released snapshot so that rspec-2 is not required.
2888 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
2890 (name "ruby-nokogiri-diff")
2891 (version (string-append "0.2.0-1." (string-take commit 8)))
2895 (url "https://github.com/postmodern/nokogiri-diff.git")
2897 (file-name (string-append name "-" version "-checkout"))
2900 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
2901 (build-system ruby-build-system)
2903 `(("ruby-tdiff" ,ruby-tdiff)
2904 ("ruby-nokogiri" ,ruby-nokogiri)))
2906 `(("ruby-rspec" ,ruby-rspec)
2907 ("ruby-yard" ,ruby-yard)
2908 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2909 (synopsis "Calculate the differences between two XML/HTML documents")
2911 "@code{Nokogiri::Diff} adds the ability to calculate the
2912 differences (added or removed nodes) between two XML/HTML documents.")
2913 (home-page "https://github.com/postmodern/nokogiri-diff")
2914 (license license:expat))))
2916 (define-public ruby-rack
2923 ;; Download from GitHub so that the patch can be applied.
2925 "https://github.com/rack/rack/archive/"
2928 (file-name (string-append name "-" version ".tar.gz"))
2931 "12bnqrcg43x9hsswjqg31qqwk8cwj2fh0d2m179y20bjghhn54kx"))
2932 ;; Ignore test which fails inside the build environment but works
2934 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
2935 (build-system ruby-build-system)
2938 (modify-phases %standard-phases
2939 (add-before 'check 'fix-tests
2941 ;; A few of the tests use the length of a file on disk for
2942 ;; Content-Length and Content-Range headers. However, this file
2943 ;; has a shebang in it which an earlier phase patches, growing
2944 ;; the file size from 193 to 239 bytes when the store prefix is
2946 (let ((size-diff (- (string-length (which "ruby"))
2947 (string-length "/usr/bin/env ruby"))))
2948 (substitute* '("test/spec_file.rb")
2950 (number->string (+ 193 size-diff)))
2951 (("bytes(.)22-33" all delimiter)
2952 (string-append "bytes"
2954 (number->string (+ 22 size-diff))
2956 (number->string (+ 33 size-diff))))))
2959 `(("ruby-minitest" ,ruby-minitest)
2960 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
2963 `(("ruby-concurrent" ,ruby-concurrent)))
2964 (synopsis "Unified web application interface for Ruby")
2965 (description "Rack provides a minimal, modular and adaptable interface for
2966 developing web applications in Ruby. By wrapping HTTP requests and responses,
2967 it unifies the API for web servers, web frameworks, and software in between
2968 into a single method call.")
2969 (home-page "http://rack.github.io/")
2970 (license license:expat)))
2972 (define-public ruby-docile
2974 (name "ruby-docile")
2979 (uri (rubygems-uri "docile" version))
2982 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
2983 (build-system ruby-build-system)
2985 '(#:tests? #f)) ; needs github-markup, among others
2986 (synopsis "Ruby EDSL helper library")
2987 (description "Docile is a Ruby library that provides an interface for
2988 creating embedded domain specific languages (EDSLs) that manipulate existing
2990 (home-page "https://ms-ati.github.io/docile/")
2991 (license license:expat)))
2993 (define-public ruby-gherkin
2995 (name "ruby-gherkin")
3000 (uri (rubygems-uri "gherkin" version))
3003 "1d18r8mf2qyd9jbq9xxvca8adyysdzvwdy8v9c2s5hrd6p02kg79"))))
3004 (build-system ruby-build-system)
3006 `(("bundler" ,bundler)))
3008 '(#:tests? #f)) ; needs simplecov, among others
3009 (synopsis "Gherkin parser for Ruby")
3010 (description "Gherkin is a parser and compiler for the Gherkin language.
3011 It is intended be used by all Cucumber implementations to parse '.feature'
3013 (home-page "https://github.com/cucumber/gherkin3")
3014 (license license:expat)))
3016 (define-public ruby-cucumber-core
3018 (name "ruby-cucumber-core")
3023 (uri (rubygems-uri "cucumber-core" version))
3026 "136hnvqv444qyxzcgy1k60y4i6cn3sn9lbqr4wan9dzz1yzllqbm"))))
3027 (build-system ruby-build-system)
3029 `(("ruby-gherkin" ,ruby-gherkin)))
3031 `(("bundler" ,bundler)))
3033 '(#:tests? #f)) ; needs simplecov, among others
3034 (synopsis "Core library for the Cucumber BDD app")
3035 (description "Cucumber is a tool for running automated tests
3036 written in plain language. Because they're written in plain language,
3037 they can be read by anyone on your team. Because they can be read by
3038 anyone, you can use them to help improve communication, collaboration
3039 and trust on your team.")
3040 (home-page "https://cucumber.io/")
3041 (license license:expat)))
3043 (define-public ruby-bio-logger
3045 (name "ruby-bio-logger")
3050 (uri (rubygems-uri "bio-logger" version))
3053 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3054 (build-system ruby-build-system)
3056 `(#:tests? #f)) ; rake errors, missing shoulda
3058 `(("ruby-log4r" ,ruby-log4r)))
3059 (synopsis "Log4r wrapper for Ruby")
3060 (description "Bio-logger is a wrapper around Log4r adding extra logging
3061 features such as filtering and fine grained logging.")
3062 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3063 (license license:expat)))
3065 (define-public ruby-yard
3072 ;; Tests do not pass if we build from the distributed gem.
3073 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3075 (file-name (string-append name "-" version ".tar.gz"))
3078 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3079 (build-system ruby-build-system)
3082 (modify-phases %standard-phases
3085 ;; $HOME needs to be set to somewhere writeable for tests to run
3086 (setenv "HOME" "/tmp")
3087 ;; Run tests without using 'rake' to avoid dependencies.
3088 (zero? (system* "rspec")))))))
3090 `(("ruby-rspec" ,ruby-rspec)
3091 ("ruby-rack" ,ruby-rack)))
3092 (synopsis "Documentation generation tool for Ruby")
3094 "YARD is a documentation generation tool for the Ruby programming
3095 language. It enables the user to generate consistent, usable documentation
3096 that can be exported to a number of formats very easily, and also supports
3097 extending for custom Ruby constructs such as custom class level definitions.")
3098 (home-page "http://yardoc.org")
3099 (license license:expat)))
3101 (define-public ruby-clap
3107 (uri (rubygems-uri "clap" version))
3110 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3111 (build-system ruby-build-system)
3112 ;; Clap needs cutest for running tests, but cutest needs clap.
3113 (arguments `(#:tests? #f))
3114 (synopsis "Command line argument parsing for simple applications")
3116 "Clap provides command line argument parsing features. It covers the
3117 simple case of executing code based on the flags or parameters passed.")
3118 (home-page "https://github.com/djanowski/cutest")
3119 (license license:expat)))
3121 (define-public ruby-cutest
3123 (name "ruby-cutest")
3127 (uri (rubygems-uri "cutest" version))
3130 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3131 (build-system ruby-build-system)
3133 `(("ruby-clap" ,ruby-clap)))
3134 (synopsis "Run tests in separate processes")
3136 "Cutest runs tests in separate processes to avoid shared state.")
3137 (home-page "https://github.com/djanowski/cutest")
3138 (license license:expat)))
3140 (define-public ruby-pygmentize
3142 (name "ruby-pygmentize")
3146 (uri (rubygems-uri "pygmentize" version))
3149 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3150 (build-system ruby-build-system)
3153 (modify-phases %standard-phases
3154 (add-after 'unpack 'fix-pygmentize-path
3156 (substitute* "lib/pygmentize.rb"
3157 (("\"/usr/bin/env python.*")
3158 (string-append "\"" (which "pygmentize") "\"\n")))
3160 (add-after 'build 'do-not-use-vendor-directory
3162 ;; Remove bundled pygments sources
3163 ;; FIXME: ruby-build-system does not support snippets.
3164 (delete-file-recursively "vendor")
3165 (substitute* "pygmentize.gemspec"
3166 (("\"vendor/\\*\\*/\\*\",") ""))
3169 `(("pygments" ,python-pygments)))
3171 `(("ruby-cutest" ,ruby-cutest)
3172 ("ruby-nokogiri" ,ruby-nokogiri)))
3173 (synopsis "Thin Ruby wrapper around pygmentize")
3175 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3177 (home-page "https://github.com/djanowski/pygmentize")
3178 (license license:expat)))
3180 (define-public ruby-eventmachine
3182 (name "ruby-eventmachine")
3187 (uri (rubygems-uri "eventmachine" version))
3190 "075hdw0fgzldgss3xaqm2dk545736khcvv1fmzbf1sgdlkyh1v8z"))))
3191 (build-system ruby-build-system)
3193 '(#:tests? #f)) ; test suite tries to connect to google.com
3195 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3196 (synopsis "Single-threaded network event framework for Ruby")
3198 "EventMachine implements a single-threaded engine for arbitrary network
3199 communications. EventMachine wraps all interactions with sockets, allowing
3200 programs to concentrate on the implementation of network protocols. It can be
3201 used to create both network servers and clients.")
3202 (home-page "http://rubyeventmachine.com")
3203 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
3205 (define-public ruby-turn
3212 (uri (rubygems-uri "turn" version))
3215 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3216 (build-system ruby-build-system)
3219 (modify-phases %standard-phases
3220 ;; Tests fail because turn changes its environment so can no longer
3221 ;; find test/unit. Instead simply test if the executable runs
3225 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3227 `(("ruby-ansi" ,ruby-ansi)
3228 ("ruby-minitest" ,ruby-minitest-4)))
3229 (synopsis "Alternate set of alternative runners for MiniTest")
3231 "TURN provides a set of alternative runners for MiniTest which are both
3232 colorful and informative. TURN displays each test on a separate line with
3233 failures being displayed immediately instead of at the end of the tests. Note
3234 that TURN is no longer being maintained.")
3235 (home-page "http://rubygems.org/gems/turn")
3236 (license license:expat)))
3238 (define-public ruby-mime-types-data
3240 (name "ruby-mime-types-data")
3241 (version "3.2016.0521")
3245 (uri (rubygems-uri "mime-types-data" version))
3248 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
3249 (build-system ruby-build-system)
3251 `(("ruby-hoe" ,ruby-hoe)))
3252 (synopsis "Registry for information about MIME media type definitions")
3254 "@code{mime-types-data} provides a registry for information about
3255 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3256 be used with the Ruby mime-types library or other software to determine
3257 defined filename extensions for MIME types, or to use filename extensions to
3258 look up the likely MIME type definitions.")
3259 (home-page "https://github.com/mime-types/mime-types-data/")
3260 (license license:expat)))
3262 (define-public ruby-mime-types
3264 (name "ruby-mime-types")
3269 (uri (rubygems-uri "mime-types" version))
3272 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
3273 (build-system ruby-build-system)
3275 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3277 `(("ruby-hoe" ,ruby-hoe)
3278 ("ruby-fivemat" ,ruby-fivemat)
3279 ("ruby-minitest-focus" ,ruby-minitest-focus)
3280 ("ruby-minitest-rg" ,ruby-minitest-rg)
3281 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3282 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
3283 (synopsis "Library and registry for MIME content type definitions")
3284 (description "The mime-types library provides a library and registry for
3285 information about Multipurpose Internet Mail Extensions (MIME) content type
3286 definitions. It can be used to determine defined filename extensions for MIME
3287 types, or to use filename extensions to look up the likely MIME type
3289 (home-page "https://github.com/mime-types/ruby-mime-types")
3290 (license license:expat)))
3292 (define-public ruby-fivemat
3294 (name "ruby-fivemat")
3299 (uri (rubygems-uri "fivemat" version))
3302 "0ij7n250gk5c1g34rsbwjnpcv64gk4vsas8lkz8fac4wbygvk6z1"))))
3303 (build-system ruby-build-system)
3305 `(#:tests? #f)) ; no tests
3306 (synopsis "Each test file given its own line of dots")
3308 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3309 its own line of dots during testing. It aims to provide test output that is
3310 neither too verbose nor too minimal.")
3311 (home-page "https://github.com/tpope/fivemat")
3312 (license license:expat)))
3314 (define-public ruby-sqlite3
3316 (name "ruby-sqlite3")
3321 (uri (rubygems-uri "sqlite3" version))
3324 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
3325 (build-system ruby-build-system)
3328 (modify-phases %standard-phases
3329 (add-before 'check 'add-gemtest-file
3330 ;; This file exists in the repository but is not distributed.
3331 (lambda _ (zero? (system* "touch" ".gemtest")))))))
3333 `(("sqlite" ,sqlite)))
3335 `(("ruby-hoe" ,ruby-hoe)
3336 ("ruby-rake-compiler" ,ruby-rake-compiler)
3337 ("ruby-mini-portile" ,ruby-mini-portile)))
3338 (synopsis "Interface with SQLite3 databases")
3340 "This module allows Ruby programs to interface with the SQLite3 database
3343 "https://github.com/sparklemotion/sqlite3-ruby")
3344 (license license:bsd-3)))
3346 (define-public ruby-shoulda-context
3348 (name "ruby-shoulda-context")
3353 (uri (rubygems-uri "shoulda-context" version))
3356 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
3357 (build-system ruby-build-system)
3360 (modify-phases %standard-phases
3363 ;; Do not run tests to avoid circular dependence with rails.
3364 ;; Instead just import the library to test.
3365 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
3366 (synopsis "Test::Unit context framework extracted from Shoulda")
3368 "@code{shoulda-context} is the context framework extracted from Shoulda.
3369 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
3370 context, setup, and should blocks combine to produce natural test method
3372 (home-page "https://github.com/thoughtbot/shoulda-context")
3373 (license license:expat)))
3375 (define-public ruby-shoulda-matchers
3377 (name "ruby-shoulda-matchers")
3382 (uri (rubygems-uri "shoulda-matchers" version))
3385 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
3386 (build-system ruby-build-system)
3389 (modify-phases %standard-phases
3392 ;; Do not run tests to avoid circular dependence with rails. Instead
3393 ;; just import the library to test.
3394 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
3396 `(("ruby-activesupport" ,ruby-activesupport)))
3397 (synopsis "Collection of testing matchers extracted from Shoulda")
3399 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
3400 test common Rails functionality. These tests would otherwise be much longer,
3401 more complex, and error-prone.")
3402 (home-page "https://github.com/thoughtbot/shoulda-matchers")
3403 (license license:expat)))
3405 (define-public ruby-shoulda-matchers-2
3407 (inherit ruby-shoulda-matchers)
3411 (uri (rubygems-uri "shoulda-matchers" version))
3414 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
3416 (define-public ruby-shoulda
3418 (name "ruby-shoulda")
3423 (uri (rubygems-uri "shoulda" version))
3426 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
3427 (build-system ruby-build-system)
3430 (modify-phases %standard-phases
3432 ;; Don't run tests to avoid circular dependence with rails. Instead
3433 ;; just import the library to test.
3434 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
3436 `(("ruby-shoulda-context" ,ruby-shoulda-context)
3437 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
3438 (synopsis "Context framework and matchers for testing")
3440 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
3441 @code{shoulda-matchers} providing tools for writing tests.")
3442 (home-page "https://github.com/thoughtbot/shoulda")
3443 (license license:expat)))
3445 (define-public ruby-unf
3452 (uri (rubygems-uri "unf" version))
3455 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
3456 (build-system ruby-build-system)
3459 (modify-phases %standard-phases
3460 (add-before 'check 'add-dependency-to-bundler
3462 ;; test-unit is required but not provided by the bundler
3463 ;; environment. This is fixed in the upstream repository but fix
3464 ;; has not been released.
3465 (substitute* "Gemfile"
3466 (("^gemspec") "gem 'test-unit'\ngemspec"))
3469 `(("ruby-unf-ext" ,ruby-unf-ext)))
3471 `(("ruby-shoulda" ,ruby-shoulda)
3472 ("bundler" ,bundler)
3473 ("ruby-test-unit" ,ruby-test-unit)))
3474 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
3476 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
3477 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
3478 @code{java.text.Normalizer} on JRuby.")
3479 (home-page "https://github.com/knu/ruby-unf")
3480 (license license:bsd-2)))
3482 (define-public ruby-domain-name
3484 (name "ruby-domain-name")
3485 (version "0.5.20170404")
3489 (uri (rubygems-uri "domain_name" version))
3492 "12hs8yijhak7p2hf1xkh98g0mnp5phq3mrrhywzaxpwz1gw5r3kf"))))
3493 (build-system ruby-build-system)
3496 (modify-phases %standard-phases
3497 (add-before 'check 'fix-versions
3499 ;; Fix NameError that appears to already be fixed upstream.
3500 (substitute* "Rakefile"
3501 (("DomainName::VERSION")
3502 "Bundler::GemHelper.gemspec.version"))
3503 ;; Loosen unnecessarily strict test-unit version specification.
3504 (substitute* "domain_name.gemspec"
3505 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
3508 `(("ruby-unf" ,ruby-unf)))
3510 `(("ruby-shoulda" ,ruby-shoulda)
3511 ("bundler" ,bundler)
3512 ("ruby-test-unit" ,ruby-test-unit)))
3513 (synopsis "Domain name manipulation library")
3515 "@code{domain_name} is a Domain name manipulation library. It parses a
3516 domain name ready for extracting the registered domain and TLD (Top Level
3517 Domain). It can also be used for cookie domain validation based on the Public
3519 (home-page "https://github.com/knu/ruby-domain_name")
3520 (license license:bsd-2)))
3522 (define-public ruby-http-cookie
3524 (name "ruby-http-cookie")
3529 (uri (rubygems-uri "http-cookie" version))
3532 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
3533 (build-system ruby-build-system)
3536 (modify-phases %standard-phases
3537 (add-before 'check 'add-dependency-to-bundler
3540 (substitute* "Rakefile"
3541 (("HTTP::Cookie::VERSION")
3542 "Bundler::GemHelper.gemspec.version"))
3545 `(("ruby-domain-name" ,ruby-domain-name)))
3547 `(("rubysimplecov" ,ruby-simplecov)
3548 ("bundler" ,bundler)
3549 ("ruby-sqlite3" ,ruby-sqlite3)
3550 ("ruby-test-unit" ,ruby-test-unit)))
3551 (synopsis "Handle HTTP Cookies based on RFC 6265")
3553 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
3554 RFC 6265. It has been designed with security, standards compliance and
3555 compatibility in mind, to behave just the same as today's major web browsers.
3556 It has built-in support for the legacy @code{cookies.txt} and
3557 @code{cookies.sqlite} formats of Mozilla Firefox.")
3558 (home-page "https://github.com/sparklemotion/http-cookie")
3559 (license license:expat)))
3561 (define-public ruby-ansi
3568 ;; Fetch from GitHub as the gem does not contain testing code.
3569 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
3571 (file-name (string-append name "-" version ".tar.gz"))
3574 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
3575 (build-system ruby-build-system)
3578 (modify-phases %standard-phases
3579 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
3580 ;; cycle ansi, qed, ansi. Instead simply test that the library can
3584 (zero? (system* "ruby" "-Ilib" "-r" "ansi"))))
3585 (add-before 'validate-runpath 'replace-broken-symlink
3586 (lambda* (#:key outputs #:allow-other-keys)
3587 (let* ((out (assoc-ref outputs "out"))
3588 (file (string-append out "/lib/ruby/gems/"
3589 ,(package-version ruby)
3590 "/gems/ansi-" ,version
3592 ;; XXX: This symlink is broken since ruby 2.4.
3593 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
3595 (symlink "../.index" file)
3597 (synopsis "ANSI escape code related libraries")
3599 "This package is a collection of ANSI escape code related libraries
3600 enabling ANSI colorization and stylization of console output. Included in the
3601 library are the @code{Code} module, which defines ANSI codes as constants and
3602 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
3603 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
3604 @code{Terminal} module which provides information about the current output
3606 (home-page "http://rubyworks.github.io/ansi")
3607 (license license:bsd-2)))
3609 (define-public ruby-systemu
3611 (name "ruby-systemu")
3616 (uri (rubygems-uri "systemu" version))
3619 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
3620 (build-system ruby-build-system)
3623 (modify-phases %standard-phases
3624 (add-before 'check 'set-version
3626 (setenv "VERSION" ,version)
3628 (synopsis "Capture of stdout/stderr and handling of child processes")
3630 "Systemu can be used on any platform to return status, stdout, and stderr
3631 of any command. Unlike other methods like @code{open3} and @code{popen4}
3632 there is no danger of full pipes or threading issues hanging your process or
3634 (home-page "https://github.com/ahoward/systemu")
3635 (license license:ruby)))
3637 (define-public ruby-bio-commandeer
3639 (name "ruby-bio-commandeer")
3644 (uri (rubygems-uri "bio-commandeer" version))
3647 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
3648 (build-system ruby-build-system)
3651 (modify-phases %standard-phases
3653 ;; Run test without calling 'rake' so that jeweler is
3654 ;; not required as an input.
3656 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
3658 `(("ruby-bio-logger" ,ruby-bio-logger)
3659 ("ruby-systemu" ,ruby-systemu)))
3661 `(("bundler" ,bundler)
3662 ("ruby-rspec" ,ruby-rspec)))
3663 (synopsis "Simplified running of shell commands from within Ruby")
3665 "Bio-commandeer provides an opinionated method of running shell commands
3666 from within Ruby. The advantage of bio-commandeer over other methods of
3667 running external commands is that when something goes wrong, messages printed
3668 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
3669 detail to ease debugging.")
3670 (home-page "https://github.com/wwood/bioruby-commandeer")
3671 (license license:expat)))
3673 (define-public ruby-rubytest
3675 (name "ruby-rubytest")
3680 (uri (rubygems-uri "rubytest" version))
3683 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
3684 (build-system ruby-build-system)
3686 ;; Disable regular testing to break the cycle rubytest, qed, brass,
3687 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
3688 ;; simply test that the library can be require'd.
3690 (modify-phases %standard-phases
3693 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
3695 `(("ruby-ansi" ,ruby-ansi)))
3696 (synopsis "Universal test harness for Ruby")
3698 "Rubytest is a testing meta-framework for Ruby. It can handle any
3699 compliant test framework and can run tests from multiple frameworks in a
3701 (home-page "http://rubyworks.github.io/rubytest")
3702 (license license:bsd-2)))
3704 (define-public ruby-brass
3711 (uri (rubygems-uri "brass" version))
3714 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
3715 (build-system ruby-build-system)
3717 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
3718 ;; Instead simply test that the library can be require'd.
3720 (modify-phases %standard-phases
3723 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
3724 (synopsis "Basic foundational assertions framework")
3726 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
3727 foundational assertions framework for other assertion and test frameworks to
3729 (home-page "http://rubyworks.github.io/brass")
3730 (license license:bsd-2)))
3732 (define-public ruby-qed
3739 (uri (rubygems-uri "qed" version))
3742 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
3743 (build-system ruby-build-system)
3745 ;; Disable testing to break the cycle qed, ansi, qed, among others.
3746 ;; Instead simply test that the executable runs using --copyright.
3748 (modify-phases %standard-phases
3751 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
3753 `(("ruby-ansi" ,ruby-ansi)
3754 ("ruby-brass" ,ruby-brass)))
3755 (synopsis "Test framework utilizing literate programming techniques")
3757 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
3758 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
3759 Development} (BDD) utilizing Literate Programming techniques. QED sits
3760 somewhere between lower-level testing tools like @code{Test::Unit} and
3761 requirement specifications systems like Cucumber.")
3762 (home-page "http://rubyworks.github.io/qed")
3763 (license license:bsd-2)))
3765 (define-public ruby-ae
3772 ;; Fetch from github so tests are included.
3774 "https://github.com/rubyworks/ae/archive/"
3776 (file-name (string-append name "-" version ".tar.gz"))
3779 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
3780 (build-system ruby-build-system)
3783 (modify-phases %standard-phases
3785 (lambda _ (zero? (system* "qed"))))
3786 (add-before 'validate-runpath 'replace-broken-symlink
3787 (lambda* (#:key outputs #:allow-other-keys)
3788 (let* ((out (assoc-ref outputs "out"))
3789 (file (string-append out "/lib/ruby/gems/"
3790 ,(package-version ruby)
3791 "/gems/ae-" ,version
3793 ;; XXX: This symlink is broken since ruby 2.4.
3794 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
3796 (symlink "../.index" file)
3799 `(("ruby-ansi" ,ruby-ansi)))
3801 `(("ruby-qed" ,ruby-qed)))
3802 (synopsis "Assertions library")
3804 "Assertive Expressive (AE) is an assertions library specifically designed
3805 for reuse by other test frameworks.")
3806 (home-page "http://rubyworks.github.io/ae")
3807 (license license:bsd-2)))
3809 (define-public ruby-lemon
3816 (uri (rubygems-uri "lemon" version))
3819 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
3820 (build-system ruby-build-system)
3823 (modify-phases %standard-phases
3824 (replace 'check (lambda _ (zero? (system* "qed")))))))
3826 `(("ruby-ae" ,ruby-ae)
3827 ("ruby-ansi" ,ruby-ansi)
3828 ("ruby-rubytest" ,ruby-rubytest)))
3830 `(("ruby-qed" ,ruby-qed)))
3831 (synopsis "Test framework correlating code structure and test unit")
3833 "Lemon is a unit testing framework that enforces highly formal
3834 case-to-class and unit-to-method test construction. This enforcement can help
3835 focus concern on individual units of behavior.")
3836 (home-page "http://rubyworks.github.io/lemon")
3837 (license license:bsd-2)))
3839 (define-public ruby-rubytest-cli
3841 (name "ruby-rubytest-cli")
3846 (uri (rubygems-uri "rubytest-cli" version))
3849 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
3850 (build-system ruby-build-system)
3852 `(#:tests? #f)) ; no tests
3854 `(("ruby-ansi" ,ruby-ansi)
3855 ("ruby-rubytest" ,ruby-rubytest)))
3856 (synopsis "Command-line interface for rubytest")
3858 "Rubytest CLI is a command-line interface for running tests for
3859 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
3860 (home-page "http://rubyworks.github.io/rubytest-cli")
3861 (license license:bsd-2)))
3863 (define-public ruby-hashery
3865 (name "ruby-hashery")
3870 (uri (rubygems-uri "hashery" version))
3873 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
3874 (build-system ruby-build-system)
3877 (modify-phases %standard-phases
3880 (and (zero? (system* "qed"))
3881 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
3883 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
3884 ("ruby-qed" ,ruby-qed)
3885 ("ruby-lemon" ,ruby-lemon)))
3886 (synopsis "Hash-like classes with extra features")
3888 "The Hashery is a tight collection of @code{Hash}-like classes.
3889 Included are the auto-sorting @code{Dictionary} class, the efficient
3890 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
3891 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
3892 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
3893 standard @code{Hash} making it possible to subclass and augment to fit any
3894 specific use case.")
3895 (home-page "http://rubyworks.github.io/hashery")
3896 (license license:bsd-2)))
3898 (define-public ruby-rc4
3905 (uri (rubygems-uri "ruby-rc4" version))
3908 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
3909 (build-system ruby-build-system)
3912 (modify-phases %standard-phases
3915 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
3917 `(("ruby-rspec" ,ruby-rspec-2)))
3918 (synopsis "Implementation of the RC4 algorithm")
3920 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
3921 (home-page "https://github.com/caiges/Ruby-RC4")
3922 (license license:expat)))
3924 (define-public ruby-afm
3931 (uri (rubygems-uri "afm" version))
3934 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
3935 (build-system ruby-build-system)
3937 `(("bundler" ,bundler)))
3938 (synopsis "Read Adobe Font Metrics (afm) files")
3940 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
3941 files and use the data therein.")
3942 (home-page "https://github.com/halfbyte/afm")
3943 (license license:expat)))
3945 (define-public ruby-ascii85
3947 (name "ruby-ascii85")
3952 (uri (rubygems-uri "Ascii85" version))
3955 "0j95sbxd18kc8rhcnvl1w37kflqpax1r12h1x47gh4xxn3mz4m7q"))))
3956 (build-system ruby-build-system)
3958 `(("bundler" ,bundler)))
3959 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
3961 "This library provides methods to encode and decode Ascii85
3962 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
3963 @dfn{Portable Document Format} (PDF) file formats.")
3964 (home-page "https://github.com/datawraith/ascii85gem")
3965 (license license:expat)))
3967 (define-public ruby-ttfunk
3969 (name "ruby-ttfunk")
3974 ;; fetch from github as the gem does not contain testing code
3976 "https://github.com/prawnpdf/ttfunk/archive/"
3978 (file-name (string-append name "-" version ".tar.gz"))
3981 "1izq84pnm9niyvkzp8k0vl232q9zj41hwmp9na9fzycfh1pbnsl6"))))
3982 (build-system ruby-build-system)
3984 `(#:test-target "spec"
3986 (modify-phases %standard-phases
3987 (add-before 'check 'remove-rubocop
3989 ;; remove rubocop as a dependency as not needed for testing
3990 (substitute* "ttfunk.gemspec"
3991 (("spec.add_development_dependency\\('rubocop'.*") ""))
3992 (substitute* "Rakefile"
3993 (("require 'rubocop/rake_task'") "")
3994 (("Rubocop::RakeTask.new") ""))
3997 `(("ruby-rspec" ,ruby-rspec)
3998 ("bundler" ,bundler)))
3999 (synopsis "Font metrics parser for the Prawn PDF generator")
4001 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
4002 part of the Prawn PDF generator.")
4003 (home-page "https://github.com/prawnpdf/ttfunk")
4004 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
4006 (license (list license:gpl2 license:gpl3 license:ruby))))
4008 (define-public ruby-puma
4015 ;; Fetch from GitHub because distributed gem does not contain tests.
4016 (uri (string-append "https://github.com/puma/puma/archive/v"
4018 (file-name (string-append name "-" version ".tar.gz"))
4021 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
4022 (build-system ruby-build-system)
4024 `(#:tests? #f ; Tests require an out-dated version of minitest.
4026 (modify-phases %standard-phases
4027 (add-before 'build 'fix-gemspec
4029 (substitute* "puma.gemspec"
4030 (("git ls-files") "find * |sort"))
4032 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4034 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4035 for Ruby/Rack applications. Puma is intended for use in both development and
4036 production environments. In order to get the best throughput, it is highly
4037 recommended that you use a Ruby implementation with real threads like Rubinius
4039 (home-page "http://puma.io")
4040 (license license:expat)))
4042 (define-public ruby-hoe-git
4044 (name "ruby-hoe-git")
4049 (uri (rubygems-uri "hoe-git" version))
4052 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4053 (build-system ruby-build-system)
4055 `(("ruby-hoe" ,ruby-hoe)
4057 (synopsis "Hoe plugins for tighter Git integration")
4059 "This package provides a set of Hoe plugins for tighter Git integration.
4060 It provides tasks to automate release tagging and pushing and changelog
4062 (home-page "https://github.com/jbarnette/hoe-git")
4063 (license license:expat)))
4065 (define-public ruby-sequel
4067 (name "ruby-sequel")
4072 (uri (rubygems-uri "sequel" version))
4075 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
4076 (build-system ruby-build-system)
4078 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4079 (synopsis "Database toolkit for Ruby")
4080 (description "Sequel provides thread safety, connection pooling and a
4081 concise DSL for constructing SQL queries and table schemas. It includes a
4082 comprehensive ORM layer for mapping records to Ruby objects and handling
4083 associated records.")
4084 (home-page "http://sequel.jeremyevans.net")
4085 (license license:expat)))
4087 (define-public ruby-timecop
4089 (name "ruby-timecop")
4094 (uri (rubygems-uri "timecop" version))
4097 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
4098 (build-system ruby-build-system)
4101 (modify-phases %standard-phases
4102 (add-before 'check 'set-check-rubylib
4104 ;; Set RUBYLIB so timecop tests finds its own lib.
4105 (setenv "RUBYLIB" "lib")
4108 `(("bundler" ,bundler)
4109 ("ruby-minitest-rg" ,ruby-minitest-rg)
4110 ("ruby-mocha" ,ruby-mocha)
4111 ("ruby-activesupport" ,ruby-activesupport)))
4112 (synopsis "Test mocks for time-dependent functions")
4114 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4115 making it easier to test time-dependent code. It provides a unified method to
4116 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4118 (home-page "https://github.com/travisjeffery/timecop")
4119 (license license:expat)))
4121 (define-public ruby-concurrent
4123 (name "ruby-concurrent")
4128 ;; Download from GitHub because the rubygems version does not contain
4131 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4134 (file-name (string-append name "-" version ".tar.gz"))
4137 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
4138 ;; Exclude failing test reported at
4139 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4140 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
4141 "ruby-concurrent-test-arm.patch"))))
4142 (build-system ruby-build-system)
4144 `(#:test-target "spec"
4146 (modify-phases %standard-phases
4147 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
4149 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4151 (delete-file "concurrent-ruby-edge.gemspec")
4152 (delete-file "concurrent-ruby-ext.gemspec")
4154 (add-before 'build 'replace-git-ls-files2
4156 (substitute* "support/file_map.rb"
4157 (("git ls-files") "find * |sort"))
4159 (add-before 'check 'rake-compile
4160 ;; Fix the test error described at
4161 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
4162 (lambda _ (zero? (system* "rake" "compile"))))
4163 (add-before 'check 'remove-timecop-dependency
4164 ;; Remove timecop-dependent tests as having timecop as a depedency
4165 ;; causes circular depedencies.
4167 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4168 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4171 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4172 ("ruby-rspec" ,ruby-rspec)))
4173 (synopsis "Concurrency tools for Ruby")
4175 "This library provides modern concurrency tools including agents,
4176 futures, promises, thread pools, actors, supervisors, and more. It is
4177 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4179 (home-page "http://www.concurrent-ruby.com")
4180 (license license:expat)))
4182 (define-public ruby-pkg-config
4184 (name "ruby-pkg-config")
4189 (uri (rubygems-uri "pkg-config" version))
4192 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
4193 (build-system ruby-build-system)
4195 ;; Tests require extra files not included in the gem.
4197 (synopsis "Detect libraries for compiling Ruby native extensions")
4199 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4200 libraries for compiling Ruby native extensions.")
4201 (home-page "https://github.com/ruby-gnome2/pkg-config")
4202 (license license:lgpl2.0+)))
4204 (define-public ruby-net-http-digest-auth
4206 (name "ruby-net-http-digest-auth")
4211 (uri (rubygems-uri "net-http-digest_auth" version))
4214 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
4215 (build-system ruby-build-system)
4217 `(("ruby-hoe" ,ruby-hoe)))
4218 (synopsis "RFC 2617 HTTP digest authentication library")
4220 "This library implements HTTP's digest authentication scheme based on
4221 RFC 2617. This enables the use of the digest authentication scheme instead
4222 of the more insecure basic authentication scheme.")
4223 (home-page "https://github.com/drbrain/net-http-digest_auth")
4224 (license license:expat)))
4226 (define-public ruby-mail
4233 (uri (rubygems-uri "mail" version))
4236 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
4237 (build-system ruby-build-system)
4239 `(("ruby-mime-types" ,ruby-mime-types)))
4241 ;; Tests require extra gems not included in the Gemfile.
4242 ;; XXX: Try enabling this for the next version with mini_mime.
4244 (synopsis "Mail library for Ruby")
4246 "Mail is an internet library for Ruby that is designed to handle email
4247 generation, parsing and sending. The purpose of this library is to provide
4248 a single point of access to handle all email functions, including sending
4249 and receiving emails. All network type actions are done through proxy
4250 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
4252 Mail has been designed with a very simple object oriented system that
4253 really opens up the email messages you are parsing, if you know what you
4254 are doing, you can fiddle with every last bit of your email directly.")
4255 (home-page "https://github.com/mikel/mail")
4256 (license license:expat)))