1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016 Ben Woodcroft <donttrustben@gmail.com>
9 ;;; This file is part of GNU Guix.
11 ;;; GNU Guix is free software; you can redistribute it and/or modify it
12 ;;; under the terms of the GNU General Public License as published by
13 ;;; the Free Software Foundation; either version 3 of the License, or (at
14 ;;; your option) any later version.
16 ;;; GNU Guix is distributed in the hope that it will be useful, but
17 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;;; GNU General Public License for more details.
21 ;;; You should have received a copy of the GNU General Public License
22 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
24 (define-module (gnu packages ruby)
25 #:use-module ((guix licenses) #:prefix license:)
26 #:use-module (gnu packages)
27 #:use-module (gnu packages base)
28 #:use-module (gnu packages compression)
29 #:use-module (gnu packages databases)
30 #:use-module (gnu packages readline)
31 #:use-module (gnu packages autotools)
32 #:use-module (gnu packages java)
33 #:use-module (gnu packages libffi)
34 #:use-module (gnu packages python)
35 #:use-module (gnu packages ragel)
36 #:use-module (gnu packages tls)
37 #:use-module (gnu packages version-control)
38 #:use-module (guix packages)
39 #:use-module (guix download)
40 #:use-module (guix git-download)
41 #:use-module (guix utils)
42 #:use-module (guix build-system gnu)
43 #:use-module (gnu packages xml)
44 #:use-module (gnu packages web)
45 #:use-module (guix build-system ruby))
54 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
55 (version-major+minor version)
56 "/ruby-" version ".tar.xz"))
59 "0f3395q7pd2hrl2gv26bib80038sjawxgmhl9zn22fjs9m9va9b7"))
60 (modules '((guix build utils)))
61 (patches (search-patches "ruby-symlinkfix.patch"))
63 ;; Remove bundled libffi
64 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
66 (build-system gnu-build-system)
68 `(#:test-target "test"
70 (modify-phases %standard-phases
71 (add-before 'configure 'replace-bin-sh-and-remove-libffi
73 (substitute* '("Makefile.in"
78 "test/rubygems/test_gem_ext_configure_builder.rb"
79 "test/rdoc/test_rdoc_parser.rb"
80 "test/ruby/test_rubyoptions.rb"
81 "test/ruby/test_process.rb"
82 "test/ruby/test_system.rb"
84 (("/bin/sh") (which "sh")))
87 `(("readline" ,readline)
93 (list (search-path-specification
95 (files (list (string-append "lib/ruby/gems/"
96 (version-major+minor version)
98 (synopsis "Programming language interpreter")
99 (description "Ruby is a dynamic object-oriented programming language with
100 a focus on simplicity and productivity.")
101 (home-page "https://ruby-lang.org")
102 (license license:ruby)))
104 (define-public ruby-2.2
105 (package (inherit ruby)
110 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
111 (version-major+minor version)
112 "/ruby-" version ".tar.xz"))
115 "1mw7bzw76g5w37cwhb57r6gxcl2vn9lfrlyf4h4xms3qlnhflvzq"))))))
117 (define-public ruby-2.1
118 (package (inherit ruby)
123 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
124 (version-major+minor version)
125 "/ruby-" version ".tar.bz2"))
128 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
130 `(#:test-target "test"
134 'configure 'replace-bin-sh
136 (substitute* '("Makefile.in"
141 (("/bin/sh") (which "sh"))))
144 (list (search-path-specification
145 (variable "GEM_PATH")
146 (files (list (string-append "lib/ruby/gems/"
147 (version-major+minor version)
150 (define-public ruby-1.8
151 (package (inherit ruby)
152 (version "1.8.7-p374")
156 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
157 (version-major+minor version)
158 "/ruby-" version ".tar.bz2"))
161 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
162 (native-search-paths '())
164 `(#:test-target "test"
168 'configure 'replace-bin-sh
170 (substitute* '("Makefile.in"
175 (("/bin/sh") (which "sh"))))
176 %standard-phases)))))
178 (define-public ruby-hoe
184 (uri (rubygems-uri "hoe" version))
187 "1mac13krdrasn9819dd65xj27kklfy0xdbj3p6s2ij4vlcb46h8q"))) )
188 (build-system ruby-build-system)
189 (synopsis "Ruby project management helper")
191 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
192 maintain, and release projects and includes a dynamic plug-in system allowing
193 for easy extensibility. Hoe ships with plug-ins for all the usual project
194 tasks including rdoc generation, testing, packaging, deployment, and
196 (home-page "http://www.zenspider.com/projects/hoe.html")
197 (license license:expat)))
199 (define-public ruby-rake-compiler
201 (name "ruby-rake-compiler")
205 (uri (rubygems-uri "rake-compiler" version))
208 "1k8im2vzj849xdgjk6wafspkiwwapqwm738majchb4dnhnsk64cx"))))
209 (build-system ruby-build-system)
211 '(#:tests? #f)) ; needs cucumber
212 (synopsis "Building and packaging helper for Ruby native extensions")
213 (description "Rake-compiler provides a framework for building and
214 packaging native C and Java extensions in Ruby.")
215 (home-page "https://github.com/rake-compiler/rake-compiler")
216 (license license:expat)))
218 (define-public ruby-i18n
224 (uri (rubygems-uri "i18n" version))
227 "1i5z1ykl8zhszsxcs8mzl8d0dxgs3ylz8qlzrw74jb0gplkx6758"))))
228 (build-system ruby-build-system)
230 '(#:tests? #f)) ; no tests
231 (synopsis "Internationalization library for Ruby")
232 (description "Ruby i18n is an internationalization and localization
233 solution for Ruby programs. It features translation and localization,
234 interpolation of values to translations, pluralization, customizable
235 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
236 translation data, custom key/scope separator, custom exception handlers, and
237 an extensible architecture with a swappable backend.")
238 (home-page "http://github.com/svenfuchs/i18n")
239 (license license:expat)))
241 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
242 ;; dependencies use RSpec for their test suites! To avoid these circular
243 ;; dependencies, we disable tests for all of the RSpec-related packages.
244 (define ruby-rspec-support
246 (name "ruby-rspec-support")
250 (uri (rubygems-uri "rspec-support" version))
253 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
254 (build-system ruby-build-system)
256 '(#:tests? #f)) ; avoid dependency cycles
257 (synopsis "RSpec support library")
258 (description "Support utilities for RSpec gems.")
259 (home-page "https://github.com/rspec/rspec-support")
260 (license license:expat)))
262 (define-public ruby-rspec-core
264 (name "ruby-rspec-core")
268 (uri (rubygems-uri "rspec-core" version))
271 "0brfq51fwkkh5g6vw7smky5fvip46pryi243jmin0nzn7iwh9j5g"))))
272 (build-system ruby-build-system)
274 '(#:tests? #f)) ; avoid dependency cycles
276 `(("ruby-rspec-support" ,ruby-rspec-support)))
277 (synopsis "RSpec core library")
278 (description "Rspec-core provides the RSpec test runner and example
280 (home-page "https://github.com/rspec/rspec-core")
281 (license license:expat)))
283 (define-public ruby-rspec-core-2
284 (package (inherit ruby-rspec-core)
288 (uri (rubygems-uri "rspec-core" version))
291 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
292 (propagated-inputs `())))
294 (define-public ruby-diff-lcs
296 (name "ruby-diff-lcs")
300 (uri (rubygems-uri "diff-lcs" version))
303 "1vf9civd41bnqi6brr5d9jifdw73j9khc6fkhfl1f8r9cpkdvlx1"))))
304 (build-system ruby-build-system)
306 '(#:tests? #f)) ; avoid dependency cycles
307 (synopsis "Compute the difference between two Enumerable sequences")
308 (description "Diff::LCS computes the difference between two Enumerable
309 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
310 It includes utilities to create a simple HTML diff output format and a
311 standard diff-like tool.")
312 (home-page "https://github.com/halostatue/diff-lcs")
313 (license license:expat)))
315 (define-public ruby-rspec-expectations
317 (name "ruby-rspec-expectations")
321 (uri (rubygems-uri "rspec-expectations" version))
324 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
325 (build-system ruby-build-system)
327 '(#:tests? #f)) ; avoid dependency cycles
329 `(("ruby-rspec-support" ,ruby-rspec-support)
330 ("ruby-diff-lcs" ,ruby-diff-lcs)))
331 (synopsis "RSpec expectations library")
332 (description "Rspec-expectations provides a simple API to express expected
333 outcomes of a code example.")
334 (home-page "https://github.com/rspec/rspec-expectations")
335 (license license:expat)))
337 (define-public ruby-rspec-expectations-2
338 (package (inherit ruby-rspec-expectations)
342 (uri (rubygems-uri "rspec-expectations" version))
345 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
347 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
349 (define-public ruby-rspec-mocks
351 (name "ruby-rspec-mocks")
355 (uri (rubygems-uri "rspec-mocks" version))
358 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
359 (build-system ruby-build-system)
361 '(#:tests? #f)) ; avoid dependency cycles
363 `(("ruby-rspec-support" ,ruby-rspec-support)
364 ("ruby-diff-lcs" ,ruby-diff-lcs)))
365 (synopsis "RSpec stubbing and mocking library")
366 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
367 support for stubbing and mocking.")
368 (home-page "https://github.com/rspec/rspec-mocks")
369 (license license:expat)))
371 (define-public ruby-rspec-mocks-2
372 (package (inherit ruby-rspec-mocks)
376 (uri (rubygems-uri "rspec-mocks" version))
379 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
381 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
383 (define-public ruby-rspec
389 (uri (rubygems-uri "rspec" version))
392 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
393 (build-system ruby-build-system)
395 '(#:tests? #f)) ; avoid dependency cycles
397 `(("ruby-rspec-core" ,ruby-rspec-core)
398 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
399 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
400 (synopsis "Behavior-driven development framework for Ruby")
401 (description "RSpec is a behavior-driven development (BDD) framework for
402 Ruby. This meta-package includes the RSpec test runner, along with the
403 expectations and mocks frameworks.")
404 (home-page "http://rspec.info/")
405 (license license:expat)))
407 (define-public ruby-rspec-2
408 (package (inherit ruby-rspec)
412 (uri (rubygems-uri "rspec" version))
415 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
417 `(("ruby-rspec-core" ,ruby-rspec-core-2)
418 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
419 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
421 ;; Bundler is yet another source of circular dependencies, so we must disable
422 ;; its test suite as well.
423 (define-public bundler
429 (uri (rubygems-uri "bundler" version))
432 "0fxr7aq7qhlga423mygy7q96cwxmvqlcy676v2x5swlw8rlha2in"))))
433 (build-system ruby-build-system)
435 '(#:tests? #f)) ; avoid dependency cycles
436 (synopsis "Ruby gem bundler")
437 (description "Bundler automatically downloads and installs a list of gems
438 specified in a \"Gemfile\", as well as their dependencies.")
439 (home-page "http://bundler.io/")
440 (license license:expat)))
442 (define-public ruby-builder
444 (name "ruby-builder")
448 (uri (rubygems-uri "builder" version))
451 "14fii7ab8qszrvsvhz6z2z3i4dw0h41a62fjr2h1j8m41vbrmyv2"))))
452 (build-system ruby-build-system)
455 (modify-phases %standard-phases
456 (add-after 'unpack 'do-not-use-rvm
458 (substitute* "rakelib/tags.rake"
459 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
461 (synopsis "Ruby library to create structured data")
462 (description "Builder provides a number of builder objects that make it
463 easy to create structured data. Currently the following builder objects are
464 supported: XML Markup and XML Events.")
465 (home-page "https://github.com/jimweirich/builder")
466 (license license:expat)))
468 (define-public ruby-rjb
474 (uri (rubygems-uri "rjb" version))
477 "0gzs92dagk981s4vrymnqg0vll783b9k564j0cdgp167nc5a2zg4"))))
478 (build-system ruby-build-system)
480 `(#:tests? #f ; no rakefile
482 (modify-phases %standard-phases
483 (add-before 'build 'set-java-home
484 (lambda* (#:key inputs #:allow-other-keys)
485 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
488 `(("jdk" ,icedtea "jdk")))
489 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
490 (description "RJB is a bridge program that connects Ruby and Java via the
491 Java Native Interface.")
492 (home-page "http://www.artonx.org/collabo/backyard/?RubyJavaBridge")
493 (license license:lgpl2.1+)))
495 (define-public ruby-log4r
502 (uri (rubygems-uri "log4r" version))
505 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
506 (build-system ruby-build-system)
508 '(#:tests? #f)) ; no Rakefile in gem
509 (synopsis "Flexible logging library for Ruby")
510 (description "Comprehensive and flexible logging library written
511 in Ruby for use in Ruby programs. It features a hierarchical logging
512 system of any number of levels, custom level names, logger
513 inheritance, multiple output destinations per log event, execution
514 tracing, custom formatting, thread safteyness, XML and YAML
515 configuration, and more.")
516 (home-page "http://log4r.rubyforge.org/")
517 (license license:bsd-3)))
519 (define-public ruby-atoulme-antwrap
521 (name "ruby-atoulme-antwrap")
525 (uri (rubygems-uri "atoulme-Antwrap" version))
528 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
529 (build-system ruby-build-system)
530 ;; Test data required for most of the tests are not included.
531 (arguments `(#:tests? #f))
533 `(("ruby-hoe" ,ruby-hoe)))
535 `(("ruby-rjb" ,ruby-rjb)))
536 (synopsis "Ruby wrapper for the Ant build tool")
537 (description "Antwrap is a Ruby module that wraps the Apache Ant build
538 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
540 (home-page "http://rubyforge.org/projects/antwrap/")
541 (license license:expat)))
543 (define-public ruby-atoulme-saikuro
545 (name "ruby-atoulme-saikuro")
549 (uri (rubygems-uri "atoulme-Saikuro" version))
552 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
553 (build-system ruby-build-system)
554 ;; FIXME: There are no unit tests. The tests are demonstrations of the
556 (arguments `(#:tests? #f))
557 (synopsis "Cyclomatic complexity analyzer")
558 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
559 given Ruby source code Saikuro will generate a report listing the cyclomatic
560 complexity of each method found. In addition, Saikuro counts the number of
561 lines per method and can generate a listing of the number of tokens on each
563 (home-page "http://www.github.com/atoulme/Saikuro")
564 ;; File headers contain the BSD-3 license and the README.rdoc says that
565 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
566 ;; of the Expat license.
567 (license license:bsd-3)))
569 (define-public ruby-ci-reporter
571 (name "ruby-ci-reporter")
575 (uri (rubygems-uri "ci_reporter" version))
578 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
579 (build-system ruby-build-system)
581 `(#:test-target "rspec"))
583 `(("ruby-builder" ,ruby-builder)))
585 `(("bundler" ,bundler)
586 ("ruby-rspec" ,ruby-rspec)))
587 (synopsis "Generate XML reports of runs test")
589 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
590 you to generate XML reports of your test runs. The resulting files can be
591 read by a continuous integration system that understands Ant's JUnit report
593 (home-page "https://github.com/nicksieger/ci_reporter")
594 (license license:expat)))
596 (define-public ruby-saikuro-treemap
598 (name "ruby-saikuro-treemap")
602 (uri (rubygems-uri "saikuro_treemap" version))
605 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
606 (build-system ruby-build-system)
607 ;; Some of the tests fail because the generated JSON has keys in a
608 ;; different order. This is a problem with the test suite rather than any
609 ;; of the involved libraries.
610 (arguments `(#:tests? #f))
612 `(("ruby-json-pure" ,ruby-json-pure)
613 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
614 (synopsis "Generate complexity treemap based on saikuro analysis")
616 "This gem generates a treemap showing the complexity of Ruby code on
617 which it is run. It uses Saikuro under the covers to analyze Ruby code
619 (home-page "http://github.com/ThoughtWorksStudios/saikuro_treemap")
620 (license license:expat)))
622 (define-public ruby-orderedhash
624 (name "ruby-orderedhash")
628 (uri (rubygems-uri "orderedhash" version))
631 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
632 (build-system ruby-build-system)
634 '(#:tests? #f)) ; no test suite
635 (synopsis "Ruby library providing an order-preserving hash")
636 (description "Orderedhash is a Ruby library providing a hash
637 implementation that preserves the order of items and features some array-like
639 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
640 (license license:public-domain)))
642 (define-public ruby-libxml
649 (uri (rubygems-uri "libxml-ruby" version))
652 "1dhjqp4r9vkdp00l6h1cj8qfndzxlhlxk6b9g0w4v55gz857ilhb"))))
653 (build-system ruby-build-system)
656 ("libxml2" ,libxml2)))
658 '(#:tests? #f ; test suite hangs for unknown reason
661 (string-append "--with-xml2-include="
662 (assoc-ref %build-inputs "libxml2")
663 "/include/libxml2" ))))
664 (synopsis "Ruby bindings for GNOME Libxml2")
665 (description "The Libxml-Ruby project provides Ruby language bindings for
666 the GNOME Libxml2 XML toolkit.")
667 (home-page "http://xml4r.github.com/libxml-ruby")
668 (license license:expat)))
670 (define-public ruby-xml-simple
672 (name "ruby-xml-simple")
676 (uri (rubygems-uri "xml-simple" version))
679 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
680 (build-system ruby-build-system)
682 '(#:tests? #f)) ; no test suite
683 (synopsis "Simple Ruby library for XML processing")
684 (description "This library provides a simple API for XML processing in
686 (home-page "https://github.com/maik/xml-simple")
687 (license license:ruby)))
689 (define-public ruby-thor
695 (uri (rubygems-uri "thor" version))
698 "08p5gx18yrbnwc6xc0mxvsfaxzgy2y9i78xq7ds0qmdm67q39y4z"))))
699 (build-system ruby-build-system)
701 '(#:tests? #f)) ; no test suite
703 `(("bundler" ,bundler)))
704 (synopsis "Ruby toolkit for building command-line interfaces")
705 (description "Thor is a toolkit for building powerful command-line
707 (home-page "http://whatisthor.com/")
708 (license license:expat)))
710 (define-public ruby-lumberjack
712 (name "ruby-lumberjack")
716 (uri (rubygems-uri "lumberjack" version))
719 "162frm2bwy58pj8ccsdqa4a6i0csrhb9h5l3inhkl1ivgfc8814l"))))
720 (build-system ruby-build-system)
722 `(("ruby-rspec" ,ruby-rspec)))
723 (synopsis "Logging utility library for Ruby")
724 (description "Lumberjack is a simple logging utility that can be a drop in
725 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
726 for automatically rolling log files even with multiple processes writing the
728 (home-page "http://github.com/bdurand/lumberjack")
729 (license license:expat)))
731 (define-public ruby-nenv
737 (uri (rubygems-uri "nenv" version))
740 "152wxwri0afwgnxdf93gi6wjl9rr5z7vwp8ln0gpa3rddbfc27s6"))))
741 (build-system ruby-build-system)
743 `(#:tests? #f)) ; no tests included
745 `(("ruby-rspec" ,ruby-rspec)
746 ("bundler" ,bundler)))
747 (synopsis "Ruby interface for modifying the environment")
748 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
749 and inspect the environment.")
750 (home-page "https://github.com/e2/nenv")
751 (license license:expat)))
753 (define-public ruby-permutation
755 (name "ruby-permutation")
759 (uri (rubygems-uri "permutation" version))
762 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
763 (build-system ruby-build-system)
766 (modify-phases %standard-phases
767 (add-after 'unpack 'fix-rakefile
769 (substitute* "Rakefile"
770 (("require 'rake/gempackagetask'")
771 "require 'rubygems/package_task'")
772 (("include Config") ""))
776 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
777 (synopsis "Library to perform operations with sequence permutations")
778 (description "This package provides a Ruby library to perform different
779 operations with permutations of sequences, such as strings and arrays.")
780 (home-page "http://flori.github.io/permutation")
781 (license license:gpl2))) ; GPL 2 only
783 (define-public ruby-shellany
785 (name "ruby-shellany")
789 (uri (rubygems-uri "shellany" version))
792 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
793 (build-system ruby-build-system)
795 `(#:test-target "default"
797 (modify-phases %standard-phases
798 (add-after 'unpack 'fix-version-test
800 (substitute* "spec/shellany_spec.rb"
801 (("^RSpec") "require \"shellany\"\nRSpec"))
804 `(("ruby-rspec" ,ruby-rspec)
805 ("ruby-nenv" ,ruby-nenv)
806 ("bundler" ,bundler)))
807 (synopsis "Capture command output")
808 (description "Shellany is a Ruby library providing functions to capture
809 the output produced by running shell commands.")
810 (home-page "https://rubygems.org/gems/shellany")
811 (license license:expat)))
813 (define-public ruby-notiffany
815 (name "ruby-notiffany")
819 (uri (rubygems-uri "notiffany" version))
822 "1v5x1w59qq85r6dpv3y9ga34dfd7hka1qxyiykaw7gm0i6kggbhi"))))
823 (build-system ruby-build-system)
824 ;; Tests are not included in the gem.
825 (arguments `(#:tests? #f))
827 `(("ruby-shellany" ,ruby-shellany)
828 ("ruby-nenv" ,ruby-nenv)))
830 `(("bundler" ,bundler)))
831 (synopsis "Wrapper libray for notification libraries")
832 (description "Notiffany is a Ruby wrapper libray for notification
833 libraries such as Libnotify.")
834 (home-page "https://github.com/guard/notiffany")
835 (license license:expat)))
837 (define-public ruby-formatador
839 (name "ruby-formatador")
843 (uri (rubygems-uri "formatador" version))
846 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
847 (build-system ruby-build-system)
848 ;; Circular dependency: Tests require ruby-shindo, which requires
849 ;; ruby-formatador at runtime.
850 (arguments `(#:tests? #f))
851 (synopsis "Ruby library to format text on stdout")
852 (description "Formatador is a Ruby library to format text printed to the
853 standard output stream.")
854 (home-page "http://github.com/geemus/formatador")
855 (license license:expat)))
857 (define-public ruby-shindo
863 (uri (rubygems-uri "shindo" version))
866 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
867 (build-system ruby-build-system)
869 `(#:test-target "shindo_tests"
871 (modify-phases %standard-phases
872 (add-after 'unpack 'fix-tests
874 (substitute* "Rakefile"
875 (("system \"shindo") "system \"./bin/shindo")
876 ;; This test doesn't work, so we disable it.
877 (("fail \"The build_error test should fail") "#"))
880 `(("ruby-formatador" ,ruby-formatador)))
881 (synopsis "Simple depth first Ruby testing")
882 (description "Shindo is a simple depth first testing library for Ruby.")
883 (home-page "https://github.com/geemus/shindo")
884 (license license:expat)))
886 (define-public ruby-rubygems-tasks
888 (name "ruby-rubygems-tasks")
892 (uri (rubygems-uri "rubygems-tasks" version))
895 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
896 (build-system ruby-build-system)
897 ;; Tests need Internet access.
898 (arguments `(#:tests? #f))
900 `(("ruby-rspec" ,ruby-rspec)
901 ("ruby-yard" ,ruby-yard)))
902 (synopsis "Rake tasks for managing and releasing Ruby Gems")
903 (description "Rubygems-task provides Rake tasks for managing and releasing
905 (home-page "https://github.com/postmodern/rubygems-tasks")
906 (license license:expat)))
908 (define-public ruby-ffi
914 (uri (rubygems-uri "ffi" version))
917 "1nkcrmxqr0vb1y4rwliclwlj2ajsi4ddpdx2gvzjy0xbkk5iqzfp"))))
918 (build-system ruby-build-system)
919 ;; FIXME: Before running tests the build system attempts to build libffi
921 (arguments `(#:tests? #f))
923 `(("ruby-rake-compiler" ,ruby-rake-compiler)
924 ("ruby-rspec" ,ruby-rspec)
925 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
927 `(("libffi" ,libffi)))
928 (synopsis "Ruby foreign function interface library")
929 (description "Ruby-FFI is a Ruby extension for programmatically loading
930 dynamic libraries, binding functions within them, and calling those functions
931 from Ruby code. Moreover, a Ruby-FFI extension works without changes on Ruby
933 (home-page "http://wiki.github.com/ffi/ffi")
934 (license license:bsd-3)))
936 (define-public ruby-simplecov-html
938 (name "ruby-simplecov-html")
942 (uri (rubygems-uri "simplecov-html" version))
945 "1qni8g0xxglkx25w54qcfbi4wjkpvmb28cb7rj5zk3iqynjcdrqf"))))
946 (build-system ruby-build-system)
947 (arguments `(#:tests? #f)) ; there are no tests
949 `(("bundler" ,bundler)))
950 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
951 (description "This package provides the default HTML formatter for
952 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
953 (home-page "https://github.com/colszowka/simplecov-html")
954 (license license:expat)))
956 (define-public ruby-simplecov
958 (name "ruby-simplecov")
962 (uri (rubygems-uri "simplecov" version))
965 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
966 (build-system ruby-build-system)
967 ;; Simplecov depends on rubocop for code style checking at build time.
968 ;; Rubocop needs simplecov at build time.
969 (arguments `(#:tests? #f))
971 `(("ruby-json" ,ruby-json)
972 ("ruby-docile" ,ruby-docile)
973 ("ruby-simplecov-html" ,ruby-simplecov-html)))
975 `(("bundler" ,bundler)))
976 (synopsis "Code coverage framework for Ruby")
977 (description "SimpleCov is a code coverage framework for Ruby with a
978 powerful configuration library and automatic merging of coverage across test
980 (home-page "http://github.com/colszowka/simplecov")
981 (license license:expat)))
983 (define-public ruby-useragent
985 (name "ruby-useragent")
989 (uri (rubygems-uri "useragent" version))
992 "0kz7yyz7528bv4a2kfymvkcm8whqcddhmgaw1ksw1d90n30hhkpc"))))
993 (build-system ruby-build-system)
995 '(#:tests? #f)) ; no test suite
996 (synopsis "HTTP user agent parser for Ruby")
997 (description "UserAgent is a Ruby library that parses and compares HTTP
999 (home-page "https://github.com/gshutler/useragent")
1000 (license license:expat)))
1002 (define-public ruby-bacon
1008 (uri (rubygems-uri "bacon" version))
1011 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1012 (build-system ruby-build-system)
1013 (synopsis "Small RSpec clone")
1014 (description "Bacon is a small RSpec clone providing all essential
1016 (home-page "https://github.com/chneukirchen/bacon")
1017 (license license:expat)))
1019 (define-public ruby-arel
1025 (uri (rubygems-uri "arel" version))
1028 "18wnfnzr2i5p3fygsddjbi1cimws6823nbk8drxidmnj8jz7h0ar"))))
1029 (build-system ruby-build-system)
1031 '(#:tests? #f)) ; no test suite
1032 (synopsis "SQL AST manager for Ruby")
1033 (description "Arel is a SQL AST manager for Ruby. It simplifies the
1034 generation of complex SQL queries and adapts to various relational database
1036 (home-page "https://github.com/rails/arel")
1037 (license license:expat)))
1039 (define-public ruby-connection-pool
1041 (name "ruby-connection-pool")
1045 (uri (rubygems-uri "connection_pool" version))
1048 "1b2bb3k39ni5mzcnqlv9y4yjkbin20s7dkwzp0jw2jf1rmzcgrmy"))))
1049 (build-system ruby-build-system)
1051 `(("bundler" ,bundler)))
1052 (synopsis "Generic connection pool for Ruby")
1053 (description "Connection_pool provides a generic connection pooling
1054 interface for Ruby programs.")
1055 (home-page "https://github.com/mperham/connection_pool")
1056 (license license:expat)))
1058 (define-public ruby-net-http-persistent
1060 (name "ruby-net-http-persistent")
1064 (uri (rubygems-uri "net-http-persistent" version))
1067 "1y9fhaax0d9kkslyiqi1zys6cvpaqx9a0y0cywp24rpygwh4s9r4"))))
1068 (build-system ruby-build-system)
1070 `(("ruby-connection-pool" ,ruby-connection-pool)
1071 ("ruby-hoe" ,ruby-hoe)))
1072 (synopsis "Persistent HTTP connection manager")
1073 (description "Net::HTTP::Persistent manages persistent HTTP connections
1074 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1075 (home-page "https://github.com/drbrain/net-http-persistent")
1076 (license license:expat)))
1078 (define-public ruby-power-assert
1080 (name "ruby-power-assert")
1084 (uri (rubygems-uri "power_assert" version))
1087 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1088 (build-system ruby-build-system)
1090 `(("bundler" ,bundler)))
1091 (synopsis "Assert library with descriptive assertion messages")
1092 (description "Power-assert is an assertion library providing descriptive
1093 assertion messages for tests.")
1094 (home-page "https://github.com/k-tsj/power_assert")
1095 (license (list license:bsd-2 license:ruby))))
1097 (define-public ruby-locale
1099 (name "ruby-locale")
1103 (uri (rubygems-uri "locale" version))
1106 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1107 (build-system ruby-build-system)
1108 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1109 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1110 ;; dependency cycle we disable tests.
1111 (arguments `(#:tests? #f))
1113 `(("bundler" ,bundler)
1114 ("ruby-yard" ,ruby-yard)))
1115 (synopsis "Ruby library providing basic localization APIs")
1117 "Ruby-Locale is the pure ruby library which provides basic APIs for
1119 (home-page "https://github.com/ruby-gettext/locale")
1120 (license (list license:lgpl3+ license:ruby))))
1122 (define-public ruby-text
1128 (uri (rubygems-uri "text" version))
1131 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1132 (build-system ruby-build-system)
1133 (synopsis "Collection of text algorithms for Ruby")
1135 "This package provides a collection of text algorithms: Levenshtein,
1136 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1137 (home-page "http://github.com/threedaymonk/text")
1138 (license license:expat)))
1140 (define-public ruby-gettext
1142 (name "ruby-gettext")
1146 (uri (rubygems-uri "gettext" version))
1149 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1150 (build-system ruby-build-system)
1151 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1152 ;; which needs ruby-gettext. To break the dependency cycle we disable
1154 (arguments `(#:tests? #f))
1156 `(("ruby-locale" ,ruby-locale)
1157 ("ruby-text" ,ruby-text)))
1159 `(("bundler" ,bundler)
1160 ("ruby-yard" ,ruby-yard)))
1161 (synopsis "GNU gettext-like program for Ruby")
1163 "Gettext is a GNU gettext-like program for Ruby. The catalog
1164 file (po-file) used is the same as that used by GNU gettext, allowing you to
1165 use GNU gettext tools for maintenance.")
1166 (home-page "http://ruby-gettext.github.com/")
1167 (license (list license:lgpl3+ license:ruby))))
1169 (define-public ruby-packnga
1171 (name "ruby-packnga")
1175 (uri (rubygems-uri "packnga" version))
1178 "1i71yhvlkvi5fp3m8jl9317cnddkbnrcy0syrmiw4y1lrq0cbncj"))))
1179 (build-system ruby-build-system)
1180 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1181 ;; To break the dependency cycle we disable tests.
1182 (arguments `(#:tests? #f))
1184 `(("ruby-gettext" ,ruby-gettext)
1185 ("ruby-yard" ,ruby-yard)))
1187 `(("bundler" ,bundler)))
1188 (synopsis "Utility library to package internationalized libraries")
1190 "Packnga is a library to translate to many languages using YARD.")
1191 (home-page "http://ranguba.org/packnga/")
1192 (license license:lgpl2.0+)))
1194 (define-public ruby-test-unit
1196 (name "ruby-test-unit")
1200 (uri (rubygems-uri "test-unit" version))
1203 "0jxznjzwmrlp8wqjxsd06qbiddffn68pdhz6nrqpjbiln1z3af4w"))))
1204 (build-system ruby-build-system)
1206 `(("ruby-power-assert" ,ruby-power-assert)))
1208 `(("bundler" ,bundler)
1209 ("ruby-packnga" ,ruby-packnga)
1210 ("ruby-yard" ,ruby-yard)))
1211 (synopsis "Unit testing framework for Ruby")
1212 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1213 on xUnit principles. These were originally designed by Kent Beck, creator of
1214 extreme programming software development methodology, for Smalltalk's SUnit.
1215 It allows writing tests, checking results and automated testing in Ruby.")
1216 (home-page "http://test-unit.github.io/")
1217 (license (list license:psfl license:ruby))))
1219 (define-public ruby-metaclass
1221 (name "ruby-metaclass")
1225 (uri (rubygems-uri "metaclass" version))
1228 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1229 (build-system ruby-build-system)
1232 (modify-phases %standard-phases
1233 (add-after 'unpack 'add-test-unit-to-search-path
1234 (lambda* (#:key inputs #:allow-other-keys)
1235 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1236 (test-unit-home (gem-home test-unit
1237 ,(package-version ruby))))
1238 (substitute* "Rakefile"
1239 (("t\\.libs << \"test\"" line)
1240 (string-append line "; t.libs << \""
1243 ,(package-version ruby-test-unit)
1247 `(("bundler" ,bundler)
1248 ("ruby-test-unit" ,ruby-test-unit)))
1249 (synopsis "Ruby library adding metaclass method to all objects")
1251 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1253 (home-page "http://github.com/floehopper/metaclass")
1254 (license license:expat)))
1256 (define-public ruby-blankslate
1258 (name "ruby-blankslate")
1262 (uri (rubygems-uri "blankslate" version))
1265 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1266 (build-system ruby-build-system)
1269 (modify-phases %standard-phases
1271 (lambda _ (zero? (system* "rspec" "spec/")))))))
1273 `(("bundler" ,bundler)
1274 ("ruby-rspec" ,ruby-rspec)))
1275 (synopsis "Abstract base class with no predefined methods")
1277 "BlankSlate provides an abstract base class with no predefined
1278 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1279 as a base class when writing classes that depend upon
1280 @code{method_missing} (e.g. dynamic proxies).")
1281 (home-page "http://github.com/masover/blankslate")
1282 (license license:expat)))
1284 (define-public ruby-instantiator
1286 (name "ruby-instantiator")
1290 (uri (rubygems-uri "instantiator" version))
1293 "0mfmqhg9xrv9i8i1kmphf15ywddhivyh2z3ccl0xjw8qy54zr21i"))))
1294 (build-system ruby-build-system)
1297 (modify-phases %standard-phases
1298 (add-after 'unpack 'add-test-unit-to-search-path
1299 (lambda* (#:key inputs #:allow-other-keys)
1300 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1301 (test-unit-home (gem-home test-unit ,(package-version
1303 (substitute* "Rakefile"
1304 (("t\\.libs << \"test\"" line)
1305 (string-append line "; t.libs << \""
1308 ,(package-version ruby-test-unit)
1312 `(("ruby-blankslate" ,ruby-blankslate)))
1314 `(("bundler" ,bundler)
1315 ("ruby-test-unit" ,ruby-test-unit)))
1316 (synopsis "Instantiate an arbitrary Ruby class")
1318 "Instantiator lets you instantiate an arbitrary Ruby class without
1319 knowing anything about the constructor.")
1320 (home-page "https://github.com/floehopper/instantiator")
1321 (license license:expat)))
1323 (define-public ruby-introspection
1325 (name "ruby-introspection")
1329 (uri (rubygems-uri "introspection" version))
1332 "0g1j71sqfxbqk32wj7d0bkd3dlayfqzprfq3dbr0rq107xbxjcrr"))))
1333 (build-system ruby-build-system)
1336 (modify-phases %standard-phases
1337 (add-after 'unpack 'add-test-unit-to-search-path
1338 (lambda* (#:key inputs #:allow-other-keys)
1339 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1340 (test-unit-home (gem-home test-unit ,(package-version
1342 (substitute* "Rakefile"
1343 (("t\\.libs << \"test\"" line)
1344 (string-append line "; t.libs << \""
1347 ,(package-version ruby-test-unit)
1351 `(("ruby-instantiator" ,ruby-instantiator)
1352 ("ruby-metaclass" ,ruby-metaclass)))
1354 `(("bundler" ,bundler)
1355 ("ruby-blankslate" ,ruby-blankslate)
1356 ("ruby-test-unit" ,ruby-test-unit)))
1357 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1359 "Introspection provides tools to inspect the hierarchy of method
1360 definitions on a Ruby object.")
1361 (home-page "https://github.com/floehopper/introspection")
1362 (license license:expat)))
1364 (define-public ruby-redcarpet
1366 (name "ruby-redcarpet")
1370 (uri (rubygems-uri "redcarpet" version))
1373 "14i3wypp97bpk20679d1csy88q4hsgfqbnqw6mryl77m2g0d09pk"))))
1374 (build-system ruby-build-system)
1377 (modify-phases %standard-phases
1378 ;; The gem archive does not include the conformance tests.
1379 (add-after 'unpack 'disable-conformance-tests
1381 (substitute* "Rakefile"
1382 (("task :test => %w\\[test:unit test:conformance\\]")
1383 "task :test => %w[test:unit]"))
1386 `(("bundler" ,bundler)
1387 ("ruby-test-unit" ,ruby-test-unit)
1388 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1389 (synopsis "Extensible Markdown to (X)HTML converter")
1391 "Redcarpet is an extensible Ruby library for Markdown processing and
1392 conversion to (X)HTML.")
1393 (home-page "http://github.com/vmg/redcarpet")
1394 (license license:expat)))
1396 (define-public ruby-mocha
1402 (uri (rubygems-uri "mocha" version))
1405 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1406 (build-system ruby-build-system)
1409 (modify-phases %standard-phases
1410 (add-after 'unpack 'add-test-unit-to-search-path
1411 (lambda* (#:key inputs #:allow-other-keys)
1412 (let* ((test-unit (assoc-ref inputs "ruby-test-unit"))
1413 (test-unit-home (gem-home test-unit
1414 ,(package-version ruby))))
1415 (substitute* "Rakefile"
1416 (("t\\.libs << 'test'" line)
1417 (string-append line "; t.libs << \""
1420 ,(package-version ruby-test-unit)
1423 (add-before 'check 'use-latest-redcarpet
1425 (substitute* "mocha.gemspec"
1426 (("<redcarpet>, \\[\"~> 1\"\\]")
1427 "<redcarpet>, [\">= 3\"]"))
1429 (add-before 'check 'hardcode-version
1431 ;; Mocha is undefined at build time
1432 (substitute* "Rakefile"
1433 (("#\\{Mocha::VERSION\\}") ,version))
1435 (add-before 'check 'remove-failing-test
1436 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1438 (delete-file "test/acceptance/stubbing_nil_test.rb")
1441 `(("ruby-metaclass" ,ruby-metaclass)))
1443 `(("bundler" ,bundler)
1444 ("ruby-yard" ,ruby-yard)
1445 ("ruby-introspection" ,ruby-introspection)
1446 ("ruby-test-unit" ,ruby-test-unit)
1447 ("ruby-redcarpet" ,ruby-redcarpet)))
1448 (synopsis "Mocking and stubbing library for Ruby")
1450 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1451 allows mocking and stubbing of methods on real (non-mock) classes.")
1452 (home-page "http://gofreerange.com/mocha/docs")
1453 (license license:expat)))
1455 (define-public ruby-net-ssh
1457 (name "ruby-net-ssh")
1461 (uri (rubygems-uri "net-ssh" version))
1464 "1dzqkgwi9xm6mbfk1rkk17rzmz8m5xakqi21w1b97ybng6kkw0hf"))))
1465 (build-system ruby-build-system)
1467 `(("ruby-mocha" ,ruby-mocha)
1468 ("ruby-test-unit" ,ruby-test-unit)))
1469 (synopsis "Ruby implementation of the SSH2 client protocol")
1470 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1471 client protocol. It allows you to write programs that invoke and interact
1472 with processes on remote servers, via SSH2.")
1473 (home-page "https://github.com/net-ssh/net-ssh")
1474 (license license:expat)))
1476 (define-public ruby-minitest
1478 (name "ruby-minitest")
1482 (uri (rubygems-uri "minitest" version))
1485 "0rxqfakp629mp3vwda7zpgb57lcns5znkskikbfd0kriwv8i1vq8"))))
1486 (build-system ruby-build-system)
1488 `(("ruby-hoe" ,ruby-hoe)))
1489 (synopsis "Small test suite library for Ruby")
1490 (description "Minitest provides a complete suite of Ruby testing
1491 facilities supporting TDD, BDD, mocking, and benchmarking.")
1492 (home-page "https://github.com/seattlerb/minitest")
1493 (license license:expat)))
1495 ;; This is the last release of Minitest 4, which is used by some packages.
1496 (define-public ruby-minitest-4
1497 (package (inherit ruby-minitest)
1501 (uri (rubygems-uri "minitest" version))
1504 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1507 (modify-phases %standard-phases
1508 (add-after 'unpack 'remove-unsupported-method
1510 (substitute* "Rakefile"
1511 (("self\\.rubyforge_name = .*") ""))
1514 (define-public ruby-minitest-sprint
1516 (name "ruby-minitest-sprint")
1520 (uri (rubygems-uri "minitest-sprint" version))
1523 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
1524 (build-system ruby-build-system)
1526 `(("ruby-hoe" ,ruby-hoe)
1527 ("ruby-minitest" ,ruby-minitest)))
1528 (synopsis "Fast test suite runner for minitest")
1529 (description "Minitest-sprint is a test runner for minitest that makes it
1530 easier to re-run individual failing tests.")
1531 (home-page "https://github.com/seattlerb/minitest-sprint")
1532 (license license:expat)))
1534 (define-public ruby-minitest-bacon
1536 (name "ruby-minitest-bacon")
1540 (uri (rubygems-uri "minitest-bacon" version))
1543 "0cm7r68422743i3b6fm4rrm0r6cnnjmglq5gcmmgl1f0rk5hnf6r"))))
1544 (build-system ruby-build-system)
1546 `(("ruby-hoe" ,ruby-hoe)))
1548 `(("ruby-minitest" ,ruby-minitest)))
1549 (synopsis "Bacon compatibility library for minitest")
1550 (description "Minitest-bacon extends minitest with bacon-like
1551 functionality, making it easier to migrate test suites from bacon to minitest.")
1552 (home-page "https://github.com/seattlerb/minitest-bacon")
1553 (license license:expat)))
1555 (define-public ruby-minitest-focus
1557 (name "ruby-minitest-focus")
1562 (uri (rubygems-uri "minitest-focus" version))
1565 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1566 (build-system ruby-build-system)
1568 `(("ruby-minitest" ,ruby-minitest)))
1570 `(("ruby-hoe" ,ruby-hoe)))
1571 (synopsis "Allows a few specific tests to be focused on")
1573 "@code{minitest-focus} gives the ability focus on a few tests with ease
1574 without having to use command-line arguments. It introduces a @code{focus}
1575 class method for use in testing classes, specifying that the next defined test
1577 (home-page "https://github.com/seattlerb/minitest-focus")
1578 (license license:expat)))
1580 (define-public ruby-minitest-pretty-diff
1581 ;; Use git reference because gem is out of date and does not contain testing
1582 ;; script. There are no releases on GitHub.
1583 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
1585 (name "ruby-minitest-pretty-diff")
1586 (version (string-append "0.1-1." (string-take commit 8)))
1590 (url "https://github.com/adammck/minitest-pretty_diff.git")
1592 (file-name (string-append name "-" version "-checkout"))
1595 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
1596 (build-system ruby-build-system)
1599 (modify-phases %standard-phases
1602 (zero? (system* "script/test")))))))
1604 `(("bundler" ,bundler)
1605 ("ruby-turn" ,ruby-turn)))
1606 (synopsis "Pretty-print hashes and arrays in MiniTest")
1608 "@code{minitest-pretty_diff} monkey-patches
1609 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
1610 diffing them. This makes it easier to spot differences between nested
1611 structures when tests fail.")
1612 (home-page "https://github.com/adammck/minitest-pretty_diff")
1613 (license license:expat))))
1615 (define-public ruby-minitest-moar
1617 (name "ruby-minitest-moar")
1622 (uri (rubygems-uri "minitest-moar" version))
1625 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
1626 (build-system ruby-build-system)
1629 (modify-phases %standard-phases
1630 (add-before 'check 'clean-dependencies
1632 ;; Remove all gems defined in the Gemfile because these are not
1634 (substitute* "Gemfile"
1636 ;; Remove byebug as not needed to run tests.
1637 (substitute* "test/test_helper.rb"
1638 (("require 'byebug'") ""))
1641 `(("bundler" ,bundler)
1642 ("ruby-minitest" ,ruby-minitest)))
1643 (synopsis "Extra features and changes to MiniTest")
1644 (description "@code{MiniTest Moar} add some additional features and
1645 changes some default behaviours in MiniTest. For instance, Moar replaces the
1646 MiniTest @code{Object#stub} with a global @code{stub} method.")
1647 (home-page "https://github.com/dockyard/minitest-moar")
1648 (license license:expat)))
1650 (define-public ruby-minitest-bonus-assertions
1652 (name "ruby-minitest-bonus-assertions")
1657 (uri (rubygems-uri "minitest-bonus-assertions" version))
1660 "11nrd32kwy61ndg9csk7l1ifya79ghrrv3vsrxj57k50m7na6jkm"))))
1661 (build-system ruby-build-system)
1664 (modify-phases %standard-phases
1665 (add-before 'check 'clean-dependencies
1667 ;; Remove unneeded require statement that would entail another
1669 (substitute* "test/minitest_config.rb"
1670 (("require 'minitest/bisect'") ""))
1673 `(("ruby-hoe" ,ruby-hoe)
1674 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
1675 ("ruby-minitest-focus" ,ruby-minitest-focus)
1676 ("ruby-minitest-moar" ,ruby-minitest-moar)))
1677 (synopsis "Bonus assertions for @code{Minitest}")
1679 "Minitest bonus assertions provides extra MiniTest assertions. For
1680 instance, it provides @code{assert_true}, @code{assert_false} and
1681 @code{assert_set_equal}.")
1682 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
1683 (license license:expat)))
1685 (define-public ruby-minitest-rg
1687 (name "ruby-minitest-rg")
1692 (uri (rubygems-uri "minitest-rg" version))
1695 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
1696 (build-system ruby-build-system)
1698 ;; Some tests fail even outside Guix, so disable tests.
1699 ;; https://github.com/blowmage/minitest-rg/issues/12
1700 ;; https://github.com/blowmage/minitest-rg/pull/13
1703 `(("ruby-minitest" ,ruby-minitest)))
1704 (synopsis "Coloured output for Minitest")
1706 "@code{minitest-rg} changes the colour of the output from Minitest.")
1707 (home-page "http://blowmage.com/minitest-rg")
1708 (license license:expat)))
1710 (define-public ruby-minitest-hooks
1712 (name "ruby-minitest-hooks")
1717 (uri (rubygems-uri "minitest-hooks" version))
1720 "092fymh0c09v3a585qw3hc15b0zf159s74rxx1ga87drk5jr958z"))))
1721 (build-system ruby-build-system)
1723 '(#:test-target "spec"))
1725 `(("ruby-sequel" ,ruby-sequel)
1726 ("ruby-sqlite3" ,ruby-sqlite3)))
1727 (synopsis "Hooks for the minitest framework")
1729 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
1730 @code{around_all} hooks for Minitest. This allows, for instance, running each
1731 suite of specs inside a database transaction, running each spec inside its own
1732 savepoint inside that transaction. This can significantly speed up testing
1733 for specs that share expensive database setup code.")
1734 (home-page "http://github.com/jeremyevans/minitest-hooks")
1735 (license license:expat)))
1737 (define-public ruby-daemons
1739 (name "ruby-daemons")
1743 (uri (rubygems-uri "daemons" version))
1746 "121c7vkimg3baxga69xvdkwxiq8wkmxqvdbyqi5i82vhih5d3cn3"))))
1747 (build-system ruby-build-system)
1749 `(#:tests? #f)) ; no test suite
1750 (synopsis "Daemonize Ruby programs")
1751 (description "Daemons provides a way to wrap existing Ruby scripts to be
1752 run as a daemon and to be controlled by simple start/stop/restart commands.")
1753 (home-page "https://github.com/thuehlinger/daemons")
1754 (license license:expat)))
1756 (define-public ruby-git
1762 (uri (rubygems-uri "git" version))
1765 "1sqfj8lmhl7c5zamcckkpik4izfph2zkv6krw0i8mzj5pdws5acs"))))
1766 (build-system ruby-build-system)
1768 `(#:tests? #f ; no tests
1769 #:phases (modify-phases %standard-phases
1770 (add-after 'install 'patch-git-binary
1771 (lambda* (#:key inputs outputs #:allow-other-keys)
1772 ;; Make the default git binary an absolute path to the
1774 (let ((git (string-append (assoc-ref inputs "git")
1776 (config (string-append (getenv "GEM_HOME")
1777 "/gems/git-" ,version
1778 "/lib/git/config.rb")))
1779 (substitute* (list config)
1781 (string-append "'" git "'")))
1785 (synopsis "Ruby wrappers for Git")
1786 (description "Ruby/Git is a Ruby library that can be used to create, read
1787 and manipulate Git repositories by wrapping system calls to the git binary.")
1788 (home-page "https://github.com/schacon/ruby-git")
1789 (license license:expat)))
1791 (define-public ruby-slop
1797 (uri (rubygems-uri "slop" version))
1800 "0dj0ps6v1mqd02k84mgwd7hp578n2bzl7c51h3grdhxfl3jkfsj5"))))
1801 (build-system ruby-build-system)
1803 `(("ruby-minitest" ,ruby-minitest)))
1804 (synopsis "Ruby command line option parser")
1805 (description "Slop provides a Ruby domain specific language for gathering
1806 options and parsing command line flags.")
1807 (home-page "https://github.com/leejarvis/slop")
1808 (license license:expat)))
1810 (define-public ruby-slop-3
1811 (package (inherit ruby-slop)
1815 (uri (rubygems-uri "slop" version))
1818 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
1820 (define-public ruby-multipart-post
1822 (name "ruby-multipart-post")
1826 (uri (rubygems-uri "multipart-post" version))
1829 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
1830 (build-system ruby-build-system)
1832 `(("bundler" ,bundler)))
1833 (synopsis "Multipart POST library for Ruby")
1834 (description "Multipart-Post Adds multipart POST capability to Ruby's
1836 (home-page "https://github.com/nicksieger/multipart-post")
1837 (license license:expat)))
1839 (define-public ruby-arel
1845 (uri (rubygems-uri "arel" version))
1848 "0d6kfsh7qf5gls0n1nrppxv89zyli27kw8nklpq2by3z7cxjcvjg"))))
1849 (build-system ruby-build-system)
1850 (arguments '(#:tests? #f)) ; no tests
1851 (home-page "https://github.com/rails/arel")
1852 (synopsis "SQL AST manager for Ruby")
1853 (description "Arel is a SQL AST manager for Ruby. It simplifies the
1854 generation of complex SQL queries and is compatible with various RDBMSes.")
1855 (license license:expat)))
1857 (define-public ruby-minitar
1859 (name "ruby-minitar")
1864 (uri (rubygems-uri "minitar" version))
1867 "1vpdjfmdq1yc4i620frfp9af02ia435dnpj8ybsd7dc3rypkvbka"))))
1868 (build-system ruby-build-system)
1870 '(#:tests? #f)) ; missing a gemspec
1871 (synopsis "Ruby library and utility for handling tar archives")
1873 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
1874 that provides the ability to deal with POSIX tar archive files.")
1875 (home-page "http://www.github.com/atoulme/minitar")
1876 (license (list license:gpl2+ license:ruby))))
1878 (define-public ruby-mini-portile
1880 (name "ruby-mini-portile")
1885 (uri (rubygems-uri "mini_portile" version))
1888 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
1889 (build-system ruby-build-system)
1891 '(#:tests? #f)) ; tests require network access
1892 (synopsis "Ports system for Ruby developers")
1893 (description "Mini-portile is a port/recipe system for Ruby developers.
1894 It provides a standard way to compile against specific versions of libraries
1895 to reproduce user environments.")
1896 (home-page "http://github.com/flavorjones/mini_portile")
1897 (license license:expat)))
1899 (define-public ruby-mini-portile-2
1900 (package (inherit ruby-mini-portile)
1904 (uri (rubygems-uri "mini_portile2" version))
1907 "1y25adxb1hgg1wb2rn20g3vl07qziq6fz364jc5694611zz863hb"))))))
1909 (define-public ruby-nokogiri
1911 (name "ruby-nokogiri")
1915 (uri (rubygems-uri "nokogiri" version))
1918 "17pjhvm4yigriizxbbpx266nnh6nckdm33m3j4ws9dcg99daz91p"))))
1919 (build-system ruby-build-system)
1921 ;; Tests fail because Nokogiri can only test with an installed extension,
1922 ;; and also because many test framework dependencies are missing.
1924 #:gem-flags (list "--" "--use-system-libraries"
1925 (string-append "--with-xml2-include="
1926 (assoc-ref %build-inputs "libxml2")
1927 "/include/libxml2" ))
1929 (modify-phases %standard-phases
1930 (add-before 'build 'patch-extconf
1931 ;; 'pkg-config' is not included in the GEM_PATH during
1932 ;; installation, so we add it directly to the load path.
1933 (lambda* (#:key inputs #:allow-other-keys)
1934 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config"))
1935 (pkg-config-home (gem-home pkg-config
1936 ,(package-version ruby))))
1937 (substitute* "ext/nokogiri/extconf.rb"
1938 (("gem 'pkg-config'.*")
1939 (string-append "$:.unshift '"
1942 ,(package-version ruby-pkg-config)
1946 `(("ruby-hoe" ,ruby-hoe)))
1949 ("libxml2" ,libxml2)
1950 ("libxslt" ,libxslt)))
1952 `(("ruby-mini-portile" ,ruby-mini-portile-2)
1953 ("ruby-pkg-config" ,ruby-pkg-config)))
1954 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
1955 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
1956 both CSS3 selector and XPath 1.0 support.")
1957 (home-page "http://www.nokogiri.org/")
1958 (license license:expat)))
1960 (define-public ruby-method-source
1962 (name "ruby-method-source")
1967 (uri (rubygems-uri "method_source" version))
1970 "1g5i4w0dmlhzd18dijlqw5gk27bv6dj2kziqzrzb7mpgxgsd1sf2"))))
1971 (build-system ruby-build-system)
1973 `(("ruby-bacon" ,ruby-bacon)
1975 (synopsis "Retrieve the source code for Ruby methods")
1976 (description "Method_source retrieves the source code for Ruby methods.
1977 Additionally, it can extract source code from Proc and Lambda objects or just
1979 (home-page "https://github.com/banister/method_source")
1980 (license license:expat)))
1982 (define-public ruby-coderay
1984 (name "ruby-coderay")
1989 (uri (rubygems-uri "coderay" version))
1992 "059wkzlap2jlkhg460pkwc1ay4v4clsmg1bp4vfzjzkgwdckr52s"))))
1993 (build-system ruby-build-system)
1995 '(#:tests? #f)) ; missing test files
1996 (synopsis "Ruby syntax highlighting library")
1997 (description "Coderay is a Ruby library that provides syntax highlighting
1998 for select languages.")
1999 (home-page "http://coderay.rubychan.de")
2000 (license license:expat)))
2002 (define-public ruby-pry
2009 (uri (rubygems-uri "pry" version))
2012 "1j0r5fm0wvdwzbh6d6apnp7c0n150hpm9zxpm5xvcgfqr36jaj8z"))))
2013 (build-system ruby-build-system)
2015 '(#:tests? #f)) ; no tests
2017 `(("ruby-coderay" ,ruby-coderay)
2018 ("ruby-method-source" ,ruby-method-source)
2019 ("ruby-slop" ,ruby-slop-3)))
2020 (synopsis "Ruby REPL")
2021 (description "Pry is an IRB alternative and runtime developer console for
2022 Ruby. It features syntax highlighting, a plugin architecture, runtime
2023 invocation, and source and documentation browsing.")
2024 (home-page "http://pryrepl.org")
2025 (license license:expat)))
2027 (define-public ruby-guard
2033 ;; The gem does not include a Rakefile, nor does it contain a
2034 ;; gemspec file, nor does it come with the tests. This is why
2035 ;; we fetch the tarball from Github.
2036 (uri (string-append "https://github.com/guard/guard/archive/v"
2038 (file-name (string-append name "-" version ".tar.gz"))
2041 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2042 (build-system ruby-build-system)
2044 `(#:tests? #f ; tests require cucumber
2046 (modify-phases %standard-phases
2047 (add-after 'unpack 'remove-git-ls-files
2048 (lambda* (#:key outputs #:allow-other-keys)
2049 (substitute* "guard.gemspec"
2050 (("git ls-files -z") "find . -type f -print0"))
2054 (zero? (system* "gem" "build" "guard.gemspec")))))))
2056 `(("ruby-formatador" ,ruby-formatador)
2057 ("ruby-listen" ,ruby-listen)
2058 ("ruby-lumberjack" ,ruby-lumberjack)
2059 ("ruby-nenv" ,ruby-nenv)
2060 ("ruby-notiffany" ,ruby-notiffany)
2061 ("ruby-pry" ,ruby-pry)
2062 ("ruby-shellany" ,ruby-shellany)
2063 ("ruby-thor" ,ruby-thor)))
2065 `(("bundler" ,bundler)
2066 ("ruby-rspec" ,ruby-rspec)))
2067 (synopsis "Tool to handle events on file system modifications")
2069 "Guard is a command line tool to easily handle events on file system
2070 modifications. Guard automates various tasks by running custom rules whenever
2071 file or directories are modified.")
2072 (home-page "http://guardgem.org/")
2073 (license license:expat)))
2075 (define-public ruby-thread-safe
2077 (name "ruby-thread-safe")
2082 (uri (rubygems-uri "thread_safe" version))
2085 "1hq46wqsyylx5afkp6jmcihdpv4ynzzq9ygb6z2pb1cbz5js0gcr"))))
2086 (build-system ruby-build-system)
2088 '(#:tests? #f)) ; needs simplecov, among others
2089 (synopsis "Thread-safe utilities for Ruby")
2090 (description "The thread_safe library provides thread-safe collections and
2091 utilities for Ruby.")
2092 (home-page "https://github.com/ruby-concurrency/thread_safe")
2093 (license license:asl2.0)))
2095 (define-public ruby-tzinfo
2097 (name "ruby-tzinfo")
2102 (uri (rubygems-uri "tzinfo" version))
2105 "1c01p3kg6xvy1cgjnzdfq45fggbwish8krd0h864jvbpybyx7cgx"))))
2106 (build-system ruby-build-system)
2108 `(("ruby-thread-safe" ,ruby-thread-safe)))
2109 (synopsis "Time zone library for Ruby")
2110 (description "TZInfo is a Ruby library that provides daylight savings
2111 aware transformations between times in different time zones.")
2112 (home-page "http://tzinfo.github.io")
2113 (license license:expat)))
2115 (define-public ruby-tzinfo-data
2117 (name "ruby-tzinfo-data")
2118 (version "1.2016.7")
2122 ;; Download from GitHub because the rubygems version does not contain
2123 ;; Rakefile or tests.
2125 "https://github.com/tzinfo/tzinfo-data/archive/v"
2128 (file-name (string-append name "-" version ".tar.gz"))
2131 "0vh75hkfmqk4hdjv6nm7acw64izwpnv7slkmh2kj7qlfz133yh9l"))
2132 ;; Remove the known test failure.
2133 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2134 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2135 (patches (search-patches
2136 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2137 (build-system ruby-build-system)
2139 `(("ruby-tzinfo" ,ruby-tzinfo)))
2140 (synopsis "Data from the IANA Time Zone database")
2142 "This library provides @code{TZInfo::Data}, which contains data from the
2143 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2144 (home-page "http://tzinfo.github.io")
2145 (license license:expat)))
2147 (define-public ruby-rb-inotify
2149 (name "ruby-rb-inotify")
2154 (uri (rubygems-uri "rb-inotify" version))
2157 "0kddx2ia0qylw3r52nhg83irkaclvrncgy2m1ywpbhlhsz1rymb9"))))
2158 (build-system ruby-build-system)
2160 '(#:tests? #f ; there are no tests
2162 (modify-phases %standard-phases
2163 ;; Building the gemspec with rake is not working here since it is
2164 ;; generated with Jeweler. It is also unnecessary because the
2165 ;; existing gemspec does not use any development tools to generate a
2169 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2171 `(("ruby-ffi" ,ruby-ffi)))
2173 `(("ruby-yard" ,ruby-yard)))
2174 (synopsis "Ruby wrapper for Linux's inotify")
2175 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2176 kernel subsystem for monitoring changes to files and directories.")
2177 (home-page "https://github.com/nex3/rb-inotify")
2178 (license license:expat)))
2180 (define-public ruby-pry-editline
2182 (name "ruby-pry-editline")
2186 (uri (rubygems-uri "pry-editline" version))
2189 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2190 (build-system ruby-build-system)
2191 (arguments `(#:tests? #f)) ; no tests included
2193 `(("bundler" ,bundler)))
2194 (synopsis "Open the current REPL line in an editor")
2196 "This gem provides a plugin for the Ruby REPL to enable opening the
2197 current line in an external editor.")
2198 (home-page "https://github.com/tpope/pry-editline")
2199 (license license:expat)))
2201 (define-public ruby-sdoc
2207 (uri (rubygems-uri "sdoc" version))
2210 "16xyfair1j4irfkd6sxvmdcak957z71lwkvhglrznfpkalfnqyqp"))))
2211 (build-system ruby-build-system)
2214 (modify-phases %standard-phases
2215 (add-after 'build 'relax-minitest-requirement
2217 (substitute* "sdoc.gemspec"
2218 (("<minitest>, \\[\"~> 4\\.0\"\\]")
2219 "<minitest>, [\">= 4.0\"]"))
2222 `(("ruby-json" ,ruby-json)))
2224 `(("bundler" ,bundler)
2225 ("ruby-minitest" ,ruby-minitest)))
2226 (synopsis "Generate searchable RDoc documentation")
2228 "SDoc is an RDoc documentation generator to build searchable HTML
2229 documentation for Ruby code.")
2230 (home-page "http://github.com/voloko/sdoc")
2231 (license license:expat)))
2233 (define-public ruby-tins
2239 (uri (rubygems-uri "tins" version))
2242 "1060h8dgnjl9az0sv1b74yrni8d4mh3x858wq6yfbfdf5dxrfl0a"))))
2243 (build-system ruby-build-system)
2244 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2245 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2248 `(#:tests? #f ; there are no tests
2250 (modify-phases %standard-phases
2253 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2255 (substitute* "tins.gemspec"
2256 (("\"lib/spruz\", ") ""))
2257 (zero? (system* "gem" "build" "tins.gemspec")))))))
2258 (synopsis "Assorted tools for Ruby")
2259 (description "Tins is a Ruby library providing assorted tools.")
2260 (home-page "https://github.com/flori/tins")
2261 (license license:expat)))
2263 (define-public ruby-gem-hadar
2265 (name "ruby-gem-hadar")
2269 (uri (rubygems-uri "gem_hadar" version))
2272 "1j8qri4m9wf8nbfv0kakrgsv2x8vg10914xgm6f69nw8zi3i39ws"))))
2273 (build-system ruby-build-system)
2274 ;; This gem needs itself at development time. We disable rebuilding of the
2275 ;; gemspec to avoid this loop.
2277 `(#:tests? #f ; there are no tests
2279 (modify-phases %standard-phases
2282 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2285 ("ruby-tins" ,ruby-tins)
2286 ("ruby-sdoc" ,ruby-sdoc)))
2288 `(("bundler" ,bundler)))
2289 (synopsis "Library for the development of Ruby gems")
2291 "This library contains some useful functionality to support the
2292 development of Ruby gems.")
2293 (home-page "https://github.com/flori/gem_hadar")
2294 (license license:expat)))
2296 (define-public ruby-minitest-tu-shim
2298 (name "ruby-minitest-tu-shim")
2302 (uri (rubygems-uri "minitest_tu_shim" version))
2305 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2306 (build-system ruby-build-system)
2309 (modify-phases %standard-phases
2310 (add-after 'unpack 'fix-test-include-path
2311 (lambda* (#:key inputs #:allow-other-keys)
2312 (let* ((minitest (assoc-ref inputs "ruby-minitest-4"))
2313 (minitest-home (gem-home minitest
2314 ,(package-version ruby))))
2315 (substitute* "Rakefile"
2316 (("Hoe\\.add_include_dirs .*")
2317 (string-append "Hoe.add_include_dirs \""
2320 ,(package-version ruby-minitest-4)
2323 (add-before 'check 'fix-test-assumptions
2325 ;; The test output includes the file name, so a couple of tests
2326 ;; fail. Changing the regular expressions slightly fixes this
2328 (substitute* "test/test_mini_test.rb"
2329 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2330 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2331 (("gsub\\(/.*, 'FILE:LINE'\\)")
2332 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2335 `(("ruby-minitest-4" ,ruby-minitest-4)))
2337 `(("ruby-hoe" ,ruby-hoe)))
2338 (synopsis "Adapter library between minitest and test/unit")
2340 "This library bridges the gap between the small and fast minitest and
2341 Ruby's large and slower test/unit.")
2342 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2343 (license license:expat)))
2345 (define-public ruby-term-ansicolor
2347 (name "ruby-term-ansicolor")
2351 (uri (rubygems-uri "term-ansicolor" version))
2354 "0ydbbyjmk5p7fsi55ffnkq79jnfqx65c3nj8d9rpgl6sw85ahyys"))))
2355 (build-system ruby-build-system)
2356 ;; Rebuilding the gemspec seems to require git, even though this is not a
2357 ;; git repository, so we just build the gem from the existing gemspec.
2360 (modify-phases %standard-phases
2363 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2365 `(("ruby-tins" ,ruby-tins)))
2367 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2368 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2369 (synopsis "Ruby library to control the attributes of terminal output")
2371 "This Ruby library uses ANSI escape sequences to control the attributes
2372 of terminal output.")
2373 (home-page "http://flori.github.io/term-ansicolor/")
2374 ;; There is no mention of the "or later" clause.
2375 (license license:gpl2)))
2377 (define-public ruby-pstree
2379 (name "ruby-pstree")
2383 (uri (rubygems-uri "pstree" version))
2386 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2387 (build-system ruby-build-system)
2389 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2390 ("bundler" ,bundler)))
2391 (synopsis "Create a process tree data structure")
2393 "This library uses the output of the @code{ps} command to create a
2394 process tree data structure for the current host.")
2395 (home-page "http://flori.github.com/pstree")
2396 ;; There is no mention of the "or later" clause.
2397 (license license:gpl2)))
2399 (define-public ruby-utils
2405 (uri (rubygems-uri "utils" version))
2408 "0vycgscxf3s1xn4yyfsq54zlh082581ga8azybmqgc4pij6iz2cd"))))
2409 (build-system ruby-build-system)
2411 `(("ruby-tins" ,ruby-tins)
2412 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2413 ("ruby-pstree" ,ruby-pstree)
2414 ("ruby-pry-editline" ,ruby-pry-editline)))
2416 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2417 ("bundler" ,bundler)))
2418 (synopsis "Command line tools for working with Ruby")
2420 "This package provides assorted command line tools that may be useful
2421 when working with Ruby code.")
2422 (home-page "https://github.com/flori/utils")
2423 ;; There is no mention of the "or later" clause.
2424 (license license:gpl2)))
2426 (define-public ruby-json
2433 (uri (rubygems-uri "json" version))
2436 "1nsby6ry8l9xg3yw4adlhk2pnc7i0h0rznvcss4vk3v74qg0k8lc"))))
2437 (build-system ruby-build-system)
2438 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2439 (synopsis "JSON library for Ruby")
2440 (description "This Ruby library provides a JSON implementation written as
2441 a native C extension.")
2442 (home-page "http://json-jruby.rubyforge.org/")
2443 (license (list license:ruby license:gpl2)))) ; GPL2 only
2445 (define-public ruby-json-pure
2447 (name "ruby-json-pure")
2451 (uri (rubygems-uri "json_pure" version))
2454 "025aykr360x6dr1jmg8pmsrx7gr30pws4p1q686vnb48zyw1sc94"))))
2455 (build-system ruby-build-system)
2457 `(#:modules ((srfi srfi-1)
2460 (guix build ruby-build-system)
2463 (modify-phases %standard-phases
2464 (add-after 'unpack 'replace-git-ls-files
2466 ;; The existing gemspec file already contains a nice list of
2467 ;; files that belong to the gem. We extract the list from the
2468 ;; gemspec file and then replace the file list in the Rakefile to
2469 ;; get rid of the call to "git ls-files".
2470 (let* ((contents (call-with-input-file "json.gemspec" get-string-all))
2471 ;; Guile is unhappy about the #\nul characters in comments.
2472 (filtered (string-filter (lambda (char)
2473 (not (equal? #\nul char)))
2475 (files (match:substring
2476 (string-match " s\\.files = ([^]]+\\])" filtered) 1)))
2477 (substitute* "Rakefile"
2478 (("FileList\\[`git ls-files`\\.split\\(/\\\\n/\\)\\]")
2479 (string-append "FileList" files))))
2480 (substitute* "Gemfile"
2481 ((".*json-java.*") "\n"))
2484 `(("ruby-permutation" ,ruby-permutation)
2485 ("ruby-utils" ,ruby-utils)
2487 ("bundler" ,bundler)))
2488 (synopsis "JSON implementation in pure Ruby")
2490 "This package provides a JSON implementation written in pure Ruby.")
2491 (home-page "http://flori.github.com/json")
2492 (license license:ruby)))
2494 ;; Even though this package only provides bindings for a Mac OSX API it is
2495 ;; required by "ruby-listen" at runtime.
2496 (define-public ruby-rb-fsevent
2498 (name "ruby-rb-fsevent")
2502 (uri (rubygems-uri "rb-fsevent" version))
2505 "1hq57by28iv0ijz8pk9ynih0xdg7vnl1010xjcijfklrcv89a1j2"))))
2506 (build-system ruby-build-system)
2507 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
2508 ;; "listen", which needs "rb-fsevent" at runtime.
2509 (arguments `(#:tests? #f))
2510 (synopsis "FSEvents API with signals catching")
2512 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
2513 (home-page "https://rubygems.org/gems/rb-fsevent")
2514 (license license:expat)))
2516 (define-public ruby-listen
2518 (name "ruby-listen")
2523 (uri (rubygems-uri "listen" version))
2526 "10lhshjklxlrkw7999j0xl6sdxd4x32kiy8rp88jwr68kis5vq2b"))))
2527 (build-system ruby-build-system)
2528 (arguments '(#:tests? #f)) ; no tests
2530 `(("ruby-rb-inotify" ,ruby-rb-inotify)
2531 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
2532 (synopsis "Listen to file modifications")
2533 (description "The Listen gem listens to file modifications and notifies
2534 you about the changes.")
2535 (home-page "https://github.com/guard/listen")
2536 (license license:expat)))
2538 (define-public ruby-activesupport
2540 (name "ruby-activesupport")
2545 (uri (rubygems-uri "activesupport" version))
2548 "0k7zhnz0aw1ym8phs10r85f91ja45vsd058fm9v0h2k0igw12cpf"))))
2549 (build-system ruby-build-system)
2552 (modify-phases %standard-phases
2555 ;; There is no tests, instead attempt to load the library.
2556 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
2558 `(("ruby-concurrent" ,ruby-concurrent)
2559 ("ruby-i18n" ,ruby-i18n)
2560 ("ruby-minitest" ,ruby-minitest)
2561 ("ruby-tzinfo" ,ruby-tzinfo)
2562 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
2563 (synopsis "Ruby on Rails utility library")
2564 (description "ActiveSupport is a toolkit of support libraries and Ruby
2565 core extensions extracted from the Rails framework. It includes support for
2566 multibyte strings, internationalization, time zones, and testing.")
2567 (home-page "http://www.rubyonrails.org")
2568 (license license:expat)))
2570 (define-public ruby-crass
2576 (uri (rubygems-uri "crass" version))
2579 "1c377r8g7m58y22803iyjgqkkvnnii0pymskda1pardxrzaighj9"))))
2580 (build-system ruby-build-system)
2582 `(("bundler" ,bundler)
2583 ("ruby-minitest" ,ruby-minitest)))
2584 (synopsis "Pure Ruby CSS parser")
2586 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
2587 (home-page "https://github.com/rgrove/crass/")
2588 (license license:expat)))
2590 (define-public ruby-nokogumbo
2591 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
2593 (name "ruby-nokogumbo")
2594 (version (string-append "1.4.7-1." (string-take commit 8)))
2596 ;; We use the git reference, because there's no Rakefile in the
2597 ;; published gem and the tarball on Github is outdated.
2600 (url "https://github.com/rubys/nokogumbo.git")
2601 (commit "d56f954d20a")))
2602 (file-name (string-append name "-" version "-checkout"))
2605 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
2606 (build-system ruby-build-system)
2608 `(#:modules ((guix build ruby-build-system)
2612 (modify-phases %standard-phases
2613 (add-after 'unpack 'build-gemspec
2615 (substitute* "Rakefile"
2616 ;; Build Makefile even without a copy of gumbo-parser sources
2617 (("'gumbo-parser/src',") "")
2618 ;; We don't bundle gumbo-parser sources
2619 (("'gumbo-parser/src/\\*',") "")
2620 (("'gumbo-parser/visualc/include/\\*',") "")
2621 ;; The definition of SOURCES will be cut in gemspec, and
2622 ;; "FileList" will be undefined.
2623 (("SOURCES \\+ FileList\\[")
2624 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
2626 ;; Copy the Rakefile and cut out the gemspec.
2627 (copy-file "Rakefile" ".gemspec")
2628 (with-atomic-file-replacement ".gemspec"
2630 (let loop ((line (read-line in 'concat))
2632 (if (eof-object? line)
2634 (let ((skip-next? (if skipping?
2635 (not (string-prefix? "SPEC =" line))
2636 (string-prefix? "end" line))))
2637 (when (or (not skipping?)
2638 (and skipping? (not skip-next?)))
2639 (format #t "~a" line)
2641 (loop (read-line in 'concat) skip-next?))))))
2644 `(("gumbo-parser" ,gumbo-parser)))
2646 `(("ruby-nokogiri" ,ruby-nokogiri)))
2647 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
2649 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
2650 access the result as a Nokogiri parsed document.")
2651 (home-page "https://github.com/rubys/nokogumbo/")
2652 (license license:asl2.0))))
2654 (define-public ruby-sanitize
2656 (name "ruby-sanitize")
2660 ;; The gem does not include the Rakefile, so we download the
2661 ;; release tarball from Github.
2662 (uri (string-append "https://github.com/rgrove/"
2663 "sanitize/archive/v" version ".tar.gz"))
2664 (file-name (string-append name "-" version ".tar.gz"))
2667 "055xnj38l60gxnnng76kpy2l2jbrp0byjdyq17jw79w7l4b40znr"))))
2668 (build-system ruby-build-system)
2670 `(("ruby-crass" ,ruby-crass)
2671 ("ruby-nokogiri" ,ruby-nokogiri)
2672 ("ruby-nokogumbo" ,ruby-nokogumbo)))
2674 `(("bundler" ,bundler)
2675 ("ruby-minitest" ,ruby-minitest)
2676 ("ruby-redcarpet" ,ruby-redcarpet)
2677 ("ruby-yard" ,ruby-yard)))
2678 (synopsis "Whitelist-based HTML and CSS sanitizer")
2680 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
2681 acceptable elements, attributes, and CSS properties, Sanitize will remove all
2682 unacceptable HTML and/or CSS from a string.")
2683 (home-page "https://github.com/rgrove/sanitize/")
2684 (license license:expat)))
2686 (define-public ruby-ox
2693 (uri (rubygems-uri "ox" version))
2696 "00i11xd4ayh7349rhgskajfxn0qzkb74ab01217zix9qcapssxax"))))
2697 (build-system ruby-build-system)
2699 '(#:tests? #f)) ; no tests
2700 (synopsis "Optimized XML library for Ruby")
2702 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
2703 written as a native C extension. It was designed to be an alternative to
2704 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
2705 alternative to Marshal for Object serialization. ")
2706 (home-page "http://www.ohler.com/ox")
2707 (license license:expat)))
2709 (define-public ruby-redcloth
2711 (name "ruby-redcloth")
2715 (uri (rubygems-uri "RedCloth" version))
2718 "06pahxyrckhgb7alsxwhhlx1ib2xsx33793finj01jk8i054bkxl"))))
2719 (build-system ruby-build-system)
2721 `(#:tests? #f ; no tests
2723 (modify-phases %standard-phases
2724 ;; Redcloth has complicated rake tasks to build various versions for
2725 ;; multiple targets using RVM. We don't want this so we just use the
2726 ;; existing gemspec.
2729 (zero? (system* "gem" "build" "redcloth.gemspec"))))
2730 ;; Make sure that the "redcloth" executable finds required Ruby
2732 (add-after 'install 'wrap-bin-redcloth
2733 (lambda* (#:key outputs #:allow-other-keys)
2734 (wrap-program (string-append (assoc-ref outputs "out")
2736 `("GEM_HOME" ":" prefix (,(getenv "GEM_HOME"))))
2739 `(("bundler" ,bundler)
2740 ("ruby-diff-lcs" ,ruby-diff-lcs)
2741 ("ruby-rspec-2" ,ruby-rspec-2)))
2742 (synopsis "Textile markup language parser for Ruby")
2744 "RedCloth is a Ruby parser for the Textile markup language.")
2745 (home-page "http://redcloth.org")
2746 (license license:expat)))
2748 (define-public ruby-pg
2755 (uri (rubygems-uri "pg" version))
2758 "1axxbf6ij1iqi3i1r3asvjc80b0py5bz0m2wy5kdi5xkrpr82kpf"))))
2759 (build-system ruby-build-system)
2761 '(#:test-target "spec"))
2763 `(("ruby-rake-compiler" ,ruby-rake-compiler)
2764 ("ruby-hoe" ,ruby-hoe)
2765 ("ruby-rspec" ,ruby-rspec)))
2767 `(("postgresql" ,postgresql)))
2768 (synopsis "Ruby interface to PostgreSQL")
2769 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
2770 with PostgreSQL 8.4 and later.")
2771 (home-page "https://bitbucket.org/ged/ruby-pg")
2772 (license license:ruby)))
2774 (define-public ruby-byebug
2776 (name "ruby-byebug")
2781 (uri (rubygems-uri "byebug" version))
2784 "0537h9qbhr6csahmzyn4lk1g5b2lcligbzd21gfy93nx9lbfdnzc"))))
2785 (build-system ruby-build-system)
2787 '(#:tests? #f)) ; no tests
2788 (synopsis "Debugger for Ruby 2")
2789 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
2790 TracePoint C API for execution control and the Debug Inspector C API for call
2791 stack navigation. The core component provides support that front-ends can
2792 build on. It provides breakpoint handling and bindings for stack frames among
2793 other things and it comes with a command line interface.")
2794 (home-page "http://github.com/deivid-rodriguez/byebug")
2795 (license license:bsd-2)))
2797 (define-public ruby-netrc
2803 (uri (rubygems-uri "netrc" version))
2806 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
2807 (build-system ruby-build-system)
2810 (modify-phases %standard-phases
2812 ;; There is no Rakefile and minitest can only run one file at once,
2813 ;; so we have to iterate over all test files.
2815 (and (map (lambda (file)
2816 (zero? (system* "ruby" "-Itest" file)))
2817 (find-files "./test" "test_.*\\.rb"))))))))
2819 `(("ruby-minitest" ,ruby-minitest)))
2820 (synopsis "Library to read and update netrc files")
2822 "This library can read and update netrc files, preserving formatting
2823 including comments and whitespace.")
2824 (home-page "https://github.com/geemus/netrc")
2825 (license license:expat)))
2827 (define-public ruby-unf-ext
2829 (name "ruby-unf-ext")
2833 (uri (rubygems-uri "unf_ext" version))
2836 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
2837 (build-system ruby-build-system)
2840 (modify-phases %standard-phases
2841 (add-after 'build 'build-ext
2842 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
2844 `(("bundler" ,bundler)
2845 ("ruby-rake-compiler" ,ruby-rake-compiler)
2846 ("ruby-test-unit" ,ruby-test-unit)))
2847 (synopsis "Unicode normalization form support library")
2849 "This package provides unicode normalization form support for Ruby.")
2850 (home-page "https://github.com/knu/ruby-unf_ext")
2851 (license license:expat)))
2853 (define-public ruby-tdiff
2859 (uri (rubygems-uri "tdiff" version))
2862 "0k41jbvn8qq4mgrixnhlk742b971d136i8wpbcv2cczvi22xpc86"))))
2863 (build-system ruby-build-system)
2865 `(("ruby-rspec-2" ,ruby-rspec-2)
2866 ("ruby-yard" ,ruby-yard)
2867 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2868 (synopsis "Calculate the differences between two tree-like structures")
2870 "This library provides functions to calculate the differences between two
2871 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
2872 (home-page "https://github.com/postmodern/tdiff")
2873 (license license:expat)))
2875 (define-public ruby-nokogiri-diff
2877 (name "ruby-nokogiri-diff")
2881 (uri (rubygems-uri "nokogiri-diff" version))
2884 "0njr1s42war0bj1axb2psjvk49l74a8wzr799wckqqdcb6n51lc1"))))
2885 (build-system ruby-build-system)
2887 `(("ruby-tdiff" ,ruby-tdiff)
2888 ("ruby-nokogiri" ,ruby-nokogiri)))
2890 `(("ruby-rspec-2" ,ruby-rspec-2)
2891 ("ruby-yard" ,ruby-yard)
2892 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
2893 (synopsis "Calculate the differences between two XML/HTML documents")
2895 "@code{Nokogiri::Diff} adds the ability to calculate the
2896 differences (added or removed nodes) between two XML/HTML documents.")
2897 (home-page "https://github.com/postmodern/nokogiri-diff")
2898 (license license:expat)))
2900 (define-public ruby-rack
2907 ;; Download from GitHub so that the patch can be applied.
2909 "https://github.com/rack/rack/archive/"
2912 (file-name (string-append name "-" version ".tar.gz"))
2915 "00k62v8lpyjzghkn0h0awrnqj1jmlcs2wp57py27m43y65v89cp3"))
2916 ;; Ignore test which fails inside the build environment but works
2918 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
2919 (build-system ruby-build-system)
2922 (modify-phases %standard-phases
2923 (add-before 'check 'fix-tests
2925 ;; A few of the tests use the length of a file on disk for
2926 ;; Content-Length and Content-Range headers. However, this file
2927 ;; has a shebang in it which an earlier phase patches, growing
2928 ;; the file size from 193 to 239 bytes when the store prefix is
2930 (let ((size-diff (- (string-length (which "ruby"))
2931 (string-length "/usr/bin/env ruby"))))
2932 (substitute* '("test/spec_file.rb")
2934 (number->string (+ 193 size-diff)))
2935 (("bytes(.)22-33" all delimiter)
2936 (string-append "bytes"
2938 (number->string (+ 22 size-diff))
2940 (number->string (+ 33 size-diff))))))
2943 `(("ruby-minitest" ,ruby-minitest)
2944 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
2947 `(("ruby-concurrent" ,ruby-concurrent)))
2948 (synopsis "Unified web application interface for Ruby")
2949 (description "Rack provides a minimal, modular and adaptable interface for
2950 developing web applications in Ruby. By wrapping HTTP requests and responses,
2951 it unifies the API for web servers, web frameworks, and software in between
2952 into a single method call.")
2953 (home-page "http://rack.github.io/")
2954 (license license:expat)))
2956 (define-public ruby-docile
2958 (name "ruby-docile")
2963 (uri (rubygems-uri "docile" version))
2966 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
2967 (build-system ruby-build-system)
2969 '(#:tests? #f)) ; needs github-markup, among others
2970 (synopsis "Ruby EDSL helper library")
2971 (description "Docile is a Ruby library that provides an interface for
2972 creating embedded domain specific languages (EDSLs) that manipulate existing
2974 (home-page "https://ms-ati.github.io/docile/")
2975 (license license:expat)))
2977 (define-public ruby-gherkin
2979 (name "ruby-gherkin")
2984 (uri (rubygems-uri "gherkin" version))
2987 "1ripjv97hg746xszx9isal8z8vrlb98asc2rdxl291b3hr6pj0pr"))))
2988 (build-system ruby-build-system)
2990 `(("bundler" ,bundler)))
2992 '(#:tests? #f)) ; needs simplecov, among others
2993 (synopsis "Gherkin parser for Ruby")
2994 (description "Gherkin is a parser and compiler for the Gherkin language.
2995 It is intended be used by all Cucumber implementations to parse '.feature'
2997 (home-page "https://github.com/cucumber/gherkin3")
2998 (license license:expat)))
3000 (define-public ruby-cucumber-core
3002 (name "ruby-cucumber-core")
3007 (uri (rubygems-uri "cucumber-core" version))
3010 "0qj2fsqvp94nggnikbnrfvnmzr1pl6ifmdsxj69kdw1kkab30jjr"))))
3011 (build-system ruby-build-system)
3013 `(("ruby-gherkin" ,ruby-gherkin)))
3015 `(("bundler" ,bundler)))
3017 '(#:tests? #f)) ; needs simplecov, among others
3018 (synopsis "Core library for the Cucumber BDD app")
3019 (description "Cucumber is a tool for running automated tests
3020 written in plain language. Because they're written in plain language,
3021 they can be read by anyone on your team. Because they can be read by
3022 anyone, you can use them to help improve communication, collaboration
3023 and trust on your team.")
3024 (home-page "https://cucumber.io/")
3025 (license license:expat)))
3027 (define-public ruby-bio-logger
3029 (name "ruby-bio-logger")
3034 (uri (rubygems-uri "bio-logger" version))
3037 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3038 (build-system ruby-build-system)
3040 `(#:tests? #f)) ; rake errors, missing shoulda
3042 `(("ruby-log4r" ,ruby-log4r)))
3043 (synopsis "Log4r wrapper for Ruby")
3044 (description "Bio-logger is a wrapper around Log4r adding extra logging
3045 features such as filtering and fine grained logging.")
3046 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3047 (license license:expat)))
3049 (define-public ruby-yard
3056 (uri (rubygems-uri "yard" version))
3059 "1dj6ibc0qqvmb5a5r5kk0vhr04mnrz9b26gnfrs5p8jgp620i89x"))))
3060 (build-system ruby-build-system)
3062 `(#:test-target "specs"
3064 (modify-phases %standard-phases
3065 (add-before 'check 'set-HOME-and-disable-failing-test
3067 ;; $HOME needs to be set to somewhere writeable for tests to run
3068 (setenv "HOME" "/tmp")
3069 ;; Disable tests which fails on Ruby 2.3. See
3070 ;; https://github.com/lsegal/yard/issues/927
3071 (substitute* "spec/parser/ruby/ruby_parser_spec.rb"
3072 (("comment.type.should == :comment") "")
3073 (("comment.docstring_hash_flag.should be_true") "")
3074 (("comment.docstring.strip.should == .*") ""))
3077 `(("ruby-rspec" ,ruby-rspec-2)
3078 ("ruby-rack" ,ruby-rack)))
3079 (synopsis "Documentation generation tool for Ruby")
3081 "YARD is a documentation generation tool for the Ruby programming
3082 language. It enables the user to generate consistent, usable documentation
3083 that can be exported to a number of formats very easily, and also supports
3084 extending for custom Ruby constructs such as custom class level definitions.")
3085 (home-page "http://yardoc.org")
3086 (license license:expat)))
3088 (define-public ruby-clap
3094 (uri (rubygems-uri "clap" version))
3097 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3098 (build-system ruby-build-system)
3099 ;; Clap needs cutest for running tests, but cutest needs clap.
3100 (arguments `(#:tests? #f))
3101 (synopsis "Command line argument parsing for simple applications")
3103 "Clap provides command line argument parsing features. It covers the
3104 simple case of executing code based on the flags or parameters passed.")
3105 (home-page "https://github.com/djanowski/cutest")
3106 (license license:expat)))
3108 (define-public ruby-cutest
3110 (name "ruby-cutest")
3114 (uri (rubygems-uri "cutest" version))
3117 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3118 (build-system ruby-build-system)
3120 `(("ruby-clap" ,ruby-clap)))
3121 (synopsis "Run tests in separate processes")
3123 "Cutest runs tests in separate processes to avoid shared state.")
3124 (home-page "https://github.com/djanowski/cutest")
3125 (license license:expat)))
3127 (define-public ruby-pygmentize
3129 (name "ruby-pygmentize")
3133 (uri (rubygems-uri "pygmentize" version))
3136 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3137 (build-system ruby-build-system)
3140 (modify-phases %standard-phases
3141 (add-after 'unpack 'fix-pygmentize-path
3143 (substitute* "lib/pygmentize.rb"
3144 (("\"/usr/bin/env python.*")
3145 (string-append "\"" (which "pygmentize") "\"\n")))
3147 (add-after 'build 'do-not-use-vendor-directory
3149 ;; Remove bundled pygments sources
3150 ;; FIXME: ruby-build-system does not support snippets.
3151 (delete-file-recursively "vendor")
3152 (substitute* "pygmentize.gemspec"
3153 (("\"vendor/\\*\\*/\\*\",") ""))
3156 `(("pygments" ,python-pygments)))
3158 `(("ruby-cutest" ,ruby-cutest)
3159 ("ruby-nokogiri" ,ruby-nokogiri)))
3160 (synopsis "Thin Ruby wrapper around pygmentize")
3162 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3164 (home-page "https://github.com/djanowski/pygmentize")
3165 (license license:expat)))
3167 (define-public ruby-eventmachine
3169 (name "ruby-eventmachine")
3174 (uri (rubygems-uri "eventmachine" version))
3177 "1frvpk3p73xc64qkn0ymll3flvn4xcycq5yx8a43zd3gyzc1ifjp"))))
3178 (build-system ruby-build-system)
3180 '(#:tests? #f)) ; test suite tries to connect to google.com
3182 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3183 (synopsis "Single-threaded network event framework for Ruby")
3185 "EventMachine implements a single-threaded engine for arbitrary network
3186 communications. EventMachine wraps all interactions with sockets, allowing
3187 programs to concentrate on the implementation of network protocols. It can be
3188 used to create both network servers and clients.")
3189 (home-page "http://rubyeventmachine.com")
3190 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
3192 (define-public ruby-turn
3199 (uri (rubygems-uri "turn" version))
3202 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3203 (build-system ruby-build-system)
3206 (modify-phases %standard-phases
3207 ;; Tests fail because turn changes its environment so can no longer
3208 ;; find test/unit. Instead simply test if the executable runs
3212 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3214 `(("ruby-ansi" ,ruby-ansi)
3215 ("ruby-minitest" ,ruby-minitest-4)))
3216 (synopsis "Alternate set of alternative runners for MiniTest")
3218 "TURN provides a set of alternative runners for MiniTest which are both
3219 colorful and informative. TURN displays each test on a separate line with
3220 failures being displayed immediately instead of at the end of the tests. Note
3221 that TURN is no longer being maintained.")
3222 (home-page "http://rubygems.org/gems/turn")
3223 (license license:expat)))
3225 (define-public ruby-mime-types-data
3227 (name "ruby-mime-types-data")
3228 (version "3.2016.0521")
3232 (uri (rubygems-uri "mime-types-data" version))
3235 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
3236 (build-system ruby-build-system)
3238 `(("ruby-hoe" ,ruby-hoe)))
3239 (synopsis "Registry for information about MIME media type definitions")
3241 "@code{mime-types-data} provides a registry for information about
3242 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3243 be used with the Ruby mime-types library or other software to determine
3244 defined filename extensions for MIME types, or to use filename extensions to
3245 look up the likely MIME type definitions.")
3246 (home-page "https://github.com/mime-types/mime-types-data/")
3247 (license license:expat)))
3249 (define-public ruby-mime-types
3251 (name "ruby-mime-types")
3256 (uri (rubygems-uri "mime-types" version))
3259 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
3260 (build-system ruby-build-system)
3262 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3264 `(("ruby-hoe" ,ruby-hoe)
3265 ("ruby-fivemat" ,ruby-fivemat)
3266 ("ruby-minitest-focus" ,ruby-minitest-focus)
3267 ("ruby-minitest-rg" ,ruby-minitest-rg)
3268 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3269 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
3270 (synopsis "Library and registry for MIME content type definitions")
3271 (description "The mime-types library provides a library and registry for
3272 information about Multipurpose Internet Mail Extensions (MIME) content type
3273 definitions. It can be used to determine defined filename extensions for MIME
3274 types, or to use filename extensions to look up the likely MIME type
3276 (home-page "https://github.com/mime-types/ruby-mime-types")
3277 (license license:expat)))
3279 (define-public ruby-fivemat
3281 (name "ruby-fivemat")
3286 (uri (rubygems-uri "fivemat" version))
3289 "1gvw6g4yc96l2pcyvigahyfsjxpdjx21iiwzvf965zippchdh6gk"))))
3290 (build-system ruby-build-system)
3292 `(#:tests? #f)) ; no tests
3293 (synopsis "Each test file given its own line of dots")
3295 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3296 its own line of dots during testing. It aims to provide test output that is
3297 neither too verbose nor too minimal.")
3298 (home-page "https://github.com/tpope/fivemat")
3299 (license license:expat)))
3301 (define-public ruby-sqlite3
3303 (name "ruby-sqlite3")
3308 (uri (rubygems-uri "sqlite3" version))
3311 "19r06wglnm6479ffj9dl0fa4p5j2wi6dj7k6k3d0rbx7036cv3ny"))))
3312 (build-system ruby-build-system)
3315 (modify-phases %standard-phases
3316 (add-before 'check 'add-gemtest-file
3317 ;; This file exists in the repository but is not distributed.
3318 (lambda _ (zero? (system* "touch" ".gemtest")))))))
3320 `(("sqlite" ,sqlite)))
3322 `(("ruby-hoe" ,ruby-hoe)
3323 ("ruby-rake-compiler" ,ruby-rake-compiler)
3324 ("ruby-mini-portile" ,ruby-mini-portile)))
3325 (synopsis "Interface with SQLite3 databases")
3327 "This module allows Ruby programs to interface with the SQLite3 database
3330 "https://github.com/sparklemotion/sqlite3-ruby")
3331 (license license:bsd-3)))
3333 (define-public ruby-shoulda-context
3335 (name "ruby-shoulda-context")
3340 (uri (rubygems-uri "shoulda-context" version))
3343 "06wv2ika5zrbxn0m3qxwk0zkbspxids3zmlq3xxays5qmvl1qb55"))))
3344 (build-system ruby-build-system)
3347 (modify-phases %standard-phases
3350 ;; Do not run tests to avoid circular dependence with rails.
3351 ;; Instead just import the library to test.
3352 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
3353 (synopsis "Test::Unit context framework extracted from Shoulda")
3355 "@code{shoulda-context} is the context framework extracted from Shoulda.
3356 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
3357 context, setup, and should blocks combine to produce natural test method
3359 (home-page "https://github.com/thoughtbot/shoulda-context")
3360 (license license:expat)))
3362 (define-public ruby-shoulda-matchers
3364 (name "ruby-shoulda-matchers")
3369 (uri (rubygems-uri "shoulda-matchers" version))
3372 "1cf6d2d9br82vylr9p362yk9cfrd14jz8v77n0yb0lbcxdbk7xzq"))))
3373 (build-system ruby-build-system)
3376 (modify-phases %standard-phases
3379 ;; Do not run tests to avoid circular dependence with rails. Instead
3380 ;; just import the library to test.
3381 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
3383 `(("ruby-activesupport" ,ruby-activesupport)))
3384 (synopsis "Collection of testing matchers extracted from Shoulda")
3386 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
3387 test common Rails functionality. These tests would otherwise be much longer,
3388 more complex, and error-prone.")
3389 (home-page "https://github.com/thoughtbot/shoulda-matchers")
3390 (license license:expat)))
3392 (define-public ruby-shoulda-matchers-2
3394 (inherit ruby-shoulda-matchers)
3398 (uri (rubygems-uri "shoulda-matchers" version))
3401 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
3403 (define-public ruby-shoulda
3405 (name "ruby-shoulda")
3410 (uri (rubygems-uri "shoulda" version))
3413 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
3414 (build-system ruby-build-system)
3417 (modify-phases %standard-phases
3419 ;; Don't run tests to avoid circular dependence with rails. Instead
3420 ;; just import the library to test.
3421 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
3423 `(("ruby-shoulda-context" ,ruby-shoulda-context)
3424 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
3425 (synopsis "Context framework and matchers for testing")
3427 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
3428 @code{shoulda-matchers} providing tools for writing tests.")
3429 (home-page "https://github.com/thoughtbot/shoulda")
3430 (license license:expat)))
3432 (define-public ruby-unf
3439 (uri (rubygems-uri "unf" version))
3442 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
3443 (build-system ruby-build-system)
3446 (modify-phases %standard-phases
3447 (add-before 'check 'add-dependency-to-bundler
3449 ;; test-unit is required but not provided by the bundler
3450 ;; environment. This is fixed in the upstream repository but fix
3451 ;; has not been released.
3452 (substitute* "Gemfile"
3453 (("^gemspec") "gem 'test-unit'\ngemspec"))
3456 `(("ruby-unf-ext" ,ruby-unf-ext)))
3458 `(("ruby-shoulda" ,ruby-shoulda)
3459 ("bundler" ,bundler)
3460 ("ruby-test-unit" ,ruby-test-unit)))
3461 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
3463 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
3464 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
3465 @code{java.text.Normalizer} on JRuby.")
3466 (home-page "https://github.com/knu/ruby-unf")
3467 (license license:bsd-2)))
3469 (define-public ruby-domain-name
3471 (name "ruby-domain-name")
3472 (version "0.5.20160826")
3476 (uri (rubygems-uri "domain_name" version))
3479 "0rg7gvp45xmb5qz8ydp7ivw05hhplh6k7mbawrpvkysl2c77w5xx"))))
3480 (build-system ruby-build-system)
3483 (modify-phases %standard-phases
3484 (add-before 'check 'fix-versions
3486 ;; Fix NameError that appears to already be fixed upstream.
3487 (substitute* "Rakefile"
3488 (("DomainName::VERSION")
3489 "Bundler::GemHelper.gemspec.version"))
3490 ;; Loosen unnecessarily strict test-unit version specification.
3491 (substitute* "domain_name.gemspec"
3492 (("<test-unit>, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
3495 `(("ruby-unf" ,ruby-unf)))
3497 `(("ruby-shoulda" ,ruby-shoulda)
3498 ("bundler" ,bundler)
3499 ("ruby-test-unit" ,ruby-test-unit)))
3500 (synopsis "Domain name manipulation library")
3502 "@code{domain_name} is a Domain name manipulation library. It parses a
3503 domain name ready for extracting the registered domain and TLD (Top Level
3504 Domain). It can also be used for cookie domain validation based on the Public
3506 (home-page "https://github.com/knu/ruby-domain_name")
3507 (license license:bsd-2)))
3509 (define-public ruby-http-cookie
3511 (name "ruby-http-cookie")
3516 (uri (rubygems-uri "http-cookie" version))
3519 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
3520 (build-system ruby-build-system)
3523 (modify-phases %standard-phases
3524 (add-before 'check 'add-dependency-to-bundler
3527 (substitute* "Rakefile"
3528 (("HTTP::Cookie::VERSION")
3529 "Bundler::GemHelper.gemspec.version"))
3532 `(("ruby-domain-name" ,ruby-domain-name)))
3534 `(("rubysimplecov" ,ruby-simplecov)
3535 ("bundler" ,bundler)
3536 ("ruby-sqlite3" ,ruby-sqlite3)
3537 ("ruby-test-unit" ,ruby-test-unit)))
3538 (synopsis "Handle HTTP Cookies based on RFC 6265")
3540 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
3541 RFC 6265. It has been designed with security, standards compliance and
3542 compatibility in mind, to behave just the same as today's major web browsers.
3543 It has built-in support for the legacy @code{cookies.txt} and
3544 @code{cookies.sqlite} formats of Mozilla Firefox.")
3545 (home-page "https://github.com/sparklemotion/http-cookie")
3546 (license license:expat)))
3548 (define-public ruby-ansi
3555 ;; Fetch from GitHub as the gem does not contain testing code.
3556 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
3558 (file-name (string-append name "-" version ".tar.gz"))
3561 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
3562 (build-system ruby-build-system)
3565 (modify-phases %standard-phases
3566 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
3567 ;; cycle ansi, qed, ansi. Instead simply test that the library can
3571 (zero? (system* "ruby" "-Ilib" "-r" "ansi")))))))
3572 (synopsis "ANSI escape code related libraries")
3574 "This package is a collection of ANSI escape code related libraries
3575 enabling ANSI colorization and stylization of console output. Included in the
3576 library are the @code{Code} module, which defines ANSI codes as constants and
3577 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
3578 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
3579 @code{Terminal} module which provides information about the current output
3581 (home-page "http://rubyworks.github.io/ansi")
3582 (license license:bsd-2)))
3584 (define-public ruby-systemu
3586 (name "ruby-systemu")
3591 (uri (rubygems-uri "systemu" version))
3594 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
3595 (build-system ruby-build-system)
3598 (modify-phases %standard-phases
3599 (add-before 'check 'set-version
3601 (setenv "VERSION" ,version)
3603 (synopsis "Capture of stdout/stderr and handling of child processes")
3605 "Systemu can be used on any platform to return status, stdout, and stderr
3606 of any command. Unlike other methods like @code{open3} and @code{popen4}
3607 there is no danger of full pipes or threading issues hanging your process or
3609 (home-page "https://github.com/ahoward/systemu")
3610 (license license:ruby)))
3612 (define-public ruby-bio-commandeer
3614 (name "ruby-bio-commandeer")
3619 (uri (rubygems-uri "bio-commandeer" version))
3622 "0lin6l99ldqqjc90l9ihcrv882c4xgbgqm16jqkdy6jf955jd9a8"))))
3623 (build-system ruby-build-system)
3626 (modify-phases %standard-phases
3628 ;; Run test without calling 'rake' so that jeweler is
3629 ;; not required as an input.
3631 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
3633 `(("ruby-bio-logger" ,ruby-bio-logger)
3634 ("ruby-systemu" ,ruby-systemu)))
3636 `(("bundler" ,bundler)
3637 ("ruby-rspec" ,ruby-rspec)))
3638 (synopsis "Simplified running of shell commands from within Ruby")
3640 "Bio-commandeer provides an opinionated method of running shell commands
3641 from within Ruby. The advantage of bio-commandeer over other methods of
3642 running external commands is that when something goes wrong, messages printed
3643 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
3644 detail to ease debugging.")
3645 (home-page "http://github.com/wwood/bioruby-commandeer")
3646 (license license:expat)))
3648 (define-public ruby-rubytest
3650 (name "ruby-rubytest")
3655 (uri (rubygems-uri "rubytest" version))
3658 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
3659 (build-system ruby-build-system)
3661 ;; Disable regular testing to break the cycle rubytest, qed, brass,
3662 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
3663 ;; simply test that the library can be require'd.
3665 (modify-phases %standard-phases
3668 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
3670 `(("ruby-ansi" ,ruby-ansi)))
3671 (synopsis "Universal test harness for Ruby")
3673 "Rubytest is a testing meta-framework for Ruby. It can handle any
3674 compliant test framework and can run tests from multiple frameworks in a
3676 (home-page "http://rubyworks.github.io/rubytest")
3677 (license license:bsd-2)))
3679 (define-public ruby-brass
3686 (uri (rubygems-uri "brass" version))
3689 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
3690 (build-system ruby-build-system)
3692 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
3693 ;; Instead simply test that the library can be require'd.
3695 (modify-phases %standard-phases
3698 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
3699 (synopsis "Basic foundational assertions framework")
3701 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
3702 foundational assertions framework for other assertion and test frameworks to
3704 (home-page "http://rubyworks.github.io/brass")
3705 (license license:bsd-2)))
3707 (define-public ruby-qed
3714 (uri (rubygems-uri "qed" version))
3717 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
3718 (build-system ruby-build-system)
3720 ;; Disable testing to break the cycle qed, ansi, qed, among others.
3721 ;; Instead simply test that the executable runs using --copyright.
3723 (modify-phases %standard-phases
3726 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
3728 `(("ruby-ansi" ,ruby-ansi)
3729 ("ruby-brass" ,ruby-brass)))
3730 (synopsis "Test framework utilizing literate programming techniques")
3732 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
3733 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
3734 Development} (BDD) utilizing Literate Programming techniques. QED sits
3735 somewhere between lower-level testing tools like @code{Test::Unit} and
3736 requirement specifications systems like Cucumber.")
3737 (home-page "http://rubyworks.github.io/qed")
3738 (license license:bsd-2)))
3740 (define-public ruby-ae
3747 ;; Fetch from github so tests are included.
3749 "https://github.com/rubyworks/ae/archive/"
3751 (file-name (string-append name "-" version ".tar.gz"))
3754 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
3755 (build-system ruby-build-system)
3758 (modify-phases %standard-phases
3760 (lambda _ (zero? (system* "qed")))))))
3762 `(("ruby-ansi" ,ruby-ansi)))
3764 `(("ruby-qed" ,ruby-qed)))
3765 (synopsis "Assertions library")
3767 "Assertive Expressive (AE) is an assertions library specifically designed
3768 for reuse by other test frameworks.")
3769 (home-page "http://rubyworks.github.io/ae")
3770 (license license:bsd-2)))
3772 (define-public ruby-lemon
3779 (uri (rubygems-uri "lemon" version))
3782 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
3783 (build-system ruby-build-system)
3786 (modify-phases %standard-phases
3787 (replace 'check (lambda _ (zero? (system* "qed")))))))
3789 `(("ruby-ae" ,ruby-ae)
3790 ("ruby-ansi" ,ruby-ansi)
3791 ("ruby-rubytest" ,ruby-rubytest)))
3793 `(("ruby-qed" ,ruby-qed)))
3794 (synopsis "Test framework correlating code structure and test unit")
3796 "Lemon is a unit testing framework that enforces highly formal
3797 case-to-class and unit-to-method test construction. This enforcement can help
3798 focus concern on individual units of behavior.")
3799 (home-page "http://rubyworks.github.io/lemon")
3800 (license license:bsd-2)))
3802 (define-public ruby-rubytest-cli
3804 (name "ruby-rubytest-cli")
3809 (uri (rubygems-uri "rubytest-cli" version))
3812 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
3813 (build-system ruby-build-system)
3815 `(#:tests? #f)) ; no tests
3817 `(("ruby-ansi" ,ruby-ansi)
3818 ("ruby-rubytest" ,ruby-rubytest)))
3819 (synopsis "Command-line interface for rubytest")
3821 "Rubytest CLI is a command-line interface for running tests for
3822 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
3823 (home-page "http://rubyworks.github.io/rubytest-cli")
3824 (license license:bsd-2)))
3826 (define-public ruby-hashery
3828 (name "ruby-hashery")
3833 (uri (rubygems-uri "hashery" version))
3836 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
3837 (build-system ruby-build-system)
3840 (modify-phases %standard-phases
3843 (and (zero? (system* "qed"))
3844 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
3846 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
3847 ("ruby-qed" ,ruby-qed)
3848 ("ruby-lemon" ,ruby-lemon)))
3849 (synopsis "Hash-like classes with extra features")
3851 "The Hashery is a tight collection of @code{Hash}-like classes.
3852 Included are the auto-sorting @code{Dictionary} class, the efficient
3853 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
3854 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
3855 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
3856 standard @code{Hash} making it possible to subclass and augment to fit any
3857 specific use case.")
3858 (home-page "http://rubyworks.github.io/hashery")
3859 (license license:bsd-2)))
3861 (define-public ruby-rc4
3868 (uri (rubygems-uri "ruby-rc4" version))
3871 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
3872 (build-system ruby-build-system)
3875 (modify-phases %standard-phases
3878 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
3880 `(("ruby-rspec" ,ruby-rspec-2)))
3881 (synopsis "Implementation of the RC4 algorithm")
3883 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
3884 (home-page "https://github.com/caiges/Ruby-RC4")
3885 (license license:expat)))
3887 (define-public ruby-afm
3894 (uri (rubygems-uri "afm" version))
3897 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
3898 (build-system ruby-build-system)
3900 `(("bundler" ,bundler)))
3901 (synopsis "Read Adobe Font Metrics (afm) files")
3903 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
3904 files and use the data therein.")
3905 (home-page "http://github.com/halfbyte/afm")
3906 (license license:expat)))
3908 (define-public ruby-ascii85
3910 (name "ruby-ascii85")
3915 (uri (rubygems-uri "Ascii85" version))
3918 "0j95sbxd18kc8rhcnvl1w37kflqpax1r12h1x47gh4xxn3mz4m7q"))))
3919 (build-system ruby-build-system)
3921 `(("bundler" ,bundler)))
3922 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
3924 "This library provides methods to encode and decode Ascii85
3925 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
3926 @dfn{Portable Document Format} (PDF) file formats.")
3927 (home-page "https://github.com/datawraith/ascii85gem")
3928 (license license:expat)))
3930 (define-public ruby-ttfunk
3932 (name "ruby-ttfunk")
3937 ;; fetch from github as the gem does not contain testing code
3939 "https://github.com/prawnpdf/ttfunk/archive/"
3941 (file-name (string-append name "-" version ".tar.gz"))
3944 "1izq84pnm9niyvkzp8k0vl232q9zj41hwmp9na9fzycfh1pbnsl6"))))
3945 (build-system ruby-build-system)
3947 `(#:test-target "spec"
3949 (modify-phases %standard-phases
3950 (add-before 'check 'remove-rubocop
3952 ;; remove rubocop as a dependency as not needed for testing
3953 (substitute* "ttfunk.gemspec"
3954 (("spec.add_development_dependency\\('rubocop'.*") ""))
3955 (substitute* "Rakefile"
3956 (("require 'rubocop/rake_task'") "")
3957 (("Rubocop::RakeTask.new") ""))
3960 `(("ruby-rspec" ,ruby-rspec)
3961 ("bundler" ,bundler)))
3962 (synopsis "Font metrics parser for the Prawn PDF generator")
3964 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
3965 part of the Prawn PDF generator.")
3966 (home-page "https://github.com/prawnpdf/ttfunk")
3967 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
3969 (license (list license:gpl2 license:gpl3 license:ruby))))
3971 (define-public ruby-puma
3978 ;; Fetch from GitHub because distributed gem does not contain tests.
3979 (uri (string-append "https://github.com/puma/puma/archive/v"
3981 (file-name (string-append name "-" version ".tar.gz"))
3984 "08aws79n9slcr50d9lwm011cp1pxvr1409c2jmyjxywvrc0a30v1"))
3985 ;; Ignore broken tests reported upstream.
3986 ;; https://github.com/puma/puma/issues/995
3987 ;; https://github.com/puma/puma/issues/1044
3988 (patches (search-patches "ruby-puma-ignore-broken-test.patch"))))
3989 (build-system ruby-build-system)
3992 (modify-phases %standard-phases
3993 (add-after 'unpack 'delete-integration-tests
3995 ;; One broken test in this file cannot be easily removed in
3996 ;; isolation, it probably causes race conditions. So we delete
3998 (delete-file "test/test_integration.rb")
4000 (add-before 'build 'fix-gemspec
4002 (substitute* "puma.gemspec"
4003 (("git ls-files") "find * |sort"))
4006 `(("ruby-hoe" ,ruby-hoe)
4007 ("ruby-rake-compiler" ,ruby-rake-compiler)
4008 ("ruby-hoe-git" ,ruby-hoe-git)
4009 ("ruby-rack" ,ruby-rack)))
4010 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4012 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4013 for Ruby/Rack applications. Puma is intended for use in both development and
4014 production environments. In order to get the best throughput, it is highly
4015 recommended that you use a Ruby implementation with real threads like Rubinius
4017 (home-page "http://puma.io")
4018 (license license:expat)))
4020 (define-public ruby-hoe-git
4022 (name "ruby-hoe-git")
4027 (uri (rubygems-uri "hoe-git" version))
4030 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4031 (build-system ruby-build-system)
4033 `(("ruby-hoe" ,ruby-hoe)
4035 (synopsis "Hoe plugins for tighter Git integration")
4037 "This package provides a set of Hoe plugins for tighter Git integration.
4038 It provides tasks to automate release tagging and pushing and changelog
4040 (home-page "http://github.com/jbarnette/hoe-git")
4041 (license license:expat)))
4043 (define-public ruby-sequel
4045 (name "ruby-sequel")
4050 (uri (rubygems-uri "sequel" version))
4053 "0r39dv3yprai0cy7hslfxswjr4fg783xwxskmbih8ry24f18lbk0"))))
4054 (build-system ruby-build-system)
4056 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4057 (synopsis "Database toolkit for Ruby")
4058 (description "Sequel provides thread safety, connection pooling and a
4059 concise DSL for constructing SQL queries and table schemas. It includes a
4060 comprehensive ORM layer for mapping records to Ruby objects and handling
4061 associated records.")
4062 (home-page "http://sequel.jeremyevans.net")
4063 (license license:expat)))
4065 (define-public ruby-timecop
4067 (name "ruby-timecop")
4072 (uri (rubygems-uri "timecop" version))
4075 "0vwbkwqyxhavzvr1820hqwz43ylnfcf6w4x6sag0nghi44sr9kmx"))))
4076 (build-system ruby-build-system)
4079 (modify-phases %standard-phases
4080 (add-before 'check 'set-check-rubylib
4082 ;; Set RUBYLIB so timecop tests finds its own lib.
4083 (setenv "RUBYLIB" "lib")
4086 `(("bundler" ,bundler)
4087 ("ruby-minitest-rg" ,ruby-minitest-rg)
4088 ("ruby-mocha" ,ruby-mocha)
4089 ("ruby-activesupport" ,ruby-activesupport)))
4090 (synopsis "Test mocks for time-dependent functions")
4092 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4093 making it easier to test time-dependent code. It provides a unified method to
4094 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4096 (home-page "https://github.com/travisjeffery/timecop")
4097 (license license:expat)))
4099 (define-public ruby-concurrent
4101 (name "ruby-concurrent")
4106 ;; Download from GitHub because the rubygems version does not contain
4109 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4112 (file-name (string-append name "-" version ".tar.gz"))
4115 "1x3g2admp14ykwfxidsicqbhlfsnxh9wyc806np4i15hws4if1d8"))
4116 ;; Exclude failing test reported at
4117 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4118 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"))))
4119 (build-system ruby-build-system)
4121 `(#:test-target "spec"
4123 (modify-phases %standard-phases
4124 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
4126 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4128 (delete-file "concurrent-ruby-edge.gemspec")
4129 (delete-file "concurrent-ruby-ext.gemspec")
4131 (add-before 'build 'replace-git-ls-files2
4133 (substitute* "support/file_map.rb"
4134 (("git ls-files") "find * |sort"))
4136 (add-before 'check 'rake-compile
4137 ;; Fix the test error described at
4138 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
4139 (lambda _ (zero? (system* "rake" "compile"))))
4140 (add-before 'check 'remove-timecop-dependency
4141 ;; Remove timecop-dependent tests as having timecop as a depedency
4142 ;; causes circular depedencies.
4144 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4145 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4148 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4149 ("ruby-rspec" ,ruby-rspec)))
4150 (synopsis "Concurrency tools for Ruby")
4152 "This library provides modern concurrency tools including agents,
4153 futures, promises, thread pools, actors, supervisors, and more. It is
4154 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4156 (home-page "http://www.concurrent-ruby.com")
4157 (license license:expat)))
4159 (define-public ruby-pkg-config
4161 (name "ruby-pkg-config")
4166 (uri (rubygems-uri "pkg-config" version))
4169 "0lljiqnm0b4z6iy87lzapwrdfa6ps63x2z5zbs038iig8dqx2g0z"))))
4170 (build-system ruby-build-system)
4172 ;; Tests require extra files not included in the gem.
4174 (synopsis "Detect libraries for compiling Ruby native extensions")
4176 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4177 libraries for compiling Ruby native extensions.")
4178 (home-page "https://github.com/ruby-gnome2/pkg-config")
4179 (license license:lgpl2.0+)))