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))
52 (replacement ruby-2.4.3)
57 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
58 (version-major+minor version)
59 "/ruby-" version ".tar.xz"))
62 "0dgp4ypk3smrsbh2c249n5pl6nqhpd2igq9484dbsh81sf08k2kl"))
63 (modules '((guix build utils)))
65 ;; Remove bundled libffi
66 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
68 (build-system gnu-build-system)
70 `(#:test-target "test"
72 (modify-phases %standard-phases
73 (add-before 'configure 'replace-bin-sh-and-remove-libffi
75 (substitute* '("Makefile.in"
80 "test/rubygems/test_gem_ext_configure_builder.rb"
81 "test/rdoc/test_rdoc_parser.rb"
82 "test/ruby/test_rubyoptions.rb"
83 "test/ruby/test_process.rb"
84 "test/ruby/test_system.rb"
86 (("/bin/sh") (which "sh")))
89 `(("readline" ,readline)
95 (list (search-path-specification
97 (files (list (string-append "lib/ruby/gems/"
98 (version-major+minor version)
100 (synopsis "Programming language interpreter")
101 (description "Ruby is a dynamic object-oriented programming language with
102 a focus on simplicity and productivity.")
103 (home-page "https://ruby-lang.org")
104 (license license:ruby)))
106 (define-public ruby-2.4.3
114 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
115 (version-major+minor version)
116 "/ruby-" version ".tar.xz"))
119 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
120 (modules '((guix build utils)))
122 ;; Remove bundled libffi
123 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
126 (define-public ruby-2.3
133 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
134 (version-major+minor version)
135 "/ruby-" version ".tar.xz"))
138 "0mlz0mk7yyxia37k8fdv8m8a72h61nfbns28430h796l4an6kng0"))
139 (modules '((guix build utils)))
141 ;; Remove bundled libffi
142 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
145 (define-public ruby-2.2
146 (package (inherit ruby)
151 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
152 (version-major+minor version)
153 "/ruby-" version ".tar.xz"))
156 "0p18xykx8dm5mmlx5n5243z67lj4vbvwr70bnc5x12am22ql8fri"))))))
158 (define-public ruby-2.1
159 (package (inherit ruby)
164 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
165 (version-major+minor version)
166 "/ruby-" version ".tar.bz2"))
169 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
171 `(#:test-target "test"
174 (modify-phases %standard-phases
175 (add-before 'configure 'replace-bin-sh
177 (substitute* '("Makefile.in"
182 (("/bin/sh") (which "sh")))
185 (list (search-path-specification
186 (variable "GEM_PATH")
187 (files (list (string-append "lib/ruby/gems/"
188 (version-major+minor version)
191 (define-public ruby-1.8
192 (package (inherit ruby)
193 (version "1.8.7-p374")
197 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
198 (version-major+minor version)
199 "/ruby-" version ".tar.bz2"))
202 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
203 (native-search-paths '())
205 `(#:test-target "test"
208 (modify-phases %standard-phases
209 (add-before 'configure 'replace-bin-sh
211 (substitute* '("Makefile.in"
216 (("/bin/sh") (which "sh")))
219 (define (gem-directory ruby-version)
220 "Return the relative gem install directory for RUBY-VERSION."
221 (string-append "/lib/ruby/gems/" (version-major+minor ruby-version)
224 (define-public ruby-highline
226 (name "ruby-highline")
231 (uri (rubygems-uri "highline" version))
234 "1nf5lgdn6ni2lpfdn4gk3gi47fmnca2bdirabbjbz1fk9w4p8lkr"))))
235 (build-system ruby-build-system)
237 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
239 `(("bundler" ,bundler)
240 ("ruby-code-statistics" ,ruby-code-statistics)))
242 "HighLine helps you build command-line interfaces")
244 "HighLine provides a high-level IO library that provides validation,
245 type conversion, and more for command-line interfaces. HighLine also includes
246 a menu system for providing multiple options to the user.")
247 (home-page "https://github.com/JEG2/highline")
248 (license (list license:gpl2 license:ruby))))
250 (define-public ruby-hoe
256 (uri (rubygems-uri "hoe" version))
259 "03r8nsw4n4mnia9iqiqk9kqhvrl96m2i81j4yg8cpnppd8vk7vlb"))))
260 (build-system ruby-build-system)
261 (synopsis "Ruby project management helper")
263 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
264 maintain, and release projects and includes a dynamic plug-in system allowing
265 for easy extensibility. Hoe ships with plug-ins for all the usual project
266 tasks including rdoc generation, testing, packaging, deployment, and
268 (home-page "http://www.zenspider.com/projects/hoe.html")
269 (license license:expat)))
271 (define-public ruby-rake-compiler
273 (name "ruby-rake-compiler")
277 (uri (rubygems-uri "rake-compiler" version))
280 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
281 (build-system ruby-build-system)
283 '(#:tests? #f)) ; needs cucumber
284 (synopsis "Building and packaging helper for Ruby native extensions")
285 (description "Rake-compiler provides a framework for building and
286 packaging native C and Java extensions in Ruby.")
287 (home-page "https://github.com/rake-compiler/rake-compiler")
288 (license license:expat)))
290 (define-public ruby-i18n
296 (uri (rubygems-uri "i18n" version))
299 "1i5z1ykl8zhszsxcs8mzl8d0dxgs3ylz8qlzrw74jb0gplkx6758"))))
300 (build-system ruby-build-system)
302 '(#:tests? #f)) ; no tests
303 (synopsis "Internationalization library for Ruby")
304 (description "Ruby i18n is an internationalization and localization
305 solution for Ruby programs. It features translation and localization,
306 interpolation of values to translations, pluralization, customizable
307 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
308 translation data, custom key/scope separator, custom exception handlers, and
309 an extensible architecture with a swappable backend.")
310 (home-page "https://github.com/svenfuchs/i18n")
311 (license license:expat)))
313 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
314 ;; dependencies use RSpec for their test suites! To avoid these circular
315 ;; dependencies, we disable tests for all of the RSpec-related packages.
316 (define ruby-rspec-support
318 (name "ruby-rspec-support")
322 (uri (rubygems-uri "rspec-support" version))
325 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
326 (build-system ruby-build-system)
328 '(#:tests? #f)) ; avoid dependency cycles
329 (synopsis "RSpec support library")
330 (description "Support utilities for RSpec gems.")
331 (home-page "https://github.com/rspec/rspec-support")
332 (license license:expat)))
334 (define-public ruby-rspec-core
336 (name "ruby-rspec-core")
340 (uri (rubygems-uri "rspec-core" version))
343 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
344 (build-system ruby-build-system)
346 '(#:tests? #f)) ; avoid dependency cycles
348 `(("ruby-rspec-support" ,ruby-rspec-support)))
349 (synopsis "RSpec core library")
350 (description "Rspec-core provides the RSpec test runner and example
352 (home-page "https://github.com/rspec/rspec-core")
353 (license license:expat)))
355 (define-public ruby-rspec-core-2
356 (package (inherit ruby-rspec-core)
360 (uri (rubygems-uri "rspec-core" version))
363 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
364 (propagated-inputs `())))
366 (define-public ruby-diff-lcs
368 (name "ruby-diff-lcs")
372 (uri (rubygems-uri "diff-lcs" version))
375 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
376 (build-system ruby-build-system)
378 '(#:tests? #f)) ; avoid dependency cycles
379 (synopsis "Compute the difference between two Enumerable sequences")
380 (description "Diff::LCS computes the difference between two Enumerable
381 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
382 It includes utilities to create a simple HTML diff output format and a
383 standard diff-like tool.")
384 (home-page "https://github.com/halostatue/diff-lcs")
385 (license license:expat)))
387 (define-public ruby-rspec-expectations
389 (name "ruby-rspec-expectations")
393 (uri (rubygems-uri "rspec-expectations" version))
396 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
397 (build-system ruby-build-system)
399 '(#:tests? #f)) ; avoid dependency cycles
401 `(("ruby-rspec-support" ,ruby-rspec-support)
402 ("ruby-diff-lcs" ,ruby-diff-lcs)))
403 (synopsis "RSpec expectations library")
404 (description "Rspec-expectations provides a simple API to express expected
405 outcomes of a code example.")
406 (home-page "https://github.com/rspec/rspec-expectations")
407 (license license:expat)))
409 (define-public ruby-rspec-expectations-2
410 (package (inherit ruby-rspec-expectations)
414 (uri (rubygems-uri "rspec-expectations" version))
417 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
419 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
421 (define-public ruby-rspec-mocks
423 (name "ruby-rspec-mocks")
427 (uri (rubygems-uri "rspec-mocks" version))
430 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
431 (build-system ruby-build-system)
433 '(#:tests? #f)) ; avoid dependency cycles
435 `(("ruby-rspec-support" ,ruby-rspec-support)
436 ("ruby-diff-lcs" ,ruby-diff-lcs)))
437 (synopsis "RSpec stubbing and mocking library")
438 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
439 support for stubbing and mocking.")
440 (home-page "https://github.com/rspec/rspec-mocks")
441 (license license:expat)))
443 (define-public ruby-rspec-mocks-2
444 (package (inherit ruby-rspec-mocks)
448 (uri (rubygems-uri "rspec-mocks" version))
451 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
453 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
455 (define-public ruby-rspec
461 (uri (rubygems-uri "rspec" version))
464 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
465 (build-system ruby-build-system)
467 '(#:tests? #f)) ; avoid dependency cycles
469 `(("ruby-rspec-core" ,ruby-rspec-core)
470 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
471 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
472 (synopsis "Behavior-driven development framework for Ruby")
473 (description "RSpec is a behavior-driven development (BDD) framework for
474 Ruby. This meta-package includes the RSpec test runner, along with the
475 expectations and mocks frameworks.")
476 (home-page "http://rspec.info/")
477 (license license:expat)))
479 (define-public ruby-rspec-2
480 (package (inherit ruby-rspec)
484 (uri (rubygems-uri "rspec" version))
487 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
489 `(("ruby-rspec-core" ,ruby-rspec-core-2)
490 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
491 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
493 ;; Bundler is yet another source of circular dependencies, so we must disable
494 ;; its test suite as well.
495 (define-public bundler
501 (uri (rubygems-uri "bundler" version))
504 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
505 (build-system ruby-build-system)
507 '(#:tests? #f)) ; avoid dependency cycles
508 (synopsis "Ruby gem bundler")
509 (description "Bundler automatically downloads and installs a list of gems
510 specified in a \"Gemfile\", as well as their dependencies.")
511 (home-page "http://bundler.io/")
512 (license license:expat)))
514 (define-public ruby-builder
516 (name "ruby-builder")
520 (uri (rubygems-uri "builder" version))
523 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
524 (build-system ruby-build-system)
527 (modify-phases %standard-phases
528 (add-after 'unpack 'do-not-use-rvm
530 (substitute* "rakelib/tags.rake"
531 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
533 (synopsis "Ruby library to create structured data")
534 (description "Builder provides a number of builder objects that make it
535 easy to create structured data. Currently the following builder objects are
536 supported: XML Markup and XML Events.")
537 (home-page "https://github.com/jimweirich/builder")
538 (license license:expat)))
540 (define-public ruby-rjb
546 (uri (rubygems-uri "rjb" version))
549 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
550 (build-system ruby-build-system)
552 `(#:tests? #f ; no rakefile
554 (modify-phases %standard-phases
555 (add-before 'build 'set-java-home
556 (lambda* (#:key inputs #:allow-other-keys)
557 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
560 `(("jdk" ,icedtea "jdk")))
561 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
562 (description "RJB is a bridge program that connects Ruby and Java via the
563 Java Native Interface.")
564 (home-page "http://www.artonx.org/collabo/backyard/?RubyJavaBridge")
565 (license license:lgpl2.1+)))
567 (define-public ruby-log4r
574 (uri (rubygems-uri "log4r" version))
577 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
578 (build-system ruby-build-system)
580 '(#:tests? #f)) ; no Rakefile in gem
581 (synopsis "Flexible logging library for Ruby")
582 (description "Comprehensive and flexible logging library written
583 in Ruby for use in Ruby programs. It features a hierarchical logging
584 system of any number of levels, custom level names, logger
585 inheritance, multiple output destinations per log event, execution
586 tracing, custom formatting, thread safteyness, XML and YAML
587 configuration, and more.")
588 (home-page "http://log4r.rubyforge.org/")
589 (license license:bsd-3)))
591 (define-public ruby-atoulme-antwrap
593 (name "ruby-atoulme-antwrap")
597 (uri (rubygems-uri "atoulme-Antwrap" version))
600 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
601 (build-system ruby-build-system)
602 ;; Test data required for most of the tests are not included.
603 (arguments `(#:tests? #f))
605 `(("ruby-hoe" ,ruby-hoe)))
607 `(("ruby-rjb" ,ruby-rjb)))
608 (synopsis "Ruby wrapper for the Ant build tool")
609 (description "Antwrap is a Ruby module that wraps the Apache Ant build
610 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
612 (home-page "http://rubyforge.org/projects/antwrap/")
613 (license license:expat)))
615 (define-public ruby-atoulme-saikuro
617 (name "ruby-atoulme-saikuro")
621 (uri (rubygems-uri "atoulme-Saikuro" version))
624 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
625 (build-system ruby-build-system)
626 ;; FIXME: There are no unit tests. The tests are demonstrations of the
628 (arguments `(#:tests? #f))
629 (synopsis "Cyclomatic complexity analyzer")
630 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
631 given Ruby source code Saikuro will generate a report listing the cyclomatic
632 complexity of each method found. In addition, Saikuro counts the number of
633 lines per method and can generate a listing of the number of tokens on each
635 (home-page "http://www.github.com/atoulme/Saikuro")
636 ;; File headers contain the BSD-3 license and the README.rdoc says that
637 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
638 ;; of the Expat license.
639 (license license:bsd-3)))
641 (define-public ruby-ci-reporter
643 (name "ruby-ci-reporter")
647 (uri (rubygems-uri "ci_reporter" version))
650 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
651 (build-system ruby-build-system)
653 `(#:test-target "rspec"))
655 `(("ruby-builder" ,ruby-builder)))
657 `(("bundler" ,bundler)
658 ("ruby-rspec" ,ruby-rspec)))
659 (synopsis "Generate XML reports of runs test")
661 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
662 you to generate XML reports of your test runs. The resulting files can be
663 read by a continuous integration system that understands Ant's JUnit report
665 (home-page "https://github.com/nicksieger/ci_reporter")
666 (license license:expat)))
668 (define-public ruby-saikuro-treemap
670 (name "ruby-saikuro-treemap")
674 (uri (rubygems-uri "saikuro_treemap" version))
677 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
678 (build-system ruby-build-system)
679 ;; Some of the tests fail because the generated JSON has keys in a
680 ;; different order. This is a problem with the test suite rather than any
681 ;; of the involved libraries.
682 (arguments `(#:tests? #f))
684 `(("ruby-json-pure" ,ruby-json-pure)
685 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
686 (synopsis "Generate complexity treemap based on saikuro analysis")
688 "This gem generates a treemap showing the complexity of Ruby code on
689 which it is run. It uses Saikuro under the covers to analyze Ruby code
691 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
692 (license license:expat)))
694 (define-public ruby-options
696 (name "ruby-options")
701 (uri (rubygems-uri "options" version))
704 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
705 (build-system ruby-build-system)
707 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
709 (modify-phases %standard-phases
710 (add-before 'check 'set-LIB
712 ;; This is used in the Rakefile, and setting it avoids an issue
713 ;; with running the tests.
714 (setenv "LIB" "options"))))))
715 (synopsis "Ruby library to parse options from *args cleanly")
717 "The @code{options} library helps with parsing keyword options in Ruby
719 (home-page "https://github.com/ahoward/options")
720 (license license:ruby)))
722 (define-public ruby-orderedhash
724 (name "ruby-orderedhash")
728 (uri (rubygems-uri "orderedhash" version))
731 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
732 (build-system ruby-build-system)
734 '(#:tests? #f)) ; no test suite
735 (synopsis "Ruby library providing an order-preserving hash")
736 (description "Orderedhash is a Ruby library providing a hash
737 implementation that preserves the order of items and features some array-like
739 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
740 (license license:public-domain)))
742 (define-public ruby-libxml
749 (uri (rubygems-uri "libxml-ruby" version))
752 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
753 (build-system ruby-build-system)
756 ("libxml2" ,libxml2)))
758 '(#:tests? #f ; test suite hangs for unknown reason
761 (string-append "--with-xml2-include="
762 (assoc-ref %build-inputs "libxml2")
763 "/include/libxml2" ))))
764 (synopsis "Ruby bindings for GNOME Libxml2")
765 (description "The Libxml-Ruby project provides Ruby language bindings for
766 the GNOME Libxml2 XML toolkit.")
767 (home-page "http://xml4r.github.com/libxml-ruby")
768 (license license:expat)))
770 (define-public ruby-xml-simple
772 (name "ruby-xml-simple")
776 (uri (rubygems-uri "xml-simple" version))
779 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
780 (build-system ruby-build-system)
782 '(#:tests? #f)) ; no test suite
783 (synopsis "Simple Ruby library for XML processing")
784 (description "This library provides a simple API for XML processing in
786 (home-page "https://github.com/maik/xml-simple")
787 (license license:ruby)))
789 (define-public ruby-thor
795 (uri (rubygems-uri "thor" version))
798 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
799 (build-system ruby-build-system)
801 '(#:tests? #f)) ; no test suite
803 `(("bundler" ,bundler)))
804 (synopsis "Ruby toolkit for building command-line interfaces")
805 (description "Thor is a toolkit for building powerful command-line
807 (home-page "http://whatisthor.com/")
808 (license license:expat)))
810 (define-public ruby-lumberjack
812 (name "ruby-lumberjack")
816 (uri (rubygems-uri "lumberjack" version))
819 "0yz26k9mi0djx1qvlmvdw1xw2yf7a2rkfmnb2j0d28kms33xpibp"))))
820 (build-system ruby-build-system)
822 `(("ruby-rspec" ,ruby-rspec)
823 ("ruby-timecop" ,ruby-timecop)))
824 (synopsis "Logging utility library for Ruby")
825 (description "Lumberjack is a simple logging utility that can be a drop in
826 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
827 for automatically rolling log files even with multiple processes writing the
829 (home-page "https://github.com/bdurand/lumberjack")
830 (license license:expat)))
832 (define-public ruby-nenv
838 (uri (rubygems-uri "nenv" version))
841 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
842 (build-system ruby-build-system)
844 `(#:tests? #f)) ; no tests included
846 `(("ruby-rspec" ,ruby-rspec)
847 ("bundler" ,bundler)))
848 (synopsis "Ruby interface for modifying the environment")
849 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
850 and inspect the environment.")
851 (home-page "https://github.com/e2/nenv")
852 (license license:expat)))
854 (define-public ruby-permutation
856 (name "ruby-permutation")
860 (uri (rubygems-uri "permutation" version))
863 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
864 (build-system ruby-build-system)
867 (modify-phases %standard-phases
868 (add-after 'unpack 'fix-rakefile
870 (substitute* "Rakefile"
871 (("require 'rake/gempackagetask'")
872 "require 'rubygems/package_task'")
873 (("include Config") ""))
877 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
878 (synopsis "Library to perform operations with sequence permutations")
879 (description "This package provides a Ruby library to perform different
880 operations with permutations of sequences, such as strings and arrays.")
881 (home-page "http://flori.github.io/permutation")
882 (license license:gpl2))) ; GPL 2 only
884 (define-public ruby-shellany
886 (name "ruby-shellany")
890 (uri (rubygems-uri "shellany" version))
893 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
894 (build-system ruby-build-system)
896 `(#:test-target "default"
898 (modify-phases %standard-phases
899 (add-after 'unpack 'fix-version-test
901 (substitute* "spec/shellany_spec.rb"
902 (("^RSpec") "require \"shellany\"\nRSpec"))
905 `(("ruby-rspec" ,ruby-rspec)
906 ("ruby-nenv" ,ruby-nenv)
907 ("bundler" ,bundler)))
908 (synopsis "Capture command output")
909 (description "Shellany is a Ruby library providing functions to capture
910 the output produced by running shell commands.")
911 (home-page "https://rubygems.org/gems/shellany")
912 (license license:expat)))
914 (define-public ruby-notiffany
916 (name "ruby-notiffany")
920 (uri (rubygems-uri "notiffany" version))
923 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
924 (build-system ruby-build-system)
925 ;; Tests are not included in the gem.
926 (arguments `(#:tests? #f))
928 `(("ruby-shellany" ,ruby-shellany)
929 ("ruby-nenv" ,ruby-nenv)))
931 `(("bundler" ,bundler)))
932 (synopsis "Wrapper libray for notification libraries")
933 (description "Notiffany is a Ruby wrapper libray for notification
934 libraries such as Libnotify.")
935 (home-page "https://github.com/guard/notiffany")
936 (license license:expat)))
938 (define-public ruby-formatador
940 (name "ruby-formatador")
944 (uri (rubygems-uri "formatador" version))
947 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
948 (build-system ruby-build-system)
949 ;; Circular dependency: Tests require ruby-shindo, which requires
950 ;; ruby-formatador at runtime.
951 (arguments `(#:tests? #f))
952 (synopsis "Ruby library to format text on stdout")
953 (description "Formatador is a Ruby library to format text printed to the
954 standard output stream.")
955 (home-page "https://github.com/geemus/formatador")
956 (license license:expat)))
958 (define-public ruby-shindo
964 (uri (rubygems-uri "shindo" version))
967 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
968 (build-system ruby-build-system)
970 `(#:test-target "shindo_tests"
972 (modify-phases %standard-phases
973 (add-after 'unpack 'fix-tests
975 (substitute* "Rakefile"
976 (("system \"shindo") "system \"./bin/shindo")
977 ;; This test doesn't work, so we disable it.
978 (("fail \"The build_error test should fail") "#"))
981 `(("ruby-formatador" ,ruby-formatador)))
982 (synopsis "Simple depth first Ruby testing")
983 (description "Shindo is a simple depth first testing library for Ruby.")
984 (home-page "https://github.com/geemus/shindo")
985 (license license:expat)))
987 (define-public ruby-rubygems-tasks
989 (name "ruby-rubygems-tasks")
993 (uri (rubygems-uri "rubygems-tasks" version))
996 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
997 (build-system ruby-build-system)
998 ;; Tests need Internet access.
999 (arguments `(#:tests? #f))
1001 `(("ruby-rspec" ,ruby-rspec)
1002 ("ruby-yard" ,ruby-yard)))
1003 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1004 (description "Rubygems-task provides Rake tasks for managing and releasing
1006 (home-page "https://github.com/postmodern/rubygems-tasks")
1007 (license license:expat)))
1009 (define-public ruby-rubyzip
1011 (name "ruby-rubyzip")
1016 (uri (rubygems-uri "rubyzip" version))
1019 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1020 (build-system ruby-build-system)
1023 (modify-phases %standard-phases
1024 (add-before 'check 'patch-tests
1025 (lambda* (#:key inputs #:allow-other-keys)
1026 (substitute* "test/gentestfiles.rb"
1029 (assoc-ref inputs "zip") "/bin/zip")))
1030 (substitute* "test/input_stream_test.rb"
1031 (("/usr/bin/env ruby") (which "ruby")))
1034 `(("bundler" ,bundler)
1035 ("ruby-simplecov" ,ruby-simplecov)
1038 (synopsis "Ruby module is for reading and writing zip files")
1040 "The rubyzip module provides ways to read from and create zip files.")
1041 (home-page "http://github.com/rubyzip/rubyzip")
1042 (license license:bsd-2)))
1044 (define-public ruby-simplecov-html
1046 (name "ruby-simplecov-html")
1050 (uri (rubygems-uri "simplecov-html" version))
1053 "0f3psphismgp6jp1fxxz09zbswh7m2xxxr6gqlzdh7sgv415clvm"))))
1054 (build-system ruby-build-system)
1055 (arguments `(#:tests? #f)) ; there are no tests
1057 `(("bundler" ,bundler)))
1058 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1059 (description "This package provides the default HTML formatter for
1060 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1061 (home-page "https://github.com/colszowka/simplecov-html")
1062 (license license:expat)))
1064 (define-public ruby-simplecov
1066 (name "ruby-simplecov")
1070 (uri (rubygems-uri "simplecov" version))
1073 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
1074 (build-system ruby-build-system)
1075 ;; Simplecov depends on rubocop for code style checking at build time.
1076 ;; Rubocop needs simplecov at build time.
1077 (arguments `(#:tests? #f))
1079 `(("ruby-json" ,ruby-json)
1080 ("ruby-docile" ,ruby-docile)
1081 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1083 `(("bundler" ,bundler)))
1084 (synopsis "Code coverage framework for Ruby")
1085 (description "SimpleCov is a code coverage framework for Ruby with a
1086 powerful configuration library and automatic merging of coverage across test
1088 (home-page "https://github.com/colszowka/simplecov")
1089 (license license:expat)))
1091 (define-public ruby-useragent
1093 (name "ruby-useragent")
1097 (uri (rubygems-uri "useragent" version))
1100 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1101 (build-system ruby-build-system)
1103 '(#:tests? #f)) ; no test suite
1104 (synopsis "HTTP user agent parser for Ruby")
1105 (description "UserAgent is a Ruby library that parses and compares HTTP
1107 (home-page "https://github.com/gshutler/useragent")
1108 (license license:expat)))
1110 (define-public ruby-bacon
1116 (uri (rubygems-uri "bacon" version))
1119 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1120 (build-system ruby-build-system)
1121 (synopsis "Small RSpec clone")
1122 (description "Bacon is a small RSpec clone providing all essential
1124 (home-page "https://github.com/chneukirchen/bacon")
1125 (license license:expat)))
1127 (define-public ruby-connection-pool
1129 (name "ruby-connection-pool")
1133 (uri (rubygems-uri "connection_pool" version))
1136 "17vpaj6kyf2i8bimaxz7rg1kyadf4d10642ja67qiqlhwgczl2w7"))))
1137 (build-system ruby-build-system)
1139 `(("bundler" ,bundler)))
1140 (synopsis "Generic connection pool for Ruby")
1141 (description "Connection_pool provides a generic connection pooling
1142 interface for Ruby programs.")
1143 (home-page "https://github.com/mperham/connection_pool")
1144 (license license:expat)))
1146 (define-public ruby-net-http-persistent
1148 (name "ruby-net-http-persistent")
1152 (uri (rubygems-uri "net-http-persistent" version))
1155 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1156 (build-system ruby-build-system)
1158 `(("ruby-connection-pool" ,ruby-connection-pool)
1159 ("ruby-hoe" ,ruby-hoe)))
1160 (synopsis "Persistent HTTP connection manager")
1161 (description "Net::HTTP::Persistent manages persistent HTTP connections
1162 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1163 (home-page "https://github.com/drbrain/net-http-persistent")
1164 (license license:expat)))
1166 (define-public ruby-power-assert
1168 (name "ruby-power-assert")
1172 (uri (rubygems-uri "power_assert" version))
1175 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1176 (build-system ruby-build-system)
1178 `(("bundler" ,bundler)))
1179 (synopsis "Assert library with descriptive assertion messages")
1180 (description "Power-assert is an assertion library providing descriptive
1181 assertion messages for tests.")
1182 (home-page "https://github.com/k-tsj/power_assert")
1183 (license (list license:bsd-2 license:ruby))))
1185 (define-public ruby-locale
1187 (name "ruby-locale")
1191 (uri (rubygems-uri "locale" version))
1194 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1195 (build-system ruby-build-system)
1196 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1197 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1198 ;; dependency cycle we disable tests.
1199 (arguments `(#:tests? #f))
1201 `(("bundler" ,bundler)
1202 ("ruby-yard" ,ruby-yard)))
1203 (synopsis "Ruby library providing basic localization APIs")
1205 "Ruby-Locale is the pure ruby library which provides basic APIs for
1207 (home-page "https://github.com/ruby-gettext/locale")
1208 (license (list license:lgpl3+ license:ruby))))
1210 (define-public ruby-text
1216 (uri (rubygems-uri "text" version))
1219 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1220 (build-system ruby-build-system)
1221 (synopsis "Collection of text algorithms for Ruby")
1223 "This package provides a collection of text algorithms: Levenshtein,
1224 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1225 (home-page "https://github.com/threedaymonk/text")
1226 (license license:expat)))
1228 (define-public ruby-gettext
1230 (name "ruby-gettext")
1234 (uri (rubygems-uri "gettext" version))
1237 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1238 (build-system ruby-build-system)
1239 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1240 ;; which needs ruby-gettext. To break the dependency cycle we disable
1242 (arguments `(#:tests? #f))
1244 `(("ruby-locale" ,ruby-locale)
1245 ("ruby-text" ,ruby-text)))
1247 `(("bundler" ,bundler)
1248 ("ruby-yard" ,ruby-yard)))
1249 (synopsis "GNU gettext-like program for Ruby")
1251 "Gettext is a GNU gettext-like program for Ruby. The catalog
1252 file (po-file) used is the same as that used by GNU gettext, allowing you to
1253 use GNU gettext tools for maintenance.")
1254 (home-page "http://ruby-gettext.github.com/")
1255 (license (list license:lgpl3+ license:ruby))))
1257 (define-public ruby-packnga
1259 (name "ruby-packnga")
1263 (uri (rubygems-uri "packnga" version))
1266 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
1267 (build-system ruby-build-system)
1268 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1269 ;; To break the dependency cycle we disable tests.
1270 (arguments `(#:tests? #f))
1272 `(("ruby-gettext" ,ruby-gettext)
1273 ("ruby-yard" ,ruby-yard)))
1275 `(("bundler" ,bundler)))
1276 (synopsis "Utility library to package internationalized libraries")
1278 "Packnga is a library to translate to many languages using YARD.")
1279 (home-page "http://ranguba.org/packnga/")
1280 (license license:lgpl2.0+)))
1282 (define-public ruby-test-unit
1284 (name "ruby-test-unit")
1288 (uri (rubygems-uri "test-unit" version))
1291 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
1292 (build-system ruby-build-system)
1294 `(("ruby-power-assert" ,ruby-power-assert)))
1296 `(("bundler" ,bundler)
1297 ("ruby-packnga" ,ruby-packnga)
1298 ("ruby-yard" ,ruby-yard)))
1299 (synopsis "Unit testing framework for Ruby")
1300 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1301 on xUnit principles. These were originally designed by Kent Beck, creator of
1302 extreme programming software development methodology, for Smalltalk's SUnit.
1303 It allows writing tests, checking results and automated testing in Ruby.")
1304 (home-page "http://test-unit.github.io/")
1305 (license (list license:psfl license:ruby))))
1307 (define-public ruby-metaclass
1309 (name "ruby-metaclass")
1313 (uri (rubygems-uri "metaclass" version))
1316 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1317 (build-system ruby-build-system)
1320 (modify-phases %standard-phases
1321 (add-after 'unpack 'add-test-unit-to-search-path
1322 (lambda* (#:key inputs #:allow-other-keys)
1323 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1324 (test-unit-home (gem-home test-unit
1325 ,(package-version ruby))))
1326 (substitute* "Rakefile"
1327 (("t\\.libs << \"test\"" line)
1328 (string-append line "; t.libs << \""
1331 ,(package-version ruby-test-unit)
1335 `(("bundler" ,bundler)
1336 ("ruby-test-unit" ,ruby-test-unit)))
1337 (synopsis "Ruby library adding metaclass method to all objects")
1339 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1341 (home-page "https://github.com/floehopper/metaclass")
1342 (license license:expat)))
1344 (define-public ruby-blankslate
1346 (name "ruby-blankslate")
1350 (uri (rubygems-uri "blankslate" version))
1353 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1354 (build-system ruby-build-system)
1357 (modify-phases %standard-phases
1359 (lambda _ (zero? (system* "rspec" "spec/")))))))
1361 `(("bundler" ,bundler)
1362 ("ruby-rspec" ,ruby-rspec)))
1363 (synopsis "Abstract base class with no predefined methods")
1365 "BlankSlate provides an abstract base class with no predefined
1366 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1367 as a base class when writing classes that depend upon
1368 @code{method_missing} (e.g. dynamic proxies).")
1369 (home-page "https://github.com/masover/blankslate")
1370 (license license:expat)))
1372 (define-public ruby-instantiator
1374 (name "ruby-instantiator")
1378 (uri (rubygems-uri "instantiator" version))
1381 "0mfmqhg9xrv9i8i1kmphf15ywddhivyh2z3ccl0xjw8qy54zr21i"))))
1382 (build-system ruby-build-system)
1385 (modify-phases %standard-phases
1386 (add-after 'unpack 'add-test-unit-to-search-path
1387 (lambda* (#:key inputs #:allow-other-keys)
1388 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1389 (test-unit-home (gem-home test-unit ,(package-version
1391 (substitute* "Rakefile"
1392 (("t\\.libs << \"test\"" line)
1393 (string-append line "; t.libs << \""
1396 ,(package-version ruby-test-unit)
1400 `(("ruby-blankslate" ,ruby-blankslate)))
1402 `(("bundler" ,bundler)
1403 ("ruby-test-unit" ,ruby-test-unit)))
1404 (synopsis "Instantiate an arbitrary Ruby class")
1406 "Instantiator lets you instantiate an arbitrary Ruby class without
1407 knowing anything about the constructor.")
1408 (home-page "https://github.com/floehopper/instantiator")
1409 (license license:expat)))
1411 (define-public ruby-introspection
1413 (name "ruby-introspection")
1417 (uri (rubygems-uri "introspection" version))
1420 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
1421 (build-system ruby-build-system)
1424 (modify-phases %standard-phases
1425 (add-after 'unpack 'add-test-unit-to-search-path
1426 (lambda* (#:key inputs #:allow-other-keys)
1427 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1428 (test-unit-home (gem-home test-unit ,(package-version
1430 (substitute* "Rakefile"
1431 (("t\\.libs << \"test\"" line)
1432 (string-append line "; t.libs << \""
1435 ,(package-version ruby-test-unit)
1439 `(("ruby-instantiator" ,ruby-instantiator)
1440 ("ruby-metaclass" ,ruby-metaclass)))
1442 `(("bundler" ,bundler)
1443 ("ruby-blankslate" ,ruby-blankslate)
1444 ("ruby-test-unit" ,ruby-test-unit)))
1445 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1447 "Introspection provides tools to inspect the hierarchy of method
1448 definitions on a Ruby object.")
1449 (home-page "https://github.com/floehopper/introspection")
1450 (license license:expat)))
1452 (define-public ruby-redcarpet
1454 (name "ruby-redcarpet")
1458 (uri (rubygems-uri "redcarpet" version))
1461 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
1462 (build-system ruby-build-system)
1465 (modify-phases %standard-phases
1466 ;; The gem archive does not include the conformance tests.
1467 (add-after 'unpack 'disable-conformance-tests
1469 (substitute* "Rakefile"
1470 (("task :test => %w\\[test:unit test:conformance\\]")
1471 "task :test => %w[test:unit]"))
1474 `(("bundler" ,bundler)
1475 ("ruby-test-unit" ,ruby-test-unit)
1476 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1477 (synopsis "Extensible Markdown to (X)HTML converter")
1479 "Redcarpet is an extensible Ruby library for Markdown processing and
1480 conversion to (X)HTML.")
1481 (home-page "https://github.com/vmg/redcarpet")
1482 (license license:expat)))
1484 (define-public ruby-mocha
1490 (uri (rubygems-uri "mocha" version))
1493 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1494 (build-system ruby-build-system)
1497 (modify-phases %standard-phases
1498 (add-after 'unpack 'add-test-unit-to-search-path
1499 (lambda* (#:key inputs #:allow-other-keys)
1500 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1501 (test-unit-home (gem-home test-unit
1502 ,(package-version ruby))))
1503 (substitute* "Rakefile"
1504 (("t\\.libs << 'test'" line)
1505 (string-append line "; t.libs << \""
1508 ,(package-version ruby-test-unit)
1511 (add-before 'check 'use-latest-redcarpet
1513 (substitute* "mocha.gemspec"
1514 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1515 "<redcarpet>.freeze, [\">= 3\"]"))
1517 (add-before 'check 'hardcode-version
1519 ;; Mocha is undefined at build time
1520 (substitute* "Rakefile"
1521 (("#\\{Mocha::VERSION\\}") ,version))
1523 (add-before 'check 'remove-failing-test
1524 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1526 (delete-file "test/acceptance/stubbing_nil_test.rb")
1529 `(("ruby-metaclass" ,ruby-metaclass)))
1531 `(("bundler" ,bundler)
1532 ("ruby-yard" ,ruby-yard)
1533 ("ruby-introspection" ,ruby-introspection)
1534 ("ruby-test-unit" ,ruby-test-unit)
1535 ("ruby-redcarpet" ,ruby-redcarpet)))
1536 (synopsis "Mocking and stubbing library for Ruby")
1538 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1539 allows mocking and stubbing of methods on real (non-mock) classes.")
1540 (home-page "http://gofreerange.com/mocha/docs")
1541 (license license:expat)))
1543 (define-public ruby-net-ssh
1545 (name "ruby-net-ssh")
1549 (uri (rubygems-uri "net-ssh" version))
1552 "013p5jb4wy0cq7x7036piw2a3s1i9p752ki1srx2m289mpz4ml3q"))))
1553 (build-system ruby-build-system)
1555 `(("bundler" ,bundler)
1556 ("ruby-mocha" ,ruby-mocha)
1557 ("ruby-test-unit" ,ruby-test-unit)))
1558 (synopsis "Ruby implementation of the SSH2 client protocol")
1559 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1560 client protocol. It allows you to write programs that invoke and interact
1561 with processes on remote servers, via SSH2.")
1562 (home-page "https://github.com/net-ssh/net-ssh")
1563 (license license:expat)))
1565 (define-public ruby-minitest
1567 (name "ruby-minitest")
1571 (uri (rubygems-uri "minitest" version))
1574 "05521clw19lrksqgvg2kmm025pvdhdaniix52vmbychrn2jm7kz2"))))
1575 (build-system ruby-build-system)
1577 `(("ruby-hoe" ,ruby-hoe)))
1578 (synopsis "Small test suite library for Ruby")
1579 (description "Minitest provides a complete suite of Ruby testing
1580 facilities supporting TDD, BDD, mocking, and benchmarking.")
1581 (home-page "https://github.com/seattlerb/minitest")
1582 (license license:expat)))
1584 ;; This is the last release of Minitest 4, which is used by some packages.
1585 (define-public ruby-minitest-4
1586 (package (inherit ruby-minitest)
1590 (uri (rubygems-uri "minitest" version))
1593 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1596 (modify-phases %standard-phases
1597 (add-after 'unpack 'remove-unsupported-method
1599 (substitute* "Rakefile"
1600 (("self\\.rubyforge_name = .*") ""))
1602 (add-after 'build 'exclude-failing-tests
1604 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
1606 (delete-file "test/minitest/test_minitest_spec.rb")
1609 (define-public ruby-minitest-sprint
1611 (name "ruby-minitest-sprint")
1615 (uri (rubygems-uri "minitest-sprint" version))
1618 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
1619 (build-system ruby-build-system)
1621 `(("ruby-hoe" ,ruby-hoe)
1622 ("ruby-minitest" ,ruby-minitest)))
1623 (synopsis "Fast test suite runner for minitest")
1624 (description "Minitest-sprint is a test runner for minitest that makes it
1625 easier to re-run individual failing tests.")
1626 (home-page "https://github.com/seattlerb/minitest-sprint")
1627 (license license:expat)))
1629 (define-public ruby-minitest-bacon
1631 (name "ruby-minitest-bacon")
1635 (uri (rubygems-uri "minitest-bacon" version))
1638 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
1639 (build-system ruby-build-system)
1641 `(("ruby-hoe" ,ruby-hoe)))
1643 `(("ruby-minitest" ,ruby-minitest)))
1644 (synopsis "Bacon compatibility library for minitest")
1645 (description "Minitest-bacon extends minitest with bacon-like
1646 functionality, making it easier to migrate test suites from bacon to minitest.")
1647 (home-page "https://github.com/seattlerb/minitest-bacon")
1648 (license license:expat)))
1650 (define-public ruby-minitest-focus
1652 (name "ruby-minitest-focus")
1657 (uri (rubygems-uri "minitest-focus" version))
1660 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1661 (build-system ruby-build-system)
1663 `(("ruby-minitest" ,ruby-minitest)))
1665 `(("ruby-hoe" ,ruby-hoe)))
1666 (synopsis "Allows a few specific tests to be focused on")
1668 "@code{minitest-focus} gives the ability focus on a few tests with ease
1669 without having to use command-line arguments. It introduces a @code{focus}
1670 class method for use in testing classes, specifying that the next defined test
1672 (home-page "https://github.com/seattlerb/minitest-focus")
1673 (license license:expat)))
1675 (define-public ruby-minitest-pretty-diff
1676 ;; Use git reference because gem is out of date and does not contain testing
1677 ;; script. There are no releases on GitHub.
1678 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
1680 (name "ruby-minitest-pretty-diff")
1681 (version (string-append "0.1-1." (string-take commit 8)))
1685 (url "https://github.com/adammck/minitest-pretty_diff.git")
1687 (file-name (string-append name "-" version "-checkout"))
1690 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
1691 (build-system ruby-build-system)
1694 (modify-phases %standard-phases
1697 (zero? (system* "script/test")))))))
1699 `(("bundler" ,bundler)
1700 ("ruby-turn" ,ruby-turn)))
1701 (synopsis "Pretty-print hashes and arrays in MiniTest")
1703 "@code{minitest-pretty_diff} monkey-patches
1704 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
1705 diffing them. This makes it easier to spot differences between nested
1706 structures when tests fail.")
1707 (home-page "https://github.com/adammck/minitest-pretty_diff")
1708 (license license:expat))))
1710 (define-public ruby-minitest-moar
1712 (name "ruby-minitest-moar")
1717 (uri (rubygems-uri "minitest-moar" version))
1720 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
1721 (build-system ruby-build-system)
1724 (modify-phases %standard-phases
1725 (add-before 'check 'clean-dependencies
1727 ;; Remove all gems defined in the Gemfile because these are not
1729 (substitute* "Gemfile"
1731 ;; Remove byebug as not needed to run tests.
1732 (substitute* "test/test_helper.rb"
1733 (("require 'byebug'") ""))
1736 `(("bundler" ,bundler)
1737 ("ruby-minitest" ,ruby-minitest)))
1738 (synopsis "Extra features and changes to MiniTest")
1739 (description "@code{MiniTest Moar} add some additional features and
1740 changes some default behaviours in MiniTest. For instance, Moar replaces the
1741 MiniTest @code{Object#stub} with a global @code{stub} method.")
1742 (home-page "https://github.com/dockyard/minitest-moar")
1743 (license license:expat)))
1745 (define-public ruby-minitest-bonus-assertions
1747 (name "ruby-minitest-bonus-assertions")
1752 (uri (rubygems-uri "minitest-bonus-assertions" version))
1755 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
1756 (build-system ruby-build-system)
1759 (modify-phases %standard-phases
1760 (add-before 'check 'clean-dependencies
1762 ;; Remove unneeded require statement that would entail another
1764 (substitute* "test/minitest_config.rb"
1765 (("require 'minitest/bisect'") ""))
1768 `(("ruby-hoe" ,ruby-hoe)
1769 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
1770 ("ruby-minitest-focus" ,ruby-minitest-focus)
1771 ("ruby-minitest-moar" ,ruby-minitest-moar)))
1772 (synopsis "Bonus assertions for @code{Minitest}")
1774 "Minitest bonus assertions provides extra MiniTest assertions. For
1775 instance, it provides @code{assert_true}, @code{assert_false} and
1776 @code{assert_set_equal}.")
1777 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
1778 (license license:expat)))
1780 (define-public ruby-minitest-rg
1782 (name "ruby-minitest-rg")
1787 (uri (rubygems-uri "minitest-rg" version))
1790 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
1791 (build-system ruby-build-system)
1793 ;; Some tests fail even outside Guix, so disable tests.
1794 ;; https://github.com/blowmage/minitest-rg/issues/12
1795 ;; https://github.com/blowmage/minitest-rg/pull/13
1798 `(("ruby-minitest" ,ruby-minitest)))
1799 (synopsis "Coloured output for Minitest")
1801 "@code{minitest-rg} changes the colour of the output from Minitest.")
1802 (home-page "http://blowmage.com/minitest-rg")
1803 (license license:expat)))
1805 (define-public ruby-minitest-hooks
1807 (name "ruby-minitest-hooks")
1812 (uri (rubygems-uri "minitest-hooks" version))
1815 "05bngfyxwq1cflk568nhddgfrmws5ff6kiqax4skklsjnh71ykbi"))))
1816 (build-system ruby-build-system)
1818 '(#:test-target "spec"))
1820 `(("ruby-sequel" ,ruby-sequel)
1821 ("ruby-sqlite3" ,ruby-sqlite3)))
1822 (synopsis "Hooks for the minitest framework")
1824 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
1825 @code{around_all} hooks for Minitest. This allows, for instance, running each
1826 suite of specs inside a database transaction, running each spec inside its own
1827 savepoint inside that transaction. This can significantly speed up testing
1828 for specs that share expensive database setup code.")
1829 (home-page "https://github.com/jeremyevans/minitest-hooks")
1830 (license license:expat)))
1832 (define-public ruby-daemons
1834 (name "ruby-daemons")
1838 (uri (rubygems-uri "daemons" version))
1841 "1bmb4qrd95b5gl3ym5j3q6mf090209f4vkczggn49n56w6s6zldz"))))
1842 (build-system ruby-build-system)
1844 `(#:tests? #f)) ; no test suite
1845 (synopsis "Daemonize Ruby programs")
1846 (description "Daemons provides a way to wrap existing Ruby scripts to be
1847 run as a daemon and to be controlled by simple start/stop/restart commands.")
1848 (home-page "https://github.com/thuehlinger/daemons")
1849 (license license:expat)))
1851 (define-public ruby-git
1857 (uri (rubygems-uri "git" version))
1860 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
1861 (build-system ruby-build-system)
1863 `(#:tests? #f ; no tests
1864 #:phases (modify-phases %standard-phases
1865 (add-after 'install 'patch-git-binary
1866 (lambda* (#:key inputs outputs #:allow-other-keys)
1867 ;; Make the default git binary an absolute path to the
1869 (let ((git (string-append (assoc-ref inputs "git")
1871 (config (string-append (getenv "GEM_HOME")
1872 "/gems/git-" ,version
1873 "/lib/git/config.rb")))
1874 (substitute* (list config)
1876 (string-append "'" git "'")))
1880 (synopsis "Ruby wrappers for Git")
1881 (description "Ruby/Git is a Ruby library that can be used to create, read
1882 and manipulate Git repositories by wrapping system calls to the git binary.")
1883 (home-page "https://github.com/schacon/ruby-git")
1884 (license license:expat)))
1886 (define-public ruby-slop
1892 (uri (rubygems-uri "slop" version))
1895 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
1896 (build-system ruby-build-system)
1898 `(("ruby-minitest" ,ruby-minitest)))
1899 (synopsis "Ruby command line option parser")
1900 (description "Slop provides a Ruby domain specific language for gathering
1901 options and parsing command line flags.")
1902 (home-page "https://github.com/leejarvis/slop")
1903 (license license:expat)))
1905 (define-public ruby-slop-3
1906 (package (inherit ruby-slop)
1910 (uri (rubygems-uri "slop" version))
1913 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
1915 (define-public ruby-multipart-post
1917 (name "ruby-multipart-post")
1921 (uri (rubygems-uri "multipart-post" version))
1924 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
1925 (build-system ruby-build-system)
1927 `(("bundler" ,bundler)))
1928 (synopsis "Multipart POST library for Ruby")
1929 (description "Multipart-Post Adds multipart POST capability to Ruby's
1931 (home-page "https://github.com/nicksieger/multipart-post")
1932 (license license:expat)))
1934 (define-public ruby-multi-json
1936 (name "ruby-multi-json")
1941 (uri (rubygems-uri "multi_json" version))
1944 "1raim9ddjh672m32psaa9niw67ywzjbxbdb8iijx3wv9k5b0pk2x"))))
1945 (build-system ruby-build-system)
1947 '(#:tests? #f)) ;; No testsuite included in the gem.
1948 (synopsis "Common interface to multiple JSON libraries for Ruby")
1950 "This package provides a common interface to multiple JSON libraries,
1951 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
1952 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
1953 (home-page "http://github.com/intridea/multi_json")
1954 (license license:expat)))
1956 (define-public ruby-arel
1962 (uri (rubygems-uri "arel" version))
1965 "0nw0qbc6ph625p6n3maqq9f527vz3nbl0hk72fbyka8jzsmplxzl"))))
1966 (build-system ruby-build-system)
1967 (arguments '(#:tests? #f)) ; no tests
1968 (home-page "https://github.com/rails/arel")
1969 (synopsis "SQL AST manager for Ruby")
1970 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
1971 Ruby. It simplifies the generation of complex SQL queries and adapts to
1972 various relational database implementations.")
1973 (license license:expat)))
1975 (define-public ruby-minitar
1976 ;; We package from the GitHub source to fix the security issue reported at
1977 ;; https://github.com/halostatue/minitar/issues/16.
1978 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
1980 (name "ruby-minitar")
1981 (version (string-append "0.5.4-1." (string-take commit 8)))
1986 (url "https://github.com/halostatue/minitar.git")
1988 (file-name (string-append name "-" version "-checkout"))
1991 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
1992 (build-system ruby-build-system)
1994 '(#:tests? #f)) ; missing a gemspec
1995 (synopsis "Ruby library and utility for handling tar archives")
1997 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
1998 that provides the ability to deal with POSIX tar archive files.")
1999 (home-page "http://www.github.com/atoulme/minitar")
2000 (license (list license:gpl2+ license:ruby)))))
2002 (define-public ruby-mini-portile
2004 (name "ruby-mini-portile")
2009 (uri (rubygems-uri "mini_portile" version))
2012 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
2013 (build-system ruby-build-system)
2015 '(#:tests? #f)) ; tests require network access
2016 (synopsis "Ports system for Ruby developers")
2017 (description "Mini-portile is a port/recipe system for Ruby developers.
2018 It provides a standard way to compile against specific versions of libraries
2019 to reproduce user environments.")
2020 (home-page "https://github.com/flavorjones/mini_portile")
2021 (license license:expat)))
2023 (define-public ruby-mini-portile-2
2024 (package (inherit ruby-mini-portile)
2028 (uri (rubygems-uri "mini_portile2" version))
2031 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
2033 (define-public ruby-nokogiri
2035 (name "ruby-nokogiri")
2039 (uri (rubygems-uri "nokogiri" version))
2042 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
2043 (build-system ruby-build-system)
2045 ;; Tests fail because Nokogiri can only test with an installed extension,
2046 ;; and also because many test framework dependencies are missing.
2048 #:gem-flags (list "--" "--use-system-libraries"
2049 (string-append "--with-xml2-include="
2050 (assoc-ref %build-inputs "libxml2")
2051 "/include/libxml2" ))
2053 (modify-phases %standard-phases
2054 (add-before 'build 'patch-extconf
2055 ;; 'pkg-config' is not included in the GEM_PATH during
2056 ;; installation, so we add it directly to the load path.
2057 (lambda* (#:key inputs #:allow-other-keys)
2058 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))
2059 (pkg-config-home (gem-home pkg-config
2060 ,(package-version ruby))))
2061 (substitute* "ext/nokogiri/extconf.rb"
2062 (("gem 'pkg-config'.*")
2063 (string-append "$:.unshift '"
2066 ,(package-version ruby-pkg-config)
2070 `(("ruby-hoe" ,ruby-hoe)))
2073 ("libxml2" ,libxml2)
2074 ("libxslt" ,libxslt)))
2076 `(("ruby-mini-portile" ,ruby-mini-portile-2)
2077 ("ruby-pkg-config" ,ruby-pkg-config)))
2078 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
2079 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
2080 both CSS3 selector and XPath 1.0 support.")
2081 (home-page "http://www.nokogiri.org/")
2082 (license license:expat)))
2084 (define-public ruby-method-source
2086 (name "ruby-method-source")
2091 (uri (rubygems-uri "method_source" version))
2094 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
2095 (build-system ruby-build-system)
2097 `(#:test-target "spec"))
2099 `(("ruby-rspec" ,ruby-rspec)
2101 (synopsis "Retrieve the source code for Ruby methods")
2102 (description "Method_source retrieves the source code for Ruby methods.
2103 Additionally, it can extract source code from Proc and Lambda objects or just
2105 (home-page "https://github.com/banister/method_source")
2106 (license license:expat)))
2108 (define-public ruby-coderay
2110 (name "ruby-coderay")
2115 (uri (rubygems-uri "coderay" version))
2118 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
2119 (build-system ruby-build-system)
2121 '(#:tests? #f)) ; missing test files
2122 (synopsis "Ruby syntax highlighting library")
2123 (description "Coderay is a Ruby library that provides syntax highlighting
2124 for select languages.")
2125 (home-page "http://coderay.rubychan.de")
2126 (license license:expat)))
2128 (define-public ruby-progress_bar
2130 (name "ruby-progress_bar")
2135 (uri (rubygems-uri "progress_bar" version))
2138 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
2139 (build-system ruby-build-system)
2141 '(#:test-target "spec"))
2143 `(("ruby-highline" ,ruby-highline)
2144 ("ruby-options" ,ruby-options)))
2146 `(("bundler" ,bundler)
2147 ("ruby-rspec" ,ruby-rspec)
2148 ("ruby-timecop" ,ruby-timecop)))
2150 "Ruby library for displaying progress bars")
2152 "ProgressBar is a simple library for displaying progress bars. The
2153 maximum value is configurable, and additional information can be displayed
2154 like the percentage completion, estimated time remaining, elapsed time and
2156 (home-page "https://github.com/paul/progress_bar")
2157 (license license:wtfpl2)))
2159 (define-public ruby-pry
2166 (uri (rubygems-uri "pry" version))
2169 "0ci461a55sn50rlrmcl97ycf79681glp443a2gzp23rnm7y70fkj"))))
2170 (build-system ruby-build-system)
2172 '(#:tests? #f)) ; no tests
2174 `(("ruby-coderay" ,ruby-coderay)
2175 ("ruby-method-source" ,ruby-method-source)))
2176 (synopsis "Ruby REPL")
2177 (description "Pry is an IRB alternative and runtime developer console for
2178 Ruby. It features syntax highlighting, a plugin architecture, runtime
2179 invocation, and source and documentation browsing.")
2180 (home-page "http://pryrepl.org")
2181 (license license:expat)))
2183 (define-public ruby-guard
2189 ;; The gem does not include a Rakefile, nor does it contain a
2190 ;; gemspec file, nor does it come with the tests. This is why
2191 ;; we fetch the tarball from Github.
2192 (uri (string-append "https://github.com/guard/guard/archive/v"
2194 (file-name (string-append name "-" version ".tar.gz"))
2197 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2198 (build-system ruby-build-system)
2200 `(#:tests? #f ; tests require cucumber
2202 (modify-phases %standard-phases
2203 (add-after 'unpack 'remove-git-ls-files
2204 (lambda* (#:key outputs #:allow-other-keys)
2205 (substitute* "guard.gemspec"
2206 (("git ls-files -z") "find . -type f -print0"))
2210 (zero? (system* "gem" "build" "guard.gemspec")))))))
2212 `(("ruby-formatador" ,ruby-formatador)
2213 ("ruby-listen" ,ruby-listen)
2214 ("ruby-lumberjack" ,ruby-lumberjack)
2215 ("ruby-nenv" ,ruby-nenv)
2216 ("ruby-notiffany" ,ruby-notiffany)
2217 ("ruby-pry" ,ruby-pry)
2218 ("ruby-shellany" ,ruby-shellany)
2219 ("ruby-thor" ,ruby-thor)))
2221 `(("bundler" ,bundler)
2222 ("ruby-rspec" ,ruby-rspec)))
2223 (synopsis "Tool to handle events on file system modifications")
2225 "Guard is a command line tool to easily handle events on file system
2226 modifications. Guard automates various tasks by running custom rules whenever
2227 file or directories are modified.")
2228 (home-page "http://guardgem.org/")
2229 (license license:expat)))
2231 (define-public ruby-thread-safe
2233 (name "ruby-thread-safe")
2238 (uri (rubygems-uri "thread_safe" version))
2241 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
2242 (build-system ruby-build-system)
2244 '(#:tests? #f)) ; needs simplecov, among others
2245 (synopsis "Thread-safe utilities for Ruby")
2246 (description "The thread_safe library provides thread-safe collections and
2247 utilities for Ruby.")
2248 (home-page "https://github.com/ruby-concurrency/thread_safe")
2249 (license license:asl2.0)))
2251 (define-public ruby-tzinfo
2253 (name "ruby-tzinfo")
2258 (uri (rubygems-uri "tzinfo" version))
2261 "05r81lk7q7275rdq7xipfm0yxgqyd2ggh73xpc98ypngcclqcscl"))))
2262 (build-system ruby-build-system)
2264 `(("ruby-thread-safe" ,ruby-thread-safe)))
2265 (synopsis "Time zone library for Ruby")
2266 (description "TZInfo is a Ruby library that provides daylight savings
2267 aware transformations between times in different time zones.")
2268 (home-page "http://tzinfo.github.io")
2269 (license license:expat)))
2271 (define-public ruby-tzinfo-data
2273 (name "ruby-tzinfo-data")
2274 (version "1.2016.9")
2278 ;; Download from GitHub because the rubygems version does not contain
2279 ;; Rakefile or tests.
2281 "https://github.com/tzinfo/tzinfo-data/archive/v"
2284 (file-name (string-append name "-" version ".tar.gz"))
2287 "0i8vz2j7wmcpr4pd066qvlg4if5blscjrgxk2imavfa49nq5lp06"))
2288 ;; Remove the known test failure.
2289 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2290 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2291 (patches (search-patches
2292 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2293 (build-system ruby-build-system)
2295 `(("ruby-tzinfo" ,ruby-tzinfo)))
2296 (synopsis "Data from the IANA Time Zone database")
2298 "This library provides @code{TZInfo::Data}, which contains data from the
2299 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2300 (home-page "http://tzinfo.github.io")
2301 (license license:expat)))
2303 (define-public ruby-rb-inotify
2305 (name "ruby-rb-inotify")
2310 (uri (rubygems-uri "rb-inotify" version))
2313 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
2314 (build-system ruby-build-system)
2316 '(#:tests? #f ; there are no tests
2318 (modify-phases %standard-phases
2319 ;; Building the gemspec with rake is not working here since it is
2320 ;; generated with Jeweler. It is also unnecessary because the
2321 ;; existing gemspec does not use any development tools to generate a
2325 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2327 `(("ruby-ffi" ,ruby-ffi)))
2329 `(("ruby-yard" ,ruby-yard)))
2330 (synopsis "Ruby wrapper for Linux's inotify")
2331 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2332 kernel subsystem for monitoring changes to files and directories.")
2333 (home-page "https://github.com/nex3/rb-inotify")
2334 (license license:expat)))
2336 (define-public ruby-pry-editline
2338 (name "ruby-pry-editline")
2342 (uri (rubygems-uri "pry-editline" version))
2345 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2346 (build-system ruby-build-system)
2347 (arguments `(#:tests? #f)) ; no tests included
2349 `(("bundler" ,bundler)))
2350 (synopsis "Open the current REPL line in an editor")
2352 "This gem provides a plugin for the Ruby REPL to enable opening the
2353 current line in an external editor.")
2354 (home-page "https://github.com/tpope/pry-editline")
2355 (license license:expat)))
2357 (define-public ruby-sdoc
2363 (uri (rubygems-uri "sdoc" version))
2366 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
2367 (build-system ruby-build-system)
2370 (modify-phases %standard-phases
2371 (add-before 'check 'set-rubylib-and-patch-gemfile
2373 (setenv "RUBYLIB" "lib")
2374 (substitute* "sdoc.gemspec"
2375 (("s.add_runtime_dependency.*") "\n")
2376 (("s.add_dependency.*") "\n"))
2377 (substitute* "Gemfile"
2379 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
2382 `(("ruby-json" ,ruby-json)))
2384 `(("bundler" ,bundler)
2385 ("ruby-minitest" ,ruby-minitest)
2386 ("ruby-hoe" ,ruby-hoe)))
2387 (synopsis "Generate searchable RDoc documentation")
2389 "SDoc is an RDoc documentation generator to build searchable HTML
2390 documentation for Ruby code.")
2391 (home-page "https://github.com/voloko/sdoc")
2392 (license license:expat)))
2394 (define-public ruby-tins
2400 (uri (rubygems-uri "tins" version))
2403 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
2404 (build-system ruby-build-system)
2405 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2406 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2409 `(#:tests? #f ; there are no tests
2411 (modify-phases %standard-phases
2414 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2416 (substitute* "tins.gemspec"
2417 (("\"lib/spruz\", ") ""))
2418 (zero? (system* "gem" "build" "tins.gemspec")))))))
2419 (synopsis "Assorted tools for Ruby")
2420 (description "Tins is a Ruby library providing assorted tools.")
2421 (home-page "https://github.com/flori/tins")
2422 (license license:expat)))
2424 (define-public ruby-gem-hadar
2426 (name "ruby-gem-hadar")
2430 (uri (rubygems-uri "gem_hadar" version))
2433 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
2434 (build-system ruby-build-system)
2435 ;; This gem needs itself at development time. We disable rebuilding of the
2436 ;; gemspec to avoid this loop.
2438 `(#:tests? #f ; there are no tests
2440 (modify-phases %standard-phases
2443 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2446 ("ruby-tins" ,ruby-tins)
2447 ("ruby-yard" ,ruby-yard)))
2448 (synopsis "Library for the development of Ruby gems")
2450 "This library contains some useful functionality to support the
2451 development of Ruby gems.")
2452 (home-page "https://github.com/flori/gem_hadar")
2453 (license license:expat)))
2455 (define-public ruby-minitest-tu-shim
2457 (name "ruby-minitest-tu-shim")
2461 (uri (rubygems-uri "minitest_tu_shim" version))
2464 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2465 (build-system ruby-build-system)
2468 (modify-phases %standard-phases
2469 (add-after 'unpack 'fix-test-include-path
2470 (lambda* (#:key inputs #:allow-other-keys)
2471 (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))
2472 (minitest-home (gem-home minitest
2473 ,(package-version ruby))))
2474 (substitute* "Rakefile"
2475 (("Hoe\\.add_include_dirs .*")
2476 (string-append "Hoe.add_include_dirs \""
2479 ,(package-version ruby-minitest-4)
2482 (add-before 'check 'fix-test-assumptions
2484 ;; The test output includes the file name, so a couple of tests
2485 ;; fail. Changing the regular expressions slightly fixes this
2487 (substitute* "test/test_mini_test.rb"
2488 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2489 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2490 (("gsub\\(/.*, 'FILE:LINE'\\)")
2491 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2494 `(("ruby-minitest-4" ,ruby-minitest-4)))
2496 `(("ruby-hoe" ,ruby-hoe)))
2497 (synopsis "Adapter library between minitest and test/unit")
2499 "This library bridges the gap between the small and fast minitest and
2500 Ruby's large and slower test/unit.")
2501 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2502 (license license:expat)))
2504 (define-public ruby-term-ansicolor
2506 (name "ruby-term-ansicolor")
2510 (uri (rubygems-uri "term-ansicolor" version))
2513 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
2514 (build-system ruby-build-system)
2515 ;; Rebuilding the gemspec seems to require git, even though this is not a
2516 ;; git repository, so we just build the gem from the existing gemspec.
2519 (modify-phases %standard-phases
2522 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2524 `(("ruby-tins" ,ruby-tins)))
2526 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2527 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2528 (synopsis "Ruby library to control the attributes of terminal output")
2530 "This Ruby library uses ANSI escape sequences to control the attributes
2531 of terminal output.")
2532 (home-page "http://flori.github.io/term-ansicolor/")
2533 ;; There is no mention of the "or later" clause.
2534 (license license:gpl2)))
2536 (define-public ruby-pstree
2538 (name "ruby-pstree")
2542 (uri (rubygems-uri "pstree" version))
2545 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2546 (build-system ruby-build-system)
2548 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2549 ("bundler" ,bundler)))
2550 (synopsis "Create a process tree data structure")
2552 "This library uses the output of the @code{ps} command to create a
2553 process tree data structure for the current host.")
2554 (home-page "http://flori.github.com/pstree")
2555 ;; There is no mention of the "or later" clause.
2556 (license license:gpl2)))
2558 (define-public ruby-utils
2564 (uri (rubygems-uri "utils" version))
2567 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
2568 (build-system ruby-build-system)
2570 `(("ruby-tins" ,ruby-tins)
2571 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2572 ("ruby-pstree" ,ruby-pstree)
2573 ("ruby-pry-editline" ,ruby-pry-editline)))
2575 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2576 ("bundler" ,bundler)))
2577 (synopsis "Command line tools for working with Ruby")
2579 "This package provides assorted command line tools that may be useful
2580 when working with Ruby code.")
2581 (home-page "https://github.com/flori/utils")
2582 ;; There is no mention of the "or later" clause.
2583 (license license:gpl2)))
2585 (define-public ruby-json
2592 (uri (rubygems-uri "json" version))
2595 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
2596 (build-system ruby-build-system)
2597 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2598 (synopsis "JSON library for Ruby")
2599 (description "This Ruby library provides a JSON implementation written as
2600 a native C extension.")
2601 (home-page "http://json-jruby.rubyforge.org/")
2602 (license (list license:ruby license:gpl2)))) ; GPL2 only
2604 (define-public ruby-json-pure
2606 (name "ruby-json-pure")
2610 (uri (rubygems-uri "json_pure" version))
2613 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
2614 (build-system ruby-build-system)
2617 (modify-phases %standard-phases
2618 (add-after 'unpack 'fix-rakefile
2620 (substitute* "Rakefile"
2621 ;; Since this is not a git repository, do not call 'git'.
2622 (("`git ls-files`") "`find . -type f |sort`")
2623 ;; Loosen dependency constraint.
2624 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
2626 (add-after 'replace-git-ls-files 'regenerate-gemspec
2628 ;; Regenerate gemspec so loosened dependency constraints are
2630 (zero? (system* "rake" "gemspec")))))))
2632 `(("bundler" ,bundler)
2633 ("ruby-test-unit" ,ruby-test-unit)
2634 ("ruby-simplecov" ,ruby-simplecov)))
2635 (synopsis "JSON implementation in pure Ruby")
2637 "This package provides a JSON implementation written in pure Ruby.")
2638 (home-page "http://flori.github.com/json")
2639 (license license:ruby)))
2641 ;; Even though this package only provides bindings for a Mac OSX API it is
2642 ;; required by "ruby-listen" at runtime.
2643 (define-public ruby-rb-fsevent
2645 (name "ruby-rb-fsevent")
2649 (uri (rubygems-uri "rb-fsevent" version))
2652 "1fbpmjypwxkb8r7y1kmhmyp6gawa4byw0yb3jc3dn9ly4ld9lizf"))))
2653 (build-system ruby-build-system)
2654 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
2655 ;; "listen", which needs "rb-fsevent" at runtime.
2656 (arguments `(#:tests? #f))
2657 (synopsis "FSEvents API with signals catching")
2659 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
2660 (home-page "https://rubygems.org/gems/rb-fsevent")
2661 (license license:expat)))
2663 (define-public ruby-listen
2665 (name "ruby-listen")
2670 (uri (rubygems-uri "listen" version))
2673 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
2674 (build-system ruby-build-system)
2675 (arguments '(#:tests? #f)) ; no tests
2677 `(("ruby-rb-inotify" ,ruby-rb-inotify)
2678 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
2679 (synopsis "Listen to file modifications")
2680 (description "The Listen gem listens to file modifications and notifies
2681 you about the changes.")
2682 (home-page "https://github.com/guard/listen")
2683 (license license:expat)))
2685 (define-public ruby-activesupport
2687 (name "ruby-activesupport")
2692 (uri (rubygems-uri "activesupport" version))
2695 "0sgf4rsfr7jcaqsx0wwzx4l4k9xsjlwv0mzl08pxiyp1qzyx8scr"))))
2696 (build-system ruby-build-system)
2699 (modify-phases %standard-phases
2702 ;; There is no tests, instead attempt to load the library.
2703 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
2705 `(("ruby-concurrent" ,ruby-concurrent)
2706 ("ruby-i18n" ,ruby-i18n)
2707 ("ruby-minitest" ,ruby-minitest)
2708 ("ruby-tzinfo" ,ruby-tzinfo)
2709 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
2710 (synopsis "Ruby on Rails utility library")
2711 (description "ActiveSupport is a toolkit of support libraries and Ruby
2712 core extensions extracted from the Rails framework. It includes support for
2713 multibyte strings, internationalization, time zones, and testing.")
2714 (home-page "http://www.rubyonrails.org")
2715 (license license:expat)))
2717 (define-public ruby-crass
2723 (uri (rubygems-uri "crass" version))
2726 "1c377r8g7m58y22803iyjgqkkvnnii0pymskda1pardxrzaighj9"))))
2727 (build-system ruby-build-system)
2729 `(("bundler" ,bundler)
2730 ("ruby-minitest" ,ruby-minitest)))
2731 (synopsis "Pure Ruby CSS parser")
2733 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
2734 (home-page "https://github.com/rgrove/crass/")
2735 (license license:expat)))
2737 (define-public ruby-nokogumbo
2738 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
2740 (name "ruby-nokogumbo")
2741 (version (string-append "1.4.7-1." (string-take commit 8)))
2743 ;; We use the git reference, because there's no Rakefile in the
2744 ;; published gem and the tarball on Github is outdated.
2747 (url "https://github.com/rubys/nokogumbo.git")
2748 (commit "d56f954d20a")))
2749 (file-name (string-append name "-" version "-checkout"))
2752 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
2753 (build-system ruby-build-system)
2755 `(#:modules ((guix build ruby-build-system)
2759 (modify-phases %standard-phases
2760 (add-after 'unpack 'build-gemspec
2762 (substitute* "Rakefile"
2763 ;; Build Makefile even without a copy of gumbo-parser sources
2764 (("'gumbo-parser/src',") "")
2765 ;; We don't bundle gumbo-parser sources
2766 (("'gumbo-parser/src/\\*',") "")
2767 (("'gumbo-parser/visualc/include/\\*',") "")
2768 ;; The definition of SOURCES will be cut in gemspec, and
2769 ;; "FileList" will be undefined.
2770 (("SOURCES \\+ FileList\\[")
2771 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
2773 ;; Copy the Rakefile and cut out the gemspec.
2774 (copy-file "Rakefile" ".gemspec")
2775 (with-atomic-file-replacement ".gemspec"
2777 (let loop ((line (read-line in 'concat))
2779 (if (eof-object? line)
2781 (let ((skip-next? (if skipping?
2782 (not (string-prefix? "SPEC =" line))
2783 (string-prefix? "end" line))))
2784 (when (or (not skipping?)
2785 (and skipping? (not skip-next?)))
2786 (format #t "~a" line)
2788 (loop (read-line in 'concat) skip-next?))))))
2791 `(("gumbo-parser" ,gumbo-parser)))
2793 `(("ruby-nokogiri" ,ruby-nokogiri)))
2794 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
2796 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
2797 access the result as a Nokogiri parsed document.")
2798 (home-page "https://github.com/rubys/nokogumbo/")
2799 (license license:asl2.0))))
2801 (define-public ruby-sanitize
2803 (name "ruby-sanitize")
2807 ;; The gem does not include the Rakefile, so we download the
2808 ;; release tarball from Github.
2809 (uri (string-append "https://github.com/rgrove/"
2810 "sanitize/archive/v" version ".tar.gz"))
2811 (file-name (string-append name "-" version ".tar.gz"))
2814 "055xnj38l60gxnnng76kpy2l2jbrp0byjdyq17jw79w7l4b40znr"))))
2815 (build-system ruby-build-system)
2817 `(("ruby-crass" ,ruby-crass)
2818 ("ruby-nokogiri" ,ruby-nokogiri)
2819 ("ruby-nokogumbo" ,ruby-nokogumbo)))
2821 `(("bundler" ,bundler)
2822 ("ruby-minitest" ,ruby-minitest)
2823 ("ruby-redcarpet" ,ruby-redcarpet)
2824 ("ruby-yard" ,ruby-yard)))
2825 (synopsis "Whitelist-based HTML and CSS sanitizer")
2827 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
2828 acceptable elements, attributes, and CSS properties, Sanitize will remove all
2829 unacceptable HTML and/or CSS from a string.")
2830 (home-page "https://github.com/rgrove/sanitize/")
2831 (license license:expat)))
2833 (define-public ruby-ox
2840 (uri (rubygems-uri "ox" version))
2843 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
2844 (build-system ruby-build-system)
2846 '(#:tests? #f)) ; no tests
2847 (synopsis "Optimized XML library for Ruby")
2849 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
2850 written as a native C extension. It was designed to be an alternative to
2851 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
2852 alternative to Marshal for Object serialization. ")
2853 (home-page "http://www.ohler.com/ox")
2854 (license license:expat)))
2856 (define-public ruby-redcloth
2858 (name "ruby-redcloth")
2862 (uri (rubygems-uri "RedCloth" version))
2865 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
2866 (build-system ruby-build-system)
2868 `(#:tests? #f ; no tests
2870 (modify-phases %standard-phases
2871 ;; Redcloth has complicated rake tasks to build various versions for
2872 ;; multiple targets using RVM. We don't want this so we just use the
2873 ;; existing gemspec.
2876 (zero? (system* "gem" "build" "redcloth.gemspec"))))
2877 ;; Make sure that the "redcloth" executable finds required Ruby
2879 (add-after 'install 'wrap-bin-redcloth
2880 (lambda* (#:key outputs #:allow-other-keys)
2881 (wrap-program (string-append (assoc-ref outputs "out")
2883 `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
2886 `(("bundler" ,bundler)
2887 ("ruby-diff-lcs" ,ruby-diff-lcs)
2888 ("ruby-rspec-2" ,ruby-rspec-2)))
2889 (synopsis "Textile markup language parser for Ruby")
2891 "RedCloth is a Ruby parser for the Textile markup language.")
2892 (home-page "http://redcloth.org")
2893 (license license:expat)))
2895 (define-public ruby-pg
2902 (uri (rubygems-uri "pg" version))
2905 "00vhasqwc4f98qb4wxqn2h07fjwzhp5lwyi41j2gndi2g02wrdqh"))))
2906 (build-system ruby-build-system)
2908 '(#:test-target "spec"))
2910 `(("ruby-rake-compiler" ,ruby-rake-compiler)
2911 ("ruby-hoe" ,ruby-hoe)
2912 ("ruby-rspec" ,ruby-rspec)))
2914 `(("postgresql" ,postgresql)))
2915 (synopsis "Ruby interface to PostgreSQL")
2916 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
2917 with PostgreSQL 8.4 and later.")
2918 (home-page "https://bitbucket.org/ged/ruby-pg")
2919 (license license:ruby)))
2921 (define-public ruby-byebug
2923 (name "ruby-byebug")
2928 (uri (rubygems-uri "byebug" version))
2931 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
2932 (build-system ruby-build-system)
2934 '(#:tests? #f)) ; no tests
2935 (synopsis "Debugger for Ruby 2")
2936 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
2937 TracePoint C API for execution control and the Debug Inspector C API for call
2938 stack navigation. The core component provides support that front-ends can
2939 build on. It provides breakpoint handling and bindings for stack frames among
2940 other things and it comes with a command line interface.")
2941 (home-page "https://github.com/deivid-rodriguez/byebug")
2942 (license license:bsd-2)))
2944 (define-public ruby-netrc
2950 (uri (rubygems-uri "netrc" version))
2953 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
2954 (build-system ruby-build-system)
2957 (modify-phases %standard-phases
2959 ;; There is no Rakefile and minitest can only run one file at once,
2960 ;; so we have to iterate over all test files.
2962 (and (map (lambda (file)
2963 (zero? (system* "ruby" "-Itest" file)))
2964 (find-files "./test" "test_.*\\.rb"))))))))
2966 `(("ruby-minitest" ,ruby-minitest)))
2967 (synopsis "Library to read and update netrc files")
2969 "This library can read and update netrc files, preserving formatting
2970 including comments and whitespace.")
2971 (home-page "https://github.com/geemus/netrc")
2972 (license license:expat)))
2974 (define-public ruby-unf-ext
2976 (name "ruby-unf-ext")
2980 (uri (rubygems-uri "unf_ext" version))
2983 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
2984 (build-system ruby-build-system)
2987 (modify-phases %standard-phases
2988 (add-after 'build 'build-ext
2989 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
2991 `(("bundler" ,bundler)
2992 ("ruby-rake-compiler" ,ruby-rake-compiler)
2993 ("ruby-test-unit" ,ruby-test-unit)))
2994 (synopsis "Unicode normalization form support library")
2996 "This package provides unicode normalization form support for Ruby.")
2997 (home-page "https://github.com/knu/ruby-unf_ext")
2998 (license license:expat)))
3000 (define-public ruby-tdiff
3001 ;; Use a newer than released snapshot so that rspec-2 is not required.
3002 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
3005 (version (string-append "0.3.3-1." (string-take commit 8)))
3009 (url "https://github.com/postmodern/tdiff.git")
3011 (file-name (string-append name "-" version "-checkout"))
3014 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
3015 (build-system ruby-build-system)
3017 `(("ruby-rspec" ,ruby-rspec)
3018 ("ruby-yard" ,ruby-yard)
3019 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3020 (synopsis "Calculate the differences between two tree-like structures")
3022 "This library provides functions to calculate the differences between two
3023 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
3024 (home-page "https://github.com/postmodern/tdiff")
3025 (license license:expat))))
3027 (define-public ruby-nokogiri-diff
3028 ;; Use a newer than released snapshot so that rspec-2 is not required.
3029 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
3031 (name "ruby-nokogiri-diff")
3032 (version (string-append "0.2.0-1." (string-take commit 8)))
3036 (url "https://github.com/postmodern/nokogiri-diff.git")
3038 (file-name (string-append name "-" version "-checkout"))
3041 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
3042 (build-system ruby-build-system)
3044 `(("ruby-tdiff" ,ruby-tdiff)
3045 ("ruby-nokogiri" ,ruby-nokogiri)))
3047 `(("ruby-rspec" ,ruby-rspec)
3048 ("ruby-yard" ,ruby-yard)
3049 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3050 (synopsis "Calculate the differences between two XML/HTML documents")
3052 "@code{Nokogiri::Diff} adds the ability to calculate the
3053 differences (added or removed nodes) between two XML/HTML documents.")
3054 (home-page "https://github.com/postmodern/nokogiri-diff")
3055 (license license:expat))))
3057 (define-public ruby-rack
3064 ;; Download from GitHub so that the patch can be applied.
3066 "https://github.com/rack/rack/archive/"
3069 (file-name (string-append name "-" version ".tar.gz"))
3072 "12bnqrcg43x9hsswjqg31qqwk8cwj2fh0d2m179y20bjghhn54kx"))
3073 ;; Ignore test which fails inside the build environment but works
3075 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
3076 (build-system ruby-build-system)
3079 (modify-phases %standard-phases
3080 (add-before 'check 'fix-tests
3082 ;; A few of the tests use the length of a file on disk for
3083 ;; Content-Length and Content-Range headers. However, this file
3084 ;; has a shebang in it which an earlier phase patches, growing
3085 ;; the file size from 193 to 239 bytes when the store prefix is
3087 (let ((size-diff (- (string-length (which "ruby"))
3088 (string-length "/usr/bin/env ruby"))))
3089 (substitute* '("test/spec_file.rb")
3091 (number->string (+ 193 size-diff)))
3092 (("bytes(.)22-33" all delimiter)
3093 (string-append "bytes"
3095 (number->string (+ 22 size-diff))
3097 (number->string (+ 33 size-diff))))))
3100 `(("ruby-minitest" ,ruby-minitest)
3101 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
3104 `(("ruby-concurrent" ,ruby-concurrent)))
3105 (synopsis "Unified web application interface for Ruby")
3106 (description "Rack provides a minimal, modular and adaptable interface for
3107 developing web applications in Ruby. By wrapping HTTP requests and responses,
3108 it unifies the API for web servers, web frameworks, and software in between
3109 into a single method call.")
3110 (home-page "http://rack.github.io/")
3111 (license license:expat)))
3113 (define-public ruby-docile
3115 (name "ruby-docile")
3120 (uri (rubygems-uri "docile" version))
3123 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
3124 (build-system ruby-build-system)
3126 '(#:tests? #f)) ; needs github-markup, among others
3127 (synopsis "Ruby EDSL helper library")
3128 (description "Docile is a Ruby library that provides an interface for
3129 creating embedded domain specific languages (EDSLs) that manipulate existing
3131 (home-page "https://ms-ati.github.io/docile/")
3132 (license license:expat)))
3134 (define-public ruby-gherkin
3136 (name "ruby-gherkin")
3141 (uri (rubygems-uri "gherkin" version))
3144 "1d18r8mf2qyd9jbq9xxvca8adyysdzvwdy8v9c2s5hrd6p02kg79"))))
3145 (build-system ruby-build-system)
3147 `(("bundler" ,bundler)))
3149 '(#:tests? #f)) ; needs simplecov, among others
3150 (synopsis "Gherkin parser for Ruby")
3151 (description "Gherkin is a parser and compiler for the Gherkin language.
3152 It is intended be used by all Cucumber implementations to parse '.feature'
3154 (home-page "https://github.com/cucumber/gherkin3")
3155 (license license:expat)))
3157 (define-public ruby-cucumber-core
3159 (name "ruby-cucumber-core")
3164 (uri (rubygems-uri "cucumber-core" version))
3167 "136hnvqv444qyxzcgy1k60y4i6cn3sn9lbqr4wan9dzz1yzllqbm"))))
3168 (build-system ruby-build-system)
3170 `(("ruby-gherkin" ,ruby-gherkin)))
3172 `(("bundler" ,bundler)))
3174 '(#:tests? #f)) ; needs simplecov, among others
3175 (synopsis "Core library for the Cucumber BDD app")
3176 (description "Cucumber is a tool for running automated tests
3177 written in plain language. Because they're written in plain language,
3178 they can be read by anyone on your team. Because they can be read by
3179 anyone, you can use them to help improve communication, collaboration
3180 and trust on your team.")
3181 (home-page "https://cucumber.io/")
3182 (license license:expat)))
3184 (define-public ruby-bio-logger
3186 (name "ruby-bio-logger")
3191 (uri (rubygems-uri "bio-logger" version))
3194 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3195 (build-system ruby-build-system)
3197 `(#:tests? #f)) ; rake errors, missing shoulda
3199 `(("ruby-log4r" ,ruby-log4r)))
3200 (synopsis "Log4r wrapper for Ruby")
3201 (description "Bio-logger is a wrapper around Log4r adding extra logging
3202 features such as filtering and fine grained logging.")
3203 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3204 (license license:expat)))
3206 (define-public ruby-yard
3213 ;; Tests do not pass if we build from the distributed gem.
3214 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3216 (file-name (string-append name "-" version ".tar.gz"))
3219 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3220 (build-system ruby-build-system)
3223 (modify-phases %standard-phases
3226 ;; $HOME needs to be set to somewhere writeable for tests to run
3227 (setenv "HOME" "/tmp")
3228 ;; Run tests without using 'rake' to avoid dependencies.
3229 (zero? (system* "rspec")))))))
3231 `(("ruby-rspec" ,ruby-rspec)
3232 ("ruby-rack" ,ruby-rack)))
3233 (synopsis "Documentation generation tool for Ruby")
3235 "YARD is a documentation generation tool for the Ruby programming
3236 language. It enables the user to generate consistent, usable documentation
3237 that can be exported to a number of formats very easily, and also supports
3238 extending for custom Ruby constructs such as custom class level definitions.")
3239 (home-page "http://yardoc.org")
3240 (license license:expat)))
3242 (define-public ruby-clap
3248 (uri (rubygems-uri "clap" version))
3251 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3252 (build-system ruby-build-system)
3253 ;; Clap needs cutest for running tests, but cutest needs clap.
3254 (arguments `(#:tests? #f))
3255 (synopsis "Command line argument parsing for simple applications")
3257 "Clap provides command line argument parsing features. It covers the
3258 simple case of executing code based on the flags or parameters passed.")
3259 (home-page "https://github.com/djanowski/cutest")
3260 (license license:expat)))
3262 (define-public ruby-cutest
3264 (name "ruby-cutest")
3268 (uri (rubygems-uri "cutest" version))
3271 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3272 (build-system ruby-build-system)
3274 `(("ruby-clap" ,ruby-clap)))
3275 (synopsis "Run tests in separate processes")
3277 "Cutest runs tests in separate processes to avoid shared state.")
3278 (home-page "https://github.com/djanowski/cutest")
3279 (license license:expat)))
3281 (define-public ruby-pygmentize
3283 (name "ruby-pygmentize")
3287 (uri (rubygems-uri "pygmentize" version))
3290 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3291 (build-system ruby-build-system)
3294 (modify-phases %standard-phases
3295 (add-after 'unpack 'fix-pygmentize-path
3297 (substitute* "lib/pygmentize.rb"
3298 (("\"/usr/bin/env python.*")
3299 (string-append "\"" (which "pygmentize") "\"\n")))
3301 (add-after 'build 'do-not-use-vendor-directory
3303 ;; Remove bundled pygments sources
3304 ;; FIXME: ruby-build-system does not support snippets.
3305 (delete-file-recursively "vendor")
3306 (substitute* "pygmentize.gemspec"
3307 (("\"vendor/\\*\\*/\\*\",") ""))
3310 `(("pygments" ,python-pygments)))
3312 `(("ruby-cutest" ,ruby-cutest)
3313 ("ruby-nokogiri" ,ruby-nokogiri)))
3314 (synopsis "Thin Ruby wrapper around pygmentize")
3316 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3318 (home-page "https://github.com/djanowski/pygmentize")
3319 (license license:expat)))
3321 (define-public ruby-eventmachine
3323 (name "ruby-eventmachine")
3328 (uri (rubygems-uri "eventmachine" version))
3331 "075hdw0fgzldgss3xaqm2dk545736khcvv1fmzbf1sgdlkyh1v8z"))))
3332 (build-system ruby-build-system)
3334 '(#:tests? #f)) ; test suite tries to connect to google.com
3336 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3337 (synopsis "Single-threaded network event framework for Ruby")
3339 "EventMachine implements a single-threaded engine for arbitrary network
3340 communications. EventMachine wraps all interactions with sockets, allowing
3341 programs to concentrate on the implementation of network protocols. It can be
3342 used to create both network servers and clients.")
3343 (home-page "http://rubyeventmachine.com")
3344 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
3346 (define-public ruby-turn
3353 (uri (rubygems-uri "turn" version))
3356 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3357 (build-system ruby-build-system)
3360 (modify-phases %standard-phases
3361 ;; Tests fail because turn changes its environment so can no longer
3362 ;; find test/unit. Instead simply test if the executable runs
3366 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3368 `(("ruby-ansi" ,ruby-ansi)
3369 ("ruby-minitest" ,ruby-minitest-4)))
3370 (synopsis "Alternate set of alternative runners for MiniTest")
3372 "TURN provides a set of alternative runners for MiniTest which are both
3373 colorful and informative. TURN displays each test on a separate line with
3374 failures being displayed immediately instead of at the end of the tests. Note
3375 that TURN is no longer being maintained.")
3376 (home-page "http://rubygems.org/gems/turn")
3377 (license license:expat)))
3379 (define-public ruby-mime-types-data
3381 (name "ruby-mime-types-data")
3382 (version "3.2016.0521")
3386 (uri (rubygems-uri "mime-types-data" version))
3389 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
3390 (build-system ruby-build-system)
3392 `(("ruby-hoe" ,ruby-hoe)))
3393 (synopsis "Registry for information about MIME media type definitions")
3395 "@code{mime-types-data} provides a registry for information about
3396 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3397 be used with the Ruby mime-types library or other software to determine
3398 defined filename extensions for MIME types, or to use filename extensions to
3399 look up the likely MIME type definitions.")
3400 (home-page "https://github.com/mime-types/mime-types-data/")
3401 (license license:expat)))
3403 (define-public ruby-mime-types
3405 (name "ruby-mime-types")
3410 (uri (rubygems-uri "mime-types" version))
3413 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
3414 (build-system ruby-build-system)
3416 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3418 `(("ruby-hoe" ,ruby-hoe)
3419 ("ruby-fivemat" ,ruby-fivemat)
3420 ("ruby-minitest-focus" ,ruby-minitest-focus)
3421 ("ruby-minitest-rg" ,ruby-minitest-rg)
3422 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3423 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
3424 (synopsis "Library and registry for MIME content type definitions")
3425 (description "The mime-types library provides a library and registry for
3426 information about Multipurpose Internet Mail Extensions (MIME) content type
3427 definitions. It can be used to determine defined filename extensions for MIME
3428 types, or to use filename extensions to look up the likely MIME type
3430 (home-page "https://github.com/mime-types/ruby-mime-types")
3431 (license license:expat)))
3433 (define-public ruby-fivemat
3435 (name "ruby-fivemat")
3440 (uri (rubygems-uri "fivemat" version))
3443 "0ij7n250gk5c1g34rsbwjnpcv64gk4vsas8lkz8fac4wbygvk6z1"))))
3444 (build-system ruby-build-system)
3446 `(#:tests? #f)) ; no tests
3447 (synopsis "Each test file given its own line of dots")
3449 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3450 its own line of dots during testing. It aims to provide test output that is
3451 neither too verbose nor too minimal.")
3452 (home-page "https://github.com/tpope/fivemat")
3453 (license license:expat)))
3455 (define-public ruby-sqlite3
3457 (name "ruby-sqlite3")
3462 (uri (rubygems-uri "sqlite3" version))
3465 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
3466 (build-system ruby-build-system)
3469 (modify-phases %standard-phases
3470 (add-before 'check 'add-gemtest-file
3471 ;; This file exists in the repository but is not distributed.
3472 (lambda _ (zero? (system* "touch" ".gemtest")))))))
3474 `(("sqlite" ,sqlite)))
3476 `(("ruby-hoe" ,ruby-hoe)
3477 ("ruby-rake-compiler" ,ruby-rake-compiler)
3478 ("ruby-mini-portile" ,ruby-mini-portile)))
3479 (synopsis "Interface with SQLite3 databases")
3481 "This module allows Ruby programs to interface with the SQLite3 database
3484 "https://github.com/sparklemotion/sqlite3-ruby")
3485 (license license:bsd-3)))
3487 (define-public ruby-shoulda-context
3489 (name "ruby-shoulda-context")
3494 (uri (rubygems-uri "shoulda-context" version))
3497 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
3498 (build-system ruby-build-system)
3501 (modify-phases %standard-phases
3504 ;; Do not run tests to avoid circular dependence with rails.
3505 ;; Instead just import the library to test.
3506 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
3507 (synopsis "Test::Unit context framework extracted from Shoulda")
3509 "@code{shoulda-context} is the context framework extracted from Shoulda.
3510 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
3511 context, setup, and should blocks combine to produce natural test method
3513 (home-page "https://github.com/thoughtbot/shoulda-context")
3514 (license license:expat)))
3516 (define-public ruby-shoulda-matchers
3518 (name "ruby-shoulda-matchers")
3523 (uri (rubygems-uri "shoulda-matchers" version))
3526 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
3527 (build-system ruby-build-system)
3530 (modify-phases %standard-phases
3533 ;; Do not run tests to avoid circular dependence with rails. Instead
3534 ;; just import the library to test.
3535 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
3537 `(("ruby-activesupport" ,ruby-activesupport)))
3538 (synopsis "Collection of testing matchers extracted from Shoulda")
3540 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
3541 test common Rails functionality. These tests would otherwise be much longer,
3542 more complex, and error-prone.")
3543 (home-page "https://github.com/thoughtbot/shoulda-matchers")
3544 (license license:expat)))
3546 (define-public ruby-shoulda-matchers-2
3548 (inherit ruby-shoulda-matchers)
3552 (uri (rubygems-uri "shoulda-matchers" version))
3555 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
3557 (define-public ruby-shoulda
3559 (name "ruby-shoulda")
3564 (uri (rubygems-uri "shoulda" version))
3567 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
3568 (build-system ruby-build-system)
3571 (modify-phases %standard-phases
3573 ;; Don't run tests to avoid circular dependence with rails. Instead
3574 ;; just import the library to test.
3575 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
3577 `(("ruby-shoulda-context" ,ruby-shoulda-context)
3578 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
3579 (synopsis "Context framework and matchers for testing")
3581 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
3582 @code{shoulda-matchers} providing tools for writing tests.")
3583 (home-page "https://github.com/thoughtbot/shoulda")
3584 (license license:expat)))
3586 (define-public ruby-unf
3593 (uri (rubygems-uri "unf" version))
3596 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
3597 (build-system ruby-build-system)
3600 (modify-phases %standard-phases
3601 (add-before 'check 'add-dependency-to-bundler
3603 ;; test-unit is required but not provided by the bundler
3604 ;; environment. This is fixed in the upstream repository but fix
3605 ;; has not been released.
3606 (substitute* "Gemfile"
3607 (("^gemspec") "gem 'test-unit'\ngemspec"))
3610 `(("ruby-unf-ext" ,ruby-unf-ext)))
3612 `(("ruby-shoulda" ,ruby-shoulda)
3613 ("bundler" ,bundler)
3614 ("ruby-test-unit" ,ruby-test-unit)))
3615 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
3617 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
3618 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
3619 @code{java.text.Normalizer} on JRuby.")
3620 (home-page "https://github.com/knu/ruby-unf")
3621 (license license:bsd-2)))
3623 (define-public ruby-domain-name
3625 (name "ruby-domain-name")
3626 (version "0.5.20170404")
3630 (uri (rubygems-uri "domain_name" version))
3633 "12hs8yijhak7p2hf1xkh98g0mnp5phq3mrrhywzaxpwz1gw5r3kf"))))
3634 (build-system ruby-build-system)
3637 (modify-phases %standard-phases
3638 (add-before 'check 'fix-versions
3640 ;; Fix NameError that appears to already be fixed upstream.
3641 (substitute* "Rakefile"
3642 (("DomainName::VERSION")
3643 "Bundler::GemHelper.gemspec.version"))
3644 ;; Loosen unnecessarily strict test-unit version specification.
3645 (substitute* "domain_name.gemspec"
3646 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
3649 `(("ruby-unf" ,ruby-unf)))
3651 `(("ruby-shoulda" ,ruby-shoulda)
3652 ("bundler" ,bundler)
3653 ("ruby-test-unit" ,ruby-test-unit)))
3654 (synopsis "Domain name manipulation library")
3656 "@code{domain_name} is a Domain name manipulation library. It parses a
3657 domain name ready for extracting the registered domain and TLD (Top Level
3658 Domain). It can also be used for cookie domain validation based on the Public
3660 (home-page "https://github.com/knu/ruby-domain_name")
3661 (license license:bsd-2)))
3663 (define-public ruby-http-cookie
3665 (name "ruby-http-cookie")
3670 (uri (rubygems-uri "http-cookie" version))
3673 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
3674 (build-system ruby-build-system)
3677 (modify-phases %standard-phases
3678 (add-before 'check 'add-dependency-to-bundler
3681 (substitute* "Rakefile"
3682 (("HTTP::Cookie::VERSION")
3683 "Bundler::GemHelper.gemspec.version"))
3686 `(("ruby-domain-name" ,ruby-domain-name)))
3688 `(("rubysimplecov" ,ruby-simplecov)
3689 ("bundler" ,bundler)
3690 ("ruby-sqlite3" ,ruby-sqlite3)
3691 ("ruby-test-unit" ,ruby-test-unit)))
3692 (synopsis "Handle HTTP Cookies based on RFC 6265")
3694 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
3695 RFC 6265. It has been designed with security, standards compliance and
3696 compatibility in mind, to behave just the same as today's major web browsers.
3697 It has built-in support for the legacy @code{cookies.txt} and
3698 @code{cookies.sqlite} formats of Mozilla Firefox.")
3699 (home-page "https://github.com/sparklemotion/http-cookie")
3700 (license license:expat)))
3702 (define-public ruby-httpclient
3704 (name "ruby-httpclient")
3709 (uri (rubygems-uri "httpclient" version))
3712 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
3713 (build-system ruby-build-system)
3715 '(;; TODO: Some tests currently fail
3717 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
3718 ;; 2 omissions, 0 notifications
3721 ;; 6.49 tests/s, 22.41 assertions/s
3724 (modify-phases %standard-phases
3726 (lambda* (#:key tests? #:allow-other-keys)
3733 (add-after 'install 'wrap-bin-httpclient
3734 (lambda* (#:key outputs #:allow-other-keys)
3735 (wrap-program (string-append (assoc-ref outputs "out")
3737 `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
3740 `(("ruby-rack" ,ruby-rack)))
3742 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
3744 "The @code{httpclient} ruby library provides functionality related to
3745 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
3746 Cookie, multithreading and authentication (digest, NTLM) support.
3748 Also provided is a @command{httpclient} command, which can perform HTTP
3749 requests either using arguments or with an interactive prompt.")
3750 (home-page "https://github.com/nahi/httpclient")
3751 (license license:ruby)))
3753 (define-public ruby-ansi
3760 ;; Fetch from GitHub as the gem does not contain testing code.
3761 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
3763 (file-name (string-append name "-" version ".tar.gz"))
3766 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
3767 (build-system ruby-build-system)
3770 (modify-phases %standard-phases
3771 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
3772 ;; cycle ansi, qed, ansi. Instead simply test that the library can
3776 (zero? (system* "ruby" "-Ilib" "-r" "ansi"))))
3777 (add-before 'validate-runpath 'replace-broken-symlink
3778 (lambda* (#:key outputs #:allow-other-keys)
3779 (let* ((out (assoc-ref outputs "out"))
3780 (file (string-append out
3781 ,(gem-directory (package-version ruby))
3782 "/ansi-" ,version "/lib/ansi.yml")))
3783 ;; XXX: This symlink is broken since ruby 2.4.
3784 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
3786 (symlink "../.index" file)
3788 (synopsis "ANSI escape code related libraries")
3790 "This package is a collection of ANSI escape code related libraries
3791 enabling ANSI colorization and stylization of console output. Included in the
3792 library are the @code{Code} module, which defines ANSI codes as constants and
3793 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
3794 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
3795 @code{Terminal} module which provides information about the current output
3797 (home-page "http://rubyworks.github.io/ansi")
3798 (license license:bsd-2)))
3800 (define-public ruby-systemu
3802 (name "ruby-systemu")
3807 (uri (rubygems-uri "systemu" version))
3810 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
3811 (build-system ruby-build-system)
3814 (modify-phases %standard-phases
3815 (add-before 'check 'set-version
3817 (setenv "VERSION" ,version)
3819 (synopsis "Capture of stdout/stderr and handling of child processes")
3821 "Systemu can be used on any platform to return status, stdout, and stderr
3822 of any command. Unlike other methods like @code{open3} and @code{popen4}
3823 there is no danger of full pipes or threading issues hanging your process or
3825 (home-page "https://github.com/ahoward/systemu")
3826 (license license:ruby)))
3828 (define-public ruby-bio-commandeer
3830 (name "ruby-bio-commandeer")
3835 (uri (rubygems-uri "bio-commandeer" version))
3838 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
3839 (build-system ruby-build-system)
3842 (modify-phases %standard-phases
3844 ;; Run test without calling 'rake' so that jeweler is
3845 ;; not required as an input.
3847 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
3849 `(("ruby-bio-logger" ,ruby-bio-logger)
3850 ("ruby-systemu" ,ruby-systemu)))
3852 `(("bundler" ,bundler)
3853 ("ruby-rspec" ,ruby-rspec)))
3854 (synopsis "Simplified running of shell commands from within Ruby")
3856 "Bio-commandeer provides an opinionated method of running shell commands
3857 from within Ruby. The advantage of bio-commandeer over other methods of
3858 running external commands is that when something goes wrong, messages printed
3859 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
3860 detail to ease debugging.")
3861 (home-page "https://github.com/wwood/bioruby-commandeer")
3862 (license license:expat)))
3864 (define-public ruby-rubytest
3866 (name "ruby-rubytest")
3871 (uri (rubygems-uri "rubytest" version))
3874 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
3875 (build-system ruby-build-system)
3877 ;; Disable regular testing to break the cycle rubytest, qed, brass,
3878 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
3879 ;; simply test that the library can be require'd.
3881 (modify-phases %standard-phases
3884 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
3886 `(("ruby-ansi" ,ruby-ansi)))
3887 (synopsis "Universal test harness for Ruby")
3889 "Rubytest is a testing meta-framework for Ruby. It can handle any
3890 compliant test framework and can run tests from multiple frameworks in a
3892 (home-page "http://rubyworks.github.io/rubytest")
3893 (license license:bsd-2)))
3895 (define-public ruby-brass
3902 (uri (rubygems-uri "brass" version))
3905 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
3906 (build-system ruby-build-system)
3908 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
3909 ;; Instead simply test that the library can be require'd.
3911 (modify-phases %standard-phases
3914 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
3915 (synopsis "Basic foundational assertions framework")
3917 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
3918 foundational assertions framework for other assertion and test frameworks to
3920 (home-page "http://rubyworks.github.io/brass")
3921 (license license:bsd-2)))
3923 (define-public ruby-qed
3930 (uri (rubygems-uri "qed" version))
3933 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
3934 (build-system ruby-build-system)
3936 ;; Disable testing to break the cycle qed, ansi, qed, among others.
3937 ;; Instead simply test that the executable runs using --copyright.
3939 (modify-phases %standard-phases
3942 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
3944 `(("ruby-ansi" ,ruby-ansi)
3945 ("ruby-brass" ,ruby-brass)))
3946 (synopsis "Test framework utilizing literate programming techniques")
3948 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
3949 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
3950 Development} (BDD) utilizing Literate Programming techniques. QED sits
3951 somewhere between lower-level testing tools like @code{Test::Unit} and
3952 requirement specifications systems like Cucumber.")
3953 (home-page "http://rubyworks.github.io/qed")
3954 (license license:bsd-2)))
3956 (define-public ruby-ae
3963 ;; Fetch from github so tests are included.
3965 "https://github.com/rubyworks/ae/archive/"
3967 (file-name (string-append name "-" version ".tar.gz"))
3970 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
3971 (build-system ruby-build-system)
3974 (modify-phases %standard-phases
3976 (lambda _ (zero? (system* "qed"))))
3977 (add-before 'validate-runpath 'replace-broken-symlink
3978 (lambda* (#:key outputs #:allow-other-keys)
3979 (let* ((out (assoc-ref outputs "out"))
3980 (file (string-append out
3981 ,(gem-directory (package-version ruby))
3982 "/ae-" ,version "/lib/ae.yml")))
3983 ;; XXX: This symlink is broken since ruby 2.4.
3984 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
3986 (symlink "../.index" file)
3989 `(("ruby-ansi" ,ruby-ansi)))
3991 `(("ruby-qed" ,ruby-qed)))
3992 (synopsis "Assertions library")
3994 "Assertive Expressive (AE) is an assertions library specifically designed
3995 for reuse by other test frameworks.")
3996 (home-page "http://rubyworks.github.io/ae")
3997 (license license:bsd-2)))
3999 (define-public ruby-lemon
4006 (uri (rubygems-uri "lemon" version))
4009 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
4010 (build-system ruby-build-system)
4013 (modify-phases %standard-phases
4014 (replace 'check (lambda _ (zero? (system* "qed")))))))
4016 `(("ruby-ae" ,ruby-ae)
4017 ("ruby-ansi" ,ruby-ansi)
4018 ("ruby-rubytest" ,ruby-rubytest)))
4020 `(("ruby-qed" ,ruby-qed)))
4021 (synopsis "Test framework correlating code structure and test unit")
4023 "Lemon is a unit testing framework that enforces highly formal
4024 case-to-class and unit-to-method test construction. This enforcement can help
4025 focus concern on individual units of behavior.")
4026 (home-page "http://rubyworks.github.io/lemon")
4027 (license license:bsd-2)))
4029 (define-public ruby-rubytest-cli
4031 (name "ruby-rubytest-cli")
4036 (uri (rubygems-uri "rubytest-cli" version))
4039 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
4040 (build-system ruby-build-system)
4042 `(#:tests? #f)) ; no tests
4044 `(("ruby-ansi" ,ruby-ansi)
4045 ("ruby-rubytest" ,ruby-rubytest)))
4046 (synopsis "Command-line interface for rubytest")
4048 "Rubytest CLI is a command-line interface for running tests for
4049 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
4050 (home-page "http://rubyworks.github.io/rubytest-cli")
4051 (license license:bsd-2)))
4053 (define-public ruby-hashery
4055 (name "ruby-hashery")
4060 (uri (rubygems-uri "hashery" version))
4063 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
4064 (build-system ruby-build-system)
4067 (modify-phases %standard-phases
4070 (and (zero? (system* "qed"))
4071 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
4073 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
4074 ("ruby-qed" ,ruby-qed)
4075 ("ruby-lemon" ,ruby-lemon)))
4076 (synopsis "Hash-like classes with extra features")
4078 "The Hashery is a tight collection of @code{Hash}-like classes.
4079 Included are the auto-sorting @code{Dictionary} class, the efficient
4080 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
4081 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
4082 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
4083 standard @code{Hash} making it possible to subclass and augment to fit any
4084 specific use case.")
4085 (home-page "http://rubyworks.github.io/hashery")
4086 (license license:bsd-2)))
4088 (define-public ruby-rc4
4095 (uri (rubygems-uri "ruby-rc4" version))
4098 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
4099 (build-system ruby-build-system)
4102 (modify-phases %standard-phases
4105 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
4107 `(("ruby-rspec" ,ruby-rspec-2)))
4108 (synopsis "Implementation of the RC4 algorithm")
4110 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
4111 (home-page "https://github.com/caiges/Ruby-RC4")
4112 (license license:expat)))
4114 (define-public ruby-afm
4121 (uri (rubygems-uri "afm" version))
4124 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
4125 (build-system ruby-build-system)
4127 `(("bundler" ,bundler)))
4128 (synopsis "Read Adobe Font Metrics (afm) files")
4130 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
4131 files and use the data therein.")
4132 (home-page "https://github.com/halfbyte/afm")
4133 (license license:expat)))
4135 (define-public ruby-ascii85
4137 (name "ruby-ascii85")
4142 (uri (rubygems-uri "Ascii85" version))
4145 "0j95sbxd18kc8rhcnvl1w37kflqpax1r12h1x47gh4xxn3mz4m7q"))))
4146 (build-system ruby-build-system)
4148 `(("bundler" ,bundler)))
4149 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
4151 "This library provides methods to encode and decode Ascii85
4152 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
4153 @dfn{Portable Document Format} (PDF) file formats.")
4154 (home-page "https://github.com/datawraith/ascii85gem")
4155 (license license:expat)))
4157 (define-public ruby-ttfunk
4159 (name "ruby-ttfunk")
4164 ;; fetch from github as the gem does not contain testing code
4166 "https://github.com/prawnpdf/ttfunk/archive/"
4168 (file-name (string-append name "-" version ".tar.gz"))
4171 "1izq84pnm9niyvkzp8k0vl232q9zj41hwmp9na9fzycfh1pbnsl6"))))
4172 (build-system ruby-build-system)
4174 `(#:test-target "spec"
4176 (modify-phases %standard-phases
4177 (add-before 'check 'remove-rubocop
4179 ;; remove rubocop as a dependency as not needed for testing
4180 (substitute* "ttfunk.gemspec"
4181 (("spec.add_development_dependency\\('rubocop'.*") ""))
4182 (substitute* "Rakefile"
4183 (("require 'rubocop/rake_task'") "")
4184 (("Rubocop::RakeTask.new") ""))
4187 `(("ruby-rspec" ,ruby-rspec)
4188 ("bundler" ,bundler)))
4189 (synopsis "Font metrics parser for the Prawn PDF generator")
4191 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
4192 part of the Prawn PDF generator.")
4193 (home-page "https://github.com/prawnpdf/ttfunk")
4194 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
4196 (license (list license:gpl2 license:gpl3 license:ruby))))
4198 (define-public ruby-puma
4205 ;; Fetch from GitHub because distributed gem does not contain tests.
4206 (uri (string-append "https://github.com/puma/puma/archive/v"
4208 (file-name (string-append name "-" version ".tar.gz"))
4211 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
4212 (build-system ruby-build-system)
4214 `(#:tests? #f ; Tests require an out-dated version of minitest.
4216 (modify-phases %standard-phases
4217 (add-before 'build 'fix-gemspec
4219 (substitute* "puma.gemspec"
4220 (("git ls-files") "find * |sort"))
4222 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4224 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4225 for Ruby/Rack applications. Puma is intended for use in both development and
4226 production environments. In order to get the best throughput, it is highly
4227 recommended that you use a Ruby implementation with real threads like Rubinius
4229 (home-page "http://puma.io")
4230 (license license:expat)))
4232 (define-public ruby-hoe-git
4234 (name "ruby-hoe-git")
4239 (uri (rubygems-uri "hoe-git" version))
4242 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4243 (build-system ruby-build-system)
4245 `(("ruby-hoe" ,ruby-hoe)
4247 (synopsis "Hoe plugins for tighter Git integration")
4249 "This package provides a set of Hoe plugins for tighter Git integration.
4250 It provides tasks to automate release tagging and pushing and changelog
4252 (home-page "https://github.com/jbarnette/hoe-git")
4253 (license license:expat)))
4255 (define-public ruby-sequel
4257 (name "ruby-sequel")
4262 (uri (rubygems-uri "sequel" version))
4265 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
4266 (build-system ruby-build-system)
4268 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4269 (synopsis "Database toolkit for Ruby")
4270 (description "Sequel provides thread safety, connection pooling and a
4271 concise DSL for constructing SQL queries and table schemas. It includes a
4272 comprehensive ORM layer for mapping records to Ruby objects and handling
4273 associated records.")
4274 (home-page "http://sequel.jeremyevans.net")
4275 (license license:expat)))
4277 (define-public ruby-timecop
4279 (name "ruby-timecop")
4284 (uri (rubygems-uri "timecop" version))
4287 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
4288 (build-system ruby-build-system)
4291 (modify-phases %standard-phases
4292 (add-before 'check 'set-check-rubylib
4294 ;; Set RUBYLIB so timecop tests finds its own lib.
4295 (setenv "RUBYLIB" "lib")
4298 `(("bundler" ,bundler)
4299 ("ruby-minitest-rg" ,ruby-minitest-rg)
4300 ("ruby-mocha" ,ruby-mocha)
4301 ("ruby-activesupport" ,ruby-activesupport)))
4302 (synopsis "Test mocks for time-dependent functions")
4304 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4305 making it easier to test time-dependent code. It provides a unified method to
4306 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4308 (home-page "https://github.com/travisjeffery/timecop")
4309 (license license:expat)))
4311 (define-public ruby-concurrent
4313 (name "ruby-concurrent")
4318 ;; Download from GitHub because the rubygems version does not contain
4321 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4324 (file-name (string-append name "-" version ".tar.gz"))
4327 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
4328 ;; Exclude failing test reported at
4329 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4330 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
4331 "ruby-concurrent-test-arm.patch"))))
4332 (build-system ruby-build-system)
4334 `(#:test-target "spec"
4336 (modify-phases %standard-phases
4337 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
4339 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4341 (delete-file "concurrent-ruby-edge.gemspec")
4342 (delete-file "concurrent-ruby-ext.gemspec")
4344 (add-before 'build 'replace-git-ls-files2
4346 (substitute* "support/file_map.rb"
4347 (("git ls-files") "find * |sort"))
4349 (add-before 'check 'rake-compile
4350 ;; Fix the test error described at
4351 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
4352 (lambda _ (zero? (system* "rake" "compile"))))
4353 (add-before 'check 'remove-timecop-dependency
4354 ;; Remove timecop-dependent tests as having timecop as a depedency
4355 ;; causes circular depedencies.
4357 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4358 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4361 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4362 ("ruby-rspec" ,ruby-rspec)))
4363 (synopsis "Concurrency tools for Ruby")
4365 "This library provides modern concurrency tools including agents,
4366 futures, promises, thread pools, actors, supervisors, and more. It is
4367 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4369 (home-page "http://www.concurrent-ruby.com")
4370 (license license:expat)))
4372 (define-public ruby-pkg-config
4374 (name "ruby-pkg-config")
4379 (uri (rubygems-uri "pkg-config" version))
4382 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
4383 (build-system ruby-build-system)
4385 ;; Tests require extra files not included in the gem.
4387 (synopsis "Detect libraries for compiling Ruby native extensions")
4389 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4390 libraries for compiling Ruby native extensions.")
4391 (home-page "https://github.com/ruby-gnome2/pkg-config")
4392 (license license:lgpl2.0+)))
4394 (define-public ruby-net-http-digest-auth
4396 (name "ruby-net-http-digest-auth")
4401 (uri (rubygems-uri "net-http-digest_auth" version))
4404 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
4405 (build-system ruby-build-system)
4407 `(("ruby-hoe" ,ruby-hoe)))
4408 (synopsis "RFC 2617 HTTP digest authentication library")
4410 "This library implements HTTP's digest authentication scheme based on
4411 RFC 2617. This enables the use of the digest authentication scheme instead
4412 of the more insecure basic authentication scheme.")
4413 (home-page "https://github.com/drbrain/net-http-digest_auth")
4414 (license license:expat)))
4416 (define-public ruby-mail
4423 (uri (rubygems-uri "mail" version))
4426 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
4427 (build-system ruby-build-system)
4429 `(("ruby-mime-types" ,ruby-mime-types)))
4431 ;; Tests require extra gems not included in the Gemfile.
4432 ;; XXX: Try enabling this for the next version with mini_mime.
4434 (synopsis "Mail library for Ruby")
4436 "Mail is an internet library for Ruby that is designed to handle email
4437 generation, parsing and sending. The purpose of this library is to provide
4438 a single point of access to handle all email functions, including sending
4439 and receiving emails. All network type actions are done through proxy
4440 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
4442 Mail has been designed with a very simple object oriented system that
4443 really opens up the email messages you are parsing, if you know what you
4444 are doing, you can fiddle with every last bit of your email directly.")
4445 (home-page "https://github.com/mikel/mail")
4446 (license license:expat)))
4448 (define-public ruby-code-statistics
4450 (name "ruby-code-statistics")
4455 (uri (rubygems-uri "code_statistics" version))
4458 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
4459 (build-system ruby-build-system)
4461 `(#:tests? #f)) ; Not all test code is included in gem.
4462 (synopsis "Port of the rails 'rake stats' method")
4464 "This gem is a port of the rails 'rake stats' method so it can be made
4465 more robust and work for non rails projects.")
4466 (home-page "http://github.com/danmayer/code_statistics")
4467 (license license:expat)))