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 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 Nicolas Goaziou <mail@nicolasgoaziou.fr>
25 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
26 ;;; Copyright © 2020 Holgr Peters <holger.peters@posteo.de>
28 ;;; This file is part of GNU Guix.
30 ;;; GNU Guix is free software; you can redistribute it and/or modify it
31 ;;; under the terms of the GNU General Public License as published by
32 ;;; the Free Software Foundation; either version 3 of the License, or (at
33 ;;; your option) any later version.
35 ;;; GNU Guix is distributed in the hope that it will be useful, but
36 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
37 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38 ;;; GNU General Public License for more details.
40 ;;; You should have received a copy of the GNU General Public License
41 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
43 (define-module (gnu packages ruby)
44 #:use-module ((guix licenses) #:prefix license:)
45 #:use-module (gnu packages)
46 #:use-module (gnu packages base)
47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages c)
49 #:use-module (gnu packages check)
50 #:use-module (gnu packages compression)
51 #:use-module (gnu packages crypto)
52 #:use-module (gnu packages databases)
53 #:use-module (gnu packages dbm)
54 #:use-module (gnu packages rails)
55 #:use-module (gnu packages readline)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages haskell-xyz)
58 #:use-module (gnu packages java)
59 #:use-module (gnu packages libffi)
60 #:use-module (gnu packages libidn)
61 #:use-module (gnu packages linux)
62 #:use-module (gnu packages lsof)
63 #:use-module (gnu packages maths)
64 #:use-module (gnu packages ncurses)
65 #:use-module (gnu packages networking)
66 #:use-module (gnu packages node)
67 #:use-module (gnu packages protobuf)
68 #:use-module (gnu packages python)
69 #:use-module (gnu packages python-xyz)
70 #:use-module (gnu packages ragel)
71 #:use-module (gnu packages rsync)
72 #:use-module (gnu packages sqlite)
73 #:use-module (gnu packages tls)
74 #:use-module (gnu packages version-control)
75 #:use-module (guix packages)
76 #:use-module (guix download)
77 #:use-module (guix git-download)
78 #:use-module (guix utils)
79 #:use-module (guix build-system gnu)
80 #:use-module (gnu packages xml)
81 #:use-module (gnu packages web)
82 #:use-module (guix build-system ruby)
83 #:use-module ((srfi srfi-1) #:select (alist-delete)))
85 (define %prawn-project-licenses
86 ;; This set of licenses applies to most (all?) components of the Prawn
87 ;; project (it is triple licensed).
99 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
100 (version-major+minor version)
101 "/ruby-" version ".tar.xz"))
104 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
105 (modules '((guix build utils)))
107 ;; Remove bundled libffi
108 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
110 (build-system gnu-build-system)
112 `(#:test-target "test"
113 #:configure-flags '("--enable-shared") ; dynamic linking
115 (modify-phases %standard-phases
116 (add-before 'configure 'replace-bin-sh-and-remove-libffi
118 (substitute* '("Makefile.in"
123 "test/rubygems/test_gem_ext_configure_builder.rb"
124 "test/rdoc/test_rdoc_parser.rb"
125 "test/ruby/test_rubyoptions.rb"
126 "test/ruby/test_process.rb"
127 "test/ruby/test_system.rb"
129 (("/bin/sh") (which "sh")))
132 `(("readline" ,readline)
139 (list (search-path-specification
140 (variable "GEM_PATH")
141 (files (list (string-append "lib/ruby/vendor_ruby"))))))
142 (synopsis "Programming language interpreter")
143 (description "Ruby is a dynamic object-oriented programming language with
144 a focus on simplicity and productivity.")
145 (home-page "https://www.ruby-lang.org")
146 (license license:ruby)))
148 (define-public ruby-2.7
155 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
156 (version-major+minor version)
157 "/ruby-" version ".tar.gz"))
160 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
161 (modules '((guix build utils)))
163 ;; Remove bundled libffi
164 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
167 `(#:test-target "test"
168 #:configure-flags '("--enable-shared") ; dynamic linking
170 (modify-phases %standard-phases
171 (add-before 'configure 'replace-bin-sh-and-remove-libffi
173 (substitute* '("configure.ac"
174 "template/Makefile.in"
175 "lib/rubygems/installer.rb"
180 "test/rubygems/test_gem_ext_configure_builder.rb"
181 "test/rdoc/test_rdoc_parser.rb"
182 "test/ruby/test_rubyoptions.rb"
183 "test/ruby/test_process.rb"
184 "test/ruby/test_system.rb"
186 (("/bin/sh") (which "sh")))
189 `(("autoconf" ,autoconf)))))
191 (define-public ruby-3.0
198 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
199 (version-major+minor version)
200 "/ruby-" version ".tar.xz"))
203 "1cbcixwnr0y8q0lg67wjgplp06kjd6p6hjjh680csv3v0bpsxgv8"))))))
205 (define-public ruby-2.5
212 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
213 (version-major+minor version)
214 "/ruby-" version ".tar.xz"))
217 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
218 (modules '((guix build utils)))
220 ;; Remove bundled libffi
221 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
224 (define-public ruby-2.4
231 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
232 (version-major+minor version)
233 "/ruby-" version ".tar.xz"))
236 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
237 (modules '((guix build utils)))
239 ;; Remove bundled libffi
240 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
251 (url "https://github.com/mruby/mruby")
253 (file-name (git-file-name name version))
256 "0fhfv8pi7i8jn2vgk2n2rjnbnfa12nhj514v8i4k353n7q4pmkh3"))))
257 (build-system gnu-build-system)
259 `(#:test-target "test"
261 (modify-phases %standard-phases
263 (add-after 'unpack 'enable-verbose-tests
265 (substitute* "Makefile"
266 (("ruby ./minirake" m)
267 (string-append m " --verbose")))
269 (add-after 'unpack 'disable-broken-tests
271 (substitute* "mrbgems/mruby-io/test/io.rb"
272 (("assert\\('IO.popen.+$" m)
273 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
274 (("assert\\('IO#isatty.+$" m)
275 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
276 ;; This one is really weird. The *expected* output is all wrong.
277 (("assert\\('`cmd`.*" m)
278 (string-append m "skip \"Disable for Guix\"\n"))
280 (string-append (which "echo") " foo")))
282 ;; There is no install target
284 (lambda* (#:key outputs #:allow-other-keys)
285 (let* ((out (assoc-ref outputs "out"))
286 (bin (string-append out "/bin"))
287 (lib (string-append out "/lib")))
289 (copy-recursively "build/host/bin" bin)
291 (copy-recursively "build/host/lib" lib))
296 (home-page "https://github.com/mruby/mruby")
297 (synopsis "Lightweight Ruby")
298 (description "mruby is the lightweight implementation of the Ruby
299 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
300 embedded within your application.")
301 (license license:expat)))
303 (define-public ruby-commander
305 (name "ruby-commander")
310 (uri (rubygems-uri "commander" version))
313 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
314 (build-system ruby-build-system)
316 `(#:test-target "spec"
318 (modify-phases %standard-phases
319 ;; Don't run or require rubocop, the code linting tool, as this is a
321 (add-after 'unpack 'dont-run-rubocop
323 (substitute* "Rakefile"
325 ((".*RuboCop.*") ""))
328 `(("ruby-highline" ,ruby-highline)))
330 `(("bundler" ,bundler)
331 ("ruby-rspec-core" ,ruby-rspec-core)
332 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
333 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
334 ("ruby-simplecov" ,ruby-simplecov)))
335 (home-page "https://github.com/commander-rb/commander")
336 (synopsis "Library for building Ruby command-line executables")
338 "Commander aims to be a complete solution for Ruby command-line
339 executables. Commander bridges the gap between other terminal related
340 libraries (OptionParser, HighLine), while providing many new features, and an
342 (license license:expat)))
344 (define-public ruby-highline
346 (name "ruby-highline")
351 (uri (rubygems-uri "highline" version))
354 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
355 (build-system ruby-build-system)
357 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
359 `(("bundler" ,bundler)
360 ("ruby-code-statistics" ,ruby-code-statistics)))
362 "HighLine helps you build command-line interfaces")
364 "HighLine provides a high-level IO library that provides validation,
365 type conversion, and more for command-line interfaces. HighLine also includes
366 a menu system for providing multiple options to the user.")
367 (home-page "https://github.com/JEG2/highline")
368 (license (list license:gpl2 license:ruby))))
370 (define-public ruby-hoe
376 (uri (rubygems-uri "hoe" version))
379 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
380 (build-system ruby-build-system)
383 (modify-phases %standard-phases
384 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
385 ;; variable is set, so unset it for the duration of the tests.
387 ;; TestHoe#test_possibly_better
388 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
389 ;; Expected: 2019-11-12 00:00:00 UTC
390 ;; Actual: 1970-01-01 00:00:00 UTC
391 (add-before 'check 'unset-SOURCE-DATE-EPOCH
393 (unsetenv "SOURCE_DATE_EPOCH")
395 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
397 (setenv "SOURCE_DATE_EPOCH" "1")
399 (synopsis "Ruby project management helper")
401 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
402 maintain, and release projects and includes a dynamic plug-in system allowing
403 for easy extensibility. Hoe ships with plug-ins for all the usual project
404 tasks including rdoc generation, testing, packaging, deployment, and
406 (home-page "https://www.zenspider.com/projects/hoe.html")
407 (license license:expat)))
409 (define-public ruby-rake-compiler
411 (name "ruby-rake-compiler")
415 (uri (rubygems-uri "rake-compiler" version))
418 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
419 (build-system ruby-build-system)
421 '(#:tests? #f)) ; needs cucumber
422 (synopsis "Building and packaging helper for Ruby native extensions")
423 (description "Rake-compiler provides a framework for building and
424 packaging native C and Java extensions in Ruby.")
425 (home-page "https://github.com/rake-compiler/rake-compiler")
426 (license license:expat)))
428 (define-public ruby-rsync
435 (uri (rubygems-uri "rsync" version))
438 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
439 (build-system ruby-build-system)
441 '(#:test-target "spec"
443 (modify-phases %standard-phases
444 (add-after 'unpack 'remove-coveralls-requirement
446 (substitute* "spec/spec_helper.rb"
447 (("require 'coveralls'") "")
448 (("Coveralls.wear!") ""))
451 `(("bundler" ,bundler)
453 ("ruby-rspec-core" ,ruby-rspec-core)
454 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
455 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
456 (home-page "https://github.com/jbussdieker/ruby-rsync")
457 (synopsis "Ruby wrapper around rsync")
459 "Ruby Rsync is a Ruby library that can synchronize files between remote
460 hosts by wrapping the @file{rsync} binary.")
461 (license license:expat)))
463 (define-public ruby-i18n
469 (uri (rubygems-uri "i18n" version))
472 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
473 (build-system ruby-build-system)
475 '(#:tests? #f)) ; no tests
476 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
477 (synopsis "Internationalization library for Ruby")
478 (description "Ruby i18n is an internationalization and localization
479 solution for Ruby programs. It features translation and localization,
480 interpolation of values to translations, pluralization, customizable
481 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
482 translation data, custom key/scope separator, custom exception handlers, and
483 an extensible architecture with a swappable backend.")
484 (home-page "https://github.com/ruby-i18n/i18n")
485 (license license:expat)))
487 (define-public ruby-iruby
494 (uri (rubygems-uri "iruby" version))
497 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
498 (build-system ruby-build-system)
500 ;; TODO: Tests currently fail.
502 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
505 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
508 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
511 (modify-phases %standard-phases
512 (add-after 'unpack 'patch-ipython
513 (lambda* (#:key inputs #:allow-other-keys)
514 (substitute* "lib/iruby/command.rb"
518 (assoc-ref inputs "python-ipython")
520 (("Kernel\\.exec\\('")
523 (assoc-ref inputs "python-ipython")
527 `(("python-ipython" ,python-ipython)))
529 `(("ruby-bond" ,ruby-bond)
530 ("ruby-data_uri" ,ruby-data_uri)
531 ("ruby-mimemagic" ,ruby-mimemagic)
532 ("ruby-multi-json" ,ruby-multi-json)
533 ("ruby-cztop" ,ruby-cztop)
535 ("ruby-pry" ,ruby-pry)))
536 (synopsis "Ruby kernel for Jupyter/IPython")
538 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
540 (home-page "https://github.com/SciRuby/iruby")
541 (license license:expat)))
543 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
544 ;; dependencies use RSpec for their test suites! To avoid these circular
545 ;; dependencies, we disable tests for all of the RSpec-related packages.
546 (define-public ruby-rspec-support
548 (name "ruby-rspec-support")
552 (uri (rubygems-uri "rspec-support" version))
555 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
556 (build-system ruby-build-system)
558 '(#:tests? #f)) ; avoid dependency cycles
559 (synopsis "RSpec support library")
560 (description "Support utilities for RSpec gems.")
561 (home-page "https://github.com/rspec/rspec-support")
562 (license license:expat)))
564 (define-public ruby-rspec-core
566 (name "ruby-rspec-core")
570 (uri (rubygems-uri "rspec-core" version))
573 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
574 (build-system ruby-build-system)
576 '(#:tests? #f)) ; avoid dependency cycles
578 `(("ruby-rspec-support" ,ruby-rspec-support)))
579 (synopsis "RSpec core library")
580 (description "Rspec-core provides the RSpec test runner and example
582 (home-page "https://github.com/rspec/rspec-core")
583 (license license:expat)))
585 (define-public ruby-rspec-core-2
586 (package (inherit ruby-rspec-core)
590 (uri (rubygems-uri "rspec-core" version))
593 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
594 (propagated-inputs `())))
596 (define-public ruby-diff-lcs
598 (name "ruby-diff-lcs")
602 (uri (rubygems-uri "diff-lcs" version))
605 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
606 (build-system ruby-build-system)
608 '(#:tests? #f)) ; avoid dependency cycles
609 (synopsis "Compute the difference between two Enumerable sequences")
610 (description "Diff::LCS computes the difference between two Enumerable
611 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
612 It includes utilities to create a simple HTML diff output format and a
613 standard diff-like tool.")
614 (home-page "https://github.com/halostatue/diff-lcs")
615 (license license:expat)))
617 (define-public ruby-rspec-expectations
619 (name "ruby-rspec-expectations")
623 (uri (rubygems-uri "rspec-expectations" version))
626 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
627 (build-system ruby-build-system)
629 '(#:tests? #f)) ; avoid dependency cycles
631 `(("ruby-rspec-support" ,ruby-rspec-support)
632 ("ruby-diff-lcs" ,ruby-diff-lcs)))
633 (synopsis "RSpec expectations library")
634 (description "Rspec-expectations provides a simple API to express expected
635 outcomes of a code example.")
636 (home-page "https://github.com/rspec/rspec-expectations")
637 (license license:expat)))
639 (define-public ruby-rspec-expectations-2
640 (package (inherit ruby-rspec-expectations)
644 (uri (rubygems-uri "rspec-expectations" version))
647 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
649 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
651 (define-public ruby-sorcerer
653 (name "ruby-sorcerer")
658 (uri (rubygems-uri "sorcerer" version))
661 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
662 (build-system ruby-build-system)
663 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
664 (description "Sorcerer generates Ruby code from a Ripper-like abstract
665 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
666 snippets of Ruby code, expressible in a single line. Longer examples may be
667 re-sourced, but they will be rendered in a single-line format.")
668 (home-page "https://github.com/rspec-given/sorcerer")
669 (license license:expat)))
671 (define-public ruby-given-core
673 (name "ruby-given-core")
678 (uri (rubygems-uri "given_core" version))
681 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
682 (build-system ruby-build-system)
683 (arguments '(#:tests? #f)) ;no test suite for the core package
685 `(("ruby-sorcerer" ,ruby-sorcerer)))
686 (synopsis "Core abstractions used by rspec-given and minitest-given")
687 (description "Given_core is the basic functionality behind rspec-given and
688 minitest-given, extensions that allow the use of Given/When/Then terminology
689 when defining specifications.")
690 (home-page "https://github.com/rspec-given/rspec-given")
691 (license license:expat)))
693 (define-public ruby-rspec-given
695 (name "ruby-rspec-given")
700 (uri (rubygems-uri "rspec-given" version))
703 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
704 (build-system ruby-build-system)
708 (modify-phases %standard-phases
709 (add-after 'unpack 'fix-rakefile
711 (substitute* '("Rakefile" "rakelib/gemspec.rake")
712 (("require '\\./lib/given/.*") "")
713 (("Given::VERSION") (format #f "~s" ,version))
714 ;; Fix the error: "cannot load such file -- example_helper"
716 "sh \"rspec -Ilib:examples"))
718 (add-after 'extract-gemspec 'delete-failing-tests
719 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
721 (substitute* ".gemspec"
722 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
724 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
726 (delete-file "spec/lib/given/natural_assertion_spec.rb")
727 (delete-file "examples/integration/failing_messages_spec.rb")
730 `(("ruby-rspec" ,ruby-rspec)
731 ("ruby-minitest" ,ruby-minitest)))
733 `(("ruby-given-core" ,ruby-given-core)
734 ("ruby-rspec" ,ruby-rspec)))
735 (synopsis "Given/When/Then for RSpec and Minitest")
736 (description "Given is an RSpec extension that allows the use of
737 Given/When/Then terminology when defining specifications, in a way similar to
738 the Cucumber Gherkin language.")
739 (home-page "https://github.com/rspec-given/rspec-given")
740 (license license:expat)))
742 (define-public ruby-rspec-its
744 (name "ruby-rspec-its")
750 (url "https://github.com/rspec/rspec-its")
751 (commit (string-append "v" version))))
752 (file-name (git-file-name name version))
755 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
756 (build-system ruby-build-system)
758 `(#:test-target "spec"
760 (modify-phases %standard-phases
761 (add-after 'unpack 'dont-install-gems-from-gemfile
763 (substitute* "Gemfile"
764 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
767 (add-before 'build 'loosen-ffi-requirement
769 ;; Accept any version of ruby-ffi.
770 (substitute* "Gemfile"
771 ((" gem 'ffi', '~> 1\\.9\\.25'")
774 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
776 (substitute* "rspec-its.gemspec"
777 (("rake.*") "rake'\n")
778 (("spec.add_development_dependency 'cucumber'.*")
779 "spec.add_development_dependency 'cucumber'\n")
780 (("bundler.*") "bundler'\n")
781 (("\"aruba.*") "'aruba'\n"))
784 `(("ruby-rspec-core" ,ruby-rspec-core)
785 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
787 `(("bundler" ,bundler)
788 ("ruby-cucumber" ,ruby-cucumber)
789 ("ruby-ffi" ,ruby-ffi)
790 ("ruby-aruba" ,ruby-aruba)))
791 (synopsis "RSpec extension that provides the @code{its} method")
793 "RSpec::Its provides the its method as a short-hand to specify the expected
794 value of an attribute. For example, one can use @code{its(:size)\\{should
796 (home-page "https://github.com/rspec/rspec-its")
797 (license license:expat)))
799 ;;; This variant is used to break a cycle with ruby-protobuf.
800 (define-public ruby-rspec-its-minimal
803 (inherit ruby-rspec-its)
805 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
806 ((#:tests? _ #f) #f)))
807 (native-inputs '()))))
809 (define-public ruby-rspec-mocks
811 (name "ruby-rspec-mocks")
815 (uri (rubygems-uri "rspec-mocks" version))
818 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
819 (build-system ruby-build-system)
821 '(#:tests? #f)) ; avoid dependency cycles
823 `(("ruby-rspec-support" ,ruby-rspec-support)
824 ("ruby-diff-lcs" ,ruby-diff-lcs)))
825 (synopsis "RSpec stubbing and mocking library")
826 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
827 support for stubbing and mocking.")
828 (home-page "https://github.com/rspec/rspec-mocks")
829 (license license:expat)))
831 (define-public ruby-rspec-mocks-2
832 (package (inherit ruby-rspec-mocks)
836 (uri (rubygems-uri "rspec-mocks" version))
839 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
841 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
843 (define-public ruby-rspec-rerun
845 (name "ruby-rspec-rerun")
850 (uri (rubygems-uri "rspec-rerun" version))
853 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
854 (build-system ruby-build-system)
856 '(;; No included tests
858 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
859 (synopsis "Track failed RSpec tests to re-run them")
861 "This package provides an automated way to track, and then re-run failed
863 (home-page "https://github.com/dblock/rspec-rerun")
864 (license license:expat)))
866 (define-public ruby-rspec-wait
868 (name "ruby-rspec-wait")
873 (uri (rubygems-uri "rspec-wait" version))
876 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
877 (build-system ruby-build-system)
880 (modify-phases %standard-phases
883 (invoke "rake" "spec"))))))
885 `(("bundler" ,bundler)))
887 `(("ruby-rspec" ,ruby-rspec)))
888 (home-page "https://github.com/laserlemon/rspec-wait")
889 (synopsis "Wait for conditions in RSpec")
891 "RSpec::Wait strives to make it easier to test asynchronous or slow
893 (license license:expat)))
895 (define-public ruby-rspec
901 (uri (rubygems-uri "rspec" version))
904 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
905 (build-system ruby-build-system)
907 '(#:tests? #f)) ; avoid dependency cycles
909 `(("ruby-rspec-core" ,ruby-rspec-core)
910 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
911 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
912 (synopsis "Behavior-driven development framework for Ruby")
913 (description "RSpec is a behavior-driven development (BDD) framework for
914 Ruby. This meta-package includes the RSpec test runner, along with the
915 expectations and mocks frameworks.")
916 (home-page "https://rspec.info/")
917 (license license:expat)))
919 (define-public ruby-rspec-2
920 (package (inherit ruby-rspec)
924 (uri (rubygems-uri "rspec" version))
927 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
929 `(("ruby-rspec-core" ,ruby-rspec-core-2)
930 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
931 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
933 ;; Bundler is yet another source of circular dependencies, so we must disable
934 ;; its test suite as well.
935 (define-public bundler
941 (uri (rubygems-uri "bundler" version))
944 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
945 (build-system ruby-build-system)
947 '(#:tests? #f)) ; avoid dependency cycles
948 (synopsis "Ruby gem bundler")
949 (description "Bundler automatically downloads and installs a list of gems
950 specified in a \"Gemfile\", as well as their dependencies.")
951 (home-page "https://bundler.io/")
952 (license license:expat)))
954 (define-public ruby-builder
956 (name "ruby-builder")
960 (uri (rubygems-uri "builder" version))
963 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
964 (build-system ruby-build-system)
967 (modify-phases %standard-phases
968 (add-after 'unpack 'do-not-use-rvm
970 (substitute* "rakelib/tags.rake"
971 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
973 (synopsis "Ruby library to create structured data")
974 (description "Builder provides a number of builder objects that make it
975 easy to create structured data. Currently the following builder objects are
976 supported: XML Markup and XML Events.")
977 (home-page "https://github.com/jimweirich/builder")
978 (license license:expat)))
980 (define-public ruby-bump
987 (uri (rubygems-uri "bump" version))
990 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
991 (build-system ruby-build-system)
993 '(;; No included tests
995 (synopsis "Tool for working with Rubygems")
997 "Bump provides commands to manage Rubygem versioning, updating to the
998 next patch version for example.")
999 (home-page "https://github.com/gregorym/bump")
1000 (license license:expat)))
1002 (define-public ruby-rjb
1008 (uri (rubygems-uri "rjb" version))
1011 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
1012 (build-system ruby-build-system)
1014 `(#:tests? #f ; no rakefile
1016 (modify-phases %standard-phases
1017 (add-before 'build 'set-java-home
1018 (lambda* (#:key inputs #:allow-other-keys)
1019 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1022 `(("jdk" ,icedtea "jdk")))
1023 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1024 (description "RJB is a bridge program that connects Ruby and Java via the
1025 Java Native Interface.")
1026 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1027 (license license:lgpl2.1+)))
1029 (define-public ruby-log4r
1036 (uri (rubygems-uri "log4r" version))
1039 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1040 (build-system ruby-build-system)
1042 '(#:tests? #f)) ; no Rakefile in gem
1043 (synopsis "Flexible logging library for Ruby")
1044 (description "Comprehensive and flexible logging library written
1045 in Ruby for use in Ruby programs. It features a hierarchical logging
1046 system of any number of levels, custom level names, logger
1047 inheritance, multiple output destinations per log event, execution
1048 tracing, custom formatting, thread safteyness, XML and YAML
1049 configuration, and more.")
1050 (home-page "http://log4r.rubyforge.org/")
1051 (license license:bsd-3)))
1053 (define-public ruby-atoulme-antwrap
1055 (name "ruby-atoulme-antwrap")
1059 (uri (rubygems-uri "atoulme-Antwrap" version))
1062 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1063 (build-system ruby-build-system)
1064 ;; Test data required for most of the tests are not included.
1065 (arguments `(#:tests? #f))
1067 `(("ruby-hoe" ,ruby-hoe)))
1069 `(("ruby-rjb" ,ruby-rjb)))
1070 (synopsis "Ruby wrapper for the Ant build tool")
1071 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1072 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1074 (home-page "http://rubyforge.org/projects/antwrap/")
1075 (license license:expat)))
1077 (define-public ruby-atoulme-saikuro
1079 (name "ruby-atoulme-saikuro")
1083 (uri (rubygems-uri "atoulme-Saikuro" version))
1086 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1087 (build-system ruby-build-system)
1088 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1090 (arguments `(#:tests? #f))
1091 (synopsis "Cyclomatic complexity analyzer")
1092 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1093 given Ruby source code Saikuro will generate a report listing the cyclomatic
1094 complexity of each method found. In addition, Saikuro counts the number of
1095 lines per method and can generate a listing of the number of tokens on each
1097 (home-page "http://www.github.com/atoulme/Saikuro")
1098 ;; File headers contain the BSD-3 license and the README.rdoc says that
1099 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1100 ;; of the Expat license.
1101 (license license:bsd-3)))
1103 (define-public ruby-pandoc-ruby
1105 (name "ruby-pandoc-ruby")
1109 (method git-fetch) ;the gem lacks many test files
1111 (url "https://github.com/xwmx/pandoc-ruby")
1113 (file-name (git-file-name name version))
1116 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1117 (build-system ruby-build-system)
1120 (modify-phases %standard-phases
1121 (add-after 'unpack 'disable-failing-tests
1122 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1123 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1125 (substitute* "test/test_conversions.rb"
1126 (("next if from == to.*" all)
1129 " next if ['plain', 'beamer'].include? to\n")))
1131 (add-after 'unpack 'patch-pandoc-path
1132 (lambda* (#:key inputs #:allow-other-keys)
1133 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1135 (substitute* "lib/pandoc-ruby.rb"
1136 (("@@pandoc_path = 'pandoc'")
1137 (format #f "@@pandoc_path = '~a'" pandoc)))
1138 (substitute* "test/test_pandoc_ruby.rb"
1139 (("('|\")pandoc" _ quote)
1140 (string-append quote pandoc))
1144 (add-after 'extract-gemspec 'remove-Gemfile.lock
1146 (delete-file "Gemfile.lock")
1147 (substitute* "pandoc-ruby.gemspec"
1148 (("Gemfile\\.lock") ""))
1151 `(("ruby-mocha" ,ruby-mocha)))
1153 `(("pandoc" ,pandoc)))
1154 (synopsis "Ruby wrapper for Pandoc")
1155 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1156 command line tools for converting one markup format to another. Pandoc can
1157 convert documents from a variety of formats including markdown,
1158 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1159 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1160 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1161 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1163 (home-page "https://github.com/xwmx/pandoc-ruby")
1164 (license license:expat)))
1166 (define-public ruby-slim
1173 (uri (rubygems-uri "slim" version))
1176 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1177 (build-system ruby-build-system)
1180 (modify-phases %standard-phases
1181 ;; See: https://github.com/slim-template/slim/issues/857 and
1182 ;; https://github.com/slim-template/slim/issues/858.
1183 (add-after 'unpack 'skip-broken-tests
1185 (substitute* "test/core/test_embedded_engines.rb"
1186 (("def test_render_with_markdown")
1187 "def skipped_test_render_with_markdown"))
1188 (substitute* "test/translator/test_translator.rb"
1189 (("raise (\"Missing test for.*)" _ tail)
1190 (string-append "print " tail)))
1192 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1193 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1194 (add-after 'unpack 'prevent-bundler-interference
1196 (substitute* "Rakefile"
1197 (("require 'bundler/setup'") "nil")
1198 (("Bundler::GemHelper\\.install_tasks") "nil"))
1201 `(("ruby-rack-test" ,ruby-rack-test)
1202 ("ruby-sinatra" ,ruby-sinatra)))
1204 `(("ruby-temple" ,ruby-temple)
1205 ("ruby-tilt" ,ruby-tilt)))
1206 (synopsis "Minimalist template language for Ruby")
1207 (description "Slim is a template language for Ruby that aims to reduce the
1208 syntax to the minimum while remaining clear.")
1209 (home-page "http://slim-lang.com/")
1210 (license license:expat)))
1212 (define-public ruby-asciidoctor
1214 (name "ruby-asciidoctor")
1218 (method git-fetch) ;the gem release lacks a Rakefile
1220 (url "https://github.com/asciidoctor/asciidoctor")
1221 (commit (string-append "v" version))))
1222 (file-name (git-file-name name version))
1225 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1226 (build-system ruby-build-system)
1228 `(#:test-target "test:all"
1230 (modify-phases %standard-phases
1231 (replace 'replace-git-ls-files
1233 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1234 ;; git ls-files output is merged in ruby-build-system.
1235 (substitute* "asciidoctor.gemspec"
1236 (("`git ls-files -z`")
1237 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1239 (add-after 'extract-gemspec 'strip-version-requirements
1241 (delete-file "Gemfile")
1242 (substitute* "asciidoctor.gemspec"
1243 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1244 (string-append stripped "\n")))
1247 `(("ruby-erubis" ,ruby-erubis)
1248 ("ruby-minitest" ,ruby-minitest)
1249 ("ruby-nokogiri" ,ruby-nokogiri)
1250 ("ruby-asciimath" ,ruby-asciimath)
1251 ("ruby-coderay" ,ruby-coderay)
1252 ("ruby-cucumber" ,ruby-cucumber)
1253 ("ruby-haml" ,ruby-haml)
1254 ("ruby-rouge" ,ruby-rouge)
1255 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1256 ("ruby-simplecov" ,ruby-simplecov)
1257 ("ruby-slim" ,ruby-slim)
1258 ("ruby-tilt" ,ruby-tilt)))
1259 (synopsis "Converter from AsciiDoc content to other formats")
1260 (description "Asciidoctor is a text processor and publishing toolchain for
1261 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1263 (home-page "https://asciidoctor.org")
1264 (license license:expat)))
1266 (define-public ruby-prawn-icon
1268 (name "ruby-prawn-icon")
1273 (uri (rubygems-uri "prawn-icon" version))
1276 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1277 (build-system ruby-build-system)
1279 `(#:test-target "spec"
1280 #:phases (modify-phases %standard-phases
1281 (add-after 'unpack 'remove-unnecessary-dependencies
1283 (substitute* '("Rakefile" "spec/spec_helper.rb")
1284 ((".*[Bb]undler.*") "")
1285 (("^require 'rubocop.*") "")
1286 (("^RuboCop.*") ""))
1289 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1290 ("ruby-pdf-reader" ,ruby-pdf-reader)
1291 ("ruby-rspec" ,ruby-rspec)
1292 ("ruby-simplecov" ,ruby-simplecov)))
1294 `(("ruby-prawn" ,ruby-prawn)))
1295 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1296 (description "@code{Prawn::Icon} provides various icon fonts including
1297 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1299 (home-page "https://github.com/jessedoyle/prawn-icon/")
1300 (license %prawn-project-licenses)))
1302 (define-public ruby-css-parser
1304 (name "ruby-css-parser")
1309 (uri (rubygems-uri "css_parser" version))
1312 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1313 (build-system ruby-build-system)
1314 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1316 `(("ruby-addressable" ,ruby-addressable)))
1317 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1318 (description "This package allows loading, parsing and cascading Cascading
1319 Style Sheets (CSS) rule sets in Ruby.")
1320 (home-page "https://github.com/premailer/css_parser")
1321 (license license:expat)))
1323 (define-public ruby-prawn-svg
1325 (name "ruby-prawn-svg")
1330 (uri (rubygems-uri "prawn-svg" version))
1333 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1334 (build-system ruby-build-system)
1336 `(#:phases (modify-phases %standard-phases
1337 (add-after 'unpack 'do-not-use-bundler
1339 (substitute* "spec/spec_helper.rb"
1340 ((".*[Bb]undler.*") ""))
1343 (lambda* (#:key tests? #:allow-other-keys)
1345 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1348 `(("ruby-rspec" ,ruby-rspec)))
1350 `(("ruby-css-parser" ,ruby-css-parser)
1351 ("ruby-prawn" ,ruby-prawn)))
1352 (synopsis "SVG renderer for the Prawn PDF library")
1353 (description "This library allows rendering Scalable Vector Graphics (SVG)
1354 graphics directly into a Portable Document Format (PDF) document using the
1356 (home-page "https://github.com/mogest/prawn-svg")
1357 (license license:expat)))
1359 (define-public ruby-prawn-templates
1361 (name "ruby-prawn-templates")
1367 (url "https://github.com/prawnpdf/prawn-templates")
1369 (file-name (git-file-name name version))
1372 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1373 (build-system ruby-build-system)
1375 `(#:phases (modify-phases %standard-phases
1376 (add-after 'unpack 'do-not-use-bundler
1378 (substitute* "spec/spec_helper.rb"
1379 ((".*[Bb]undler.*") ""))
1382 (lambda* (#:key tests? #:allow-other-keys)
1387 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1388 ("ruby-rspec" ,ruby-rspec)))
1390 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1391 ("ruby-prawn" ,ruby-prawn)))
1392 (synopsis "Prawn extension to include or combine PDF documents")
1393 (description "This @strong{unmaintained} package provides a Prawn
1394 extension that allows including other Portable Document Format (PDF) documents
1395 as background or combining several PDF documents into one. This functionality
1396 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1397 of its many longstanding issues.")
1398 (home-page "https://github.com/prawnpdf/prawn-templates")
1399 (license %prawn-project-licenses)))
1401 (define-public ruby-polyglot
1403 (name "ruby-polyglot")
1408 (uri (rubygems-uri "polyglot" version))
1411 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1412 (build-system ruby-build-system)
1413 (arguments `(#:tests? #f)) ;no test suite
1414 (synopsis "Augment @code{require} to load non-Ruby file types")
1415 (description "The Polyglot library allows a Ruby module to register a
1416 loader for the file type associated with a filename extension, and it augments
1417 @code{require} to find and load matching files.")
1418 (home-page "https://github.com/cjheath/polyglot")
1419 (license license:expat)))
1421 (define-public ruby-treetop
1423 (name "ruby-treetop")
1427 (method git-fetch) ;no test suite in distributed gem
1429 (url "https://github.com/cjheath/treetop")
1430 (commit (string-append "v" version))))
1431 (file-name (git-file-name name version))
1434 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1435 (build-system ruby-build-system)
1437 `(#:test-target "spec"
1439 (modify-phases %standard-phases
1440 (replace 'replace-git-ls-files
1442 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1443 ;; git ls-files output is merged in ruby-build-system.
1444 (substitute* "treetop.gemspec"
1445 (("`git ls-files -z`")
1446 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1449 `(("ruby-activesupport" ,ruby-activesupport)
1450 ("ruby-rr" ,ruby-rr)
1451 ("ruby-rspec" ,ruby-rspec)))
1453 `(("ruby-polyglot" ,ruby-polyglot)))
1454 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1455 (description "This package provides a Ruby-based Parsing Expression
1456 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1457 (home-page "https://github.com/cjheath/treetop")
1458 (license license:expat)))
1460 (define-public ruby-rubocop-performance
1462 (name "ruby-rubocop-performance")
1467 (uri (rubygems-uri "rubocop-performance" version))
1470 "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
1471 (build-system ruby-build-system)
1473 `(#:tests? #f)) ;no test suite in the distributed gem
1475 `(("ruby-rubocop" ,ruby-rubocop)))
1476 (synopsis "Performance optimizations checkers for Ruby code")
1477 (description "This package provides a collection of RuboCop cops to check
1478 for performance optimizations in Ruby code.")
1479 (home-page "https://docs.rubocop.org/rubocop-performance/")
1480 (license license:expat)))
1482 (define-public ruby-gimme
1483 (let ((revision "1")
1484 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1487 (version (git-version "0.5.0" revision commit))
1492 (url "https://github.com/searls/gimme")
1494 (file-name (git-file-name name version))
1497 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1498 (build-system ruby-build-system)
1500 `(("ruby-coveralls" ,ruby-coveralls)
1501 ("ruby-cucumber" ,ruby-cucumber)
1502 ("ruby-pry" ,ruby-pry)
1503 ("ruby-simplecov" ,ruby-simplecov)
1504 ("ruby-rspec-given" ,ruby-rspec-given)))
1506 `(;; The cucumber task fails with error: "index 3 out of matches
1507 ;; (IndexError)", apparently due to our newer Cucumber version.
1508 ;; TODO: Try the "default" task with a future release.
1509 #:test-target "spec"
1511 (modify-phases %standard-phases
1512 (add-after 'extract-gemspec 'prepare-for-tests
1514 ;; Delete failing tests (possibly due to our newer rspec
1516 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1517 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1518 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1519 ;; Fix duplicate version requirements and de-register files.
1520 (delete-file "Gemfile")
1521 (delete-file "Gemfile.lock")
1522 (substitute* "gimme.gemspec"
1523 ((".*\"Gemfile\".*") "")
1524 ((".*\"Gemfile\\.lock\",.*") "")
1525 ((".*(rspec|cucumber).*\">= 0\".*") "")
1526 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1527 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1528 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1529 ;; All of these gems relate to development, and are
1530 ;; unnecessary when running the tests.
1531 ((".*(add|gem).*guard-.*") "")
1532 ((".*(add|gem).*jeweler.*") "")
1533 ((".*(add|gem).*pry.*") "")
1534 ((".*(add|gem).*growl.*") "")
1535 ((".*(add|gem).*rb-fsevent.*") ""))
1537 (synopsis "Lightweight test double library for Ruby")
1538 (description "Gimme is a very lightweight test double library for Ruby,
1539 based on Mockito (a mocking framework for Java). It is an opinionated (but
1540 not noisy) means to facilitate test-driving by enabling the authors to specify
1541 only what they care about.")
1542 (home-page "https://github.com/searls/gimme")
1543 (license license:expat))))
1545 (define-public ruby-standard
1547 (name "ruby-standard")
1551 (method git-fetch) ;no test suite in distributed gem
1553 (url "https://github.com/testdouble/standard")
1554 (commit (string-append "v" version))))
1555 (file-name (git-file-name name version))
1558 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1559 (build-system ruby-build-system)
1561 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1564 (modify-phases %standard-phases
1565 (add-after 'unpack 'relax-version-requiremens
1567 (delete-file "Gemfile")
1568 (delete-file "Gemfile.lock")
1570 (replace 'replace-git-ls-files
1572 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1573 ;; git ls-files output is merged in ruby-build-system.
1574 (substitute* "standard.gemspec"
1575 (("`git ls-files -z`")
1576 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1577 |sort -z|cut -zc3-`"))
1580 `(("ruby-gimme" ,ruby-gimme)
1581 ("ruby-pry" ,ruby-pry)
1582 ("ruby-simplecov" ,ruby-simplecov)))
1584 `(("ruby-rubocop" ,ruby-rubocop)
1585 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1586 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1587 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1588 to save time in the following ways:
1590 @item No configuration.
1591 @item Automatically format code.
1592 @item Catch style issues and programmer errors early.
1594 (home-page "https://github.com/testdouble/standard")
1595 (license license:expat)))
1597 (define-public ruby-chunky-png
1599 (name "ruby-chunky-png")
1605 (url "https://github.com/wvanbergen/chunky_png")
1606 (commit (string-append "v" version))))
1607 (file-name (git-file-name name version))
1609 (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h"))))
1610 (build-system ruby-build-system)
1612 `(#:test-target "spec"
1614 (modify-phases %standard-phases
1615 (add-after 'unpack 'disable-bundler
1617 (substitute* (find-files "." "\\.rb$")
1618 (("require.*bundler/setup.*") ""))
1620 (replace 'replace-git-ls-files
1622 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1623 ;; git ls-files output is merged in ruby-build-system.
1624 (substitute* "chunky_png.gemspec"
1626 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1629 `(("bundler" ,bundler)
1630 ("ruby-rspec" ,ruby-rspec)
1631 ("ruby-standard" ,ruby-standard)
1632 ("ruby-yard" ,ruby-yard)))
1633 (synopsis "Ruby library to handle PNG images")
1634 (description "ChunkyPNG is a pure Ruby library that can read and write
1635 Portable Network Graphics (PNG) images without depending on an external image
1636 library. It tries to be memory efficient and reasonably fast. It has
1640 Decoding support for any image that the PNG standard allows. This includes all
1641 standard color modes, all bit depths, all transparency, and interlacing and
1644 Encoding support for images of all color modes (true color, grayscale, and
1645 indexed) and transparency for all these color modes. The best color mode is
1646 chosen automatically, based on the amount of used colors.
1647 @item Read/write access to the image's pixels.
1648 @item Read/write access to all image metadata that is stored in chunks.
1650 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1651 pixel, depending on the hardware).
1653 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1654 integer math and a highly optimized saving routine.
1655 @item Interoperability with RMagick.
1658 ChunkyPNG is vulnerable to decompression bombs and can run out of memory when
1659 loading a specifically crafted PNG file. This is hard to fix in pure Ruby.
1660 Deal with untrusted images in a separate process, e.g., by using @code{fork}
1661 or a background processing library.")
1662 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1663 (license license:expat)))
1665 (define-public ruby-text-hyphen
1667 (name "ruby-text-hyphen")
1672 (uri (rubygems-uri "text-hyphen" version))
1675 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1676 (build-system ruby-build-system)
1678 `(("ruby-hoe" ,ruby-hoe)))
1679 (synopsis "Ruby library to hyphenate words in various languages")
1680 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1681 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1682 properly hyphenate various words according to the rules of the language the
1683 word is written in. The algorithm is based on that of the TeX typesetting
1684 system by Donald E. Knuth.")
1685 (home-page "https://github.com/halostatue/text-hyphen")
1686 ;; The whole is licensed under the Expat license, but parts use various
1687 ;; versions of the LaTeX Project Public License.
1688 (license license:expat)))
1690 (define-public ruby-open-uri-cached
1692 (name "ruby-open-uri-cached")
1697 (uri (rubygems-uri "open-uri-cached" version))
1700 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1701 (build-system ruby-build-system)
1703 `(#:tests? #f)) ;no test suite
1704 (synopsis "OpenURI with transparent disk caching")
1705 (description "OpenURI with transparent disk caching, which is
1706 useful to avoid making excessive queries, for example when scraping
1708 (home-page "https://github.com/tigris/open-uri-cached")
1709 (license license:expat)))
1711 (define-public ruby-asciidoctor-pdf
1712 ;; Use the latest commit, as the last tag doesn't build with the
1713 ;; latest Ruby dependencies in Guix.
1714 (let ((revision "1")
1715 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1717 (name "ruby-asciidoctor-pdf")
1718 (version (git-version "1.5.3" revision commit))
1721 (method git-fetch) ;no test suite in the distributed gem
1723 (url "https://github.com/asciidoctor/asciidoctor-pdf")
1725 (file-name (git-file-name name version))
1728 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1729 (build-system ruby-build-system)
1731 `(#:test-target "spec"
1733 (modify-phases %standard-phases
1734 (add-after 'unpack 'remove-failing-tests
1735 ;; Two tests module fail for unknown reasons, *only* when
1736 ;; ran in the build container (see:
1737 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1739 (delete-file "spec/audio_spec.rb")
1740 (delete-file "spec/video_spec.rb")
1742 (add-after 'extract-gemspec 'strip-version-requirements
1744 (substitute* "asciidoctor-pdf.gemspec"
1745 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1746 (string-append stripped "\n")))
1748 (replace 'replace-git-ls-files
1749 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1750 ;; git ls-files output is merged in ruby-build-system.
1752 (substitute* "asciidoctor-pdf.gemspec"
1753 (("`git ls-files -z`")
1754 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1755 |sort -z|cut -zc3-`"))
1757 ;; The tests rely on the Gem being installed, so move the check phase
1758 ;; after the install phase.
1760 (add-after 'install 'check
1761 (lambda* (#:key outputs tests? #:allow-other-keys)
1762 (let ((new-gem (string-append (assoc-ref outputs "out")
1763 "/lib/ruby/vendor_ruby")))
1765 (string-append (getenv "GEM_PATH") ":" new-gem))
1767 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1770 `(("ruby-chunky-png" ,ruby-chunky-png)
1771 ("ruby-coderay" ,ruby-coderay)
1772 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1773 ("ruby-rouge" ,ruby-rouge)
1774 ("ruby-rspec" ,ruby-rspec)))
1776 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1777 ("ruby-concurrent-ruby" ,ruby-concurrent)
1778 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1779 ("ruby-prawn" ,ruby-prawn)
1780 ("ruby-prawn-icon" ,ruby-prawn-icon)
1781 ("ruby-prawn-svg" ,ruby-prawn-svg)
1782 ("ruby-prawn-table" ,ruby-prawn-table)
1783 ("ruby-prawn-templates" ,ruby-prawn-templates)
1784 ("ruby-safe-yaml" ,ruby-safe-yaml)
1785 ("ruby-text-hyphen" ,ruby-text-hyphen)
1786 ("ruby-thread-safe" ,ruby-thread-safe)
1787 ("ruby-treetop" ,ruby-treetop)
1788 ("ruby-ttfunk" ,ruby-ttfunk)))
1789 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1790 (description "Asciidoctor PDF is an extension for Asciidoctor that
1791 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1792 PDF library. It has features such as:
1794 @item Direct AsciiDoc to PDF conversion
1795 @item Configuration-driven theme (style and layout)
1796 @item Scalable Vector Graphics (SVG) support
1797 @item PDF document outline (i.e., bookmarks)
1798 @item Table of contents page(s)
1799 @item Document metadata (title, authors, subject, keywords, etc.)
1800 @item Internal cross reference links
1801 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1802 @item Page numbering
1803 @item Customizable running content (header and footer)
1805 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1806 @item Orphaned section titles avoided
1807 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1808 @item Table border settings honored
1809 @item Font-based icons
1810 @item Custom TrueType (TTF) fonts
1811 @item Double-sided printing mode (margins alternate on recto and verso pages)
1813 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1814 (license license:expat))))
1816 (define-public ruby-ast
1822 (method git-fetch) ;no test included in gem from v2.4.1
1824 (url "https://github.com/whitequark/ast")
1825 (commit (string-append "v" version))))
1826 (file-name (git-file-name name version))
1829 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1830 (build-system ruby-build-system)
1833 (modify-phases %standard-phases
1834 (add-after 'unpack 'remove-coveralls-requirement
1836 (substitute* "test/helper.rb"
1837 (("require 'coveralls'") "")
1838 (("Coveralls::SimpleCov::Formatter") ""))
1840 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1842 (substitute* "ast.gemspec"
1843 ((".*coveralls.*") "\n")
1844 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1845 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1846 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1849 `(("bundler" ,bundler)
1850 ("ruby-simplecov" ,ruby-simplecov)
1851 ("ruby-json-pure" ,ruby-json-pure)
1852 ("ruby-mime-times" ,ruby-mime-types)
1853 ("ruby-yard" ,ruby-yard)
1854 ("ruby-kramdown" ,ruby-kramdown)
1855 ("ruby-rest-client" ,ruby-rest-client)
1856 ("ruby-bacon" ,ruby-bacon)
1857 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1858 ("ruby-racc" ,ruby-racc)))
1859 (synopsis "Library for working with Abstract Syntax Trees")
1861 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1862 It does this through immutable data structures.")
1863 (home-page "https://whitequark.github.io/ast/")
1864 (license license:expat)))
1866 (define-public ruby-sporkmonger-rack-mount
1867 ;; Testing the addressable gem requires a newer commit than that released, so
1868 ;; use an up to date version.
1869 (let ((revision "1")
1870 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1872 (name "ruby-sporkmonger-rack-mount")
1873 (version (git-version "0.8.3" revision commit))
1877 (url "https://github.com/sporkmonger/rack-mount")
1879 (file-name (git-file-name name version))
1882 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1883 (build-system ruby-build-system)
1885 ;; Tests currently fail so disable them.
1886 ;; https://github.com/sporkmonger/rack-mount/pull/1
1888 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1889 (synopsis "Stackable dynamic tree based Rack router")
1891 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1892 continue trying routes if the response returns pass. This allows multiple
1893 routes to be nested or stacked on top of each other.")
1894 (home-page "https://github.com/sporkmonger/rack-mount")
1895 (license license:expat))))
1897 (define-public ruby-ci-reporter
1899 (name "ruby-ci-reporter")
1903 (uri (rubygems-uri "ci_reporter" version))
1906 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1907 (build-system ruby-build-system)
1909 `(#:test-target "rspec"))
1911 `(("ruby-builder" ,ruby-builder)))
1913 `(("bundler" ,bundler)
1914 ("ruby-rspec" ,ruby-rspec)))
1915 (synopsis "Generate XML reports of runs test")
1917 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1918 you to generate XML reports of your test runs. The resulting files can be
1919 read by a continuous integration system that understands Ant's JUnit report
1921 (home-page "https://github.com/nicksieger/ci_reporter")
1922 (license license:expat)))
1924 (define-public ruby-contracts
1926 (name "ruby-contracts")
1931 (uri (rubygems-uri "contracts" version))
1934 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1935 (build-system ruby-build-system)
1937 '(#:test-target "spec"
1939 (modify-phases %standard-phases
1940 ;; Don't run or require rubocop, the code linting tool, as this is a
1942 (add-after 'unpack 'dont-run-rubocop
1944 (substitute* "Rakefile"
1945 ((".*rubocop.*") "")
1946 ((".*RuboCop.*") ""))
1949 `(("ruby-rspec" ,ruby-rspec)))
1950 (synopsis "Method contracts for Ruby")
1952 "This library provides contracts for Ruby. A contract describes the
1953 correct inputs and output for a method, and will raise an error if a incorrect
1955 (home-page "https://github.com/egonSchiele/contracts.ruby")
1956 (license license:bsd-2)))
1958 (define-public ruby-crack
1965 (uri (rubygems-uri "crack" version))
1968 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1969 (build-system ruby-build-system)
1972 (modify-phases %standard-phases
1974 (lambda* (#:key tests? #:allow-other-keys)
1976 (for-each (lambda (file)
1977 (display file)(display "\n")
1978 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1979 (find-files "test" ".*rb$")))
1982 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1983 (synopsis "Simple JSON and XML parsing for Ruby")
1985 "@code{crack} provides really simple JSON and XML parsing, extracted from
1986 code in Merb and Rails.")
1987 (home-page "https://github.com/jnunemaker/crack")
1988 (license license:expat)))
1990 (define-public ruby-cliver
1992 (name "ruby-cliver")
1997 (uri (rubygems-uri "cliver" version))
2000 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
2001 (build-system ruby-build-system)
2004 (modify-phases %standard-phases
2005 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
2006 ;; would be nice, but the tests look to be incompatible:
2008 ;; NoMethodError: undefined method `last_comment'
2010 (lambda* (#:key tests? #:allow-other-keys)
2015 `(("bundler" ,bundler)
2016 ("ruby-rspec" ,ruby-rspec-2)))
2017 (synopsis "Assertions for command-line dependencies in Ruby")
2019 "@code{cliver} provides a way to detect missing command-line
2020 dependencies, including versions.")
2021 (home-page "https://github.com/yaauie/cliver")
2022 (license license:expat)))
2024 (define-public ruby-czmq-ffi-gen
2026 (name "ruby-czmq-ffi-gen")
2031 (uri (rubygems-uri "czmq-ffi-gen" version))
2034 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2035 (build-system ruby-build-system)
2037 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2039 (modify-phases %standard-phases
2040 (add-after 'unpack 'patch-lib_dirs
2041 (lambda* (#:key inputs #:allow-other-keys)
2042 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2043 (("lib\\_dirs = \\[.*\\]")
2044 (string-append "lib_dirs = ['"
2045 (assoc-ref inputs "czmq") "/lib"
2047 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2048 (("lib\\_dirs = \\[.*\\]")
2049 (string-append "lib_dirs = ['"
2050 (assoc-ref inputs "zeromq") "/lib"
2053 `(("zeromq" ,zeromq)
2055 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2056 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2058 "These Ruby bindings are not intended to be directly used, but rather
2059 used by higher level bindings like those provided by CZTop.")
2061 "https://github.com/paddor/czmq-ffi-gen")
2062 (license license:isc)))
2064 (define-public ruby-cztop
2071 (uri (rubygems-uri "cztop" version))
2074 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2075 (build-system ruby-build-system)
2077 '(#:test-target "spec"
2079 (modify-phases %standard-phases
2080 (add-after 'unpack 'patch-lib_paths
2081 (lambda* (#:key inputs #:allow-other-keys)
2082 (substitute* "lib/cztop/poller/zmq.rb"
2083 (("lib\\_paths = \\[.*\\]")
2084 (string-append "lib_paths = ['"
2085 (assoc-ref inputs "zeromq") "/lib"
2088 `(("bundler" ,bundler)
2089 ("ruby-rspec" ,ruby-rspec)))
2091 `(("zeromq" ,zeromq)))
2093 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2094 (synopsis "CZMQ Ruby bindings")
2096 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2097 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2098 support for security mechanisms.")
2099 (home-page "https://github.com/paddor/cztop")
2100 (license license:isc)))
2102 (define-public ruby-saikuro-treemap
2104 (name "ruby-saikuro-treemap")
2108 (uri (rubygems-uri "saikuro_treemap" version))
2111 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2112 (build-system ruby-build-system)
2113 ;; Some of the tests fail because the generated JSON has keys in a
2114 ;; different order. This is a problem with the test suite rather than any
2115 ;; of the involved libraries.
2116 (arguments `(#:tests? #f))
2118 `(("ruby-json-pure" ,ruby-json-pure)
2119 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2120 (synopsis "Generate complexity treemap based on saikuro analysis")
2122 "This gem generates a treemap showing the complexity of Ruby code on
2123 which it is run. It uses Saikuro under the covers to analyze Ruby code
2125 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2126 (license license:expat)))
2128 (define-public ruby-oauth2
2130 (name "ruby-oauth2")
2135 (uri (rubygems-uri "oauth2" version))
2137 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2138 (build-system ruby-build-system)
2140 '(#:tests? #f)) ; no included tests
2142 `(("ruby-faraday" ,ruby-faraday)
2143 ("ruby-jwt" ,ruby-jwt)
2144 ("ruby-multi-json" ,ruby-multi-json)
2145 ("ruby-multi-xml" ,ruby-multi-xml)
2146 ("ruby-rack" ,ruby-rack)))
2147 (synopsis "Ruby wrapper for the OAuth 2.0")
2149 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2150 with a similar style to the original OAuth spec.")
2151 (home-page "https://github.com/oauth-xx/oauth2")
2152 (license license:expat)))
2154 (define-public ruby-omniauth
2156 (name "ruby-omniauth")
2161 (uri (rubygems-uri "omniauth" version))
2163 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2164 (build-system ruby-build-system)
2166 '(#:tests? #f)) ; No included tests
2168 `(("ruby-hashie" ,ruby-hashie)
2169 ("ruby-rack" ,ruby-rack)))
2170 (synopsis "Generalized Rack framework for multiple-provider authentication")
2172 "This package provides a generalized Rack framework for multiple-provider
2174 (home-page "https://github.com/omniauth/omniauth")
2175 (license license:expat)))
2177 (define-public ruby-omniauth-oauth2
2179 (name "ruby-omniauth-oauth2")
2184 (uri (rubygems-uri "omniauth-oauth2" version))
2187 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2188 (build-system ruby-build-system)
2191 (modify-phases %standard-phases
2192 (add-after 'unpack 'remove-unnecessary-dependencies
2194 ;; The coveralls gem submits coverage information to an online
2195 ;; service, and is unnecessary when running the tests
2196 (substitute* "Gemfile"
2197 ((".*coveralls\"") ""))
2198 (substitute* "spec/helper.rb"
2199 (("require \"coveralls\"") "")
2200 (("Coveralls::SimpleCov::Formatter") ""))
2203 `(("ruby-oauth2" ,ruby-oauth2)
2204 ("ruby-omniauth" ,ruby-omniauth)))
2206 `(("bundler" ,bundler)
2207 ("ruby-rspec" ,ruby-rspec)
2208 ("ruby-simplecov" ,ruby-simplecov)
2209 ("ruby-rack-test" ,ruby-rack-test)
2210 ("ruby-webmock" ,ruby-webmock-2)))
2211 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2213 "This library provides a generic OAuth2 strategy for OmniAuth. It
2214 doesn't provide a way to gather user information, so should be used as a
2215 building block for authentication strategies.")
2216 (home-page "https://github.com/omniauth/omniauth-oauth2")
2217 (license license:expat)))
2219 (define-public ruby-open4
2226 (uri (rubygems-uri "open4" version))
2229 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2230 (build-system ruby-build-system)
2233 (modify-phases %standard-phases
2234 (add-after 'unpack 'patch
2236 (substitute* "rakefile"
2237 ;; Update the Rakefile so it works
2238 (("-rubygems") "-rrubygems")
2239 (("Config") "RbConfig"))
2241 (add-before 'check 'set-LIB
2243 ;; This is used in the rakefile when running the tests
2244 (setenv "LIB" "open4")
2246 (synopsis "Open child processes from Ruby and manage them easily")
2248 "@code{Open4} is a Ruby library to run child processes and manage their
2250 (home-page "https://github.com/ahoward/open4")
2251 (license license:ruby)))
2253 (define-public ruby-options
2255 (name "ruby-options")
2260 (uri (rubygems-uri "options" version))
2263 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2264 (build-system ruby-build-system)
2266 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2268 (modify-phases %standard-phases
2269 (add-before 'check 'set-LIB
2271 ;; This is used in the Rakefile, and setting it avoids an issue
2272 ;; with running the tests.
2273 (setenv "LIB" "options")
2275 (synopsis "Ruby library to parse options from *args cleanly")
2277 "The @code{options} library helps with parsing keyword options in Ruby
2279 (home-page "https://github.com/ahoward/options")
2280 (license license:ruby)))
2282 (define-public ruby-erubi
2289 (uri (rubygems-uri "erubi" version))
2292 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2293 (build-system ruby-build-system)
2294 (synopsis "ERB template engine for Ruby")
2296 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2298 (home-page "https://github.com/jeremyevans/erubi")
2299 (license license:expat)))
2301 (define-public ruby-erubis
2303 (name "ruby-erubis")
2308 (uri (rubygems-uri "erubis" version))
2311 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2312 (build-system ruby-build-system)
2314 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2315 (synopsis "Implementation of embedded Ruby (eRuby)")
2317 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2318 features such as multi-language support, auto escaping, auto trimming spaces
2319 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2321 (home-page "http://www.kuwata-lab.com/erubis/")
2322 (license license:expat)))
2324 (define-public ruby-execjs
2326 (name "ruby-execjs")
2330 ;; fetch from github as the gem does not contain testing code
2333 (url "https://github.com/rails/execjs")
2334 (commit (string-append "v" version))))
2335 (file-name (git-file-name name version))
2338 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2339 (build-system ruby-build-system)
2341 `(("bundler" ,bundler)
2342 ;; The test suite tests all the available backends. Currenly, this just
2343 ;; means the node backend.
2345 ;; PASSED: test:node
2346 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2347 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2349 (synopsis "Run JavaScript code from Ruby")
2351 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2352 runtime to evaluate your JavaScript program, then returns the result to you as
2354 (home-page "https://github.com/rails/execjs")
2355 (license license:expat)))
2357 (define-public ruby-fakefs
2359 (name "ruby-fakefs")
2361 (home-page "https://github.com/fakefs/fakefs")
2363 ;; The Rubygems release does not contain tests.
2367 (commit (string-append "v" version))))
2368 (file-name (git-file-name name version))
2371 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2372 (build-system ruby-build-system)
2374 '(#:phases (modify-phases %standard-phases
2375 (replace 'replace-git-ls-files
2377 (substitute* "fakefs.gemspec"
2378 (("`git ls-files lib README.md LICENSE`")
2379 "`find lib README.md LICENSE -type f | sort`"))
2381 (add-before 'check 'remove-version-constraints
2383 ;; Drop hard version requirements for test dependencies.
2384 (substitute* "fakefs.gemspec"
2385 (("(.*add_development_dependency .*), .*" _ dep)
2386 (string-append dep "\n")))
2389 `(("ruby-bump" ,ruby-bump)
2390 ("ruby-maxitest" ,ruby-maxitest)
2391 ("ruby-rubocop" ,ruby-rubocop)
2392 ("ruby-rspec" ,ruby-rspec)))
2393 (synopsis "Fake file system for Ruby")
2395 "This package provides a fake file system for use in test suites. It
2396 avoids the need for manually creating temporary directories, or dealing
2397 with platform intricacies in @code{File} and @code{FileUtils}.")
2398 (license license:expat)))
2400 (define-public ruby-orderedhash
2402 (name "ruby-orderedhash")
2406 (uri (rubygems-uri "orderedhash" version))
2409 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2410 (build-system ruby-build-system)
2412 '(#:tests? #f)) ; no test suite
2413 (synopsis "Ruby library providing an order-preserving hash")
2414 (description "Orderedhash is a Ruby library providing a hash
2415 implementation that preserves the order of items and features some array-like
2417 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2418 (license license:public-domain)))
2420 (define-public ruby-libxml
2422 (name "ruby-libxml")
2427 (uri (rubygems-uri "libxml-ruby" version))
2430 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2431 (build-system ruby-build-system)
2434 ("libxml2" ,libxml2)))
2436 '(#:tests? #f ; test suite hangs for unknown reason
2438 (list "--no-document" ; TODO: Re-enable when documentation
2441 (string-append "--with-xml2-include="
2442 (assoc-ref %build-inputs "libxml2")
2443 "/include/libxml2" ))))
2444 (synopsis "Ruby bindings for GNOME Libxml2")
2445 (description "The Libxml-Ruby project provides Ruby language bindings for
2446 the GNOME Libxml2 XML toolkit.")
2447 (home-page "https://xml4r.github.com/libxml-ruby")
2448 (license license:expat)))
2450 (define-public ruby-lino
2457 (uri (rubygems-uri "lino" version))
2460 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2461 (build-system ruby-build-system)
2463 '(#:tests? #f)) ; No included tests
2465 `(("ruby-hamster" ,ruby-hamster)
2466 ("ruby-open4" ,ruby-open4)))
2467 (synopsis "Build and execute commands in Ruby")
2469 "@code{Lino} provides an interface to run external commands. It provides
2470 an interface to add options as well as managing the standard input, output and
2472 (home-page "https://github.com/tobyclemson/lino")
2473 (license license:expat)))
2475 (define-public ruby-xml-simple
2477 (name "ruby-xml-simple")
2481 (uri (rubygems-uri "xml-simple" version))
2484 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2485 (build-system ruby-build-system)
2487 '(#:tests? #f)) ; no test suite
2488 (synopsis "Simple Ruby library for XML processing")
2489 (description "This library provides a simple API for XML processing in
2491 (home-page "https://github.com/maik/xml-simple")
2492 (license license:ruby)))
2494 (define-public ruby-thor
2499 ;; Pull from git because the gem has no tests.
2502 (url "https://github.com/erikhuda/thor")
2503 (commit (string-append "v" version))))
2504 (file-name (git-file-name name version))
2507 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2508 (build-system ruby-build-system)
2510 '(#:phases (modify-phases %standard-phases
2511 (add-after 'unpack 'fix-readline-tests
2513 ;; Ensure Readline is initialized before running the
2514 ;; test to avoid a type clash with the mock ::Readline.
2515 ;; See <https://github.com/erikhuda/thor/pull/717>.
2516 (substitute* "spec/line_editor/readline_spec.rb"
2517 (("unless defined\\? ::Readline" all)
2518 (string-append "Thor::LineEditor::Readline.available?\n"
2521 (add-after 'unpack 'remove-coveralls-dependency
2523 ;; Do not hook the test suite into the online
2524 ;; coveralls service.
2525 (substitute* "Gemfile"
2526 ((".*coveralls.*") ""))
2527 (substitute* "spec/helper.rb"
2528 (("require \"coveralls\"") "")
2529 (("Coveralls::SimpleCov::Formatter") "")
2530 ;; Also drop the WebMock dependency which is only
2531 ;; present to allow a coveralls.io connection, and
2532 ;; would otherwise introduce a circular dependency.
2533 (("require \"webmock/rspec\"") "")
2534 (("WebMock\\.disable_net_connect.*") ""))
2536 (add-after 'unpack 'disable-network-tests
2538 ;; These tests attempt to look up example.com.
2539 (substitute* "spec/actions/file_manipulation_spec.rb"
2540 (("it \"accepts (https?) remote sources" _ proto)
2541 (string-append "xit \"accepts " proto " remote sources")))
2543 (add-after 'unpack 'disable-quality-tests
2545 ;; These tests attempt to check the git repository for
2546 ;; tabs vs spaces, double vs single quotes, etc, and
2547 ;; depend on the git checkout.
2548 (delete-file "spec/quality_spec.rb")
2550 (add-before 'check 'make-files-writable
2552 ;; The tests needs rw access to the test suite.
2553 (for-each make-file-writable (find-files "spec"))
2557 (invoke "rspec" "spec"))))))
2559 `(("ruby-rspec" ,ruby-rspec)
2560 ("ruby-simplecov" ,ruby-simplecov)))
2561 (synopsis "Ruby toolkit for building command-line interfaces")
2562 (description "Thor is a toolkit for building powerful command-line
2564 (home-page "http://whatisthor.com/")
2565 (license license:expat)))
2567 (define-public ruby-lumberjack
2569 (name "ruby-lumberjack")
2573 (uri (rubygems-uri "lumberjack" version))
2576 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2577 (build-system ruby-build-system)
2579 `(("ruby-rspec" ,ruby-rspec)
2580 ("ruby-timecop" ,ruby-timecop)))
2581 (synopsis "Logging utility library for Ruby")
2582 (description "Lumberjack is a simple logging utility that can be a drop in
2583 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2584 for automatically rolling log files even with multiple processes writing the
2586 (home-page "https://github.com/bdurand/lumberjack")
2587 (license license:expat)))
2589 (define-public ruby-rbnacl
2591 (name "ruby-rbnacl")
2596 (uri (rubygems-uri "rbnacl" version))
2599 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2600 (build-system ruby-build-system)
2603 (modify-phases %standard-phases
2604 (add-after 'unpack 'remove-unnecessary-dependencies
2606 ;; Coveralls relates to a network service, and Rubocop to code
2607 ;; linting and both are unnecessary to run the tests
2608 (substitute* "Gemfile"
2609 ((".*rubocop.*") "\n")
2610 ((".*guard-rspec.*") "\n")
2611 ((".*coveralls.*") "\n"))
2612 (substitute* "spec/spec_helper.rb"
2613 (("require \"coveralls\"") "")
2614 (("Coveralls.wear!") ""))
2616 (add-after 'unpack 'use-libsodium-from-store
2617 (lambda* (#:key inputs #:allow-other-keys)
2618 (substitute* '("lib/rbnacl/init.rb"
2619 "lib/rbnacl/sodium.rb")
2620 (("ffi_lib \\[.+\\]")
2621 (string-append "ffi_lib [\""
2622 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2625 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2627 (lambda* (#:key tests? #:allow-other-keys)
2632 `(("ruby-ffi" ,ruby-ffi)))
2634 `(("libsodium" ,libsodium)))
2636 `(("bundler" ,bundler)
2637 ("ruby-rspec" ,ruby-rspec)))
2638 (synopsis "Ruby FFI binding to libsodium")
2640 "This package provides Ruby FFI bindings to the Networking and
2641 Cryptography (NaCl) library, also known as libsodium. This provides a
2642 high-level toolkit for building cryptographic systems and protocols.")
2643 (home-page "https://github.com/crypto-rb/rbnacl")
2644 (license license:expat)))
2646 (define-public ruby-nenv
2652 (uri (rubygems-uri "nenv" version))
2655 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2656 (build-system ruby-build-system)
2658 `(#:tests? #f)) ; no tests included
2660 `(("ruby-rspec" ,ruby-rspec)
2661 ("bundler" ,bundler)))
2662 (synopsis "Ruby interface for modifying the environment")
2663 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2664 and inspect the environment.")
2665 (home-page "https://github.com/e2/nenv")
2666 (license license:expat)))
2668 (define-public ruby-ptools
2670 (name "ruby-ptools")
2674 (uri (rubygems-uri "ptools" version))
2677 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2678 (build-system ruby-build-system)
2680 '(#:phases (modify-phases %standard-phases
2681 (add-after 'unpack 'patch-/bin/ls
2683 (substitute* "test/test_binary.rb"
2687 (add-before 'install 'create-gem
2689 ;; Do not attempt to sign the gem.
2690 (substitute* "Rakefile"
2691 (("spec\\.signing_key = .*")
2693 (invoke "rake" "gem:create"))))))
2694 (synopsis "Extra methods for Ruby's @code{File} class")
2696 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2697 class with many additional methods modelled after common POSIX tools, such as
2698 @code{File.which} for finding executables, @code{File.tail} to print the last
2699 lines of a file, @code{File.wc} to count words, and so on.")
2700 (home-page "https://github.com/djberg96/ptools")
2701 (license license:artistic2.0)))
2703 (define-public ruby-permutation
2705 (name "ruby-permutation")
2709 (uri (rubygems-uri "permutation" version))
2712 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2713 (build-system ruby-build-system)
2716 (modify-phases %standard-phases
2717 (add-after 'unpack 'fix-rakefile
2719 (substitute* "Rakefile"
2720 (("require 'rake/gempackagetask'")
2721 "require 'rubygems/package_task'")
2722 (("include Config") ""))
2726 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2727 (synopsis "Library to perform operations with sequence permutations")
2728 (description "This package provides a Ruby library to perform different
2729 operations with permutations of sequences, such as strings and arrays.")
2730 (home-page "https://flori.github.io/permutation")
2731 (license license:gpl2))) ; GPL 2 only
2733 (define-public ruby-shellany
2735 (name "ruby-shellany")
2739 (uri (rubygems-uri "shellany" version))
2742 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2743 (build-system ruby-build-system)
2745 `(#:test-target "default"
2747 (modify-phases %standard-phases
2748 (add-after 'unpack 'fix-version-test
2750 (substitute* "spec/shellany_spec.rb"
2751 (("^RSpec") "require \"shellany\"\nRSpec"))
2754 `(("ruby-rspec" ,ruby-rspec)
2755 ("ruby-nenv" ,ruby-nenv)
2756 ("bundler" ,bundler)))
2757 (synopsis "Capture command output")
2758 (description "Shellany is a Ruby library providing functions to capture
2759 the output produced by running shell commands.")
2760 (home-page "https://rubygems.org/gems/shellany")
2761 (license license:expat)))
2763 (define-public ruby-notiffany
2765 (name "ruby-notiffany")
2769 (uri (rubygems-uri "notiffany" version))
2772 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2773 (build-system ruby-build-system)
2774 ;; Tests are not included in the gem.
2775 (arguments `(#:tests? #f))
2777 `(("ruby-shellany" ,ruby-shellany)
2778 ("ruby-nenv" ,ruby-nenv)))
2780 `(("bundler" ,bundler)))
2781 (synopsis "Wrapper library for notification libraries")
2782 (description "Notiffany is a Ruby wrapper library for notification
2783 libraries such as Libnotify.")
2784 (home-page "https://github.com/guard/notiffany")
2785 (license license:expat)))
2787 (define-public ruby-forking-test-runner
2789 (name "ruby-forking-test-runner")
2791 (home-page "https://github.com/grosser/forking_test_runner")
2794 (uri (git-reference (url home-page)
2795 (commit (string-append "v" version))))
2796 (file-name (git-file-name name version))
2799 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2800 (build-system ruby-build-system)
2802 '(#:test-target "spec"
2803 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2804 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2806 #:phases (modify-phases %standard-phases
2807 (replace 'replace-git-ls-files
2809 (substitute* "forking_test_runner.gemspec"
2810 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2811 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2813 (add-before 'check 'remove-version-constraints
2815 ;; Ignore hard coded version constraints for the tests.
2816 (delete-file "Gemfile.lock")
2818 (add-before 'check 'set-HOME
2820 ;; Many tests invoke Bundler, and fails when Bundler
2821 ;; warns that /homeless-shelter does not exist.
2822 (setenv "HOME" "/tmp")
2825 `(("ruby-activerecord" ,ruby-activerecord)
2826 ("ruby-bump" ,ruby-bump)
2827 ("ruby-rspec" ,ruby-rspec)
2828 ("ruby-sqlite3" ,ruby-sqlite3)
2829 ("ruby-wwtd" ,ruby-wwtd)))
2831 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2832 (synopsis "Run every test in a fork")
2834 "This package is a wrapper around @code{parallel_tests} that runs every
2835 test in a fork to avoid pollution and get clean output per test.")
2836 (license license:expat)))
2838 (define-public ruby-formatador
2840 (name "ruby-formatador")
2844 (uri (rubygems-uri "formatador" version))
2847 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2848 (build-system ruby-build-system)
2849 ;; Circular dependency: Tests require ruby-shindo, which requires
2850 ;; ruby-formatador at runtime.
2851 (arguments `(#:tests? #f))
2852 (synopsis "Ruby library to format text on stdout")
2853 (description "Formatador is a Ruby library to format text printed to the
2854 standard output stream.")
2855 (home-page "https://github.com/geemus/formatador")
2856 (license license:expat)))
2858 (define-public ruby-fuubar
2860 (name "ruby-fuubar")
2864 ;; Fetch from the git repository, as the gem package doesn't include
2868 (url "https://github.com/thekompanee/fuubar")
2869 (commit (string-append "releases/v" version))))
2870 (file-name (git-file-name name version))
2873 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2874 (build-system ruby-build-system)
2876 '(;; TODO: Some tests fail, unsure why.
2877 ;; 21 examples, 7 failures
2880 (modify-phases %standard-phases
2881 (add-before 'build 'delete-certificate
2883 ;; Remove 's.cert_chain' as we do not build with a private key
2884 (substitute* "fuubar.gemspec"
2885 ((".*cert_chain.*") "")
2886 ((".*signing_key.*") ""))
2889 (lambda* (#:key tests? #:allow-other-keys)
2894 `(("bundler" ,bundler)))
2896 `(("ruby-rspec-core" ,ruby-rspec-core)
2897 ("ruby-progressbar" ,ruby-progressbar)))
2898 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2900 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2901 string of letters and dots as feedback. It also stops on the first test
2903 (home-page "https://github.com/thekompanee/fuubar")
2904 (license license:expat)))
2906 (define-public ruby-haml
2913 (uri (rubygems-uri "haml" version))
2916 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2917 (build-system ruby-build-system)
2919 '(#:tests? #f)) ; No included tests
2921 `(("ruby-tilt" ,ruby-tilt)
2922 ("ruby-temple" ,ruby-temple)))
2923 (synopsis "Haml is a Ruby library to generate HTML documents")
2925 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2926 HTML or XML that is designed to express the structure of documents using
2927 indentation rather than closing tags. It was originally envisioned as a
2928 plugin for Ruby on Rails, but it can function as a stand-alone templating
2930 (home-page "http://haml.info/")
2931 (license license:expat)))
2933 (define-public ruby-hamster
2935 (name "ruby-hamster")
2940 (uri (rubygems-uri "hamster" version))
2943 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2944 (build-system ruby-build-system)
2947 (modify-phases %standard-phases
2948 (add-after 'unpack 'remove-unnecessary-dependencies
2950 ;; pry is a debugging tool, and is unnecessary when running the
2952 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2953 (("require 'pry'") ""))
2954 (substitute* "spec/spec_helper.rb"
2955 (("require \"pry\"") "")
2956 ;; CodeClimate is an online service, and is unnecessary for
2957 ;; running the tests
2958 (("require \"codeclimate-test-reporter\"") "")
2959 (("CodeClimate.*\n") ""))
2961 ;; No Rakefile is included, so run rspec directly.
2963 (lambda* (#:key tests? #:allow-other-keys)
2968 `(("ruby-concurrent" ,ruby-concurrent)))
2970 `(("ruby-rspec" ,ruby-rspec)))
2971 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2973 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2974 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2975 immutable queue or stack).")
2976 (home-page "https://github.com/hamstergem/hamster")
2977 (license license:expat)))
2979 (define-public ruby-hashdiff
2981 (name "ruby-hashdiff")
2986 (uri (rubygems-uri "hashdiff" version))
2989 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2990 (build-system ruby-build-system)
2993 (modify-phases %standard-phases
2994 ;; Run tests directly via rspec to avoid Rake issue:
2995 ;; NoMethodError: undefined method `last_comment'
2997 (lambda* (#:key tests? #:allow-other-keys)
3002 `(("bundler" ,bundler)
3003 ("ruby-rspec" ,ruby-rspec-2)))
3004 (synopsis "HashDiff computes the smallest difference between two hashes")
3006 "HashDiff is a Ruby library to compute the smallest difference between
3008 (home-page "https://github.com/liufengyun/hashdiff")
3009 (license license:expat)))
3011 (define-public ruby-hydra
3013 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
3017 (version (git-version "0.0" revision commit))
3018 (home-page "https://github.com/hyphenation/hydra")
3021 (uri (git-reference (url home-page) (commit commit)))
3022 (file-name (git-file-name name version))
3025 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3026 (build-system ruby-build-system)
3028 '(#:phases (modify-phases %standard-phases
3029 (add-after 'unpack 'make-files-writable
3031 (for-each make-file-writable (find-files "."))
3035 (invoke "rspec"))))))
3037 `(("ruby-rspec" ,ruby-rspec)))
3039 `(("ruby-byebug" ,ruby-byebug)))
3040 (synopsis "Ruby hyphenation patterns")
3042 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3043 (license license:expat))))
3045 (define-public ruby-shindo
3047 (name "ruby-shindo")
3051 (uri (rubygems-uri "shindo" version))
3054 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3055 (build-system ruby-build-system)
3057 `(#:test-target "shindo_tests"
3059 (modify-phases %standard-phases
3060 (add-after 'unpack 'fix-tests
3062 (substitute* "tests/tests_helper.rb"
3064 (substitute* "Rakefile"
3065 (("system \"shindo") "system \"./bin/shindo")
3066 ;; This test doesn't work, so we disable it.
3067 (("fail \"The build_error test should fail") "#")
3068 ((" -rubygems") ""))
3071 `(("ruby-formatador" ,ruby-formatador)))
3072 (synopsis "Simple depth first Ruby testing")
3073 (description "Shindo is a simple depth first testing library for Ruby.")
3074 (home-page "https://github.com/geemus/shindo")
3075 (license license:expat)))
3077 (define-public ruby-rubygems-tasks
3079 (name "ruby-rubygems-tasks")
3083 (uri (rubygems-uri "rubygems-tasks" version))
3086 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3087 (build-system ruby-build-system)
3088 ;; Tests need Internet access.
3089 (arguments `(#:tests? #f))
3091 `(("ruby-rspec" ,ruby-rspec)
3092 ("ruby-yard" ,ruby-yard)))
3093 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3094 (description "Rubygems-task provides Rake tasks for managing and releasing
3096 (home-page "https://github.com/postmodern/rubygems-tasks")
3097 (license license:expat)))
3099 (define-public ruby-rubyzip
3101 (name "ruby-rubyzip")
3106 (uri (rubygems-uri "rubyzip" version))
3109 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3110 (build-system ruby-build-system)
3113 (modify-phases %standard-phases
3114 (add-before 'check 'patch-tests
3115 (lambda* (#:key inputs #:allow-other-keys)
3116 (substitute* "test/gentestfiles.rb"
3119 (assoc-ref inputs "zip") "/bin/zip")))
3120 (substitute* "test/input_stream_test.rb"
3121 (("/usr/bin/env ruby") (which "ruby")))
3124 `(("bundler" ,bundler)
3125 ("ruby-simplecov" ,ruby-simplecov)
3128 (synopsis "Ruby module is for reading and writing zip files")
3130 "The rubyzip module provides ways to read from and create zip files.")
3131 (home-page "https://github.com/rubyzip/rubyzip")
3132 (license license:bsd-2)))
3134 (define-public ruby-simplecov-html
3136 (name "ruby-simplecov-html")
3140 (uri (rubygems-uri "simplecov-html" version))
3143 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3144 (build-system ruby-build-system)
3145 (arguments `(#:tests? #f)) ; there are no tests
3147 `(("bundler" ,bundler)))
3148 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3149 (description "This package provides the default HTML formatter for
3150 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3151 (home-page "https://github.com/colszowka/simplecov-html")
3152 (license license:expat)))
3154 (define-public ruby-simplecov
3156 (name "ruby-simplecov")
3160 (uri (rubygems-uri "simplecov" version))
3163 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3164 (build-system ruby-build-system)
3165 ;; Simplecov depends on rubocop for code style checking at build time.
3166 ;; Rubocop needs simplecov at build time.
3167 (arguments `(#:tests? #f))
3169 `(("ruby-json" ,ruby-json)
3170 ("ruby-docile" ,ruby-docile)
3171 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3173 `(("bundler" ,bundler)))
3174 (synopsis "Code coverage framework for Ruby")
3175 (description "SimpleCov is a code coverage framework for Ruby with a
3176 powerful configuration library and automatic merging of coverage across test
3178 (home-page "https://github.com/colszowka/simplecov")
3179 (license license:expat)))
3181 (define-public ruby-useragent
3183 (name "ruby-useragent")
3187 (uri (rubygems-uri "useragent" version))
3190 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3191 (build-system ruby-build-system)
3193 '(#:tests? #f)) ; no test suite
3194 (synopsis "HTTP user agent parser for Ruby")
3195 (description "UserAgent is a Ruby library that parses and compares HTTP
3197 (home-page "https://github.com/gshutler/useragent")
3198 (license license:expat)))
3200 (define-public ruby-backports
3202 (name "ruby-backports")
3207 (uri (rubygems-uri "backports" version))
3210 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3211 (build-system ruby-build-system)
3213 '(;; TODO: This should be default, but there is one test failure
3214 #:test-target "all_spec"))
3216 `(("ruby-mspec" ,ruby-mspec)
3217 ("ruby-activesupport" ,ruby-activesupport)))
3218 (synopsis "Backports of the features in newer Ruby versions")
3220 "Backports enables more compatibility across Ruby versions by providing
3221 backports of some features.")
3222 (home-page "https://github.com/marcandre/backports")
3223 (license license:expat)))
3225 (define-public ruby-bacon
3231 (uri (rubygems-uri "bacon" version))
3234 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3235 (build-system ruby-build-system)
3236 (synopsis "Small RSpec clone")
3237 (description "Bacon is a small RSpec clone providing all essential
3239 (home-page "https://github.com/chneukirchen/bacon")
3240 (license license:expat)))
3242 (define-public ruby-bacon-bits
3244 (name "ruby-bacon-bits")
3249 (uri (rubygems-uri "bacon-bits" version))
3252 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3253 (build-system ruby-build-system)
3257 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3258 (synopsis "Extensions to Bacon, for disabling tests, before and after
3261 "This extends the bacon testing framework with useful extensions to
3262 disable tests, have before and after blocks that run once and more.")
3263 (home-page "https://github.com/cldwalker/bacon-bits")
3264 (license license:expat)))
3266 (define-public ruby-bacon-colored-output
3268 (name "ruby-bacon-colored-output")
3273 (uri (rubygems-uri "bacon-colored_output" version))
3276 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3277 (build-system ruby-build-system)
3279 '(;; No included tests
3282 `(("ruby-bacon" ,ruby-bacon)))
3283 (synopsis "Colored output for Bacon test framework")
3285 "This package adds color through ANSI escape codes to Bacon test
3287 (home-page "https://github.com/whitequark/bacon-colored_output")
3288 (license license:expat)))
3290 (define-public ruby-connection-pool
3292 (name "ruby-connection-pool")
3296 (uri (rubygems-uri "connection_pool" version))
3299 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3300 (build-system ruby-build-system)
3302 `(("bundler" ,bundler)))
3303 (synopsis "Generic connection pool for Ruby")
3304 (description "Connection_pool provides a generic connection pooling
3305 interface for Ruby programs.")
3306 (home-page "https://github.com/mperham/connection_pool")
3307 (license license:expat)))
3309 (define-public ruby-fast-gettext
3311 (name "ruby-fast-gettext")
3313 (home-page "https://github.com/grosser/fast_gettext")
3316 (uri (git-reference (url home-page)
3317 (commit (string-append "v" version))))
3318 (file-name (git-file-name name version))
3321 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3322 (build-system ruby-build-system)
3324 '(#:test-target "spec"
3325 #:phases (modify-phases %standard-phases
3326 (add-before 'check 'remove-version-constraints
3328 (delete-file "Gemfile.lock")
3330 (add-before 'check 'remove-activerecord-test
3332 ;; FIXME: This test fails because ActiveRecord depends on
3333 ;; a different version of ruby-sqlite than the currently
3336 "spec/fast_gettext/translation_repository/db_spec.rb")
3338 (add-before 'check 'disable-i18n-test
3340 ;; XXX: This test checks i18n intricasies with Rails 3 and
3341 ;; automatically disables itself for Rails 4.0, but does
3342 ;; not know about newer versions as it has not been updated
3343 ;; since 2014. Disable for later versions of Rails too.
3344 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3345 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3346 "ActiveRecord::VERSION::MINOR == 0"))
3347 "ActiveRecord::VERSION::MAJOR >= 4"))
3351 ("ruby-activerecord" ,ruby-activerecord)
3352 ("ruby-activesupport" ,ruby-activesupport)
3353 ("ruby-bump" ,ruby-bump)
3354 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3355 ("ruby-i18n" ,ruby-i18n)
3356 ("ruby-rubocop" ,ruby-rubocop)
3357 ("ruby-rspec" ,ruby-rspec)
3358 ("ruby-single-cov" ,ruby-single-cov)
3359 ("ruby-sqlite3" ,ruby-sqlite3)
3360 ("ruby-wwtd" ,ruby-wwtd)))
3361 (synopsis "Fast implementation of @code{GetText}")
3363 "This package provides an alternative implementation of the Ruby
3364 @code{GetText} library that is approximately 12x faster yet thread safe.")
3365 ;; Some parts are covered by the Ruby license, see file headers.
3366 (license (list license:expat license:ruby))))
3368 (define-public ruby-net-http-persistent
3370 (name "ruby-net-http-persistent")
3374 (uri (rubygems-uri "net-http-persistent" version))
3377 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3378 (build-system ruby-build-system)
3380 `(("ruby-connection-pool" ,ruby-connection-pool)
3381 ("ruby-hoe" ,ruby-hoe)))
3382 (synopsis "Persistent HTTP connection manager")
3383 (description "Net::HTTP::Persistent manages persistent HTTP connections
3384 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3385 (home-page "https://github.com/drbrain/net-http-persistent")
3386 (license license:expat)))
3388 (define-public ruby-power-assert
3390 (name "ruby-power-assert")
3394 (uri (rubygems-uri "power_assert" version))
3397 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3398 (build-system ruby-build-system)
3400 '(#:tests? #f)) ; No included tests
3402 `(("bundler" ,bundler)))
3403 (synopsis "Assert library with descriptive assertion messages")
3404 (description "Power-assert is an assertion library providing descriptive
3405 assertion messages for tests.")
3406 (home-page "https://github.com/k-tsj/power_assert")
3407 (license (list license:bsd-2 license:ruby))))
3409 (define-public ruby-powerpack
3411 (name "ruby-powerpack")
3416 (uri (rubygems-uri "powerpack" version))
3419 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3420 (build-system ruby-build-system)
3422 '(#:test-target "spec"))
3424 `(("bundler" ,bundler)
3425 ("ruby-rspec" ,ruby-rspec)
3426 ("ruby-yard" ,ruby-yard)))
3427 (synopsis "Useful extensions to core Ruby classes")
3429 "This package provides a few useful extensions to core Ruby classes,
3430 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3432 (home-page "https://github.com/bbatsov/powerpack")
3433 (license license:expat)))
3435 (define-public ruby-locale
3437 (name "ruby-locale")
3441 (uri (rubygems-uri "locale" version))
3444 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3445 (build-system ruby-build-system)
3446 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3447 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3448 ;; dependency cycle we disable tests.
3449 (arguments `(#:tests? #f))
3451 `(("bundler" ,bundler)
3452 ("ruby-yard" ,ruby-yard)))
3453 (synopsis "Ruby library providing basic localization APIs")
3455 "Ruby-Locale is the pure ruby library which provides basic APIs for
3457 (home-page "https://github.com/ruby-gettext/locale")
3458 (license (list license:lgpl3+ license:ruby))))
3460 (define-public ruby-temple
3462 (name "ruby-temple")
3467 (uri (rubygems-uri "temple" version))
3470 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3471 (build-system ruby-build-system)
3473 `(("ruby-tilt" ,ruby-tilt)
3474 ("ruby-bacon" ,ruby-bacon)
3475 ("ruby-erubis" ,ruby-erubis)))
3476 (synopsis "Template compilation framework in Ruby")
3478 "Temple is an abstraction and framework for compiling templates to pure
3480 (home-page "https://github.com/judofyr/temple")
3481 (license license:expat)))
3483 (define-public ruby-text
3489 (uri (rubygems-uri "text" version))
3492 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3493 (build-system ruby-build-system)
3494 (synopsis "Collection of text algorithms for Ruby")
3496 "This package provides a collection of text algorithms: Levenshtein,
3497 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3498 (home-page "https://github.com/threedaymonk/text")
3499 (license license:expat)))
3501 (define-public ruby-gettext
3503 (name "ruby-gettext")
3507 (uri (rubygems-uri "gettext" version))
3510 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3511 (build-system ruby-build-system)
3512 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3513 ;; which needs ruby-gettext. To break the dependency cycle we disable
3515 (arguments `(#:tests? #f))
3517 `(("ruby-locale" ,ruby-locale)
3518 ("ruby-text" ,ruby-text)))
3520 `(("bundler" ,bundler)
3521 ("ruby-yard" ,ruby-yard)))
3522 (synopsis "GNU gettext-like program for Ruby")
3524 "Gettext is a GNU gettext-like program for Ruby. The catalog
3525 file (po-file) used is the same as that used by GNU gettext, allowing you to
3526 use GNU gettext tools for maintenance.")
3527 (home-page "https://ruby-gettext.github.com/")
3528 (license (list license:lgpl3+ license:ruby))))
3530 (define-public ruby-packnga
3532 (name "ruby-packnga")
3536 (uri (rubygems-uri "packnga" version))
3539 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3540 (build-system ruby-build-system)
3541 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3542 ;; To break the dependency cycle we disable tests.
3543 (arguments `(#:tests? #f))
3545 `(("ruby-gettext" ,ruby-gettext)
3546 ("ruby-yard" ,ruby-yard)))
3548 `(("bundler" ,bundler)))
3549 (synopsis "Utility library to package internationalized libraries")
3551 "Packnga is a library to translate to many languages using YARD.")
3552 (home-page "http://ranguba.org/packnga/")
3553 (license license:lgpl2.0+)))
3555 (define-public ruby-test-construct
3557 (name "ruby-test-construct")
3562 (uri (rubygems-uri "test_construct" version))
3565 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3566 (build-system ruby-build-system)
3568 `(("bundler" ,bundler)
3569 ("ruby-mocha" ,ruby-mocha)
3570 ("ruby-rspec" ,ruby-rspec)))
3571 (synopsis "Creates temporary files and directories for testing")
3573 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3574 temporary files and directories during tests.")
3575 (home-page "https://github.com/bhb/test_construct")
3576 (license license:expat)))
3578 (define-public ruby-test-unit
3580 (name "ruby-test-unit")
3584 (uri (rubygems-uri "test-unit" version))
3587 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3588 (build-system ruby-build-system)
3590 `(("ruby-power-assert" ,ruby-power-assert)))
3592 `(("bundler" ,bundler)
3593 ("ruby-packnga" ,ruby-packnga)
3594 ("ruby-yard" ,ruby-yard)))
3595 (synopsis "Unit testing framework for Ruby")
3596 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3597 on xUnit principles. These were originally designed by Kent Beck, creator of
3598 extreme programming software development methodology, for Smalltalk's SUnit.
3599 It allows writing tests, checking results and automated testing in Ruby.")
3600 (home-page "https://test-unit.github.io/")
3601 (license (list license:psfl license:ruby))))
3603 (define-public ruby-markaby
3605 (name "ruby-markaby")
3610 (uri (rubygems-uri "markaby" version))
3613 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3614 (build-system ruby-build-system)
3617 (modify-phases %standard-phases
3618 ;; Run rspec manually without using the Rakefile, as the versions of
3619 ;; Rake and RSpec 2 are incompatible:
3621 ;; NoMethodError: undefined method `last_comment'
3623 (lambda* (#:key tests? #:allow-other-keys)
3628 `(("ruby-builder" ,ruby-builder)))
3630 `(("bundler" ,bundler)
3631 ("ruby-rspec" ,ruby-rspec-2)))
3632 (synopsis "Write HTML pages in pure Ruby")
3634 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3635 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3636 mixture of HTML and additional ERB syntax.")
3637 (home-page "https://markaby.github.io/")
3638 (license license:expat)))
3640 (define-public ruby-maruku
3642 (name "ruby-maruku")
3647 (uri (rubygems-uri "maruku" version))
3650 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3651 (build-system ruby-build-system)
3653 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3656 (modify-phases %standard-phases
3658 (lambda* (#:key tests? #:allow-other-keys)
3663 `(("ruby-rspec" ,ruby-rspec)
3664 ("ruby-simplecov" ,ruby-simplecov)
3665 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3666 (synopsis "Markdown interpreter in Ruby")
3668 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3669 HTML, and PDF through LaTeX.")
3670 (home-page "https://github.com/bhollis/maruku")
3671 (license license:expat)))
3673 (define-public ruby-metaclass
3675 (name "ruby-metaclass")
3679 (uri (rubygems-uri "metaclass" version))
3682 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3683 (build-system ruby-build-system)
3686 (modify-phases %standard-phases
3687 (add-after 'unpack 'add-test-unit-to-search-path
3688 (lambda* (#:key inputs #:allow-other-keys)
3689 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3690 (substitute* "Rakefile"
3691 (("t\\.libs << \"test\"" line)
3692 (string-append line "; t.libs << \""
3693 test-unit "/lib/ruby/vendor_ruby"
3695 ,(package-version ruby-test-unit)
3699 `(("bundler" ,bundler)
3700 ("ruby-test-unit" ,ruby-test-unit)))
3701 (synopsis "Ruby library adding metaclass method to all objects")
3703 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3705 (home-page "https://github.com/floehopper/metaclass")
3706 (license license:expat)))
3708 (define-public ruby-mkmf-lite
3710 (name "ruby-mkmf-lite")
3714 (uri (rubygems-uri "mkmf-lite" version))
3717 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3718 (build-system ruby-build-system)
3720 `(("ruby-ptools" ,ruby-ptools)))
3721 (synopsis "Lightweight alternative to @code{mkmf}")
3723 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3724 for use as a library. It does not create packages, builds, or log files of
3725 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3726 to check for the presence of header files, constants, and so on.")
3727 (home-page "https://github.com/djberg96/mkmf-lite")
3728 (license license:asl2.0)))
3730 (define-public ruby-mspec
3737 (uri (rubygems-uri "mspec" version))
3740 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3741 (build-system ruby-build-system)
3743 '(;; TODO: 3 test failures
3744 ;; ./spec/mocks/mock_spec.rb:82
3745 ;; ./spec/utils/name_map_spec.rb:151
3746 ;; ./spec/utils/name_map_spec.rb:155
3749 (modify-phases %standard-phases
3750 (add-after 'extract-gemspec 'change-dependency-constraints
3752 (substitute* "mspec.gemspec"
3753 (("rake.*") "rake>)\n")
3754 (("rspec.*") "rspec>)\n"))
3757 (lambda* (#:key tests? #:allow-other-keys)
3759 (invoke "rspec" "spec"))
3762 `(("bundler" ,bundler)
3763 ("ruby-rake" ,ruby-rake)
3764 ("ruby-rspec" ,ruby-rspec)))
3765 (synopsis "MSpec is a specialized framework for RubySpec")
3767 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3768 for basic features. MSpec contains additional features that assist in writing
3769 specs for Ruby implementations in ruby/spec.")
3770 (home-page "http://rubyspec.org")
3771 (license license:expat)))
3773 (define-public ruby-mysql2
3775 (name "ruby-mysql2")
3781 (url "https://github.com/brianmario/mysql2")
3783 (file-name (git-file-name name version))
3786 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3787 (build-system ruby-build-system)
3789 '(;; TODO: Tests require a running MySQL/MariaDB service
3792 (modify-phases %standard-phases
3793 (replace 'replace-git-ls-files
3795 (substitute* "mysql2.gemspec"
3796 (("git ls-files .*`") "find . -type f |sort`"))
3798 (add-before 'install 'set-MAKEFLAGS
3799 (lambda* (#:key outputs #:allow-other-keys)
3803 "prefix=" (assoc-ref outputs "out")))
3805 ;; Move the 'check phase to after 'install, as then you can test
3806 ;; using the installed mysql2 gem in the store.
3808 (add-after 'install 'check
3809 (lambda* (#:key outputs tests? #:allow-other-keys)
3814 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3819 `(("mariadb-dev" ,mariadb "dev")
3822 `(("ruby-rspec" ,ruby-rspec)
3823 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3824 (synopsis "MySQL library for Ruby, binding to libmysql")
3826 "This package provides a simple, fast MySQL library for Ruby, binding to
3828 (home-page "https://github.com/brianmario/mysql2")
3829 (license license:expat)))
3831 (define-public ruby-blankslate
3833 (name "ruby-blankslate")
3837 (uri (rubygems-uri "blankslate" version))
3840 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3841 (build-system ruby-build-system)
3844 (modify-phases %standard-phases
3846 (lambda _ (invoke "rspec" "spec/"))))))
3848 `(("bundler" ,bundler)
3849 ("ruby-rspec" ,ruby-rspec)))
3850 (synopsis "Abstract base class with no predefined methods")
3852 "BlankSlate provides an abstract base class with no predefined
3853 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3854 as a base class when writing classes that depend upon
3855 @code{method_missing} (e.g. dynamic proxies).")
3856 (home-page "https://github.com/masover/blankslate")
3857 (license license:expat)))
3859 (define-public ruby-bond
3866 (uri (rubygems-uri "bond" version))
3869 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3870 (build-system ruby-build-system)
3872 ;; The test suite fails (see:
3873 ;; https://github.com/cldwalker/bond/issues/46).
3876 `(("ruby-bacon" ,ruby-bacon)
3877 ("ruby-bacon-bits" ,ruby-bacon-bits)
3878 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3879 (synopsis "Bond can provide custom autocompletion for arguments, methods
3882 "Bond can autocomplete argument(s) to methods, uniquely completing per
3883 module, per method and per argument. Bond provides a configuration system and
3884 a DSL for creating custom completions and completion rules. Bond can also
3885 load completions that ship with gems. Bond is able to offer more than irb's
3886 completion since it uses the full line of input when completing as opposed to
3887 irb's last-word approach.")
3888 (home-page "http://tagaholic.me/bond/")
3889 (license license:expat)))
3891 (define-public ruby-idn-ruby
3893 (name "ruby-idn-ruby")
3898 (uri (rubygems-uri "idn-ruby" version))
3901 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3902 (build-system ruby-build-system)
3905 (modify-phases %standard-phases
3907 (add-after 'install 'check
3908 (lambda* (#:key tests? outputs #:allow-other-keys)
3910 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3911 (name-and-version (basename gem-file ".gem")))
3915 (assoc-ref outputs "out")
3916 "/lib/ruby/vendor_ruby/gems/"
3919 (find-files "./test" ".*\\.rb"))))
3922 `(("libidn" ,libidn)))
3923 (synopsis "Ruby Bindings for the GNU LibIDN library")
3925 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3926 Stringprep, Punycode and IDNA specifications. These are used to encode and
3927 decode internationalized domain + names according to the IDNA2003
3930 Included are the most important parts of the Stringprep, Punycode and IDNA
3931 APIs like performing Stringprep processings, encoding to and decoding from
3932 Punycode strings and converting entire domain names to and from the ACE
3934 (home-page "https://github.com/deepfryed/idn-ruby")
3935 (license license:asl2.0)))
3937 (define-public ruby-instantiator
3939 (name "ruby-instantiator")
3943 (uri (rubygems-uri "instantiator" version))
3946 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3947 (build-system ruby-build-system)
3950 (modify-phases %standard-phases
3951 (add-after 'unpack 'add-test-unit-to-search-path
3952 (lambda* (#:key inputs #:allow-other-keys)
3953 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3954 (substitute* "Rakefile"
3955 (("t\\.libs << \"test\"" line)
3956 (string-append line "; t.libs << \""
3957 test-unit "/lib/ruby/vendor_ruby"
3959 ,(package-version ruby-test-unit)
3963 `(("ruby-blankslate" ,ruby-blankslate)))
3965 `(("bundler" ,bundler)
3966 ("ruby-test-unit" ,ruby-test-unit)))
3967 (synopsis "Instantiate an arbitrary Ruby class")
3969 "Instantiator lets you instantiate an arbitrary Ruby class without
3970 knowing anything about the constructor.")
3971 (home-page "https://github.com/floehopper/instantiator")
3972 (license license:expat)))
3974 (define-public ruby-introspection
3976 (name "ruby-introspection")
3980 (uri (rubygems-uri "introspection" version))
3983 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3984 (build-system ruby-build-system)
3987 (modify-phases %standard-phases
3988 (add-after 'unpack 'add-test-unit-to-search-path
3989 (lambda* (#:key inputs #:allow-other-keys)
3990 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3991 (substitute* "Rakefile"
3992 (("t\\.libs << \"test\"" line)
3993 (string-append line "; t.libs << \""
3994 test-unit "/lib/ruby/vendor_ruby"
3996 ,(package-version ruby-test-unit)
4000 `(("ruby-instantiator" ,ruby-instantiator)
4001 ("ruby-metaclass" ,ruby-metaclass)))
4003 `(("bundler" ,bundler)
4004 ("ruby-blankslate" ,ruby-blankslate)
4005 ("ruby-test-unit" ,ruby-test-unit)))
4006 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
4008 "Introspection provides tools to inspect the hierarchy of method
4009 definitions on a Ruby object.")
4010 (home-page "https://github.com/floehopper/introspection")
4011 (license license:expat)))
4013 (define-public ruby-redcarpet
4015 (name "ruby-redcarpet")
4019 (uri (rubygems-uri "redcarpet" version))
4022 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4023 (build-system ruby-build-system)
4026 (modify-phases %standard-phases
4027 ;; The gem archive does not include the conformance tests.
4028 (add-after 'unpack 'disable-conformance-tests
4030 (substitute* "Rakefile"
4031 (("task :test => %w\\[test:unit test:conformance\\]")
4032 "task :test => %w[test:unit]"))
4035 `(("bundler" ,bundler)
4036 ("ruby-test-unit" ,ruby-test-unit)
4037 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4038 (synopsis "Extensible Markdown to (X)HTML converter")
4040 "Redcarpet is an extensible Ruby library for Markdown processing and
4041 conversion to (X)HTML.")
4042 (home-page "https://github.com/vmg/redcarpet")
4043 (license license:expat)))
4045 (define-public ruby-rerun
4052 (uri (rubygems-uri "rerun" version))
4055 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4056 (build-system ruby-build-system)
4058 '(#:tests? #f)) ; No included tests
4060 `(("ruby-listen" ,ruby-listen)))
4061 (synopsis "Run a process, and restart when some monitored files change")
4063 "Rerun is a tool to launch programs, then monitor the file system, and
4064 restart the program when any of the monitored files change. It's written in
4065 Ruby, but can be used for all programs.")
4066 (home-page "https://github.com/alexch/rerun/")
4067 (license license:expat)))
4069 (define-public ruby-maxitest
4071 (name "ruby-maxitest")
4073 (home-page "https://github.com/grosser/maxitest")
4075 ;; Pull from git because the gem does not contain tests.
4079 (commit (string-append "v" version))))
4080 (file-name (git-file-name name version))
4083 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4084 (build-system ruby-build-system)
4086 '(#:test-target "default"
4087 #:phases (modify-phases %standard-phases
4088 (replace 'replace-git-ls-files
4090 (substitute* "maxitest.gemspec"
4091 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4092 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4094 (add-before 'check 'remove-version-constraints
4096 ;; Don't use specific versions of dependencies, instead
4097 ;; take whatever is available in Guix.
4098 (delete-file "Gemfile.lock")
4100 (add-before 'check 'add-mtest-on-PATH
4102 ;; Tests use 'mtest' which is not automatically added on
4104 (setenv "PATH" (string-append (getcwd) "/bin:"
4109 ("ruby-bump" ,ruby-bump)
4110 ("ruby-byebug" ,ruby-byebug)
4111 ("ruby-rspec" ,ruby-rspec)
4112 ("ruby-wwtd" ,ruby-wwtd)))
4114 `(("ruby-minitest" ,ruby-minitest)))
4115 (synopsis "Minitest with extra features")
4117 "Maxitest is a wrapper around Minitest with extra functionality such
4118 as timeouts, an @command{mtest} executable that can run tests by line
4119 number, support for interrupted tests, better backtraces, and more.")
4120 (license license:expat)))
4122 (define-public ruby-mocha
4128 (uri (rubygems-uri "mocha" version))
4131 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4132 (build-system ruby-build-system)
4135 (modify-phases %standard-phases
4136 (add-before 'check 'remove-rubocop-dependency
4138 ;; Disable dependency on Rubocop, which is just a linter,
4139 ;; and would introduce a circular dependency.
4140 (substitute* "mocha.gemspec"
4145 `(("ruby-introspection" ,ruby-introspection)))
4146 (synopsis "Mocking and stubbing library for Ruby")
4148 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4149 allows mocking and stubbing of methods on real (non-mock) classes.")
4150 (home-page "http://gofreerange.com/mocha/docs")
4151 ;; Mocha can be used with either license at the users choice.
4152 (license (list license:expat license:ruby))))
4154 (define-public ruby-mocha-on-bacon
4156 (name "ruby-mocha-on-bacon")
4161 (uri (rubygems-uri "mocha-on-bacon" version))
4164 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4165 (build-system ruby-build-system)
4167 ;; rubygems.org release missing tests
4169 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4170 (synopsis "Mocha adapter for Bacon")
4172 "This package provides a Mocha adapter for Bacon, allowing you to use the
4173 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4175 "https://github.com/alloy/mocha-on-bacon")
4176 (license license:expat)))
4178 (define-public ruby-net-ssh
4180 (name "ruby-net-ssh")
4184 (uri (rubygems-uri "net-ssh" version))
4187 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4188 (build-system ruby-build-system)
4190 `(("bundler" ,bundler)
4191 ("ruby-mocha" ,ruby-mocha)
4192 ("ruby-test-unit" ,ruby-test-unit)))
4193 (synopsis "Ruby implementation of the SSH2 client protocol")
4194 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4195 client protocol. It allows you to write programs that invoke and interact
4196 with processes on remote servers, via SSH2.")
4197 (home-page "https://github.com/net-ssh/net-ssh")
4198 (license license:expat)))
4200 (define-public ruby-net-scp
4202 (name "ruby-net-scp")
4203 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4204 (version "1.2.2.rc2")
4209 (url "https://github.com/net-ssh/net-scp")
4210 (commit (string-append "v" version))))
4211 (file-name (git-file-name name version))
4213 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4214 (build-system ruby-build-system)
4216 `(("bundler" ,bundler)
4217 ("ruby-test-unit" ,ruby-test-unit)
4218 ("ruby-mocha" ,ruby-mocha)))
4220 `(("ruby-net-ssh" ,ruby-net-ssh)))
4221 (synopsis "Pure-Ruby SCP client library")
4222 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4224 (home-page "https://github.com/net-ssh/net-scp")
4225 (license license:expat)))
4227 (define-public ruby-minitest
4229 (name "ruby-minitest")
4233 (uri (rubygems-uri "minitest" version))
4236 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4237 (build-system ruby-build-system)
4239 `(("ruby-hoe" ,ruby-hoe)))
4240 (synopsis "Small test suite library for Ruby")
4241 (description "Minitest provides a complete suite of Ruby testing
4242 facilities supporting TDD, BDD, mocking, and benchmarking.")
4243 (home-page "https://github.com/seattlerb/minitest")
4244 (license license:expat)))
4246 ;; This is the last release of Minitest 4, which is used by some packages.
4247 (define-public ruby-minitest-4
4248 (package (inherit ruby-minitest)
4252 (uri (rubygems-uri "minitest" version))
4255 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4258 (modify-phases %standard-phases
4259 (add-after 'unpack 'remove-unsupported-method
4261 (substitute* "Rakefile"
4262 (("self\\.rubyforge_name = .*") ""))
4264 (add-after 'build 'exclude-failing-tests
4266 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4268 (delete-file "test/minitest/test_minitest_spec.rb")
4271 (define-public ruby-minitest-around
4273 (name "ruby-minitest-around")
4278 (uri (rubygems-uri "minitest-around" version))
4281 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4282 (build-system ruby-build-system)
4285 (modify-phases %standard-phases
4286 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4288 (substitute* "minitest-around.gemspec"
4289 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4292 `(("ruby-minitest" ,ruby-minitest)))
4294 `(("bundler" ,bundler)
4295 ("ruby-cucumber" ,ruby-cucumber)
4296 ("ruby-bump" ,ruby-bump)
4297 ("ruby-test-construct" ,ruby-test-construct)))
4298 (synopsis "Run code around tests in Minitest")
4300 "This library provides a way to run code around tests in Minitest,
4301 written using either the unit test or spec style.")
4302 (home-page "https://github.com/splattael/minitest-around")
4303 (license license:expat)))
4305 (define-public ruby-minitest-sprint
4307 (name "ruby-minitest-sprint")
4311 (uri (rubygems-uri "minitest-sprint" version))
4314 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4315 (build-system ruby-build-system)
4317 `(("ruby-hoe" ,ruby-hoe)
4318 ("ruby-minitest" ,ruby-minitest)))
4319 (synopsis "Fast test suite runner for minitest")
4320 (description "Minitest-sprint is a test runner for minitest that makes it
4321 easier to re-run individual failing tests.")
4322 (home-page "https://github.com/seattlerb/minitest-sprint")
4323 (license license:expat)))
4325 (define-public ruby-minitest-bacon
4327 (name "ruby-minitest-bacon")
4331 (uri (rubygems-uri "minitest-bacon" version))
4334 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4335 (build-system ruby-build-system)
4337 `(("ruby-hoe" ,ruby-hoe)))
4339 `(("ruby-minitest" ,ruby-minitest)))
4340 (synopsis "Bacon compatibility library for minitest")
4341 (description "Minitest-bacon extends minitest with bacon-like
4342 functionality, making it easier to migrate test suites from bacon to minitest.")
4343 (home-page "https://github.com/seattlerb/minitest-bacon")
4344 (license license:expat)))
4346 (define-public ruby-minitest-focus
4348 (name "ruby-minitest-focus")
4353 (uri (rubygems-uri "minitest-focus" version))
4356 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4357 (build-system ruby-build-system)
4359 `(("ruby-minitest" ,ruby-minitest)))
4361 `(("ruby-hoe" ,ruby-hoe)))
4362 (synopsis "Allows a few specific tests to be focused on")
4364 "@code{minitest-focus} gives the ability focus on a few tests with ease
4365 without having to use command-line arguments. It introduces a @code{focus}
4366 class method for use in testing classes, specifying that the next defined test
4368 (home-page "https://github.com/seattlerb/minitest-focus")
4369 (license license:expat)))
4371 (define-public ruby-minitest-pretty-diff
4372 ;; Use git reference because gem is out of date and does not contain testing
4373 ;; script. There are no releases on GitHub.
4374 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4376 (name "ruby-minitest-pretty-diff")
4377 (version (string-append "0.1-1." (string-take commit 8)))
4381 (url "https://github.com/adammck/minitest-pretty_diff")
4383 (file-name (string-append name "-" version "-checkout"))
4386 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4387 (build-system ruby-build-system)
4390 (modify-phases %standard-phases
4393 (invoke "script/test"))))))
4395 `(("bundler" ,bundler)
4396 ("ruby-turn" ,ruby-turn)))
4397 (synopsis "Pretty-print hashes and arrays in MiniTest")
4399 "@code{minitest-pretty_diff} monkey-patches
4400 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4401 diffing them. This makes it easier to spot differences between nested
4402 structures when tests fail.")
4403 (home-page "https://github.com/adammck/minitest-pretty_diff")
4404 (license license:expat))))
4406 (define-public ruby-minitest-moar
4408 (name "ruby-minitest-moar")
4413 (uri (rubygems-uri "minitest-moar" version))
4416 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4417 (build-system ruby-build-system)
4420 (modify-phases %standard-phases
4421 (add-before 'check 'clean-dependencies
4423 ;; Remove all gems defined in the Gemfile because these are not
4425 (substitute* "Gemfile"
4427 ;; Remove byebug as not needed to run tests.
4428 (substitute* "test/test_helper.rb"
4429 (("require 'byebug'") ""))
4432 `(("bundler" ,bundler)
4433 ("ruby-minitest" ,ruby-minitest)))
4434 (synopsis "Extra features and changes to MiniTest")
4435 (description "@code{MiniTest Moar} add some additional features and
4436 changes some default behaviours in MiniTest. For instance, Moar replaces the
4437 MiniTest @code{Object#stub} with a global @code{stub} method.")
4438 (home-page "https://github.com/dockyard/minitest-moar")
4439 (license license:expat)))
4441 (define-public ruby-minitest-bonus-assertions
4443 (name "ruby-minitest-bonus-assertions")
4448 (uri (rubygems-uri "minitest-bonus-assertions" version))
4451 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4452 (build-system ruby-build-system)
4455 (modify-phases %standard-phases
4456 (add-before 'check 'clean-dependencies
4458 ;; Remove unneeded require statement that would entail another
4460 (substitute* "test/minitest_config.rb"
4461 (("require 'minitest/bisect'") ""))
4464 `(("ruby-hoe" ,ruby-hoe)
4465 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4466 ("ruby-minitest-focus" ,ruby-minitest-focus)
4467 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4468 (synopsis "Bonus assertions for @code{Minitest}")
4470 "Minitest bonus assertions provides extra MiniTest assertions. For
4471 instance, it provides @code{assert_true}, @code{assert_false} and
4472 @code{assert_set_equal}.")
4473 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4474 (license license:expat)))
4476 (define-public ruby-minitest-reporters
4478 (name "ruby-minitest-reporters")
4483 (uri (rubygems-uri "minitest-reporters" version))
4486 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4487 (build-system ruby-build-system)
4490 (modify-phases %standard-phases
4491 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4492 ;; including it as an input can lead to circular dependencies.
4493 (add-after 'unpack 'remove-rubocop-from-Rakefile
4495 (substitute* "Rakefile"
4496 (("require 'rubocop/rake\\_task'") "")
4497 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4499 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4501 (substitute* "minitest-reporters.gemspec"
4502 ((".*%q<rubocop>.*") "\n"))
4505 `(("ruby-ansi" ,ruby-ansi)
4506 ("ruby-builder" ,ruby-builder)
4507 ("ruby-minitest" ,ruby-minitest)
4508 ("ruby-progressbar" ,ruby-progressbar)))
4510 `(("bundler" ,bundler)
4511 ("ruby-maruku" ,ruby-maruku)))
4512 (synopsis "Enhanced reporting for Minitest tests")
4514 "@code{minitest/reporters} provides a custom Minitest runner to improve
4515 how the test state is reported. A number of different reporters are
4516 available, including a spec reporter, progress bar reporter, a HTML
4518 (home-page "https://github.com/kern/minitest-reporters")
4519 (license license:expat)))
4521 (define-public ruby-minitest-rg
4523 (name "ruby-minitest-rg")
4528 (uri (rubygems-uri "minitest-rg" version))
4531 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4532 (build-system ruby-build-system)
4534 ;; Some tests fail even outside Guix, so disable tests.
4535 ;; https://github.com/blowmage/minitest-rg/issues/12
4536 ;; https://github.com/blowmage/minitest-rg/pull/13
4539 `(("ruby-minitest" ,ruby-minitest)))
4540 (synopsis "Coloured output for Minitest")
4542 "@code{minitest-rg} changes the colour of the output from Minitest.")
4543 (home-page "https://blowmage.com/minitest-rg/")
4544 (license license:expat)))
4546 (define-public ruby-minitest-global-expectations
4548 (name "ruby-minitest-global-expectations")
4553 (uri (rubygems-uri "minitest-global_expectations"
4557 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4558 (build-system ruby-build-system)
4560 `(("ruby-minitest" ,ruby-minitest)))
4561 (synopsis "Adjust minitest behaviour for calling expectation methods")
4563 "Minitest-global_expectations allows continued use of expectation methods
4564 on all objects. Calling expectation methods on all objects was deprecated in
4565 minitest 5.12, and is planned to be removed from minitest 6.")
4566 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4567 (license license:expat)))
4569 (define-public ruby-minitest-hooks
4571 (name "ruby-minitest-hooks")
4576 (uri (rubygems-uri "minitest-hooks" version))
4579 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4580 (build-system ruby-build-system)
4582 '(#:test-target "spec"))
4584 `(("ruby-sequel" ,ruby-sequel)
4585 ("ruby-sqlite3" ,ruby-sqlite3)))
4586 (synopsis "Hooks for the minitest framework")
4588 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4589 @code{around_all} hooks for Minitest. This allows, for instance, running each
4590 suite of specs inside a database transaction, running each spec inside its own
4591 savepoint inside that transaction. This can significantly speed up testing
4592 for specs that share expensive database setup code.")
4593 (home-page "https://github.com/jeremyevans/minitest-hooks")
4594 (license license:expat)))
4596 (define-public ruby-daemons
4598 (name "ruby-daemons")
4602 (uri (rubygems-uri "daemons" version))
4605 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4606 (build-system ruby-build-system)
4608 `(#:tests? #f)) ; no test suite
4609 (synopsis "Daemonize Ruby programs")
4610 (description "Daemons provides a way to wrap existing Ruby scripts to be
4611 run as a daemon and to be controlled by simple start/stop/restart commands.")
4612 (home-page "https://github.com/thuehlinger/daemons")
4613 (license license:expat)))
4615 (define-public ruby-data_uri
4617 (name "ruby-data_uri")
4622 (uri (rubygems-uri "data_uri" version))
4625 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4626 (build-system ruby-build-system)
4627 (synopsis "URI class for parsing data URIs")
4629 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4630 embedded inside a URI. The URI::Data class provides support for parsing these
4631 URIs using the normal URI.parse method.")
4632 (home-page "https://github.com/dball/data_uri")
4633 (license license:expat)))
4635 (define-public ruby-deep-merge
4637 (name "ruby-deep-merge")
4639 (home-page "https://github.com/danielsdeleo/deep_merge")
4640 ;; The Rubygem source does not contain the gemspec required for tests.
4643 (uri (git-reference (url home-page) (commit version)))
4644 (file-name (git-file-name name version))
4647 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4648 (build-system ruby-build-system)
4650 `(("ruby-minitest" ,ruby-minitest)))
4651 (synopsis "Recursively merge hashes")
4653 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4654 you to merge elements inside a hash together recursively.")
4655 (license license:expat)))
4657 (define-public ruby-git
4663 (uri (rubygems-uri "git" version))
4666 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4667 (build-system ruby-build-system)
4669 `(#:tests? #f ; no tests
4670 #:phases (modify-phases %standard-phases
4671 (add-after 'install 'patch-git-binary
4672 (lambda* (#:key inputs outputs #:allow-other-keys)
4673 ;; Make the default git binary an absolute path to the
4675 (let ((git (string-append (assoc-ref inputs "git")
4677 (config (string-append
4678 (assoc-ref outputs "out")
4679 "/lib/ruby/vendor_ruby/gems/git-"
4680 ,version "/lib/git/config.rb")))
4681 (substitute* (list config)
4683 (string-append "'" git "'")))
4687 (synopsis "Ruby wrappers for Git")
4688 (description "Ruby/Git is a Ruby library that can be used to create, read
4689 and manipulate Git repositories by wrapping system calls to the git binary.")
4690 (home-page "https://github.com/schacon/ruby-git")
4691 (license license:expat)))
4693 (define-public ruby-hocon
4697 (home-page "https://github.com/puppetlabs/ruby-hocon")
4700 (uri (git-reference (url home-page) (commit version)))
4701 (file-name (git-file-name name version))
4704 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4705 (build-system ruby-build-system)
4707 '(#:phases (modify-phases %standard-phases
4709 (lambda* (#:key tests? #:allow-other-keys)
4712 (format #t "test suite not run~%"))
4715 `(("bundler" ,bundler)
4716 ("ruby-rspec" ,ruby-rspec)))
4717 (synopsis "HOCON config library")
4719 "This package provides Ruby support for the @acronym{HOCON,
4720 Human-Optimized Config Object Notation} configuration file format. It
4721 supports parsing and modifying HOCON and JSON files, and rendering parsed
4722 objects back to a @code{String}.")
4723 (license license:asl2.0)))
4725 (define-public ruby-slop
4731 (uri (rubygems-uri "slop" version))
4734 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4735 (build-system ruby-build-system)
4737 `(("ruby-minitest" ,ruby-minitest)))
4738 (synopsis "Ruby command line option parser")
4739 (description "Slop provides a Ruby domain specific language for gathering
4740 options and parsing command line flags.")
4741 (home-page "https://github.com/leejarvis/slop")
4742 (license license:expat)))
4744 (define-public ruby-slop-3
4745 (package (inherit ruby-slop)
4749 (uri (rubygems-uri "slop" version))
4752 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4754 (define-public ruby-multi-xml
4756 (name "ruby-multi-xml")
4761 (uri (rubygems-uri "multi_xml" version))
4764 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4765 (build-system ruby-build-system)
4767 '(#:tests? #f)) ; No included tests
4768 (synopsis "Swappable XML backends for Ruby")
4770 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4771 Nokogiri, Ox, or REXML.")
4772 (home-page "https://github.com/sferik/multi_xml")
4773 (license license:expat)))
4775 (define-public ruby-multipart-post
4777 (name "ruby-multipart-post")
4781 (uri (rubygems-uri "multipart-post" version))
4784 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4785 (build-system ruby-build-system)
4787 `(("bundler" ,bundler)))
4788 (synopsis "Multipart POST library for Ruby")
4789 (description "Multipart-Post Adds multipart POST capability to Ruby's
4791 (home-page "https://github.com/nicksieger/multipart-post")
4792 (license license:expat)))
4794 (define-public ruby-multi-json
4796 (name "ruby-multi-json")
4801 ;; Tests are not distributed at rubygems.org so download from GitHub
4804 (url "https://github.com/intridea/multi_json")
4805 (commit (string-append "v" version))))
4806 (file-name (git-file-name name version))
4809 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4810 (build-system ruby-build-system)
4813 (modify-phases %standard-phases
4814 (add-after 'unpack 'remove-signing-key-reference
4816 (substitute* "multi_json.gemspec"
4817 ((".*spec.signing_key.*") ""))
4820 `(("bundler" ,bundler)
4821 ("ruby-rspec" ,ruby-rspec)
4822 ("ruby-yard" ,ruby-yard)
4823 ("ruby-json-pure" ,ruby-json-pure)
4824 ("ruby-oj" ,ruby-oj)
4825 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4826 (synopsis "Common interface to multiple JSON libraries for Ruby")
4828 "This package provides a common interface to multiple JSON libraries,
4829 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4830 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4831 (home-page "https://github.com/intridea/multi_json")
4832 (license license:expat)))
4834 (define-public ruby-multi-test
4836 (name "ruby-multi-test")
4841 (uri (rubygems-uri "multi_test" version))
4844 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4845 (build-system ruby-build-system)
4847 '(;; Tests require different sets of specific gem versions to be available,
4848 ;; and there is no gemfile that specifies the newest versions of
4849 ;; dependencies to be tested.
4852 "Interface to testing libraries loaded into a running Ruby process")
4854 "@code{multi_test} provides a uniform interface onto whatever testing
4855 libraries that have been loaded into a running Ruby process to help control
4856 rogue test/unit/autorun requires.")
4857 (home-page "https://github.com/cucumber/multi_test")
4858 (license license:expat)))
4860 (define-public ruby-arel
4866 (uri (rubygems-uri "arel" version))
4869 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4870 (build-system ruby-build-system)
4871 (arguments '(#:tests? #f)) ; no tests
4872 (home-page "https://github.com/rails/arel")
4873 (synopsis "SQL AST manager for Ruby")
4874 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4875 Ruby. It simplifies the generation of complex SQL queries and adapts to
4876 various relational database implementations.")
4877 (license license:expat)))
4879 (define-public ruby-marcel
4881 (name "ruby-marcel")
4886 (uri (rubygems-uri "marcel" version))
4889 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4890 (build-system ruby-build-system)
4892 '(;; No included tests
4895 `(("ruby-mimemagic" ,ruby-mimemagic)))
4896 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4898 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4899 Extensions} type detection using magic numbers, filenames, and extensions")
4900 (home-page "https://github.com/basecamp/marcel")
4901 (license license:expat)))
4903 (define-public ruby-minitar
4904 ;; We package from the GitHub source to fix the security issue reported at
4905 ;; https://github.com/halostatue/minitar/issues/16.
4906 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4908 (name "ruby-minitar")
4909 (version (string-append "0.5.4-1." (string-take commit 8)))
4914 (url "https://github.com/halostatue/minitar")
4916 (file-name (string-append name "-" version "-checkout"))
4919 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4920 (build-system ruby-build-system)
4922 '(#:tests? #f)) ; missing a gemspec
4923 (synopsis "Ruby library and utility for handling tar archives")
4925 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4926 that provides the ability to deal with POSIX tar archive files.")
4927 (home-page "http://www.github.com/atoulme/minitar")
4928 (license (list license:gpl2+ license:ruby)))))
4930 (define-public ruby-mini-portile
4932 (name "ruby-mini-portile")
4937 (uri (rubygems-uri "mini_portile" version))
4940 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4941 (build-system ruby-build-system)
4943 '(#:tests? #f)) ; tests require network access
4944 (synopsis "Ports system for Ruby developers")
4945 (description "Mini-portile is a port/recipe system for Ruby developers.
4946 It provides a standard way to compile against specific versions of libraries
4947 to reproduce user environments.")
4948 (home-page "https://github.com/flavorjones/mini_portile")
4949 (license license:expat)))
4951 (define-public ruby-mini-portile-2
4952 (package (inherit ruby-mini-portile)
4956 (uri (rubygems-uri "mini_portile2" version))
4959 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4961 (define-public ruby-nokogiri
4963 (name "ruby-nokogiri")
4967 (uri (rubygems-uri "nokogiri" version))
4970 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4971 (build-system ruby-build-system)
4973 ;; Tests fail because Nokogiri can only test with an installed extension,
4974 ;; and also because many test framework dependencies are missing.
4976 #:gem-flags (list "--" "--use-system-libraries"
4977 (string-append "--with-xml2-include="
4978 (assoc-ref %build-inputs "libxml2")
4979 "/include/libxml2" ))
4981 (modify-phases %standard-phases
4982 (add-before 'build 'patch-extconf
4983 ;; 'pkg-config' is not included in the GEM_PATH during
4984 ;; installation, so we add it directly to the load path.
4985 (lambda* (#:key inputs #:allow-other-keys)
4986 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4987 (substitute* "ext/nokogiri/extconf.rb"
4988 (("gem 'pkg-config'.*")
4989 (string-append "$:.unshift '"
4990 pkg-config "/lib/ruby/vendor_ruby"
4992 ,(package-version ruby-pkg-config)
4996 `(("ruby-hoe" ,ruby-hoe)))
4999 ("libxml2" ,libxml2)
5000 ("libxslt" ,libxslt)))
5002 `(("ruby-mini-portile" ,ruby-mini-portile-2)
5003 ("ruby-pkg-config" ,ruby-pkg-config)))
5004 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
5005 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
5006 both CSS3 selector and XPath 1.0 support.")
5007 (home-page "http://www.nokogiri.org/")
5008 (license license:expat)))
5010 (define-public ruby-method-source
5012 (name "ruby-method-source")
5017 (uri (rubygems-uri "method_source" version))
5020 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5021 (build-system ruby-build-system)
5023 `(#:test-target "spec"
5025 (modify-phases %standard-phases
5026 (add-after 'unpack 'remove-git-ls-files
5027 (lambda* (#:key outputs #:allow-other-keys)
5028 (substitute* "Rakefile"
5029 (("git ls-files") "find . -type f"))
5032 `(("ruby-rspec" ,ruby-rspec)))
5033 (synopsis "Retrieve the source code for Ruby methods")
5034 (description "Method_source retrieves the source code for Ruby methods.
5035 Additionally, it can extract source code from Proc and Lambda objects or just
5037 (home-page "https://github.com/banister/method_source")
5038 (license license:expat)))
5040 (define-public ruby-coderay
5042 (name "ruby-coderay")
5047 (uri (rubygems-uri "coderay" version))
5050 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5051 (build-system ruby-build-system)
5053 '(#:tests? #f)) ; missing test files
5054 (synopsis "Ruby syntax highlighting library")
5055 (description "Coderay is a Ruby library that provides syntax highlighting
5056 for select languages.")
5057 (home-page "http://coderay.rubychan.de")
5058 (license license:expat)))
5060 (define-public ruby-cuke-modeler
5062 (name "ruby-cuke-modeler")
5067 (uri (rubygems-uri "cuke_modeler" version))
5070 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5071 (build-system ruby-build-system)
5072 (arguments `(#:tests? #f)) ;no test suite in gem
5074 `(("ruby-gherkin" ,ruby-gherkin)))
5075 (synopsis "Gherkin test suite analysis tool")
5076 (description "CukeModeler facilitates modeling a test suite that is
5077 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5078 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5079 the @code{cucumber-gherkin} generates when parsing features, as well as
5080 providing models for feature files and directories in order to be able to have
5081 a fully traversable model tree of a test suite's structure. These models can
5082 then be analyzed or manipulated more easily than the underlying AST layer.")
5083 (home-page "https://github.com/enkessler/cuke_modeler")
5084 (license license:expat)))
5086 (define-public ruby-parallel-tests
5088 (name "ruby-parallel-tests")
5090 (home-page "https://github.com/grosser/parallel_tests")
5095 (commit (string-append "v" version))))
5096 (file-name (string-append name version))
5099 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5100 (build-system ruby-build-system)
5102 '(#:test-target "default"
5103 #:phases (modify-phases %standard-phases
5104 (add-after 'patch-source-shebangs 'patch-shell-invokations
5106 (substitute* '("lib/parallel_tests/tasks.rb"
5107 "spec/parallel_tests/tasks_spec.rb")
5108 (("/bin/sh") (which "sh"))
5109 (("/bin/bash") (which "bash")))
5111 (add-before 'check 'remove-version-constraints
5113 ;; Remove hard coded version constraints, instead just
5114 ;; use whatever versions are available in Guix.
5115 (delete-file "Gemfile.lock")
5116 (substitute* "Gemfile"
5122 (add-before 'check 'disable-rails-test
5124 ;; XXX: This test attempts to download and run the test
5125 ;; suites of multiple Rails versions(!) directly.
5126 (delete-file "spec/rails_spec.rb")
5128 (add-before 'check 'set-HOME
5130 ;; Some tests check the output of Bundler, and fail when
5131 ;; Bundler warns that /homeless-shelter does not exist.
5132 (setenv "HOME" "/tmp")
5135 `(("ruby-bump" ,ruby-bump)
5136 ("ruby-cucumber" ,ruby-cucumber)
5137 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5138 ("ruby-minitest" ,ruby-minitest)
5139 ("ruby-rake" ,ruby-rake)
5140 ("ruby-rspec" ,ruby-rspec)
5141 ("ruby-spinach" ,ruby-spinach)))
5143 `(("ruby-parallel" ,ruby-parallel)))
5144 (synopsis "Run tests in parallel")
5146 "This package can speed up @code{Test::Unit}, @code{RSpec},
5147 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5148 across multiple CPU cores.")
5149 (license license:expat)))
5151 (define-public ruby-parser
5153 (name "ruby-parser")
5158 (uri (rubygems-uri "parser" version))
5161 "1f7gmm60yla325wlnd3qkxs59qm2y0aan8ljpg6k18rwzrrfil6z"))))
5162 (build-system ruby-build-system)
5164 '(#:tests? #f)) ; tests not included in gem
5166 `(("bundler" ,bundler)
5167 ("ruby-cliver" ,ruby-cliver)
5168 ("ruby-simplecov" ,ruby-simplecov)
5169 ("ruby-racc" ,ruby-racc)))
5171 `(("ragel" ,ragel)))
5173 `(("ruby-ast" ,ruby-ast)))
5174 (synopsis "Ruby parser written in pure Ruby")
5176 "This package provides a Ruby parser written in pure Ruby.")
5177 (home-page "https://github.com/whitequark/parser")
5178 (license license:expat)))
5180 (define-public ruby-sexp-processor
5182 (name "ruby-sexp-processor")
5187 (uri (rubygems-uri "sexp_processor" version))
5190 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5191 (build-system ruby-build-system)
5193 ;; TODO: Add ruby-minitest-proveit once available.
5194 `(("hoe" ,ruby-hoe)))
5195 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5196 (description "The sexp_processor package is derived from ParseTree, but
5197 contrary to ParseTree, it includes all the generic S-exp processing tools.
5198 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5199 @code{Environment}")
5200 (home-page "https://github.com/seattlerb/sexp_processor")
5201 (license license:expat)))
5203 (define-public ruby-ruby-parser
5205 (name "ruby-ruby-parser")
5210 (uri (rubygems-uri "ruby_parser" version))
5213 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5214 (build-system ruby-build-system)
5218 ("unifdef" ,unifdef)))
5220 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5221 (home-page "https://github.com/seattlerb/ruby_parser/")
5222 (synopsis "Ruby parser written in pure Ruby")
5223 (description "The ruby_parser (RP) package provides a Ruby parser written
5224 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5225 back to Ruby via the @code{ruby2ruby} library.")
5226 (license license:expat)))
5228 (define-public ruby-prawn-manual-builder
5230 (name "ruby-prawn-manual-builder")
5235 (uri (rubygems-uri "prawn-manual_builder" version))
5237 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5238 (build-system ruby-build-system)
5240 '(#:tests? #f ; no included tests
5242 (modify-phases %standard-phases
5243 (add-after 'extract-gemspec 'patch-gemspec
5245 (substitute* ".gemspec"
5246 ;; Loosen the requirement for pdf-inspector
5247 (("~> 1\\.0\\.7") ">= 0")))))))
5249 `(("ruby-coderay" ,ruby-coderay)))
5250 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5252 "This package provides a tool for writing manuals for Prawn and Prawn
5254 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5255 (license %prawn-project-licenses)))
5257 (define-public ruby-progress_bar
5259 (name "ruby-progress_bar")
5264 (uri (rubygems-uri "progress_bar" version))
5267 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5268 (build-system ruby-build-system)
5270 '(#:test-target "spec"))
5272 `(("ruby-highline" ,ruby-highline)
5273 ("ruby-options" ,ruby-options)))
5275 `(("bundler" ,bundler)
5276 ("ruby-rspec" ,ruby-rspec)
5277 ("ruby-timecop" ,ruby-timecop)))
5279 "Ruby library for displaying progress bars")
5281 "ProgressBar is a simple library for displaying progress bars. The
5282 maximum value is configurable, and additional information can be displayed
5283 like the percentage completion, estimated time remaining, elapsed time and
5285 (home-page "https://github.com/paul/progress_bar")
5286 (license license:wtfpl2)))
5288 (define-public ruby-dep
5295 (uri (rubygems-uri "ruby_dep" version))
5298 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5299 (build-system ruby-build-system)
5301 '(#:tests? #f)) ; No included tests
5302 (synopsis "Creates a version constraint of supported Rubies")
5304 "This package helps create a version constraint of supported Rubies,
5305 suitable for a gemspec file.")
5306 (home-page "https://github.com/e2/ruby_dep")
5307 (license license:expat)))
5309 (define-public ruby-progressbar
5311 (name "ruby-progressbar")
5316 (uri (rubygems-uri "ruby-progressbar" version))
5318 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5319 (build-system ruby-build-system)
5321 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5323 (synopsis "Text progress bar library for Ruby")
5325 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5326 The output can be customized with a formatting system.")
5327 (home-page "https://github.com/jfelchner/ruby-progressbar")
5328 (license license:expat)))
5330 (define-public ruby-pry
5337 (uri (rubygems-uri "pry" version))
5340 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5341 (build-system ruby-build-system)
5343 '(#:tests? #f)) ; no tests
5345 `(("ruby-coderay" ,ruby-coderay)
5346 ("ruby-method-source" ,ruby-method-source)))
5347 (synopsis "Ruby REPL")
5348 (description "Pry is an IRB alternative and runtime developer console for
5349 Ruby. It features syntax highlighting, a plugin architecture, runtime
5350 invocation, and source and documentation browsing.")
5351 (home-page "https://cobaltbluemedia.com/pryrepl/")
5352 (license license:expat)))
5354 (define-public ruby-single-cov
5356 (name "ruby-single-cov")
5358 (home-page "https://github.com/grosser/single_cov")
5361 (uri (git-reference (url home-page)
5362 (commit (string-append "v" version))))
5363 (file-name (git-file-name name version))
5366 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5367 (build-system ruby-build-system)
5369 '(#:test-target "default"
5370 #:phases (modify-phases %standard-phases
5371 (replace 'replace-git-ls-files
5373 (substitute* "single_cov.gemspec"
5374 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5375 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5377 (add-before 'check 'remove-version-constraints
5379 (delete-file "Gemfile.lock")
5381 (add-before 'check 'make-files-writable
5383 ;; Tests need to create local directories and open files
5384 ;; with write permissions.
5385 (for-each make-file-writable
5386 (find-files "specs" #:directories? #t))
5388 (add-before 'check 'disable-failing-test
5390 ;; XXX: This test copies assets from minitest, but can
5391 ;; not cope with the files being read-only. Just skip
5393 (substitute* "specs/single_cov_spec.rb"
5394 (("it \"complains when coverage is bad\"")
5395 "xit \"complains when coverage is bad\""))
5398 `(("ruby-bump" ,ruby-bump)
5399 ("ruby-minitest" ,ruby-minitest)
5400 ("ruby-rspec" ,ruby-rspec)
5401 ("ruby-simplecov" ,ruby-simplecov)))
5402 (synopsis "Code coverage reporting tool")
5404 "This package provides actionable code coverage reports for Ruby
5405 projects. It has very little overhead and can be easily integrated with
5406 development tools to catch coverage problems early.")
5407 (license license:expat)))
5409 (define-public ruby-guard
5415 ;; The gem does not include a Rakefile, nor does it contain a
5416 ;; gemspec file, nor does it come with the tests. This is why
5417 ;; we fetch the tarball from Github.
5419 (url "https://github.com/guard/guard")
5420 (commit (string-append "v" version))))
5421 (file-name (git-file-name name version))
5424 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5425 (build-system ruby-build-system)
5427 `(#:tests? #f ; tests require cucumber
5429 (modify-phases %standard-phases
5430 (add-after 'unpack 'remove-git-ls-files
5431 (lambda* (#:key outputs #:allow-other-keys)
5432 (substitute* "guard.gemspec"
5433 (("git ls-files -z") "find . -type f -print0"))
5437 (invoke "gem" "build" "guard.gemspec"))))))
5439 `(("ruby-formatador" ,ruby-formatador)
5440 ("ruby-listen" ,ruby-listen)
5441 ("ruby-lumberjack" ,ruby-lumberjack)
5442 ("ruby-nenv" ,ruby-nenv)
5443 ("ruby-notiffany" ,ruby-notiffany)
5444 ("ruby-pry" ,ruby-pry)
5445 ("ruby-shellany" ,ruby-shellany)
5446 ("ruby-thor" ,ruby-thor)))
5448 `(("bundler" ,bundler)
5449 ("ruby-rspec" ,ruby-rspec)))
5450 (synopsis "Tool to handle events on file system modifications")
5452 "Guard is a command line tool to easily handle events on file system
5453 modifications. Guard automates various tasks by running custom rules whenever
5454 file or directories are modified.")
5455 (home-page "https://guardgem.org/")
5456 (license license:expat)))
5458 (define-public ruby-spinach
5460 (name "ruby-spinach")
5462 (home-page "https://github.com/codegram/spinach")
5465 (uri (rubygems-uri "spinach" version))
5468 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5469 (build-system ruby-build-system)
5471 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5472 ;; which in turn depends on many other unpackaged gems. Enable once
5473 ;; capybara is available.
5476 `(("ruby-colorize" ,ruby-colorize)
5477 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5478 ("ruby-json" ,ruby-json)))
5479 (synopsis "Gherkin-based BDD framework")
5481 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5482 framework that leverages the expressive @code{Gherkin} language to help you
5483 define executable specifications of your code.")
5484 (license license:expat)))
5486 (define-public ruby-tilt
5492 (method git-fetch) ;the distributed gem lacks tests
5494 (url "https://github.com/rtomayko/tilt")
5495 (commit (string-append "v" version))))
5496 (file-name (git-file-name name version))
5499 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5500 (build-system ruby-build-system)
5503 (modify-phases %standard-phases
5504 (add-after 'unpack 'remove-some-dependencies
5506 (substitute* "Gemfile"
5507 ;; TODO ronn is used for generating the manual
5508 (("gem 'ronn'.*") "\n")
5509 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5510 ;; pass it in as a native-input
5511 (("gem 'haml'.*") "\n")
5512 ;; TODO Not all of these gems are packaged for Guix yet:
5513 ;; less, coffee-script, livescript, babel-transpiler,
5515 (("if can_execjs") "if false")
5516 ;; Disable the secondary group to reduce the number of
5517 ;; dependencies. None of the normal approaches work, so patch
5518 ;; the Gemfile instead.
5519 (("group :secondary") "[].each"))
5522 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5523 ("ruby-sassc" ,ruby-sassc)))
5525 `(("bundler" ,bundler)
5526 ("ruby-yard" ,ruby-yard)
5527 ("ruby-builder" ,ruby-builder)
5528 ("ruby-erubis" ,ruby-erubis)
5529 ("ruby-markaby" ,ruby-markaby)))
5530 (synopsis "Generic interface to multiple Ruby template engines")
5532 "Tilt is a thin interface over a number of different Ruby template
5533 engines in an attempt to make their usage as generic as possible.")
5534 (home-page "https://github.com/rtomayko/tilt/")
5535 (license license:expat)))
5537 (define-public ruby-thread-safe
5539 (name "ruby-thread-safe")
5544 (uri (rubygems-uri "thread_safe" version))
5547 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5548 (build-system ruby-build-system)
5550 '(#:tests? #f)) ; needs simplecov, among others
5551 (synopsis "Thread-safe utilities for Ruby")
5552 (description "The thread_safe library provides thread-safe collections and
5553 utilities for Ruby.")
5554 (home-page "https://github.com/ruby-concurrency/thread_safe")
5555 (license license:asl2.0)))
5557 (define-public ruby-tzinfo
5559 (name "ruby-tzinfo")
5564 (uri (rubygems-uri "tzinfo" version))
5567 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5568 (build-system ruby-build-system)
5571 (modify-phases %standard-phases
5572 (add-after 'unpack 'skip-safe-tests
5574 (substitute* "test/test_utils.rb"
5575 (("def safe_test\\(options = \\{\\}\\)")
5576 "def safe_test(options = {})
5577 skip('The Guix build environment has an unsafe load path')"))
5580 `(("ruby-thread-safe" ,ruby-thread-safe)))
5581 (synopsis "Time zone library for Ruby")
5582 (description "TZInfo is a Ruby library that provides daylight savings
5583 aware transformations between times in different time zones.")
5584 (home-page "https://tzinfo.github.io")
5585 (license license:expat)))
5587 (define-public ruby-tzinfo-data
5589 (name "ruby-tzinfo-data")
5590 (version "1.2017.3")
5594 ;; Download from GitHub because the rubygems version does not contain
5595 ;; Rakefile or tests.
5597 (url "https://github.com/tzinfo/tzinfo-data")
5598 (commit (string-append "v" version))))
5599 (file-name (git-file-name name version))
5602 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5603 ;; Remove the known test failure.
5604 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5605 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5606 (patches (search-patches
5607 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5608 (build-system ruby-build-system)
5610 `(("ruby-tzinfo" ,ruby-tzinfo)))
5611 (synopsis "Data from the IANA Time Zone database")
5613 "This library provides @code{TZInfo::Data}, which contains data from the
5614 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5615 (home-page "https://tzinfo.github.io")
5616 (license license:expat)))
5618 (define-public ruby-rb-inotify
5620 (name "ruby-rb-inotify")
5625 (uri (rubygems-uri "rb-inotify" version))
5628 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5629 (build-system ruby-build-system)
5631 '(#:tests? #f ; there are no tests
5633 (modify-phases %standard-phases
5634 ;; Building the gemspec with rake is not working here since it is
5635 ;; generated with Jeweler. It is also unnecessary because the
5636 ;; existing gemspec does not use any development tools to generate a
5640 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5642 `(("ruby-ffi" ,ruby-ffi)))
5644 `(("ruby-yard" ,ruby-yard)))
5645 (synopsis "Ruby wrapper for Linux's inotify")
5646 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5647 kernel subsystem for monitoring changes to files and directories.")
5648 (home-page "https://github.com/nex3/rb-inotify")
5649 (license license:expat)))
5651 (define-public ruby-pry-editline
5653 (name "ruby-pry-editline")
5657 (uri (rubygems-uri "pry-editline" version))
5660 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5661 (build-system ruby-build-system)
5662 (arguments `(#:tests? #f)) ; no tests included
5664 `(("bundler" ,bundler)))
5665 (synopsis "Open the current REPL line in an editor")
5667 "This gem provides a plugin for the Ruby REPL to enable opening the
5668 current line in an external editor.")
5669 (home-page "https://github.com/tpope/pry-editline")
5670 (license license:expat)))
5672 (define-public ruby-sdoc
5678 (uri (rubygems-uri "sdoc" version))
5681 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5682 (build-system ruby-build-system)
5685 (modify-phases %standard-phases
5686 (add-before 'check 'set-rubylib-and-patch-gemfile
5688 (setenv "RUBYLIB" "lib")
5689 (substitute* "sdoc.gemspec"
5690 (("s.add_runtime_dependency.*") "\n")
5691 (("s.add_dependency.*") "\n"))
5692 (substitute* "Gemfile"
5694 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5697 `(("ruby-json" ,ruby-json)))
5699 `(("bundler" ,bundler)
5700 ("ruby-minitest" ,ruby-minitest)
5701 ("ruby-hoe" ,ruby-hoe)))
5702 (synopsis "Generate searchable RDoc documentation")
5704 "SDoc is an RDoc documentation generator to build searchable HTML
5705 documentation for Ruby code.")
5706 (home-page "https://github.com/voloko/sdoc")
5707 (license license:expat)))
5709 (define-public ruby-tins
5715 (uri (rubygems-uri "tins" version))
5718 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5719 (build-system ruby-build-system)
5720 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5721 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5724 `(#:tests? #f ; there are no tests
5726 (modify-phases %standard-phases
5729 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5731 (substitute* "tins.gemspec"
5732 (("\"lib/spruz\", ") ""))
5733 (invoke "gem" "build" "tins.gemspec"))))))
5734 (synopsis "Assorted tools for Ruby")
5735 (description "Tins is a Ruby library providing assorted tools.")
5736 (home-page "https://github.com/flori/tins")
5737 (license license:expat)))
5739 (define-public ruby-gem-hadar
5741 (name "ruby-gem-hadar")
5745 (uri (rubygems-uri "gem_hadar" version))
5748 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5749 (build-system ruby-build-system)
5750 ;; This gem needs itself at development time. We disable rebuilding of the
5751 ;; gemspec to avoid this loop.
5753 `(#:tests? #f ; there are no tests
5755 (modify-phases %standard-phases
5758 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5761 ("ruby-tins" ,ruby-tins)
5762 ("ruby-yard" ,ruby-yard)))
5763 (synopsis "Library for the development of Ruby gems")
5765 "This library contains some useful functionality to support the
5766 development of Ruby gems.")
5767 (home-page "https://github.com/flori/gem_hadar")
5768 (license license:expat)))
5770 (define-public ruby-minitest-tu-shim
5772 (name "ruby-minitest-tu-shim")
5776 (uri (rubygems-uri "minitest_tu_shim" version))
5779 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5780 (build-system ruby-build-system)
5783 (modify-phases %standard-phases
5784 (add-after 'unpack 'fix-test-include-path
5785 (lambda* (#:key inputs #:allow-other-keys)
5786 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5787 (substitute* "Rakefile"
5788 (("Hoe\\.add_include_dirs .*")
5789 (string-append "Hoe.add_include_dirs \""
5790 minitest "/lib/ruby/vendor_ruby"
5792 ,(package-version ruby-minitest-4)
5795 (add-before 'check 'fix-test-assumptions
5797 ;; The test output includes the file name, so a couple of tests
5798 ;; fail. Changing the regular expressions slightly fixes this
5800 (substitute* "test/test_mini_test.rb"
5801 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5802 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5803 (("gsub\\(/.*, 'FILE:LINE'\\)")
5804 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5807 `(("ruby-minitest-4" ,ruby-minitest-4)))
5809 `(("ruby-hoe" ,ruby-hoe)))
5810 (synopsis "Adapter library between minitest and test/unit")
5812 "This library bridges the gap between the small and fast minitest and
5813 Ruby's large and slower test/unit.")
5814 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5815 (license license:expat)))
5817 (define-public ruby-term-ansicolor
5819 (name "ruby-term-ansicolor")
5823 (uri (rubygems-uri "term-ansicolor" version))
5826 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5827 (build-system ruby-build-system)
5828 ;; Rebuilding the gemspec seems to require git, even though this is not a
5829 ;; git repository, so we just build the gem from the existing gemspec.
5832 (modify-phases %standard-phases
5833 (add-after 'unpack 'fix-test
5835 (substitute* "tests/hsl_triple_test.rb"
5840 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5842 `(("ruby-tins" ,ruby-tins)))
5844 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5845 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5846 (synopsis "Ruby library to control the attributes of terminal output")
5848 "This Ruby library uses ANSI escape sequences to control the attributes
5849 of terminal output.")
5850 (home-page "https://flori.github.io/term-ansicolor/")
5851 ;; There is no mention of the "or later" clause.
5852 (license license:gpl2)))
5854 (define-public ruby-terraform
5856 (name "ruby-terraform")
5861 (uri (rubygems-uri "ruby-terraform" version))
5864 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5865 (build-system ruby-build-system)
5867 '(#:tests? #f)) ; No included tests
5869 `(("ruby-lino" ,ruby-lino)))
5870 (synopsis "Ruby wrapper around the Terraform command line interface")
5872 "This package provides a Ruby wrapper around the Terraform command line
5873 interface so that Terraform can be more easily invoked from Ruby code.")
5874 (home-page "https://github.com/infrablocks/ruby_terraform")
5875 (license license:expat)))
5877 (define-public ruby-pstree
5879 (name "ruby-pstree")
5883 (uri (rubygems-uri "pstree" version))
5886 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5887 (build-system ruby-build-system)
5889 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5890 ("bundler" ,bundler)))
5891 (synopsis "Create a process tree data structure")
5893 "This library uses the output of the @code{ps} command to create a
5894 process tree data structure for the current host.")
5895 (home-page "https://github.com/flori/pstree")
5896 ;; There is no mention of the "or later" clause.
5897 (license license:gpl2)))
5899 (define-public ruby-utils
5905 (uri (rubygems-uri "utils" version))
5908 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5909 (build-system ruby-build-system)
5911 `(("ruby-tins" ,ruby-tins)
5912 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5913 ("ruby-pstree" ,ruby-pstree)
5914 ("ruby-pry-editline" ,ruby-pry-editline)))
5916 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5917 ("bundler" ,bundler)))
5918 (synopsis "Command line tools for working with Ruby")
5920 "This package provides assorted command line tools that may be useful
5921 when working with Ruby code.")
5922 (home-page "https://github.com/flori/utils")
5923 ;; There is no mention of the "or later" clause.
5924 (license license:gpl2)))
5926 (define-public ruby-jaro-winkler
5928 (name "ruby-jaro-winkler")
5933 (uri (rubygems-uri "jaro_winkler" version))
5935 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5936 (build-system ruby-build-system)
5938 '(#:tests? #f)) ; no included tests
5939 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5941 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5942 algorithm. It is written as a C extension and will fallback to a pure Ruby
5943 implementation on platforms where this is unsupported.")
5944 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5945 (license license:expat)))
5947 (define-public ruby-json
5954 (uri (rubygems-uri "json" version))
5957 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5958 (build-system ruby-build-system)
5959 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5960 (synopsis "JSON library for Ruby")
5961 (description "This Ruby library provides a JSON implementation written as
5962 a native C extension.")
5963 (home-page "http://json-jruby.rubyforge.org/")
5964 (license (list license:ruby license:gpl2)))) ; GPL2 only
5966 (define-public ruby-json-pure
5968 (name "ruby-json-pure")
5972 (uri (rubygems-uri "json_pure" version))
5975 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5976 (build-system ruby-build-system)
5979 (modify-phases %standard-phases
5980 (add-after 'unpack 'fix-rakefile
5982 (substitute* "Rakefile"
5983 ;; Since this is not a git repository, do not call 'git'.
5984 (("`git ls-files`") "`find . -type f |sort`")
5985 ;; Loosen dependency constraint.
5986 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5988 (add-after 'replace-git-ls-files 'regenerate-gemspec
5990 ;; Regenerate gemspec so loosened dependency constraints are
5992 (invoke "rake" "gemspec")))
5993 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5995 ;; This gemspec doesn't look to be generated by the above
5996 ;; command, so patch it separately.
5997 (substitute* "json-java.gemspec"
5998 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5999 "%q<test-unit>.freeze, [\">= 2.0\"]"))
6002 `(("bundler" ,bundler)
6004 ("ruby-simplecov" ,ruby-simplecov)
6005 ("ruby-test-unit" ,ruby-test-unit)))
6006 (synopsis "JSON implementation in pure Ruby")
6008 "This package provides a JSON implementation written in pure Ruby.")
6009 (home-page "https://flori.github.com/json/")
6010 (license license:ruby)))
6012 (define-public ruby-jwt
6019 (uri (rubygems-uri "jwt" version))
6022 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
6023 (build-system ruby-build-system)
6025 '(#:test-target "test"
6027 (modify-phases %standard-phases
6028 (add-after 'unpack 'remove-unnecessary-dependencies
6030 (substitute* "spec/spec_helper.rb"
6031 (("require 'simplecov.*") "\n")
6032 ;; Use [].each to disable running the SimpleCov configuration
6034 (("SimpleCov\\.configure") "[].each")
6035 (("require 'codeclimate-test-reporter'") "")
6036 (("require 'codacy-coverage'") "")
6037 (("Codacy::Reporter\\.start") ""))
6040 `(("bundler" ,bundler)
6041 ("ruby-rspec" ,ruby-rspec)
6042 ("ruby-rbnacl" ,ruby-rbnacl)))
6043 (synopsis "Ruby implementation of the JSON Web Token standard")
6045 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6046 @acronym{JWT, JSON Web Token} standard.")
6047 (home-page "https://github.com/jwt/ruby-jwt")
6048 (license license:expat)))
6050 ;; Even though this package only provides bindings for a Mac OSX API it is
6051 ;; required by "ruby-listen" at runtime.
6052 (define-public ruby-rb-fsevent
6054 (name "ruby-rb-fsevent")
6058 (uri (rubygems-uri "rb-fsevent" version))
6061 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6062 (build-system ruby-build-system)
6063 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6064 ;; "listen", which needs "rb-fsevent" at runtime.
6065 (arguments `(#:tests? #f))
6066 (synopsis "FSEvents API with signals catching")
6068 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6069 (home-page "https://rubygems.org/gems/rb-fsevent")
6070 (license license:expat)))
6072 (define-public ruby-listen
6074 (name "ruby-listen")
6078 ;; The gem does not include a Rakefile, so fetch from the Git
6082 (url "https://github.com/guard/listen")
6083 (commit (string-append "v" version))))
6084 (file-name (git-file-name name version))
6087 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6088 (build-system ruby-build-system)
6090 `(#:test-target "spec"
6092 (modify-phases %standard-phases
6093 (add-after 'unpack 'fix-files-in-gemspec
6095 (substitute* "listen.gemspec"
6096 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6098 (add-before 'check 'remove-unnecessary-dependencies'
6100 (substitute* "Rakefile"
6101 ;; Rubocop is for code linting, and is unnecessary for running
6103 ((".*rubocop.*") ""))
6106 `(("bundler" ,bundler)
6107 ("ruby-rspec" ,ruby-rspec)))
6109 `(;; ruby-thor is used for the command line interface, and is referenced
6110 ;; in the wrapper, and therefore just needs to be an input.
6111 ("ruby-thor" ,ruby-thor)))
6113 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6114 ("ruby-rb-inotify" ,ruby-rb-inotify)
6115 ("ruby-dep" ,ruby-dep)))
6116 (synopsis "Listen to file modifications")
6117 (description "The Listen gem listens to file modifications and notifies
6118 you about the changes.")
6119 (home-page "https://github.com/guard/listen")
6120 (license license:expat)))
6122 (define-public ruby-loofah
6124 (name "ruby-loofah")
6129 (uri (rubygems-uri "loofah" version))
6132 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6133 (build-system ruby-build-system)
6136 (modify-phases %standard-phases
6137 (add-after 'unpack 'remove-unnecessary-dependencies
6139 ;; concourse is a development tool which is unused, so remove it
6140 ;; so it's not required.
6141 (substitute* "Gemfile"
6142 ((".*\"concourse\".*") "\n"))
6143 (substitute* "Rakefile"
6144 (("require 'concourse'") "")
6145 (("Concourse\\.new.*") "\n"))
6148 `(("ruby-hoe" ,ruby-hoe)
6149 ("ruby-rr" ,ruby-rr)))
6151 `(("ruby-nokogiri" ,ruby-nokogiri)
6152 ("ruby-crass" ,ruby-crass)))
6153 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6155 "Loofah is a general library for manipulating and transforming HTML/XML
6156 documents and fragments. It's built on top of Nokogiri and libxml2.")
6157 (home-page "https://github.com/flavorjones/loofah")
6158 (license license:expat)))
6160 (define-public ruby-activesupport
6162 (name "ruby-activesupport")
6167 (uri (rubygems-uri "activesupport" version))
6170 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6171 (build-system ruby-build-system)
6174 (modify-phases %standard-phases
6177 ;; There are no tests, instead attempt to load the library.
6178 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6180 `(("ruby-concurrent" ,ruby-concurrent)
6181 ("ruby-i18n" ,ruby-i18n)
6182 ("ruby-minitest" ,ruby-minitest)
6183 ("ruby-tzinfo" ,ruby-tzinfo)
6184 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6185 (synopsis "Ruby on Rails utility library")
6186 (description "ActiveSupport is a toolkit of support libraries and Ruby
6187 core extensions extracted from the Rails framework. It includes support for
6188 multibyte strings, internationalization, time zones, and testing.")
6189 (home-page "http://www.rubyonrails.org")
6190 (license license:expat)))
6192 (define-public ruby-crass
6196 (home-page "https://github.com/rgrove/crass")
6198 ;; The gem does not contain tests, so pull from git.
6202 (commit (string-append "v" version))))
6203 (file-name (git-file-name name version))
6206 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6207 (build-system ruby-build-system)
6208 (synopsis "Pure Ruby CSS parser")
6210 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6211 (license license:expat)))
6213 (define-public ruby-nokogumbo
6215 (name "ruby-nokogumbo")
6218 ;; We use the git reference, because there's no Rakefile in the
6219 ;; published gem and the tarball on Github is outdated.
6222 (url "https://github.com/rubys/nokogumbo")
6223 (commit (string-append "v" version))))
6224 (file-name (string-append name "-" version "-checkout"))
6227 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6228 (build-system ruby-build-system)
6230 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6232 `(("gumbo-parser" ,gumbo-parser)))
6234 `(("ruby-nokogiri" ,ruby-nokogiri)))
6235 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6237 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6238 access the result as a Nokogiri parsed document.")
6239 (home-page "https://github.com/rubys/nokogumbo/")
6240 (license license:asl2.0)))
6242 (define-public ruby-sanitize
6244 (name "ruby-sanitize")
6246 (home-page "https://github.com/rgrove/sanitize")
6249 ;; The gem does not include the Rakefile, so we download the
6250 ;; source from Github.
6253 (commit (string-append "v" version))))
6254 (file-name (git-file-name name version))
6255 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6258 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6259 (build-system ruby-build-system)
6261 `(("ruby-crass" ,ruby-crass)
6262 ("ruby-nokogiri" ,ruby-nokogiri)
6263 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6265 `(("ruby-minitest" ,ruby-minitest)))
6266 (synopsis "Whitelist-based HTML and CSS sanitizer")
6268 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6269 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6270 unacceptable HTML and/or CSS from a string.")
6271 (license license:expat)))
6273 (define-public ruby-oj
6280 ;; Version on rubygems.org does not contain Rakefile, so download from
6283 (url "https://github.com/ohler55/oj")
6284 (commit (string-append "v" version))))
6285 (file-name (git-file-name name version))
6288 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6289 (build-system ruby-build-system)
6291 '(#:test-target "test_all"
6293 (modify-phases %standard-phases
6294 (add-before 'check 'disable-bundler
6296 (substitute* "Rakefile"
6297 (("Bundler\\.with_clean_env") "1.times")
6298 (("bundle exec ") "")))))))
6300 `(("bundler" ,bundler)
6301 ("ruby-rspec" ,ruby-rspec)
6302 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6303 (synopsis "JSON parser for Ruby optimized for speed")
6305 "Oj is a JSON parser and generator for Ruby, where the encoding and
6306 decoding of JSON is implemented as a C extension to Ruby.")
6307 (home-page "http://www.ohler.com/oj/")
6308 (license (list license:expat ; Ruby code
6309 license:bsd-3)))) ; extension code
6311 (define-public ruby-ox
6318 (uri (rubygems-uri "ox" version))
6321 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6322 (build-system ruby-build-system)
6324 '(#:tests? #f)) ; no tests
6325 (synopsis "Optimized XML library for Ruby")
6327 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6328 written as a native C extension. It was designed to be an alternative to
6329 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6330 alternative to Marshal for Object serialization. ")
6331 (home-page "http://www.ohler.com/ox")
6332 (license license:expat)))
6334 (define-public ruby-redcloth
6336 (name "ruby-redcloth")
6340 (uri (rubygems-uri "RedCloth" version))
6343 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6344 (build-system ruby-build-system)
6346 `(#:tests? #f ; no tests
6348 (modify-phases %standard-phases
6349 ;; Redcloth has complicated rake tasks to build various versions for
6350 ;; multiple targets using RVM. We don't want this so we just use the
6351 ;; existing gemspec.
6354 (invoke "gem" "build" "redcloth.gemspec"))))))
6356 `(("bundler" ,bundler)
6357 ("ruby-diff-lcs" ,ruby-diff-lcs)
6358 ("ruby-rspec-2" ,ruby-rspec-2)))
6359 (synopsis "Textile markup language parser for Ruby")
6361 "RedCloth is a Ruby parser for the Textile markup language.")
6362 (home-page "http://redcloth.org")
6363 (license license:expat)))
6365 (define-public ruby-pg
6372 (uri (rubygems-uri "pg" version))
6375 "13mfrysrdrh8cka1d96zm0lnfs59i5x2g6ps49r2kz5p3q81xrzj"))))
6376 (build-system ruby-build-system)
6378 '(#:test-target "spec"))
6380 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6381 ("ruby-hoe" ,ruby-hoe)
6382 ("ruby-rspec" ,ruby-rspec)))
6384 `(("postgresql" ,postgresql)))
6385 (synopsis "Ruby interface to PostgreSQL")
6386 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6387 with PostgreSQL 9.0 and later.")
6388 (home-page "https://bitbucket.org/ged/ruby-pg")
6389 (license license:ruby)))
6391 (define-public ruby-byebug
6393 (name "ruby-byebug")
6398 (uri (rubygems-uri "byebug" version))
6401 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6402 (build-system ruby-build-system)
6404 '(#:tests? #f)) ; no tests
6405 (synopsis "Debugger for Ruby 2")
6406 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6407 TracePoint C API for execution control and the Debug Inspector C API for call
6408 stack navigation. The core component provides support that front-ends can
6409 build on. It provides breakpoint handling and bindings for stack frames among
6410 other things and it comes with a command line interface.")
6411 (home-page "https://github.com/deivid-rodriguez/byebug")
6412 (license license:bsd-2)))
6414 ;;; TODO: Make it the default byebug in core-updates.
6415 (define-public ruby-byebug-11
6417 (inherit ruby-byebug)
6418 (name "ruby-byebug")
6424 (url "https://github.com/deivid-rodriguez/byebug")
6425 (commit (string-append "v" version))))
6426 (file-name (git-file-name name version))
6429 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6430 (modules '((guix build utils)))
6433 ;; Remove wrappers that try to setup a bundle environment.
6434 (with-directory-excursion "bin"
6435 (for-each delete-file '("bundle" "rake" "rubocop"))
6436 ;; ruby-minitest doesn't come with a launcher, so fix the one
6438 (substitute* "minitest"
6439 (("load File\\.expand_path\\(\"bundle\".*") "")
6440 (("require \"bundler/setup\".*") "")))
6445 (modify-phases %standard-phases
6446 (add-after 'unpack 'skip-tmp-path-sensitive-test
6448 (substitute* "test/commands/where_test.rb"
6449 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6452 (add-before 'build 'compile
6454 (invoke "rake" "compile")))
6455 (add-before 'check 'set-home
6457 (setenv "HOME" (getcwd))
6460 `(("bundler" ,bundler)
6461 ("ruby-chandler" ,ruby-chandler)
6462 ("ruby-minitest" ,ruby-minitest)
6463 ("ruby-pry" ,ruby-pry)
6464 ("ruby-rake-compiler" ,ruby-rake-compiler)
6465 ("ruby-rubocop" ,ruby-rubocop)
6466 ("ruby-yard" ,ruby-yard)))))
6468 (define-public ruby-netrc
6474 (uri (rubygems-uri "netrc" version))
6477 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6478 (build-system ruby-build-system)
6481 (modify-phases %standard-phases
6483 ;; There is no Rakefile and minitest can only run one file at once,
6484 ;; so we have to iterate over all test files.
6486 (for-each (lambda (file)
6487 (invoke "ruby" "-Itest" file))
6488 (find-files "./test" "test_.*\\.rb"))
6491 `(("ruby-minitest" ,ruby-minitest)))
6492 (synopsis "Library to read and update netrc files")
6494 "This library can read and update netrc files, preserving formatting
6495 including comments and whitespace.")
6496 (home-page "https://github.com/geemus/netrc")
6497 (license license:expat)))
6499 (define-public ruby-unf-ext
6501 (name "ruby-unf-ext")
6505 (uri (rubygems-uri "unf_ext" version))
6508 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6509 (build-system ruby-build-system)
6512 (modify-phases %standard-phases
6513 (add-after 'build 'build-ext
6514 (lambda _ (invoke "rake" "compile:unf_ext")))
6515 (add-before 'check 'lose-rake-compiler-dock-dependency
6517 ;; rake-compiler-dock is listed in the gemspec, but only
6518 ;; required when cross-compiling.
6519 (substitute* "unf_ext.gemspec"
6520 ((".*rake-compiler-dock.*") ""))
6523 `(("bundler" ,bundler)
6524 ("ruby-rake-compiler" ,ruby-rake-compiler)
6525 ("ruby-test-unit" ,ruby-test-unit)))
6526 (synopsis "Unicode normalization form support library")
6528 "This package provides unicode normalization form support for Ruby.")
6529 (home-page "https://github.com/knu/ruby-unf_ext")
6530 (license license:expat)))
6532 (define-public ruby-tdiff
6533 ;; Use a newer than released snapshot so that rspec-2 is not required.
6534 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6537 (version (string-append "0.3.3-1." (string-take commit 8)))
6541 (url "https://github.com/postmodern/tdiff")
6543 (file-name (string-append name "-" version "-checkout"))
6546 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6547 (build-system ruby-build-system)
6549 `(("ruby-rspec" ,ruby-rspec)
6550 ("ruby-yard" ,ruby-yard)
6551 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6552 (synopsis "Calculate the differences between two tree-like structures")
6554 "This library provides functions to calculate the differences between two
6555 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6556 (home-page "https://github.com/postmodern/tdiff")
6557 (license license:expat))))
6559 (define-public ruby-nokogiri-diff
6560 ;; Use a newer than released snapshot so that rspec-2 is not required.
6561 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6563 (name "ruby-nokogiri-diff")
6564 (version (string-append "0.2.0-1." (string-take commit 8)))
6568 (url "https://github.com/postmodern/nokogiri-diff")
6570 (file-name (string-append name "-" version "-checkout"))
6573 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6574 (build-system ruby-build-system)
6576 `(("ruby-tdiff" ,ruby-tdiff)
6577 ("ruby-nokogiri" ,ruby-nokogiri)))
6579 `(("ruby-rspec" ,ruby-rspec)
6580 ("ruby-yard" ,ruby-yard)
6581 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6582 (synopsis "Calculate the differences between two XML/HTML documents")
6584 "@code{Nokogiri::Diff} adds the ability to calculate the
6585 differences (added or removed nodes) between two XML/HTML documents.")
6586 (home-page "https://github.com/postmodern/nokogiri-diff")
6587 (license license:expat))))
6589 (define-public ruby-racc
6596 (uri (rubygems-uri "racc" version))
6599 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6600 (build-system ruby-build-system)
6602 `(("ruby-hoe" ,ruby-hoe)
6603 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6604 (synopsis "LALR(1) parser generator for Ruby")
6606 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6607 generates Ruby program.")
6608 (home-page "http://i.loveruby.net/en/projects/racc/")
6610 ;; Generally licensed under the LGPL2.1, and some files also
6611 ;; available under the same license as Ruby.
6615 (define-public ruby-rack
6622 ;; Download from GitHub so that the patch can be applied.
6624 (url "https://github.com/rack/rack")
6626 (file-name (git-file-name name version))
6629 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6630 ;; Ignore test which fails inside the build environment but works
6632 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6633 (build-system ruby-build-system)
6636 (modify-phases %standard-phases
6637 (add-before 'check 'fix-tests
6639 ;; A few of the tests use the length of a file on disk for
6640 ;; Content-Length and Content-Range headers. However, this file
6641 ;; has a shebang in it which an earlier phase patches, growing
6642 ;; the file size from 193 to 239 bytes when the store prefix is
6644 (let ((size-diff (- (string-length (which "ruby"))
6645 (string-length "/usr/bin/env ruby"))))
6646 (substitute* '("test/spec_file.rb")
6648 (number->string (+ 193 size-diff)))
6649 (("bytes(.)22-33" all delimiter)
6650 (string-append "bytes"
6652 (number->string (+ 22 size-diff))
6654 (number->string (+ 33 size-diff))))))
6656 (add-before 'reset-gzip-timestamps 'make-files-writable
6657 (lambda* (#:key outputs #:allow-other-keys)
6658 ;; Make sure .gz files are writable so that the
6659 ;; 'reset-gzip-timestamps' phase can do its work.
6660 (let ((out (assoc-ref outputs "out")))
6661 (for-each make-file-writable
6662 (find-files out "\\.gz$"))
6665 `(("ruby-minitest" ,ruby-minitest)
6666 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6669 `(("ruby-concurrent" ,ruby-concurrent)))
6670 (synopsis "Unified web application interface for Ruby")
6671 (description "Rack provides a minimal, modular and adaptable interface for
6672 developing web applications in Ruby. By wrapping HTTP requests and responses,
6673 it unifies the API for web servers, web frameworks, and software in between
6674 into a single method call.")
6675 (home-page "https://rack.github.io/")
6676 (license license:expat)))
6678 (define-public ruby-rack-test
6680 (name "ruby-rack-test")
6685 (uri (rubygems-uri "rack-test" version))
6688 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6689 (build-system ruby-build-system)
6691 ;; Disable tests because of circular dependencies: requires sinatra,
6692 ;; which requires rack-protection, which requires rack-test. Instead
6693 ;; simply require the library.
6695 (modify-phases %standard-phases
6698 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6700 `(("ruby-rack" ,ruby-rack)))
6701 (synopsis "Testing API for Rack applications")
6703 "Rack::Test is a small, simple testing API for Rack applications. It can
6704 be used on its own or as a reusable starting point for Web frameworks and
6705 testing libraries to build on.")
6706 (home-page "https://github.com/rack-test/rack-test")
6707 (license license:expat)))
6709 (define-public ruby-rack-protection
6711 (name "ruby-rack-protection")
6716 (uri (rubygems-uri "rack-protection" version))
6719 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6720 (build-system ruby-build-system)
6722 '(;; Tests missing from the gem.
6725 `(("ruby-rack" ,ruby-rack)))
6727 `(("bundler" ,bundler)
6728 ("ruby-rspec" ,ruby-rspec-2)
6729 ("ruby-rack-test" ,ruby-rack-test)))
6730 (synopsis "Rack middleware that protects against typical web attacks")
6731 (description "Rack middleware that can be used to protect against typical
6732 web attacks. It can protect all Rack apps, including Rails. For instance, it
6733 protects against cross site request forgery, cross site scripting,
6734 clickjacking, directory traversal, session hijacking and IP spoofing.")
6735 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6736 (license license:expat)))
6738 (define-public ruby-rainbow
6740 (name "ruby-rainbow")
6745 (uri (rubygems-uri "rainbow" version))
6748 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6749 (build-system ruby-build-system)
6752 (modify-phases %standard-phases
6753 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6756 (lambda* (#:key tests? #:allow-other-keys)
6761 `(("bundler" ,bundler)
6762 ("ruby-rspec" ,ruby-rspec)))
6763 (synopsis "Colorize printed text on ANSI terminals")
6765 "@code{rainbow} provides a string presenter object to colorize strings by
6766 wrapping them in ANSI escape codes.")
6767 (home-page "https://github.com/sickill/rainbow")
6768 (license license:expat)))
6770 (define-public ruby-rr
6777 (uri (rubygems-uri "rr" version))
6780 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6781 (build-system ruby-build-system)
6783 '(#:tests? #f)) ; test files not included
6785 `(("bundler" ,bundler)
6786 ("ruby-rspec" ,ruby-rspec)))
6787 (synopsis "Ruby test double framework")
6789 "RR is a test double framework that features a rich selection of double
6790 techniques and a terse syntax.")
6791 (home-page "https://rr.github.io/rr/")
6792 (license license:expat)))
6794 (define-public ruby-rest-client
6796 (name "ruby-rest-client")
6801 (uri (rubygems-uri "rest-client" version))
6804 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6805 (build-system ruby-build-system)
6808 (modify-phases %standard-phases
6809 (add-before 'check 'remove-unnecessary-development-dependencies
6811 (substitute* "rest-client.gemspec"
6812 ;; Remove rubocop as it's unused. Rubocop also indirectly
6813 ;; depends on this package through ruby-parser and ruby-ast so
6814 ;; this avoids a dependency loop.
6815 ((".*rubocop.*") "\n")
6816 ;; Remove pry as it's unused, it's a debugging tool
6818 ;; Remove an unnecessarily strict rdoc dependency
6819 ((".*rdoc.*") "\n"))
6821 (add-before 'check 'delete-network-dependent-tests
6823 (delete-file "spec/integration/request_spec.rb")
6824 (delete-file "spec/integration/httpbin_spec.rb")
6827 `(("ruby-http-cookie" ,ruby-http-cookie)
6828 ("ruby-mime-types" ,ruby-mime-types)
6829 ("ruby-netrc" ,ruby-netrc)))
6831 `(("bundler" ,bundler)
6832 ("ruby-webmock" ,ruby-webmock-2)
6833 ("ruby-rspec" ,ruby-rspec)))
6834 (synopsis "Simple HTTP and REST client for Ruby")
6836 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6837 inspired by the Sinatra microframework style of specifying actions:
6838 @code{get}, @code{put}, @code{post}, @code{delete}.")
6839 (home-page "https://github.com/rest-client/rest-client")
6840 (license license:expat)))
6842 (define-public ruby-rubocop-ast
6844 (name "ruby-rubocop-ast")
6848 (method git-fetch) ;no test suite in distributed gem
6850 (url "https://github.com/rubocop-hq/rubocop-ast")
6851 (commit (string-append "v" version))))
6852 (file-name (git-file-name name version))
6855 "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04"))))
6856 (build-system ruby-build-system)
6858 `(#:test-target "spec"
6859 #:phases (modify-phases %standard-phases
6860 (add-after 'unpack 'disable-bundler
6862 (substitute* "Rakefile"
6863 (("Bundler\\.setup.*") "nil\n"))
6865 (replace 'replace-git-ls-files
6867 (substitute* "rubocop-ast.gemspec"
6868 (("`git ls-files(.*)`" _ files)
6869 (format #f "`find ~a -type f| sort`" files)))
6872 `(("ruby-bump" ,ruby-bump)
6873 ("ruby-rspec" ,ruby-rspec)))
6875 `(("ruby-parser" ,ruby-parser)))
6876 (synopsis "RuboCop's AST extensions and NodePattern functionality")
6877 (description "Rubocop::AST extends @code{ruby-parser} with classes used
6878 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
6880 @item @code{RuboCop::AST::Node}
6881 @item @code{RuboCop::AST::NodePattern}
6883 (home-page "https://rubocop.org/")
6884 (license license:expat)))
6886 (define-public ruby-rexml
6892 (method git-fetch) ;no tests in distributed gem
6894 (url "https://github.com/ruby/rexml")
6895 (commit (string-append "v" version))))
6896 (file-name (git-file-name name version))
6899 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
6900 (build-system ruby-build-system)
6901 (synopsis "XML toolkit for Ruby")
6902 (description "Inspired by Electric XML library for Java, REXML aims to be
6903 easy-to-use API, small and fast. It supports both tree and stream document
6905 (home-page "https://github.com/ruby/rexml")
6906 (license license:bsd-2)))
6908 (define-public ruby-character-set
6910 (name "ruby-character-set")
6915 (uri (rubygems-uri "character_set" version))
6918 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
6919 (build-system ruby-build-system)
6920 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
6921 (synopsis "Ruby library to manipulate Unicode")
6922 (description "CharacterSet is a C-extended Ruby library to work with sets
6923 of Unicode code points. It can read and write these sets in various formats
6924 and implements the @code{stdlib} @code{Set} interface for them. It also
6925 offers an alternate paradigm of @code{String} processing which grants much
6926 better performance than @code{Regexp} and @code{String} methods from the
6927 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
6929 @item @code{CharacterSet::Character}
6930 @item @code{CharacterSet::Parser}
6931 @item @code{CharacterSet::Writer}
6932 @item @code{RangeCompressor}
6934 (home-page "https://github.com/jaynetics/character_set")
6935 (license license:expat)))
6937 (define-public ruby-range-compressor
6939 (name "ruby-range-compressor")
6945 (url "https://github.com/janosch-x/range_compressor")
6946 (commit (string-append "v" version))))
6947 (file-name (git-file-name name version))
6950 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
6951 (build-system ruby-build-system)
6953 `(#:test-target "spec"
6954 #:phases (modify-phases %standard-phases
6955 (add-after 'extract-gemspec 'strip-version-requirements
6957 (substitute* "range_compressor.gemspec"
6958 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6959 (string-append stripped "\n")))
6962 `(("ruby-rspec" ,ruby-rspec)))
6963 (synopsis "Simple arrays of objects to arrays of ranges compressor")
6964 (description "RangeCompresses is a tiny library that allows compressing
6965 arrays of objects into arrays of ranges. For example, it can turn the
6966 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
6967 (home-page "https://github.com/janosch-x/range_compressor")
6968 (license license:expat)))
6970 (define-public ruby-regexp-property-values
6972 (name "ruby-regexp-property-values")
6977 (uri (git-reference ;no test suite in distributed gem
6978 (url "https://github.com/jaynetics/regexp_property_values")
6979 (commit (string-append "v" version))))
6980 (file-name (git-file-name name version))
6983 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
6984 (build-system ruby-build-system)
6986 '(#:test-target "default"))
6988 `(("ruby-character-set" ,ruby-character-set)
6989 ("ruby-rake-compiler" ,ruby-rake-compiler)
6990 ("ruby-range-compressor" ,ruby-range-compressor)
6991 ("ruby-rspec" ,ruby-rspec)))
6992 (synopsis "Inspect Ruby's regex engine property values")
6993 (description "This small library lets you see which property values are
6994 supported by the regular expression engine of the Ruby version you are running
6995 and can directly read out their code point ranges. In other words, it
6996 determines all supported values for @code{\\p{value}} expressions and what
6998 (home-page "https://github.com/jaynetics/regexp_property_values")
6999 (license license:expat)))
7001 (define-public ruby-regexp-parser
7003 (name "ruby-regexp-parser")
7007 (method git-fetch) ;bin/test missing from gem
7009 (url "https://github.com/ammar/regexp_parser")
7010 (commit (string-append "v" version))))
7011 (file-name (git-file-name name version))
7014 "09ddxdwlml30q6j4rqf06bbjj1mwx00rs0bksnyblhv85anrqz3k"))))
7015 (build-system ruby-build-system)
7017 '(#:test-target "default"
7018 #:phases (modify-phases %standard-phases
7019 (add-before 'build 'compile-scanner.rb
7021 (invoke "rake" "build")
7022 ;; XXX: This is needed otherwise the install
7023 ;; phase fails to delete the installed cached
7025 (delete-file-recursively "pkg")
7029 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7030 ("ruby-rspec" ,ruby-rspec)))
7031 (synopsis "A regular expression parser library for Ruby ")
7032 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7033 expressions. It comprises the following components:
7035 @item A scanner/tokenizer based on Ragel,
7036 @item A lexer that produces a stream of token objects,
7037 @item A parser that produces a tree of Expression objects.
7039 (home-page "https://github.com/ammar/regexp_parser")
7040 (license license:expat)))
7042 (define-public ruby-test-queue
7044 (name "ruby-test-queue")
7049 (uri (rubygems-uri "test-queue" version))
7052 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7053 (build-system ruby-build-system)
7056 (modify-phases %standard-phases
7058 (lambda* (#:key tests? #:allow-other-keys)
7063 `(("ruby-rspec" ,ruby-rspec)))
7064 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7065 (description "The test-queue module is a parallel test runner,
7066 built using a centralized queue to ensure optimal distribution of
7067 tests between workers. It is specifically optimized for Continuous
7068 Integration (CI) environments: build statistics from each run are
7069 stored locally and used to sort the queue at the beginning of the next
7071 (home-page "https://github.com/tmm1/test-queue")
7072 (license license:expat)))
7074 (define-public ruby-rubocop
7076 (name "ruby-rubocop")
7080 (method git-fetch) ;no tests in distributed gem
7082 (url "https://github.com/rubocop-hq/rubocop")
7083 (commit (string-append "v" version))))
7084 (file-name (git-file-name name version))
7087 "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r"))
7088 (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch"))))
7089 (build-system ruby-build-system)
7091 '(#:test-target "default"
7093 (modify-phases %standard-phases
7094 (add-after 'unpack 'remove-problematic-tests
7095 ;; These tests depend on Rubocop extensions, which cannot be
7096 ;; included as they cause a dependency cycle with Rubocop itself.
7098 (delete-file "spec/rubocop/config_loader_spec.rb")
7099 (substitute* "Gemfile"
7100 ((".*'rubocop-performance'.*") "")
7101 ((".*'rubocop-rspec'.*") ""))
7102 ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)"
7104 (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$")
7105 (("# (rubocop:(enable|disable) RSpec.*)" _ what)
7106 (string-append "# Disabled: " what)))
7108 (add-after 'unpack 'disable-bundler
7110 (substitute* "Rakefile"
7111 (("Bundler\\.setup.*") "nil\n"))
7113 (replace 'replace-git-ls-files
7115 (substitute* "rubocop.gemspec"
7116 (("`git ls-files(.*)`" _ files)
7117 (format #f "`find ~a -type f| sort`" files)))
7119 (add-before 'check 'set-home
7121 (setenv "HOME" (getcwd))
7123 (add-before 'check 'make-adoc-files-writable
7125 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7127 (for-each make-file-writable adoc-files))
7130 `(("ruby-bump" ,ruby-bump)
7131 ("ruby-pry" ,ruby-pry)
7132 ("ruby-rspec" ,ruby-rspec)
7133 ("ruby-test-queue" ,ruby-test-queue)
7134 ("ruby-webmock" ,ruby-webmock-2)
7135 ("ruby-yard" ,ruby-yard)))
7137 `(("ruby-parallel" ,ruby-parallel)
7138 ("ruby-parser" ,ruby-parser)
7139 ("ruby-rainbow" ,ruby-rainbow)
7140 ("ruby-regexp-parser" ,ruby-regexp-parser)
7141 ("ruby-rexml" ,ruby-rexml)
7142 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7143 ("ruby-progressbar" ,ruby-progressbar)
7144 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7145 (synopsis "Ruby code style checking tool")
7147 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7148 the community-driven Ruby Style Guide.")
7149 (home-page "https://github.com/rubocop-hq/rubocop")
7150 (license license:expat)))
7152 (define-public ruby-contest
7154 (name "ruby-contest")
7159 (uri (rubygems-uri "contest" version))
7162 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7163 (build-system ruby-build-system)
7164 (synopsis "Write declarative tests using nested contexts")
7166 "Contest allows writing declarative @code{Test::Unit} tests using nested
7167 contexts without performance penalties.")
7168 (home-page "https://github.com/citrusbyte/contest")
7169 (license license:expat)))
7171 (define-public ruby-creole
7173 (name "ruby-creole")
7178 (uri (rubygems-uri "creole" version))
7181 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7182 (build-system ruby-build-system)
7184 `(("ruby-bacon" ,ruby-bacon)))
7185 (synopsis "Creole markup language converter")
7187 "Creole is a lightweight markup language and this library for converting
7188 creole to @code{HTML}.")
7189 (home-page "https://github.com/minad/creole")
7190 (license license:ruby)))
7192 (define-public ruby-docile
7194 (name "ruby-docile")
7199 (uri (rubygems-uri "docile" version))
7202 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7203 (build-system ruby-build-system)
7205 '(#:tests? #f)) ; needs github-markup, among others
7206 (synopsis "Ruby EDSL helper library")
7207 (description "Docile is a Ruby library that provides an interface for
7208 creating embedded domain specific languages (EDSLs) that manipulate existing
7210 (home-page "https://ms-ati.github.io/docile/")
7211 (license license:expat)))
7213 (define-public ruby-middleware
7215 (name "ruby-middleware")
7220 (uri (rubygems-uri "middleware" version))
7223 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7224 (build-system ruby-build-system)
7225 (arguments '(#:tests? #f)) ;no test suite
7226 (synopsis "Implementation of a middleware abstraction for Ruby")
7227 (description "Middleware is a generalized implementation of a middleware
7228 abstraction for Ruby.")
7229 (home-page "https://github.com/mitchellh/middleware")
7230 (license license:expat)))
7232 (define-public ruby-benchmark-ips
7234 (name "ruby-benchmark-ips")
7239 (uri (rubygems-uri "benchmark-ips" version))
7242 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7243 (build-system ruby-build-system)
7245 `(("ruby-hoe" ,ruby-hoe)))
7246 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7247 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7248 iterations per second count. For short snippets of code, it can automatically
7249 figure out how many times to run the code to get interesting data.")
7250 (home-page "https://github.com/evanphx/benchmark-ips")
7251 (license license:expat)))
7253 (define-public ruby-ffi-rzmq-core
7255 (name "ruby-ffi-rzmq-core")
7260 (uri (rubygems-uri "ffi-rzmq-core" version))
7263 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7264 (build-system ruby-build-system)
7267 (modify-phases %standard-phases
7268 (add-after 'unpack 'patch-libzmq-search-path
7269 (lambda* (#:key inputs #:allow-other-keys)
7270 (let ((zeromq (assoc-ref inputs "zeromq")))
7271 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7273 (string-append zeromq "/lib")))
7277 (invoke "rspec"))))))
7279 `(("ruby-rspec" ,ruby-rspec)))
7281 `(("zeromq" ,zeromq)))
7282 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7283 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7284 (description "This library only provides the FFI wrapper for the ZeroMQ
7285 networking library. It can be used to implement a Ruby API for the ZeroMQ
7287 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7288 (license license:expat)))
7290 (define-public ruby-ffi-rzmq
7292 (name "ruby-ffi-rzmq")
7297 (uri (rubygems-uri "ffi-rzmq" version))
7300 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7301 (build-system ruby-build-system)
7302 (arguments '(#:tests? #t
7303 #:phases (modify-phases %standard-phases
7306 (invoke "rspec"))))))
7308 `(("ruby-rspec" ,ruby-rspec)))
7310 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7311 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7312 (description "This library provides a high-level API that wraps the ZeroMQ
7313 networking library using the Ruby foreign function interface (FFI). It is a
7314 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7316 (home-page "https://github.com/chuckremes/ffi-rzmq")
7317 (license license:expat)))
7319 (define-public ruby-sawyer
7321 (name "ruby-sawyer")
7326 (uri (rubygems-uri "sawyer" version))
7329 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7330 (build-system ruby-build-system)
7332 `(("ruby-addressable" ,ruby-addressable)
7333 ("ruby-faraday" ,ruby-faraday)))
7334 (synopsis "Experimental hypermedia agent for Ruby")
7335 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7337 (home-page "https://github.com/lostisland/sawyer")
7338 (license license:expat)))
7340 (define-public ruby-octokit
7342 (name "ruby-octokit")
7347 (uri (rubygems-uri "octokit" version))
7350 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7351 (build-system ruby-build-system)
7352 (arguments '(#:tests? #f)) ;no test suite in the gem release
7354 `(("ruby-faraday" ,ruby-faraday)
7355 ("ruby-sawyer" ,ruby-sawyer)))
7356 (synopsis "Ruby toolkit for the GitHub API")
7357 (description "Octokit wraps the GitHub API in a flat API client that
7358 follows Ruby conventions and requires little knowledge of REST.")
7359 (home-page "https://github.com/octokit/octokit.rb")
7360 (license license:expat)))
7362 (define-public ruby-chandler
7364 (name "ruby-chandler")
7369 (uri (rubygems-uri "chandler" version))
7372 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7373 (build-system ruby-build-system)
7375 `(("ruby-rubocop" ,ruby-rubocop)))
7377 `(("ruby-netrc" ,ruby-netrc)
7378 ("ruby-octokit" ,ruby-octokit)))
7379 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7380 (description "Chandler syncs a project's CHANGELOG file entries to
7381 GitHub's release notes to remove the need of manually entering release
7383 (home-page "https://github.com/mattbrictson/chandler")
7384 (license license:expat)))
7386 (define-public ruby-pry-byebug
7388 (name "ruby-pry-byebug")
7394 (url "https://github.com/deivid-rodriguez/pry-byebug")
7395 (commit (string-append "v" version))))
7396 (file-name (git-file-name name version))
7399 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7400 (build-system ruby-build-system)
7402 `(#:phases (modify-phases %standard-phases
7403 (add-before 'check 'set-home
7405 (setenv "HOME" (getcwd))
7408 `(("ruby-chandler" ,ruby-chandler)
7409 ("ruby-rubocop" ,ruby-rubocop)
7410 ("ruby-simplecov" ,ruby-simplecov)))
7412 `(("ruby-byebug" ,ruby-byebug-11)
7413 ("ruby-pry" ,ruby-pry)))
7414 (synopsis "Step-by-step debugging and stack navigation in Pry")
7415 (description "This package adds step-by-step debugging and stack
7416 navigation capabilities to @code{pry}, using @code{byebug}.")
7417 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7418 (license license:expat)))
7420 (define-public ruby-binding-of-caller
7422 (name "ruby-binding-of-caller")
7427 (uri (rubygems-uri "binding_of_caller" version))
7430 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7431 (build-system ruby-build-system)
7432 ;; Attempting to run the test suite fails with a rake deprecation error
7433 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7434 (arguments '(#:tests? #f))
7436 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7437 (synopsis "Retrieve the binding of a method's caller")
7438 (description "The @code{binding_of_caller} module provides the
7439 @code{Binding#of_caller} method. It allows accessing bindings from upper
7440 frames in the call stack and can evaluate code in that context.")
7441 (home-page "https://github.com/banister/binding_of_caller")
7442 (license license:expat)))
7444 (define-public ruby-pry-stack-explorer
7446 (name "ruby-pry-stack-explorer")
7451 (uri (rubygems-uri "pry-stack_explorer" version))
7454 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7455 (build-system ruby-build-system)
7456 (arguments '(#:tests? #f)) ;no test suite in gem release
7458 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7459 ("ruby-pry" ,ruby-pry)))
7460 (synopsis "Call-stack navigation plugin for the Pry REPL")
7461 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7462 add support to navigate the call-stack.")
7463 (home-page "https://github.com/pry/pry-stack_explorer")
7464 (license license:expat)))
7466 (define-public ruby-varint
7468 (name "ruby-varint")
7473 (uri (rubygems-uri "varint" version))
7476 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7477 (build-system ruby-build-system)
7478 (arguments '(#:tests? #f)) ;no test suite
7479 (synopsis "Variable length integers (varint) C extension for Ruby")
7480 (description "This package provides a small C extension to speed up
7481 variable length integers (varint) in Ruby Protocol Buffers.")
7482 (home-page "https://github.com/liquidm/varint")
7483 (license license:bsd-3)))
7485 (define-public ruby-ruby-prof
7487 (name "ruby-ruby-prof")
7492 (uri (rubygems-uri "ruby-prof" version))
7495 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7496 (build-system ruby-build-system)
7499 (modify-phases %standard-phases
7500 (add-after 'unpack 'patch-rakefile
7501 ;; This fixes the following error: "NameError: uninitialized
7502 ;; constant Bundler::GemHelper" (see:
7503 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7505 (substitute* "Rakefile"
7506 ((".*require \"bundler/setup\".*" all)
7507 (string-append all " require 'bundler/gem_tasks'\n")))
7509 ;; The LineNumbersTest test fails non-deterministically (see:
7510 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7511 (add-after 'extract-gemspec 'delete-flaky-test
7513 (delete-file "test/line_number_test.rb")
7514 (substitute* "ruby-prof.gemspec"
7515 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7517 (add-before 'check 'compile
7519 (invoke "rake" "compile"))))))
7521 `(("bundler" ,bundler)
7522 ("ruby-minitest" ,ruby-minitest)
7523 ("ruby-rake-compiler" ,ruby-rake-compiler)
7524 ("ruby-rdoc" ,ruby-rdoc)))
7525 (synopsis "Fast code profiler for Ruby")
7526 (description "RubyProf is a fast code profiler for Ruby. Its features
7530 Being a C extension, it is many times faster than the standard Ruby profiler.
7531 @item Measurement Modes
7532 It can measure program wall time, process time, object allocations and memory
7535 A variety of text and cross-referenced HTML reports can be generated.
7537 Profiling multiple threads simultaneously is supported.
7539 (home-page "https://github.com/ruby-prof/ruby-prof")
7540 (license license:bsd-2)))
7542 (define-public ruby-cucumber-messages
7544 (name "ruby-cucumber-messages")
7549 (url "https://github.com/cucumber/messages-ruby")
7550 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7551 (file-name (git-file-name name version))
7554 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7555 (build-system ruby-build-system)
7557 `(#:phases (modify-phases %standard-phases
7558 (add-after 'unpack 'patch-protobuf.rb
7560 (substitute* "rake/protobuf.rb"
7561 (("load 'protobuf/tasks/compile.rake'")
7562 "require 'protobuf/tasks'"))
7564 (add-before 'build 'compile
7566 (substitute* "Makefile"
7567 (("bundle exec ") "")
7568 (("include default.mk.*" all)
7569 (string-append "#" all)))
7573 (invoke "rspec"))))))
7575 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7577 `(("ruby-rspec" ,ruby-rspec)))
7578 (home-page "https://github.com/cucumber/messages-ruby")
7579 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7580 (description "Cucumber Messages for Ruby is a library which allows
7581 serialization and deserialization of the protocol buffer messages used in
7583 (license license:expat)))
7585 (define-public ruby-gherkin
7587 (name "ruby-gherkin")
7592 (url "https://github.com/cucumber/gherkin-ruby")
7593 (commit (string-append "v" version))))
7594 (file-name (git-file-name name version))
7597 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7598 (build-system ruby-build-system)
7600 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7601 ("ruby-rspec" ,ruby-rspec)))
7603 `(#:test-target "spec"))
7604 (synopsis "Gherkin parser for Ruby")
7605 (description "Gherkin is a parser and compiler for the Gherkin language.
7606 It is intended be used by all Cucumber implementations to parse
7607 @file{.feature} files.")
7608 (home-page "https://github.com/cucumber/gherkin-ruby")
7609 (license license:expat)))
7611 (define-public ruby-gherkin-ruby
7613 (name "ruby-gherkin-ruby")
7615 (home-page "https://github.com/codegram/gherkin-ruby")
7618 (uri (rubygems-uri "gherkin-ruby" version))
7621 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7622 (build-system ruby-build-system)
7623 (synopsis "Pure Ruby Gherkin parser")
7625 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7626 200 lines of code.")
7627 ;; XXX: No license information anywhere but Readme.md.
7628 (license license:expat)))
7630 (define-public ruby-aruba
7637 (uri (rubygems-uri "aruba" version))
7640 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7641 (build-system ruby-build-system)
7643 '(#:test-target "spec"
7645 (modify-phases %standard-phases
7646 (add-after 'unpack 'patch
7648 (substitute* "spec/aruba/api_spec.rb"
7649 ;; This resolves some errors in the specs
7651 ;; undefined method `parse' for Time:Class
7652 (("require 'spec_helper'")
7653 "require 'spec_helper'\nrequire 'time'"))
7654 ;; Avoid shebang issues in this spec file
7655 (substitute* "spec/aruba/matchers/command_spec.rb"
7656 (("/usr/bin/env bash")
7659 (add-before 'check 'remove-unnecessary-dependencies
7661 (substitute* "Gemfile"
7662 ((".*byebug.*") "\n")
7666 ((".*kramdown.*") "\n")
7667 ((".*rubocop.*") "\n")
7668 ((".*cucumber-pro.*") "\n")
7669 ((".*cucumber.*") "\n")
7670 ((".*license_finder.*") "\n")
7671 ((".*rake.*") "gem 'rake'\n")
7672 ((".*relish.*") "\n"))
7673 (substitute* "aruba.gemspec"
7674 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7675 "spec.add_runtime_dependency 'cucumber'"))
7677 (add-before 'check 'set-home
7678 (lambda _ (setenv "HOME" "/tmp") #t)))))
7680 `(("bundler" ,bundler)
7681 ("ruby-rspec" ,ruby-rspec)
7682 ("ruby-fuubar" ,ruby-fuubar)
7683 ("ruby-simplecov" ,ruby-simplecov)))
7685 `(("ruby-childprocess" ,ruby-childprocess)
7686 ("ruby-contracts" ,ruby-contracts)
7687 ("ruby-cucumber" ,ruby-cucumber)
7688 ("ruby-ffi" ,ruby-ffi)
7689 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7690 ("ruby-thor" ,ruby-thor)
7691 ("ruby-yard" ,ruby-yard)))
7692 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7694 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7695 command-line applications. It supports applications written in any
7697 (home-page "https://github.com/cucumber/aruba")
7698 (license license:expat)))
7700 ;; A version of ruby-aruba without tests run so that circular dependencies can
7702 (define ruby-aruba-without-tests
7704 (inherit ruby-aruba)
7705 (arguments '(#:tests? #f))
7707 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7708 ,@(alist-delete "ruby-cucumber"
7709 (package-propagated-inputs ruby-aruba))))
7710 (native-inputs '())))
7712 (define-public ruby-sys-uname
7714 (name "ruby-sys-uname")
7719 (uri (rubygems-uri "sys-uname" version))
7722 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7723 (build-system ruby-build-system)
7725 `(#:test-target "spec"))
7726 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7727 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7728 (synopsis "Ruby interface for gathering system information")
7729 (description "The sys-uname library provides an interface for gathering
7730 information about your current platform. It allows retrieving information
7731 such as the OS name, OS version, system name, etc.")
7732 (home-page "https://github.com/djberg96/sys-uname")
7733 (license license:asl2.0)))
7735 (define-public ruby-cucumber-create-meta
7737 (name "ruby-cucumber-create-meta")
7742 (uri (rubygems-uri "cucumber-create-meta" version))
7745 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
7746 (build-system ruby-build-system)
7748 `(#:phases (modify-phases %standard-phases
7749 (add-after 'extract-gemspec 'relax-version-requirements
7751 (substitute* ".gemspec"
7757 (invoke "rspec"))))))
7759 `(("ruby-rspec" ,ruby-rspec)))
7761 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7762 ("ruby-sys-uname" ,ruby-sys-uname)))
7763 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
7764 (description "The @code{createMeta} utility function allows generating
7765 system-specific @code{Meta} messages for Cucumber Ruby.")
7766 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
7767 (license license:expat)))
7769 (define-public ruby-cucumber-html-formatter
7771 (name "ruby-cucumber-html-formatter")
7776 (uri (rubygems-uri "cucumber-html-formatter" version))
7779 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
7780 (build-system ruby-build-system)
7782 `(#:phases (modify-phases %standard-phases
7785 (invoke "rspec"))))))
7787 `(("ruby-rspec" ,ruby-rspec)))
7789 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7790 (synopsis "HTML formatter for Cucumber")
7791 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
7792 runs. It is built on top of cucumber-react and works with any Cucumber
7793 implementation with a protocol buffer formatter that outputs Cucumber
7795 (home-page "https://github.com/cucumber/cucumber/tree/\
7796 master/html-formatter/ruby")
7797 (license license:expat)))
7799 (define-public ruby-cucumber
7801 (name "ruby-cucumber")
7807 (url "https://github.com/cucumber/cucumber-ruby")
7808 (commit (string-append "v" version))))
7809 (file-name (git-file-name name version))
7812 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
7813 (build-system ruby-build-system)
7815 '(#:test-target "default"
7817 (modify-phases %standard-phases
7818 (add-after 'unpack 'disable-rubocop
7819 ;; Rubocop lint check fails with our more recent version.
7821 (substitute* "Rakefile"
7822 (("spec cucumber rubocop")
7825 (add-after 'extract-gemspec 'strip-version-requirements
7827 (delete-file "Gemfile") ;do not use Bundler
7828 (substitute* "cucumber.gemspec"
7829 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7830 (string-append stripped "\n")))
7832 (add-before 'check 'set-home
7834 (setenv "HOME" (getcwd))
7837 `(("ruby-builder" ,ruby-builder)
7838 ("ruby-cucumber-core" ,ruby-cucumber-core)
7839 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
7840 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
7841 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
7842 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
7843 ("ruby-diff-lcs" ,ruby-diff-lcs)
7844 ("ruby-gherkin" ,ruby-gherkin)
7845 ("ruby-multi-json" ,ruby-multi-json)
7846 ("ruby-multi-test" ,ruby-multi-test)))
7848 `(;; Use a untested version of aruba, to avoid a circular dependency, as
7849 ;; ruby-aruba depends on ruby-cucumber.
7850 ("ruby-aruba" ,ruby-aruba-without-tests)
7851 ("ruby-rspec" ,ruby-rspec)
7852 ("ruby-pry" ,ruby-pry)
7853 ("ruby-nokogiri" ,ruby-nokogiri)
7854 ("ruby-rubocop" ,ruby-rubocop)))
7855 (synopsis "Describe automated tests in plain language")
7856 (description "Cucumber is a tool for running automated tests written in
7857 plain language. It's designed to support a Behaviour Driven Development (BDD)
7858 software development workflow.")
7859 (home-page "https://cucumber.io/")
7860 (license license:expat)))
7862 (define ruby-cucumber-without-tests
7863 (package (inherit ruby-cucumber)
7869 (define-public ruby-coveralls
7871 (name "ruby-coveralls")
7876 (uri (rubygems-uri "coveralls" version))
7879 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
7880 (build-system ruby-build-system)
7881 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
7882 ;; because of its nonfree, Hippocratic-derived license.
7885 #:phases (modify-phases %standard-phases
7886 (add-after 'extract-gemspec 'strip-version-requirements
7887 ;; Keeping strict version requirements can cause problems
7888 ;; to users of the library, such as: Gem::ConflictError:
7889 ;; Unable to activate coveralls-0.8.23, because
7890 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
7892 (substitute* "coveralls-ruby.gemspec"
7893 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
7894 (string-append stripped ")\n")))
7897 `(("ruby-json" ,ruby-json)
7898 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
7899 ("ruby-thor" ,ruby-thor)
7900 ("ruby-tins" ,ruby-tins)))
7901 (synopsis "Ruby implementation of the Coveralls API")
7902 (description "This package provides a Ruby implementation of the Coveralls
7904 (home-page "https://coveralls.io")
7905 (license license:expat)))
7907 (define-public ruby-unindent
7909 (name "ruby-unindent")
7914 (uri (rubygems-uri "unindent" version))
7917 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
7918 (build-system ruby-build-system)
7919 (synopsis "Ruby method to unindent strings")
7920 (description "This module provides a @code{String#unindent} Ruby method to
7921 unindent strings, which can be useful to unindent multiline strings embedded
7922 in already-indented code.")
7923 (home-page "https://github.com/mynyml/unindent")
7924 (license license:expat)))
7926 (define-public ruby-cucumber-core
7928 (name "ruby-cucumber-core")
7934 (url "https://github.com/cucumber/cucumber-ruby-core")
7935 (commit (string-append "v" version))))
7936 (file-name (git-file-name name version))
7939 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
7940 (build-system ruby-build-system)
7942 `(#:test-target "spec"
7944 (modify-phases %standard-phases
7945 (add-after 'extract-gemspec 'relax-version-requirements
7947 (substitute* "cucumber-core.gemspec"
7948 (("'cucumber-tag-expressions',.*")
7949 "'cucumber-tag-expressions', '>=2.0.0'\n"))
7952 `(("ruby-rspec" ,ruby-rspec)
7953 ("ruby-coveralls" ,ruby-coveralls)
7954 ("ruby-rubocop" ,ruby-rubocop)
7955 ("ruby-simplecov" ,ruby-simplecov)
7956 ("ruby-unindent" ,ruby-unindent)))
7958 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7959 ("ruby-gherkin" ,ruby-gherkin)
7960 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
7961 (synopsis "Core library for the Cucumber BDD app")
7962 (description "Cucumber is a tool for running automated tests
7963 written in plain language. Because they're written in plain language,
7964 they can be read by anyone on your team. Because they can be read by
7965 anyone, you can use them to help improve communication, collaboration
7966 and trust on your team.")
7967 (home-page "https://cucumber.io/")
7968 (license license:expat)))
7970 (define-public ruby-cucumber-expressions
7972 (name "ruby-cucumber-expressions")
7978 (url "https://github.com/cucumber/cucumber-expressions-ruby")
7979 (commit (string-append "v" version))))
7980 (file-name (git-file-name name version))
7983 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
7984 (build-system ruby-build-system)
7986 '(#:test-target "spec"))
7988 `(("ruby-rspec" ,ruby-rspec)
7989 ("ruby-simplecov" ,ruby-simplecov)))
7990 (synopsis "Simpler alternative to Regular Expressions")
7991 (description "Cucumber Expressions offer similar functionality to Regular
7992 Expressions, with a syntax that is easier to read and write. Cucumber
7993 Expressions are extensible with parameter types.")
7994 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7995 (license license:expat)))
7997 (define-public ruby-cucumber-wire
7999 (name "ruby-cucumber-wire")
8004 (uri (rubygems-uri "cucumber-wire" version))
8007 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
8008 (build-system ruby-build-system)
8010 '(#:tests? #f ;tests use cucumber, causing a cycle
8012 (modify-phases %standard-phases
8013 (add-after 'extract-gemspec 'relax-version-requirements
8015 (substitute* ".gemspec"
8016 ((" 10\\.1") " 10.2"))
8019 `(("ruby-cucumber-core" ,ruby-cucumber-core)
8020 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
8021 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
8022 (synopsis "Cucumber wire protocol plugin")
8023 (description "Cucumber's wire protocol allows step definitions to be
8024 implemented and invoked on any platform.")
8025 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8026 (license license:expat)))
8028 (define-public ruby-cucumber-tag-expressions
8030 (name "ruby-cucumber-tag-expressions")
8036 (url "https://github.com/cucumber/tag-expressions-ruby")
8037 (commit (string-append "v" version))))
8038 (file-name (git-file-name name version))
8041 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8042 (build-system ruby-build-system)
8044 `(#:test-target "spec"))
8046 `(("ruby-rspec" ,ruby-rspec)))
8047 (synopsis "Cucumber tag expressions for Ruby")
8048 (description "Cucumber tag expression parser for Ruby. A tag expression
8049 is an infix boolean expression used by Cucumber.")
8050 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8051 (license license:expat)))
8053 (define-public ruby-bindex
8055 (name "ruby-bindex")
8060 (uri (rubygems-uri "bindex" version))
8063 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8064 (build-system ruby-build-system)
8066 '(#:test-target "default"))
8068 `(("bundler" ,bundler)
8069 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8070 (synopsis "Provides access for bindings relating to Ruby exceptions")
8072 "@code{bindex} provides a way to access the bindings that relate to
8073 exceptions in Ruby, providing more information about the context in which the
8074 exception occurred.")
8075 (home-page "https://github.com/gsamokovarov/bindex")
8076 (license license:expat)))
8078 (define-public ruby-bio-logger
8080 (name "ruby-bio-logger")
8085 (uri (rubygems-uri "bio-logger" version))
8088 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8089 (build-system ruby-build-system)
8091 `(#:tests? #f)) ; rake errors, missing shoulda
8093 `(("ruby-log4r" ,ruby-log4r)))
8094 (synopsis "Log4r wrapper for Ruby")
8095 (description "Bio-logger is a wrapper around Log4r adding extra logging
8096 features such as filtering and fine grained logging.")
8097 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8098 (license license:expat)))
8100 (define-public ruby-yajl-ruby
8102 (name "ruby-yajl-ruby")
8107 (uri (rubygems-uri "yajl-ruby" version))
8110 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8111 (build-system ruby-build-system)
8113 '(#:test-target "spec"
8115 (modify-phases %standard-phases
8116 (add-before 'check 'patch-test-to-update-load-path
8118 (substitute* "spec/parsing/large_number_spec.rb"
8119 (("require \"yajl\"")
8120 "$LOAD_PATH << 'lib'; require 'yajl'"))
8123 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8124 ("ruby-rspec" ,ruby-rspec)))
8125 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8127 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8128 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8131 A modified copy of yajl is used, and included in the package.")
8132 (home-page "https://github.com/brianmario/yajl-ruby")
8133 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8134 license:bsd-3)))) ; Included, modified copy of yajl
8136 (define-public ruby-yard
8143 ;; Tests do not pass if we build from the distributed gem.
8145 (url "https://github.com/lsegal/yard")
8146 (commit (string-append "v" version))))
8147 (file-name (git-file-name name version))
8150 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8151 (build-system ruby-build-system)
8153 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8156 #:phases (modify-phases %standard-phases
8157 (add-after 'unpack 'do-not-set-date-in-gemspec
8158 ;; Fix a reproducibility issue (see:
8159 ;; https://github.com/lsegal/yard/issues/1343).
8161 (substitute* "yard.gemspec"
8162 ((".*s\\.date.*") ""))
8164 (synopsis "Documentation generation tool for Ruby")
8165 (description "YARD is a documentation generation tool for the Ruby
8166 programming language. It enables the user to generate consistent, usable
8167 documentation that can be exported to a number of formats very easily, and
8168 also supports extending for custom Ruby constructs such as custom class level
8170 (home-page "https://yardoc.org")
8171 (license license:expat)))
8173 (define-public ruby-yard-with-tests
8176 (name "ruby-yard-with-tests")
8178 (substitute-keyword-arguments (package-arguments ruby-yard)
8179 ((#:tests? _ #t) #t)
8180 ((#:test-target _ "default") "default")
8181 ((#:phases phases '%standard-phases)
8182 `(modify-phases ,phases
8183 (add-before 'check 'prepare-for-tests
8184 (lambda* (#:key tests? #:allow-other-keys)
8186 (substitute* "Rakefile"
8187 ((".*[Ss]amus.*") ""))
8188 ;; Delete the Gemfile to avoid errors relating to it.
8189 (delete-file "Gemfile")
8190 ;; $HOME needs to be set to somewhere writeable for tests to
8192 (setenv "HOME" "/tmp"))
8195 `(("ruby-rspec" ,ruby-rspec)
8196 ("ruby-rack" ,ruby-rack)
8197 ("ruby-redcloth" ,ruby-redcloth)
8198 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8200 (define-public ruby-spectroscope
8202 (name "ruby-spectroscope")
8207 (uri (rubygems-uri "spectroscope" version))
8210 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8211 (build-system ruby-build-system)
8214 (modify-phases %standard-phases
8217 (with-output-to-file ".test"
8226 Test.run :default do |run|
8227 run.files << 'spec/*_spec.rb'
8229 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8231 `(("ruby-ae" ,ruby-ae)
8232 ("ruby-rspec" ,ruby-rspec)))
8234 `(("ruby-rubytest" ,ruby-rubytest)))
8235 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8236 (description "Spectroscope is a Behavior-Driven Development (BDD)
8237 framework built on RubyTest, designed to emulate RSpec in most respects. It
8238 is assertion framework independent so any number of assertion systems can be
8239 used, such as Assay or AE.")
8240 (home-page "http://rubyworks.github.com/spectroscope/")
8241 (license license:bsd-2)))
8243 (define-public ruby-tomparse
8245 (name "ruby-tomparse")
8250 (uri (rubygems-uri "tomparse" version))
8253 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8254 (build-system ruby-build-system)
8255 ;; TODO: Tests require citron and rulebow, not yet packaged.
8256 (arguments '(#:tests? #f))
8257 (synopsis "TomDoc parser for Ruby")
8258 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8259 comment as input and parses it into a convenient object-oriented structure in
8260 accordance with the TomDoc standard. See
8261 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8263 (home-page "http://rubyworks.github.com/tomparse/")
8264 (license license:bsd-2)))
8266 (define-public ruby-yard-tomdoc
8268 (name "ruby-yard-tomdoc")
8273 (uri (rubygems-uri "yard-tomdoc" version))
8276 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8277 (build-system ruby-build-system)
8279 `(#:phases (modify-phases %standard-phases
8282 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8284 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8285 ("ruby-spectroscope" ,ruby-spectroscope)
8286 ("ruby-ae" ,ruby-ae)))
8288 `(("ruby-tomparse" ,ruby-tomparse)
8289 ("ruby-yard" ,ruby-yard)))
8290 (synopsis "TomDoc syntax for YARD")
8291 (description "This module adds support for the TomDoc documentation format
8292 to YARD, a documentation generation tool for Ruby.")
8293 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8294 (license license:expat)))
8296 (define-public ruby-clap
8302 (uri (rubygems-uri "clap" version))
8305 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8306 (build-system ruby-build-system)
8307 ;; Clap needs cutest for running tests, but cutest needs clap.
8308 (arguments `(#:tests? #f))
8309 (synopsis "Command line argument parsing for simple applications")
8311 "Clap provides command line argument parsing features. It covers the
8312 simple case of executing code based on the flags or parameters passed.")
8313 (home-page "https://github.com/djanowski/cutest")
8314 (license license:expat)))
8316 (define-public ruby-cutest
8318 (name "ruby-cutest")
8322 (uri (rubygems-uri "cutest" version))
8325 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8326 (build-system ruby-build-system)
8328 `(("ruby-clap" ,ruby-clap)))
8329 (synopsis "Run tests in separate processes")
8331 "Cutest runs tests in separate processes to avoid shared state.")
8332 (home-page "https://github.com/djanowski/cutest")
8333 (license license:expat)))
8335 (define-public ruby-pygmentize
8337 (name "ruby-pygmentize")
8341 (uri (rubygems-uri "pygmentize" version))
8344 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8345 (build-system ruby-build-system)
8348 (modify-phases %standard-phases
8349 (add-after 'unpack 'fix-pygmentize-path
8351 (substitute* "lib/pygmentize.rb"
8352 (("\"/usr/bin/env python.*")
8353 (string-append "\"" (which "pygmentize") "\"\n")))
8355 (add-after 'build 'do-not-use-vendor-directory
8357 ;; Remove bundled pygments sources
8358 ;; FIXME: ruby-build-system does not support snippets.
8359 (delete-file-recursively "vendor")
8360 (substitute* "pygmentize.gemspec"
8361 (("\"vendor/\\*\\*/\\*\",") ""))
8364 `(("pygments" ,python-pygments)))
8366 `(("ruby-cutest" ,ruby-cutest)
8367 ("ruby-nokogiri" ,ruby-nokogiri)))
8368 (synopsis "Thin Ruby wrapper around pygmentize")
8370 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8372 (home-page "https://github.com/djanowski/pygmentize")
8373 (license license:expat)))
8375 (define-public ruby-eventmachine
8377 (name "ruby-eventmachine")
8382 (uri (rubygems-uri "eventmachine" version))
8385 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8386 (build-system ruby-build-system)
8388 '(#:tests? #f)) ; test suite tries to connect to google.com
8390 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8391 (synopsis "Single-threaded network event framework for Ruby")
8393 "EventMachine implements a single-threaded engine for arbitrary network
8394 communications. EventMachine wraps all interactions with sockets, allowing
8395 programs to concentrate on the implementation of network protocols. It can be
8396 used to create both network servers and clients.")
8397 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8398 (home-page "https://github.com/eventmachine/eventmachine")
8399 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8401 (define-public ruby-ruby-engine
8403 (name "ruby-ruby-engine")
8408 (uri (rubygems-uri "ruby_engine" version))
8411 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8412 (build-system ruby-build-system)
8415 (modify-phases %standard-phases
8416 (add-after 'extract-gemspec 'clean-up
8418 (delete-file "Gemfile.lock")
8419 (substitute* "ruby_engine.gemspec"
8420 ;; Remove unnecessary imports that would entail further
8423 ((".*<rubygems-tasks.*") "")
8424 ;; Remove extraneous .gem file
8425 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8426 (("\"Gemfile.lock\".freeze, ") "")
8427 ;; Soften rake dependency
8428 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8429 "%q<rake>.freeze, [\">= 10.0\"]")
8430 ;; Soften the rspec dependency
8431 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8432 "%q<rspec>.freeze, [\">= 2.4\"]"))
8433 (substitute* "Rakefile"
8434 (("require 'rubygems/tasks'") "")
8435 (("Gem::Tasks.new") ""))
8436 ;; Remove extraneous .gem file that otherwise gets installed.
8437 (delete-file-recursively "pkg")
8440 `(("bundler" ,bundler)
8441 ("ruby-rake" ,ruby-rake)
8442 ("ruby-rspec" ,ruby-rspec)))
8443 (synopsis "Simplifies checking for Ruby implementation")
8445 "@code{ruby_engine} provides an RubyEngine class that can be used to
8446 check which implementation of Ruby is in use. It can provide the interpreter
8447 name and provides query methods such as @{RubyEngine.mri?}.")
8448 (home-page "https://github.com/janlelis/ruby_engine")
8449 (license license:expat)))
8451 (define-public ruby-turn
8458 (uri (rubygems-uri "turn" version))
8461 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8462 (build-system ruby-build-system)
8465 (modify-phases %standard-phases
8466 ;; Tests fail because turn changes its environment so can no longer
8467 ;; find test/unit. Instead simply test if the executable runs
8471 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8473 `(("ruby-ansi" ,ruby-ansi)
8474 ("ruby-minitest" ,ruby-minitest-4)))
8475 (synopsis "Alternate set of alternative runners for MiniTest")
8477 "TURN provides a set of alternative runners for MiniTest which are both
8478 colorful and informative. TURN displays each test on a separate line with
8479 failures being displayed immediately instead of at the end of the tests. Note
8480 that TURN is no longer being maintained.")
8481 (home-page "https://rubygems.org/gems/turn")
8482 (license license:expat)))
8484 (define-public ruby-mimemagic
8486 (name "ruby-mimemagic")
8491 (uri (rubygems-uri "mimemagic" version))
8493 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8494 (build-system ruby-build-system)
8497 (modify-phases %standard-phases
8498 ;; This phase breaks the tests, as it patches some of the test data.
8499 (delete 'patch-source-shebangs))))
8501 `(("ruby-bacon" ,ruby-bacon)))
8502 (synopsis "Ruby library for MIME detection by extension or content")
8504 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8505 extension or content, using the freedesktop.org.xml shared-mime-info
8507 (home-page "https://github.com/minad/mimemagic")
8508 (license license:expat)))
8510 (define-public ruby-mime-types-data
8512 (name "ruby-mime-types-data")
8513 (version "3.2016.0521")
8517 (uri (rubygems-uri "mime-types-data" version))
8520 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8521 (build-system ruby-build-system)
8523 `(("ruby-hoe" ,ruby-hoe)))
8524 (synopsis "Registry for information about MIME media type definitions")
8526 "@code{mime-types-data} provides a registry for information about
8527 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8528 be used with the Ruby mime-types library or other software to determine
8529 defined filename extensions for MIME types, or to use filename extensions to
8530 look up the likely MIME type definitions.")
8531 (home-page "https://github.com/mime-types/mime-types-data/")
8532 (license license:expat)))
8534 (define-public ruby-mime-types
8536 (name "ruby-mime-types")
8541 (uri (rubygems-uri "mime-types" version))
8544 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8545 (build-system ruby-build-system)
8547 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8549 `(("ruby-hoe" ,ruby-hoe)
8550 ("ruby-fivemat" ,ruby-fivemat)
8551 ("ruby-minitest-focus" ,ruby-minitest-focus)
8552 ("ruby-minitest-rg" ,ruby-minitest-rg)
8553 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8554 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8555 (synopsis "Library and registry for MIME content type definitions")
8556 (description "The mime-types library provides a library and registry for
8557 information about Multipurpose Internet Mail Extensions (MIME) content type
8558 definitions. It can be used to determine defined filename extensions for MIME
8559 types, or to use filename extensions to look up the likely MIME type
8561 (home-page "https://github.com/mime-types/ruby-mime-types")
8562 (license license:expat)))
8564 (define-public ruby-fivemat
8566 (name "ruby-fivemat")
8571 (uri (rubygems-uri "fivemat" version))
8574 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8575 (build-system ruby-build-system)
8577 `(#:tests? #f)) ; no tests
8578 (synopsis "Each test file given its own line of dots")
8580 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8581 its own line of dots during testing. It aims to provide test output that is
8582 neither too verbose nor too minimal.")
8583 (home-page "https://github.com/tpope/fivemat")
8584 (license license:expat)))
8586 (define-public ruby-sqlite3
8588 (name "ruby-sqlite3")
8593 (uri (rubygems-uri "sqlite3" version))
8596 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8597 (build-system ruby-build-system)
8600 (modify-phases %standard-phases
8601 (add-before 'check 'add-gemtest-file
8602 ;; This file exists in the repository but is not distributed.
8603 (lambda _ (invoke "touch" ".gemtest"))))))
8605 `(("sqlite" ,sqlite)))
8607 `(("ruby-hoe" ,ruby-hoe)
8608 ("ruby-rake-compiler" ,ruby-rake-compiler)
8609 ("ruby-mini-portile" ,ruby-mini-portile)))
8610 (synopsis "Interface with SQLite3 databases")
8612 "This module allows Ruby programs to interface with the SQLite3 database
8615 "https://github.com/sparklemotion/sqlite3-ruby")
8616 (license license:bsd-3)))
8618 (define-public ruby-shoulda-context
8620 (name "ruby-shoulda-context")
8625 (uri (rubygems-uri "shoulda-context" version))
8628 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8629 (build-system ruby-build-system)
8632 (modify-phases %standard-phases
8635 ;; Do not run tests to avoid circular dependence with rails.
8636 ;; Instead just import the library to test.
8637 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8638 (synopsis "Test::Unit context framework extracted from Shoulda")
8640 "@code{shoulda-context} is the context framework extracted from Shoulda.
8641 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8642 context, setup, and should blocks combine to produce natural test method
8644 (home-page "https://github.com/thoughtbot/shoulda-context")
8645 (license license:expat)))
8647 (define-public ruby-shoulda-matchers
8649 (name "ruby-shoulda-matchers")
8654 (uri (rubygems-uri "shoulda-matchers" version))
8657 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8658 (build-system ruby-build-system)
8661 (modify-phases %standard-phases
8664 ;; Do not run tests to avoid circular dependence with rails. Instead
8665 ;; just import the library to test.
8666 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8668 `(("ruby-activesupport" ,ruby-activesupport)))
8669 (synopsis "Collection of testing matchers extracted from Shoulda")
8671 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8672 test common Rails functionality. These tests would otherwise be much longer,
8673 more complex, and error-prone.")
8674 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8675 (license license:expat)))
8677 (define-public ruby-shoulda-matchers-2
8679 (inherit ruby-shoulda-matchers)
8683 (uri (rubygems-uri "shoulda-matchers" version))
8686 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8688 (define-public ruby-shoulda
8690 (name "ruby-shoulda")
8695 (uri (rubygems-uri "shoulda" version))
8698 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8699 (build-system ruby-build-system)
8702 (modify-phases %standard-phases
8704 ;; Don't run tests to avoid circular dependence with rails. Instead
8705 ;; just import the library to test.
8706 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8708 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8709 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8710 (synopsis "Context framework and matchers for testing")
8712 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8713 @code{shoulda-matchers} providing tools for writing tests.")
8714 (home-page "https://github.com/thoughtbot/shoulda")
8715 (license license:expat)))
8717 (define-public ruby-unf
8724 (uri (rubygems-uri "unf" version))
8727 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8728 (build-system ruby-build-system)
8731 (modify-phases %standard-phases
8732 (add-before 'check 'add-dependency-to-bundler
8734 ;; test-unit is required but not provided by the bundler
8735 ;; environment. This is fixed in the upstream repository but fix
8736 ;; has not been released.
8737 (substitute* "Gemfile"
8738 (("^gemspec") "gem 'test-unit'\ngemspec"))
8741 `(("ruby-unf-ext" ,ruby-unf-ext)))
8743 `(("ruby-shoulda" ,ruby-shoulda)
8744 ("bundler" ,bundler)
8745 ("ruby-test-unit" ,ruby-test-unit)))
8746 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
8748 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
8749 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
8750 @code{java.text.Normalizer} on JRuby.")
8751 (home-page "https://github.com/knu/ruby-unf")
8752 (license license:bsd-2)))
8754 (define-public ruby-warden
8756 (name "ruby-warden")
8761 (uri (rubygems-uri "warden" version))
8764 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
8765 (build-system ruby-build-system)
8767 '(#:tests? #f)) ; No included tests
8769 `(("ruby-rack" ,ruby-rack)))
8770 (synopsis "Rack middleware providing authentication")
8772 "Warden is a Rack-based middleware that provides a mechanism for
8773 authentication in Ruby web applications.")
8774 (home-page "https://github.com/wardencommunity/warden")
8775 (license license:expat)))
8777 (define-public ruby-warden-oauth2
8779 (name "ruby-warden-oauth2")
8784 (uri (rubygems-uri "warden-oauth2" version))
8787 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
8788 (build-system ruby-build-system)
8790 '(#:test-target "spec"
8792 (modify-phases %standard-phases
8793 (add-after 'unpack 'remove-unnecessary-dependencies
8795 (substitute* "Gemfile"
8796 ;; All of these gems relate to development, and are unnecessary
8797 ;; when running the tests
8798 (("gem 'guard-bundler'") "")
8799 (("gem 'guard'") "")
8800 (("gem 'guard-rspec'") "")
8801 (("gem 'rb-fsevent'") "")
8803 (("gem 'growl'") ""))
8805 ;; The test suite doesn't work with rspec@2, and this is incompatible
8806 ;; with the current version of Rake, so invoke Rspec directly
8808 (lambda* (#:key tests? #:allow-other-keys)
8810 (invoke "bundle" "exec" "rspec"))
8813 `(("ruby-warden" ,ruby-warden)))
8815 `(("bundler" ,bundler)
8816 ("ruby-rspec" ,ruby-rspec-2)
8817 ("ruby-rack-test" ,ruby-rack-test)))
8818 (synopsis "OAuth 2.0 strategies for Warden")
8820 "This library extends Warden to support OAuth 2.0 authorized API
8822 (home-page "https://github.com/opperator/warden-oauth2")
8823 (license license:expat)))
8825 (define-public ruby-webmock-2
8827 (name "ruby-webmock")
8832 (uri (rubygems-uri "webmock" version))
8835 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
8836 (build-system ruby-build-system)
8838 `(("bundler" ,bundler)
8839 ("ruby-rspec" ,ruby-rspec)))
8841 `(("ruby-addressable" ,ruby-addressable)
8842 ("ruby-crack" ,ruby-crack)
8843 ("ruby-hashdiff" ,ruby-hashdiff)))
8844 (synopsis "Allows stubbing and setting expectations on HTTP requests")
8846 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
8847 requests. This is useful when testing software.")
8848 (home-page "https://github.com/bblimke/webmock")
8849 (license license:expat)))
8851 (define-public ruby-unicode-display-width
8853 (name "ruby-unicode-display-width")
8858 (uri (rubygems-uri "unicode-display_width" version))
8861 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
8862 (build-system ruby-build-system)
8864 '(;; Test data not included.
8866 (synopsis "Determine the monospace display width of Ruby strings")
8868 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
8869 display width of strings in Ruby.")
8870 (home-page "https://github.com/janlelis/unicode-display_width")
8871 (license license:expat)))
8873 ;; There is another gem called 'ruby-version' so we use an underscore in this
8875 (define-public ruby_version
8877 (name "ruby_version")
8882 (uri (rubygems-uri "ruby_version" version))
8885 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
8886 (build-system ruby-build-system)
8889 (modify-phases %standard-phases
8890 (add-before 'check 'fix-dependencies
8892 ;; Remove the Gemfile.lock, as we want to use Guix packages at
8893 ;; whatever versions.
8894 (delete-file "Gemfile.lock")
8895 ;; Remove the included gem files as they unnecessary.
8896 (delete-file-recursively "pkg/")
8897 ;; Accept any version of rake, rdoc and rspec
8898 (substitute* "ruby_version.gemspec"
8899 (("%q<rake.*") "%q<rake>)\n")
8900 (("%q<rdoc.*") "%q<rdoc>)\n")
8901 (("%q<rspec.*") "%q<rspec>)\n"))
8902 ;; Do not use bundler.
8903 (substitute* "Rakefile"
8904 (("Bundler\\.setup.*") "nil\n"))
8907 `(("ruby-rdoc" ,ruby-rdoc)
8908 ("ruby-rspec" ,ruby-rspec)
8909 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
8910 (synopsis "Ruby library to help check the Ruby version")
8911 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
8912 checking for the right Ruby version in software.")
8913 (home-page "https://github.com/janlelis/ruby_version")
8914 (license license:expat)))
8916 (define-public ruby-websocket-driver
8918 (name "ruby-websocket-driver")
8923 (uri (rubygems-uri "websocket-driver" version))
8925 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
8926 (build-system ruby-build-system)
8928 '(#:tests? #f)) ; no included tests
8930 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
8931 (synopsis "WebSocket protocol handler with pluggable I/O")
8933 "@code{websocket-driver} provides a complete implementation of the
8934 WebSocket protocols that can be hooked up to any TCP library")
8935 (home-page "https://github.com/faye/websocket-driver-ruby")
8936 (license license:expat)))
8938 (define-public ruby-websocket-extensions
8940 (name "ruby-websocket-extensions")
8945 (uri (rubygems-uri "websocket-extensions" version))
8948 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
8949 (build-system ruby-build-system)
8951 '(;; No included tests
8953 (synopsis "Generic extension manager for WebSocket connections")
8955 "@code{websocket-extensions} provides a container for registering
8956 extension plugins.")
8957 (home-page "https://github.com/faye/websocket-extensions-ruby")
8958 (license license:expat)))
8960 (define-public ruby-domain-name
8962 (name "ruby-domain-name")
8963 (version "0.5.20190701")
8967 (uri (rubygems-uri "domain_name" version))
8969 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
8970 (build-system ruby-build-system)
8973 (modify-phases %standard-phases
8974 (add-before 'check 'fix-versions
8976 ;; Fix NameError that appears to already be fixed upstream.
8977 (substitute* "Rakefile"
8978 (("DomainName::VERSION")
8979 "Bundler::GemHelper.gemspec.version"))
8980 ;; Loosen unnecessarily strict test-unit version specification.
8981 (substitute* "domain_name.gemspec"
8982 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
8985 `(("ruby-unf" ,ruby-unf)))
8987 `(("ruby-shoulda" ,ruby-shoulda)
8988 ("bundler" ,bundler)
8989 ("ruby-test-unit" ,ruby-test-unit)))
8990 (synopsis "Domain name manipulation library")
8992 "@code{domain_name} is a Domain name manipulation library. It parses a
8993 domain name ready for extracting the registered domain and TLD (Top Level
8994 Domain). It can also be used for cookie domain validation based on the Public
8996 (home-page "https://github.com/knu/ruby-domain_name")
8997 (license license:bsd-2)))
8999 (define-public ruby-http-cookie
9001 (name "ruby-http-cookie")
9006 (uri (rubygems-uri "http-cookie" version))
9009 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
9010 (build-system ruby-build-system)
9013 (modify-phases %standard-phases
9014 (add-before 'check 'add-dependency-to-bundler
9017 (substitute* "Rakefile"
9018 (("HTTP::Cookie::VERSION")
9019 "Bundler::GemHelper.gemspec.version"))
9022 `(("ruby-domain-name" ,ruby-domain-name)))
9024 `(("rubysimplecov" ,ruby-simplecov)
9025 ("bundler" ,bundler)
9026 ("ruby-sqlite3" ,ruby-sqlite3)
9027 ("ruby-test-unit" ,ruby-test-unit)))
9028 (synopsis "Handle HTTP Cookies based on RFC 6265")
9030 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9031 RFC 6265. It has been designed with security, standards compliance and
9032 compatibility in mind, to behave just the same as today's major web browsers.
9033 It has built-in support for the legacy @code{cookies.txt} and
9034 @code{cookies.sqlite} formats of Mozilla Firefox.")
9035 (home-page "https://github.com/sparklemotion/http-cookie")
9036 (license license:expat)))
9038 (define-public ruby-httpclient
9040 (name "ruby-httpclient")
9045 (uri (rubygems-uri "httpclient" version))
9048 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9049 (build-system ruby-build-system)
9051 '(;; TODO: Some tests currently fail
9053 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9054 ;; 2 omissions, 0 notifications
9057 ;; 6.49 tests/s, 22.41 assertions/s
9060 (modify-phases %standard-phases
9062 (lambda* (#:key tests? #:allow-other-keys)
9069 `(("ruby-rack" ,ruby-rack)))
9071 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9073 "The @code{httpclient} ruby library provides functionality related to
9074 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9075 Cookie, multithreading and authentication (digest, NTLM) support.
9077 Also provided is a @command{httpclient} command, which can perform HTTP
9078 requests either using arguments or with an interactive prompt.")
9079 (home-page "https://github.com/nahi/httpclient")
9080 (license license:ruby)))
9082 (define-public ruby-ansi
9089 ;; Fetch from GitHub as the gem does not contain testing code.
9091 (url "https://github.com/rubyworks/ansi")
9093 (file-name (git-file-name name version))
9096 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9097 (build-system ruby-build-system)
9100 (modify-phases %standard-phases
9101 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9102 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9106 (invoke "ruby" "-Ilib" "-r" "ansi")))
9107 (add-before 'validate-runpath 'replace-broken-symlink
9108 (lambda* (#:key outputs #:allow-other-keys)
9109 (let* ((out (assoc-ref outputs "out"))
9110 (file (string-append
9111 out "/lib/ruby/vendor_ruby/gems/ansi-"
9112 ,version "/lib/ansi.yml")))
9113 ;; XXX: This symlink is broken since ruby 2.4.
9114 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9116 (symlink "../.index" file)
9118 (synopsis "ANSI escape code related libraries")
9120 "This package is a collection of ANSI escape code related libraries
9121 enabling ANSI colorization and stylization of console output. Included in the
9122 library are the @code{Code} module, which defines ANSI codes as constants and
9123 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9124 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9125 @code{Terminal} module which provides information about the current output
9127 (home-page "https://rubyworks.github.io/ansi/")
9128 (license license:bsd-2)))
9130 (define-public ruby-systemu
9132 (name "ruby-systemu")
9137 (uri (rubygems-uri "systemu" version))
9140 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9141 (build-system ruby-build-system)
9144 (modify-phases %standard-phases
9145 (add-before 'check 'set-version
9147 (setenv "VERSION" ,version)
9149 (synopsis "Capture of stdout/stderr and handling of child processes")
9151 "Systemu can be used on any platform to return status, stdout, and stderr
9152 of any command. Unlike other methods like @code{open3} and @code{popen4}
9153 there is no danger of full pipes or threading issues hanging your process or
9155 (home-page "https://github.com/ahoward/systemu")
9156 (license license:ruby)))
9158 (define-public ruby-bio-commandeer
9160 (name "ruby-bio-commandeer")
9165 (uri (rubygems-uri "bio-commandeer" version))
9168 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9169 (build-system ruby-build-system)
9172 (modify-phases %standard-phases
9174 ;; Run test without calling 'rake' so that jeweler is
9175 ;; not required as an input.
9177 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9179 `(("ruby-bio-logger" ,ruby-bio-logger)
9180 ("ruby-systemu" ,ruby-systemu)))
9182 `(("bundler" ,bundler)
9183 ("ruby-rspec" ,ruby-rspec)))
9184 (synopsis "Simplified running of shell commands from within Ruby")
9186 "Bio-commandeer provides an opinionated method of running shell commands
9187 from within Ruby. The advantage of bio-commandeer over other methods of
9188 running external commands is that when something goes wrong, messages printed
9189 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9190 detail to ease debugging.")
9191 (home-page "https://github.com/wwood/bioruby-commandeer")
9192 (license license:expat)))
9194 (define-public ruby-rubytest
9196 (name "ruby-rubytest")
9201 (uri (rubygems-uri "rubytest" version))
9204 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9205 (build-system ruby-build-system)
9207 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9208 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9209 ;; simply test that the library can be require'd.
9211 (modify-phases %standard-phases
9214 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9216 `(("ruby-ansi" ,ruby-ansi)))
9217 (synopsis "Universal test harness for Ruby")
9219 "Rubytest is a testing meta-framework for Ruby. It can handle any
9220 compliant test framework and can run tests from multiple frameworks in a
9222 (home-page "https://rubyworks.github.io/rubytest")
9223 (license license:bsd-2)))
9225 (define-public ruby-brass
9232 (uri (rubygems-uri "brass" version))
9235 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9236 (build-system ruby-build-system)
9238 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9239 ;; Instead simply test that the library can be require'd.
9241 (modify-phases %standard-phases
9244 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9245 (synopsis "Basic foundational assertions framework")
9247 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9248 foundational assertions framework for other assertion and test frameworks to
9250 (home-page "https://rubyworks.github.io/brass")
9251 (license license:bsd-2)))
9253 (define-public ruby-qed
9260 (uri (rubygems-uri "qed" version))
9263 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9264 (build-system ruby-build-system)
9266 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9267 ;; Instead simply test that the executable runs using --copyright.
9269 (modify-phases %standard-phases
9272 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9274 `(("ruby-ansi" ,ruby-ansi)
9275 ("ruby-brass" ,ruby-brass)))
9276 (synopsis "Test framework utilizing literate programming techniques")
9278 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9279 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9280 Development} (BDD) utilizing Literate Programming techniques. QED sits
9281 somewhere between lower-level testing tools like @code{Test::Unit} and
9282 requirement specifications systems like Cucumber.")
9283 (home-page "https://rubyworks.github.io/qed")
9284 (license license:bsd-2)))
9286 (define-public ruby-que
9289 (version "1.0.0.beta3")
9293 (uri (rubygems-uri "que" version))
9296 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9297 (build-system ruby-build-system)
9299 '(#:tests? #f)) ; No included tests
9300 (synopsis "Job queue using PostgreSQL written in Ruby")
9302 "This package provides a job queue that uses PostgreSQL for storing jobs
9303 and locking between worker processes.")
9304 (home-page "https://github.com/chanks/que")
9305 (license license:expat)))
9307 (define-public ruby-ae
9314 ;; Fetch from github so tests are included.
9316 (url "https://github.com/rubyworks/ae")
9318 (file-name (git-file-name name version))
9321 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9322 (build-system ruby-build-system)
9325 (modify-phases %standard-phases
9327 (lambda _ (invoke "qed")))
9328 (add-before 'validate-runpath 'replace-broken-symlink
9329 (lambda* (#:key outputs #:allow-other-keys)
9330 (let* ((out (assoc-ref outputs "out"))
9331 (file (string-append
9332 out "/lib/ruby/vendor_ruby/gems/ae-"
9333 ,version "/lib/ae.yml")))
9334 ;; XXX: This symlink is broken since ruby 2.4.
9335 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9337 (symlink "../.index" file)
9340 `(("ruby-ansi" ,ruby-ansi)))
9342 `(("ruby-qed" ,ruby-qed)))
9343 (synopsis "Assertions library")
9345 "Assertive Expressive (AE) is an assertions library specifically designed
9346 for reuse by other test frameworks.")
9347 (home-page "https://rubyworks.github.io/ae/")
9348 (license license:bsd-2)))
9350 (define-public ruby-lemon
9357 (uri (rubygems-uri "lemon" version))
9360 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9361 (build-system ruby-build-system)
9364 (modify-phases %standard-phases
9365 (replace 'check (lambda _ (invoke "qed"))))))
9367 `(("ruby-ae" ,ruby-ae)
9368 ("ruby-ansi" ,ruby-ansi)
9369 ("ruby-rubytest" ,ruby-rubytest)))
9371 `(("ruby-qed" ,ruby-qed)))
9372 (synopsis "Test framework correlating code structure and test unit")
9374 "Lemon is a unit testing framework that enforces highly formal
9375 case-to-class and unit-to-method test construction. This enforcement can help
9376 focus concern on individual units of behavior.")
9377 (home-page "https://rubyworks.github.io/lemon")
9378 (license license:bsd-2)))
9380 (define-public ruby-rubytest-cli
9382 (name "ruby-rubytest-cli")
9387 (uri (rubygems-uri "rubytest-cli" version))
9390 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9391 (build-system ruby-build-system)
9393 `(#:tests? #f)) ; no tests
9395 `(("ruby-ansi" ,ruby-ansi)
9396 ("ruby-rubytest" ,ruby-rubytest)))
9397 (synopsis "Command-line interface for rubytest")
9399 "Rubytest CLI is a command-line interface for running tests for
9400 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9401 (home-page "https://rubyworks.github.io/rubytest-cli")
9402 (license license:bsd-2)))
9404 (define-public ruby-hashery
9406 (name "ruby-hashery")
9411 (uri (rubygems-uri "hashery" version))
9414 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9415 (build-system ruby-build-system)
9418 (modify-phases %standard-phases
9422 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9424 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9425 ("ruby-qed" ,ruby-qed)
9426 ("ruby-lemon" ,ruby-lemon)))
9427 (synopsis "Hash-like classes with extra features")
9429 "The Hashery is a tight collection of @code{Hash}-like classes.
9430 Included are the auto-sorting @code{Dictionary} class, the efficient
9431 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9432 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9433 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9434 standard @code{Hash} making it possible to subclass and augment to fit any
9435 specific use case.")
9436 (home-page "https://rubyworks.github.io/hashery")
9437 (license license:bsd-2)))
9439 (define-public ruby-rc4
9446 (uri (rubygems-uri "ruby-rc4" version))
9449 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9450 (build-system ruby-build-system)
9453 (modify-phases %standard-phases
9456 (invoke "rspec" "spec/rc4_spec.rb"))))))
9458 `(("ruby-rspec" ,ruby-rspec-2)))
9459 (synopsis "Implementation of the RC4 algorithm")
9461 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9462 (home-page "https://github.com/caiges/Ruby-RC4")
9463 (license license:expat)))
9465 (define-public ruby-afm
9472 (uri (rubygems-uri "afm" version))
9475 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9476 (build-system ruby-build-system)
9478 `(("bundler" ,bundler)))
9479 (synopsis "Read Adobe Font Metrics (afm) files")
9481 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9482 files and use the data therein.")
9483 (home-page "https://github.com/halfbyte/afm")
9484 (license license:expat)))
9486 (define-public ruby-ascii85
9488 (name "ruby-ascii85")
9493 (uri (rubygems-uri "Ascii85" version))
9496 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9497 (build-system ruby-build-system)
9499 `(("bundler" ,bundler)))
9500 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9502 "This library provides methods to encode and decode Ascii85
9503 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9504 @dfn{Portable Document Format} (PDF) file formats.")
9505 (home-page "https://github.com/datawraith/ascii85gem")
9506 (license license:expat)))
9508 (define-public ruby-ttfunk
9510 (name "ruby-ttfunk")
9515 ;; fetch from github as the gem does not contain testing code
9517 (url "https://github.com/prawnpdf/ttfunk")
9519 (file-name (git-file-name name version))
9522 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9523 (build-system ruby-build-system)
9525 `(#:test-target "spec"
9527 (modify-phases %standard-phases
9528 (add-before 'build 'remove-ssh
9530 ;; remove dependency on an ssh key pair that doesn't exist
9531 (substitute* "ttfunk.gemspec"
9532 (("spec.signing_key.*") ""))
9534 (add-before 'check 'remove-rubocop
9536 ;; remove rubocop as a dependency as not needed for testing
9537 (substitute* "ttfunk.gemspec"
9538 (("spec.add_development_dependency\\('rubocop'.*") ""))
9539 (substitute* "Rakefile"
9540 (("require 'rubocop/rake_task'") "")
9541 (("RuboCop::RakeTask.new") ""))
9544 `(("ruby-rspec" ,ruby-rspec)
9545 ("ruby-yard" ,ruby-yard)
9546 ("bundler" ,bundler)))
9547 (synopsis "Font metrics parser for the Prawn PDF generator")
9549 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9550 part of the Prawn PDF generator.")
9551 (home-page "https://github.com/prawnpdf/ttfunk")
9552 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9554 (license %prawn-project-licenses)))
9556 (define-public ruby-puma
9563 ;; Fetch from GitHub because distributed gem does not contain tests.
9565 (url "https://github.com/puma/puma")
9566 (commit (string-append "v" version))))
9567 (file-name (git-file-name name version))
9570 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9571 (build-system ruby-build-system)
9573 `(#:tests? #f ; Tests require an out-dated version of minitest.
9575 (modify-phases %standard-phases
9576 (add-before 'build 'fix-gemspec
9578 (substitute* "puma.gemspec"
9579 (("git ls-files") "find * |sort"))
9581 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9583 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9584 for Ruby/Rack applications. Puma is intended for use in both development and
9585 production environments. In order to get the best throughput, it is highly
9586 recommended that you use a Ruby implementation with real threads like Rubinius
9588 (home-page "https://puma.io/")
9589 (license license:expat)))
9591 (define-public ruby-hoe-git
9593 (name "ruby-hoe-git")
9598 (uri (rubygems-uri "hoe-git" version))
9601 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9602 (build-system ruby-build-system)
9604 `(("ruby-hoe" ,ruby-hoe)))
9605 (synopsis "Hoe plugins for tighter Git integration")
9607 "This package provides a set of Hoe plugins for tighter Git integration.
9608 It provides tasks to automate release tagging and pushing and changelog
9610 (home-page "https://github.com/jbarnette/hoe-git")
9611 (license license:expat)))
9613 (define-public ruby-sequel
9615 (name "ruby-sequel")
9620 (uri (rubygems-uri "sequel" version))
9623 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9624 (build-system ruby-build-system)
9626 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9627 (synopsis "Database toolkit for Ruby")
9628 (description "Sequel provides thread safety, connection pooling and a
9629 concise DSL for constructing SQL queries and table schemas. It includes a
9630 comprehensive ORM layer for mapping records to Ruby objects and handling
9631 associated records.")
9632 (home-page "https://sequel.jeremyevans.net")
9633 (license license:expat)))
9635 (define-public ruby-timecop
9637 (name "ruby-timecop")
9642 (uri (rubygems-uri "timecop" version))
9645 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9646 (build-system ruby-build-system)
9649 (modify-phases %standard-phases
9650 (add-before 'check 'set-check-rubylib
9652 ;; Set RUBYLIB so timecop tests finds its own lib.
9653 (setenv "RUBYLIB" "lib")
9656 `(("bundler" ,bundler)
9657 ("ruby-minitest-rg" ,ruby-minitest-rg)
9658 ("ruby-mocha" ,ruby-mocha)
9659 ("ruby-activesupport" ,ruby-activesupport)))
9660 (synopsis "Test mocks for time-dependent functions")
9662 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9663 making it easier to test time-dependent code. It provides a unified method to
9664 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9666 (home-page "https://github.com/travisjeffery/timecop")
9667 (license license:expat)))
9669 (define-public ruby-concurrent
9671 (name "ruby-concurrent")
9676 ;; Download from GitHub because the rubygems version does not contain
9679 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9680 (commit (string-append "v" version))))
9681 (file-name (git-file-name name version))
9684 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9685 (build-system ruby-build-system)
9687 `(#:test-target "ci"
9689 (modify-phases %standard-phases
9690 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9692 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9694 (delete-file "concurrent-ruby-edge.gemspec")
9695 (delete-file "concurrent-ruby-ext.gemspec")
9697 (replace 'replace-git-ls-files
9699 ;; XXX: The default substitution made by this phase is not fully
9700 ;; compatible with "git ls-files". The latter produces file names
9701 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9702 ;; which gives "./lib/foo". That difference in turn breaks the
9703 ;; comparison against a glob pattern in this script.
9704 (substitute* "concurrent-ruby.gemspec"
9705 (("git ls-files") "find * -type f | sort"))
9707 (add-before 'build 'remove-jar-from-gemspec
9709 ;; The gemspec wants to include a JAR file that we do not build
9711 (substitute* "concurrent-ruby.gemspec"
9712 (("'lib/concurrent/concurrent_ruby.jar'")
9715 (add-before 'build 'remove-rake_compiler_dock-dependency
9717 ;; This library is only used when building for non-MRI targets.
9718 (substitute* "Rakefile"
9719 (("require 'rake_compiler_dock'")
9722 (add-before 'check 'remove-timecop-dependency
9723 ;; Remove timecop-dependent tests as having timecop as a depedency
9724 ;; causes circular depedencies.
9726 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
9727 (delete-file "spec/concurrent/scheduled_task_spec.rb")
9730 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9731 ("ruby-rspec" ,ruby-rspec)))
9732 (synopsis "Concurrency tools for Ruby")
9734 "This library provides modern concurrency tools including agents,
9735 futures, promises, thread pools, actors, supervisors, and more. It is
9736 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
9738 (home-page "http://www.concurrent-ruby.com")
9739 (license license:expat)))
9741 (define-public ruby-pkg-config
9743 (name "ruby-pkg-config")
9748 (uri (rubygems-uri "pkg-config" version))
9751 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
9752 (build-system ruby-build-system)
9754 ;; Tests require extra files not included in the gem.
9756 (synopsis "Detect libraries for compiling Ruby native extensions")
9758 "@code{pkg-config} can be used in your extconf.rb to properly detect need
9759 libraries for compiling Ruby native extensions.")
9760 (home-page "https://github.com/ruby-gnome2/pkg-config")
9761 (license license:lgpl2.0+)))
9763 (define-public ruby-net-http-digest-auth
9765 (name "ruby-net-http-digest-auth")
9770 (uri (rubygems-uri "net-http-digest_auth" version))
9773 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
9774 (build-system ruby-build-system)
9776 `(("ruby-hoe" ,ruby-hoe)))
9777 (synopsis "RFC 2617 HTTP digest authentication library")
9779 "This library implements HTTP's digest authentication scheme based on
9780 RFC 2617. This enables the use of the digest authentication scheme instead
9781 of the more insecure basic authentication scheme.")
9782 (home-page "https://github.com/drbrain/net-http-digest_auth")
9783 (license license:expat)))
9785 (define-public ruby-mail
9792 (uri (rubygems-uri "mail" version))
9795 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
9796 (build-system ruby-build-system)
9798 `(("ruby-mime-types" ,ruby-mime-types)))
9800 ;; Tests require extra gems not included in the Gemfile.
9801 ;; XXX: Try enabling this for the next version with mini_mime.
9803 (synopsis "Mail library for Ruby")
9805 "Mail is an internet library for Ruby that is designed to handle email
9806 generation, parsing and sending. The purpose of this library is to provide
9807 a single point of access to handle all email functions, including sending
9808 and receiving emails. All network type actions are done through proxy
9809 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
9811 Mail has been designed with a very simple object oriented system that
9812 really opens up the email messages you are parsing, if you know what you
9813 are doing, you can fiddle with every last bit of your email directly.")
9814 (home-page "https://github.com/mikel/mail")
9815 (license license:expat)))
9817 (define-public ruby-mathn
9824 (uri (rubygems-uri "mathn" version))
9827 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
9828 (build-system ruby-build-system)
9830 `(("bundler" ,bundler)
9831 ("ruby-rake-compiler" ,ruby-rake-compiler)))
9832 (synopsis "Extends math operations for increased precision")
9834 "This gem makes mathematical operations more precise in Ruby and
9835 integrates other mathematical standard libraries. Prior to Ruby 2.5,
9836 @code{mathn} was part of the Ruby standard library.")
9837 (home-page "https://github.com/ruby/mathn")
9838 (license license:bsd-2)))
9840 (define-public ruby-code-statistics
9842 (name "ruby-code-statistics")
9847 (uri (rubygems-uri "code_statistics" version))
9850 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
9851 (build-system ruby-build-system)
9853 `(#:tests? #f)) ; Not all test code is included in gem.
9854 (synopsis "Port of the rails 'rake stats' method")
9856 "This gem is a port of the rails 'rake stats' method so it can be made
9857 more robust and work for non rails projects.")
9858 (home-page "https://github.com/danmayer/code_statistics")
9859 (license license:expat)))
9861 (define-public ruby-rubypants
9863 (name "ruby-rubypants")
9867 (uri (rubygems-uri "rubypants" version))
9870 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
9871 (build-system ruby-build-system)
9873 '(#:tests? #f)) ; need Codecov
9874 (synopsis "Port of the smart-quotes library SmartyPants")
9876 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
9877 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
9878 and BBEdit that easily translates plain ASCII punctuation characters into
9879 smart typographic punctuation HTML entities.")
9880 (home-page "https://github.com/jmcnevin/rubypants")
9881 (license license:bsd-2)))
9883 (define-public ruby-org-ruby
9885 (name "ruby-org-ruby")
9889 (uri (rubygems-uri "org-ruby" version))
9892 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
9893 (build-system ruby-build-system)
9895 '(#:tests? #f)) ; no rakefile
9897 `(("ruby-rubypants" ,ruby-rubypants)))
9898 (synopsis "Org-mode parser written in Ruby")
9900 "Org-ruby is an org-mode parser written in Ruby. The most significant
9901 thing this library does today is convert org-mode files to HTML or Textile or
9903 (home-page "https://github.com/wallyqs/org-ruby")
9904 (license license:expat)))
9906 (define-public ruby-rake
9913 (uri (rubygems-uri "rake" version))
9916 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
9917 (build-system ruby-build-system)
9919 `(("bundler" ,bundler)))
9920 (synopsis "Rake is a Make-like program implemented in Ruby")
9922 "Rake is a Make-like program where tasks and dependencies are specified
9923 in standard Ruby syntax.")
9924 (home-page "https://github.com/ruby/rake")
9925 (license license:expat)))
9927 (define-public ruby-childprocess
9929 (name "ruby-childprocess")
9934 (uri (rubygems-uri "childprocess" version))
9937 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
9938 (build-system ruby-build-system)
9942 `(("bundler" ,bundler)
9943 ("ruby-rspec" ,ruby-rspec)))
9945 `(("ruby-ffi" ,ruby-ffi)))
9946 (synopsis "Control external programs running in the background, in Ruby")
9947 (description "@code{childprocess} provides a gem to control external
9948 programs running in the background, in Ruby.")
9949 (home-page "https://github.com/enkessler/childprocess")
9950 (license license:expat)))
9952 (define-public ruby-public-suffix
9954 (name "ruby-public-suffix")
9958 (uri (rubygems-uri "public_suffix" version))
9961 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
9962 (build-system ruby-build-system)
9965 (modify-phases %standard-phases
9966 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
9967 ;; including it as an input can lead to circular dependencies.
9968 (add-after 'unpack 'remove-rubocop-from-Rakefile
9970 (substitute* "Rakefile"
9971 (("require \"rubocop/rake\\_task\"") "")
9972 (("RuboCop::RakeTask\\.new") ""))
9975 `(("bundler" ,bundler)
9976 ("ruby-yard" ,ruby-yard)
9977 ("ruby-mocha" ,ruby-mocha)
9978 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
9979 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
9980 (synopsis "Domain name parser")
9981 (description "The gem @code{public_suffix} is a domain name parser,
9982 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
9983 is one under which Internet users can (or historically could) directly
9984 register names. Some examples of public suffixes are @code{.com},
9985 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
9986 all known public suffixes.")
9987 (license license:expat)))
9989 (define-public ruby-addressable
9991 (name "ruby-addressable")
9995 (uri (rubygems-uri "addressable" version))
9998 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
9999 (build-system ruby-build-system)
10001 '(#:test-target "spec"
10003 (modify-phases %standard-phases
10004 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
10006 (substitute* "Gemfile"
10007 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
10008 ((".*launchy.*") "")
10009 ((".*rake.*") "gem 'rake'\n")
10010 ((".*redcarpet.*") ""))
10012 (add-before 'check 'delete-network-dependent-test
10014 (delete-file "spec/addressable/net_http_compat_spec.rb")
10017 `(("ruby-rspec" ,ruby-rspec)
10018 ("bundler" ,bundler)
10019 ("ruby-idn-ruby" ,ruby-idn-ruby)
10020 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
10021 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
10022 ("ruby-yard" ,ruby-yard)
10023 ("ruby-simplecov" ,ruby-simplecov)))
10025 `(("ruby-public-suffix" ,ruby-public-suffix)))
10026 (home-page "https://github.com/sporkmonger/addressable")
10027 (synopsis "Alternative URI implementation")
10028 (description "Addressable is a replacement for the URI implementation that
10029 is part of Ruby's standard library. It more closely conforms to RFC 3986,
10030 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10031 (license license:asl2.0)))
10033 (define-public ruby-colorize
10035 (name "ruby-colorize")
10039 (uri (rubygems-uri "colorize" version))
10042 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10043 (build-system ruby-build-system)
10045 '(#:phases (modify-phases %standard-phases
10046 (add-before 'check 'remove-codeclimate-dependency
10048 (substitute* "test/test_colorize.rb"
10049 ;; Do not hook the tests into the online CodeClimate
10050 ;; service which is unnecessary for these tests.
10051 (("require 'codeclimate-test-reporter'")
10053 (("CodeClimate.*") ""))
10055 (synopsis "Add color effects to the @code{String} class")
10057 "This package extends the @code{String} class and adds a
10058 @code{ColorizedString} with methods to set text color, background color,
10059 and text effects.")
10060 (home-page "https://github.com/fazibear/colorize")
10061 (license license:gpl2+)))
10063 (define-public ruby-colorator
10065 (name "ruby-colorator")
10069 (uri (rubygems-uri "colorator" version))
10072 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10073 (build-system ruby-build-system)
10077 (home-page "http://octopress.org/colorator/")
10078 (synopsis "Terminal color library")
10079 (description "Colorator is a Ruby gem that helps you colorize your text
10080 for the terminal.")
10081 (license license:expat)))
10083 (define-public ruby-command-line-reporter
10085 (name "ruby-command-line-reporter")
10089 (uri (rubygems-uri "command_line_reporter" version))
10092 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10093 (build-system ruby-build-system)
10098 (modify-phases %standard-phases
10099 (add-before 'build 'fix-dependencies
10101 (substitute* ".gemspec"
10102 ;; colored is unmaintained
10103 (("colored") "colorator")
10104 ;; colorator version
10105 (("= 1.2") "= 1.1"))
10107 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10108 (home-page "https://github.com/wbailey/command_line_reporter")
10109 (synopsis "Report production while executing Ruby scripts")
10110 (description "This gem provides a DSL that makes it easy to write reports
10111 of various types in ruby. It eliminates the need to litter your source with
10112 puts statements, instead providing a more readable, expressive interface to
10113 your application.")
10114 (license license:asl2.0)))
10116 (define-public ruby-command-line-reporter-3
10118 (inherit ruby-command-line-reporter)
10122 (uri (rubygems-uri "command_line_reporter" version))
10125 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10127 (define-public ruby-kpeg
10134 (uri (rubygems-uri "kpeg" version))
10137 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10138 (build-system ruby-build-system)
10140 `(("ruby-hoe" ,ruby-hoe)))
10141 (synopsis "PEG library for Ruby")
10142 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10143 well as native grammar to build the grammar. KPeg supports direct left
10144 recursion of rules via the
10145 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10147 (home-page "https://github.com/evanphx/kpeg")
10148 (license license:expat)))
10150 (define-public ruby-rdoc
10157 (uri (git-reference
10158 (url "https://github.com/ruby/rdoc")
10159 (commit (string-append "v" version))))
10160 (file-name (git-file-name name version))
10163 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10164 (build-system ruby-build-system)
10167 (modify-phases %standard-phases
10168 (add-after 'unpack 'patch-gemspec
10169 ;; TODO: Remove after next release is tagged.
10171 (substitute* "rdoc.gemspec"
10172 (("\"lib/rdoc/generator/template/darkfish/js/\
10173 jquery\\.js\", ") ""))
10175 (add-before 'build 'generate
10176 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10177 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10179 (invoke "rake" "generate"))))))
10181 `(("bundler" ,bundler)
10182 ("ruby-kpeg" ,ruby-kpeg)
10183 ("ruby-racc" ,ruby-racc)
10184 ("ruby-rubocop" ,ruby-rubocop)))
10185 (home-page "https://ruby.github.io/rdoc/")
10186 (synopsis "HTML and command-line documentation utility")
10187 (description "RDoc produces HTML and command-line documentation for Ruby
10188 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10189 documentation from the command-line.")
10190 (license license:gpl2+)))
10192 (define-public ruby-sass-listen
10194 (name "ruby-sass-listen")
10198 (uri (rubygems-uri "sass-listen" version))
10201 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10202 (build-system ruby-build-system)
10207 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10208 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10209 (home-page "https://github.com/sass/listen")
10210 (synopsis "File modification notification library")
10211 (description "The Listen gem listens to file modifications and notifies you
10212 about the changes.")
10213 (license license:expat)))
10215 (define-public ruby-terminfo
10217 (name "ruby-terminfo")
10222 (uri (rubygems-uri "ruby-terminfo" version))
10225 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10226 (build-system ruby-build-system)
10228 `(#:test-target "test"
10229 ;; Rakefile requires old packages and would need modification to
10230 ;; work with current software.
10233 `(("ncurses" ,ncurses)))
10235 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10236 ("ruby-rdoc" ,ruby-rdoc)))
10237 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10238 (synopsis "Terminfo binding for Ruby")
10239 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10240 (license license:bsd-3)))
10242 (define-public ruby-diffy
10244 (name "ruby-diffy")
10249 (uri (rubygems-uri "diffy" version))
10252 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10253 (build-system ruby-build-system)
10258 `(("ruby-rspec" ,ruby-rspec)))
10259 (home-page "https://github.com/samg/diffy")
10260 (synopsis "Convenient diffing in ruby")
10261 (description "Diffy provides a convenient way to generate a diff from two
10262 strings or files.")
10263 (license license:expat)))
10265 (define-public ruby-sass-spec
10267 (name "ruby-sass-spec")
10272 (uri (git-reference
10273 (url "https://github.com/sass/sass-spec")
10274 (commit (string-append "v" version))))
10275 (file-name (git-file-name name version))
10277 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10278 (build-system ruby-build-system)
10280 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10281 ("ruby-diffy" ,ruby-diffy)
10282 ("ruby-terminfo" ,ruby-terminfo)))
10284 `(;; This package contains tests for a sass implementation, and the to
10285 ;; avoid any circular dependencies, the tests are not run here
10288 (modify-phases %standard-phases
10289 (add-after 'unpack 'patch-test
10291 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10292 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10293 (("string") "color")))))))
10294 (home-page "https://github.com/sass/sass-spec")
10295 (synopsis "Test suite for Sass")
10296 (description "Sass Spec is a test suite for Sass. Test cases are all in
10297 the @file{spec} directory.")
10298 (license license:expat)))
10300 (define-public ruby-sass
10306 (uri (rubygems-uri "sass" version))
10309 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10310 (build-system ruby-build-system)
10312 `(("ruby-sass-listen" ,ruby-sass-listen)))
10314 `(("ruby-sass-spec" ,ruby-sass-spec)
10315 ("ruby-mathn" ,ruby-mathn)))
10316 (home-page "https://sass-lang.com/")
10317 (synopsis "CSS extension language")
10318 (description "Sass is a CSS extension language. It extends CSS with
10319 features that don't exist yet like variables, nesting, mixins and inheritance.")
10320 (license license:expat)))
10322 (define-public ruby-sassc
10324 (name "ruby-sassc")
10329 (uri (rubygems-uri "sassc" version))
10332 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
10333 (build-system ruby-build-system)
10335 '(#:modules ((guix build ruby-build-system)
10337 (ice-9 textual-ports))
10339 (modify-phases %standard-phases
10340 ;; TODO: This would be better as a snippet, but the ruby-build-system
10341 ;; doesn't seem to support that
10342 (add-after 'unpack 'remove-libsass
10344 (delete-file-recursively "ext")
10345 (with-atomic-file-replacement "sassc.gemspec"
10347 (let* ((gemspec (get-string-all in))
10348 (index (string-contains gemspec "libsass_dir")))
10349 (display (string-append
10350 (string-take gemspec index)
10354 (add-after 'unpack 'dont-check-the-libsass-version
10356 (substitute* "test/native_test.rb"
10357 (("assert_equal.*Native\\.version") ""))
10359 (add-after 'unpack 'remove-git-from-gemspec
10361 (substitute* "sassc.gemspec"
10362 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10364 (add-after 'unpack 'remove-extensions-from-gemspec
10366 (substitute* "sassc.gemspec"
10367 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10369 (add-after 'unpack 'fix-Rakefile
10371 (substitute* "Rakefile"
10372 (("test: 'compile:libsass'") ":test"))
10374 (add-after 'unpack 'remove-unnecessary-dependencies
10376 (substitute* "test/test_helper.rb"
10377 (("require \"pry\"") ""))
10379 (add-before 'build 'patch-native.rb
10380 (lambda* (#:key inputs #:allow-other-keys)
10381 (substitute* "lib/sassc/native.rb"
10382 ((".*gem_root = spec.gem_dir") "")
10385 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10387 ;; The gemspec still references the libsass files, so just keep the
10389 (delete 'extract-gemspec))))
10391 `(("ruby-ffi" ,ruby-ffi)
10392 ("ruby-rake" ,ruby-rake)))
10394 `(("libsass" ,libsass)))
10396 `(("bundler" ,bundler)
10397 ("ruby-rake-compiler" ,ruby-rake-compiler)
10398 ("ruby-minitest-around" ,ruby-minitest-around)
10399 ("ruby-test-construct" ,ruby-test-construct)))
10400 (synopsis "Use libsss from Ruby")
10402 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10403 bindings to the libsass library. This enables rendering
10404 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10405 (home-page "https://github.com/sass/sassc-ruby")
10406 (license license:expat)))
10408 (define-public ruby-jekyll-sass-converter
10410 (name "ruby-jekyll-sass-converter")
10414 (uri (rubygems-uri "jekyll-sass-converter" version))
10417 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
10418 (build-system ruby-build-system)
10420 `(("ruby-sass" ,ruby-sass)))
10424 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10425 (synopsis "Sass converter for Jekyll")
10426 (description "This gem provide built-in support for the Sass converter
10428 (license license:expat)))
10430 (define-public ruby-jekyll-watch
10432 (name "ruby-jekyll-watch")
10436 (uri (rubygems-uri "jekyll-watch" version))
10439 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10440 (build-system ruby-build-system)
10442 `(("ruby-listen" ,ruby-listen)))
10446 (home-page "https://github.com/jekyll/jekyll-watch")
10447 (synopsis "Jekyll auto-rebuild support")
10448 (description "This gems add the @code{--watch} switch to the jekyll CLI
10449 interface. It allows Jekyll to rebuild your site when a file changes.")
10450 (license license:expat)))
10452 (define-public ruby-parallel
10454 (name "ruby-parallel")
10459 (uri (git-reference
10460 (url "https://github.com/grosser/parallel")
10461 (commit (string-append "v" version))))
10462 (file-name (git-file-name name version))
10465 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10466 (build-system ruby-build-system)
10468 `(;; TODO 3 test failures
10469 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10470 ;; open unnecessary pipes
10471 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10472 ;; SQLite in processes
10473 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10474 ;; SQLite in threads
10476 #:test-target "rspec-rerun:spec"
10478 (modify-phases %standard-phases
10479 (add-after 'unpack 'patch-Gemfile
10481 (substitute* "Gemfile"
10482 (("gem 'rspec-legacy_formatters'") "")
10483 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10484 (add-before 'check 'delete-Gemfile.lock
10486 ;; Bundler isn't being used for fetching dependendencies, so
10487 ;; delete the Gemfile.lock
10488 (delete-file "Gemfile.lock")
10490 (add-before 'build 'patch-gemspec
10492 (substitute* "parallel.gemspec"
10493 (("git ls-files") "find"))
10496 `(("ruby-rspec" ,ruby-rspec)
10497 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10498 ("bundler" ,bundler)
10499 ("ruby-activerecord" ,ruby-activerecord)
10500 ("ruby-progressbar" ,ruby-progressbar)
10501 ("ruby-bump" ,ruby-bump)
10504 ("ruby-mysql2" ,ruby-mysql2)
10505 ("ruby-sqlite3" ,ruby-sqlite3)
10506 ("ruby-i18n" ,ruby-i18n)))
10507 (home-page "https://github.com/grosser/parallel")
10508 (synopsis "Parallel processing in Ruby")
10509 (description "Parallel allows you to run any code in parallel Processes
10510 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10511 suited for map-reduce or e.g. parallel downloads/uploads.")
10512 (license license:expat)))
10514 (define-public ruby-cane
10520 (uri (rubygems-uri "cane" version))
10523 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10524 (build-system ruby-build-system)
10525 (arguments `(#:tests? #f)); No rakefile
10526 (home-page "https://github.com/square/cane")
10528 `(("ruby-parallel" ,ruby-parallel)))
10529 (synopsis "Code quality threshold checking")
10530 (description "Cane fails your build if code quality thresholds are not met.")
10531 (license license:asl2.0)))
10533 (define-public ruby-morecane
10535 (name "ruby-morecane")
10539 (uri (rubygems-uri "morecane" version))
10542 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10543 (build-system ruby-build-system)
10544 (home-page "https://github.com/yob/morecane")
10545 (arguments `(#:tests? #f)); No rakefile
10547 `(("ruby-parallel" ,ruby-parallel)))
10548 (synopsis "Extra checks for cane")
10549 (description "The cane gem provides a great framework for running quality
10550 checks over your ruby project as part of continuous integration build. It
10551 comes with a few checks out of the box, but also provides an API for loading
10552 custom checks. This gem provides a set of additional checks.")
10553 (license license:expat)))
10555 (define-public ruby-pdf-reader
10557 (name "ruby-pdf-reader")
10560 (method git-fetch) ;no test in distributed gem archive
10561 (uri (git-reference
10562 (url "https://github.com/yob/pdf-reader")
10563 (commit (string-append "v" version))))
10564 (file-name (git-file-name name version))
10567 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10568 (build-system ruby-build-system)
10569 (arguments `(#:test-target "spec"
10570 #:phases (modify-phases %standard-phases
10571 (add-after 'unpack 'do-not-use-bundler
10573 (substitute* "spec/spec_helper.rb"
10574 ((".*[Bb]undler.*") ""))
10577 `(("ruby-rspec" ,ruby-rspec)
10578 ("ruby-cane" ,ruby-cane)
10579 ("ruby-morecane" ,ruby-morecane)))
10581 `(("ruby-afm" ,ruby-afm)
10582 ("ruby-ascii85" ,ruby-ascii85)
10583 ("ruby-hashery" ,ruby-hashery)
10584 ("ruby-rc4" ,ruby-rc4)
10585 ("ruby-ttfunk" ,ruby-ttfunk)))
10586 (home-page "https://github.com/yob/pdf-reader")
10587 (synopsis "PDF parser in Ruby")
10588 (description "The PDF::Reader library implements a PDF parser conforming as
10589 much as possible to the PDF specification from Adobe. It provides programmatic
10590 access to the contents of a PDF file with a high degree of flexibility.")
10591 (license license:gpl3+)))
10593 (define-public ruby-pdf-inspector
10594 (let ((revision "1")
10595 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10597 (name "ruby-pdf-inspector")
10598 (version (git-version "1.3.0" revision commit))
10601 (uri (git-reference
10602 (url "https://github.com/prawnpdf/pdf-inspector")
10604 (file-name (git-file-name name version))
10607 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10608 (build-system ruby-build-system)
10610 `(#:test-target "spec"
10611 #:phases (modify-phases %standard-phases
10612 (add-before 'build 'drop-signing-key-requirement
10614 (substitute* "pdf-inspector.gemspec"
10615 (("spec.signing_key =.*")
10616 "spec.signing_key = nil"))
10620 (substitute* "pdf-inspector.gemspec"
10621 ((".*rubocop.*") "")
10623 (invoke "rspec"))))))
10625 `(("ruby-rspec" ,ruby-rspec)))
10627 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10628 (home-page "https://github.com/prawnpdf/pdf-inspector")
10629 (synopsis "Analysis classes for inspecting PDF output")
10630 (description "This library provides a number of PDF::Reader based tools for
10631 use in testing PDF output. Presently, the primary purpose of this tool is to
10632 support the tests found in Prawn, a pure Ruby PDF generation library.")
10633 (license %prawn-project-licenses))))
10635 (define-public ruby-pdf-core
10637 (name "ruby-pdf-core")
10641 (uri (rubygems-uri "pdf-core" version))
10644 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10645 (build-system ruby-build-system)
10649 (home-page "https://github.com/prawnpdf/pdf-core")
10650 (synopsis "Low level PDF features for Prawn")
10651 (description "This is an experimental gem that extracts low-level PDF
10652 functionality from Prawn.")
10653 (license license:gpl3+)))
10655 (define-public ruby-prawn
10656 ;; There hasn't been a new release since 2017/03/17.
10657 (let ((revision "1")
10658 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10660 (name "ruby-prawn")
10661 (version (git-version "2.2.2" revision commit))
10664 (uri (git-reference
10665 (url "https://github.com/prawnpdf/prawn")
10667 (file-name (git-file-name name version))
10670 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10671 (build-system ruby-build-system)
10674 (modify-phases %standard-phases
10675 (add-before 'build 'drop-signing-key-requirement
10677 (substitute* "prawn.gemspec"
10678 (("spec.signing_key =.*")
10679 "spec.signing_key = nil"))
10682 (lambda* (#:key tests? #:allow-other-keys)
10684 ;; The Prawn manual test fails (see:
10685 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10687 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10690 `(("ruby-pdf-core" ,ruby-pdf-core)
10691 ("ruby-ttfunk" ,ruby-ttfunk)))
10693 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10694 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10695 ("ruby-rspec" ,ruby-rspec)
10696 ("ruby-simplecov" ,ruby-simplecov)
10697 ("ruby-yard" ,ruby-yard)))
10698 (home-page "https://prawnpdf.org/api-docs/2.0/")
10699 (synopsis "PDF generation for Ruby")
10700 (description "Prawn is a pure Ruby PDF generation library.")
10701 (license %prawn-project-licenses))))
10703 (define-public ruby-prawn-table
10705 (name "ruby-prawn-table")
10709 (uri (rubygems-uri "prawn-table" version))
10712 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10713 (build-system ruby-build-system)
10715 `(("ruby-prawn" ,ruby-prawn)
10716 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10718 `(("bundler" ,bundler)
10719 ("ruby-yard" ,ruby-yard)
10720 ("ruby-mocha" ,ruby-mocha)
10721 ("ruby-coderay" ,ruby-coderay)
10722 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10723 ("ruby-simplecov" ,ruby-simplecov)
10724 ("ruby-rspec-2" ,ruby-rspec-2)))
10726 '(;; TODO: 1 test fails
10727 ;; Failure/Error: pdf.page_count.should == 1
10729 ;; got: 2 (using ==)
10730 ;; # ./spec/table_spec.rb:1308
10732 ;; 225 examples, 1 failure
10735 (modify-phases %standard-phases
10736 (add-before 'check 'patch-gemspec
10738 (substitute* "prawn-table.gemspec"
10739 ;; Loosen the requirement for pdf-inspector
10740 (("~> 1\\.1\\.0") ">= 0")
10741 ;; Loosen the requirement for pdf-reader
10742 (("~> 1\\.2") ">= 0"))))
10744 (lambda* (#:key tests? #:allow-other-keys)
10748 (home-page "https://github.com/prawnpdf/prawn-table")
10749 (synopsis "Tables support for Prawn")
10750 (description "This gem provides tables support for Prawn.")
10751 (license license:gpl3+)))
10753 (define-public ruby-kramdown
10755 (name "ruby-kramdown")
10759 (uri (rubygems-uri "kramdown" version))
10762 "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7"))))
10763 (build-system ruby-build-system)
10764 (arguments `(#:tests? #f)); FIXME: some test failures
10766 `(("ruby-prawn" ,ruby-prawn)
10767 ("ruby-prawn-table" ,ruby-prawn-table)))
10768 (home-page "https://kramdown.gettalong.org/")
10769 (synopsis "Markdown parsing and converting library")
10770 (description "Kramdown is a library for parsing and converting a superset
10771 of Markdown. It is completely written in Ruby, supports standard Markdown
10772 (with some minor modifications) and various extensions that have been made
10773 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
10774 (license license:expat)))
10776 (define-public ruby-kramdown-parser-gfm
10778 (name "ruby-kramdown-parser-gfm")
10783 (uri (rubygems-uri "kramdown-parser-gfm" version))
10785 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
10786 (build-system ruby-build-system)
10788 `(#:tests? #f)) ;no rakefile
10790 `(("ruby-kramdown" ,ruby-kramdown)))
10791 (synopsis "Kramdown parser for the GFM dialect of Markdown")
10793 "This is a parser for kramdown that converts Markdown documents in the
10794 GFM dialect to HTML.")
10795 (home-page "https://github.com/kramdown/parser-gfm")
10796 (license license:expat)))
10798 (define-public ruby-http-parser.rb
10800 (name "ruby-http-parser.rb")
10805 (uri (rubygems-uri "http_parser.rb" version))
10808 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
10809 (build-system ruby-build-system)
10814 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10815 ("ruby-rspec" ,ruby-rspec)))
10816 (home-page "https://github.com/tmm1/http_parser.rb")
10817 (synopsis "HTTP parser un Ruby")
10818 (description "This gem is a simple callback-based HTTP request/response
10819 parser for writing http servers, clients and proxies.")
10820 (license license:expat)))
10822 (define-public ruby-em-websocket
10824 (name "ruby-em-websocket")
10829 (uri (rubygems-uri "em-websocket" version))
10832 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
10833 (build-system ruby-build-system)
10838 `(("ruby-eventmachine" ,ruby-eventmachine)
10839 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
10841 `(("bundler" ,bundler)
10842 ("ruby-rspec" ,ruby-rspec)))
10843 (home-page "https://github.com/igrigorik/em-websocket")
10844 (synopsis "EventMachine based WebSocket server")
10845 (description "Em-websocket is an EventMachine based WebSocket server
10847 (license license:expat)))
10849 (define-public ruby-rouge
10851 (name "ruby-rouge")
10855 (uri (rubygems-uri "rouge" version))
10858 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
10859 (build-system ruby-build-system)
10860 (arguments `(#:tests? #f)); No rakefile
10861 (home-page "http://rouge.jneen.net/")
10862 (synopsis "Code highlighter")
10863 (description "Rouge is a code highlighter written in Ruby. It supports more
10864 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
10865 is compatible with stylesheets designed for pygments.")
10867 ;; rouge is licensed under expat
10869 ;; pygments is licensed under bsd-2
10872 (define-public ruby-rouge-2
10874 (inherit ruby-rouge)
10878 (uri (rubygems-uri "rouge" version))
10881 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
10883 (define-public ruby-hashie
10885 (name "ruby-hashie")
10889 (uri (rubygems-uri "hashie" version))
10892 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
10893 (build-system ruby-build-system)
10895 `(("bundler" ,bundler)))
10896 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
10897 (home-page "https://github.com/intridea/hashie")
10898 (synopsis "Extensions to Ruby Hashes")
10899 (description "Hashie is a collection of classes and mixins that make Ruby
10900 hashes more powerful.")
10901 (license license:expat)))
10903 (define-public ruby-heredoc-unindent
10905 (name "ruby-heredoc-unindent")
10909 (uri (rubygems-uri "heredoc_unindent" version))
10912 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
10913 (build-system ruby-build-system)
10915 `(("ruby-hoe" ,ruby-hoe)))
10916 (home-page "https://github.com/adrianomitre/heredoc_unindent")
10917 (synopsis "Heredoc indentation cleaner")
10918 (description "This gem removes common margin from indented strings, such
10919 as the ones produced by indented heredocs. In other words, it strips out
10920 leading whitespace chars at the beginning of each line, but only as much as
10921 the line with the smallest margin.
10923 It is acknowledged that many strings defined by heredocs are just code and
10924 fact is that most parsers are insensitive to indentation. If, however, the
10925 strings are to be used otherwise, be it for printing or testing, the extra
10926 indentation will probably be an issue and hence this gem.")
10927 (license license:expat)))
10929 (define-public ruby-safe-yaml
10931 (name "ruby-safe-yaml")
10936 (uri (git-reference
10937 (url "https://github.com/dtao/safe_yaml")
10939 (file-name (git-file-name name version))
10942 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
10943 (build-system ruby-build-system)
10945 `(("ruby-rspec" ,ruby-rspec)
10946 ("ruby-hashie" ,ruby-hashie)
10947 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
10949 '(#:test-target "spec"
10951 (modify-phases %standard-phases
10952 (add-before 'check 'set-TZ
10954 ;; This test is dependent on the timezone
10955 ;; spec/transform/to_date_spec.rb:35
10956 ;; # SafeYAML::Transform::ToDate converts times to the local
10958 (setenv "TZ" "UTC-11")
10960 (home-page "https://github.com/dtao/safe_yaml")
10961 (synopsis "YAML parser")
10962 (description "The SafeYAML gem provides an alternative implementation of
10963 YAML.load suitable for accepting user input in Ruby applications.")
10964 (license license:expat)))
10966 (define-public ruby-mercenary
10968 (name "ruby-mercenary")
10972 (uri (rubygems-uri "mercenary" version))
10975 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
10976 (build-system ruby-build-system)
10977 (arguments `(#:test-target "spec"))
10979 `(("bundler" ,bundler)))
10980 (home-page "https://github.com/jekyll/mercenary")
10981 (synopsis "Command-line apps library in Ruby")
10982 (description "Mercenary is a lightweight and flexible library for writing
10983 command-line apps in Ruby.")
10984 (license license:expat)))
10986 (define-public ruby-liquid
10988 (name "ruby-liquid")
10992 (uri (rubygems-uri "liquid" version))
10995 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
10996 (build-system ruby-build-system)
10997 (arguments `(#:tests? #f)); No rakefile
10998 (home-page "https://shopify.github.io/liquid/")
10999 (synopsis "Template language")
11000 (description "Liquid is a template language written in Ruby. It is used
11001 to load dynamic content on storefronts.")
11002 (license license:expat)))
11004 (define-public ruby-forwardable-extended
11006 (name "ruby-forwardable-extended")
11010 (uri (rubygems-uri "forwardable-extended" version))
11013 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
11014 (build-system ruby-build-system)
11015 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
11016 (home-page "https://github.com/envygeeks/forwardable-extended")
11017 (synopsis "Delegation to hashes and instance variables in Forwardable")
11018 (description "Forwardable Extended provides more @code{Forwardable}
11019 methods for your source as @code{Forwardable::Extended}.")
11020 (license license:expat)))
11022 (define-public ruby-pathutil
11024 (name "ruby-pathutil")
11028 (uri (rubygems-uri "pathutil" version))
11031 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11032 (build-system ruby-build-system)
11034 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11036 `(("bundler" ,bundler)
11037 ("ruby-rspec" ,ruby-rspec)))
11038 ;; Fails with: cannot load such file --
11039 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11040 (arguments `(#:tests? #f))
11041 (home-page "https://github.com/envygeeks/pathutil")
11042 (synopsis "Extended implementation of Pathname")
11043 (description "Pathutil tries to be a faster pure Ruby implementation of
11045 (license license:expat)))
11047 (define-public jekyll
11053 (uri (rubygems-uri "jekyll" version))
11056 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
11057 (build-system ruby-build-system)
11059 ;; No rakefile, but a test subdirectory.
11062 (modify-phases %standard-phases
11063 (add-before 'build 'fix-i18n
11065 (substitute* ".gemspec"
11066 (("~> 0.7") ">= 0.7")
11067 (("~> 1.14") ">= 1.14"))
11070 `(("ruby-addressable" ,ruby-addressable)
11071 ("ruby-colorator" ,ruby-colorator)
11072 ("ruby-em-websocket" ,ruby-em-websocket)
11073 ("ruby-i18n" ,ruby-i18n)
11074 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11075 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11076 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11077 ("ruby-liquid" ,ruby-liquid)
11078 ("ruby-mercenary" ,ruby-mercenary)
11079 ("ruby-pathutil" ,ruby-pathutil)
11080 ("ruby-rouge" ,ruby-rouge-2)
11081 ("ruby-safe-yaml" ,ruby-safe-yaml)))
11082 (home-page "https://jekyllrb.com/")
11083 (synopsis "Static site generator")
11084 (description "Jekyll is a simple, blog aware, static site generator.")
11085 (license license:expat)))
11087 (define-public ruby-jekyll-paginate-v2
11089 (name "ruby-jekyll-paginate-v2")
11093 (uri (rubygems-uri "jekyll-paginate-v2" version))
11096 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11097 (build-system ruby-build-system)
11099 `(("jekyll" ,jekyll)))
11100 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11101 (synopsis "Pagination Generator for Jekyll 3")
11102 (description "The Pagination Generator forms the core of the pagination
11103 logic in Jekyll. It calculates and generates the pagination pages.")
11104 (license license:expat)))
11106 (define-public ruby-faraday
11108 (name "ruby-faraday")
11113 (uri (rubygems-uri "faraday" version))
11116 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11117 (build-system ruby-build-system)
11121 `(("ruby-multipart-post" ,ruby-multipart-post)))
11122 (synopsis "Ruby HTTP/REST API client library")
11124 "Faraday is a HTTP/REST API client library which provides a common
11125 interface over different adapters.")
11126 (home-page "https://github.com/lostisland/faraday")
11127 (license license:expat)))
11129 (define-public ruby-nio4r
11131 (name "ruby-nio4r")
11136 (uri (rubygems-uri "nio4r" version))
11139 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11140 (build-system ruby-build-system)
11143 (modify-phases %standard-phases
11144 (add-after 'unpack 'remove-unnecessary-dependencies
11146 (substitute* "spec/spec_helper.rb"
11147 ;; Coveralls is for uploading test coverage information to an
11148 ;; online service, and thus unnecessary for building the Guix
11150 (("require \"coveralls\"") "")
11151 (("Coveralls\\.wear!") "")
11152 ;; Remove rspec/retry as we are not retrying the tests
11153 (("require \"rspec/retry\"") "")
11154 (("config\\.display_try_failure_messages = true") "")
11155 (("config\\.verbose_retry = true") ""))
11157 (add-before 'check 'compile
11159 (invoke "rake" "compile")
11162 (lambda* (#:key tests? #:allow-other-keys)
11167 `(("bundler" ,bundler)
11168 ("ruby-rake-compiler" ,ruby-rake-compiler)
11169 ("ruby-rspec" ,ruby-rspec)
11170 ("ruby-rubocop" ,ruby-rubocop)))
11171 (synopsis "New I/O for Ruby")
11173 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11174 for scalable network clients and servers.")
11175 (home-page "https://github.com/socketry/nio4r")
11176 (license license:expat)))
11178 (define-public ruby-globalid
11180 (name "ruby-globalid")
11185 (uri (rubygems-uri "globalid" version))
11188 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11189 (build-system ruby-build-system)
11191 '(;; No included tests
11194 `(("ruby-activesupport" ,ruby-activesupport)))
11195 (synopsis "Generate URIs idenfitying model instances in Ruby")
11197 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11198 uniquely identify it.")
11199 (home-page "https://rubyonrails.org/")
11200 (license license:expat)))
11202 (define-public ruby-sprockets
11204 (name "ruby-sprockets")
11209 (uri (rubygems-uri "sprockets" version))
11212 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11213 (build-system ruby-build-system)
11215 '(;; No included tests
11218 `(("ruby-concurrent" ,ruby-concurrent)
11219 ("ruby-rack" ,ruby-rack)))
11220 (synopsis "Sprockets is a Rack-based asset packaging system")
11222 "Sprockets is a Rack-based asset packaging system that concatenates and
11223 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11224 (home-page "https://github.com/rails/sprockets")
11225 (license license:expat)))
11227 (define-public ruby-mustache
11229 (name "ruby-mustache")
11234 (uri (rubygems-uri "mustache" version))
11236 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11237 (build-system ruby-build-system)
11239 `(("ruby-simplecov" ,ruby-simplecov)))
11240 (synopsis "framework-agnostic way to render logic-free views")
11242 "Mustache is a framework-agnostic way to render logic-free views.
11243 Think of Mustache as a replacement for your views. Instead of views
11244 consisting of ERB or HAML with random helpers and arbitrary logic,
11245 your views are broken into two parts: a Ruby class and an HTML
11247 (home-page "https://github.com/mustache/mustache")
11248 (license license:expat)))
11250 (define-public ruby-mustermann
11252 (name "ruby-mustermann")
11257 (uri (rubygems-uri "mustermann" version))
11260 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11261 (build-system ruby-build-system)
11265 (synopsis "Library implementing patterns that behave like regular expressions")
11266 (description "Given a string pattern, Mustermann will turn it into an
11267 object that behaves like a regular expression and has comparable performance
11269 (home-page "https://github.com/sinatra/mustermann")
11270 (license license:expat)))
11272 (define-public ruby-htmlentities
11274 (name "ruby-htmlentities")
11279 (uri (rubygems-uri "htmlentities" version))
11282 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11283 (build-system ruby-build-system)
11286 (modify-phases %standard-phases
11289 (map (lambda (file)
11290 (invoke "ruby" "-Itest" file))
11291 (find-files "./test" ".*_test\\.rb")))))))
11292 (synopsis "Encode and decode (X)HTML entities")
11294 "This package provides a module for encoding and decoding (X)HTML
11296 (home-page "https://github.com/threedaymonk/htmlentities")
11297 (license license:expat)))
11299 (define-public ruby-sinatra
11301 (name "ruby-sinatra")
11302 (version "2.0.8.1")
11306 (uri (rubygems-uri "sinatra" version))
11309 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11310 (build-system ruby-build-system)
11313 (modify-phases %standard-phases
11314 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11315 (add-after 'extract-gemspec 'fix-slow-doc-generation
11317 (substitute* "sinatra.gemspec"
11318 (("\"README.rdoc\"\\.freeze," all)
11319 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11322 `(("ruby-mustermann" ,ruby-mustermann)
11323 ("ruby-rack" ,ruby-rack)
11324 ("ruby-rack-protection" ,ruby-rack-protection)
11325 ("ruby-tilt" ,ruby-tilt)))
11326 (synopsis "DSL for quick web applications creation in Ruby")
11328 "Sinatra is a DSL for quickly creating web applications in Ruby with
11330 (home-page "http://sinatrarb.com/")
11331 (license license:expat)))
11333 (define-public ruby-thin
11340 (uri (rubygems-uri "thin" version))
11343 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11344 (build-system ruby-build-system)
11349 `(("ruby-daemons" ,ruby-daemons)
11350 ("ruby-eventmachine" ,ruby-eventmachine)
11351 ("ruby-rack" ,ruby-rack)))
11352 (synopsis "Thin and fast web server for Ruby")
11353 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11355 @item the Mongrel parser,
11356 @item Event Machine, a network I/O library with high scalability, performance
11358 @item Rack, a minimal interface between webservers and Ruby frameworks.
11360 (home-page "https://github.com/macournoyer/thin")
11361 (license license:ruby)))
11363 (define-public ruby-skinny
11365 (name "ruby-skinny")
11370 (uri (rubygems-uri "skinny" version))
11373 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11374 (build-system ruby-build-system)
11376 '(#:tests? #f ; No included tests
11378 (modify-phases %standard-phases
11379 (add-before 'build 'patch-gemspec
11381 (substitute* ".gemspec"
11382 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11383 "<eventmachine>, [\">= 1.0.0\"")
11384 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11387 `(("ruby-eventmachine" ,ruby-eventmachine)
11388 ("ruby-thin" ,ruby-thin)))
11389 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11390 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11391 the Thin library.")
11392 (home-page "https://github.com/sj26/skinny")
11393 (license license:expat)))
11395 (define-public ruby-sys-filesystem
11397 (name "ruby-sys-filesystem")
11401 (uri (rubygems-uri "sys-filesystem" version))
11404 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11405 (build-system ruby-build-system)
11407 '(#:phases (modify-phases %standard-phases
11408 (add-before 'check 'set-HOME
11410 ;; Some tests attempt to stat $HOME. Let them.
11411 (setenv "HOME" "/tmp")
11414 `(("ruby-ffi" ,ruby-ffi)))
11416 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11417 (synopsis "Gather file system information")
11419 "The @code{sys-filesystem} library provides a cross-platform interface
11420 for gathering file system information, such as disk space and mount points.")
11421 (home-page "https://github.com/djberg96/sys-filesystem")
11422 (license license:asl2.0)))
11424 (define-public mailcatcher
11426 (name "mailcatcher")
11431 (uri (rubygems-uri "mailcatcher" version))
11434 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11435 (build-system ruby-build-system)
11437 ;; Tests require web/assets which is not included in the output. We
11438 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11439 ;; of the tests. See ruby-mysql2.
11442 (modify-phases %standard-phases
11443 (add-before 'build 'patch-gemspec
11445 (substitute* ".gemspec"
11446 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11447 "<eventmachine>, [\">= 1.0.9.1")
11448 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11449 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11450 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11452 (add-before 'build 'loosen-dependency-contraint
11454 (substitute* "lib/mail_catcher.rb"
11455 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11456 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11457 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11458 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11461 `(("ruby-eventmachine" ,ruby-eventmachine)
11462 ("ruby-mail" ,ruby-mail)
11463 ("ruby-rack" ,ruby-rack)
11464 ("ruby-sinatra" ,ruby-sinatra)
11465 ("ruby-skinny" ,ruby-skinny)
11466 ("ruby-sqlite3" ,ruby-sqlite3)
11467 ("ruby-thin" ,ruby-thin)))
11468 (synopsis "SMTP server which catches messages to display them a browser")
11470 "MailCatcher runs a super simple SMTP server which catches any message
11471 sent to it to display in a web interface. Run mailcatcher, set your favourite
11472 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11473 then check out http://127.0.0.1:1080 to see the mail.")
11474 (home-page "https://mailcatcher.me")
11475 (license license:expat)))
11477 (define-public ruby-backport
11479 (name "ruby-backport")
11483 ;; The gem does not include test code, so fetch from the Git repository.
11485 (uri (git-reference
11486 (url "https://github.com/castwide/backport")
11487 (commit (string-append "v" version))))
11488 (file-name (git-file-name name version))
11490 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11491 (build-system ruby-build-system)
11493 `(#:test-target "spec"))
11495 `(("bundler" ,bundler)
11496 ("ruby-rspec" ,ruby-rspec)))
11498 `(("ruby-simplecov" ,ruby-simplecov)))
11499 (synopsis "Pure Ruby library for event-driven IO")
11501 "This package provides a pure Ruby library for event-driven IO.")
11502 (home-page "https://github.com/castwide/backport")
11503 (license license:expat)))
11505 (define-public ruby-json-schema
11507 (name "ruby-json-schema")
11512 (uri (rubygems-uri "json-schema" version))
11515 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11516 (build-system ruby-build-system)
11518 `(#:tests? #f ; no tests
11520 (modify-phases %standard-phases
11523 (invoke "gem" "build" ".gemspec"))))))
11525 `(("ruby-addressable" ,ruby-addressable)))
11526 (synopsis "Ruby JSON Schema Validator")
11527 (description "This library provides Ruby with an interface for validating
11528 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11529 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11530 is also included.")
11531 (home-page "https://github.com/ruby-json-schema/json-schema")
11532 (license license:expat)))
11534 (define-public swagger-diff
11536 (name "swagger-diff")
11541 (uri (rubygems-uri "swagger-diff" version))
11544 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11545 (build-system ruby-build-system)
11547 `(#:test-target "spec"
11549 (modify-phases %standard-phases
11550 ;; Don't run or require rubocop, the code linting tool, as this is a
11551 ;; bit unnecessary.
11552 (add-after 'unpack 'dont-run-rubocop
11554 (substitute* "Rakefile"
11555 ((".*rubocop.*") "")
11556 ((".*RuboCop.*") ""))
11559 `(("ruby-json-schema" ,ruby-json-schema)))
11561 `(("bundler" ,bundler)
11562 ("ruby-rspec-core" ,ruby-rspec-core)
11563 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11565 "Compare Open API Initiative specification files")
11567 "Swagger::Diff is a utility for comparing two different Open API
11568 Initiative (OAI) specifications (formerly known as Swagger specifications).
11569 It is intended to determine whether a newer API specification is
11570 backwards-compatible with an older API specification.")
11571 (home-page "https://github.com/civisanalytics/swagger-diff")
11572 (license license:bsd-3)))
11574 (define-public ruby-reverse-markdown
11576 (name "ruby-reverse-markdown")
11581 (uri (rubygems-uri "reverse_markdown" version))
11584 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11585 (build-system ruby-build-system)
11587 `(("ruby-nokogiri" ,ruby-nokogiri)))
11589 `(("bundler" ,bundler)
11590 ("ruby-rspec" ,ruby-rspec)
11591 ("ruby-kramdown" ,ruby-kramdown)
11592 ("ruby-simplecov" ,ruby-simplecov)))
11595 (modify-phases %standard-phases
11597 (lambda* (#:key tests? #:allow-other-keys)
11601 (synopsis "Convert HTML into Markdown")
11603 "This Ruby module allows you to map simple HTML back into
11604 Markdown---e.g., if you want to import existing HTML data in your
11606 (home-page "https://github.com/xijo/reverse_markdown")
11607 (license license:wtfpl2)))
11609 (define-public ruby-solargraph
11611 (name "ruby-solargraph")
11616 (uri (rubygems-uri "solargraph" version))
11619 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11620 (build-system ruby-build-system)
11622 `(("ruby-backport" ,ruby-backport)
11623 ("bundler" ,bundler)
11624 ("ruby-htmlentities" ,ruby-htmlentities)
11625 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11626 ("ruby-maruku" ,ruby-maruku)
11627 ("ruby-nokogiri" ,ruby-nokogiri)
11628 ("ruby-parser" ,ruby-parser)
11629 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11630 ("ruby-rubocop" ,ruby-rubocop)
11631 ("ruby-thor" ,ruby-thor)
11632 ("ruby-tilt" ,ruby-tilt)
11633 ("ruby-yard" ,ruby-yard)))
11635 `(("ruby-rspec" ,ruby-rspec)
11636 ("ruby-pry" ,ruby-pry)
11637 ("ruby-simplecov" ,ruby-simplecov)
11638 ("ruby-webmock" ,ruby-webmock-2)))
11639 ;; FIXME: can't figure out how to run the tests properly:
11641 ;; An error occurred while loading spec_helper.
11642 ;; Failure/Error: return gem_original_require(path)
11644 ;; cannot load such file -- spec_helper
11648 (modify-phases %standard-phases
11650 (lambda* (#:key tests? #:allow-other-keys)
11655 "IDE tools for code completion, inline documentation, and static analysis")
11657 "Solargraph provides a comprehensive suite of tools for Ruby
11658 programming: intellisense, diagnostics, inline documentation, and type
11660 (home-page "https://solargraph.org/")
11661 (license license:expat)))
11663 (define-public ruby-wayback-machine-downloader
11665 (name "ruby-wayback-machine-downloader")
11671 "wayback_machine_downloader"
11675 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
11676 (build-system ruby-build-system)
11678 '(#:tests? #f)) ; no tests
11679 (synopsis "Download archived websites from the Wayback Machine")
11681 "Wayback Machine Downloader is a command line tool for downloading
11682 websites from the Internet Archive's Wayback Machine (archive.org).
11683 It allows fine grained control over what to download by specifying
11684 which snapshots to consider and what files to include.")
11686 "https://github.com/hartator/wayback-machine-downloader")
11687 (license license:expat)))
11689 (define-public ruby-wwtd
11693 (home-page "https://github.com/grosser/wwtd")
11696 (uri (git-reference
11698 (commit (string-append "v" version))))
11699 (file-name (git-file-name name version))
11702 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
11703 (modules '((guix build utils)))
11706 ;; Remove bundled library.
11707 (delete-file "spec/rake-12.3.0.gem")
11709 (build-system ruby-build-system)
11711 '(;; XXX: Tests need multiple versions of ruby, wants to run
11712 ;; `bundle install`, etc.
11714 #:phases (modify-phases %standard-phases
11715 (replace 'replace-git-ls-files
11717 (substitute* "wwtd.gemspec"
11718 (("git ls-files lib/ bin/`")
11719 "find lib/ bin/ -type f |sort`"))
11721 (add-before 'check 'remove-version-constraints
11723 (delete-file "Gemfile.lock")
11726 (lambda* (#:key tests? #:allow-other-keys)
11728 (invoke "rspec" "spec/")
11729 (format #t "test suite not run~%"))
11732 `(("ruby-bump" ,ruby-bump)
11733 ("ruby-rspec" ,ruby-rspec)))
11734 (synopsis "Run @file{.travis.yml} files locally")
11736 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
11737 defined in @file{.travis.yml} on your local machine, using @code{rvm},
11738 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
11739 (license license:expat)))
11741 (define-public ruby-rugged
11743 (name "ruby-rugged")
11745 (home-page "https://www.rubydoc.info/gems/rugged")
11749 (uri (rubygems-uri "rugged" version))
11751 (base32 "04aq913plcxjw71l5r62qgz3bx3466p0wvgyfqahg5n3nybmcwqy"))))
11752 (build-system ruby-build-system)
11755 #:gem-flags (list "--" "--use-system-libraries")))
11757 `(("libgit2" ,libgit2)))
11759 `(("ruby-minitest" ,ruby-minitest)
11760 ("ruby-pry" ,ruby-pry)
11761 ("ruby-rake-compiler" ,ruby-rake-compiler)))
11762 (synopsis "Ruby bindings to the libgit2 linkable C Git library")
11763 (description "Rugged is a library for accessing libgit2 in Ruby. It gives
11764 you the speed and portability of libgit2 with the beauty of the Ruby
11766 (license license:expat)))