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 Nikita <nikita@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages ruby)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages base)
43 #:use-module (gnu packages bison)
44 #:use-module (gnu packages check)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages crypto)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages dbm)
49 #:use-module (gnu packages rails)
50 #:use-module (gnu packages readline)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages java)
53 #:use-module (gnu packages libffi)
54 #:use-module (gnu packages libidn)
55 #:use-module (gnu packages linux)
56 #:use-module (gnu packages lsof)
57 #:use-module (gnu packages maths)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages networking)
60 #:use-module (gnu packages node)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-xyz)
63 #:use-module (gnu packages ragel)
64 #:use-module (gnu packages rsync)
65 #:use-module (gnu packages sqlite)
66 #:use-module (gnu packages tls)
67 #:use-module (gnu packages version-control)
68 #:use-module (guix packages)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module (guix utils)
72 #:use-module (guix build-system gnu)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages web)
75 #:use-module (guix build-system ruby)
76 #:use-module ((srfi srfi-1) #:select (alist-delete)))
85 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
86 (version-major+minor version)
87 "/ruby-" version ".tar.xz"))
90 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
91 (modules '((guix build utils)))
93 ;; Remove bundled libffi
94 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
96 (build-system gnu-build-system)
98 `(#:test-target "test"
99 #:configure-flags '("--enable-shared") ; dynamic linking
101 (modify-phases %standard-phases
102 (add-before 'configure 'replace-bin-sh-and-remove-libffi
104 (substitute* '("Makefile.in"
109 "test/rubygems/test_gem_ext_configure_builder.rb"
110 "test/rdoc/test_rdoc_parser.rb"
111 "test/ruby/test_rubyoptions.rb"
112 "test/ruby/test_process.rb"
113 "test/ruby/test_system.rb"
115 (("/bin/sh") (which "sh")))
118 `(("readline" ,readline)
125 (list (search-path-specification
126 (variable "GEM_PATH")
127 (files (list (string-append "lib/ruby/vendor_ruby"))))))
128 (synopsis "Programming language interpreter")
129 (description "Ruby is a dynamic object-oriented programming language with
130 a focus on simplicity and productivity.")
131 (home-page "https://www.ruby-lang.org")
132 (license license:ruby)))
134 (define-public ruby-2.5
141 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
142 (version-major+minor version)
143 "/ruby-" version ".tar.xz"))
146 "159zka4sbx1p4ayxqi7a5ybbzxvn3n5mivrz4d1damw9ypl70610"))
147 (modules '((guix build utils)))
149 ;; Remove bundled libffi
150 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
153 (define-public ruby-2.4
160 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
161 (version-major+minor version)
162 "/ruby-" version ".tar.xz"))
165 "0546ymj2h3iai679fvx17bb2hksrqyhh22llxgz8fwggac100khc"))
166 (modules '((guix build utils)))
168 ;; Remove bundled libffi
169 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
172 (define-public ruby-2.3
179 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
180 (version-major+minor version)
181 "/ruby-" version ".tar.xz"))
184 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
185 (modules '((guix build utils)))
187 ;; Remove bundled libffi
188 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
199 (url "https://github.com/mruby/mruby.git")
201 (file-name (git-file-name name version))
204 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
205 (build-system gnu-build-system)
207 `(#:test-target "test"
209 (modify-phases %standard-phases
211 (add-after 'unpack 'enable-verbose-tests
213 (substitute* "Makefile"
214 (("ruby ./minirake" m)
215 (string-append m " --verbose")))
217 (add-after 'unpack 'disable-broken-tests
219 (substitute* "mrbgems/mruby-io/test/io.rb"
220 (("assert\\('IO.popen.+$" m)
221 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
222 (("assert\\('IO#isatty.+$" m)
223 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
224 ;; This one is really weird. The *expected* output is all wrong.
225 (("assert\\('`cmd`.*" m)
226 (string-append m "skip \"Disable for Guix\"\n"))
228 (string-append (which "echo") " foo")))
230 ;; There is no install target
232 (lambda* (#:key outputs #:allow-other-keys)
233 (let* ((out (assoc-ref outputs "out"))
234 (bin (string-append out "/bin"))
235 (lib (string-append out "/lib")))
237 (copy-recursively "build/host/bin" bin)
239 (copy-recursively "build/host/lib" lib))
244 (home-page "https://github.com/mruby/mruby")
245 (synopsis "Lightweight Ruby")
246 (description "mruby is the lightweight implementation of the Ruby
247 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
248 embedded within your application.")
249 (license license:expat)))
251 (define-public ruby-commander
253 (name "ruby-commander")
258 (uri (rubygems-uri "commander" version))
261 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
262 (build-system ruby-build-system)
264 `(#:test-target "spec"
266 (modify-phases %standard-phases
267 ;; Don't run or require rubocop, the code linting tool, as this is a
269 (add-after 'unpack 'dont-run-rubocop
271 (substitute* "Rakefile"
273 ((".*RuboCop.*") ""))
276 `(("ruby-highline" ,ruby-highline)))
278 `(("bundler" ,bundler)
279 ("ruby-rspec-core" ,ruby-rspec-core)
280 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
281 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
282 ("ruby-simplecov" ,ruby-simplecov)))
283 (home-page "https://github.com/commander-rb/commander")
284 (synopsis "Library for building Ruby command-line executables")
286 "Commander aims to be a complete solution for Ruby command-line
287 executables. Commander bridges the gap between other terminal related
288 libraries (OptionParser, HighLine), while providing many new features, and an
290 (license license:expat)))
292 (define-public ruby-highline
294 (name "ruby-highline")
299 (uri (rubygems-uri "highline" version))
302 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
303 (build-system ruby-build-system)
305 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
307 `(("bundler" ,bundler)
308 ("ruby-code-statistics" ,ruby-code-statistics)))
310 "HighLine helps you build command-line interfaces")
312 "HighLine provides a high-level IO library that provides validation,
313 type conversion, and more for command-line interfaces. HighLine also includes
314 a menu system for providing multiple options to the user.")
315 (home-page "https://github.com/JEG2/highline")
316 (license (list license:gpl2 license:ruby))))
318 (define-public ruby-hoe
324 (uri (rubygems-uri "hoe" version))
327 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
328 (build-system ruby-build-system)
331 (modify-phases %standard-phases
332 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
333 ;; variable is set, so unset it for the duration of the tests.
335 ;; TestHoe#test_possibly_better
336 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
337 ;; Expected: 2019-11-12 00:00:00 UTC
338 ;; Actual: 1970-01-01 00:00:00 UTC
339 (add-before 'check 'unset-SOURCE-DATE-EPOCH
341 (unsetenv "SOURCE_DATE_EPOCH")
343 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
345 (setenv "SOURCE_DATE_EPOCH" "1")
347 (synopsis "Ruby project management helper")
349 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
350 maintain, and release projects and includes a dynamic plug-in system allowing
351 for easy extensibility. Hoe ships with plug-ins for all the usual project
352 tasks including rdoc generation, testing, packaging, deployment, and
354 (home-page "https://www.zenspider.com/projects/hoe.html")
355 (license license:expat)))
357 (define-public ruby-rake-compiler
359 (name "ruby-rake-compiler")
363 (uri (rubygems-uri "rake-compiler" version))
366 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
367 (build-system ruby-build-system)
369 '(#:tests? #f)) ; needs cucumber
370 (synopsis "Building and packaging helper for Ruby native extensions")
371 (description "Rake-compiler provides a framework for building and
372 packaging native C and Java extensions in Ruby.")
373 (home-page "https://github.com/rake-compiler/rake-compiler")
374 (license license:expat)))
376 (define-public ruby-rsync
383 (uri (rubygems-uri "rsync" version))
386 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
387 (build-system ruby-build-system)
389 '(#:test-target "spec"
391 (modify-phases %standard-phases
392 (add-after 'unpack 'remove-coveralls-requirement
394 (substitute* "spec/spec_helper.rb"
395 (("require 'coveralls'") "")
396 (("Coveralls.wear!") ""))
399 `(("bundler" ,bundler)
401 ("ruby-rspec-core" ,ruby-rspec-core)
402 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
403 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
404 (home-page "https://github.com/jbussdieker/ruby-rsync")
405 (synopsis "Ruby wrapper around rsync")
407 "Ruby Rsync is a Ruby library that can synchronize files between remote
408 hosts by wrapping the @file{rsync} binary.")
409 (license license:expat)))
411 (define-public ruby-i18n
417 (uri (rubygems-uri "i18n" version))
420 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
421 (build-system ruby-build-system)
423 '(#:tests? #f)) ; no tests
424 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
425 (synopsis "Internationalization library for Ruby")
426 (description "Ruby i18n is an internationalization and localization
427 solution for Ruby programs. It features translation and localization,
428 interpolation of values to translations, pluralization, customizable
429 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
430 translation data, custom key/scope separator, custom exception handlers, and
431 an extensible architecture with a swappable backend.")
432 (home-page "https://github.com/ruby-i18n/i18n")
433 (license license:expat)))
435 (define-public ruby-iruby
442 (uri (rubygems-uri "iruby" version))
445 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
446 (build-system ruby-build-system)
448 ;; TODO: Tests currently fail.
450 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
453 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
456 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
459 (modify-phases %standard-phases
460 (add-after 'unpack 'patch-ipython
461 (lambda* (#:key inputs #:allow-other-keys)
462 (substitute* "lib/iruby/command.rb"
466 (assoc-ref inputs "python-ipython")
468 (("Kernel\\.exec\\('")
471 (assoc-ref inputs "python-ipython")
475 `(("python-ipython" ,python-ipython)))
477 `(("ruby-bond" ,ruby-bond)
478 ("ruby-data_uri" ,ruby-data_uri)
479 ("ruby-mimemagic" ,ruby-mimemagic)
480 ("ruby-multi-json" ,ruby-multi-json)
481 ("ruby-cztop" ,ruby-cztop)
483 ("ruby-pry" ,ruby-pry)))
484 (synopsis "Ruby kernel for Jupyter/IPython")
486 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
488 (home-page "https://github.com/SciRuby/iruby")
489 (license license:expat)))
491 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
492 ;; dependencies use RSpec for their test suites! To avoid these circular
493 ;; dependencies, we disable tests for all of the RSpec-related packages.
494 (define-public ruby-rspec-support
496 (name "ruby-rspec-support")
500 (uri (rubygems-uri "rspec-support" version))
503 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
504 (build-system ruby-build-system)
506 '(#:tests? #f)) ; avoid dependency cycles
507 (synopsis "RSpec support library")
508 (description "Support utilities for RSpec gems.")
509 (home-page "https://github.com/rspec/rspec-support")
510 (license license:expat)))
512 (define-public ruby-rspec-core
514 (name "ruby-rspec-core")
518 (uri (rubygems-uri "rspec-core" version))
521 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
522 (build-system ruby-build-system)
524 '(#:tests? #f)) ; avoid dependency cycles
526 `(("ruby-rspec-support" ,ruby-rspec-support)))
527 (synopsis "RSpec core library")
528 (description "Rspec-core provides the RSpec test runner and example
530 (home-page "https://github.com/rspec/rspec-core")
531 (license license:expat)))
533 (define-public ruby-rspec-core-2
534 (package (inherit ruby-rspec-core)
538 (uri (rubygems-uri "rspec-core" version))
541 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
542 (propagated-inputs `())))
544 (define-public ruby-diff-lcs
546 (name "ruby-diff-lcs")
550 (uri (rubygems-uri "diff-lcs" version))
553 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
554 (build-system ruby-build-system)
556 '(#:tests? #f)) ; avoid dependency cycles
557 (synopsis "Compute the difference between two Enumerable sequences")
558 (description "Diff::LCS computes the difference between two Enumerable
559 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
560 It includes utilities to create a simple HTML diff output format and a
561 standard diff-like tool.")
562 (home-page "https://github.com/halostatue/diff-lcs")
563 (license license:expat)))
565 (define-public ruby-rspec-expectations
567 (name "ruby-rspec-expectations")
571 (uri (rubygems-uri "rspec-expectations" version))
574 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
575 (build-system ruby-build-system)
577 '(#:tests? #f)) ; avoid dependency cycles
579 `(("ruby-rspec-support" ,ruby-rspec-support)
580 ("ruby-diff-lcs" ,ruby-diff-lcs)))
581 (synopsis "RSpec expectations library")
582 (description "Rspec-expectations provides a simple API to express expected
583 outcomes of a code example.")
584 (home-page "https://github.com/rspec/rspec-expectations")
585 (license license:expat)))
587 (define-public ruby-rspec-expectations-2
588 (package (inherit ruby-rspec-expectations)
592 (uri (rubygems-uri "rspec-expectations" version))
595 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
597 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
599 (define-public ruby-rspec-its
601 (name "ruby-rspec-its")
607 (url "https://github.com/rspec/rspec-its.git")
608 (commit (string-append "v" version))))
609 (file-name (git-file-name name version))
612 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
613 (build-system ruby-build-system)
615 `(#:test-target "spec"
617 (modify-phases %standard-phases
618 (add-after 'unpack 'dont-install-gems-from-gemfile
620 (substitute* "Gemfile"
621 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
624 (add-before 'build 'update-ffi-in-gemfile
626 (substitute* "Gemfile"
627 ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'"))
629 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
631 (substitute* "rspec-its.gemspec"
632 (("rake.*") "rake'\n")
633 (("spec.add_development_dependency 'cucumber'.*")
634 "spec.add_development_dependency 'cucumber'\n")
635 (("bundler.*") "bundler'\n")
636 (("\"aruba.*") "'aruba'\n"))
639 `(("ruby-rspec-core" ,ruby-rspec-core)
640 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
642 `(("bundler" ,bundler)
643 ("ruby-cucumber" ,ruby-cucumber)
644 ("ruby-ffi" ,ruby-ffi)
645 ("ruby-aruba" ,ruby-aruba)))
646 (synopsis "RSpec extension that provides the @code{its} method")
648 "RSpec::Its provides the its method as a short-hand to specify the expected
649 value of an attribute. For example, one can use @code{its(:size)\\{should
651 (home-page "https://github.com/rspec/rspec-its")
652 (license license:expat)))
654 (define-public ruby-rspec-mocks
656 (name "ruby-rspec-mocks")
660 (uri (rubygems-uri "rspec-mocks" version))
663 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
664 (build-system ruby-build-system)
666 '(#:tests? #f)) ; avoid dependency cycles
668 `(("ruby-rspec-support" ,ruby-rspec-support)
669 ("ruby-diff-lcs" ,ruby-diff-lcs)))
670 (synopsis "RSpec stubbing and mocking library")
671 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
672 support for stubbing and mocking.")
673 (home-page "https://github.com/rspec/rspec-mocks")
674 (license license:expat)))
676 (define-public ruby-rspec-mocks-2
677 (package (inherit ruby-rspec-mocks)
681 (uri (rubygems-uri "rspec-mocks" version))
684 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
686 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
688 (define-public ruby-rspec-rerun
690 (name "ruby-rspec-rerun")
695 (uri (rubygems-uri "rspec-rerun" version))
698 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
699 (build-system ruby-build-system)
701 '(;; No included tests
703 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
704 (synopsis "Track failed RSpec tests to re-run them")
706 "This package provides an automated way to track, and then re-run failed
708 (home-page "https://github.com/dblock/rspec-rerun")
709 (license license:expat)))
711 (define-public ruby-rspec-wait
713 (name "ruby-rspec-wait")
718 (uri (rubygems-uri "rspec-wait" version))
721 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
722 (build-system ruby-build-system)
725 (modify-phases %standard-phases
728 (invoke "rake" "spec"))))))
730 `(("bundler" ,bundler)))
732 `(("ruby-rspec" ,ruby-rspec)))
733 (home-page "https://github.com/laserlemon/rspec-wait")
734 (synopsis "Wait for conditions in RSpec")
736 "RSpec::Wait strives to make it easier to test asynchronous or slow
738 (license license:expat)))
740 (define-public ruby-rspec
746 (uri (rubygems-uri "rspec" version))
749 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
750 (build-system ruby-build-system)
752 '(#:tests? #f)) ; avoid dependency cycles
754 `(("ruby-rspec-core" ,ruby-rspec-core)
755 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
756 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
757 (synopsis "Behavior-driven development framework for Ruby")
758 (description "RSpec is a behavior-driven development (BDD) framework for
759 Ruby. This meta-package includes the RSpec test runner, along with the
760 expectations and mocks frameworks.")
761 (home-page "https://rspec.info/")
762 (license license:expat)))
764 (define-public ruby-rspec-2
765 (package (inherit ruby-rspec)
769 (uri (rubygems-uri "rspec" version))
772 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
774 `(("ruby-rspec-core" ,ruby-rspec-core-2)
775 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
776 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
778 ;; Bundler is yet another source of circular dependencies, so we must disable
779 ;; its test suite as well.
780 (define-public bundler
786 (uri (rubygems-uri "bundler" version))
789 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
790 (build-system ruby-build-system)
792 '(#:tests? #f)) ; avoid dependency cycles
793 (synopsis "Ruby gem bundler")
794 (description "Bundler automatically downloads and installs a list of gems
795 specified in a \"Gemfile\", as well as their dependencies.")
796 (home-page "https://bundler.io/")
797 (license license:expat)))
799 (define-public ruby-builder
801 (name "ruby-builder")
805 (uri (rubygems-uri "builder" version))
808 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
809 (build-system ruby-build-system)
812 (modify-phases %standard-phases
813 (add-after 'unpack 'do-not-use-rvm
815 (substitute* "rakelib/tags.rake"
816 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
818 (synopsis "Ruby library to create structured data")
819 (description "Builder provides a number of builder objects that make it
820 easy to create structured data. Currently the following builder objects are
821 supported: XML Markup and XML Events.")
822 (home-page "https://github.com/jimweirich/builder")
823 (license license:expat)))
825 (define-public ruby-bump
832 (uri (rubygems-uri "bump" version))
835 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
836 (build-system ruby-build-system)
838 '(;; No included tests
840 (synopsis "Tool for working with Rubygems")
842 "Bump provides commands to manage Rubygem versioning, updating to the
843 next patch version for example.")
844 (home-page "https://github.com/gregorym/bump")
845 (license license:expat)))
847 (define-public ruby-rjb
853 (uri (rubygems-uri "rjb" version))
856 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
857 (build-system ruby-build-system)
859 `(#:tests? #f ; no rakefile
861 (modify-phases %standard-phases
862 (add-before 'build 'set-java-home
863 (lambda* (#:key inputs #:allow-other-keys)
864 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
867 `(("jdk" ,icedtea "jdk")))
868 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
869 (description "RJB is a bridge program that connects Ruby and Java via the
870 Java Native Interface.")
871 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
872 (license license:lgpl2.1+)))
874 (define-public ruby-log4r
881 (uri (rubygems-uri "log4r" version))
884 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
885 (build-system ruby-build-system)
887 '(#:tests? #f)) ; no Rakefile in gem
888 (synopsis "Flexible logging library for Ruby")
889 (description "Comprehensive and flexible logging library written
890 in Ruby for use in Ruby programs. It features a hierarchical logging
891 system of any number of levels, custom level names, logger
892 inheritance, multiple output destinations per log event, execution
893 tracing, custom formatting, thread safteyness, XML and YAML
894 configuration, and more.")
895 (home-page "http://log4r.rubyforge.org/")
896 (license license:bsd-3)))
898 (define-public ruby-atoulme-antwrap
900 (name "ruby-atoulme-antwrap")
904 (uri (rubygems-uri "atoulme-Antwrap" version))
907 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
908 (build-system ruby-build-system)
909 ;; Test data required for most of the tests are not included.
910 (arguments `(#:tests? #f))
912 `(("ruby-hoe" ,ruby-hoe)))
914 `(("ruby-rjb" ,ruby-rjb)))
915 (synopsis "Ruby wrapper for the Ant build tool")
916 (description "Antwrap is a Ruby module that wraps the Apache Ant build
917 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
919 (home-page "http://rubyforge.org/projects/antwrap/")
920 (license license:expat)))
922 (define-public ruby-atoulme-saikuro
924 (name "ruby-atoulme-saikuro")
928 (uri (rubygems-uri "atoulme-Saikuro" version))
931 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
932 (build-system ruby-build-system)
933 ;; FIXME: There are no unit tests. The tests are demonstrations of the
935 (arguments `(#:tests? #f))
936 (synopsis "Cyclomatic complexity analyzer")
937 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
938 given Ruby source code Saikuro will generate a report listing the cyclomatic
939 complexity of each method found. In addition, Saikuro counts the number of
940 lines per method and can generate a listing of the number of tokens on each
942 (home-page "http://www.github.com/atoulme/Saikuro")
943 ;; File headers contain the BSD-3 license and the README.rdoc says that
944 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
945 ;; of the Expat license.
946 (license license:bsd-3)))
948 (define-public ruby-asciidoctor
950 (name "ruby-asciidoctor")
955 (uri (rubygems-uri "asciidoctor" version))
958 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
959 (build-system ruby-build-system)
961 `(#:test-target "test:all"
963 (modify-phases %standard-phases
964 (add-before 'check 'remove-circular-tests
966 ;; Remove tests that require circular dependencies to load or pass.
967 (delete-file "test/invoker_test.rb")
968 (delete-file "test/converter_test.rb")
969 (delete-file "test/options_test.rb")
972 `(("ruby-minitest" ,ruby-minitest)
973 ("ruby-nokogiri" ,ruby-nokogiri)
974 ("ruby-asciimath" ,ruby-asciimath)
975 ("ruby-coderay" ,ruby-coderay)))
976 (synopsis "Converter from AsciiDoc content to other formats")
978 "Asciidoctor is a text processor and publishing toolchain for converting
979 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
980 (home-page "https://asciidoctor.org")
981 (license license:expat)))
983 (define-public ruby-ast
990 (uri (rubygems-uri "ast" version))
993 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
994 (build-system ruby-build-system)
997 (modify-phases %standard-phases
998 (add-after 'unpack 'remove-coveralls-requirement
1000 (substitute* "test/helper.rb"
1001 (("require 'coveralls'") "")
1002 (("Coveralls::SimpleCov::Formatter") ""))
1004 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1006 (substitute* "ast.gemspec"
1007 ((".*coveralls.*") "\n")
1008 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1009 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1010 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1013 `(("bundler" ,bundler)
1014 ("ruby-simplecov" ,ruby-simplecov)
1015 ("ruby-json-pure" ,ruby-json-pure)
1016 ("ruby-mime-times" ,ruby-mime-types)
1017 ("ruby-yard" ,ruby-yard)
1018 ("ruby-kramdown" ,ruby-kramdown)
1019 ("ruby-rest-client" ,ruby-rest-client)
1020 ("ruby-bacon" ,ruby-bacon)
1021 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1022 ("ruby-racc" ,ruby-racc)))
1023 (synopsis "Library for working with Abstract Syntax Trees")
1025 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1026 It does this through immutable data structures.")
1027 (home-page "https://whitequark.github.io/ast/")
1028 (license license:expat)))
1030 (define-public ruby-sporkmonger-rack-mount
1031 ;; Testing the addressable gem requires a newer commit than that released, so
1032 ;; use an up to date version.
1033 (let ((revision "1")
1034 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1036 (name "ruby-sporkmonger-rack-mount")
1037 (version (git-version "0.8.3" revision commit))
1041 (url "https://github.com/sporkmonger/rack-mount.git")
1043 (file-name (git-file-name name version))
1046 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1047 (build-system ruby-build-system)
1049 ;; Tests currently fail so disable them.
1050 ;; https://github.com/sporkmonger/rack-mount/pull/1
1052 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1053 (synopsis "Stackable dynamic tree based Rack router")
1055 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1056 continue trying routes if the response returns pass. This allows multiple
1057 routes to be nested or stacked on top of each other.")
1058 (home-page "https://github.com/sporkmonger/rack-mount")
1059 (license license:expat))))
1061 (define-public ruby-ci-reporter
1063 (name "ruby-ci-reporter")
1067 (uri (rubygems-uri "ci_reporter" version))
1070 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1071 (build-system ruby-build-system)
1073 `(#:test-target "rspec"))
1075 `(("ruby-builder" ,ruby-builder)))
1077 `(("bundler" ,bundler)
1078 ("ruby-rspec" ,ruby-rspec)))
1079 (synopsis "Generate XML reports of runs test")
1081 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1082 you to generate XML reports of your test runs. The resulting files can be
1083 read by a continuous integration system that understands Ant's JUnit report
1085 (home-page "https://github.com/nicksieger/ci_reporter")
1086 (license license:expat)))
1088 (define-public ruby-contracts
1090 (name "ruby-contracts")
1095 (uri (rubygems-uri "contracts" version))
1098 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1099 (build-system ruby-build-system)
1101 '(#:test-target "spec"
1103 (modify-phases %standard-phases
1104 ;; Don't run or require rubocop, the code linting tool, as this is a
1106 (add-after 'unpack 'dont-run-rubocop
1108 (substitute* "Rakefile"
1109 ((".*rubocop.*") "")
1110 ((".*RuboCop.*") ""))
1113 `(("ruby-rspec" ,ruby-rspec)))
1114 (synopsis "Method contracts for Ruby")
1116 "This library provides contracts for Ruby. A contract describes the
1117 correct inputs and output for a method, and will raise an error if a incorrect
1119 (home-page "https://github.com/egonSchiele/contracts.ruby")
1120 (license license:bsd-2)))
1122 (define-public ruby-crack
1129 (uri (rubygems-uri "crack" version))
1132 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1133 (build-system ruby-build-system)
1136 (modify-phases %standard-phases
1138 (lambda* (#:key tests? #:allow-other-keys)
1140 (for-each (lambda (file)
1141 (display file)(display "\n")
1142 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1143 (find-files "test" ".*rb$")))
1146 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1147 (synopsis "Simple JSON and XML parsing for Ruby")
1149 "@code{crack} provides really simple JSON and XML parsing, extracted from
1150 code in Merb and Rails.")
1151 (home-page "https://github.com/jnunemaker/crack")
1152 (license license:expat)))
1154 (define-public ruby-cliver
1156 (name "ruby-cliver")
1161 (uri (rubygems-uri "cliver" version))
1164 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1165 (build-system ruby-build-system)
1168 (modify-phases %standard-phases
1169 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1170 ;; would be nice, but the tests look to be incompatible:
1172 ;; NoMethodError: undefined method `last_comment'
1174 (lambda* (#:key tests? #:allow-other-keys)
1179 `(("bundler" ,bundler)
1180 ("ruby-rspec" ,ruby-rspec-2)))
1181 (synopsis "Assertions for command-line dependencies in Ruby")
1183 "@code{cliver} provides a way to detect missing command-line
1184 dependencies, including versions.")
1185 (home-page "https://github.com/yaauie/cliver")
1186 (license license:expat)))
1188 (define-public ruby-czmq-ffi-gen
1190 (name "ruby-czmq-ffi-gen")
1195 (uri (rubygems-uri "czmq-ffi-gen" version))
1198 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1199 (build-system ruby-build-system)
1201 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1203 (modify-phases %standard-phases
1204 (add-after 'unpack 'patch-lib_dirs
1205 (lambda* (#:key inputs #:allow-other-keys)
1206 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1207 (("lib\\_dirs = \\[.*\\]")
1208 (string-append "lib_dirs = ['"
1209 (assoc-ref inputs "czmq") "/lib"
1211 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1212 (("lib\\_dirs = \\[.*\\]")
1213 (string-append "lib_dirs = ['"
1214 (assoc-ref inputs "zeromq") "/lib"
1217 `(("zeromq" ,zeromq)
1219 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1220 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1222 "These Ruby bindings are not intended to be directly used, but rather
1223 used by higher level bindings like those provided by CZTop.")
1225 "https://github.com/paddor/czmq-ffi-gen")
1226 (license license:isc)))
1228 (define-public ruby-cztop
1235 (uri (rubygems-uri "cztop" version))
1238 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1239 (build-system ruby-build-system)
1241 '(#:test-target "spec"
1243 (modify-phases %standard-phases
1244 (add-after 'unpack 'patch-lib_paths
1245 (lambda* (#:key inputs #:allow-other-keys)
1246 (substitute* "lib/cztop/poller/zmq.rb"
1247 (("lib\\_paths = \\[.*\\]")
1248 (string-append "lib_paths = ['"
1249 (assoc-ref inputs "zeromq") "/lib"
1252 `(("bundler" ,bundler)
1253 ("ruby-rspec" ,ruby-rspec)))
1255 `(("zeromq" ,zeromq)))
1257 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1258 (synopsis "CZMQ Ruby bindings")
1260 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1261 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1262 support for security mechanisms.")
1263 (home-page "https://github.com/paddor/cztop")
1264 (license license:isc)))
1266 (define-public ruby-saikuro-treemap
1268 (name "ruby-saikuro-treemap")
1272 (uri (rubygems-uri "saikuro_treemap" version))
1275 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1276 (build-system ruby-build-system)
1277 ;; Some of the tests fail because the generated JSON has keys in a
1278 ;; different order. This is a problem with the test suite rather than any
1279 ;; of the involved libraries.
1280 (arguments `(#:tests? #f))
1282 `(("ruby-json-pure" ,ruby-json-pure)
1283 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1284 (synopsis "Generate complexity treemap based on saikuro analysis")
1286 "This gem generates a treemap showing the complexity of Ruby code on
1287 which it is run. It uses Saikuro under the covers to analyze Ruby code
1289 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1290 (license license:expat)))
1292 (define-public ruby-oauth2
1294 (name "ruby-oauth2")
1299 (uri (rubygems-uri "oauth2" version))
1301 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1302 (build-system ruby-build-system)
1304 '(#:tests? #f)) ; no included tests
1306 `(("ruby-faraday" ,ruby-faraday)
1307 ("ruby-jwt" ,ruby-jwt)
1308 ("ruby-multi-json" ,ruby-multi-json)
1309 ("ruby-multi-xml" ,ruby-multi-xml)
1310 ("ruby-rack" ,ruby-rack)))
1311 (synopsis "Ruby wrapper for the OAuth 2.0")
1313 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1314 with a similar style to the original OAuth spec.")
1315 (home-page "https://github.com/oauth-xx/oauth2")
1316 (license license:expat)))
1318 (define-public ruby-omniauth
1320 (name "ruby-omniauth")
1325 (uri (rubygems-uri "omniauth" version))
1327 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
1328 (build-system ruby-build-system)
1330 '(#:tests? #f)) ; No included tests
1332 `(("ruby-hashie" ,ruby-hashie)
1333 ("ruby-rack" ,ruby-rack)))
1334 (synopsis "Generalized Rack framework for multiple-provider authentication")
1336 "This package provides a generalized Rack framework for multiple-provider
1338 (home-page "https://github.com/omniauth/omniauth")
1339 (license license:expat)))
1341 (define-public ruby-omniauth-oauth2
1343 (name "ruby-omniauth-oauth2")
1348 (uri (rubygems-uri "omniauth-oauth2" version))
1351 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1352 (build-system ruby-build-system)
1355 (modify-phases %standard-phases
1356 (add-after 'unpack 'remove-unnecessary-dependencies
1358 ;; The coveralls gem submits coverage information to an online
1359 ;; service, and is unnecessary when running the tests
1360 (substitute* "Gemfile"
1361 ((".*coveralls\"") ""))
1362 (substitute* "spec/helper.rb"
1363 (("require \"coveralls\"") "")
1364 (("Coveralls::SimpleCov::Formatter") ""))
1367 `(("ruby-oauth2" ,ruby-oauth2)
1368 ("ruby-omniauth" ,ruby-omniauth)))
1370 `(("bundler" ,bundler)
1371 ("ruby-rspec" ,ruby-rspec)
1372 ("ruby-simplecov" ,ruby-simplecov)
1373 ("ruby-rack-test" ,ruby-rack-test)
1374 ("ruby-webmock" ,ruby-webmock-2)))
1375 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1377 "This library provides a generic OAuth2 strategy for OmniAuth. It
1378 doesn't provide a way to gather user information, so should be used as a
1379 building block for authentication strategies.")
1380 (home-page "https://github.com/omniauth/omniauth-oauth2")
1381 (license license:expat)))
1383 (define-public ruby-open4
1390 (uri (rubygems-uri "open4" version))
1393 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1394 (build-system ruby-build-system)
1397 (modify-phases %standard-phases
1398 (add-after 'unpack 'patch
1400 (substitute* "rakefile"
1401 ;; Update the Rakefile so it works
1402 (("-rubygems") "-rrubygems")
1403 (("Config") "RbConfig"))
1405 (add-before 'check 'set-LIB
1407 ;; This is used in the rakefile when running the tests
1408 (setenv "LIB" "open4")
1410 (synopsis "Open child processes from Ruby and manage them easily")
1412 "@code{Open4} is a Ruby library to run child processes and manage their
1414 (home-page "https://github.com/ahoward/open4")
1415 (license license:ruby)))
1417 (define-public ruby-options
1419 (name "ruby-options")
1424 (uri (rubygems-uri "options" version))
1427 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1428 (build-system ruby-build-system)
1430 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1432 (modify-phases %standard-phases
1433 (add-before 'check 'set-LIB
1435 ;; This is used in the Rakefile, and setting it avoids an issue
1436 ;; with running the tests.
1437 (setenv "LIB" "options")
1439 (synopsis "Ruby library to parse options from *args cleanly")
1441 "The @code{options} library helps with parsing keyword options in Ruby
1443 (home-page "https://github.com/ahoward/options")
1444 (license license:ruby)))
1446 (define-public ruby-erubi
1453 (uri (rubygems-uri "erubi" version))
1456 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1457 (build-system ruby-build-system)
1458 (synopsis "ERB template engine for Ruby")
1460 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1462 (home-page "https://github.com/jeremyevans/erubi")
1463 (license license:expat)))
1465 (define-public ruby-erubis
1467 (name "ruby-erubis")
1472 (uri (rubygems-uri "erubis" version))
1475 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1476 (build-system ruby-build-system)
1478 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1479 (synopsis "Implementation of embedded Ruby (eRuby)")
1481 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1482 features such as multi-language support, auto escaping, auto trimming spaces
1483 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1485 (home-page "http://www.kuwata-lab.com/erubis/")
1486 (license license:expat)))
1488 (define-public ruby-execjs
1490 (name "ruby-execjs")
1494 ;; fetch from github as the gem does not contain testing code
1497 (url "https://github.com/rails/execjs.git")
1498 (commit (string-append "v" version))))
1499 (file-name (git-file-name name version))
1502 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1503 (build-system ruby-build-system)
1505 `(("bundler" ,bundler)
1506 ;; The test suite tests all the available backends. Currenly, this just
1507 ;; means the node backend.
1509 ;; PASSED: test:node
1510 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1511 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1513 (synopsis "Run JavaScript code from Ruby")
1515 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1516 runtime to evaluate your JavaScript program, then returns the result to you as
1518 (home-page "https://github.com/rails/execjs")
1519 (license license:expat)))
1521 (define-public ruby-orderedhash
1523 (name "ruby-orderedhash")
1527 (uri (rubygems-uri "orderedhash" version))
1530 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1531 (build-system ruby-build-system)
1533 '(#:tests? #f)) ; no test suite
1534 (synopsis "Ruby library providing an order-preserving hash")
1535 (description "Orderedhash is a Ruby library providing a hash
1536 implementation that preserves the order of items and features some array-like
1538 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1539 (license license:public-domain)))
1541 (define-public ruby-libxml
1543 (name "ruby-libxml")
1548 (uri (rubygems-uri "libxml-ruby" version))
1551 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1552 (build-system ruby-build-system)
1555 ("libxml2" ,libxml2)))
1557 '(#:tests? #f ; test suite hangs for unknown reason
1560 (string-append "--with-xml2-include="
1561 (assoc-ref %build-inputs "libxml2")
1562 "/include/libxml2" ))))
1563 (synopsis "Ruby bindings for GNOME Libxml2")
1564 (description "The Libxml-Ruby project provides Ruby language bindings for
1565 the GNOME Libxml2 XML toolkit.")
1566 (home-page "https://xml4r.github.com/libxml-ruby")
1567 (license license:expat)))
1569 (define-public ruby-lino
1576 (uri (rubygems-uri "lino" version))
1579 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1580 (build-system ruby-build-system)
1582 '(#:tests? #f)) ; No included tests
1584 `(("ruby-hamster" ,ruby-hamster)
1585 ("ruby-open4" ,ruby-open4)))
1586 (synopsis "Build and execute commands in Ruby")
1588 "@code{Lino} provides an interface to run external commands. It provides
1589 an interface to add options as well as managing the standard input, output and
1591 (home-page "https://github.com/tobyclemson/lino")
1592 (license license:expat)))
1594 (define-public ruby-xml-simple
1596 (name "ruby-xml-simple")
1600 (uri (rubygems-uri "xml-simple" version))
1603 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1604 (build-system ruby-build-system)
1606 '(#:tests? #f)) ; no test suite
1607 (synopsis "Simple Ruby library for XML processing")
1608 (description "This library provides a simple API for XML processing in
1610 (home-page "https://github.com/maik/xml-simple")
1611 (license license:ruby)))
1613 (define-public ruby-thor
1619 (uri (rubygems-uri "thor" version))
1622 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1623 (build-system ruby-build-system)
1625 '(#:tests? #f)) ; no test suite
1627 `(("bundler" ,bundler)))
1628 (synopsis "Ruby toolkit for building command-line interfaces")
1629 (description "Thor is a toolkit for building powerful command-line
1631 (home-page "http://whatisthor.com/")
1632 (license license:expat)))
1634 (define-public ruby-lumberjack
1636 (name "ruby-lumberjack")
1640 (uri (rubygems-uri "lumberjack" version))
1643 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1644 (build-system ruby-build-system)
1646 `(("ruby-rspec" ,ruby-rspec)
1647 ("ruby-timecop" ,ruby-timecop)))
1648 (synopsis "Logging utility library for Ruby")
1649 (description "Lumberjack is a simple logging utility that can be a drop in
1650 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1651 for automatically rolling log files even with multiple processes writing the
1653 (home-page "https://github.com/bdurand/lumberjack")
1654 (license license:expat)))
1656 (define-public ruby-rbnacl
1658 (name "ruby-rbnacl")
1663 (uri (rubygems-uri "rbnacl" version))
1666 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1667 (build-system ruby-build-system)
1670 (modify-phases %standard-phases
1671 (add-after 'unpack 'remove-unnecessary-dependencies
1673 ;; Coveralls relates to a network service, and Rubocop to code
1674 ;; linting and both are unnecessary to run the tests
1675 (substitute* "Gemfile"
1676 ((".*rubocop.*") "\n")
1677 ((".*guard-rspec.*") "\n")
1678 ((".*coveralls.*") "\n"))
1679 (substitute* "spec/spec_helper.rb"
1680 (("require \"coveralls\"") "")
1681 (("Coveralls.wear!") ""))
1683 (add-after 'unpack 'use-libsodium-from-store
1684 (lambda* (#:key inputs #:allow-other-keys)
1685 (substitute* '("lib/rbnacl/init.rb"
1686 "lib/rbnacl/sodium.rb")
1687 (("ffi_lib \\[.+\\]")
1688 (string-append "ffi_lib [\""
1689 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1692 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1694 (lambda* (#:key tests? #:allow-other-keys)
1699 `(("ruby-ffi" ,ruby-ffi)))
1701 `(("libsodium" ,libsodium)))
1703 `(("bundler" ,bundler)
1704 ("ruby-rspec" ,ruby-rspec)))
1705 (synopsis "Ruby FFI binding to libsodium")
1707 "This package provides Ruby FFI bindings to the Networking and
1708 Cryptography (NaCl) library, also known as libsodium. This provides a
1709 high-level toolkit for building cryptographic systems and protocols.")
1710 (home-page "https://github.com/crypto-rb/rbnacl")
1711 (license license:expat)))
1713 (define-public ruby-nenv
1719 (uri (rubygems-uri "nenv" version))
1722 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1723 (build-system ruby-build-system)
1725 `(#:tests? #f)) ; no tests included
1727 `(("ruby-rspec" ,ruby-rspec)
1728 ("bundler" ,bundler)))
1729 (synopsis "Ruby interface for modifying the environment")
1730 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1731 and inspect the environment.")
1732 (home-page "https://github.com/e2/nenv")
1733 (license license:expat)))
1735 (define-public ruby-permutation
1737 (name "ruby-permutation")
1741 (uri (rubygems-uri "permutation" version))
1744 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1745 (build-system ruby-build-system)
1748 (modify-phases %standard-phases
1749 (add-after 'unpack 'fix-rakefile
1751 (substitute* "Rakefile"
1752 (("require 'rake/gempackagetask'")
1753 "require 'rubygems/package_task'")
1754 (("include Config") ""))
1758 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1759 (synopsis "Library to perform operations with sequence permutations")
1760 (description "This package provides a Ruby library to perform different
1761 operations with permutations of sequences, such as strings and arrays.")
1762 (home-page "https://flori.github.io/permutation")
1763 (license license:gpl2))) ; GPL 2 only
1765 (define-public ruby-shellany
1767 (name "ruby-shellany")
1771 (uri (rubygems-uri "shellany" version))
1774 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1775 (build-system ruby-build-system)
1777 `(#:test-target "default"
1779 (modify-phases %standard-phases
1780 (add-after 'unpack 'fix-version-test
1782 (substitute* "spec/shellany_spec.rb"
1783 (("^RSpec") "require \"shellany\"\nRSpec"))
1786 `(("ruby-rspec" ,ruby-rspec)
1787 ("ruby-nenv" ,ruby-nenv)
1788 ("bundler" ,bundler)))
1789 (synopsis "Capture command output")
1790 (description "Shellany is a Ruby library providing functions to capture
1791 the output produced by running shell commands.")
1792 (home-page "https://rubygems.org/gems/shellany")
1793 (license license:expat)))
1795 (define-public ruby-notiffany
1797 (name "ruby-notiffany")
1801 (uri (rubygems-uri "notiffany" version))
1804 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
1805 (build-system ruby-build-system)
1806 ;; Tests are not included in the gem.
1807 (arguments `(#:tests? #f))
1809 `(("ruby-shellany" ,ruby-shellany)
1810 ("ruby-nenv" ,ruby-nenv)))
1812 `(("bundler" ,bundler)))
1813 (synopsis "Wrapper library for notification libraries")
1814 (description "Notiffany is a Ruby wrapper library for notification
1815 libraries such as Libnotify.")
1816 (home-page "https://github.com/guard/notiffany")
1817 (license license:expat)))
1819 (define-public ruby-formatador
1821 (name "ruby-formatador")
1825 (uri (rubygems-uri "formatador" version))
1828 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1829 (build-system ruby-build-system)
1830 ;; Circular dependency: Tests require ruby-shindo, which requires
1831 ;; ruby-formatador at runtime.
1832 (arguments `(#:tests? #f))
1833 (synopsis "Ruby library to format text on stdout")
1834 (description "Formatador is a Ruby library to format text printed to the
1835 standard output stream.")
1836 (home-page "https://github.com/geemus/formatador")
1837 (license license:expat)))
1839 (define-public ruby-fuubar
1841 (name "ruby-fuubar")
1845 ;; Fetch from the git repository, as the gem package doesn't include
1849 (url "https://github.com/thekompanee/fuubar.git")
1850 (commit (string-append "releases/v" version))))
1851 (file-name (git-file-name name version))
1854 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1855 (build-system ruby-build-system)
1857 '(;; TODO: Some tests fail, unsure why.
1858 ;; 21 examples, 7 failures
1861 (modify-phases %standard-phases
1862 (add-before 'build 'delete-certificate
1864 ;; Remove 's.cert_chain' as we do not build with a private key
1865 (substitute* "fuubar.gemspec"
1866 ((".*cert_chain.*") "")
1867 ((".*signing_key.*") ""))
1870 (lambda* (#:key tests? #:allow-other-keys)
1875 `(("bundler" ,bundler)))
1877 `(("ruby-rspec-core" ,ruby-rspec-core)
1878 ("ruby-progressbar" ,ruby-progressbar)))
1879 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1881 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1882 string of letters and dots as feedback. It also stops on the first test
1884 (home-page "https://github.com/thekompanee/fuubar")
1885 (license license:expat)))
1887 (define-public ruby-haml
1894 (uri (rubygems-uri "haml" version))
1897 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1898 (build-system ruby-build-system)
1900 '(#:tests? #f)) ; No included tests
1902 `(("ruby-tilt" ,ruby-tilt)
1903 ("ruby-temple" ,ruby-temple)))
1904 (synopsis "Haml is a Ruby library to generate HTML documents")
1906 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1907 HTML or XML that is designed to express the structure of documents using
1908 indentation rather than closing tags. It was originally envisioned as a
1909 plugin for Ruby on Rails, but it can function as a stand-alone templating
1911 (home-page "http://haml.info/")
1912 (license license:expat)))
1914 (define-public ruby-hamster
1916 (name "ruby-hamster")
1921 (uri (rubygems-uri "hamster" version))
1924 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1925 (build-system ruby-build-system)
1928 (modify-phases %standard-phases
1929 (add-after 'unpack 'remove-unnecessary-dependencies
1931 ;; pry is a debugging tool, and is unnecessary when running the
1933 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1934 (("require 'pry'") ""))
1935 (substitute* "spec/spec_helper.rb"
1936 (("require \"pry\"") "")
1937 ;; CodeClimate is an online service, and is unnecessary for
1938 ;; running the tests
1939 (("require \"codeclimate-test-reporter\"") "")
1940 (("CodeClimate.*\n") ""))
1942 ;; No Rakefile is included, so run rspec directly.
1944 (lambda* (#:key tests? #:allow-other-keys)
1949 `(("ruby-concurrent" ,ruby-concurrent)))
1951 `(("ruby-rspec" ,ruby-rspec)))
1952 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1954 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1955 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1956 immutable queue or stack).")
1957 (home-page "https://github.com/hamstergem/hamster")
1958 (license license:expat)))
1960 (define-public ruby-hashdiff
1962 (name "ruby-hashdiff")
1967 (uri (rubygems-uri "hashdiff" version))
1970 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1971 (build-system ruby-build-system)
1974 (modify-phases %standard-phases
1975 ;; Run tests directly via rspec to avoid Rake issue:
1976 ;; NoMethodError: undefined method `last_comment'
1978 (lambda* (#:key tests? #:allow-other-keys)
1983 `(("bundler" ,bundler)
1984 ("ruby-rspec" ,ruby-rspec-2)))
1985 (synopsis "HashDiff computes the smallest difference between two hashes")
1987 "HashDiff is a Ruby library to compute the smallest difference between
1989 (home-page "https://github.com/liufengyun/hashdiff")
1990 (license license:expat)))
1992 (define-public ruby-hydra
1994 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
1998 (version (git-version "0.0" revision commit))
1999 (home-page "https://github.com/hyphenation/hydra")
2002 (uri (git-reference (url home-page) (commit commit)))
2003 (file-name (git-file-name name version))
2006 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
2007 (build-system ruby-build-system)
2009 '(#:phases (modify-phases %standard-phases
2010 (add-after 'unpack 'make-files-writable
2012 (for-each make-file-writable (find-files "."))
2016 (invoke "rspec"))))))
2018 `(("ruby-rspec" ,ruby-rspec)))
2020 `(("ruby-byebug" ,ruby-byebug)))
2021 (synopsis "Ruby hyphenation patterns")
2023 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2024 (license license:expat))))
2026 (define-public ruby-shindo
2028 (name "ruby-shindo")
2032 (uri (rubygems-uri "shindo" version))
2035 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2036 (build-system ruby-build-system)
2038 `(#:test-target "shindo_tests"
2040 (modify-phases %standard-phases
2041 (add-after 'unpack 'fix-tests
2043 (substitute* "tests/tests_helper.rb"
2045 (substitute* "Rakefile"
2046 (("system \"shindo") "system \"./bin/shindo")
2047 ;; This test doesn't work, so we disable it.
2048 (("fail \"The build_error test should fail") "#")
2049 ((" -rubygems") ""))
2052 `(("ruby-formatador" ,ruby-formatador)))
2053 (synopsis "Simple depth first Ruby testing")
2054 (description "Shindo is a simple depth first testing library for Ruby.")
2055 (home-page "https://github.com/geemus/shindo")
2056 (license license:expat)))
2058 (define-public ruby-rubygems-tasks
2060 (name "ruby-rubygems-tasks")
2064 (uri (rubygems-uri "rubygems-tasks" version))
2067 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
2068 (build-system ruby-build-system)
2069 ;; Tests need Internet access.
2070 (arguments `(#:tests? #f))
2072 `(("ruby-rspec" ,ruby-rspec)
2073 ("ruby-yard" ,ruby-yard)))
2074 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2075 (description "Rubygems-task provides Rake tasks for managing and releasing
2077 (home-page "https://github.com/postmodern/rubygems-tasks")
2078 (license license:expat)))
2080 (define-public ruby-rubyzip
2082 (name "ruby-rubyzip")
2087 (uri (rubygems-uri "rubyzip" version))
2090 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2091 (build-system ruby-build-system)
2094 (modify-phases %standard-phases
2095 (add-before 'check 'patch-tests
2096 (lambda* (#:key inputs #:allow-other-keys)
2097 (substitute* "test/gentestfiles.rb"
2100 (assoc-ref inputs "zip") "/bin/zip")))
2101 (substitute* "test/input_stream_test.rb"
2102 (("/usr/bin/env ruby") (which "ruby")))
2105 `(("bundler" ,bundler)
2106 ("ruby-simplecov" ,ruby-simplecov)
2109 (synopsis "Ruby module is for reading and writing zip files")
2111 "The rubyzip module provides ways to read from and create zip files.")
2112 (home-page "http://github.com/rubyzip/rubyzip")
2113 (license license:bsd-2)))
2115 (define-public ruby-simplecov-html
2117 (name "ruby-simplecov-html")
2121 (uri (rubygems-uri "simplecov-html" version))
2124 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2125 (build-system ruby-build-system)
2126 (arguments `(#:tests? #f)) ; there are no tests
2128 `(("bundler" ,bundler)))
2129 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2130 (description "This package provides the default HTML formatter for
2131 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2132 (home-page "https://github.com/colszowka/simplecov-html")
2133 (license license:expat)))
2135 (define-public ruby-simplecov
2137 (name "ruby-simplecov")
2141 (uri (rubygems-uri "simplecov" version))
2144 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2145 (build-system ruby-build-system)
2146 ;; Simplecov depends on rubocop for code style checking at build time.
2147 ;; Rubocop needs simplecov at build time.
2148 (arguments `(#:tests? #f))
2150 `(("ruby-json" ,ruby-json)
2151 ("ruby-docile" ,ruby-docile)
2152 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2154 `(("bundler" ,bundler)))
2155 (synopsis "Code coverage framework for Ruby")
2156 (description "SimpleCov is a code coverage framework for Ruby with a
2157 powerful configuration library and automatic merging of coverage across test
2159 (home-page "https://github.com/colszowka/simplecov")
2160 (license license:expat)))
2162 (define-public ruby-useragent
2164 (name "ruby-useragent")
2168 (uri (rubygems-uri "useragent" version))
2171 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2172 (build-system ruby-build-system)
2174 '(#:tests? #f)) ; no test suite
2175 (synopsis "HTTP user agent parser for Ruby")
2176 (description "UserAgent is a Ruby library that parses and compares HTTP
2178 (home-page "https://github.com/gshutler/useragent")
2179 (license license:expat)))
2181 (define-public ruby-backports
2183 (name "ruby-backports")
2188 (uri (rubygems-uri "backports" version))
2191 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2192 (build-system ruby-build-system)
2194 '(;; TODO: This should be default, but there is one test failure
2195 #:test-target "all_spec"))
2197 `(("ruby-mspec" ,ruby-mspec)
2198 ("ruby-activesupport" ,ruby-activesupport)))
2199 (synopsis "Backports of the features in newer Ruby versions")
2201 "Backports enables more compatibility across Ruby versions by providing
2202 backports of some features.")
2203 (home-page "https://github.com/marcandre/backports")
2204 (license license:expat)))
2206 (define-public ruby-bacon
2212 (uri (rubygems-uri "bacon" version))
2215 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2216 (build-system ruby-build-system)
2217 (synopsis "Small RSpec clone")
2218 (description "Bacon is a small RSpec clone providing all essential
2220 (home-page "https://github.com/chneukirchen/bacon")
2221 (license license:expat)))
2223 (define-public ruby-bacon-bits
2225 (name "ruby-bacon-bits")
2230 (uri (rubygems-uri "bacon-bits" version))
2233 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2234 (build-system ruby-build-system)
2238 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2239 (synopsis "Extensions to Bacon, for disabling tests, before and after
2242 "This extends the bacon testing framework with useful extensions to
2243 disable tests, have before and after blocks that run once and more.")
2244 (home-page "https://github.com/cldwalker/bacon-bits")
2245 (license license:expat)))
2247 (define-public ruby-bacon-colored-output
2249 (name "ruby-bacon-colored-output")
2254 (uri (rubygems-uri "bacon-colored_output" version))
2257 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2258 (build-system ruby-build-system)
2260 '(;; No included tests
2263 `(("ruby-bacon" ,ruby-bacon)))
2264 (synopsis "Colored output for Bacon test framework")
2266 "This package adds color through ANSI escape codes to Bacon test
2268 (home-page "https://github.com/whitequark/bacon-colored_output")
2269 (license license:expat)))
2271 (define-public ruby-connection-pool
2273 (name "ruby-connection-pool")
2277 (uri (rubygems-uri "connection_pool" version))
2280 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2281 (build-system ruby-build-system)
2283 `(("bundler" ,bundler)))
2284 (synopsis "Generic connection pool for Ruby")
2285 (description "Connection_pool provides a generic connection pooling
2286 interface for Ruby programs.")
2287 (home-page "https://github.com/mperham/connection_pool")
2288 (license license:expat)))
2290 (define-public ruby-net-http-persistent
2292 (name "ruby-net-http-persistent")
2296 (uri (rubygems-uri "net-http-persistent" version))
2299 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2300 (build-system ruby-build-system)
2302 `(("ruby-connection-pool" ,ruby-connection-pool)
2303 ("ruby-hoe" ,ruby-hoe)))
2304 (synopsis "Persistent HTTP connection manager")
2305 (description "Net::HTTP::Persistent manages persistent HTTP connections
2306 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2307 (home-page "https://github.com/drbrain/net-http-persistent")
2308 (license license:expat)))
2310 (define-public ruby-power-assert
2312 (name "ruby-power-assert")
2316 (uri (rubygems-uri "power_assert" version))
2319 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2320 (build-system ruby-build-system)
2322 '(#:tests? #f)) ; No included tests
2324 `(("bundler" ,bundler)))
2325 (synopsis "Assert library with descriptive assertion messages")
2326 (description "Power-assert is an assertion library providing descriptive
2327 assertion messages for tests.")
2328 (home-page "https://github.com/k-tsj/power_assert")
2329 (license (list license:bsd-2 license:ruby))))
2331 (define-public ruby-powerpack
2333 (name "ruby-powerpack")
2338 (uri (rubygems-uri "powerpack" version))
2341 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2342 (build-system ruby-build-system)
2344 '(#:test-target "spec"))
2346 `(("bundler" ,bundler)
2347 ("ruby-rspec" ,ruby-rspec)
2348 ("ruby-yard" ,ruby-yard)))
2349 (synopsis "Useful extensions to core Ruby classes")
2351 "This package provides a few useful extensions to core Ruby classes,
2352 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2354 (home-page "https://github.com/bbatsov/powerpack")
2355 (license license:expat)))
2357 (define-public ruby-locale
2359 (name "ruby-locale")
2363 (uri (rubygems-uri "locale" version))
2366 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2367 (build-system ruby-build-system)
2368 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2369 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2370 ;; dependency cycle we disable tests.
2371 (arguments `(#:tests? #f))
2373 `(("bundler" ,bundler)
2374 ("ruby-yard" ,ruby-yard)))
2375 (synopsis "Ruby library providing basic localization APIs")
2377 "Ruby-Locale is the pure ruby library which provides basic APIs for
2379 (home-page "https://github.com/ruby-gettext/locale")
2380 (license (list license:lgpl3+ license:ruby))))
2382 (define-public ruby-temple
2384 (name "ruby-temple")
2389 (uri (rubygems-uri "temple" version))
2392 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2393 (build-system ruby-build-system)
2395 `(("ruby-tilt" ,ruby-tilt)
2396 ("ruby-bacon" ,ruby-bacon)
2397 ("ruby-erubis" ,ruby-erubis)))
2398 (synopsis "Template compilation framework in Ruby")
2400 "Temple is an abstraction and framework for compiling templates to pure
2402 (home-page "https://github.com/judofyr/temple")
2403 (license license:expat)))
2405 (define-public ruby-text
2411 (uri (rubygems-uri "text" version))
2414 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2415 (build-system ruby-build-system)
2416 (synopsis "Collection of text algorithms for Ruby")
2418 "This package provides a collection of text algorithms: Levenshtein,
2419 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2420 (home-page "https://github.com/threedaymonk/text")
2421 (license license:expat)))
2423 (define-public ruby-gettext
2425 (name "ruby-gettext")
2429 (uri (rubygems-uri "gettext" version))
2432 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2433 (build-system ruby-build-system)
2434 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2435 ;; which needs ruby-gettext. To break the dependency cycle we disable
2437 (arguments `(#:tests? #f))
2439 `(("ruby-locale" ,ruby-locale)
2440 ("ruby-text" ,ruby-text)))
2442 `(("bundler" ,bundler)
2443 ("ruby-yard" ,ruby-yard)))
2444 (synopsis "GNU gettext-like program for Ruby")
2446 "Gettext is a GNU gettext-like program for Ruby. The catalog
2447 file (po-file) used is the same as that used by GNU gettext, allowing you to
2448 use GNU gettext tools for maintenance.")
2449 (home-page "https://ruby-gettext.github.com/")
2450 (license (list license:lgpl3+ license:ruby))))
2452 (define-public ruby-packnga
2454 (name "ruby-packnga")
2458 (uri (rubygems-uri "packnga" version))
2461 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2462 (build-system ruby-build-system)
2463 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2464 ;; To break the dependency cycle we disable tests.
2465 (arguments `(#:tests? #f))
2467 `(("ruby-gettext" ,ruby-gettext)
2468 ("ruby-yard" ,ruby-yard)))
2470 `(("bundler" ,bundler)))
2471 (synopsis "Utility library to package internationalized libraries")
2473 "Packnga is a library to translate to many languages using YARD.")
2474 (home-page "http://ranguba.org/packnga/")
2475 (license license:lgpl2.0+)))
2477 (define-public ruby-test-construct
2479 (name "ruby-test-construct")
2484 (uri (rubygems-uri "test_construct" version))
2487 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2488 (build-system ruby-build-system)
2490 `(("bundler" ,bundler)
2491 ("ruby-mocha" ,ruby-mocha)
2492 ("ruby-rspec" ,ruby-rspec)))
2493 (synopsis "Creates temporary files and directories for testing")
2495 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2496 temporary files and directories during tests.")
2497 (home-page "https://github.com/bhb/test_construct")
2498 (license license:expat)))
2500 (define-public ruby-test-unit
2502 (name "ruby-test-unit")
2506 (uri (rubygems-uri "test-unit" version))
2509 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2510 (build-system ruby-build-system)
2512 `(("ruby-power-assert" ,ruby-power-assert)))
2514 `(("bundler" ,bundler)
2515 ("ruby-packnga" ,ruby-packnga)
2516 ("ruby-yard" ,ruby-yard)))
2517 (synopsis "Unit testing framework for Ruby")
2518 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2519 on xUnit principles. These were originally designed by Kent Beck, creator of
2520 extreme programming software development methodology, for Smalltalk's SUnit.
2521 It allows writing tests, checking results and automated testing in Ruby.")
2522 (home-page "https://test-unit.github.io/")
2523 (license (list license:psfl license:ruby))))
2525 (define-public ruby-markaby
2527 (name "ruby-markaby")
2532 (uri (rubygems-uri "markaby" version))
2535 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2536 (build-system ruby-build-system)
2539 (modify-phases %standard-phases
2540 ;; Run rspec manually without using the Rakefile, as the versions of
2541 ;; Rake and RSpec 2 are incompatible:
2543 ;; NoMethodError: undefined method `last_comment'
2545 (lambda* (#:key tests? #:allow-other-keys)
2550 `(("ruby-builder" ,ruby-builder)))
2552 `(("bundler" ,bundler)
2553 ("ruby-rspec" ,ruby-rspec-2)))
2554 (synopsis "Write HTML pages in pure Ruby")
2556 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2557 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2558 mixture of HTML and additional ERB syntax.")
2559 (home-page "https://markaby.github.io/")
2560 (license license:expat)))
2562 (define-public ruby-maruku
2564 (name "ruby-maruku")
2569 (uri (rubygems-uri "maruku" version))
2572 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2573 (build-system ruby-build-system)
2575 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2578 (modify-phases %standard-phases
2580 (lambda* (#:key tests? #:allow-other-keys)
2585 `(("ruby-rspec" ,ruby-rspec)
2586 ("ruby-simplecov" ,ruby-simplecov)
2587 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2588 (synopsis "Markdown interpreter in Ruby")
2590 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2591 HTML, and PDF through LaTeX.")
2592 (home-page "https://github.com/bhollis/maruku")
2593 (license license:expat)))
2595 (define-public ruby-metaclass
2597 (name "ruby-metaclass")
2601 (uri (rubygems-uri "metaclass" version))
2604 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2605 (build-system ruby-build-system)
2608 (modify-phases %standard-phases
2609 (add-after 'unpack 'add-test-unit-to-search-path
2610 (lambda* (#:key inputs #:allow-other-keys)
2611 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2612 (substitute* "Rakefile"
2613 (("t\\.libs << \"test\"" line)
2614 (string-append line "; t.libs << \""
2615 test-unit "/lib/ruby/vendor_ruby"
2617 ,(package-version ruby-test-unit)
2621 `(("bundler" ,bundler)
2622 ("ruby-test-unit" ,ruby-test-unit)))
2623 (synopsis "Ruby library adding metaclass method to all objects")
2625 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2627 (home-page "https://github.com/floehopper/metaclass")
2628 (license license:expat)))
2630 (define-public ruby-mspec
2637 (uri (rubygems-uri "mspec" version))
2640 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2641 (build-system ruby-build-system)
2643 '(;; TODO: 3 test failures
2644 ;; ./spec/mocks/mock_spec.rb:82
2645 ;; ./spec/utils/name_map_spec.rb:151
2646 ;; ./spec/utils/name_map_spec.rb:155
2649 (modify-phases %standard-phases
2650 (add-after 'extract-gemspec 'change-dependency-constraints
2652 (substitute* "mspec.gemspec"
2653 (("rake.*") "rake>)\n")
2654 (("rspec.*") "rspec>)\n"))
2657 (lambda* (#:key tests? #:allow-other-keys)
2659 (invoke "rspec" "spec"))
2662 `(("bundler" ,bundler)
2663 ("ruby-rake" ,ruby-rake)
2664 ("ruby-rspec" ,ruby-rspec)))
2665 (synopsis "MSpec is a specialized framework for RubySpec")
2667 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2668 for basic features. MSpec contains additional features that assist in writing
2669 specs for Ruby implementations in ruby/spec.")
2670 (home-page "http://rubyspec.org")
2671 (license license:expat)))
2673 (define-public ruby-mysql2
2675 (name "ruby-mysql2")
2681 (url "https://github.com/brianmario/mysql2.git")
2683 (file-name (git-file-name name version))
2686 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2687 (build-system ruby-build-system)
2689 '(;; TODO: Tests require a running MySQL/MariaDB service
2692 (modify-phases %standard-phases
2693 (replace 'replace-git-ls-files
2695 (substitute* "mysql2.gemspec"
2696 (("git ls-files .*`") "find . -type f |sort`"))
2698 (add-before 'install 'set-MAKEFLAGS
2699 (lambda* (#:key outputs #:allow-other-keys)
2703 "prefix=" (assoc-ref outputs "out")))
2705 ;; Move the 'check phase to after 'install, as then you can test
2706 ;; using the installed mysql2 gem in the store.
2708 (add-after 'install 'check
2709 (lambda* (#:key outputs tests? #:allow-other-keys)
2714 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2719 `(("mariadb" ,mariadb "lib")
2720 ("mariadb-dev" ,mariadb "dev")
2723 `(("ruby-rspec" ,ruby-rspec)
2724 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2725 (synopsis "MySQL library for Ruby, binding to libmysql")
2727 "This package provides a simple, fast MySQL library for Ruby, binding to
2729 (home-page "https://github.com/brianmario/mysql2")
2730 (license license:expat)))
2732 (define-public ruby-blankslate
2734 (name "ruby-blankslate")
2738 (uri (rubygems-uri "blankslate" version))
2741 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2742 (build-system ruby-build-system)
2745 (modify-phases %standard-phases
2747 (lambda _ (invoke "rspec" "spec/"))))))
2749 `(("bundler" ,bundler)
2750 ("ruby-rspec" ,ruby-rspec)))
2751 (synopsis "Abstract base class with no predefined methods")
2753 "BlankSlate provides an abstract base class with no predefined
2754 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2755 as a base class when writing classes that depend upon
2756 @code{method_missing} (e.g. dynamic proxies).")
2757 (home-page "https://github.com/masover/blankslate")
2758 (license license:expat)))
2760 (define-public ruby-bond
2767 (uri (rubygems-uri "bond" version))
2770 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2771 (build-system ruby-build-system)
2773 `(("ruby-bacon" ,ruby-bacon)
2774 ("ruby-bacon-bits" ,ruby-bacon-bits)
2775 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2776 (synopsis "Bond can provide custom autocompletion for arguments, methods
2779 "Bond can autocomplete argument(s) to methods, uniquely completing per
2780 module, per method and per argument. Bond provides a configuration system and
2781 a DSL for creating custom completions and completion rules. Bond can also
2782 load completions that ship with gems. Bond is able to offer more than irb's
2783 completion since it uses the full line of input when completing as opposed to
2784 irb's last-word approach.")
2785 (home-page "http://tagaholic.me/bond/")
2786 (license license:expat)))
2788 (define-public ruby-idn-ruby
2790 (name "ruby-idn-ruby")
2795 (uri (rubygems-uri "idn-ruby" version))
2798 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2799 (build-system ruby-build-system)
2802 (modify-phases %standard-phases
2804 (add-after 'install 'check
2805 (lambda* (#:key tests? outputs #:allow-other-keys)
2807 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2808 (name-and-version (basename gem-file ".gem")))
2812 (assoc-ref outputs "out")
2813 "/lib/ruby/vendor_ruby/gems/"
2816 (find-files "./test" ".*\\.rb"))))
2819 `(("libidn" ,libidn)))
2820 (synopsis "Ruby Bindings for the GNU LibIDN library")
2822 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2823 Stringprep, Punycode and IDNA specifications. These are used to encode and
2824 decode internationalized domain + names according to the IDNA2003
2827 Included are the most important parts of the Stringprep, Punycode and IDNA
2828 APIs like performing Stringprep processings, encoding to and decoding from
2829 Punycode strings and converting entire domain names to and from the ACE
2831 (home-page "https://github.com/deepfryed/idn-ruby")
2832 (license license:asl2.0)))
2834 (define-public ruby-instantiator
2836 (name "ruby-instantiator")
2840 (uri (rubygems-uri "instantiator" version))
2843 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2844 (build-system ruby-build-system)
2847 (modify-phases %standard-phases
2848 (add-after 'unpack 'add-test-unit-to-search-path
2849 (lambda* (#:key inputs #:allow-other-keys)
2850 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2851 (substitute* "Rakefile"
2852 (("t\\.libs << \"test\"" line)
2853 (string-append line "; t.libs << \""
2854 test-unit "/lib/ruby/vendor_ruby"
2856 ,(package-version ruby-test-unit)
2860 `(("ruby-blankslate" ,ruby-blankslate)))
2862 `(("bundler" ,bundler)
2863 ("ruby-test-unit" ,ruby-test-unit)))
2864 (synopsis "Instantiate an arbitrary Ruby class")
2866 "Instantiator lets you instantiate an arbitrary Ruby class without
2867 knowing anything about the constructor.")
2868 (home-page "https://github.com/floehopper/instantiator")
2869 (license license:expat)))
2871 (define-public ruby-introspection
2873 (name "ruby-introspection")
2877 (uri (rubygems-uri "introspection" version))
2880 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2881 (build-system ruby-build-system)
2884 (modify-phases %standard-phases
2885 (add-after 'unpack 'add-test-unit-to-search-path
2886 (lambda* (#:key inputs #:allow-other-keys)
2887 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2888 (substitute* "Rakefile"
2889 (("t\\.libs << \"test\"" line)
2890 (string-append line "; t.libs << \""
2891 test-unit "/lib/ruby/vendor_ruby"
2893 ,(package-version ruby-test-unit)
2897 `(("ruby-instantiator" ,ruby-instantiator)
2898 ("ruby-metaclass" ,ruby-metaclass)))
2900 `(("bundler" ,bundler)
2901 ("ruby-blankslate" ,ruby-blankslate)
2902 ("ruby-test-unit" ,ruby-test-unit)))
2903 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2905 "Introspection provides tools to inspect the hierarchy of method
2906 definitions on a Ruby object.")
2907 (home-page "https://github.com/floehopper/introspection")
2908 (license license:expat)))
2910 (define-public ruby-redcarpet
2912 (name "ruby-redcarpet")
2916 (uri (rubygems-uri "redcarpet" version))
2919 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
2920 (build-system ruby-build-system)
2923 (modify-phases %standard-phases
2924 ;; The gem archive does not include the conformance tests.
2925 (add-after 'unpack 'disable-conformance-tests
2927 (substitute* "Rakefile"
2928 (("task :test => %w\\[test:unit test:conformance\\]")
2929 "task :test => %w[test:unit]"))
2932 `(("bundler" ,bundler)
2933 ("ruby-test-unit" ,ruby-test-unit)
2934 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2935 (synopsis "Extensible Markdown to (X)HTML converter")
2937 "Redcarpet is an extensible Ruby library for Markdown processing and
2938 conversion to (X)HTML.")
2939 (home-page "https://github.com/vmg/redcarpet")
2940 (license license:expat)))
2942 (define-public ruby-rerun
2949 (uri (rubygems-uri "rerun" version))
2952 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
2953 (build-system ruby-build-system)
2955 '(#:tests? #f)) ; No included tests
2957 `(("ruby-listen" ,ruby-listen)))
2958 (synopsis "Run a process, and restart when some monitored files change")
2960 "Rerun is a tool to launch programs, then monitor the file system, and
2961 restart the program when any of the monitored files change. It's written in
2962 Ruby, but can be used for all programs.")
2963 (home-page "https://github.com/alexch/rerun/")
2964 (license license:expat)))
2966 (define-public ruby-mocha
2972 (uri (rubygems-uri "mocha" version))
2975 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2976 (build-system ruby-build-system)
2979 (modify-phases %standard-phases
2980 (add-after 'unpack 'add-test-unit-to-search-path
2981 (lambda* (#:key inputs #:allow-other-keys)
2982 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2983 (substitute* "Rakefile"
2984 (("t\\.libs << 'test'" line)
2985 (string-append line "; t.libs << \""
2986 test-unit "/lib/ruby/vendor_ruby"
2988 ,(package-version ruby-test-unit)
2991 (add-before 'check 'use-latest-redcarpet
2993 (substitute* "mocha.gemspec"
2994 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2995 "<redcarpet>.freeze, [\">= 3\"]"))
2997 (add-before 'check 'hardcode-version
2999 ;; Mocha is undefined at build time
3000 (substitute* "Rakefile"
3001 (("#\\{Mocha::VERSION\\}") ,version))
3003 (add-before 'check 'remove-failing-test
3004 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
3006 (delete-file "test/acceptance/stubbing_nil_test.rb")
3009 `(("ruby-metaclass" ,ruby-metaclass)))
3011 `(("bundler" ,bundler)
3012 ("ruby-yard" ,ruby-yard)
3013 ("ruby-introspection" ,ruby-introspection)
3014 ("ruby-test-unit" ,ruby-test-unit)
3015 ("ruby-redcarpet" ,ruby-redcarpet)))
3016 (synopsis "Mocking and stubbing library for Ruby")
3018 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3019 allows mocking and stubbing of methods on real (non-mock) classes.")
3020 (home-page "http://gofreerange.com/mocha/docs")
3021 (license license:expat)))
3023 (define-public ruby-mocha-on-bacon
3025 (name "ruby-mocha-on-bacon")
3030 (uri (rubygems-uri "mocha-on-bacon" version))
3033 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3034 (build-system ruby-build-system)
3036 ;; rubygems.org release missing tests
3038 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3039 (synopsis "Mocha adapter for Bacon")
3041 "This package provides a Mocha adapter for Bacon, allowing you to use the
3042 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3044 "https://github.com/alloy/mocha-on-bacon")
3045 (license license:expat)))
3047 (define-public ruby-net-ssh
3049 (name "ruby-net-ssh")
3053 (uri (rubygems-uri "net-ssh" version))
3056 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3057 (build-system ruby-build-system)
3059 `(("bundler" ,bundler)
3060 ("ruby-mocha" ,ruby-mocha)
3061 ("ruby-test-unit" ,ruby-test-unit)))
3062 (synopsis "Ruby implementation of the SSH2 client protocol")
3063 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3064 client protocol. It allows you to write programs that invoke and interact
3065 with processes on remote servers, via SSH2.")
3066 (home-page "https://github.com/net-ssh/net-ssh")
3067 (license license:expat)))
3069 (define-public ruby-net-scp
3071 (name "ruby-net-scp")
3072 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3073 (version "1.2.2.rc2")
3078 (url "https://github.com/net-ssh/net-scp.git")
3079 (commit (string-append "v" version))))
3080 (file-name (git-file-name name version))
3082 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3083 (build-system ruby-build-system)
3085 `(("bundler" ,bundler)
3086 ("ruby-test-unit" ,ruby-test-unit)
3087 ("ruby-mocha" ,ruby-mocha)))
3089 `(("ruby-net-ssh" ,ruby-net-ssh)))
3090 (synopsis "Pure-Ruby SCP client library")
3091 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3093 (home-page "https://github.com/net-ssh/net-scp")
3094 (license license:expat)))
3096 (define-public ruby-minitest
3098 (name "ruby-minitest")
3102 (uri (rubygems-uri "minitest" version))
3105 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3106 (build-system ruby-build-system)
3108 `(("ruby-hoe" ,ruby-hoe)))
3109 (synopsis "Small test suite library for Ruby")
3110 (description "Minitest provides a complete suite of Ruby testing
3111 facilities supporting TDD, BDD, mocking, and benchmarking.")
3112 (home-page "https://github.com/seattlerb/minitest")
3113 (license license:expat)))
3115 ;; This is the last release of Minitest 4, which is used by some packages.
3116 (define-public ruby-minitest-4
3117 (package (inherit ruby-minitest)
3121 (uri (rubygems-uri "minitest" version))
3124 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3127 (modify-phases %standard-phases
3128 (add-after 'unpack 'remove-unsupported-method
3130 (substitute* "Rakefile"
3131 (("self\\.rubyforge_name = .*") ""))
3133 (add-after 'build 'exclude-failing-tests
3135 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3137 (delete-file "test/minitest/test_minitest_spec.rb")
3140 (define-public ruby-minitest-around
3142 (name "ruby-minitest-around")
3147 (uri (rubygems-uri "minitest-around" version))
3150 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3151 (build-system ruby-build-system)
3154 (modify-phases %standard-phases
3155 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3157 (substitute* "minitest-around.gemspec"
3158 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3161 `(("ruby-minitest" ,ruby-minitest)))
3163 `(("bundler" ,bundler)
3164 ("ruby-cucumber" ,ruby-cucumber)
3165 ("ruby-bump" ,ruby-bump)
3166 ("ruby-test-construct" ,ruby-test-construct)))
3167 (synopsis "Run code around tests in Minitest")
3169 "This library provides a way to run code around tests in Minitest,
3170 written using either the unit test or spec style.")
3171 (home-page "https://github.com/splattael/minitest-around")
3172 (license license:expat)))
3174 (define-public ruby-minitest-sprint
3176 (name "ruby-minitest-sprint")
3180 (uri (rubygems-uri "minitest-sprint" version))
3183 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3184 (build-system ruby-build-system)
3186 `(("ruby-hoe" ,ruby-hoe)
3187 ("ruby-minitest" ,ruby-minitest)))
3188 (synopsis "Fast test suite runner for minitest")
3189 (description "Minitest-sprint is a test runner for minitest that makes it
3190 easier to re-run individual failing tests.")
3191 (home-page "https://github.com/seattlerb/minitest-sprint")
3192 (license license:expat)))
3194 (define-public ruby-minitest-bacon
3196 (name "ruby-minitest-bacon")
3200 (uri (rubygems-uri "minitest-bacon" version))
3203 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3204 (build-system ruby-build-system)
3206 `(("ruby-hoe" ,ruby-hoe)))
3208 `(("ruby-minitest" ,ruby-minitest)))
3209 (synopsis "Bacon compatibility library for minitest")
3210 (description "Minitest-bacon extends minitest with bacon-like
3211 functionality, making it easier to migrate test suites from bacon to minitest.")
3212 (home-page "https://github.com/seattlerb/minitest-bacon")
3213 (license license:expat)))
3215 (define-public ruby-minitest-focus
3217 (name "ruby-minitest-focus")
3222 (uri (rubygems-uri "minitest-focus" version))
3225 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3226 (build-system ruby-build-system)
3228 `(("ruby-minitest" ,ruby-minitest)))
3230 `(("ruby-hoe" ,ruby-hoe)))
3231 (synopsis "Allows a few specific tests to be focused on")
3233 "@code{minitest-focus} gives the ability focus on a few tests with ease
3234 without having to use command-line arguments. It introduces a @code{focus}
3235 class method for use in testing classes, specifying that the next defined test
3237 (home-page "https://github.com/seattlerb/minitest-focus")
3238 (license license:expat)))
3240 (define-public ruby-minitest-pretty-diff
3241 ;; Use git reference because gem is out of date and does not contain testing
3242 ;; script. There are no releases on GitHub.
3243 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3245 (name "ruby-minitest-pretty-diff")
3246 (version (string-append "0.1-1." (string-take commit 8)))
3250 (url "https://github.com/adammck/minitest-pretty_diff.git")
3252 (file-name (string-append name "-" version "-checkout"))
3255 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3256 (build-system ruby-build-system)
3259 (modify-phases %standard-phases
3262 (invoke "script/test"))))))
3264 `(("bundler" ,bundler)
3265 ("ruby-turn" ,ruby-turn)))
3266 (synopsis "Pretty-print hashes and arrays in MiniTest")
3268 "@code{minitest-pretty_diff} monkey-patches
3269 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3270 diffing them. This makes it easier to spot differences between nested
3271 structures when tests fail.")
3272 (home-page "https://github.com/adammck/minitest-pretty_diff")
3273 (license license:expat))))
3275 (define-public ruby-minitest-moar
3277 (name "ruby-minitest-moar")
3282 (uri (rubygems-uri "minitest-moar" version))
3285 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3286 (build-system ruby-build-system)
3289 (modify-phases %standard-phases
3290 (add-before 'check 'clean-dependencies
3292 ;; Remove all gems defined in the Gemfile because these are not
3294 (substitute* "Gemfile"
3296 ;; Remove byebug as not needed to run tests.
3297 (substitute* "test/test_helper.rb"
3298 (("require 'byebug'") ""))
3301 `(("bundler" ,bundler)
3302 ("ruby-minitest" ,ruby-minitest)))
3303 (synopsis "Extra features and changes to MiniTest")
3304 (description "@code{MiniTest Moar} add some additional features and
3305 changes some default behaviours in MiniTest. For instance, Moar replaces the
3306 MiniTest @code{Object#stub} with a global @code{stub} method.")
3307 (home-page "https://github.com/dockyard/minitest-moar")
3308 (license license:expat)))
3310 (define-public ruby-minitest-bonus-assertions
3312 (name "ruby-minitest-bonus-assertions")
3317 (uri (rubygems-uri "minitest-bonus-assertions" version))
3320 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3321 (build-system ruby-build-system)
3324 (modify-phases %standard-phases
3325 (add-before 'check 'clean-dependencies
3327 ;; Remove unneeded require statement that would entail another
3329 (substitute* "test/minitest_config.rb"
3330 (("require 'minitest/bisect'") ""))
3333 `(("ruby-hoe" ,ruby-hoe)
3334 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3335 ("ruby-minitest-focus" ,ruby-minitest-focus)
3336 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3337 (synopsis "Bonus assertions for @code{Minitest}")
3339 "Minitest bonus assertions provides extra MiniTest assertions. For
3340 instance, it provides @code{assert_true}, @code{assert_false} and
3341 @code{assert_set_equal}.")
3342 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3343 (license license:expat)))
3345 (define-public ruby-minitest-reporters
3347 (name "ruby-minitest-reporters")
3352 (uri (rubygems-uri "minitest-reporters" version))
3355 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3356 (build-system ruby-build-system)
3359 (modify-phases %standard-phases
3360 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3361 ;; including it as an input can lead to circular dependencies.
3362 (add-after 'unpack 'remove-rubocop-from-Rakefile
3364 (substitute* "Rakefile"
3365 (("require 'rubocop/rake\\_task'") "")
3366 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3368 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3370 (substitute* "minitest-reporters.gemspec"
3371 ((".*%q<rubocop>.*") "\n"))
3374 `(("ruby-ansi" ,ruby-ansi)
3375 ("ruby-builder" ,ruby-builder)
3376 ("ruby-minitest" ,ruby-minitest)
3377 ("ruby-progressbar" ,ruby-progressbar)))
3379 `(("bundler" ,bundler)
3380 ("ruby-maruku" ,ruby-maruku)))
3381 (synopsis "Enhanced reporting for Minitest tests")
3383 "@code{minitest/reporters} provides a custom Minitest runner to improve
3384 how the test state is reported. A number of different reporters are
3385 available, including a spec reporter, progress bar reporter, a HTML
3387 (home-page "https://github.com/kern/minitest-reporters")
3388 (license license:expat)))
3390 (define-public ruby-minitest-rg
3392 (name "ruby-minitest-rg")
3397 (uri (rubygems-uri "minitest-rg" version))
3400 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3401 (build-system ruby-build-system)
3403 ;; Some tests fail even outside Guix, so disable tests.
3404 ;; https://github.com/blowmage/minitest-rg/issues/12
3405 ;; https://github.com/blowmage/minitest-rg/pull/13
3408 `(("ruby-minitest" ,ruby-minitest)))
3409 (synopsis "Coloured output for Minitest")
3411 "@code{minitest-rg} changes the colour of the output from Minitest.")
3412 (home-page "https://blowmage.com/minitest-rg/")
3413 (license license:expat)))
3415 (define-public ruby-minitest-hooks
3417 (name "ruby-minitest-hooks")
3422 (uri (rubygems-uri "minitest-hooks" version))
3425 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3426 (build-system ruby-build-system)
3428 '(#:test-target "spec"))
3430 `(("ruby-sequel" ,ruby-sequel)
3431 ("ruby-sqlite3" ,ruby-sqlite3)))
3432 (synopsis "Hooks for the minitest framework")
3434 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3435 @code{around_all} hooks for Minitest. This allows, for instance, running each
3436 suite of specs inside a database transaction, running each spec inside its own
3437 savepoint inside that transaction. This can significantly speed up testing
3438 for specs that share expensive database setup code.")
3439 (home-page "https://github.com/jeremyevans/minitest-hooks")
3440 (license license:expat)))
3442 (define-public ruby-daemons
3444 (name "ruby-daemons")
3448 (uri (rubygems-uri "daemons" version))
3451 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3452 (build-system ruby-build-system)
3454 `(#:tests? #f)) ; no test suite
3455 (synopsis "Daemonize Ruby programs")
3456 (description "Daemons provides a way to wrap existing Ruby scripts to be
3457 run as a daemon and to be controlled by simple start/stop/restart commands.")
3458 (home-page "https://github.com/thuehlinger/daemons")
3459 (license license:expat)))
3461 (define-public ruby-data_uri
3463 (name "ruby-data_uri")
3468 (uri (rubygems-uri "data_uri" version))
3471 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3472 (build-system ruby-build-system)
3473 (synopsis "URI class for parsing data URIs")
3475 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3476 embedded inside a URI. The URI::Data class provides support for parsing these
3477 URIs using the normal URI.parse method.")
3478 (home-page "https://github.com/dball/data_uri")
3479 (license license:expat)))
3481 (define-public ruby-git
3487 (uri (rubygems-uri "git" version))
3490 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3491 (build-system ruby-build-system)
3493 `(#:tests? #f ; no tests
3494 #:phases (modify-phases %standard-phases
3495 (add-after 'install 'patch-git-binary
3496 (lambda* (#:key inputs outputs #:allow-other-keys)
3497 ;; Make the default git binary an absolute path to the
3499 (let ((git (string-append (assoc-ref inputs "git")
3501 (config (string-append
3502 (assoc-ref outputs "out")
3503 "/lib/ruby/vendor_ruby/gems/git-"
3504 ,version "/lib/git/config.rb")))
3505 (substitute* (list config)
3507 (string-append "'" git "'")))
3511 (synopsis "Ruby wrappers for Git")
3512 (description "Ruby/Git is a Ruby library that can be used to create, read
3513 and manipulate Git repositories by wrapping system calls to the git binary.")
3514 (home-page "https://github.com/schacon/ruby-git")
3515 (license license:expat)))
3517 (define-public ruby-slop
3523 (uri (rubygems-uri "slop" version))
3526 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3527 (build-system ruby-build-system)
3529 `(("ruby-minitest" ,ruby-minitest)))
3530 (synopsis "Ruby command line option parser")
3531 (description "Slop provides a Ruby domain specific language for gathering
3532 options and parsing command line flags.")
3533 (home-page "https://github.com/leejarvis/slop")
3534 (license license:expat)))
3536 (define-public ruby-slop-3
3537 (package (inherit ruby-slop)
3541 (uri (rubygems-uri "slop" version))
3544 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3546 (define-public ruby-multi-xml
3548 (name "ruby-multi-xml")
3553 (uri (rubygems-uri "multi_xml" version))
3556 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3557 (build-system ruby-build-system)
3559 '(#:tests? #f)) ; No included tests
3560 (synopsis "Swappable XML backends for Ruby")
3562 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3563 Nokogiri, Ox, or REXML.")
3564 (home-page "https://github.com/sferik/multi_xml")
3565 (license license:expat)))
3567 (define-public ruby-multipart-post
3569 (name "ruby-multipart-post")
3573 (uri (rubygems-uri "multipart-post" version))
3576 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3577 (build-system ruby-build-system)
3579 `(("bundler" ,bundler)))
3580 (synopsis "Multipart POST library for Ruby")
3581 (description "Multipart-Post Adds multipart POST capability to Ruby's
3583 (home-page "https://github.com/nicksieger/multipart-post")
3584 (license license:expat)))
3586 (define-public ruby-multi-json
3588 (name "ruby-multi-json")
3593 ;; Tests are not distributed at rubygems.org so download from GitHub
3596 (url "https://github.com/intridea/multi_json")
3597 (commit (string-append "v" version))))
3598 (file-name (git-file-name name version))
3601 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
3602 (build-system ruby-build-system)
3605 (modify-phases %standard-phases
3606 (add-after 'unpack 'remove-signing-key-reference
3608 (substitute* "multi_json.gemspec"
3609 ((".*spec.signing_key.*") ""))
3612 `(("bundler" ,bundler)
3613 ("ruby-rspec" ,ruby-rspec)
3614 ("ruby-yard" ,ruby-yard)
3615 ("ruby-json-pure" ,ruby-json-pure)
3616 ("ruby-oj" ,ruby-oj)
3617 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3618 (synopsis "Common interface to multiple JSON libraries for Ruby")
3620 "This package provides a common interface to multiple JSON libraries,
3621 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3622 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3623 (home-page "https://github.com/intridea/multi_json")
3624 (license license:expat)))
3626 (define-public ruby-multi-test
3628 (name "ruby-multi-test")
3633 (uri (rubygems-uri "multi_test" version))
3636 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3637 (build-system ruby-build-system)
3639 '(;; Tests require different sets of specific gem versions to be available,
3640 ;; and there is no gemfile that specifies the newest versions of
3641 ;; dependencies to be tested.
3644 "Interface to testing libraries loaded into a running Ruby process")
3646 "@code{multi_test} provides a uniform interface onto whatever testing
3647 libraries that have been loaded into a running Ruby process to help control
3648 rogue test/unit/autorun requires.")
3649 (home-page "https://github.com/cucumber/multi_test")
3650 (license license:expat)))
3652 (define-public ruby-arel
3658 (uri (rubygems-uri "arel" version))
3661 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3662 (build-system ruby-build-system)
3663 (arguments '(#:tests? #f)) ; no tests
3664 (home-page "https://github.com/rails/arel")
3665 (synopsis "SQL AST manager for Ruby")
3666 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3667 Ruby. It simplifies the generation of complex SQL queries and adapts to
3668 various relational database implementations.")
3669 (license license:expat)))
3671 (define-public ruby-marcel
3673 (name "ruby-marcel")
3678 (uri (rubygems-uri "marcel" version))
3681 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3682 (build-system ruby-build-system)
3684 '(;; No included tests
3687 `(("ruby-mimemagic" ,ruby-mimemagic)))
3688 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3690 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3691 Extensions} type detection using magic numbers, filenames, and extensions")
3692 (home-page "https://github.com/basecamp/marcel")
3693 (license license:expat)))
3695 (define-public ruby-minitar
3696 ;; We package from the GitHub source to fix the security issue reported at
3697 ;; https://github.com/halostatue/minitar/issues/16.
3698 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3700 (name "ruby-minitar")
3701 (version (string-append "0.5.4-1." (string-take commit 8)))
3706 (url "https://github.com/halostatue/minitar.git")
3708 (file-name (string-append name "-" version "-checkout"))
3711 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3712 (build-system ruby-build-system)
3714 '(#:tests? #f)) ; missing a gemspec
3715 (synopsis "Ruby library and utility for handling tar archives")
3717 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3718 that provides the ability to deal with POSIX tar archive files.")
3719 (home-page "http://www.github.com/atoulme/minitar")
3720 (license (list license:gpl2+ license:ruby)))))
3722 (define-public ruby-mini-portile
3724 (name "ruby-mini-portile")
3729 (uri (rubygems-uri "mini_portile" version))
3732 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3733 (build-system ruby-build-system)
3735 '(#:tests? #f)) ; tests require network access
3736 (synopsis "Ports system for Ruby developers")
3737 (description "Mini-portile is a port/recipe system for Ruby developers.
3738 It provides a standard way to compile against specific versions of libraries
3739 to reproduce user environments.")
3740 (home-page "https://github.com/flavorjones/mini_portile")
3741 (license license:expat)))
3743 (define-public ruby-mini-portile-2
3744 (package (inherit ruby-mini-portile)
3748 (uri (rubygems-uri "mini_portile2" version))
3751 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
3753 (define-public ruby-nokogiri
3755 (name "ruby-nokogiri")
3759 (uri (rubygems-uri "nokogiri" version))
3762 "185g3dwba73jqxjr94bd2zk6fil6n9hmcfnfyzh3p1w47vm296r7"))))
3763 (build-system ruby-build-system)
3765 ;; Tests fail because Nokogiri can only test with an installed extension,
3766 ;; and also because many test framework dependencies are missing.
3768 #:gem-flags (list "--" "--use-system-libraries"
3769 (string-append "--with-xml2-include="
3770 (assoc-ref %build-inputs "libxml2")
3771 "/include/libxml2" ))
3773 (modify-phases %standard-phases
3774 (add-before 'build 'patch-extconf
3775 ;; 'pkg-config' is not included in the GEM_PATH during
3776 ;; installation, so we add it directly to the load path.
3777 (lambda* (#:key inputs #:allow-other-keys)
3778 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3779 (substitute* "ext/nokogiri/extconf.rb"
3780 (("gem 'pkg-config'.*")
3781 (string-append "$:.unshift '"
3782 pkg-config "/lib/ruby/vendor_ruby"
3784 ,(package-version ruby-pkg-config)
3788 `(("ruby-hoe" ,ruby-hoe)))
3791 ("libxml2" ,libxml2)
3792 ("libxslt" ,libxslt)))
3794 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3795 ("ruby-pkg-config" ,ruby-pkg-config)))
3796 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3797 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3798 both CSS3 selector and XPath 1.0 support.")
3799 (home-page "http://www.nokogiri.org/")
3800 (license license:expat)))
3802 (define-public ruby-method-source
3804 (name "ruby-method-source")
3809 (uri (rubygems-uri "method_source" version))
3812 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3813 (build-system ruby-build-system)
3815 `(#:test-target "spec"))
3817 `(("ruby-rspec" ,ruby-rspec)
3819 (synopsis "Retrieve the source code for Ruby methods")
3820 (description "Method_source retrieves the source code for Ruby methods.
3821 Additionally, it can extract source code from Proc and Lambda objects or just
3823 (home-page "https://github.com/banister/method_source")
3824 (license license:expat)))
3826 (define-public ruby-coderay
3828 (name "ruby-coderay")
3833 (uri (rubygems-uri "coderay" version))
3836 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3837 (build-system ruby-build-system)
3839 '(#:tests? #f)) ; missing test files
3840 (synopsis "Ruby syntax highlighting library")
3841 (description "Coderay is a Ruby library that provides syntax highlighting
3842 for select languages.")
3843 (home-page "http://coderay.rubychan.de")
3844 (license license:expat)))
3846 (define-public ruby-parser
3848 (name "ruby-parser")
3853 (uri (rubygems-uri "parser" version))
3856 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3857 (build-system ruby-build-system)
3859 `(("bundler" ,bundler)
3860 ("ruby-cliver" ,ruby-cliver)
3861 ("ruby-simplecov" ,ruby-simplecov)
3862 ("ruby-racc" ,ruby-racc)))
3864 `(("ragel" ,ragel)))
3866 `(("ruby-ast" ,ruby-ast)))
3867 (synopsis "Ruby parser written in pure Ruby")
3869 "This package provides a Ruby parser written in pure Ruby.")
3870 (home-page "https://github.com/whitequark/parser")
3871 (license license:expat)))
3873 (define-public ruby-prawn-manual-builder
3875 (name "ruby-prawn-manual-builder")
3880 (uri (rubygems-uri "prawn-manual_builder" version))
3882 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
3883 (build-system ruby-build-system)
3885 '(#:tests? #f ; no included tests
3887 (modify-phases %standard-phases
3888 (add-after 'extract-gemspec 'patch-gemspec
3890 (substitute* ".gemspec"
3891 ;; Loosen the requirement for pdf-inspector
3892 (("~> 1\\.0\\.7") ">= 0")))))))
3894 `(("ruby-coderay" ,ruby-coderay)))
3895 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3897 "This package provides a tool for writing manuals for Prawn and Prawn
3899 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3901 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3905 (define-public ruby-progress_bar
3907 (name "ruby-progress_bar")
3912 (uri (rubygems-uri "progress_bar" version))
3915 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3916 (build-system ruby-build-system)
3918 '(#:test-target "spec"))
3920 `(("ruby-highline" ,ruby-highline)
3921 ("ruby-options" ,ruby-options)))
3923 `(("bundler" ,bundler)
3924 ("ruby-rspec" ,ruby-rspec)
3925 ("ruby-timecop" ,ruby-timecop)))
3927 "Ruby library for displaying progress bars")
3929 "ProgressBar is a simple library for displaying progress bars. The
3930 maximum value is configurable, and additional information can be displayed
3931 like the percentage completion, estimated time remaining, elapsed time and
3933 (home-page "https://github.com/paul/progress_bar")
3934 (license license:wtfpl2)))
3936 (define-public ruby-dep
3943 (uri (rubygems-uri "ruby_dep" version))
3946 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
3947 (build-system ruby-build-system)
3949 '(#:tests? #f)) ; No included tests
3950 (synopsis "Creates a version constraint of supported Rubies")
3952 "This package helps create a version constraint of supported Rubies,
3953 suitable for a gemspec file.")
3954 (home-page "https://github.com/e2/ruby_dep")
3955 (license license:expat)))
3957 (define-public ruby-progressbar
3959 (name "ruby-progressbar")
3964 (uri (rubygems-uri "ruby-progressbar" version))
3966 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
3967 (build-system ruby-build-system)
3969 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3971 (synopsis "Text progress bar library for Ruby")
3973 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3974 The output can be customized with a formatting system.")
3975 (home-page "https://github.com/jfelchner/ruby-progressbar")
3976 (license license:expat)))
3978 (define-public ruby-pry
3985 (uri (rubygems-uri "pry" version))
3988 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3989 (build-system ruby-build-system)
3991 '(#:tests? #f)) ; no tests
3993 `(("ruby-coderay" ,ruby-coderay)
3994 ("ruby-method-source" ,ruby-method-source)))
3995 (synopsis "Ruby REPL")
3996 (description "Pry is an IRB alternative and runtime developer console for
3997 Ruby. It features syntax highlighting, a plugin architecture, runtime
3998 invocation, and source and documentation browsing.")
3999 (home-page "https://pryrepl.org")
4000 (license license:expat)))
4002 (define-public ruby-guard
4008 ;; The gem does not include a Rakefile, nor does it contain a
4009 ;; gemspec file, nor does it come with the tests. This is why
4010 ;; we fetch the tarball from Github.
4012 (url "https://github.com/guard/guard")
4013 (commit (string-append "v" version))))
4014 (file-name (git-file-name name version))
4017 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
4018 (build-system ruby-build-system)
4020 `(#:tests? #f ; tests require cucumber
4022 (modify-phases %standard-phases
4023 (add-after 'unpack 'remove-git-ls-files
4024 (lambda* (#:key outputs #:allow-other-keys)
4025 (substitute* "guard.gemspec"
4026 (("git ls-files -z") "find . -type f -print0"))
4030 (invoke "gem" "build" "guard.gemspec"))))))
4032 `(("ruby-formatador" ,ruby-formatador)
4033 ("ruby-listen" ,ruby-listen)
4034 ("ruby-lumberjack" ,ruby-lumberjack)
4035 ("ruby-nenv" ,ruby-nenv)
4036 ("ruby-notiffany" ,ruby-notiffany)
4037 ("ruby-pry" ,ruby-pry)
4038 ("ruby-shellany" ,ruby-shellany)
4039 ("ruby-thor" ,ruby-thor)))
4041 `(("bundler" ,bundler)
4042 ("ruby-rspec" ,ruby-rspec)))
4043 (synopsis "Tool to handle events on file system modifications")
4045 "Guard is a command line tool to easily handle events on file system
4046 modifications. Guard automates various tasks by running custom rules whenever
4047 file or directories are modified.")
4048 (home-page "https://guardgem.org/")
4049 (license license:expat)))
4051 (define-public ruby-tilt
4058 (uri (rubygems-uri "tilt" version))
4061 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
4062 (build-system ruby-build-system)
4065 (modify-phases %standard-phases
4066 (add-after 'unpack 'remove-some-dependencies
4068 (substitute* "Gemfile"
4069 ;; TODO ronn is used for generating the manual
4070 (("gem 'ronn'.*") "\n")
4071 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4072 ;; pass it in as a native-input
4073 (("gem 'haml'.*") "\n")
4074 ;; TODO Not all of these gems are packaged for Guix yet:
4075 ;; less, coffee-script, livescript, babel-transpiler,
4077 (("if can_execjs") "if false")
4078 ;; Disable the secondary group to reduce the number of
4079 ;; dependencies. None of the normal approaches work, so patch
4080 ;; the Gemfile instead.
4081 (("group :secondary") "[].each"))
4084 `(("bundler" ,bundler)
4085 ("ruby-yard" ,ruby-yard)
4086 ("ruby-builder" ,ruby-builder)
4087 ("ruby-erubis" ,ruby-erubis)
4088 ("ruby-markaby" ,ruby-markaby)
4089 ("ruby-sassc" ,ruby-sassc)))
4090 (synopsis "Generic interface to multiple Ruby template engines")
4092 "Tilt is a thin interface over a number of different Ruby template
4093 engines in an attempt to make their usage as generic as possible.")
4094 (home-page "https://github.com/rtomayko/tilt/")
4095 (license license:expat)))
4097 (define-public ruby-thread-safe
4099 (name "ruby-thread-safe")
4104 (uri (rubygems-uri "thread_safe" version))
4107 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4108 (build-system ruby-build-system)
4110 '(#:tests? #f)) ; needs simplecov, among others
4111 (synopsis "Thread-safe utilities for Ruby")
4112 (description "The thread_safe library provides thread-safe collections and
4113 utilities for Ruby.")
4114 (home-page "https://github.com/ruby-concurrency/thread_safe")
4115 (license license:asl2.0)))
4117 (define-public ruby-tzinfo
4119 (name "ruby-tzinfo")
4124 (uri (rubygems-uri "tzinfo" version))
4127 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4128 (build-system ruby-build-system)
4131 (modify-phases %standard-phases
4132 (add-after 'unpack 'skip-safe-tests
4134 (substitute* "test/test_utils.rb"
4135 (("def safe_test\\(options = \\{\\}\\)")
4136 "def safe_test(options = {})
4137 skip('The Guix build environment has an unsafe load path')"))
4140 `(("ruby-thread-safe" ,ruby-thread-safe)))
4141 (synopsis "Time zone library for Ruby")
4142 (description "TZInfo is a Ruby library that provides daylight savings
4143 aware transformations between times in different time zones.")
4144 (home-page "https://tzinfo.github.io")
4145 (license license:expat)))
4147 (define-public ruby-tzinfo-data
4149 (name "ruby-tzinfo-data")
4150 (version "1.2017.3")
4154 ;; Download from GitHub because the rubygems version does not contain
4155 ;; Rakefile or tests.
4157 (url "https://github.com/tzinfo/tzinfo-data")
4158 (commit (string-append "v" version))))
4159 (file-name (git-file-name name version))
4162 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4163 ;; Remove the known test failure.
4164 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4165 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4166 (patches (search-patches
4167 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4168 (build-system ruby-build-system)
4170 `(("ruby-tzinfo" ,ruby-tzinfo)))
4171 (synopsis "Data from the IANA Time Zone database")
4173 "This library provides @code{TZInfo::Data}, which contains data from the
4174 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4175 (home-page "https://tzinfo.github.io")
4176 (license license:expat)))
4178 (define-public ruby-rb-inotify
4180 (name "ruby-rb-inotify")
4185 (uri (rubygems-uri "rb-inotify" version))
4188 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4189 (build-system ruby-build-system)
4191 '(#:tests? #f ; there are no tests
4193 (modify-phases %standard-phases
4194 ;; Building the gemspec with rake is not working here since it is
4195 ;; generated with Jeweler. It is also unnecessary because the
4196 ;; existing gemspec does not use any development tools to generate a
4200 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4202 `(("ruby-ffi" ,ruby-ffi)))
4204 `(("ruby-yard" ,ruby-yard)))
4205 (synopsis "Ruby wrapper for Linux's inotify")
4206 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4207 kernel subsystem for monitoring changes to files and directories.")
4208 (home-page "https://github.com/nex3/rb-inotify")
4209 (license license:expat)))
4211 (define-public ruby-pry-editline
4213 (name "ruby-pry-editline")
4217 (uri (rubygems-uri "pry-editline" version))
4220 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4221 (build-system ruby-build-system)
4222 (arguments `(#:tests? #f)) ; no tests included
4224 `(("bundler" ,bundler)))
4225 (synopsis "Open the current REPL line in an editor")
4227 "This gem provides a plugin for the Ruby REPL to enable opening the
4228 current line in an external editor.")
4229 (home-page "https://github.com/tpope/pry-editline")
4230 (license license:expat)))
4232 (define-public ruby-sdoc
4238 (uri (rubygems-uri "sdoc" version))
4241 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4242 (build-system ruby-build-system)
4245 (modify-phases %standard-phases
4246 (add-before 'check 'set-rubylib-and-patch-gemfile
4248 (setenv "RUBYLIB" "lib")
4249 (substitute* "sdoc.gemspec"
4250 (("s.add_runtime_dependency.*") "\n")
4251 (("s.add_dependency.*") "\n"))
4252 (substitute* "Gemfile"
4254 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4257 `(("ruby-json" ,ruby-json)))
4259 `(("bundler" ,bundler)
4260 ("ruby-minitest" ,ruby-minitest)
4261 ("ruby-hoe" ,ruby-hoe)))
4262 (synopsis "Generate searchable RDoc documentation")
4264 "SDoc is an RDoc documentation generator to build searchable HTML
4265 documentation for Ruby code.")
4266 (home-page "https://github.com/voloko/sdoc")
4267 (license license:expat)))
4269 (define-public ruby-tins
4275 (uri (rubygems-uri "tins" version))
4278 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4279 (build-system ruby-build-system)
4280 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4281 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4284 `(#:tests? #f ; there are no tests
4286 (modify-phases %standard-phases
4289 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4291 (substitute* "tins.gemspec"
4292 (("\"lib/spruz\", ") ""))
4293 (invoke "gem" "build" "tins.gemspec"))))))
4294 (synopsis "Assorted tools for Ruby")
4295 (description "Tins is a Ruby library providing assorted tools.")
4296 (home-page "https://github.com/flori/tins")
4297 (license license:expat)))
4299 (define-public ruby-gem-hadar
4301 (name "ruby-gem-hadar")
4305 (uri (rubygems-uri "gem_hadar" version))
4308 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4309 (build-system ruby-build-system)
4310 ;; This gem needs itself at development time. We disable rebuilding of the
4311 ;; gemspec to avoid this loop.
4313 `(#:tests? #f ; there are no tests
4315 (modify-phases %standard-phases
4318 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4321 ("ruby-tins" ,ruby-tins)
4322 ("ruby-yard" ,ruby-yard)))
4323 (synopsis "Library for the development of Ruby gems")
4325 "This library contains some useful functionality to support the
4326 development of Ruby gems.")
4327 (home-page "https://github.com/flori/gem_hadar")
4328 (license license:expat)))
4330 (define-public ruby-minitest-tu-shim
4332 (name "ruby-minitest-tu-shim")
4336 (uri (rubygems-uri "minitest_tu_shim" version))
4339 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4340 (build-system ruby-build-system)
4343 (modify-phases %standard-phases
4344 (add-after 'unpack 'fix-test-include-path
4345 (lambda* (#:key inputs #:allow-other-keys)
4346 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4347 (substitute* "Rakefile"
4348 (("Hoe\\.add_include_dirs .*")
4349 (string-append "Hoe.add_include_dirs \""
4350 minitest "/lib/ruby/vendor_ruby"
4352 ,(package-version ruby-minitest-4)
4355 (add-before 'check 'fix-test-assumptions
4357 ;; The test output includes the file name, so a couple of tests
4358 ;; fail. Changing the regular expressions slightly fixes this
4360 (substitute* "test/test_mini_test.rb"
4361 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4362 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4363 (("gsub\\(/.*, 'FILE:LINE'\\)")
4364 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4367 `(("ruby-minitest-4" ,ruby-minitest-4)))
4369 `(("ruby-hoe" ,ruby-hoe)))
4370 (synopsis "Adapter library between minitest and test/unit")
4372 "This library bridges the gap between the small and fast minitest and
4373 Ruby's large and slower test/unit.")
4374 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4375 (license license:expat)))
4377 (define-public ruby-term-ansicolor
4379 (name "ruby-term-ansicolor")
4383 (uri (rubygems-uri "term-ansicolor" version))
4386 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4387 (build-system ruby-build-system)
4388 ;; Rebuilding the gemspec seems to require git, even though this is not a
4389 ;; git repository, so we just build the gem from the existing gemspec.
4392 (modify-phases %standard-phases
4393 (add-after 'unpack 'fix-test
4395 (substitute* "tests/hsl_triple_test.rb"
4400 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4402 `(("ruby-tins" ,ruby-tins)))
4404 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4405 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4406 (synopsis "Ruby library to control the attributes of terminal output")
4408 "This Ruby library uses ANSI escape sequences to control the attributes
4409 of terminal output.")
4410 (home-page "https://flori.github.io/term-ansicolor/")
4411 ;; There is no mention of the "or later" clause.
4412 (license license:gpl2)))
4414 (define-public ruby-terraform
4416 (name "ruby-terraform")
4421 (uri (rubygems-uri "ruby-terraform" version))
4424 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4425 (build-system ruby-build-system)
4427 '(#:tests? #f)) ; No included tests
4429 `(("ruby-lino" ,ruby-lino)))
4430 (synopsis "Ruby wrapper around the Terraform command line interface")
4432 "This package provides a Ruby wrapper around the Terraform command line
4433 interface so that Terraform can be more easily invoked from Ruby code.")
4434 (home-page "https://github.com/infrablocks/ruby_terraform")
4435 (license license:expat)))
4437 (define-public ruby-pstree
4439 (name "ruby-pstree")
4443 (uri (rubygems-uri "pstree" version))
4446 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4447 (build-system ruby-build-system)
4449 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4450 ("bundler" ,bundler)))
4451 (synopsis "Create a process tree data structure")
4453 "This library uses the output of the @code{ps} command to create a
4454 process tree data structure for the current host.")
4455 (home-page "https://github.com/flori/pstree")
4456 ;; There is no mention of the "or later" clause.
4457 (license license:gpl2)))
4459 (define-public ruby-utils
4465 (uri (rubygems-uri "utils" version))
4468 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4469 (build-system ruby-build-system)
4471 `(("ruby-tins" ,ruby-tins)
4472 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4473 ("ruby-pstree" ,ruby-pstree)
4474 ("ruby-pry-editline" ,ruby-pry-editline)))
4476 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4477 ("bundler" ,bundler)))
4478 (synopsis "Command line tools for working with Ruby")
4480 "This package provides assorted command line tools that may be useful
4481 when working with Ruby code.")
4482 (home-page "https://github.com/flori/utils")
4483 ;; There is no mention of the "or later" clause.
4484 (license license:gpl2)))
4486 (define-public ruby-jaro-winkler
4488 (name "ruby-jaro-winkler")
4493 (uri (rubygems-uri "jaro_winkler" version))
4495 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
4496 (build-system ruby-build-system)
4498 '(#:tests? #f)) ; no included tests
4499 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4501 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4502 algorithm. It is written as a C extension and will fallback to a pure Ruby
4503 implementation on platforms where this is unsupported.")
4504 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4505 (license license:expat)))
4507 (define-public ruby-json
4514 (uri (rubygems-uri "json" version))
4517 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4518 (build-system ruby-build-system)
4519 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4520 (synopsis "JSON library for Ruby")
4521 (description "This Ruby library provides a JSON implementation written as
4522 a native C extension.")
4523 (home-page "http://json-jruby.rubyforge.org/")
4524 (license (list license:ruby license:gpl2)))) ; GPL2 only
4526 (define-public ruby-json-pure
4528 (name "ruby-json-pure")
4532 (uri (rubygems-uri "json_pure" version))
4535 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
4536 (build-system ruby-build-system)
4539 (modify-phases %standard-phases
4540 (add-after 'unpack 'fix-rakefile
4542 (substitute* "Rakefile"
4543 ;; Since this is not a git repository, do not call 'git'.
4544 (("`git ls-files`") "`find . -type f |sort`")
4545 ;; Loosen dependency constraint.
4546 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4548 (add-after 'replace-git-ls-files 'regenerate-gemspec
4550 ;; Regenerate gemspec so loosened dependency constraints are
4552 (invoke "rake" "gemspec")))
4553 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4555 ;; This gemspec doesn't look to be generated by the above
4556 ;; command, so patch it separately.
4557 (substitute* "json-java.gemspec"
4558 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4559 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4562 `(("bundler" ,bundler)
4564 ("ruby-simplecov" ,ruby-simplecov)
4565 ("ruby-test-unit" ,ruby-test-unit)))
4566 (synopsis "JSON implementation in pure Ruby")
4568 "This package provides a JSON implementation written in pure Ruby.")
4569 (home-page "https://flori.github.com/json/")
4570 (license license:ruby)))
4572 (define-public ruby-jwt
4579 (uri (rubygems-uri "jwt" version))
4582 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4583 (build-system ruby-build-system)
4585 '(#:test-target "test"
4587 (modify-phases %standard-phases
4588 (add-after 'unpack 'remove-unnecessary-dependencies
4590 (substitute* "spec/spec_helper.rb"
4591 (("require 'simplecov.*") "\n")
4592 ;; Use [].each to disable running the SimpleCov configuration
4594 (("SimpleCov\\.configure") "[].each")
4595 (("require 'codeclimate-test-reporter'") "")
4596 (("require 'codacy-coverage'") "")
4597 (("Codacy::Reporter\\.start") ""))
4600 `(("bundler" ,bundler)
4601 ("ruby-rspec" ,ruby-rspec)
4602 ("ruby-rbnacl" ,ruby-rbnacl)))
4603 (synopsis "Ruby implementation of the JSON Web Token standard")
4605 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4606 @acronym{JWT, JSON Web Token} standard.")
4607 (home-page "https://github.com/jwt/ruby-jwt")
4608 (license license:expat)))
4610 ;; Even though this package only provides bindings for a Mac OSX API it is
4611 ;; required by "ruby-listen" at runtime.
4612 (define-public ruby-rb-fsevent
4614 (name "ruby-rb-fsevent")
4618 (uri (rubygems-uri "rb-fsevent" version))
4621 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4622 (build-system ruby-build-system)
4623 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4624 ;; "listen", which needs "rb-fsevent" at runtime.
4625 (arguments `(#:tests? #f))
4626 (synopsis "FSEvents API with signals catching")
4628 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4629 (home-page "https://rubygems.org/gems/rb-fsevent")
4630 (license license:expat)))
4632 (define-public ruby-listen
4634 (name "ruby-listen")
4638 ;; The gem does not include a Rakefile, so fetch from the Git
4642 (url "https://github.com/guard/listen.git")
4643 (commit (string-append "v" version))))
4644 (file-name (git-file-name name version))
4647 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
4648 (build-system ruby-build-system)
4650 `(#:test-target "spec"
4652 (modify-phases %standard-phases
4653 (add-after 'unpack 'fix-files-in-gemspec
4655 (substitute* "listen.gemspec"
4656 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
4658 (add-before 'check 'remove-unnecessary-dependencies'
4660 (substitute* "Rakefile"
4661 ;; Rubocop is for code linting, and is unnecessary for running
4663 ((".*rubocop.*") ""))
4666 `(("bundler" ,bundler)
4667 ("ruby-rspec" ,ruby-rspec)))
4669 `(;; ruby-thor is used for the command line interface, and is referenced
4670 ;; in the wrapper, and therefore just needs to be an input.
4671 ("ruby-thor" ,ruby-thor)))
4673 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
4674 ("ruby-rb-inotify" ,ruby-rb-inotify)
4675 ("ruby-dep" ,ruby-dep)))
4676 (synopsis "Listen to file modifications")
4677 (description "The Listen gem listens to file modifications and notifies
4678 you about the changes.")
4679 (home-page "https://github.com/guard/listen")
4680 (license license:expat)))
4682 (define-public ruby-loofah
4684 (name "ruby-loofah")
4689 (uri (rubygems-uri "loofah" version))
4692 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4693 (build-system ruby-build-system)
4696 (modify-phases %standard-phases
4697 (add-after 'unpack 'remove-unnecessary-dependencies
4699 ;; concourse is a development tool which is unused, so remove it
4700 ;; so it's not required.
4701 (substitute* "Gemfile"
4702 ((".*\"concourse\".*") "\n"))
4703 (substitute* "Rakefile"
4704 (("require 'concourse'") "")
4705 (("Concourse\\.new.*") "\n"))
4708 `(("ruby-hoe" ,ruby-hoe)
4709 ("ruby-rr" ,ruby-rr)))
4711 `(("ruby-nokogiri" ,ruby-nokogiri)
4712 ("ruby-crass" ,ruby-crass)))
4713 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4715 "Loofah is a general library for manipulating and transforming HTML/XML
4716 documents and fragments. It's built on top of Nokogiri and libxml2.")
4717 (home-page "https://github.com/flavorjones/loofah")
4718 (license license:expat)))
4720 (define-public ruby-activesupport
4722 (name "ruby-activesupport")
4727 (uri (rubygems-uri "activesupport" version))
4730 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4731 (build-system ruby-build-system)
4734 (modify-phases %standard-phases
4737 ;; There are no tests, instead attempt to load the library.
4738 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4740 `(("ruby-concurrent" ,ruby-concurrent)
4741 ("ruby-i18n" ,ruby-i18n)
4742 ("ruby-minitest" ,ruby-minitest)
4743 ("ruby-tzinfo" ,ruby-tzinfo)
4744 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4745 (synopsis "Ruby on Rails utility library")
4746 (description "ActiveSupport is a toolkit of support libraries and Ruby
4747 core extensions extracted from the Rails framework. It includes support for
4748 multibyte strings, internationalization, time zones, and testing.")
4749 (home-page "http://www.rubyonrails.org")
4750 (license license:expat)))
4752 (define-public ruby-crass
4758 (uri (rubygems-uri "crass" version))
4761 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4762 (build-system ruby-build-system)
4764 `(("bundler" ,bundler)
4765 ("ruby-minitest" ,ruby-minitest)))
4766 (synopsis "Pure Ruby CSS parser")
4768 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4769 (home-page "https://github.com/rgrove/crass/")
4770 (license license:expat)))
4772 (define-public ruby-nokogumbo
4773 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4775 (name "ruby-nokogumbo")
4776 (version (string-append "1.4.7-1." (string-take commit 8)))
4778 ;; We use the git reference, because there's no Rakefile in the
4779 ;; published gem and the tarball on Github is outdated.
4782 (url "https://github.com/rubys/nokogumbo.git")
4783 (commit "d56f954d20a")))
4784 (file-name (string-append name "-" version "-checkout"))
4787 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4788 (build-system ruby-build-system)
4790 `(#:modules ((guix build ruby-build-system)
4794 (modify-phases %standard-phases
4795 (add-after 'unpack 'build-gemspec
4797 (substitute* "Rakefile"
4798 ;; Build Makefile even without a copy of gumbo-parser sources
4799 (("'gumbo-parser/src',") "")
4800 ;; We don't bundle gumbo-parser sources
4801 (("'gumbo-parser/src/\\*',") "")
4802 (("'gumbo-parser/visualc/include/\\*',") "")
4803 ;; The definition of SOURCES will be cut in gemspec, and
4804 ;; "FileList" will be undefined.
4805 (("SOURCES \\+ FileList\\[")
4806 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4808 ;; Copy the Rakefile and cut out the gemspec.
4809 (copy-file "Rakefile" ".gemspec")
4810 (with-atomic-file-replacement ".gemspec"
4812 (let loop ((line (read-line in 'concat))
4814 (if (eof-object? line)
4816 (let ((skip-next? (if skipping?
4817 (not (string-prefix? "SPEC =" line))
4818 (string-prefix? "end" line))))
4819 (when (or (not skipping?)
4820 (and skipping? (not skip-next?)))
4821 (format #t "~a" line)
4823 (loop (read-line in 'concat) skip-next?))))))
4826 `(("gumbo-parser" ,gumbo-parser)))
4828 `(("ruby-nokogiri" ,ruby-nokogiri)))
4829 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4831 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4832 access the result as a Nokogiri parsed document.")
4833 (home-page "https://github.com/rubys/nokogumbo/")
4834 (license license:asl2.0))))
4836 (define-public ruby-sanitize
4838 (name "ruby-sanitize")
4842 ;; The gem does not include the Rakefile, so we download the
4843 ;; release tarball from Github.
4844 (uri (string-append "https://github.com/rgrove/"
4845 "sanitize/archive/v" version ".tar.gz"))
4846 (file-name (string-append name "-" version ".tar.gz"))
4849 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4850 (build-system ruby-build-system)
4852 `(("ruby-crass" ,ruby-crass)
4853 ("ruby-nokogiri" ,ruby-nokogiri)
4854 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4856 `(("bundler" ,bundler)
4857 ("ruby-minitest" ,ruby-minitest)
4858 ("ruby-redcarpet" ,ruby-redcarpet)
4859 ("ruby-yard" ,ruby-yard)))
4860 (synopsis "Whitelist-based HTML and CSS sanitizer")
4862 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4863 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4864 unacceptable HTML and/or CSS from a string.")
4865 (home-page "https://github.com/rgrove/sanitize/")
4866 (license license:expat)))
4868 (define-public ruby-oj
4875 ;; Version on rubygems.org does not contain Rakefile, so download from
4878 (url "https://github.com/ohler55/oj")
4879 (commit (string-append "v" version))))
4880 (file-name (git-file-name name version))
4883 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
4884 (build-system ruby-build-system)
4886 '(#:test-target "test_all"
4888 (modify-phases %standard-phases
4889 (add-before 'check 'disable-bundler
4891 (substitute* "Rakefile"
4892 (("Bundler\\.with_clean_env") "1.times")
4893 (("bundle exec ") "")))))))
4895 `(("bundler" ,bundler)
4896 ("ruby-rspec" ,ruby-rspec)
4897 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4898 (synopsis "JSON parser for Ruby optimized for speed")
4900 "Oj is a JSON parser and generator for Ruby, where the encoding and
4901 decoding of JSON is implemented as a C extension to Ruby.")
4902 (home-page "http://www.ohler.com/oj/")
4903 (license (list license:expat ; Ruby code
4904 license:bsd-3)))) ; extension code
4906 (define-public ruby-ox
4913 (uri (rubygems-uri "ox" version))
4916 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4917 (build-system ruby-build-system)
4919 '(#:tests? #f)) ; no tests
4920 (synopsis "Optimized XML library for Ruby")
4922 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4923 written as a native C extension. It was designed to be an alternative to
4924 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4925 alternative to Marshal for Object serialization. ")
4926 (home-page "http://www.ohler.com/ox")
4927 (license license:expat)))
4929 (define-public ruby-redcloth
4931 (name "ruby-redcloth")
4935 (uri (rubygems-uri "RedCloth" version))
4938 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4939 (build-system ruby-build-system)
4941 `(#:tests? #f ; no tests
4943 (modify-phases %standard-phases
4944 ;; Redcloth has complicated rake tasks to build various versions for
4945 ;; multiple targets using RVM. We don't want this so we just use the
4946 ;; existing gemspec.
4949 (invoke "gem" "build" "redcloth.gemspec"))))))
4951 `(("bundler" ,bundler)
4952 ("ruby-diff-lcs" ,ruby-diff-lcs)
4953 ("ruby-rspec-2" ,ruby-rspec-2)))
4954 (synopsis "Textile markup language parser for Ruby")
4956 "RedCloth is a Ruby parser for the Textile markup language.")
4957 (home-page "http://redcloth.org")
4958 (license license:expat)))
4960 (define-public ruby-pg
4967 (uri (rubygems-uri "pg" version))
4970 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
4971 (build-system ruby-build-system)
4973 '(#:test-target "spec"))
4975 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4976 ("ruby-hoe" ,ruby-hoe)
4977 ("ruby-rspec" ,ruby-rspec)))
4979 `(("postgresql" ,postgresql)))
4980 (synopsis "Ruby interface to PostgreSQL")
4981 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4982 with PostgreSQL 9.0 and later.")
4983 (home-page "https://bitbucket.org/ged/ruby-pg")
4984 (license license:ruby)))
4986 (define-public ruby-byebug
4988 (name "ruby-byebug")
4993 (uri (rubygems-uri "byebug" version))
4996 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4997 (build-system ruby-build-system)
4999 '(#:tests? #f)) ; no tests
5000 (synopsis "Debugger for Ruby 2")
5001 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
5002 TracePoint C API for execution control and the Debug Inspector C API for call
5003 stack navigation. The core component provides support that front-ends can
5004 build on. It provides breakpoint handling and bindings for stack frames among
5005 other things and it comes with a command line interface.")
5006 (home-page "https://github.com/deivid-rodriguez/byebug")
5007 (license license:bsd-2)))
5009 (define-public ruby-netrc
5015 (uri (rubygems-uri "netrc" version))
5018 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
5019 (build-system ruby-build-system)
5022 (modify-phases %standard-phases
5024 ;; There is no Rakefile and minitest can only run one file at once,
5025 ;; so we have to iterate over all test files.
5028 (invoke "ruby" "-Itest" file))
5029 (find-files "./test" "test_.*\\.rb")))))))
5031 `(("ruby-minitest" ,ruby-minitest)))
5032 (synopsis "Library to read and update netrc files")
5034 "This library can read and update netrc files, preserving formatting
5035 including comments and whitespace.")
5036 (home-page "https://github.com/geemus/netrc")
5037 (license license:expat)))
5039 (define-public ruby-unf-ext
5041 (name "ruby-unf-ext")
5045 (uri (rubygems-uri "unf_ext" version))
5048 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
5049 (build-system ruby-build-system)
5052 (modify-phases %standard-phases
5053 (add-after 'build 'build-ext
5054 (lambda _ (invoke "rake" "compile:unf_ext")))
5055 (add-before 'check 'lose-rake-compiler-dock-dependency
5057 ;; rake-compiler-dock is listed in the gemspec, but only
5058 ;; required when cross-compiling.
5059 (substitute* "unf_ext.gemspec"
5060 ((".*rake-compiler-dock.*") ""))
5063 `(("bundler" ,bundler)
5064 ("ruby-rake-compiler" ,ruby-rake-compiler)
5065 ("ruby-test-unit" ,ruby-test-unit)))
5066 (synopsis "Unicode normalization form support library")
5068 "This package provides unicode normalization form support for Ruby.")
5069 (home-page "https://github.com/knu/ruby-unf_ext")
5070 (license license:expat)))
5072 (define-public ruby-tdiff
5073 ;; Use a newer than released snapshot so that rspec-2 is not required.
5074 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5077 (version (string-append "0.3.3-1." (string-take commit 8)))
5081 (url "https://github.com/postmodern/tdiff.git")
5083 (file-name (string-append name "-" version "-checkout"))
5086 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5087 (build-system ruby-build-system)
5089 `(("ruby-rspec" ,ruby-rspec)
5090 ("ruby-yard" ,ruby-yard)
5091 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5092 (synopsis "Calculate the differences between two tree-like structures")
5094 "This library provides functions to calculate the differences between two
5095 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5096 (home-page "https://github.com/postmodern/tdiff")
5097 (license license:expat))))
5099 (define-public ruby-nokogiri-diff
5100 ;; Use a newer than released snapshot so that rspec-2 is not required.
5101 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5103 (name "ruby-nokogiri-diff")
5104 (version (string-append "0.2.0-1." (string-take commit 8)))
5108 (url "https://github.com/postmodern/nokogiri-diff.git")
5110 (file-name (string-append name "-" version "-checkout"))
5113 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5114 (build-system ruby-build-system)
5116 `(("ruby-tdiff" ,ruby-tdiff)
5117 ("ruby-nokogiri" ,ruby-nokogiri)))
5119 `(("ruby-rspec" ,ruby-rspec)
5120 ("ruby-yard" ,ruby-yard)
5121 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5122 (synopsis "Calculate the differences between two XML/HTML documents")
5124 "@code{Nokogiri::Diff} adds the ability to calculate the
5125 differences (added or removed nodes) between two XML/HTML documents.")
5126 (home-page "https://github.com/postmodern/nokogiri-diff")
5127 (license license:expat))))
5129 (define-public ruby-racc
5136 (uri (rubygems-uri "racc" version))
5139 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5140 (build-system ruby-build-system)
5142 `(("ruby-hoe" ,ruby-hoe)
5143 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5144 (synopsis "LALR(1) parser generator for Ruby")
5146 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5147 generates Ruby program.")
5148 (home-page "http://i.loveruby.net/en/projects/racc/")
5150 ;; Generally licensed under the LGPL2.1, and some files also
5151 ;; available under the same license as Ruby.
5155 (define-public ruby-rack
5162 ;; Download from GitHub so that the patch can be applied.
5164 (url "https://github.com/rack/rack")
5166 (file-name (git-file-name name version))
5169 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5170 ;; Ignore test which fails inside the build environment but works
5172 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5173 (build-system ruby-build-system)
5176 (modify-phases %standard-phases
5177 (add-before 'check 'fix-tests
5179 ;; A few of the tests use the length of a file on disk for
5180 ;; Content-Length and Content-Range headers. However, this file
5181 ;; has a shebang in it which an earlier phase patches, growing
5182 ;; the file size from 193 to 239 bytes when the store prefix is
5184 (let ((size-diff (- (string-length (which "ruby"))
5185 (string-length "/usr/bin/env ruby"))))
5186 (substitute* '("test/spec_file.rb")
5188 (number->string (+ 193 size-diff)))
5189 (("bytes(.)22-33" all delimiter)
5190 (string-append "bytes"
5192 (number->string (+ 22 size-diff))
5194 (number->string (+ 33 size-diff))))))
5196 (add-before 'reset-gzip-timestamps 'make-files-writable
5197 (lambda* (#:key outputs #:allow-other-keys)
5198 ;; Make sure .gz files are writable so that the
5199 ;; 'reset-gzip-timestamps' phase can do its work.
5200 (let ((out (assoc-ref outputs "out")))
5201 (for-each make-file-writable
5202 (find-files out "\\.gz$"))
5205 `(("ruby-minitest" ,ruby-minitest)
5206 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5209 `(("ruby-concurrent" ,ruby-concurrent)))
5210 (synopsis "Unified web application interface for Ruby")
5211 (description "Rack provides a minimal, modular and adaptable interface for
5212 developing web applications in Ruby. By wrapping HTTP requests and responses,
5213 it unifies the API for web servers, web frameworks, and software in between
5214 into a single method call.")
5215 (home-page "https://rack.github.io/")
5216 (license license:expat)))
5218 (define-public ruby-rack-test
5220 (name "ruby-rack-test")
5225 (uri (rubygems-uri "rack-test" version))
5228 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5229 (build-system ruby-build-system)
5231 ;; Disable tests because of circular dependencies: requires sinatra,
5232 ;; which requires rack-protection, which requires rack-test. Instead
5233 ;; simply require the library.
5235 (modify-phases %standard-phases
5238 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5240 `(("ruby-rack" ,ruby-rack)))
5241 (synopsis "Testing API for Rack applications")
5243 "Rack::Test is a small, simple testing API for Rack applications. It can
5244 be used on its own or as a reusable starting point for Web frameworks and
5245 testing libraries to build on.")
5246 (home-page "https://github.com/rack-test/rack-test")
5247 (license license:expat)))
5249 (define-public ruby-rack-protection
5251 (name "ruby-rack-protection")
5256 (uri (rubygems-uri "rack-protection" version))
5259 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5260 (build-system ruby-build-system)
5262 '(;; Tests missing from the gem.
5265 `(("ruby-rack" ,ruby-rack)))
5267 `(("bundler" ,bundler)
5268 ("ruby-rspec" ,ruby-rspec-2)
5269 ("ruby-rack-test" ,ruby-rack-test)))
5270 (synopsis "Rack middleware that protects against typical web attacks")
5271 (description "Rack middleware that can be used to protect against typical
5272 web attacks. It can protect all Rack apps, including Rails. For instance, it
5273 protects against cross site request forgery, cross site scripting,
5274 clickjacking, directory traversal, session hijacking and IP spoofing.")
5275 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5276 (license license:expat)))
5278 (define-public ruby-rainbow
5280 (name "ruby-rainbow")
5285 (uri (rubygems-uri "rainbow" version))
5288 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5289 (build-system ruby-build-system)
5292 (modify-phases %standard-phases
5293 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5296 (lambda* (#:key tests? #:allow-other-keys)
5301 `(("bundler" ,bundler)
5302 ("ruby-rspec" ,ruby-rspec)))
5303 (synopsis "Colorize printed text on ANSI terminals")
5305 "@code{rainbow} provides a string presenter object to colorize strings by
5306 wrapping them in ANSI escape codes.")
5307 (home-page "https://github.com/sickill/rainbow")
5308 (license license:expat)))
5310 (define-public ruby-rr
5317 (uri (rubygems-uri "rr" version))
5320 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5321 (build-system ruby-build-system)
5323 '(#:tests? #f)) ; test files not included
5325 `(("bundler" ,bundler)
5326 ("ruby-rspec" ,ruby-rspec)))
5327 (synopsis "Ruby test double framework")
5329 "RR is a test double framework that features a rich selection of double
5330 techniques and a terse syntax.")
5331 (home-page "https://rr.github.io/rr/")
5332 (license license:expat)))
5334 (define-public ruby-rest-client
5336 (name "ruby-rest-client")
5341 (uri (rubygems-uri "rest-client" version))
5344 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5345 (build-system ruby-build-system)
5348 (modify-phases %standard-phases
5349 (add-before 'check 'remove-unnecessary-development-dependencies
5351 (substitute* "rest-client.gemspec"
5352 ;; Remove rubocop as it's unused. Rubocop also indirectly
5353 ;; depends on this package through ruby-parser and ruby-ast so
5354 ;; this avoids a dependency loop.
5355 ((".*rubocop.*") "\n")
5356 ;; Remove pry as it's unused, it's a debugging tool
5358 ;; Remove an unnecessarily strict rdoc dependency
5359 ((".*rdoc.*") "\n"))
5361 (add-before 'check 'delete-network-dependent-tests
5363 (delete-file "spec/integration/request_spec.rb")
5364 (delete-file "spec/integration/httpbin_spec.rb")
5367 `(("ruby-http-cookie" ,ruby-http-cookie)
5368 ("ruby-mime-types" ,ruby-mime-types)
5369 ("ruby-netrc" ,ruby-netrc)))
5371 `(("bundler" ,bundler)
5372 ("ruby-webmock" ,ruby-webmock-2)
5373 ("ruby-rspec" ,ruby-rspec)))
5374 (synopsis "Simple HTTP and REST client for Ruby")
5376 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5377 inspired by the Sinatra microframework style of specifying actions:
5378 @code{get}, @code{put}, @code{post}, @code{delete}.")
5379 (home-page "https://github.com/rest-client/rest-client")
5380 (license license:expat)))
5382 (define-public ruby-rubocop
5384 (name "ruby-rubocop")
5389 (uri (rubygems-uri "rubocop" version))
5392 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
5393 (build-system ruby-build-system)
5395 '(;; No included tests
5398 `(("ruby-parser" ,ruby-parser)
5399 ("ruby-powerpack" ,ruby-powerpack)
5400 ("ruby-rainbow" ,ruby-rainbow)
5401 ("ruby-progressbar" ,ruby-progressbar)
5402 ("ruby-parallel" ,ruby-parallel)
5403 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5404 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5405 (synopsis "Ruby code style checking tool")
5407 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5408 the community-driven Ruby Style Guide.")
5409 (home-page "https://github.com/rubocop-hq/rubocop")
5410 (license license:expat)))
5412 (define-public ruby-contest
5414 (name "ruby-contest")
5419 (uri (rubygems-uri "contest" version))
5422 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5423 (build-system ruby-build-system)
5424 (synopsis "Write declarative tests using nested contexts")
5426 "Contest allows writing declarative @code{Test::Unit} tests using nested
5427 contexts without performance penalties.")
5428 (home-page "https://github.com/citrusbyte/contest")
5429 (license license:expat)))
5431 (define-public ruby-creole
5433 (name "ruby-creole")
5438 (uri (rubygems-uri "creole" version))
5441 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5442 (build-system ruby-build-system)
5444 `(("ruby-bacon" ,ruby-bacon)))
5445 (synopsis "Creole markup language converter")
5447 "Creole is a lightweight markup language and this library for converting
5448 creole to @code{HTML}.")
5449 (home-page "https://github.com/minad/creole")
5450 (license license:ruby)))
5452 (define-public ruby-docile
5454 (name "ruby-docile")
5459 (uri (rubygems-uri "docile" version))
5462 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5463 (build-system ruby-build-system)
5465 '(#:tests? #f)) ; needs github-markup, among others
5466 (synopsis "Ruby EDSL helper library")
5467 (description "Docile is a Ruby library that provides an interface for
5468 creating embedded domain specific languages (EDSLs) that manipulate existing
5470 (home-page "https://ms-ati.github.io/docile/")
5471 (license license:expat)))
5473 (define-public ruby-gherkin
5475 (name "ruby-gherkin")
5480 (uri (rubygems-uri "gherkin" version))
5483 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5484 (build-system ruby-build-system)
5486 `(("bundler" ,bundler)))
5488 '(#:tests? #f)) ; needs simplecov, among others
5489 (synopsis "Gherkin parser for Ruby")
5490 (description "Gherkin is a parser and compiler for the Gherkin language.
5491 It is intended be used by all Cucumber implementations to parse
5492 @file{.feature} files.")
5493 (home-page "https://github.com/cucumber-attic/gherkin")
5494 (license license:expat)))
5496 (define-public ruby-aruba
5503 (uri (rubygems-uri "aruba" version))
5506 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
5507 (build-system ruby-build-system)
5509 '(#:test-target "spec"
5511 (modify-phases %standard-phases
5512 (add-after 'unpack 'patch
5514 (substitute* "spec/aruba/api_spec.rb"
5515 ;; This resolves some errors in the specs
5517 ;; undefined method `parse' for Time:Class
5518 (("require 'spec_helper'")
5519 "require 'spec_helper'\nrequire 'time'"))
5520 ;; Avoid shebang issues in this spec file
5521 (substitute* "spec/aruba/matchers/command_spec.rb"
5522 (("/usr/bin/env bash")
5525 (add-before 'check 'remove-unnecessary-dependencies
5527 (substitute* "Gemfile"
5528 ((".*byebug.*") "\n")
5532 ((".*kramdown.*") "\n")
5533 ((".*rubocop.*") "\n")
5534 ((".*cucumber-pro.*") "\n")
5535 ((".*cucumber.*") "\n")
5536 ((".*license_finder.*") "\n")
5537 ((".*rake.*") "gem 'rake'\n")
5538 ((".*relish.*") "\n"))
5539 (substitute* "aruba.gemspec"
5540 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5541 "spec.add_runtime_dependency 'cucumber'"))
5543 (add-before 'check 'set-home
5544 (lambda _ (setenv "HOME" "/tmp") #t)))))
5546 `(("bundler" ,bundler)
5547 ("ruby-rspec" ,ruby-rspec)
5548 ("ruby-fuubar" ,ruby-fuubar)
5549 ("ruby-simplecov" ,ruby-simplecov)))
5551 `(("ruby-childprocess" ,ruby-childprocess)
5552 ("ruby-contracts" ,ruby-contracts)
5553 ("ruby-cucumber" ,ruby-cucumber)
5554 ("ruby-ffi" ,ruby-ffi)
5555 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5556 ("ruby-thor" ,ruby-thor)
5557 ("ruby-yard" ,ruby-yard)))
5558 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5560 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5561 command-line applications. It supports applications written in any
5563 (home-page "https://github.com/cucumber/aruba")
5564 (license license:expat)))
5566 ;; A version of ruby-aruba without tests run so that circular dependencies can
5568 (define ruby-aruba-without-tests
5570 (inherit ruby-aruba)
5571 (arguments '(#:tests? #f))
5573 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5574 ,@(alist-delete "ruby-cucumber"
5575 (package-propagated-inputs ruby-aruba))))
5576 (native-inputs '())))
5578 (define-public ruby-cucumber
5580 (name "ruby-cucumber")
5586 (url "https://github.com/cucumber/cucumber-ruby.git")
5587 (commit (string-append "v" version))))
5588 (file-name (git-file-name name version))
5591 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5592 (build-system ruby-build-system)
5594 '(#:test-target "spec"
5596 (modify-phases %standard-phases
5597 ;; Don't run or require rubocop, the code linting tool, as this is a
5599 (add-after 'unpack 'dont-run-rubocop
5601 (substitute* "Rakefile"
5602 ((".*rubocop/rake\\_task.*") "")
5603 ((".*RuboCop.*") ""))
5606 `(("ruby-builder" ,ruby-builder)
5607 ("ruby-cucumber-core" ,ruby-cucumber-core)
5608 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5609 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5610 ("ruby-diff-lcs" ,ruby-diff-lcs)
5611 ("ruby-gherkin" ,ruby-gherkin)
5612 ("ruby-multi-json" ,ruby-multi-json)
5613 ("ruby-multi-test" ,ruby-multi-test)))
5615 `(("bundler" ,bundler)
5616 ;; Use a untested version of aruba, to avoid a circular dependency, as
5617 ;; ruby-aruba depends on ruby-cucumber.
5618 ("ruby-aruba", ruby-aruba-without-tests)
5619 ("ruby-rspec" ,ruby-rspec)
5620 ("ruby-pry" ,ruby-pry)
5621 ("ruby-nokogiri" ,ruby-nokogiri)))
5622 (synopsis "Describe automated tests in plain language")
5624 "Cucumber is a tool for running automated tests written in plain
5625 language. It's designed to support a Behaviour Driven Development (BDD)
5626 software development workflow.")
5627 (home-page "https://cucumber.io/")
5628 (license license:expat)))
5630 (define ruby-cucumber-without-tests
5631 (package (inherit ruby-cucumber)
5637 (define-public ruby-cucumber-core
5639 (name "ruby-cucumber-core")
5640 ;; Stick to major version 3, until version 4 of Cucumber is released.
5645 (uri (rubygems-uri "cucumber-core" version))
5648 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5649 (build-system ruby-build-system)
5651 `(("ruby-backports" ,ruby-backports)
5652 ("ruby-gherkin" ,ruby-gherkin)
5653 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5655 `(("bundler" ,bundler)))
5657 '(#:tests? #f)) ; needs simplecov, among others
5658 (synopsis "Core library for the Cucumber BDD app")
5659 (description "Cucumber is a tool for running automated tests
5660 written in plain language. Because they're written in plain language,
5661 they can be read by anyone on your team. Because they can be read by
5662 anyone, you can use them to help improve communication, collaboration
5663 and trust on your team.")
5664 (home-page "https://cucumber.io/")
5665 (license license:expat)))
5667 (define-public ruby-cucumber-expressions
5669 (name "ruby-cucumber-expressions")
5674 (uri (rubygems-uri "cucumber-expressions" version))
5677 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5678 (build-system ruby-build-system)
5680 '(#:test-target "spec"))
5682 `(("bundler" ,bundler)
5683 ("ruby-rspec" ,ruby-rspec)
5684 ("ruby-simplecov" ,ruby-simplecov)))
5685 (synopsis "Simpler alternative to Regular Expressions")
5686 (description "Cucumber Expressions offer similar functionality to Regular
5687 Expressions, with a syntax that is easier to read and write. Cucumber
5688 Expressions are extensible with parameter types.")
5689 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5690 (license license:expat)))
5692 (define-public ruby-cucumber-wire
5694 (name "ruby-cucumber-wire")
5695 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5696 ;; 3, and Cucumber 4 hasn't been released yet.
5701 (uri (rubygems-uri "cucumber-wire" version))
5704 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5705 (build-system ruby-build-system)
5707 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5708 ;; which would lead to a circular dependency.
5710 #:test-target "default"
5712 (modify-phases %standard-phases
5713 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5715 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5718 `(("bundler" ,bundler)
5719 ("ruby-rspec" ,ruby-rspec)))
5720 (synopsis "Cucumber wire protocol plugin")
5722 "Cucumber's wire protocol allows step definitions to be implemented and
5723 invoked on any platform.")
5724 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5725 (license license:expat)))
5727 (define-public ruby-cucumber-tag-expressions
5729 (name "ruby-cucumber-tag-expressions")
5734 (uri (rubygems-uri "cucumber-tag_expressions" version))
5737 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5738 (build-system ruby-build-system)
5741 (modify-phases %standard-phases
5747 `(("ruby-rspec" ,ruby-rspec)))
5748 (synopsis "Cucumber tag expressions for Ruby")
5750 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5751 boolean expression used by Cucumber.")
5752 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5753 (license license:expat)))
5755 (define-public ruby-bindex
5757 (name "ruby-bindex")
5762 (uri (rubygems-uri "bindex" version))
5765 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
5766 (build-system ruby-build-system)
5768 '(#:test-target "default"))
5770 `(("bundler" ,bundler)
5771 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5772 (synopsis "Provides access for bindings relating to Ruby exceptions")
5774 "@code{bindex} provides a way to access the bindings that relate to
5775 exceptions in Ruby, providing more information about the context in which the
5776 exception occurred.")
5777 (home-page "https://github.com/gsamokovarov/bindex")
5778 (license license:expat)))
5780 (define-public ruby-bio-logger
5782 (name "ruby-bio-logger")
5787 (uri (rubygems-uri "bio-logger" version))
5790 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5791 (build-system ruby-build-system)
5793 `(#:tests? #f)) ; rake errors, missing shoulda
5795 `(("ruby-log4r" ,ruby-log4r)))
5796 (synopsis "Log4r wrapper for Ruby")
5797 (description "Bio-logger is a wrapper around Log4r adding extra logging
5798 features such as filtering and fine grained logging.")
5799 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5800 (license license:expat)))
5802 (define-public ruby-yajl-ruby
5804 (name "ruby-yajl-ruby")
5809 (uri (rubygems-uri "yajl-ruby" version))
5812 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5813 (build-system ruby-build-system)
5815 '(#:test-target "spec"
5817 (modify-phases %standard-phases
5818 (add-before 'check 'patch-test-to-update-load-path
5820 (substitute* "spec/parsing/large_number_spec.rb"
5821 (("require \"yajl\"")
5822 "$LOAD_PATH << 'lib'; require 'yajl'"))
5825 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5826 ("ruby-rspec" ,ruby-rspec)))
5827 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5829 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5830 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5833 A modified copy of yajl is used, and included in the package.")
5834 (home-page "https://github.com/brianmario/yajl-ruby")
5835 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5836 license:bsd-3)))) ; Included, modified copy of yajl
5838 (define-public ruby-yard
5845 ;; Tests do not pass if we build from the distributed gem.
5847 (url "https://github.com/lsegal/yard")
5848 (commit (string-append "v" version))))
5849 (file-name (git-file-name name version))
5852 "1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
5853 (build-system ruby-build-system)
5856 (modify-phases %standard-phases
5859 ;; Delete the Gemfile to avoid errors relating to it
5860 (delete-file "Gemfile")
5861 ;; $HOME needs to be set to somewhere writeable for tests to run
5862 (setenv "HOME" "/tmp")
5863 ;; Run tests without using 'rake' to avoid dependencies.
5864 (invoke "rspec"))))))
5866 `(("ruby-rspec" ,ruby-rspec)
5867 ("ruby-rack" ,ruby-rack)
5868 ("ruby-redcloth" ,ruby-redcloth)
5869 ("ruby-asciidoc" ,ruby-asciidoctor)))
5870 (synopsis "Documentation generation tool for Ruby")
5872 "YARD is a documentation generation tool for the Ruby programming
5873 language. It enables the user to generate consistent, usable documentation
5874 that can be exported to a number of formats very easily, and also supports
5875 extending for custom Ruby constructs such as custom class level definitions.")
5876 (home-page "https://yardoc.org")
5877 (license license:expat)))
5879 (define-public ruby-clap
5885 (uri (rubygems-uri "clap" version))
5888 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5889 (build-system ruby-build-system)
5890 ;; Clap needs cutest for running tests, but cutest needs clap.
5891 (arguments `(#:tests? #f))
5892 (synopsis "Command line argument parsing for simple applications")
5894 "Clap provides command line argument parsing features. It covers the
5895 simple case of executing code based on the flags or parameters passed.")
5896 (home-page "https://github.com/djanowski/cutest")
5897 (license license:expat)))
5899 (define-public ruby-cutest
5901 (name "ruby-cutest")
5905 (uri (rubygems-uri "cutest" version))
5908 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5909 (build-system ruby-build-system)
5911 `(("ruby-clap" ,ruby-clap)))
5912 (synopsis "Run tests in separate processes")
5914 "Cutest runs tests in separate processes to avoid shared state.")
5915 (home-page "https://github.com/djanowski/cutest")
5916 (license license:expat)))
5918 (define-public ruby-pygmentize
5920 (name "ruby-pygmentize")
5924 (uri (rubygems-uri "pygmentize" version))
5927 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5928 (build-system ruby-build-system)
5931 (modify-phases %standard-phases
5932 (add-after 'unpack 'fix-pygmentize-path
5934 (substitute* "lib/pygmentize.rb"
5935 (("\"/usr/bin/env python.*")
5936 (string-append "\"" (which "pygmentize") "\"\n")))
5938 (add-after 'build 'do-not-use-vendor-directory
5940 ;; Remove bundled pygments sources
5941 ;; FIXME: ruby-build-system does not support snippets.
5942 (delete-file-recursively "vendor")
5943 (substitute* "pygmentize.gemspec"
5944 (("\"vendor/\\*\\*/\\*\",") ""))
5947 `(("pygments" ,python-pygments)))
5949 `(("ruby-cutest" ,ruby-cutest)
5950 ("ruby-nokogiri" ,ruby-nokogiri)))
5951 (synopsis "Thin Ruby wrapper around pygmentize")
5953 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5955 (home-page "https://github.com/djanowski/pygmentize")
5956 (license license:expat)))
5958 (define-public ruby-eventmachine
5960 (name "ruby-eventmachine")
5965 (uri (rubygems-uri "eventmachine" version))
5968 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5969 (build-system ruby-build-system)
5971 '(#:tests? #f)) ; test suite tries to connect to google.com
5973 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5974 (synopsis "Single-threaded network event framework for Ruby")
5976 "EventMachine implements a single-threaded engine for arbitrary network
5977 communications. EventMachine wraps all interactions with sockets, allowing
5978 programs to concentrate on the implementation of network protocols. It can be
5979 used to create both network servers and clients.")
5980 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5981 (home-page "https://github.com/eventmachine/eventmachine")
5982 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5984 (define-public ruby-ruby-engine
5986 (name "ruby-ruby-engine")
5991 (uri (rubygems-uri "ruby_engine" version))
5994 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5995 (build-system ruby-build-system)
5998 (modify-phases %standard-phases
5999 (add-before 'check 'clean-up
6001 (delete-file "Gemfile.lock")
6002 (substitute* "ruby_engine.gemspec"
6003 ;; Remove unnecessary imports that would entail further
6006 ((".*<rubygems-tasks.*") "")
6007 ;; Remove extraneous .gem file
6008 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
6009 ;; Soften rake dependency
6010 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
6011 "%q<rake>.freeze, [\">= 10.0\"]")
6012 ;; Soften the rspec dependency
6013 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
6014 "%q<rspec>.freeze, [\">= 2.4\"]"))
6015 (substitute* "Rakefile"
6016 (("require 'rubygems/tasks'") "")
6017 (("Gem::Tasks.new") ""))
6018 ;; Remove extraneous .gem file that otherwise gets installed.
6019 (delete-file "pkg/ruby_engine-1.0.0.gem")
6022 `(("bundler" ,bundler)
6023 ("ruby-rake" ,ruby-rake)
6024 ("ruby-rspec" ,ruby-rspec)))
6025 (synopsis "Simplifies checking for Ruby implementation")
6027 "@code{ruby_engine} provides an RubyEngine class that can be used to
6028 check which implementation of Ruby is in use. It can provide the interpreter
6029 name and provides query methods such as @{RubyEngine.mri?}.")
6030 (home-page "https://github.com/janlelis/ruby_engine")
6031 (license license:expat)))
6033 (define-public ruby-turn
6040 (uri (rubygems-uri "turn" version))
6043 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
6044 (build-system ruby-build-system)
6047 (modify-phases %standard-phases
6048 ;; Tests fail because turn changes its environment so can no longer
6049 ;; find test/unit. Instead simply test if the executable runs
6053 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
6055 `(("ruby-ansi" ,ruby-ansi)
6056 ("ruby-minitest" ,ruby-minitest-4)))
6057 (synopsis "Alternate set of alternative runners for MiniTest")
6059 "TURN provides a set of alternative runners for MiniTest which are both
6060 colorful and informative. TURN displays each test on a separate line with
6061 failures being displayed immediately instead of at the end of the tests. Note
6062 that TURN is no longer being maintained.")
6063 (home-page "https://rubygems.org/gems/turn")
6064 (license license:expat)))
6066 (define-public ruby-mimemagic
6068 (name "ruby-mimemagic")
6073 (uri (rubygems-uri "mimemagic" version))
6075 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
6076 (build-system ruby-build-system)
6079 (modify-phases %standard-phases
6080 ;; This phase breaks the tests, as it patches some of the test data.
6081 (delete 'patch-source-shebangs))))
6083 `(("ruby-bacon" ,ruby-bacon)))
6084 (synopsis "Ruby library for MIME detection by extension or content")
6086 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
6087 extension or content, using the freedesktop.org.xml shared-mime-info
6089 (home-page "https://github.com/minad/mimemagic")
6090 (license license:expat)))
6092 (define-public ruby-mime-types-data
6094 (name "ruby-mime-types-data")
6095 (version "3.2016.0521")
6099 (uri (rubygems-uri "mime-types-data" version))
6102 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
6103 (build-system ruby-build-system)
6105 `(("ruby-hoe" ,ruby-hoe)))
6106 (synopsis "Registry for information about MIME media type definitions")
6108 "@code{mime-types-data} provides a registry for information about
6109 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6110 be used with the Ruby mime-types library or other software to determine
6111 defined filename extensions for MIME types, or to use filename extensions to
6112 look up the likely MIME type definitions.")
6113 (home-page "https://github.com/mime-types/mime-types-data/")
6114 (license license:expat)))
6116 (define-public ruby-mime-types
6118 (name "ruby-mime-types")
6123 (uri (rubygems-uri "mime-types" version))
6126 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
6127 (build-system ruby-build-system)
6129 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6131 `(("ruby-hoe" ,ruby-hoe)
6132 ("ruby-fivemat" ,ruby-fivemat)
6133 ("ruby-minitest-focus" ,ruby-minitest-focus)
6134 ("ruby-minitest-rg" ,ruby-minitest-rg)
6135 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6136 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
6137 (synopsis "Library and registry for MIME content type definitions")
6138 (description "The mime-types library provides a library and registry for
6139 information about Multipurpose Internet Mail Extensions (MIME) content type
6140 definitions. It can be used to determine defined filename extensions for MIME
6141 types, or to use filename extensions to look up the likely MIME type
6143 (home-page "https://github.com/mime-types/ruby-mime-types")
6144 (license license:expat)))
6146 (define-public ruby-fivemat
6148 (name "ruby-fivemat")
6153 (uri (rubygems-uri "fivemat" version))
6156 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
6157 (build-system ruby-build-system)
6159 `(#:tests? #f)) ; no tests
6160 (synopsis "Each test file given its own line of dots")
6162 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6163 its own line of dots during testing. It aims to provide test output that is
6164 neither too verbose nor too minimal.")
6165 (home-page "https://github.com/tpope/fivemat")
6166 (license license:expat)))
6168 (define-public ruby-sqlite3
6170 (name "ruby-sqlite3")
6175 (uri (rubygems-uri "sqlite3" version))
6178 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
6179 (build-system ruby-build-system)
6182 (modify-phases %standard-phases
6183 (add-before 'check 'add-gemtest-file
6184 ;; This file exists in the repository but is not distributed.
6185 (lambda _ (invoke "touch" ".gemtest"))))))
6187 `(("sqlite" ,sqlite)))
6189 `(("ruby-hoe" ,ruby-hoe)
6190 ("ruby-rake-compiler" ,ruby-rake-compiler)
6191 ("ruby-mini-portile" ,ruby-mini-portile)))
6192 (synopsis "Interface with SQLite3 databases")
6194 "This module allows Ruby programs to interface with the SQLite3 database
6197 "https://github.com/sparklemotion/sqlite3-ruby")
6198 (license license:bsd-3)))
6200 (define-public ruby-shoulda-context
6202 (name "ruby-shoulda-context")
6207 (uri (rubygems-uri "shoulda-context" version))
6210 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
6211 (build-system ruby-build-system)
6214 (modify-phases %standard-phases
6217 ;; Do not run tests to avoid circular dependence with rails.
6218 ;; Instead just import the library to test.
6219 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
6220 (synopsis "Test::Unit context framework extracted from Shoulda")
6222 "@code{shoulda-context} is the context framework extracted from Shoulda.
6223 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6224 context, setup, and should blocks combine to produce natural test method
6226 (home-page "https://github.com/thoughtbot/shoulda-context")
6227 (license license:expat)))
6229 (define-public ruby-shoulda-matchers
6231 (name "ruby-shoulda-matchers")
6236 (uri (rubygems-uri "shoulda-matchers" version))
6239 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6240 (build-system ruby-build-system)
6243 (modify-phases %standard-phases
6246 ;; Do not run tests to avoid circular dependence with rails. Instead
6247 ;; just import the library to test.
6248 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6250 `(("ruby-activesupport" ,ruby-activesupport)))
6251 (synopsis "Collection of testing matchers extracted from Shoulda")
6253 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6254 test common Rails functionality. These tests would otherwise be much longer,
6255 more complex, and error-prone.")
6256 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6257 (license license:expat)))
6259 (define-public ruby-shoulda-matchers-2
6261 (inherit ruby-shoulda-matchers)
6265 (uri (rubygems-uri "shoulda-matchers" version))
6268 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6270 (define-public ruby-shoulda
6272 (name "ruby-shoulda")
6277 (uri (rubygems-uri "shoulda" version))
6280 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6281 (build-system ruby-build-system)
6284 (modify-phases %standard-phases
6286 ;; Don't run tests to avoid circular dependence with rails. Instead
6287 ;; just import the library to test.
6288 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6290 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6291 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6292 (synopsis "Context framework and matchers for testing")
6294 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6295 @code{shoulda-matchers} providing tools for writing tests.")
6296 (home-page "https://github.com/thoughtbot/shoulda")
6297 (license license:expat)))
6299 (define-public ruby-unf
6306 (uri (rubygems-uri "unf" version))
6309 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6310 (build-system ruby-build-system)
6313 (modify-phases %standard-phases
6314 (add-before 'check 'add-dependency-to-bundler
6316 ;; test-unit is required but not provided by the bundler
6317 ;; environment. This is fixed in the upstream repository but fix
6318 ;; has not been released.
6319 (substitute* "Gemfile"
6320 (("^gemspec") "gem 'test-unit'\ngemspec"))
6323 `(("ruby-unf-ext" ,ruby-unf-ext)))
6325 `(("ruby-shoulda" ,ruby-shoulda)
6326 ("bundler" ,bundler)
6327 ("ruby-test-unit" ,ruby-test-unit)))
6328 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6330 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6331 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6332 @code{java.text.Normalizer} on JRuby.")
6333 (home-page "https://github.com/knu/ruby-unf")
6334 (license license:bsd-2)))
6336 (define-public ruby-warden
6338 (name "ruby-warden")
6343 (uri (rubygems-uri "warden" version))
6346 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6347 (build-system ruby-build-system)
6349 '(#:tests? #f)) ; No included tests
6351 `(("ruby-rack" ,ruby-rack)))
6352 (synopsis "Rack middleware providing authentication")
6354 "Warden is a Rack-based middleware that provides a mechanism for
6355 authentication in Ruby web applications.")
6356 (home-page "https://github.com/wardencommunity/warden")
6357 (license license:expat)))
6359 (define-public ruby-warden-oauth2
6361 (name "ruby-warden-oauth2")
6366 (uri (rubygems-uri "warden-oauth2" version))
6369 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6370 (build-system ruby-build-system)
6372 '(#:test-target "spec"
6374 (modify-phases %standard-phases
6375 (add-after 'unpack 'remove-unnecessary-dependencies
6377 (substitute* "Gemfile"
6378 ;; All of these gems relate to development, and are unnecessary
6379 ;; when running the tests
6380 (("gem 'guard-bundler'") "")
6381 (("gem 'guard'") "")
6382 (("gem 'guard-rspec'") "")
6383 (("gem 'rb-fsevent'") "")
6385 (("gem 'growl'") ""))
6387 ;; The test suite doesn't work with rspec@2, and this is incompatible
6388 ;; with the current version of Rake, so invoke Rspec directly
6390 (lambda* (#:key tests? #:allow-other-keys)
6392 (invoke "bundle" "exec" "rspec"))
6395 `(("ruby-warden" ,ruby-warden)))
6397 `(("bundler" ,bundler)
6398 ("ruby-rspec" ,ruby-rspec-2)
6399 ("ruby-rack-test" ,ruby-rack-test)))
6400 (synopsis "OAuth 2.0 strategies for Warden")
6402 "This library extends Warden to support OAuth 2.0 authorized API
6404 (home-page "https://github.com/opperator/warden-oauth2")
6405 (license license:expat)))
6407 (define-public ruby-webmock-2
6409 (name "ruby-webmock")
6414 (uri (rubygems-uri "webmock" version))
6417 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6418 (build-system ruby-build-system)
6420 `(("bundler" ,bundler)
6421 ("ruby-rspec" ,ruby-rspec)))
6423 `(("ruby-addressable" ,ruby-addressable)
6424 ("ruby-crack" ,ruby-crack)
6425 ("ruby-hashdiff" ,ruby-hashdiff)))
6426 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6428 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6429 requests. This is useful when testing software.")
6430 (home-page "https://github.com/bblimke/webmock")
6431 (license license:expat)))
6433 (define-public ruby-unicode-display-width
6435 (name "ruby-unicode-display-width")
6440 (uri (rubygems-uri "unicode-display_width" version))
6443 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
6444 (build-system ruby-build-system)
6446 '(;; Test data not included.
6448 (synopsis "Determine the monospace display width of Ruby strings")
6450 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6451 display width of strings in Ruby.")
6452 (home-page "https://github.com/janlelis/unicode-display_width")
6453 (license license:expat)))
6455 ;; There is another gem called 'ruby-version' so we use an underscore in this
6457 (define-public ruby_version
6459 (name "ruby_version")
6464 (uri (rubygems-uri "ruby_version" version))
6467 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6468 (build-system ruby-build-system)
6471 (modify-phases %standard-phases
6472 (add-before 'check 'fix-dependencies
6474 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6475 ;; whatever versions.
6476 (delete-file "Gemfile.lock")
6477 ;; Remove the incldued gem file as it's unnecessary.
6478 (delete-file "pkg/ruby_version-1.0.0.gem")
6479 (substitute* "ruby_version.gemspec"
6480 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6482 ((".*rubygems-tasks.*") "\n")
6483 ;; Accept any version of rake and rspec
6484 (("%q<rake.*") "%q<rake>)\n")
6485 (("%q<rspec.*") "%q<rspec>)\n"))
6486 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6488 (substitute* "Rakefile"
6489 (("^require 'rubygems/tasks'") "")
6490 (("Gem::Tasks.new") ""))
6493 `(("bundler" ,bundler)
6494 ("ruby-rspec" ,ruby-rspec)))
6495 (synopsis "Ruby library to help check the Ruby version")
6497 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6498 checking for the right Ruby version in software.")
6499 (home-page "https://github.com/janlelis/ruby_version")
6500 (license license:expat)))
6502 (define-public ruby-websocket-driver
6504 (name "ruby-websocket-driver")
6509 (uri (rubygems-uri "websocket-driver" version))
6511 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
6512 (build-system ruby-build-system)
6514 '(#:tests? #f)) ; no included tests
6516 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6517 (synopsis "WebSocket protocol handler with pluggable I/O")
6519 "@code{websocket-driver} provides a complete implementation of the
6520 WebSocket protocols that can be hooked up to any TCP library")
6521 (home-page "https://github.com/faye/websocket-driver-ruby")
6522 (license license:expat)))
6524 (define-public ruby-websocket-extensions
6526 (name "ruby-websocket-extensions")
6531 (uri (rubygems-uri "websocket-extensions" version))
6534 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6535 (build-system ruby-build-system)
6537 '(;; No included tests
6539 (synopsis "Generic extension manager for WebSocket connections")
6541 "@code{websocket-extensions} provides a container for registering
6542 extension plugins.")
6543 (home-page "https://github.com/faye/websocket-extensions-ruby")
6544 (license license:expat)))
6546 (define-public ruby-domain-name
6548 (name "ruby-domain-name")
6549 (version "0.5.20180417")
6553 (uri (rubygems-uri "domain_name" version))
6556 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6557 (build-system ruby-build-system)
6560 (modify-phases %standard-phases
6561 (add-before 'check 'fix-versions
6563 ;; Fix NameError that appears to already be fixed upstream.
6564 (substitute* "Rakefile"
6565 (("DomainName::VERSION")
6566 "Bundler::GemHelper.gemspec.version"))
6567 ;; Loosen unnecessarily strict test-unit version specification.
6568 (substitute* "domain_name.gemspec"
6569 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6572 `(("ruby-unf" ,ruby-unf)))
6574 `(("ruby-shoulda" ,ruby-shoulda)
6575 ("bundler" ,bundler)
6576 ("ruby-test-unit" ,ruby-test-unit)))
6577 (synopsis "Domain name manipulation library")
6579 "@code{domain_name} is a Domain name manipulation library. It parses a
6580 domain name ready for extracting the registered domain and TLD (Top Level
6581 Domain). It can also be used for cookie domain validation based on the Public
6583 (home-page "https://github.com/knu/ruby-domain_name")
6584 (license license:bsd-2)))
6586 (define-public ruby-http-cookie
6588 (name "ruby-http-cookie")
6593 (uri (rubygems-uri "http-cookie" version))
6596 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6597 (build-system ruby-build-system)
6600 (modify-phases %standard-phases
6601 (add-before 'check 'add-dependency-to-bundler
6604 (substitute* "Rakefile"
6605 (("HTTP::Cookie::VERSION")
6606 "Bundler::GemHelper.gemspec.version"))
6609 `(("ruby-domain-name" ,ruby-domain-name)))
6611 `(("rubysimplecov" ,ruby-simplecov)
6612 ("bundler" ,bundler)
6613 ("ruby-sqlite3" ,ruby-sqlite3)
6614 ("ruby-test-unit" ,ruby-test-unit)))
6615 (synopsis "Handle HTTP Cookies based on RFC 6265")
6617 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6618 RFC 6265. It has been designed with security, standards compliance and
6619 compatibility in mind, to behave just the same as today's major web browsers.
6620 It has built-in support for the legacy @code{cookies.txt} and
6621 @code{cookies.sqlite} formats of Mozilla Firefox.")
6622 (home-page "https://github.com/sparklemotion/http-cookie")
6623 (license license:expat)))
6625 (define-public ruby-httpclient
6627 (name "ruby-httpclient")
6632 (uri (rubygems-uri "httpclient" version))
6635 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6636 (build-system ruby-build-system)
6638 '(;; TODO: Some tests currently fail
6640 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6641 ;; 2 omissions, 0 notifications
6644 ;; 6.49 tests/s, 22.41 assertions/s
6647 (modify-phases %standard-phases
6649 (lambda* (#:key tests? #:allow-other-keys)
6656 `(("ruby-rack" ,ruby-rack)))
6658 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6660 "The @code{httpclient} ruby library provides functionality related to
6661 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6662 Cookie, multithreading and authentication (digest, NTLM) support.
6664 Also provided is a @command{httpclient} command, which can perform HTTP
6665 requests either using arguments or with an interactive prompt.")
6666 (home-page "https://github.com/nahi/httpclient")
6667 (license license:ruby)))
6669 (define-public ruby-ansi
6676 ;; Fetch from GitHub as the gem does not contain testing code.
6678 (url "https://github.com/rubyworks/ansi")
6680 (file-name (git-file-name name version))
6683 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
6684 (build-system ruby-build-system)
6687 (modify-phases %standard-phases
6688 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6689 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6693 (invoke "ruby" "-Ilib" "-r" "ansi")))
6694 (add-before 'validate-runpath 'replace-broken-symlink
6695 (lambda* (#:key outputs #:allow-other-keys)
6696 (let* ((out (assoc-ref outputs "out"))
6697 (file (string-append
6698 out "/lib/ruby/vendor_ruby/gems/ansi-"
6699 ,version "/lib/ansi.yml")))
6700 ;; XXX: This symlink is broken since ruby 2.4.
6701 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6703 (symlink "../.index" file)
6705 (synopsis "ANSI escape code related libraries")
6707 "This package is a collection of ANSI escape code related libraries
6708 enabling ANSI colorization and stylization of console output. Included in the
6709 library are the @code{Code} module, which defines ANSI codes as constants and
6710 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6711 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6712 @code{Terminal} module which provides information about the current output
6714 (home-page "https://rubyworks.github.io/ansi/")
6715 (license license:bsd-2)))
6717 (define-public ruby-systemu
6719 (name "ruby-systemu")
6724 (uri (rubygems-uri "systemu" version))
6727 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6728 (build-system ruby-build-system)
6731 (modify-phases %standard-phases
6732 (add-before 'check 'set-version
6734 (setenv "VERSION" ,version)
6736 (synopsis "Capture of stdout/stderr and handling of child processes")
6738 "Systemu can be used on any platform to return status, stdout, and stderr
6739 of any command. Unlike other methods like @code{open3} and @code{popen4}
6740 there is no danger of full pipes or threading issues hanging your process or
6742 (home-page "https://github.com/ahoward/systemu")
6743 (license license:ruby)))
6745 (define-public ruby-bio-commandeer
6747 (name "ruby-bio-commandeer")
6752 (uri (rubygems-uri "bio-commandeer" version))
6755 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6756 (build-system ruby-build-system)
6759 (modify-phases %standard-phases
6761 ;; Run test without calling 'rake' so that jeweler is
6762 ;; not required as an input.
6764 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6766 `(("ruby-bio-logger" ,ruby-bio-logger)
6767 ("ruby-systemu" ,ruby-systemu)))
6769 `(("bundler" ,bundler)
6770 ("ruby-rspec" ,ruby-rspec)))
6771 (synopsis "Simplified running of shell commands from within Ruby")
6773 "Bio-commandeer provides an opinionated method of running shell commands
6774 from within Ruby. The advantage of bio-commandeer over other methods of
6775 running external commands is that when something goes wrong, messages printed
6776 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6777 detail to ease debugging.")
6778 (home-page "https://github.com/wwood/bioruby-commandeer")
6779 (license license:expat)))
6781 (define-public ruby-rubytest
6783 (name "ruby-rubytest")
6788 (uri (rubygems-uri "rubytest" version))
6791 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6792 (build-system ruby-build-system)
6794 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6795 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6796 ;; simply test that the library can be require'd.
6798 (modify-phases %standard-phases
6801 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6803 `(("ruby-ansi" ,ruby-ansi)))
6804 (synopsis "Universal test harness for Ruby")
6806 "Rubytest is a testing meta-framework for Ruby. It can handle any
6807 compliant test framework and can run tests from multiple frameworks in a
6809 (home-page "https://rubyworks.github.io/rubytest")
6810 (license license:bsd-2)))
6812 (define-public ruby-brass
6819 (uri (rubygems-uri "brass" version))
6822 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6823 (build-system ruby-build-system)
6825 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6826 ;; Instead simply test that the library can be require'd.
6828 (modify-phases %standard-phases
6831 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6832 (synopsis "Basic foundational assertions framework")
6834 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6835 foundational assertions framework for other assertion and test frameworks to
6837 (home-page "https://rubyworks.github.io/brass")
6838 (license license:bsd-2)))
6840 (define-public ruby-qed
6847 (uri (rubygems-uri "qed" version))
6850 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6851 (build-system ruby-build-system)
6853 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6854 ;; Instead simply test that the executable runs using --copyright.
6856 (modify-phases %standard-phases
6859 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6861 `(("ruby-ansi" ,ruby-ansi)
6862 ("ruby-brass" ,ruby-brass)))
6863 (synopsis "Test framework utilizing literate programming techniques")
6865 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6866 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6867 Development} (BDD) utilizing Literate Programming techniques. QED sits
6868 somewhere between lower-level testing tools like @code{Test::Unit} and
6869 requirement specifications systems like Cucumber.")
6870 (home-page "https://rubyworks.github.io/qed")
6871 (license license:bsd-2)))
6873 (define-public ruby-que
6876 (version "1.0.0.beta3")
6880 (uri (rubygems-uri "que" version))
6883 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6884 (build-system ruby-build-system)
6886 '(#:tests? #f)) ; No included tests
6887 (synopsis "Job queue using PostgreSQL written in Ruby")
6889 "This package provides a job queue that uses PostgreSQL for storing jobs
6890 and locking between worker processes.")
6891 (home-page "https://github.com/chanks/que")
6892 (license license:expat)))
6894 (define-public ruby-ae
6901 ;; Fetch from github so tests are included.
6903 (url "https://github.com/rubyworks/ae")
6905 (file-name (git-file-name name version))
6908 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
6909 (build-system ruby-build-system)
6912 (modify-phases %standard-phases
6914 (lambda _ (invoke "qed")))
6915 (add-before 'validate-runpath 'replace-broken-symlink
6916 (lambda* (#:key outputs #:allow-other-keys)
6917 (let* ((out (assoc-ref outputs "out"))
6918 (file (string-append
6919 out "/lib/ruby/vendor_ruby/gems/ae-"
6920 ,version "/lib/ae.yml")))
6921 ;; XXX: This symlink is broken since ruby 2.4.
6922 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6924 (symlink "../.index" file)
6927 `(("ruby-ansi" ,ruby-ansi)))
6929 `(("ruby-qed" ,ruby-qed)))
6930 (synopsis "Assertions library")
6932 "Assertive Expressive (AE) is an assertions library specifically designed
6933 for reuse by other test frameworks.")
6934 (home-page "https://rubyworks.github.io/ae/")
6935 (license license:bsd-2)))
6937 (define-public ruby-lemon
6944 (uri (rubygems-uri "lemon" version))
6947 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6948 (build-system ruby-build-system)
6951 (modify-phases %standard-phases
6952 (replace 'check (lambda _ (invoke "qed"))))))
6954 `(("ruby-ae" ,ruby-ae)
6955 ("ruby-ansi" ,ruby-ansi)
6956 ("ruby-rubytest" ,ruby-rubytest)))
6958 `(("ruby-qed" ,ruby-qed)))
6959 (synopsis "Test framework correlating code structure and test unit")
6961 "Lemon is a unit testing framework that enforces highly formal
6962 case-to-class and unit-to-method test construction. This enforcement can help
6963 focus concern on individual units of behavior.")
6964 (home-page "https://rubyworks.github.io/lemon")
6965 (license license:bsd-2)))
6967 (define-public ruby-rubytest-cli
6969 (name "ruby-rubytest-cli")
6974 (uri (rubygems-uri "rubytest-cli" version))
6977 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6978 (build-system ruby-build-system)
6980 `(#:tests? #f)) ; no tests
6982 `(("ruby-ansi" ,ruby-ansi)
6983 ("ruby-rubytest" ,ruby-rubytest)))
6984 (synopsis "Command-line interface for rubytest")
6986 "Rubytest CLI is a command-line interface for running tests for
6987 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6988 (home-page "https://rubyworks.github.io/rubytest-cli")
6989 (license license:bsd-2)))
6991 (define-public ruby-hashery
6993 (name "ruby-hashery")
6998 (uri (rubygems-uri "hashery" version))
7001 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
7002 (build-system ruby-build-system)
7005 (modify-phases %standard-phases
7009 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
7011 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
7012 ("ruby-qed" ,ruby-qed)
7013 ("ruby-lemon" ,ruby-lemon)))
7014 (synopsis "Hash-like classes with extra features")
7016 "The Hashery is a tight collection of @code{Hash}-like classes.
7017 Included are the auto-sorting @code{Dictionary} class, the efficient
7018 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
7019 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
7020 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
7021 standard @code{Hash} making it possible to subclass and augment to fit any
7022 specific use case.")
7023 (home-page "https://rubyworks.github.io/hashery")
7024 (license license:bsd-2)))
7026 (define-public ruby-rc4
7033 (uri (rubygems-uri "ruby-rc4" version))
7036 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
7037 (build-system ruby-build-system)
7040 (modify-phases %standard-phases
7043 (invoke "rspec" "spec/rc4_spec.rb"))))))
7045 `(("ruby-rspec" ,ruby-rspec-2)))
7046 (synopsis "Implementation of the RC4 algorithm")
7048 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
7049 (home-page "https://github.com/caiges/Ruby-RC4")
7050 (license license:expat)))
7052 (define-public ruby-afm
7059 (uri (rubygems-uri "afm" version))
7062 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
7063 (build-system ruby-build-system)
7065 `(("bundler" ,bundler)))
7066 (synopsis "Read Adobe Font Metrics (afm) files")
7068 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
7069 files and use the data therein.")
7070 (home-page "https://github.com/halfbyte/afm")
7071 (license license:expat)))
7073 (define-public ruby-ascii85
7075 (name "ruby-ascii85")
7080 (uri (rubygems-uri "Ascii85" version))
7083 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
7084 (build-system ruby-build-system)
7086 `(("bundler" ,bundler)))
7087 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
7089 "This library provides methods to encode and decode Ascii85
7090 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
7091 @dfn{Portable Document Format} (PDF) file formats.")
7092 (home-page "https://github.com/datawraith/ascii85gem")
7093 (license license:expat)))
7095 (define-public ruby-ttfunk
7097 (name "ruby-ttfunk")
7102 ;; fetch from github as the gem does not contain testing code
7104 (url "https://github.com/prawnpdf/ttfunk")
7106 (file-name (git-file-name name version))
7109 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
7110 (build-system ruby-build-system)
7112 `(#:test-target "spec"
7114 (modify-phases %standard-phases
7115 (add-before 'build 'remove-ssh
7117 ;; remove dependency on an ssh key pair that doesn't exist
7118 (substitute* "ttfunk.gemspec"
7119 (("spec.signing_key.*") ""))
7121 (add-before 'check 'remove-rubocop
7123 ;; remove rubocop as a dependency as not needed for testing
7124 (substitute* "ttfunk.gemspec"
7125 (("spec.add_development_dependency\\('rubocop'.*") ""))
7126 (substitute* "Rakefile"
7127 (("require 'rubocop/rake_task'") "")
7128 (("RuboCop::RakeTask.new") ""))
7131 `(("ruby-rspec" ,ruby-rspec)
7132 ("ruby-yard" ,ruby-yard)
7133 ("bundler" ,bundler)))
7134 (synopsis "Font metrics parser for the Prawn PDF generator")
7136 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7137 part of the Prawn PDF generator.")
7138 (home-page "https://github.com/prawnpdf/ttfunk")
7139 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7141 (license (list license:gpl2 license:gpl3 license:ruby))))
7143 (define-public ruby-puma
7150 ;; Fetch from GitHub because distributed gem does not contain tests.
7152 (url "https://github.com/puma/puma")
7153 (commit (string-append "v" version))))
7154 (file-name (git-file-name name version))
7157 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
7158 (build-system ruby-build-system)
7160 `(#:tests? #f ; Tests require an out-dated version of minitest.
7162 (modify-phases %standard-phases
7163 (add-before 'build 'fix-gemspec
7165 (substitute* "puma.gemspec"
7166 (("git ls-files") "find * |sort"))
7168 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7170 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7171 for Ruby/Rack applications. Puma is intended for use in both development and
7172 production environments. In order to get the best throughput, it is highly
7173 recommended that you use a Ruby implementation with real threads like Rubinius
7175 (home-page "https://puma.io/")
7176 (license license:expat)))
7178 (define-public ruby-hoe-git
7180 (name "ruby-hoe-git")
7185 (uri (rubygems-uri "hoe-git" version))
7188 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7189 (build-system ruby-build-system)
7191 `(("ruby-hoe" ,ruby-hoe)
7193 (synopsis "Hoe plugins for tighter Git integration")
7195 "This package provides a set of Hoe plugins for tighter Git integration.
7196 It provides tasks to automate release tagging and pushing and changelog
7198 (home-page "https://github.com/jbarnette/hoe-git")
7199 (license license:expat)))
7201 (define-public ruby-sequel
7203 (name "ruby-sequel")
7208 (uri (rubygems-uri "sequel" version))
7211 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
7212 (build-system ruby-build-system)
7214 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7215 (synopsis "Database toolkit for Ruby")
7216 (description "Sequel provides thread safety, connection pooling and a
7217 concise DSL for constructing SQL queries and table schemas. It includes a
7218 comprehensive ORM layer for mapping records to Ruby objects and handling
7219 associated records.")
7220 (home-page "https://sequel.jeremyevans.net")
7221 (license license:expat)))
7223 (define-public ruby-timecop
7225 (name "ruby-timecop")
7230 (uri (rubygems-uri "timecop" version))
7233 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7234 (build-system ruby-build-system)
7237 (modify-phases %standard-phases
7238 (add-before 'check 'set-check-rubylib
7240 ;; Set RUBYLIB so timecop tests finds its own lib.
7241 (setenv "RUBYLIB" "lib")
7244 `(("bundler" ,bundler)
7245 ("ruby-minitest-rg" ,ruby-minitest-rg)
7246 ("ruby-mocha" ,ruby-mocha)
7247 ("ruby-activesupport" ,ruby-activesupport)))
7248 (synopsis "Test mocks for time-dependent functions")
7250 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7251 making it easier to test time-dependent code. It provides a unified method to
7252 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7254 (home-page "https://github.com/travisjeffery/timecop")
7255 (license license:expat)))
7257 (define-public ruby-concurrent
7259 (name "ruby-concurrent")
7264 ;; Download from GitHub because the rubygems version does not contain
7267 (url "https://github.com/ruby-concurrency/concurrent-ruby")
7268 (commit (string-append "v" version))))
7269 (file-name (git-file-name name version))
7272 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
7273 (build-system ruby-build-system)
7275 `(#:test-target "ci"
7277 (modify-phases %standard-phases
7278 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7280 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7282 (delete-file "concurrent-ruby-edge.gemspec")
7283 (delete-file "concurrent-ruby-ext.gemspec")
7285 (replace 'replace-git-ls-files
7287 ;; XXX: The default substitution made by this phase is not fully
7288 ;; compatible with "git ls-files". The latter produces file names
7289 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
7290 ;; which gives "./lib/foo". That difference in turn breaks the
7291 ;; comparison against a glob pattern in this script.
7292 (substitute* "concurrent-ruby.gemspec"
7293 (("git ls-files") "find * -type f | sort"))
7295 (add-before 'build 'remove-jar-from-gemspec
7297 ;; The gemspec wants to include a JAR file that we do not build
7299 (substitute* "concurrent-ruby.gemspec"
7300 (("'lib/concurrent/concurrent_ruby.jar'")
7303 (add-before 'build 'remove-rake_compiler_dock-dependency
7305 ;; This library is only used when building for non-MRI targets.
7306 (substitute* "Rakefile"
7307 (("require 'rake_compiler_dock'")
7310 (add-before 'check 'remove-timecop-dependency
7311 ;; Remove timecop-dependent tests as having timecop as a depedency
7312 ;; causes circular depedencies.
7314 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7315 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7318 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7319 ("ruby-rspec" ,ruby-rspec)))
7320 (synopsis "Concurrency tools for Ruby")
7322 "This library provides modern concurrency tools including agents,
7323 futures, promises, thread pools, actors, supervisors, and more. It is
7324 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7326 (home-page "http://www.concurrent-ruby.com")
7327 (license license:expat)))
7329 (define-public ruby-pkg-config
7331 (name "ruby-pkg-config")
7336 (uri (rubygems-uri "pkg-config" version))
7339 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7340 (build-system ruby-build-system)
7342 ;; Tests require extra files not included in the gem.
7344 (synopsis "Detect libraries for compiling Ruby native extensions")
7346 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7347 libraries for compiling Ruby native extensions.")
7348 (home-page "https://github.com/ruby-gnome2/pkg-config")
7349 (license license:lgpl2.0+)))
7351 (define-public ruby-net-http-digest-auth
7353 (name "ruby-net-http-digest-auth")
7358 (uri (rubygems-uri "net-http-digest_auth" version))
7361 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7362 (build-system ruby-build-system)
7364 `(("ruby-hoe" ,ruby-hoe)))
7365 (synopsis "RFC 2617 HTTP digest authentication library")
7367 "This library implements HTTP's digest authentication scheme based on
7368 RFC 2617. This enables the use of the digest authentication scheme instead
7369 of the more insecure basic authentication scheme.")
7370 (home-page "https://github.com/drbrain/net-http-digest_auth")
7371 (license license:expat)))
7373 (define-public ruby-mail
7380 (uri (rubygems-uri "mail" version))
7383 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7384 (build-system ruby-build-system)
7386 `(("ruby-mime-types" ,ruby-mime-types)))
7388 ;; Tests require extra gems not included in the Gemfile.
7389 ;; XXX: Try enabling this for the next version with mini_mime.
7391 (synopsis "Mail library for Ruby")
7393 "Mail is an internet library for Ruby that is designed to handle email
7394 generation, parsing and sending. The purpose of this library is to provide
7395 a single point of access to handle all email functions, including sending
7396 and receiving emails. All network type actions are done through proxy
7397 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7399 Mail has been designed with a very simple object oriented system that
7400 really opens up the email messages you are parsing, if you know what you
7401 are doing, you can fiddle with every last bit of your email directly.")
7402 (home-page "https://github.com/mikel/mail")
7403 (license license:expat)))
7405 (define-public ruby-mathn
7412 (uri (rubygems-uri "mathn" version))
7415 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7416 (build-system ruby-build-system)
7418 `(("bundler" ,bundler)
7419 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7420 (synopsis "Extends math operations for increased precision")
7422 "This gem makes mathematical operations more precise in Ruby and
7423 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7424 @code{mathn} was part of the Ruby standard library.")
7425 (home-page "https://github.com/ruby/mathn")
7426 (license license:bsd-2)))
7428 (define-public ruby-code-statistics
7430 (name "ruby-code-statistics")
7435 (uri (rubygems-uri "code_statistics" version))
7438 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7439 (build-system ruby-build-system)
7441 `(#:tests? #f)) ; Not all test code is included in gem.
7442 (synopsis "Port of the rails 'rake stats' method")
7444 "This gem is a port of the rails 'rake stats' method so it can be made
7445 more robust and work for non rails projects.")
7446 (home-page "http://github.com/danmayer/code_statistics")
7447 (license license:expat)))
7449 (define-public ruby-rubypants
7451 (name "ruby-rubypants")
7455 (uri (rubygems-uri "rubypants" version))
7458 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7459 (build-system ruby-build-system)
7461 '(#:tests? #f)) ; need Codecov
7462 (synopsis "Port of the smart-quotes library SmartyPants")
7464 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7465 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7466 and BBEdit that easily translates plain ASCII punctuation characters into
7467 smart typographic punctuation HTML entities.")
7468 (home-page "https://github.com/jmcnevin/rubypants")
7469 (license license:bsd-2)))
7471 (define-public ruby-org-ruby
7473 (name "ruby-org-ruby")
7477 (uri (rubygems-uri "org-ruby" version))
7480 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7481 (build-system ruby-build-system)
7483 '(#:tests? #f)) ; no rakefile
7485 `(("ruby-rubypants" ,ruby-rubypants)))
7486 (synopsis "Org-mode parser written in Ruby")
7488 "Org-ruby is an org-mode parser written in Ruby. The most significant
7489 thing this library does today is convert org-mode files to HTML or Textile or
7491 (home-page "https://github.com/wallyqs/org-ruby")
7492 (license license:expat)))
7494 (define-public ruby-rake
7501 (uri (rubygems-uri "rake" version))
7504 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7505 (build-system ruby-build-system)
7507 `(("bundler" ,bundler)))
7508 (synopsis "Rake is a Make-like program implemented in Ruby")
7510 "Rake is a Make-like program where tasks and dependencies are specified
7511 in standard Ruby syntax.")
7512 (home-page "https://github.com/ruby/rake")
7513 (license license:expat)))
7515 (define-public ruby-childprocess
7517 (name "ruby-childprocess")
7522 (uri (rubygems-uri "childprocess" version))
7525 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
7526 (build-system ruby-build-system)
7530 `(("bundler" ,bundler)
7531 ("ruby-rspec" ,ruby-rspec)))
7533 `(("ruby-ffi" ,ruby-ffi)))
7534 (synopsis "Control external programs running in the background, in Ruby")
7535 (description "@code{childprocess} provides a gem to control external
7536 programs running in the background, in Ruby.")
7537 (home-page "https://github.com/enkessler/childprocess")
7538 (license license:expat)))
7540 (define-public ruby-public-suffix
7542 (name "ruby-public-suffix")
7546 (uri (rubygems-uri "public_suffix" version))
7549 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
7550 (build-system ruby-build-system)
7553 (modify-phases %standard-phases
7554 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7555 ;; including it as an input can lead to circular dependencies.
7556 (add-after 'unpack 'remove-rubocop-from-Rakefile
7558 (substitute* "Rakefile"
7559 (("require \"rubocop/rake\\_task\"") "")
7560 (("RuboCop::RakeTask\\.new") ""))
7563 `(("bundler" ,bundler)
7564 ("ruby-yard" ,ruby-yard)
7565 ("ruby-mocha" ,ruby-mocha)
7566 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7567 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7568 (synopsis "Domain name parser")
7569 (description "The gem @code{public_suffix} is a domain name parser,
7570 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7571 is one under which Internet users can (or historically could) directly
7572 register names. Some examples of public suffixes are @code{.com},
7573 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7574 all known public suffixes.")
7575 (license license:expat)))
7577 (define-public ruby-addressable
7579 (name "ruby-addressable")
7583 (uri (rubygems-uri "addressable" version))
7586 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
7587 (build-system ruby-build-system)
7589 '(#:test-target "spec"
7591 (modify-phases %standard-phases
7592 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7594 (substitute* "Gemfile"
7595 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7596 ((".*launchy.*") "")
7597 ((".*rake.*") "gem 'rake'\n")
7598 ((".*redcarpet.*") ""))
7600 (add-before 'check 'delete-network-dependent-test
7602 (delete-file "spec/addressable/net_http_compat_spec.rb")
7605 `(("ruby-rspec" ,ruby-rspec)
7606 ("bundler" ,bundler)
7607 ("ruby-idn-ruby" ,ruby-idn-ruby)
7608 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7609 ("ruby-rspec-its", ruby-rspec-its)
7610 ("ruby-yard" ,ruby-yard)
7611 ("ruby-simplecov" ,ruby-simplecov)))
7613 `(("ruby-public-suffix" ,ruby-public-suffix)))
7614 (home-page "https://github.com/sporkmonger/addressable")
7615 (synopsis "Alternative URI implementation")
7616 (description "Addressable is a replacement for the URI implementation that
7617 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7618 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7619 (license license:asl2.0)))
7621 (define-public ruby-colorator
7623 (name "ruby-colorator")
7627 (uri (rubygems-uri "colorator" version))
7630 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7631 (build-system ruby-build-system)
7635 (home-page "http://octopress.org/colorator/")
7636 (synopsis "Terminal color library")
7637 (description "Colorator is a Ruby gem that helps you colorize your text
7639 (license license:expat)))
7641 (define-public ruby-command-line-reporter
7643 (name "ruby-command-line-reporter")
7647 (uri (rubygems-uri "command_line_reporter" version))
7650 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
7651 (build-system ruby-build-system)
7656 (modify-phases %standard-phases
7657 (add-before 'build 'fix-dependencies
7659 (substitute* ".gemspec"
7660 ;; colored is unmaintained
7661 (("colored") "colorator")
7662 ;; colorator version
7663 (("= 1.2") "= 1.1"))
7665 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7666 (home-page "https://github.com/wbailey/command_line_reporter")
7667 (synopsis "Report production while executing Ruby scripts")
7668 (description "This gem provides a DSL that makes it easy to write reports
7669 of various types in ruby. It eliminates the need to litter your source with
7670 puts statements, instead providing a more readable, expressive interface to
7672 (license license:asl2.0)))
7674 (define-public ruby-command-line-reporter-3
7676 (inherit ruby-command-line-reporter)
7680 (uri (rubygems-uri "command_line_reporter" version))
7683 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7685 (define-public ruby-rdoc
7692 (uri (rubygems-uri "rdoc" version))
7695 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7696 (build-system ruby-build-system)
7698 `(("bundler" ,bundler)))
7699 (home-page "https://ruby.github.io/rdoc/")
7700 (synopsis "HTML and command-line documentation utility")
7701 (description "RDoc produces HTML and command-line documentation for Ruby
7702 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7703 documentation from the command-line.")
7704 (license license:gpl2+)))
7706 (define-public ruby-sass-listen
7708 (name "ruby-sass-listen")
7712 (uri (rubygems-uri "sass-listen" version))
7715 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7716 (build-system ruby-build-system)
7721 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7722 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7723 (home-page "https://github.com/sass/listen")
7724 (synopsis "File modification notification library")
7725 (description "The Listen gem listens to file modifications and notifies you
7726 about the changes.")
7727 (license license:expat)))
7729 (define-public ruby-terminfo
7731 (name "ruby-terminfo")
7736 (uri (rubygems-uri "ruby-terminfo" version))
7739 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7740 (build-system ruby-build-system)
7742 `(#:test-target "test"
7743 ;; Rakefile requires old packages and would need modification to
7744 ;; work with current software.
7747 `(("ncurses" ,ncurses)))
7749 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7750 ("ruby-rdoc" ,ruby-rdoc)))
7751 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7752 (synopsis "Terminfo binding for Ruby")
7753 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7754 (license license:bsd-3)))
7756 (define-public ruby-diffy
7763 (uri (rubygems-uri "diffy" version))
7766 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7767 (build-system ruby-build-system)
7772 `(("ruby-rspec" ,ruby-rspec)))
7773 (home-page "https://github.com/samg/diffy")
7774 (synopsis "Convenient diffing in ruby")
7775 (description "Diffy provides a convenient way to generate a diff from two
7777 (license license:expat)))
7779 (define-public ruby-sass-spec
7781 (name "ruby-sass-spec")
7787 (url "https://github.com/sass/sass-spec.git")
7788 (commit (string-append "v" version))))
7789 (file-name (git-file-name name version))
7791 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
7792 (build-system ruby-build-system)
7794 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7795 ("ruby-diffy" ,ruby-diffy)
7796 ("ruby-terminfo" ,ruby-terminfo)))
7798 `(;; This package contains tests for a sass implementation, and the to
7799 ;; avoid any circular dependencies, the tests are not run here
7802 (modify-phases %standard-phases
7803 (add-after 'unpack 'patch-test
7805 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7806 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7807 (("string") "color")))))))
7808 (home-page "https://github.com/sass/sass-spec")
7809 (synopsis "Test suite for Sass")
7810 (description "Sass Spec is a test suite for Sass. Test cases are all in
7811 the @file{spec} directory.")
7812 (license license:expat)))
7814 (define-public ruby-sass
7820 (uri (rubygems-uri "sass" version))
7823 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7824 (build-system ruby-build-system)
7826 `(("ruby-sass-listen" ,ruby-sass-listen)))
7828 `(("ruby-sass-spec" ,ruby-sass-spec)
7829 ("ruby-mathn" ,ruby-mathn)))
7830 (home-page "https://sass-lang.com/")
7831 (synopsis "CSS extension language")
7832 (description "Sass is a CSS extension language. It extends CSS with
7833 features that don't exist yet like variables, nesting, mixins and inheritance.")
7834 (license license:expat)))
7836 (define-public ruby-sassc
7843 (uri (rubygems-uri "sassc" version))
7846 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
7847 (build-system ruby-build-system)
7849 '(#:modules ((guix build ruby-build-system)
7851 (ice-9 textual-ports))
7853 (modify-phases %standard-phases
7854 ;; TODO: This would be better as a snippet, but the ruby-build-system
7855 ;; doesn't seem to support that
7856 (add-after 'unpack 'remove-libsass
7858 (delete-file-recursively "ext")
7859 (with-atomic-file-replacement "sassc.gemspec"
7861 (let* ((gemspec (get-string-all in))
7862 (index (string-contains gemspec "libsass_dir")))
7863 (display (string-append
7864 (string-take gemspec index)
7868 (add-after 'unpack 'dont-check-the-libsass-version
7870 (substitute* "test/native_test.rb"
7871 (("assert_equal.*Native\\.version") ""))
7873 (add-after 'unpack 'remove-git-from-gemspec
7875 (substitute* "sassc.gemspec"
7876 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
7878 (add-after 'unpack 'remove-extensions-from-gemspec
7880 (substitute* "sassc.gemspec"
7881 (("\\[\"ext/extconf.rb\"\\]") "[]"))
7883 (add-after 'unpack 'fix-Rakefile
7885 (substitute* "Rakefile"
7886 (("test: 'compile:libsass'") ":test"))
7888 (add-after 'unpack 'remove-unnecessary-dependencies
7890 (substitute* "test/test_helper.rb"
7891 (("require \"pry\"") ""))
7893 (add-before 'build 'patch-native.rb
7894 (lambda* (#:key inputs #:allow-other-keys)
7895 (substitute* "lib/sassc/native.rb"
7896 ((".*gem_root = spec.gem_dir") "")
7899 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7901 ;; The gemspec still references the libsass files, so just keep the
7903 (delete 'extract-gemspec))))
7905 `(("ruby-ffi" ,ruby-ffi)
7906 ("ruby-rake" ,ruby-rake)))
7908 `(("libsass" ,libsass)))
7910 `(("bundler" ,bundler)
7911 ("ruby-rake-compiler" ,ruby-rake-compiler)
7912 ("ruby-minitest-around" ,ruby-minitest-around)
7913 ("ruby-test-construct" ,ruby-test-construct)))
7914 (synopsis "Use libsss from Ruby")
7916 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7917 bindings to the libsass library. This enables rendering
7918 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7919 (home-page "https://github.com/sass/sassc-ruby")
7920 (license license:expat)))
7922 (define-public ruby-jekyll-sass-converter
7924 (name "ruby-jekyll-sass-converter")
7928 (uri (rubygems-uri "jekyll-sass-converter" version))
7931 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7932 (build-system ruby-build-system)
7934 `(("ruby-sass" ,ruby-sass)))
7938 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7939 (synopsis "Sass converter for Jekyll")
7940 (description "This gem provide built-in support for the Sass converter
7942 (license license:expat)))
7944 (define-public ruby-jekyll-watch
7946 (name "ruby-jekyll-watch")
7950 (uri (rubygems-uri "jekyll-watch" version))
7953 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
7954 (build-system ruby-build-system)
7956 `(("ruby-listen" ,ruby-listen)))
7960 (home-page "https://github.com/jekyll/jekyll-watch")
7961 (synopsis "Jekyll auto-rebuild support")
7962 (description "This gems add the @code{--watch} switch to the jekyll CLI
7963 interface. It allows Jekyll to rebuild your site when a file changes.")
7964 (license license:expat)))
7966 (define-public ruby-parallel
7968 (name "ruby-parallel")
7974 (url "https://github.com/grosser/parallel.git")
7975 (commit (string-append "v" version))))
7976 (file-name (git-file-name name version))
7979 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7980 (build-system ruby-build-system)
7982 `(;; TODO 3 test failures
7983 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7984 ;; open unnecessary pipes
7985 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7986 ;; SQLite in processes
7987 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7988 ;; SQLite in threads
7990 #:test-target "rspec-rerun:spec"
7992 (modify-phases %standard-phases
7993 (add-after 'unpack 'patch-Gemfile
7995 (substitute* "Gemfile"
7996 (("gem 'rspec-legacy_formatters'") "")
7997 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7998 (add-before 'check 'delete-Gemfile.lock
8000 ;; Bundler isn't being used for fetching dependendencies, so
8001 ;; delete the Gemfile.lock
8002 (delete-file "Gemfile.lock")
8004 (add-before 'build 'patch-gemspec
8006 (substitute* "parallel.gemspec"
8007 (("git ls-files") "find"))
8010 `(("ruby-rspec" ,ruby-rspec)
8011 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
8012 ("bundler" ,bundler)
8013 ("ruby-activerecord" ,ruby-activerecord)
8014 ("ruby-progressbar" ,ruby-progressbar)
8015 ("ruby-bump" ,ruby-bump)
8018 ("ruby-mysql2" ,ruby-mysql2)
8019 ("ruby-sqlite3" ,ruby-sqlite3)
8020 ("ruby-i18n" ,ruby-i18n)))
8021 (home-page "https://github.com/grosser/parallel")
8022 (synopsis "Parallel processing in Ruby")
8023 (description "Parallel allows you to run any code in parallel Processes
8024 (to use all CPUs) or Threads(to speedup blocking operations). It is best
8025 suited for map-reduce or e.g. parallel downloads/uploads.")
8026 (license license:expat)))
8028 (define-public ruby-cane
8034 (uri (rubygems-uri "cane" version))
8037 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
8038 (build-system ruby-build-system)
8039 (arguments `(#:tests? #f)); No rakefile
8040 (home-page "https://github.com/square/cane")
8042 `(("ruby-parallel" ,ruby-parallel)))
8043 (synopsis "Code quality threshold checking")
8044 (description "Cane fails your build if code quality thresholds are not met.")
8045 (license license:asl2.0)))
8047 (define-public ruby-morecane
8049 (name "ruby-morecane")
8053 (uri (rubygems-uri "morecane" version))
8056 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
8057 (build-system ruby-build-system)
8058 (home-page "https://github.com/yob/morecane")
8059 (arguments `(#:tests? #f)); No rakefile
8061 `(("ruby-parallel" ,ruby-parallel)))
8062 (synopsis "Extra checks for cane")
8063 (description "The cane gem provides a great framework for running quality
8064 checks over your ruby project as part of continuous integration build. It
8065 comes with a few checks out of the box, but also provides an API for loading
8066 custom checks. This gem provides a set of additional checks.")
8067 (license license:expat)))
8069 (define-public ruby-pdf-reader
8071 (name "ruby-pdf-reader")
8075 (uri (rubygems-uri "pdf-reader" version))
8078 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
8079 (build-system ruby-build-system)
8080 (arguments `(#:test-target "spec"))
8082 `(("bundler" ,bundler)
8083 ("ruby-rspec" ,ruby-rspec)
8084 ("ruby-cane" ,ruby-cane)
8085 ("ruby-morecane" ,ruby-morecane)))
8087 `(("ruby-afm" ,ruby-afm)
8088 ("ruby-ascii85" ,ruby-ascii85)
8089 ("ruby-hashery" ,ruby-hashery)
8090 ("ruby-rc4" ,ruby-rc4)
8091 ("ruby-ttfunk" ,ruby-ttfunk)))
8092 (home-page "https://github.com/yob/pdf-reader")
8093 (synopsis "PDF parser in Ruby")
8094 (description "The PDF::Reader library implements a PDF parser conforming as
8095 much as possible to the PDF specification from Adobe. It provides programmatic
8096 access to the contents of a PDF file with a high degree of flexibility.")
8097 (license license:gpl3+)))
8099 (define-public ruby-pdf-inspector
8101 (name "ruby-pdf-inspector")
8105 (uri (rubygems-uri "pdf-inspector" version))
8108 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
8109 (build-system ruby-build-system)
8111 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8112 (arguments `(#:tests? #f)); No rakefile
8113 (home-page "https://github.com/prawnpdf/pdf-inspector")
8114 (synopsis "Analysis classes for inspecting PDF output")
8115 (description "This library provides a number of PDF::Reader based tools for
8116 use in testing PDF output. Presently, the primary purpose of this tool is to
8117 support the tests found in Prawn, a pure Ruby PDF generation library.")
8118 (license license:gpl3+)))
8120 (define-public ruby-pdf-core
8122 (name "ruby-pdf-core")
8126 (uri (rubygems-uri "pdf-core" version))
8129 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8130 (build-system ruby-build-system)
8134 (home-page "https://github.com/prawnpdf/pdf-core")
8135 (synopsis "Low level PDF features for Prawn")
8136 (description "This is an experimental gem that extracts low-level PDF
8137 functionality from Prawn.")
8138 (license license:gpl3+)))
8140 (define-public ruby-prawn
8146 (uri (rubygems-uri "prawn" version))
8149 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8150 (build-system ruby-build-system)
8155 (modify-phases %standard-phases
8156 (add-before 'build 'fix-dependencies
8158 (substitute* "prawn.gemspec"
8159 (("~> 0.7.0") "~> 0.7"))
8162 `(("ruby-pdf-core" ,ruby-pdf-core)
8163 ("ruby-ttfunk" ,ruby-ttfunk)))
8165 `(("bundler" ,bundler)
8166 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8167 ("ruby-rspec" ,ruby-rspec)
8168 ("ruby-simplecov" ,ruby-simplecov)
8169 ("ruby-yard" ,ruby-yard)))
8170 (home-page "http://prawnpdf.org/api-docs/2.0/")
8171 (synopsis "PDF generation for Ruby")
8172 (description "Prawn is a pure Ruby PDF generation library.")
8173 (license license:gpl3+)))
8175 (define-public ruby-prawn-table
8177 (name "ruby-prawn-table")
8181 (uri (rubygems-uri "prawn-table" version))
8184 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8185 (build-system ruby-build-system)
8187 `(("ruby-prawn" ,ruby-prawn)
8188 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8190 `(("bundler" ,bundler)
8191 ("ruby-yard" ,ruby-yard)
8192 ("ruby-mocha" ,ruby-mocha)
8193 ("ruby-coderay" ,ruby-coderay)
8194 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8195 ("ruby-simplecov" ,ruby-simplecov)
8196 ("ruby-rspec-2" ,ruby-rspec-2)))
8198 '(;; TODO: 1 test fails
8199 ;; Failure/Error: pdf.page_count.should == 1
8201 ;; got: 2 (using ==)
8202 ;; # ./spec/table_spec.rb:1308
8204 ;; 225 examples, 1 failure
8207 (modify-phases %standard-phases
8208 (add-before 'check 'patch-gemspec
8210 (substitute* "prawn-table.gemspec"
8211 ;; Loosen the requirement for pdf-inspector
8212 (("~> 1\\.1\\.0") ">= 0")
8213 ;; Loosen the requirement for pdf-reader
8214 (("~> 1\\.2") ">= 0"))))
8216 (lambda* (#:key tests? #:allow-other-keys)
8220 (home-page "https://github.com/prawnpdf/prawn-table")
8221 (synopsis "Tables support for Prawn")
8222 (description "This gem provides tables support for Prawn.")
8223 (license license:gpl3+)))
8225 (define-public ruby-kramdown
8227 (name "ruby-kramdown")
8231 (uri (rubygems-uri "kramdown" version))
8234 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8235 (build-system ruby-build-system)
8236 (arguments `(#:tests? #f)); FIXME: some test failures
8238 `(("ruby-prawn" ,ruby-prawn)
8239 ("ruby-prawn-table" ,ruby-prawn-table)))
8240 (home-page "https://kramdown.gettalong.org/")
8241 (synopsis "Markdown parsing and converting library")
8242 (description "Kramdown is a library for parsing and converting a superset
8243 of Markdown. It is completely written in Ruby, supports standard Markdown
8244 (with some minor modifications) and various extensions that have been made
8245 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8246 (license license:expat)))
8248 (define-public ruby-http-parser.rb
8250 (name "ruby-http-parser.rb")
8255 (uri (rubygems-uri "http_parser.rb" version))
8258 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8259 (build-system ruby-build-system)
8264 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8265 ("ruby-rspec" ,ruby-rspec)))
8266 (home-page "https://github.com/tmm1/http_parser.rb")
8267 (synopsis "HTTP parser un Ruby")
8268 (description "This gem is a simple callback-based HTTP request/response
8269 parser for writing http servers, clients and proxies.")
8270 (license license:expat)))
8272 (define-public ruby-em-websocket
8274 (name "ruby-em-websocket")
8279 (uri (rubygems-uri "em-websocket" version))
8282 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8283 (build-system ruby-build-system)
8288 `(("ruby-eventmachine" ,ruby-eventmachine)
8289 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8291 `(("bundler" ,bundler)
8292 ("ruby-rspec" ,ruby-rspec)))
8293 (home-page "https://github.com/igrigorik/em-websocket")
8294 (synopsis "EventMachine based WebSocket server")
8295 (description "Em-websocket is an EventMachine based WebSocket server
8297 (license license:expat)))
8299 (define-public ruby-rouge
8305 (uri (rubygems-uri "rouge" version))
8308 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
8309 (build-system ruby-build-system)
8310 (arguments `(#:tests? #f)); No rakefile
8311 (home-page "http://rouge.jneen.net/")
8312 (synopsis "Code highlighter")
8313 (description "Rouge is a code highlighter written in Ruby. It supports more
8314 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8315 is compatible with stylesheets designed for pygments.")
8317 ;; rouge is licensed under expat
8319 ;; pygments is licensed under bsd-2
8322 (define-public ruby-rouge-2
8324 (inherit ruby-rouge)
8328 (uri (rubygems-uri "rouge" version))
8331 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8333 (define-public ruby-hashie
8335 (name "ruby-hashie")
8339 (uri (rubygems-uri "hashie" version))
8342 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8343 (build-system ruby-build-system)
8345 `(("bundler" ,bundler)))
8346 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8347 (home-page "https://github.com/intridea/hashie")
8348 (synopsis "Extensions to Ruby Hashes")
8349 (description "Hashie is a collection of classes and mixins that make Ruby
8350 hashes more powerful.")
8351 (license license:expat)))
8353 (define-public ruby-heredoc-unindent
8355 (name "ruby-heredoc-unindent")
8359 (uri (rubygems-uri "heredoc_unindent" version))
8362 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8363 (build-system ruby-build-system)
8365 `(("ruby-hoe" ,ruby-hoe)))
8366 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8367 (synopsis "Heredoc indentation cleaner")
8368 (description "This gem removes common margin from indented strings, such
8369 as the ones produced by indented heredocs. In other words, it strips out
8370 leading whitespace chars at the beginning of each line, but only as much as
8371 the line with the smallest margin.
8373 It is acknowledged that many strings defined by heredocs are just code and
8374 fact is that most parsers are insensitive to indentation. If, however, the
8375 strings are to be used otherwise, be it for printing or testing, the extra
8376 indentation will probably be an issue and hence this gem.")
8377 (license license:expat)))
8379 (define-public ruby-safe-yaml
8381 (name "ruby-safe-yaml")
8387 (url "https://github.com/dtao/safe_yaml.git")
8389 (file-name (git-file-name name version))
8392 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
8393 (build-system ruby-build-system)
8395 `(("ruby-rspec" ,ruby-rspec)
8396 ("ruby-hashie" ,ruby-hashie)
8397 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8399 '(#:test-target "spec"
8401 (modify-phases %standard-phases
8402 (add-before 'check 'set-TZ
8404 ;; This test is dependent on the timezone
8405 ;; spec/transform/to_date_spec.rb:35
8406 ;; # SafeYAML::Transform::ToDate converts times to the local
8408 (setenv "TZ" "UTC-11")
8410 (home-page "https://github.com/dtao/safe_yaml")
8411 (synopsis "YAML parser")
8412 (description "The SafeYAML gem provides an alternative implementation of
8413 YAML.load suitable for accepting user input in Ruby applications.")
8414 (license license:expat)))
8416 (define-public ruby-mercenary
8418 (name "ruby-mercenary")
8422 (uri (rubygems-uri "mercenary" version))
8425 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8426 (build-system ruby-build-system)
8427 (arguments `(#:test-target "spec"))
8429 `(("bundler" ,bundler)))
8430 (home-page "https://github.com/jekyll/mercenary")
8431 (synopsis "Command-line apps library in Ruby")
8432 (description "Mercenary is a lightweight and flexible library for writing
8433 command-line apps in Ruby.")
8434 (license license:expat)))
8436 (define-public ruby-liquid
8438 (name "ruby-liquid")
8442 (uri (rubygems-uri "liquid" version))
8445 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8446 (build-system ruby-build-system)
8447 (arguments `(#:tests? #f)); No rakefile
8448 (home-page "https://shopify.github.io/liquid/")
8449 (synopsis "Template language")
8450 (description "Liquid is a template language written in Ruby. It is used
8451 to load dynamic content on storefronts.")
8452 (license license:expat)))
8454 (define-public ruby-forwardable-extended
8456 (name "ruby-forwardable-extended")
8460 (uri (rubygems-uri "forwardable-extended" version))
8463 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8464 (build-system ruby-build-system)
8465 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8466 (home-page "https://github.com/envygeeks/forwardable-extended")
8467 (synopsis "Delegation to hashes and instance variables in Forwardable")
8468 (description "Forwardable Extended provides more @code{Forwardable}
8469 methods for your source as @code{Forwardable::Extended}.")
8470 (license license:expat)))
8472 (define-public ruby-pathutil
8474 (name "ruby-pathutil")
8478 (uri (rubygems-uri "pathutil" version))
8481 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
8482 (build-system ruby-build-system)
8484 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8486 `(("bundler" ,bundler)
8487 ("ruby-rspec" ,ruby-rspec)))
8488 ;; Fails with: cannot load such file --
8489 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8490 (arguments `(#:tests? #f))
8491 (home-page "https://github.com/envygeeks/pathutil")
8492 (synopsis "Extended implementation of Pathname")
8493 (description "Pathutil tries to be a faster pure Ruby implementation of
8495 (license license:expat)))
8497 (define-public jekyll
8503 (uri (rubygems-uri "jekyll" version))
8506 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
8507 (build-system ruby-build-system)
8509 ;; No rakefile, but a test subdirectory.
8512 (modify-phases %standard-phases
8513 (add-before 'build 'fix-i18n
8515 (substitute* ".gemspec"
8516 (("~> 0.7") ">= 0.7"))
8519 `(("ruby-addressable" ,ruby-addressable)
8520 ("ruby-colorator" ,ruby-colorator)
8521 ("ruby-em-websocket" ,ruby-em-websocket)
8522 ("ruby-i18n" ,ruby-i18n)
8523 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8524 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8525 ("ruby-kramdown" ,ruby-kramdown)
8526 ("ruby-liquid" ,ruby-liquid)
8527 ("ruby-mercenary" ,ruby-mercenary)
8528 ("ruby-pathutil" ,ruby-pathutil)
8529 ("ruby-rouge" ,ruby-rouge-2)
8530 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8531 (home-page "https://jekyllrb.com/")
8532 (synopsis "Static site generator")
8533 (description "Jekyll is a simple, blog aware, static site generator.")
8534 (license license:expat)))
8536 (define-public ruby-jekyll-paginate-v2
8538 (name "ruby-jekyll-paginate-v2")
8542 (uri (rubygems-uri "jekyll-paginate-v2" version))
8545 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8546 (build-system ruby-build-system)
8548 `(("jekyll" ,jekyll)))
8549 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8550 (synopsis "Pagination Generator for Jekyll 3")
8551 (description "The Pagination Generator forms the core of the pagination
8552 logic in Jekyll. It calculates and generates the pagination pages.")
8553 (license license:expat)))
8555 (define-public ruby-faraday
8557 (name "ruby-faraday")
8562 (uri (rubygems-uri "faraday" version))
8565 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8566 (build-system ruby-build-system)
8570 `(("ruby-multipart-post" ,ruby-multipart-post)))
8571 (synopsis "Ruby HTTP/REST API client library")
8573 "Faraday is a HTTP/REST API client library which provides a common
8574 interface over different adapters.")
8575 (home-page "https://github.com/lostisland/faraday")
8576 (license license:expat)))
8578 (define-public ruby-nio4r
8585 (uri (rubygems-uri "nio4r" version))
8588 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
8589 (build-system ruby-build-system)
8592 (modify-phases %standard-phases
8593 (add-after 'unpack 'remove-unnecessary-dependencies
8595 (substitute* "spec/spec_helper.rb"
8596 ;; Coveralls is for uploading test coverage information to an
8597 ;; online service, and thus unnecessary for building the Guix
8599 (("require \"coveralls\"") "")
8600 (("Coveralls\\.wear!") "")
8601 ;; Remove rspec/retry as we are not retrying the tests
8602 (("require \"rspec/retry\"") "")
8603 (("config\\.display_try_failure_messages = true") "")
8604 (("config\\.verbose_retry = true") ""))
8606 (add-before 'check 'compile
8608 (invoke "rake" "compile")
8611 (lambda* (#:key tests? #:allow-other-keys)
8616 `(("bundler" ,bundler)
8617 ("ruby-rake-compiler" ,ruby-rake-compiler)
8618 ("ruby-rspec" ,ruby-rspec)
8619 ("ruby-rubocop" ,ruby-rubocop)))
8620 (synopsis "New I/O for Ruby")
8622 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8623 for scalable network clients and servers.")
8624 (home-page "https://github.com/socketry/nio4r")
8625 (license license:expat)))
8627 (define-public ruby-globalid
8629 (name "ruby-globalid")
8634 (uri (rubygems-uri "globalid" version))
8637 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8638 (build-system ruby-build-system)
8640 '(;; No included tests
8643 `(("ruby-activesupport" ,ruby-activesupport)))
8644 (synopsis "Generate URIs idenfitying model instances in Ruby")
8646 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8647 uniquely identify it.")
8648 (home-page "https://rubyonrails.org/")
8649 (license license:expat)))
8651 (define-public ruby-sprockets
8653 (name "ruby-sprockets")
8658 (uri (rubygems-uri "sprockets" version))
8661 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8662 (build-system ruby-build-system)
8664 '(;; No included tests
8667 `(("ruby-concurrent" ,ruby-concurrent)
8668 ("ruby-rack" ,ruby-rack)))
8669 (synopsis "Sprockets is a Rack-based asset packaging system")
8671 "Sprockets is a Rack-based asset packaging system that concatenates and
8672 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8673 (home-page "https://github.com/rails/sprockets")
8674 (license license:expat)))
8676 (define-public ruby-mustermann
8678 (name "ruby-mustermann")
8683 (uri (rubygems-uri "mustermann" version))
8686 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8687 (build-system ruby-build-system)
8691 (synopsis "Library implementing patterns that behave like regular expressions")
8692 (description "Given a string pattern, Mustermann will turn it into an
8693 object that behaves like a regular expression and has comparable performance
8695 (home-page "https://github.com/sinatra/mustermann")
8696 (license license:expat)))
8698 (define-public ruby-htmlentities
8700 (name "ruby-htmlentities")
8705 (uri (rubygems-uri "htmlentities" version))
8708 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
8709 (build-system ruby-build-system)
8712 (modify-phases %standard-phases
8716 (invoke "ruby" "-Itest" file))
8717 (find-files "./test" ".*_test\\.rb")))))))
8718 (synopsis "Encode and decode (X)HTML entities")
8720 "This package provides a module for encoding and decoding (X)HTML
8722 (home-page "https://github.com/threedaymonk/htmlentities")
8723 (license license:expat)))
8725 (define-public ruby-sinatra
8727 (name "ruby-sinatra")
8732 (uri (rubygems-uri "sinatra" version))
8735 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8736 (build-system ruby-build-system)
8738 `(("ruby-mustermann" ,ruby-mustermann)
8739 ("ruby-rack" ,ruby-rack)
8740 ("ruby-rack-protection" ,ruby-rack-protection)
8741 ("ruby-tilt" ,ruby-tilt)))
8742 (synopsis "DSL for quick web applications creation in Ruby")
8744 "Sinatra is a DSL for quickly creating web applications in Ruby with
8746 (home-page "http://sinatrarb.com/")
8747 (license license:expat)))
8749 (define-public ruby-thin
8756 (uri (rubygems-uri "thin" version))
8759 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8760 (build-system ruby-build-system)
8765 `(("ruby-daemons" ,ruby-daemons)
8766 ("ruby-eventmachine" ,ruby-eventmachine)
8767 ("ruby-rack" ,ruby-rack)))
8768 (synopsis "Thin and fast web server for Ruby")
8769 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8771 @item the Mongrel parser,
8772 @item Event Machine, a network I/O library with high scalability, performance
8774 @item Rack, a minimal interface between webservers and Ruby frameworks.
8776 (home-page "https://github.com/macournoyer/thin")
8777 (license license:ruby)))
8779 (define-public ruby-skinny
8781 (name "ruby-skinny")
8786 (uri (rubygems-uri "skinny" version))
8789 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8790 (build-system ruby-build-system)
8792 '(#:tests? #f ; No included tests
8794 (modify-phases %standard-phases
8795 (add-before 'build 'patch-gemspec
8797 (substitute* ".gemspec"
8798 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8799 "<eventmachine>, [\">= 1.0.0\"")
8800 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8803 `(("ruby-eventmachine" ,ruby-eventmachine)
8804 ("ruby-thin" ,ruby-thin)))
8805 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8806 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8808 (home-page "https://github.com/sj26/skinny")
8809 (license license:expat)))
8811 (define-public mailcatcher
8813 (name "mailcatcher")
8818 (uri (rubygems-uri "mailcatcher" version))
8821 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8822 (build-system ruby-build-system)
8824 ;; Tests require web/assets which is not included in the output. We
8825 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8826 ;; of the tests. See ruby-mysql2.
8829 (modify-phases %standard-phases
8830 (add-before 'build 'patch-gemspec
8832 (substitute* ".gemspec"
8833 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8834 "<eventmachine>, [\">= 1.0.9.1")
8835 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8836 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8837 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8839 (add-before 'build 'loosen-dependency-contraint
8841 (substitute* "lib/mail_catcher.rb"
8842 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8843 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8844 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8845 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8848 `(("ruby-eventmachine" ,ruby-eventmachine)
8849 ("ruby-mail" ,ruby-mail)
8850 ("ruby-rack" ,ruby-rack)
8851 ("ruby-sinatra" ,ruby-sinatra)
8852 ("ruby-skinny" ,ruby-skinny)
8853 ("ruby-sqlite3" ,ruby-sqlite3)
8854 ("ruby-thin" ,ruby-thin)))
8855 (synopsis "SMTP server which catches messages to display them a browser")
8857 "MailCatcher runs a super simple SMTP server which catches any message
8858 sent to it to display in a web interface. Run mailcatcher, set your favourite
8859 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8860 then check out http://127.0.0.1:1080 to see the mail.")
8861 (home-page "https://mailcatcher.me")
8862 (license license:expat)))
8864 (define-public ruby-backport
8866 (name "ruby-backport")
8870 ;; The gem does not include test code, so fetch from the Git repository.
8873 (url "https://github.com/castwide/backport.git")
8874 (commit (string-append "v" version))))
8875 (file-name (git-file-name name version))
8877 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
8878 (build-system ruby-build-system)
8880 `(#:test-target "spec"))
8882 `(("bundler" ,bundler)
8883 ("ruby-rspec" ,ruby-rspec)))
8885 `(("ruby-simplecov" ,ruby-simplecov)))
8886 (synopsis "Pure Ruby library for event-driven IO")
8888 "This package provides a pure Ruby library for event-driven IO.")
8889 (home-page "https://github.com/castwide/backport")
8890 (license license:expat)))
8892 (define-public ruby-json-schema
8894 (name "ruby-json-schema")
8899 (uri (rubygems-uri "json-schema" version))
8902 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
8903 (build-system ruby-build-system)
8905 `(#:tests? #f ; no tests
8907 (modify-phases %standard-phases
8910 (invoke "gem" "build" ".gemspec"))))))
8912 `(("ruby-addressable" ,ruby-addressable)))
8913 (synopsis "Ruby JSON Schema Validator")
8914 (description "This library provides Ruby with an interface for validating
8915 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
8916 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
8918 (home-page "https://github.com/ruby-json-schema/json-schema")
8919 (license license:expat)))
8921 (define-public swagger-diff
8923 (name "swagger-diff")
8928 (uri (rubygems-uri "swagger-diff" version))
8931 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
8932 (build-system ruby-build-system)
8934 `(#:test-target "spec"
8936 (modify-phases %standard-phases
8937 ;; Don't run or require rubocop, the code linting tool, as this is a
8939 (add-after 'unpack 'dont-run-rubocop
8941 (substitute* "Rakefile"
8942 ((".*rubocop.*") "")
8943 ((".*RuboCop.*") ""))
8946 `(("ruby-json-schema" ,ruby-json-schema)))
8948 `(("bundler" ,bundler)
8949 ("ruby-rspec-core" ,ruby-rspec-core)
8950 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
8952 "Compare Open API Initiative specification files")
8954 "Swagger::Diff is a utility for comparing two different Open API
8955 Initiative (OAI) specifications (formerly known as Swagger specifications).
8956 It is intended to determine whether a newer API specification is
8957 backwards-compatible with an older API specification.")
8958 (home-page "https://github.com/civisanalytics/swagger-diff")
8959 (license license:bsd-3)))
8961 (define-public ruby-reverse-markdown
8963 (name "ruby-reverse-markdown")
8968 (uri (rubygems-uri "reverse_markdown" version))
8971 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
8972 (build-system ruby-build-system)
8974 `(("ruby-nokogiri" ,ruby-nokogiri)))
8976 `(("bundler" ,bundler)
8977 ("ruby-rspec" ,ruby-rspec)
8978 ("ruby-kramdown" ,ruby-kramdown)
8979 ("ruby-simplecov" ,ruby-simplecov)))
8982 (modify-phases %standard-phases
8984 (lambda* (#:key tests? #:allow-other-keys)
8988 (synopsis "Convert HTML into Markdown")
8990 "This Ruby module allows you to map simple HTML back into
8991 Markdown---e.g., if you want to import existing HTML data in your
8993 (home-page "https://github.com/xijo/reverse_markdown")
8994 (license license:wtfpl2)))
8996 (define-public ruby-solargraph
8998 (name "ruby-solargraph")
9003 (uri (rubygems-uri "solargraph" version))
9006 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
9007 (build-system ruby-build-system)
9009 `(("ruby-backport" ,ruby-backport)
9010 ("bundler" ,bundler)
9011 ("ruby-htmlentities" ,ruby-htmlentities)
9012 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
9013 ("ruby-maruku" ,ruby-maruku)
9014 ("ruby-nokogiri" ,ruby-nokogiri)
9015 ("ruby-parser" ,ruby-parser)
9016 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
9017 ("ruby-rubocop" ,ruby-rubocop)
9018 ("ruby-thor" ,ruby-thor)
9019 ("ruby-tilt" ,ruby-tilt)
9020 ("ruby-yard" ,ruby-yard)))
9022 `(("ruby-rspec" ,ruby-rspec)
9023 ("ruby-pry" ,ruby-pry)
9024 ("ruby-simplecov" ,ruby-simplecov)
9025 ("ruby-webmock" ,ruby-webmock-2)))
9026 ;; FIXME: can't figure out how to run the tests properly:
9028 ;; An error occurred while loading spec_helper.
9029 ;; Failure/Error: return gem_original_require(path)
9031 ;; cannot load such file -- spec_helper
9035 (modify-phases %standard-phases
9037 (lambda* (#:key tests? #:allow-other-keys)
9042 "IDE tools for code completion, inline documentation, and static analysis")
9044 "Solargraph provides a comprehensive suite of tools for Ruby
9045 programming: intellisense, diagnostics, inline documentation, and type
9047 (home-page "https://solargraph.org/")
9048 (license license:expat)))
9050 (define-public ruby-wayback-machine-downloader
9052 (name "ruby-wayback-machine-downloader")
9058 "wayback_machine_downloader"
9062 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
9063 (build-system ruby-build-system)
9065 '(#:tests? #f)) ; no tests
9066 (synopsis "Download archived websites from the Wayback Machine")
9068 "Wayback Machine Downloader is a command line tool for downloading
9069 websites from the Internet Archive's Wayback Machine (archive.org).
9070 It allows fine grained control over what to download by specifying
9071 which snapshots to consider and what files to include.")
9073 "https://github.com/hartator/wayback-machine-downloader")
9074 (license license:expat)))