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, 2019 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, 2018 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>
13 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
14 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; This file is part of GNU Guix.
18 ;;; GNU Guix is free software; you can redistribute it and/or modify it
19 ;;; under the terms of the GNU General Public License as published by
20 ;;; the Free Software Foundation; either version 3 of the License, or (at
21 ;;; your option) any later version.
23 ;;; GNU Guix is distributed in the hope that it will be useful, but
24 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
25 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26 ;;; GNU General Public License for more details.
28 ;;; You should have received a copy of the GNU General Public License
29 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
31 (define-module (gnu packages ruby)
32 #:use-module ((guix licenses) #:prefix license:)
33 #:use-module (gnu packages)
34 #:use-module (gnu packages base)
35 #:use-module (gnu packages check)
36 #:use-module (gnu packages compression)
37 #:use-module (gnu packages databases)
38 #:use-module (gnu packages dbm)
39 #:use-module (gnu packages rails)
40 #:use-module (gnu packages readline)
41 #:use-module (gnu packages autotools)
42 #:use-module (gnu packages java)
43 #:use-module (gnu packages libffi)
44 #:use-module (gnu packages libidn)
45 #:use-module (gnu packages linux)
46 #:use-module (gnu packages lsof)
47 #:use-module (gnu packages maths)
48 #:use-module (gnu packages ncurses)
49 #:use-module (gnu packages networking)
50 #:use-module (gnu packages python)
51 #:use-module (gnu packages python-xyz)
52 #:use-module (gnu packages ragel)
53 #:use-module (gnu packages sqlite)
54 #:use-module (gnu packages tls)
55 #:use-module (gnu packages version-control)
56 #:use-module (guix packages)
57 #:use-module (guix download)
58 #:use-module (guix git-download)
59 #:use-module (guix utils)
60 #:use-module (guix build-system gnu)
61 #:use-module (gnu packages xml)
62 #:use-module (gnu packages web)
63 #:use-module (guix build-system ruby)
64 #:use-module ((srfi srfi-1) #:select (alist-delete)))
73 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
74 (version-major+minor version)
75 "/ruby-" version ".tar.xz"))
78 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
79 (modules '((guix build utils)))
81 ;; Remove bundled libffi
82 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
84 (build-system gnu-build-system)
86 `(#:test-target "test"
88 (modify-phases %standard-phases
89 (add-before 'configure 'replace-bin-sh-and-remove-libffi
91 (substitute* '("Makefile.in"
96 "test/rubygems/test_gem_ext_configure_builder.rb"
97 "test/rdoc/test_rdoc_parser.rb"
98 "test/ruby/test_rubyoptions.rb"
99 "test/ruby/test_process.rb"
100 "test/ruby/test_system.rb"
102 (("/bin/sh") (which "sh")))
105 `(("readline" ,readline)
111 (list (search-path-specification
112 (variable "GEM_PATH")
113 (files (list (string-append "lib/ruby/vendor_ruby"))))))
114 (synopsis "Programming language interpreter")
115 (description "Ruby is a dynamic object-oriented programming language with
116 a focus on simplicity and productivity.")
117 (home-page "https://www.ruby-lang.org")
118 (license license:ruby)))
120 (define-public ruby-2.4
127 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
128 (version-major+minor version)
129 "/ruby-" version ".tar.xz"))
132 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
133 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
134 (modules '((guix build utils)))
136 ;; Remove bundled libffi
137 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
140 (define-public ruby-2.3
147 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
148 (version-major+minor version)
149 "/ruby-" version ".tar.xz"))
152 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
153 (modules '((guix build utils)))
155 ;; Remove bundled libffi
156 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
159 (define-public ruby-commander
161 (name "ruby-commander")
166 (uri (rubygems-uri "commander" version))
169 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
170 (build-system ruby-build-system)
172 `(#:test-target "spec"
174 (modify-phases %standard-phases
175 ;; Don't run or require rubocop, the code linting tool, as this is a
177 (add-after 'unpack 'dont-run-rubocop
179 (substitute* "Rakefile"
181 ((".*RuboCop.*") ""))
184 `(("ruby-highline" ,ruby-highline)))
186 `(("bundler" ,bundler)
187 ("ruby-rspec-core" ,ruby-rspec-core)
188 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
189 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
190 ("ruby-simplecov" ,ruby-simplecov)))
191 (home-page "https://github.com/commander-rb/commander")
192 (synopsis "Library for building Ruby command-line executables")
194 "Commander aims to be a complete solution for Ruby command-line
195 executables. Commander bridges the gap between other terminal related
196 libraries (OptionParser, HighLine), while providing many new features, and an
198 (license license:expat)))
200 (define-public ruby-highline
202 (name "ruby-highline")
207 (uri (rubygems-uri "highline" version))
210 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
211 (build-system ruby-build-system)
213 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
215 `(("bundler" ,bundler)
216 ("ruby-code-statistics" ,ruby-code-statistics)))
218 "HighLine helps you build command-line interfaces")
220 "HighLine provides a high-level IO library that provides validation,
221 type conversion, and more for command-line interfaces. HighLine also includes
222 a menu system for providing multiple options to the user.")
223 (home-page "https://github.com/JEG2/highline")
224 (license (list license:gpl2 license:ruby))))
226 (define-public ruby-hoe
232 (uri (rubygems-uri "hoe" version))
235 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
236 (build-system ruby-build-system)
237 (synopsis "Ruby project management helper")
239 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
240 maintain, and release projects and includes a dynamic plug-in system allowing
241 for easy extensibility. Hoe ships with plug-ins for all the usual project
242 tasks including rdoc generation, testing, packaging, deployment, and
244 (home-page "https://www.zenspider.com/projects/hoe.html")
245 (license license:expat)))
247 (define-public ruby-rake-compiler
249 (name "ruby-rake-compiler")
253 (uri (rubygems-uri "rake-compiler" version))
256 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
257 (build-system ruby-build-system)
259 '(#:tests? #f)) ; needs cucumber
260 (synopsis "Building and packaging helper for Ruby native extensions")
261 (description "Rake-compiler provides a framework for building and
262 packaging native C and Java extensions in Ruby.")
263 (home-page "https://github.com/rake-compiler/rake-compiler")
264 (license license:expat)))
266 (define-public ruby-i18n
272 (uri (rubygems-uri "i18n" version))
275 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
276 (build-system ruby-build-system)
278 '(#:tests? #f)) ; no tests
279 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
280 (synopsis "Internationalization library for Ruby")
281 (description "Ruby i18n is an internationalization and localization
282 solution for Ruby programs. It features translation and localization,
283 interpolation of values to translations, pluralization, customizable
284 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
285 translation data, custom key/scope separator, custom exception handlers, and
286 an extensible architecture with a swappable backend.")
287 (home-page "https://github.com/svenfuchs/i18n")
288 (license license:expat)))
290 (define-public ruby-iruby
297 (uri (rubygems-uri "iruby" version))
300 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
301 (build-system ruby-build-system)
303 ;; TODO: Tests currently fail.
305 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
308 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
311 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
314 (modify-phases %standard-phases
315 (add-after 'unpack 'patch-ipython
316 (lambda* (#:key inputs #:allow-other-keys)
317 (substitute* "lib/iruby/command.rb"
321 (assoc-ref inputs "python-ipython")
323 (("Kernel\\.exec\\('")
326 (assoc-ref inputs "python-ipython")
330 `(("python-ipython" ,python-ipython)))
332 `(("ruby-bond" ,ruby-bond)
333 ("ruby-data_uri" ,ruby-data_uri)
334 ("ruby-mimemagic" ,ruby-mimemagic)
335 ("ruby-multi-json" ,ruby-multi-json)
336 ("ruby-cztop" ,ruby-cztop)
338 ("ruby-pry" ,ruby-pry)))
339 (synopsis "Ruby kernel for Jupyter/IPython")
341 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
343 (home-page "https://github.com/SciRuby/iruby")
344 (license license:expat)))
346 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
347 ;; dependencies use RSpec for their test suites! To avoid these circular
348 ;; dependencies, we disable tests for all of the RSpec-related packages.
349 (define ruby-rspec-support
351 (name "ruby-rspec-support")
355 (uri (rubygems-uri "rspec-support" version))
358 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
359 (build-system ruby-build-system)
361 '(#:tests? #f)) ; avoid dependency cycles
362 (synopsis "RSpec support library")
363 (description "Support utilities for RSpec gems.")
364 (home-page "https://github.com/rspec/rspec-support")
365 (license license:expat)))
367 (define-public ruby-rspec-core
369 (name "ruby-rspec-core")
373 (uri (rubygems-uri "rspec-core" version))
376 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
377 (build-system ruby-build-system)
379 '(#:tests? #f)) ; avoid dependency cycles
381 `(("ruby-rspec-support" ,ruby-rspec-support)))
382 (synopsis "RSpec core library")
383 (description "Rspec-core provides the RSpec test runner and example
385 (home-page "https://github.com/rspec/rspec-core")
386 (license license:expat)))
388 (define-public ruby-rspec-core-2
389 (package (inherit ruby-rspec-core)
393 (uri (rubygems-uri "rspec-core" version))
396 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
397 (propagated-inputs `())))
399 (define-public ruby-diff-lcs
401 (name "ruby-diff-lcs")
405 (uri (rubygems-uri "diff-lcs" version))
408 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
409 (build-system ruby-build-system)
411 '(#:tests? #f)) ; avoid dependency cycles
412 (synopsis "Compute the difference between two Enumerable sequences")
413 (description "Diff::LCS computes the difference between two Enumerable
414 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
415 It includes utilities to create a simple HTML diff output format and a
416 standard diff-like tool.")
417 (home-page "https://github.com/halostatue/diff-lcs")
418 (license license:expat)))
420 (define-public ruby-rspec-expectations
422 (name "ruby-rspec-expectations")
426 (uri (rubygems-uri "rspec-expectations" version))
429 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
430 (build-system ruby-build-system)
432 '(#:tests? #f)) ; avoid dependency cycles
434 `(("ruby-rspec-support" ,ruby-rspec-support)
435 ("ruby-diff-lcs" ,ruby-diff-lcs)))
436 (synopsis "RSpec expectations library")
437 (description "Rspec-expectations provides a simple API to express expected
438 outcomes of a code example.")
439 (home-page "https://github.com/rspec/rspec-expectations")
440 (license license:expat)))
442 (define-public ruby-rspec-expectations-2
443 (package (inherit ruby-rspec-expectations)
447 (uri (rubygems-uri "rspec-expectations" version))
450 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
452 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
454 (define-public ruby-rspec-its
456 (name "ruby-rspec-its")
462 (url "https://github.com/rspec/rspec-its.git")
463 (commit (string-append "v" version))))
464 (file-name (git-file-name name version))
467 "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f"))
470 (origin (method url-fetch)
472 "https://github.com/rspec/rspec-its/commit/"
473 "bfaab439c7c879f5ef25552f41827891f6308373.patch"))
474 (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch")
477 "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh")))))))
478 (build-system ruby-build-system)
480 `(#:test-target "spec"
482 (modify-phases %standard-phases
483 (add-after 'unpack 'dont-install-gems-from-gemfile
485 (substitute* "Gemfile"
486 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
489 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
491 (substitute* "rspec-its.gemspec"
492 (("rake.*") "rake'\n")
493 (("cucumber.*") "cucumber'\n")
494 (("bundler.*") "bundler'\n")
495 (("aruba.*") "aruba'\n"))
498 `(("ruby-rspec-core" ,ruby-rspec-core)
499 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
501 `(("bundler" ,bundler)
502 ("ruby-cucumber" ,ruby-cucumber)
503 ("ruby-aruba" ,ruby-aruba)))
504 (synopsis "RSpec extension that provides the @code{its} method")
506 "RSpec::Its provides the its method as a short-hand to specify the expected
507 value of an attribute. For example, one can use @code{its(:size)\\{should
509 (home-page "https://github.com/rspec/rspec-its")
510 (license license:expat)))
512 (define-public ruby-rspec-mocks
514 (name "ruby-rspec-mocks")
518 (uri (rubygems-uri "rspec-mocks" version))
521 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
522 (build-system ruby-build-system)
524 '(#:tests? #f)) ; avoid dependency cycles
526 `(("ruby-rspec-support" ,ruby-rspec-support)
527 ("ruby-diff-lcs" ,ruby-diff-lcs)))
528 (synopsis "RSpec stubbing and mocking library")
529 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
530 support for stubbing and mocking.")
531 (home-page "https://github.com/rspec/rspec-mocks")
532 (license license:expat)))
534 (define-public ruby-rspec-mocks-2
535 (package (inherit ruby-rspec-mocks)
539 (uri (rubygems-uri "rspec-mocks" version))
542 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
544 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
546 (define-public ruby-rspec-rerun
548 (name "ruby-rspec-rerun")
553 (uri (rubygems-uri "rspec-rerun" version))
556 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
557 (build-system ruby-build-system)
559 '(;; No included tests
561 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
562 (synopsis "Track failed RSpec tests to re-run them")
564 "This package provides an automated way to track, and then re-run failed
566 (home-page "https://github.com/dblock/rspec-rerun")
567 (license license:expat)))
569 (define-public ruby-rspec
575 (uri (rubygems-uri "rspec" version))
578 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
579 (build-system ruby-build-system)
581 '(#:tests? #f)) ; avoid dependency cycles
583 `(("ruby-rspec-core" ,ruby-rspec-core)
584 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
585 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
586 (synopsis "Behavior-driven development framework for Ruby")
587 (description "RSpec is a behavior-driven development (BDD) framework for
588 Ruby. This meta-package includes the RSpec test runner, along with the
589 expectations and mocks frameworks.")
590 (home-page "http://rspec.info/")
591 (license license:expat)))
593 (define-public ruby-rspec-2
594 (package (inherit ruby-rspec)
598 (uri (rubygems-uri "rspec" version))
601 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
603 `(("ruby-rspec-core" ,ruby-rspec-core-2)
604 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
605 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
607 ;; Bundler is yet another source of circular dependencies, so we must disable
608 ;; its test suite as well.
609 (define-public bundler
615 (uri (rubygems-uri "bundler" version))
618 "0wl4r7wbwdq68xidfv4hhzfb1spb6lmhbspwlzrg4pf1l6ipxlgs"))))
619 (build-system ruby-build-system)
621 '(#:tests? #f)) ; avoid dependency cycles
622 (synopsis "Ruby gem bundler")
623 (description "Bundler automatically downloads and installs a list of gems
624 specified in a \"Gemfile\", as well as their dependencies.")
625 (home-page "https://bundler.io/")
626 (license license:expat)))
628 (define-public ruby-builder
630 (name "ruby-builder")
634 (uri (rubygems-uri "builder" version))
637 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
638 (build-system ruby-build-system)
641 (modify-phases %standard-phases
642 (add-after 'unpack 'do-not-use-rvm
644 (substitute* "rakelib/tags.rake"
645 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
647 (synopsis "Ruby library to create structured data")
648 (description "Builder provides a number of builder objects that make it
649 easy to create structured data. Currently the following builder objects are
650 supported: XML Markup and XML Events.")
651 (home-page "https://github.com/jimweirich/builder")
652 (license license:expat)))
654 (define-public ruby-bump
661 (uri (rubygems-uri "bump" version))
664 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
665 (build-system ruby-build-system)
667 '(;; No included tests
669 (synopsis "Tool for working with Rubygems")
671 "Bump provides commands to manage Rubygem versioning, updating to the
672 next patch version for example.")
673 (home-page "https://github.com/gregorym/bump")
674 (license license:expat)))
676 (define-public ruby-rjb
682 (uri (rubygems-uri "rjb" version))
685 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
686 (build-system ruby-build-system)
688 `(#:tests? #f ; no rakefile
690 (modify-phases %standard-phases
691 (add-before 'build 'set-java-home
692 (lambda* (#:key inputs #:allow-other-keys)
693 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
696 `(("jdk" ,icedtea "jdk")))
697 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
698 (description "RJB is a bridge program that connects Ruby and Java via the
699 Java Native Interface.")
700 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
701 (license license:lgpl2.1+)))
703 (define-public ruby-log4r
710 (uri (rubygems-uri "log4r" version))
713 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
714 (build-system ruby-build-system)
716 '(#:tests? #f)) ; no Rakefile in gem
717 (synopsis "Flexible logging library for Ruby")
718 (description "Comprehensive and flexible logging library written
719 in Ruby for use in Ruby programs. It features a hierarchical logging
720 system of any number of levels, custom level names, logger
721 inheritance, multiple output destinations per log event, execution
722 tracing, custom formatting, thread safteyness, XML and YAML
723 configuration, and more.")
724 (home-page "http://log4r.rubyforge.org/")
725 (license license:bsd-3)))
727 (define-public ruby-atoulme-antwrap
729 (name "ruby-atoulme-antwrap")
733 (uri (rubygems-uri "atoulme-Antwrap" version))
736 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
737 (build-system ruby-build-system)
738 ;; Test data required for most of the tests are not included.
739 (arguments `(#:tests? #f))
741 `(("ruby-hoe" ,ruby-hoe)))
743 `(("ruby-rjb" ,ruby-rjb)))
744 (synopsis "Ruby wrapper for the Ant build tool")
745 (description "Antwrap is a Ruby module that wraps the Apache Ant build
746 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
748 (home-page "http://rubyforge.org/projects/antwrap/")
749 (license license:expat)))
751 (define-public ruby-atoulme-saikuro
753 (name "ruby-atoulme-saikuro")
757 (uri (rubygems-uri "atoulme-Saikuro" version))
760 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
761 (build-system ruby-build-system)
762 ;; FIXME: There are no unit tests. The tests are demonstrations of the
764 (arguments `(#:tests? #f))
765 (synopsis "Cyclomatic complexity analyzer")
766 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
767 given Ruby source code Saikuro will generate a report listing the cyclomatic
768 complexity of each method found. In addition, Saikuro counts the number of
769 lines per method and can generate a listing of the number of tokens on each
771 (home-page "http://www.github.com/atoulme/Saikuro")
772 ;; File headers contain the BSD-3 license and the README.rdoc says that
773 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
774 ;; of the Expat license.
775 (license license:bsd-3)))
777 (define-public ruby-asciidoctor
779 (name "ruby-asciidoctor")
784 (uri (rubygems-uri "asciidoctor" version))
787 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
788 (build-system ruby-build-system)
790 `(#:test-target "test:all"
792 (modify-phases %standard-phases
793 (add-before 'check 'remove-circular-tests
795 ;; Remove tests that require circular dependencies to load or pass.
796 (delete-file "test/invoker_test.rb")
797 (delete-file "test/converter_test.rb")
798 (delete-file "test/options_test.rb")
801 `(("ruby-minitest" ,ruby-minitest)
802 ("ruby-nokogiri" ,ruby-nokogiri)
803 ("ruby-asciimath" ,ruby-asciimath)
804 ("ruby-coderay" ,ruby-coderay)))
805 (synopsis "Converter from AsciiDoc content to other formats")
807 "Asciidoctor is a text processor and publishing toolchain for converting
808 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
809 (home-page "https://asciidoctor.org")
810 (license license:expat)))
812 (define-public ruby-ast
819 (uri (rubygems-uri "ast" version))
822 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
823 (build-system ruby-build-system)
826 (modify-phases %standard-phases
827 (add-after 'unpack 'remove-coveralls-requirement
829 (substitute* "test/helper.rb"
830 (("require 'coveralls'") "")
831 (("Coveralls::SimpleCov::Formatter") ""))
833 (add-after 'extract-gemspec 'remove-unnecessary-requirements
835 (substitute* "ast.gemspec"
836 ((".*coveralls.*") "\n")
837 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
838 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
839 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
842 `(("bundler" ,bundler)
843 ("ruby-simplecov" ,ruby-simplecov)
844 ("ruby-json-pure" ,ruby-json-pure)
845 ("ruby-mime-times" ,ruby-mime-types)
846 ("ruby-yard" ,ruby-yard)
847 ("ruby-kramdown" ,ruby-kramdown)
848 ("ruby-rest-client" ,ruby-rest-client)
849 ("ruby-bacon" ,ruby-bacon)
850 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
851 ("ruby-racc" ,ruby-racc)))
852 (synopsis "Library for working with Abstract Syntax Trees")
854 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
855 It does this through immutable data structures.")
856 (home-page "https://whitequark.github.io/ast/")
857 (license license:expat)))
859 (define-public ruby-sporkmonger-rack-mount
860 ;; Testing the addressable gem requires a newer commit than that released, so
861 ;; use an up to date version.
863 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
865 (name "ruby-sporkmonger-rack-mount")
866 (version (git-version "0.8.3" revision commit))
870 (url "https://github.com/sporkmonger/rack-mount.git")
872 (file-name (git-file-name name version))
875 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
876 (build-system ruby-build-system)
878 ;; Tests currently fail so disable them.
879 ;; https://github.com/sporkmonger/rack-mount/pull/1
881 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
882 (synopsis "Stackable dynamic tree based Rack router")
884 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
885 continue trying routes if the response returns pass. This allows multiple
886 routes to be nested or stacked on top of each other.")
887 (home-page "https://github.com/sporkmonger/rack-mount")
888 (license license:expat))))
890 (define-public ruby-ci-reporter
892 (name "ruby-ci-reporter")
896 (uri (rubygems-uri "ci_reporter" version))
899 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
900 (build-system ruby-build-system)
902 `(#:test-target "rspec"))
904 `(("ruby-builder" ,ruby-builder)))
906 `(("bundler" ,bundler)
907 ("ruby-rspec" ,ruby-rspec)))
908 (synopsis "Generate XML reports of runs test")
910 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
911 you to generate XML reports of your test runs. The resulting files can be
912 read by a continuous integration system that understands Ant's JUnit report
914 (home-page "https://github.com/nicksieger/ci_reporter")
915 (license license:expat)))
917 (define-public ruby-contracts
919 (name "ruby-contracts")
924 (uri (rubygems-uri "contracts" version))
927 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
928 (build-system ruby-build-system)
930 '(#:test-target "spec"
932 (modify-phases %standard-phases
933 ;; Don't run or require rubocop, the code linting tool, as this is a
935 (add-after 'unpack 'dont-run-rubocop
937 (substitute* "Rakefile"
939 ((".*RuboCop.*") ""))
942 `(("ruby-rspec" ,ruby-rspec)))
943 (synopsis "Method contracts for Ruby")
945 "This library provides contracts for Ruby. A contract describes the
946 correct inputs and output for a method, and will raise an error if a incorrect
948 (home-page "https://github.com/egonSchiele/contracts.ruby")
949 (license license:bsd-2)))
951 (define-public ruby-crack
958 (uri (rubygems-uri "crack" version))
961 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
962 (build-system ruby-build-system)
965 (modify-phases %standard-phases
967 (lambda* (#:key tests? #:allow-other-keys)
969 (for-each (lambda (file)
970 (display file)(display "\n")
971 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
972 (find-files "test" ".*rb$")))
975 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
976 (synopsis "Simple JSON and XML parsing for Ruby")
978 "@code{crack} provides really simple JSON and XML parsing, extracted from
979 code in Merb and Rails.")
980 (home-page "https://github.com/jnunemaker/crack")
981 (license license:expat)))
983 (define-public ruby-crass
990 (uri (rubygems-uri "crass" version))
993 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
994 (build-system ruby-build-system)
995 (synopsis "Pure Ruby CSS parser based on CSS Syntax Level 3")
997 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
998 (home-page "https://github.com/rgrove/crass/")
999 (license license:expat)))
1001 (define-public ruby-cliver
1003 (name "ruby-cliver")
1008 (uri (rubygems-uri "cliver" version))
1011 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1012 (build-system ruby-build-system)
1015 (modify-phases %standard-phases
1016 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1017 ;; would be nice, but the tests look to be incompatible:
1019 ;; NoMethodError: undefined method `last_comment'
1021 (lambda* (#:key tests? #:allow-other-keys)
1026 `(("bundler" ,bundler)
1027 ("ruby-rspec" ,ruby-rspec-2)))
1028 (synopsis "Assertions for command-line dependencies in Ruby")
1030 "@code{cliver} provides a way to detect missing command-line
1031 dependencies, including versions.")
1032 (home-page "https://github.com/yaauie/cliver")
1033 (license license:expat)))
1035 (define-public ruby-czmq-ffi-gen
1037 (name "ruby-czmq-ffi-gen")
1042 (uri (rubygems-uri "czmq-ffi-gen" version))
1045 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1046 (build-system ruby-build-system)
1048 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1050 (modify-phases %standard-phases
1051 (add-after 'unpack 'patch-lib_dirs
1052 (lambda* (#:key inputs #:allow-other-keys)
1053 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1054 (("lib\\_dirs = \\[.*\\]")
1055 (string-append "lib_dirs = ['"
1056 (assoc-ref inputs "czmq") "/lib"
1058 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1059 (("lib\\_dirs = \\[.*\\]")
1060 (string-append "lib_dirs = ['"
1061 (assoc-ref inputs "zeromq") "/lib"
1064 `(("zeromq" ,zeromq)
1066 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1067 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1069 "These Ruby bindings are not intended to be directly used, but rather
1070 used by higher level bindings like those provided by CZTop.")
1072 "https://github.com/paddor/czmq-ffi-gen")
1073 (license license:isc)))
1075 (define-public ruby-cztop
1082 (uri (rubygems-uri "cztop" version))
1085 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1086 (build-system ruby-build-system)
1088 '(#:test-target "spec"
1090 (modify-phases %standard-phases
1091 (add-after 'unpack 'patch-lib_paths
1092 (lambda* (#:key inputs #:allow-other-keys)
1093 (substitute* "lib/cztop/poller/zmq.rb"
1094 (("lib\\_paths = \\[.*\\]")
1095 (string-append "lib_paths = ['"
1096 (assoc-ref inputs "zeromq") "/lib"
1099 `(("bundler" ,bundler)
1100 ("ruby-rspec" ,ruby-rspec)))
1102 `(("zeromq" ,zeromq)))
1104 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1105 (synopsis "CZMQ Ruby bindings")
1107 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1108 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1109 support for security mechanisms.")
1110 (home-page "https://github.com/paddor/cztop")
1111 (license license:isc)))
1113 (define-public ruby-saikuro-treemap
1115 (name "ruby-saikuro-treemap")
1119 (uri (rubygems-uri "saikuro_treemap" version))
1122 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1123 (build-system ruby-build-system)
1124 ;; Some of the tests fail because the generated JSON has keys in a
1125 ;; different order. This is a problem with the test suite rather than any
1126 ;; of the involved libraries.
1127 (arguments `(#:tests? #f))
1129 `(("ruby-json-pure" ,ruby-json-pure)
1130 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1131 (synopsis "Generate complexity treemap based on saikuro analysis")
1133 "This gem generates a treemap showing the complexity of Ruby code on
1134 which it is run. It uses Saikuro under the covers to analyze Ruby code
1136 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1137 (license license:expat)))
1139 (define-public ruby-options
1141 (name "ruby-options")
1146 (uri (rubygems-uri "options" version))
1149 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1150 (build-system ruby-build-system)
1152 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1154 (modify-phases %standard-phases
1155 (add-before 'check 'set-LIB
1157 ;; This is used in the Rakefile, and setting it avoids an issue
1158 ;; with running the tests.
1159 (setenv "LIB" "options")
1161 (synopsis "Ruby library to parse options from *args cleanly")
1163 "The @code{options} library helps with parsing keyword options in Ruby
1165 (home-page "https://github.com/ahoward/options")
1166 (license license:ruby)))
1168 (define-public ruby-erubi
1175 (uri (rubygems-uri "erubi" version))
1178 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1179 (build-system ruby-build-system)
1180 (synopsis "ERB template engine for Ruby")
1182 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1184 (home-page "https://github.com/jeremyevans/erubi")
1185 (license license:expat)))
1187 (define-public ruby-erubis
1189 (name "ruby-erubis")
1194 (uri (rubygems-uri "erubis" version))
1197 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1198 (build-system ruby-build-system)
1200 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1201 (synopsis "Implementation of embedded Ruby (eRuby)")
1203 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1204 features such as multi-language support, auto escaping, auto trimming spaces
1205 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1207 (home-page "http://www.kuwata-lab.com/erubis/")
1208 (license license:expat)))
1210 (define-public ruby-orderedhash
1212 (name "ruby-orderedhash")
1216 (uri (rubygems-uri "orderedhash" version))
1219 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1220 (build-system ruby-build-system)
1222 '(#:tests? #f)) ; no test suite
1223 (synopsis "Ruby library providing an order-preserving hash")
1224 (description "Orderedhash is a Ruby library providing a hash
1225 implementation that preserves the order of items and features some array-like
1227 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1228 (license license:public-domain)))
1230 (define-public ruby-libxml
1232 (name "ruby-libxml")
1237 (uri (rubygems-uri "libxml-ruby" version))
1240 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1241 (build-system ruby-build-system)
1244 ("libxml2" ,libxml2)))
1246 '(#:tests? #f ; test suite hangs for unknown reason
1249 (string-append "--with-xml2-include="
1250 (assoc-ref %build-inputs "libxml2")
1251 "/include/libxml2" ))))
1252 (synopsis "Ruby bindings for GNOME Libxml2")
1253 (description "The Libxml-Ruby project provides Ruby language bindings for
1254 the GNOME Libxml2 XML toolkit.")
1255 (home-page "https://xml4r.github.com/libxml-ruby")
1256 (license license:expat)))
1258 (define-public ruby-xml-simple
1260 (name "ruby-xml-simple")
1264 (uri (rubygems-uri "xml-simple" version))
1267 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1268 (build-system ruby-build-system)
1270 '(#:tests? #f)) ; no test suite
1271 (synopsis "Simple Ruby library for XML processing")
1272 (description "This library provides a simple API for XML processing in
1274 (home-page "https://github.com/maik/xml-simple")
1275 (license license:ruby)))
1277 (define-public ruby-thor
1283 (uri (rubygems-uri "thor" version))
1286 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1287 (build-system ruby-build-system)
1289 '(#:tests? #f)) ; no test suite
1291 `(("bundler" ,bundler)))
1292 (synopsis "Ruby toolkit for building command-line interfaces")
1293 (description "Thor is a toolkit for building powerful command-line
1295 (home-page "http://whatisthor.com/")
1296 (license license:expat)))
1298 (define-public ruby-lumberjack
1300 (name "ruby-lumberjack")
1304 (uri (rubygems-uri "lumberjack" version))
1307 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1308 (build-system ruby-build-system)
1310 `(("ruby-rspec" ,ruby-rspec)
1311 ("ruby-timecop" ,ruby-timecop)))
1312 (synopsis "Logging utility library for Ruby")
1313 (description "Lumberjack is a simple logging utility that can be a drop in
1314 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1315 for automatically rolling log files even with multiple processes writing the
1317 (home-page "https://github.com/bdurand/lumberjack")
1318 (license license:expat)))
1320 (define-public ruby-nenv
1326 (uri (rubygems-uri "nenv" version))
1329 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1330 (build-system ruby-build-system)
1332 `(#:tests? #f)) ; no tests included
1334 `(("ruby-rspec" ,ruby-rspec)
1335 ("bundler" ,bundler)))
1336 (synopsis "Ruby interface for modifying the environment")
1337 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1338 and inspect the environment.")
1339 (home-page "https://github.com/e2/nenv")
1340 (license license:expat)))
1342 (define-public ruby-permutation
1344 (name "ruby-permutation")
1348 (uri (rubygems-uri "permutation" version))
1351 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1352 (build-system ruby-build-system)
1355 (modify-phases %standard-phases
1356 (add-after 'unpack 'fix-rakefile
1358 (substitute* "Rakefile"
1359 (("require 'rake/gempackagetask'")
1360 "require 'rubygems/package_task'")
1361 (("include Config") ""))
1365 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1366 (synopsis "Library to perform operations with sequence permutations")
1367 (description "This package provides a Ruby library to perform different
1368 operations with permutations of sequences, such as strings and arrays.")
1369 (home-page "https://flori.github.io/permutation")
1370 (license license:gpl2))) ; GPL 2 only
1372 (define-public ruby-shellany
1374 (name "ruby-shellany")
1378 (uri (rubygems-uri "shellany" version))
1381 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1382 (build-system ruby-build-system)
1384 `(#:test-target "default"
1386 (modify-phases %standard-phases
1387 (add-after 'unpack 'fix-version-test
1389 (substitute* "spec/shellany_spec.rb"
1390 (("^RSpec") "require \"shellany\"\nRSpec"))
1393 `(("ruby-rspec" ,ruby-rspec)
1394 ("ruby-nenv" ,ruby-nenv)
1395 ("bundler" ,bundler)))
1396 (synopsis "Capture command output")
1397 (description "Shellany is a Ruby library providing functions to capture
1398 the output produced by running shell commands.")
1399 (home-page "https://rubygems.org/gems/shellany")
1400 (license license:expat)))
1402 (define-public ruby-notiffany
1404 (name "ruby-notiffany")
1408 (uri (rubygems-uri "notiffany" version))
1411 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1412 (build-system ruby-build-system)
1413 ;; Tests are not included in the gem.
1414 (arguments `(#:tests? #f))
1416 `(("ruby-shellany" ,ruby-shellany)
1417 ("ruby-nenv" ,ruby-nenv)))
1419 `(("bundler" ,bundler)))
1420 (synopsis "Wrapper libray for notification libraries")
1421 (description "Notiffany is a Ruby wrapper libray for notification
1422 libraries such as Libnotify.")
1423 (home-page "https://github.com/guard/notiffany")
1424 (license license:expat)))
1426 (define-public ruby-formatador
1428 (name "ruby-formatador")
1432 (uri (rubygems-uri "formatador" version))
1435 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1436 (build-system ruby-build-system)
1437 ;; Circular dependency: Tests require ruby-shindo, which requires
1438 ;; ruby-formatador at runtime.
1439 (arguments `(#:tests? #f))
1440 (synopsis "Ruby library to format text on stdout")
1441 (description "Formatador is a Ruby library to format text printed to the
1442 standard output stream.")
1443 (home-page "https://github.com/geemus/formatador")
1444 (license license:expat)))
1446 (define-public ruby-fuubar
1448 (name "ruby-fuubar")
1452 ;; Fetch from the git repository, as the gem package doesn't include
1456 (url "https://github.com/thekompanee/fuubar.git")
1457 (commit (string-append "releases/v" version))))
1458 (file-name (git-file-name name version))
1461 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1462 (build-system ruby-build-system)
1464 '(;; TODO: Some tests fail, unsure why.
1465 ;; 21 examples, 7 failures
1468 (modify-phases %standard-phases
1469 (add-before 'build 'delete-certificate
1471 ;; Remove 's.cert_chain' as we do not build with a private key
1472 (substitute* "fuubar.gemspec"
1473 ((".*cert_chain.*") "")
1474 ((".*signing_key.*") ""))
1477 (lambda* (#:key tests? #:allow-other-keys)
1482 `(("bundler" ,bundler)))
1484 `(("ruby-rspec-core" ,ruby-rspec-core)
1485 ("ruby-progressbar" ,ruby-progressbar)))
1486 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1488 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1489 string of letters and dots as feedback. It also stops on the first test
1491 (home-page "https://github.com/thekompanee/fuubar")
1492 (license license:expat)))
1494 (define-public ruby-hashdiff
1496 (name "ruby-hashdiff")
1501 (uri (rubygems-uri "hashdiff" version))
1504 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1505 (build-system ruby-build-system)
1508 (modify-phases %standard-phases
1509 ;; Run tests directly via rspec to avoid Rake issue:
1510 ;; NoMethodError: undefined method `last_comment'
1512 (lambda* (#:key tests? #:allow-other-keys)
1517 `(("bundler" ,bundler)
1518 ("ruby-rspec" ,ruby-rspec-2)))
1519 (synopsis "HashDiff computes the smallest difference between two hashes")
1521 "HashDiff is a Ruby library to compute the smallest difference between
1523 (home-page "https://github.com/liufengyun/hashdiff")
1524 (license license:expat)))
1526 (define-public ruby-shindo
1528 (name "ruby-shindo")
1532 (uri (rubygems-uri "shindo" version))
1535 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1536 (build-system ruby-build-system)
1538 `(#:test-target "shindo_tests"
1540 (modify-phases %standard-phases
1541 (add-after 'unpack 'fix-tests
1543 (substitute* "tests/tests_helper.rb"
1545 (substitute* "Rakefile"
1546 (("system \"shindo") "system \"./bin/shindo")
1547 ;; This test doesn't work, so we disable it.
1548 (("fail \"The build_error test should fail") "#")
1549 ((" -rubygems") ""))
1552 `(("ruby-formatador" ,ruby-formatador)))
1553 (synopsis "Simple depth first Ruby testing")
1554 (description "Shindo is a simple depth first testing library for Ruby.")
1555 (home-page "https://github.com/geemus/shindo")
1556 (license license:expat)))
1558 (define-public ruby-rubygems-tasks
1560 (name "ruby-rubygems-tasks")
1564 (uri (rubygems-uri "rubygems-tasks" version))
1567 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1568 (build-system ruby-build-system)
1569 ;; Tests need Internet access.
1570 (arguments `(#:tests? #f))
1572 `(("ruby-rspec" ,ruby-rspec)
1573 ("ruby-yard" ,ruby-yard)))
1574 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1575 (description "Rubygems-task provides Rake tasks for managing and releasing
1577 (home-page "https://github.com/postmodern/rubygems-tasks")
1578 (license license:expat)))
1580 (define-public ruby-rubyzip
1582 (name "ruby-rubyzip")
1587 (uri (rubygems-uri "rubyzip" version))
1590 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1591 (build-system ruby-build-system)
1594 (modify-phases %standard-phases
1595 (add-before 'check 'patch-tests
1596 (lambda* (#:key inputs #:allow-other-keys)
1597 (substitute* "test/gentestfiles.rb"
1600 (assoc-ref inputs "zip") "/bin/zip")))
1601 (substitute* "test/input_stream_test.rb"
1602 (("/usr/bin/env ruby") (which "ruby")))
1605 `(("bundler" ,bundler)
1606 ("ruby-simplecov" ,ruby-simplecov)
1609 (synopsis "Ruby module is for reading and writing zip files")
1611 "The rubyzip module provides ways to read from and create zip files.")
1612 (home-page "http://github.com/rubyzip/rubyzip")
1613 (license license:bsd-2)))
1615 (define-public ruby-simplecov-html
1617 (name "ruby-simplecov-html")
1621 (uri (rubygems-uri "simplecov-html" version))
1624 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
1625 (build-system ruby-build-system)
1626 (arguments `(#:tests? #f)) ; there are no tests
1628 `(("bundler" ,bundler)))
1629 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1630 (description "This package provides the default HTML formatter for
1631 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1632 (home-page "https://github.com/colszowka/simplecov-html")
1633 (license license:expat)))
1635 (define-public ruby-simplecov
1637 (name "ruby-simplecov")
1641 (uri (rubygems-uri "simplecov" version))
1644 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
1645 (build-system ruby-build-system)
1646 ;; Simplecov depends on rubocop for code style checking at build time.
1647 ;; Rubocop needs simplecov at build time.
1648 (arguments `(#:tests? #f))
1650 `(("ruby-json" ,ruby-json)
1651 ("ruby-docile" ,ruby-docile)
1652 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1654 `(("bundler" ,bundler)))
1655 (synopsis "Code coverage framework for Ruby")
1656 (description "SimpleCov is a code coverage framework for Ruby with a
1657 powerful configuration library and automatic merging of coverage across test
1659 (home-page "https://github.com/colszowka/simplecov")
1660 (license license:expat)))
1662 (define-public ruby-useragent
1664 (name "ruby-useragent")
1668 (uri (rubygems-uri "useragent" version))
1671 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1672 (build-system ruby-build-system)
1674 '(#:tests? #f)) ; no test suite
1675 (synopsis "HTTP user agent parser for Ruby")
1676 (description "UserAgent is a Ruby library that parses and compares HTTP
1678 (home-page "https://github.com/gshutler/useragent")
1679 (license license:expat)))
1681 (define-public ruby-backports
1683 (name "ruby-backports")
1688 (uri (rubygems-uri "backports" version))
1691 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
1692 (build-system ruby-build-system)
1694 '(;; TODO: This should be default, but there is one test failure
1695 #:test-target "all_spec"))
1697 `(("ruby-mspec" ,ruby-mspec)
1698 ("ruby-activesupport" ,ruby-activesupport)))
1699 (synopsis "Backports of the features in newer Ruby versions")
1701 "Backports enables more compatibility across Ruby versions by providing
1702 backports of some features.")
1703 (home-page "https://github.com/marcandre/backports")
1704 (license license:expat)))
1706 (define-public ruby-bacon
1712 (uri (rubygems-uri "bacon" version))
1715 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1716 (build-system ruby-build-system)
1717 (synopsis "Small RSpec clone")
1718 (description "Bacon is a small RSpec clone providing all essential
1720 (home-page "https://github.com/chneukirchen/bacon")
1721 (license license:expat)))
1723 (define-public ruby-bacon-bits
1725 (name "ruby-bacon-bits")
1730 (uri (rubygems-uri "bacon-bits" version))
1733 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
1734 (build-system ruby-build-system)
1738 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
1739 (synopsis "Extensions to Bacon, for disabling tests, before and after
1742 "This extends the bacon testing framework with useful extensions to
1743 disable tests, have before and after blocks that run once and more.")
1744 (home-page "https://github.com/cldwalker/bacon-bits")
1745 (license license:expat)))
1747 (define-public ruby-bacon-colored-output
1749 (name "ruby-bacon-colored-output")
1754 (uri (rubygems-uri "bacon-colored_output" version))
1757 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
1758 (build-system ruby-build-system)
1760 '(;; No included tests
1763 `(("ruby-bacon" ,ruby-bacon)))
1764 (synopsis "Colored output for Bacon test framework")
1766 "This package adds color through ANSI escape codes to Bacon test
1768 (home-page "https://github.com/whitequark/bacon-colored_output")
1769 (license license:expat)))
1771 (define-public ruby-connection-pool
1773 (name "ruby-connection-pool")
1777 (uri (rubygems-uri "connection_pool" version))
1780 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
1781 (build-system ruby-build-system)
1783 `(("bundler" ,bundler)))
1784 (synopsis "Generic connection pool for Ruby")
1785 (description "Connection_pool provides a generic connection pooling
1786 interface for Ruby programs.")
1787 (home-page "https://github.com/mperham/connection_pool")
1788 (license license:expat)))
1790 (define-public ruby-net-http-persistent
1792 (name "ruby-net-http-persistent")
1796 (uri (rubygems-uri "net-http-persistent" version))
1799 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1800 (build-system ruby-build-system)
1802 `(("ruby-connection-pool" ,ruby-connection-pool)
1803 ("ruby-hoe" ,ruby-hoe)))
1804 (synopsis "Persistent HTTP connection manager")
1805 (description "Net::HTTP::Persistent manages persistent HTTP connections
1806 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1807 (home-page "https://github.com/drbrain/net-http-persistent")
1808 (license license:expat)))
1810 (define-public ruby-power-assert
1812 (name "ruby-power-assert")
1816 (uri (rubygems-uri "power_assert" version))
1819 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1820 (build-system ruby-build-system)
1822 `(("bundler" ,bundler)))
1823 (synopsis "Assert library with descriptive assertion messages")
1824 (description "Power-assert is an assertion library providing descriptive
1825 assertion messages for tests.")
1826 (home-page "https://github.com/k-tsj/power_assert")
1827 (license (list license:bsd-2 license:ruby))))
1829 (define-public ruby-powerpack
1831 (name "ruby-powerpack")
1836 (uri (rubygems-uri "powerpack" version))
1839 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
1840 (build-system ruby-build-system)
1842 '(#:test-target "spec"))
1844 `(("bundler" ,bundler)
1845 ("ruby-rspec" ,ruby-rspec)
1846 ("ruby-yard" ,ruby-yard)))
1847 (synopsis "Useful extensions to core Ruby classes")
1849 "This package provides a few useful extensions to core Ruby classes,
1850 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
1852 (home-page "https://github.com/bbatsov/powerpack")
1853 (license license:expat)))
1855 (define-public ruby-locale
1857 (name "ruby-locale")
1861 (uri (rubygems-uri "locale" version))
1864 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1865 (build-system ruby-build-system)
1866 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1867 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1868 ;; dependency cycle we disable tests.
1869 (arguments `(#:tests? #f))
1871 `(("bundler" ,bundler)
1872 ("ruby-yard" ,ruby-yard)))
1873 (synopsis "Ruby library providing basic localization APIs")
1875 "Ruby-Locale is the pure ruby library which provides basic APIs for
1877 (home-page "https://github.com/ruby-gettext/locale")
1878 (license (list license:lgpl3+ license:ruby))))
1880 (define-public ruby-text
1886 (uri (rubygems-uri "text" version))
1889 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1890 (build-system ruby-build-system)
1891 (synopsis "Collection of text algorithms for Ruby")
1893 "This package provides a collection of text algorithms: Levenshtein,
1894 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1895 (home-page "https://github.com/threedaymonk/text")
1896 (license license:expat)))
1898 (define-public ruby-gettext
1900 (name "ruby-gettext")
1904 (uri (rubygems-uri "gettext" version))
1907 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1908 (build-system ruby-build-system)
1909 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1910 ;; which needs ruby-gettext. To break the dependency cycle we disable
1912 (arguments `(#:tests? #f))
1914 `(("ruby-locale" ,ruby-locale)
1915 ("ruby-text" ,ruby-text)))
1917 `(("bundler" ,bundler)
1918 ("ruby-yard" ,ruby-yard)))
1919 (synopsis "GNU gettext-like program for Ruby")
1921 "Gettext is a GNU gettext-like program for Ruby. The catalog
1922 file (po-file) used is the same as that used by GNU gettext, allowing you to
1923 use GNU gettext tools for maintenance.")
1924 (home-page "https://ruby-gettext.github.com/")
1925 (license (list license:lgpl3+ license:ruby))))
1927 (define-public ruby-packnga
1929 (name "ruby-packnga")
1933 (uri (rubygems-uri "packnga" version))
1936 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
1937 (build-system ruby-build-system)
1938 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
1939 ;; To break the dependency cycle we disable tests.
1940 (arguments `(#:tests? #f))
1942 `(("ruby-gettext" ,ruby-gettext)
1943 ("ruby-yard" ,ruby-yard)))
1945 `(("bundler" ,bundler)))
1946 (synopsis "Utility library to package internationalized libraries")
1948 "Packnga is a library to translate to many languages using YARD.")
1949 (home-page "http://ranguba.org/packnga/")
1950 (license license:lgpl2.0+)))
1952 (define-public ruby-test-unit
1954 (name "ruby-test-unit")
1958 (uri (rubygems-uri "test-unit" version))
1961 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
1962 (build-system ruby-build-system)
1964 `(("ruby-power-assert" ,ruby-power-assert)))
1966 `(("bundler" ,bundler)
1967 ("ruby-packnga" ,ruby-packnga)
1968 ("ruby-yard" ,ruby-yard)))
1969 (synopsis "Unit testing framework for Ruby")
1970 (description "@code{Test::Unit} is unit testing framework for Ruby, based
1971 on xUnit principles. These were originally designed by Kent Beck, creator of
1972 extreme programming software development methodology, for Smalltalk's SUnit.
1973 It allows writing tests, checking results and automated testing in Ruby.")
1974 (home-page "https://test-unit.github.io/")
1975 (license (list license:psfl license:ruby))))
1977 (define-public ruby-maruku
1979 (name "ruby-maruku")
1984 (uri (rubygems-uri "maruku" version))
1987 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
1988 (build-system ruby-build-system)
1990 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
1993 (modify-phases %standard-phases
1995 (lambda* (#:key tests? #:allow-other-keys)
2000 `(("ruby-rspec" ,ruby-rspec)
2001 ("ruby-simplecov" ,ruby-simplecov)
2002 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2003 (synopsis "Markdown interpreter in Ruby")
2005 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2006 HTML, and PDF through LaTeX.")
2007 (home-page "https://github.com/bhollis/maruku")
2008 (license license:expat)))
2010 (define-public ruby-metaclass
2012 (name "ruby-metaclass")
2016 (uri (rubygems-uri "metaclass" version))
2019 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2020 (build-system ruby-build-system)
2023 (modify-phases %standard-phases
2024 (add-after 'unpack 'add-test-unit-to-search-path
2025 (lambda* (#:key inputs #:allow-other-keys)
2026 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2027 (substitute* "Rakefile"
2028 (("t\\.libs << \"test\"" line)
2029 (string-append line "; t.libs << \""
2030 test-unit "/lib/ruby/vendor_ruby"
2032 ,(package-version ruby-test-unit)
2036 `(("bundler" ,bundler)
2037 ("ruby-test-unit" ,ruby-test-unit)))
2038 (synopsis "Ruby library adding metaclass method to all objects")
2040 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2042 (home-page "https://github.com/floehopper/metaclass")
2043 (license license:expat)))
2045 (define-public ruby-mspec
2052 (uri (rubygems-uri "mspec" version))
2055 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2056 (build-system ruby-build-system)
2058 '(;; TODO: 3 test failures
2059 ;; ./spec/mocks/mock_spec.rb:82
2060 ;; ./spec/utils/name_map_spec.rb:151
2061 ;; ./spec/utils/name_map_spec.rb:155
2064 (modify-phases %standard-phases
2065 (add-after 'extract-gemspec 'change-dependency-constraints
2067 (substitute* "mspec.gemspec"
2068 (("rake.*") "rake>)\n")
2069 (("rspec.*") "rspec>)\n"))
2072 (lambda* (#:key tests? #:allow-other-keys)
2074 (invoke "rspec" "spec"))
2077 `(("bundler" ,bundler)
2078 ("ruby-rake" ,ruby-rake)
2079 ("ruby-rspec" ,ruby-rspec)))
2080 (synopsis "MSpec is a specialized framework for RubySpec")
2082 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2083 for basic features. MSpec contains additional features that assist in writing
2084 specs for Ruby implementations in ruby/spec.")
2085 (home-page "http://rubyspec.org")
2086 (license license:expat)))
2088 (define-public ruby-mysql2
2090 (name "ruby-mysql2")
2096 (url "https://github.com/brianmario/mysql2.git")
2098 (file-name (git-file-name name version))
2101 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2102 (build-system ruby-build-system)
2104 '(;; TODO: Tests require a running MySQL/MariaDB service
2107 (modify-phases %standard-phases
2108 (replace 'replace-git-ls-files
2110 (substitute* "mysql2.gemspec"
2111 (("git ls-files .*`") "find . -type f |sort`"))
2113 (add-before 'install 'set-MAKEFLAGS
2114 (lambda* (#:key outputs #:allow-other-keys)
2118 "prefix=" (assoc-ref outputs "out")))
2120 ;; Move the 'check phase to after 'install, as then you can test
2121 ;; using the installed mysql2 gem in the store.
2123 (add-after 'install 'check
2124 (lambda* (#:key outputs tests? #:allow-other-keys)
2129 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2134 `(("mariadb" ,mariadb)
2137 `(("ruby-rspec" ,ruby-rspec)
2138 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2139 (synopsis "MySQL library for Ruby, binding to libmysql")
2141 "This package provides a simple, fast MySQL library for Ruby, binding to
2143 (home-page "https://github.com/brianmario/mysql2")
2144 (license license:expat)))
2146 (define-public ruby-blankslate
2148 (name "ruby-blankslate")
2152 (uri (rubygems-uri "blankslate" version))
2155 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2156 (build-system ruby-build-system)
2159 (modify-phases %standard-phases
2161 (lambda _ (invoke "rspec" "spec/"))))))
2163 `(("bundler" ,bundler)
2164 ("ruby-rspec" ,ruby-rspec)))
2165 (synopsis "Abstract base class with no predefined methods")
2167 "BlankSlate provides an abstract base class with no predefined
2168 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2169 as a base class when writing classes that depend upon
2170 @code{method_missing} (e.g. dynamic proxies).")
2171 (home-page "https://github.com/masover/blankslate")
2172 (license license:expat)))
2174 (define-public ruby-bond
2181 (uri (rubygems-uri "bond" version))
2184 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2185 (build-system ruby-build-system)
2187 `(("ruby-bacon" ,ruby-bacon)
2188 ("ruby-bacon-bits" ,ruby-bacon-bits)
2189 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2190 (synopsis "Bond can provide custom autocompletion for arguments, methods
2193 "Bond can autocomplete argument(s) to methods, uniquely completing per
2194 module, per method and per argument. Bond provides a configuration system and
2195 a DSL for creating custom completions and completion rules. Bond can also
2196 load completions that ship with gems. Bond is able to offer more than irb's
2197 completion since it uses the full line of input when completing as opposed to
2198 irb's last-word approach.")
2199 (home-page "http://tagaholic.me/bond/")
2200 (license license:expat)))
2202 (define-public ruby-idn-ruby
2204 (name "ruby-idn-ruby")
2209 (uri (rubygems-uri "idn-ruby" version))
2212 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2213 (build-system ruby-build-system)
2216 (modify-phases %standard-phases
2218 (add-after 'install 'check
2219 (lambda* (#:key tests? outputs #:allow-other-keys)
2221 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2222 (name-and-version (basename gem-file ".gem")))
2226 (assoc-ref outputs "out")
2227 "/lib/ruby/vendor_ruby/gems/"
2230 (find-files "./test" ".*\\.rb"))))
2233 `(("libidn" ,libidn)))
2234 (synopsis "Ruby Bindings for the GNU LibIDN library")
2236 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2237 Stringprep, Punycode and IDNA specifications. These are used to encode and
2238 decode internationalized domain + names according to the IDNA2003
2241 Included are the most important parts of the Stringprep, Punycode and IDNA
2242 APIs like performing Stringprep processings, encoding to and decoding from
2243 Punycode strings and converting entire domain names to and from the ACE
2245 (home-page "https://github.com/deepfryed/idn-ruby")
2246 (license license:asl2.0)))
2248 (define-public ruby-instantiator
2250 (name "ruby-instantiator")
2254 (uri (rubygems-uri "instantiator" version))
2257 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2258 (build-system ruby-build-system)
2261 (modify-phases %standard-phases
2262 (add-after 'unpack 'add-test-unit-to-search-path
2263 (lambda* (#:key inputs #:allow-other-keys)
2264 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2265 (substitute* "Rakefile"
2266 (("t\\.libs << \"test\"" line)
2267 (string-append line "; t.libs << \""
2268 test-unit "/lib/ruby/vendor_ruby"
2270 ,(package-version ruby-test-unit)
2274 `(("ruby-blankslate" ,ruby-blankslate)))
2276 `(("bundler" ,bundler)
2277 ("ruby-test-unit" ,ruby-test-unit)))
2278 (synopsis "Instantiate an arbitrary Ruby class")
2280 "Instantiator lets you instantiate an arbitrary Ruby class without
2281 knowing anything about the constructor.")
2282 (home-page "https://github.com/floehopper/instantiator")
2283 (license license:expat)))
2285 (define-public ruby-introspection
2287 (name "ruby-introspection")
2291 (uri (rubygems-uri "introspection" version))
2294 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2295 (build-system ruby-build-system)
2298 (modify-phases %standard-phases
2299 (add-after 'unpack 'add-test-unit-to-search-path
2300 (lambda* (#:key inputs #:allow-other-keys)
2301 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2302 (substitute* "Rakefile"
2303 (("t\\.libs << \"test\"" line)
2304 (string-append line "; t.libs << \""
2305 test-unit "/lib/ruby/vendor_ruby"
2307 ,(package-version ruby-test-unit)
2311 `(("ruby-instantiator" ,ruby-instantiator)
2312 ("ruby-metaclass" ,ruby-metaclass)))
2314 `(("bundler" ,bundler)
2315 ("ruby-blankslate" ,ruby-blankslate)
2316 ("ruby-test-unit" ,ruby-test-unit)))
2317 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2319 "Introspection provides tools to inspect the hierarchy of method
2320 definitions on a Ruby object.")
2321 (home-page "https://github.com/floehopper/introspection")
2322 (license license:expat)))
2324 (define-public ruby-redcarpet
2326 (name "ruby-redcarpet")
2330 (uri (rubygems-uri "redcarpet" version))
2333 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2334 (build-system ruby-build-system)
2337 (modify-phases %standard-phases
2338 ;; The gem archive does not include the conformance tests.
2339 (add-after 'unpack 'disable-conformance-tests
2341 (substitute* "Rakefile"
2342 (("task :test => %w\\[test:unit test:conformance\\]")
2343 "task :test => %w[test:unit]"))
2346 `(("bundler" ,bundler)
2347 ("ruby-test-unit" ,ruby-test-unit)
2348 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2349 (synopsis "Extensible Markdown to (X)HTML converter")
2351 "Redcarpet is an extensible Ruby library for Markdown processing and
2352 conversion to (X)HTML.")
2353 (home-page "https://github.com/vmg/redcarpet")
2354 (license license:expat)))
2356 (define-public ruby-mocha
2362 (uri (rubygems-uri "mocha" version))
2365 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2366 (build-system ruby-build-system)
2369 (modify-phases %standard-phases
2370 (add-after 'unpack 'add-test-unit-to-search-path
2371 (lambda* (#:key inputs #:allow-other-keys)
2372 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2373 (substitute* "Rakefile"
2374 (("t\\.libs << 'test'" line)
2375 (string-append line "; t.libs << \""
2376 test-unit "/lib/ruby/vendor_ruby"
2378 ,(package-version ruby-test-unit)
2381 (add-before 'check 'use-latest-redcarpet
2383 (substitute* "mocha.gemspec"
2384 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2385 "<redcarpet>.freeze, [\">= 3\"]"))
2387 (add-before 'check 'hardcode-version
2389 ;; Mocha is undefined at build time
2390 (substitute* "Rakefile"
2391 (("#\\{Mocha::VERSION\\}") ,version))
2393 (add-before 'check 'remove-failing-test
2394 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2396 (delete-file "test/acceptance/stubbing_nil_test.rb")
2399 `(("ruby-metaclass" ,ruby-metaclass)))
2401 `(("bundler" ,bundler)
2402 ("ruby-yard" ,ruby-yard)
2403 ("ruby-introspection" ,ruby-introspection)
2404 ("ruby-test-unit" ,ruby-test-unit)
2405 ("ruby-redcarpet" ,ruby-redcarpet)))
2406 (synopsis "Mocking and stubbing library for Ruby")
2408 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
2409 allows mocking and stubbing of methods on real (non-mock) classes.")
2410 (home-page "http://gofreerange.com/mocha/docs")
2411 (license license:expat)))
2413 (define-public ruby-mocha-on-bacon
2415 (name "ruby-mocha-on-bacon")
2420 (uri (rubygems-uri "mocha-on-bacon" version))
2423 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
2424 (build-system ruby-build-system)
2426 ;; rubygems.org release missing tests
2428 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
2429 (synopsis "Mocha adapter for Bacon")
2431 "This package provides a Mocha adapter for Bacon, allowing you to use the
2432 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
2434 "https://github.com/alloy/mocha-on-bacon")
2435 (license license:expat)))
2437 (define-public ruby-net-ssh
2439 (name "ruby-net-ssh")
2443 (uri (rubygems-uri "net-ssh" version))
2446 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2447 (build-system ruby-build-system)
2449 `(("bundler" ,bundler)
2450 ("ruby-mocha" ,ruby-mocha)
2451 ("ruby-test-unit" ,ruby-test-unit)))
2452 (synopsis "Ruby implementation of the SSH2 client protocol")
2453 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
2454 client protocol. It allows you to write programs that invoke and interact
2455 with processes on remote servers, via SSH2.")
2456 (home-page "https://github.com/net-ssh/net-ssh")
2457 (license license:expat)))
2459 (define-public ruby-net-scp
2461 (name "ruby-net-scp")
2462 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
2463 (version "1.2.2.rc2")
2467 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
2471 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
2472 (build-system ruby-build-system)
2474 `(("bundler" ,bundler)
2475 ("ruby-test-unit" ,ruby-test-unit)
2476 ("ruby-mocha" ,ruby-mocha)))
2478 `(("ruby-net-ssh" ,ruby-net-ssh)))
2479 (synopsis "Pure-Ruby SCP client library")
2480 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
2482 (home-page "https://github.com/net-ssh/net-scp")
2483 (license license:expat)))
2485 (define-public ruby-minitest
2487 (name "ruby-minitest")
2491 (uri (rubygems-uri "minitest" version))
2494 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
2495 (build-system ruby-build-system)
2497 `(("ruby-hoe" ,ruby-hoe)))
2498 (synopsis "Small test suite library for Ruby")
2499 (description "Minitest provides a complete suite of Ruby testing
2500 facilities supporting TDD, BDD, mocking, and benchmarking.")
2501 (home-page "https://github.com/seattlerb/minitest")
2502 (license license:expat)))
2504 ;; This is the last release of Minitest 4, which is used by some packages.
2505 (define-public ruby-minitest-4
2506 (package (inherit ruby-minitest)
2510 (uri (rubygems-uri "minitest" version))
2513 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
2516 (modify-phases %standard-phases
2517 (add-after 'unpack 'remove-unsupported-method
2519 (substitute* "Rakefile"
2520 (("self\\.rubyforge_name = .*") ""))
2522 (add-after 'build 'exclude-failing-tests
2524 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
2526 (delete-file "test/minitest/test_minitest_spec.rb")
2529 (define-public ruby-minitest-sprint
2531 (name "ruby-minitest-sprint")
2535 (uri (rubygems-uri "minitest-sprint" version))
2538 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
2539 (build-system ruby-build-system)
2541 `(("ruby-hoe" ,ruby-hoe)
2542 ("ruby-minitest" ,ruby-minitest)))
2543 (synopsis "Fast test suite runner for minitest")
2544 (description "Minitest-sprint is a test runner for minitest that makes it
2545 easier to re-run individual failing tests.")
2546 (home-page "https://github.com/seattlerb/minitest-sprint")
2547 (license license:expat)))
2549 (define-public ruby-minitest-bacon
2551 (name "ruby-minitest-bacon")
2555 (uri (rubygems-uri "minitest-bacon" version))
2558 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
2559 (build-system ruby-build-system)
2561 `(("ruby-hoe" ,ruby-hoe)))
2563 `(("ruby-minitest" ,ruby-minitest)))
2564 (synopsis "Bacon compatibility library for minitest")
2565 (description "Minitest-bacon extends minitest with bacon-like
2566 functionality, making it easier to migrate test suites from bacon to minitest.")
2567 (home-page "https://github.com/seattlerb/minitest-bacon")
2568 (license license:expat)))
2570 (define-public ruby-minitest-focus
2572 (name "ruby-minitest-focus")
2577 (uri (rubygems-uri "minitest-focus" version))
2580 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
2581 (build-system ruby-build-system)
2583 `(("ruby-minitest" ,ruby-minitest)))
2585 `(("ruby-hoe" ,ruby-hoe)))
2586 (synopsis "Allows a few specific tests to be focused on")
2588 "@code{minitest-focus} gives the ability focus on a few tests with ease
2589 without having to use command-line arguments. It introduces a @code{focus}
2590 class method for use in testing classes, specifying that the next defined test
2592 (home-page "https://github.com/seattlerb/minitest-focus")
2593 (license license:expat)))
2595 (define-public ruby-minitest-pretty-diff
2596 ;; Use git reference because gem is out of date and does not contain testing
2597 ;; script. There are no releases on GitHub.
2598 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
2600 (name "ruby-minitest-pretty-diff")
2601 (version (string-append "0.1-1." (string-take commit 8)))
2605 (url "https://github.com/adammck/minitest-pretty_diff.git")
2607 (file-name (string-append name "-" version "-checkout"))
2610 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
2611 (build-system ruby-build-system)
2614 (modify-phases %standard-phases
2617 (invoke "script/test"))))))
2619 `(("bundler" ,bundler)
2620 ("ruby-turn" ,ruby-turn)))
2621 (synopsis "Pretty-print hashes and arrays in MiniTest")
2623 "@code{minitest-pretty_diff} monkey-patches
2624 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
2625 diffing them. This makes it easier to spot differences between nested
2626 structures when tests fail.")
2627 (home-page "https://github.com/adammck/minitest-pretty_diff")
2628 (license license:expat))))
2630 (define-public ruby-minitest-moar
2632 (name "ruby-minitest-moar")
2637 (uri (rubygems-uri "minitest-moar" version))
2640 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
2641 (build-system ruby-build-system)
2644 (modify-phases %standard-phases
2645 (add-before 'check 'clean-dependencies
2647 ;; Remove all gems defined in the Gemfile because these are not
2649 (substitute* "Gemfile"
2651 ;; Remove byebug as not needed to run tests.
2652 (substitute* "test/test_helper.rb"
2653 (("require 'byebug'") ""))
2656 `(("bundler" ,bundler)
2657 ("ruby-minitest" ,ruby-minitest)))
2658 (synopsis "Extra features and changes to MiniTest")
2659 (description "@code{MiniTest Moar} add some additional features and
2660 changes some default behaviours in MiniTest. For instance, Moar replaces the
2661 MiniTest @code{Object#stub} with a global @code{stub} method.")
2662 (home-page "https://github.com/dockyard/minitest-moar")
2663 (license license:expat)))
2665 (define-public ruby-minitest-bonus-assertions
2667 (name "ruby-minitest-bonus-assertions")
2672 (uri (rubygems-uri "minitest-bonus-assertions" version))
2675 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
2676 (build-system ruby-build-system)
2679 (modify-phases %standard-phases
2680 (add-before 'check 'clean-dependencies
2682 ;; Remove unneeded require statement that would entail another
2684 (substitute* "test/minitest_config.rb"
2685 (("require 'minitest/bisect'") ""))
2688 `(("ruby-hoe" ,ruby-hoe)
2689 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
2690 ("ruby-minitest-focus" ,ruby-minitest-focus)
2691 ("ruby-minitest-moar" ,ruby-minitest-moar)))
2692 (synopsis "Bonus assertions for @code{Minitest}")
2694 "Minitest bonus assertions provides extra MiniTest assertions. For
2695 instance, it provides @code{assert_true}, @code{assert_false} and
2696 @code{assert_set_equal}.")
2697 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
2698 (license license:expat)))
2700 (define-public ruby-minitest-reporters
2702 (name "ruby-minitest-reporters")
2707 (uri (rubygems-uri "minitest-reporters" version))
2710 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
2711 (build-system ruby-build-system)
2714 (modify-phases %standard-phases
2715 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
2716 ;; including it as an input can lead to circular dependencies.
2717 (add-after 'unpack 'remove-rubocop-from-Rakefile
2719 (substitute* "Rakefile"
2720 (("require 'rubocop/rake\\_task'") "")
2721 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
2723 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
2725 (substitute* "minitest-reporters.gemspec"
2726 ((".*%q<rubocop>.*") "\n"))
2729 `(("ruby-ansi" ,ruby-ansi)
2730 ("ruby-builder" ,ruby-builder)
2731 ("ruby-minitest" ,ruby-minitest)
2732 ("ruby-progressbar" ,ruby-progressbar)))
2734 `(("bundler" ,bundler)
2735 ("ruby-maruku" ,ruby-maruku)))
2736 (synopsis "Enhanced reporting for Minitest tests")
2738 "@code{minitest/reporters} provides a custom Minitest runner to improve
2739 how the test state is reported. A number of different reporters are
2740 available, including a spec reporter, progress bar reporter, a HTML
2742 (home-page "https://github.com/kern/minitest-reporters")
2743 (license license:expat)))
2745 (define-public ruby-minitest-rg
2747 (name "ruby-minitest-rg")
2752 (uri (rubygems-uri "minitest-rg" version))
2755 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
2756 (build-system ruby-build-system)
2758 ;; Some tests fail even outside Guix, so disable tests.
2759 ;; https://github.com/blowmage/minitest-rg/issues/12
2760 ;; https://github.com/blowmage/minitest-rg/pull/13
2763 `(("ruby-minitest" ,ruby-minitest)))
2764 (synopsis "Coloured output for Minitest")
2766 "@code{minitest-rg} changes the colour of the output from Minitest.")
2767 (home-page "http://blowmage.com/minitest-rg")
2768 (license license:expat)))
2770 (define-public ruby-minitest-hooks
2772 (name "ruby-minitest-hooks")
2777 (uri (rubygems-uri "minitest-hooks" version))
2780 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
2781 (build-system ruby-build-system)
2783 '(#:test-target "spec"))
2785 `(("ruby-sequel" ,ruby-sequel)
2786 ("ruby-sqlite3" ,ruby-sqlite3)))
2787 (synopsis "Hooks for the minitest framework")
2789 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
2790 @code{around_all} hooks for Minitest. This allows, for instance, running each
2791 suite of specs inside a database transaction, running each spec inside its own
2792 savepoint inside that transaction. This can significantly speed up testing
2793 for specs that share expensive database setup code.")
2794 (home-page "https://github.com/jeremyevans/minitest-hooks")
2795 (license license:expat)))
2797 (define-public ruby-daemons
2799 (name "ruby-daemons")
2803 (uri (rubygems-uri "daemons" version))
2806 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
2807 (build-system ruby-build-system)
2809 `(#:tests? #f)) ; no test suite
2810 (synopsis "Daemonize Ruby programs")
2811 (description "Daemons provides a way to wrap existing Ruby scripts to be
2812 run as a daemon and to be controlled by simple start/stop/restart commands.")
2813 (home-page "https://github.com/thuehlinger/daemons")
2814 (license license:expat)))
2816 (define-public ruby-data_uri
2818 (name "ruby-data_uri")
2823 (uri (rubygems-uri "data_uri" version))
2826 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
2827 (build-system ruby-build-system)
2828 (synopsis "URI class for parsing data URIs")
2830 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
2831 embedded inside a URI. The URI::Data class provides support for parsing these
2832 URIs using the normal URI.parse method.")
2833 (home-page "https://github.com/dball/data_uri")
2834 (license license:expat)))
2836 (define-public ruby-git
2842 (uri (rubygems-uri "git" version))
2845 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
2846 (build-system ruby-build-system)
2848 `(#:tests? #f ; no tests
2849 #:phases (modify-phases %standard-phases
2850 (add-after 'install 'patch-git-binary
2851 (lambda* (#:key inputs outputs #:allow-other-keys)
2852 ;; Make the default git binary an absolute path to the
2854 (let ((git (string-append (assoc-ref inputs "git")
2856 (config (string-append
2857 (assoc-ref outputs "out")
2858 "/lib/ruby/vendor_ruby/gems/git-"
2859 ,version "/lib/git/config.rb")))
2860 (substitute* (list config)
2862 (string-append "'" git "'")))
2866 (synopsis "Ruby wrappers for Git")
2867 (description "Ruby/Git is a Ruby library that can be used to create, read
2868 and manipulate Git repositories by wrapping system calls to the git binary.")
2869 (home-page "https://github.com/schacon/ruby-git")
2870 (license license:expat)))
2872 (define-public ruby-slop
2878 (uri (rubygems-uri "slop" version))
2881 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
2882 (build-system ruby-build-system)
2884 `(("ruby-minitest" ,ruby-minitest)))
2885 (synopsis "Ruby command line option parser")
2886 (description "Slop provides a Ruby domain specific language for gathering
2887 options and parsing command line flags.")
2888 (home-page "https://github.com/leejarvis/slop")
2889 (license license:expat)))
2891 (define-public ruby-slop-3
2892 (package (inherit ruby-slop)
2896 (uri (rubygems-uri "slop" version))
2899 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
2901 (define-public ruby-multipart-post
2903 (name "ruby-multipart-post")
2907 (uri (rubygems-uri "multipart-post" version))
2910 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
2911 (build-system ruby-build-system)
2913 `(("bundler" ,bundler)))
2914 (synopsis "Multipart POST library for Ruby")
2915 (description "Multipart-Post Adds multipart POST capability to Ruby's
2917 (home-page "https://github.com/nicksieger/multipart-post")
2918 (license license:expat)))
2920 (define-public ruby-multi-json
2922 (name "ruby-multi-json")
2927 ;; Tests are not distributed at rubygems.org so download from GitHub
2929 (uri (string-append "https://github.com/intridea/multi_json/archive/v"
2931 (file-name (string-append name "-" version ".tar.gz"))
2934 "1s64xqvrnrxmb59v6b2kchnisawg5ai9ky1w60dy6z6ws9la1xv4"))))
2935 (build-system ruby-build-system)
2938 (modify-phases %standard-phases
2939 (add-after 'unpack 'remove-signing-key-reference
2941 (substitute* "multi_json.gemspec"
2942 ((".*spec.signing_key.*") ""))
2945 `(("bundler" ,bundler)
2946 ("ruby-rspec" ,ruby-rspec)
2947 ("ruby-yard" ,ruby-yard)
2948 ("ruby-json-pure" ,ruby-json-pure)
2949 ("ruby-oj" ,ruby-oj)
2950 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
2951 (synopsis "Common interface to multiple JSON libraries for Ruby")
2953 "This package provides a common interface to multiple JSON libraries,
2954 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
2955 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
2956 (home-page "https://github.com/intridea/multi_json")
2957 (license license:expat)))
2959 (define-public ruby-multi-test
2961 (name "ruby-multi-test")
2966 (uri (rubygems-uri "multi_test" version))
2969 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
2970 (build-system ruby-build-system)
2972 '(;; Tests require different sets of specific gem versions to be available,
2973 ;; and there is no gemfile that specifies the newest versions of
2974 ;; dependencies to be tested.
2977 "Interface to testing libraries loaded into a running Ruby process")
2979 "@code{multi_test} provides a uniform interface onto whatever testing
2980 libraries that have been loaded into a running Ruby process to help control
2981 rogue test/unit/autorun requires.")
2982 (home-page "https://github.com/cucumber/multi_test")
2983 (license license:expat)))
2985 (define-public ruby-arel
2991 (uri (rubygems-uri "arel" version))
2994 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
2995 (build-system ruby-build-system)
2996 (arguments '(#:tests? #f)) ; no tests
2997 (home-page "https://github.com/rails/arel")
2998 (synopsis "SQL AST manager for Ruby")
2999 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3000 Ruby. It simplifies the generation of complex SQL queries and adapts to
3001 various relational database implementations.")
3002 (license license:expat)))
3004 (define-public ruby-marcel
3006 (name "ruby-marcel")
3011 (uri (rubygems-uri "marcel" version))
3014 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3015 (build-system ruby-build-system)
3017 '(;; No included tests
3020 `(("ruby-mimemagic" ,ruby-mimemagic)))
3021 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3023 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3024 Extensions} type detection using magic numbers, filenames, and extensions")
3025 (home-page "https://github.com/basecamp/marcel")
3026 (license license:expat)))
3028 (define-public ruby-minitar
3029 ;; We package from the GitHub source to fix the security issue reported at
3030 ;; https://github.com/halostatue/minitar/issues/16.
3031 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3033 (name "ruby-minitar")
3034 (version (string-append "0.5.4-1." (string-take commit 8)))
3039 (url "https://github.com/halostatue/minitar.git")
3041 (file-name (string-append name "-" version "-checkout"))
3044 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3045 (build-system ruby-build-system)
3047 '(#:tests? #f)) ; missing a gemspec
3048 (synopsis "Ruby library and utility for handling tar archives")
3050 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3051 that provides the ability to deal with POSIX tar archive files.")
3052 (home-page "http://www.github.com/atoulme/minitar")
3053 (license (list license:gpl2+ license:ruby)))))
3055 (define-public ruby-mini-portile
3057 (name "ruby-mini-portile")
3062 (uri (rubygems-uri "mini_portile" version))
3065 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3066 (build-system ruby-build-system)
3068 '(#:tests? #f)) ; tests require network access
3069 (synopsis "Ports system for Ruby developers")
3070 (description "Mini-portile is a port/recipe system for Ruby developers.
3071 It provides a standard way to compile against specific versions of libraries
3072 to reproduce user environments.")
3073 (home-page "https://github.com/flavorjones/mini_portile")
3074 (license license:expat)))
3076 (define-public ruby-mini-portile-2
3077 (package (inherit ruby-mini-portile)
3081 (uri (rubygems-uri "mini_portile2" version))
3084 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
3086 (define-public ruby-nokogiri
3088 (name "ruby-nokogiri")
3092 (uri (rubygems-uri "nokogiri" version))
3095 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
3096 (build-system ruby-build-system)
3098 ;; Tests fail because Nokogiri can only test with an installed extension,
3099 ;; and also because many test framework dependencies are missing.
3101 #:gem-flags (list "--" "--use-system-libraries"
3102 (string-append "--with-xml2-include="
3103 (assoc-ref %build-inputs "libxml2")
3104 "/include/libxml2" ))
3106 (modify-phases %standard-phases
3107 (add-before 'build 'patch-extconf
3108 ;; 'pkg-config' is not included in the GEM_PATH during
3109 ;; installation, so we add it directly to the load path.
3110 (lambda* (#:key inputs #:allow-other-keys)
3111 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3112 (substitute* "ext/nokogiri/extconf.rb"
3113 (("gem 'pkg-config'.*")
3114 (string-append "$:.unshift '"
3115 pkg-config "/lib/ruby/vendor_ruby"
3117 ,(package-version ruby-pkg-config)
3121 `(("ruby-hoe" ,ruby-hoe)))
3124 ("libxml2" ,libxml2)
3125 ("libxslt" ,libxslt)))
3127 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3128 ("ruby-pkg-config" ,ruby-pkg-config)))
3129 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3130 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3131 both CSS3 selector and XPath 1.0 support.")
3132 (home-page "http://www.nokogiri.org/")
3133 (license license:expat)))
3135 (define-public ruby-method-source
3137 (name "ruby-method-source")
3142 (uri (rubygems-uri "method_source" version))
3145 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3146 (build-system ruby-build-system)
3148 `(#:test-target "spec"))
3150 `(("ruby-rspec" ,ruby-rspec)
3152 (synopsis "Retrieve the source code for Ruby methods")
3153 (description "Method_source retrieves the source code for Ruby methods.
3154 Additionally, it can extract source code from Proc and Lambda objects or just
3156 (home-page "https://github.com/banister/method_source")
3157 (license license:expat)))
3159 (define-public ruby-coderay
3161 (name "ruby-coderay")
3166 (uri (rubygems-uri "coderay" version))
3169 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3170 (build-system ruby-build-system)
3172 '(#:tests? #f)) ; missing test files
3173 (synopsis "Ruby syntax highlighting library")
3174 (description "Coderay is a Ruby library that provides syntax highlighting
3175 for select languages.")
3176 (home-page "http://coderay.rubychan.de")
3177 (license license:expat)))
3179 (define-public ruby-parser
3181 (name "ruby-parser")
3186 (uri (rubygems-uri "parser" version))
3189 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3190 (build-system ruby-build-system)
3192 `(("bundler" ,bundler)
3193 ("ruby-cliver" ,ruby-cliver)
3194 ("ruby-simplecov" ,ruby-simplecov)
3195 ("ruby-racc" ,ruby-racc)))
3197 `(("ragel" ,ragel)))
3199 `(("ruby-ast" ,ruby-ast)))
3200 (synopsis "Ruby parser written in pure Ruby")
3202 "This package provides a Ruby parser written in pure Ruby.")
3203 (home-page "https://github.com/whitequark/parser")
3204 (license license:expat)))
3206 (define-public ruby-prawn-manual-builder
3208 (name "ruby-prawn-manual-builder")
3213 (uri (rubygems-uri "prawn-manual_builder" version))
3216 "0wbjnkqp55p5wmz85ldypcray223glckd209hmdxhnzk8s5pb3za"))))
3217 (build-system ruby-build-system)
3219 '(;; No included tests
3222 (modify-phases %standard-phases
3223 (add-after 'extract-gemspec 'patch-gemspec
3225 (substitute* ".gemspec"
3226 ;; Loosen the requirement for pdf-inspector
3227 (("~> 1\\.0\\.7") ">= 0")))))))
3229 `(("ruby-coderay" ,ruby-coderay)))
3230 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3232 "This package provides a tool for writing manuals for Prawn and Prawn
3234 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3236 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3240 (define-public ruby-progress_bar
3242 (name "ruby-progress_bar")
3247 (uri (rubygems-uri "progress_bar" version))
3250 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3251 (build-system ruby-build-system)
3253 '(#:test-target "spec"))
3255 `(("ruby-highline" ,ruby-highline)
3256 ("ruby-options" ,ruby-options)))
3258 `(("bundler" ,bundler)
3259 ("ruby-rspec" ,ruby-rspec)
3260 ("ruby-timecop" ,ruby-timecop)))
3262 "Ruby library for displaying progress bars")
3264 "ProgressBar is a simple library for displaying progress bars. The
3265 maximum value is configurable, and additional information can be displayed
3266 like the percentage completion, estimated time remaining, elapsed time and
3268 (home-page "https://github.com/paul/progress_bar")
3269 (license license:wtfpl2)))
3271 (define-public ruby-progressbar
3273 (name "ruby-progressbar")
3278 (uri (rubygems-uri "ruby-progressbar" version))
3281 "1cv2ym3rl09svw8940ny67bav7b2db4ms39i4raaqzkf59jmhglk"))))
3282 (build-system ruby-build-system)
3284 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3286 (synopsis "Text progress bar library for Ruby")
3288 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3289 The output can be customized with a formatting system.")
3290 (home-page "https://github.com/jfelchner/ruby-progressbar")
3291 (license license:expat)))
3293 (define-public ruby-pry
3300 (uri (rubygems-uri "pry" version))
3303 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3304 (build-system ruby-build-system)
3306 '(#:tests? #f)) ; no tests
3308 `(("ruby-coderay" ,ruby-coderay)
3309 ("ruby-method-source" ,ruby-method-source)))
3310 (synopsis "Ruby REPL")
3311 (description "Pry is an IRB alternative and runtime developer console for
3312 Ruby. It features syntax highlighting, a plugin architecture, runtime
3313 invocation, and source and documentation browsing.")
3314 (home-page "https://pryrepl.org")
3315 (license license:expat)))
3317 (define-public ruby-guard
3323 ;; The gem does not include a Rakefile, nor does it contain a
3324 ;; gemspec file, nor does it come with the tests. This is why
3325 ;; we fetch the tarball from Github.
3326 (uri (string-append "https://github.com/guard/guard/archive/v"
3328 (file-name (string-append name "-" version ".tar.gz"))
3331 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
3332 (build-system ruby-build-system)
3334 `(#:tests? #f ; tests require cucumber
3336 (modify-phases %standard-phases
3337 (add-after 'unpack 'remove-git-ls-files
3338 (lambda* (#:key outputs #:allow-other-keys)
3339 (substitute* "guard.gemspec"
3340 (("git ls-files -z") "find . -type f -print0"))
3344 (invoke "gem" "build" "guard.gemspec"))))))
3346 `(("ruby-formatador" ,ruby-formatador)
3347 ("ruby-listen" ,ruby-listen)
3348 ("ruby-lumberjack" ,ruby-lumberjack)
3349 ("ruby-nenv" ,ruby-nenv)
3350 ("ruby-notiffany" ,ruby-notiffany)
3351 ("ruby-pry" ,ruby-pry)
3352 ("ruby-shellany" ,ruby-shellany)
3353 ("ruby-thor" ,ruby-thor)))
3355 `(("bundler" ,bundler)
3356 ("ruby-rspec" ,ruby-rspec)))
3357 (synopsis "Tool to handle events on file system modifications")
3359 "Guard is a command line tool to easily handle events on file system
3360 modifications. Guard automates various tasks by running custom rules whenever
3361 file or directories are modified.")
3362 (home-page "http://guardgem.org/")
3363 (license license:expat)))
3365 (define-public ruby-thread-safe
3367 (name "ruby-thread-safe")
3372 (uri (rubygems-uri "thread_safe" version))
3375 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
3376 (build-system ruby-build-system)
3378 '(#:tests? #f)) ; needs simplecov, among others
3379 (synopsis "Thread-safe utilities for Ruby")
3380 (description "The thread_safe library provides thread-safe collections and
3381 utilities for Ruby.")
3382 (home-page "https://github.com/ruby-concurrency/thread_safe")
3383 (license license:asl2.0)))
3385 (define-public ruby-tzinfo
3387 (name "ruby-tzinfo")
3392 (uri (rubygems-uri "tzinfo" version))
3395 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
3396 (build-system ruby-build-system)
3398 `(("ruby-thread-safe" ,ruby-thread-safe)))
3399 (synopsis "Time zone library for Ruby")
3400 (description "TZInfo is a Ruby library that provides daylight savings
3401 aware transformations between times in different time zones.")
3402 (home-page "https://tzinfo.github.io")
3403 (license license:expat)))
3405 (define-public ruby-tzinfo-data
3407 (name "ruby-tzinfo-data")
3408 (version "1.2017.3")
3412 ;; Download from GitHub because the rubygems version does not contain
3413 ;; Rakefile or tests.
3415 "https://github.com/tzinfo/tzinfo-data/archive/v"
3418 (file-name (string-append name "-" version ".tar.gz"))
3421 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
3422 ;; Remove the known test failure.
3423 ;; https://github.com/tzinfo/tzinfo-data/issues/10
3424 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
3425 (patches (search-patches
3426 "ruby-tzinfo-data-ignore-broken-test.patch"))))
3427 (build-system ruby-build-system)
3429 `(("ruby-tzinfo" ,ruby-tzinfo)))
3430 (synopsis "Data from the IANA Time Zone database")
3432 "This library provides @code{TZInfo::Data}, which contains data from the
3433 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
3434 (home-page "https://tzinfo.github.io")
3435 (license license:expat)))
3437 (define-public ruby-rb-inotify
3439 (name "ruby-rb-inotify")
3444 (uri (rubygems-uri "rb-inotify" version))
3447 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
3448 (build-system ruby-build-system)
3450 '(#:tests? #f ; there are no tests
3452 (modify-phases %standard-phases
3453 ;; Building the gemspec with rake is not working here since it is
3454 ;; generated with Jeweler. It is also unnecessary because the
3455 ;; existing gemspec does not use any development tools to generate a
3459 (invoke "gem" "build" "rb-inotify.gemspec"))))))
3461 `(("ruby-ffi" ,ruby-ffi)))
3463 `(("ruby-yard" ,ruby-yard)))
3464 (synopsis "Ruby wrapper for Linux's inotify")
3465 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
3466 kernel subsystem for monitoring changes to files and directories.")
3467 (home-page "https://github.com/nex3/rb-inotify")
3468 (license license:expat)))
3470 (define-public ruby-pry-editline
3472 (name "ruby-pry-editline")
3476 (uri (rubygems-uri "pry-editline" version))
3479 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
3480 (build-system ruby-build-system)
3481 (arguments `(#:tests? #f)) ; no tests included
3483 `(("bundler" ,bundler)))
3484 (synopsis "Open the current REPL line in an editor")
3486 "This gem provides a plugin for the Ruby REPL to enable opening the
3487 current line in an external editor.")
3488 (home-page "https://github.com/tpope/pry-editline")
3489 (license license:expat)))
3491 (define-public ruby-sdoc
3497 (uri (rubygems-uri "sdoc" version))
3500 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
3501 (build-system ruby-build-system)
3504 (modify-phases %standard-phases
3505 (add-before 'check 'set-rubylib-and-patch-gemfile
3507 (setenv "RUBYLIB" "lib")
3508 (substitute* "sdoc.gemspec"
3509 (("s.add_runtime_dependency.*") "\n")
3510 (("s.add_dependency.*") "\n"))
3511 (substitute* "Gemfile"
3513 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
3516 `(("ruby-json" ,ruby-json)))
3518 `(("bundler" ,bundler)
3519 ("ruby-minitest" ,ruby-minitest)
3520 ("ruby-hoe" ,ruby-hoe)))
3521 (synopsis "Generate searchable RDoc documentation")
3523 "SDoc is an RDoc documentation generator to build searchable HTML
3524 documentation for Ruby code.")
3525 (home-page "https://github.com/voloko/sdoc")
3526 (license license:expat)))
3528 (define-public ruby-tins
3534 (uri (rubygems-uri "tins" version))
3537 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
3538 (build-system ruby-build-system)
3539 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
3540 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
3543 `(#:tests? #f ; there are no tests
3545 (modify-phases %standard-phases
3548 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
3550 (substitute* "tins.gemspec"
3551 (("\"lib/spruz\", ") ""))
3552 (invoke "gem" "build" "tins.gemspec"))))))
3553 (synopsis "Assorted tools for Ruby")
3554 (description "Tins is a Ruby library providing assorted tools.")
3555 (home-page "https://github.com/flori/tins")
3556 (license license:expat)))
3558 (define-public ruby-gem-hadar
3560 (name "ruby-gem-hadar")
3564 (uri (rubygems-uri "gem_hadar" version))
3567 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
3568 (build-system ruby-build-system)
3569 ;; This gem needs itself at development time. We disable rebuilding of the
3570 ;; gemspec to avoid this loop.
3572 `(#:tests? #f ; there are no tests
3574 (modify-phases %standard-phases
3577 (invoke "gem" "build" "gem_hadar.gemspec"))))))
3580 ("ruby-tins" ,ruby-tins)
3581 ("ruby-yard" ,ruby-yard)))
3582 (synopsis "Library for the development of Ruby gems")
3584 "This library contains some useful functionality to support the
3585 development of Ruby gems.")
3586 (home-page "https://github.com/flori/gem_hadar")
3587 (license license:expat)))
3589 (define-public ruby-minitest-tu-shim
3591 (name "ruby-minitest-tu-shim")
3595 (uri (rubygems-uri "minitest_tu_shim" version))
3598 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
3599 (build-system ruby-build-system)
3602 (modify-phases %standard-phases
3603 (add-after 'unpack 'fix-test-include-path
3604 (lambda* (#:key inputs #:allow-other-keys)
3605 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
3606 (substitute* "Rakefile"
3607 (("Hoe\\.add_include_dirs .*")
3608 (string-append "Hoe.add_include_dirs \""
3609 minitest "/lib/ruby/vendor_ruby"
3611 ,(package-version ruby-minitest-4)
3614 (add-before 'check 'fix-test-assumptions
3616 ;; The test output includes the file name, so a couple of tests
3617 ;; fail. Changing the regular expressions slightly fixes this
3619 (substitute* "test/test_mini_test.rb"
3620 (("output.sub!\\(.*, 'FILE:LINE'\\)")
3621 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
3622 (("gsub\\(/.*, 'FILE:LINE'\\)")
3623 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
3626 `(("ruby-minitest-4" ,ruby-minitest-4)))
3628 `(("ruby-hoe" ,ruby-hoe)))
3629 (synopsis "Adapter library between minitest and test/unit")
3631 "This library bridges the gap between the small and fast minitest and
3632 Ruby's large and slower test/unit.")
3633 (home-page "https://rubygems.org/gems/minitest_tu_shim")
3634 (license license:expat)))
3636 (define-public ruby-term-ansicolor
3638 (name "ruby-term-ansicolor")
3642 (uri (rubygems-uri "term-ansicolor" version))
3645 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
3646 (build-system ruby-build-system)
3647 ;; Rebuilding the gemspec seems to require git, even though this is not a
3648 ;; git repository, so we just build the gem from the existing gemspec.
3651 (modify-phases %standard-phases
3652 (add-after 'unpack 'fix-test
3654 (substitute* "tests/hsl_triple_test.rb"
3659 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
3661 `(("ruby-tins" ,ruby-tins)))
3663 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3664 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
3665 (synopsis "Ruby library to control the attributes of terminal output")
3667 "This Ruby library uses ANSI escape sequences to control the attributes
3668 of terminal output.")
3669 (home-page "https://flori.github.io/term-ansicolor/")
3670 ;; There is no mention of the "or later" clause.
3671 (license license:gpl2)))
3673 (define-public ruby-pstree
3675 (name "ruby-pstree")
3679 (uri (rubygems-uri "pstree" version))
3682 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
3683 (build-system ruby-build-system)
3685 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3686 ("bundler" ,bundler)))
3687 (synopsis "Create a process tree data structure")
3689 "This library uses the output of the @code{ps} command to create a
3690 process tree data structure for the current host.")
3691 (home-page "https://github.com/flori/pstree")
3692 ;; There is no mention of the "or later" clause.
3693 (license license:gpl2)))
3695 (define-public ruby-utils
3701 (uri (rubygems-uri "utils" version))
3704 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
3705 (build-system ruby-build-system)
3707 `(("ruby-tins" ,ruby-tins)
3708 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
3709 ("ruby-pstree" ,ruby-pstree)
3710 ("ruby-pry-editline" ,ruby-pry-editline)))
3712 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3713 ("bundler" ,bundler)))
3714 (synopsis "Command line tools for working with Ruby")
3716 "This package provides assorted command line tools that may be useful
3717 when working with Ruby code.")
3718 (home-page "https://github.com/flori/utils")
3719 ;; There is no mention of the "or later" clause.
3720 (license license:gpl2)))
3722 (define-public ruby-jaro-winkler
3724 (name "ruby-jaro-winkler")
3729 (uri (rubygems-uri "jaro_winkler" version))
3732 "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"))))
3733 (build-system ruby-build-system)
3735 '(;; No included tests
3737 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
3739 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
3740 algorithm. It is written as a C extension and will fallback to a pure Ruby
3741 implementation on platforms where this is unsupported.")
3742 (home-page "https://github.com/tonytonyjan/jaro_winkler")
3743 (license license:expat)))
3745 (define-public ruby-json
3752 (uri (rubygems-uri "json" version))
3755 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
3756 (build-system ruby-build-system)
3757 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
3758 (synopsis "JSON library for Ruby")
3759 (description "This Ruby library provides a JSON implementation written as
3760 a native C extension.")
3761 (home-page "http://json-jruby.rubyforge.org/")
3762 (license (list license:ruby license:gpl2)))) ; GPL2 only
3764 (define-public ruby-json-pure
3766 (name "ruby-json-pure")
3770 (uri (rubygems-uri "json_pure" version))
3773 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
3774 (build-system ruby-build-system)
3777 (modify-phases %standard-phases
3778 (add-after 'unpack 'fix-rakefile
3780 (substitute* "Rakefile"
3781 ;; Since this is not a git repository, do not call 'git'.
3782 (("`git ls-files`") "`find . -type f |sort`")
3783 ;; Loosen dependency constraint.
3784 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
3786 (add-after 'replace-git-ls-files 'regenerate-gemspec
3788 ;; Regenerate gemspec so loosened dependency constraints are
3790 (invoke "rake" "gemspec")))
3791 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
3793 ;; This gemspec doesn't look to be generated by the above
3794 ;; command, so patch it separately.
3795 (substitute* "json-java.gemspec"
3796 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
3797 "%q<test-unit>.freeze, [\">= 2.0\"]"))
3800 `(("bundler" ,bundler)
3802 ("ruby-simplecov" ,ruby-simplecov)
3803 ("ruby-test-unit" ,ruby-test-unit)))
3804 (synopsis "JSON implementation in pure Ruby")
3806 "This package provides a JSON implementation written in pure Ruby.")
3807 (home-page "https://flori.github.com/json")
3808 (license license:ruby)))
3810 ;; Even though this package only provides bindings for a Mac OSX API it is
3811 ;; required by "ruby-listen" at runtime.
3812 (define-public ruby-rb-fsevent
3814 (name "ruby-rb-fsevent")
3818 (uri (rubygems-uri "rb-fsevent" version))
3821 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
3822 (build-system ruby-build-system)
3823 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
3824 ;; "listen", which needs "rb-fsevent" at runtime.
3825 (arguments `(#:tests? #f))
3826 (synopsis "FSEvents API with signals catching")
3828 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
3829 (home-page "https://rubygems.org/gems/rb-fsevent")
3830 (license license:expat)))
3832 (define-public ruby-listen
3834 (name "ruby-listen")
3839 (uri (rubygems-uri "listen" version))
3842 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
3843 (build-system ruby-build-system)
3844 (arguments '(#:tests? #f)) ; no tests
3846 `(("ruby-rb-inotify" ,ruby-rb-inotify)
3847 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
3848 (synopsis "Listen to file modifications")
3849 (description "The Listen gem listens to file modifications and notifies
3850 you about the changes.")
3851 (home-page "https://github.com/guard/listen")
3852 (license license:expat)))
3854 (define-public ruby-listen-3.0
3856 (inherit ruby-listen)
3860 (uri (rubygems-uri "listen" version))
3863 "1l0y7hbyfiwpvk172r28hsdqsifq1ls39hsfmzi1vy4ll0smd14i"))))))
3865 (define-public ruby-loofah
3867 (name "ruby-loofah")
3872 (uri (rubygems-uri "loofah" version))
3875 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
3876 (build-system ruby-build-system)
3879 (modify-phases %standard-phases
3880 (add-after 'unpack 'remove-unnecessary-dependencies
3882 ;; concourse is a development tool which is unused, so remove it
3883 ;; so it's not required.
3884 (substitute* "Gemfile"
3885 ((".*\"concourse\".*") "\n"))
3886 (substitute* "Rakefile"
3887 (("require 'concourse'") "")
3888 (("Concourse\\.new.*") "\n"))
3891 `(("ruby-hoe" ,ruby-hoe)
3892 ("ruby-rr" ,ruby-rr)))
3894 `(("ruby-nokogiri" ,ruby-nokogiri)
3895 ("ruby-crass" ,ruby-crass)))
3896 (synopsis "Ruby library for manipulating and transforming HTML/XML")
3898 "Loofah is a general library for manipulating and transforming HTML/XML
3899 documents and fragments. It's built on top of Nokogiri and libxml2.")
3900 (home-page "https://github.com/flavorjones/loofah")
3901 (license license:expat)))
3903 (define-public ruby-activesupport
3905 (name "ruby-activesupport")
3910 (uri (rubygems-uri "activesupport" version))
3913 "1iya7vxqwxysr74s7b4z1x19gmnx5advimzip3cbmsd5bd43wfgz"))))
3914 (build-system ruby-build-system)
3917 (modify-phases %standard-phases
3920 ;; There are no tests, instead attempt to load the library.
3921 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
3923 `(("ruby-concurrent" ,ruby-concurrent)
3924 ("ruby-i18n" ,ruby-i18n)
3925 ("ruby-minitest" ,ruby-minitest)
3926 ("ruby-tzinfo" ,ruby-tzinfo)
3927 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
3928 (synopsis "Ruby on Rails utility library")
3929 (description "ActiveSupport is a toolkit of support libraries and Ruby
3930 core extensions extracted from the Rails framework. It includes support for
3931 multibyte strings, internationalization, time zones, and testing.")
3932 (home-page "http://www.rubyonrails.org")
3933 (license license:expat)))
3935 (define-public ruby-crass
3941 (uri (rubygems-uri "crass" version))
3944 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
3945 (build-system ruby-build-system)
3947 `(("bundler" ,bundler)
3948 ("ruby-minitest" ,ruby-minitest)))
3949 (synopsis "Pure Ruby CSS parser")
3951 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
3952 (home-page "https://github.com/rgrove/crass/")
3953 (license license:expat)))
3955 (define-public ruby-nokogumbo
3956 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
3958 (name "ruby-nokogumbo")
3959 (version (string-append "1.4.7-1." (string-take commit 8)))
3961 ;; We use the git reference, because there's no Rakefile in the
3962 ;; published gem and the tarball on Github is outdated.
3965 (url "https://github.com/rubys/nokogumbo.git")
3966 (commit "d56f954d20a")))
3967 (file-name (string-append name "-" version "-checkout"))
3970 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
3971 (build-system ruby-build-system)
3973 `(#:modules ((guix build ruby-build-system)
3977 (modify-phases %standard-phases
3978 (add-after 'unpack 'build-gemspec
3980 (substitute* "Rakefile"
3981 ;; Build Makefile even without a copy of gumbo-parser sources
3982 (("'gumbo-parser/src',") "")
3983 ;; We don't bundle gumbo-parser sources
3984 (("'gumbo-parser/src/\\*',") "")
3985 (("'gumbo-parser/visualc/include/\\*',") "")
3986 ;; The definition of SOURCES will be cut in gemspec, and
3987 ;; "FileList" will be undefined.
3988 (("SOURCES \\+ FileList\\[")
3989 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
3991 ;; Copy the Rakefile and cut out the gemspec.
3992 (copy-file "Rakefile" ".gemspec")
3993 (with-atomic-file-replacement ".gemspec"
3995 (let loop ((line (read-line in 'concat))
3997 (if (eof-object? line)
3999 (let ((skip-next? (if skipping?
4000 (not (string-prefix? "SPEC =" line))
4001 (string-prefix? "end" line))))
4002 (when (or (not skipping?)
4003 (and skipping? (not skip-next?)))
4004 (format #t "~a" line)
4006 (loop (read-line in 'concat) skip-next?))))))
4009 `(("gumbo-parser" ,gumbo-parser)))
4011 `(("ruby-nokogiri" ,ruby-nokogiri)))
4012 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4014 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4015 access the result as a Nokogiri parsed document.")
4016 (home-page "https://github.com/rubys/nokogumbo/")
4017 (license license:asl2.0))))
4019 (define-public ruby-sanitize
4021 (name "ruby-sanitize")
4025 ;; The gem does not include the Rakefile, so we download the
4026 ;; release tarball from Github.
4027 (uri (string-append "https://github.com/rgrove/"
4028 "sanitize/archive/v" version ".tar.gz"))
4029 (file-name (string-append name "-" version ".tar.gz"))
4032 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4033 (build-system ruby-build-system)
4035 `(("ruby-crass" ,ruby-crass)
4036 ("ruby-nokogiri" ,ruby-nokogiri)
4037 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4039 `(("bundler" ,bundler)
4040 ("ruby-minitest" ,ruby-minitest)
4041 ("ruby-redcarpet" ,ruby-redcarpet)
4042 ("ruby-yard" ,ruby-yard)))
4043 (synopsis "Whitelist-based HTML and CSS sanitizer")
4045 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4046 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4047 unacceptable HTML and/or CSS from a string.")
4048 (home-page "https://github.com/rgrove/sanitize/")
4049 (license license:expat)))
4051 (define-public ruby-oj
4058 ;; Version on rubygems.org does not contain Rakefile, so download from
4060 (uri (string-append "https://github.com/ohler55/oj/archive/v"
4062 (file-name (string-append name "-" version ".tar.gz"))
4065 "1x28ga72jxlnmsd8g8c0fw81vlh54r0qgagw2lxsd3x3la091g2h"))))
4066 (build-system ruby-build-system)
4068 '(#:test-target "test_all"
4070 (modify-phases %standard-phases
4071 (add-before 'check 'disable-bundler
4073 (substitute* "Rakefile"
4074 (("Bundler\\.with_clean_env") "1.times")
4075 (("bundle exec ") "")))))))
4077 `(("bundler" ,bundler)
4078 ("ruby-rspec" ,ruby-rspec)
4079 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4080 (synopsis "JSON parser for Ruby optimized for speed")
4082 "Oj is a JSON parser and generator for Ruby, where the encoding and
4083 decoding of JSON is implemented as a C extension to Ruby.")
4084 (home-page "http://www.ohler.com/oj")
4085 (license (list license:expat ; Ruby code
4086 license:bsd-3)))) ; extension code
4088 (define-public ruby-ox
4095 (uri (rubygems-uri "ox" version))
4098 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4099 (build-system ruby-build-system)
4101 '(#:tests? #f)) ; no tests
4102 (synopsis "Optimized XML library for Ruby")
4104 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4105 written as a native C extension. It was designed to be an alternative to
4106 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4107 alternative to Marshal for Object serialization. ")
4108 (home-page "http://www.ohler.com/ox")
4109 (license license:expat)))
4111 (define-public ruby-redcloth
4113 (name "ruby-redcloth")
4117 (uri (rubygems-uri "RedCloth" version))
4120 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4121 (build-system ruby-build-system)
4123 `(#:tests? #f ; no tests
4125 (modify-phases %standard-phases
4126 ;; Redcloth has complicated rake tasks to build various versions for
4127 ;; multiple targets using RVM. We don't want this so we just use the
4128 ;; existing gemspec.
4131 (invoke "gem" "build" "redcloth.gemspec"))))))
4133 `(("bundler" ,bundler)
4134 ("ruby-diff-lcs" ,ruby-diff-lcs)
4135 ("ruby-rspec-2" ,ruby-rspec-2)))
4136 (synopsis "Textile markup language parser for Ruby")
4138 "RedCloth is a Ruby parser for the Textile markup language.")
4139 (home-page "http://redcloth.org")
4140 (license license:expat)))
4142 (define-public ruby-pg
4149 (uri (rubygems-uri "pg" version))
4152 "1pnjw3rspdfjssxyf42jnbsdlgri8ylysimp0s28wxb93k6ff2qb"))))
4153 (build-system ruby-build-system)
4155 '(#:test-target "spec"))
4157 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4158 ("ruby-hoe" ,ruby-hoe)
4159 ("ruby-rspec" ,ruby-rspec)))
4161 `(("postgresql" ,postgresql-9.6)))
4162 (synopsis "Ruby interface to PostgreSQL")
4163 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4164 with PostgreSQL 9.0 and later.")
4165 (home-page "https://bitbucket.org/ged/ruby-pg")
4166 (license license:ruby)))
4168 (define-public ruby-byebug
4170 (name "ruby-byebug")
4175 (uri (rubygems-uri "byebug" version))
4178 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4179 (build-system ruby-build-system)
4181 '(#:tests? #f)) ; no tests
4182 (synopsis "Debugger for Ruby 2")
4183 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4184 TracePoint C API for execution control and the Debug Inspector C API for call
4185 stack navigation. The core component provides support that front-ends can
4186 build on. It provides breakpoint handling and bindings for stack frames among
4187 other things and it comes with a command line interface.")
4188 (home-page "https://github.com/deivid-rodriguez/byebug")
4189 (license license:bsd-2)))
4191 (define-public ruby-netrc
4197 (uri (rubygems-uri "netrc" version))
4200 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4201 (build-system ruby-build-system)
4204 (modify-phases %standard-phases
4206 ;; There is no Rakefile and minitest can only run one file at once,
4207 ;; so we have to iterate over all test files.
4210 (invoke "ruby" "-Itest" file))
4211 (find-files "./test" "test_.*\\.rb")))))))
4213 `(("ruby-minitest" ,ruby-minitest)))
4214 (synopsis "Library to read and update netrc files")
4216 "This library can read and update netrc files, preserving formatting
4217 including comments and whitespace.")
4218 (home-page "https://github.com/geemus/netrc")
4219 (license license:expat)))
4221 (define-public ruby-unf-ext
4223 (name "ruby-unf-ext")
4227 (uri (rubygems-uri "unf_ext" version))
4230 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
4231 (build-system ruby-build-system)
4234 (modify-phases %standard-phases
4235 (add-after 'build 'build-ext
4236 (lambda _ (invoke "rake" "compile:unf_ext"))))))
4238 `(("bundler" ,bundler)
4239 ("ruby-rake-compiler" ,ruby-rake-compiler)
4240 ("ruby-test-unit" ,ruby-test-unit)))
4241 (synopsis "Unicode normalization form support library")
4243 "This package provides unicode normalization form support for Ruby.")
4244 (home-page "https://github.com/knu/ruby-unf_ext")
4245 (license license:expat)))
4247 (define-public ruby-tdiff
4248 ;; Use a newer than released snapshot so that rspec-2 is not required.
4249 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
4252 (version (string-append "0.3.3-1." (string-take commit 8)))
4256 (url "https://github.com/postmodern/tdiff.git")
4258 (file-name (string-append name "-" version "-checkout"))
4261 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
4262 (build-system ruby-build-system)
4264 `(("ruby-rspec" ,ruby-rspec)
4265 ("ruby-yard" ,ruby-yard)
4266 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4267 (synopsis "Calculate the differences between two tree-like structures")
4269 "This library provides functions to calculate the differences between two
4270 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
4271 (home-page "https://github.com/postmodern/tdiff")
4272 (license license:expat))))
4274 (define-public ruby-nokogiri-diff
4275 ;; Use a newer than released snapshot so that rspec-2 is not required.
4276 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
4278 (name "ruby-nokogiri-diff")
4279 (version (string-append "0.2.0-1." (string-take commit 8)))
4283 (url "https://github.com/postmodern/nokogiri-diff.git")
4285 (file-name (string-append name "-" version "-checkout"))
4288 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
4289 (build-system ruby-build-system)
4291 `(("ruby-tdiff" ,ruby-tdiff)
4292 ("ruby-nokogiri" ,ruby-nokogiri)))
4294 `(("ruby-rspec" ,ruby-rspec)
4295 ("ruby-yard" ,ruby-yard)
4296 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4297 (synopsis "Calculate the differences between two XML/HTML documents")
4299 "@code{Nokogiri::Diff} adds the ability to calculate the
4300 differences (added or removed nodes) between two XML/HTML documents.")
4301 (home-page "https://github.com/postmodern/nokogiri-diff")
4302 (license license:expat))))
4304 (define-public ruby-racc
4311 (uri (rubygems-uri "racc" version))
4314 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
4315 (build-system ruby-build-system)
4317 `(("ruby-hoe" ,ruby-hoe)
4318 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4319 (synopsis "LALR(1) parser generator for Ruby")
4321 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
4322 generates Ruby program.")
4323 (home-page "http://i.loveruby.net/en/projects/racc/")
4325 ;; Generally licensed under the LGPL2.1, and some files also
4326 ;; available under the same license as Ruby.
4330 (define-public ruby-rack
4337 ;; Download from GitHub so that the patch can be applied.
4339 "https://github.com/rack/rack/archive/"
4342 (file-name (string-append name "-" version ".tar.gz"))
4345 "0pb3g5ymvbf07xaxcn51dpqv3djlxavckp3qkxsjdxiqznb0d9p1"))
4346 ;; Ignore test which fails inside the build environment but works
4348 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
4349 (build-system ruby-build-system)
4352 (modify-phases %standard-phases
4353 (add-before 'check 'fix-tests
4355 ;; A few of the tests use the length of a file on disk for
4356 ;; Content-Length and Content-Range headers. However, this file
4357 ;; has a shebang in it which an earlier phase patches, growing
4358 ;; the file size from 193 to 239 bytes when the store prefix is
4360 (let ((size-diff (- (string-length (which "ruby"))
4361 (string-length "/usr/bin/env ruby"))))
4362 (substitute* '("test/spec_file.rb")
4364 (number->string (+ 193 size-diff)))
4365 (("bytes(.)22-33" all delimiter)
4366 (string-append "bytes"
4368 (number->string (+ 22 size-diff))
4370 (number->string (+ 33 size-diff))))))
4373 `(("ruby-minitest" ,ruby-minitest)
4374 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
4377 `(("ruby-concurrent" ,ruby-concurrent)))
4378 (synopsis "Unified web application interface for Ruby")
4379 (description "Rack provides a minimal, modular and adaptable interface for
4380 developing web applications in Ruby. By wrapping HTTP requests and responses,
4381 it unifies the API for web servers, web frameworks, and software in between
4382 into a single method call.")
4383 (home-page "https://rack.github.io/")
4384 (license license:expat)))
4386 (define-public ruby-rack-test
4388 (name "ruby-rack-test")
4393 (uri (rubygems-uri "rack-test" version))
4396 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
4397 (build-system ruby-build-system)
4399 ;; Disable tests because of circular dependencies: requires sinatra,
4400 ;; which requires rack-protection, which requires rack-test. Instead
4401 ;; simply require the library.
4403 (modify-phases %standard-phases
4406 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
4408 `(("ruby-rack" ,ruby-rack)))
4409 (synopsis "Testing API for Rack applications")
4411 "Rack::Test is a small, simple testing API for Rack applications. It can
4412 be used on its own or as a reusable starting point for Web frameworks and
4413 testing libraries to build on.")
4414 (home-page "https://github.com/rack-test/rack-test")
4415 (license license:expat)))
4417 (define-public ruby-rack-protection
4419 (name "ruby-rack-protection")
4424 (uri (rubygems-uri "rack-protection" version))
4427 "1z5598qipilmnf45428jnxi63ykrgvnyywa5ckpr52zv2vpd8jdp"))))
4428 (build-system ruby-build-system)
4430 '(;; Tests missing from the gem.
4433 `(("ruby-rack" ,ruby-rack)))
4435 `(("bundler" ,bundler)
4436 ("ruby-rspec" ,ruby-rspec-2)
4437 ("ruby-rack-test" ,ruby-rack-test)))
4438 (synopsis "Rack middleware that protects against typical web attacks")
4439 (description "Rack middleware that can be used to protect against typical
4440 web attacks. It can protect all Rack apps, including Rails. For instance, it
4441 protects against cross site request forgery, cross site scripting,
4442 clickjacking, directory traversal, session hijacking and IP spoofing.")
4443 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
4444 (license license:expat)))
4446 (define-public ruby-rainbow
4448 (name "ruby-rainbow")
4453 (uri (rubygems-uri "rainbow" version))
4456 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
4457 (build-system ruby-build-system)
4460 (modify-phases %standard-phases
4461 ;; Run rspec directly, to avoid requiring Rubocop which is used from
4464 (lambda* (#:key tests? #:allow-other-keys)
4469 `(("bundler" ,bundler)
4470 ("ruby-rspec" ,ruby-rspec)))
4471 (synopsis "Colorize printed text on ANSI terminals")
4473 "@code{rainbow} provides a string presenter object to colorize strings by
4474 wrapping them in ANSI escape codes.")
4475 (home-page "https://github.com/sickill/rainbow")
4476 (license license:expat)))
4478 (define-public ruby-rr
4485 (uri (rubygems-uri "rr" version))
4488 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
4489 (build-system ruby-build-system)
4491 '(#:tests? #f)) ; test files not included
4493 `(("bundler" ,bundler)
4494 ("ruby-rspec" ,ruby-rspec)))
4495 (synopsis "Ruby test double framework")
4497 "RR is a test double framework that features a rich selection of double
4498 techniques and a terse syntax.")
4499 (home-page "https://rr.github.io/rr/")
4500 (license license:expat)))
4502 (define-public ruby-rest-client
4504 (name "ruby-rest-client")
4509 (uri (rubygems-uri "rest-client" version))
4512 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
4513 (build-system ruby-build-system)
4516 (modify-phases %standard-phases
4517 (add-before 'check 'remove-unnecessary-development-dependencies
4519 (substitute* "rest-client.gemspec"
4520 ;; Remove rubocop as it's unused. Rubocop also indirectly
4521 ;; depends on this package through ruby-parser and ruby-ast so
4522 ;; this avoids a dependency loop.
4523 ((".*rubocop.*") "\n")
4524 ;; Remove pry as it's unused, it's a debugging tool
4526 ;; Remove an unnecessarily strict rdoc dependency
4527 ((".*rdoc.*") "\n"))
4529 (add-before 'check 'delete-network-dependent-tests
4531 (delete-file "spec/integration/request_spec.rb")
4532 (delete-file "spec/integration/httpbin_spec.rb")
4535 `(("ruby-http-cookie" ,ruby-http-cookie)
4536 ("ruby-mime-types" ,ruby-mime-types)
4537 ("ruby-netrc" ,ruby-netrc)))
4539 `(("bundler" ,bundler)
4540 ("ruby-webmock", ruby-webmock-2)
4541 ("ruby-rspec", ruby-rspec)))
4542 (synopsis "Simple HTTP and REST client for Ruby")
4544 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
4545 inspired by the Sinatra microframework style of specifying actions:
4546 @code{get}, @code{put}, @code{post}, @code{delete}.")
4547 (home-page "https://github.com/rest-client/rest-client")
4548 (license license:expat)))
4550 (define-public ruby-rubocop
4552 (name "ruby-rubocop")
4557 (uri (rubygems-uri "rubocop" version))
4560 "07shi6kncwhkvlh9ci9rgccrjsq4448hbic3yrakh2w65ppynvbj"))))
4561 (build-system ruby-build-system)
4563 '(;; No included tests
4566 `(("ruby-parser" ,ruby-parser)
4567 ("ruby-powerpack" ,ruby-powerpack)
4568 ("ruby-rainbow" ,ruby-rainbow)
4569 ("ruby-progressbar" ,ruby-progressbar)
4570 ("ruby-parallel" ,ruby-parallel)
4571 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
4572 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
4573 (synopsis "Ruby code style checking tool")
4575 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
4576 the community-driven Ruby Style Guide.")
4577 (home-page "https://github.com/rubocop-hq/rubocop")
4578 (license license:expat)))
4580 (define-public ruby-contest
4582 (name "ruby-contest")
4587 (uri (rubygems-uri "contest" version))
4590 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
4591 (build-system ruby-build-system)
4592 (synopsis "Write declarative tests using nested contexts")
4594 "Contest allows writing declarative @code{Test::Unit} tests using nested
4595 contexts without performance penalties.")
4596 (home-page "https://github.com/citrusbyte/contest")
4597 (license license:expat)))
4599 (define-public ruby-creole
4601 (name "ruby-creole")
4606 (uri (rubygems-uri "creole" version))
4609 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
4610 (build-system ruby-build-system)
4612 `(("ruby-bacon" ,ruby-bacon)))
4613 (synopsis "Creole markup language converter")
4615 "Creole is a lightweight markup language and this library for converting
4616 creole to @code{HTML}.")
4617 (home-page "https://github.com/minad/creole")
4618 (license license:ruby)))
4620 (define-public ruby-docile
4622 (name "ruby-docile")
4627 (uri (rubygems-uri "docile" version))
4630 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
4631 (build-system ruby-build-system)
4633 '(#:tests? #f)) ; needs github-markup, among others
4634 (synopsis "Ruby EDSL helper library")
4635 (description "Docile is a Ruby library that provides an interface for
4636 creating embedded domain specific languages (EDSLs) that manipulate existing
4638 (home-page "https://ms-ati.github.io/docile/")
4639 (license license:expat)))
4641 (define-public ruby-gherkin
4643 (name "ruby-gherkin")
4648 (uri (rubygems-uri "gherkin" version))
4651 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
4652 (build-system ruby-build-system)
4654 `(("bundler" ,bundler)))
4656 '(#:tests? #f)) ; needs simplecov, among others
4657 (synopsis "Gherkin parser for Ruby")
4658 (description "Gherkin is a parser and compiler for the Gherkin language.
4659 It is intended be used by all Cucumber implementations to parse
4660 @file{.feature} files.")
4661 (home-page "https://github.com/cucumber-attic/gherkin")
4662 (license license:expat)))
4664 (define-public ruby-aruba
4671 (uri (rubygems-uri "aruba" version))
4674 "0zdd81l1lp0x78sxa6kkfqclpj5il3xl70nz05wqv2sfzzhqydxh"))))
4675 (build-system ruby-build-system)
4677 '(#:test-target "spec"
4679 (modify-phases %standard-phases
4680 (add-after 'unpack 'patch
4682 (substitute* "spec/aruba/api_spec.rb"
4683 ;; This resolves some errors in the specs
4685 ;; undefined method `parse' for Time:Class
4686 (("require 'spec_helper'")
4687 "require 'spec_helper'\nrequire 'time'"))
4688 ;; Avoid shebang issues in this spec file
4689 (substitute* "spec/aruba/matchers/command_spec.rb"
4690 (("/usr/bin/env bash")
4693 (add-before 'check 'remove-unnecessary-dependencies
4695 (substitute* "Gemfile"
4696 ((".*byebug.*") "\n")
4700 ((".*kramdown.*") "\n")
4701 ((".*rubocop.*") "\n")
4702 ((".*cucumber-pro.*") "\n")
4703 ((".*cucumber.*") "\n")
4704 ((".*license_finder.*") "\n")
4705 ((".*rake.*") "gem 'rake'\n")
4706 ((".*simplecov.*") "\n")
4707 ((".*relish.*") "\n"))
4708 (substitute* "spec/spec_helper.rb"
4709 ((".*simplecov.*") "")
4710 (("^SimpleCov.*") ""))
4711 (substitute* "aruba.gemspec"
4712 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
4713 "spec.add_runtime_dependency 'cucumber'"))
4715 (add-before 'check 'set-home
4716 (lambda _ (setenv "HOME" "/tmp") #t)))))
4718 `(("bundler" ,bundler)
4719 ("ruby-rspec" ,ruby-rspec)
4720 ("ruby-fuubar" ,ruby-fuubar)))
4722 `(("ruby-childprocess" ,ruby-childprocess)
4723 ("ruby-contracts" ,ruby-contracts)
4724 ("ruby-cucumber" ,ruby-cucumber)
4725 ("ruby-ffi" ,ruby-ffi)
4726 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
4727 ("ruby-thor" ,ruby-thor)
4728 ("ruby-yard" ,ruby-yard)))
4729 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
4731 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
4732 command-line applications. It supports applications written in any
4734 (home-page "https://github.com/cucumber/aruba")
4735 (license license:expat)))
4737 ;; A version of ruby-aruba without tests run so that circular dependencies can
4739 (define ruby-aruba-without-tests
4741 (inherit ruby-aruba)
4742 (arguments '(#:tests? #f))
4744 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
4745 ,@(alist-delete "ruby-cucumber"
4746 (package-propagated-inputs ruby-aruba))))
4747 (native-inputs '())))
4749 (define-public ruby-cucumber
4751 (name "ruby-cucumber")
4757 (url "https://github.com/cucumber/cucumber-ruby.git")
4758 (commit (string-append "v" version))))
4759 (file-name (git-file-name name version))
4762 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
4763 (build-system ruby-build-system)
4765 '(#:test-target "spec"
4767 (modify-phases %standard-phases
4768 ;; Don't run or require rubocop, the code linting tool, as this is a
4770 (add-after 'unpack 'dont-run-rubocop
4772 (substitute* "Rakefile"
4773 ((".*rubocop/rake\\_task.*") "")
4774 ((".*RuboCop.*") ""))
4777 `(("ruby-builder" ,ruby-builder)
4778 ("ruby-cucumber-core" ,ruby-cucumber-core)
4779 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
4780 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
4781 ("ruby-diff-lcs" ,ruby-diff-lcs)
4782 ("ruby-gherkin" ,ruby-gherkin)
4783 ("ruby-multi-json" ,ruby-multi-json)
4784 ("ruby-multi-test" ,ruby-multi-test)))
4786 `(("bundler" ,bundler)
4787 ;; Use a untested version of aruba, to avoid a circular dependency, as
4788 ;; ruby-aruba depends on ruby-cucumber.
4789 ("ruby-aruba", ruby-aruba-without-tests)
4790 ("ruby-rspec" ,ruby-rspec)
4791 ("ruby-pry" ,ruby-pry)
4792 ("ruby-nokogiri" ,ruby-nokogiri)))
4793 (synopsis "Describe automated tests in plain language")
4795 "Cucumber is a tool for running automated tests written in plain
4796 language. It's designed to support a Behaviour Driven Development (BDD)
4797 software development workflow.")
4798 (home-page "https://cucumber.io/")
4799 (license license:expat)))
4801 (define ruby-cucumber-without-tests
4802 (package (inherit ruby-cucumber)
4808 (define-public ruby-cucumber-core
4810 (name "ruby-cucumber-core")
4811 ;; Stick to major version 3, until version 4 of Cucumber is released.
4816 (uri (rubygems-uri "cucumber-core" version))
4819 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
4820 (build-system ruby-build-system)
4822 `(("ruby-backports" ,ruby-backports)
4823 ("ruby-gherkin" ,ruby-gherkin)
4824 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
4826 `(("bundler" ,bundler)))
4828 '(#:tests? #f)) ; needs simplecov, among others
4829 (synopsis "Core library for the Cucumber BDD app")
4830 (description "Cucumber is a tool for running automated tests
4831 written in plain language. Because they're written in plain language,
4832 they can be read by anyone on your team. Because they can be read by
4833 anyone, you can use them to help improve communication, collaboration
4834 and trust on your team.")
4835 (home-page "https://cucumber.io/")
4836 (license license:expat)))
4838 (define-public ruby-cucumber-expressions
4840 (name "ruby-cucumber-expressions")
4845 (uri (rubygems-uri "cucumber-expressions" version))
4848 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
4849 (build-system ruby-build-system)
4851 '(#:test-target "spec"))
4853 `(("bundler" ,bundler)
4854 ("ruby-rspec" ,ruby-rspec)
4855 ("ruby-simplecov" ,ruby-simplecov)))
4856 (synopsis "Simpler alternative to Regular Expressions")
4857 (description "Cucumber Expressions offer similar functionality to Regular
4858 Expressions, with a syntax that is easier to read and write. Cucumber
4859 Expressions are extensible with parameter types.")
4860 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
4861 (license license:expat)))
4863 (define-public ruby-cucumber-wire
4865 (name "ruby-cucumber-wire")
4866 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
4867 ;; 3, and Cucumber 4 hasn't been released yet.
4872 (uri (rubygems-uri "cucumber-wire" version))
4875 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
4876 (build-system ruby-build-system)
4878 '(;; TODO: Currently, the tests can't be run as cucumber is required,
4879 ;; which would lead to a circular dependency.
4881 #:test-target "default"
4883 (modify-phases %standard-phases
4884 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
4886 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
4889 `(("bundler" ,bundler)
4890 ("ruby-rspec" ,ruby-rspec)))
4891 (synopsis "Cucumber wire protocol plugin")
4893 "Cucumber's wire protocol allows step definitions to be implemented and
4894 invoked on any platform.")
4895 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
4896 (license license:expat)))
4898 (define-public ruby-cucumber-tag-expressions
4900 (name "ruby-cucumber-tag-expressions")
4905 (uri (rubygems-uri "cucumber-tag_expressions" version))
4908 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
4909 (build-system ruby-build-system)
4912 (modify-phases %standard-phases
4918 `(("ruby-rspec" ,ruby-rspec)))
4919 (synopsis "Cucumber tag expressions for Ruby")
4921 "Cucumber tag expression parser for Ruby. A tag expression is an infix
4922 boolean expression used by Cucumber.")
4923 (home-page "https://github.com/cucumber/tag-expressions-ruby")
4924 (license license:expat)))
4926 (define-public ruby-bio-logger
4928 (name "ruby-bio-logger")
4933 (uri (rubygems-uri "bio-logger" version))
4936 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
4937 (build-system ruby-build-system)
4939 `(#:tests? #f)) ; rake errors, missing shoulda
4941 `(("ruby-log4r" ,ruby-log4r)))
4942 (synopsis "Log4r wrapper for Ruby")
4943 (description "Bio-logger is a wrapper around Log4r adding extra logging
4944 features such as filtering and fine grained logging.")
4945 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
4946 (license license:expat)))
4948 (define-public ruby-yajl-ruby
4950 (name "ruby-yajl-ruby")
4955 (uri (rubygems-uri "yajl-ruby" version))
4958 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
4959 (build-system ruby-build-system)
4961 '(#:test-target "spec"
4963 (modify-phases %standard-phases
4964 (add-before 'check 'patch-test-to-update-load-path
4966 (substitute* "spec/parsing/large_number_spec.rb"
4967 (("require \"yajl\"")
4968 "$LOAD_PATH << 'lib'; require 'yajl'"))
4971 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4972 ("ruby-rspec" ,ruby-rspec)))
4973 (synopsis "Streaming JSON parsing and encoding library for Ruby")
4975 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
4976 is compatible with the JSON gem, so yajl-ruby can act as a drop in
4979 A modified copy of yajl is used, and included in the package.")
4980 (home-page "https://github.com/brianmario/yajl-ruby")
4981 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
4982 license:bsd-3)))) ; Included, modified copy of yajl
4984 (define-public ruby-yard
4991 ;; Tests do not pass if we build from the distributed gem.
4992 (uri (string-append "https://github.com/lsegal/yard/archive/v"
4994 (file-name (string-append name "-" version ".tar.gz"))
4997 "0sqpbayy9sb406jh0zqg6qha1xds863qz9531dh6vp58hc00clfq"))))
4998 (build-system ruby-build-system)
5001 (modify-phases %standard-phases
5004 ;; $HOME needs to be set to somewhere writeable for tests to run
5005 (setenv "HOME" "/tmp")
5006 ;; Run tests without using 'rake' to avoid dependencies.
5007 (invoke "rspec"))))))
5009 `(("ruby-rspec" ,ruby-rspec)
5010 ("ruby-rack" ,ruby-rack)))
5011 (synopsis "Documentation generation tool for Ruby")
5013 "YARD is a documentation generation tool for the Ruby programming
5014 language. It enables the user to generate consistent, usable documentation
5015 that can be exported to a number of formats very easily, and also supports
5016 extending for custom Ruby constructs such as custom class level definitions.")
5017 (home-page "https://yardoc.org")
5018 (license license:expat)))
5020 (define-public ruby-clap
5026 (uri (rubygems-uri "clap" version))
5029 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5030 (build-system ruby-build-system)
5031 ;; Clap needs cutest for running tests, but cutest needs clap.
5032 (arguments `(#:tests? #f))
5033 (synopsis "Command line argument parsing for simple applications")
5035 "Clap provides command line argument parsing features. It covers the
5036 simple case of executing code based on the flags or parameters passed.")
5037 (home-page "https://github.com/djanowski/cutest")
5038 (license license:expat)))
5040 (define-public ruby-cutest
5042 (name "ruby-cutest")
5046 (uri (rubygems-uri "cutest" version))
5049 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5050 (build-system ruby-build-system)
5052 `(("ruby-clap" ,ruby-clap)))
5053 (synopsis "Run tests in separate processes")
5055 "Cutest runs tests in separate processes to avoid shared state.")
5056 (home-page "https://github.com/djanowski/cutest")
5057 (license license:expat)))
5059 (define-public ruby-pygmentize
5061 (name "ruby-pygmentize")
5065 (uri (rubygems-uri "pygmentize" version))
5068 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5069 (build-system ruby-build-system)
5072 (modify-phases %standard-phases
5073 (add-after 'unpack 'fix-pygmentize-path
5075 (substitute* "lib/pygmentize.rb"
5076 (("\"/usr/bin/env python.*")
5077 (string-append "\"" (which "pygmentize") "\"\n")))
5079 (add-after 'build 'do-not-use-vendor-directory
5081 ;; Remove bundled pygments sources
5082 ;; FIXME: ruby-build-system does not support snippets.
5083 (delete-file-recursively "vendor")
5084 (substitute* "pygmentize.gemspec"
5085 (("\"vendor/\\*\\*/\\*\",") ""))
5088 `(("pygments" ,python-pygments)))
5090 `(("ruby-cutest" ,ruby-cutest)
5091 ("ruby-nokogiri" ,ruby-nokogiri)))
5092 (synopsis "Thin Ruby wrapper around pygmentize")
5094 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5096 (home-page "https://github.com/djanowski/pygmentize")
5097 (license license:expat)))
5099 (define-public ruby-eventmachine
5101 (name "ruby-eventmachine")
5106 (uri (rubygems-uri "eventmachine" version))
5109 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5110 (build-system ruby-build-system)
5112 '(#:tests? #f)) ; test suite tries to connect to google.com
5114 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5115 (synopsis "Single-threaded network event framework for Ruby")
5117 "EventMachine implements a single-threaded engine for arbitrary network
5118 communications. EventMachine wraps all interactions with sockets, allowing
5119 programs to concentrate on the implementation of network protocols. It can be
5120 used to create both network servers and clients.")
5121 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5122 (home-page "https://github.com/eventmachine/eventmachine")
5123 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5125 (define-public ruby-ruby-engine
5127 (name "ruby-ruby-engine")
5132 (uri (rubygems-uri "ruby_engine" version))
5135 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5136 (build-system ruby-build-system)
5139 (modify-phases %standard-phases
5140 (add-before 'check 'clean-up
5142 (delete-file "Gemfile.lock")
5143 (substitute* "ruby_engine.gemspec"
5144 ;; Remove unnecessary imports that would entail further
5147 ((".*<rubygems-tasks.*") "")
5148 ;; Remove extraneous .gem file
5149 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5150 ;; Soften rake dependency
5151 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5152 "%q<rake>.freeze, [\">= 10.0\"]")
5153 ;; Soften the rspec dependency
5154 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5155 "%q<rspec>.freeze, [\">= 2.4\"]"))
5156 (substitute* "Rakefile"
5157 (("require 'rubygems/tasks'") "")
5158 (("Gem::Tasks.new") ""))
5159 ;; Remove extraneous .gem file that otherwise gets installed.
5160 (delete-file "pkg/ruby_engine-1.0.0.gem")
5163 `(("bundler" ,bundler)
5164 ("ruby-rake" ,ruby-rake)
5165 ("ruby-rspec" ,ruby-rspec)))
5166 (synopsis "Simplifies checking for Ruby implementation")
5168 "@code{ruby_engine} provides an RubyEngine class that can be used to
5169 check which implementation of Ruby is in use. It can provide the interpreter
5170 name and provides query methods such as @{RubyEngine.mri?}.")
5171 (home-page "https://github.com/janlelis/ruby_engine")
5172 (license license:expat)))
5174 (define-public ruby-turn
5181 (uri (rubygems-uri "turn" version))
5184 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
5185 (build-system ruby-build-system)
5188 (modify-phases %standard-phases
5189 ;; Tests fail because turn changes its environment so can no longer
5190 ;; find test/unit. Instead simply test if the executable runs
5194 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
5196 `(("ruby-ansi" ,ruby-ansi)
5197 ("ruby-minitest" ,ruby-minitest-4)))
5198 (synopsis "Alternate set of alternative runners for MiniTest")
5200 "TURN provides a set of alternative runners for MiniTest which are both
5201 colorful and informative. TURN displays each test on a separate line with
5202 failures being displayed immediately instead of at the end of the tests. Note
5203 that TURN is no longer being maintained.")
5204 (home-page "http://rubygems.org/gems/turn")
5205 (license license:expat)))
5207 (define-public ruby-mimemagic
5209 (name "ruby-mimemagic")
5214 (uri (rubygems-uri "mimemagic" version))
5217 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
5218 (build-system ruby-build-system)
5221 (modify-phases %standard-phases
5222 ;; This phase breaks the tests, as it patches some of the test data.
5223 (delete 'patch-source-shebangs))))
5225 `(("ruby-bacon" ,ruby-bacon)))
5226 (synopsis "Ruby library for MIME detection by extension or content")
5228 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
5229 extension or content, using the freedesktop.org.xml shared-mime-info
5231 (home-page "https://github.com/minad/mimemagic")
5232 (license license:expat)))
5234 (define-public ruby-mime-types-data
5236 (name "ruby-mime-types-data")
5237 (version "3.2016.0521")
5241 (uri (rubygems-uri "mime-types-data" version))
5244 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
5245 (build-system ruby-build-system)
5247 `(("ruby-hoe" ,ruby-hoe)))
5248 (synopsis "Registry for information about MIME media type definitions")
5250 "@code{mime-types-data} provides a registry for information about
5251 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
5252 be used with the Ruby mime-types library or other software to determine
5253 defined filename extensions for MIME types, or to use filename extensions to
5254 look up the likely MIME type definitions.")
5255 (home-page "https://github.com/mime-types/mime-types-data/")
5256 (license license:expat)))
5258 (define-public ruby-mime-types
5260 (name "ruby-mime-types")
5265 (uri (rubygems-uri "mime-types" version))
5268 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
5269 (build-system ruby-build-system)
5271 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
5273 `(("ruby-hoe" ,ruby-hoe)
5274 ("ruby-fivemat" ,ruby-fivemat)
5275 ("ruby-minitest-focus" ,ruby-minitest-focus)
5276 ("ruby-minitest-rg" ,ruby-minitest-rg)
5277 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
5278 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
5279 (synopsis "Library and registry for MIME content type definitions")
5280 (description "The mime-types library provides a library and registry for
5281 information about Multipurpose Internet Mail Extensions (MIME) content type
5282 definitions. It can be used to determine defined filename extensions for MIME
5283 types, or to use filename extensions to look up the likely MIME type
5285 (home-page "https://github.com/mime-types/ruby-mime-types")
5286 (license license:expat)))
5288 (define-public ruby-fivemat
5290 (name "ruby-fivemat")
5295 (uri (rubygems-uri "fivemat" version))
5298 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
5299 (build-system ruby-build-system)
5301 `(#:tests? #f)) ; no tests
5302 (synopsis "Each test file given its own line of dots")
5304 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
5305 its own line of dots during testing. It aims to provide test output that is
5306 neither too verbose nor too minimal.")
5307 (home-page "https://github.com/tpope/fivemat")
5308 (license license:expat)))
5310 (define-public ruby-sqlite3
5312 (name "ruby-sqlite3")
5317 (uri (rubygems-uri "sqlite3" version))
5320 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
5321 (build-system ruby-build-system)
5324 (modify-phases %standard-phases
5325 (add-before 'check 'adjust-failing-test
5327 ;; XXX: This test fails with SQLite versions >= 3.21.
5328 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
5329 (substitute* "test/test_integration_resultset.rb"
5330 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
5332 (add-before 'check 'add-gemtest-file
5333 ;; This file exists in the repository but is not distributed.
5334 (lambda _ (invoke "touch" ".gemtest"))))))
5336 `(("sqlite" ,sqlite)))
5338 `(("ruby-hoe" ,ruby-hoe)
5339 ("ruby-rake-compiler" ,ruby-rake-compiler)
5340 ("ruby-mini-portile" ,ruby-mini-portile)))
5341 (synopsis "Interface with SQLite3 databases")
5343 "This module allows Ruby programs to interface with the SQLite3 database
5346 "https://github.com/sparklemotion/sqlite3-ruby")
5347 (license license:bsd-3)))
5349 (define-public ruby-shoulda-context
5351 (name "ruby-shoulda-context")
5356 (uri (rubygems-uri "shoulda-context" version))
5359 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
5360 (build-system ruby-build-system)
5363 (modify-phases %standard-phases
5366 ;; Do not run tests to avoid circular dependence with rails.
5367 ;; Instead just import the library to test.
5368 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
5369 (synopsis "Test::Unit context framework extracted from Shoulda")
5371 "@code{shoulda-context} is the context framework extracted from Shoulda.
5372 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
5373 context, setup, and should blocks combine to produce natural test method
5375 (home-page "https://github.com/thoughtbot/shoulda-context")
5376 (license license:expat)))
5378 (define-public ruby-shoulda-matchers
5380 (name "ruby-shoulda-matchers")
5385 (uri (rubygems-uri "shoulda-matchers" version))
5388 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
5389 (build-system ruby-build-system)
5392 (modify-phases %standard-phases
5395 ;; Do not run tests to avoid circular dependence with rails. Instead
5396 ;; just import the library to test.
5397 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
5399 `(("ruby-activesupport" ,ruby-activesupport)))
5400 (synopsis "Collection of testing matchers extracted from Shoulda")
5402 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
5403 test common Rails functionality. These tests would otherwise be much longer,
5404 more complex, and error-prone.")
5405 (home-page "https://github.com/thoughtbot/shoulda-matchers")
5406 (license license:expat)))
5408 (define-public ruby-shoulda-matchers-2
5410 (inherit ruby-shoulda-matchers)
5414 (uri (rubygems-uri "shoulda-matchers" version))
5417 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
5419 (define-public ruby-shoulda
5421 (name "ruby-shoulda")
5426 (uri (rubygems-uri "shoulda" version))
5429 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
5430 (build-system ruby-build-system)
5433 (modify-phases %standard-phases
5435 ;; Don't run tests to avoid circular dependence with rails. Instead
5436 ;; just import the library to test.
5437 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
5439 `(("ruby-shoulda-context" ,ruby-shoulda-context)
5440 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
5441 (synopsis "Context framework and matchers for testing")
5443 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
5444 @code{shoulda-matchers} providing tools for writing tests.")
5445 (home-page "https://github.com/thoughtbot/shoulda")
5446 (license license:expat)))
5448 (define-public ruby-unf
5455 (uri (rubygems-uri "unf" version))
5458 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
5459 (build-system ruby-build-system)
5462 (modify-phases %standard-phases
5463 (add-before 'check 'add-dependency-to-bundler
5465 ;; test-unit is required but not provided by the bundler
5466 ;; environment. This is fixed in the upstream repository but fix
5467 ;; has not been released.
5468 (substitute* "Gemfile"
5469 (("^gemspec") "gem 'test-unit'\ngemspec"))
5472 `(("ruby-unf-ext" ,ruby-unf-ext)))
5474 `(("ruby-shoulda" ,ruby-shoulda)
5475 ("bundler" ,bundler)
5476 ("ruby-test-unit" ,ruby-test-unit)))
5477 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
5479 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
5480 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
5481 @code{java.text.Normalizer} on JRuby.")
5482 (home-page "https://github.com/knu/ruby-unf")
5483 (license license:bsd-2)))
5485 (define-public ruby-webmock-2
5487 (name "ruby-webmock")
5492 (uri (rubygems-uri "webmock" version))
5495 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
5496 (build-system ruby-build-system)
5498 `(("bundler" ,bundler)
5499 ("ruby-rspec" ,ruby-rspec)))
5501 `(("ruby-addressable" ,ruby-addressable)
5502 ("ruby-crack" ,ruby-crack)
5503 ("ruby-hashdiff" ,ruby-hashdiff)))
5504 (synopsis "Allows stubbing and setting expectations on HTTP requests")
5506 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
5507 requests. This is useful when testing software.")
5508 (home-page "https://github.com/bblimke/webmock")
5509 (license license:expat)))
5511 (define-public ruby-unicode-display-width
5513 (name "ruby-unicode-display-width")
5518 (uri (rubygems-uri "unicode-display_width" version))
5521 "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"))))
5522 (build-system ruby-build-system)
5524 '(;; Test data not included.
5526 (synopsis "Determine the monospace display width of Ruby strings")
5528 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
5529 display width of strings in Ruby.")
5530 (home-page "https://github.com/janlelis/unicode-display_width")
5531 (license license:expat)))
5533 ;; There is another gem called 'ruby-version' so we use an underscore in this
5535 (define-public ruby_version
5537 (name "ruby_version")
5542 (uri (rubygems-uri "ruby_version" version))
5545 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
5546 (build-system ruby-build-system)
5549 (modify-phases %standard-phases
5550 (add-before 'check 'fix-dependencies
5552 ;; Remove the Gemfile.lock, as we want to use Guix packages at
5553 ;; whatever versions.
5554 (delete-file "Gemfile.lock")
5555 ;; Remove the incldued gem file as it's unnecessary.
5556 (delete-file "pkg/ruby_version-1.0.0.gem")
5557 (substitute* "ruby_version.gemspec"
5558 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
5560 ((".*rubygems-tasks.*") "\n")
5561 ;; Accept any version of rake and rspec
5562 (("%q<rake.*") "%q<rake>)\n")
5563 (("%q<rspec.*") "%q<rspec>)\n"))
5564 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
5566 (substitute* "Rakefile"
5567 (("^require 'rubygems/tasks'") "")
5568 (("Gem::Tasks.new") ""))
5571 `(("bundler" ,bundler)
5572 ("ruby-rspec" ,ruby-rspec)))
5573 (synopsis "Ruby library to help check the Ruby version")
5575 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
5576 checking for the right Ruby version in software.")
5577 (home-page "https://github.com/janlelis/ruby_version")
5578 (license license:expat)))
5580 (define-public ruby-websocket-driver
5582 (name "ruby-websocket-driver")
5587 (uri (rubygems-uri "websocket-driver" version))
5590 "1551k3fs3kkb3ghqfj3n5lps0ikb9pyrdnzmvgfdxy8574n4g1dn"))))
5591 (build-system ruby-build-system)
5593 '(;; No included tests
5596 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
5597 (synopsis "WebSocket protocol handler with pluggable I/O")
5599 "@code{websocket-driver} provides a complete implementation of the
5600 WebSocket protocols that can be hooked up to any TCP library")
5601 (home-page "https://github.com/faye/websocket-driver-ruby")
5602 (license license:expat)))
5604 (define-public ruby-websocket-extensions
5606 (name "ruby-websocket-extensions")
5611 (uri (rubygems-uri "websocket-extensions" version))
5614 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
5615 (build-system ruby-build-system)
5617 '(;; No included tests
5619 (synopsis "Generic extension manager for WebSocket connections")
5621 "@code{websocket-extensions} provides a container for registering
5622 extension plugins.")
5623 (home-page "https://github.com/faye/websocket-extensions-ruby")
5624 (license license:expat)))
5626 (define-public ruby-domain-name
5628 (name "ruby-domain-name")
5629 (version "0.5.20180417")
5633 (uri (rubygems-uri "domain_name" version))
5636 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
5637 (build-system ruby-build-system)
5640 (modify-phases %standard-phases
5641 (add-before 'check 'fix-versions
5643 ;; Fix NameError that appears to already be fixed upstream.
5644 (substitute* "Rakefile"
5645 (("DomainName::VERSION")
5646 "Bundler::GemHelper.gemspec.version"))
5647 ;; Loosen unnecessarily strict test-unit version specification.
5648 (substitute* "domain_name.gemspec"
5649 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
5652 `(("ruby-unf" ,ruby-unf)))
5654 `(("ruby-shoulda" ,ruby-shoulda)
5655 ("bundler" ,bundler)
5656 ("ruby-test-unit" ,ruby-test-unit)))
5657 (synopsis "Domain name manipulation library")
5659 "@code{domain_name} is a Domain name manipulation library. It parses a
5660 domain name ready for extracting the registered domain and TLD (Top Level
5661 Domain). It can also be used for cookie domain validation based on the Public
5663 (home-page "https://github.com/knu/ruby-domain_name")
5664 (license license:bsd-2)))
5666 (define-public ruby-http-cookie
5668 (name "ruby-http-cookie")
5673 (uri (rubygems-uri "http-cookie" version))
5676 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
5677 (build-system ruby-build-system)
5680 (modify-phases %standard-phases
5681 (add-before 'check 'add-dependency-to-bundler
5684 (substitute* "Rakefile"
5685 (("HTTP::Cookie::VERSION")
5686 "Bundler::GemHelper.gemspec.version"))
5689 `(("ruby-domain-name" ,ruby-domain-name)))
5691 `(("rubysimplecov" ,ruby-simplecov)
5692 ("bundler" ,bundler)
5693 ("ruby-sqlite3" ,ruby-sqlite3)
5694 ("ruby-test-unit" ,ruby-test-unit)))
5695 (synopsis "Handle HTTP Cookies based on RFC 6265")
5697 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
5698 RFC 6265. It has been designed with security, standards compliance and
5699 compatibility in mind, to behave just the same as today's major web browsers.
5700 It has built-in support for the legacy @code{cookies.txt} and
5701 @code{cookies.sqlite} formats of Mozilla Firefox.")
5702 (home-page "https://github.com/sparklemotion/http-cookie")
5703 (license license:expat)))
5705 (define-public ruby-httpclient
5707 (name "ruby-httpclient")
5712 (uri (rubygems-uri "httpclient" version))
5715 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
5716 (build-system ruby-build-system)
5718 '(;; TODO: Some tests currently fail
5720 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
5721 ;; 2 omissions, 0 notifications
5724 ;; 6.49 tests/s, 22.41 assertions/s
5727 (modify-phases %standard-phases
5729 (lambda* (#:key tests? #:allow-other-keys)
5736 `(("ruby-rack" ,ruby-rack)))
5738 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
5740 "The @code{httpclient} ruby library provides functionality related to
5741 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
5742 Cookie, multithreading and authentication (digest, NTLM) support.
5744 Also provided is a @command{httpclient} command, which can perform HTTP
5745 requests either using arguments or with an interactive prompt.")
5746 (home-page "https://github.com/nahi/httpclient")
5747 (license license:ruby)))
5749 (define-public ruby-ansi
5756 ;; Fetch from GitHub as the gem does not contain testing code.
5757 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
5759 (file-name (string-append name "-" version ".tar.gz"))
5762 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
5763 (build-system ruby-build-system)
5766 (modify-phases %standard-phases
5767 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
5768 ;; cycle ansi, qed, ansi. Instead simply test that the library can
5772 (invoke "ruby" "-Ilib" "-r" "ansi")))
5773 (add-before 'validate-runpath 'replace-broken-symlink
5774 (lambda* (#:key outputs #:allow-other-keys)
5775 (let* ((out (assoc-ref outputs "out"))
5776 (file (string-append
5777 out "/lib/ruby/vendor_ruby/gems/ansi-"
5778 ,version "/lib/ansi.yml")))
5779 ;; XXX: This symlink is broken since ruby 2.4.
5780 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
5782 (symlink "../.index" file)
5784 (synopsis "ANSI escape code related libraries")
5786 "This package is a collection of ANSI escape code related libraries
5787 enabling ANSI colorization and stylization of console output. Included in the
5788 library are the @code{Code} module, which defines ANSI codes as constants and
5789 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
5790 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
5791 @code{Terminal} module which provides information about the current output
5793 (home-page "https://rubyworks.github.io/ansi")
5794 (license license:bsd-2)))
5796 (define-public ruby-systemu
5798 (name "ruby-systemu")
5803 (uri (rubygems-uri "systemu" version))
5806 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
5807 (build-system ruby-build-system)
5810 (modify-phases %standard-phases
5811 (add-before 'check 'set-version
5813 (setenv "VERSION" ,version)
5815 (synopsis "Capture of stdout/stderr and handling of child processes")
5817 "Systemu can be used on any platform to return status, stdout, and stderr
5818 of any command. Unlike other methods like @code{open3} and @code{popen4}
5819 there is no danger of full pipes or threading issues hanging your process or
5821 (home-page "https://github.com/ahoward/systemu")
5822 (license license:ruby)))
5824 (define-public ruby-bio-commandeer
5826 (name "ruby-bio-commandeer")
5831 (uri (rubygems-uri "bio-commandeer" version))
5834 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
5835 (build-system ruby-build-system)
5838 (modify-phases %standard-phases
5840 ;; Run test without calling 'rake' so that jeweler is
5841 ;; not required as an input.
5843 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
5845 `(("ruby-bio-logger" ,ruby-bio-logger)
5846 ("ruby-systemu" ,ruby-systemu)))
5848 `(("bundler" ,bundler)
5849 ("ruby-rspec" ,ruby-rspec)))
5850 (synopsis "Simplified running of shell commands from within Ruby")
5852 "Bio-commandeer provides an opinionated method of running shell commands
5853 from within Ruby. The advantage of bio-commandeer over other methods of
5854 running external commands is that when something goes wrong, messages printed
5855 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
5856 detail to ease debugging.")
5857 (home-page "https://github.com/wwood/bioruby-commandeer")
5858 (license license:expat)))
5860 (define-public ruby-rubytest
5862 (name "ruby-rubytest")
5867 (uri (rubygems-uri "rubytest" version))
5870 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
5871 (build-system ruby-build-system)
5873 ;; Disable regular testing to break the cycle rubytest, qed, brass,
5874 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
5875 ;; simply test that the library can be require'd.
5877 (modify-phases %standard-phases
5880 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
5882 `(("ruby-ansi" ,ruby-ansi)))
5883 (synopsis "Universal test harness for Ruby")
5885 "Rubytest is a testing meta-framework for Ruby. It can handle any
5886 compliant test framework and can run tests from multiple frameworks in a
5888 (home-page "https://rubyworks.github.io/rubytest")
5889 (license license:bsd-2)))
5891 (define-public ruby-brass
5898 (uri (rubygems-uri "brass" version))
5901 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
5902 (build-system ruby-build-system)
5904 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
5905 ;; Instead simply test that the library can be require'd.
5907 (modify-phases %standard-phases
5910 (invoke "ruby" "-Ilib" "-r" "brass"))))))
5911 (synopsis "Basic foundational assertions framework")
5913 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
5914 foundational assertions framework for other assertion and test frameworks to
5916 (home-page "https://rubyworks.github.io/brass")
5917 (license license:bsd-2)))
5919 (define-public ruby-qed
5926 (uri (rubygems-uri "qed" version))
5929 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
5930 (build-system ruby-build-system)
5932 ;; Disable testing to break the cycle qed, ansi, qed, among others.
5933 ;; Instead simply test that the executable runs using --copyright.
5935 (modify-phases %standard-phases
5938 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
5940 `(("ruby-ansi" ,ruby-ansi)
5941 ("ruby-brass" ,ruby-brass)))
5942 (synopsis "Test framework utilizing literate programming techniques")
5944 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
5945 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
5946 Development} (BDD) utilizing Literate Programming techniques. QED sits
5947 somewhere between lower-level testing tools like @code{Test::Unit} and
5948 requirement specifications systems like Cucumber.")
5949 (home-page "https://rubyworks.github.io/qed")
5950 (license license:bsd-2)))
5952 (define-public ruby-ae
5959 ;; Fetch from github so tests are included.
5961 "https://github.com/rubyworks/ae/archive/"
5963 (file-name (string-append name "-" version ".tar.gz"))
5966 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
5967 (build-system ruby-build-system)
5970 (modify-phases %standard-phases
5972 (lambda _ (invoke "qed")))
5973 (add-before 'validate-runpath 'replace-broken-symlink
5974 (lambda* (#:key outputs #:allow-other-keys)
5975 (let* ((out (assoc-ref outputs "out"))
5976 (file (string-append
5977 out "/lib/ruby/vendor_ruby/gems/ae-"
5978 ,version "/lib/ae.yml")))
5979 ;; XXX: This symlink is broken since ruby 2.4.
5980 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
5982 (symlink "../.index" file)
5985 `(("ruby-ansi" ,ruby-ansi)))
5987 `(("ruby-qed" ,ruby-qed)))
5988 (synopsis "Assertions library")
5990 "Assertive Expressive (AE) is an assertions library specifically designed
5991 for reuse by other test frameworks.")
5992 (home-page "https://rubyworks.github.io/ae")
5993 (license license:bsd-2)))
5995 (define-public ruby-lemon
6002 (uri (rubygems-uri "lemon" version))
6005 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6006 (build-system ruby-build-system)
6009 (modify-phases %standard-phases
6010 (replace 'check (lambda _ (invoke "qed"))))))
6012 `(("ruby-ae" ,ruby-ae)
6013 ("ruby-ansi" ,ruby-ansi)
6014 ("ruby-rubytest" ,ruby-rubytest)))
6016 `(("ruby-qed" ,ruby-qed)))
6017 (synopsis "Test framework correlating code structure and test unit")
6019 "Lemon is a unit testing framework that enforces highly formal
6020 case-to-class and unit-to-method test construction. This enforcement can help
6021 focus concern on individual units of behavior.")
6022 (home-page "https://rubyworks.github.io/lemon")
6023 (license license:bsd-2)))
6025 (define-public ruby-rubytest-cli
6027 (name "ruby-rubytest-cli")
6032 (uri (rubygems-uri "rubytest-cli" version))
6035 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6036 (build-system ruby-build-system)
6038 `(#:tests? #f)) ; no tests
6040 `(("ruby-ansi" ,ruby-ansi)
6041 ("ruby-rubytest" ,ruby-rubytest)))
6042 (synopsis "Command-line interface for rubytest")
6044 "Rubytest CLI is a command-line interface for running tests for
6045 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6046 (home-page "https://rubyworks.github.io/rubytest-cli")
6047 (license license:bsd-2)))
6049 (define-public ruby-hashery
6051 (name "ruby-hashery")
6056 (uri (rubygems-uri "hashery" version))
6059 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6060 (build-system ruby-build-system)
6063 (modify-phases %standard-phases
6067 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6069 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6070 ("ruby-qed" ,ruby-qed)
6071 ("ruby-lemon" ,ruby-lemon)))
6072 (synopsis "Hash-like classes with extra features")
6074 "The Hashery is a tight collection of @code{Hash}-like classes.
6075 Included are the auto-sorting @code{Dictionary} class, the efficient
6076 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6077 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6078 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6079 standard @code{Hash} making it possible to subclass and augment to fit any
6080 specific use case.")
6081 (home-page "https://rubyworks.github.io/hashery")
6082 (license license:bsd-2)))
6084 (define-public ruby-rc4
6091 (uri (rubygems-uri "ruby-rc4" version))
6094 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
6095 (build-system ruby-build-system)
6098 (modify-phases %standard-phases
6101 (invoke "rspec" "spec/rc4_spec.rb"))))))
6103 `(("ruby-rspec" ,ruby-rspec-2)))
6104 (synopsis "Implementation of the RC4 algorithm")
6106 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
6107 (home-page "https://github.com/caiges/Ruby-RC4")
6108 (license license:expat)))
6110 (define-public ruby-afm
6117 (uri (rubygems-uri "afm" version))
6120 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
6121 (build-system ruby-build-system)
6123 `(("bundler" ,bundler)))
6124 (synopsis "Read Adobe Font Metrics (afm) files")
6126 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
6127 files and use the data therein.")
6128 (home-page "https://github.com/halfbyte/afm")
6129 (license license:expat)))
6131 (define-public ruby-ascii85
6133 (name "ruby-ascii85")
6138 (uri (rubygems-uri "Ascii85" version))
6141 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
6142 (build-system ruby-build-system)
6144 `(("bundler" ,bundler)))
6145 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
6147 "This library provides methods to encode and decode Ascii85
6148 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
6149 @dfn{Portable Document Format} (PDF) file formats.")
6150 (home-page "https://github.com/datawraith/ascii85gem")
6151 (license license:expat)))
6153 (define-public ruby-ttfunk
6155 (name "ruby-ttfunk")
6160 ;; fetch from github as the gem does not contain testing code
6162 "https://github.com/prawnpdf/ttfunk/archive/"
6164 (file-name (string-append name "-" version ".tar.gz"))
6167 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
6168 (build-system ruby-build-system)
6170 `(#:test-target "spec"
6172 (modify-phases %standard-phases
6173 (add-before 'build 'remove-ssh
6175 ;; remove dependency on an ssh key pair that doesn't exist
6176 (substitute* "ttfunk.gemspec"
6177 (("spec.signing_key.*") ""))
6179 (add-before 'check 'remove-rubocop
6181 ;; remove rubocop as a dependency as not needed for testing
6182 (substitute* "ttfunk.gemspec"
6183 (("spec.add_development_dependency\\('rubocop'.*") ""))
6184 (substitute* "Rakefile"
6185 (("require 'rubocop/rake_task'") "")
6186 (("RuboCop::RakeTask.new") ""))
6189 `(("ruby-rspec" ,ruby-rspec)
6190 ("ruby-yard" ,ruby-yard)
6191 ("bundler" ,bundler)))
6192 (synopsis "Font metrics parser for the Prawn PDF generator")
6194 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
6195 part of the Prawn PDF generator.")
6196 (home-page "https://github.com/prawnpdf/ttfunk")
6197 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
6199 (license (list license:gpl2 license:gpl3 license:ruby))))
6201 (define-public ruby-puma
6208 ;; Fetch from GitHub because distributed gem does not contain tests.
6209 (uri (string-append "https://github.com/puma/puma/archive/v"
6211 (file-name (string-append name "-" version ".tar.gz"))
6214 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
6215 (build-system ruby-build-system)
6217 `(#:tests? #f ; Tests require an out-dated version of minitest.
6219 (modify-phases %standard-phases
6220 (add-before 'build 'fix-gemspec
6222 (substitute* "puma.gemspec"
6223 (("git ls-files") "find * |sort"))
6225 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
6227 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
6228 for Ruby/Rack applications. Puma is intended for use in both development and
6229 production environments. In order to get the best throughput, it is highly
6230 recommended that you use a Ruby implementation with real threads like Rubinius
6232 (home-page "http://puma.io")
6233 (license license:expat)))
6235 (define-public ruby-hoe-git
6237 (name "ruby-hoe-git")
6242 (uri (rubygems-uri "hoe-git" version))
6245 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
6246 (build-system ruby-build-system)
6248 `(("ruby-hoe" ,ruby-hoe)
6250 (synopsis "Hoe plugins for tighter Git integration")
6252 "This package provides a set of Hoe plugins for tighter Git integration.
6253 It provides tasks to automate release tagging and pushing and changelog
6255 (home-page "https://github.com/jbarnette/hoe-git")
6256 (license license:expat)))
6258 (define-public ruby-sequel
6260 (name "ruby-sequel")
6265 (uri (rubygems-uri "sequel" version))
6268 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
6269 (build-system ruby-build-system)
6271 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
6272 (synopsis "Database toolkit for Ruby")
6273 (description "Sequel provides thread safety, connection pooling and a
6274 concise DSL for constructing SQL queries and table schemas. It includes a
6275 comprehensive ORM layer for mapping records to Ruby objects and handling
6276 associated records.")
6277 (home-page "http://sequel.jeremyevans.net")
6278 (license license:expat)))
6280 (define-public ruby-timecop
6282 (name "ruby-timecop")
6287 (uri (rubygems-uri "timecop" version))
6290 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
6291 (build-system ruby-build-system)
6294 (modify-phases %standard-phases
6295 (add-before 'check 'set-check-rubylib
6297 ;; Set RUBYLIB so timecop tests finds its own lib.
6298 (setenv "RUBYLIB" "lib")
6301 `(("bundler" ,bundler)
6302 ("ruby-minitest-rg" ,ruby-minitest-rg)
6303 ("ruby-mocha" ,ruby-mocha)
6304 ("ruby-activesupport" ,ruby-activesupport)))
6305 (synopsis "Test mocks for time-dependent functions")
6307 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
6308 making it easier to test time-dependent code. It provides a unified method to
6309 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
6311 (home-page "https://github.com/travisjeffery/timecop")
6312 (license license:expat)))
6314 (define-public ruby-concurrent
6316 (name "ruby-concurrent")
6321 ;; Download from GitHub because the rubygems version does not contain
6324 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
6327 (file-name (string-append name "-" version ".tar.gz"))
6330 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
6331 ;; Exclude failing test reported at
6332 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
6333 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
6334 "ruby-concurrent-test-arm.patch"))))
6335 (build-system ruby-build-system)
6337 `(#:test-target "spec"
6339 (modify-phases %standard-phases
6340 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
6342 ;; Delete extra gemspec files so 'first-gemspec' chooses the
6344 (delete-file "concurrent-ruby-edge.gemspec")
6345 (delete-file "concurrent-ruby-ext.gemspec")
6347 (add-before 'build 'replace-git-ls-files2
6349 (substitute* "support/file_map.rb"
6350 (("git ls-files") "find * |sort"))
6352 (add-before 'check 'rake-compile
6353 ;; Fix the test error described at
6354 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
6355 (lambda _ (invoke "rake" "compile")))
6356 (add-before 'check 'remove-timecop-dependency
6357 ;; Remove timecop-dependent tests as having timecop as a depedency
6358 ;; causes circular depedencies.
6360 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
6361 (delete-file "spec/concurrent/scheduled_task_spec.rb")
6364 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6365 ("ruby-rspec" ,ruby-rspec)))
6366 (synopsis "Concurrency tools for Ruby")
6368 "This library provides modern concurrency tools including agents,
6369 futures, promises, thread pools, actors, supervisors, and more. It is
6370 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
6372 (home-page "http://www.concurrent-ruby.com")
6373 (license license:expat)))
6375 (define-public ruby-pkg-config
6377 (name "ruby-pkg-config")
6382 (uri (rubygems-uri "pkg-config" version))
6385 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
6386 (build-system ruby-build-system)
6388 ;; Tests require extra files not included in the gem.
6390 (synopsis "Detect libraries for compiling Ruby native extensions")
6392 "@code{pkg-config} can be used in your extconf.rb to properly detect need
6393 libraries for compiling Ruby native extensions.")
6394 (home-page "https://github.com/ruby-gnome2/pkg-config")
6395 (license license:lgpl2.0+)))
6397 (define-public ruby-net-http-digest-auth
6399 (name "ruby-net-http-digest-auth")
6404 (uri (rubygems-uri "net-http-digest_auth" version))
6407 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
6408 (build-system ruby-build-system)
6410 `(("ruby-hoe" ,ruby-hoe)))
6411 (synopsis "RFC 2617 HTTP digest authentication library")
6413 "This library implements HTTP's digest authentication scheme based on
6414 RFC 2617. This enables the use of the digest authentication scheme instead
6415 of the more insecure basic authentication scheme.")
6416 (home-page "https://github.com/drbrain/net-http-digest_auth")
6417 (license license:expat)))
6419 (define-public ruby-mail
6426 (uri (rubygems-uri "mail" version))
6429 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
6430 (build-system ruby-build-system)
6432 `(("ruby-mime-types" ,ruby-mime-types)))
6434 ;; Tests require extra gems not included in the Gemfile.
6435 ;; XXX: Try enabling this for the next version with mini_mime.
6437 (synopsis "Mail library for Ruby")
6439 "Mail is an internet library for Ruby that is designed to handle email
6440 generation, parsing and sending. The purpose of this library is to provide
6441 a single point of access to handle all email functions, including sending
6442 and receiving emails. All network type actions are done through proxy
6443 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
6445 Mail has been designed with a very simple object oriented system that
6446 really opens up the email messages you are parsing, if you know what you
6447 are doing, you can fiddle with every last bit of your email directly.")
6448 (home-page "https://github.com/mikel/mail")
6449 (license license:expat)))
6451 (define-public ruby-mathn
6458 (uri (rubygems-uri "mathn" version))
6461 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
6462 (build-system ruby-build-system)
6464 `(("bundler" ,bundler)
6465 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6466 (synopsis "Extends math operations for increased precision")
6468 "This gem makes mathematical operations more precise in Ruby and
6469 integrates other mathematical standard libraries. Prior to Ruby 2.5,
6470 @code{mathn} was part of the Ruby standard library.")
6471 (home-page "https://github.com/ruby/mathn")
6472 (license license:bsd-2)))
6474 (define-public ruby-code-statistics
6476 (name "ruby-code-statistics")
6481 (uri (rubygems-uri "code_statistics" version))
6484 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
6485 (build-system ruby-build-system)
6487 `(#:tests? #f)) ; Not all test code is included in gem.
6488 (synopsis "Port of the rails 'rake stats' method")
6490 "This gem is a port of the rails 'rake stats' method so it can be made
6491 more robust and work for non rails projects.")
6492 (home-page "http://github.com/danmayer/code_statistics")
6493 (license license:expat)))
6495 (define-public ruby-rubypants
6497 (name "ruby-rubypants")
6501 (uri (rubygems-uri "rubypants" version))
6504 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
6505 (build-system ruby-build-system)
6507 '(#:tests? #f)) ; need Codecov
6508 (synopsis "Port of the smart-quotes library SmartyPants")
6510 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
6511 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
6512 and BBEdit that easily translates plain ASCII punctuation characters into
6513 smart typographic punctuation HTML entities.")
6514 (home-page "https://github.com/jmcnevin/rubypants")
6515 (license license:bsd-2)))
6517 (define-public ruby-org-ruby
6519 (name "ruby-org-ruby")
6523 (uri (rubygems-uri "org-ruby" version))
6526 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
6527 (build-system ruby-build-system)
6529 '(#:tests? #f)) ; no rakefile
6531 `(("ruby-rubypants" ,ruby-rubypants)))
6532 (synopsis "Org-mode parser written in Ruby")
6534 "Org-ruby is an org-mode parser written in Ruby. The most significant
6535 thing this library does today is convert org-mode files to HTML or Textile or
6537 (home-page "https://github.com/wallyqs/org-ruby")
6538 (license license:expat)))
6540 (define-public ruby-rake
6547 (uri (rubygems-uri "rake" version))
6550 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
6551 (build-system ruby-build-system)
6553 `(("bundler" ,bundler)))
6554 (synopsis "Rake is a Make-like program implemented in Ruby")
6556 "Rake is a Make-like program where tasks and dependencies are specified
6557 in standard Ruby syntax.")
6558 (home-page "https://github.com/ruby/rake")
6559 (license license:expat)))
6561 (define-public ruby-childprocess-0.6
6563 (name "ruby-childprocess")
6568 (uri (rubygems-uri "childprocess" version))
6571 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
6572 (build-system ruby-build-system)
6576 `(("bundler" ,bundler)
6577 ("ruby-rspec" ,ruby-rspec)))
6579 `(("ruby-ffi" ,ruby-ffi)))
6580 (synopsis "Control external programs running in the background, in Ruby")
6581 (description "@code{childprocess} provides a gem to control external
6582 programs running in the background, in Ruby.")
6583 (home-page "http://github.com/enkessler/childprocess")
6584 (license license:expat)))
6586 (define-public ruby-childprocess
6588 (inherit ruby-childprocess-0.6)
6589 (name "ruby-childprocess")
6594 (uri (rubygems-uri "childprocess" version))
6597 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
6599 (define-public ruby-public-suffix
6601 (name "ruby-public-suffix")
6605 (uri (rubygems-uri "public_suffix" version))
6608 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
6609 (build-system ruby-build-system)
6612 (modify-phases %standard-phases
6613 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
6614 ;; including it as an input can lead to circular dependencies.
6615 (add-after 'unpack 'remove-rubocop-from-Rakefile
6617 (substitute* "Rakefile"
6618 (("require \"rubocop/rake\\_task\"") "")
6619 (("RuboCop::RakeTask\\.new") ""))
6622 `(("bundler" ,bundler)
6623 ("ruby-yard" ,ruby-yard)
6624 ("ruby-mocha" ,ruby-mocha)
6625 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
6626 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
6627 (synopsis "Domain name parser")
6628 (description "The gem @code{public_suffix} is a domain name parser,
6629 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
6630 is one under which Internet users can (or historically could) directly
6631 register names. Some examples of public suffixes are @code{.com},
6632 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
6633 all known public suffixes.")
6634 (license license:expat)))
6636 (define-public ruby-addressable
6638 (name "ruby-addressable")
6642 (uri (rubygems-uri "addressable" version))
6645 "0bcm2hchn897xjhqj9zzsxf3n9xhddymj4lsclz508f4vw3av46l"))))
6646 (build-system ruby-build-system)
6648 '(#:test-target "spec"
6650 (modify-phases %standard-phases
6651 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
6653 (substitute* "Gemfile"
6654 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
6655 ((".*launchy.*") "")
6656 ((".*rake.*") "gem 'rake'\n")
6657 ((".*redcarpet.*") ""))
6659 (add-before 'check 'delete-network-dependent-test
6661 (delete-file "spec/addressable/net_http_compat_spec.rb")
6664 `(("ruby-rspec" ,ruby-rspec)
6665 ("bundler" ,bundler)
6666 ("ruby-idn-ruby" ,ruby-idn-ruby)
6667 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
6668 ("ruby-rspec-its", ruby-rspec-its)
6669 ("ruby-yard" ,ruby-yard)
6670 ("ruby-simplecov" ,ruby-simplecov)))
6672 `(("ruby-public-suffix" ,ruby-public-suffix)))
6673 (home-page "https://github.com/sporkmonger/addressable")
6674 (synopsis "Alternative URI implementation")
6675 (description "Addressable is a replacement for the URI implementation that
6676 is part of Ruby's standard library. It more closely conforms to RFC 3986,
6677 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
6678 (license license:asl2.0)))
6680 (define-public ruby-colorator
6682 (name "ruby-colorator")
6686 (uri (rubygems-uri "colorator" version))
6689 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
6690 (build-system ruby-build-system)
6694 (home-page "http://octopress.org/colorator/")
6695 (synopsis "Terminal color library")
6696 (description "Colorator is a Ruby gem that helps you colorize your text
6698 (license license:expat)))
6700 (define-public ruby-command-line-reporter
6702 (name "ruby-command-line-reporter")
6706 (uri (rubygems-uri "command_line_reporter" version))
6709 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
6710 (build-system ruby-build-system)
6715 (modify-phases %standard-phases
6716 (add-before 'build 'fix-dependencies
6718 (substitute* ".gemspec"
6719 ;; colored is unmaintained
6720 (("colored") "colorator")
6721 ;; colorator version
6722 (("= 1.2") "= 1.1"))
6724 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
6725 (home-page "https://github.com/wbailey/command_line_reporter")
6726 (synopsis "Report production while executing Ruby scripts")
6727 (description "This gem provides a DSL that makes it easy to write reports
6728 of various types in ruby. It eliminates the need to litter your source with
6729 puts statements, instead providing a more readable, expressive interface to
6731 (license license:asl2.0)))
6733 (define-public ruby-command-line-reporter-3
6735 (inherit ruby-command-line-reporter)
6739 (uri (rubygems-uri "command_line_reporter" version))
6742 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
6744 (define-public ruby-rdoc
6751 (uri (rubygems-uri "rdoc" version))
6754 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
6755 (build-system ruby-build-system)
6757 `(("bundler" ,bundler)))
6758 (home-page "https://ruby.github.io/rdoc/")
6759 (synopsis "HTML and command-line documentation utility")
6760 (description "RDoc produces HTML and command-line documentation for Ruby
6761 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
6762 documentation from the command-line.")
6763 (license license:gpl2+)))
6765 (define-public ruby-sass-listen
6767 (name "ruby-sass-listen")
6771 (uri (rubygems-uri "sass-listen" version))
6774 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
6775 (build-system ruby-build-system)
6780 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6781 ("ruby-rb-inotify" ,ruby-rb-inotify)))
6782 (home-page "https://github.com/sass/listen")
6783 (synopsis "File modification notification library")
6784 (description "The Listen gem listens to file modifications and notifies you
6785 about the changes.")
6786 (license license:expat)))
6788 (define-public ruby-terminfo
6790 (name "ruby-terminfo")
6795 (uri (rubygems-uri "ruby-terminfo" version))
6798 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
6799 (build-system ruby-build-system)
6801 `(#:test-target "test"
6802 ;; Rakefile requires old packages and would need modification to
6803 ;; work with current software.
6806 `(("ncurses" ,ncurses)))
6808 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
6809 ("ruby-rdoc" ,ruby-rdoc)))
6810 (home-page "http://www.a-k-r.org/ruby-terminfo/")
6811 (synopsis "Terminfo binding for Ruby")
6812 (description "Ruby-terminfo provides terminfo binding for Ruby.")
6813 (license license:bsd-3)))
6815 (define-public ruby-diffy
6822 (uri (rubygems-uri "diffy" version))
6825 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
6826 (build-system ruby-build-system)
6831 `(("ruby-rspec" ,ruby-rspec)))
6832 (home-page "https://github.com/samg/diffy")
6833 (synopsis "Convenient diffing in ruby")
6834 (description "Diffy provides a convenient way to generate a diff from two
6836 (license license:expat)))
6838 (define-public ruby-sass-spec
6840 (name "ruby-sass-spec")
6844 (uri (string-append "https://github.com/sass/sass-spec/archive/v"
6846 (file-name (string-append name "-" version ".tar.gz"))
6849 "0nx8lp7c9qa58w489crgqa3c489xsyarn1a8h4np9mwwfqm1h3rr"))))
6850 (build-system ruby-build-system)
6852 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
6853 ("ruby-diffy" ,ruby-diffy)
6854 ("ruby-terminfo" ,ruby-terminfo)))
6856 `(;; This package contains tests for a sass implementation, and the to
6857 ;; avoid any circular dependencies, the tests are not run here
6860 (modify-phases %standard-phases
6861 (add-after 'unpack 'patch-test
6863 (delete-file "spec/values/colors/alpha_hex-3.5/error")
6864 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
6865 (("string") "color")))))))
6866 (home-page "https://github.com/sass/sass-spec")
6867 (synopsis "Test suite for Sass")
6868 (description "Sass Spec is a test suite for Sass. Test cases are all in
6869 the @file{spec} directory.")
6870 (license license:expat)))
6872 (define-public ruby-sass
6878 (uri (rubygems-uri "sass" version))
6881 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
6882 (build-system ruby-build-system)
6884 `(("ruby-sass-listen" ,ruby-sass-listen)))
6886 `(("ruby-sass-spec" ,ruby-sass-spec)
6887 ("ruby-mathn" ,ruby-mathn)))
6888 (home-page "http://sass-lang.com/")
6889 (synopsis "CSS extension language")
6890 (description "Sass is a CSS extension language. It extends CSS with
6891 features that don't exist yet like variables, nesting, mixins and inheritance.")
6892 (license license:expat)))
6894 (define-public ruby-jekyll-sass-converter
6896 (name "ruby-jekyll-sass-converter")
6900 (uri (rubygems-uri "jekyll-sass-converter" version))
6903 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
6904 (build-system ruby-build-system)
6906 `(("ruby-sass" ,ruby-sass)))
6910 (home-page "https://github.com/jekyll/jekyll-sass-converter")
6911 (synopsis "Sass converter for Jekyll")
6912 (description "This gem provide built-in support for the Sass converter
6914 (license license:expat)))
6916 (define-public ruby-jekyll-watch
6918 (name "ruby-jekyll-watch")
6922 (uri (rubygems-uri "jekyll-watch" version))
6925 "0m7scvj3ki8bmyx5v8pzibpg6my10nycnc28lip98dskf8iakprp"))))
6926 (build-system ruby-build-system)
6928 `(("ruby-listen-3.0" ,ruby-listen-3.0)))
6932 (home-page "https://github.com/jekyll/jekyll-watch")
6933 (synopsis "Jekyll auto-rebuild support")
6934 (description "This gems add the @code{--watch} switch to the jekyll CLI
6935 interface. It allows Jekyll to rebuild your site when a file changes.")
6936 (license license:expat)))
6938 (define-public ruby-parallel
6940 (name "ruby-parallel")
6946 (url "https://github.com/grosser/parallel.git")
6947 (commit (string-append "v" version))))
6948 (file-name (git-file-name name version))
6951 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
6952 (build-system ruby-build-system)
6954 `(;; TODO 3 test failures
6955 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
6956 ;; open unnecessary pipes
6957 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
6958 ;; SQLite in processes
6959 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
6960 ;; SQLite in threads
6962 #:test-target "rspec-rerun:spec"
6964 (modify-phases %standard-phases
6965 (add-after 'unpack 'patch-Gemfile
6967 (substitute* "Gemfile"
6968 (("gem 'rspec-legacy_formatters'") "")
6969 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
6970 (add-before 'check 'delete-Gemfile.lock
6972 ;; Bundler isn't being used for fetching dependendencies, so
6973 ;; delete the Gemfile.lock
6974 (delete-file "Gemfile.lock")
6976 (add-before 'build 'patch-gemspec
6978 (substitute* "parallel.gemspec"
6979 (("git ls-files") "find"))
6982 `(("ruby-rspec" ,ruby-rspec)
6983 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
6984 ("bundler" ,bundler)
6985 ("ruby-activerecord" ,ruby-activerecord)
6986 ("ruby-progressbar" ,ruby-progressbar)
6987 ("ruby-bump" ,ruby-bump)
6990 ("ruby-mysql2" ,ruby-mysql2)
6991 ("ruby-sqlite3" ,ruby-sqlite3)
6992 ("ruby-i18n" ,ruby-i18n)))
6993 (home-page "https://github.com/grosser/parallel")
6994 (synopsis "Parallel processing in Ruby")
6995 (description "Parallel allows you to run any code in parallel Processes
6996 (to use all CPUs) or Threads(to speedup blocking operations). It is best
6997 suited for map-reduce or e.g. parallel downloads/uploads.")
6998 (license license:expat)))
7000 (define-public ruby-cane
7006 (uri (rubygems-uri "cane" version))
7009 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7010 (build-system ruby-build-system)
7011 (arguments `(#:tests? #f)); No rakefile
7012 (home-page "https://github.com/square/cane")
7014 `(("ruby-parallel" ,ruby-parallel)))
7015 (synopsis "Code quality threshold checking")
7016 (description "Cane fails your build if code quality thresholds are not met.")
7017 (license license:asl2.0)))
7019 (define-public ruby-morecane
7021 (name "ruby-morecane")
7025 (uri (rubygems-uri "morecane" version))
7028 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
7029 (build-system ruby-build-system)
7030 (home-page "https://github.com/yob/morecane")
7031 (arguments `(#:tests? #f)); No rakefile
7033 `(("ruby-parallel" ,ruby-parallel)))
7034 (synopsis "Extra checks for cane")
7035 (description "The cane gem provides a great framework for running quality
7036 checks over your ruby project as part of continuous integration build. It
7037 comes with a few checks out of the box, but also provides an API for loading
7038 custom checks. This gem provides a set of additional checks.")
7039 (license license:expat)))
7041 (define-public ruby-pdf-reader
7043 (name "ruby-pdf-reader")
7047 (uri (rubygems-uri "pdf-reader" version))
7050 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
7051 (build-system ruby-build-system)
7052 (arguments `(#:test-target "spec"))
7054 `(("bundler" ,bundler)
7055 ("ruby-rspec" ,ruby-rspec)
7056 ("ruby-cane" ,ruby-cane)
7057 ("ruby-morecane" ,ruby-morecane)))
7059 `(("ruby-afm" ,ruby-afm)
7060 ("ruby-ascii85" ,ruby-ascii85)
7061 ("ruby-hashery" ,ruby-hashery)
7062 ("ruby-rc4" ,ruby-rc4)
7063 ("ruby-ttfunk" ,ruby-ttfunk)))
7064 (home-page "https://github.com/yob/pdf-reader")
7065 (synopsis "PDF parser in Ruby")
7066 (description "The PDF::Reader library implements a PDF parser conforming as
7067 much as possible to the PDF specification from Adobe. It provides programmatic
7068 access to the contents of a PDF file with a high degree of flexibility.")
7069 (license license:gpl3+)))
7071 (define-public ruby-pdf-inspector
7073 (name "ruby-pdf-inspector")
7077 (uri (rubygems-uri "pdf-inspector" version))
7080 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
7081 (build-system ruby-build-system)
7083 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
7084 (arguments `(#:tests? #f)); No rakefile
7085 (home-page "https://github.com/prawnpdf/pdf-inspector")
7086 (synopsis "Analysis classes for inspecting PDF output")
7087 (description "This library provides a number of PDF::Reader based tools for
7088 use in testing PDF output. Presently, the primary purpose of this tool is to
7089 support the tests found in Prawn, a pure Ruby PDF generation library.")
7090 (license license:gpl3+)))
7092 (define-public ruby-pdf-core
7094 (name "ruby-pdf-core")
7098 (uri (rubygems-uri "pdf-core" version))
7101 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
7102 (build-system ruby-build-system)
7106 (home-page "https://github.com/prawnpdf/pdf-core")
7107 (synopsis "Low level PDF features for Prawn")
7108 (description "This is an experimental gem that extracts low-level PDF
7109 functionality from Prawn.")
7110 (license license:gpl3+)))
7112 (define-public ruby-prawn
7118 (uri (rubygems-uri "prawn" version))
7121 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
7122 (build-system ruby-build-system)
7127 (modify-phases %standard-phases
7128 (add-before 'build 'fix-dependencies
7130 (substitute* "prawn.gemspec"
7131 (("~> 0.7.0") "~> 0.7"))
7134 `(("ruby-pdf-core" ,ruby-pdf-core)
7135 ("ruby-ttfunk" ,ruby-ttfunk)))
7137 `(("bundler" ,bundler)
7138 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
7139 ("ruby-rspec" ,ruby-rspec)
7140 ("ruby-simplecov" ,ruby-simplecov)
7141 ("ruby-yard" ,ruby-yard)))
7142 (home-page "http://prawnpdf.org/api-docs/2.0/")
7143 (synopsis "PDF generation for Ruby")
7144 (description "Prawn is a pure Ruby PDF generation library.")
7145 (license license:gpl3+)))
7147 (define-public ruby-prawn-table
7149 (name "ruby-prawn-table")
7153 (uri (rubygems-uri "prawn-table" version))
7156 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
7157 (build-system ruby-build-system)
7159 `(("ruby-prawn" ,ruby-prawn)
7160 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
7162 `(("bundler" ,bundler)
7163 ("ruby-yard" ,ruby-yard)
7164 ("ruby-mocha" ,ruby-mocha)
7165 ("ruby-coderay" ,ruby-coderay)
7166 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
7167 ("ruby-simplecov" ,ruby-simplecov)
7168 ("ruby-rspec-2" ,ruby-rspec-2)))
7170 '(;; TODO: 1 test fails
7171 ;; Failure/Error: pdf.page_count.should == 1
7173 ;; got: 2 (using ==)
7174 ;; # ./spec/table_spec.rb:1308
7176 ;; 225 examples, 1 failure
7179 (modify-phases %standard-phases
7180 (add-before 'check 'patch-gemspec
7182 (substitute* "prawn-table.gemspec"
7183 ;; Loosen the requirement for pdf-inspector
7184 (("~> 1\\.1\\.0") ">= 0")
7185 ;; Loosen the requirement for pdf-reader
7186 (("~> 1\\.2") ">= 0"))))
7188 (lambda* (#:key tests? #:allow-other-keys)
7192 (home-page "https://github.com/prawnpdf/prawn-table")
7193 (synopsis "Tables support for Prawn")
7194 (description "This gem provides tables support for Prawn.")
7195 (license license:gpl3+)))
7197 (define-public ruby-kramdown
7199 (name "ruby-kramdown")
7203 (uri (rubygems-uri "kramdown" version))
7206 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
7207 (build-system ruby-build-system)
7208 (arguments `(#:tests? #f)); FIXME: some test failures
7210 `(("ruby-prawn" ,ruby-prawn)
7211 ("ruby-prawn-table" ,ruby-prawn-table)))
7212 (home-page "https://kramdown.gettalong.org/")
7213 (synopsis "Markdown parsing and converting library")
7214 (description "Kramdown is a library for parsing and converting a superset
7215 of Markdown. It is completely written in Ruby, supports standard Markdown
7216 (with some minor modifications) and various extensions that have been made
7217 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
7218 (license license:expat)))
7220 (define-public ruby-http-parser.rb
7222 (name "ruby-http-parser.rb")
7227 (uri (rubygems-uri "http_parser.rb" version))
7230 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
7231 (build-system ruby-build-system)
7236 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7237 ("ruby-rspec" ,ruby-rspec)))
7238 (home-page "https://github.com/tmm1/http_parser.rb")
7239 (synopsis "HTTP parser un Ruby")
7240 (description "This gem is a simple callback-based HTTP request/response
7241 parser for writing http servers, clients and proxies.")
7242 (license license:expat)))
7244 (define-public ruby-em-websocket
7246 (name "ruby-em-websocket")
7251 (uri (rubygems-uri "em-websocket" version))
7254 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
7255 (build-system ruby-build-system)
7260 `(("ruby-eventmachine" ,ruby-eventmachine)
7261 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
7263 `(("bundler" ,bundler)
7264 ("ruby-rspec" ,ruby-rspec)))
7265 (home-page "https://github.com/igrigorik/em-websocket")
7266 (synopsis "EventMachine based WebSocket server")
7267 (description "Em-websocket is an EventMachine based WebSocket server
7269 (license license:expat)))
7271 (define-public ruby-rouge
7277 (uri (rubygems-uri "rouge" version))
7280 "0h79gn2wmn1wix2d27lgiaimccyj8gvizrllyym500pir408x62f"))))
7281 (build-system ruby-build-system)
7282 (arguments `(#:tests? #f)); No rakefile
7283 (home-page "http://rouge.jneen.net/")
7284 (synopsis "Code highlighter")
7285 (description "Rouge is a code highlighter written in Ruby. It supports more
7286 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
7287 is compatible with stylesheets designed for pygments.")
7289 ;; rouge is licensed under expat
7291 ;; pygments is licensed under bsd-2
7294 (define-public ruby-rouge-2
7296 (inherit ruby-rouge)
7300 (uri (rubygems-uri "rouge" version))
7303 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
7305 (define-public ruby-hashie
7307 (name "ruby-hashie")
7311 (uri (rubygems-uri "hashie" version))
7314 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
7315 (build-system ruby-build-system)
7317 `(("bundler" ,bundler)))
7318 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
7319 (home-page "https://github.com/intridea/hashie")
7320 (synopsis "Extensions to Ruby Hashes")
7321 (description "Hashie is a collection of classes and mixins that make Ruby
7322 hashes more powerful.")
7323 (license license:expat)))
7325 (define-public ruby-heredoc-unindent
7327 (name "ruby-heredoc-unindent")
7331 (uri (rubygems-uri "heredoc_unindent" version))
7334 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
7335 (build-system ruby-build-system)
7337 `(("ruby-hoe" ,ruby-hoe)))
7338 (home-page "https://github.com/adrianomitre/heredoc_unindent")
7339 (synopsis "Heredoc indentation cleaner")
7340 (description "This gem removes common margin from indented strings, such
7341 as the ones produced by indented heredocs. In other words, it strips out
7342 leading whitespace chars at the beginning of each line, but only as much as
7343 the line with the smallest margin.
7345 It is acknowledged that many strings defined by heredocs are just code and
7346 fact is that most parsers are insensitive to indentation. If, however, the
7347 strings are to be used otherwise, be it for printing or testing, the extra
7348 indentation will probably be an issue and hence this gem.")
7349 (license license:expat)))
7351 (define-public ruby-safe-yaml
7353 (name "ruby-safe-yaml")
7357 ;; TODO Fetch from the git repository so a patch can be applied
7360 (url "https://github.com/dtao/safe_yaml.git")
7362 (file-name (git-file-name name version))
7365 "1wnln8xdy8g6kwdj4amm8773xwffqxpf2sxslk6jjh2wxsy1lrig"))
7367 (search-patches "ruby-safe-yaml-add-require-time.patch"))))
7368 (build-system ruby-build-system)
7370 `(("ruby-rspec" ,ruby-rspec)
7371 ("ruby-hashie" ,ruby-hashie)
7372 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
7374 '(#:test-target "spec"
7376 (modify-phases %standard-phases
7377 (add-before 'check 'set-TZ
7379 ;; This test is dependent on the timezone
7380 ;; spec/transform/to_date_spec.rb:35
7381 ;; # SafeYAML::Transform::ToDate converts times to the local
7383 (setenv "TZ" "UTC-11")
7385 (home-page "https://github.com/dtao/safe_yaml")
7386 (synopsis "YAML parser")
7387 (description "The SafeYAML gem provides an alternative implementation of
7388 YAML.load suitable for accepting user input in Ruby applications.")
7389 (license license:expat)))
7391 (define-public ruby-mercenary
7393 (name "ruby-mercenary")
7397 (uri (rubygems-uri "mercenary" version))
7400 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
7401 (build-system ruby-build-system)
7402 (arguments `(#:test-target "spec"))
7404 `(("bundler" ,bundler)))
7405 (home-page "https://github.com/jekyll/mercenary")
7406 (synopsis "Command-line apps library in Ruby")
7407 (description "Mercenary is a lightweight and flexible library for writing
7408 command-line apps in Ruby.")
7409 (license license:expat)))
7411 (define-public ruby-liquid
7413 (name "ruby-liquid")
7417 (uri (rubygems-uri "liquid" version))
7420 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
7421 (build-system ruby-build-system)
7422 (arguments `(#:tests? #f)); No rakefile
7423 (home-page "https://shopify.github.io/liquid/")
7424 (synopsis "Template language")
7425 (description "Liquid is a template language written in Ruby. It is used
7426 to load dynamic content on storefronts.")
7427 (license license:expat)))
7429 (define-public ruby-forwardable-extended
7431 (name "ruby-forwardable-extended")
7435 (uri (rubygems-uri "forwardable-extended" version))
7438 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
7439 (build-system ruby-build-system)
7440 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
7441 (home-page "https://github.com/envygeeks/forwardable-extended")
7442 (synopsis "Delegation to hashes and instance variables in Forwardable")
7443 (description "Forwardable Extended provides more @code{Forwardable}
7444 methods for your source as @code{Forwardable::Extended}.")
7445 (license license:expat)))
7447 (define-public ruby-pathutil
7449 (name "ruby-pathutil")
7453 (uri (rubygems-uri "pathutil" version))
7456 "0wc18ms1rzi44lpjychyw2a96jcmgxqdvy2949r4vvb5f4p0lgvz"))))
7457 (build-system ruby-build-system)
7459 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
7461 `(("bundler" ,bundler)
7462 ("ruby-rspec" ,ruby-rspec)))
7463 ;; Fails with: cannot load such file --
7464 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
7465 (arguments `(#:tests? #f))
7466 (home-page "https://github.com/envygeeks/pathutil")
7467 (synopsis "Extended implementation of Pathname")
7468 (description "Pathutil tries to be a faster pure Ruby implementation of
7470 (license license:expat)))
7472 (define-public jekyll
7478 (uri (rubygems-uri "jekyll" version))
7481 "1iw90wihk9dscgmppf5v6lysg3kjmnx50mjyl4gghkdb4spw97xk"))))
7482 (build-system ruby-build-system)
7484 ;; No rakefile, but a test subdirectory
7487 (modify-phases %standard-phases
7488 (add-before 'build 'fix-i18n
7490 (substitute* ".gemspec"
7491 (("~> 0.7") ">= 0.7"))
7494 `(("ruby-addressable" ,ruby-addressable)
7495 ("ruby-colorator" ,ruby-colorator)
7496 ("ruby-em-websocket" ,ruby-em-websocket)
7497 ("ruby-i18n" ,ruby-i18n)
7498 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
7499 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
7500 ("ruby-kramdown" ,ruby-kramdown)
7501 ("ruby-liquid" ,ruby-liquid)
7502 ("ruby-mercenary" ,ruby-mercenary)
7503 ("ruby-pathutil" ,ruby-pathutil)
7504 ("ruby-rouge" ,ruby-rouge-2)
7505 ("ruby-safe-yaml" ,ruby-safe-yaml)))
7506 (home-page "https://jekyllrb.com/")
7507 (synopsis "Static site generator")
7508 (description "Jekyll is a simple, blog aware, static site generator.")
7509 (license license:expat)))
7511 (define-public ruby-jekyll-paginate-v2
7513 (name "ruby-jekyll-paginate-v2")
7517 (uri (rubygems-uri "jekyll-paginate-v2" version))
7520 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
7521 (build-system ruby-build-system)
7523 `(("jekyll" ,jekyll)))
7524 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
7525 (synopsis "Pagination Generator for Jekyll 3")
7526 (description "The Pagination Generator forms the core of the pagination
7527 logic in Jekyll. It calculates and generates the pagination pages.")
7528 (license license:expat)))
7530 (define-public ruby-faraday
7532 (name "ruby-faraday")
7537 (uri (rubygems-uri "faraday" version))
7540 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
7541 (build-system ruby-build-system)
7545 `(("ruby-multipart-post" ,ruby-multipart-post)))
7546 (synopsis "Ruby HTTP/REST API client library")
7548 "Faraday is a HTTP/REST API client library which provides a common
7549 interface over different adapters.")
7550 (home-page "https://github.com/lostisland/faraday")
7551 (license license:expat)))
7553 (define-public ruby-nio4r
7560 (uri (rubygems-uri "nio4r" version))
7563 "1a41ca1kpdmrypjp9xbgvckpy8g26zxphkja9vk7j5wl4n8yvlyr"))))
7564 (build-system ruby-build-system)
7567 (modify-phases %standard-phases
7568 (add-after 'unpack 'remove-unnecessary-dependencies
7570 (substitute* "spec/spec_helper.rb"
7571 ;; Coveralls is for uploading test coverage information to an
7572 ;; online service, and thus unnecessary for building the Guix
7574 (("require \"coveralls\"") "")
7575 (("Coveralls\\.wear!") "")
7576 ;; Remove rspec/retry as we are not retrying the tests
7577 (("require \"rspec/retry\"") "")
7578 (("config\\.display_try_failure_messages = true") "")
7579 (("config\\.verbose_retry = true") ""))
7581 (add-before 'check 'compile
7583 (invoke "rake" "compile")
7586 (lambda* (#:key tests? #:allow-other-keys)
7591 `(("bundler" ,bundler)
7592 ("ruby-rake-compiler" ,ruby-rake-compiler)
7593 ("ruby-rspec" ,ruby-rspec)
7594 ("ruby-rubocop" ,ruby-rubocop)))
7595 (synopsis "New I/O for Ruby")
7597 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
7598 for scalable network clients and servers.")
7599 (home-page "https://github.com/socketry/nio4r")
7600 (license license:expat)))
7602 (define-public ruby-globalid
7604 (name "ruby-globalid")
7609 (uri (rubygems-uri "globalid" version))
7612 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
7613 (build-system ruby-build-system)
7615 '(;; No included tests
7618 `(("ruby-activesupport" ,ruby-activesupport)))
7619 (synopsis "Generate URIs idenfitying model instances in Ruby")
7621 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
7622 uniquely identify it.")
7623 (home-page "https://rubyonrails.org/")
7624 (license license:expat)))
7626 (define-public ruby-sprockets
7628 (name "ruby-sprockets")
7633 (uri (rubygems-uri "sprockets" version))
7636 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
7637 (build-system ruby-build-system)
7639 '(;; No included tests
7642 `(("ruby-concurrent" ,ruby-concurrent)
7643 ("ruby-rack" ,ruby-rack)))
7644 (synopsis "Sprockets is a Rack-based asset packaging system")
7646 "Sprockets is a Rack-based asset packaging system that concatenates and
7647 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
7648 (home-page "https://github.com/rails/sprockets")
7649 (license license:expat)))