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, 2020, 2021 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>
23 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;; Copyright © 2020, 2021 Nicolas Goaziou <mail@nicolasgoaziou.fr>
25 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
26 ;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de>
27 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
28 ;;; Copyright © 2021 EuAndreh <eu@euandre.org>
29 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
31 ;;; This file is part of GNU Guix.
33 ;;; GNU Guix is free software; you can redistribute it and/or modify it
34 ;;; under the terms of the GNU General Public License as published by
35 ;;; the Free Software Foundation; either version 3 of the License, or (at
36 ;;; your option) any later version.
38 ;;; GNU Guix is distributed in the hope that it will be useful, but
39 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
40 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 ;;; GNU General Public License for more details.
43 ;;; You should have received a copy of the GNU General Public License
44 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46 (define-module (gnu packages ruby)
47 #:use-module ((guix licenses) #:prefix license:)
48 #:use-module (gnu packages)
49 #:use-module (gnu packages bison)
50 #:use-module (gnu packages c)
51 #:use-module (gnu packages check)
52 #:use-module (gnu packages compression)
53 #:use-module (gnu packages crypto)
54 #:use-module (gnu packages curl)
55 #:use-module (gnu packages databases)
56 #:use-module (gnu packages dbm)
57 #:use-module (gnu packages rails)
58 #:use-module (gnu packages readline)
59 #:use-module (gnu packages autotools)
60 #:use-module (gnu packages haskell-xyz)
61 #:use-module (gnu packages java)
62 #:use-module (gnu packages libffi)
63 #:use-module (gnu packages libidn)
64 #:use-module (gnu packages linux)
65 #:use-module (gnu packages lsof)
66 #:use-module (gnu packages maths)
67 #:use-module (gnu packages ncurses)
68 #:use-module (gnu packages networking)
69 #:use-module (gnu packages node)
70 #:use-module (gnu packages protobuf)
71 #:use-module (gnu packages python)
72 #:use-module (gnu packages python-xyz)
73 #:use-module (gnu packages ragel)
74 #:use-module (gnu packages rsync)
75 #:use-module (gnu packages sqlite)
76 #:use-module (gnu packages tls)
77 #:use-module (gnu packages version-control)
78 #:use-module (guix packages)
79 #:use-module (guix download)
80 #:use-module (guix git-download)
81 #:use-module (guix gexp)
82 #:use-module (guix utils)
83 #:use-module (guix build-system gnu)
84 #:use-module (gnu packages xml)
85 #:use-module (gnu packages web)
86 #:use-module (guix build-system ruby)
87 #:use-module ((srfi srfi-1) #:select (alist-delete)))
89 (define %prawn-project-licenses
90 ;; This set of licenses applies to most (all?) components of the Prawn
91 ;; project (it is triple licensed).
103 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
104 (version-major+minor version)
105 "/ruby-" version ".tar.xz"))
108 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
109 (modules '((guix build utils)))
111 ;; Remove bundled libffi
112 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
114 (build-system gnu-build-system)
116 `(#:test-target "test"
117 #:configure-flags '("--enable-shared") ; dynamic linking
119 (modify-phases %standard-phases
120 (add-before 'configure 'replace-bin-sh-and-remove-libffi
122 (substitute* '("Makefile.in"
127 "test/rubygems/test_gem_ext_configure_builder.rb"
128 "test/rdoc/test_rdoc_parser.rb"
129 "test/ruby/test_rubyoptions.rb"
130 "test/ruby/test_process.rb"
131 "test/ruby/test_system.rb"
133 (("/bin/sh") (which "sh")))
136 `(("readline" ,readline)
143 (list (search-path-specification
144 (variable "GEM_PATH")
145 (files (list (string-append "lib/ruby/vendor_ruby"))))))
146 (synopsis "Programming language interpreter")
147 (description "Ruby is a dynamic object-oriented programming language with
148 a focus on simplicity and productivity.")
149 (home-page "https://www.ruby-lang.org")
150 (license license:ruby)))
152 (define-public ruby-2.7
159 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
160 (version-major+minor version)
161 "/ruby-" version ".tar.gz"))
164 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
165 (modules '((guix build utils)))
167 ;; Remove bundled libffi
168 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
171 `(#:test-target "test"
172 #:configure-flags '("--enable-shared") ; dynamic linking
174 (modify-phases %standard-phases
175 (add-before 'configure 'replace-bin-sh-and-remove-libffi
177 (substitute* '("configure.ac"
178 "template/Makefile.in"
179 "lib/rubygems/installer.rb"
184 "test/rubygems/test_gem_ext_configure_builder.rb"
185 "test/rdoc/test_rdoc_parser.rb"
186 "test/ruby/test_rubyoptions.rb"
187 "test/ruby/test_process.rb"
188 "test/ruby/test_system.rb"
190 (("/bin/sh") (which "sh")))
193 `(("autoconf" ,autoconf)))))
195 (define-public ruby-3.0
202 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
203 (version-major+minor version)
204 "/ruby-" version ".tar.xz"))
207 "1cbcixwnr0y8q0lg67wjgplp06kjd6p6hjjh680csv3v0bpsxgv8"))))))
209 (define-public ruby-2.5
216 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
217 (version-major+minor version)
218 "/ruby-" version ".tar.xz"))
221 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
222 (modules '((guix build utils)))
224 ;; Remove bundled libffi
225 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
228 (define-public ruby-2.4
235 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
236 (version-major+minor version)
237 "/ruby-" version ".tar.xz"))
240 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
241 (modules '((guix build utils)))
243 ;; Remove bundled libffi
244 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
255 (url "https://github.com/mruby/mruby")
257 (file-name (git-file-name name version))
260 "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3"))))
261 (build-system gnu-build-system)
263 `(#:test-target "test"
265 (modify-phases %standard-phases
267 (add-after 'unpack 'enable-verbose-tests
269 (substitute* "Makefile"
270 (("ruby ./minirake" m)
271 (string-append m " --verbose")))
273 (add-after 'unpack 'disable-broken-tests
275 (substitute* "mrbgems/mruby-io/test/io.rb"
276 (("assert\\('IO.popen.+$" m)
277 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
278 (("assert\\('IO#isatty.+$" m)
279 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
280 ;; This one is really weird. The *expected* output is all wrong.
281 (("assert\\('`cmd`.*" m)
282 (string-append m "skip \"Disable for Guix\"\n"))
284 (string-append (which "echo") " foo")))
286 ;; There is no install target
288 (lambda* (#:key outputs #:allow-other-keys)
289 (let* ((out (assoc-ref outputs "out"))
290 (bin (string-append out "/bin"))
291 (lib (string-append out "/lib")))
293 (copy-recursively "build/host/bin" bin)
295 (copy-recursively "build/host/lib" lib))
300 (home-page "https://github.com/mruby/mruby")
301 (synopsis "Lightweight Ruby")
302 (description "mruby is the lightweight implementation of the Ruby
303 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
304 embedded within your application.")
305 (license license:expat)))
307 (define-public ruby-commander
309 (name "ruby-commander")
314 (uri (rubygems-uri "commander" version))
317 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
318 (build-system ruby-build-system)
320 `(#:test-target "spec"
322 (modify-phases %standard-phases
323 ;; Don't run or require rubocop, the code linting tool, as this is a
325 (add-after 'unpack 'dont-run-rubocop
327 (substitute* "Rakefile"
329 ((".*RuboCop.*") ""))
332 `(("ruby-highline" ,ruby-highline)))
334 `(("bundler" ,bundler)
335 ("ruby-rspec-core" ,ruby-rspec-core)
336 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
337 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
338 ("ruby-simplecov" ,ruby-simplecov)))
339 (home-page "https://github.com/commander-rb/commander")
340 (synopsis "Library for building Ruby command-line executables")
342 "Commander aims to be a complete solution for Ruby command-line
343 executables. Commander bridges the gap between other terminal related
344 libraries (OptionParser, HighLine), while providing many new features, and an
346 (license license:expat)))
348 (define-public ruby-highline
350 (name "ruby-highline")
355 (uri (rubygems-uri "highline" version))
358 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
359 (build-system ruby-build-system)
361 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
363 `(("bundler" ,bundler)
364 ("ruby-code-statistics" ,ruby-code-statistics)))
366 "HighLine helps you build command-line interfaces")
368 "HighLine provides a high-level IO library that provides validation,
369 type conversion, and more for command-line interfaces. HighLine also includes
370 a menu system for providing multiple options to the user.")
371 (home-page "https://github.com/JEG2/highline")
372 (license (list license:gpl2 license:ruby))))
374 (define-public ruby-hoe
380 (uri (rubygems-uri "hoe" version))
383 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
384 (build-system ruby-build-system)
387 (modify-phases %standard-phases
388 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
389 ;; variable is set, so unset it for the duration of the tests.
391 ;; TestHoe#test_possibly_better
392 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
393 ;; Expected: 2019-11-12 00:00:00 UTC
394 ;; Actual: 1970-01-01 00:00:00 UTC
395 (add-before 'check 'unset-SOURCE-DATE-EPOCH
397 (unsetenv "SOURCE_DATE_EPOCH")
399 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
401 (setenv "SOURCE_DATE_EPOCH" "1")
403 (synopsis "Ruby project management helper")
405 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
406 maintain, and release projects and includes a dynamic plug-in system allowing
407 for easy extensibility. Hoe ships with plug-ins for all the usual project
408 tasks including rdoc generation, testing, packaging, deployment, and
410 (home-page "https://www.zenspider.com/projects/hoe.html")
411 (license license:expat)))
413 (define-public ruby-rake-compiler
415 (name "ruby-rake-compiler")
419 (uri (rubygems-uri "rake-compiler" version))
422 "11sxgw10jrd6a4irb51jjwam9wikixn5kss11pw4b80cmh32yvpf"))))
423 (build-system ruby-build-system)
425 '(#:tests? #f)) ; needs cucumber
426 (synopsis "Building and packaging helper for Ruby native extensions")
427 (description "Rake-compiler provides a framework for building and
428 packaging native C and Java extensions in Ruby.")
429 (home-page "https://github.com/rake-compiler/rake-compiler")
430 (license license:expat)))
432 (define-public ruby-rsync
439 (uri (rubygems-uri "rsync" version))
442 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
443 (build-system ruby-build-system)
445 '(#:test-target "spec"
447 (modify-phases %standard-phases
448 (add-after 'unpack 'remove-coveralls-requirement
450 (substitute* "spec/spec_helper.rb"
451 (("require 'coveralls'") "")
452 (("Coveralls.wear!") ""))
455 `(("bundler" ,bundler)
457 ("ruby-rspec-core" ,ruby-rspec-core)
458 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
459 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
460 (home-page "https://github.com/jbussdieker/ruby-rsync")
461 (synopsis "Ruby wrapper around rsync")
463 "Ruby Rsync is a Ruby library that can synchronize files between remote
464 hosts by wrapping the @file{rsync} binary.")
465 (license license:expat)))
467 (define-public ruby-i18n
473 (uri (rubygems-uri "i18n" version))
476 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
477 (build-system ruby-build-system)
479 '(#:tests? #f)) ; no tests
480 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
481 (synopsis "Internationalization library for Ruby")
482 (description "Ruby i18n is an internationalization and localization
483 solution for Ruby programs. It features translation and localization,
484 interpolation of values to translations, pluralization, customizable
485 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
486 translation data, custom key/scope separator, custom exception handlers, and
487 an extensible architecture with a swappable backend.")
488 (home-page "https://github.com/ruby-i18n/i18n")
489 (license license:expat)))
491 (define-public ruby-iruby
498 (uri (rubygems-uri "iruby" version))
501 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
502 (build-system ruby-build-system)
504 ;; TODO: Tests currently fail.
506 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
509 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
512 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
515 (modify-phases %standard-phases
516 (add-after 'unpack 'patch-ipython
517 (lambda* (#:key inputs #:allow-other-keys)
518 (substitute* "lib/iruby/command.rb"
522 (assoc-ref inputs "python-ipython")
524 (("Kernel\\.exec\\('")
527 (assoc-ref inputs "python-ipython")
531 `(("python-ipython" ,python-ipython)))
533 `(("ruby-bond" ,ruby-bond)
534 ("ruby-data_uri" ,ruby-data_uri)
535 ("ruby-mimemagic" ,ruby-mimemagic)
536 ("ruby-multi-json" ,ruby-multi-json)
537 ("ruby-cztop" ,ruby-cztop)
539 ("ruby-pry" ,ruby-pry)))
540 (synopsis "Ruby kernel for Jupyter/IPython")
542 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
544 (home-page "https://github.com/SciRuby/iruby")
545 (license license:expat)))
547 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
548 ;; dependencies use RSpec for their test suites! To avoid these circular
549 ;; dependencies, we disable tests for all of the RSpec-related packages.
550 (define-public ruby-rspec-support
552 (name "ruby-rspec-support")
556 (uri (rubygems-uri "rspec-support" version))
559 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
560 (build-system ruby-build-system)
562 '(#:tests? #f)) ; avoid dependency cycles
563 (synopsis "RSpec support library")
564 (description "Support utilities for RSpec gems.")
565 (home-page "https://github.com/rspec/rspec-support")
566 (license license:expat)))
568 (define-public ruby-rspec-core
570 (name "ruby-rspec-core")
574 (uri (rubygems-uri "rspec-core" version))
577 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
578 (build-system ruby-build-system)
580 '(#:tests? #f)) ; avoid dependency cycles
582 `(("ruby-rspec-support" ,ruby-rspec-support)))
583 (synopsis "RSpec core library")
584 (description "Rspec-core provides the RSpec test runner and example
586 (home-page "https://github.com/rspec/rspec-core")
587 (license license:expat)))
589 (define-public ruby-rspec-core-2
590 (package (inherit ruby-rspec-core)
594 (uri (rubygems-uri "rspec-core" version))
597 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
598 (propagated-inputs `())))
600 (define-public ruby-diff-lcs
602 (name "ruby-diff-lcs")
606 (uri (rubygems-uri "diff-lcs" version))
609 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
610 (build-system ruby-build-system)
612 '(#:tests? #f)) ; avoid dependency cycles
613 (synopsis "Compute the difference between two Enumerable sequences")
614 (description "Diff::LCS computes the difference between two Enumerable
615 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
616 It includes utilities to create a simple HTML diff output format and a
617 standard diff-like tool.")
618 (home-page "https://github.com/halostatue/diff-lcs")
619 (license license:expat)))
621 (define-public ruby-rspec-expectations
623 (name "ruby-rspec-expectations")
627 (uri (rubygems-uri "rspec-expectations" version))
630 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
631 (build-system ruby-build-system)
633 '(#:tests? #f)) ; avoid dependency cycles
635 `(("ruby-rspec-support" ,ruby-rspec-support)
636 ("ruby-diff-lcs" ,ruby-diff-lcs)))
637 (synopsis "RSpec expectations library")
638 (description "Rspec-expectations provides a simple API to express expected
639 outcomes of a code example.")
640 (home-page "https://github.com/rspec/rspec-expectations")
641 (license license:expat)))
643 (define-public ruby-rspec-expectations-2
644 (package (inherit ruby-rspec-expectations)
648 (uri (rubygems-uri "rspec-expectations" version))
651 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
653 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
655 (define-public ruby-sorcerer
657 (name "ruby-sorcerer")
662 (uri (rubygems-uri "sorcerer" version))
665 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
666 (build-system ruby-build-system)
667 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
668 (description "Sorcerer generates Ruby code from a Ripper-like abstract
669 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
670 snippets of Ruby code, expressible in a single line. Longer examples may be
671 re-sourced, but they will be rendered in a single-line format.")
672 (home-page "https://github.com/rspec-given/sorcerer")
673 (license license:expat)))
675 (define-public ruby-given-core
677 (name "ruby-given-core")
682 (uri (rubygems-uri "given_core" version))
685 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
686 (build-system ruby-build-system)
687 (arguments '(#:tests? #f)) ;no test suite for the core package
689 `(("ruby-sorcerer" ,ruby-sorcerer)))
690 (synopsis "Core abstractions used by rspec-given and minitest-given")
691 (description "Given_core is the basic functionality behind rspec-given and
692 minitest-given, extensions that allow the use of Given/When/Then terminology
693 when defining specifications.")
694 (home-page "https://github.com/rspec-given/rspec-given")
695 (license license:expat)))
697 (define-public ruby-rspec-given
699 (name "ruby-rspec-given")
704 (uri (rubygems-uri "rspec-given" version))
707 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
708 (build-system ruby-build-system)
712 (modify-phases %standard-phases
713 (add-after 'unpack 'fix-rakefile
715 (substitute* '("Rakefile" "rakelib/gemspec.rake")
716 (("require '\\./lib/given/.*") "")
717 (("Given::VERSION") (format #f "~s" ,version))
718 ;; Fix the error: "cannot load such file -- example_helper"
720 "sh \"rspec -Ilib:examples"))
722 (add-after 'extract-gemspec 'delete-failing-tests
723 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
725 (substitute* ".gemspec"
726 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
728 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
730 (delete-file "spec/lib/given/natural_assertion_spec.rb")
731 (delete-file "examples/integration/failing_messages_spec.rb")
734 `(("ruby-rspec" ,ruby-rspec)
735 ("ruby-minitest" ,ruby-minitest)))
737 `(("ruby-given-core" ,ruby-given-core)
738 ("ruby-rspec" ,ruby-rspec)))
739 (synopsis "Given/When/Then for RSpec and Minitest")
740 (description "Given is an RSpec extension that allows the use of
741 Given/When/Then terminology when defining specifications, in a way similar to
742 the Cucumber Gherkin language.")
743 (home-page "https://github.com/rspec-given/rspec-given")
744 (license license:expat)))
746 (define-public ruby-rspec-its
748 (name "ruby-rspec-its")
754 (url "https://github.com/rspec/rspec-its")
755 (commit (string-append "v" version))))
756 (file-name (git-file-name name version))
759 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
760 (build-system ruby-build-system)
762 `(#:test-target "spec"
764 (modify-phases %standard-phases
765 (add-after 'unpack 'dont-install-gems-from-gemfile
767 (substitute* "Gemfile"
768 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
771 (add-before 'build 'loosen-ffi-requirement
773 ;; Accept any version of ruby-ffi.
774 (substitute* "Gemfile"
775 ((" gem 'ffi', '~> 1\\.9\\.25'")
778 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
780 (substitute* "rspec-its.gemspec"
781 (("rake.*") "rake'\n")
782 (("spec.add_development_dependency 'cucumber'.*")
783 "spec.add_development_dependency 'cucumber'\n")
784 (("bundler.*") "bundler'\n")
785 (("\"aruba.*") "'aruba'\n"))
788 `(("ruby-rspec-core" ,ruby-rspec-core)
789 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
791 `(("bundler" ,bundler)
792 ("ruby-cucumber" ,ruby-cucumber)
793 ("ruby-ffi" ,ruby-ffi)
794 ("ruby-aruba" ,ruby-aruba)))
795 (synopsis "RSpec extension that provides the @code{its} method")
797 "RSpec::Its provides the its method as a short-hand to specify the expected
798 value of an attribute. For example, one can use @code{its(:size)\\{should
800 (home-page "https://github.com/rspec/rspec-its")
801 (license license:expat)))
803 ;;; This variant is used to break a cycle with ruby-protobuf.
804 (define-public ruby-rspec-its-minimal
807 (inherit ruby-rspec-its)
809 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
810 ((#:tests? _ #f) #f)))
811 (native-inputs '()))))
813 (define-public ruby-rspec-mocks
815 (name "ruby-rspec-mocks")
819 (uri (rubygems-uri "rspec-mocks" version))
822 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
823 (build-system ruby-build-system)
825 '(#:tests? #f)) ; avoid dependency cycles
827 `(("ruby-rspec-support" ,ruby-rspec-support)
828 ("ruby-diff-lcs" ,ruby-diff-lcs)))
829 (synopsis "RSpec stubbing and mocking library")
830 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
831 support for stubbing and mocking.")
832 (home-page "https://github.com/rspec/rspec-mocks")
833 (license license:expat)))
835 (define-public ruby-rspec-mocks-2
836 (package (inherit ruby-rspec-mocks)
840 (uri (rubygems-uri "rspec-mocks" version))
843 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
845 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
847 (define-public ruby-rspec-rerun
849 (name "ruby-rspec-rerun")
854 (uri (rubygems-uri "rspec-rerun" version))
857 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
858 (build-system ruby-build-system)
860 '(;; No included tests
862 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
863 (synopsis "Track failed RSpec tests to re-run them")
865 "This package provides an automated way to track, and then re-run failed
867 (home-page "https://github.com/dblock/rspec-rerun")
868 (license license:expat)))
870 (define-public ruby-rspec-wait
872 (name "ruby-rspec-wait")
877 (uri (rubygems-uri "rspec-wait" version))
880 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
881 (build-system ruby-build-system)
884 (modify-phases %standard-phases
887 (invoke "rake" "spec"))))))
889 `(("bundler" ,bundler)))
891 `(("ruby-rspec" ,ruby-rspec)))
892 (home-page "https://github.com/laserlemon/rspec-wait")
893 (synopsis "Wait for conditions in RSpec")
895 "RSpec::Wait strives to make it easier to test asynchronous or slow
897 (license license:expat)))
899 (define-public ruby-rspec
905 (uri (rubygems-uri "rspec" version))
908 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
909 (build-system ruby-build-system)
911 '(#:tests? #f)) ; avoid dependency cycles
913 `(("ruby-rspec-core" ,ruby-rspec-core)
914 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
915 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
916 (synopsis "Behavior-driven development framework for Ruby")
917 (description "RSpec is a behavior-driven development (BDD) framework for
918 Ruby. This meta-package includes the RSpec test runner, along with the
919 expectations and mocks frameworks.")
920 (home-page "https://rspec.info/")
921 (license license:expat)))
923 (define-public ruby-rspec-2
924 (package (inherit ruby-rspec)
928 (uri (rubygems-uri "rspec" version))
931 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
933 `(("ruby-rspec-core" ,ruby-rspec-core-2)
934 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
935 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
937 ;; Bundler is yet another source of circular dependencies, so we must disable
938 ;; its test suite as well.
939 (define-public bundler
945 (uri (rubygems-uri "bundler" version))
948 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
949 (build-system ruby-build-system)
951 '(#:tests? #f)) ; avoid dependency cycles
952 (synopsis "Ruby gem bundler")
953 (description "Bundler automatically downloads and installs a list of gems
954 specified in a \"Gemfile\", as well as their dependencies.")
955 (home-page "https://bundler.io/")
956 (license license:expat)))
958 (define-public ruby-builder
960 (name "ruby-builder")
964 (uri (rubygems-uri "builder" version))
967 "045wzckxpwcqzrjr353cxnyaxgf0qg22jh00dcx7z38cys5g1jlr"))))
968 (build-system ruby-build-system)
971 (modify-phases %standard-phases
972 (add-after 'unpack 'do-not-use-rvm
974 (substitute* "rakelib/tags.rake"
975 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
977 (synopsis "Ruby library to create structured data")
978 (description "Builder provides a number of builder objects that make it
979 easy to create structured data. Currently the following builder objects are
980 supported: XML Markup and XML Events.")
981 (home-page "https://github.com/jimweirich/builder")
982 (license license:expat)))
984 (define-public ruby-bump
991 (uri (rubygems-uri "bump" version))
994 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
995 (build-system ruby-build-system)
997 '(;; No included tests
999 (synopsis "Tool for working with Rubygems")
1001 "Bump provides commands to manage Rubygem versioning, updating to the
1002 next patch version for example.")
1003 (home-page "https://github.com/gregorym/bump")
1004 (license license:expat)))
1006 (define-public ruby-rjb
1012 (uri (rubygems-uri "rjb" version))
1015 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
1016 (build-system ruby-build-system)
1018 `(#:tests? #f ; no rakefile
1020 (modify-phases %standard-phases
1021 (add-before 'build 'set-java-home
1022 (lambda* (#:key inputs #:allow-other-keys)
1023 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1026 `(("jdk" ,icedtea "jdk")))
1027 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1028 (description "RJB is a bridge program that connects Ruby and Java via the
1029 Java Native Interface.")
1030 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1031 (license license:lgpl2.1+)))
1033 (define-public ruby-log4r
1040 (uri (rubygems-uri "log4r" version))
1043 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1044 (build-system ruby-build-system)
1046 '(#:tests? #f)) ; no Rakefile in gem
1047 (synopsis "Flexible logging library for Ruby")
1048 (description "Comprehensive and flexible logging library written
1049 in Ruby for use in Ruby programs. It features a hierarchical logging
1050 system of any number of levels, custom level names, logger
1051 inheritance, multiple output destinations per log event, execution
1052 tracing, custom formatting, thread safteyness, XML and YAML
1053 configuration, and more.")
1054 (home-page "http://log4r.rubyforge.org/")
1055 (license license:bsd-3)))
1057 (define-public ruby-atoulme-antwrap
1059 (name "ruby-atoulme-antwrap")
1063 (uri (rubygems-uri "atoulme-Antwrap" version))
1066 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1067 (build-system ruby-build-system)
1068 ;; Test data required for most of the tests are not included.
1069 (arguments `(#:tests? #f))
1071 `(("ruby-hoe" ,ruby-hoe)))
1073 `(("ruby-rjb" ,ruby-rjb)))
1074 (synopsis "Ruby wrapper for the Ant build tool")
1075 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1076 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1078 (home-page "http://rubyforge.org/projects/antwrap/")
1079 (license license:expat)))
1081 (define-public ruby-atoulme-saikuro
1083 (name "ruby-atoulme-saikuro")
1087 (uri (rubygems-uri "atoulme-Saikuro" version))
1090 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1091 (build-system ruby-build-system)
1092 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1094 (arguments `(#:tests? #f))
1095 (synopsis "Cyclomatic complexity analyzer")
1096 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1097 given Ruby source code Saikuro will generate a report listing the cyclomatic
1098 complexity of each method found. In addition, Saikuro counts the number of
1099 lines per method and can generate a listing of the number of tokens on each
1101 (home-page "http://www.github.com/atoulme/Saikuro")
1102 ;; File headers contain the BSD-3 license and the README.rdoc says that
1103 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1104 ;; of the Expat license.
1105 (license license:bsd-3)))
1107 (define-public ruby-awesome-print
1109 (name "ruby-awesome-print")
1114 (uri (rubygems-uri "awesome_print" version))
1117 "14arh1ixfsd6j5md0agyzvksm5svfkvchb90fp32nn7y3avcmc2h"))))
1118 (build-system ruby-build-system)
1121 (modify-phases %standard-phases
1124 ;; Remove failing test.
1125 (for-each delete-file
1126 '("spec/ext/nokogiri_spec.rb"
1127 "spec/colors_spec.rb"
1128 "spec/formats_spec.rb"
1129 "spec/methods_spec.rb"
1131 "spec/objects_spec.rb"))
1132 (invoke "rspec" "-c" "spec"))))))
1134 `(("ruby-nokogiri" ,ruby-nokogiri)
1135 ("ruby-rspec" ,ruby-rspec)
1136 ("ruby-simplecov" ,ruby-simplecov)))
1137 (synopsis "Pretty print Ruby objects to visualize their structure")
1139 "Ruby dubugging companion: pretty print Ruby objects to visualize their
1140 structure. Supports custom object formatting via plugins.")
1141 (home-page "https://github.com/awesome-print/awesome_print")
1142 (license license:expat)))
1144 (define-public ruby-pandoc-ruby
1146 (name "ruby-pandoc-ruby")
1150 (method git-fetch) ;the gem lacks many test files
1152 (url "https://github.com/xwmx/pandoc-ruby")
1154 (file-name (git-file-name name version))
1157 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1158 (build-system ruby-build-system)
1161 (modify-phases %standard-phases
1162 (add-after 'unpack 'disable-failing-tests
1163 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1164 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1166 (substitute* "test/test_conversions.rb"
1167 (("next if from == to.*" all)
1170 " next if ['plain', 'beamer'].include? to\n")))
1172 (add-after 'unpack 'patch-pandoc-path
1173 (lambda* (#:key inputs #:allow-other-keys)
1174 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1176 (substitute* "lib/pandoc-ruby.rb"
1177 (("@@pandoc_path = 'pandoc'")
1178 (format #f "@@pandoc_path = '~a'" pandoc)))
1179 (substitute* "test/test_pandoc_ruby.rb"
1180 (("('|\")pandoc" _ quote)
1181 (string-append quote pandoc))
1185 (add-after 'extract-gemspec 'remove-Gemfile.lock
1187 (delete-file "Gemfile.lock")
1188 (substitute* "pandoc-ruby.gemspec"
1189 (("Gemfile\\.lock") ""))
1192 `(("ruby-mocha" ,ruby-mocha)))
1194 `(("pandoc" ,pandoc)))
1195 (synopsis "Ruby wrapper for Pandoc")
1196 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1197 command line tools for converting one markup format to another. Pandoc can
1198 convert documents from a variety of formats including markdown,
1199 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1200 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1201 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1202 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1204 (home-page "https://github.com/xwmx/pandoc-ruby")
1205 (license license:expat)))
1207 (define-public ruby-patron
1209 (name "ruby-patron")
1214 (uri (rubygems-uri "patron" version))
1217 "0523gddx88zql2mq6655k60gy2ac8vybpzkcf90lmd9nx7wl3fi9"))))
1218 (build-system ruby-build-system)
1222 `(#:tests? #f)) ; no included tests
1223 (synopsis "Ruby HTTP client library based on @code{libcurl}")
1225 "Patron is a Ruby HTTP client library based on @code{libcurl}. It does
1226 not try to expose the full power (read complexity) of @code{libcurl} but
1227 instead tries to provide a sane API while taking advantage of @code{libcurl}
1229 (home-page "https://github.com/toland/patron")
1230 (license license:expat)))
1232 (define-public ruby-slim
1239 (uri (rubygems-uri "slim" version))
1242 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1243 (build-system ruby-build-system)
1246 (modify-phases %standard-phases
1247 ;; See: https://github.com/slim-template/slim/issues/857 and
1248 ;; https://github.com/slim-template/slim/issues/858.
1249 (add-after 'unpack 'skip-broken-tests
1251 (substitute* "test/core/test_embedded_engines.rb"
1252 (("def test_render_with_markdown")
1253 "def skipped_test_render_with_markdown"))
1254 (substitute* "test/translator/test_translator.rb"
1255 (("raise (\"Missing test for.*)" _ tail)
1256 (string-append "print " tail)))
1258 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1259 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1260 (add-after 'unpack 'prevent-bundler-interference
1262 (substitute* "Rakefile"
1263 (("require 'bundler/setup'") "nil")
1264 (("Bundler::GemHelper\\.install_tasks") "nil"))
1267 `(("ruby-rack-test" ,ruby-rack-test)
1268 ("ruby-sinatra" ,ruby-sinatra)))
1270 `(("ruby-temple" ,ruby-temple)
1271 ("ruby-tilt" ,ruby-tilt)))
1272 (synopsis "Minimalist template language for Ruby")
1273 (description "Slim is a template language for Ruby that aims to reduce the
1274 syntax to the minimum while remaining clear.")
1275 (home-page "http://slim-lang.com/")
1276 (license license:expat)))
1278 (define-public ruby-asciidoctor
1280 (name "ruby-asciidoctor")
1284 (method git-fetch) ;the gem release lacks a Rakefile
1286 (url "https://github.com/asciidoctor/asciidoctor")
1287 (commit (string-append "v" version))))
1288 (file-name (git-file-name name version))
1291 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1292 (build-system ruby-build-system)
1294 `(#:test-target "test:all"
1296 (modify-phases %standard-phases
1297 (replace 'replace-git-ls-files
1299 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1300 ;; git ls-files output is merged in ruby-build-system.
1301 (substitute* "asciidoctor.gemspec"
1302 (("`git ls-files -z`")
1303 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1305 (add-after 'extract-gemspec 'strip-version-requirements
1307 (delete-file "Gemfile")
1308 (substitute* "asciidoctor.gemspec"
1309 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1310 (string-append stripped "\n")))
1313 `(("ruby-erubis" ,ruby-erubis)
1314 ("ruby-minitest" ,ruby-minitest)
1315 ("ruby-nokogiri" ,ruby-nokogiri)
1316 ("ruby-asciimath" ,ruby-asciimath)
1317 ("ruby-coderay" ,ruby-coderay)
1318 ("ruby-cucumber" ,ruby-cucumber)
1319 ("ruby-haml" ,ruby-haml)
1320 ("ruby-rouge" ,ruby-rouge)
1321 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1322 ("ruby-simplecov" ,ruby-simplecov)
1323 ("ruby-slim" ,ruby-slim)
1324 ("ruby-tilt" ,ruby-tilt)))
1325 (synopsis "Converter from AsciiDoc content to other formats")
1326 (description "Asciidoctor is a text processor and publishing toolchain for
1327 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1329 (home-page "https://asciidoctor.org")
1330 (license license:expat)))
1332 (define-public ruby-prawn-icon
1334 (name "ruby-prawn-icon")
1339 (uri (rubygems-uri "prawn-icon" version))
1342 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1343 (build-system ruby-build-system)
1345 `(#:test-target "spec"
1346 #:phases (modify-phases %standard-phases
1347 (add-after 'unpack 'remove-unnecessary-dependencies
1349 (substitute* '("Rakefile" "spec/spec_helper.rb")
1350 ((".*[Bb]undler.*") "")
1351 (("^require 'rubocop.*") "")
1352 (("^RuboCop.*") ""))
1355 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1356 ("ruby-pdf-reader" ,ruby-pdf-reader)
1357 ("ruby-rspec" ,ruby-rspec)
1358 ("ruby-simplecov" ,ruby-simplecov)))
1360 `(("ruby-prawn" ,ruby-prawn)))
1361 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1362 (description "@code{Prawn::Icon} provides various icon fonts including
1363 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1365 (home-page "https://github.com/jessedoyle/prawn-icon/")
1366 (license %prawn-project-licenses)))
1368 (define-public ruby-css-parser
1370 (name "ruby-css-parser")
1375 (uri (rubygems-uri "css_parser" version))
1378 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1379 (build-system ruby-build-system)
1380 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1382 `(("ruby-addressable" ,ruby-addressable)))
1383 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1384 (description "This package allows loading, parsing and cascading Cascading
1385 Style Sheets (CSS) rule sets in Ruby.")
1386 (home-page "https://github.com/premailer/css_parser")
1387 (license license:expat)))
1389 (define-public ruby-prawn-svg
1391 (name "ruby-prawn-svg")
1396 (uri (rubygems-uri "prawn-svg" version))
1399 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1400 (build-system ruby-build-system)
1402 `(#:phases (modify-phases %standard-phases
1403 (add-after 'unpack 'do-not-use-bundler
1405 (substitute* "spec/spec_helper.rb"
1406 ((".*[Bb]undler.*") ""))
1409 (lambda* (#:key tests? #:allow-other-keys)
1411 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1414 `(("ruby-rspec" ,ruby-rspec)))
1416 `(("ruby-css-parser" ,ruby-css-parser)
1417 ("ruby-prawn" ,ruby-prawn)))
1418 (synopsis "SVG renderer for the Prawn PDF library")
1419 (description "This library allows rendering Scalable Vector Graphics (SVG)
1420 graphics directly into a Portable Document Format (PDF) document using the
1422 (home-page "https://github.com/mogest/prawn-svg")
1423 (license license:expat)))
1425 (define-public ruby-prawn-templates
1427 (name "ruby-prawn-templates")
1433 (url "https://github.com/prawnpdf/prawn-templates")
1435 (file-name (git-file-name name version))
1438 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1439 (build-system ruby-build-system)
1441 `(#:phases (modify-phases %standard-phases
1442 (add-after 'unpack 'do-not-use-bundler
1444 (substitute* "spec/spec_helper.rb"
1445 ((".*[Bb]undler.*") ""))
1448 (lambda* (#:key tests? #:allow-other-keys)
1453 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1454 ("ruby-rspec" ,ruby-rspec)))
1456 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1457 ("ruby-prawn" ,ruby-prawn)))
1458 (synopsis "Prawn extension to include or combine PDF documents")
1459 (description "This @strong{unmaintained} package provides a Prawn
1460 extension that allows including other Portable Document Format (PDF) documents
1461 as background or combining several PDF documents into one. This functionality
1462 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1463 of its many longstanding issues.")
1464 (home-page "https://github.com/prawnpdf/prawn-templates")
1465 (license %prawn-project-licenses)))
1467 (define-public ruby-polyglot
1469 (name "ruby-polyglot")
1474 (uri (rubygems-uri "polyglot" version))
1477 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1478 (build-system ruby-build-system)
1479 (arguments `(#:tests? #f)) ;no test suite
1480 (synopsis "Augment @code{require} to load non-Ruby file types")
1481 (description "The Polyglot library allows a Ruby module to register a
1482 loader for the file type associated with a filename extension, and it augments
1483 @code{require} to find and load matching files.")
1484 (home-page "https://github.com/cjheath/polyglot")
1485 (license license:expat)))
1487 (define-public ruby-treetop
1489 (name "ruby-treetop")
1493 (method git-fetch) ;no test suite in distributed gem
1495 (url "https://github.com/cjheath/treetop")
1496 (commit (string-append "v" version))))
1497 (file-name (git-file-name name version))
1500 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1501 (build-system ruby-build-system)
1503 `(#:test-target "spec"
1505 (modify-phases %standard-phases
1506 (replace 'replace-git-ls-files
1508 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1509 ;; git ls-files output is merged in ruby-build-system.
1510 (substitute* "treetop.gemspec"
1511 (("`git ls-files -z`")
1512 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1515 `(("ruby-activesupport" ,ruby-activesupport)
1516 ("ruby-rr" ,ruby-rr)
1517 ("ruby-rspec" ,ruby-rspec)))
1519 `(("ruby-polyglot" ,ruby-polyglot)))
1520 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1521 (description "This package provides a Ruby-based Parsing Expression
1522 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1523 (home-page "https://github.com/cjheath/treetop")
1524 (license license:expat)))
1526 (define-public ruby-typhoeus
1528 (name "ruby-typhoeus")
1533 (uri (rubygems-uri "typhoeus" version))
1536 "1m22yrkmbj81rzhlny81j427qdvz57yk5wbcf3km0nf3bl6qiygz"))))
1537 (build-system ruby-build-system)
1539 `(#:tests? #f)) ; no included tests
1541 `(("ruby-ethon" ,ruby-ethon)))
1542 (synopsis "@code{libcurl} wrapper in Ruby")
1544 "Like a modern code version of the mythical beast with 100 serpent heads,
1545 Typhoeus runs HTTP requests in parallel while cleanly encapsulating handling
1547 (home-page "https://github.com/typhoeus/typhoeus")
1548 (license license:expat)))
1550 (define-public ruby-rubocop-rspec
1552 (name "ruby-rubocop-rspec")
1558 (url "https://github.com/rubocop-hq/rubocop-rspec")
1559 (commit (string-append "v" version))))
1560 (file-name (git-file-name name version))
1563 "0gdpjpympb6qc77bang759z7z6lckf14ghkx8v6614agxg8l3g5y"))))
1564 (build-system ruby-build-system)
1566 '(#:test-target "internal_investigation"
1568 (modify-phases %standard-phases
1569 (add-before 'check 'set-HOME
1571 (setenv "HOME" "/tmp")
1574 `(("ruby-rubocop" ,ruby-rubocop)
1575 ("ruby-rubocop-ast" ,ruby-rubocop-ast)))
1577 `(("ruby-rack" ,ruby-rack)
1578 ("ruby-rspec" ,ruby-rspec)
1579 ("ruby-rubocop-performance" ,ruby-rubocop-performance)
1580 ("ruby-simplecov" ,ruby-simplecov)
1581 ("ruby-yard" ,ruby-yard)))
1582 (synopsis "Code style checking for RSpec files")
1583 (description "This package provides a plugin for the RuboCop code style
1584 enforcing & linting tool.")
1585 (home-page "https://github.com/rubocop-hq/rubocop-rspec")
1586 (license license:expat)))
1588 (define-public ruby-rubocop-rspec-minimal
1591 (inherit ruby-rubocop-rspec)
1593 (substitute-keyword-arguments (package-arguments ruby-rubocop-rspec)
1594 ((#:tests? _ #f) #f)))
1595 (propagated-inputs '())
1596 (native-inputs '()))))
1598 (define-public ruby-rubocop-performance
1600 (name "ruby-rubocop-performance")
1606 (url "https://github.com/rubocop-hq/rubocop-performance")
1607 (commit (string-append "v" version))))
1608 (file-name (git-file-name name version))
1611 "04lmkmz6c0ccs5miikrww7lakp7y6xz00g7b47ay7rn7sx5j6qyf"))))
1612 (build-system ruby-build-system)
1614 `(#:tests? #f ; tests require a git checkout of rubocop's source code.
1616 (modify-phases %standard-phases
1617 (replace 'replace-git-ls-files
1619 (substitute* "rubocop-performance.gemspec"
1620 (("`git ls-files -z config lib LICENSE.txt README.md`")
1621 "`find config lib LICENSE.txt README.md -type f -print0 |sort -z`"))
1623 (add-before 'check 'set-HOME
1625 (setenv "HOME" "/tmp")
1628 `(("ruby-rubocop" ,ruby-rubocop)
1629 ("ruby-rubocop-ast" ,ruby-rubocop-ast)))
1631 `(("ruby-bump" ,ruby-bump)
1632 ("ruby-yard" ,ruby-yard)))
1633 (synopsis "Performance optimizations checkers for Ruby code")
1634 (description "This package provides a collection of RuboCop cops to check
1635 for performance optimizations in Ruby code.")
1636 (home-page "https://docs.rubocop.org/rubocop-performance/")
1637 (license license:expat)))
1639 (define-public ruby-rubocop-performance-minimal
1642 (inherit ruby-rubocop-performance)
1644 (substitute-keyword-arguments (package-arguments ruby-rubocop-performance)
1645 ((#:tests? _ #f) #f)))
1646 (propagated-inputs '())
1647 (native-inputs '()))))
1649 (define-public ruby-gimme
1650 (let ((revision "1")
1651 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1654 (version (git-version "0.5.0" revision commit))
1659 (url "https://github.com/searls/gimme")
1661 (file-name (git-file-name name version))
1664 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1665 (build-system ruby-build-system)
1667 `(("ruby-coveralls" ,ruby-coveralls)
1668 ("ruby-cucumber" ,ruby-cucumber)
1669 ("ruby-pry" ,ruby-pry)
1670 ("ruby-simplecov" ,ruby-simplecov)
1671 ("ruby-rspec-given" ,ruby-rspec-given)))
1673 `(;; The cucumber task fails with error: "index 3 out of matches
1674 ;; (IndexError)", apparently due to our newer Cucumber version.
1675 ;; TODO: Try the "default" task with a future release.
1676 #:test-target "spec"
1678 (modify-phases %standard-phases
1679 (add-after 'extract-gemspec 'prepare-for-tests
1681 ;; Delete failing tests (possibly due to our newer rspec
1683 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1684 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1685 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1686 ;; Fix duplicate version requirements and de-register files.
1687 (delete-file "Gemfile")
1688 (delete-file "Gemfile.lock")
1689 (substitute* "gimme.gemspec"
1690 ((".*\"Gemfile\".*") "")
1691 ((".*\"Gemfile\\.lock\",.*") "")
1692 ((".*(rspec|cucumber).*\">= 0\".*") "")
1693 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1694 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1695 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1696 ;; All of these gems relate to development, and are
1697 ;; unnecessary when running the tests.
1698 ((".*(add|gem).*guard-.*") "")
1699 ((".*(add|gem).*jeweler.*") "")
1700 ((".*(add|gem).*pry.*") "")
1701 ((".*(add|gem).*growl.*") "")
1702 ((".*(add|gem).*rb-fsevent.*") ""))
1704 (synopsis "Lightweight test double library for Ruby")
1705 (description "Gimme is a very lightweight test double library for Ruby,
1706 based on Mockito (a mocking framework for Java). It is an opinionated (but
1707 not noisy) means to facilitate test-driving by enabling the authors to specify
1708 only what they care about.")
1709 (home-page "https://github.com/searls/gimme")
1710 (license license:expat))))
1712 (define-public ruby-standard
1714 (name "ruby-standard")
1718 (method git-fetch) ;no test suite in distributed gem
1720 (url "https://github.com/testdouble/standard")
1721 (commit (string-append "v" version))))
1722 (file-name (git-file-name name version))
1725 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1726 (build-system ruby-build-system)
1728 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1731 (modify-phases %standard-phases
1732 (add-after 'unpack 'relax-version-requiremens
1734 (delete-file "Gemfile")
1735 (delete-file "Gemfile.lock")
1737 (replace 'replace-git-ls-files
1739 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1740 ;; git ls-files output is merged in ruby-build-system.
1741 (substitute* "standard.gemspec"
1742 (("`git ls-files -z`")
1743 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1744 |sort -z|cut -zc3-`"))
1747 `(("ruby-gimme" ,ruby-gimme)
1748 ("ruby-pry" ,ruby-pry)
1749 ("ruby-simplecov" ,ruby-simplecov)))
1751 `(("ruby-rubocop" ,ruby-rubocop)
1752 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1753 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1754 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1755 to save time in the following ways:
1757 @item No configuration.
1758 @item Automatically format code.
1759 @item Catch style issues and programmer errors early.
1761 (home-page "https://github.com/testdouble/standard")
1762 (license license:expat)))
1764 (define-public ruby-chunky-png
1766 (name "ruby-chunky-png")
1772 (url "https://github.com/wvanbergen/chunky_png")
1773 (commit (string-append "v" version))))
1774 (file-name (git-file-name name version))
1776 (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h"))))
1777 (build-system ruby-build-system)
1779 `(#:test-target "spec"
1781 (modify-phases %standard-phases
1782 (add-after 'unpack 'disable-bundler
1784 (substitute* (find-files "." "\\.rb$")
1785 (("require.*bundler/setup.*") ""))
1787 (replace 'replace-git-ls-files
1789 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1790 ;; git ls-files output is merged in ruby-build-system.
1791 (substitute* "chunky_png.gemspec"
1793 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1796 `(("bundler" ,bundler)
1797 ("ruby-rspec" ,ruby-rspec)
1798 ("ruby-standard" ,ruby-standard)
1799 ("ruby-yard" ,ruby-yard)))
1800 (synopsis "Ruby library to handle PNG images")
1801 (description "ChunkyPNG is a pure Ruby library that can read and write
1802 Portable Network Graphics (PNG) images without depending on an external image
1803 library. It tries to be memory efficient and reasonably fast. It has
1807 Decoding support for any image that the PNG standard allows. This includes all
1808 standard color modes, all bit depths, all transparency, and interlacing and
1811 Encoding support for images of all color modes (true color, grayscale, and
1812 indexed) and transparency for all these color modes. The best color mode is
1813 chosen automatically, based on the amount of used colors.
1814 @item Read/write access to the image's pixels.
1815 @item Read/write access to all image metadata that is stored in chunks.
1817 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1818 pixel, depending on the hardware).
1820 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1821 integer math and a highly optimized saving routine.
1822 @item Interoperability with RMagick.
1825 ChunkyPNG is vulnerable to decompression bombs and can run out of memory when
1826 loading a specifically crafted PNG file. This is hard to fix in pure Ruby.
1827 Deal with untrusted images in a separate process, e.g., by using @code{fork}
1828 or a background processing library.")
1829 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1830 (license license:expat)))
1832 (define-public ruby-text-hyphen
1834 (name "ruby-text-hyphen")
1839 (uri (rubygems-uri "text-hyphen" version))
1842 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1843 (build-system ruby-build-system)
1845 `(("ruby-hoe" ,ruby-hoe)))
1846 (synopsis "Ruby library to hyphenate words in various languages")
1847 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1848 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1849 properly hyphenate various words according to the rules of the language the
1850 word is written in. The algorithm is based on that of the TeX typesetting
1851 system by Donald E. Knuth.")
1852 (home-page "https://github.com/halostatue/text-hyphen")
1853 ;; The whole is licensed under the Expat license, but parts use various
1854 ;; versions of the LaTeX Project Public License.
1855 (license license:expat)))
1857 (define-public ruby-open-uri-cached
1859 (name "ruby-open-uri-cached")
1864 (uri (rubygems-uri "open-uri-cached" version))
1867 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1868 (build-system ruby-build-system)
1870 `(#:tests? #f)) ;no test suite
1871 (synopsis "OpenURI with transparent disk caching")
1872 (description "OpenURI with transparent disk caching, which is
1873 useful to avoid making excessive queries, for example when scraping
1875 (home-page "https://github.com/tigris/open-uri-cached")
1876 (license license:expat)))
1878 (define-public ruby-asciidoctor-pdf
1879 ;; Use the latest commit, as the last tag doesn't build with the
1880 ;; latest Ruby dependencies in Guix.
1881 (let ((revision "1")
1882 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1884 (name "ruby-asciidoctor-pdf")
1885 (version (git-version "1.5.3" revision commit))
1888 (method git-fetch) ;no test suite in the distributed gem
1890 (url "https://github.com/asciidoctor/asciidoctor-pdf")
1892 (file-name (git-file-name name version))
1895 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1896 (build-system ruby-build-system)
1898 `(#:test-target "spec"
1900 (modify-phases %standard-phases
1901 (add-after 'unpack 'remove-failing-tests
1902 ;; Two tests module fail for unknown reasons, *only* when
1903 ;; ran in the build container (see:
1904 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1906 (delete-file "spec/audio_spec.rb")
1907 (delete-file "spec/video_spec.rb")
1909 (add-after 'extract-gemspec 'strip-version-requirements
1911 (substitute* "asciidoctor-pdf.gemspec"
1912 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1913 (string-append stripped "\n")))
1915 (replace 'replace-git-ls-files
1916 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1917 ;; git ls-files output is merged in ruby-build-system.
1919 (substitute* "asciidoctor-pdf.gemspec"
1920 (("`git ls-files -z`")
1921 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1922 |sort -z|cut -zc3-`"))
1924 ;; The tests rely on the Gem being installed, so move the check phase
1925 ;; after the install phase.
1927 (add-after 'install 'check
1928 (lambda* (#:key outputs tests? #:allow-other-keys)
1929 (let ((new-gem (string-append (assoc-ref outputs "out")
1930 "/lib/ruby/vendor_ruby")))
1932 (string-append (getenv "GEM_PATH") ":" new-gem))
1934 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1937 `(("ruby-chunky-png" ,ruby-chunky-png)
1938 ("ruby-coderay" ,ruby-coderay)
1939 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1940 ("ruby-rouge" ,ruby-rouge)
1941 ("ruby-rspec" ,ruby-rspec)))
1943 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1944 ("ruby-concurrent-ruby" ,ruby-concurrent)
1945 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1946 ("ruby-prawn" ,ruby-prawn)
1947 ("ruby-prawn-icon" ,ruby-prawn-icon)
1948 ("ruby-prawn-svg" ,ruby-prawn-svg)
1949 ("ruby-prawn-table" ,ruby-prawn-table)
1950 ("ruby-prawn-templates" ,ruby-prawn-templates)
1951 ("ruby-safe-yaml" ,ruby-safe-yaml)
1952 ("ruby-text-hyphen" ,ruby-text-hyphen)
1953 ("ruby-thread-safe" ,ruby-thread-safe)
1954 ("ruby-treetop" ,ruby-treetop)
1955 ("ruby-ttfunk" ,ruby-ttfunk)))
1956 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1957 (description "Asciidoctor PDF is an extension for Asciidoctor that
1958 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1959 PDF library. It has features such as:
1961 @item Direct AsciiDoc to PDF conversion
1962 @item Configuration-driven theme (style and layout)
1963 @item Scalable Vector Graphics (SVG) support
1964 @item PDF document outline (i.e., bookmarks)
1965 @item Table of contents page(s)
1966 @item Document metadata (title, authors, subject, keywords, etc.)
1967 @item Internal cross reference links
1968 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1969 @item Page numbering
1970 @item Customizable running content (header and footer)
1972 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1973 @item Orphaned section titles avoided
1974 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1975 @item Table border settings honored
1976 @item Font-based icons
1977 @item Custom TrueType (TTF) fonts
1978 @item Double-sided printing mode (margins alternate on recto and verso pages)
1980 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1981 (license license:expat))))
1983 (define-public ruby-ast
1989 (method git-fetch) ;no test included in gem from v2.4.1
1991 (url "https://github.com/whitequark/ast")
1992 (commit (string-append "v" version))))
1993 (file-name (git-file-name name version))
1996 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1997 (build-system ruby-build-system)
2000 (modify-phases %standard-phases
2001 (add-after 'unpack 'remove-coveralls-requirement
2003 (substitute* "test/helper.rb"
2004 (("require 'coveralls'") "")
2005 (("Coveralls::SimpleCov::Formatter") ""))
2007 (add-after 'extract-gemspec 'remove-unnecessary-requirements
2009 (substitute* "ast.gemspec"
2010 ((".*coveralls.*") "\n")
2011 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
2012 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
2013 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
2016 `(("bundler" ,bundler)
2017 ("ruby-simplecov" ,ruby-simplecov)
2018 ("ruby-json-pure" ,ruby-json-pure)
2019 ("ruby-mime-times" ,ruby-mime-types)
2020 ("ruby-yard" ,ruby-yard)
2021 ("ruby-kramdown" ,ruby-kramdown)
2022 ("ruby-rest-client" ,ruby-rest-client)
2023 ("ruby-bacon" ,ruby-bacon)
2024 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
2025 ("ruby-racc" ,ruby-racc)))
2026 (synopsis "Library for working with Abstract Syntax Trees")
2028 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
2029 It does this through immutable data structures.")
2030 (home-page "https://whitequark.github.io/ast/")
2031 (license license:expat)))
2033 (define-public ruby-sporkmonger-rack-mount
2034 ;; Testing the addressable gem requires a newer commit than that released, so
2035 ;; use an up to date version.
2036 (let ((revision "1")
2037 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
2039 (name "ruby-sporkmonger-rack-mount")
2040 (version (git-version "0.8.3" revision commit))
2044 (url "https://github.com/sporkmonger/rack-mount")
2046 (file-name (git-file-name name version))
2049 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
2050 (build-system ruby-build-system)
2052 ;; Tests currently fail so disable them.
2053 ;; https://github.com/sporkmonger/rack-mount/pull/1
2055 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
2056 (synopsis "Stackable dynamic tree based Rack router")
2058 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
2059 continue trying routes if the response returns pass. This allows multiple
2060 routes to be nested or stacked on top of each other.")
2061 (home-page "https://github.com/sporkmonger/rack-mount")
2062 (license license:expat))))
2064 (define-public ruby-ci-reporter
2066 (name "ruby-ci-reporter")
2070 (uri (rubygems-uri "ci_reporter" version))
2073 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
2074 (build-system ruby-build-system)
2076 `(#:test-target "rspec"))
2078 `(("ruby-builder" ,ruby-builder)))
2080 `(("bundler" ,bundler)
2081 ("ruby-rspec" ,ruby-rspec)))
2082 (synopsis "Generate XML reports of runs test")
2084 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
2085 you to generate XML reports of your test runs. The resulting files can be
2086 read by a continuous integration system that understands Ant's JUnit report
2088 (home-page "https://github.com/nicksieger/ci_reporter")
2089 (license license:expat)))
2091 (define-public ruby-contracts
2093 (name "ruby-contracts")
2098 (uri (rubygems-uri "contracts" version))
2101 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
2102 (build-system ruby-build-system)
2104 '(#:test-target "spec"
2106 (modify-phases %standard-phases
2107 ;; Don't run or require rubocop, the code linting tool, as this is a
2109 (add-after 'unpack 'dont-run-rubocop
2111 (substitute* "Rakefile"
2112 ((".*rubocop.*") "")
2113 ((".*RuboCop.*") ""))
2116 `(("ruby-rspec" ,ruby-rspec)))
2117 (synopsis "Method contracts for Ruby")
2119 "This library provides contracts for Ruby. A contract describes the
2120 correct inputs and output for a method, and will raise an error if a incorrect
2122 (home-page "https://github.com/egonSchiele/contracts.ruby")
2123 (license license:bsd-2)))
2125 (define-public ruby-crack
2132 (uri (rubygems-uri "crack" version))
2135 "1cr1kfpw3vkhysvkk3wg7c54m75kd68mbm9rs5azdjdq57xid13r"))))
2136 (build-system ruby-build-system)
2139 (modify-phases %standard-phases
2141 (lambda* (#:key tests? #:allow-other-keys)
2143 (for-each (lambda (file)
2144 (display file)(display "\n")
2145 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
2146 (find-files "test" ".*rb$")))
2149 `(("ruby-rexml" ,ruby-rexml)))
2150 (synopsis "Simple JSON and XML parsing for Ruby")
2152 "@code{crack} provides really simple JSON and XML parsing, extracted from
2153 code in Merb and Rails.")
2154 (home-page "https://github.com/jnunemaker/crack")
2155 (license license:expat)))
2157 (define-public ruby-cliver
2159 (name "ruby-cliver")
2164 (uri (rubygems-uri "cliver" version))
2167 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
2168 (build-system ruby-build-system)
2171 (modify-phases %standard-phases
2172 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
2173 ;; would be nice, but the tests look to be incompatible:
2175 ;; NoMethodError: undefined method `last_comment'
2177 (lambda* (#:key tests? #:allow-other-keys)
2182 `(("bundler" ,bundler)
2183 ("ruby-rspec" ,ruby-rspec-2)))
2184 (synopsis "Assertions for command-line dependencies in Ruby")
2186 "@code{cliver} provides a way to detect missing command-line
2187 dependencies, including versions.")
2188 (home-page "https://github.com/yaauie/cliver")
2189 (license license:expat)))
2191 (define-public ruby-czmq-ffi-gen
2193 (name "ruby-czmq-ffi-gen")
2198 (uri (rubygems-uri "czmq-ffi-gen" version))
2201 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2202 (build-system ruby-build-system)
2204 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2206 (modify-phases %standard-phases
2207 (add-after 'unpack 'patch-lib_dirs
2208 (lambda* (#:key inputs #:allow-other-keys)
2209 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2210 (("lib\\_dirs = \\[.*\\]")
2211 (string-append "lib_dirs = ['"
2212 (assoc-ref inputs "czmq") "/lib"
2214 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2215 (("lib\\_dirs = \\[.*\\]")
2216 (string-append "lib_dirs = ['"
2217 (assoc-ref inputs "zeromq") "/lib"
2220 `(("zeromq" ,zeromq)
2222 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2223 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2225 "These Ruby bindings are not intended to be directly used, but rather
2226 used by higher level bindings like those provided by CZTop.")
2228 "https://github.com/paddor/czmq-ffi-gen")
2229 (license license:isc)))
2231 (define-public ruby-cztop
2238 (uri (rubygems-uri "cztop" version))
2241 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2242 (build-system ruby-build-system)
2244 '(#:test-target "spec"
2246 (modify-phases %standard-phases
2247 (add-after 'unpack 'patch-lib_paths
2248 (lambda* (#:key inputs #:allow-other-keys)
2249 (substitute* "lib/cztop/poller/zmq.rb"
2250 (("lib\\_paths = \\[.*\\]")
2251 (string-append "lib_paths = ['"
2252 (assoc-ref inputs "zeromq") "/lib"
2255 `(("bundler" ,bundler)
2256 ("ruby-rspec" ,ruby-rspec)))
2258 `(("zeromq" ,zeromq)))
2260 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2261 (synopsis "CZMQ Ruby bindings")
2263 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2264 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2265 support for security mechanisms.")
2266 (home-page "https://github.com/paddor/cztop")
2267 (license license:isc)))
2269 (define-public ruby-saikuro-treemap
2271 (name "ruby-saikuro-treemap")
2275 (uri (rubygems-uri "saikuro_treemap" version))
2278 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2279 (build-system ruby-build-system)
2280 ;; Some of the tests fail because the generated JSON has keys in a
2281 ;; different order. This is a problem with the test suite rather than any
2282 ;; of the involved libraries.
2283 (arguments `(#:tests? #f))
2285 `(("ruby-json-pure" ,ruby-json-pure)
2286 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2287 (synopsis "Generate complexity treemap based on saikuro analysis")
2289 "This gem generates a treemap showing the complexity of Ruby code on
2290 which it is run. It uses Saikuro under the covers to analyze Ruby code
2292 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2293 (license license:expat)))
2295 (define-public ruby-oauth2
2297 (name "ruby-oauth2")
2302 (uri (rubygems-uri "oauth2" version))
2304 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2305 (build-system ruby-build-system)
2307 '(#:tests? #f)) ; no included tests
2309 `(("ruby-faraday" ,ruby-faraday)
2310 ("ruby-jwt" ,ruby-jwt)
2311 ("ruby-multi-json" ,ruby-multi-json)
2312 ("ruby-multi-xml" ,ruby-multi-xml)
2313 ("ruby-rack" ,ruby-rack)))
2314 (synopsis "Ruby wrapper for the OAuth 2.0")
2316 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2317 with a similar style to the original OAuth spec.")
2318 (home-page "https://github.com/oauth-xx/oauth2")
2319 (license license:expat)))
2321 (define-public ruby-omniauth
2323 (name "ruby-omniauth")
2328 (uri (rubygems-uri "omniauth" version))
2330 (base32 "105mzgvmn2kjaacxw01h4wqv33r7hfn5z8fxlkk3jcjar14j71bh"))))
2331 (build-system ruby-build-system)
2333 `(("ruby-hashie" ,ruby-hashie)
2334 ("ruby-rack" ,ruby-rack)
2335 ("ruby-rack-protection" ,ruby-rack-protection)))
2337 `(("ruby-rspec" ,ruby-rspec)))
2338 (synopsis "Generalized Rack framework for multiple-provider authentication")
2340 "This package provides a generalized Rack framework for multiple-provider
2342 (home-page "https://github.com/omniauth/omniauth")
2343 (license license:expat)))
2345 (define-public ruby-omniauth-oauth2
2347 (name "ruby-omniauth-oauth2")
2352 (uri (rubygems-uri "omniauth-oauth2" version))
2355 "10fr2b58sp7l6nfdvxpbi67374hkrvsf507cvda89jjs0jacy319"))))
2356 (build-system ruby-build-system)
2359 (modify-phases %standard-phases
2360 (add-after 'unpack 'remove-unnecessary-dependencies
2362 ;; The coveralls gem submits coverage information to an online
2363 ;; service, and is unnecessary when running the tests
2364 (substitute* "Gemfile"
2365 ((".*coveralls\"") ""))
2366 (substitute* "spec/helper.rb"
2367 (("require \"coveralls\"") "")
2368 (("Coveralls::SimpleCov::Formatter") ""))
2371 `(("ruby-oauth2" ,ruby-oauth2)
2372 ("ruby-omniauth" ,ruby-omniauth)))
2374 `(("bundler" ,bundler)
2375 ("ruby-rspec" ,ruby-rspec)
2376 ("ruby-simplecov" ,ruby-simplecov)
2377 ("ruby-rack-test" ,ruby-rack-test)
2378 ("ruby-webmock" ,ruby-webmock)))
2379 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2381 "This library provides a generic OAuth2 strategy for OmniAuth. It
2382 doesn't provide a way to gather user information, so should be used as a
2383 building block for authentication strategies.")
2384 (home-page "https://github.com/omniauth/omniauth-oauth2")
2385 (license license:expat)))
2387 (define-public ruby-open4
2394 (uri (rubygems-uri "open4" version))
2397 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2398 (build-system ruby-build-system)
2401 (modify-phases %standard-phases
2402 (add-after 'unpack 'patch
2404 (substitute* "rakefile"
2405 ;; Update the Rakefile so it works
2406 (("-rubygems") "-rrubygems")
2407 (("Config") "RbConfig"))
2409 (add-before 'check 'set-LIB
2411 ;; This is used in the rakefile when running the tests
2412 (setenv "LIB" "open4")
2414 (synopsis "Open child processes from Ruby and manage them easily")
2416 "@code{Open4} is a Ruby library to run child processes and manage their
2418 (home-page "https://github.com/ahoward/open4")
2419 (license license:ruby)))
2421 (define-public ruby-options
2423 (name "ruby-options")
2428 (uri (rubygems-uri "options" version))
2431 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2432 (build-system ruby-build-system)
2434 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2436 (modify-phases %standard-phases
2437 (add-before 'check 'set-LIB
2439 ;; This is used in the Rakefile, and setting it avoids an issue
2440 ;; with running the tests.
2441 (setenv "LIB" "options")
2443 (synopsis "Ruby library to parse options from *args cleanly")
2445 "The @code{options} library helps with parsing keyword options in Ruby
2447 (home-page "https://github.com/ahoward/options")
2448 (license license:ruby)))
2450 (define-public ruby-erubi
2457 (uri (rubygems-uri "erubi" version))
2460 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2461 (build-system ruby-build-system)
2462 (synopsis "ERB template engine for Ruby")
2464 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2466 (home-page "https://github.com/jeremyevans/erubi")
2467 (license license:expat)))
2469 (define-public ruby-erubis
2471 (name "ruby-erubis")
2476 (uri (rubygems-uri "erubis" version))
2479 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2480 (build-system ruby-build-system)
2482 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2483 (synopsis "Implementation of embedded Ruby (eRuby)")
2485 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2486 features such as multi-language support, auto escaping, auto trimming spaces
2487 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2489 (home-page "http://www.kuwata-lab.com/erubis/")
2490 (license license:expat)))
2492 (define-public ruby-ethon
2499 (uri (rubygems-uri "ethon" version))
2502 "0gggrgkcq839mamx7a8jbnp2h7x2ykfn34ixwskwb0lzx2ak17g9"))))
2503 (build-system ruby-build-system)
2505 `(#:tests? #f)) ; no included tests
2509 `(("ruby-ffi" ,ruby-ffi)))
2510 (synopsis "Very lightweight @code{libcurl} wrapper")
2512 "Ethon is a very basic @code{libcurl} wrapper using ffi.")
2513 (home-page "https://github.com/typhoeus/ethon")
2514 (license license:expat)))
2516 (define-public ruby-execjs
2518 (name "ruby-execjs")
2522 ;; fetch from github as the gem does not contain testing code
2525 (url "https://github.com/rails/execjs")
2526 (commit (string-append "v" version))))
2527 (file-name (git-file-name name version))
2530 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2531 (build-system ruby-build-system)
2533 `(("bundler" ,bundler)
2534 ;; The test suite tests all the available backends. Currenly, this just
2535 ;; means the node backend.
2537 ;; PASSED: test:node
2538 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2539 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2541 (synopsis "Run JavaScript code from Ruby")
2543 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2544 runtime to evaluate your JavaScript program, then returns the result to you as
2546 (home-page "https://github.com/rails/execjs")
2547 (license license:expat)))
2549 (define-public ruby-fakefs
2551 (name "ruby-fakefs")
2553 (home-page "https://github.com/fakefs/fakefs")
2555 ;; The Rubygems release does not contain tests.
2559 (commit (string-append "v" version))))
2560 (file-name (git-file-name name version))
2563 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2564 (build-system ruby-build-system)
2566 '(#:phases (modify-phases %standard-phases
2567 (replace 'replace-git-ls-files
2569 (substitute* "fakefs.gemspec"
2570 (("`git ls-files lib README.md LICENSE`")
2571 "`find lib README.md LICENSE -type f | sort`"))
2573 (add-before 'check 'remove-version-constraints
2575 ;; Drop hard version requirements for test dependencies.
2576 (substitute* "fakefs.gemspec"
2577 (("(.*add_development_dependency .*), .*" _ dep)
2578 (string-append dep "\n")))
2581 `(("ruby-bump" ,ruby-bump)
2582 ("ruby-maxitest" ,ruby-maxitest)
2583 ("ruby-rubocop" ,ruby-rubocop)
2584 ("ruby-rspec" ,ruby-rspec)))
2585 (synopsis "Fake file system for Ruby")
2587 "This package provides a fake file system for use in test suites. It
2588 avoids the need for manually creating temporary directories, or dealing
2589 with platform intricacies in @code{File} and @code{FileUtils}.")
2590 (license license:expat)))
2592 (define-public ruby-orderedhash
2594 (name "ruby-orderedhash")
2598 (uri (rubygems-uri "orderedhash" version))
2601 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2602 (build-system ruby-build-system)
2604 '(#:tests? #f)) ; no test suite
2605 (synopsis "Ruby library providing an order-preserving hash")
2606 (description "Orderedhash is a Ruby library providing a hash
2607 implementation that preserves the order of items and features some array-like
2609 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2610 (license license:public-domain)))
2612 (define-public ruby-libxml
2614 (name "ruby-libxml")
2619 (uri (rubygems-uri "libxml-ruby" version))
2622 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2623 (build-system ruby-build-system)
2626 ("libxml2" ,libxml2)))
2628 '(#:tests? #f ; test suite hangs for unknown reason
2630 (list "--no-document" ; TODO: Re-enable when documentation
2633 (string-append "--with-xml2-include="
2634 (assoc-ref %build-inputs "libxml2")
2635 "/include/libxml2" ))))
2636 (synopsis "Ruby bindings for GNOME Libxml2")
2637 (description "The Libxml-Ruby project provides Ruby language bindings for
2638 the GNOME Libxml2 XML toolkit.")
2639 (home-page "https://xml4r.github.com/libxml-ruby")
2640 (license license:expat)))
2642 (define-public ruby-lino
2649 (uri (rubygems-uri "lino" version))
2652 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2653 (build-system ruby-build-system)
2655 '(#:tests? #f)) ; No included tests
2657 `(("ruby-hamster" ,ruby-hamster)
2658 ("ruby-open4" ,ruby-open4)))
2659 (synopsis "Build and execute commands in Ruby")
2661 "@code{Lino} provides an interface to run external commands. It provides
2662 an interface to add options as well as managing the standard input, output and
2664 (home-page "https://github.com/tobyclemson/lino")
2665 (license license:expat)))
2667 (define-public ruby-xml-simple
2669 (name "ruby-xml-simple")
2673 (uri (rubygems-uri "xml-simple" version))
2676 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2677 (build-system ruby-build-system)
2679 '(#:tests? #f)) ; no test suite
2680 (synopsis "Simple Ruby library for XML processing")
2681 (description "This library provides a simple API for XML processing in
2683 (home-page "https://github.com/maik/xml-simple")
2684 (license license:ruby)))
2686 (define-public ruby-thor
2691 ;; Pull from git because the gem has no tests.
2694 (url "https://github.com/erikhuda/thor")
2695 (commit (string-append "v" version))))
2696 (file-name (git-file-name name version))
2699 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2700 (build-system ruby-build-system)
2702 '(#:phases (modify-phases %standard-phases
2703 (add-after 'unpack 'fix-readline-tests
2705 ;; Ensure Readline is initialized before running the
2706 ;; test to avoid a type clash with the mock ::Readline.
2707 ;; See <https://github.com/erikhuda/thor/pull/717>.
2708 (substitute* "spec/line_editor/readline_spec.rb"
2709 (("unless defined\\? ::Readline" all)
2710 (string-append "Thor::LineEditor::Readline.available?\n"
2713 (add-after 'unpack 'remove-coveralls-dependency
2715 ;; Do not hook the test suite into the online
2716 ;; coveralls service.
2717 (substitute* "Gemfile"
2718 ((".*coveralls.*") ""))
2719 (substitute* "spec/helper.rb"
2720 (("require \"coveralls\"") "")
2721 (("Coveralls::SimpleCov::Formatter") "")
2722 ;; Also drop the WebMock dependency which is only
2723 ;; present to allow a coveralls.io connection, and
2724 ;; would otherwise introduce a circular dependency.
2725 (("require \"webmock/rspec\"") "")
2726 (("WebMock\\.disable_net_connect.*") ""))
2728 (add-after 'unpack 'disable-network-tests
2730 ;; These tests attempt to look up example.com.
2731 (substitute* "spec/actions/file_manipulation_spec.rb"
2732 (("it \"accepts (https?) remote sources" _ proto)
2733 (string-append "xit \"accepts " proto " remote sources")))
2735 (add-after 'unpack 'disable-quality-tests
2737 ;; These tests attempt to check the git repository for
2738 ;; tabs vs spaces, double vs single quotes, etc, and
2739 ;; depend on the git checkout.
2740 (delete-file "spec/quality_spec.rb")
2742 (add-before 'check 'make-files-writable
2744 ;; The tests needs rw access to the test suite.
2745 (for-each make-file-writable (find-files "spec"))
2749 (invoke "rspec" "spec"))))))
2751 `(("ruby-rspec" ,ruby-rspec)
2752 ("ruby-simplecov" ,ruby-simplecov)))
2753 (synopsis "Ruby toolkit for building command-line interfaces")
2754 (description "Thor is a toolkit for building powerful command-line
2756 (home-page "http://whatisthor.com/")
2757 (license license:expat)))
2759 (define-public ruby-lumberjack
2761 (name "ruby-lumberjack")
2765 (uri (rubygems-uri "lumberjack" version))
2768 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2769 (build-system ruby-build-system)
2771 `(("ruby-rspec" ,ruby-rspec)
2772 ("ruby-timecop" ,ruby-timecop)))
2773 (synopsis "Logging utility library for Ruby")
2774 (description "Lumberjack is a simple logging utility that can be a drop in
2775 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2776 for automatically rolling log files even with multiple processes writing the
2778 (home-page "https://github.com/bdurand/lumberjack")
2779 (license license:expat)))
2781 (define-public ruby-rbnacl
2783 (name "ruby-rbnacl")
2788 (uri (rubygems-uri "rbnacl" version))
2791 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2792 (build-system ruby-build-system)
2795 (modify-phases %standard-phases
2796 (add-after 'unpack 'remove-unnecessary-dependencies
2798 ;; Coveralls relates to a network service, and Rubocop to code
2799 ;; linting and both are unnecessary to run the tests
2800 (substitute* "Gemfile"
2801 ((".*rubocop.*") "\n")
2802 ((".*guard-rspec.*") "\n")
2803 ((".*coveralls.*") "\n"))
2804 (substitute* "spec/spec_helper.rb"
2805 (("require \"coveralls\"") "")
2806 (("Coveralls.wear!") ""))
2808 (add-after 'unpack 'use-libsodium-from-store
2809 (lambda* (#:key inputs #:allow-other-keys)
2810 (substitute* '("lib/rbnacl/init.rb"
2811 "lib/rbnacl/sodium.rb")
2812 (("ffi_lib \\[.+\\]")
2813 (string-append "ffi_lib [\""
2814 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2817 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2819 (lambda* (#:key tests? #:allow-other-keys)
2824 `(("ruby-ffi" ,ruby-ffi)))
2826 `(("libsodium" ,libsodium)))
2828 `(("bundler" ,bundler)
2829 ("ruby-rspec" ,ruby-rspec)))
2830 (synopsis "Ruby FFI binding to libsodium")
2832 "This package provides Ruby FFI bindings to the Networking and
2833 Cryptography (NaCl) library, also known as libsodium. This provides a
2834 high-level toolkit for building cryptographic systems and protocols.")
2835 (home-page "https://github.com/crypto-rb/rbnacl")
2836 (license license:expat)))
2838 (define-public ruby-nenv
2844 (uri (rubygems-uri "nenv" version))
2847 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2848 (build-system ruby-build-system)
2850 `(#:tests? #f)) ; no tests included
2852 `(("ruby-rspec" ,ruby-rspec)
2853 ("bundler" ,bundler)))
2854 (synopsis "Ruby interface for modifying the environment")
2855 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2856 and inspect the environment.")
2857 (home-page "https://github.com/e2/nenv")
2858 (license license:expat)))
2860 (define-public ruby-ptools
2862 (name "ruby-ptools")
2866 (uri (rubygems-uri "ptools" version))
2869 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2870 (build-system ruby-build-system)
2872 '(#:phases (modify-phases %standard-phases
2873 (add-after 'unpack 'patch-/bin/ls
2875 (substitute* "test/test_binary.rb"
2879 (add-before 'install 'create-gem
2881 ;; Do not attempt to sign the gem.
2882 (substitute* "Rakefile"
2883 (("spec\\.signing_key = .*")
2885 (invoke "rake" "gem:create"))))))
2886 (synopsis "Extra methods for Ruby's @code{File} class")
2888 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2889 class with many additional methods modelled after common POSIX tools, such as
2890 @code{File.which} for finding executables, @code{File.tail} to print the last
2891 lines of a file, @code{File.wc} to count words, and so on.")
2892 (home-page "https://github.com/djberg96/ptools")
2893 (license license:artistic2.0)))
2895 (define-public ruby-permutation
2897 (name "ruby-permutation")
2901 (uri (rubygems-uri "permutation" version))
2904 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2905 (build-system ruby-build-system)
2908 (modify-phases %standard-phases
2909 (add-after 'unpack 'fix-rakefile
2911 (substitute* "Rakefile"
2912 (("require 'rake/gempackagetask'")
2913 "require 'rubygems/package_task'")
2914 (("include Config") ""))
2918 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2919 (synopsis "Library to perform operations with sequence permutations")
2920 (description "This package provides a Ruby library to perform different
2921 operations with permutations of sequences, such as strings and arrays.")
2922 (home-page "https://flori.github.io/permutation")
2923 (license license:gpl2))) ; GPL 2 only
2925 (define-public ruby-shellany
2927 (name "ruby-shellany")
2931 (uri (rubygems-uri "shellany" version))
2934 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2935 (build-system ruby-build-system)
2937 `(#:test-target "default"
2939 (modify-phases %standard-phases
2940 (add-after 'unpack 'fix-version-test
2942 (substitute* "spec/shellany_spec.rb"
2943 (("^RSpec") "require \"shellany\"\nRSpec"))
2946 `(("ruby-rspec" ,ruby-rspec)
2947 ("ruby-nenv" ,ruby-nenv)
2948 ("bundler" ,bundler)))
2949 (synopsis "Capture command output")
2950 (description "Shellany is a Ruby library providing functions to capture
2951 the output produced by running shell commands.")
2952 (home-page "https://rubygems.org/gems/shellany")
2953 (license license:expat)))
2955 (define-public ruby-notiffany
2957 (name "ruby-notiffany")
2961 (uri (rubygems-uri "notiffany" version))
2964 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2965 (build-system ruby-build-system)
2966 ;; Tests are not included in the gem.
2967 (arguments `(#:tests? #f))
2969 `(("ruby-shellany" ,ruby-shellany)
2970 ("ruby-nenv" ,ruby-nenv)))
2972 `(("bundler" ,bundler)))
2973 (synopsis "Wrapper library for notification libraries")
2974 (description "Notiffany is a Ruby wrapper library for notification
2975 libraries such as Libnotify.")
2976 (home-page "https://github.com/guard/notiffany")
2977 (license license:expat)))
2979 (define-public ruby-forking-test-runner
2981 (name "ruby-forking-test-runner")
2983 (home-page "https://github.com/grosser/forking_test_runner")
2986 (uri (git-reference (url home-page)
2987 (commit (string-append "v" version))))
2988 (file-name (git-file-name name version))
2991 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2992 (build-system ruby-build-system)
2994 '(#:test-target "spec"
2995 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2996 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2998 #:phases (modify-phases %standard-phases
2999 (replace 'replace-git-ls-files
3001 (substitute* "forking_test_runner.gemspec"
3002 (("`git ls-files lib/ bin/ MIT-LICENSE`")
3003 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
3005 (add-before 'check 'remove-version-constraints
3007 ;; Ignore hard coded version constraints for the tests.
3008 (delete-file "Gemfile.lock")
3010 (add-before 'check 'set-HOME
3012 ;; Many tests invoke Bundler, and fails when Bundler
3013 ;; warns that /homeless-shelter does not exist.
3014 (setenv "HOME" "/tmp")
3017 `(("ruby-activerecord" ,ruby-activerecord)
3018 ("ruby-bump" ,ruby-bump)
3019 ("ruby-rspec" ,ruby-rspec)
3020 ("ruby-sqlite3" ,ruby-sqlite3)
3021 ("ruby-wwtd" ,ruby-wwtd)))
3023 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
3024 (synopsis "Run every test in a fork")
3026 "This package is a wrapper around @code{parallel_tests} that runs every
3027 test in a fork to avoid pollution and get clean output per test.")
3028 (license license:expat)))
3030 (define-public ruby-formatador
3032 (name "ruby-formatador")
3036 (uri (rubygems-uri "formatador" version))
3039 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
3040 (build-system ruby-build-system)
3041 ;; Circular dependency: Tests require ruby-shindo, which requires
3042 ;; ruby-formatador at runtime.
3043 (arguments `(#:tests? #f))
3044 (synopsis "Ruby library to format text on stdout")
3045 (description "Formatador is a Ruby library to format text printed to the
3046 standard output stream.")
3047 (home-page "https://github.com/geemus/formatador")
3048 (license license:expat)))
3050 (define-public ruby-fuubar
3052 (name "ruby-fuubar")
3056 ;; Fetch from the git repository, as the gem package doesn't include
3060 (url "https://github.com/thekompanee/fuubar")
3061 (commit (string-append "releases/v" version))))
3062 (file-name (git-file-name name version))
3065 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
3066 (build-system ruby-build-system)
3068 '(;; TODO: Some tests fail, unsure why.
3069 ;; 21 examples, 7 failures
3072 (modify-phases %standard-phases
3073 (add-before 'build 'delete-certificate
3075 ;; Remove 's.cert_chain' as we do not build with a private key
3076 (substitute* "fuubar.gemspec"
3077 ((".*cert_chain.*") "")
3078 ((".*signing_key.*") ""))
3081 (lambda* (#:key tests? #:allow-other-keys)
3086 `(("bundler" ,bundler)))
3088 `(("ruby-rspec-core" ,ruby-rspec-core)
3089 ("ruby-progressbar" ,ruby-progressbar)))
3090 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
3092 "Fuubar is an RSpec formatter that uses a progress bar instead of a
3093 string of letters and dots as feedback. It also stops on the first test
3095 (home-page "https://github.com/thekompanee/fuubar")
3096 (license license:expat)))
3098 (define-public ruby-haml
3105 (uri (rubygems-uri "haml" version))
3108 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
3109 (build-system ruby-build-system)
3111 '(#:tests? #f)) ; No included tests
3113 `(("ruby-tilt" ,ruby-tilt)
3114 ("ruby-temple" ,ruby-temple)))
3115 (synopsis "Haml is a Ruby library to generate HTML documents")
3117 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
3118 HTML or XML that is designed to express the structure of documents using
3119 indentation rather than closing tags. It was originally envisioned as a
3120 plugin for Ruby on Rails, but it can function as a stand-alone templating
3122 (home-page "https://haml.info/")
3123 (license license:expat)))
3125 (define-public ruby-hamster
3127 (name "ruby-hamster")
3132 (uri (rubygems-uri "hamster" version))
3135 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
3136 (build-system ruby-build-system)
3139 (modify-phases %standard-phases
3140 (add-after 'unpack 'remove-unnecessary-dependencies
3142 ;; pry is a debugging tool, and is unnecessary when running the
3144 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
3145 (("require 'pry'") ""))
3146 (substitute* "spec/spec_helper.rb"
3147 (("require \"pry\"") "")
3148 ;; CodeClimate is an online service, and is unnecessary for
3149 ;; running the tests
3150 (("require \"codeclimate-test-reporter\"") "")
3151 (("CodeClimate.*\n") ""))
3153 ;; No Rakefile is included, so run rspec directly.
3155 (lambda* (#:key tests? #:allow-other-keys)
3160 `(("ruby-concurrent" ,ruby-concurrent)))
3162 `(("ruby-rspec" ,ruby-rspec)))
3163 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
3165 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
3166 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
3167 immutable queue or stack).")
3168 (home-page "https://github.com/hamstergem/hamster")
3169 (license license:expat)))
3171 (define-public ruby-hashdiff
3173 (name "ruby-hashdiff")
3178 (uri (rubygems-uri "hashdiff" version))
3181 "1nynpl0xbj0nphqx1qlmyggq58ms1phf5i03hk64wcc0a17x1m1c"))))
3182 (build-system ruby-build-system)
3185 (modify-phases %standard-phases
3186 ;; Run tests directly via rspec to avoid depending on rubocop.
3188 (lambda* (#:key tests? #:allow-other-keys)
3193 `(("bundler" ,bundler)
3194 ("ruby-rspec" ,ruby-rspec-2)))
3195 (synopsis "HashDiff computes the smallest difference between two hashes")
3197 "HashDiff is a Ruby library to compute the smallest difference between
3199 (home-page "https://github.com/liufengyun/hashdiff")
3200 (license license:expat)))
3202 (define-public ruby-hydra
3204 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
3208 (version (git-version "0.0" revision commit))
3209 (home-page "https://github.com/hyphenation/hydra")
3212 (uri (git-reference (url home-page) (commit commit)))
3213 (file-name (git-file-name name version))
3216 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3217 (build-system ruby-build-system)
3219 '(#:phases (modify-phases %standard-phases
3220 (add-after 'unpack 'make-files-writable
3222 (for-each make-file-writable (find-files "."))
3226 (invoke "rspec"))))))
3228 `(("ruby-rspec" ,ruby-rspec)))
3230 `(("ruby-byebug" ,ruby-byebug)))
3231 (synopsis "Ruby hyphenation patterns")
3233 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3234 (license license:expat))))
3236 (define-public ruby-shindo
3238 (name "ruby-shindo")
3242 (uri (rubygems-uri "shindo" version))
3245 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3246 (build-system ruby-build-system)
3248 `(#:test-target "shindo_tests"
3250 (modify-phases %standard-phases
3251 (add-after 'unpack 'fix-tests
3253 (substitute* "tests/tests_helper.rb"
3255 (substitute* "Rakefile"
3256 (("system \"shindo") "system \"./bin/shindo")
3257 ;; This test doesn't work, so we disable it.
3258 (("fail \"The build_error test should fail") "#")
3259 ((" -rubygems") ""))
3262 `(("ruby-formatador" ,ruby-formatador)))
3263 (synopsis "Simple depth first Ruby testing")
3264 (description "Shindo is a simple depth first testing library for Ruby.")
3265 (home-page "https://github.com/geemus/shindo")
3266 (license license:expat)))
3268 (define-public ruby-rubygems-tasks
3270 (name "ruby-rubygems-tasks")
3274 (uri (rubygems-uri "rubygems-tasks" version))
3277 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3278 (build-system ruby-build-system)
3279 ;; Tests need Internet access.
3280 (arguments `(#:tests? #f))
3282 `(("ruby-rspec" ,ruby-rspec)
3283 ("ruby-yard" ,ruby-yard)))
3284 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3285 (description "Rubygems-task provides Rake tasks for managing and releasing
3287 (home-page "https://github.com/postmodern/rubygems-tasks")
3288 (license license:expat)))
3290 (define-public ruby-rubyzip
3292 (name "ruby-rubyzip")
3297 (uri (rubygems-uri "rubyzip" version))
3300 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3301 (build-system ruby-build-system)
3304 (modify-phases %standard-phases
3305 (add-before 'check 'patch-tests
3306 (lambda* (#:key inputs #:allow-other-keys)
3307 (substitute* "test/gentestfiles.rb"
3310 (assoc-ref inputs "zip") "/bin/zip")))
3311 (substitute* "test/input_stream_test.rb"
3312 (("/usr/bin/env ruby") (which "ruby")))
3315 `(("bundler" ,bundler)
3316 ("ruby-simplecov" ,ruby-simplecov)
3319 (synopsis "Ruby module is for reading and writing zip files")
3321 "The rubyzip module provides ways to read from and create zip files.")
3322 (home-page "https://github.com/rubyzip/rubyzip")
3323 (license license:bsd-2)))
3325 (define-public ruby-simplecov-html
3327 (name "ruby-simplecov-html")
3331 (uri (rubygems-uri "simplecov-html" version))
3334 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3335 (build-system ruby-build-system)
3336 (arguments `(#:tests? #f)) ; there are no tests
3338 `(("bundler" ,bundler)))
3339 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3340 (description "This package provides the default HTML formatter for
3341 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3342 (home-page "https://github.com/colszowka/simplecov-html")
3343 (license license:expat)))
3345 (define-public ruby-simplecov
3347 (name "ruby-simplecov")
3351 (uri (rubygems-uri "simplecov" version))
3354 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3355 (build-system ruby-build-system)
3356 ;; Simplecov depends on rubocop for code style checking at build time.
3357 ;; Rubocop needs simplecov at build time.
3358 (arguments `(#:tests? #f))
3360 `(("ruby-json" ,ruby-json)
3361 ("ruby-docile" ,ruby-docile)
3362 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3364 `(("bundler" ,bundler)))
3365 (synopsis "Code coverage framework for Ruby")
3366 (description "SimpleCov is a code coverage framework for Ruby with a
3367 powerful configuration library and automatic merging of coverage across test
3369 (home-page "https://github.com/colszowka/simplecov")
3370 (license license:expat)))
3372 (define-public ruby-useragent
3374 (name "ruby-useragent")
3378 (uri (rubygems-uri "useragent" version))
3381 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3382 (build-system ruby-build-system)
3384 '(#:tests? #f)) ; no test suite
3385 (synopsis "HTTP user agent parser for Ruby")
3386 (description "UserAgent is a Ruby library that parses and compares HTTP
3388 (home-page "https://github.com/gshutler/useragent")
3389 (license license:expat)))
3391 (define-public ruby-backports
3393 (name "ruby-backports")
3398 (uri (rubygems-uri "backports" version))
3401 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3402 (build-system ruby-build-system)
3404 '(;; TODO: This should be default, but there is one test failure
3405 #:test-target "all_spec"))
3407 `(("ruby-mspec" ,ruby-mspec)
3408 ("ruby-activesupport" ,ruby-activesupport)))
3409 (synopsis "Backports of the features in newer Ruby versions")
3411 "Backports enables more compatibility across Ruby versions by providing
3412 backports of some features.")
3413 (home-page "https://github.com/marcandre/backports")
3414 (license license:expat)))
3416 (define-public ruby-bacon
3422 (uri (rubygems-uri "bacon" version))
3425 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3426 (build-system ruby-build-system)
3427 (synopsis "Small RSpec clone")
3428 (description "Bacon is a small RSpec clone providing all essential
3430 (home-page "https://github.com/chneukirchen/bacon")
3431 (license license:expat)))
3433 (define-public ruby-bacon-bits
3435 (name "ruby-bacon-bits")
3440 (uri (rubygems-uri "bacon-bits" version))
3443 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3444 (build-system ruby-build-system)
3448 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3449 (synopsis "Extensions to Bacon, for disabling tests, before and after
3452 "This extends the bacon testing framework with useful extensions to
3453 disable tests, have before and after blocks that run once and more.")
3454 (home-page "https://github.com/cldwalker/bacon-bits")
3455 (license license:expat)))
3457 (define-public ruby-bacon-colored-output
3459 (name "ruby-bacon-colored-output")
3464 (uri (rubygems-uri "bacon-colored_output" version))
3467 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3468 (build-system ruby-build-system)
3470 '(;; No included tests
3473 `(("ruby-bacon" ,ruby-bacon)))
3474 (synopsis "Colored output for Bacon test framework")
3476 "This package adds color through ANSI escape codes to Bacon test
3478 (home-page "https://github.com/whitequark/bacon-colored_output")
3479 (license license:expat)))
3481 (define-public ruby-connection-pool
3483 (name "ruby-connection-pool")
3487 (uri (rubygems-uri "connection_pool" version))
3490 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3491 (build-system ruby-build-system)
3493 `(("bundler" ,bundler)))
3494 (synopsis "Generic connection pool for Ruby")
3495 (description "Connection_pool provides a generic connection pooling
3496 interface for Ruby programs.")
3497 (home-page "https://github.com/mperham/connection_pool")
3498 (license license:expat)))
3500 (define-public ruby-fast-gettext
3502 (name "ruby-fast-gettext")
3504 (home-page "https://github.com/grosser/fast_gettext")
3507 (uri (git-reference (url home-page)
3508 (commit (string-append "v" version))))
3509 (file-name (git-file-name name version))
3512 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3513 (build-system ruby-build-system)
3515 '(#:test-target "spec"
3516 #:phases (modify-phases %standard-phases
3517 (add-before 'check 'remove-version-constraints
3519 (delete-file "Gemfile.lock")
3521 (add-before 'check 'remove-activerecord-test
3523 ;; FIXME: This test fails because ActiveRecord depends on
3524 ;; a different version of ruby-sqlite than the currently
3527 "spec/fast_gettext/translation_repository/db_spec.rb")
3529 (add-before 'check 'disable-i18n-test
3531 ;; XXX: This test checks i18n intricasies with Rails 3 and
3532 ;; automatically disables itself for Rails 4.0, but does
3533 ;; not know about newer versions as it has not been updated
3534 ;; since 2014. Disable for later versions of Rails too.
3535 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3536 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3537 "ActiveRecord::VERSION::MINOR == 0"))
3538 "ActiveRecord::VERSION::MAJOR >= 4"))
3542 ("ruby-activerecord" ,ruby-activerecord)
3543 ("ruby-activesupport" ,ruby-activesupport)
3544 ("ruby-bump" ,ruby-bump)
3545 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3546 ("ruby-i18n" ,ruby-i18n)
3547 ("ruby-rubocop" ,ruby-rubocop)
3548 ("ruby-rspec" ,ruby-rspec)
3549 ("ruby-single-cov" ,ruby-single-cov)
3550 ("ruby-sqlite3" ,ruby-sqlite3)
3551 ("ruby-wwtd" ,ruby-wwtd)))
3552 (synopsis "Fast implementation of @code{GetText}")
3554 "This package provides an alternative implementation of the Ruby
3555 @code{GetText} library that is approximately 12x faster yet thread safe.")
3556 ;; Some parts are covered by the Ruby license, see file headers.
3557 (license (list license:expat license:ruby))))
3559 (define-public ruby-net-http-persistent
3561 (name "ruby-net-http-persistent")
3565 (uri (rubygems-uri "net-http-persistent" version))
3568 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3569 (build-system ruby-build-system)
3571 `(("ruby-connection-pool" ,ruby-connection-pool)
3572 ("ruby-hoe" ,ruby-hoe)))
3573 (synopsis "Persistent HTTP connection manager")
3574 (description "Net::HTTP::Persistent manages persistent HTTP connections
3575 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3576 (home-page "https://github.com/drbrain/net-http-persistent")
3577 (license license:expat)))
3579 (define-public ruby-power-assert
3581 (name "ruby-power-assert")
3585 (uri (rubygems-uri "power_assert" version))
3588 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3589 (build-system ruby-build-system)
3591 '(#:tests? #f)) ; No included tests
3593 `(("bundler" ,bundler)))
3594 (synopsis "Assert library with descriptive assertion messages")
3595 (description "Power-assert is an assertion library providing descriptive
3596 assertion messages for tests.")
3597 (home-page "https://github.com/k-tsj/power_assert")
3598 (license (list license:bsd-2 license:ruby))))
3600 (define-public ruby-powerpack
3602 (name "ruby-powerpack")
3607 (uri (rubygems-uri "powerpack" version))
3610 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3611 (build-system ruby-build-system)
3613 '(#:test-target "spec"))
3615 `(("bundler" ,bundler)
3616 ("ruby-rspec" ,ruby-rspec)
3617 ("ruby-yard" ,ruby-yard)))
3618 (synopsis "Useful extensions to core Ruby classes")
3620 "This package provides a few useful extensions to core Ruby classes,
3621 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3623 (home-page "https://github.com/bbatsov/powerpack")
3624 (license license:expat)))
3626 (define-public ruby-locale
3628 (name "ruby-locale")
3632 (uri (rubygems-uri "locale" version))
3635 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3636 (build-system ruby-build-system)
3637 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3638 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3639 ;; dependency cycle we disable tests.
3640 (arguments `(#:tests? #f))
3642 `(("bundler" ,bundler)
3643 ("ruby-yard" ,ruby-yard)))
3644 (synopsis "Ruby library providing basic localization APIs")
3646 "Ruby-Locale is the pure ruby library which provides basic APIs for
3648 (home-page "https://github.com/ruby-gettext/locale")
3649 (license (list license:lgpl3+ license:ruby))))
3651 (define-public ruby-temple
3653 (name "ruby-temple")
3658 (uri (rubygems-uri "temple" version))
3661 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3662 (build-system ruby-build-system)
3664 `(("ruby-tilt" ,ruby-tilt)
3665 ("ruby-bacon" ,ruby-bacon)
3666 ("ruby-erubis" ,ruby-erubis)))
3667 (synopsis "Template compilation framework in Ruby")
3669 "Temple is an abstraction and framework for compiling templates to pure
3671 (home-page "https://github.com/judofyr/temple")
3672 (license license:expat)))
3674 (define-public ruby-text
3680 (uri (rubygems-uri "text" version))
3683 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3684 (build-system ruby-build-system)
3685 (synopsis "Collection of text algorithms for Ruby")
3687 "This package provides a collection of text algorithms: Levenshtein,
3688 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3689 (home-page "https://github.com/threedaymonk/text")
3690 (license license:expat)))
3692 (define-public ruby-gettext
3694 (name "ruby-gettext")
3698 (uri (rubygems-uri "gettext" version))
3701 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3702 (build-system ruby-build-system)
3703 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3704 ;; which needs ruby-gettext. To break the dependency cycle we disable
3706 (arguments `(#:tests? #f))
3708 `(("ruby-locale" ,ruby-locale)
3709 ("ruby-text" ,ruby-text)))
3711 `(("bundler" ,bundler)
3712 ("ruby-yard" ,ruby-yard)))
3713 (synopsis "GNU gettext-like program for Ruby")
3715 "Gettext is a GNU gettext-like program for Ruby. The catalog
3716 file (po-file) used is the same as that used by GNU gettext, allowing you to
3717 use GNU gettext tools for maintenance.")
3718 (home-page "https://ruby-gettext.github.com/")
3719 (license (list license:lgpl3+ license:ruby))))
3721 (define-public ruby-packnga
3723 (name "ruby-packnga")
3727 (uri (rubygems-uri "packnga" version))
3730 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3731 (build-system ruby-build-system)
3732 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3733 ;; To break the dependency cycle we disable tests.
3734 (arguments `(#:tests? #f))
3736 `(("ruby-gettext" ,ruby-gettext)
3737 ("ruby-yard" ,ruby-yard)))
3739 `(("bundler" ,bundler)))
3740 (synopsis "Utility library to package internationalized libraries")
3742 "Packnga is a library to translate to many languages using YARD.")
3743 (home-page "http://ranguba.org/packnga/")
3744 (license license:lgpl2.0+)))
3746 (define-public ruby-test-construct
3748 (name "ruby-test-construct")
3753 (uri (rubygems-uri "test_construct" version))
3756 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3757 (build-system ruby-build-system)
3759 `(("bundler" ,bundler)
3760 ("ruby-mocha" ,ruby-mocha)
3761 ("ruby-rspec" ,ruby-rspec)))
3762 (synopsis "Creates temporary files and directories for testing")
3764 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3765 temporary files and directories during tests.")
3766 (home-page "https://github.com/bhb/test_construct")
3767 (license license:expat)))
3769 (define-public ruby-test-unit
3771 (name "ruby-test-unit")
3775 (uri (rubygems-uri "test-unit" version))
3778 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3779 (build-system ruby-build-system)
3781 `(("ruby-power-assert" ,ruby-power-assert)))
3783 `(("bundler" ,bundler)
3784 ("ruby-packnga" ,ruby-packnga)
3785 ("ruby-yard" ,ruby-yard)))
3786 (synopsis "Unit testing framework for Ruby")
3787 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3788 on xUnit principles. These were originally designed by Kent Beck, creator of
3789 extreme programming software development methodology, for Smalltalk's SUnit.
3790 It allows writing tests, checking results and automated testing in Ruby.")
3791 (home-page "https://test-unit.github.io/")
3792 (license (list license:psfl license:ruby))))
3794 (define-public ruby-markaby
3796 (name "ruby-markaby")
3801 (uri (rubygems-uri "markaby" version))
3804 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3805 (build-system ruby-build-system)
3808 (modify-phases %standard-phases
3809 ;; Run rspec manually without using the Rakefile, as the versions of
3810 ;; Rake and RSpec 2 are incompatible:
3812 ;; NoMethodError: undefined method `last_comment'
3814 (lambda* (#:key tests? #:allow-other-keys)
3819 `(("ruby-builder" ,ruby-builder)))
3821 `(("bundler" ,bundler)
3822 ("ruby-rspec" ,ruby-rspec-2)))
3823 (synopsis "Write HTML pages in pure Ruby")
3825 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3826 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3827 mixture of HTML and additional ERB syntax.")
3828 (home-page "https://markaby.github.io/")
3829 (license license:expat)))
3831 (define-public ruby-maruku
3833 (name "ruby-maruku")
3838 (uri (rubygems-uri "maruku" version))
3841 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3842 (build-system ruby-build-system)
3844 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3847 (modify-phases %standard-phases
3849 (lambda* (#:key tests? #:allow-other-keys)
3854 `(("ruby-rspec" ,ruby-rspec)
3855 ("ruby-simplecov" ,ruby-simplecov)
3856 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3857 (synopsis "Markdown interpreter in Ruby")
3859 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3860 HTML, and PDF through LaTeX.")
3861 (home-page "https://github.com/bhollis/maruku")
3862 (license license:expat)))
3864 (define-public ruby-metaclass
3866 (name "ruby-metaclass")
3870 (uri (rubygems-uri "metaclass" version))
3873 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3874 (build-system ruby-build-system)
3877 (modify-phases %standard-phases
3878 (add-after 'unpack 'add-test-unit-to-search-path
3879 (lambda* (#:key inputs #:allow-other-keys)
3880 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3881 (substitute* "Rakefile"
3882 (("t\\.libs << \"test\"" line)
3883 (string-append line "; t.libs << \""
3884 test-unit "/lib/ruby/vendor_ruby"
3886 ,(package-version ruby-test-unit)
3890 `(("bundler" ,bundler)
3891 ("ruby-test-unit" ,ruby-test-unit)))
3892 (synopsis "Ruby library adding metaclass method to all objects")
3894 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3896 (home-page "https://github.com/floehopper/metaclass")
3897 (license license:expat)))
3899 (define-public ruby-mkmf-lite
3901 (name "ruby-mkmf-lite")
3905 (uri (rubygems-uri "mkmf-lite" version))
3908 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3909 (build-system ruby-build-system)
3911 `(("ruby-ptools" ,ruby-ptools)))
3912 (synopsis "Lightweight alternative to @code{mkmf}")
3914 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3915 for use as a library. It does not create packages, builds, or log files of
3916 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3917 to check for the presence of header files, constants, and so on.")
3918 (home-page "https://github.com/djberg96/mkmf-lite")
3919 (license license:asl2.0)))
3921 (define-public ruby-mspec
3928 (uri (rubygems-uri "mspec" version))
3931 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3932 (build-system ruby-build-system)
3934 '(;; TODO: 3 test failures
3935 ;; ./spec/mocks/mock_spec.rb:82
3936 ;; ./spec/utils/name_map_spec.rb:151
3937 ;; ./spec/utils/name_map_spec.rb:155
3940 (modify-phases %standard-phases
3941 (add-after 'extract-gemspec 'change-dependency-constraints
3943 (substitute* "mspec.gemspec"
3944 (("rake.*") "rake>)\n")
3945 (("rspec.*") "rspec>)\n"))
3948 (lambda* (#:key tests? #:allow-other-keys)
3950 (invoke "rspec" "spec"))
3953 `(("bundler" ,bundler)
3954 ("ruby-rake" ,ruby-rake)
3955 ("ruby-rspec" ,ruby-rspec)))
3956 (synopsis "MSpec is a specialized framework for RubySpec")
3958 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3959 for basic features. MSpec contains additional features that assist in writing
3960 specs for Ruby implementations in ruby/spec.")
3961 (home-page "http://rubyspec.org")
3962 (license license:expat)))
3964 (define-public ruby-mysql2
3966 (name "ruby-mysql2")
3972 (url "https://github.com/brianmario/mysql2")
3974 (file-name (git-file-name name version))
3977 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3978 (build-system ruby-build-system)
3980 '(;; TODO: Tests require a running MySQL/MariaDB service
3983 (modify-phases %standard-phases
3984 (replace 'replace-git-ls-files
3986 (substitute* "mysql2.gemspec"
3987 (("git ls-files .*`") "find . -type f |sort`"))
3989 (add-before 'install 'set-MAKEFLAGS
3990 (lambda* (#:key outputs #:allow-other-keys)
3994 "prefix=" (assoc-ref outputs "out")))
3996 ;; Move the 'check phase to after 'install, as then you can test
3997 ;; using the installed mysql2 gem in the store.
3999 (add-after 'install 'check
4000 (lambda* (#:key outputs tests? #:allow-other-keys)
4005 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
4010 `(("mariadb-dev" ,mariadb "dev")
4013 `(("ruby-rspec" ,ruby-rspec)
4014 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4015 (synopsis "MySQL library for Ruby, binding to libmysql")
4017 "This package provides a simple, fast MySQL library for Ruby, binding to
4019 (home-page "https://github.com/brianmario/mysql2")
4020 (license license:expat)))
4022 (define-public ruby-blankslate
4024 (name "ruby-blankslate")
4028 (uri (rubygems-uri "blankslate" version))
4031 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
4032 (build-system ruby-build-system)
4035 (modify-phases %standard-phases
4037 (lambda _ (invoke "rspec" "spec/"))))))
4039 `(("bundler" ,bundler)
4040 ("ruby-rspec" ,ruby-rspec)))
4041 (synopsis "Abstract base class with no predefined methods")
4043 "BlankSlate provides an abstract base class with no predefined
4044 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
4045 as a base class when writing classes that depend upon
4046 @code{method_missing} (e.g. dynamic proxies).")
4047 (home-page "https://github.com/masover/blankslate")
4048 (license license:expat)))
4050 (define-public ruby-bond
4057 (uri (rubygems-uri "bond" version))
4060 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
4061 (build-system ruby-build-system)
4063 ;; The test suite fails (see:
4064 ;; https://github.com/cldwalker/bond/issues/46).
4067 `(("ruby-bacon" ,ruby-bacon)
4068 ("ruby-bacon-bits" ,ruby-bacon-bits)
4069 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
4070 (synopsis "Bond can provide custom autocompletion for arguments, methods
4073 "Bond can autocomplete argument(s) to methods, uniquely completing per
4074 module, per method and per argument. Bond provides a configuration system and
4075 a DSL for creating custom completions and completion rules. Bond can also
4076 load completions that ship with gems. Bond is able to offer more than irb's
4077 completion since it uses the full line of input when completing as opposed to
4078 irb's last-word approach.")
4079 (home-page "http://tagaholic.me/bond/")
4080 (license license:expat)))
4082 (define-public ruby-idn-ruby
4084 (name "ruby-idn-ruby")
4089 (uri (rubygems-uri "idn-ruby" version))
4092 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
4093 (build-system ruby-build-system)
4096 (modify-phases %standard-phases
4098 (add-after 'install 'check
4099 (lambda* (#:key tests? outputs #:allow-other-keys)
4101 (let* ((gem-file (cadr (find-files "." "\\.gem")))
4102 (name-and-version (basename gem-file ".gem")))
4106 (assoc-ref outputs "out")
4107 "/lib/ruby/vendor_ruby/gems/"
4110 (find-files "./test" ".*\\.rb"))))
4113 `(("libidn" ,libidn)))
4114 (synopsis "Ruby Bindings for the GNU LibIDN library")
4116 "Ruby Bindings for the GNU LibIDN library, an implementation of the
4117 Stringprep, Punycode and IDNA specifications. These are used to encode and
4118 decode internationalized domain + names according to the IDNA2003
4121 Included are the most important parts of the Stringprep, Punycode and IDNA
4122 APIs like performing Stringprep processings, encoding to and decoding from
4123 Punycode strings and converting entire domain names to and from the ACE
4125 (home-page "https://github.com/deepfryed/idn-ruby")
4126 (license license:asl2.0)))
4128 (define-public ruby-instantiator
4130 (name "ruby-instantiator")
4134 (uri (rubygems-uri "instantiator" version))
4137 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
4138 (build-system ruby-build-system)
4141 (modify-phases %standard-phases
4142 (add-after 'unpack 'add-test-unit-to-search-path
4143 (lambda* (#:key inputs #:allow-other-keys)
4144 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
4145 (substitute* "Rakefile"
4146 (("t\\.libs << \"test\"" line)
4147 (string-append line "; t.libs << \""
4148 test-unit "/lib/ruby/vendor_ruby"
4150 ,(package-version ruby-test-unit)
4154 `(("ruby-blankslate" ,ruby-blankslate)))
4156 `(("bundler" ,bundler)
4157 ("ruby-test-unit" ,ruby-test-unit)))
4158 (synopsis "Instantiate an arbitrary Ruby class")
4160 "Instantiator lets you instantiate an arbitrary Ruby class without
4161 knowing anything about the constructor.")
4162 (home-page "https://github.com/floehopper/instantiator")
4163 (license license:expat)))
4165 (define-public ruby-introspection
4167 (name "ruby-introspection")
4171 (uri (rubygems-uri "introspection" version))
4174 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
4175 (build-system ruby-build-system)
4178 (modify-phases %standard-phases
4179 (add-after 'unpack 'add-test-unit-to-search-path
4180 (lambda* (#:key inputs #:allow-other-keys)
4181 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
4182 (substitute* "Rakefile"
4183 (("t\\.libs << \"test\"" line)
4184 (string-append line "; t.libs << \""
4185 test-unit "/lib/ruby/vendor_ruby"
4187 ,(package-version ruby-test-unit)
4191 `(("ruby-instantiator" ,ruby-instantiator)
4192 ("ruby-metaclass" ,ruby-metaclass)))
4194 `(("bundler" ,bundler)
4195 ("ruby-blankslate" ,ruby-blankslate)
4196 ("ruby-test-unit" ,ruby-test-unit)))
4197 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
4199 "Introspection provides tools to inspect the hierarchy of method
4200 definitions on a Ruby object.")
4201 (home-page "https://github.com/floehopper/introspection")
4202 (license license:expat)))
4204 (define-public ruby-redcarpet
4206 (name "ruby-redcarpet")
4210 (uri (rubygems-uri "redcarpet" version))
4213 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4214 (build-system ruby-build-system)
4217 (modify-phases %standard-phases
4218 ;; The gem archive does not include the conformance tests.
4219 (add-after 'unpack 'disable-conformance-tests
4221 (substitute* "Rakefile"
4222 (("task :test => %w\\[test:unit test:conformance\\]")
4223 "task :test => %w[test:unit]"))
4226 `(("bundler" ,bundler)
4227 ("ruby-test-unit" ,ruby-test-unit)
4228 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4229 (synopsis "Extensible Markdown to (X)HTML converter")
4231 "Redcarpet is an extensible Ruby library for Markdown processing and
4232 conversion to (X)HTML.")
4233 (home-page "https://github.com/vmg/redcarpet")
4234 (license license:expat)))
4236 (define-public ruby-rerun
4243 (uri (rubygems-uri "rerun" version))
4246 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4247 (build-system ruby-build-system)
4249 '(#:tests? #f)) ; No included tests
4251 `(("ruby-listen" ,ruby-listen)))
4252 (synopsis "Run a process, and restart when some monitored files change")
4254 "Rerun is a tool to launch programs, then monitor the file system, and
4255 restart the program when any of the monitored files change. It's written in
4256 Ruby, but can be used for all programs.")
4257 (home-page "https://github.com/alexch/rerun/")
4258 (license license:expat)))
4260 (define-public ruby-maxitest
4262 (name "ruby-maxitest")
4264 (home-page "https://github.com/grosser/maxitest")
4266 ;; Pull from git because the gem does not contain tests.
4270 (commit (string-append "v" version))))
4271 (file-name (git-file-name name version))
4274 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4275 (build-system ruby-build-system)
4277 '(#:test-target "default"
4278 #:phases (modify-phases %standard-phases
4279 (replace 'replace-git-ls-files
4281 (substitute* "maxitest.gemspec"
4282 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4283 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4285 (add-before 'check 'remove-version-constraints
4287 ;; Don't use specific versions of dependencies, instead
4288 ;; take whatever is available in Guix.
4289 (delete-file "Gemfile.lock")
4291 (add-before 'check 'add-mtest-on-PATH
4293 ;; Tests use 'mtest' which is not automatically added on
4295 (setenv "PATH" (string-append (getcwd) "/bin:"
4300 ("ruby-bump" ,ruby-bump)
4301 ("ruby-byebug" ,ruby-byebug)
4302 ("ruby-rspec" ,ruby-rspec)
4303 ("ruby-wwtd" ,ruby-wwtd)))
4305 `(("ruby-minitest" ,ruby-minitest)))
4306 (synopsis "Minitest with extra features")
4308 "Maxitest is a wrapper around Minitest with extra functionality such
4309 as timeouts, an @command{mtest} executable that can run tests by line
4310 number, support for interrupted tests, better backtraces, and more.")
4311 (license license:expat)))
4313 (define-public ruby-mocha
4319 (uri (rubygems-uri "mocha" version))
4322 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4323 (build-system ruby-build-system)
4326 (modify-phases %standard-phases
4327 (add-before 'check 'remove-rubocop-dependency
4329 ;; Disable dependency on Rubocop, which is just a linter,
4330 ;; and would introduce a circular dependency.
4331 (substitute* "mocha.gemspec"
4336 `(("ruby-introspection" ,ruby-introspection)))
4337 (synopsis "Mocking and stubbing library for Ruby")
4339 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4340 allows mocking and stubbing of methods on real (non-mock) classes.")
4341 (home-page "http://gofreerange.com/mocha/docs")
4342 ;; Mocha can be used with either license at the users choice.
4343 (license (list license:expat license:ruby))))
4345 (define-public ruby-mocha-on-bacon
4347 (name "ruby-mocha-on-bacon")
4352 (uri (rubygems-uri "mocha-on-bacon" version))
4355 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4356 (build-system ruby-build-system)
4358 ;; rubygems.org release missing tests
4360 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4361 (synopsis "Mocha adapter for Bacon")
4363 "This package provides a Mocha adapter for Bacon, allowing you to use the
4364 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4366 "https://github.com/alloy/mocha-on-bacon")
4367 (license license:expat)))
4369 (define-public ruby-net-ssh
4371 (name "ruby-net-ssh")
4375 (uri (rubygems-uri "net-ssh" version))
4378 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4379 (build-system ruby-build-system)
4381 `(("bundler" ,bundler)
4382 ("ruby-mocha" ,ruby-mocha)
4383 ("ruby-test-unit" ,ruby-test-unit)))
4384 (synopsis "Ruby implementation of the SSH2 client protocol")
4385 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4386 client protocol. It allows you to write programs that invoke and interact
4387 with processes on remote servers, via SSH2.")
4388 (home-page "https://github.com/net-ssh/net-ssh")
4389 (license license:expat)))
4391 (define-public ruby-net-scp
4393 (name "ruby-net-scp")
4394 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4395 (version "1.2.2.rc2")
4400 (url "https://github.com/net-ssh/net-scp")
4401 (commit (string-append "v" version))))
4402 (file-name (git-file-name name version))
4404 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4405 (build-system ruby-build-system)
4407 `(("bundler" ,bundler)
4408 ("ruby-test-unit" ,ruby-test-unit)
4409 ("ruby-mocha" ,ruby-mocha)))
4411 `(("ruby-net-ssh" ,ruby-net-ssh)))
4412 (synopsis "Pure-Ruby SCP client library")
4413 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4415 (home-page "https://github.com/net-ssh/net-scp")
4416 (license license:expat)))
4418 (define-public ruby-minitest
4420 (name "ruby-minitest")
4424 (uri (rubygems-uri "minitest" version))
4427 "0zjm24aiz42i9n37mcw8lydd7n0y7wfk27by06jx77ypcld3qvkw"))))
4428 (build-system ruby-build-system)
4430 `(("ruby-hoe" ,ruby-hoe)))
4431 (synopsis "Small test suite library for Ruby")
4432 (description "Minitest provides a complete suite of Ruby testing
4433 facilities supporting TDD, BDD, mocking, and benchmarking.")
4434 (home-page "https://github.com/seattlerb/minitest")
4435 (license license:expat)))
4437 ;; This is the last release of Minitest 4, which is used by some packages.
4438 (define-public ruby-minitest-4
4439 (package (inherit ruby-minitest)
4443 (uri (rubygems-uri "minitest" version))
4446 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4449 (modify-phases %standard-phases
4450 (add-after 'unpack 'remove-unsupported-method
4452 (substitute* "Rakefile"
4453 (("self\\.rubyforge_name = .*") ""))
4455 (add-after 'build 'exclude-failing-tests
4457 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4459 (delete-file "test/minitest/test_minitest_spec.rb")
4462 (define-public ruby-minitest-around
4464 (name "ruby-minitest-around")
4469 (uri (rubygems-uri "minitest-around" version))
4472 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4473 (build-system ruby-build-system)
4476 (modify-phases %standard-phases
4477 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4479 (substitute* "minitest-around.gemspec"
4480 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4483 `(("ruby-minitest" ,ruby-minitest)))
4485 `(("bundler" ,bundler)
4486 ("ruby-cucumber" ,ruby-cucumber)
4487 ("ruby-bump" ,ruby-bump)
4488 ("ruby-test-construct" ,ruby-test-construct)))
4489 (synopsis "Run code around tests in Minitest")
4491 "This library provides a way to run code around tests in Minitest,
4492 written using either the unit test or spec style.")
4493 (home-page "https://github.com/splattael/minitest-around")
4494 (license license:expat)))
4496 (define-public ruby-minitest-sprint
4498 (name "ruby-minitest-sprint")
4502 (uri (rubygems-uri "minitest-sprint" version))
4505 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4506 (build-system ruby-build-system)
4508 `(("ruby-hoe" ,ruby-hoe)
4509 ("ruby-minitest" ,ruby-minitest)))
4510 (synopsis "Fast test suite runner for minitest")
4511 (description "Minitest-sprint is a test runner for minitest that makes it
4512 easier to re-run individual failing tests.")
4513 (home-page "https://github.com/seattlerb/minitest-sprint")
4514 (license license:expat)))
4516 (define-public ruby-minitest-bacon
4518 (name "ruby-minitest-bacon")
4522 (uri (rubygems-uri "minitest-bacon" version))
4525 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4526 (build-system ruby-build-system)
4528 `(("ruby-hoe" ,ruby-hoe)))
4530 `(("ruby-minitest" ,ruby-minitest)))
4531 (synopsis "Bacon compatibility library for minitest")
4532 (description "Minitest-bacon extends minitest with bacon-like
4533 functionality, making it easier to migrate test suites from bacon to minitest.")
4534 (home-page "https://github.com/seattlerb/minitest-bacon")
4535 (license license:expat)))
4537 (define-public ruby-minitest-focus
4539 (name "ruby-minitest-focus")
4544 (uri (rubygems-uri "minitest-focus" version))
4547 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4548 (build-system ruby-build-system)
4550 `(("ruby-minitest" ,ruby-minitest)))
4552 `(("ruby-hoe" ,ruby-hoe)))
4553 (synopsis "Allows a few specific tests to be focused on")
4555 "@code{minitest-focus} gives the ability focus on a few tests with ease
4556 without having to use command-line arguments. It introduces a @code{focus}
4557 class method for use in testing classes, specifying that the next defined test
4559 (home-page "https://github.com/seattlerb/minitest-focus")
4560 (license license:expat)))
4562 (define-public ruby-minitest-pretty-diff
4563 ;; Use git reference because gem is out of date and does not contain testing
4564 ;; script. There are no releases on GitHub.
4565 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4567 (name "ruby-minitest-pretty-diff")
4568 (version (string-append "0.1-1." (string-take commit 8)))
4572 (url "https://github.com/adammck/minitest-pretty_diff")
4574 (file-name (string-append name "-" version "-checkout"))
4577 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4578 (build-system ruby-build-system)
4581 (modify-phases %standard-phases
4584 (invoke "script/test"))))))
4586 `(("bundler" ,bundler)
4587 ("ruby-turn" ,ruby-turn)))
4588 (synopsis "Pretty-print hashes and arrays in MiniTest")
4590 "@code{minitest-pretty_diff} monkey-patches
4591 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4592 diffing them. This makes it easier to spot differences between nested
4593 structures when tests fail.")
4594 (home-page "https://github.com/adammck/minitest-pretty_diff")
4595 (license license:expat))))
4597 (define-public ruby-minitest-moar
4599 (name "ruby-minitest-moar")
4604 (uri (rubygems-uri "minitest-moar" version))
4607 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4608 (build-system ruby-build-system)
4611 (modify-phases %standard-phases
4612 (add-before 'check 'clean-dependencies
4614 ;; Remove all gems defined in the Gemfile because these are not
4616 (substitute* "Gemfile"
4618 ;; Remove byebug as not needed to run tests.
4619 (substitute* "test/test_helper.rb"
4620 (("require 'byebug'") ""))
4623 `(("bundler" ,bundler)
4624 ("ruby-minitest" ,ruby-minitest)))
4625 (synopsis "Extra features and changes to MiniTest")
4626 (description "@code{MiniTest Moar} add some additional features and
4627 changes some default behaviours in MiniTest. For instance, Moar replaces the
4628 MiniTest @code{Object#stub} with a global @code{stub} method.")
4629 (home-page "https://github.com/dockyard/minitest-moar")
4630 (license license:expat)))
4632 (define-public ruby-minitest-bonus-assertions
4634 (name "ruby-minitest-bonus-assertions")
4639 (uri (rubygems-uri "minitest-bonus-assertions" version))
4642 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4643 (build-system ruby-build-system)
4646 (modify-phases %standard-phases
4647 (add-before 'check 'clean-dependencies
4649 ;; Remove unneeded require statement that would entail another
4651 (substitute* "test/minitest_config.rb"
4652 (("require 'minitest/bisect'") ""))
4655 `(("ruby-hoe" ,ruby-hoe)
4656 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4657 ("ruby-minitest-focus" ,ruby-minitest-focus)
4658 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4659 (synopsis "Bonus assertions for @code{Minitest}")
4661 "Minitest bonus assertions provides extra MiniTest assertions. For
4662 instance, it provides @code{assert_true}, @code{assert_false} and
4663 @code{assert_set_equal}.")
4664 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4665 (license license:expat)))
4667 (define-public ruby-minitest-reporters
4669 (name "ruby-minitest-reporters")
4674 (uri (rubygems-uri "minitest-reporters" version))
4677 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4678 (build-system ruby-build-system)
4681 (modify-phases %standard-phases
4682 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4683 ;; including it as an input can lead to circular dependencies.
4684 (add-after 'unpack 'remove-rubocop-from-Rakefile
4686 (substitute* "Rakefile"
4687 (("require 'rubocop/rake\\_task'") "")
4688 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4690 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4692 (substitute* "minitest-reporters.gemspec"
4693 ((".*%q<rubocop>.*") "\n"))
4696 `(("ruby-ansi" ,ruby-ansi)
4697 ("ruby-builder" ,ruby-builder)
4698 ("ruby-minitest" ,ruby-minitest)
4699 ("ruby-progressbar" ,ruby-progressbar)))
4701 `(("bundler" ,bundler)
4702 ("ruby-maruku" ,ruby-maruku)))
4703 (synopsis "Enhanced reporting for Minitest tests")
4705 "@code{minitest/reporters} provides a custom Minitest runner to improve
4706 how the test state is reported. A number of different reporters are
4707 available, including a spec reporter, progress bar reporter, a HTML
4709 (home-page "https://github.com/kern/minitest-reporters")
4710 (license license:expat)))
4712 (define-public ruby-minitest-rg
4714 (name "ruby-minitest-rg")
4719 (uri (rubygems-uri "minitest-rg" version))
4722 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4723 (build-system ruby-build-system)
4725 ;; Some tests fail even outside Guix, so disable tests.
4726 ;; https://github.com/blowmage/minitest-rg/issues/12
4727 ;; https://github.com/blowmage/minitest-rg/pull/13
4730 `(("ruby-minitest" ,ruby-minitest)))
4731 (synopsis "Coloured output for Minitest")
4733 "@code{minitest-rg} changes the colour of the output from Minitest.")
4734 (home-page "https://blowmage.com/minitest-rg/")
4735 (license license:expat)))
4737 (define-public ruby-minitest-global-expectations
4739 (name "ruby-minitest-global-expectations")
4744 (uri (rubygems-uri "minitest-global_expectations"
4748 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4749 (build-system ruby-build-system)
4751 `(("ruby-minitest" ,ruby-minitest)))
4752 (synopsis "Adjust minitest behaviour for calling expectation methods")
4754 "Minitest-global_expectations allows continued use of expectation methods
4755 on all objects. Calling expectation methods on all objects was deprecated in
4756 minitest 5.12, and is planned to be removed from minitest 6.")
4757 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4758 (license license:expat)))
4760 (define-public ruby-minitest-hooks
4762 (name "ruby-minitest-hooks")
4767 (uri (rubygems-uri "minitest-hooks" version))
4770 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4771 (build-system ruby-build-system)
4773 '(#:test-target "spec"))
4775 `(("ruby-sequel" ,ruby-sequel)
4776 ("ruby-sqlite3" ,ruby-sqlite3)))
4777 (synopsis "Hooks for the minitest framework")
4779 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4780 @code{around_all} hooks for Minitest. This allows, for instance, running each
4781 suite of specs inside a database transaction, running each spec inside its own
4782 savepoint inside that transaction. This can significantly speed up testing
4783 for specs that share expensive database setup code.")
4784 (home-page "https://github.com/jeremyevans/minitest-hooks")
4785 (license license:expat)))
4787 (define-public ruby-daemons
4789 (name "ruby-daemons")
4793 (uri (rubygems-uri "daemons" version))
4796 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4797 (build-system ruby-build-system)
4799 `(#:tests? #f)) ; no test suite
4800 (synopsis "Daemonize Ruby programs")
4801 (description "Daemons provides a way to wrap existing Ruby scripts to be
4802 run as a daemon and to be controlled by simple start/stop/restart commands.")
4803 (home-page "https://github.com/thuehlinger/daemons")
4804 (license license:expat)))
4806 (define-public ruby-data_uri
4808 (name "ruby-data_uri")
4813 (uri (rubygems-uri "data_uri" version))
4816 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4817 (build-system ruby-build-system)
4818 (synopsis "URI class for parsing data URIs")
4820 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4821 embedded inside a URI. The URI::Data class provides support for parsing these
4822 URIs using the normal URI.parse method.")
4823 (home-page "https://github.com/dball/data_uri")
4824 (license license:expat)))
4826 (define-public ruby-deep-merge
4828 (name "ruby-deep-merge")
4830 (home-page "https://github.com/danielsdeleo/deep_merge")
4831 ;; The Rubygem source does not contain the gemspec required for tests.
4834 (uri (git-reference (url home-page) (commit version)))
4835 (file-name (git-file-name name version))
4838 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4839 (build-system ruby-build-system)
4841 `(("ruby-minitest" ,ruby-minitest)))
4842 (synopsis "Recursively merge hashes")
4844 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4845 you to merge elements inside a hash together recursively.")
4846 (license license:expat)))
4848 (define-public ruby-git
4854 (uri (rubygems-uri "git" version))
4857 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4858 (build-system ruby-build-system)
4860 `(#:tests? #f ; no tests
4861 #:phases (modify-phases %standard-phases
4862 (add-after 'install 'patch-git-binary
4863 (lambda* (#:key inputs outputs #:allow-other-keys)
4864 ;; Make the default git binary an absolute path to the
4866 (let ((git (string-append (assoc-ref inputs "git")
4868 (config (string-append
4869 (assoc-ref outputs "out")
4870 "/lib/ruby/vendor_ruby/gems/git-"
4871 ,version "/lib/git/config.rb")))
4872 (substitute* (list config)
4874 (string-append "'" git "'")))
4878 (synopsis "Ruby wrappers for Git")
4879 (description "Ruby/Git is a Ruby library that can be used to create, read
4880 and manipulate Git repositories by wrapping system calls to the git binary.")
4881 (home-page "https://github.com/schacon/ruby-git")
4882 (license license:expat)))
4884 (define-public ruby-hocon
4888 (home-page "https://github.com/puppetlabs/ruby-hocon")
4891 (uri (git-reference (url home-page) (commit version)))
4892 (file-name (git-file-name name version))
4895 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4896 (build-system ruby-build-system)
4898 '(#:phases (modify-phases %standard-phases
4900 (lambda* (#:key tests? #:allow-other-keys)
4903 (format #t "test suite not run~%"))
4906 `(("bundler" ,bundler)
4907 ("ruby-rspec" ,ruby-rspec)))
4908 (synopsis "HOCON config library")
4910 "This package provides Ruby support for the @acronym{HOCON,
4911 Human-Optimized Config Object Notation} configuration file format. It
4912 supports parsing and modifying HOCON and JSON files, and rendering parsed
4913 objects back to a @code{String}.")
4914 (license license:asl2.0)))
4916 (define-public ruby-slop
4922 (uri (rubygems-uri "slop" version))
4925 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4926 (build-system ruby-build-system)
4928 `(("ruby-minitest" ,ruby-minitest)))
4929 (synopsis "Ruby command line option parser")
4930 (description "Slop provides a Ruby domain specific language for gathering
4931 options and parsing command line flags.")
4932 (home-page "https://github.com/leejarvis/slop")
4933 (license license:expat)))
4935 (define-public ruby-slop-3
4936 (package (inherit ruby-slop)
4940 (uri (rubygems-uri "slop" version))
4943 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4945 (define-public ruby-multi-xml
4947 (name "ruby-multi-xml")
4952 (uri (rubygems-uri "multi_xml" version))
4955 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4956 (build-system ruby-build-system)
4958 '(#:tests? #f)) ; No included tests
4959 (synopsis "Swappable XML backends for Ruby")
4961 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4962 Nokogiri, Ox, or REXML.")
4963 (home-page "https://github.com/sferik/multi_xml")
4964 (license license:expat)))
4966 (define-public ruby-multipart-post
4968 (name "ruby-multipart-post")
4972 (uri (rubygems-uri "multipart-post" version))
4975 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4976 (build-system ruby-build-system)
4978 `(("bundler" ,bundler)))
4979 (synopsis "Multipart POST library for Ruby")
4980 (description "Multipart-Post Adds multipart POST capability to Ruby's
4982 (home-page "https://github.com/nicksieger/multipart-post")
4983 (license license:expat)))
4985 (define-public ruby-multi-json
4987 (name "ruby-multi-json")
4992 ;; Tests are not distributed at rubygems.org so download from GitHub
4995 (url "https://github.com/intridea/multi_json")
4996 (commit (string-append "v" version))))
4997 (file-name (git-file-name name version))
5000 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
5001 (build-system ruby-build-system)
5004 (modify-phases %standard-phases
5005 (add-after 'unpack 'remove-signing-key-reference
5007 (substitute* "multi_json.gemspec"
5008 ((".*spec.signing_key.*") ""))
5011 `(("bundler" ,bundler)
5012 ("ruby-rspec" ,ruby-rspec)
5013 ("ruby-yard" ,ruby-yard)
5014 ("ruby-json-pure" ,ruby-json-pure)
5015 ("ruby-oj" ,ruby-oj)
5016 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
5017 (synopsis "Common interface to multiple JSON libraries for Ruby")
5019 "This package provides a common interface to multiple JSON libraries,
5020 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
5021 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
5022 (home-page "https://github.com/intridea/multi_json")
5023 (license license:expat)))
5025 (define-public ruby-multi-test
5027 (name "ruby-multi-test")
5032 (uri (rubygems-uri "multi_test" version))
5035 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
5036 (build-system ruby-build-system)
5038 '(;; Tests require different sets of specific gem versions to be available,
5039 ;; and there is no gemfile that specifies the newest versions of
5040 ;; dependencies to be tested.
5043 "Interface to testing libraries loaded into a running Ruby process")
5045 "@code{multi_test} provides a uniform interface onto whatever testing
5046 libraries that have been loaded into a running Ruby process to help control
5047 rogue test/unit/autorun requires.")
5048 (home-page "https://github.com/cucumber/multi_test")
5049 (license license:expat)))
5051 (define-public ruby-arel
5057 (uri (rubygems-uri "arel" version))
5060 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
5061 (build-system ruby-build-system)
5062 (arguments '(#:tests? #f)) ; no tests
5063 (home-page "https://github.com/rails/arel")
5064 (synopsis "SQL AST manager for Ruby")
5065 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
5066 Ruby. It simplifies the generation of complex SQL queries and adapts to
5067 various relational database implementations.")
5068 (license license:expat)))
5070 (define-public ruby-marcel
5072 (name "ruby-marcel")
5077 (uri (rubygems-uri "marcel" version))
5080 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
5081 (build-system ruby-build-system)
5083 '(;; No included tests
5086 `(("ruby-mimemagic" ,ruby-mimemagic)))
5087 (synopsis "MIME type detection using magic numbers, filenames and extensions")
5089 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
5090 Extensions} type detection using magic numbers, filenames, and extensions")
5091 (home-page "https://github.com/basecamp/marcel")
5092 (license license:expat)))
5094 (define-public ruby-minitar
5095 ;; We package from the GitHub source to fix the security issue reported at
5096 ;; https://github.com/halostatue/minitar/issues/16.
5097 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
5099 (name "ruby-minitar")
5100 (version (string-append "0.5.4-1." (string-take commit 8)))
5105 (url "https://github.com/halostatue/minitar")
5107 (file-name (string-append name "-" version "-checkout"))
5110 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
5111 (build-system ruby-build-system)
5113 '(#:tests? #f)) ; missing a gemspec
5114 (synopsis "Ruby library and utility for handling tar archives")
5116 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
5117 that provides the ability to deal with POSIX tar archive files.")
5118 (home-page "http://www.github.com/atoulme/minitar")
5119 (license (list license:gpl2+ license:ruby)))))
5121 (define-public ruby-mini-portile
5123 (name "ruby-mini-portile")
5128 (uri (rubygems-uri "mini_portile" version))
5131 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
5132 (build-system ruby-build-system)
5134 '(#:tests? #f)) ; tests require network access
5135 (synopsis "Ports system for Ruby developers")
5136 (description "Mini-portile is a port/recipe system for Ruby developers.
5137 It provides a standard way to compile against specific versions of libraries
5138 to reproduce user environments.")
5139 (home-page "https://github.com/flavorjones/mini_portile")
5140 (license license:expat)))
5142 (define-public ruby-mini-portile-2
5143 (package (inherit ruby-mini-portile)
5147 (uri (rubygems-uri "mini_portile2" version))
5150 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
5152 (define-public ruby-nokogiri
5154 (name "ruby-nokogiri")
5158 (uri (rubygems-uri "nokogiri" version))
5161 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
5162 (build-system ruby-build-system)
5164 ;; Tests fail because Nokogiri can only test with an installed extension,
5165 ;; and also because many test framework dependencies are missing.
5167 #:gem-flags (list "--" "--use-system-libraries"
5168 (string-append "--with-xml2-include="
5169 (assoc-ref %build-inputs "libxml2")
5170 "/include/libxml2" ))
5172 (modify-phases %standard-phases
5173 (add-before 'build 'patch-extconf
5174 ;; 'pkg-config' is not included in the GEM_PATH during
5175 ;; installation, so we add it directly to the load path.
5176 (lambda* (#:key inputs #:allow-other-keys)
5177 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
5178 (substitute* "ext/nokogiri/extconf.rb"
5179 (("gem 'pkg-config'.*")
5180 (string-append "$:.unshift '"
5181 pkg-config "/lib/ruby/vendor_ruby"
5183 ,(package-version ruby-pkg-config)
5187 `(("ruby-hoe" ,ruby-hoe)))
5190 ("libxml2" ,libxml2)
5191 ("libxslt" ,libxslt)))
5193 `(("ruby-mini-portile" ,ruby-mini-portile-2)
5194 ("ruby-pkg-config" ,ruby-pkg-config)))
5195 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
5196 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
5197 both CSS3 selector and XPath 1.0 support.")
5198 (home-page "http://www.nokogiri.org/")
5199 (license license:expat)))
5201 (define-public ruby-method-source
5203 (name "ruby-method-source")
5208 (uri (rubygems-uri "method_source" version))
5211 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5212 (build-system ruby-build-system)
5214 `(#:test-target "spec"
5216 (modify-phases %standard-phases
5217 (add-after 'unpack 'remove-git-ls-files
5218 (lambda* (#:key outputs #:allow-other-keys)
5219 (substitute* "Rakefile"
5220 (("git ls-files") "find . -type f"))
5223 `(("ruby-rspec" ,ruby-rspec)))
5224 (synopsis "Retrieve the source code for Ruby methods")
5225 (description "Method_source retrieves the source code for Ruby methods.
5226 Additionally, it can extract source code from Proc and Lambda objects or just
5228 (home-page "https://github.com/banister/method_source")
5229 (license license:expat)))
5231 (define-public ruby-coderay
5233 (name "ruby-coderay")
5238 (uri (rubygems-uri "coderay" version))
5241 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5242 (build-system ruby-build-system)
5244 '(#:tests? #f)) ; missing test files
5245 (synopsis "Ruby syntax highlighting library")
5246 (description "Coderay is a Ruby library that provides syntax highlighting
5247 for select languages.")
5248 (home-page "http://coderay.rubychan.de")
5249 (license license:expat)))
5251 (define-public ruby-cuke-modeler
5253 (name "ruby-cuke-modeler")
5258 (uri (rubygems-uri "cuke_modeler" version))
5261 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5262 (build-system ruby-build-system)
5263 (arguments `(#:tests? #f)) ;no test suite in gem
5265 `(("ruby-gherkin" ,ruby-gherkin)))
5266 (synopsis "Gherkin test suite analysis tool")
5267 (description "CukeModeler facilitates modeling a test suite that is
5268 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5269 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5270 the @code{cucumber-gherkin} generates when parsing features, as well as
5271 providing models for feature files and directories in order to be able to have
5272 a fully traversable model tree of a test suite's structure. These models can
5273 then be analyzed or manipulated more easily than the underlying AST layer.")
5274 (home-page "https://github.com/enkessler/cuke_modeler")
5275 (license license:expat)))
5277 (define-public ruby-parallel-tests
5279 (name "ruby-parallel-tests")
5281 (home-page "https://github.com/grosser/parallel_tests")
5286 (commit (string-append "v" version))))
5287 (file-name (string-append name version))
5290 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5291 (build-system ruby-build-system)
5293 '(#:test-target "default"
5294 #:phases (modify-phases %standard-phases
5295 (add-after 'patch-source-shebangs 'patch-shell-invokations
5297 (substitute* '("lib/parallel_tests/tasks.rb"
5298 "spec/parallel_tests/tasks_spec.rb")
5299 (("/bin/sh") (which "sh"))
5300 (("/bin/bash") (which "bash")))
5302 (add-before 'check 'remove-version-constraints
5304 ;; Remove hard coded version constraints, instead just
5305 ;; use whatever versions are available in Guix.
5306 (delete-file "Gemfile.lock")
5307 (substitute* "Gemfile"
5313 (add-before 'check 'disable-rails-test
5315 ;; XXX: This test attempts to download and run the test
5316 ;; suites of multiple Rails versions(!) directly.
5317 (delete-file "spec/rails_spec.rb")
5319 (add-before 'check 'set-HOME
5321 ;; Some tests check the output of Bundler, and fail when
5322 ;; Bundler warns that /homeless-shelter does not exist.
5323 (setenv "HOME" "/tmp")
5326 `(("ruby-bump" ,ruby-bump)
5327 ("ruby-cucumber" ,ruby-cucumber)
5328 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5329 ("ruby-minitest" ,ruby-minitest)
5330 ("ruby-rake" ,ruby-rake)
5331 ("ruby-rspec" ,ruby-rspec)
5332 ("ruby-spinach" ,ruby-spinach)))
5334 `(("ruby-parallel" ,ruby-parallel)))
5335 (synopsis "Run tests in parallel")
5337 "This package can speed up @code{Test::Unit}, @code{RSpec},
5338 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5339 across multiple CPU cores.")
5340 (license license:expat)))
5342 (define-public ruby-parser
5344 (name "ruby-parser")
5349 (uri (rubygems-uri "parser" version))
5352 "1jixakyzmy0j5c1rb0fjrrdhgnyryvrr6vgcybs14jfw09akv5ml"))))
5353 (build-system ruby-build-system)
5355 '(#:tests? #f)) ; tests not included in gem
5357 `(("bundler" ,bundler)
5358 ("ruby-cliver" ,ruby-cliver)
5359 ("ruby-simplecov" ,ruby-simplecov)
5360 ("ruby-racc" ,ruby-racc)))
5362 `(("ragel" ,ragel)))
5364 `(("ruby-ast" ,ruby-ast)))
5365 (synopsis "Ruby parser written in pure Ruby")
5367 "This package provides a Ruby parser written in pure Ruby.")
5368 (home-page "https://github.com/whitequark/parser")
5369 (license license:expat)))
5371 (define-public ruby-sexp-processor
5373 (name "ruby-sexp-processor")
5378 (uri (rubygems-uri "sexp_processor" version))
5381 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5382 (build-system ruby-build-system)
5384 ;; TODO: Add ruby-minitest-proveit once available.
5385 `(("hoe" ,ruby-hoe)))
5386 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5387 (description "The sexp_processor package is derived from ParseTree, but
5388 contrary to ParseTree, it includes all the generic S-exp processing tools.
5389 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5390 @code{Environment}")
5391 (home-page "https://github.com/seattlerb/sexp_processor")
5392 (license license:expat)))
5394 (define-public ruby-ruby-parser
5396 (name "ruby-ruby-parser")
5401 (uri (rubygems-uri "ruby_parser" version))
5404 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5405 (build-system ruby-build-system)
5409 ("unifdef" ,unifdef)))
5411 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5412 (home-page "https://github.com/seattlerb/ruby_parser/")
5413 (synopsis "Ruby parser written in pure Ruby")
5414 (description "The ruby_parser (RP) package provides a Ruby parser written
5415 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5416 back to Ruby via the @code{ruby2ruby} library.")
5417 (license license:expat)))
5419 (define-public ruby-prawn-manual-builder
5421 (name "ruby-prawn-manual-builder")
5426 (uri (rubygems-uri "prawn-manual_builder" version))
5428 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5429 (build-system ruby-build-system)
5431 '(#:tests? #f ; no included tests
5433 (modify-phases %standard-phases
5434 (add-after 'extract-gemspec 'patch-gemspec
5436 (substitute* ".gemspec"
5437 ;; Loosen the requirement for pdf-inspector
5438 (("~> 1\\.0\\.7") ">= 0")))))))
5440 `(("ruby-coderay" ,ruby-coderay)))
5441 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5443 "This package provides a tool for writing manuals for Prawn and Prawn
5445 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5446 (license %prawn-project-licenses)))
5448 (define-public ruby-progress_bar
5450 (name "ruby-progress_bar")
5455 (uri (rubygems-uri "progress_bar" version))
5458 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5459 (build-system ruby-build-system)
5461 '(#:test-target "spec"))
5463 `(("ruby-highline" ,ruby-highline)
5464 ("ruby-options" ,ruby-options)))
5466 `(("bundler" ,bundler)
5467 ("ruby-rspec" ,ruby-rspec)
5468 ("ruby-timecop" ,ruby-timecop)))
5470 "Ruby library for displaying progress bars")
5472 "ProgressBar is a simple library for displaying progress bars. The
5473 maximum value is configurable, and additional information can be displayed
5474 like the percentage completion, estimated time remaining, elapsed time and
5476 (home-page "https://github.com/paul/progress_bar")
5477 (license license:wtfpl2)))
5479 (define-public ruby-dep
5486 (uri (rubygems-uri "ruby_dep" version))
5489 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5490 (build-system ruby-build-system)
5492 '(#:tests? #f)) ; No included tests
5493 (synopsis "Creates a version constraint of supported Rubies")
5495 "This package helps create a version constraint of supported Rubies,
5496 suitable for a gemspec file.")
5497 (home-page "https://github.com/e2/ruby_dep")
5498 (license license:expat)))
5500 (define-public ruby-progressbar
5502 (name "ruby-progressbar")
5507 (uri (rubygems-uri "ruby-progressbar" version))
5509 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5510 (build-system ruby-build-system)
5512 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5514 (synopsis "Text progress bar library for Ruby")
5516 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5517 The output can be customized with a formatting system.")
5518 (home-page "https://github.com/jfelchner/ruby-progressbar")
5519 (license license:expat)))
5521 (define-public ruby-pry
5528 (uri (rubygems-uri "pry" version))
5531 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5532 (build-system ruby-build-system)
5534 '(#:tests? #f)) ; no tests
5536 `(("ruby-coderay" ,ruby-coderay)
5537 ("ruby-method-source" ,ruby-method-source)))
5538 (synopsis "Ruby REPL")
5539 (description "Pry is an IRB alternative and runtime developer console for
5540 Ruby. It features syntax highlighting, a plugin architecture, runtime
5541 invocation, and source and documentation browsing.")
5542 (home-page "https://cobaltbluemedia.com/pryrepl/")
5543 (license license:expat)))
5545 (define-public ruby-single-cov
5547 (name "ruby-single-cov")
5549 (home-page "https://github.com/grosser/single_cov")
5552 (uri (git-reference (url home-page)
5553 (commit (string-append "v" version))))
5554 (file-name (git-file-name name version))
5557 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5558 (build-system ruby-build-system)
5560 '(#:test-target "default"
5561 #:phases (modify-phases %standard-phases
5562 (replace 'replace-git-ls-files
5564 (substitute* "single_cov.gemspec"
5565 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5566 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5568 (add-before 'check 'remove-version-constraints
5570 (delete-file "Gemfile.lock")
5572 (add-before 'check 'make-files-writable
5574 ;; Tests need to create local directories and open files
5575 ;; with write permissions.
5576 (for-each make-file-writable
5577 (find-files "specs" #:directories? #t))
5579 (add-before 'check 'disable-failing-test
5581 ;; XXX: This test copies assets from minitest, but can
5582 ;; not cope with the files being read-only. Just skip
5584 (substitute* "specs/single_cov_spec.rb"
5585 (("it \"complains when coverage is bad\"")
5586 "xit \"complains when coverage is bad\""))
5589 `(("ruby-bump" ,ruby-bump)
5590 ("ruby-minitest" ,ruby-minitest)
5591 ("ruby-rspec" ,ruby-rspec)
5592 ("ruby-simplecov" ,ruby-simplecov)))
5593 (synopsis "Code coverage reporting tool")
5595 "This package provides actionable code coverage reports for Ruby
5596 projects. It has very little overhead and can be easily integrated with
5597 development tools to catch coverage problems early.")
5598 (license license:expat)))
5600 (define-public ruby-oedipus-lex
5602 (name "ruby-oedipus-lex")
5607 (uri (rubygems-uri "oedipus_lex" version))
5610 "1v1rk78khwq87ar300lwll570zxpkq9rjnpgc9mgsyd6mm9qjz4w"))))
5611 (build-system ruby-build-system)
5613 `(("ruby-hoe" ,ruby-hoe)))
5614 (synopsis "Ruby lexer")
5616 "Oedipus Lex is a lexer generator in the same family as Rexical and Rex.
5617 It is based primarily on generating code much like you would a hand-written
5618 lexer. It uses StrScanner within a multi-level case statement. As such,
5619 Oedipus matches on the first match, not the longest.")
5620 (home-page "https://github.com/seattlerb/oedipus_lex")
5621 (license license:expat)))
5623 (define-public ruby-guard
5629 ;; The gem does not include a Rakefile, nor does it contain a
5630 ;; gemspec file, nor does it come with the tests. This is why
5631 ;; we fetch the tarball from Github.
5633 (url "https://github.com/guard/guard")
5634 (commit (string-append "v" version))))
5635 (file-name (git-file-name name version))
5638 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5639 (build-system ruby-build-system)
5641 `(#:tests? #f ; tests require cucumber
5643 (modify-phases %standard-phases
5644 (add-after 'unpack 'remove-git-ls-files
5645 (lambda* (#:key outputs #:allow-other-keys)
5646 (substitute* "guard.gemspec"
5647 (("git ls-files -z") "find . -type f -print0"))
5651 (invoke "gem" "build" "guard.gemspec"))))))
5653 `(("ruby-formatador" ,ruby-formatador)
5654 ("ruby-listen" ,ruby-listen)
5655 ("ruby-lumberjack" ,ruby-lumberjack)
5656 ("ruby-nenv" ,ruby-nenv)
5657 ("ruby-notiffany" ,ruby-notiffany)
5658 ("ruby-pry" ,ruby-pry)
5659 ("ruby-shellany" ,ruby-shellany)
5660 ("ruby-thor" ,ruby-thor)))
5662 `(("bundler" ,bundler)
5663 ("ruby-rspec" ,ruby-rspec)))
5664 (synopsis "Tool to handle events on file system modifications")
5666 "Guard is a command line tool to easily handle events on file system
5667 modifications. Guard automates various tasks by running custom rules whenever
5668 file or directories are modified.")
5669 (home-page "https://guardgem.org/")
5670 (license license:expat)))
5672 (define-public ruby-spinach
5674 (name "ruby-spinach")
5676 (home-page "https://github.com/codegram/spinach")
5679 (uri (rubygems-uri "spinach" version))
5682 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5683 (build-system ruby-build-system)
5685 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5686 ;; which in turn depends on many other unpackaged gems. Enable once
5687 ;; capybara is available.
5690 `(("ruby-colorize" ,ruby-colorize)
5691 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5692 ("ruby-json" ,ruby-json)))
5693 (synopsis "Gherkin-based BDD framework")
5695 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5696 framework that leverages the expressive @code{Gherkin} language to help you
5697 define executable specifications of your code.")
5698 (license license:expat)))
5700 (define-public ruby-tilt
5706 (method git-fetch) ;the distributed gem lacks tests
5708 (url "https://github.com/rtomayko/tilt")
5709 (commit (string-append "v" version))))
5710 (file-name (git-file-name name version))
5713 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5714 (build-system ruby-build-system)
5717 (modify-phases %standard-phases
5718 (add-after 'unpack 'remove-some-dependencies
5720 (substitute* "Gemfile"
5721 ;; TODO ronn is used for generating the manual
5722 (("gem 'ronn'.*") "\n")
5723 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5724 ;; pass it in as a native-input
5725 (("gem 'haml'.*") "\n")
5726 ;; TODO Not all of these gems are packaged for Guix yet:
5727 ;; less, coffee-script, livescript, babel-transpiler,
5729 (("if can_execjs") "if false")
5730 ;; Disable the secondary group to reduce the number of
5731 ;; dependencies. None of the normal approaches work, so patch
5732 ;; the Gemfile instead.
5733 (("group :secondary") "[].each"))
5736 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5737 ("ruby-sassc" ,ruby-sassc)))
5739 `(("bundler" ,bundler)
5740 ("ruby-yard" ,ruby-yard)
5741 ("ruby-builder" ,ruby-builder)
5742 ("ruby-erubis" ,ruby-erubis)
5743 ("ruby-markaby" ,ruby-markaby)))
5744 (synopsis "Generic interface to multiple Ruby template engines")
5746 "Tilt is a thin interface over a number of different Ruby template
5747 engines in an attempt to make their usage as generic as possible.")
5748 (home-page "https://github.com/rtomayko/tilt/")
5749 (license license:expat)))
5751 (define-public ruby-thread-safe
5753 (name "ruby-thread-safe")
5758 (uri (rubygems-uri "thread_safe" version))
5761 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5762 (build-system ruby-build-system)
5764 '(#:tests? #f)) ; needs simplecov, among others
5765 (synopsis "Thread-safe utilities for Ruby")
5766 (description "The thread_safe library provides thread-safe collections and
5767 utilities for Ruby.")
5768 (home-page "https://github.com/ruby-concurrency/thread_safe")
5769 (license license:asl2.0)))
5771 (define-public ruby-tzinfo
5773 (name "ruby-tzinfo")
5779 ;; Pull from git because the gem has no tests.
5780 (url "https://github.com/tzinfo/tzinfo")
5781 (commit (string-append "v" version))))
5782 (file-name (git-file-name name version))
5785 "0jaq1givdaz5jxz47xngyj3j315n872rk97mnpm5njwm48wy45yh"))))
5786 (build-system ruby-build-system)
5789 (modify-phases %standard-phases
5790 (add-after 'unpack 'skip-safe-tests
5792 (substitute* "test/test_utils.rb"
5793 (("def safe_test\\(options = \\{\\}\\)")
5794 "def safe_test(options = {})
5795 skip('The Guix build environment has an unsafe load path')"))
5797 (add-before 'check 'pre-check
5799 (setenv "HOME" (getcwd))
5800 (substitute* "Gemfile"
5801 (("simplecov.*") "simplecov'\n"))
5804 (lambda* (#:key tests? test-target #:allow-other-keys)
5806 (invoke "bundler" "exec" "rake" test-target))
5809 `(("ruby-concurrent-ruby" ,ruby-concurrent)))
5811 `(("ruby-simplecov" ,ruby-simplecov)))
5812 (synopsis "Time zone library for Ruby")
5813 (description "TZInfo is a Ruby library that provides daylight savings
5814 aware transformations between times in different time zones.")
5815 (home-page "https://tzinfo.github.io")
5816 (license license:expat)))
5818 (define-public ruby-tzinfo-data
5820 (name "ruby-tzinfo-data")
5821 (version "1.2021.1")
5825 ;; Download from GitHub because the rubygems version does not contain
5826 ;; Rakefile or tests.
5828 (url "https://github.com/tzinfo/tzinfo-data")
5829 (commit (string-append "v" version))))
5830 (file-name (git-file-name name version))
5833 "0yzyr3rf8qaw6kxfc0gwpxsb7gl3rhfpx9g1c2z15vapyminhi60"))))
5834 (build-system ruby-build-system)
5837 (modify-phases %standard-phases
5838 (add-after 'unpack 'patch-source
5839 (lambda* (#:key inputs #:allow-other-keys)
5840 (substitute* "Rakefile"
5841 (("https://data.iana.org/time-zones/releases")
5842 (assoc-ref inputs "tzdata")))
5844 (add-before 'check 'pre-check
5846 (setenv "HOME" (getcwd))
5847 (substitute* "Rakefile"
5848 ;; Don't need gpg, and it may break after a time.
5850 ((" sh\\(\\\"make -C" text)
5851 (string-append " sh(\"sed -i 's@/bin/sh@sh@' #{tzdb_combined_path}/Makefile \")\n"
5852 " sh(\"sed -i 's@cc=@cc?=@' #{tzdb_combined_path}/Makefile \")\n" text)))
5853 (setenv "cc" ,(cc-for-target))
5856 `(("ruby-tzinfo" ,ruby-tzinfo)))
5859 ,(file-union "tzdata-for-ruby-tzdata-info"
5860 `(("tzdata2021a.tar.gz"
5863 (uri "https://data.iana.org/time-zones/releases/tzdata2021a.tar.gz")
5866 "022fn6gkmp7pamlgab04x0dm5hnyn2m2fcnyr3pvm36612xd5rrr"))))
5867 ("tzdata2021a.tar.gz.asc"
5870 (uri "https://data.iana.org/time-zones/releases/tzdata2021a.tar.gz.asc")
5873 "0n7h2w8ji1lrxpk0d44wyfshlhr7c9jmwj6lqbxlyvqnfi3gbicx"))))
5874 ("tzcode2021a.tar.gz"
5877 (uri "https://data.iana.org/time-zones/releases/tzcode2021a.tar.gz")
5880 "1l02b0jiwp3fl0xd6227i69d26rmx3yrnq0ssq9vvdmm4jhvyipb"))))
5881 ("tzcode2021a.tar.gz.asc"
5884 (uri "https://data.iana.org/time-zones/releases/tzcode2021a.tar.gz.asc")
5887 "1qhlj4lr810s47s1lwcvv1sgvg2sflf98w4sbg1lc8wzv5qxxv7g")))))))))
5888 (synopsis "Data from the IANA Time Zone database")
5890 "This library provides @code{TZInfo::Data}, which contains data from the
5891 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5892 (home-page "https://tzinfo.github.io")
5893 (license license:expat)))
5895 (define-public ruby-rb-inotify
5897 (name "ruby-rb-inotify")
5902 (uri (rubygems-uri "rb-inotify" version))
5905 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5906 (build-system ruby-build-system)
5908 '(#:tests? #f ; there are no tests
5910 (modify-phases %standard-phases
5911 ;; Building the gemspec with rake is not working here since it is
5912 ;; generated with Jeweler. It is also unnecessary because the
5913 ;; existing gemspec does not use any development tools to generate a
5917 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5919 `(("ruby-ffi" ,ruby-ffi)))
5921 `(("ruby-yard" ,ruby-yard)))
5922 (synopsis "Ruby wrapper for Linux's inotify")
5923 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5924 kernel subsystem for monitoring changes to files and directories.")
5925 (home-page "https://github.com/nex3/rb-inotify")
5926 (license license:expat)))
5928 (define-public ruby-pry-editline
5930 (name "ruby-pry-editline")
5934 (uri (rubygems-uri "pry-editline" version))
5937 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5938 (build-system ruby-build-system)
5939 (arguments `(#:tests? #f)) ; no tests included
5941 `(("bundler" ,bundler)))
5942 (synopsis "Open the current REPL line in an editor")
5944 "This gem provides a plugin for the Ruby REPL to enable opening the
5945 current line in an external editor.")
5946 (home-page "https://github.com/tpope/pry-editline")
5947 (license license:expat)))
5949 (define-public ruby-sdoc
5955 (uri (rubygems-uri "sdoc" version))
5958 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5959 (build-system ruby-build-system)
5962 (modify-phases %standard-phases
5963 (add-before 'check 'set-rubylib-and-patch-gemfile
5965 (setenv "RUBYLIB" "lib")
5966 (substitute* "sdoc.gemspec"
5967 (("s.add_runtime_dependency.*") "\n")
5968 (("s.add_dependency.*") "\n"))
5969 (substitute* "Gemfile"
5971 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5974 `(("ruby-json" ,ruby-json)))
5976 `(("bundler" ,bundler)
5977 ("ruby-minitest" ,ruby-minitest)
5978 ("ruby-hoe" ,ruby-hoe)))
5979 (synopsis "Generate searchable RDoc documentation")
5981 "SDoc is an RDoc documentation generator to build searchable HTML
5982 documentation for Ruby code.")
5983 (home-page "https://github.com/voloko/sdoc")
5984 (license license:expat)))
5986 (define-public ruby-tins
5992 (uri (rubygems-uri "tins" version))
5995 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5996 (build-system ruby-build-system)
5997 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5998 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
6001 `(#:tests? #f ; there are no tests
6003 (modify-phases %standard-phases
6006 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
6008 (substitute* "tins.gemspec"
6009 (("\"lib/spruz\", ") ""))
6010 (invoke "gem" "build" "tins.gemspec"))))))
6011 (synopsis "Assorted tools for Ruby")
6012 (description "Tins is a Ruby library providing assorted tools.")
6013 (home-page "https://github.com/flori/tins")
6014 (license license:expat)))
6016 (define-public ruby-gem-hadar
6018 (name "ruby-gem-hadar")
6022 (uri (rubygems-uri "gem_hadar" version))
6025 "160abb3l4n3gkhd86f22n981bhqxkbf5ym6fhsk796pix6696pd5"))))
6026 (build-system ruby-build-system)
6027 ;; This gem needs itself at development time. We disable rebuilding of the
6028 ;; gemspec to avoid this loop.
6030 `(#:tests? #f ; there are no tests
6032 (modify-phases %standard-phases
6035 (invoke "gem" "build" "gem_hadar.gemspec"))))))
6038 ("ruby-tins" ,ruby-tins)
6039 ("ruby-yard" ,ruby-yard)))
6040 (synopsis "Library for the development of Ruby gems")
6042 "This library contains some useful functionality to support the
6043 development of Ruby gems.")
6044 (home-page "https://github.com/flori/gem_hadar")
6045 (license license:expat)))
6047 (define-public ruby-minitest-tu-shim
6049 (name "ruby-minitest-tu-shim")
6053 (uri (rubygems-uri "minitest_tu_shim" version))
6056 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
6057 (build-system ruby-build-system)
6060 (modify-phases %standard-phases
6061 (add-after 'unpack 'fix-test-include-path
6062 (lambda* (#:key inputs #:allow-other-keys)
6063 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
6064 (substitute* "Rakefile"
6065 (("Hoe\\.add_include_dirs .*")
6066 (string-append "Hoe.add_include_dirs \""
6067 minitest "/lib/ruby/vendor_ruby"
6069 ,(package-version ruby-minitest-4)
6072 (add-before 'check 'fix-test-assumptions
6074 ;; The test output includes the file name, so a couple of tests
6075 ;; fail. Changing the regular expressions slightly fixes this
6077 (substitute* "test/test_mini_test.rb"
6078 (("output.sub!\\(.*, 'FILE:LINE'\\)")
6079 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
6080 (("gsub\\(/.*, 'FILE:LINE'\\)")
6081 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
6084 `(("ruby-minitest-4" ,ruby-minitest-4)))
6086 `(("ruby-hoe" ,ruby-hoe)))
6087 (synopsis "Adapter library between minitest and test/unit")
6089 "This library bridges the gap between the small and fast minitest and
6090 Ruby's large and slower test/unit.")
6091 (home-page "https://rubygems.org/gems/minitest_tu_shim")
6092 (license license:expat)))
6094 (define-public ruby-term-ansicolor
6096 (name "ruby-term-ansicolor")
6100 (uri (rubygems-uri "term-ansicolor" version))
6103 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
6104 (build-system ruby-build-system)
6105 ;; Rebuilding the gemspec seems to require git, even though this is not a
6106 ;; git repository, so we just build the gem from the existing gemspec.
6109 (modify-phases %standard-phases
6110 (add-after 'unpack 'fix-test
6112 (substitute* "tests/hsl_triple_test.rb"
6117 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
6119 `(("ruby-tins" ,ruby-tins)))
6121 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6122 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
6123 (synopsis "Ruby library to control the attributes of terminal output")
6125 "This Ruby library uses ANSI escape sequences to control the attributes
6126 of terminal output.")
6127 (home-page "https://flori.github.io/term-ansicolor/")
6128 ;; There is no mention of the "or later" clause.
6129 (license license:gpl2)))
6131 (define-public ruby-terraform
6133 (name "ruby-terraform")
6138 (uri (rubygems-uri "ruby-terraform" version))
6141 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
6142 (build-system ruby-build-system)
6144 '(#:tests? #f)) ; No included tests
6146 `(("ruby-lino" ,ruby-lino)))
6147 (synopsis "Ruby wrapper around the Terraform command line interface")
6149 "This package provides a Ruby wrapper around the Terraform command line
6150 interface so that Terraform can be more easily invoked from Ruby code.")
6151 (home-page "https://github.com/infrablocks/ruby_terraform")
6152 (license license:expat)))
6154 (define-public ruby-pstree
6156 (name "ruby-pstree")
6160 (uri (rubygems-uri "pstree" version))
6163 "0ld3ng37y92kv9vqnachw1l3n07hsc8hrnjs9d840liw0mysf1vp"))))
6164 (build-system ruby-build-system)
6166 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6167 ("bundler" ,bundler)))
6168 (synopsis "Create a process tree data structure")
6170 "This library uses the output of the @code{ps} command to create a
6171 process tree data structure for the current host.")
6172 (home-page "https://github.com/flori/pstree")
6173 ;; There is no mention of the "or later" clause.
6174 (license license:gpl2)))
6176 (define-public ruby-utils
6182 (uri (rubygems-uri "utils" version))
6185 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
6186 (build-system ruby-build-system)
6188 `(("ruby-tins" ,ruby-tins)
6189 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
6190 ("ruby-pstree" ,ruby-pstree)
6191 ("ruby-pry-editline" ,ruby-pry-editline)))
6193 `(("ruby-gem-hadar" ,ruby-gem-hadar)
6194 ("bundler" ,bundler)))
6195 (synopsis "Command line tools for working with Ruby")
6197 "This package provides assorted command line tools that may be useful
6198 when working with Ruby code.")
6199 (home-page "https://github.com/flori/utils")
6200 ;; There is no mention of the "or later" clause.
6201 (license license:gpl2)))
6203 (define-public ruby-jaro-winkler
6205 (name "ruby-jaro-winkler")
6210 (uri (rubygems-uri "jaro_winkler" version))
6212 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
6213 (build-system ruby-build-system)
6215 '(#:tests? #f)) ; no included tests
6216 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
6218 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
6219 algorithm. It is written as a C extension and will fallback to a pure Ruby
6220 implementation on platforms where this is unsupported.")
6221 (home-page "https://github.com/tonytonyjan/jaro_winkler")
6222 (license license:expat)))
6224 (define-public ruby-json
6231 (uri (rubygems-uri "json" version))
6234 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
6235 (build-system ruby-build-system)
6236 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
6237 (synopsis "JSON library for Ruby")
6238 (description "This Ruby library provides a JSON implementation written as
6239 a native C extension.")
6240 (home-page "http://json-jruby.rubyforge.org/")
6241 (license (list license:ruby license:gpl2)))) ; GPL2 only
6243 (define-public ruby-json-pure
6245 (name "ruby-json-pure")
6249 (uri (rubygems-uri "json_pure" version))
6252 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
6253 (build-system ruby-build-system)
6256 (modify-phases %standard-phases
6257 (add-after 'unpack 'fix-rakefile
6259 (substitute* "Rakefile"
6260 ;; Since this is not a git repository, do not call 'git'.
6261 (("`git ls-files`") "`find . -type f |sort`")
6262 ;; Loosen dependency constraint.
6263 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
6265 (add-after 'replace-git-ls-files 'regenerate-gemspec
6267 ;; Regenerate gemspec so loosened dependency constraints are
6269 (invoke "rake" "gemspec")))
6270 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
6272 ;; This gemspec doesn't look to be generated by the above
6273 ;; command, so patch it separately.
6274 (substitute* "json-java.gemspec"
6275 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
6276 "%q<test-unit>.freeze, [\">= 2.0\"]"))
6279 `(("bundler" ,bundler)
6281 ("ruby-simplecov" ,ruby-simplecov)
6282 ("ruby-test-unit" ,ruby-test-unit)))
6283 (synopsis "JSON implementation in pure Ruby")
6285 "This package provides a JSON implementation written in pure Ruby.")
6286 (home-page "https://flori.github.com/json/")
6287 (license license:ruby)))
6289 (define-public ruby-jwt
6296 (uri (rubygems-uri "jwt" version))
6299 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
6300 (build-system ruby-build-system)
6302 '(#:test-target "test"
6304 (modify-phases %standard-phases
6305 (add-after 'unpack 'remove-unnecessary-dependencies
6307 (substitute* "spec/spec_helper.rb"
6308 (("require 'simplecov.*") "\n")
6309 ;; Use [].each to disable running the SimpleCov configuration
6311 (("SimpleCov\\.configure") "[].each")
6312 (("require 'codeclimate-test-reporter'") "")
6313 (("require 'codacy-coverage'") "")
6314 (("Codacy::Reporter\\.start") ""))
6317 `(("bundler" ,bundler)
6318 ("ruby-rspec" ,ruby-rspec)
6319 ("ruby-rbnacl" ,ruby-rbnacl)))
6320 (synopsis "Ruby implementation of the JSON Web Token standard")
6322 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6323 @acronym{JWT, JSON Web Token} standard.")
6324 (home-page "https://github.com/jwt/ruby-jwt")
6325 (license license:expat)))
6327 ;; Even though this package only provides bindings for a Mac OSX API it is
6328 ;; required by "ruby-listen" at runtime.
6329 (define-public ruby-rb-fsevent
6331 (name "ruby-rb-fsevent")
6335 (uri (rubygems-uri "rb-fsevent" version))
6338 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6339 (build-system ruby-build-system)
6340 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6341 ;; "listen", which needs "rb-fsevent" at runtime.
6342 (arguments `(#:tests? #f))
6343 (synopsis "FSEvents API with signals catching")
6345 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6346 (home-page "https://rubygems.org/gems/rb-fsevent")
6347 (license license:expat)))
6349 (define-public ruby-listen
6351 (name "ruby-listen")
6355 ;; The gem does not include a Rakefile, so fetch from the Git
6359 (url "https://github.com/guard/listen")
6360 (commit (string-append "v" version))))
6361 (file-name (git-file-name name version))
6364 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6365 (build-system ruby-build-system)
6367 `(#:test-target "spec"
6369 (modify-phases %standard-phases
6370 (add-after 'unpack 'fix-files-in-gemspec
6372 (substitute* "listen.gemspec"
6373 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6375 (add-before 'check 'remove-unnecessary-dependencies'
6377 (substitute* "Rakefile"
6378 ;; Rubocop is for code linting, and is unnecessary for running
6380 ((".*rubocop.*") ""))
6383 `(("bundler" ,bundler)
6384 ("ruby-rspec" ,ruby-rspec)))
6386 `(;; ruby-thor is used for the command line interface, and is referenced
6387 ;; in the wrapper, and therefore just needs to be an input.
6388 ("ruby-thor" ,ruby-thor)))
6390 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6391 ("ruby-rb-inotify" ,ruby-rb-inotify)
6392 ("ruby-dep" ,ruby-dep)))
6393 (synopsis "Listen to file modifications")
6394 (description "The Listen gem listens to file modifications and notifies
6395 you about the changes.")
6396 (home-page "https://github.com/guard/listen")
6397 (license license:expat)))
6399 (define-public ruby-loofah
6401 (name "ruby-loofah")
6406 (uri (rubygems-uri "loofah" version))
6409 "0npqav026zd7r4qdidq9x5nxcp2dzg71bnp421xxx7sngbxf2xbd"))))
6410 (build-system ruby-build-system)
6413 (modify-phases %standard-phases
6414 (add-after 'unpack 'remove-unnecessary-dependencies
6416 ;; concourse is a development tool which is unused, so remove it
6417 ;; so it's not required.
6418 (substitute* "Rakefile"
6419 (("require \"concourse\"") "")
6420 (("Concourse\\.new.*") "task :concourse do\n"))
6423 `(("ruby-hoe" ,ruby-hoe)
6424 ("ruby-rr" ,ruby-rr)))
6426 `(("ruby-nokogiri" ,ruby-nokogiri)
6427 ("ruby-crass" ,ruby-crass)))
6428 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6430 "Loofah is a general library for manipulating and transforming HTML/XML
6431 documents and fragments. It's built on top of Nokogiri and libxml2.")
6432 (home-page "https://github.com/flavorjones/loofah")
6433 (license license:expat)))
6435 (define-public ruby-activesupport
6437 (name "ruby-activesupport")
6442 (uri (rubygems-uri "activesupport" version))
6445 "00a4db64g8w5yyk6hzak2nqrmdfvyh5zc9cvnm9gglwbi87ss28h"))))
6446 (build-system ruby-build-system)
6449 (modify-phases %standard-phases
6452 ;; There are no tests, instead attempt to load the library.
6453 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6455 `(("ruby-concurrent" ,ruby-concurrent)
6456 ("ruby-i18n" ,ruby-i18n)
6457 ("ruby-minitest" ,ruby-minitest)
6458 ("ruby-tzinfo" ,ruby-tzinfo)
6459 ("ruby-tzinfo-data" ,ruby-tzinfo-data)
6460 ("ruby-zeitwerk" ,ruby-zeitwerk)))
6461 (synopsis "Ruby on Rails utility library")
6462 (description "ActiveSupport is a toolkit of support libraries and Ruby
6463 core extensions extracted from the Rails framework. It includes support for
6464 multibyte strings, internationalization, time zones, and testing.")
6465 (home-page "https://www.rubyonrails.org")
6466 (license license:expat)))
6468 (define-public ruby-crass
6472 (home-page "https://github.com/rgrove/crass")
6474 ;; The gem does not contain tests, so pull from git.
6478 (commit (string-append "v" version))))
6479 (file-name (git-file-name name version))
6482 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6483 (build-system ruby-build-system)
6484 (synopsis "Pure Ruby CSS parser")
6486 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6487 (license license:expat)))
6489 (define-public ruby-nokogumbo
6491 (name "ruby-nokogumbo")
6494 ;; We use the git reference, because there's no Rakefile in the
6495 ;; published gem and the tarball on Github is outdated.
6498 (url "https://github.com/rubys/nokogumbo")
6499 (commit (string-append "v" version))))
6500 (file-name (string-append name "-" version "-checkout"))
6503 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6504 (build-system ruby-build-system)
6506 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6508 `(("gumbo-parser" ,gumbo-parser)))
6510 `(("ruby-nokogiri" ,ruby-nokogiri)))
6511 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6513 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6514 access the result as a Nokogiri parsed document.")
6515 (home-page "https://github.com/rubys/nokogumbo/")
6516 (license license:asl2.0)))
6518 (define-public ruby-sanitize
6520 (name "ruby-sanitize")
6522 (home-page "https://github.com/rgrove/sanitize")
6525 ;; The gem does not include the Rakefile, so we download the
6526 ;; source from Github.
6529 (commit (string-append "v" version))))
6530 (file-name (git-file-name name version))
6531 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6534 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6535 (build-system ruby-build-system)
6537 `(("ruby-crass" ,ruby-crass)
6538 ("ruby-nokogiri" ,ruby-nokogiri)
6539 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6541 `(("ruby-minitest" ,ruby-minitest)))
6542 (synopsis "Whitelist-based HTML and CSS sanitizer")
6544 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6545 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6546 unacceptable HTML and/or CSS from a string.")
6547 (license license:expat)))
6549 (define-public ruby-oj
6556 ;; Version on rubygems.org does not contain Rakefile, so download from
6559 (url "https://github.com/ohler55/oj")
6560 (commit (string-append "v" version))))
6561 (file-name (git-file-name name version))
6564 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6565 (build-system ruby-build-system)
6567 '(#:test-target "test_all"
6569 (modify-phases %standard-phases
6570 (add-before 'check 'disable-bundler
6572 (substitute* "Rakefile"
6573 (("Bundler\\.with_clean_env") "1.times")
6574 (("bundle exec ") "")))))))
6576 `(("bundler" ,bundler)
6577 ("ruby-rspec" ,ruby-rspec)
6578 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6579 (synopsis "JSON parser for Ruby optimized for speed")
6581 "Oj is a JSON parser and generator for Ruby, where the encoding and
6582 decoding of JSON is implemented as a C extension to Ruby.")
6583 (home-page "http://www.ohler.com/oj/")
6584 (license (list license:expat ; Ruby code
6585 license:bsd-3)))) ; extension code
6587 (define-public ruby-ox
6594 (uri (rubygems-uri "ox" version))
6597 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6598 (build-system ruby-build-system)
6600 '(#:tests? #f)) ; no tests
6601 (synopsis "Optimized XML library for Ruby")
6603 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6604 written as a native C extension. It was designed to be an alternative to
6605 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6606 alternative to Marshal for Object serialization. ")
6607 (home-page "http://www.ohler.com/ox")
6608 (license license:expat)))
6610 (define-public ruby-redcloth
6612 (name "ruby-redcloth")
6616 (uri (rubygems-uri "RedCloth" version))
6619 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6620 (build-system ruby-build-system)
6622 `(#:tests? #f ; no tests
6624 (modify-phases %standard-phases
6625 ;; Redcloth has complicated rake tasks to build various versions for
6626 ;; multiple targets using RVM. We don't want this so we just use the
6627 ;; existing gemspec.
6630 (invoke "gem" "build" "redcloth.gemspec"))))))
6632 `(("bundler" ,bundler)
6633 ("ruby-diff-lcs" ,ruby-diff-lcs)
6634 ("ruby-rspec-2" ,ruby-rspec-2)))
6635 (synopsis "Textile markup language parser for Ruby")
6637 "RedCloth is a Ruby parser for the Textile markup language.")
6638 (home-page "http://redcloth.org")
6639 (license license:expat)))
6641 (define-public ruby-pg
6648 (uri (rubygems-uri "pg" version))
6651 "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj"))))
6652 (build-system ruby-build-system)
6654 '(#:test-target "spec"))
6656 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6657 ("ruby-hoe" ,ruby-hoe)
6658 ("ruby-rspec" ,ruby-rspec)))
6660 `(("postgresql" ,postgresql)))
6661 (synopsis "Ruby interface to PostgreSQL")
6662 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6663 with PostgreSQL 9.0 and later.")
6664 (home-page "https://bitbucket.org/ged/ruby-pg")
6665 (license license:ruby)))
6667 (define-public ruby-byebug
6669 (name "ruby-byebug")
6674 (uri (rubygems-uri "byebug" version))
6677 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6678 (build-system ruby-build-system)
6680 '(#:tests? #f)) ; no tests
6681 (synopsis "Debugger for Ruby 2")
6682 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6683 TracePoint C API for execution control and the Debug Inspector C API for call
6684 stack navigation. The core component provides support that front-ends can
6685 build on. It provides breakpoint handling and bindings for stack frames among
6686 other things and it comes with a command line interface.")
6687 (home-page "https://github.com/deivid-rodriguez/byebug")
6688 (license license:bsd-2)))
6690 ;;; TODO: Make it the default byebug in core-updates.
6691 (define-public ruby-byebug-11
6693 (inherit ruby-byebug)
6694 (name "ruby-byebug")
6700 (url "https://github.com/deivid-rodriguez/byebug")
6701 (commit (string-append "v" version))))
6702 (file-name (git-file-name name version))
6705 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6706 (modules '((guix build utils)))
6709 ;; Remove wrappers that try to setup a bundle environment.
6710 (with-directory-excursion "bin"
6711 (for-each delete-file '("bundle" "rake" "rubocop"))
6712 ;; ruby-minitest doesn't come with a launcher, so fix the one
6714 (substitute* "minitest"
6715 (("load File\\.expand_path\\(\"bundle\".*") "")
6716 (("require \"bundler/setup\".*") "")))
6721 (modify-phases %standard-phases
6722 (add-after 'unpack 'skip-tmp-path-sensitive-test
6724 (substitute* "test/commands/where_test.rb"
6725 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6728 (add-before 'build 'compile
6730 (invoke "rake" "compile")))
6731 (add-before 'check 'set-home
6733 (setenv "HOME" (getcwd))
6736 `(("bundler" ,bundler)
6737 ("ruby-chandler" ,ruby-chandler)
6738 ("ruby-minitest" ,ruby-minitest)
6739 ("ruby-pry" ,ruby-pry)
6740 ("ruby-rake-compiler" ,ruby-rake-compiler)
6741 ("ruby-rubocop" ,ruby-rubocop)
6742 ("ruby-yard" ,ruby-yard)))))
6744 (define-public ruby-netrc
6750 (uri (rubygems-uri "netrc" version))
6753 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6754 (build-system ruby-build-system)
6757 (modify-phases %standard-phases
6759 ;; There is no Rakefile and minitest can only run one file at once,
6760 ;; so we have to iterate over all test files.
6762 (for-each (lambda (file)
6763 (invoke "ruby" "-Itest" file))
6764 (find-files "./test" "test_.*\\.rb"))
6767 `(("ruby-minitest" ,ruby-minitest)))
6768 (synopsis "Library to read and update netrc files")
6770 "This library can read and update netrc files, preserving formatting
6771 including comments and whitespace.")
6772 (home-page "https://github.com/geemus/netrc")
6773 (license license:expat)))
6775 (define-public ruby-unf-ext
6777 (name "ruby-unf-ext")
6781 (uri (rubygems-uri "unf_ext" version))
6784 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6785 (build-system ruby-build-system)
6788 (modify-phases %standard-phases
6789 (add-after 'build 'build-ext
6790 (lambda _ (invoke "rake" "compile:unf_ext")))
6791 (add-before 'check 'lose-rake-compiler-dock-dependency
6793 ;; rake-compiler-dock is listed in the gemspec, but only
6794 ;; required when cross-compiling.
6795 (substitute* "unf_ext.gemspec"
6796 ((".*rake-compiler-dock.*") ""))
6799 `(("bundler" ,bundler)
6800 ("ruby-rake-compiler" ,ruby-rake-compiler)
6801 ("ruby-test-unit" ,ruby-test-unit)))
6802 (synopsis "Unicode normalization form support library")
6804 "This package provides unicode normalization form support for Ruby.")
6805 (home-page "https://github.com/knu/ruby-unf_ext")
6806 (license license:expat)))
6808 (define-public ruby-tdiff
6809 ;; Use a newer than released snapshot so that rspec-2 is not required.
6810 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6813 (version (string-append "0.3.3-1." (string-take commit 8)))
6817 (url "https://github.com/postmodern/tdiff")
6819 (file-name (string-append name "-" version "-checkout"))
6822 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6823 (build-system ruby-build-system)
6825 `(("ruby-rspec" ,ruby-rspec)
6826 ("ruby-yard" ,ruby-yard)
6827 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6828 (synopsis "Calculate the differences between two tree-like structures")
6830 "This library provides functions to calculate the differences between two
6831 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6832 (home-page "https://github.com/postmodern/tdiff")
6833 (license license:expat))))
6835 (define-public ruby-nokogiri-diff
6836 ;; Use a newer than released snapshot so that rspec-2 is not required.
6837 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6839 (name "ruby-nokogiri-diff")
6840 (version (string-append "0.2.0-1." (string-take commit 8)))
6844 (url "https://github.com/postmodern/nokogiri-diff")
6846 (file-name (string-append name "-" version "-checkout"))
6849 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6850 (build-system ruby-build-system)
6852 `(("ruby-tdiff" ,ruby-tdiff)
6853 ("ruby-nokogiri" ,ruby-nokogiri)))
6855 `(("ruby-rspec" ,ruby-rspec)
6856 ("ruby-yard" ,ruby-yard)
6857 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6858 (synopsis "Calculate the differences between two XML/HTML documents")
6860 "@code{Nokogiri::Diff} adds the ability to calculate the
6861 differences (added or removed nodes) between two XML/HTML documents.")
6862 (home-page "https://github.com/postmodern/nokogiri-diff")
6863 (license license:expat))))
6865 (define-public ruby-racc
6872 (uri (rubygems-uri "racc" version))
6875 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6876 (build-system ruby-build-system)
6878 `(("ruby-hoe" ,ruby-hoe)
6879 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6880 (synopsis "LALR(1) parser generator for Ruby")
6882 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6883 generates Ruby program.")
6884 (home-page "https://i.loveruby.net/en/projects/racc/")
6886 ;; Generally licensed under the LGPL2.1, and some files also
6887 ;; available under the same license as Ruby.
6891 (define-public ruby-rack
6898 ;; Download from GitHub so that the snippet can be applied and tests run.
6900 (url "https://github.com/rack/rack")
6902 (file-name (git-file-name name version))
6905 "1qrm5z5v586738bnkr9188dvz0s25nryw6sgvx18jjlkizayw1g4"))
6906 ;; Ignore test which fails inside the build environment but works
6908 (modules '((guix build utils)))
6910 '(begin (substitute* "test/spec_files.rb"
6911 (("res.body.must_equal expected_body") ""))
6913 (build-system ruby-build-system)
6916 (modify-phases %standard-phases
6917 (add-before 'check 'fix-tests
6919 ;; A few of the tests use the length of a file on disk for
6920 ;; Content-Length and Content-Range headers. However, this file
6921 ;; has a shebang in it which an earlier phase patches, growing
6922 ;; the file size from 193 to 239 bytes when the store prefix is
6924 (let ((size-diff (- (string-length (which "ruby"))
6925 (string-length "/usr/bin/env ruby"))))
6926 (substitute* '("test/spec_files.rb")
6928 (number->string (+ (string->number bytes) size-diff)))
6929 (("bytes(.)22-33" all delimiter)
6930 (string-append "bytes"
6932 (number->string (+ 22 size-diff))
6934 (number->string (+ 33 size-diff))))))
6937 `(("ruby-minitest" ,ruby-minitest)
6938 ("ruby-minitest-global-expectations" ,ruby-minitest-global-expectations)))
6939 (synopsis "Unified web application interface for Ruby")
6940 (description "Rack provides a minimal, modular and adaptable interface for
6941 developing web applications in Ruby. By wrapping HTTP requests and responses,
6942 it unifies the API for web servers, web frameworks, and software in between
6943 into a single method call.")
6944 (home-page "https://rack.github.io/")
6945 (license license:expat)))
6947 (define-public ruby-rack-test
6949 (name "ruby-rack-test")
6954 (uri (rubygems-uri "rack-test" version))
6957 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6958 (build-system ruby-build-system)
6960 ;; Disable tests because of circular dependencies: requires sinatra,
6961 ;; which requires rack-protection, which requires rack-test. Instead
6962 ;; simply require the library.
6964 (modify-phases %standard-phases
6967 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6969 `(("ruby-rack" ,ruby-rack)))
6970 (synopsis "Testing API for Rack applications")
6972 "Rack::Test is a small, simple testing API for Rack applications. It can
6973 be used on its own or as a reusable starting point for Web frameworks and
6974 testing libraries to build on.")
6975 (home-page "https://github.com/rack-test/rack-test")
6976 (license license:expat)))
6978 (define-public ruby-rack-protection
6980 (name "ruby-rack-protection")
6985 (uri (rubygems-uri "rack-protection" version))
6988 "1zyj97bfr1shfgwk4ddmdbw0mdkm4qdyh9s1hl0k7accf3kxx1yi"))))
6989 (build-system ruby-build-system)
6991 '(;; Tests missing from the gem.
6994 `(("ruby-rack" ,ruby-rack)))
6996 `(("bundler" ,bundler)
6997 ("ruby-rspec" ,ruby-rspec-2)
6998 ("ruby-rack-test" ,ruby-rack-test)))
6999 (synopsis "Rack middleware that protects against typical web attacks")
7000 (description "Rack middleware that can be used to protect against typical
7001 web attacks. It can protect all Rack apps, including Rails. For instance, it
7002 protects against cross site request forgery, cross site scripting,
7003 clickjacking, directory traversal, session hijacking and IP spoofing.")
7004 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
7005 (license license:expat)))
7007 (define-public ruby-rainbow
7009 (name "ruby-rainbow")
7014 (uri (rubygems-uri "rainbow" version))
7017 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
7018 (build-system ruby-build-system)
7021 (modify-phases %standard-phases
7022 ;; Run rspec directly, to avoid requiring Rubocop which is used from
7025 (lambda* (#:key tests? #:allow-other-keys)
7030 `(("bundler" ,bundler)
7031 ("ruby-rspec" ,ruby-rspec)))
7032 (synopsis "Colorize printed text on ANSI terminals")
7034 "@code{rainbow} provides a string presenter object to colorize strings by
7035 wrapping them in ANSI escape codes.")
7036 (home-page "https://github.com/sickill/rainbow")
7037 (license license:expat)))
7039 (define-public ruby-rr
7046 (uri (rubygems-uri "rr" version))
7049 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
7050 (build-system ruby-build-system)
7052 '(#:tests? #f)) ; test files not included
7054 `(("bundler" ,bundler)
7055 ("ruby-rspec" ,ruby-rspec)))
7056 (synopsis "Ruby test double framework")
7058 "RR is a test double framework that features a rich selection of double
7059 techniques and a terse syntax.")
7060 (home-page "https://rr.github.io/rr/")
7061 (license license:expat)))
7063 (define-public ruby-rest-client
7065 (name "ruby-rest-client")
7070 (uri (rubygems-uri "rest-client" version))
7073 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
7074 (build-system ruby-build-system)
7077 (modify-phases %standard-phases
7078 (add-before 'check 'remove-unnecessary-development-dependencies
7080 (substitute* "rest-client.gemspec"
7081 ;; Remove rubocop as it's unused. Rubocop also indirectly
7082 ;; depends on this package through ruby-parser and ruby-ast so
7083 ;; this avoids a dependency loop.
7084 ((".*rubocop.*") "\n")
7085 ;; Remove pry as it's unused, it's a debugging tool
7087 ;; Remove an unnecessarily strict rdoc dependency
7088 ((".*rdoc.*") "\n"))
7090 (add-before 'check 'delete-network-dependent-tests
7092 (delete-file "spec/integration/request_spec.rb")
7093 (delete-file "spec/integration/httpbin_spec.rb")
7096 `(("ruby-http-cookie" ,ruby-http-cookie)
7097 ("ruby-mime-types" ,ruby-mime-types)
7098 ("ruby-netrc" ,ruby-netrc)))
7100 `(("bundler" ,bundler)
7101 ("ruby-webmock" ,ruby-webmock-2)
7102 ("ruby-rspec" ,ruby-rspec)))
7103 (synopsis "Simple HTTP and REST client for Ruby")
7105 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
7106 inspired by the Sinatra microframework style of specifying actions:
7107 @code{get}, @code{put}, @code{post}, @code{delete}.")
7108 (home-page "https://github.com/rest-client/rest-client")
7109 (license license:expat)))
7111 (define-public ruby-rubocop-ast
7113 (name "ruby-rubocop-ast")
7117 (method git-fetch) ;no test suite in distributed gem
7119 (url "https://github.com/rubocop-hq/rubocop-ast")
7120 (commit (string-append "v" version))))
7121 (file-name (git-file-name name version))
7124 "1x2m7k4bn4zvvwmj7imzmv0dav6xnrbcvssad1m5lkprx7h5lzkq"))))
7125 (build-system ruby-build-system)
7127 `(#:test-target "spec"
7128 #:phases (modify-phases %standard-phases
7129 (add-before 'build 'generate-lexer
7131 (setenv "RUBOCOP_VERSION" "none")
7132 (invoke "rake" "generate")))
7133 (replace 'replace-git-ls-files
7135 (substitute* "rubocop-ast.gemspec"
7136 (("`git ls-files(.*)`" _ files)
7137 (format #f "`find ~a -type f| sort`" files)))
7140 `(("ruby-bump" ,ruby-bump)
7141 ("ruby-oedipus-lex" ,ruby-oedipus-lex)
7142 ("ruby-pry" ,ruby-pry)
7143 ("ruby-racc" ,ruby-racc)
7144 ("ruby-rake" ,ruby-rake)
7145 ("ruby-rspec" ,ruby-rspec)
7146 ("ruby-simplecov" ,ruby-simplecov)))
7148 `(("ruby-parser" ,ruby-parser)))
7149 (synopsis "RuboCop's AST extensions and NodePattern functionality")
7150 (description "Rubocop::AST extends @code{ruby-parser} with classes used
7151 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
7153 @item @code{RuboCop::AST::Node}
7154 @item @code{RuboCop::AST::NodePattern}
7156 (home-page "https://rubocop.org/")
7157 (license license:expat)))
7159 (define-public ruby-rexml
7165 (method git-fetch) ;no tests in distributed gem
7167 (url "https://github.com/ruby/rexml")
7168 (commit (string-append "v" version))))
7169 (file-name (git-file-name name version))
7171 (base32 "13n6vaa80drqic2wri4q6k22qzvsn683vp5s8c9dllil6x04kn0x"))))
7172 (build-system ruby-build-system)
7173 (synopsis "XML toolkit for Ruby")
7174 (description "Inspired by Electric XML library for Java, REXML aims to be
7175 easy-to-use API, small and fast. It supports both tree and stream document
7177 (home-page "https://github.com/ruby/rexml")
7178 (license license:bsd-2)))
7180 (define-public ruby-character-set
7182 (name "ruby-character-set")
7187 (uri (rubygems-uri "character_set" version))
7190 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
7191 (build-system ruby-build-system)
7192 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
7193 (synopsis "Ruby library to manipulate Unicode")
7194 (description "CharacterSet is a C-extended Ruby library to work with sets
7195 of Unicode code points. It can read and write these sets in various formats
7196 and implements the @code{stdlib} @code{Set} interface for them. It also
7197 offers an alternate paradigm of @code{String} processing which grants much
7198 better performance than @code{Regexp} and @code{String} methods from the
7199 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
7201 @item @code{CharacterSet::Character}
7202 @item @code{CharacterSet::Parser}
7203 @item @code{CharacterSet::Writer}
7204 @item @code{RangeCompressor}
7206 (home-page "https://github.com/jaynetics/character_set")
7207 (license license:expat)))
7209 (define-public ruby-range-compressor
7211 (name "ruby-range-compressor")
7217 (url "https://github.com/janosch-x/range_compressor")
7218 (commit (string-append "v" version))))
7219 (file-name (git-file-name name version))
7222 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
7223 (build-system ruby-build-system)
7225 `(#:test-target "spec"
7226 #:phases (modify-phases %standard-phases
7227 (add-after 'extract-gemspec 'strip-version-requirements
7229 (substitute* "range_compressor.gemspec"
7230 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7231 (string-append stripped "\n")))
7234 `(("ruby-rspec" ,ruby-rspec)))
7235 (synopsis "Simple arrays of objects to arrays of ranges compressor")
7236 (description "RangeCompresses is a tiny library that allows compressing
7237 arrays of objects into arrays of ranges. For example, it can turn the
7238 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
7239 (home-page "https://github.com/janosch-x/range_compressor")
7240 (license license:expat)))
7242 (define-public ruby-regexp-property-values
7244 (name "ruby-regexp-property-values")
7249 (uri (git-reference ;no test suite in distributed gem
7250 (url "https://github.com/jaynetics/regexp_property_values")
7251 (commit (string-append "v" version))))
7252 (file-name (git-file-name name version))
7255 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
7256 (build-system ruby-build-system)
7258 '(#:test-target "default"))
7260 `(("ruby-character-set" ,ruby-character-set)
7261 ("ruby-rake-compiler" ,ruby-rake-compiler)
7262 ("ruby-range-compressor" ,ruby-range-compressor)
7263 ("ruby-rspec" ,ruby-rspec)))
7264 (synopsis "Inspect Ruby's regex engine property values")
7265 (description "This small library lets you see which property values are
7266 supported by the regular expression engine of the Ruby version you are running
7267 and can directly read out their code point ranges. In other words, it
7268 determines all supported values for @code{\\p{value}} expressions and what
7270 (home-page "https://github.com/jaynetics/regexp_property_values")
7271 (license license:expat)))
7273 (define-public ruby-regexp-parser
7275 (name "ruby-regexp-parser")
7279 (method git-fetch) ;bin/test missing from gem
7281 (url "https://github.com/ammar/regexp_parser")
7282 (commit (string-append "v" version))))
7283 (file-name (git-file-name name version))
7286 "09ddxdwlml30q6j4rqf06bbjj1mwx00rs0bksnyblhv85anrqz3k"))))
7287 (build-system ruby-build-system)
7289 '(#:test-target "default"
7290 #:phases (modify-phases %standard-phases
7291 (add-before 'build 'compile-scanner.rb
7293 (invoke "rake" "build")
7294 ;; XXX: This is needed otherwise the install
7295 ;; phase fails to delete the installed cached
7297 (delete-file-recursively "pkg")
7301 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7302 ("ruby-rspec" ,ruby-rspec)))
7303 (synopsis "A regular expression parser library for Ruby ")
7304 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7305 expressions. It comprises the following components:
7307 @item A scanner/tokenizer based on Ragel,
7308 @item A lexer that produces a stream of token objects,
7309 @item A parser that produces a tree of Expression objects.
7311 (home-page "https://github.com/ammar/regexp_parser")
7312 (license license:expat)))
7314 (define-public ruby-test-queue
7316 (name "ruby-test-queue")
7321 (uri (rubygems-uri "test-queue" version))
7324 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7325 (build-system ruby-build-system)
7328 (modify-phases %standard-phases
7330 (lambda* (#:key tests? #:allow-other-keys)
7335 `(("ruby-rspec" ,ruby-rspec)))
7336 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7337 (description "The test-queue module is a parallel test runner,
7338 built using a centralized queue to ensure optimal distribution of
7339 tests between workers. It is specifically optimized for Continuous
7340 Integration (CI) environments: build statistics from each run are
7341 stored locally and used to sort the queue at the beginning of the next
7343 (home-page "https://github.com/tmm1/test-queue")
7344 (license license:expat)))
7346 (define-public ruby-rubocop
7348 (name "ruby-rubocop")
7352 (method git-fetch) ;no tests in distributed gem
7354 (url "https://github.com/rubocop-hq/rubocop")
7355 (commit (string-append "v" version))))
7356 (file-name (git-file-name name version))
7359 "0wjw9vpzr4f3nf1zf010bag71w4hdi0haybdn7r5rlmw45pmim29"))))
7360 (build-system ruby-build-system)
7362 '(#:test-target "default"
7364 (modify-phases %standard-phases
7365 (add-before 'check 'set-home
7367 (setenv "HOME" (getcwd))
7369 ;; Rubocop depends on itself for tests, directly and indirectly. By
7370 ;; regenerating the TODO list we test rubocop against itself and
7371 ;; forgo adjusting the test suite to our environment each release.
7373 (lambda* (#:key tests? #:allow-other-keys)
7375 (make-file-writable ".rubocop_todo.yml")
7376 (invoke "./exe/rubocop" "--auto-gen-config"))
7378 (add-before 'check 'make-adoc-files-writable
7380 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7382 (for-each make-file-writable adoc-files))
7385 `(("ruby-bump" ,ruby-bump)
7386 ("ruby-pry" ,ruby-pry)
7387 ("ruby-rake" ,ruby-rake)
7388 ("ruby-rspec" ,ruby-rspec)
7389 ("ruby-rubocop-minimal" ,ruby-rubocop-minimal)
7390 ("ruby-rubocop-performance-minimal" ,ruby-rubocop-performance-minimal)
7391 ("ruby-rubocop-rspec-minimal" ,ruby-rubocop-rspec-minimal)
7392 ("ruby-simplecov" ,ruby-simplecov)
7393 ("ruby-stackprof" ,ruby-stackprof)
7394 ("ruby-test-queue" ,ruby-test-queue)
7395 ("ruby-webmock" ,ruby-webmock)
7396 ("ruby-yard" ,ruby-yard)))
7398 `(("ruby-parallel" ,ruby-parallel)
7399 ("ruby-parser" ,ruby-parser)
7400 ("ruby-rainbow" ,ruby-rainbow)
7401 ("ruby-regexp-parser" ,ruby-regexp-parser)
7402 ("ruby-rexml" ,ruby-rexml)
7403 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7404 ("ruby-progressbar" ,ruby-progressbar)
7405 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7406 (synopsis "Ruby code style checking tool")
7408 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7409 the community-driven Ruby Style Guide.")
7410 (home-page "https://github.com/rubocop-hq/rubocop")
7411 (license license:expat)))
7413 (define-public ruby-rubocop-minimal
7416 (inherit ruby-rubocop)
7418 (substitute-keyword-arguments (package-arguments ruby-rubocop)
7419 ((#:tests? _ #f) #f)))
7420 (propagated-inputs '())
7421 (native-inputs '()))))
7423 (define-public ruby-contest
7425 (name "ruby-contest")
7430 (uri (rubygems-uri "contest" version))
7433 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7434 (build-system ruby-build-system)
7435 (synopsis "Write declarative tests using nested contexts")
7437 "Contest allows writing declarative @code{Test::Unit} tests using nested
7438 contexts without performance penalties.")
7439 (home-page "https://github.com/citrusbyte/contest")
7440 (license license:expat)))
7442 (define-public ruby-creole
7444 (name "ruby-creole")
7449 (uri (rubygems-uri "creole" version))
7452 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7453 (build-system ruby-build-system)
7455 `(("ruby-bacon" ,ruby-bacon)))
7456 (synopsis "Creole markup language converter")
7458 "Creole is a lightweight markup language and this library for converting
7459 creole to @code{HTML}.")
7460 (home-page "https://github.com/minad/creole")
7461 (license license:ruby)))
7463 (define-public ruby-docile
7465 (name "ruby-docile")
7470 (uri (rubygems-uri "docile" version))
7473 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7474 (build-system ruby-build-system)
7476 '(#:tests? #f)) ; needs github-markup, among others
7477 (synopsis "Ruby EDSL helper library")
7478 (description "Docile is a Ruby library that provides an interface for
7479 creating embedded domain specific languages (EDSLs) that manipulate existing
7481 (home-page "https://ms-ati.github.io/docile/")
7482 (license license:expat)))
7484 (define-public ruby-middleware
7486 (name "ruby-middleware")
7491 (uri (rubygems-uri "middleware" version))
7494 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7495 (build-system ruby-build-system)
7496 (arguments '(#:tests? #f)) ;no test suite
7497 (synopsis "Implementation of a middleware abstraction for Ruby")
7498 (description "Middleware is a generalized implementation of a middleware
7499 abstraction for Ruby.")
7500 (home-page "https://github.com/mitchellh/middleware")
7501 (license license:expat)))
7503 (define-public ruby-benchmark-ips
7505 (name "ruby-benchmark-ips")
7510 (uri (rubygems-uri "benchmark-ips" version))
7513 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7514 (build-system ruby-build-system)
7516 `(("ruby-hoe" ,ruby-hoe)))
7517 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7518 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7519 iterations per second count. For short snippets of code, it can automatically
7520 figure out how many times to run the code to get interesting data.")
7521 (home-page "https://github.com/evanphx/benchmark-ips")
7522 (license license:expat)))
7524 (define-public ruby-ffi-rzmq-core
7526 (name "ruby-ffi-rzmq-core")
7531 (uri (rubygems-uri "ffi-rzmq-core" version))
7534 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7535 (build-system ruby-build-system)
7538 (modify-phases %standard-phases
7539 (add-after 'unpack 'patch-libzmq-search-path
7540 (lambda* (#:key inputs #:allow-other-keys)
7541 (let ((zeromq (assoc-ref inputs "zeromq")))
7542 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7544 (string-append zeromq "/lib")))
7548 (invoke "rspec"))))))
7550 `(("ruby-rspec" ,ruby-rspec)))
7552 `(("zeromq" ,zeromq)))
7553 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7554 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7555 (description "This library only provides the FFI wrapper for the ZeroMQ
7556 networking library. It can be used to implement a Ruby API for the ZeroMQ
7558 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7559 (license license:expat)))
7561 (define-public ruby-ffi-rzmq
7563 (name "ruby-ffi-rzmq")
7568 (uri (rubygems-uri "ffi-rzmq" version))
7571 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7572 (build-system ruby-build-system)
7573 (arguments '(#:tests? #t
7574 #:phases (modify-phases %standard-phases
7577 (invoke "rspec"))))))
7579 `(("ruby-rspec" ,ruby-rspec)))
7581 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7582 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7583 (description "This library provides a high-level API that wraps the ZeroMQ
7584 networking library using the Ruby foreign function interface (FFI). It is a
7585 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7587 (home-page "https://github.com/chuckremes/ffi-rzmq")
7588 (license license:expat)))
7590 (define-public ruby-sawyer
7592 (name "ruby-sawyer")
7597 (uri (rubygems-uri "sawyer" version))
7600 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7601 (build-system ruby-build-system)
7603 `(("ruby-addressable" ,ruby-addressable)
7604 ("ruby-faraday" ,ruby-faraday)))
7605 (synopsis "Experimental hypermedia agent for Ruby")
7606 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7608 (home-page "https://github.com/lostisland/sawyer")
7609 (license license:expat)))
7611 (define-public ruby-octokit
7613 (name "ruby-octokit")
7618 (uri (rubygems-uri "octokit" version))
7621 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7622 (build-system ruby-build-system)
7623 (arguments '(#:tests? #f)) ;no test suite in the gem release
7625 `(("ruby-faraday" ,ruby-faraday)
7626 ("ruby-sawyer" ,ruby-sawyer)))
7627 (synopsis "Ruby toolkit for the GitHub API")
7628 (description "Octokit wraps the GitHub API in a flat API client that
7629 follows Ruby conventions and requires little knowledge of REST.")
7630 (home-page "https://github.com/octokit/octokit.rb")
7631 (license license:expat)))
7633 (define-public ruby-chandler
7635 (name "ruby-chandler")
7640 (uri (rubygems-uri "chandler" version))
7643 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7644 (build-system ruby-build-system)
7646 `(("ruby-rubocop" ,ruby-rubocop)))
7648 `(("ruby-netrc" ,ruby-netrc)
7649 ("ruby-octokit" ,ruby-octokit)))
7650 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7651 (description "Chandler syncs a project's CHANGELOG file entries to
7652 GitHub's release notes to remove the need of manually entering release
7654 (home-page "https://github.com/mattbrictson/chandler")
7655 (license license:expat)))
7657 (define-public ruby-pry-byebug
7659 (name "ruby-pry-byebug")
7665 (url "https://github.com/deivid-rodriguez/pry-byebug")
7666 (commit (string-append "v" version))))
7667 (file-name (git-file-name name version))
7670 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7671 (build-system ruby-build-system)
7673 `(#:phases (modify-phases %standard-phases
7674 (add-before 'check 'set-home
7676 (setenv "HOME" (getcwd))
7679 `(("ruby-chandler" ,ruby-chandler)
7680 ("ruby-rubocop" ,ruby-rubocop)
7681 ("ruby-simplecov" ,ruby-simplecov)))
7683 `(("ruby-byebug" ,ruby-byebug-11)
7684 ("ruby-pry" ,ruby-pry)))
7685 (synopsis "Step-by-step debugging and stack navigation in Pry")
7686 (description "This package adds step-by-step debugging and stack
7687 navigation capabilities to @code{pry}, using @code{byebug}.")
7688 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7689 (license license:expat)))
7691 (define-public ruby-stackprof
7693 (name "ruby-stackprof")
7698 (uri (rubygems-uri "stackprof" version))
7701 "147rb66p3n062vc433afqhkd99iazvkrqnghxgh871r62yhha93f"))))
7702 (build-system ruby-build-system)
7704 `(("ruby-mocha" ,ruby-mocha)
7705 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7706 (synopsis "Sampling profiler for Ruby code")
7708 "@code{stackprof} is a fast sampling profiler for Ruby code, with cpu,
7709 wallclock and object allocation samplers.")
7710 (home-page "https://github.com/tmm1/stackprof")
7711 (license license:expat)))
7713 (define-public ruby-binding-of-caller
7715 (name "ruby-binding-of-caller")
7720 (uri (rubygems-uri "binding_of_caller" version))
7723 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7724 (build-system ruby-build-system)
7725 ;; Attempting to run the test suite fails with a rake deprecation error
7726 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7727 (arguments '(#:tests? #f))
7729 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7730 (synopsis "Retrieve the binding of a method's caller")
7731 (description "The @code{binding_of_caller} module provides the
7732 @code{Binding#of_caller} method. It allows accessing bindings from upper
7733 frames in the call stack and can evaluate code in that context.")
7734 (home-page "https://github.com/banister/binding_of_caller")
7735 (license license:expat)))
7737 (define-public ruby-pry-stack-explorer
7739 (name "ruby-pry-stack-explorer")
7744 (uri (rubygems-uri "pry-stack_explorer" version))
7747 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7748 (build-system ruby-build-system)
7749 (arguments '(#:tests? #f)) ;no test suite in gem release
7751 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7752 ("ruby-pry" ,ruby-pry)))
7753 (synopsis "Call-stack navigation plugin for the Pry REPL")
7754 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7755 add support to navigate the call-stack.")
7756 (home-page "https://github.com/pry/pry-stack_explorer")
7757 (license license:expat)))
7759 (define-public ruby-varint
7761 (name "ruby-varint")
7766 (uri (rubygems-uri "varint" version))
7769 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7770 (build-system ruby-build-system)
7771 (arguments '(#:tests? #f)) ;no test suite
7772 (synopsis "Variable length integers (varint) C extension for Ruby")
7773 (description "This package provides a small C extension to speed up
7774 variable length integers (varint) in Ruby Protocol Buffers.")
7775 (home-page "https://github.com/liquidm/varint")
7776 (license license:bsd-3)))
7778 (define-public ruby-ruby-prof
7780 (name "ruby-ruby-prof")
7785 (uri (rubygems-uri "ruby-prof" version))
7788 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7789 (build-system ruby-build-system)
7792 (modify-phases %standard-phases
7793 (add-after 'unpack 'patch-rakefile
7794 ;; This fixes the following error: "NameError: uninitialized
7795 ;; constant Bundler::GemHelper" (see:
7796 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7798 (substitute* "Rakefile"
7799 ((".*require \"bundler/setup\".*" all)
7800 (string-append all " require 'bundler/gem_tasks'\n")))
7802 ;; The LineNumbersTest test fails non-deterministically (see:
7803 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7804 (add-after 'extract-gemspec 'delete-flaky-test
7806 (delete-file "test/line_number_test.rb")
7807 (substitute* "ruby-prof.gemspec"
7808 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7810 (add-before 'check 'compile
7812 (invoke "rake" "compile"))))))
7814 `(("bundler" ,bundler)
7815 ("ruby-minitest" ,ruby-minitest)
7816 ("ruby-rake-compiler" ,ruby-rake-compiler)
7817 ("ruby-rdoc" ,ruby-rdoc)))
7818 (synopsis "Fast code profiler for Ruby")
7819 (description "RubyProf is a fast code profiler for Ruby. Its features
7823 Being a C extension, it is many times faster than the standard Ruby profiler.
7824 @item Measurement Modes
7825 It can measure program wall time, process time, object allocations and memory
7828 A variety of text and cross-referenced HTML reports can be generated.
7830 Profiling multiple threads simultaneously is supported.
7832 (home-page "https://github.com/ruby-prof/ruby-prof")
7833 (license license:bsd-2)))
7835 (define-public ruby-memory-profiler
7837 (name "ruby-memory-profiler")
7843 (url "https://github.com/SamSaffron/memory_profiler")
7844 (commit (string-append "v" version))))
7845 (file-name (git-file-name name version))
7848 "07yqv11q68xg2fqkrhs6ysngryk8b9zq6qzh24rgx9xqv6qfnj0w"))))
7849 (build-system ruby-build-system)
7850 (synopsis "Memory profiling routines for Ruby")
7852 "This package provides memory profiling routines for Ruby.")
7853 (home-page "https://github.com/SamSaffron/memory_profiler")
7854 (license license:expat)))
7856 (define-public ruby-cucumber-messages
7858 (name "ruby-cucumber-messages")
7863 (url "https://github.com/cucumber/messages-ruby")
7864 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7865 (file-name (git-file-name name version))
7868 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7869 (build-system ruby-build-system)
7871 `(#:phases (modify-phases %standard-phases
7872 (add-after 'unpack 'patch-protobuf.rb
7874 (substitute* "rake/protobuf.rb"
7875 (("load 'protobuf/tasks/compile.rake'")
7876 "require 'protobuf/tasks'"))
7878 (add-before 'build 'compile
7880 (substitute* "Makefile"
7881 (("bundle exec ") "")
7882 (("include default.mk.*" all)
7883 (string-append "#" all)))
7887 (invoke "rspec"))))))
7889 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7891 `(("ruby-rspec" ,ruby-rspec)))
7892 (home-page "https://github.com/cucumber/messages-ruby")
7893 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7894 (description "Cucumber Messages for Ruby is a library which allows
7895 serialization and deserialization of the protocol buffer messages used in
7897 (license license:expat)))
7899 (define-public ruby-gherkin
7901 (name "ruby-gherkin")
7906 (url "https://github.com/cucumber/gherkin-ruby")
7907 (commit (string-append "v" version))))
7908 (file-name (git-file-name name version))
7911 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7912 (build-system ruby-build-system)
7914 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7915 ("ruby-rspec" ,ruby-rspec)))
7917 `(#:test-target "spec"))
7918 (synopsis "Gherkin parser for Ruby")
7919 (description "Gherkin is a parser and compiler for the Gherkin language.
7920 It is intended be used by all Cucumber implementations to parse
7921 @file{.feature} files.")
7922 (home-page "https://github.com/cucumber/gherkin-ruby")
7923 (license license:expat)))
7925 (define-public ruby-gherkin-ruby
7927 (name "ruby-gherkin-ruby")
7929 (home-page "https://github.com/codegram/gherkin-ruby")
7932 (uri (rubygems-uri "gherkin-ruby" version))
7935 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7936 (build-system ruby-build-system)
7937 (synopsis "Pure Ruby Gherkin parser")
7939 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7940 200 lines of code.")
7941 ;; XXX: No license information anywhere but Readme.md.
7942 (license license:expat)))
7944 (define-public ruby-aruba
7951 (uri (rubygems-uri "aruba" version))
7954 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7955 (build-system ruby-build-system)
7957 '(#:test-target "spec"
7959 (modify-phases %standard-phases
7960 (add-after 'unpack 'patch
7962 (substitute* "spec/aruba/api_spec.rb"
7963 ;; This resolves some errors in the specs
7965 ;; undefined method `parse' for Time:Class
7966 (("require 'spec_helper'")
7967 "require 'spec_helper'\nrequire 'time'"))
7968 ;; Avoid shebang issues in this spec file
7969 (substitute* "spec/aruba/matchers/command_spec.rb"
7970 (("/usr/bin/env bash")
7973 (add-before 'check 'remove-unnecessary-dependencies
7975 (substitute* "Gemfile"
7976 ((".*byebug.*") "\n")
7980 ((".*kramdown.*") "\n")
7981 ((".*rubocop.*") "\n")
7982 ((".*cucumber-pro.*") "\n")
7983 ((".*cucumber.*") "\n")
7984 ((".*license_finder.*") "\n")
7985 ((".*rake.*") "gem 'rake'\n")
7986 ((".*relish.*") "\n"))
7987 (substitute* "aruba.gemspec"
7988 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7989 "spec.add_runtime_dependency 'cucumber'"))
7991 (add-before 'check 'set-home
7992 (lambda _ (setenv "HOME" "/tmp") #t)))))
7994 `(("bundler" ,bundler)
7995 ("ruby-rspec" ,ruby-rspec)
7996 ("ruby-fuubar" ,ruby-fuubar)
7997 ("ruby-simplecov" ,ruby-simplecov)))
7999 `(("ruby-childprocess" ,ruby-childprocess)
8000 ("ruby-contracts" ,ruby-contracts)
8001 ("ruby-cucumber" ,ruby-cucumber)
8002 ("ruby-ffi" ,ruby-ffi)
8003 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
8004 ("ruby-thor" ,ruby-thor)
8005 ("ruby-yard" ,ruby-yard)))
8006 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
8008 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
8009 command-line applications. It supports applications written in any
8011 (home-page "https://github.com/cucumber/aruba")
8012 (license license:expat)))
8014 ;; A version of ruby-aruba without tests run so that circular dependencies can
8016 (define ruby-aruba-without-tests
8018 (inherit ruby-aruba)
8019 (arguments '(#:tests? #f))
8021 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
8022 ,@(alist-delete "ruby-cucumber"
8023 (package-propagated-inputs ruby-aruba))))
8024 (native-inputs '())))
8026 (define-public ruby-sys-uname
8028 (name "ruby-sys-uname")
8033 (uri (rubygems-uri "sys-uname" version))
8036 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
8037 (build-system ruby-build-system)
8039 `(#:test-target "spec"))
8040 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
8041 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
8042 (synopsis "Ruby interface for gathering system information")
8043 (description "The sys-uname library provides an interface for gathering
8044 information about your current platform. It allows retrieving information
8045 such as the OS name, OS version, system name, etc.")
8046 (home-page "https://github.com/djberg96/sys-uname")
8047 (license license:asl2.0)))
8049 (define-public ruby-cucumber-create-meta
8051 (name "ruby-cucumber-create-meta")
8056 (uri (rubygems-uri "cucumber-create-meta" version))
8059 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
8060 (build-system ruby-build-system)
8062 `(#:phases (modify-phases %standard-phases
8063 (add-after 'extract-gemspec 'relax-version-requirements
8065 (substitute* ".gemspec"
8071 (invoke "rspec"))))))
8073 `(("ruby-rspec" ,ruby-rspec)))
8075 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
8076 ("ruby-sys-uname" ,ruby-sys-uname)))
8077 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
8078 (description "The @code{createMeta} utility function allows generating
8079 system-specific @code{Meta} messages for Cucumber Ruby.")
8080 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
8081 (license license:expat)))
8083 (define-public ruby-cucumber-html-formatter
8085 (name "ruby-cucumber-html-formatter")
8090 (uri (rubygems-uri "cucumber-html-formatter" version))
8093 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
8094 (build-system ruby-build-system)
8096 `(#:phases (modify-phases %standard-phases
8099 (invoke "rspec"))))))
8101 `(("ruby-rspec" ,ruby-rspec)))
8103 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8104 (synopsis "HTML formatter for Cucumber")
8105 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
8106 runs. It is built on top of cucumber-react and works with any Cucumber
8107 implementation with a protocol buffer formatter that outputs Cucumber
8109 (home-page "https://github.com/cucumber/cucumber/tree/\
8110 master/html-formatter/ruby")
8111 (license license:expat)))
8113 (define-public ruby-cucumber
8115 (name "ruby-cucumber")
8121 (url "https://github.com/cucumber/cucumber-ruby")
8122 (commit (string-append "v" version))))
8123 (file-name (git-file-name name version))
8126 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
8127 (build-system ruby-build-system)
8129 '(#:test-target "default"
8131 (modify-phases %standard-phases
8132 (add-after 'unpack 'disable-rubocop
8133 ;; Rubocop lint check fails with our more recent version.
8135 (substitute* "Rakefile"
8136 (("spec cucumber rubocop")
8139 (add-after 'extract-gemspec 'strip-version-requirements
8141 (delete-file "Gemfile") ;do not use Bundler
8142 (substitute* "cucumber.gemspec"
8143 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
8144 (string-append stripped "\n")))
8146 (add-before 'check 'set-home
8148 (setenv "HOME" (getcwd))
8151 `(("ruby-builder" ,ruby-builder)
8152 ("ruby-cucumber-core" ,ruby-cucumber-core)
8153 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
8154 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
8155 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
8156 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
8157 ("ruby-diff-lcs" ,ruby-diff-lcs)
8158 ("ruby-gherkin" ,ruby-gherkin)
8159 ("ruby-multi-json" ,ruby-multi-json)
8160 ("ruby-multi-test" ,ruby-multi-test)))
8162 `(;; Use a untested version of aruba, to avoid a circular dependency, as
8163 ;; ruby-aruba depends on ruby-cucumber.
8164 ("ruby-aruba" ,ruby-aruba-without-tests)
8165 ("ruby-rspec" ,ruby-rspec)
8166 ("ruby-pry" ,ruby-pry)
8167 ("ruby-nokogiri" ,ruby-nokogiri)
8168 ("ruby-rubocop" ,ruby-rubocop)))
8169 (synopsis "Describe automated tests in plain language")
8170 (description "Cucumber is a tool for running automated tests written in
8171 plain language. It's designed to support a Behaviour Driven Development (BDD)
8172 software development workflow.")
8173 (home-page "https://cucumber.io/")
8174 (license license:expat)))
8176 (define ruby-cucumber-without-tests
8177 (package (inherit ruby-cucumber)
8183 (define-public ruby-coveralls
8185 (name "ruby-coveralls")
8190 (uri (rubygems-uri "coveralls" version))
8193 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
8194 (build-system ruby-build-system)
8195 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
8196 ;; because of its nonfree, Hippocratic-derived license.
8199 #:phases (modify-phases %standard-phases
8200 (add-after 'extract-gemspec 'strip-version-requirements
8201 ;; Keeping strict version requirements can cause problems
8202 ;; to users of the library, such as: Gem::ConflictError:
8203 ;; Unable to activate coveralls-0.8.23, because
8204 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
8206 (substitute* "coveralls-ruby.gemspec"
8207 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
8208 (string-append stripped ")\n")))
8211 `(("ruby-json" ,ruby-json)
8212 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
8213 ("ruby-thor" ,ruby-thor)
8214 ("ruby-tins" ,ruby-tins)))
8215 (synopsis "Ruby implementation of the Coveralls API")
8216 (description "This package provides a Ruby implementation of the Coveralls
8218 (home-page "https://coveralls.io")
8219 (license license:expat)))
8221 (define-public ruby-unindent
8223 (name "ruby-unindent")
8228 (uri (rubygems-uri "unindent" version))
8231 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
8232 (build-system ruby-build-system)
8233 (synopsis "Ruby method to unindent strings")
8234 (description "This module provides a @code{String#unindent} Ruby method to
8235 unindent strings, which can be useful to unindent multiline strings embedded
8236 in already-indented code.")
8237 (home-page "https://github.com/mynyml/unindent")
8238 (license license:expat)))
8240 (define-public ruby-cucumber-core
8242 (name "ruby-cucumber-core")
8248 (url "https://github.com/cucumber/cucumber-ruby-core")
8249 (commit (string-append "v" version))))
8250 (file-name (git-file-name name version))
8253 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
8254 (build-system ruby-build-system)
8256 `(#:test-target "spec"
8258 (modify-phases %standard-phases
8259 (add-after 'extract-gemspec 'relax-version-requirements
8261 (substitute* "cucumber-core.gemspec"
8262 (("'cucumber-tag-expressions',.*")
8263 "'cucumber-tag-expressions', '>=2.0.0'\n"))
8266 `(("ruby-rspec" ,ruby-rspec)
8267 ("ruby-coveralls" ,ruby-coveralls)
8268 ("ruby-rubocop" ,ruby-rubocop)
8269 ("ruby-simplecov" ,ruby-simplecov)
8270 ("ruby-unindent" ,ruby-unindent)))
8272 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
8273 ("ruby-gherkin" ,ruby-gherkin)
8274 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
8275 (synopsis "Core library for the Cucumber BDD app")
8276 (description "Cucumber is a tool for running automated tests
8277 written in plain language. Because they're written in plain language,
8278 they can be read by anyone on your team. Because they can be read by
8279 anyone, you can use them to help improve communication, collaboration
8280 and trust on your team.")
8281 (home-page "https://cucumber.io/")
8282 (license license:expat)))
8284 (define-public ruby-cucumber-expressions
8286 (name "ruby-cucumber-expressions")
8292 (url "https://github.com/cucumber/cucumber-expressions-ruby")
8293 (commit (string-append "v" version))))
8294 (file-name (git-file-name name version))
8297 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
8298 (build-system ruby-build-system)
8300 '(#:test-target "spec"))
8302 `(("ruby-rspec" ,ruby-rspec)
8303 ("ruby-simplecov" ,ruby-simplecov)))
8304 (synopsis "Simpler alternative to Regular Expressions")
8305 (description "Cucumber Expressions offer similar functionality to Regular
8306 Expressions, with a syntax that is easier to read and write. Cucumber
8307 Expressions are extensible with parameter types.")
8308 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
8309 (license license:expat)))
8311 (define-public ruby-cucumber-wire
8313 (name "ruby-cucumber-wire")
8318 (uri (rubygems-uri "cucumber-wire" version))
8321 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
8322 (build-system ruby-build-system)
8324 '(#:tests? #f ;tests use cucumber, causing a cycle
8326 (modify-phases %standard-phases
8327 (add-after 'extract-gemspec 'relax-version-requirements
8329 (substitute* ".gemspec"
8330 ((" 10\\.1") " 10.2"))
8333 `(("ruby-cucumber-core" ,ruby-cucumber-core)
8334 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
8335 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8336 (synopsis "Cucumber wire protocol plugin")
8337 (description "Cucumber's wire protocol allows step definitions to be
8338 implemented and invoked on any platform.")
8339 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8340 (license license:expat)))
8342 (define-public ruby-cucumber-tag-expressions
8344 (name "ruby-cucumber-tag-expressions")
8350 (url "https://github.com/cucumber/tag-expressions-ruby")
8351 (commit (string-append "v" version))))
8352 (file-name (git-file-name name version))
8355 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8356 (build-system ruby-build-system)
8358 `(#:test-target "spec"))
8360 `(("ruby-rspec" ,ruby-rspec)))
8361 (synopsis "Cucumber tag expressions for Ruby")
8362 (description "Cucumber tag expression parser for Ruby. A tag expression
8363 is an infix boolean expression used by Cucumber.")
8364 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8365 (license license:expat)))
8367 (define-public ruby-bindex
8369 (name "ruby-bindex")
8374 (uri (rubygems-uri "bindex" version))
8377 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8378 (build-system ruby-build-system)
8380 '(#:test-target "default"))
8382 `(("bundler" ,bundler)
8383 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8384 (synopsis "Provides access for bindings relating to Ruby exceptions")
8386 "@code{bindex} provides a way to access the bindings that relate to
8387 exceptions in Ruby, providing more information about the context in which the
8388 exception occurred.")
8389 (home-page "https://github.com/gsamokovarov/bindex")
8390 (license license:expat)))
8392 (define-public ruby-bio-logger
8394 (name "ruby-bio-logger")
8399 (uri (rubygems-uri "bio-logger" version))
8402 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8403 (build-system ruby-build-system)
8405 `(#:tests? #f)) ; rake errors, missing shoulda
8407 `(("ruby-log4r" ,ruby-log4r)))
8408 (synopsis "Log4r wrapper for Ruby")
8409 (description "Bio-logger is a wrapper around Log4r adding extra logging
8410 features such as filtering and fine grained logging.")
8411 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8412 (license license:expat)))
8414 (define-public ruby-yajl-ruby
8416 (name "ruby-yajl-ruby")
8421 (uri (rubygems-uri "yajl-ruby" version))
8424 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8425 (build-system ruby-build-system)
8427 '(#:test-target "spec"
8429 (modify-phases %standard-phases
8430 (add-before 'check 'patch-test-to-update-load-path
8432 (substitute* "spec/parsing/large_number_spec.rb"
8433 (("require \"yajl\"")
8434 "$LOAD_PATH << 'lib'; require 'yajl'"))
8437 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8438 ("ruby-rspec" ,ruby-rspec)))
8439 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8441 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8442 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8445 A modified copy of yajl is used, and included in the package.")
8446 (home-page "https://github.com/brianmario/yajl-ruby")
8447 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8448 license:bsd-3)))) ; Included, modified copy of yajl
8450 (define-public ruby-yard
8457 ;; Tests do not pass if we build from the distributed gem.
8459 (url "https://github.com/lsegal/yard")
8460 (commit (string-append "v" version))))
8461 (file-name (git-file-name name version))
8464 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8465 (build-system ruby-build-system)
8467 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8470 #:phases (modify-phases %standard-phases
8471 (add-after 'unpack 'do-not-set-date-in-gemspec
8472 ;; Fix a reproducibility issue (see:
8473 ;; https://github.com/lsegal/yard/issues/1343).
8475 (substitute* "yard.gemspec"
8476 ((".*s\\.date.*") ""))
8478 (synopsis "Documentation generation tool for Ruby")
8479 (description "YARD is a documentation generation tool for the Ruby
8480 programming language. It enables the user to generate consistent, usable
8481 documentation that can be exported to a number of formats very easily, and
8482 also supports extending for custom Ruby constructs such as custom class level
8484 (home-page "https://yardoc.org")
8485 (license license:expat)))
8487 (define-public ruby-yard-with-tests
8490 (name "ruby-yard-with-tests")
8492 (substitute-keyword-arguments (package-arguments ruby-yard)
8493 ((#:tests? _ #t) #t)
8494 ((#:test-target _ "default") "default")
8495 ((#:phases phases '%standard-phases)
8496 `(modify-phases ,phases
8497 (add-before 'check 'prepare-for-tests
8498 (lambda* (#:key tests? #:allow-other-keys)
8500 (substitute* "Rakefile"
8501 ((".*[Ss]amus.*") ""))
8502 ;; Delete the Gemfile to avoid errors relating to it.
8503 (delete-file "Gemfile")
8504 ;; $HOME needs to be set to somewhere writeable for tests to
8506 (setenv "HOME" "/tmp"))
8509 `(("ruby-rspec" ,ruby-rspec)
8510 ("ruby-rack" ,ruby-rack)
8511 ("ruby-redcloth" ,ruby-redcloth)
8512 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8514 (define-public ruby-spectroscope
8516 (name "ruby-spectroscope")
8521 (uri (rubygems-uri "spectroscope" version))
8524 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8525 (build-system ruby-build-system)
8528 (modify-phases %standard-phases
8531 (with-output-to-file ".test"
8540 Test.run :default do |run|
8541 run.files << 'spec/*_spec.rb'
8543 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8545 `(("ruby-ae" ,ruby-ae)
8546 ("ruby-rspec" ,ruby-rspec)))
8548 `(("ruby-rubytest" ,ruby-rubytest)))
8549 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8550 (description "Spectroscope is a Behavior-Driven Development (BDD)
8551 framework built on RubyTest, designed to emulate RSpec in most respects. It
8552 is assertion framework independent so any number of assertion systems can be
8553 used, such as Assay or AE.")
8554 (home-page "http://rubyworks.github.com/spectroscope/")
8555 (license license:bsd-2)))
8557 (define-public ruby-tomparse
8559 (name "ruby-tomparse")
8564 (uri (rubygems-uri "tomparse" version))
8567 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8568 (build-system ruby-build-system)
8569 ;; TODO: Tests require citron and rulebow, not yet packaged.
8570 (arguments '(#:tests? #f))
8571 (synopsis "TomDoc parser for Ruby")
8572 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8573 comment as input and parses it into a convenient object-oriented structure in
8574 accordance with the TomDoc standard. See
8575 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8577 (home-page "http://rubyworks.github.com/tomparse/")
8578 (license license:bsd-2)))
8580 (define-public ruby-yard-tomdoc
8582 (name "ruby-yard-tomdoc")
8587 (uri (rubygems-uri "yard-tomdoc" version))
8590 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8591 (build-system ruby-build-system)
8593 `(#:phases (modify-phases %standard-phases
8596 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8598 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8599 ("ruby-spectroscope" ,ruby-spectroscope)
8600 ("ruby-ae" ,ruby-ae)))
8602 `(("ruby-tomparse" ,ruby-tomparse)
8603 ("ruby-yard" ,ruby-yard)))
8604 (synopsis "TomDoc syntax for YARD")
8605 (description "This module adds support for the TomDoc documentation format
8606 to YARD, a documentation generation tool for Ruby.")
8607 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8608 (license license:expat)))
8610 (define-public ruby-clap
8616 (uri (rubygems-uri "clap" version))
8619 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8620 (build-system ruby-build-system)
8621 ;; Clap needs cutest for running tests, but cutest needs clap.
8622 (arguments `(#:tests? #f))
8623 (synopsis "Command line argument parsing for simple applications")
8625 "Clap provides command line argument parsing features. It covers the
8626 simple case of executing code based on the flags or parameters passed.")
8627 (home-page "https://github.com/djanowski/cutest")
8628 (license license:expat)))
8630 (define-public ruby-cutest
8632 (name "ruby-cutest")
8636 (uri (rubygems-uri "cutest" version))
8639 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8640 (build-system ruby-build-system)
8642 `(("ruby-clap" ,ruby-clap)))
8643 (synopsis "Run tests in separate processes")
8645 "Cutest runs tests in separate processes to avoid shared state.")
8646 (home-page "https://github.com/djanowski/cutest")
8647 (license license:expat)))
8649 (define-public ruby-pygmentize
8651 (name "ruby-pygmentize")
8655 (uri (rubygems-uri "pygmentize" version))
8658 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8659 (build-system ruby-build-system)
8662 (modify-phases %standard-phases
8663 (add-after 'unpack 'fix-pygmentize-path
8665 (substitute* "lib/pygmentize.rb"
8666 (("\"/usr/bin/env python.*")
8667 (string-append "\"" (which "pygmentize") "\"\n")))
8669 (add-after 'build 'do-not-use-vendor-directory
8671 ;; Remove bundled pygments sources
8672 ;; FIXME: ruby-build-system does not support snippets.
8673 (delete-file-recursively "vendor")
8674 (substitute* "pygmentize.gemspec"
8675 (("\"vendor/\\*\\*/\\*\",") ""))
8678 `(("pygments" ,python-pygments)))
8680 `(("ruby-cutest" ,ruby-cutest)
8681 ("ruby-nokogiri" ,ruby-nokogiri)))
8682 (synopsis "Thin Ruby wrapper around pygmentize")
8684 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8686 (home-page "https://github.com/djanowski/pygmentize")
8687 (license license:expat)))
8689 (define-public ruby-eventmachine
8691 (name "ruby-eventmachine")
8696 (uri (rubygems-uri "eventmachine" version))
8699 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8700 (build-system ruby-build-system)
8702 '(#:tests? #f)) ; test suite tries to connect to google.com
8704 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8705 (synopsis "Single-threaded network event framework for Ruby")
8707 "EventMachine implements a single-threaded engine for arbitrary network
8708 communications. EventMachine wraps all interactions with sockets, allowing
8709 programs to concentrate on the implementation of network protocols. It can be
8710 used to create both network servers and clients.")
8711 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8712 (home-page "https://github.com/eventmachine/eventmachine")
8713 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8715 (define-public ruby-ruby-engine
8717 (name "ruby-ruby-engine")
8722 (uri (rubygems-uri "ruby_engine" version))
8725 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8726 (build-system ruby-build-system)
8729 (modify-phases %standard-phases
8730 (add-after 'extract-gemspec 'clean-up
8732 (delete-file "Gemfile.lock")
8733 (substitute* "ruby_engine.gemspec"
8734 ;; Remove unnecessary imports that would entail further
8737 ((".*<rubygems-tasks.*") "")
8738 ;; Remove extraneous .gem file
8739 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8740 (("\"Gemfile.lock\".freeze, ") "")
8741 ;; Soften rake dependency
8742 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8743 "%q<rake>.freeze, [\">= 10.0\"]")
8744 ;; Soften the rspec dependency
8745 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8746 "%q<rspec>.freeze, [\">= 2.4\"]"))
8747 (substitute* "Rakefile"
8748 (("require 'rubygems/tasks'") "")
8749 (("Gem::Tasks.new") ""))
8750 ;; Remove extraneous .gem file that otherwise gets installed.
8751 (delete-file-recursively "pkg")
8754 `(("bundler" ,bundler)
8755 ("ruby-rake" ,ruby-rake)
8756 ("ruby-rspec" ,ruby-rspec)))
8757 (synopsis "Simplifies checking for Ruby implementation")
8759 "@code{ruby_engine} provides an RubyEngine class that can be used to
8760 check which implementation of Ruby is in use. It can provide the interpreter
8761 name and provides query methods such as @{RubyEngine.mri?}.")
8762 (home-page "https://github.com/janlelis/ruby_engine")
8763 (license license:expat)))
8765 (define-public ruby-turn
8772 (uri (rubygems-uri "turn" version))
8775 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8776 (build-system ruby-build-system)
8779 (modify-phases %standard-phases
8780 ;; Tests fail because turn changes its environment so can no longer
8781 ;; find test/unit. Instead simply test if the executable runs
8785 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8787 `(("ruby-ansi" ,ruby-ansi)
8788 ("ruby-minitest" ,ruby-minitest-4)))
8789 (synopsis "Alternate set of alternative runners for MiniTest")
8791 "TURN provides a set of alternative runners for MiniTest which are both
8792 colorful and informative. TURN displays each test on a separate line with
8793 failures being displayed immediately instead of at the end of the tests. Note
8794 that TURN is no longer being maintained.")
8795 (home-page "https://rubygems.org/gems/turn")
8796 (license license:expat)))
8798 (define-public ruby-mimemagic
8800 (name "ruby-mimemagic")
8805 (uri (rubygems-uri "mimemagic" version))
8807 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8808 (build-system ruby-build-system)
8811 (modify-phases %standard-phases
8812 ;; This phase breaks the tests, as it patches some of the test data.
8813 (delete 'patch-source-shebangs))))
8815 `(("ruby-bacon" ,ruby-bacon)))
8816 (synopsis "Ruby library for MIME detection by extension or content")
8818 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8819 extension or content, using the freedesktop.org.xml shared-mime-info
8821 (home-page "https://github.com/minad/mimemagic")
8822 (license license:expat)))
8824 (define-public ruby-mime-types-data
8826 (name "ruby-mime-types-data")
8827 (version "3.2016.0521")
8831 (uri (rubygems-uri "mime-types-data" version))
8834 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8835 (build-system ruby-build-system)
8837 `(("ruby-hoe" ,ruby-hoe)))
8838 (synopsis "Registry for information about MIME media type definitions")
8840 "@code{mime-types-data} provides a registry for information about
8841 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8842 be used with the Ruby mime-types library or other software to determine
8843 defined filename extensions for MIME types, or to use filename extensions to
8844 look up the likely MIME type definitions.")
8845 (home-page "https://github.com/mime-types/mime-types-data/")
8846 (license license:expat)))
8848 (define-public ruby-mime-types
8850 (name "ruby-mime-types")
8855 (uri (rubygems-uri "mime-types" version))
8858 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8859 (build-system ruby-build-system)
8861 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8863 `(("ruby-hoe" ,ruby-hoe)
8864 ("ruby-fivemat" ,ruby-fivemat)
8865 ("ruby-minitest-focus" ,ruby-minitest-focus)
8866 ("ruby-minitest-rg" ,ruby-minitest-rg)
8867 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8868 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8869 (synopsis "Library and registry for MIME content type definitions")
8870 (description "The mime-types library provides a library and registry for
8871 information about Multipurpose Internet Mail Extensions (MIME) content type
8872 definitions. It can be used to determine defined filename extensions for MIME
8873 types, or to use filename extensions to look up the likely MIME type
8875 (home-page "https://github.com/mime-types/ruby-mime-types")
8876 (license license:expat)))
8878 (define-public ruby-mini-mime
8880 (name "ruby-mini-mime")
8885 (uri (rubygems-uri "mini_mime" version))
8888 "1axm0rxyx3ss93wbmfkm78a6x03l8y4qy60rhkkiq0aza0vwq3ha"))))
8889 (build-system ruby-build-system)
8890 (synopsis "Lightweight mime type lookup toy")
8891 (description "This package provides a lightweight mime type lookup toy.")
8892 (home-page "https://github.com/discourse/mini_mime")
8893 (license license:expat)))
8895 (define-public ruby-fivemat
8897 (name "ruby-fivemat")
8902 (uri (rubygems-uri "fivemat" version))
8905 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8906 (build-system ruby-build-system)
8908 `(#:tests? #f)) ; no tests
8909 (synopsis "Each test file given its own line of dots")
8911 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8912 its own line of dots during testing. It aims to provide test output that is
8913 neither too verbose nor too minimal.")
8914 (home-page "https://github.com/tpope/fivemat")
8915 (license license:expat)))
8917 (define-public ruby-sqlite3
8919 (name "ruby-sqlite3")
8924 (uri (rubygems-uri "sqlite3" version))
8927 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8928 (build-system ruby-build-system)
8931 (modify-phases %standard-phases
8932 (add-before 'check 'add-gemtest-file
8933 ;; This file exists in the repository but is not distributed.
8934 (lambda _ (invoke "touch" ".gemtest"))))))
8936 `(("sqlite" ,sqlite)))
8938 `(("ruby-hoe" ,ruby-hoe)
8939 ("ruby-rake-compiler" ,ruby-rake-compiler)
8940 ("ruby-mini-portile" ,ruby-mini-portile)))
8941 (synopsis "Interface with SQLite3 databases")
8943 "This module allows Ruby programs to interface with the SQLite3 database
8946 "https://github.com/sparklemotion/sqlite3-ruby")
8947 (license license:bsd-3)))
8949 (define-public ruby-shoulda-context
8951 (name "ruby-shoulda-context")
8956 (uri (rubygems-uri "shoulda-context" version))
8959 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8960 (build-system ruby-build-system)
8963 (modify-phases %standard-phases
8966 ;; Do not run tests to avoid circular dependence with rails.
8967 ;; Instead just import the library to test.
8968 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8969 (synopsis "Test::Unit context framework extracted from Shoulda")
8971 "@code{shoulda-context} is the context framework extracted from Shoulda.
8972 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8973 context, setup, and should blocks combine to produce natural test method
8975 (home-page "https://github.com/thoughtbot/shoulda-context")
8976 (license license:expat)))
8978 (define-public ruby-shoulda-matchers
8980 (name "ruby-shoulda-matchers")
8985 (uri (rubygems-uri "shoulda-matchers" version))
8988 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8989 (build-system ruby-build-system)
8992 (modify-phases %standard-phases
8995 ;; Do not run tests to avoid circular dependence with rails. Instead
8996 ;; just import the library to test.
8997 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8999 `(("ruby-activesupport" ,ruby-activesupport)))
9000 (synopsis "Collection of testing matchers extracted from Shoulda")
9002 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
9003 test common Rails functionality. These tests would otherwise be much longer,
9004 more complex, and error-prone.")
9005 (home-page "https://github.com/thoughtbot/shoulda-matchers")
9006 (license license:expat)))
9008 (define-public ruby-shoulda-matchers-2
9010 (inherit ruby-shoulda-matchers)
9014 (uri (rubygems-uri "shoulda-matchers" version))
9017 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
9019 (define-public ruby-shoulda
9021 (name "ruby-shoulda")
9026 (uri (rubygems-uri "shoulda" version))
9029 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
9030 (build-system ruby-build-system)
9033 (modify-phases %standard-phases
9035 ;; Don't run tests to avoid circular dependence with rails. Instead
9036 ;; just import the library to test.
9037 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
9039 `(("ruby-shoulda-context" ,ruby-shoulda-context)
9040 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
9041 (synopsis "Context framework and matchers for testing")
9043 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
9044 @code{shoulda-matchers} providing tools for writing tests.")
9045 (home-page "https://github.com/thoughtbot/shoulda")
9046 (license license:expat)))
9048 (define-public ruby-unf
9055 (uri (rubygems-uri "unf" version))
9058 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
9059 (build-system ruby-build-system)
9062 (modify-phases %standard-phases
9063 (add-before 'check 'add-dependency-to-bundler
9065 ;; test-unit is required but not provided by the bundler
9066 ;; environment. This is fixed in the upstream repository but fix
9067 ;; has not been released.
9068 (substitute* "Gemfile"
9069 (("^gemspec") "gem 'test-unit'\ngemspec"))
9072 `(("ruby-unf-ext" ,ruby-unf-ext)))
9074 `(("ruby-shoulda" ,ruby-shoulda)
9075 ("bundler" ,bundler)
9076 ("ruby-test-unit" ,ruby-test-unit)))
9077 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
9079 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
9080 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
9081 @code{java.text.Normalizer} on JRuby.")
9082 (home-page "https://github.com/knu/ruby-unf")
9083 (license license:bsd-2)))
9085 (define-public ruby-warden
9087 (name "ruby-warden")
9092 (uri (rubygems-uri "warden" version))
9095 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
9096 (build-system ruby-build-system)
9098 '(#:tests? #f)) ; No included tests
9100 `(("ruby-rack" ,ruby-rack)))
9101 (synopsis "Rack middleware providing authentication")
9103 "Warden is a Rack-based middleware that provides a mechanism for
9104 authentication in Ruby web applications.")
9105 (home-page "https://github.com/wardencommunity/warden")
9106 (license license:expat)))
9108 (define-public ruby-warden-oauth2
9110 (name "ruby-warden-oauth2")
9115 (uri (rubygems-uri "warden-oauth2" version))
9118 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
9119 (build-system ruby-build-system)
9121 '(#:test-target "spec"
9123 (modify-phases %standard-phases
9124 (add-after 'unpack 'remove-unnecessary-dependencies
9126 (substitute* "Gemfile"
9127 ;; All of these gems relate to development, and are unnecessary
9128 ;; when running the tests
9129 (("gem 'guard-bundler'") "")
9130 (("gem 'guard'") "")
9131 (("gem 'guard-rspec'") "")
9132 (("gem 'rb-fsevent'") "")
9134 (("gem 'growl'") ""))
9136 ;; The test suite doesn't work with rspec@2, and this is incompatible
9137 ;; with the current version of Rake, so invoke Rspec directly
9139 (lambda* (#:key tests? #:allow-other-keys)
9141 (invoke "bundle" "exec" "rspec"))
9144 `(("ruby-warden" ,ruby-warden)))
9146 `(("bundler" ,bundler)
9147 ("ruby-rspec" ,ruby-rspec-2)
9148 ("ruby-rack-test" ,ruby-rack-test)))
9149 (synopsis "OAuth 2.0 strategies for Warden")
9151 "This library extends Warden to support OAuth 2.0 authorized API
9153 (home-page "https://github.com/opperator/warden-oauth2")
9154 (license license:expat)))
9156 (define-public ruby-webmock
9158 (name "ruby-webmock")
9163 (uri (rubygems-uri "webmock" version))
9166 "1hdlbvfw316lkz251qnfk79drmaay7l51kidvicz41nhvw12xz8v"))))
9167 (build-system ruby-build-system)
9169 `(("bundler" ,bundler)
9170 ("ruby-rspec" ,ruby-rspec)))
9172 `(("ruby-addressable" ,ruby-addressable)
9173 ("ruby-crack" ,ruby-crack)
9174 ("ruby-hashdiff" ,ruby-hashdiff)))
9175 (synopsis "Allows stubbing and setting expectations on HTTP requests")
9177 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
9178 requests. This is useful when testing software.")
9179 (home-page "https://github.com/bblimke/webmock")
9180 (license license:expat)))
9182 (define-public ruby-webmock-2
9184 (inherit ruby-webmock)
9185 (name "ruby-webmock")
9190 (uri (rubygems-uri "webmock" version))
9193 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))))
9195 (define-public ruby-unicode-display-width
9197 (name "ruby-unicode-display-width")
9202 (uri (rubygems-uri "unicode-display_width" version))
9205 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
9206 (build-system ruby-build-system)
9208 '(;; Test data not included.
9210 (synopsis "Determine the monospace display width of Ruby strings")
9212 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
9213 display width of strings in Ruby.")
9214 (home-page "https://github.com/janlelis/unicode-display_width")
9215 (license license:expat)))
9217 ;; There is another gem called 'ruby-version' so we use an underscore in this
9219 (define-public ruby_version
9221 (name "ruby_version")
9226 (uri (rubygems-uri "ruby_version" version))
9229 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
9230 (build-system ruby-build-system)
9233 (modify-phases %standard-phases
9234 (add-before 'check 'fix-dependencies
9236 ;; Remove the Gemfile.lock, as we want to use Guix packages at
9237 ;; whatever versions.
9238 (delete-file "Gemfile.lock")
9239 ;; Remove the included gem files as they unnecessary.
9240 (delete-file-recursively "pkg/")
9241 ;; Accept any version of rake, rdoc and rspec
9242 (substitute* "ruby_version.gemspec"
9243 (("%q<rake.*") "%q<rake>)\n")
9244 (("%q<rdoc.*") "%q<rdoc>)\n")
9245 (("%q<rspec.*") "%q<rspec>)\n"))
9246 ;; Do not use bundler.
9247 (substitute* "Rakefile"
9248 (("Bundler\\.setup.*") "nil\n"))
9251 `(("ruby-rdoc" ,ruby-rdoc)
9252 ("ruby-rspec" ,ruby-rspec)
9253 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
9254 (synopsis "Ruby library to help check the Ruby version")
9255 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
9256 checking for the right Ruby version in software.")
9257 (home-page "https://github.com/janlelis/ruby_version")
9258 (license license:expat)))
9260 (define-public ruby-websocket-driver
9262 (name "ruby-websocket-driver")
9267 (uri (rubygems-uri "websocket-driver" version))
9269 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
9270 (build-system ruby-build-system)
9272 '(#:tests? #f)) ; no included tests
9274 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
9275 (synopsis "WebSocket protocol handler with pluggable I/O")
9277 "@code{websocket-driver} provides a complete implementation of the
9278 WebSocket protocols that can be hooked up to any TCP library")
9279 (home-page "https://github.com/faye/websocket-driver-ruby")
9280 (license license:expat)))
9282 (define-public ruby-websocket-extensions
9284 (name "ruby-websocket-extensions")
9289 (uri (rubygems-uri "websocket-extensions" version))
9292 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
9293 (build-system ruby-build-system)
9295 '(;; No included tests
9297 (synopsis "Generic extension manager for WebSocket connections")
9299 "@code{websocket-extensions} provides a container for registering
9300 extension plugins.")
9301 (home-page "https://github.com/faye/websocket-extensions-ruby")
9302 (license license:expat)))
9304 (define-public ruby-domain-name
9306 (name "ruby-domain-name")
9307 (version "0.5.20190701")
9311 (uri (rubygems-uri "domain_name" version))
9313 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
9314 (build-system ruby-build-system)
9317 (modify-phases %standard-phases
9318 (add-before 'check 'fix-versions
9320 ;; Fix NameError that appears to already be fixed upstream.
9321 (substitute* "Rakefile"
9322 (("DomainName::VERSION")
9323 "Bundler::GemHelper.gemspec.version"))
9324 ;; Loosen unnecessarily strict test-unit version specification.
9325 (substitute* "domain_name.gemspec"
9326 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
9329 `(("ruby-unf" ,ruby-unf)))
9331 `(("ruby-shoulda" ,ruby-shoulda)
9332 ("bundler" ,bundler)
9333 ("ruby-test-unit" ,ruby-test-unit)))
9334 (synopsis "Domain name manipulation library")
9336 "@code{domain_name} is a Domain name manipulation library. It parses a
9337 domain name ready for extracting the registered domain and TLD (Top Level
9338 Domain). It can also be used for cookie domain validation based on the Public
9340 (home-page "https://github.com/knu/ruby-domain_name")
9341 (license license:bsd-2)))
9343 (define-public ruby-http-cookie
9345 (name "ruby-http-cookie")
9350 (uri (rubygems-uri "http-cookie" version))
9353 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
9354 (build-system ruby-build-system)
9357 (modify-phases %standard-phases
9358 (add-before 'check 'add-dependency-to-bundler
9361 (substitute* "Rakefile"
9362 (("HTTP::Cookie::VERSION")
9363 "Bundler::GemHelper.gemspec.version"))
9366 `(("ruby-domain-name" ,ruby-domain-name)))
9368 `(("rubysimplecov" ,ruby-simplecov)
9369 ("bundler" ,bundler)
9370 ("ruby-sqlite3" ,ruby-sqlite3)
9371 ("ruby-test-unit" ,ruby-test-unit)))
9372 (synopsis "Handle HTTP Cookies based on RFC 6265")
9374 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9375 RFC 6265. It has been designed with security, standards compliance and
9376 compatibility in mind, to behave just the same as today's major web browsers.
9377 It has built-in support for the legacy @code{cookies.txt} and
9378 @code{cookies.sqlite} formats of Mozilla Firefox.")
9379 (home-page "https://github.com/sparklemotion/http-cookie")
9380 (license license:expat)))
9382 (define-public ruby-httpclient
9384 (name "ruby-httpclient")
9389 (uri (rubygems-uri "httpclient" version))
9392 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9393 (build-system ruby-build-system)
9395 '(;; TODO: Some tests currently fail
9397 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9398 ;; 2 omissions, 0 notifications
9401 ;; 6.49 tests/s, 22.41 assertions/s
9404 (modify-phases %standard-phases
9406 (lambda* (#:key tests? #:allow-other-keys)
9413 `(("ruby-rack" ,ruby-rack)))
9415 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9417 "The @code{httpclient} ruby library provides functionality related to
9418 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9419 Cookie, multithreading and authentication (digest, NTLM) support.
9421 Also provided is a @command{httpclient} command, which can perform HTTP
9422 requests either using arguments or with an interactive prompt.")
9423 (home-page "https://github.com/nahi/httpclient")
9424 (license license:ruby)))
9426 (define-public ruby-ansi
9433 ;; Fetch from GitHub as the gem does not contain testing code.
9435 (url "https://github.com/rubyworks/ansi")
9437 (file-name (git-file-name name version))
9440 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9441 (build-system ruby-build-system)
9444 (modify-phases %standard-phases
9445 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9446 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9450 (invoke "ruby" "-Ilib" "-r" "ansi")))
9451 (add-before 'validate-runpath 'replace-broken-symlink
9452 (lambda* (#:key outputs #:allow-other-keys)
9453 (let* ((out (assoc-ref outputs "out"))
9454 (file (string-append
9455 out "/lib/ruby/vendor_ruby/gems/ansi-"
9456 ,version "/lib/ansi.yml")))
9457 ;; XXX: This symlink is broken since ruby 2.4.
9458 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9460 (symlink "../.index" file)
9462 (synopsis "ANSI escape code related libraries")
9464 "This package is a collection of ANSI escape code related libraries
9465 enabling ANSI colorization and stylization of console output. Included in the
9466 library are the @code{Code} module, which defines ANSI codes as constants and
9467 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9468 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9469 @code{Terminal} module which provides information about the current output
9471 (home-page "https://rubyworks.github.io/ansi/")
9472 (license license:bsd-2)))
9474 (define-public ruby-systemu
9476 (name "ruby-systemu")
9481 (uri (rubygems-uri "systemu" version))
9484 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9485 (build-system ruby-build-system)
9488 (modify-phases %standard-phases
9489 (add-before 'check 'set-version
9491 (setenv "VERSION" ,version)
9493 (synopsis "Capture of stdout/stderr and handling of child processes")
9495 "Systemu can be used on any platform to return status, stdout, and stderr
9496 of any command. Unlike other methods like @code{open3} and @code{popen4}
9497 there is no danger of full pipes or threading issues hanging your process or
9499 (home-page "https://github.com/ahoward/systemu")
9500 (license license:ruby)))
9502 (define-public ruby-bio-commandeer
9504 (name "ruby-bio-commandeer")
9509 (uri (rubygems-uri "bio-commandeer" version))
9512 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9513 (build-system ruby-build-system)
9516 (modify-phases %standard-phases
9518 ;; Run test without calling 'rake' so that jeweler is
9519 ;; not required as an input.
9521 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9523 `(("ruby-bio-logger" ,ruby-bio-logger)
9524 ("ruby-systemu" ,ruby-systemu)))
9526 `(("bundler" ,bundler)
9527 ("ruby-rspec" ,ruby-rspec)))
9528 (synopsis "Simplified running of shell commands from within Ruby")
9530 "Bio-commandeer provides an opinionated method of running shell commands
9531 from within Ruby. The advantage of bio-commandeer over other methods of
9532 running external commands is that when something goes wrong, messages printed
9533 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9534 detail to ease debugging.")
9535 (home-page "https://github.com/wwood/bioruby-commandeer")
9536 (license license:expat)))
9538 (define-public ruby-rubytest
9540 (name "ruby-rubytest")
9545 (uri (rubygems-uri "rubytest" version))
9548 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9549 (build-system ruby-build-system)
9551 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9552 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9553 ;; simply test that the library can be require'd.
9555 (modify-phases %standard-phases
9558 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9560 `(("ruby-ansi" ,ruby-ansi)))
9561 (synopsis "Universal test harness for Ruby")
9563 "Rubytest is a testing meta-framework for Ruby. It can handle any
9564 compliant test framework and can run tests from multiple frameworks in a
9566 (home-page "https://rubyworks.github.io/rubytest")
9567 (license license:bsd-2)))
9569 (define-public ruby-brass
9576 (uri (rubygems-uri "brass" version))
9579 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9580 (build-system ruby-build-system)
9582 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9583 ;; Instead simply test that the library can be require'd.
9585 (modify-phases %standard-phases
9588 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9589 (synopsis "Basic foundational assertions framework")
9591 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9592 foundational assertions framework for other assertion and test frameworks to
9594 (home-page "https://rubyworks.github.io/brass")
9595 (license license:bsd-2)))
9597 (define-public ruby-qed
9604 (uri (rubygems-uri "qed" version))
9607 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9608 (build-system ruby-build-system)
9610 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9611 ;; Instead simply test that the executable runs using --copyright.
9613 (modify-phases %standard-phases
9616 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9618 `(("ruby-ansi" ,ruby-ansi)
9619 ("ruby-brass" ,ruby-brass)))
9620 (synopsis "Test framework utilizing literate programming techniques")
9622 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9623 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9624 Development} (BDD) utilizing Literate Programming techniques. QED sits
9625 somewhere between lower-level testing tools like @code{Test::Unit} and
9626 requirement specifications systems like Cucumber.")
9627 (home-page "https://rubyworks.github.io/qed")
9628 (license license:bsd-2)))
9630 (define-public ruby-que
9633 (version "1.0.0.beta3")
9637 (uri (rubygems-uri "que" version))
9640 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9641 (build-system ruby-build-system)
9643 '(#:tests? #f)) ; No included tests
9644 (synopsis "Job queue using PostgreSQL written in Ruby")
9646 "This package provides a job queue that uses PostgreSQL for storing jobs
9647 and locking between worker processes.")
9648 (home-page "https://github.com/chanks/que")
9649 (license license:expat)))
9651 (define-public ruby-ae
9658 ;; Fetch from github so tests are included.
9660 (url "https://github.com/rubyworks/ae")
9662 (file-name (git-file-name name version))
9665 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9666 (build-system ruby-build-system)
9669 (modify-phases %standard-phases
9671 (lambda _ (invoke "qed")))
9672 (add-before 'validate-runpath 'replace-broken-symlink
9673 (lambda* (#:key outputs #:allow-other-keys)
9674 (let* ((out (assoc-ref outputs "out"))
9675 (file (string-append
9676 out "/lib/ruby/vendor_ruby/gems/ae-"
9677 ,version "/lib/ae.yml")))
9678 ;; XXX: This symlink is broken since ruby 2.4.
9679 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9681 (symlink "../.index" file)
9684 `(("ruby-ansi" ,ruby-ansi)))
9686 `(("ruby-qed" ,ruby-qed)))
9687 (synopsis "Assertions library")
9689 "Assertive Expressive (AE) is an assertions library specifically designed
9690 for reuse by other test frameworks.")
9691 (home-page "https://rubyworks.github.io/ae/")
9692 (license license:bsd-2)))
9694 (define-public ruby-lemon
9701 (uri (rubygems-uri "lemon" version))
9704 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9705 (build-system ruby-build-system)
9708 (modify-phases %standard-phases
9709 (replace 'check (lambda _ (invoke "qed"))))))
9711 `(("ruby-ae" ,ruby-ae)
9712 ("ruby-ansi" ,ruby-ansi)
9713 ("ruby-rubytest" ,ruby-rubytest)))
9715 `(("ruby-qed" ,ruby-qed)))
9716 (synopsis "Test framework correlating code structure and test unit")
9718 "Lemon is a unit testing framework that enforces highly formal
9719 case-to-class and unit-to-method test construction. This enforcement can help
9720 focus concern on individual units of behavior.")
9721 (home-page "https://rubyworks.github.io/lemon")
9722 (license license:bsd-2)))
9724 (define-public ruby-rubytest-cli
9726 (name "ruby-rubytest-cli")
9731 (uri (rubygems-uri "rubytest-cli" version))
9734 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9735 (build-system ruby-build-system)
9737 `(#:tests? #f)) ; no tests
9739 `(("ruby-ansi" ,ruby-ansi)
9740 ("ruby-rubytest" ,ruby-rubytest)))
9741 (synopsis "Command-line interface for rubytest")
9743 "Rubytest CLI is a command-line interface for running tests for
9744 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9745 (home-page "https://rubyworks.github.io/rubytest-cli")
9746 (license license:bsd-2)))
9748 (define-public ruby-hashery
9750 (name "ruby-hashery")
9755 (uri (rubygems-uri "hashery" version))
9758 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9759 (build-system ruby-build-system)
9762 (modify-phases %standard-phases
9766 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9768 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9769 ("ruby-qed" ,ruby-qed)
9770 ("ruby-lemon" ,ruby-lemon)))
9771 (synopsis "Hash-like classes with extra features")
9773 "The Hashery is a tight collection of @code{Hash}-like classes.
9774 Included are the auto-sorting @code{Dictionary} class, the efficient
9775 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9776 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9777 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9778 standard @code{Hash} making it possible to subclass and augment to fit any
9779 specific use case.")
9780 (home-page "https://rubyworks.github.io/hashery")
9781 (license license:bsd-2)))
9783 (define-public ruby-rc4
9790 (uri (rubygems-uri "ruby-rc4" version))
9793 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9794 (build-system ruby-build-system)
9797 (modify-phases %standard-phases
9800 (invoke "rspec" "spec/rc4_spec.rb"))))))
9802 `(("ruby-rspec" ,ruby-rspec-2)))
9803 (synopsis "Implementation of the RC4 algorithm")
9805 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9806 (home-page "https://github.com/caiges/Ruby-RC4")
9807 (license license:expat)))
9809 (define-public ruby-afm
9816 (uri (rubygems-uri "afm" version))
9819 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9820 (build-system ruby-build-system)
9822 `(("bundler" ,bundler)))
9823 (synopsis "Read Adobe Font Metrics (afm) files")
9825 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9826 files and use the data therein.")
9827 (home-page "https://github.com/halfbyte/afm")
9828 (license license:expat)))
9830 (define-public ruby-ascii85
9832 (name "ruby-ascii85")
9837 (uri (rubygems-uri "Ascii85" version))
9840 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9841 (build-system ruby-build-system)
9843 `(("bundler" ,bundler)))
9844 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9846 "This library provides methods to encode and decode Ascii85
9847 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9848 @dfn{Portable Document Format} (PDF) file formats.")
9849 (home-page "https://github.com/datawraith/ascii85gem")
9850 (license license:expat)))
9852 (define-public ruby-ttfunk
9854 (name "ruby-ttfunk")
9859 ;; fetch from github as the gem does not contain testing code
9861 (url "https://github.com/prawnpdf/ttfunk")
9863 (file-name (git-file-name name version))
9866 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9867 (build-system ruby-build-system)
9869 `(#:test-target "spec"
9871 (modify-phases %standard-phases
9872 (add-before 'build 'remove-ssh
9874 ;; remove dependency on an ssh key pair that doesn't exist
9875 (substitute* "ttfunk.gemspec"
9876 (("spec.signing_key.*") ""))
9878 (add-before 'check 'remove-rubocop
9880 ;; remove rubocop as a dependency as not needed for testing
9881 (substitute* "ttfunk.gemspec"
9882 (("spec.add_development_dependency\\('rubocop'.*") ""))
9883 (substitute* "Rakefile"
9884 (("require 'rubocop/rake_task'") "")
9885 (("RuboCop::RakeTask.new") ""))
9888 `(("ruby-rspec" ,ruby-rspec)
9889 ("ruby-yard" ,ruby-yard)
9890 ("bundler" ,bundler)))
9891 (synopsis "Font metrics parser for the Prawn PDF generator")
9893 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9894 part of the Prawn PDF generator.")
9895 (home-page "https://github.com/prawnpdf/ttfunk")
9896 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9898 (license %prawn-project-licenses)))
9900 (define-public ruby-puma
9907 ;; Fetch from GitHub because distributed gem does not contain tests.
9909 (url "https://github.com/puma/puma")
9910 (commit (string-append "v" version))))
9911 (file-name (git-file-name name version))
9914 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9915 (build-system ruby-build-system)
9917 `(#:tests? #f ; Tests require an out-dated version of minitest.
9919 (modify-phases %standard-phases
9920 (add-before 'build 'fix-gemspec
9922 (substitute* "puma.gemspec"
9923 (("git ls-files") "find * |sort"))
9925 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9927 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9928 for Ruby/Rack applications. Puma is intended for use in both development and
9929 production environments. In order to get the best throughput, it is highly
9930 recommended that you use a Ruby implementation with real threads like Rubinius
9932 (home-page "https://puma.io/")
9933 (license license:expat)))
9935 (define-public ruby-hoe-git
9937 (name "ruby-hoe-git")
9942 (uri (rubygems-uri "hoe-git" version))
9945 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9946 (build-system ruby-build-system)
9948 `(("ruby-hoe" ,ruby-hoe)))
9949 (synopsis "Hoe plugins for tighter Git integration")
9951 "This package provides a set of Hoe plugins for tighter Git integration.
9952 It provides tasks to automate release tagging and pushing and changelog
9954 (home-page "https://github.com/jbarnette/hoe-git")
9955 (license license:expat)))
9957 (define-public ruby-sequel
9959 (name "ruby-sequel")
9964 (uri (rubygems-uri "sequel" version))
9967 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9968 (build-system ruby-build-system)
9970 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9971 (synopsis "Database toolkit for Ruby")
9972 (description "Sequel provides thread safety, connection pooling and a
9973 concise DSL for constructing SQL queries and table schemas. It includes a
9974 comprehensive ORM layer for mapping records to Ruby objects and handling
9975 associated records.")
9976 (home-page "https://sequel.jeremyevans.net")
9977 (license license:expat)))
9979 (define-public ruby-timecop
9981 (name "ruby-timecop")
9986 (uri (rubygems-uri "timecop" version))
9989 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9990 (build-system ruby-build-system)
9993 (modify-phases %standard-phases
9994 (add-before 'check 'set-check-rubylib
9996 ;; Set RUBYLIB so timecop tests finds its own lib.
9997 (setenv "RUBYLIB" "lib")
10000 `(("bundler" ,bundler)
10001 ("ruby-minitest-rg" ,ruby-minitest-rg)
10002 ("ruby-mocha" ,ruby-mocha)
10003 ("ruby-activesupport" ,ruby-activesupport)))
10004 (synopsis "Test mocks for time-dependent functions")
10006 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
10007 making it easier to test time-dependent code. It provides a unified method to
10008 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
10010 (home-page "https://github.com/travisjeffery/timecop")
10011 (license license:expat)))
10013 (define-public ruby-concurrent
10015 (name "ruby-concurrent")
10020 ;; Download from GitHub because the rubygems version does not contain
10022 (uri (git-reference
10023 (url "https://github.com/ruby-concurrency/concurrent-ruby")
10024 (commit (string-append "v" version))))
10025 (file-name (git-file-name name version))
10028 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
10029 (build-system ruby-build-system)
10031 `(#:test-target "ci"
10033 (modify-phases %standard-phases
10034 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
10036 ;; Delete extra gemspec files so 'first-gemspec' chooses the
10038 (delete-file "concurrent-ruby-edge.gemspec")
10039 (delete-file "concurrent-ruby-ext.gemspec")
10041 (replace 'replace-git-ls-files
10043 ;; XXX: The default substitution made by this phase is not fully
10044 ;; compatible with "git ls-files". The latter produces file names
10045 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
10046 ;; which gives "./lib/foo". That difference in turn breaks the
10047 ;; comparison against a glob pattern in this script.
10048 (substitute* "concurrent-ruby.gemspec"
10049 (("git ls-files") "find * -type f | sort"))
10051 (add-before 'build 'remove-jar-from-gemspec
10053 ;; The gemspec wants to include a JAR file that we do not build
10055 (substitute* "concurrent-ruby.gemspec"
10056 (("'lib/concurrent/concurrent_ruby.jar'")
10059 (add-before 'build 'remove-rake_compiler_dock-dependency
10061 ;; This library is only used when building for non-MRI targets.
10062 (substitute* "Rakefile"
10063 (("require 'rake_compiler_dock'")
10066 (add-before 'check 'remove-timecop-dependency
10067 ;; Remove timecop-dependent tests as having timecop as a depedency
10068 ;; causes circular depedencies.
10070 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
10071 (delete-file "spec/concurrent/scheduled_task_spec.rb")
10074 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10075 ("ruby-rspec" ,ruby-rspec)))
10076 (synopsis "Concurrency tools for Ruby")
10078 "This library provides modern concurrency tools including agents,
10079 futures, promises, thread pools, actors, supervisors, and more. It is
10080 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
10082 (home-page "http://www.concurrent-ruby.com")
10083 (license license:expat)))
10085 (define-public ruby-pkg-config
10087 (name "ruby-pkg-config")
10092 (uri (rubygems-uri "pkg-config" version))
10095 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
10096 (build-system ruby-build-system)
10098 ;; Tests require extra files not included in the gem.
10100 (synopsis "Detect libraries for compiling Ruby native extensions")
10102 "@code{pkg-config} can be used in your extconf.rb to properly detect need
10103 libraries for compiling Ruby native extensions.")
10104 (home-page "https://github.com/ruby-gnome2/pkg-config")
10105 (license license:lgpl2.0+)))
10107 (define-public ruby-net-http-digest-auth
10109 (name "ruby-net-http-digest-auth")
10114 (uri (rubygems-uri "net-http-digest_auth" version))
10117 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
10118 (build-system ruby-build-system)
10120 `(("ruby-hoe" ,ruby-hoe)))
10121 (synopsis "RFC 2617 HTTP digest authentication library")
10123 "This library implements HTTP's digest authentication scheme based on
10124 RFC 2617. This enables the use of the digest authentication scheme instead
10125 of the more insecure basic authentication scheme.")
10126 (home-page "https://github.com/drbrain/net-http-digest_auth")
10127 (license license:expat)))
10129 (define-public ruby-mail
10136 (uri (rubygems-uri "mail" version))
10139 "00wwz6ys0502dpk8xprwcqfwyf3hmnx6lgxaiq6vj43mkx43sapc"))))
10140 (build-system ruby-build-system)
10142 `(("ruby-mini-mime" ,ruby-mini-mime)))
10144 '(#:tests? #f)) ; no rakefile
10145 (synopsis "Mail library for Ruby")
10147 "Mail is an internet library for Ruby that is designed to handle email
10148 generation, parsing and sending. The purpose of this library is to provide
10149 a single point of access to handle all email functions, including sending
10150 and receiving emails. All network type actions are done through proxy
10151 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
10153 Mail has been designed with a very simple object oriented system that
10154 really opens up the email messages you are parsing, if you know what you
10155 are doing, you can fiddle with every last bit of your email directly.")
10156 (home-page "https://github.com/mikel/mail")
10157 (license license:expat)))
10159 (define-public ruby-mathn
10161 (name "ruby-mathn")
10166 (uri (rubygems-uri "mathn" version))
10169 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
10170 (build-system ruby-build-system)
10172 `(("bundler" ,bundler)
10173 ("ruby-rake-compiler" ,ruby-rake-compiler)))
10174 (synopsis "Extends math operations for increased precision")
10176 "This gem makes mathematical operations more precise in Ruby and
10177 integrates other mathematical standard libraries. Prior to Ruby 2.5,
10178 @code{mathn} was part of the Ruby standard library.")
10179 (home-page "https://github.com/ruby/mathn")
10180 (license license:bsd-2)))
10182 (define-public ruby-code-statistics
10184 (name "ruby-code-statistics")
10189 (uri (rubygems-uri "code_statistics" version))
10192 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
10193 (build-system ruby-build-system)
10195 `(#:tests? #f)) ; Not all test code is included in gem.
10196 (synopsis "Port of the rails 'rake stats' method")
10198 "This gem is a port of the rails 'rake stats' method so it can be made
10199 more robust and work for non rails projects.")
10200 (home-page "https://github.com/danmayer/code_statistics")
10201 (license license:expat)))
10203 (define-public ruby-rubypants
10205 (name "ruby-rubypants")
10209 (uri (rubygems-uri "rubypants" version))
10212 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
10213 (build-system ruby-build-system)
10215 '(#:tests? #f)) ; need Codecov
10216 (synopsis "Port of the smart-quotes library SmartyPants")
10218 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
10219 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
10220 and BBEdit that easily translates plain ASCII punctuation characters into
10221 smart typographic punctuation HTML entities.")
10222 (home-page "https://github.com/jmcnevin/rubypants")
10223 (license license:bsd-2)))
10225 (define-public ruby-org-ruby
10227 (name "ruby-org-ruby")
10231 (uri (rubygems-uri "org-ruby" version))
10234 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
10235 (build-system ruby-build-system)
10237 '(#:tests? #f)) ; no rakefile
10239 `(("ruby-rubypants" ,ruby-rubypants)))
10240 (synopsis "Org-mode parser written in Ruby")
10242 "Org-ruby is an org-mode parser written in Ruby. The most significant
10243 thing this library does today is convert org-mode files to HTML or Textile or
10245 (home-page "https://github.com/wallyqs/org-ruby")
10246 (license license:expat)))
10248 (define-public ruby-rake
10255 (uri (rubygems-uri "rake" version))
10258 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
10259 (build-system ruby-build-system)
10261 `(("bundler" ,bundler)))
10262 (synopsis "Rake is a Make-like program implemented in Ruby")
10264 "Rake is a Make-like program where tasks and dependencies are specified
10265 in standard Ruby syntax.")
10266 (home-page "https://github.com/ruby/rake")
10267 (license license:expat)))
10269 (define-public ruby-childprocess
10271 (name "ruby-childprocess")
10276 (uri (rubygems-uri "childprocess" version))
10279 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
10280 (build-system ruby-build-system)
10284 `(("bundler" ,bundler)
10285 ("ruby-rspec" ,ruby-rspec)))
10287 `(("ruby-ffi" ,ruby-ffi)))
10288 (synopsis "Control external programs running in the background, in Ruby")
10289 (description "@code{childprocess} provides a gem to control external
10290 programs running in the background, in Ruby.")
10291 (home-page "https://github.com/enkessler/childprocess")
10292 (license license:expat)))
10294 (define-public ruby-public-suffix
10296 (name "ruby-public-suffix")
10300 (uri (rubygems-uri "public_suffix" version))
10303 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
10304 (build-system ruby-build-system)
10307 (modify-phases %standard-phases
10308 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
10309 ;; including it as an input can lead to circular dependencies.
10310 (add-after 'unpack 'remove-rubocop-from-Rakefile
10312 (substitute* "Rakefile"
10313 (("require \"rubocop/rake\\_task\"") "")
10314 (("RuboCop::RakeTask\\.new") ""))
10317 `(("bundler" ,bundler)
10318 ("ruby-yard" ,ruby-yard)
10319 ("ruby-mocha" ,ruby-mocha)
10320 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
10321 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
10322 (synopsis "Domain name parser")
10323 (description "The gem @code{public_suffix} is a domain name parser,
10324 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
10325 is one under which Internet users can (or historically could) directly
10326 register names. Some examples of public suffixes are @code{.com},
10327 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
10328 all known public suffixes.")
10329 (license license:expat)))
10331 (define-public ruby-addressable
10333 (name "ruby-addressable")
10337 (uri (rubygems-uri "addressable" version))
10340 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
10341 (build-system ruby-build-system)
10343 '(#:test-target "spec"
10345 (modify-phases %standard-phases
10346 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
10348 (substitute* "Gemfile"
10349 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
10350 ((".*launchy.*") "")
10351 ((".*rake.*") "gem 'rake'\n")
10352 ((".*redcarpet.*") ""))
10354 (add-before 'check 'delete-network-dependent-test
10356 (delete-file "spec/addressable/net_http_compat_spec.rb")
10359 `(("ruby-rspec" ,ruby-rspec)
10360 ("bundler" ,bundler)
10361 ("ruby-idn-ruby" ,ruby-idn-ruby)
10362 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
10363 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
10364 ("ruby-yard" ,ruby-yard)
10365 ("ruby-simplecov" ,ruby-simplecov)))
10367 `(("ruby-public-suffix" ,ruby-public-suffix)))
10368 (home-page "https://github.com/sporkmonger/addressable")
10369 (synopsis "Alternative URI implementation")
10370 (description "Addressable is a replacement for the URI implementation that
10371 is part of Ruby's standard library. It more closely conforms to RFC 3986,
10372 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10373 (license license:asl2.0)))
10375 (define-public ruby-colorize
10377 (name "ruby-colorize")
10381 (uri (rubygems-uri "colorize" version))
10384 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10385 (build-system ruby-build-system)
10387 '(#:phases (modify-phases %standard-phases
10388 (add-before 'check 'remove-codeclimate-dependency
10390 (substitute* "test/test_colorize.rb"
10391 ;; Do not hook the tests into the online CodeClimate
10392 ;; service which is unnecessary for these tests.
10393 (("require 'codeclimate-test-reporter'")
10395 (("CodeClimate.*") ""))
10397 (synopsis "Add color effects to the @code{String} class")
10399 "This package extends the @code{String} class and adds a
10400 @code{ColorizedString} with methods to set text color, background color,
10401 and text effects.")
10402 (home-page "https://github.com/fazibear/colorize")
10403 (license license:gpl2+)))
10405 (define-public ruby-colorator
10407 (name "ruby-colorator")
10411 (uri (rubygems-uri "colorator" version))
10414 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10415 (build-system ruby-build-system)
10419 (home-page "http://octopress.org/colorator/")
10420 (synopsis "Terminal color library")
10421 (description "Colorator is a Ruby gem that helps you colorize your text
10422 for the terminal.")
10423 (license license:expat)))
10425 (define-public ruby-command-line-reporter
10427 (name "ruby-command-line-reporter")
10431 (uri (rubygems-uri "command_line_reporter" version))
10434 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10435 (build-system ruby-build-system)
10440 (modify-phases %standard-phases
10441 (add-before 'build 'fix-dependencies
10443 (substitute* ".gemspec"
10444 ;; colored is unmaintained
10445 (("colored") "colorator")
10446 ;; colorator version
10447 (("= 1.2") "= 1.1"))
10449 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10450 (home-page "https://github.com/wbailey/command_line_reporter")
10451 (synopsis "Report production while executing Ruby scripts")
10452 (description "This gem provides a DSL that makes it easy to write reports
10453 of various types in ruby. It eliminates the need to litter your source with
10454 puts statements, instead providing a more readable, expressive interface to
10455 your application.")
10456 (license license:asl2.0)))
10458 (define-public ruby-command-line-reporter-3
10460 (inherit ruby-command-line-reporter)
10464 (uri (rubygems-uri "command_line_reporter" version))
10467 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10469 (define-public ruby-kpeg
10476 (uri (rubygems-uri "kpeg" version))
10479 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10480 (build-system ruby-build-system)
10482 `(("ruby-hoe" ,ruby-hoe)))
10483 (synopsis "PEG library for Ruby")
10484 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10485 well as native grammar to build the grammar. KPeg supports direct left
10486 recursion of rules via the
10487 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10489 (home-page "https://github.com/evanphx/kpeg")
10490 (license license:expat)))
10492 (define-public ruby-rdoc
10499 (uri (git-reference
10500 (url "https://github.com/ruby/rdoc")
10501 (commit (string-append "v" version))))
10502 (file-name (git-file-name name version))
10505 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10506 (build-system ruby-build-system)
10509 (modify-phases %standard-phases
10510 (add-after 'unpack 'patch-gemspec
10511 ;; TODO: Remove after next release is tagged.
10513 (substitute* "rdoc.gemspec"
10514 (("\"lib/rdoc/generator/template/darkfish/js/\
10515 jquery\\.js\", ") ""))
10517 (add-before 'build 'generate
10518 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10519 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10521 (invoke "rake" "generate"))))))
10523 `(("bundler" ,bundler)
10524 ("ruby-kpeg" ,ruby-kpeg)
10525 ("ruby-racc" ,ruby-racc)
10526 ("ruby-rubocop" ,ruby-rubocop)))
10527 (home-page "https://ruby.github.io/rdoc/")
10528 (synopsis "HTML and command-line documentation utility")
10529 (description "RDoc produces HTML and command-line documentation for Ruby
10530 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10531 documentation from the command-line.")
10532 (license license:gpl2+)))
10534 (define-public ruby-sass-listen
10536 (name "ruby-sass-listen")
10540 (uri (rubygems-uri "sass-listen" version))
10543 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10544 (build-system ruby-build-system)
10549 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10550 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10551 (home-page "https://github.com/sass/listen")
10552 (synopsis "File modification notification library")
10553 (description "The Listen gem listens to file modifications and notifies you
10554 about the changes.")
10555 (license license:expat)))
10557 (define-public ruby-terminfo
10559 (name "ruby-terminfo")
10564 (uri (rubygems-uri "ruby-terminfo" version))
10567 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10568 (build-system ruby-build-system)
10570 `(#:test-target "test"
10571 ;; Rakefile requires old packages and would need modification to
10572 ;; work with current software.
10575 `(("ncurses" ,ncurses)))
10577 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10578 ("ruby-rdoc" ,ruby-rdoc)))
10579 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10580 (synopsis "Terminfo binding for Ruby")
10581 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10582 (license license:bsd-3)))
10584 (define-public ruby-diffy
10586 (name "ruby-diffy")
10591 (uri (rubygems-uri "diffy" version))
10594 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10595 (build-system ruby-build-system)
10600 `(("ruby-rspec" ,ruby-rspec)))
10601 (home-page "https://github.com/samg/diffy")
10602 (synopsis "Convenient diffing in ruby")
10603 (description "Diffy provides a convenient way to generate a diff from two
10604 strings or files.")
10605 (license license:expat)))
10607 (define-public ruby-sass-spec
10609 (name "ruby-sass-spec")
10614 (uri (git-reference
10615 (url "https://github.com/sass/sass-spec")
10616 (commit (string-append "v" version))))
10617 (file-name (git-file-name name version))
10619 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10620 (build-system ruby-build-system)
10622 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10623 ("ruby-diffy" ,ruby-diffy)
10624 ("ruby-terminfo" ,ruby-terminfo)))
10626 `(;; This package contains tests for a sass implementation, and the to
10627 ;; avoid any circular dependencies, the tests are not run here
10630 (modify-phases %standard-phases
10631 (add-after 'unpack 'patch-test
10633 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10634 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10635 (("string") "color")))))))
10636 (home-page "https://github.com/sass/sass-spec")
10637 (synopsis "Test suite for Sass")
10638 (description "Sass Spec is a test suite for Sass. Test cases are all in
10639 the @file{spec} directory.")
10640 (license license:expat)))
10642 (define-public ruby-sass
10648 (uri (rubygems-uri "sass" version))
10651 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10652 (build-system ruby-build-system)
10654 `(("ruby-sass-listen" ,ruby-sass-listen)))
10656 `(("ruby-sass-spec" ,ruby-sass-spec)
10657 ("ruby-mathn" ,ruby-mathn)))
10658 (home-page "https://sass-lang.com/")
10659 (synopsis "CSS extension language")
10660 (description "Sass is a CSS extension language. It extends CSS with
10661 features that don't exist yet like variables, nesting, mixins and inheritance.")
10662 (license license:expat)))
10664 (define-public ruby-sassc
10666 (name "ruby-sassc")
10671 (uri (rubygems-uri "sassc" version))
10674 "0gpqv48xhl8mb8qqhcifcp0pixn206a7imc07g48armklfqa4q2c"))))
10675 (build-system ruby-build-system)
10677 '(#:modules ((guix build ruby-build-system)
10679 (ice-9 textual-ports))
10681 (modify-phases %standard-phases
10682 ;; TODO: This would be better as a snippet, but the ruby-build-system
10683 ;; doesn't seem to support that
10684 (add-after 'unpack 'remove-libsass
10686 (delete-file-recursively "ext")
10687 (with-atomic-file-replacement "sassc.gemspec"
10689 (let* ((gemspec (get-string-all in))
10690 (index (string-contains gemspec "libsass_dir")))
10691 (display (string-append
10692 (string-take gemspec index)
10696 (add-after 'unpack 'dont-check-the-libsass-version
10698 (substitute* "test/native_test.rb"
10699 (("assert_equal.*Native\\.version") ""))
10701 (add-after 'unpack 'remove-git-from-gemspec
10703 (substitute* "sassc.gemspec"
10704 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10706 (add-after 'unpack 'remove-extensions-from-gemspec
10708 (substitute* "sassc.gemspec"
10709 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10711 (add-after 'unpack 'fix-Rakefile
10713 (substitute* "Rakefile"
10714 (("test: 'compile:libsass'") ":test"))
10716 (add-after 'unpack 'remove-unnecessary-dependencies
10718 (substitute* "test/test_helper.rb"
10719 (("require \"pry\"") ""))
10721 (add-before 'build 'patch-native.rb
10722 (lambda* (#:key inputs #:allow-other-keys)
10723 (substitute* "lib/sassc/native.rb"
10724 ((".*gem_root = spec.gem_dir") "")
10727 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10729 ;; The gemspec still references the libsass files, so just keep the
10731 (delete 'extract-gemspec))))
10733 `(("ruby-ffi" ,ruby-ffi)
10734 ("ruby-rake" ,ruby-rake)))
10736 `(("libsass" ,libsass)))
10738 `(("bundler" ,bundler)
10739 ("ruby-rake-compiler" ,ruby-rake-compiler)
10740 ("ruby-minitest-around" ,ruby-minitest-around)
10741 ("ruby-test-construct" ,ruby-test-construct)))
10742 (synopsis "Use libsss from Ruby")
10744 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10745 bindings to the libsass library. This enables rendering
10746 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10747 (home-page "https://github.com/sass/sassc-ruby")
10748 (license license:expat)))
10750 (define-public ruby-jekyll-sass-converter
10752 (name "ruby-jekyll-sass-converter")
10756 (uri (rubygems-uri "jekyll-sass-converter" version))
10759 "04ncr44wrilz26ayqwlg7379yjnkb29mvx4j04i62b7czmdrc9dv"))))
10760 (build-system ruby-build-system)
10762 `(("ruby-sass" ,ruby-sass)))
10766 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10767 (synopsis "Sass converter for Jekyll")
10768 (description "This gem provide built-in support for the Sass converter
10770 (license license:expat)))
10772 (define-public ruby-jekyll-watch
10774 (name "ruby-jekyll-watch")
10778 (uri (rubygems-uri "jekyll-watch" version))
10781 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10782 (build-system ruby-build-system)
10784 `(("ruby-listen" ,ruby-listen)))
10788 (home-page "https://github.com/jekyll/jekyll-watch")
10789 (synopsis "Jekyll auto-rebuild support")
10790 (description "This gems add the @code{--watch} switch to the jekyll CLI
10791 interface. It allows Jekyll to rebuild your site when a file changes.")
10792 (license license:expat)))
10794 (define-public ruby-parallel
10796 (name "ruby-parallel")
10801 (uri (git-reference
10802 (url "https://github.com/grosser/parallel")
10803 (commit (string-append "v" version))))
10804 (file-name (git-file-name name version))
10807 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10808 (build-system ruby-build-system)
10810 `(;; TODO 3 test failures
10811 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10812 ;; open unnecessary pipes
10813 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10814 ;; SQLite in processes
10815 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10816 ;; SQLite in threads
10818 #:test-target "rspec-rerun:spec"
10820 (modify-phases %standard-phases
10821 (add-after 'unpack 'patch-Gemfile
10823 (substitute* "Gemfile"
10824 (("gem 'rspec-legacy_formatters'") "")
10825 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10826 (add-before 'check 'delete-Gemfile.lock
10828 ;; Bundler isn't being used for fetching dependendencies, so
10829 ;; delete the Gemfile.lock
10830 (delete-file "Gemfile.lock")
10832 (add-before 'build 'patch-gemspec
10834 (substitute* "parallel.gemspec"
10835 (("git ls-files") "find"))
10838 `(("ruby-rspec" ,ruby-rspec)
10839 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10840 ("bundler" ,bundler)
10841 ("ruby-activerecord" ,ruby-activerecord)
10842 ("ruby-progressbar" ,ruby-progressbar)
10843 ("ruby-bump" ,ruby-bump)
10846 ("ruby-mysql2" ,ruby-mysql2)
10847 ("ruby-sqlite3" ,ruby-sqlite3)
10848 ("ruby-i18n" ,ruby-i18n)))
10849 (home-page "https://github.com/grosser/parallel")
10850 (synopsis "Parallel processing in Ruby")
10851 (description "Parallel allows you to run any code in parallel Processes
10852 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10853 suited for map-reduce or e.g. parallel downloads/uploads.")
10854 (license license:expat)))
10856 (define-public ruby-cane
10862 (uri (rubygems-uri "cane" version))
10865 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10866 (build-system ruby-build-system)
10867 (arguments `(#:tests? #f)); No rakefile
10868 (home-page "https://github.com/square/cane")
10870 `(("ruby-parallel" ,ruby-parallel)))
10871 (synopsis "Code quality threshold checking")
10872 (description "Cane fails your build if code quality thresholds are not met.")
10873 (license license:asl2.0)))
10875 (define-public ruby-morecane
10877 (name "ruby-morecane")
10881 (uri (rubygems-uri "morecane" version))
10884 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10885 (build-system ruby-build-system)
10886 (home-page "https://github.com/yob/morecane")
10887 (arguments `(#:tests? #f)); No rakefile
10889 `(("ruby-parallel" ,ruby-parallel)))
10890 (synopsis "Extra checks for cane")
10891 (description "The cane gem provides a great framework for running quality
10892 checks over your ruby project as part of continuous integration build. It
10893 comes with a few checks out of the box, but also provides an API for loading
10894 custom checks. This gem provides a set of additional checks.")
10895 (license license:expat)))
10897 (define-public ruby-pdf-reader
10899 (name "ruby-pdf-reader")
10902 (method git-fetch) ;no test in distributed gem archive
10903 (uri (git-reference
10904 (url "https://github.com/yob/pdf-reader")
10905 (commit (string-append "v" version))))
10906 (file-name (git-file-name name version))
10909 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10910 (build-system ruby-build-system)
10911 (arguments `(#:test-target "spec"
10912 #:phases (modify-phases %standard-phases
10913 (add-after 'unpack 'do-not-use-bundler
10915 (substitute* "spec/spec_helper.rb"
10916 ((".*[Bb]undler.*") ""))
10919 `(("ruby-rspec" ,ruby-rspec)
10920 ("ruby-cane" ,ruby-cane)
10921 ("ruby-morecane" ,ruby-morecane)))
10923 `(("ruby-afm" ,ruby-afm)
10924 ("ruby-ascii85" ,ruby-ascii85)
10925 ("ruby-hashery" ,ruby-hashery)
10926 ("ruby-rc4" ,ruby-rc4)
10927 ("ruby-ttfunk" ,ruby-ttfunk)))
10928 (home-page "https://github.com/yob/pdf-reader")
10929 (synopsis "PDF parser in Ruby")
10930 (description "The PDF::Reader library implements a PDF parser conforming as
10931 much as possible to the PDF specification from Adobe. It provides programmatic
10932 access to the contents of a PDF file with a high degree of flexibility.")
10933 (license license:gpl3+)))
10935 (define-public ruby-pdf-inspector
10936 (let ((revision "1")
10937 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10939 (name "ruby-pdf-inspector")
10940 (version (git-version "1.3.0" revision commit))
10943 (uri (git-reference
10944 (url "https://github.com/prawnpdf/pdf-inspector")
10946 (file-name (git-file-name name version))
10949 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10950 (build-system ruby-build-system)
10952 `(#:test-target "spec"
10953 #:phases (modify-phases %standard-phases
10954 (add-before 'build 'drop-signing-key-requirement
10956 (substitute* "pdf-inspector.gemspec"
10957 (("spec.signing_key =.*")
10958 "spec.signing_key = nil"))
10962 (substitute* "pdf-inspector.gemspec"
10963 ((".*rubocop.*") "")
10965 (invoke "rspec"))))))
10967 `(("ruby-rspec" ,ruby-rspec)))
10969 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10970 (home-page "https://github.com/prawnpdf/pdf-inspector")
10971 (synopsis "Analysis classes for inspecting PDF output")
10972 (description "This library provides a number of PDF::Reader based tools for
10973 use in testing PDF output. Presently, the primary purpose of this tool is to
10974 support the tests found in Prawn, a pure Ruby PDF generation library.")
10975 (license %prawn-project-licenses))))
10977 (define-public ruby-pdf-core
10979 (name "ruby-pdf-core")
10983 (uri (rubygems-uri "pdf-core" version))
10986 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10987 (build-system ruby-build-system)
10991 (home-page "https://github.com/prawnpdf/pdf-core")
10992 (synopsis "Low level PDF features for Prawn")
10993 (description "This is an experimental gem that extracts low-level PDF
10994 functionality from Prawn.")
10995 (license license:gpl3+)))
10997 (define-public ruby-prawn
10998 ;; There hasn't been a new release since 2017/03/17.
10999 (let ((revision "1")
11000 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
11002 (name "ruby-prawn")
11003 (version (git-version "2.2.2" revision commit))
11006 (uri (git-reference
11007 (url "https://github.com/prawnpdf/prawn")
11009 (file-name (git-file-name name version))
11012 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
11013 (build-system ruby-build-system)
11016 (modify-phases %standard-phases
11017 (add-before 'build 'drop-signing-key-requirement
11019 (substitute* "prawn.gemspec"
11020 (("spec.signing_key =.*")
11021 "spec.signing_key = nil"))
11024 (lambda* (#:key tests? #:allow-other-keys)
11026 ;; The Prawn manual test fails (see:
11027 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
11029 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
11032 `(("ruby-pdf-core" ,ruby-pdf-core)
11033 ("ruby-ttfunk" ,ruby-ttfunk)))
11035 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
11036 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
11037 ("ruby-rspec" ,ruby-rspec)
11038 ("ruby-simplecov" ,ruby-simplecov)
11039 ("ruby-yard" ,ruby-yard)))
11040 (home-page "https://prawnpdf.org/api-docs/2.0/")
11041 (synopsis "PDF generation for Ruby")
11042 (description "Prawn is a pure Ruby PDF generation library.")
11043 (license %prawn-project-licenses))))
11045 (define-public ruby-prawn-table
11047 (name "ruby-prawn-table")
11051 (uri (rubygems-uri "prawn-table" version))
11054 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
11055 (build-system ruby-build-system)
11057 `(("ruby-prawn" ,ruby-prawn)
11058 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
11060 `(("bundler" ,bundler)
11061 ("ruby-yard" ,ruby-yard)
11062 ("ruby-mocha" ,ruby-mocha)
11063 ("ruby-coderay" ,ruby-coderay)
11064 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
11065 ("ruby-simplecov" ,ruby-simplecov)
11066 ("ruby-rspec-2" ,ruby-rspec-2)))
11068 '(;; TODO: 1 test fails
11069 ;; Failure/Error: pdf.page_count.should == 1
11071 ;; got: 2 (using ==)
11072 ;; # ./spec/table_spec.rb:1308
11074 ;; 225 examples, 1 failure
11077 (modify-phases %standard-phases
11078 (add-before 'check 'patch-gemspec
11080 (substitute* "prawn-table.gemspec"
11081 ;; Loosen the requirement for pdf-inspector
11082 (("~> 1\\.1\\.0") ">= 0")
11083 ;; Loosen the requirement for pdf-reader
11084 (("~> 1\\.2") ">= 0"))))
11086 (lambda* (#:key tests? #:allow-other-keys)
11090 (home-page "https://github.com/prawnpdf/prawn-table")
11091 (synopsis "Tables support for Prawn")
11092 (description "This gem provides tables support for Prawn.")
11093 (license license:gpl3+)))
11095 (define-public ruby-kramdown
11097 (name "ruby-kramdown")
11101 (uri (rubygems-uri "kramdown" version))
11104 "0jdbcjv4v7sj888bv3vc6d1dg4ackkh7ywlmn9ln2g9alk7kisar"))))
11105 (build-system ruby-build-system)
11106 (arguments `(#:tests? #f)); FIXME: some test failures
11108 `(("ruby-prawn" ,ruby-prawn)
11109 ("ruby-prawn-table" ,ruby-prawn-table)))
11110 (home-page "https://kramdown.gettalong.org/")
11111 (synopsis "Markdown parsing and converting library")
11112 (description "Kramdown is a library for parsing and converting a superset
11113 of Markdown. It is completely written in Ruby, supports standard Markdown
11114 (with some minor modifications) and various extensions that have been made
11115 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
11116 (license license:expat)))
11118 (define-public ruby-kramdown-parser-gfm
11120 (name "ruby-kramdown-parser-gfm")
11125 (uri (rubygems-uri "kramdown-parser-gfm" version))
11127 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
11128 (build-system ruby-build-system)
11130 `(#:tests? #f)) ;no rakefile
11132 `(("ruby-kramdown" ,ruby-kramdown)))
11133 (synopsis "Kramdown parser for the GFM dialect of Markdown")
11135 "This is a parser for kramdown that converts Markdown documents in the
11136 GFM dialect to HTML.")
11137 (home-page "https://github.com/kramdown/parser-gfm")
11138 (license license:expat)))
11140 (define-public ruby-http-parser.rb
11142 (name "ruby-http-parser.rb")
11147 (uri (rubygems-uri "http_parser.rb" version))
11150 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
11151 (build-system ruby-build-system)
11156 `(("ruby-rake-compiler" ,ruby-rake-compiler)
11157 ("ruby-rspec" ,ruby-rspec)))
11158 (home-page "https://github.com/tmm1/http_parser.rb")
11159 (synopsis "HTTP parser un Ruby")
11160 (description "This gem is a simple callback-based HTTP request/response
11161 parser for writing http servers, clients and proxies.")
11162 (license license:expat)))
11164 (define-public ruby-em-websocket
11166 (name "ruby-em-websocket")
11171 (uri (rubygems-uri "em-websocket" version))
11174 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
11175 (build-system ruby-build-system)
11180 `(("ruby-eventmachine" ,ruby-eventmachine)
11181 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
11183 `(("bundler" ,bundler)
11184 ("ruby-rspec" ,ruby-rspec)))
11185 (home-page "https://github.com/igrigorik/em-websocket")
11186 (synopsis "EventMachine based WebSocket server")
11187 (description "Em-websocket is an EventMachine based WebSocket server
11189 (license license:expat)))
11191 (define-public ruby-rouge
11193 (name "ruby-rouge")
11197 (uri (rubygems-uri "rouge" version))
11200 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
11201 (build-system ruby-build-system)
11202 (arguments `(#:tests? #f)); No rakefile
11203 (home-page "http://rouge.jneen.net/")
11204 (synopsis "Code highlighter")
11205 (description "Rouge is a code highlighter written in Ruby. It supports more
11206 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
11207 is compatible with stylesheets designed for pygments.")
11209 ;; rouge is licensed under expat
11211 ;; pygments is licensed under bsd-2
11214 (define-public ruby-hashie
11216 (name "ruby-hashie")
11220 (uri (rubygems-uri "hashie" version))
11223 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
11224 (build-system ruby-build-system)
11226 `(("bundler" ,bundler)))
11227 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
11228 (home-page "https://github.com/intridea/hashie")
11229 (synopsis "Extensions to Ruby Hashes")
11230 (description "Hashie is a collection of classes and mixins that make Ruby
11231 hashes more powerful.")
11232 (license license:expat)))
11234 (define-public ruby-heredoc-unindent
11236 (name "ruby-heredoc-unindent")
11240 (uri (rubygems-uri "heredoc_unindent" version))
11243 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
11244 (build-system ruby-build-system)
11246 `(("ruby-hoe" ,ruby-hoe)))
11247 (home-page "https://github.com/adrianomitre/heredoc_unindent")
11248 (synopsis "Heredoc indentation cleaner")
11249 (description "This gem removes common margin from indented strings, such
11250 as the ones produced by indented heredocs. In other words, it strips out
11251 leading whitespace chars at the beginning of each line, but only as much as
11252 the line with the smallest margin.
11254 It is acknowledged that many strings defined by heredocs are just code and
11255 fact is that most parsers are insensitive to indentation. If, however, the
11256 strings are to be used otherwise, be it for printing or testing, the extra
11257 indentation will probably be an issue and hence this gem.")
11258 (license license:expat)))
11260 (define-public ruby-safe-yaml
11262 (name "ruby-safe-yaml")
11267 (uri (git-reference
11268 (url "https://github.com/dtao/safe_yaml")
11270 (file-name (git-file-name name version))
11273 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
11274 (build-system ruby-build-system)
11276 `(("ruby-rspec" ,ruby-rspec)
11277 ("ruby-hashie" ,ruby-hashie)
11278 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
11280 '(#:test-target "spec"
11282 (modify-phases %standard-phases
11283 (add-before 'check 'set-TZ
11285 ;; This test is dependent on the timezone
11286 ;; spec/transform/to_date_spec.rb:35
11287 ;; # SafeYAML::Transform::ToDate converts times to the local
11289 (setenv "TZ" "UTC-11")
11291 (home-page "https://github.com/dtao/safe_yaml")
11292 (synopsis "YAML parser")
11293 (description "The SafeYAML gem provides an alternative implementation of
11294 YAML.load suitable for accepting user input in Ruby applications.")
11295 (license license:expat)))
11297 (define-public ruby-mercenary
11299 (name "ruby-mercenary")
11303 (uri (rubygems-uri "mercenary" version))
11306 "0f2i827w4lmsizrxixsrv2ssa3gk1b7lmqh8brk8ijmdb551wnmj"))))
11307 (build-system ruby-build-system)
11308 (arguments `(#:test-target "spec"))
11310 `(("bundler" ,bundler)))
11311 (home-page "https://github.com/jekyll/mercenary")
11312 (synopsis "Command-line apps library in Ruby")
11313 (description "Mercenary is a lightweight and flexible library for writing
11314 command-line apps in Ruby.")
11315 (license license:expat)))
11317 (define-public ruby-liquid
11319 (name "ruby-liquid")
11323 (uri (rubygems-uri "liquid" version))
11326 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
11327 (build-system ruby-build-system)
11328 (arguments `(#:tests? #f)); No rakefile
11329 (home-page "https://shopify.github.io/liquid/")
11330 (synopsis "Template language")
11331 (description "Liquid is a template language written in Ruby. It is used
11332 to load dynamic content on storefronts.")
11333 (license license:expat)))
11335 (define-public ruby-forwardable-extended
11337 (name "ruby-forwardable-extended")
11341 (uri (rubygems-uri "forwardable-extended" version))
11344 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
11345 (build-system ruby-build-system)
11346 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
11347 (home-page "https://github.com/envygeeks/forwardable-extended")
11348 (synopsis "Delegation to hashes and instance variables in Forwardable")
11349 (description "Forwardable Extended provides more @code{Forwardable}
11350 methods for your source as @code{Forwardable::Extended}.")
11351 (license license:expat)))
11353 (define-public ruby-pathutil
11355 (name "ruby-pathutil")
11359 (uri (rubygems-uri "pathutil" version))
11362 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11363 (build-system ruby-build-system)
11365 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11367 `(("bundler" ,bundler)
11368 ("ruby-rspec" ,ruby-rspec)))
11369 ;; Fails with: cannot load such file --
11370 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11371 (arguments `(#:tests? #f))
11372 (home-page "https://github.com/envygeeks/pathutil")
11373 (synopsis "Extended implementation of Pathname")
11374 (description "Pathutil tries to be a faster pure Ruby implementation of
11376 (license license:expat)))
11378 (define-public ruby-terminal-table
11380 (name "ruby-terminal-table")
11385 (uri (rubygems-uri "terminal-table" version))
11388 "18rbrh464ysqbdv53iwj0r8frshn65566kyj044cp3x9c2754jwh"))))
11391 (modify-phases %standard-phases
11392 (add-before 'check 'remove-gemfile-lock
11394 (delete-file "Gemfile.lock")))
11395 (add-before 'check 'remove-unnecessary-dependencies
11397 (substitute* "terminal-table.gemspec"
11398 (("s.add_runtime_dependency.*") "\n")
11399 (("s.add_development_dependency.*") "\n"))
11400 (substitute* "Gemfile"
11401 ((".*tins.*") "\n"))))
11403 (lambda* (#:key tests? #:allow-other-keys)
11405 (invoke "rspec")))))))
11406 (build-system ruby-build-system)
11408 `(("ruby-unicode-display-width" ,ruby-unicode-display-width)))
11410 `(("ruby-rspec" ,ruby-rspec)))
11411 (home-page "https://github.com/tj/terminal-table")
11412 (synopsis "Simple, feature rich ASCII table generation library")
11414 "Terminal Table is a fast and simple, yet feature rich
11415 table generator written in Ruby. It supports ASCII and
11416 Unicode formatted tables.")
11417 (license license:expat)))
11419 (define-public jekyll
11425 (uri (rubygems-uri "jekyll" version))
11428 "0cqkh78jw8scrajyx5nla0vwm9fvp2qql3kdcvvplcq9mazy8snq"))))
11429 (build-system ruby-build-system)
11431 ;; No rakefile, but a test subdirectory.
11434 (modify-phases %standard-phases
11435 (add-before 'build 'fix-i18n
11437 (substitute* ".gemspec"
11438 (("~> 0.7") ">= 0.7")
11439 (("~> 1.14") ">= 1.14"))
11442 `(("ruby-addressable" ,ruby-addressable)
11443 ("ruby-colorator" ,ruby-colorator)
11444 ("ruby-em-websocket" ,ruby-em-websocket)
11445 ("ruby-i18n" ,ruby-i18n)
11446 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11447 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11448 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11449 ("ruby-liquid" ,ruby-liquid)
11450 ("ruby-mercenary" ,ruby-mercenary)
11451 ("ruby-pathutil" ,ruby-pathutil)
11452 ("ruby-rouge" ,ruby-rouge)
11453 ("ruby-safe-yaml" ,ruby-safe-yaml)
11454 ("ruby-sassc" ,ruby-sassc)
11455 ("ruby-terminal-table" ,ruby-terminal-table)))
11456 (home-page "https://jekyllrb.com/")
11457 (synopsis "Static site generator")
11458 (description "Jekyll is a simple, blog aware, static site generator.")
11459 (license license:expat)))
11461 (define-public ruby-jekyll-paginate-v2
11463 (name "ruby-jekyll-paginate-v2")
11467 (uri (rubygems-uri "jekyll-paginate-v2" version))
11470 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11471 (build-system ruby-build-system)
11473 `(("jekyll" ,jekyll)))
11474 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11475 (synopsis "Pagination Generator for Jekyll 3")
11476 (description "The Pagination Generator forms the core of the pagination
11477 logic in Jekyll. It calculates and generates the pagination pages.")
11478 (license license:expat)))
11480 (define-public ruby-faraday
11482 (name "ruby-faraday")
11487 (uri (rubygems-uri "faraday" version))
11490 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11491 (build-system ruby-build-system)
11495 `(("ruby-multipart-post" ,ruby-multipart-post)))
11496 (synopsis "Ruby HTTP/REST API client library")
11498 "Faraday is a HTTP/REST API client library which provides a common
11499 interface over different adapters.")
11500 (home-page "https://github.com/lostisland/faraday")
11501 (license license:expat)))
11503 (define-public ruby-nio4r
11505 (name "ruby-nio4r")
11510 (uri (rubygems-uri "nio4r" version))
11513 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11514 (build-system ruby-build-system)
11517 (modify-phases %standard-phases
11518 (add-after 'unpack 'remove-unnecessary-dependencies
11520 (substitute* "spec/spec_helper.rb"
11521 ;; Coveralls is for uploading test coverage information to an
11522 ;; online service, and thus unnecessary for building the Guix
11524 (("require \"coveralls\"") "")
11525 (("Coveralls\\.wear!") "")
11526 ;; Remove rspec/retry as we are not retrying the tests
11527 (("require \"rspec/retry\"") "")
11528 (("config\\.display_try_failure_messages = true") "")
11529 (("config\\.verbose_retry = true") ""))
11531 (add-before 'check 'compile
11533 (invoke "rake" "compile")
11536 (lambda* (#:key tests? #:allow-other-keys)
11541 `(("bundler" ,bundler)
11542 ("ruby-rake-compiler" ,ruby-rake-compiler)
11543 ("ruby-rspec" ,ruby-rspec)
11544 ("ruby-rubocop" ,ruby-rubocop)))
11545 (synopsis "New I/O for Ruby")
11547 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11548 for scalable network clients and servers.")
11549 (home-page "https://github.com/socketry/nio4r")
11550 (license license:expat)))
11552 (define-public ruby-globalid
11554 (name "ruby-globalid")
11559 (uri (rubygems-uri "globalid" version))
11562 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11563 (build-system ruby-build-system)
11565 '(;; No included tests
11568 `(("ruby-activesupport" ,ruby-activesupport)))
11569 (synopsis "Generate URIs idenfitying model instances in Ruby")
11571 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11572 uniquely identify it.")
11573 (home-page "https://rubyonrails.org/")
11574 (license license:expat)))
11576 (define-public ruby-sprockets
11578 (name "ruby-sprockets")
11583 (uri (rubygems-uri "sprockets" version))
11586 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11587 (build-system ruby-build-system)
11589 '(;; No included tests
11592 `(("ruby-concurrent" ,ruby-concurrent)
11593 ("ruby-rack" ,ruby-rack)))
11594 (synopsis "Sprockets is a Rack-based asset packaging system")
11596 "Sprockets is a Rack-based asset packaging system that concatenates and
11597 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11598 (home-page "https://github.com/rails/sprockets")
11599 (license license:expat)))
11601 (define-public ruby-mustache
11603 (name "ruby-mustache")
11608 (uri (rubygems-uri "mustache" version))
11610 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11611 (build-system ruby-build-system)
11613 `(("ruby-simplecov" ,ruby-simplecov)))
11614 (synopsis "framework-agnostic way to render logic-free views")
11616 "Mustache is a framework-agnostic way to render logic-free views.
11617 Think of Mustache as a replacement for your views. Instead of views
11618 consisting of ERB or HAML with random helpers and arbitrary logic,
11619 your views are broken into two parts: a Ruby class and an HTML
11621 (home-page "https://github.com/mustache/mustache")
11622 (license license:expat)))
11624 (define-public ruby-mustermann
11626 (name "ruby-mustermann")
11631 (uri (rubygems-uri "mustermann" version))
11634 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11635 (build-system ruby-build-system)
11639 (synopsis "Library implementing patterns that behave like regular expressions")
11640 (description "Given a string pattern, Mustermann will turn it into an
11641 object that behaves like a regular expression and has comparable performance
11643 (home-page "https://github.com/sinatra/mustermann")
11644 (license license:expat)))
11646 (define-public ruby-html-proofer
11648 (name "ruby-html-proofer")
11653 (uri (git-reference
11654 (url "https://github.com/gjtorikian/html-proofer")
11655 (commit (string-append "v" version))))
11656 (file-name (git-file-name name version))
11659 "1pxb0fajb3l3lm7sqj548qwl7vx6sx3jy7n4cns9d4lqx7s9r9xb"))))
11660 (build-system ruby-build-system)
11662 `(;; FIXME: Tests depend on rubocop-standard.
11665 `(("ruby-awesome-print" ,ruby-awesome-print)
11666 ("ruby-redcarpet" ,ruby-redcarpet)
11667 ("ruby-rspec" ,ruby-rspec)
11668 ("ruby-rubocop" ,ruby-rubocop)
11669 ("ruby-rubocop-performance" ,ruby-rubocop-performance)
11670 ("ruby-pry-byebug" ,ruby-pry-byebug)))
11672 `(("ruby-addressable" ,ruby-addressable)
11673 ("ruby-mercenary" ,ruby-mercenary)
11674 ("ruby-nokogumbo" ,ruby-nokogumbo)
11675 ("ruby-parallel" ,ruby-parallel)
11676 ("ruby-rainbow" ,ruby-rainbow)
11677 ("ruby-typhoeus" ,ruby-typhoeus)
11678 ("ruby-yell" ,ruby-yell)))
11679 (synopsis "Test your rendered HTML files to make sure they're accurate")
11681 "HTMLProofer is a set of tests to validate your HTML output. These
11682 tests check if your image references are legitimate, if they have alt tags,
11683 if your internal links are working, and so on. It's intended to be an
11684 all-in-one checker for your output.")
11685 (home-page "https://github.com/gjtorikian/html-proofer")
11686 (license license:expat)))
11688 (define-public ruby-htmlentities
11690 (name "ruby-htmlentities")
11695 (uri (rubygems-uri "htmlentities" version))
11698 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11699 (build-system ruby-build-system)
11702 (modify-phases %standard-phases
11705 (map (lambda (file)
11706 (invoke "ruby" "-Itest" file))
11707 (find-files "./test" ".*_test\\.rb")))))))
11708 (synopsis "Encode and decode (X)HTML entities")
11710 "This package provides a module for encoding and decoding (X)HTML
11712 (home-page "https://github.com/threedaymonk/htmlentities")
11713 (license license:expat)))
11715 (define-public ruby-sinatra
11717 (name "ruby-sinatra")
11718 (version "2.0.8.1")
11722 (uri (rubygems-uri "sinatra" version))
11725 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11726 (build-system ruby-build-system)
11729 (modify-phases %standard-phases
11730 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11731 (add-after 'extract-gemspec 'fix-slow-doc-generation
11733 (substitute* "sinatra.gemspec"
11734 (("\"README.rdoc\"\\.freeze," all)
11735 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11738 `(("ruby-mustermann" ,ruby-mustermann)
11739 ("ruby-rack" ,ruby-rack)
11740 ("ruby-rack-protection" ,ruby-rack-protection)
11741 ("ruby-tilt" ,ruby-tilt)))
11742 (synopsis "DSL for quick web applications creation in Ruby")
11744 "Sinatra is a DSL for quickly creating web applications in Ruby with
11746 (home-page "http://sinatrarb.com/")
11747 (license license:expat)))
11749 (define-public ruby-thin
11756 (uri (rubygems-uri "thin" version))
11759 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11760 (build-system ruby-build-system)
11765 `(("ruby-daemons" ,ruby-daemons)
11766 ("ruby-eventmachine" ,ruby-eventmachine)
11767 ("ruby-rack" ,ruby-rack)))
11768 (synopsis "Thin and fast web server for Ruby")
11769 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11771 @item the Mongrel parser,
11772 @item Event Machine, a network I/O library with high scalability, performance
11774 @item Rack, a minimal interface between webservers and Ruby frameworks.
11776 (home-page "https://github.com/macournoyer/thin")
11777 (license license:ruby)))
11779 (define-public ruby-skinny
11781 (name "ruby-skinny")
11786 (uri (rubygems-uri "skinny" version))
11789 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11790 (build-system ruby-build-system)
11792 '(#:tests? #f ; No included tests
11794 (modify-phases %standard-phases
11795 (add-before 'build 'patch-gemspec
11797 (substitute* ".gemspec"
11798 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11799 "<eventmachine>, [\">= 1.0.0\"")
11800 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11803 `(("ruby-eventmachine" ,ruby-eventmachine)
11804 ("ruby-thin" ,ruby-thin)))
11805 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11806 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11807 the Thin library.")
11808 (home-page "https://github.com/sj26/skinny")
11809 (license license:expat)))
11811 (define-public ruby-sys-filesystem
11813 (name "ruby-sys-filesystem")
11817 (uri (rubygems-uri "sys-filesystem" version))
11820 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11821 (build-system ruby-build-system)
11823 '(#:phases (modify-phases %standard-phases
11824 (add-before 'check 'set-HOME
11826 ;; Some tests attempt to stat $HOME. Let them.
11827 (setenv "HOME" "/tmp")
11830 `(("ruby-ffi" ,ruby-ffi)))
11832 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11833 (synopsis "Gather file system information")
11835 "The @code{sys-filesystem} library provides a cross-platform interface
11836 for gathering file system information, such as disk space and mount points.")
11837 (home-page "https://github.com/djberg96/sys-filesystem")
11838 (license license:asl2.0)))
11840 (define-public mailcatcher
11842 (name "mailcatcher")
11847 (uri (rubygems-uri "mailcatcher" version))
11850 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11851 (build-system ruby-build-system)
11853 ;; Tests require web/assets which is not included in the output. We
11854 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11855 ;; of the tests. See ruby-mysql2.
11858 (modify-phases %standard-phases
11859 (add-before 'build 'patch-gemspec
11861 (substitute* ".gemspec"
11862 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11863 "<eventmachine>, [\">= 1.0.9.1")
11864 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11865 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11866 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11868 (add-before 'build 'loosen-dependency-contraint
11870 (substitute* "lib/mail_catcher.rb"
11871 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11872 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11873 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11874 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11877 `(("ruby-eventmachine" ,ruby-eventmachine)
11878 ("ruby-mail" ,ruby-mail)
11879 ("ruby-rack" ,ruby-rack)
11880 ("ruby-sinatra" ,ruby-sinatra)
11881 ("ruby-skinny" ,ruby-skinny)
11882 ("ruby-sqlite3" ,ruby-sqlite3)
11883 ("ruby-thin" ,ruby-thin)))
11884 (synopsis "SMTP server which catches messages to display them a browser")
11886 "MailCatcher runs a super simple SMTP server which catches any message
11887 sent to it to display in a web interface. Run mailcatcher, set your favourite
11888 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11889 then check out http://127.0.0.1:1080 to see the mail.")
11890 (home-page "https://mailcatcher.me")
11891 (license license:expat)))
11893 (define-public ruby-backport
11895 (name "ruby-backport")
11899 ;; The gem does not include test code, so fetch from the Git repository.
11901 (uri (git-reference
11902 (url "https://github.com/castwide/backport")
11903 (commit (string-append "v" version))))
11904 (file-name (git-file-name name version))
11906 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11907 (build-system ruby-build-system)
11909 `(#:test-target "spec"))
11911 `(("bundler" ,bundler)
11912 ("ruby-rspec" ,ruby-rspec)))
11914 `(("ruby-simplecov" ,ruby-simplecov)))
11915 (synopsis "Pure Ruby library for event-driven IO")
11917 "This package provides a pure Ruby library for event-driven IO.")
11918 (home-page "https://github.com/castwide/backport")
11919 (license license:expat)))
11921 (define-public ruby-json-schema
11923 (name "ruby-json-schema")
11928 (uri (rubygems-uri "json-schema" version))
11931 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11932 (build-system ruby-build-system)
11934 `(#:tests? #f ; no tests
11936 (modify-phases %standard-phases
11939 (invoke "gem" "build" ".gemspec"))))))
11941 `(("ruby-addressable" ,ruby-addressable)))
11942 (synopsis "Ruby JSON Schema Validator")
11943 (description "This library provides Ruby with an interface for validating
11944 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11945 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11946 is also included.")
11947 (home-page "https://github.com/ruby-json-schema/json-schema")
11948 (license license:expat)))
11950 (define-public swagger-diff
11952 (name "swagger-diff")
11957 (uri (rubygems-uri "swagger-diff" version))
11960 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11961 (build-system ruby-build-system)
11963 `(#:test-target "spec"
11965 (modify-phases %standard-phases
11966 ;; Don't run or require rubocop, the code linting tool, as this is a
11967 ;; bit unnecessary.
11968 (add-after 'unpack 'dont-run-rubocop
11970 (substitute* "Rakefile"
11971 ((".*rubocop.*") "")
11972 ((".*RuboCop.*") ""))
11975 `(("ruby-json-schema" ,ruby-json-schema)))
11977 `(("bundler" ,bundler)
11978 ("ruby-rspec-core" ,ruby-rspec-core)
11979 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11981 "Compare Open API Initiative specification files")
11983 "Swagger::Diff is a utility for comparing two different Open API
11984 Initiative (OAI) specifications (formerly known as Swagger specifications).
11985 It is intended to determine whether a newer API specification is
11986 backwards-compatible with an older API specification.")
11987 (home-page "https://github.com/civisanalytics/swagger-diff")
11988 (license license:bsd-3)))
11990 (define-public ruby-reverse-markdown
11992 (name "ruby-reverse-markdown")
11997 (uri (rubygems-uri "reverse_markdown" version))
12000 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
12001 (build-system ruby-build-system)
12003 `(("ruby-nokogiri" ,ruby-nokogiri)))
12005 `(("bundler" ,bundler)
12006 ("ruby-rspec" ,ruby-rspec)
12007 ("ruby-kramdown" ,ruby-kramdown)
12008 ("ruby-simplecov" ,ruby-simplecov)))
12011 (modify-phases %standard-phases
12013 (lambda* (#:key tests? #:allow-other-keys)
12017 (synopsis "Convert HTML into Markdown")
12019 "This Ruby module allows you to map simple HTML back into
12020 Markdown---e.g., if you want to import existing HTML data in your
12022 (home-page "https://github.com/xijo/reverse_markdown")
12023 (license license:wtfpl2)))
12025 (define-public ruby-solargraph
12027 (name "ruby-solargraph")
12032 (uri (rubygems-uri "solargraph" version))
12035 "1gf049rm0yvw4r8r5yyi890idbfg8qh0dikqx5prvkh11srl73bz"))))
12036 (build-system ruby-build-system)
12038 `(("ruby-backport" ,ruby-backport)
12039 ("bundler" ,bundler)
12040 ("ruby-benchmark" ,ruby-benchmark)
12041 ("ruby-e2mmap" ,ruby-e2mmap)
12042 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
12043 ("ruby-kramdown" ,ruby-kramdown)
12044 ("ruby-kramdown-parser-gfm" ,ruby-kramdown-parser-gfm)
12045 ("ruby-maruku" ,ruby-maruku)
12046 ("ruby-nokogiri" ,ruby-nokogiri)
12047 ("ruby-parser" ,ruby-parser)
12048 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
12049 ("ruby-rubocop" ,ruby-rubocop)
12050 ("ruby-thor" ,ruby-thor)
12051 ("ruby-tilt" ,ruby-tilt)
12052 ("ruby-yard" ,ruby-yard)))
12054 `(("ruby-rspec" ,ruby-rspec)
12055 ("ruby-pry" ,ruby-pry)
12056 ("ruby-simplecov" ,ruby-simplecov)
12057 ("ruby-webmock" ,ruby-webmock)))
12058 ;; FIXME: can't figure out how to run the tests properly:
12060 ;; An error occurred while loading spec_helper.
12061 ;; Failure/Error: return gem_original_require(path)
12063 ;; cannot load such file -- spec_helper
12067 (modify-phases %standard-phases
12069 (lambda* (#:key tests? #:allow-other-keys)
12074 "IDE tools for code completion, inline documentation, and static analysis")
12076 "Solargraph provides a comprehensive suite of tools for Ruby
12077 programming: intellisense, diagnostics, inline documentation, and type
12079 (home-page "https://solargraph.org/")
12080 (license license:expat)))
12082 (define-public ruby-wayback-machine-downloader
12084 (name "ruby-wayback-machine-downloader")
12090 "wayback_machine_downloader"
12094 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
12095 (build-system ruby-build-system)
12097 '(#:tests? #f)) ; no tests
12098 (synopsis "Download archived websites from the Wayback Machine")
12100 "Wayback Machine Downloader is a command line tool for downloading
12101 websites from the Internet Archive's Wayback Machine (archive.org).
12102 It allows fine grained control over what to download by specifying
12103 which snapshots to consider and what files to include.")
12105 "https://github.com/hartator/wayback-machine-downloader")
12106 (license license:expat)))
12108 (define-public ruby-zeitwerk
12110 (name "ruby-zeitwerk")
12115 (uri (git-reference
12116 ;; No tests in the released gem.
12117 (url "https://github.com/fxn/zeitwerk")
12118 (commit (string-append "v" version))))
12119 (file-name (git-file-name name version))
12122 "119fgdyb57gmss2yvfwfr47wcy8nny38sai72446krpihyavpizw"))))
12123 (build-system ruby-build-system)
12125 `(("ruby-minitest" ,ruby-minitest)
12126 ("ruby-minitest-focus" ,ruby-minitest-focus)
12127 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
12128 (synopsis "Efficient and thread-safe code loader for Ruby")
12130 "Zeitwerk implements constant autoloading with Ruby semantics. Each gem
12131 and application may have their own independent autoloader, with its own
12132 configuration, inflector, and logger. Supports autoloading, reloading, and
12134 (home-page "https://github.com/fxn/zeitwerk")
12135 (license license:expat)))
12137 (define-public ruby-wwtd
12141 (home-page "https://github.com/grosser/wwtd")
12144 (uri (git-reference
12146 (commit (string-append "v" version))))
12147 (file-name (git-file-name name version))
12150 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
12151 (modules '((guix build utils)))
12154 ;; Remove bundled library.
12155 (delete-file "spec/rake-12.3.0.gem")
12157 (build-system ruby-build-system)
12159 '(;; XXX: Tests need multiple versions of ruby, wants to run
12160 ;; `bundle install`, etc.
12162 #:phases (modify-phases %standard-phases
12163 (replace 'replace-git-ls-files
12165 (substitute* "wwtd.gemspec"
12166 (("git ls-files lib/ bin/`")
12167 "find lib/ bin/ -type f |sort`"))
12169 (add-before 'check 'remove-version-constraints
12171 (delete-file "Gemfile.lock")
12174 (lambda* (#:key tests? #:allow-other-keys)
12176 (invoke "rspec" "spec/")
12177 (format #t "test suite not run~%"))
12180 `(("ruby-bump" ,ruby-bump)
12181 ("ruby-rspec" ,ruby-rspec)))
12182 (synopsis "Run @file{.travis.yml} files locally")
12184 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
12185 defined in @file{.travis.yml} on your local machine, using @code{rvm},
12186 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
12187 (license license:expat)))
12189 (define-public ruby-rugged
12191 (name "ruby-rugged")
12193 (home-page "https://www.rubydoc.info/gems/rugged")
12197 (uri (rubygems-uri "rugged" version))
12199 (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy"))))
12200 (build-system ruby-build-system)
12203 #:gem-flags (list "--" "--use-system-libraries")))
12205 `(("libgit2" ,libgit2)))
12207 `(("ruby-minitest" ,ruby-minitest)
12208 ("ruby-pry" ,ruby-pry)
12209 ("ruby-rake-compiler" ,ruby-rake-compiler)))
12210 (synopsis "Ruby bindings to the libgit2 linkable C Git library")
12211 (description "Rugged is a library for accessing libgit2 in Ruby. It gives
12212 you the speed and portability of libgit2 with the beauty of the Ruby
12214 (license license:expat)))
12216 (define-public ruby-yell
12223 (uri (rubygems-uri "yell" version))
12226 "1g16kcdhdfvczn7x81jiq6afg3bdxmb73skqjyjlkp5nqcy6y5hx"))))
12227 (build-system ruby-build-system)
12230 (modify-phases %standard-phases
12233 (invoke "rake" "examples")))))) ; there is no test target.
12235 "Extensible logging library for Ruby")
12237 "Yell is a comprehensive logging replacement for Ruby. It defines
12238 multiple adapters, various log level combinations and message formatting
12240 (home-page "https://github.com/rudionrails/yell")
12241 (license license:expat)))
12243 (define-public ruby-e2mmap
12245 (name "ruby-e2mmap")
12250 (uri (rubygems-uri "e2mmap" version))
12253 "0n8gxjb63dck3vrmsdcqqll7xs7f3wk78mw8w0gdk9wp5nx6pvj5"))))
12254 (build-system ruby-build-system)
12256 `(#:tests? #f)) ;; There is a rakefile but no tests
12258 "Module for defining custom exceptions with specific messages")
12260 "Exception2MessageMapper (e2mmap) is a helper module for easily defining
12261 exceptions with predefined messages.")
12262 (home-page "https://github.com/ruby/e2mmap")
12263 (license license:bsd-2)))
12265 (define-public ruby-benchmark
12267 (name "ruby-benchmark")
12272 (uri (rubygems-uri "benchmark" version))
12275 "1jvrl7400fv7v2jjri1r7ilj3sri36hzipwwgpn5psib4c9c59c6"))))
12276 (build-system ruby-build-system)
12277 (synopsis "Performance benchmarking library")
12278 (description "This package provides methods for benchmarking Ruby code,
12279 giving detailed reports on the time taken for each task.")
12280 (home-page "https://github.com/ruby/benchmark")
12281 (license license:bsd-2)))
12283 (define-public ruby-jekyll-feed
12285 (name "ruby-jekyll-feed")
12290 (uri (rubygems-uri "jekyll-feed" version))
12293 "1zxqkrnix0xiw98531h5ga6h69jhzlx2jh9qhvcl67p8nq3sgza9"))))
12294 (build-system ruby-build-system)
12296 `(#:tests? #false)) ;there are none
12298 `(("jekyll" ,jekyll)))
12300 "Jekyll plugin to generate an Atom feed of your Jekyll posts")
12302 "This package provides a Jekyll plugin to generate an Atom feed
12303 of your Jekyll posts.")
12305 "https://github.com/jekyll/jekyll-feed")
12306 (license license:expat)))
12308 (define-public ruby-jekyll-sitemap
12310 (name "ruby-jekyll-sitemap")
12315 (uri (rubygems-uri "jekyll-sitemap" version))
12318 "0622rwsn5i0m5xcyzdn86l68wgydqwji03lqixdfm1f1xdfqrq0d"))))
12319 (build-system ruby-build-system)
12321 `(#:tests? #false)) ;there are none
12323 `(("jekyll" ,jekyll)))
12325 "Automatically generate a sitemap.xml for your Jekyll site")
12327 "This package provides a Jekyll plugin to silently generate
12328 a sitemaps.org compliant sitemap for your Jekyll site.")
12330 "https://github.com/jekyll/jekyll-sitemap")
12331 (license license:expat)))
12333 (define-public ruby-jekyll-seo-tag
12335 (name "ruby-jekyll-seo-tag")
12340 (uri (rubygems-uri "jekyll-seo-tag" version))
12343 "0fsi75hymk2wswy216fs224p5ycrzjw1kshw1bsl5czhv42wr2w3"))))
12344 (build-system ruby-build-system)
12346 `(#:tests? #false))
12348 `(("jekyll" ,jekyll)))
12350 "Jekyll plugin to add metadata tags for search engines and social networks")
12352 "This package provides a Jekyll plugin to add metadata tags for search engines
12353 and social networks to better index and display your site's content.")
12355 "https://github.com/jekyll/jekyll-seo-tag")
12356 (license license:expat)))