1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nils Gillmann <ng0@n0.is>
9 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
14 ;;; This file is part of GNU Guix.
16 ;;; GNU Guix is free software; you can redistribute it and/or modify it
17 ;;; under the terms of the GNU General Public License as published by
18 ;;; the Free Software Foundation; either version 3 of the License, or (at
19 ;;; your option) any later version.
21 ;;; GNU Guix is distributed in the hope that it will be useful, but
22 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
23 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 ;;; GNU General Public License for more details.
26 ;;; You should have received a copy of the GNU General Public License
27 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
29 (define-module (gnu packages ruby)
30 #:use-module ((guix licenses) #:prefix license:)
31 #:use-module (gnu packages)
32 #:use-module (gnu packages base)
33 #:use-module (gnu packages compression)
34 #:use-module (gnu packages databases)
35 #:use-module (gnu packages readline)
36 #:use-module (gnu packages autotools)
37 #:use-module (gnu packages java)
38 #:use-module (gnu packages libffi)
39 #:use-module (gnu packages maths)
40 #:use-module (gnu packages ncurses)
41 #:use-module (gnu packages networking)
42 #:use-module (gnu packages python)
43 #:use-module (gnu packages ragel)
44 #:use-module (gnu packages tls)
45 #:use-module (gnu packages version-control)
46 #:use-module (guix packages)
47 #:use-module (guix download)
48 #:use-module (guix git-download)
49 #:use-module (guix utils)
50 #:use-module (guix build-system gnu)
51 #:use-module (gnu packages xml)
52 #:use-module (gnu packages web)
53 #:use-module (guix build-system ruby))
62 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
63 (version-major+minor version)
64 "/ruby-" version ".tar.xz"))
67 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
68 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
69 (modules '((guix build utils)))
71 ;; Remove bundled libffi
72 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
74 (build-system gnu-build-system)
76 `(#:test-target "test"
78 (modify-phases %standard-phases
79 (add-before 'configure 'replace-bin-sh-and-remove-libffi
81 (substitute* '("Makefile.in"
86 "test/rubygems/test_gem_ext_configure_builder.rb"
87 "test/rdoc/test_rdoc_parser.rb"
88 "test/ruby/test_rubyoptions.rb"
89 "test/ruby/test_process.rb"
90 "test/ruby/test_system.rb"
92 (("/bin/sh") (which "sh")))
95 `(("readline" ,readline)
101 (list (search-path-specification
102 (variable "GEM_PATH")
103 (files (list (string-append "lib/ruby/vendor_ruby"))))))
104 (synopsis "Programming language interpreter")
105 (description "Ruby is a dynamic object-oriented programming language with
106 a focus on simplicity and productivity.")
107 (home-page "https://www.ruby-lang.org")
108 (license license:ruby)))
110 (define-public ruby-2.3
117 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
118 (version-major+minor version)
119 "/ruby-" version ".tar.xz"))
122 "1nwfaifq5624p1ml56qq5dy5w38z37x22r0qgrbgbzrzklmqy7y6"))
123 (modules '((guix build utils)))
125 ;; Remove bundled libffi
126 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
129 (define-public ruby-2.2
130 (package (inherit ruby)
135 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
136 (version-major+minor version)
137 "/ruby-" version ".tar.xz"))
140 "0l5nk9mc0q4769d2i9d9y1izk0pk0lms2bl8s3lclv36wsvvqxxz"))))))
142 (define-public ruby-2.1
143 (package (inherit ruby)
148 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
149 (version-major+minor version)
150 "/ruby-" version ".tar.bz2"))
153 "1wglbd599mlwxfcb2xgqcxi2shr363pjn5dpbv11m04si9bpaim7"))))
155 `(#:test-target "test"
158 (modify-phases %standard-phases
159 (add-before 'configure 'replace-bin-sh
161 (substitute* '("Makefile.in"
166 (("/bin/sh") (which "sh")))
169 (define-public ruby-1.8
170 (package (inherit ruby)
171 (version "1.8.7-p374")
175 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
176 (version-major+minor version)
177 "/ruby-" version ".tar.bz2"))
180 "1qq7khilwkayrhwmzlxk83scrmiqfi7lgsn4c63znyvz2c1lgqxl"))))
181 (native-search-paths '())
183 `(#:test-target "test"
186 (modify-phases %standard-phases
187 (add-before 'configure 'replace-bin-sh
189 (substitute* '("Makefile.in"
194 (("/bin/sh") (which "sh")))
197 (define-public ruby-concurrent
199 (name "ruby-concurrent")
203 (uri (rubygems-uri "concurrent-ruby" version))
206 "183lszf5gx84kcpb779v6a2y0mx9sssy8dgppng1z9a505nj1qcf"))))
207 (build-system ruby-build-system)
208 (arguments `(#:tests? #f)); No rakefile
209 (home-page "https://github.com/ruby-concurrency/concurrent-ruby")
210 (synopsis "Concurrency tools for Ruby")
211 (description "This gem provides concurrency tools for Ruby. It provides
212 a library of common thread-safe types and data-structures as well as abstractions
213 for concurrency and communication between threads.")
214 (license license:expat)))
216 (define-public ruby-highline
218 (name "ruby-highline")
223 (uri (rubygems-uri "highline" version))
226 "01ib7jp85xjc4gh4jg0wyzllm46hwv8p0w1m4c75pbgi41fps50y"))))
227 (build-system ruby-build-system)
229 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
231 `(("bundler" ,bundler)
232 ("ruby-code-statistics" ,ruby-code-statistics)))
234 "HighLine helps you build command-line interfaces")
236 "HighLine provides a high-level IO library that provides validation,
237 type conversion, and more for command-line interfaces. HighLine also includes
238 a menu system for providing multiple options to the user.")
239 (home-page "https://github.com/JEG2/highline")
240 (license (list license:gpl2 license:ruby))))
242 (define-public ruby-hoe
248 (uri (rubygems-uri "hoe" version))
251 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
252 (build-system ruby-build-system)
253 (synopsis "Ruby project management helper")
255 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
256 maintain, and release projects and includes a dynamic plug-in system allowing
257 for easy extensibility. Hoe ships with plug-ins for all the usual project
258 tasks including rdoc generation, testing, packaging, deployment, and
260 (home-page "https://www.zenspider.com/projects/hoe.html")
261 (license license:expat)))
263 (define-public ruby-rake-compiler
265 (name "ruby-rake-compiler")
269 (uri (rubygems-uri "rake-compiler" version))
272 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
273 (build-system ruby-build-system)
275 '(#:tests? #f)) ; needs cucumber
276 (synopsis "Building and packaging helper for Ruby native extensions")
277 (description "Rake-compiler provides a framework for building and
278 packaging native C and Java extensions in Ruby.")
279 (home-page "https://github.com/rake-compiler/rake-compiler")
280 (license license:expat)))
282 (define-public ruby-i18n
288 (uri (rubygems-uri "i18n" version))
291 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
292 (build-system ruby-build-system)
294 '(#:tests? #f)) ; no tests
295 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
296 (synopsis "Internationalization library for Ruby")
297 (description "Ruby i18n is an internationalization and localization
298 solution for Ruby programs. It features translation and localization,
299 interpolation of values to translations, pluralization, customizable
300 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
301 translation data, custom key/scope separator, custom exception handlers, and
302 an extensible architecture with a swappable backend.")
303 (home-page "https://github.com/svenfuchs/i18n")
304 (license license:expat)))
306 (define-public ruby-iruby
313 (uri (rubygems-uri "iruby" version))
316 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
317 (build-system ruby-build-system)
319 ;; TODO: Tests currently fail.
321 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
324 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
327 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
330 (modify-phases %standard-phases
331 (add-after 'unpack 'patch-ipython
332 (lambda* (#:key inputs #:allow-other-keys)
333 (substitute* "lib/iruby/command.rb"
337 (assoc-ref inputs "python-ipython")
339 (("Kernel\\.exec\\('")
342 (assoc-ref inputs "python-ipython")
346 `(("python-ipython" ,python-ipython)))
348 `(("ruby-bond" ,ruby-bond)
349 ("ruby-data_uri" ,ruby-data_uri)
350 ("ruby-mimemagic" ,ruby-mimemagic)
351 ("ruby-multi-json" ,ruby-multi-json)
352 ("ruby-cztop" ,ruby-cztop)
354 ("ruby-pry" ,ruby-pry)))
355 (synopsis "Ruby kernel for Jupyter/IPython")
357 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
359 (home-page "https://github.com/SciRuby/iruby")
360 (license license:expat)))
362 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
363 ;; dependencies use RSpec for their test suites! To avoid these circular
364 ;; dependencies, we disable tests for all of the RSpec-related packages.
365 (define ruby-rspec-support
367 (name "ruby-rspec-support")
371 (uri (rubygems-uri "rspec-support" version))
374 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
375 (build-system ruby-build-system)
377 '(#:tests? #f)) ; avoid dependency cycles
378 (synopsis "RSpec support library")
379 (description "Support utilities for RSpec gems.")
380 (home-page "https://github.com/rspec/rspec-support")
381 (license license:expat)))
383 (define-public ruby-rspec-core
385 (name "ruby-rspec-core")
389 (uri (rubygems-uri "rspec-core" version))
392 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
393 (build-system ruby-build-system)
395 '(#:tests? #f)) ; avoid dependency cycles
397 `(("ruby-rspec-support" ,ruby-rspec-support)))
398 (synopsis "RSpec core library")
399 (description "Rspec-core provides the RSpec test runner and example
401 (home-page "https://github.com/rspec/rspec-core")
402 (license license:expat)))
404 (define-public ruby-rspec-core-2
405 (package (inherit ruby-rspec-core)
409 (uri (rubygems-uri "rspec-core" version))
412 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
413 (propagated-inputs `())))
415 (define-public ruby-diff-lcs
417 (name "ruby-diff-lcs")
421 (uri (rubygems-uri "diff-lcs" version))
424 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
425 (build-system ruby-build-system)
427 '(#:tests? #f)) ; avoid dependency cycles
428 (synopsis "Compute the difference between two Enumerable sequences")
429 (description "Diff::LCS computes the difference between two Enumerable
430 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
431 It includes utilities to create a simple HTML diff output format and a
432 standard diff-like tool.")
433 (home-page "https://github.com/halostatue/diff-lcs")
434 (license license:expat)))
436 (define-public ruby-rspec-expectations
438 (name "ruby-rspec-expectations")
442 (uri (rubygems-uri "rspec-expectations" version))
445 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
446 (build-system ruby-build-system)
448 '(#:tests? #f)) ; avoid dependency cycles
450 `(("ruby-rspec-support" ,ruby-rspec-support)
451 ("ruby-diff-lcs" ,ruby-diff-lcs)))
452 (synopsis "RSpec expectations library")
453 (description "Rspec-expectations provides a simple API to express expected
454 outcomes of a code example.")
455 (home-page "https://github.com/rspec/rspec-expectations")
456 (license license:expat)))
458 (define-public ruby-rspec-expectations-2
459 (package (inherit ruby-rspec-expectations)
463 (uri (rubygems-uri "rspec-expectations" version))
466 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
468 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
470 (define-public ruby-rspec-its
472 (name "ruby-rspec-its")
477 (uri (rubygems-uri "rspec-its" version))
480 "1pwphny5jawcm1hda3vs9pjv1cybaxy17dc1s75qd7drrvx697p3"))))
481 (build-system ruby-build-system)
483 `(#:tests? #f)) ; needs cucumber.
485 `(("ruby-rspec-core" ,ruby-rspec-core)
486 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
487 (synopsis "RSpec extension gem for attribute matching")
488 (description "@code{rspec-its} is an RSpec extension gem for attribute
490 (home-page "https://github.com/rspec/rspec-its")
491 (license license:expat)))
493 (define-public ruby-rspec-mocks
495 (name "ruby-rspec-mocks")
499 (uri (rubygems-uri "rspec-mocks" version))
502 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
503 (build-system ruby-build-system)
505 '(#:tests? #f)) ; avoid dependency cycles
507 `(("ruby-rspec-support" ,ruby-rspec-support)
508 ("ruby-diff-lcs" ,ruby-diff-lcs)))
509 (synopsis "RSpec stubbing and mocking library")
510 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
511 support for stubbing and mocking.")
512 (home-page "https://github.com/rspec/rspec-mocks")
513 (license license:expat)))
515 (define-public ruby-rspec-mocks-2
516 (package (inherit ruby-rspec-mocks)
520 (uri (rubygems-uri "rspec-mocks" version))
523 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
525 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
527 (define-public ruby-rspec
533 (uri (rubygems-uri "rspec" version))
536 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
537 (build-system ruby-build-system)
539 '(#:tests? #f)) ; avoid dependency cycles
541 `(("ruby-rspec-core" ,ruby-rspec-core)
542 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
543 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
544 (synopsis "Behavior-driven development framework for Ruby")
545 (description "RSpec is a behavior-driven development (BDD) framework for
546 Ruby. This meta-package includes the RSpec test runner, along with the
547 expectations and mocks frameworks.")
548 (home-page "http://rspec.info/")
549 (license license:expat)))
551 (define-public ruby-rspec-2
552 (package (inherit ruby-rspec)
556 (uri (rubygems-uri "rspec" version))
559 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
561 `(("ruby-rspec-core" ,ruby-rspec-core-2)
562 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
563 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
565 ;; Bundler is yet another source of circular dependencies, so we must disable
566 ;; its test suite as well.
567 (define-public bundler
573 (uri (rubygems-uri "bundler" version))
576 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
577 (build-system ruby-build-system)
579 '(#:tests? #f)) ; avoid dependency cycles
580 (synopsis "Ruby gem bundler")
581 (description "Bundler automatically downloads and installs a list of gems
582 specified in a \"Gemfile\", as well as their dependencies.")
583 (home-page "https://bundler.io/")
584 (license license:expat)))
586 (define-public ruby-builder
588 (name "ruby-builder")
592 (uri (rubygems-uri "builder" version))
595 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
596 (build-system ruby-build-system)
599 (modify-phases %standard-phases
600 (add-after 'unpack 'do-not-use-rvm
602 (substitute* "rakelib/tags.rake"
603 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
605 (synopsis "Ruby library to create structured data")
606 (description "Builder provides a number of builder objects that make it
607 easy to create structured data. Currently the following builder objects are
608 supported: XML Markup and XML Events.")
609 (home-page "https://github.com/jimweirich/builder")
610 (license license:expat)))
612 (define-public ruby-rjb
618 (uri (rubygems-uri "rjb" version))
621 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
622 (build-system ruby-build-system)
624 `(#:tests? #f ; no rakefile
626 (modify-phases %standard-phases
627 (add-before 'build 'set-java-home
628 (lambda* (#:key inputs #:allow-other-keys)
629 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
632 `(("jdk" ,icedtea "jdk")))
633 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
634 (description "RJB is a bridge program that connects Ruby and Java via the
635 Java Native Interface.")
636 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
637 (license license:lgpl2.1+)))
639 (define-public ruby-log4r
646 (uri (rubygems-uri "log4r" version))
649 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
650 (build-system ruby-build-system)
652 '(#:tests? #f)) ; no Rakefile in gem
653 (synopsis "Flexible logging library for Ruby")
654 (description "Comprehensive and flexible logging library written
655 in Ruby for use in Ruby programs. It features a hierarchical logging
656 system of any number of levels, custom level names, logger
657 inheritance, multiple output destinations per log event, execution
658 tracing, custom formatting, thread safteyness, XML and YAML
659 configuration, and more.")
660 (home-page "http://log4r.rubyforge.org/")
661 (license license:bsd-3)))
663 (define-public ruby-atoulme-antwrap
665 (name "ruby-atoulme-antwrap")
669 (uri (rubygems-uri "atoulme-Antwrap" version))
672 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
673 (build-system ruby-build-system)
674 ;; Test data required for most of the tests are not included.
675 (arguments `(#:tests? #f))
677 `(("ruby-hoe" ,ruby-hoe)))
679 `(("ruby-rjb" ,ruby-rjb)))
680 (synopsis "Ruby wrapper for the Ant build tool")
681 (description "Antwrap is a Ruby module that wraps the Apache Ant build
682 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
684 (home-page "http://rubyforge.org/projects/antwrap/")
685 (license license:expat)))
687 (define-public ruby-atoulme-saikuro
689 (name "ruby-atoulme-saikuro")
693 (uri (rubygems-uri "atoulme-Saikuro" version))
696 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
697 (build-system ruby-build-system)
698 ;; FIXME: There are no unit tests. The tests are demonstrations of the
700 (arguments `(#:tests? #f))
701 (synopsis "Cyclomatic complexity analyzer")
702 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
703 given Ruby source code Saikuro will generate a report listing the cyclomatic
704 complexity of each method found. In addition, Saikuro counts the number of
705 lines per method and can generate a listing of the number of tokens on each
707 (home-page "http://www.github.com/atoulme/Saikuro")
708 ;; File headers contain the BSD-3 license and the README.rdoc says that
709 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
710 ;; of the Expat license.
711 (license license:bsd-3)))
713 (define-public ruby-asciidoctor
715 (name "ruby-asciidoctor")
720 (uri (rubygems-uri "asciidoctor" version))
723 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
724 (build-system ruby-build-system)
726 `(#:test-target "test:all"
728 (modify-phases %standard-phases
729 (add-before 'check 'remove-circular-tests
731 ;; Remove tests that require circular dependencies to load or pass.
732 (delete-file "test/invoker_test.rb")
733 (delete-file "test/converter_test.rb")
734 (delete-file "test/options_test.rb")
737 `(("ruby-minitest" ,ruby-minitest)
738 ("ruby-nokogiri" ,ruby-nokogiri)
739 ("ruby-asciimath" ,ruby-asciimath)
740 ("ruby-coderay" ,ruby-coderay)))
741 (synopsis "Converter from AsciiDoc content to other formats")
743 "Asciidoctor is a text processor and publishing toolchain for converting
744 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
745 (home-page "https://asciidoctor.org")
746 (license license:expat)))
748 (define-public ruby-sporkmonger-rack-mount
749 ;; Testing the addressable gem requires a newer commit than that released, so
750 ;; use an up to date version.
752 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
754 (name "ruby-sporkmonger-rack-mount")
755 (version (git-version "0.8.3" revision commit))
759 (url "https://github.com/sporkmonger/rack-mount.git")
761 (file-name (git-file-name name version))
764 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
765 (build-system ruby-build-system)
767 ;; Tests currently fail so disable them.
768 ;; https://github.com/sporkmonger/rack-mount/pull/1
770 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
771 (synopsis "Stackable dynamic tree based Rack router")
773 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
774 continue trying routes if the response returns pass. This allows multiple
775 routes to be nested or stacked on top of each other.")
776 (home-page "https://github.com/sporkmonger/rack-mount")
777 (license license:expat))))
779 (define-public ruby-ci-reporter
781 (name "ruby-ci-reporter")
785 (uri (rubygems-uri "ci_reporter" version))
788 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
789 (build-system ruby-build-system)
791 `(#:test-target "rspec"))
793 `(("ruby-builder" ,ruby-builder)))
795 `(("bundler" ,bundler)
796 ("ruby-rspec" ,ruby-rspec)))
797 (synopsis "Generate XML reports of runs test")
799 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
800 you to generate XML reports of your test runs. The resulting files can be
801 read by a continuous integration system that understands Ant's JUnit report
803 (home-page "https://github.com/nicksieger/ci_reporter")
804 (license license:expat)))
806 (define-public ruby-czmq-ffi-gen
808 (name "ruby-czmq-ffi-gen")
813 (uri (rubygems-uri "czmq-ffi-gen" version))
816 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
817 (build-system ruby-build-system)
819 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
821 (modify-phases %standard-phases
822 (add-after 'unpack 'patch-lib_dirs
823 (lambda* (#:key inputs #:allow-other-keys)
824 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
825 (("lib\\_dirs = \\[.*\\]")
826 (string-append "lib_dirs = ['"
827 (assoc-ref inputs "czmq") "/lib"
829 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
830 (("lib\\_dirs = \\[.*\\]")
831 (string-append "lib_dirs = ['"
832 (assoc-ref inputs "zeromq") "/lib"
837 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
838 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
840 "These Ruby bindings are not intended to be directly used, but rather
841 used by higher level bindings like those provided by CZTop.")
843 "https://github.com/paddor/czmq-ffi-gen")
844 (license license:isc)))
846 (define-public ruby-cztop
853 (uri (rubygems-uri "cztop" version))
856 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
857 (build-system ruby-build-system)
859 '(#:test-target "spec"
861 (modify-phases %standard-phases
862 (add-after 'unpack 'patch-lib_paths
863 (lambda* (#:key inputs #:allow-other-keys)
864 (substitute* "lib/cztop/poller/zmq.rb"
865 (("lib\\_paths = \\[.*\\]")
866 (string-append "lib_paths = ['"
867 (assoc-ref inputs "zeromq") "/lib"
870 `(("bundler" ,bundler)
871 ("ruby-rspec" ,ruby-rspec)))
873 `(("zeromq" ,zeromq)))
875 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
876 (synopsis "CZMQ Ruby bindings")
878 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
879 CZMQ. The focus of of CZTop is on being easy to use and providing first class
880 support for security mechanisms.")
881 (home-page "https://github.com/paddor/cztop")
882 (license license:isc)))
884 (define-public ruby-saikuro-treemap
886 (name "ruby-saikuro-treemap")
890 (uri (rubygems-uri "saikuro_treemap" version))
893 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
894 (build-system ruby-build-system)
895 ;; Some of the tests fail because the generated JSON has keys in a
896 ;; different order. This is a problem with the test suite rather than any
897 ;; of the involved libraries.
898 (arguments `(#:tests? #f))
900 `(("ruby-json-pure" ,ruby-json-pure)
901 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
902 (synopsis "Generate complexity treemap based on saikuro analysis")
904 "This gem generates a treemap showing the complexity of Ruby code on
905 which it is run. It uses Saikuro under the covers to analyze Ruby code
907 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
908 (license license:expat)))
910 (define-public ruby-options
912 (name "ruby-options")
917 (uri (rubygems-uri "options" version))
920 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
921 (build-system ruby-build-system)
923 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
925 (modify-phases %standard-phases
926 (add-before 'check 'set-LIB
928 ;; This is used in the Rakefile, and setting it avoids an issue
929 ;; with running the tests.
930 (setenv "LIB" "options")
932 (synopsis "Ruby library to parse options from *args cleanly")
934 "The @code{options} library helps with parsing keyword options in Ruby
936 (home-page "https://github.com/ahoward/options")
937 (license license:ruby)))
939 (define-public ruby-erubis
946 (uri (rubygems-uri "erubis" version))
949 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
950 (build-system ruby-build-system)
952 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
953 (synopsis "Implementation of embedded Ruby (eRuby)")
955 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
956 features such as multi-language support, auto escaping, auto trimming spaces
957 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
959 (home-page "http://www.kuwata-lab.com/erubis/")
960 (license license:expat)))
962 (define-public ruby-orderedhash
964 (name "ruby-orderedhash")
968 (uri (rubygems-uri "orderedhash" version))
971 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
972 (build-system ruby-build-system)
974 '(#:tests? #f)) ; no test suite
975 (synopsis "Ruby library providing an order-preserving hash")
976 (description "Orderedhash is a Ruby library providing a hash
977 implementation that preserves the order of items and features some array-like
979 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
980 (license license:public-domain)))
982 (define-public ruby-libxml
989 (uri (rubygems-uri "libxml-ruby" version))
992 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
993 (build-system ruby-build-system)
996 ("libxml2" ,libxml2)))
998 '(#:tests? #f ; test suite hangs for unknown reason
1001 (string-append "--with-xml2-include="
1002 (assoc-ref %build-inputs "libxml2")
1003 "/include/libxml2" ))))
1004 (synopsis "Ruby bindings for GNOME Libxml2")
1005 (description "The Libxml-Ruby project provides Ruby language bindings for
1006 the GNOME Libxml2 XML toolkit.")
1007 (home-page "https://xml4r.github.com/libxml-ruby")
1008 (license license:expat)))
1010 (define-public ruby-xml-simple
1012 (name "ruby-xml-simple")
1016 (uri (rubygems-uri "xml-simple" version))
1019 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1020 (build-system ruby-build-system)
1022 '(#:tests? #f)) ; no test suite
1023 (synopsis "Simple Ruby library for XML processing")
1024 (description "This library provides a simple API for XML processing in
1026 (home-page "https://github.com/maik/xml-simple")
1027 (license license:ruby)))
1029 (define-public ruby-thor
1035 (uri (rubygems-uri "thor" version))
1038 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1039 (build-system ruby-build-system)
1041 '(#:tests? #f)) ; no test suite
1043 `(("bundler" ,bundler)))
1044 (synopsis "Ruby toolkit for building command-line interfaces")
1045 (description "Thor is a toolkit for building powerful command-line
1047 (home-page "http://whatisthor.com/")
1048 (license license:expat)))
1050 (define-public ruby-lumberjack
1052 (name "ruby-lumberjack")
1056 (uri (rubygems-uri "lumberjack" version))
1059 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1060 (build-system ruby-build-system)
1062 `(("ruby-rspec" ,ruby-rspec)
1063 ("ruby-timecop" ,ruby-timecop)))
1064 (synopsis "Logging utility library for Ruby")
1065 (description "Lumberjack is a simple logging utility that can be a drop in
1066 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1067 for automatically rolling log files even with multiple processes writing the
1069 (home-page "https://github.com/bdurand/lumberjack")
1070 (license license:expat)))
1072 (define-public ruby-nenv
1078 (uri (rubygems-uri "nenv" version))
1081 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1082 (build-system ruby-build-system)
1084 `(#:tests? #f)) ; no tests included
1086 `(("ruby-rspec" ,ruby-rspec)
1087 ("bundler" ,bundler)))
1088 (synopsis "Ruby interface for modifying the environment")
1089 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1090 and inspect the environment.")
1091 (home-page "https://github.com/e2/nenv")
1092 (license license:expat)))
1094 (define-public ruby-permutation
1096 (name "ruby-permutation")
1100 (uri (rubygems-uri "permutation" version))
1103 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1104 (build-system ruby-build-system)
1107 (modify-phases %standard-phases
1108 (add-after 'unpack 'fix-rakefile
1110 (substitute* "Rakefile"
1111 (("require 'rake/gempackagetask'")
1112 "require 'rubygems/package_task'")
1113 (("include Config") ""))
1117 (zero? (system* "ruby" "-Ilib" "test/test.rb")))))))
1118 (synopsis "Library to perform operations with sequence permutations")
1119 (description "This package provides a Ruby library to perform different
1120 operations with permutations of sequences, such as strings and arrays.")
1121 (home-page "https://flori.github.io/permutation")
1122 (license license:gpl2))) ; GPL 2 only
1124 (define-public ruby-shellany
1126 (name "ruby-shellany")
1130 (uri (rubygems-uri "shellany" version))
1133 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1134 (build-system ruby-build-system)
1136 `(#:test-target "default"
1138 (modify-phases %standard-phases
1139 (add-after 'unpack 'fix-version-test
1141 (substitute* "spec/shellany_spec.rb"
1142 (("^RSpec") "require \"shellany\"\nRSpec"))
1145 `(("ruby-rspec" ,ruby-rspec)
1146 ("ruby-nenv" ,ruby-nenv)
1147 ("bundler" ,bundler)))
1148 (synopsis "Capture command output")
1149 (description "Shellany is a Ruby library providing functions to capture
1150 the output produced by running shell commands.")
1151 (home-page "https://rubygems.org/gems/shellany")
1152 (license license:expat)))
1154 (define-public ruby-notiffany
1156 (name "ruby-notiffany")
1160 (uri (rubygems-uri "notiffany" version))
1163 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1164 (build-system ruby-build-system)
1165 ;; Tests are not included in the gem.
1166 (arguments `(#:tests? #f))
1168 `(("ruby-shellany" ,ruby-shellany)
1169 ("ruby-nenv" ,ruby-nenv)))
1171 `(("bundler" ,bundler)))
1172 (synopsis "Wrapper libray for notification libraries")
1173 (description "Notiffany is a Ruby wrapper libray for notification
1174 libraries such as Libnotify.")
1175 (home-page "https://github.com/guard/notiffany")
1176 (license license:expat)))
1178 (define-public ruby-formatador
1180 (name "ruby-formatador")
1184 (uri (rubygems-uri "formatador" version))
1187 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1188 (build-system ruby-build-system)
1189 ;; Circular dependency: Tests require ruby-shindo, which requires
1190 ;; ruby-formatador at runtime.
1191 (arguments `(#:tests? #f))
1192 (synopsis "Ruby library to format text on stdout")
1193 (description "Formatador is a Ruby library to format text printed to the
1194 standard output stream.")
1195 (home-page "https://github.com/geemus/formatador")
1196 (license license:expat)))
1198 (define-public ruby-shindo
1200 (name "ruby-shindo")
1204 (uri (rubygems-uri "shindo" version))
1207 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1208 (build-system ruby-build-system)
1210 `(#:test-target "shindo_tests"
1212 (modify-phases %standard-phases
1213 (add-after 'unpack 'fix-tests
1215 (substitute* "Rakefile"
1216 (("system \"shindo") "system \"./bin/shindo")
1217 ;; This test doesn't work, so we disable it.
1218 (("fail \"The build_error test should fail") "#"))
1221 `(("ruby-formatador" ,ruby-formatador)))
1222 (synopsis "Simple depth first Ruby testing")
1223 (description "Shindo is a simple depth first testing library for Ruby.")
1224 (home-page "https://github.com/geemus/shindo")
1225 (license license:expat)))
1227 (define-public ruby-rubygems-tasks
1229 (name "ruby-rubygems-tasks")
1233 (uri (rubygems-uri "rubygems-tasks" version))
1236 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1237 (build-system ruby-build-system)
1238 ;; Tests need Internet access.
1239 (arguments `(#:tests? #f))
1241 `(("ruby-rspec" ,ruby-rspec)
1242 ("ruby-yard" ,ruby-yard)))
1243 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1244 (description "Rubygems-task provides Rake tasks for managing and releasing
1246 (home-page "https://github.com/postmodern/rubygems-tasks")
1247 (license license:expat)))
1249 (define-public ruby-rubyzip
1251 (name "ruby-rubyzip")
1256 (uri (rubygems-uri "rubyzip" version))
1259 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1260 (build-system ruby-build-system)
1263 (modify-phases %standard-phases
1264 (add-before 'check 'patch-tests
1265 (lambda* (#:key inputs #:allow-other-keys)
1266 (substitute* "test/gentestfiles.rb"
1269 (assoc-ref inputs "zip") "/bin/zip")))
1270 (substitute* "test/input_stream_test.rb"
1271 (("/usr/bin/env ruby") (which "ruby")))
1274 `(("bundler" ,bundler)
1275 ("ruby-simplecov" ,ruby-simplecov)
1278 (synopsis "Ruby module is for reading and writing zip files")
1280 "The rubyzip module provides ways to read from and create zip files.")
1281 (home-page "http://github.com/rubyzip/rubyzip")
1282 (license license:bsd-2)))
1284 (define-public ruby-simplecov-html
1286 (name "ruby-simplecov-html")
1290 (uri (rubygems-uri "simplecov-html" version))
1293 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
1294 (build-system ruby-build-system)
1295 (arguments `(#:tests? #f)) ; there are no tests
1297 `(("bundler" ,bundler)))
1298 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1299 (description "This package provides the default HTML formatter for
1300 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1301 (home-page "https://github.com/colszowka/simplecov-html")
1302 (license license:expat)))
1304 (define-public ruby-simplecov
1306 (name "ruby-simplecov")
1310 (uri (rubygems-uri "simplecov" version))
1313 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
1314 (build-system ruby-build-system)
1315 ;; Simplecov depends on rubocop for code style checking at build time.
1316 ;; Rubocop needs simplecov at build time.
1317 (arguments `(#:tests? #f))
1319 `(("ruby-json" ,ruby-json)
1320 ("ruby-docile" ,ruby-docile)
1321 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1323 `(("bundler" ,bundler)))
1324 (synopsis "Code coverage framework for Ruby")
1325 (description "SimpleCov is a code coverage framework for Ruby with a
1326 powerful configuration library and automatic merging of coverage across test
1328 (home-page "https://github.com/colszowka/simplecov")
1329 (license license:expat)))
1331 (define-public ruby-useragent
1333 (name "ruby-useragent")
1337 (uri (rubygems-uri "useragent" version))
1340 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1341 (build-system ruby-build-system)
1343 '(#:tests? #f)) ; no test suite
1344 (synopsis "HTTP user agent parser for Ruby")
1345 (description "UserAgent is a Ruby library that parses and compares HTTP
1347 (home-page "https://github.com/gshutler/useragent")
1348 (license license:expat)))
1350 (define-public ruby-bacon
1356 (uri (rubygems-uri "bacon" version))
1359 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1360 (build-system ruby-build-system)
1361 (synopsis "Small RSpec clone")
1362 (description "Bacon is a small RSpec clone providing all essential
1364 (home-page "https://github.com/chneukirchen/bacon")
1365 (license license:expat)))
1367 (define-public ruby-bacon-bits
1369 (name "ruby-bacon-bits")
1374 (uri (rubygems-uri "bacon-bits" version))
1377 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
1378 (build-system ruby-build-system)
1382 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
1383 (synopsis "Extensions to Bacon, for disabling tests, before and after
1386 "This extends the bacon testing framework with useful extensions to
1387 disable tests, have before and after blocks that run once and more.")
1388 (home-page "https://github.com/cldwalker/bacon-bits")
1389 (license license:expat)))
1391 (define-public ruby-connection-pool
1393 (name "ruby-connection-pool")
1397 (uri (rubygems-uri "connection_pool" version))
1400 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
1401 (build-system ruby-build-system)
1403 `(("bundler" ,bundler)))
1404 (synopsis "Generic connection pool for Ruby")
1405 (description "Connection_pool provides a generic connection pooling
1406 interface for Ruby programs.")
1407 (home-page "https://github.com/mperham/connection_pool")
1408 (license license:expat)))
1410 (define-public ruby-net-http-persistent
1412 (name "ruby-net-http-persistent")
1416 (uri (rubygems-uri "net-http-persistent" version))
1419 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1420 (build-system ruby-build-system)
1422 `(("ruby-connection-pool" ,ruby-connection-pool)
1423 ("ruby-hoe" ,ruby-hoe)))
1424 (synopsis "Persistent HTTP connection manager")
1425 (description "Net::HTTP::Persistent manages persistent HTTP connections
1426 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1427 (home-page "https://github.com/drbrain/net-http-persistent")
1428 (license license:expat)))
1430 (define-public ruby-power-assert
1432 (name "ruby-power-assert")
1436 (uri (rubygems-uri "power_assert" version))
1439 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1440 (build-system ruby-build-system)
1442 `(("bundler" ,bundler)))
1443 (synopsis "Assert library with descriptive assertion messages")
1444 (description "Power-assert is an assertion library providing descriptive
1445 assertion messages for tests.")
1446 (home-page "https://github.com/k-tsj/power_assert")
1447 (license (list license:bsd-2 license:ruby))))
1449 (define-public ruby-locale
1451 (name "ruby-locale")
1455 (uri (rubygems-uri "locale" version))
1458 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1459 (build-system ruby-build-system)
1460 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1461 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1462 ;; dependency cycle we disable tests.
1463 (arguments `(#:tests? #f))
1465 `(("bundler" ,bundler)
1466 ("ruby-yard" ,ruby-yard)))
1467 (synopsis "Ruby library providing basic localization APIs")
1469 "Ruby-Locale is the pure ruby library which provides basic APIs for
1471 (home-page "https://github.com/ruby-gettext/locale")
1472 (license (list license:lgpl3+ license:ruby))))
1474 (define-public ruby-text
1480 (uri (rubygems-uri "text" version))
1483 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1484 (build-system ruby-build-system)
1485 (synopsis "Collection of text algorithms for Ruby")
1487 "This package provides a collection of text algorithms: Levenshtein,
1488 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1489 (home-page "https://github.com/threedaymonk/text")
1490 (license license:expat)))
1492 (define-public ruby-gettext
1494 (name "ruby-gettext")
1498 (uri (rubygems-uri "gettext" version))
1501 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1502 (build-system ruby-build-system)
1503 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1504 ;; which needs ruby-gettext. To break the dependency cycle we disable
1506 (arguments `(#:tests? #f))
1508 `(("ruby-locale" ,ruby-locale)
1509 ("ruby-text" ,ruby-text)))
1511 `(("bundler" ,bundler)
1512 ("ruby-yard" ,ruby-yard)))
1513 (synopsis "GNU gettext-like program for Ruby")
1515 "Gettext is a GNU gettext-like program for Ruby. The catalog
1516 file (po-file) used is the same as that used by GNU gettext, allowing you to
1517 use GNU gettext tools for maintenance.")
1518 (home-page "https://ruby-gettext.github.com/")
1519 (license (list license:lgpl3+ license:ruby))))
1521 (define-public ruby-packnga
1523 (name "ruby-packnga")
1527 (uri (rubygems-uri "packnga" version))
1530 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
1531 (build-system ruby-build-system)
1532 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1533 ;; To break the dependency cycle we disable tests.
1534 (arguments `(#:tests? #f))
1536 `(("ruby-gettext" ,ruby-gettext)
1537 ("ruby-yard" ,ruby-yard)))
1539 `(("bundler" ,bundler)))
1540 (synopsis "Utility library to package internationalized libraries")
1542 "Packnga is a library to translate to many languages using YARD.")
1543 (home-page "http://ranguba.org/packnga/")
1544 (license license:lgpl2.0+)))
1546 (define-public ruby-test-unit
1548 (name "ruby-test-unit")
1552 (uri (rubygems-uri "test-unit" version))
1555 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
1556 (build-system ruby-build-system)
1558 `(("ruby-power-assert" ,ruby-power-assert)))
1560 `(("bundler" ,bundler)
1561 ("ruby-packnga" ,ruby-packnga)
1562 ("ruby-yard" ,ruby-yard)))
1563 (synopsis "Unit testing framework for Ruby")
1564 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1565 on xUnit principles. These were originally designed by Kent Beck, creator of
1566 extreme programming software development methodology, for Smalltalk's SUnit.
1567 It allows writing tests, checking results and automated testing in Ruby.")
1568 (home-page "https://test-unit.github.io/")
1569 (license (list license:psfl license:ruby))))
1571 (define-public ruby-metaclass
1573 (name "ruby-metaclass")
1577 (uri (rubygems-uri "metaclass" version))
1580 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
1581 (build-system ruby-build-system)
1584 (modify-phases %standard-phases
1585 (add-after 'unpack 'add-test-unit-to-search-path
1586 (lambda* (#:key inputs #:allow-other-keys)
1587 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1588 (substitute* "Rakefile"
1589 (("t\\.libs << \"test\"" line)
1590 (string-append line "; t.libs << \""
1591 test-unit "/lib/ruby/vendor_ruby"
1593 ,(package-version ruby-test-unit)
1597 `(("bundler" ,bundler)
1598 ("ruby-test-unit" ,ruby-test-unit)))
1599 (synopsis "Ruby library adding metaclass method to all objects")
1601 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
1603 (home-page "https://github.com/floehopper/metaclass")
1604 (license license:expat)))
1606 (define-public ruby-blankslate
1608 (name "ruby-blankslate")
1612 (uri (rubygems-uri "blankslate" version))
1615 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
1616 (build-system ruby-build-system)
1619 (modify-phases %standard-phases
1621 (lambda _ (zero? (system* "rspec" "spec/")))))))
1623 `(("bundler" ,bundler)
1624 ("ruby-rspec" ,ruby-rspec)))
1625 (synopsis "Abstract base class with no predefined methods")
1627 "BlankSlate provides an abstract base class with no predefined
1628 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
1629 as a base class when writing classes that depend upon
1630 @code{method_missing} (e.g. dynamic proxies).")
1631 (home-page "https://github.com/masover/blankslate")
1632 (license license:expat)))
1634 (define-public ruby-bond
1641 (uri (rubygems-uri "bond" version))
1644 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
1645 (build-system ruby-build-system)
1647 `(("ruby-bacon" ,ruby-bacon)
1648 ("ruby-bacon-bits" ,ruby-bacon-bits)
1649 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
1650 (synopsis "Bond can provide custom autocompletion for arguments, methods
1653 "Bond can autocomplete argument(s) to methods, uniquely completing per
1654 module, per method and per argument. Bond provides a configuration system and
1655 a DSL for creating custom completions and completion rules. Bond can also
1656 load completions that ship with gems. Bond is able to offer more than irb's
1657 completion since it uses the full line of input when completing as opposed to
1658 irb's last-word approach.")
1659 (home-page "http://tagaholic.me/bond/")
1660 (license license:expat)))
1662 (define-public ruby-instantiator
1664 (name "ruby-instantiator")
1668 (uri (rubygems-uri "instantiator" version))
1671 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
1672 (build-system ruby-build-system)
1675 (modify-phases %standard-phases
1676 (add-after 'unpack 'add-test-unit-to-search-path
1677 (lambda* (#:key inputs #:allow-other-keys)
1678 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1679 (substitute* "Rakefile"
1680 (("t\\.libs << \"test\"" line)
1681 (string-append line "; t.libs << \""
1682 test-unit "/lib/ruby/vendor_ruby"
1684 ,(package-version ruby-test-unit)
1688 `(("ruby-blankslate" ,ruby-blankslate)))
1690 `(("bundler" ,bundler)
1691 ("ruby-test-unit" ,ruby-test-unit)))
1692 (synopsis "Instantiate an arbitrary Ruby class")
1694 "Instantiator lets you instantiate an arbitrary Ruby class without
1695 knowing anything about the constructor.")
1696 (home-page "https://github.com/floehopper/instantiator")
1697 (license license:expat)))
1699 (define-public ruby-introspection
1701 (name "ruby-introspection")
1705 (uri (rubygems-uri "introspection" version))
1708 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
1709 (build-system ruby-build-system)
1712 (modify-phases %standard-phases
1713 (add-after 'unpack 'add-test-unit-to-search-path
1714 (lambda* (#:key inputs #:allow-other-keys)
1715 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1716 (substitute* "Rakefile"
1717 (("t\\.libs << \"test\"" line)
1718 (string-append line "; t.libs << \""
1719 test-unit "/lib/ruby/vendor_ruby"
1721 ,(package-version ruby-test-unit)
1725 `(("ruby-instantiator" ,ruby-instantiator)
1726 ("ruby-metaclass" ,ruby-metaclass)))
1728 `(("bundler" ,bundler)
1729 ("ruby-blankslate" ,ruby-blankslate)
1730 ("ruby-test-unit" ,ruby-test-unit)))
1731 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
1733 "Introspection provides tools to inspect the hierarchy of method
1734 definitions on a Ruby object.")
1735 (home-page "https://github.com/floehopper/introspection")
1736 (license license:expat)))
1738 (define-public ruby-redcarpet
1740 (name "ruby-redcarpet")
1744 (uri (rubygems-uri "redcarpet" version))
1747 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
1748 (build-system ruby-build-system)
1751 (modify-phases %standard-phases
1752 ;; The gem archive does not include the conformance tests.
1753 (add-after 'unpack 'disable-conformance-tests
1755 (substitute* "Rakefile"
1756 (("task :test => %w\\[test:unit test:conformance\\]")
1757 "task :test => %w[test:unit]"))
1760 `(("bundler" ,bundler)
1761 ("ruby-test-unit" ,ruby-test-unit)
1762 ("ruby-rake-compiler" ,ruby-rake-compiler)))
1763 (synopsis "Extensible Markdown to (X)HTML converter")
1765 "Redcarpet is an extensible Ruby library for Markdown processing and
1766 conversion to (X)HTML.")
1767 (home-page "https://github.com/vmg/redcarpet")
1768 (license license:expat)))
1770 (define-public ruby-mocha
1776 (uri (rubygems-uri "mocha" version))
1779 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
1780 (build-system ruby-build-system)
1783 (modify-phases %standard-phases
1784 (add-after 'unpack 'add-test-unit-to-search-path
1785 (lambda* (#:key inputs #:allow-other-keys)
1786 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
1787 (substitute* "Rakefile"
1788 (("t\\.libs << 'test'" line)
1789 (string-append line "; t.libs << \""
1790 test-unit "/lib/ruby/vendor_ruby"
1792 ,(package-version ruby-test-unit)
1795 (add-before 'check 'use-latest-redcarpet
1797 (substitute* "mocha.gemspec"
1798 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
1799 "<redcarpet>.freeze, [\">= 3\"]"))
1801 (add-before 'check 'hardcode-version
1803 ;; Mocha is undefined at build time
1804 (substitute* "Rakefile"
1805 (("#\\{Mocha::VERSION\\}") ,version))
1807 (add-before 'check 'remove-failing-test
1808 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
1810 (delete-file "test/acceptance/stubbing_nil_test.rb")
1813 `(("ruby-metaclass" ,ruby-metaclass)))
1815 `(("bundler" ,bundler)
1816 ("ruby-yard" ,ruby-yard)
1817 ("ruby-introspection" ,ruby-introspection)
1818 ("ruby-test-unit" ,ruby-test-unit)
1819 ("ruby-redcarpet" ,ruby-redcarpet)))
1820 (synopsis "Mocking and stubbing library for Ruby")
1822 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
1823 allows mocking and stubbing of methods on real (non-mock) classes.")
1824 (home-page "http://gofreerange.com/mocha/docs")
1825 (license license:expat)))
1827 (define-public ruby-mocha-on-bacon
1829 (name "ruby-mocha-on-bacon")
1834 (uri (rubygems-uri "mocha-on-bacon" version))
1837 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
1838 (build-system ruby-build-system)
1840 ;; rubygems.org release missing tests
1842 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
1843 (synopsis "Mocha adapter for Bacon")
1845 "This package provides a Mocha adapter for Bacon, allowing you to use the
1846 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
1848 "https://github.com/alloy/mocha-on-bacon")
1849 (license license:expat)))
1851 (define-public ruby-net-ssh
1853 (name "ruby-net-ssh")
1857 (uri (rubygems-uri "net-ssh" version))
1860 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
1861 (build-system ruby-build-system)
1863 `(("bundler" ,bundler)
1864 ("ruby-mocha" ,ruby-mocha)
1865 ("ruby-test-unit" ,ruby-test-unit)))
1866 (synopsis "Ruby implementation of the SSH2 client protocol")
1867 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
1868 client protocol. It allows you to write programs that invoke and interact
1869 with processes on remote servers, via SSH2.")
1870 (home-page "https://github.com/net-ssh/net-ssh")
1871 (license license:expat)))
1873 (define-public ruby-net-scp
1875 (name "ruby-net-scp")
1876 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
1877 (version "1.2.2.rc2")
1881 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
1885 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
1886 (build-system ruby-build-system)
1888 `(("bundler" ,bundler)
1889 ("ruby-test-unit" ,ruby-test-unit)
1890 ("ruby-mocha" ,ruby-mocha)))
1892 `(("ruby-net-ssh" ,ruby-net-ssh)))
1893 (synopsis "Pure-Ruby SCP client library")
1894 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
1896 (home-page "https://github.com/net-ssh/net-scp")
1897 (license license:expat)))
1899 (define-public ruby-minitest
1901 (name "ruby-minitest")
1905 (uri (rubygems-uri "minitest" version))
1908 "05521clw19lrksqgvg2kmm025pvdhdaniix52vmbychrn2jm7kz2"))))
1909 (build-system ruby-build-system)
1911 `(("ruby-hoe" ,ruby-hoe)))
1912 (synopsis "Small test suite library for Ruby")
1913 (description "Minitest provides a complete suite of Ruby testing
1914 facilities supporting TDD, BDD, mocking, and benchmarking.")
1915 (home-page "https://github.com/seattlerb/minitest")
1916 (license license:expat)))
1918 ;; This is the last release of Minitest 4, which is used by some packages.
1919 (define-public ruby-minitest-4
1920 (package (inherit ruby-minitest)
1924 (uri (rubygems-uri "minitest" version))
1927 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
1930 (modify-phases %standard-phases
1931 (add-after 'unpack 'remove-unsupported-method
1933 (substitute* "Rakefile"
1934 (("self\\.rubyforge_name = .*") ""))
1936 (add-after 'build 'exclude-failing-tests
1938 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
1940 (delete-file "test/minitest/test_minitest_spec.rb")
1943 (define-public ruby-minitest-sprint
1945 (name "ruby-minitest-sprint")
1949 (uri (rubygems-uri "minitest-sprint" version))
1952 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
1953 (build-system ruby-build-system)
1955 `(("ruby-hoe" ,ruby-hoe)
1956 ("ruby-minitest" ,ruby-minitest)))
1957 (synopsis "Fast test suite runner for minitest")
1958 (description "Minitest-sprint is a test runner for minitest that makes it
1959 easier to re-run individual failing tests.")
1960 (home-page "https://github.com/seattlerb/minitest-sprint")
1961 (license license:expat)))
1963 (define-public ruby-minitest-bacon
1965 (name "ruby-minitest-bacon")
1969 (uri (rubygems-uri "minitest-bacon" version))
1972 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
1973 (build-system ruby-build-system)
1975 `(("ruby-hoe" ,ruby-hoe)))
1977 `(("ruby-minitest" ,ruby-minitest)))
1978 (synopsis "Bacon compatibility library for minitest")
1979 (description "Minitest-bacon extends minitest with bacon-like
1980 functionality, making it easier to migrate test suites from bacon to minitest.")
1981 (home-page "https://github.com/seattlerb/minitest-bacon")
1982 (license license:expat)))
1984 (define-public ruby-minitest-focus
1986 (name "ruby-minitest-focus")
1991 (uri (rubygems-uri "minitest-focus" version))
1994 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
1995 (build-system ruby-build-system)
1997 `(("ruby-minitest" ,ruby-minitest)))
1999 `(("ruby-hoe" ,ruby-hoe)))
2000 (synopsis "Allows a few specific tests to be focused on")
2002 "@code{minitest-focus} gives the ability focus on a few tests with ease
2003 without having to use command-line arguments. It introduces a @code{focus}
2004 class method for use in testing classes, specifying that the next defined test
2006 (home-page "https://github.com/seattlerb/minitest-focus")
2007 (license license:expat)))
2009 (define-public ruby-minitest-pretty-diff
2010 ;; Use git reference because gem is out of date and does not contain testing
2011 ;; script. There are no releases on GitHub.
2012 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
2014 (name "ruby-minitest-pretty-diff")
2015 (version (string-append "0.1-1." (string-take commit 8)))
2019 (url "https://github.com/adammck/minitest-pretty_diff.git")
2021 (file-name (string-append name "-" version "-checkout"))
2024 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
2025 (build-system ruby-build-system)
2028 (modify-phases %standard-phases
2031 (zero? (system* "script/test")))))))
2033 `(("bundler" ,bundler)
2034 ("ruby-turn" ,ruby-turn)))
2035 (synopsis "Pretty-print hashes and arrays in MiniTest")
2037 "@code{minitest-pretty_diff} monkey-patches
2038 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
2039 diffing them. This makes it easier to spot differences between nested
2040 structures when tests fail.")
2041 (home-page "https://github.com/adammck/minitest-pretty_diff")
2042 (license license:expat))))
2044 (define-public ruby-minitest-moar
2046 (name "ruby-minitest-moar")
2051 (uri (rubygems-uri "minitest-moar" version))
2054 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
2055 (build-system ruby-build-system)
2058 (modify-phases %standard-phases
2059 (add-before 'check 'clean-dependencies
2061 ;; Remove all gems defined in the Gemfile because these are not
2063 (substitute* "Gemfile"
2065 ;; Remove byebug as not needed to run tests.
2066 (substitute* "test/test_helper.rb"
2067 (("require 'byebug'") ""))
2070 `(("bundler" ,bundler)
2071 ("ruby-minitest" ,ruby-minitest)))
2072 (synopsis "Extra features and changes to MiniTest")
2073 (description "@code{MiniTest Moar} add some additional features and
2074 changes some default behaviours in MiniTest. For instance, Moar replaces the
2075 MiniTest @code{Object#stub} with a global @code{stub} method.")
2076 (home-page "https://github.com/dockyard/minitest-moar")
2077 (license license:expat)))
2079 (define-public ruby-minitest-bonus-assertions
2081 (name "ruby-minitest-bonus-assertions")
2086 (uri (rubygems-uri "minitest-bonus-assertions" version))
2089 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
2090 (build-system ruby-build-system)
2093 (modify-phases %standard-phases
2094 (add-before 'check 'clean-dependencies
2096 ;; Remove unneeded require statement that would entail another
2098 (substitute* "test/minitest_config.rb"
2099 (("require 'minitest/bisect'") ""))
2102 `(("ruby-hoe" ,ruby-hoe)
2103 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
2104 ("ruby-minitest-focus" ,ruby-minitest-focus)
2105 ("ruby-minitest-moar" ,ruby-minitest-moar)))
2106 (synopsis "Bonus assertions for @code{Minitest}")
2108 "Minitest bonus assertions provides extra MiniTest assertions. For
2109 instance, it provides @code{assert_true}, @code{assert_false} and
2110 @code{assert_set_equal}.")
2111 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
2112 (license license:expat)))
2114 (define-public ruby-minitest-rg
2116 (name "ruby-minitest-rg")
2121 (uri (rubygems-uri "minitest-rg" version))
2124 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
2125 (build-system ruby-build-system)
2127 ;; Some tests fail even outside Guix, so disable tests.
2128 ;; https://github.com/blowmage/minitest-rg/issues/12
2129 ;; https://github.com/blowmage/minitest-rg/pull/13
2132 `(("ruby-minitest" ,ruby-minitest)))
2133 (synopsis "Coloured output for Minitest")
2135 "@code{minitest-rg} changes the colour of the output from Minitest.")
2136 (home-page "http://blowmage.com/minitest-rg")
2137 (license license:expat)))
2139 (define-public ruby-minitest-hooks
2141 (name "ruby-minitest-hooks")
2146 (uri (rubygems-uri "minitest-hooks" version))
2149 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
2150 (build-system ruby-build-system)
2152 '(#:test-target "spec"))
2154 `(("ruby-sequel" ,ruby-sequel)
2155 ("ruby-sqlite3" ,ruby-sqlite3)))
2156 (synopsis "Hooks for the minitest framework")
2158 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
2159 @code{around_all} hooks for Minitest. This allows, for instance, running each
2160 suite of specs inside a database transaction, running each spec inside its own
2161 savepoint inside that transaction. This can significantly speed up testing
2162 for specs that share expensive database setup code.")
2163 (home-page "https://github.com/jeremyevans/minitest-hooks")
2164 (license license:expat)))
2166 (define-public ruby-daemons
2168 (name "ruby-daemons")
2172 (uri (rubygems-uri "daemons" version))
2175 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
2176 (build-system ruby-build-system)
2178 `(#:tests? #f)) ; no test suite
2179 (synopsis "Daemonize Ruby programs")
2180 (description "Daemons provides a way to wrap existing Ruby scripts to be
2181 run as a daemon and to be controlled by simple start/stop/restart commands.")
2182 (home-page "https://github.com/thuehlinger/daemons")
2183 (license license:expat)))
2185 (define-public ruby-data_uri
2187 (name "ruby-data_uri")
2192 (uri (rubygems-uri "data_uri" version))
2195 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
2196 (build-system ruby-build-system)
2197 (synopsis "URI class for parsing data URIs")
2199 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
2200 embedded inside a URI. The URI::Data class provides support for parsing these
2201 URIs using the normal URI.parse method.")
2202 (home-page "https://github.com/dball/data_uri")
2203 (license license:expat)))
2205 (define-public ruby-git
2211 (uri (rubygems-uri "git" version))
2214 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
2215 (build-system ruby-build-system)
2217 `(#:tests? #f ; no tests
2218 #:phases (modify-phases %standard-phases
2219 (add-after 'install 'patch-git-binary
2220 (lambda* (#:key inputs outputs #:allow-other-keys)
2221 ;; Make the default git binary an absolute path to the
2223 (let ((git (string-append (assoc-ref inputs "git")
2225 (config (string-append
2226 (assoc-ref outputs "out")
2227 "/lib/ruby/vendor_ruby/gems/git-"
2228 ,version "/lib/git/config.rb")))
2229 (substitute* (list config)
2231 (string-append "'" git "'")))
2235 (synopsis "Ruby wrappers for Git")
2236 (description "Ruby/Git is a Ruby library that can be used to create, read
2237 and manipulate Git repositories by wrapping system calls to the git binary.")
2238 (home-page "https://github.com/schacon/ruby-git")
2239 (license license:expat)))
2241 (define-public ruby-slop
2247 (uri (rubygems-uri "slop" version))
2250 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
2251 (build-system ruby-build-system)
2253 `(("ruby-minitest" ,ruby-minitest)))
2254 (synopsis "Ruby command line option parser")
2255 (description "Slop provides a Ruby domain specific language for gathering
2256 options and parsing command line flags.")
2257 (home-page "https://github.com/leejarvis/slop")
2258 (license license:expat)))
2260 (define-public ruby-slop-3
2261 (package (inherit ruby-slop)
2265 (uri (rubygems-uri "slop" version))
2268 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
2270 (define-public ruby-multipart-post
2272 (name "ruby-multipart-post")
2276 (uri (rubygems-uri "multipart-post" version))
2279 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
2280 (build-system ruby-build-system)
2282 `(("bundler" ,bundler)))
2283 (synopsis "Multipart POST library for Ruby")
2284 (description "Multipart-Post Adds multipart POST capability to Ruby's
2286 (home-page "https://github.com/nicksieger/multipart-post")
2287 (license license:expat)))
2289 (define-public ruby-multi-json
2291 (name "ruby-multi-json")
2296 (uri (rubygems-uri "multi_json" version))
2299 "1raim9ddjh672m32psaa9niw67ywzjbxbdb8iijx3wv9k5b0pk2x"))))
2300 (build-system ruby-build-system)
2302 '(#:tests? #f)) ;; No testsuite included in the gem.
2303 (synopsis "Common interface to multiple JSON libraries for Ruby")
2305 "This package provides a common interface to multiple JSON libraries,
2306 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
2307 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
2308 (home-page "http://github.com/intridea/multi_json")
2309 (license license:expat)))
2311 (define-public ruby-arel
2317 (uri (rubygems-uri "arel" version))
2320 "0nw0qbc6ph625p6n3maqq9f527vz3nbl0hk72fbyka8jzsmplxzl"))))
2321 (build-system ruby-build-system)
2322 (arguments '(#:tests? #f)) ; no tests
2323 (home-page "https://github.com/rails/arel")
2324 (synopsis "SQL AST manager for Ruby")
2325 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
2326 Ruby. It simplifies the generation of complex SQL queries and adapts to
2327 various relational database implementations.")
2328 (license license:expat)))
2330 (define-public ruby-minitar
2331 ;; We package from the GitHub source to fix the security issue reported at
2332 ;; https://github.com/halostatue/minitar/issues/16.
2333 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
2335 (name "ruby-minitar")
2336 (version (string-append "0.5.4-1." (string-take commit 8)))
2341 (url "https://github.com/halostatue/minitar.git")
2343 (file-name (string-append name "-" version "-checkout"))
2346 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
2347 (build-system ruby-build-system)
2349 '(#:tests? #f)) ; missing a gemspec
2350 (synopsis "Ruby library and utility for handling tar archives")
2352 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
2353 that provides the ability to deal with POSIX tar archive files.")
2354 (home-page "http://www.github.com/atoulme/minitar")
2355 (license (list license:gpl2+ license:ruby)))))
2357 (define-public ruby-mini-portile
2359 (name "ruby-mini-portile")
2364 (uri (rubygems-uri "mini_portile" version))
2367 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
2368 (build-system ruby-build-system)
2370 '(#:tests? #f)) ; tests require network access
2371 (synopsis "Ports system for Ruby developers")
2372 (description "Mini-portile is a port/recipe system for Ruby developers.
2373 It provides a standard way to compile against specific versions of libraries
2374 to reproduce user environments.")
2375 (home-page "https://github.com/flavorjones/mini_portile")
2376 (license license:expat)))
2378 (define-public ruby-mini-portile-2
2379 (package (inherit ruby-mini-portile)
2383 (uri (rubygems-uri "mini_portile2" version))
2386 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
2388 (define-public ruby-nokogiri
2390 (name "ruby-nokogiri")
2394 (uri (rubygems-uri "nokogiri" version))
2397 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
2398 (build-system ruby-build-system)
2400 ;; Tests fail because Nokogiri can only test with an installed extension,
2401 ;; and also because many test framework dependencies are missing.
2403 #:gem-flags (list "--" "--use-system-libraries"
2404 (string-append "--with-xml2-include="
2405 (assoc-ref %build-inputs "libxml2")
2406 "/include/libxml2" ))
2408 (modify-phases %standard-phases
2409 (add-before 'build 'patch-extconf
2410 ;; 'pkg-config' is not included in the GEM_PATH during
2411 ;; installation, so we add it directly to the load path.
2412 (lambda* (#:key inputs #:allow-other-keys)
2413 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
2414 (substitute* "ext/nokogiri/extconf.rb"
2415 (("gem 'pkg-config'.*")
2416 (string-append "$:.unshift '"
2417 pkg-config "/lib/ruby/vendor_ruby"
2419 ,(package-version ruby-pkg-config)
2423 `(("ruby-hoe" ,ruby-hoe)))
2426 ("libxml2" ,libxml2)
2427 ("libxslt" ,libxslt)))
2429 `(("ruby-mini-portile" ,ruby-mini-portile-2)
2430 ("ruby-pkg-config" ,ruby-pkg-config)))
2431 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
2432 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
2433 both CSS3 selector and XPath 1.0 support.")
2434 (home-page "http://www.nokogiri.org/")
2435 (license license:expat)))
2437 (define-public ruby-method-source
2439 (name "ruby-method-source")
2444 (uri (rubygems-uri "method_source" version))
2447 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
2448 (build-system ruby-build-system)
2450 `(#:test-target "spec"))
2452 `(("ruby-rspec" ,ruby-rspec)
2454 (synopsis "Retrieve the source code for Ruby methods")
2455 (description "Method_source retrieves the source code for Ruby methods.
2456 Additionally, it can extract source code from Proc and Lambda objects or just
2458 (home-page "https://github.com/banister/method_source")
2459 (license license:expat)))
2461 (define-public ruby-coderay
2463 (name "ruby-coderay")
2468 (uri (rubygems-uri "coderay" version))
2471 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
2472 (build-system ruby-build-system)
2474 '(#:tests? #f)) ; missing test files
2475 (synopsis "Ruby syntax highlighting library")
2476 (description "Coderay is a Ruby library that provides syntax highlighting
2477 for select languages.")
2478 (home-page "http://coderay.rubychan.de")
2479 (license license:expat)))
2481 (define-public ruby-progress_bar
2483 (name "ruby-progress_bar")
2488 (uri (rubygems-uri "progress_bar" version))
2491 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
2492 (build-system ruby-build-system)
2494 '(#:test-target "spec"))
2496 `(("ruby-highline" ,ruby-highline)
2497 ("ruby-options" ,ruby-options)))
2499 `(("bundler" ,bundler)
2500 ("ruby-rspec" ,ruby-rspec)
2501 ("ruby-timecop" ,ruby-timecop)))
2503 "Ruby library for displaying progress bars")
2505 "ProgressBar is a simple library for displaying progress bars. The
2506 maximum value is configurable, and additional information can be displayed
2507 like the percentage completion, estimated time remaining, elapsed time and
2509 (home-page "https://github.com/paul/progress_bar")
2510 (license license:wtfpl2)))
2512 (define-public ruby-pry
2519 (uri (rubygems-uri "pry" version))
2522 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
2523 (build-system ruby-build-system)
2525 '(#:tests? #f)) ; no tests
2527 `(("ruby-coderay" ,ruby-coderay)
2528 ("ruby-method-source" ,ruby-method-source)))
2529 (synopsis "Ruby REPL")
2530 (description "Pry is an IRB alternative and runtime developer console for
2531 Ruby. It features syntax highlighting, a plugin architecture, runtime
2532 invocation, and source and documentation browsing.")
2533 (home-page "https://pryrepl.org")
2534 (license license:expat)))
2536 (define-public ruby-guard
2542 ;; The gem does not include a Rakefile, nor does it contain a
2543 ;; gemspec file, nor does it come with the tests. This is why
2544 ;; we fetch the tarball from Github.
2545 (uri (string-append "https://github.com/guard/guard/archive/v"
2547 (file-name (string-append name "-" version ".tar.gz"))
2550 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
2551 (build-system ruby-build-system)
2553 `(#:tests? #f ; tests require cucumber
2555 (modify-phases %standard-phases
2556 (add-after 'unpack 'remove-git-ls-files
2557 (lambda* (#:key outputs #:allow-other-keys)
2558 (substitute* "guard.gemspec"
2559 (("git ls-files -z") "find . -type f -print0"))
2563 (zero? (system* "gem" "build" "guard.gemspec")))))))
2565 `(("ruby-formatador" ,ruby-formatador)
2566 ("ruby-listen" ,ruby-listen)
2567 ("ruby-lumberjack" ,ruby-lumberjack)
2568 ("ruby-nenv" ,ruby-nenv)
2569 ("ruby-notiffany" ,ruby-notiffany)
2570 ("ruby-pry" ,ruby-pry)
2571 ("ruby-shellany" ,ruby-shellany)
2572 ("ruby-thor" ,ruby-thor)))
2574 `(("bundler" ,bundler)
2575 ("ruby-rspec" ,ruby-rspec)))
2576 (synopsis "Tool to handle events on file system modifications")
2578 "Guard is a command line tool to easily handle events on file system
2579 modifications. Guard automates various tasks by running custom rules whenever
2580 file or directories are modified.")
2581 (home-page "http://guardgem.org/")
2582 (license license:expat)))
2584 (define-public ruby-thread-safe
2586 (name "ruby-thread-safe")
2591 (uri (rubygems-uri "thread_safe" version))
2594 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
2595 (build-system ruby-build-system)
2597 '(#:tests? #f)) ; needs simplecov, among others
2598 (synopsis "Thread-safe utilities for Ruby")
2599 (description "The thread_safe library provides thread-safe collections and
2600 utilities for Ruby.")
2601 (home-page "https://github.com/ruby-concurrency/thread_safe")
2602 (license license:asl2.0)))
2604 (define-public ruby-tzinfo
2606 (name "ruby-tzinfo")
2611 (uri (rubygems-uri "tzinfo" version))
2614 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
2615 (build-system ruby-build-system)
2617 `(("ruby-thread-safe" ,ruby-thread-safe)))
2618 (synopsis "Time zone library for Ruby")
2619 (description "TZInfo is a Ruby library that provides daylight savings
2620 aware transformations between times in different time zones.")
2621 (home-page "https://tzinfo.github.io")
2622 (license license:expat)))
2624 (define-public ruby-tzinfo-data
2626 (name "ruby-tzinfo-data")
2627 (version "1.2017.3")
2631 ;; Download from GitHub because the rubygems version does not contain
2632 ;; Rakefile or tests.
2634 "https://github.com/tzinfo/tzinfo-data/archive/v"
2637 (file-name (string-append name "-" version ".tar.gz"))
2640 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
2641 ;; Remove the known test failure.
2642 ;; https://github.com/tzinfo/tzinfo-data/issues/10
2643 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
2644 (patches (search-patches
2645 "ruby-tzinfo-data-ignore-broken-test.patch"))))
2646 (build-system ruby-build-system)
2648 `(("ruby-tzinfo" ,ruby-tzinfo)))
2649 (synopsis "Data from the IANA Time Zone database")
2651 "This library provides @code{TZInfo::Data}, which contains data from the
2652 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
2653 (home-page "https://tzinfo.github.io")
2654 (license license:expat)))
2656 (define-public ruby-rb-inotify
2658 (name "ruby-rb-inotify")
2663 (uri (rubygems-uri "rb-inotify" version))
2666 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
2667 (build-system ruby-build-system)
2669 '(#:tests? #f ; there are no tests
2671 (modify-phases %standard-phases
2672 ;; Building the gemspec with rake is not working here since it is
2673 ;; generated with Jeweler. It is also unnecessary because the
2674 ;; existing gemspec does not use any development tools to generate a
2678 (zero? (system* "gem" "build" "rb-inotify.gemspec")))))))
2680 `(("ruby-ffi" ,ruby-ffi)))
2682 `(("ruby-yard" ,ruby-yard)))
2683 (synopsis "Ruby wrapper for Linux's inotify")
2684 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
2685 kernel subsystem for monitoring changes to files and directories.")
2686 (home-page "https://github.com/nex3/rb-inotify")
2687 (license license:expat)))
2689 (define-public ruby-pry-editline
2691 (name "ruby-pry-editline")
2695 (uri (rubygems-uri "pry-editline" version))
2698 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
2699 (build-system ruby-build-system)
2700 (arguments `(#:tests? #f)) ; no tests included
2702 `(("bundler" ,bundler)))
2703 (synopsis "Open the current REPL line in an editor")
2705 "This gem provides a plugin for the Ruby REPL to enable opening the
2706 current line in an external editor.")
2707 (home-page "https://github.com/tpope/pry-editline")
2708 (license license:expat)))
2710 (define-public ruby-sdoc
2716 (uri (rubygems-uri "sdoc" version))
2719 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
2720 (build-system ruby-build-system)
2723 (modify-phases %standard-phases
2724 (add-before 'check 'set-rubylib-and-patch-gemfile
2726 (setenv "RUBYLIB" "lib")
2727 (substitute* "sdoc.gemspec"
2728 (("s.add_runtime_dependency.*") "\n")
2729 (("s.add_dependency.*") "\n"))
2730 (substitute* "Gemfile"
2732 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
2735 `(("ruby-json" ,ruby-json)))
2737 `(("bundler" ,bundler)
2738 ("ruby-minitest" ,ruby-minitest)
2739 ("ruby-hoe" ,ruby-hoe)))
2740 (synopsis "Generate searchable RDoc documentation")
2742 "SDoc is an RDoc documentation generator to build searchable HTML
2743 documentation for Ruby code.")
2744 (home-page "https://github.com/voloko/sdoc")
2745 (license license:expat)))
2747 (define-public ruby-tins
2753 (uri (rubygems-uri "tins" version))
2756 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
2757 (build-system ruby-build-system)
2758 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
2759 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
2762 `(#:tests? #f ; there are no tests
2764 (modify-phases %standard-phases
2767 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
2769 (substitute* "tins.gemspec"
2770 (("\"lib/spruz\", ") ""))
2771 (zero? (system* "gem" "build" "tins.gemspec")))))))
2772 (synopsis "Assorted tools for Ruby")
2773 (description "Tins is a Ruby library providing assorted tools.")
2774 (home-page "https://github.com/flori/tins")
2775 (license license:expat)))
2777 (define-public ruby-gem-hadar
2779 (name "ruby-gem-hadar")
2783 (uri (rubygems-uri "gem_hadar" version))
2786 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
2787 (build-system ruby-build-system)
2788 ;; This gem needs itself at development time. We disable rebuilding of the
2789 ;; gemspec to avoid this loop.
2791 `(#:tests? #f ; there are no tests
2793 (modify-phases %standard-phases
2796 (zero? (system* "gem" "build" "gem_hadar.gemspec")))))))
2799 ("ruby-tins" ,ruby-tins)
2800 ("ruby-yard" ,ruby-yard)))
2801 (synopsis "Library for the development of Ruby gems")
2803 "This library contains some useful functionality to support the
2804 development of Ruby gems.")
2805 (home-page "https://github.com/flori/gem_hadar")
2806 (license license:expat)))
2808 (define-public ruby-minitest-tu-shim
2810 (name "ruby-minitest-tu-shim")
2814 (uri (rubygems-uri "minitest_tu_shim" version))
2817 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
2818 (build-system ruby-build-system)
2821 (modify-phases %standard-phases
2822 (add-after 'unpack 'fix-test-include-path
2823 (lambda* (#:key inputs #:allow-other-keys)
2824 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
2825 (substitute* "Rakefile"
2826 (("Hoe\\.add_include_dirs .*")
2827 (string-append "Hoe.add_include_dirs \""
2828 minitest "/lib/ruby/vendor_ruby"
2830 ,(package-version ruby-minitest-4)
2833 (add-before 'check 'fix-test-assumptions
2835 ;; The test output includes the file name, so a couple of tests
2836 ;; fail. Changing the regular expressions slightly fixes this
2838 (substitute* "test/test_mini_test.rb"
2839 (("output.sub!\\(.*, 'FILE:LINE'\\)")
2840 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
2841 (("gsub\\(/.*, 'FILE:LINE'\\)")
2842 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
2845 `(("ruby-minitest-4" ,ruby-minitest-4)))
2847 `(("ruby-hoe" ,ruby-hoe)))
2848 (synopsis "Adapter library between minitest and test/unit")
2850 "This library bridges the gap between the small and fast minitest and
2851 Ruby's large and slower test/unit.")
2852 (home-page "https://rubygems.org/gems/minitest_tu_shim")
2853 (license license:expat)))
2855 (define-public ruby-term-ansicolor
2857 (name "ruby-term-ansicolor")
2861 (uri (rubygems-uri "term-ansicolor" version))
2864 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
2865 (build-system ruby-build-system)
2866 ;; Rebuilding the gemspec seems to require git, even though this is not a
2867 ;; git repository, so we just build the gem from the existing gemspec.
2870 (modify-phases %standard-phases
2873 (zero? (system* "gem" "build" "term-ansicolor.gemspec")))))))
2875 `(("ruby-tins" ,ruby-tins)))
2877 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2878 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
2879 (synopsis "Ruby library to control the attributes of terminal output")
2881 "This Ruby library uses ANSI escape sequences to control the attributes
2882 of terminal output.")
2883 (home-page "https://flori.github.io/term-ansicolor/")
2884 ;; There is no mention of the "or later" clause.
2885 (license license:gpl2)))
2887 (define-public ruby-pstree
2889 (name "ruby-pstree")
2893 (uri (rubygems-uri "pstree" version))
2896 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
2897 (build-system ruby-build-system)
2899 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2900 ("bundler" ,bundler)))
2901 (synopsis "Create a process tree data structure")
2903 "This library uses the output of the @code{ps} command to create a
2904 process tree data structure for the current host.")
2905 (home-page "https://github.com/flori/pstree")
2906 ;; There is no mention of the "or later" clause.
2907 (license license:gpl2)))
2909 (define-public ruby-utils
2915 (uri (rubygems-uri "utils" version))
2918 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
2919 (build-system ruby-build-system)
2921 `(("ruby-tins" ,ruby-tins)
2922 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
2923 ("ruby-pstree" ,ruby-pstree)
2924 ("ruby-pry-editline" ,ruby-pry-editline)))
2926 `(("ruby-gem-hadar" ,ruby-gem-hadar)
2927 ("bundler" ,bundler)))
2928 (synopsis "Command line tools for working with Ruby")
2930 "This package provides assorted command line tools that may be useful
2931 when working with Ruby code.")
2932 (home-page "https://github.com/flori/utils")
2933 ;; There is no mention of the "or later" clause.
2934 (license license:gpl2)))
2936 (define-public ruby-json
2943 (uri (rubygems-uri "json" version))
2946 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
2947 (build-system ruby-build-system)
2948 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
2949 (synopsis "JSON library for Ruby")
2950 (description "This Ruby library provides a JSON implementation written as
2951 a native C extension.")
2952 (home-page "http://json-jruby.rubyforge.org/")
2953 (license (list license:ruby license:gpl2)))) ; GPL2 only
2955 (define-public ruby-json-pure
2957 (name "ruby-json-pure")
2961 (uri (rubygems-uri "json_pure" version))
2964 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
2965 (build-system ruby-build-system)
2968 (modify-phases %standard-phases
2969 (add-after 'unpack 'fix-rakefile
2971 (substitute* "Rakefile"
2972 ;; Since this is not a git repository, do not call 'git'.
2973 (("`git ls-files`") "`find . -type f |sort`")
2974 ;; Loosen dependency constraint.
2975 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
2977 (add-after 'replace-git-ls-files 'regenerate-gemspec
2979 ;; Regenerate gemspec so loosened dependency constraints are
2981 (zero? (system* "rake" "gemspec")))))))
2983 `(("bundler" ,bundler)
2985 ("ruby-simplecov" ,ruby-simplecov)
2986 ("ruby-test-unit" ,ruby-test-unit)))
2987 (synopsis "JSON implementation in pure Ruby")
2989 "This package provides a JSON implementation written in pure Ruby.")
2990 (home-page "https://flori.github.com/json")
2991 (license license:ruby)))
2993 ;; Even though this package only provides bindings for a Mac OSX API it is
2994 ;; required by "ruby-listen" at runtime.
2995 (define-public ruby-rb-fsevent
2997 (name "ruby-rb-fsevent")
3001 (uri (rubygems-uri "rb-fsevent" version))
3004 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
3005 (build-system ruby-build-system)
3006 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
3007 ;; "listen", which needs "rb-fsevent" at runtime.
3008 (arguments `(#:tests? #f))
3009 (synopsis "FSEvents API with signals catching")
3011 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
3012 (home-page "https://rubygems.org/gems/rb-fsevent")
3013 (license license:expat)))
3015 (define-public ruby-listen
3017 (name "ruby-listen")
3022 (uri (rubygems-uri "listen" version))
3025 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
3026 (build-system ruby-build-system)
3027 (arguments '(#:tests? #f)) ; no tests
3029 `(("ruby-rb-inotify" ,ruby-rb-inotify)
3030 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
3031 (synopsis "Listen to file modifications")
3032 (description "The Listen gem listens to file modifications and notifies
3033 you about the changes.")
3034 (home-page "https://github.com/guard/listen")
3035 (license license:expat)))
3037 (define-public ruby-listen-3.0
3039 (inherit ruby-listen)
3043 (uri (rubygems-uri "listen" version))
3046 "1l0y7hbyfiwpvk172r28hsdqsifq1ls39hsfmzi1vy4ll0smd14i"))))))
3048 (define-public ruby-activesupport
3050 (name "ruby-activesupport")
3055 (uri (rubygems-uri "activesupport" version))
3058 "0ziy6xk31k4fs115cdkba1ys4i8nzcyri7a2jig7nx7k5h7li6l2"))))
3059 (build-system ruby-build-system)
3062 (modify-phases %standard-phases
3065 ;; There is no tests, instead attempt to load the library.
3066 (zero? (system* "ruby" "-Ilib" "-r" "active_support")))))))
3068 `(("ruby-concurrent" ,ruby-concurrent)
3069 ("ruby-i18n" ,ruby-i18n)
3070 ("ruby-minitest" ,ruby-minitest)
3071 ("ruby-tzinfo" ,ruby-tzinfo)
3072 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
3073 (synopsis "Ruby on Rails utility library")
3074 (description "ActiveSupport is a toolkit of support libraries and Ruby
3075 core extensions extracted from the Rails framework. It includes support for
3076 multibyte strings, internationalization, time zones, and testing.")
3077 (home-page "http://www.rubyonrails.org")
3078 (license license:expat)))
3080 (define-public ruby-crass
3086 (uri (rubygems-uri "crass" version))
3089 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
3090 (build-system ruby-build-system)
3092 `(("bundler" ,bundler)
3093 ("ruby-minitest" ,ruby-minitest)))
3094 (synopsis "Pure Ruby CSS parser")
3096 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
3097 (home-page "https://github.com/rgrove/crass/")
3098 (license license:expat)))
3100 (define-public ruby-nokogumbo
3101 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
3103 (name "ruby-nokogumbo")
3104 (version (string-append "1.4.7-1." (string-take commit 8)))
3106 ;; We use the git reference, because there's no Rakefile in the
3107 ;; published gem and the tarball on Github is outdated.
3110 (url "https://github.com/rubys/nokogumbo.git")
3111 (commit "d56f954d20a")))
3112 (file-name (string-append name "-" version "-checkout"))
3115 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
3116 (build-system ruby-build-system)
3118 `(#:modules ((guix build ruby-build-system)
3122 (modify-phases %standard-phases
3123 (add-after 'unpack 'build-gemspec
3125 (substitute* "Rakefile"
3126 ;; Build Makefile even without a copy of gumbo-parser sources
3127 (("'gumbo-parser/src',") "")
3128 ;; We don't bundle gumbo-parser sources
3129 (("'gumbo-parser/src/\\*',") "")
3130 (("'gumbo-parser/visualc/include/\\*',") "")
3131 ;; The definition of SOURCES will be cut in gemspec, and
3132 ;; "FileList" will be undefined.
3133 (("SOURCES \\+ FileList\\[")
3134 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
3136 ;; Copy the Rakefile and cut out the gemspec.
3137 (copy-file "Rakefile" ".gemspec")
3138 (with-atomic-file-replacement ".gemspec"
3140 (let loop ((line (read-line in 'concat))
3142 (if (eof-object? line)
3144 (let ((skip-next? (if skipping?
3145 (not (string-prefix? "SPEC =" line))
3146 (string-prefix? "end" line))))
3147 (when (or (not skipping?)
3148 (and skipping? (not skip-next?)))
3149 (format #t "~a" line)
3151 (loop (read-line in 'concat) skip-next?))))))
3154 `(("gumbo-parser" ,gumbo-parser)))
3156 `(("ruby-nokogiri" ,ruby-nokogiri)))
3157 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
3159 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
3160 access the result as a Nokogiri parsed document.")
3161 (home-page "https://github.com/rubys/nokogumbo/")
3162 (license license:asl2.0))))
3164 (define-public ruby-sanitize
3166 (name "ruby-sanitize")
3170 ;; The gem does not include the Rakefile, so we download the
3171 ;; release tarball from Github.
3172 (uri (string-append "https://github.com/rgrove/"
3173 "sanitize/archive/v" version ".tar.gz"))
3174 (file-name (string-append name "-" version ".tar.gz"))
3177 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
3178 (build-system ruby-build-system)
3180 `(("ruby-crass" ,ruby-crass)
3181 ("ruby-nokogiri" ,ruby-nokogiri)
3182 ("ruby-nokogumbo" ,ruby-nokogumbo)))
3184 `(("bundler" ,bundler)
3185 ("ruby-minitest" ,ruby-minitest)
3186 ("ruby-redcarpet" ,ruby-redcarpet)
3187 ("ruby-yard" ,ruby-yard)))
3188 (synopsis "Whitelist-based HTML and CSS sanitizer")
3190 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
3191 acceptable elements, attributes, and CSS properties, Sanitize will remove all
3192 unacceptable HTML and/or CSS from a string.")
3193 (home-page "https://github.com/rgrove/sanitize/")
3194 (license license:expat)))
3196 (define-public ruby-ox
3203 (uri (rubygems-uri "ox" version))
3206 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
3207 (build-system ruby-build-system)
3209 '(#:tests? #f)) ; no tests
3210 (synopsis "Optimized XML library for Ruby")
3212 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
3213 written as a native C extension. It was designed to be an alternative to
3214 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
3215 alternative to Marshal for Object serialization. ")
3216 (home-page "http://www.ohler.com/ox")
3217 (license license:expat)))
3219 (define-public ruby-redcloth
3221 (name "ruby-redcloth")
3225 (uri (rubygems-uri "RedCloth" version))
3228 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
3229 (build-system ruby-build-system)
3231 `(#:tests? #f ; no tests
3233 (modify-phases %standard-phases
3234 ;; Redcloth has complicated rake tasks to build various versions for
3235 ;; multiple targets using RVM. We don't want this so we just use the
3236 ;; existing gemspec.
3239 (zero? (system* "gem" "build" "redcloth.gemspec")))))))
3241 `(("bundler" ,bundler)
3242 ("ruby-diff-lcs" ,ruby-diff-lcs)
3243 ("ruby-rspec-2" ,ruby-rspec-2)))
3244 (synopsis "Textile markup language parser for Ruby")
3246 "RedCloth is a Ruby parser for the Textile markup language.")
3247 (home-page "http://redcloth.org")
3248 (license license:expat)))
3250 (define-public ruby-pg
3257 (uri (rubygems-uri "pg" version))
3260 "00vhasqwc4f98qb4wxqn2h07fjwzhp5lwyi41j2gndi2g02wrdqh"))))
3261 (build-system ruby-build-system)
3263 '(#:test-target "spec"))
3265 `(("ruby-rake-compiler" ,ruby-rake-compiler)
3266 ("ruby-hoe" ,ruby-hoe)
3267 ("ruby-rspec" ,ruby-rspec)))
3269 `(("postgresql" ,postgresql-9.6)))
3270 (synopsis "Ruby interface to PostgreSQL")
3271 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
3272 with PostgreSQL 8.4 and later.")
3273 (home-page "https://bitbucket.org/ged/ruby-pg")
3274 (license license:ruby)))
3276 (define-public ruby-byebug
3278 (name "ruby-byebug")
3283 (uri (rubygems-uri "byebug" version))
3286 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
3287 (build-system ruby-build-system)
3289 '(#:tests? #f)) ; no tests
3290 (synopsis "Debugger for Ruby 2")
3291 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
3292 TracePoint C API for execution control and the Debug Inspector C API for call
3293 stack navigation. The core component provides support that front-ends can
3294 build on. It provides breakpoint handling and bindings for stack frames among
3295 other things and it comes with a command line interface.")
3296 (home-page "https://github.com/deivid-rodriguez/byebug")
3297 (license license:bsd-2)))
3299 (define-public ruby-netrc
3305 (uri (rubygems-uri "netrc" version))
3308 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
3309 (build-system ruby-build-system)
3312 (modify-phases %standard-phases
3314 ;; There is no Rakefile and minitest can only run one file at once,
3315 ;; so we have to iterate over all test files.
3317 (and (map (lambda (file)
3318 (zero? (system* "ruby" "-Itest" file)))
3319 (find-files "./test" "test_.*\\.rb"))))))))
3321 `(("ruby-minitest" ,ruby-minitest)))
3322 (synopsis "Library to read and update netrc files")
3324 "This library can read and update netrc files, preserving formatting
3325 including comments and whitespace.")
3326 (home-page "https://github.com/geemus/netrc")
3327 (license license:expat)))
3329 (define-public ruby-unf-ext
3331 (name "ruby-unf-ext")
3335 (uri (rubygems-uri "unf_ext" version))
3338 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
3339 (build-system ruby-build-system)
3342 (modify-phases %standard-phases
3343 (add-after 'build 'build-ext
3344 (lambda _ (zero? (system* "rake" "compile:unf_ext")))))))
3346 `(("bundler" ,bundler)
3347 ("ruby-rake-compiler" ,ruby-rake-compiler)
3348 ("ruby-test-unit" ,ruby-test-unit)))
3349 (synopsis "Unicode normalization form support library")
3351 "This package provides unicode normalization form support for Ruby.")
3352 (home-page "https://github.com/knu/ruby-unf_ext")
3353 (license license:expat)))
3355 (define-public ruby-tdiff
3356 ;; Use a newer than released snapshot so that rspec-2 is not required.
3357 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
3360 (version (string-append "0.3.3-1." (string-take commit 8)))
3364 (url "https://github.com/postmodern/tdiff.git")
3366 (file-name (string-append name "-" version "-checkout"))
3369 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
3370 (build-system ruby-build-system)
3372 `(("ruby-rspec" ,ruby-rspec)
3373 ("ruby-yard" ,ruby-yard)
3374 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3375 (synopsis "Calculate the differences between two tree-like structures")
3377 "This library provides functions to calculate the differences between two
3378 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
3379 (home-page "https://github.com/postmodern/tdiff")
3380 (license license:expat))))
3382 (define-public ruby-nokogiri-diff
3383 ;; Use a newer than released snapshot so that rspec-2 is not required.
3384 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
3386 (name "ruby-nokogiri-diff")
3387 (version (string-append "0.2.0-1." (string-take commit 8)))
3391 (url "https://github.com/postmodern/nokogiri-diff.git")
3393 (file-name (string-append name "-" version "-checkout"))
3396 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
3397 (build-system ruby-build-system)
3399 `(("ruby-tdiff" ,ruby-tdiff)
3400 ("ruby-nokogiri" ,ruby-nokogiri)))
3402 `(("ruby-rspec" ,ruby-rspec)
3403 ("ruby-yard" ,ruby-yard)
3404 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
3405 (synopsis "Calculate the differences between two XML/HTML documents")
3407 "@code{Nokogiri::Diff} adds the ability to calculate the
3408 differences (added or removed nodes) between two XML/HTML documents.")
3409 (home-page "https://github.com/postmodern/nokogiri-diff")
3410 (license license:expat))))
3412 (define-public ruby-rack
3419 ;; Download from GitHub so that the patch can be applied.
3421 "https://github.com/rack/rack/archive/"
3424 (file-name (string-append name "-" version ".tar.gz"))
3427 "1k1k4wk10l6bxx46pw58j2p3nmyzjqnr65hbjjqydd6517fmxgib"))
3428 ;; Ignore test which fails inside the build environment but works
3430 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
3431 (build-system ruby-build-system)
3434 (modify-phases %standard-phases
3435 (add-before 'check 'fix-tests
3437 ;; A few of the tests use the length of a file on disk for
3438 ;; Content-Length and Content-Range headers. However, this file
3439 ;; has a shebang in it which an earlier phase patches, growing
3440 ;; the file size from 193 to 239 bytes when the store prefix is
3442 (let ((size-diff (- (string-length (which "ruby"))
3443 (string-length "/usr/bin/env ruby"))))
3444 (substitute* '("test/spec_file.rb")
3446 (number->string (+ 193 size-diff)))
3447 (("bytes(.)22-33" all delimiter)
3448 (string-append "bytes"
3450 (number->string (+ 22 size-diff))
3452 (number->string (+ 33 size-diff))))))
3455 `(("ruby-minitest" ,ruby-minitest)
3456 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
3459 `(("ruby-concurrent" ,ruby-concurrent)))
3460 (synopsis "Unified web application interface for Ruby")
3461 (description "Rack provides a minimal, modular and adaptable interface for
3462 developing web applications in Ruby. By wrapping HTTP requests and responses,
3463 it unifies the API for web servers, web frameworks, and software in between
3464 into a single method call.")
3465 (home-page "https://rack.github.io/")
3466 (license license:expat)))
3468 (define-public ruby-rack-test
3470 (name "ruby-rack-test")
3475 (uri (rubygems-uri "rack-test" version))
3478 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
3479 (build-system ruby-build-system)
3481 ;; Disable tests because of circular dependencies: requires sinatra,
3482 ;; which requires rack-protection, which requires rack-test. Instead
3483 ;; simply require the library.
3485 (modify-phases %standard-phases
3488 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
3490 `(("ruby-rack" ,ruby-rack)))
3491 (synopsis "Testing API for Rack applications")
3493 "Rack::Test is a small, simple testing API for Rack applications. It can
3494 be used on its own or as a reusable starting point for Web frameworks and
3495 testing libraries to build on.")
3496 (home-page "https://github.com/rack-test/rack-test")
3497 (license license:expat)))
3499 (define-public ruby-rack-protection
3501 (name "ruby-rack-protection")
3506 (uri (rubygems-uri "rack-protection" version))
3509 "1z5598qipilmnf45428jnxi63ykrgvnyywa5ckpr52zv2vpd8jdp"))))
3510 (build-system ruby-build-system)
3512 '(;; Tests missing from the gem.
3515 `(("ruby-rack" ,ruby-rack)))
3517 `(("bundler" ,bundler)
3518 ("ruby-rspec" ,ruby-rspec-2)
3519 ("ruby-rack-test" ,ruby-rack-test)))
3520 (synopsis "Rack middleware that protects against typical web attacks")
3521 (description "Rack middleware that can be used to protect against typical
3522 web attacks. It can protect all Rack apps, including Rails. For instance, it
3523 protects against cross site request forgery, cross site scripting,
3524 clickjacking, directory traversal, session hijacking and IP spoofing.")
3525 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
3526 (license license:expat)))
3528 (define-public ruby-contest
3530 (name "ruby-contest")
3535 (uri (rubygems-uri "contest" version))
3538 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
3539 (build-system ruby-build-system)
3540 (synopsis "Write declarative tests using nested contexts")
3542 "Contest allows writing declarative @code{Test::Unit} tests using nested
3543 contexts without performance penalties.")
3544 (home-page "https://github.com/citrusbyte/contest")
3545 (license license:expat)))
3547 (define-public ruby-creole
3549 (name "ruby-creole")
3554 (uri (rubygems-uri "creole" version))
3557 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
3558 (build-system ruby-build-system)
3560 `(("ruby-bacon" ,ruby-bacon)))
3561 (synopsis "Creole markup language converter")
3563 "Creole is a lightweight markup language and this library for converting
3564 creole to @code{HTML}.")
3565 (home-page "https://github.com/minad/creole")
3566 (license license:ruby)))
3568 (define-public ruby-docile
3570 (name "ruby-docile")
3575 (uri (rubygems-uri "docile" version))
3578 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
3579 (build-system ruby-build-system)
3581 '(#:tests? #f)) ; needs github-markup, among others
3582 (synopsis "Ruby EDSL helper library")
3583 (description "Docile is a Ruby library that provides an interface for
3584 creating embedded domain specific languages (EDSLs) that manipulate existing
3586 (home-page "https://ms-ati.github.io/docile/")
3587 (license license:expat)))
3589 (define-public ruby-gherkin
3591 (name "ruby-gherkin")
3596 (uri (rubygems-uri "gherkin" version))
3599 "1d18r8mf2qyd9jbq9xxvca8adyysdzvwdy8v9c2s5hrd6p02kg79"))))
3600 (build-system ruby-build-system)
3602 `(("bundler" ,bundler)))
3604 '(#:tests? #f)) ; needs simplecov, among others
3605 (synopsis "Gherkin parser for Ruby")
3606 (description "Gherkin is a parser and compiler for the Gherkin language.
3607 It is intended be used by all Cucumber implementations to parse '.feature'
3609 (home-page "https://github.com/cucumber/gherkin3")
3610 (license license:expat)))
3612 (define-public ruby-cucumber-core
3614 (name "ruby-cucumber-core")
3619 (uri (rubygems-uri "cucumber-core" version))
3622 "136hnvqv444qyxzcgy1k60y4i6cn3sn9lbqr4wan9dzz1yzllqbm"))))
3623 (build-system ruby-build-system)
3625 `(("ruby-gherkin" ,ruby-gherkin)))
3627 `(("bundler" ,bundler)))
3629 '(#:tests? #f)) ; needs simplecov, among others
3630 (synopsis "Core library for the Cucumber BDD app")
3631 (description "Cucumber is a tool for running automated tests
3632 written in plain language. Because they're written in plain language,
3633 they can be read by anyone on your team. Because they can be read by
3634 anyone, you can use them to help improve communication, collaboration
3635 and trust on your team.")
3636 (home-page "https://cucumber.io/")
3637 (license license:expat)))
3639 (define-public ruby-bio-logger
3641 (name "ruby-bio-logger")
3646 (uri (rubygems-uri "bio-logger" version))
3649 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
3650 (build-system ruby-build-system)
3652 `(#:tests? #f)) ; rake errors, missing shoulda
3654 `(("ruby-log4r" ,ruby-log4r)))
3655 (synopsis "Log4r wrapper for Ruby")
3656 (description "Bio-logger is a wrapper around Log4r adding extra logging
3657 features such as filtering and fine grained logging.")
3658 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
3659 (license license:expat)))
3661 (define-public ruby-yard
3668 ;; Tests do not pass if we build from the distributed gem.
3669 (uri (string-append "https://github.com/lsegal/yard/archive/v"
3671 (file-name (string-append name "-" version ".tar.gz"))
3674 "0rsz4bghgx7fryzyhlz8wlnd2m9xgyvf1xhrq58mnzfrrfm41bdg"))))
3675 (build-system ruby-build-system)
3678 (modify-phases %standard-phases
3681 ;; $HOME needs to be set to somewhere writeable for tests to run
3682 (setenv "HOME" "/tmp")
3683 ;; Run tests without using 'rake' to avoid dependencies.
3684 (zero? (system* "rspec")))))))
3686 `(("ruby-rspec" ,ruby-rspec)
3687 ("ruby-rack" ,ruby-rack)))
3688 (synopsis "Documentation generation tool for Ruby")
3690 "YARD is a documentation generation tool for the Ruby programming
3691 language. It enables the user to generate consistent, usable documentation
3692 that can be exported to a number of formats very easily, and also supports
3693 extending for custom Ruby constructs such as custom class level definitions.")
3694 (home-page "https://yardoc.org")
3695 (license license:expat)))
3697 (define-public ruby-clap
3703 (uri (rubygems-uri "clap" version))
3706 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
3707 (build-system ruby-build-system)
3708 ;; Clap needs cutest for running tests, but cutest needs clap.
3709 (arguments `(#:tests? #f))
3710 (synopsis "Command line argument parsing for simple applications")
3712 "Clap provides command line argument parsing features. It covers the
3713 simple case of executing code based on the flags or parameters passed.")
3714 (home-page "https://github.com/djanowski/cutest")
3715 (license license:expat)))
3717 (define-public ruby-cutest
3719 (name "ruby-cutest")
3723 (uri (rubygems-uri "cutest" version))
3726 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
3727 (build-system ruby-build-system)
3729 `(("ruby-clap" ,ruby-clap)))
3730 (synopsis "Run tests in separate processes")
3732 "Cutest runs tests in separate processes to avoid shared state.")
3733 (home-page "https://github.com/djanowski/cutest")
3734 (license license:expat)))
3736 (define-public ruby-pygmentize
3738 (name "ruby-pygmentize")
3742 (uri (rubygems-uri "pygmentize" version))
3745 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
3746 (build-system ruby-build-system)
3749 (modify-phases %standard-phases
3750 (add-after 'unpack 'fix-pygmentize-path
3752 (substitute* "lib/pygmentize.rb"
3753 (("\"/usr/bin/env python.*")
3754 (string-append "\"" (which "pygmentize") "\"\n")))
3756 (add-after 'build 'do-not-use-vendor-directory
3758 ;; Remove bundled pygments sources
3759 ;; FIXME: ruby-build-system does not support snippets.
3760 (delete-file-recursively "vendor")
3761 (substitute* "pygmentize.gemspec"
3762 (("\"vendor/\\*\\*/\\*\",") ""))
3765 `(("pygments" ,python-pygments)))
3767 `(("ruby-cutest" ,ruby-cutest)
3768 ("ruby-nokogiri" ,ruby-nokogiri)))
3769 (synopsis "Thin Ruby wrapper around pygmentize")
3771 "Pygmentize provides a simple way to call pygmentize from within a Ruby
3773 (home-page "https://github.com/djanowski/pygmentize")
3774 (license license:expat)))
3776 (define-public ruby-eventmachine
3778 (name "ruby-eventmachine")
3783 (uri (rubygems-uri "eventmachine" version))
3786 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
3787 (build-system ruby-build-system)
3789 '(#:tests? #f)) ; test suite tries to connect to google.com
3791 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
3792 (synopsis "Single-threaded network event framework for Ruby")
3794 "EventMachine implements a single-threaded engine for arbitrary network
3795 communications. EventMachine wraps all interactions with sockets, allowing
3796 programs to concentrate on the implementation of network protocols. It can be
3797 used to create both network servers and clients.")
3798 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
3799 (home-page "https://github.com/eventmachine/eventmachine")
3800 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
3802 (define-public ruby-ruby-engine
3804 (name "ruby-ruby-engine")
3809 (uri (rubygems-uri "ruby_engine" version))
3812 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
3813 (build-system ruby-build-system)
3816 (modify-phases %standard-phases
3817 (add-before 'check 'clean-up
3819 (delete-file "Gemfile.lock")
3820 (substitute* "ruby_engine.gemspec"
3821 ;; Remove unnecessary imports that would entail further
3824 ((".*<rubygems-tasks.*") "")
3825 ;; Remove extraneous .gem file
3826 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
3827 ;; Soften rake dependency
3828 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
3829 "%q<rake>.freeze, [\">= 10.0\"]")
3830 ;; Soften the rspec dependency
3831 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
3832 "%q<rspec>.freeze, [\">= 2.4\"]"))
3833 (substitute* "Rakefile"
3834 (("require 'rubygems/tasks'") "")
3835 (("Gem::Tasks.new") ""))
3836 ;; Remove extraneous .gem file that otherwise gets installed.
3837 (delete-file "pkg/ruby_engine-1.0.0.gem")
3840 `(("bundler" ,bundler)
3841 ("ruby-rake" ,ruby-rake)
3842 ("ruby-rspec" ,ruby-rspec)))
3843 (synopsis "Simplifies checking for Ruby implementation")
3845 "@code{ruby_engine} provides an RubyEngine class that can be used to
3846 check which implementation of Ruby is in use. It can provide the interpreter
3847 name and provides query methods such as @{RubyEngine.mri?}.")
3848 (home-page "https://github.com/janlelis/ruby_engine")
3849 (license license:expat)))
3851 (define-public ruby-turn
3858 (uri (rubygems-uri "turn" version))
3861 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
3862 (build-system ruby-build-system)
3865 (modify-phases %standard-phases
3866 ;; Tests fail because turn changes its environment so can no longer
3867 ;; find test/unit. Instead simply test if the executable runs
3871 (zero? (system* "ruby" "-Ilib" "bin/turn" "-h")))))))
3873 `(("ruby-ansi" ,ruby-ansi)
3874 ("ruby-minitest" ,ruby-minitest-4)))
3875 (synopsis "Alternate set of alternative runners for MiniTest")
3877 "TURN provides a set of alternative runners for MiniTest which are both
3878 colorful and informative. TURN displays each test on a separate line with
3879 failures being displayed immediately instead of at the end of the tests. Note
3880 that TURN is no longer being maintained.")
3881 (home-page "http://rubygems.org/gems/turn")
3882 (license license:expat)))
3884 (define-public ruby-mimemagic
3886 (name "ruby-mimemagic")
3891 (uri (rubygems-uri "mimemagic" version))
3894 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
3895 (build-system ruby-build-system)
3898 (modify-phases %standard-phases
3899 ;; This phase breaks the tests, as it patches some of the test data.
3900 (delete 'patch-source-shebangs))))
3902 `(("ruby-bacon" ,ruby-bacon)))
3903 (synopsis "Ruby library for MIME detection by extension or content")
3905 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
3906 extension or content, using the freedesktop.org.xml shared-mime-info
3908 (home-page "https://github.com/minad/mimemagic")
3909 (license license:expat)))
3911 (define-public ruby-mime-types-data
3913 (name "ruby-mime-types-data")
3914 (version "3.2016.0521")
3918 (uri (rubygems-uri "mime-types-data" version))
3921 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
3922 (build-system ruby-build-system)
3924 `(("ruby-hoe" ,ruby-hoe)))
3925 (synopsis "Registry for information about MIME media type definitions")
3927 "@code{mime-types-data} provides a registry for information about
3928 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
3929 be used with the Ruby mime-types library or other software to determine
3930 defined filename extensions for MIME types, or to use filename extensions to
3931 look up the likely MIME type definitions.")
3932 (home-page "https://github.com/mime-types/mime-types-data/")
3933 (license license:expat)))
3935 (define-public ruby-mime-types
3937 (name "ruby-mime-types")
3942 (uri (rubygems-uri "mime-types" version))
3945 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
3946 (build-system ruby-build-system)
3948 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
3950 `(("ruby-hoe" ,ruby-hoe)
3951 ("ruby-fivemat" ,ruby-fivemat)
3952 ("ruby-minitest-focus" ,ruby-minitest-focus)
3953 ("ruby-minitest-rg" ,ruby-minitest-rg)
3954 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
3955 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
3956 (synopsis "Library and registry for MIME content type definitions")
3957 (description "The mime-types library provides a library and registry for
3958 information about Multipurpose Internet Mail Extensions (MIME) content type
3959 definitions. It can be used to determine defined filename extensions for MIME
3960 types, or to use filename extensions to look up the likely MIME type
3962 (home-page "https://github.com/mime-types/ruby-mime-types")
3963 (license license:expat)))
3965 (define-public ruby-fivemat
3967 (name "ruby-fivemat")
3972 (uri (rubygems-uri "fivemat" version))
3975 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
3976 (build-system ruby-build-system)
3978 `(#:tests? #f)) ; no tests
3979 (synopsis "Each test file given its own line of dots")
3981 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
3982 its own line of dots during testing. It aims to provide test output that is
3983 neither too verbose nor too minimal.")
3984 (home-page "https://github.com/tpope/fivemat")
3985 (license license:expat)))
3987 (define-public ruby-sqlite3
3989 (name "ruby-sqlite3")
3994 (uri (rubygems-uri "sqlite3" version))
3997 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
3998 (build-system ruby-build-system)
4001 (modify-phases %standard-phases
4002 (add-before 'check 'adjust-failing-test
4004 ;; XXX: This test fails with SQLite versions >= 3.21.
4005 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
4006 (substitute* "test/test_integration_resultset.rb"
4007 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
4009 (add-before 'check 'add-gemtest-file
4010 ;; This file exists in the repository but is not distributed.
4011 (lambda _ (zero? (system* "touch" ".gemtest")))))))
4013 `(("sqlite" ,sqlite)))
4015 `(("ruby-hoe" ,ruby-hoe)
4016 ("ruby-rake-compiler" ,ruby-rake-compiler)
4017 ("ruby-mini-portile" ,ruby-mini-portile)))
4018 (synopsis "Interface with SQLite3 databases")
4020 "This module allows Ruby programs to interface with the SQLite3 database
4023 "https://github.com/sparklemotion/sqlite3-ruby")
4024 (license license:bsd-3)))
4026 (define-public ruby-shoulda-context
4028 (name "ruby-shoulda-context")
4033 (uri (rubygems-uri "shoulda-context" version))
4036 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
4037 (build-system ruby-build-system)
4040 (modify-phases %standard-phases
4043 ;; Do not run tests to avoid circular dependence with rails.
4044 ;; Instead just import the library to test.
4045 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-context")))))))
4046 (synopsis "Test::Unit context framework extracted from Shoulda")
4048 "@code{shoulda-context} is the context framework extracted from Shoulda.
4049 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
4050 context, setup, and should blocks combine to produce natural test method
4052 (home-page "https://github.com/thoughtbot/shoulda-context")
4053 (license license:expat)))
4055 (define-public ruby-shoulda-matchers
4057 (name "ruby-shoulda-matchers")
4062 (uri (rubygems-uri "shoulda-matchers" version))
4065 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
4066 (build-system ruby-build-system)
4069 (modify-phases %standard-phases
4072 ;; Do not run tests to avoid circular dependence with rails. Instead
4073 ;; just import the library to test.
4074 (zero? (system* "ruby" "-Ilib" "-r" "shoulda-matchers")))))))
4076 `(("ruby-activesupport" ,ruby-activesupport)))
4077 (synopsis "Collection of testing matchers extracted from Shoulda")
4079 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
4080 test common Rails functionality. These tests would otherwise be much longer,
4081 more complex, and error-prone.")
4082 (home-page "https://github.com/thoughtbot/shoulda-matchers")
4083 (license license:expat)))
4085 (define-public ruby-shoulda-matchers-2
4087 (inherit ruby-shoulda-matchers)
4091 (uri (rubygems-uri "shoulda-matchers" version))
4094 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
4096 (define-public ruby-shoulda
4098 (name "ruby-shoulda")
4103 (uri (rubygems-uri "shoulda" version))
4106 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
4107 (build-system ruby-build-system)
4110 (modify-phases %standard-phases
4112 ;; Don't run tests to avoid circular dependence with rails. Instead
4113 ;; just import the library to test.
4114 (lambda _ (zero? (system* "ruby" "-Ilib" "-r" "shoulda")))))))
4116 `(("ruby-shoulda-context" ,ruby-shoulda-context)
4117 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
4118 (synopsis "Context framework and matchers for testing")
4120 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
4121 @code{shoulda-matchers} providing tools for writing tests.")
4122 (home-page "https://github.com/thoughtbot/shoulda")
4123 (license license:expat)))
4125 (define-public ruby-unf
4132 (uri (rubygems-uri "unf" version))
4135 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
4136 (build-system ruby-build-system)
4139 (modify-phases %standard-phases
4140 (add-before 'check 'add-dependency-to-bundler
4142 ;; test-unit is required but not provided by the bundler
4143 ;; environment. This is fixed in the upstream repository but fix
4144 ;; has not been released.
4145 (substitute* "Gemfile"
4146 (("^gemspec") "gem 'test-unit'\ngemspec"))
4149 `(("ruby-unf-ext" ,ruby-unf-ext)))
4151 `(("ruby-shoulda" ,ruby-shoulda)
4152 ("bundler" ,bundler)
4153 ("ruby-test-unit" ,ruby-test-unit)))
4154 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
4156 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
4157 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
4158 @code{java.text.Normalizer} on JRuby.")
4159 (home-page "https://github.com/knu/ruby-unf")
4160 (license license:bsd-2)))
4162 (define-public ruby-domain-name
4164 (name "ruby-domain-name")
4165 (version "0.5.20180417")
4169 (uri (rubygems-uri "domain_name" version))
4172 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
4173 (build-system ruby-build-system)
4176 (modify-phases %standard-phases
4177 (add-before 'check 'fix-versions
4179 ;; Fix NameError that appears to already be fixed upstream.
4180 (substitute* "Rakefile"
4181 (("DomainName::VERSION")
4182 "Bundler::GemHelper.gemspec.version"))
4183 ;; Loosen unnecessarily strict test-unit version specification.
4184 (substitute* "domain_name.gemspec"
4185 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
4188 `(("ruby-unf" ,ruby-unf)))
4190 `(("ruby-shoulda" ,ruby-shoulda)
4191 ("bundler" ,bundler)
4192 ("ruby-test-unit" ,ruby-test-unit)))
4193 (synopsis "Domain name manipulation library")
4195 "@code{domain_name} is a Domain name manipulation library. It parses a
4196 domain name ready for extracting the registered domain and TLD (Top Level
4197 Domain). It can also be used for cookie domain validation based on the Public
4199 (home-page "https://github.com/knu/ruby-domain_name")
4200 (license license:bsd-2)))
4202 (define-public ruby-http-cookie
4204 (name "ruby-http-cookie")
4209 (uri (rubygems-uri "http-cookie" version))
4212 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
4213 (build-system ruby-build-system)
4216 (modify-phases %standard-phases
4217 (add-before 'check 'add-dependency-to-bundler
4220 (substitute* "Rakefile"
4221 (("HTTP::Cookie::VERSION")
4222 "Bundler::GemHelper.gemspec.version"))
4225 `(("ruby-domain-name" ,ruby-domain-name)))
4227 `(("rubysimplecov" ,ruby-simplecov)
4228 ("bundler" ,bundler)
4229 ("ruby-sqlite3" ,ruby-sqlite3)
4230 ("ruby-test-unit" ,ruby-test-unit)))
4231 (synopsis "Handle HTTP Cookies based on RFC 6265")
4233 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
4234 RFC 6265. It has been designed with security, standards compliance and
4235 compatibility in mind, to behave just the same as today's major web browsers.
4236 It has built-in support for the legacy @code{cookies.txt} and
4237 @code{cookies.sqlite} formats of Mozilla Firefox.")
4238 (home-page "https://github.com/sparklemotion/http-cookie")
4239 (license license:expat)))
4241 (define-public ruby-httpclient
4243 (name "ruby-httpclient")
4248 (uri (rubygems-uri "httpclient" version))
4251 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
4252 (build-system ruby-build-system)
4254 '(;; TODO: Some tests currently fail
4256 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
4257 ;; 2 omissions, 0 notifications
4260 ;; 6.49 tests/s, 22.41 assertions/s
4263 (modify-phases %standard-phases
4265 (lambda* (#:key tests? #:allow-other-keys)
4273 `(("ruby-rack" ,ruby-rack)))
4275 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
4277 "The @code{httpclient} ruby library provides functionality related to
4278 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
4279 Cookie, multithreading and authentication (digest, NTLM) support.
4281 Also provided is a @command{httpclient} command, which can perform HTTP
4282 requests either using arguments or with an interactive prompt.")
4283 (home-page "https://github.com/nahi/httpclient")
4284 (license license:ruby)))
4286 (define-public ruby-ansi
4293 ;; Fetch from GitHub as the gem does not contain testing code.
4294 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
4296 (file-name (string-append name "-" version ".tar.gz"))
4299 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
4300 (build-system ruby-build-system)
4303 (modify-phases %standard-phases
4304 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
4305 ;; cycle ansi, qed, ansi. Instead simply test that the library can
4309 (zero? (system* "ruby" "-Ilib" "-r" "ansi"))))
4310 (add-before 'validate-runpath 'replace-broken-symlink
4311 (lambda* (#:key outputs #:allow-other-keys)
4312 (let* ((out (assoc-ref outputs "out"))
4313 (file (string-append
4314 out "/lib/ruby/vendor_ruby/gems/ansi-"
4315 ,version "/lib/ansi.yml")))
4316 ;; XXX: This symlink is broken since ruby 2.4.
4317 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
4319 (symlink "../.index" file)
4321 (synopsis "ANSI escape code related libraries")
4323 "This package is a collection of ANSI escape code related libraries
4324 enabling ANSI colorization and stylization of console output. Included in the
4325 library are the @code{Code} module, which defines ANSI codes as constants and
4326 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
4327 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
4328 @code{Terminal} module which provides information about the current output
4330 (home-page "https://rubyworks.github.io/ansi")
4331 (license license:bsd-2)))
4333 (define-public ruby-systemu
4335 (name "ruby-systemu")
4340 (uri (rubygems-uri "systemu" version))
4343 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
4344 (build-system ruby-build-system)
4347 (modify-phases %standard-phases
4348 (add-before 'check 'set-version
4350 (setenv "VERSION" ,version)
4352 (synopsis "Capture of stdout/stderr and handling of child processes")
4354 "Systemu can be used on any platform to return status, stdout, and stderr
4355 of any command. Unlike other methods like @code{open3} and @code{popen4}
4356 there is no danger of full pipes or threading issues hanging your process or
4358 (home-page "https://github.com/ahoward/systemu")
4359 (license license:ruby)))
4361 (define-public ruby-bio-commandeer
4363 (name "ruby-bio-commandeer")
4368 (uri (rubygems-uri "bio-commandeer" version))
4371 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
4372 (build-system ruby-build-system)
4375 (modify-phases %standard-phases
4377 ;; Run test without calling 'rake' so that jeweler is
4378 ;; not required as an input.
4380 (zero? (system* "rspec" "spec/bio-commandeer_spec.rb")))))))
4382 `(("ruby-bio-logger" ,ruby-bio-logger)
4383 ("ruby-systemu" ,ruby-systemu)))
4385 `(("bundler" ,bundler)
4386 ("ruby-rspec" ,ruby-rspec)))
4387 (synopsis "Simplified running of shell commands from within Ruby")
4389 "Bio-commandeer provides an opinionated method of running shell commands
4390 from within Ruby. The advantage of bio-commandeer over other methods of
4391 running external commands is that when something goes wrong, messages printed
4392 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
4393 detail to ease debugging.")
4394 (home-page "https://github.com/wwood/bioruby-commandeer")
4395 (license license:expat)))
4397 (define-public ruby-rubytest
4399 (name "ruby-rubytest")
4404 (uri (rubygems-uri "rubytest" version))
4407 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
4408 (build-system ruby-build-system)
4410 ;; Disable regular testing to break the cycle rubytest, qed, brass,
4411 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
4412 ;; simply test that the library can be require'd.
4414 (modify-phases %standard-phases
4417 (zero? (system* "ruby" "-Ilib" "-r" "rubytest")))))))
4419 `(("ruby-ansi" ,ruby-ansi)))
4420 (synopsis "Universal test harness for Ruby")
4422 "Rubytest is a testing meta-framework for Ruby. It can handle any
4423 compliant test framework and can run tests from multiple frameworks in a
4425 (home-page "https://rubyworks.github.io/rubytest")
4426 (license license:bsd-2)))
4428 (define-public ruby-brass
4435 (uri (rubygems-uri "brass" version))
4438 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
4439 (build-system ruby-build-system)
4441 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
4442 ;; Instead simply test that the library can be require'd.
4444 (modify-phases %standard-phases
4447 (zero? (system* "ruby" "-Ilib" "-r" "brass")))))))
4448 (synopsis "Basic foundational assertions framework")
4450 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
4451 foundational assertions framework for other assertion and test frameworks to
4453 (home-page "https://rubyworks.github.io/brass")
4454 (license license:bsd-2)))
4456 (define-public ruby-qed
4463 (uri (rubygems-uri "qed" version))
4466 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
4467 (build-system ruby-build-system)
4469 ;; Disable testing to break the cycle qed, ansi, qed, among others.
4470 ;; Instead simply test that the executable runs using --copyright.
4472 (modify-phases %standard-phases
4475 (zero? (system* "ruby" "-Ilib" "bin/qed" "--copyright")))))))
4477 `(("ruby-ansi" ,ruby-ansi)
4478 ("ruby-brass" ,ruby-brass)))
4479 (synopsis "Test framework utilizing literate programming techniques")
4481 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
4482 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
4483 Development} (BDD) utilizing Literate Programming techniques. QED sits
4484 somewhere between lower-level testing tools like @code{Test::Unit} and
4485 requirement specifications systems like Cucumber.")
4486 (home-page "https://rubyworks.github.io/qed")
4487 (license license:bsd-2)))
4489 (define-public ruby-ae
4496 ;; Fetch from github so tests are included.
4498 "https://github.com/rubyworks/ae/archive/"
4500 (file-name (string-append name "-" version ".tar.gz"))
4503 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
4504 (build-system ruby-build-system)
4507 (modify-phases %standard-phases
4509 (lambda _ (zero? (system* "qed"))))
4510 (add-before 'validate-runpath 'replace-broken-symlink
4511 (lambda* (#:key outputs #:allow-other-keys)
4512 (let* ((out (assoc-ref outputs "out"))
4513 (file (string-append
4514 out "/lib/ruby/vendor_ruby/gems/ae-"
4515 ,version "/lib/ae.yml")))
4516 ;; XXX: This symlink is broken since ruby 2.4.
4517 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
4519 (symlink "../.index" file)
4522 `(("ruby-ansi" ,ruby-ansi)))
4524 `(("ruby-qed" ,ruby-qed)))
4525 (synopsis "Assertions library")
4527 "Assertive Expressive (AE) is an assertions library specifically designed
4528 for reuse by other test frameworks.")
4529 (home-page "https://rubyworks.github.io/ae")
4530 (license license:bsd-2)))
4532 (define-public ruby-lemon
4539 (uri (rubygems-uri "lemon" version))
4542 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
4543 (build-system ruby-build-system)
4546 (modify-phases %standard-phases
4547 (replace 'check (lambda _ (zero? (system* "qed")))))))
4549 `(("ruby-ae" ,ruby-ae)
4550 ("ruby-ansi" ,ruby-ansi)
4551 ("ruby-rubytest" ,ruby-rubytest)))
4553 `(("ruby-qed" ,ruby-qed)))
4554 (synopsis "Test framework correlating code structure and test unit")
4556 "Lemon is a unit testing framework that enforces highly formal
4557 case-to-class and unit-to-method test construction. This enforcement can help
4558 focus concern on individual units of behavior.")
4559 (home-page "https://rubyworks.github.io/lemon")
4560 (license license:bsd-2)))
4562 (define-public ruby-rubytest-cli
4564 (name "ruby-rubytest-cli")
4569 (uri (rubygems-uri "rubytest-cli" version))
4572 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
4573 (build-system ruby-build-system)
4575 `(#:tests? #f)) ; no tests
4577 `(("ruby-ansi" ,ruby-ansi)
4578 ("ruby-rubytest" ,ruby-rubytest)))
4579 (synopsis "Command-line interface for rubytest")
4581 "Rubytest CLI is a command-line interface for running tests for
4582 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
4583 (home-page "https://rubyworks.github.io/rubytest-cli")
4584 (license license:bsd-2)))
4586 (define-public ruby-hashery
4588 (name "ruby-hashery")
4593 (uri (rubygems-uri "hashery" version))
4596 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
4597 (build-system ruby-build-system)
4600 (modify-phases %standard-phases
4603 (and (zero? (system* "qed"))
4604 (zero? (system* "rubytest" "-Ilib" "-Itest" "test/"))))))))
4606 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
4607 ("ruby-qed" ,ruby-qed)
4608 ("ruby-lemon" ,ruby-lemon)))
4609 (synopsis "Hash-like classes with extra features")
4611 "The Hashery is a tight collection of @code{Hash}-like classes.
4612 Included are the auto-sorting @code{Dictionary} class, the efficient
4613 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
4614 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
4615 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
4616 standard @code{Hash} making it possible to subclass and augment to fit any
4617 specific use case.")
4618 (home-page "https://rubyworks.github.io/hashery")
4619 (license license:bsd-2)))
4621 (define-public ruby-rc4
4628 (uri (rubygems-uri "ruby-rc4" version))
4631 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
4632 (build-system ruby-build-system)
4635 (modify-phases %standard-phases
4638 (zero? (system* "rspec" "spec/rc4_spec.rb")))))))
4640 `(("ruby-rspec" ,ruby-rspec-2)))
4641 (synopsis "Implementation of the RC4 algorithm")
4643 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
4644 (home-page "https://github.com/caiges/Ruby-RC4")
4645 (license license:expat)))
4647 (define-public ruby-afm
4654 (uri (rubygems-uri "afm" version))
4657 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
4658 (build-system ruby-build-system)
4660 `(("bundler" ,bundler)))
4661 (synopsis "Read Adobe Font Metrics (afm) files")
4663 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
4664 files and use the data therein.")
4665 (home-page "https://github.com/halfbyte/afm")
4666 (license license:expat)))
4668 (define-public ruby-ascii85
4670 (name "ruby-ascii85")
4675 (uri (rubygems-uri "Ascii85" version))
4678 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
4679 (build-system ruby-build-system)
4681 `(("bundler" ,bundler)))
4682 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
4684 "This library provides methods to encode and decode Ascii85
4685 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
4686 @dfn{Portable Document Format} (PDF) file formats.")
4687 (home-page "https://github.com/datawraith/ascii85gem")
4688 (license license:expat)))
4690 (define-public ruby-ttfunk
4692 (name "ruby-ttfunk")
4697 ;; fetch from github as the gem does not contain testing code
4699 "https://github.com/prawnpdf/ttfunk/archive/"
4701 (file-name (string-append name "-" version ".tar.gz"))
4704 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
4705 (build-system ruby-build-system)
4707 `(#:test-target "spec"
4709 (modify-phases %standard-phases
4710 (add-before 'build 'remove-ssh
4712 ;; remove dependency on an ssh key pair that doesn't exist
4713 (substitute* "ttfunk.gemspec"
4714 (("spec.signing_key.*") ""))
4716 (add-before 'check 'remove-rubocop
4718 ;; remove rubocop as a dependency as not needed for testing
4719 (substitute* "ttfunk.gemspec"
4720 (("spec.add_development_dependency\\('rubocop'.*") ""))
4721 (substitute* "Rakefile"
4722 (("require 'rubocop/rake_task'") "")
4723 (("RuboCop::RakeTask.new") ""))
4726 `(("ruby-rspec" ,ruby-rspec)
4727 ("ruby-yard" ,ruby-yard)
4728 ("bundler" ,bundler)))
4729 (synopsis "Font metrics parser for the Prawn PDF generator")
4731 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
4732 part of the Prawn PDF generator.")
4733 (home-page "https://github.com/prawnpdf/ttfunk")
4734 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
4736 (license (list license:gpl2 license:gpl3 license:ruby))))
4738 (define-public ruby-puma
4745 ;; Fetch from GitHub because distributed gem does not contain tests.
4746 (uri (string-append "https://github.com/puma/puma/archive/v"
4748 (file-name (string-append name "-" version ".tar.gz"))
4751 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
4752 (build-system ruby-build-system)
4754 `(#:tests? #f ; Tests require an out-dated version of minitest.
4756 (modify-phases %standard-phases
4757 (add-before 'build 'fix-gemspec
4759 (substitute* "puma.gemspec"
4760 (("git ls-files") "find * |sort"))
4762 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
4764 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
4765 for Ruby/Rack applications. Puma is intended for use in both development and
4766 production environments. In order to get the best throughput, it is highly
4767 recommended that you use a Ruby implementation with real threads like Rubinius
4769 (home-page "http://puma.io")
4770 (license license:expat)))
4772 (define-public ruby-hoe-git
4774 (name "ruby-hoe-git")
4779 (uri (rubygems-uri "hoe-git" version))
4782 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
4783 (build-system ruby-build-system)
4785 `(("ruby-hoe" ,ruby-hoe)
4787 (synopsis "Hoe plugins for tighter Git integration")
4789 "This package provides a set of Hoe plugins for tighter Git integration.
4790 It provides tasks to automate release tagging and pushing and changelog
4792 (home-page "https://github.com/jbarnette/hoe-git")
4793 (license license:expat)))
4795 (define-public ruby-sequel
4797 (name "ruby-sequel")
4802 (uri (rubygems-uri "sequel" version))
4805 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
4806 (build-system ruby-build-system)
4808 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
4809 (synopsis "Database toolkit for Ruby")
4810 (description "Sequel provides thread safety, connection pooling and a
4811 concise DSL for constructing SQL queries and table schemas. It includes a
4812 comprehensive ORM layer for mapping records to Ruby objects and handling
4813 associated records.")
4814 (home-page "http://sequel.jeremyevans.net")
4815 (license license:expat)))
4817 (define-public ruby-timecop
4819 (name "ruby-timecop")
4824 (uri (rubygems-uri "timecop" version))
4827 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
4828 (build-system ruby-build-system)
4831 (modify-phases %standard-phases
4832 (add-before 'check 'set-check-rubylib
4834 ;; Set RUBYLIB so timecop tests finds its own lib.
4835 (setenv "RUBYLIB" "lib")
4838 `(("bundler" ,bundler)
4839 ("ruby-minitest-rg" ,ruby-minitest-rg)
4840 ("ruby-mocha" ,ruby-mocha)
4841 ("ruby-activesupport" ,ruby-activesupport)))
4842 (synopsis "Test mocks for time-dependent functions")
4844 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
4845 making it easier to test time-dependent code. It provides a unified method to
4846 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
4848 (home-page "https://github.com/travisjeffery/timecop")
4849 (license license:expat)))
4851 (define-public ruby-concurrent
4853 (name "ruby-concurrent")
4858 ;; Download from GitHub because the rubygems version does not contain
4861 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
4864 (file-name (string-append name "-" version ".tar.gz"))
4867 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
4868 ;; Exclude failing test reported at
4869 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
4870 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
4871 "ruby-concurrent-test-arm.patch"))))
4872 (build-system ruby-build-system)
4874 `(#:test-target "spec"
4876 (modify-phases %standard-phases
4877 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
4879 ;; Delete extra gemspec files so 'first-gemspec' chooses the
4881 (delete-file "concurrent-ruby-edge.gemspec")
4882 (delete-file "concurrent-ruby-ext.gemspec")
4884 (add-before 'build 'replace-git-ls-files2
4886 (substitute* "support/file_map.rb"
4887 (("git ls-files") "find * |sort"))
4889 (add-before 'check 'rake-compile
4890 ;; Fix the test error described at
4891 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
4892 (lambda _ (zero? (system* "rake" "compile"))))
4893 (add-before 'check 'remove-timecop-dependency
4894 ;; Remove timecop-dependent tests as having timecop as a depedency
4895 ;; causes circular depedencies.
4897 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
4898 (delete-file "spec/concurrent/scheduled_task_spec.rb")
4901 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4902 ("ruby-rspec" ,ruby-rspec)))
4903 (synopsis "Concurrency tools for Ruby")
4905 "This library provides modern concurrency tools including agents,
4906 futures, promises, thread pools, actors, supervisors, and more. It is
4907 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
4909 (home-page "http://www.concurrent-ruby.com")
4910 (license license:expat)))
4912 (define-public ruby-pkg-config
4914 (name "ruby-pkg-config")
4919 (uri (rubygems-uri "pkg-config" version))
4922 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
4923 (build-system ruby-build-system)
4925 ;; Tests require extra files not included in the gem.
4927 (synopsis "Detect libraries for compiling Ruby native extensions")
4929 "@code{pkg-config} can be used in your extconf.rb to properly detect need
4930 libraries for compiling Ruby native extensions.")
4931 (home-page "https://github.com/ruby-gnome2/pkg-config")
4932 (license license:lgpl2.0+)))
4934 (define-public ruby-net-http-digest-auth
4936 (name "ruby-net-http-digest-auth")
4941 (uri (rubygems-uri "net-http-digest_auth" version))
4944 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
4945 (build-system ruby-build-system)
4947 `(("ruby-hoe" ,ruby-hoe)))
4948 (synopsis "RFC 2617 HTTP digest authentication library")
4950 "This library implements HTTP's digest authentication scheme based on
4951 RFC 2617. This enables the use of the digest authentication scheme instead
4952 of the more insecure basic authentication scheme.")
4953 (home-page "https://github.com/drbrain/net-http-digest_auth")
4954 (license license:expat)))
4956 (define-public ruby-mail
4963 (uri (rubygems-uri "mail" version))
4966 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
4967 (build-system ruby-build-system)
4969 `(("ruby-mime-types" ,ruby-mime-types)))
4971 ;; Tests require extra gems not included in the Gemfile.
4972 ;; XXX: Try enabling this for the next version with mini_mime.
4974 (synopsis "Mail library for Ruby")
4976 "Mail is an internet library for Ruby that is designed to handle email
4977 generation, parsing and sending. The purpose of this library is to provide
4978 a single point of access to handle all email functions, including sending
4979 and receiving emails. All network type actions are done through proxy
4980 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
4982 Mail has been designed with a very simple object oriented system that
4983 really opens up the email messages you are parsing, if you know what you
4984 are doing, you can fiddle with every last bit of your email directly.")
4985 (home-page "https://github.com/mikel/mail")
4986 (license license:expat)))
4988 (define-public ruby-code-statistics
4990 (name "ruby-code-statistics")
4995 (uri (rubygems-uri "code_statistics" version))
4998 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
4999 (build-system ruby-build-system)
5001 `(#:tests? #f)) ; Not all test code is included in gem.
5002 (synopsis "Port of the rails 'rake stats' method")
5004 "This gem is a port of the rails 'rake stats' method so it can be made
5005 more robust and work for non rails projects.")
5006 (home-page "http://github.com/danmayer/code_statistics")
5007 (license license:expat)))
5009 (define-public ruby-rubypants
5011 (name "ruby-rubypants")
5015 (uri (rubygems-uri "rubypants" version))
5018 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
5019 (build-system ruby-build-system)
5021 '(#:tests? #f)) ; need Codecov
5022 (synopsis "Port of the smart-quotes library SmartyPants")
5024 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
5025 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
5026 and BBEdit that easily translates plain ASCII punctuation characters into
5027 smart typographic punctuation HTML entities.")
5028 (home-page "https://github.com/jmcnevin/rubypants")
5029 (license license:bsd-2)))
5031 (define-public ruby-org-ruby
5033 (name "ruby-org-ruby")
5037 (uri (rubygems-uri "org-ruby" version))
5040 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
5041 (build-system ruby-build-system)
5043 '(#:tests? #f)) ; no rakefile
5045 `(("ruby-rubypants" ,ruby-rubypants)))
5046 (synopsis "Org-mode parser written in Ruby")
5048 "Org-ruby is an org-mode parser written in Ruby. The most significant
5049 thing this library does today is convert org-mode files to HTML or Textile or
5051 (home-page "https://github.com/wallyqs/org-ruby")
5052 (license license:expat)))
5054 (define-public ruby-rake
5061 (uri (rubygems-uri "rake" version))
5064 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
5065 (build-system ruby-build-system)
5067 `(("bundler" ,bundler)))
5068 (synopsis "Rake is a Make-like program implemented in Ruby")
5070 "Rake is a Make-like program where tasks and dependencies are specified
5071 in standard Ruby syntax.")
5072 (home-page "https://github.com/ruby/rake")
5073 (license license:expat)))
5075 (define-public ruby-childprocess-0.6
5077 (name "ruby-childprocess")
5082 (uri (rubygems-uri "childprocess" version))
5085 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
5086 (build-system ruby-build-system)
5090 `(("bundler" ,bundler)
5091 ("ruby-rspec" ,ruby-rspec)))
5093 `(("ruby-ffi" ,ruby-ffi)))
5094 (synopsis "Control external programs running in the background, in Ruby")
5095 (description "@code{childprocess} provides a gem to control external
5096 programs running in the background, in Ruby.")
5097 (home-page "http://github.com/enkessler/childprocess")
5098 (license license:expat)))
5100 (define-public ruby-childprocess
5102 (inherit ruby-childprocess-0.6)
5103 (name "ruby-childprocess")
5108 (uri (rubygems-uri "childprocess" version))
5111 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
5113 (define-public ruby-public-suffix
5115 (name "ruby-public-suffix")
5119 (uri (rubygems-uri "public_suffix" version))
5122 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
5123 (build-system ruby-build-system)
5125 ;; Tests require network
5127 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
5128 (synopsis "Domain name parser")
5129 (description "The gem @code{public_suffix} is a domain name parser,
5130 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
5131 is one under which Internet users can (or historically could) directly
5132 register names. Some examples of public suffixes are @code{.com},
5133 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
5134 all known public suffixes.")
5135 (license license:expat)))
5137 (define-public ruby-addressable
5139 (name "ruby-addressable")
5143 (uri (rubygems-uri "addressable" version))
5146 "0viqszpkggqi8hq87pqp0xykhvz60g99nwmkwsb0v45kc2liwxvk"))))
5147 (build-system ruby-build-system)
5149 `(("ruby-public-suffix" ,ruby-public-suffix)))
5153 (home-page "https://github.com/sporkmonger/addressable")
5154 (synopsis "Alternative URI implementation")
5155 (description "Addressable is a replacement for the URI implementation that
5156 is part of Ruby's standard library. It more closely conforms to RFC 3986,
5157 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
5158 (license license:asl2.0)))
5160 (define-public ruby-colorator
5162 (name "ruby-colorator")
5166 (uri (rubygems-uri "colorator" version))
5169 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
5170 (build-system ruby-build-system)
5174 (home-page "http://octopress.org/colorator/")
5175 (synopsis "Terminal color library")
5176 (description "Colorator is a Ruby gem that helps you colorize your text
5178 (license license:expat)))
5180 (define-public ruby-command-line-reporter
5182 (name "ruby-command-line-reporter")
5186 (uri (rubygems-uri "command_line_reporter" version))
5189 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
5190 (build-system ruby-build-system)
5195 (modify-phases %standard-phases
5196 (add-before 'build 'fix-dependencies
5198 (substitute* ".gemspec"
5199 ;; colored is unmaintained
5200 (("colored") "colorator")
5201 ;; colorator version
5202 (("= 1.2") "= 1.1"))
5204 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
5205 (home-page "https://github.com/wbailey/command_line_reporter")
5206 (synopsis "Report production while executing Ruby scripts")
5207 (description "This gem provides a DSL that makes it easy to write reports
5208 of various types in ruby. It eliminates the need to litter your source with
5209 puts statements, instead providing a more readable, expressive interface to
5211 (license license:asl2.0)))
5213 (define-public ruby-command-line-reporter-3
5215 (inherit ruby-command-line-reporter)
5219 (uri (rubygems-uri "command_line_reporter" version))
5222 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
5224 (define-public ruby-rdoc
5231 (uri (rubygems-uri "rdoc" version))
5234 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
5235 (build-system ruby-build-system)
5237 `(("bundler" ,bundler)))
5238 (home-page "https://ruby.github.io/rdoc/")
5239 (synopsis "HTML and command-line documentation utility")
5240 (description "RDoc produces HTML and command-line documentation for Ruby
5241 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
5242 documentation from the command-line.")
5243 (license license:gpl2+)))
5245 (define-public ruby-sass-listen
5247 (name "ruby-sass-listen")
5251 (uri (rubygems-uri "sass-listen" version))
5254 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
5255 (build-system ruby-build-system)
5260 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
5261 ("ruby-rb-inotify" ,ruby-rb-inotify)))
5262 (home-page "https://github.com/sass/listen")
5263 (synopsis "File modification notification library")
5264 (description "The Listen gem listens to file modifications and notifies you
5265 about the changes.")
5266 (license license:expat)))
5268 (define-public ruby-terminfo
5270 (name "ruby-terminfo")
5275 (uri (rubygems-uri "ruby-terminfo" version))
5278 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
5279 (build-system ruby-build-system)
5281 `(#:test-target "test"
5282 ;; Rakefile requires old packages and would need modification to
5283 ;; work with current software.
5286 `(("ncurses" ,ncurses)))
5288 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
5289 ("ruby-rdoc" ,ruby-rdoc)))
5290 (home-page "http://www.a-k-r.org/ruby-terminfo/")
5291 (synopsis "Terminfo binding for Ruby")
5292 (description "Ruby-terminfo provides terminfo binding for Ruby.")
5293 (license license:bsd-3)))
5295 (define-public ruby-diffy
5302 (uri (rubygems-uri "diffy" version))
5305 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
5306 (build-system ruby-build-system)
5311 `(("ruby-rspec" ,ruby-rspec)))
5312 (home-page "https://github.com/samg/diffy")
5313 (synopsis "Convenient diffing in ruby")
5314 (description "Diffy provides a convenient way to generate a diff from two
5316 (license license:expat)))
5318 (define-public ruby-sass-spec
5320 (name "ruby-sass-spec")
5324 (uri (string-append "https://github.com/sass/sass-spec/archive/v"
5326 (file-name (string-append name "-" version ".tar.gz"))
5329 "0nx8lp7c9qa58w489crgqa3c489xsyarn1a8h4np9mwwfqm1h3rr"))))
5330 (build-system ruby-build-system)
5332 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
5333 ("ruby-diffy" ,ruby-diffy)
5334 ("ruby-terminfo" ,ruby-terminfo)))
5338 (home-page "https://github.com/sass/sass-spec")
5339 (synopsis "Test suite for Sass")
5340 (description "Sass Spec is a test suite for Sass. Test cases are all in
5341 the @file{spec} directory.")
5342 (license license:expat)))
5344 (define-public ruby-sass
5350 (uri (rubygems-uri "sass" version))
5353 "1sy7xsbgpcy90j5ynbq967yplffp74pvph3r8ivn2sv2b44q6i61"))))
5354 (build-system ruby-build-system)
5356 `(("ruby-sass-listen" ,ruby-sass-listen)))
5358 `(("ruby-sass-spec" ,ruby-sass-spec)))
5359 (home-page "http://sass-lang.com/")
5360 (synopsis "CSS extension language")
5361 (description "Sass is a CSS extension language. It extends CSS with
5362 features that don't exist yet like variables, nesting, mixins and inheritance.")
5363 (license license:expat)))
5365 (define-public ruby-jekyll-sass-converter
5367 (name "ruby-jekyll-sass-converter")
5371 (uri (rubygems-uri "jekyll-sass-converter" version))
5374 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
5375 (build-system ruby-build-system)
5377 `(("ruby-sass" ,ruby-sass)))
5381 (home-page "https://github.com/jekyll/jekyll-sass-converter")
5382 (synopsis "Sass converter for Jekyll")
5383 (description "This gem provide built-in support for the Sass converter
5385 (license license:expat)))
5387 (define-public ruby-jekyll-watch
5389 (name "ruby-jekyll-watch")
5393 (uri (rubygems-uri "jekyll-watch" version))
5396 "0m7scvj3ki8bmyx5v8pzibpg6my10nycnc28lip98dskf8iakprp"))))
5397 (build-system ruby-build-system)
5399 `(("ruby-listen-3.0" ,ruby-listen-3.0)))
5403 (home-page "https://github.com/jekyll/jekyll-watch")
5404 (synopsis "Jekyll auto-rebuild support")
5405 (description "This gems add the @code{--watch} switch to the jekyll CLI
5406 interface. It allows Jekyll to rebuild your site when a file changes.")
5407 (license license:expat)))
5409 (define-public ruby-parallel
5411 (name "ruby-parallel")
5415 (uri (rubygems-uri "parallel" version))
5418 "01hj8v1qnyl5ndrs33g8ld8ibk0rbcqdpkpznr04gkbxd11pqn67"))))
5419 (build-system ruby-build-system)
5420 (arguments `(#:tests? #f)); No rakefile
5421 (home-page "https://github.com/grosser/parallel")
5422 (synopsis "Parallel processing in Ruby")
5423 (description "Parallel allows you to run any code in parallel Processes
5424 (to use all CPUs) or Threads(to speedup blocking operations). It is best
5425 suited for map-reduce or e.g. parallel downloads/uploads.")
5426 (license license:expat)))
5428 (define-public ruby-cane
5434 (uri (rubygems-uri "cane" version))
5437 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
5438 (build-system ruby-build-system)
5439 (arguments `(#:tests? #f)); No rakefile
5440 (home-page "https://github.com/square/cane")
5442 `(("ruby-parallel" ,ruby-parallel)))
5443 (synopsis "Code quality threshold checking")
5444 (description "Cane fails your build if code quality thresholds are not met.")
5445 (license license:asl2.0)))
5447 (define-public ruby-morecane
5449 (name "ruby-morecane")
5453 (uri (rubygems-uri "morecane" version))
5456 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
5457 (build-system ruby-build-system)
5458 (home-page "https://github.com/yob/morecane")
5459 (arguments `(#:tests? #f)); No rakefile
5461 `(("ruby-parallel" ,ruby-parallel)))
5462 (synopsis "Extra checks for cane")
5463 (description "The cane gem provides a great framework for running quality
5464 checks over your ruby project as part of continuous integration build. It
5465 comes with a few checks out of the box, but also provides an API for loading
5466 custom checks. This gem provides a set of additional checks.")
5467 (license license:expat)))