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 ng0 <ng0@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages ruby)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages base)
43 #:use-module (gnu packages bison)
44 #:use-module (gnu packages check)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages crypto)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages dbm)
49 #:use-module (gnu packages rails)
50 #:use-module (gnu packages readline)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages java)
53 #:use-module (gnu packages libffi)
54 #:use-module (gnu packages libidn)
55 #:use-module (gnu packages linux)
56 #:use-module (gnu packages lsof)
57 #:use-module (gnu packages maths)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages networking)
60 #:use-module (gnu packages node)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-xyz)
63 #:use-module (gnu packages ragel)
64 #:use-module (gnu packages rsync)
65 #:use-module (gnu packages sqlite)
66 #:use-module (gnu packages tls)
67 #:use-module (gnu packages version-control)
68 #:use-module (guix packages)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module (guix utils)
72 #:use-module (guix build-system gnu)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages web)
75 #:use-module (guix build-system ruby)
76 #:use-module ((srfi srfi-1) #:select (alist-delete)))
85 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
86 (version-major+minor version)
87 "/ruby-" version ".tar.xz"))
90 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
91 (modules '((guix build utils)))
93 ;; Remove bundled libffi
94 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
96 (build-system gnu-build-system)
98 `(#:test-target "test"
99 #:configure-flags '("--enable-shared") ; dynamic linking
101 (modify-phases %standard-phases
102 (add-before 'configure 'replace-bin-sh-and-remove-libffi
104 (substitute* '("Makefile.in"
109 "test/rubygems/test_gem_ext_configure_builder.rb"
110 "test/rdoc/test_rdoc_parser.rb"
111 "test/ruby/test_rubyoptions.rb"
112 "test/ruby/test_process.rb"
113 "test/ruby/test_system.rb"
115 (("/bin/sh") (which "sh")))
118 `(("readline" ,readline)
125 (list (search-path-specification
126 (variable "GEM_PATH")
127 (files (list (string-append "lib/ruby/vendor_ruby"))))))
128 (synopsis "Programming language interpreter")
129 (description "Ruby is a dynamic object-oriented programming language with
130 a focus on simplicity and productivity.")
131 (home-page "https://www.ruby-lang.org")
132 (license license:ruby)))
134 (define-public ruby-2.5
141 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
142 (version-major+minor version)
143 "/ruby-" version ".tar.xz"))
146 "159zka4sbx1p4ayxqi7a5ybbzxvn3n5mivrz4d1damw9ypl70610"))
147 (modules '((guix build utils)))
149 ;; Remove bundled libffi
150 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
153 (define-public ruby-2.4
160 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
161 (version-major+minor version)
162 "/ruby-" version ".tar.xz"))
165 "0546ymj2h3iai679fvx17bb2hksrqyhh22llxgz8fwggac100khc"))
166 (modules '((guix build utils)))
168 ;; Remove bundled libffi
169 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
172 (define-public ruby-2.3
179 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
180 (version-major+minor version)
181 "/ruby-" version ".tar.xz"))
184 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
185 (modules '((guix build utils)))
187 ;; Remove bundled libffi
188 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
199 (url "https://github.com/mruby/mruby.git")
201 (file-name (git-file-name name version))
204 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
205 (build-system gnu-build-system)
207 `(#:test-target "test"
209 (modify-phases %standard-phases
211 (add-after 'unpack 'enable-verbose-tests
213 (substitute* "Makefile"
214 (("ruby ./minirake" m)
215 (string-append m " --verbose")))
217 (add-after 'unpack 'disable-broken-tests
219 (substitute* "mrbgems/mruby-io/test/io.rb"
220 (("assert\\('IO.popen.+$" m)
221 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
222 (("assert\\('IO#isatty.+$" m)
223 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
224 ;; This one is really weird. The *expected* output is all wrong.
225 (("assert\\('`cmd`.*" m)
226 (string-append m "skip \"Disable for Guix\"\n"))
228 (string-append (which "echo") " foo")))
230 ;; There is no install target
232 (lambda* (#:key outputs #:allow-other-keys)
233 (let* ((out (assoc-ref outputs "out"))
234 (bin (string-append out "/bin"))
235 (lib (string-append out "/lib")))
237 (copy-recursively "build/host/bin" bin)
239 (copy-recursively "build/host/lib" lib))
244 (home-page "https://github.com/mruby/mruby")
245 (synopsis "Lightweight Ruby")
246 (description "mruby is the lightweight implementation of the Ruby
247 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
248 embedded within your application.")
249 (license license:expat)))
251 (define-public ruby-commander
253 (name "ruby-commander")
258 (uri (rubygems-uri "commander" version))
261 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
262 (build-system ruby-build-system)
264 `(#:test-target "spec"
266 (modify-phases %standard-phases
267 ;; Don't run or require rubocop, the code linting tool, as this is a
269 (add-after 'unpack 'dont-run-rubocop
271 (substitute* "Rakefile"
273 ((".*RuboCop.*") ""))
276 `(("ruby-highline" ,ruby-highline)))
278 `(("bundler" ,bundler)
279 ("ruby-rspec-core" ,ruby-rspec-core)
280 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
281 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
282 ("ruby-simplecov" ,ruby-simplecov)))
283 (home-page "https://github.com/commander-rb/commander")
284 (synopsis "Library for building Ruby command-line executables")
286 "Commander aims to be a complete solution for Ruby command-line
287 executables. Commander bridges the gap between other terminal related
288 libraries (OptionParser, HighLine), while providing many new features, and an
290 (license license:expat)))
292 (define-public ruby-highline
294 (name "ruby-highline")
299 (uri (rubygems-uri "highline" version))
302 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
303 (build-system ruby-build-system)
305 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
307 `(("bundler" ,bundler)
308 ("ruby-code-statistics" ,ruby-code-statistics)))
310 "HighLine helps you build command-line interfaces")
312 "HighLine provides a high-level IO library that provides validation,
313 type conversion, and more for command-line interfaces. HighLine also includes
314 a menu system for providing multiple options to the user.")
315 (home-page "https://github.com/JEG2/highline")
316 (license (list license:gpl2 license:ruby))))
318 (define-public ruby-hoe
324 (uri (rubygems-uri "hoe" version))
327 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
328 (build-system ruby-build-system)
331 (modify-phases %standard-phases
332 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
333 ;; variable is set, so unset it for the duration of the tests.
335 ;; TestHoe#test_possibly_better
336 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
337 ;; Expected: 2019-11-12 00:00:00 UTC
338 ;; Actual: 1970-01-01 00:00:00 UTC
339 (add-before 'check 'unset-SOURCE-DATE-EPOCH
341 (unsetenv "SOURCE_DATE_EPOCH")
343 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
345 (setenv "SOURCE_DATE_EPOCH" "1")
347 (synopsis "Ruby project management helper")
349 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
350 maintain, and release projects and includes a dynamic plug-in system allowing
351 for easy extensibility. Hoe ships with plug-ins for all the usual project
352 tasks including rdoc generation, testing, packaging, deployment, and
354 (home-page "https://www.zenspider.com/projects/hoe.html")
355 (license license:expat)))
357 (define-public ruby-rake-compiler
359 (name "ruby-rake-compiler")
363 (uri (rubygems-uri "rake-compiler" version))
366 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
367 (build-system ruby-build-system)
369 '(#:tests? #f)) ; needs cucumber
370 (synopsis "Building and packaging helper for Ruby native extensions")
371 (description "Rake-compiler provides a framework for building and
372 packaging native C and Java extensions in Ruby.")
373 (home-page "https://github.com/rake-compiler/rake-compiler")
374 (license license:expat)))
376 (define-public ruby-rsync
383 (uri (rubygems-uri "rsync" version))
386 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
387 (build-system ruby-build-system)
389 '(#:test-target "spec"
391 (modify-phases %standard-phases
392 (add-after 'unpack 'remove-coveralls-requirement
394 (substitute* "spec/spec_helper.rb"
395 (("require 'coveralls'") "")
396 (("Coveralls.wear!") ""))
399 `(("bundler" ,bundler)
401 ("ruby-rspec-core" ,ruby-rspec-core)
402 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
403 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
404 (home-page "https://github.com/jbussdieker/ruby-rsync")
405 (synopsis "Ruby wrapper around rsync")
407 "Ruby Rsync is a Ruby library that can synchronize files between remote
408 hosts by wrapping the @file{rsync} binary.")
409 (license license:expat)))
411 (define-public ruby-i18n
417 (uri (rubygems-uri "i18n" version))
420 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
421 (build-system ruby-build-system)
423 '(#:tests? #f)) ; no tests
424 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
425 (synopsis "Internationalization library for Ruby")
426 (description "Ruby i18n is an internationalization and localization
427 solution for Ruby programs. It features translation and localization,
428 interpolation of values to translations, pluralization, customizable
429 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
430 translation data, custom key/scope separator, custom exception handlers, and
431 an extensible architecture with a swappable backend.")
432 (home-page "https://github.com/ruby-i18n/i18n")
433 (license license:expat)))
435 (define-public ruby-iruby
442 (uri (rubygems-uri "iruby" version))
445 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
446 (build-system ruby-build-system)
448 ;; TODO: Tests currently fail.
450 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
453 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
456 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
459 (modify-phases %standard-phases
460 (add-after 'unpack 'patch-ipython
461 (lambda* (#:key inputs #:allow-other-keys)
462 (substitute* "lib/iruby/command.rb"
466 (assoc-ref inputs "python-ipython")
468 (("Kernel\\.exec\\('")
471 (assoc-ref inputs "python-ipython")
475 `(("python-ipython" ,python-ipython)))
477 `(("ruby-bond" ,ruby-bond)
478 ("ruby-data_uri" ,ruby-data_uri)
479 ("ruby-mimemagic" ,ruby-mimemagic)
480 ("ruby-multi-json" ,ruby-multi-json)
481 ("ruby-cztop" ,ruby-cztop)
483 ("ruby-pry" ,ruby-pry)))
484 (synopsis "Ruby kernel for Jupyter/IPython")
486 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
488 (home-page "https://github.com/SciRuby/iruby")
489 (license license:expat)))
491 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
492 ;; dependencies use RSpec for their test suites! To avoid these circular
493 ;; dependencies, we disable tests for all of the RSpec-related packages.
494 (define-public ruby-rspec-support
496 (name "ruby-rspec-support")
500 (uri (rubygems-uri "rspec-support" version))
503 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
504 (build-system ruby-build-system)
506 '(#:tests? #f)) ; avoid dependency cycles
507 (synopsis "RSpec support library")
508 (description "Support utilities for RSpec gems.")
509 (home-page "https://github.com/rspec/rspec-support")
510 (license license:expat)))
512 (define-public ruby-rspec-core
514 (name "ruby-rspec-core")
518 (uri (rubygems-uri "rspec-core" version))
521 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
522 (build-system ruby-build-system)
524 '(#:tests? #f)) ; avoid dependency cycles
526 `(("ruby-rspec-support" ,ruby-rspec-support)))
527 (synopsis "RSpec core library")
528 (description "Rspec-core provides the RSpec test runner and example
530 (home-page "https://github.com/rspec/rspec-core")
531 (license license:expat)))
533 (define-public ruby-rspec-core-2
534 (package (inherit ruby-rspec-core)
538 (uri (rubygems-uri "rspec-core" version))
541 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
542 (propagated-inputs `())))
544 (define-public ruby-diff-lcs
546 (name "ruby-diff-lcs")
550 (uri (rubygems-uri "diff-lcs" version))
553 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
554 (build-system ruby-build-system)
556 '(#:tests? #f)) ; avoid dependency cycles
557 (synopsis "Compute the difference between two Enumerable sequences")
558 (description "Diff::LCS computes the difference between two Enumerable
559 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
560 It includes utilities to create a simple HTML diff output format and a
561 standard diff-like tool.")
562 (home-page "https://github.com/halostatue/diff-lcs")
563 (license license:expat)))
565 (define-public ruby-rspec-expectations
567 (name "ruby-rspec-expectations")
571 (uri (rubygems-uri "rspec-expectations" version))
574 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
575 (build-system ruby-build-system)
577 '(#:tests? #f)) ; avoid dependency cycles
579 `(("ruby-rspec-support" ,ruby-rspec-support)
580 ("ruby-diff-lcs" ,ruby-diff-lcs)))
581 (synopsis "RSpec expectations library")
582 (description "Rspec-expectations provides a simple API to express expected
583 outcomes of a code example.")
584 (home-page "https://github.com/rspec/rspec-expectations")
585 (license license:expat)))
587 (define-public ruby-rspec-expectations-2
588 (package (inherit ruby-rspec-expectations)
592 (uri (rubygems-uri "rspec-expectations" version))
595 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
597 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
599 (define-public ruby-rspec-its
601 (name "ruby-rspec-its")
607 (url "https://github.com/rspec/rspec-its.git")
608 (commit (string-append "v" version))))
609 (file-name (git-file-name name version))
612 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
613 (build-system ruby-build-system)
615 `(#:test-target "spec"
617 (modify-phases %standard-phases
618 (add-after 'unpack 'dont-install-gems-from-gemfile
620 (substitute* "Gemfile"
621 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
624 (add-before 'build 'update-ffi-in-gemfile
626 (substitute* "Gemfile"
627 ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'"))
629 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
631 (substitute* "rspec-its.gemspec"
632 (("rake.*") "rake'\n")
633 (("spec.add_development_dependency 'cucumber'.*")
634 "spec.add_development_dependency 'cucumber'\n")
635 (("bundler.*") "bundler'\n")
636 (("\"aruba.*") "'aruba'\n"))
639 `(("ruby-rspec-core" ,ruby-rspec-core)
640 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
642 `(("bundler" ,bundler)
643 ("ruby-cucumber" ,ruby-cucumber)
644 ("ruby-ffi" ,ruby-ffi)
645 ("ruby-aruba" ,ruby-aruba)))
646 (synopsis "RSpec extension that provides the @code{its} method")
648 "RSpec::Its provides the its method as a short-hand to specify the expected
649 value of an attribute. For example, one can use @code{its(:size)\\{should
651 (home-page "https://github.com/rspec/rspec-its")
652 (license license:expat)))
654 (define-public ruby-rspec-mocks
656 (name "ruby-rspec-mocks")
660 (uri (rubygems-uri "rspec-mocks" version))
663 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
664 (build-system ruby-build-system)
666 '(#:tests? #f)) ; avoid dependency cycles
668 `(("ruby-rspec-support" ,ruby-rspec-support)
669 ("ruby-diff-lcs" ,ruby-diff-lcs)))
670 (synopsis "RSpec stubbing and mocking library")
671 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
672 support for stubbing and mocking.")
673 (home-page "https://github.com/rspec/rspec-mocks")
674 (license license:expat)))
676 (define-public ruby-rspec-mocks-2
677 (package (inherit ruby-rspec-mocks)
681 (uri (rubygems-uri "rspec-mocks" version))
684 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
686 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
688 (define-public ruby-rspec-rerun
690 (name "ruby-rspec-rerun")
695 (uri (rubygems-uri "rspec-rerun" version))
698 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
699 (build-system ruby-build-system)
701 '(;; No included tests
703 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
704 (synopsis "Track failed RSpec tests to re-run them")
706 "This package provides an automated way to track, and then re-run failed
708 (home-page "https://github.com/dblock/rspec-rerun")
709 (license license:expat)))
711 (define-public ruby-rspec-wait
713 (name "ruby-rspec-wait")
718 (uri (rubygems-uri "rspec-wait" version))
721 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
722 (build-system ruby-build-system)
725 (modify-phases %standard-phases
728 (invoke "rake" "spec"))))))
730 `(("bundler" ,bundler)))
732 `(("ruby-rspec" ,ruby-rspec)))
733 (home-page "https://github.com/laserlemon/rspec-wait")
734 (synopsis "Wait for conditions in RSpec")
736 "RSpec::Wait strives to make it easier to test asynchronous or slow
738 (license license:expat)))
740 (define-public ruby-rspec
746 (uri (rubygems-uri "rspec" version))
749 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
750 (build-system ruby-build-system)
752 '(#:tests? #f)) ; avoid dependency cycles
754 `(("ruby-rspec-core" ,ruby-rspec-core)
755 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
756 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
757 (synopsis "Behavior-driven development framework for Ruby")
758 (description "RSpec is a behavior-driven development (BDD) framework for
759 Ruby. This meta-package includes the RSpec test runner, along with the
760 expectations and mocks frameworks.")
761 (home-page "http://rspec.info/")
762 (license license:expat)))
764 (define-public ruby-rspec-2
765 (package (inherit ruby-rspec)
769 (uri (rubygems-uri "rspec" version))
772 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
774 `(("ruby-rspec-core" ,ruby-rspec-core-2)
775 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
776 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
778 ;; Bundler is yet another source of circular dependencies, so we must disable
779 ;; its test suite as well.
780 (define-public bundler
786 (uri (rubygems-uri "bundler" version))
789 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
790 (build-system ruby-build-system)
792 '(#:tests? #f)) ; avoid dependency cycles
793 (synopsis "Ruby gem bundler")
794 (description "Bundler automatically downloads and installs a list of gems
795 specified in a \"Gemfile\", as well as their dependencies.")
796 (home-page "https://bundler.io/")
797 (license license:expat)))
799 (define-public ruby-builder
801 (name "ruby-builder")
805 (uri (rubygems-uri "builder" version))
808 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
809 (build-system ruby-build-system)
812 (modify-phases %standard-phases
813 (add-after 'unpack 'do-not-use-rvm
815 (substitute* "rakelib/tags.rake"
816 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
818 (synopsis "Ruby library to create structured data")
819 (description "Builder provides a number of builder objects that make it
820 easy to create structured data. Currently the following builder objects are
821 supported: XML Markup and XML Events.")
822 (home-page "https://github.com/jimweirich/builder")
823 (license license:expat)))
825 (define-public ruby-bump
832 (uri (rubygems-uri "bump" version))
835 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
836 (build-system ruby-build-system)
838 '(;; No included tests
840 (synopsis "Tool for working with Rubygems")
842 "Bump provides commands to manage Rubygem versioning, updating to the
843 next patch version for example.")
844 (home-page "https://github.com/gregorym/bump")
845 (license license:expat)))
847 (define-public ruby-rjb
853 (uri (rubygems-uri "rjb" version))
856 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
857 (build-system ruby-build-system)
859 `(#:tests? #f ; no rakefile
861 (modify-phases %standard-phases
862 (add-before 'build 'set-java-home
863 (lambda* (#:key inputs #:allow-other-keys)
864 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
867 `(("jdk" ,icedtea "jdk")))
868 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
869 (description "RJB is a bridge program that connects Ruby and Java via the
870 Java Native Interface.")
871 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
872 (license license:lgpl2.1+)))
874 (define-public ruby-log4r
881 (uri (rubygems-uri "log4r" version))
884 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
885 (build-system ruby-build-system)
887 '(#:tests? #f)) ; no Rakefile in gem
888 (synopsis "Flexible logging library for Ruby")
889 (description "Comprehensive and flexible logging library written
890 in Ruby for use in Ruby programs. It features a hierarchical logging
891 system of any number of levels, custom level names, logger
892 inheritance, multiple output destinations per log event, execution
893 tracing, custom formatting, thread safteyness, XML and YAML
894 configuration, and more.")
895 (home-page "http://log4r.rubyforge.org/")
896 (license license:bsd-3)))
898 (define-public ruby-atoulme-antwrap
900 (name "ruby-atoulme-antwrap")
904 (uri (rubygems-uri "atoulme-Antwrap" version))
907 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
908 (build-system ruby-build-system)
909 ;; Test data required for most of the tests are not included.
910 (arguments `(#:tests? #f))
912 `(("ruby-hoe" ,ruby-hoe)))
914 `(("ruby-rjb" ,ruby-rjb)))
915 (synopsis "Ruby wrapper for the Ant build tool")
916 (description "Antwrap is a Ruby module that wraps the Apache Ant build
917 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
919 (home-page "http://rubyforge.org/projects/antwrap/")
920 (license license:expat)))
922 (define-public ruby-atoulme-saikuro
924 (name "ruby-atoulme-saikuro")
928 (uri (rubygems-uri "atoulme-Saikuro" version))
931 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
932 (build-system ruby-build-system)
933 ;; FIXME: There are no unit tests. The tests are demonstrations of the
935 (arguments `(#:tests? #f))
936 (synopsis "Cyclomatic complexity analyzer")
937 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
938 given Ruby source code Saikuro will generate a report listing the cyclomatic
939 complexity of each method found. In addition, Saikuro counts the number of
940 lines per method and can generate a listing of the number of tokens on each
942 (home-page "http://www.github.com/atoulme/Saikuro")
943 ;; File headers contain the BSD-3 license and the README.rdoc says that
944 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
945 ;; of the Expat license.
946 (license license:bsd-3)))
948 (define-public ruby-asciidoctor
950 (name "ruby-asciidoctor")
955 (uri (rubygems-uri "asciidoctor" version))
958 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
959 (build-system ruby-build-system)
961 `(#:test-target "test:all"
963 (modify-phases %standard-phases
964 (add-before 'check 'remove-circular-tests
966 ;; Remove tests that require circular dependencies to load or pass.
967 (delete-file "test/invoker_test.rb")
968 (delete-file "test/converter_test.rb")
969 (delete-file "test/options_test.rb")
972 `(("ruby-minitest" ,ruby-minitest)
973 ("ruby-nokogiri" ,ruby-nokogiri)
974 ("ruby-asciimath" ,ruby-asciimath)
975 ("ruby-coderay" ,ruby-coderay)))
976 (synopsis "Converter from AsciiDoc content to other formats")
978 "Asciidoctor is a text processor and publishing toolchain for converting
979 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
980 (home-page "https://asciidoctor.org")
981 (license license:expat)))
983 (define-public ruby-ast
990 (uri (rubygems-uri "ast" version))
993 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
994 (build-system ruby-build-system)
997 (modify-phases %standard-phases
998 (add-after 'unpack 'remove-coveralls-requirement
1000 (substitute* "test/helper.rb"
1001 (("require 'coveralls'") "")
1002 (("Coveralls::SimpleCov::Formatter") ""))
1004 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1006 (substitute* "ast.gemspec"
1007 ((".*coveralls.*") "\n")
1008 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1009 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1010 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1013 `(("bundler" ,bundler)
1014 ("ruby-simplecov" ,ruby-simplecov)
1015 ("ruby-json-pure" ,ruby-json-pure)
1016 ("ruby-mime-times" ,ruby-mime-types)
1017 ("ruby-yard" ,ruby-yard)
1018 ("ruby-kramdown" ,ruby-kramdown)
1019 ("ruby-rest-client" ,ruby-rest-client)
1020 ("ruby-bacon" ,ruby-bacon)
1021 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1022 ("ruby-racc" ,ruby-racc)))
1023 (synopsis "Library for working with Abstract Syntax Trees")
1025 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1026 It does this through immutable data structures.")
1027 (home-page "https://whitequark.github.io/ast/")
1028 (license license:expat)))
1030 (define-public ruby-sporkmonger-rack-mount
1031 ;; Testing the addressable gem requires a newer commit than that released, so
1032 ;; use an up to date version.
1033 (let ((revision "1")
1034 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1036 (name "ruby-sporkmonger-rack-mount")
1037 (version (git-version "0.8.3" revision commit))
1041 (url "https://github.com/sporkmonger/rack-mount.git")
1043 (file-name (git-file-name name version))
1046 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1047 (build-system ruby-build-system)
1049 ;; Tests currently fail so disable them.
1050 ;; https://github.com/sporkmonger/rack-mount/pull/1
1052 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1053 (synopsis "Stackable dynamic tree based Rack router")
1055 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1056 continue trying routes if the response returns pass. This allows multiple
1057 routes to be nested or stacked on top of each other.")
1058 (home-page "https://github.com/sporkmonger/rack-mount")
1059 (license license:expat))))
1061 (define-public ruby-ci-reporter
1063 (name "ruby-ci-reporter")
1067 (uri (rubygems-uri "ci_reporter" version))
1070 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1071 (build-system ruby-build-system)
1073 `(#:test-target "rspec"))
1075 `(("ruby-builder" ,ruby-builder)))
1077 `(("bundler" ,bundler)
1078 ("ruby-rspec" ,ruby-rspec)))
1079 (synopsis "Generate XML reports of runs test")
1081 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1082 you to generate XML reports of your test runs. The resulting files can be
1083 read by a continuous integration system that understands Ant's JUnit report
1085 (home-page "https://github.com/nicksieger/ci_reporter")
1086 (license license:expat)))
1088 (define-public ruby-contracts
1090 (name "ruby-contracts")
1095 (uri (rubygems-uri "contracts" version))
1098 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1099 (build-system ruby-build-system)
1101 '(#:test-target "spec"
1103 (modify-phases %standard-phases
1104 ;; Don't run or require rubocop, the code linting tool, as this is a
1106 (add-after 'unpack 'dont-run-rubocop
1108 (substitute* "Rakefile"
1109 ((".*rubocop.*") "")
1110 ((".*RuboCop.*") ""))
1113 `(("ruby-rspec" ,ruby-rspec)))
1114 (synopsis "Method contracts for Ruby")
1116 "This library provides contracts for Ruby. A contract describes the
1117 correct inputs and output for a method, and will raise an error if a incorrect
1119 (home-page "https://github.com/egonSchiele/contracts.ruby")
1120 (license license:bsd-2)))
1122 (define-public ruby-crack
1129 (uri (rubygems-uri "crack" version))
1132 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1133 (build-system ruby-build-system)
1136 (modify-phases %standard-phases
1138 (lambda* (#:key tests? #:allow-other-keys)
1140 (for-each (lambda (file)
1141 (display file)(display "\n")
1142 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1143 (find-files "test" ".*rb$")))
1146 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1147 (synopsis "Simple JSON and XML parsing for Ruby")
1149 "@code{crack} provides really simple JSON and XML parsing, extracted from
1150 code in Merb and Rails.")
1151 (home-page "https://github.com/jnunemaker/crack")
1152 (license license:expat)))
1154 (define-public ruby-cliver
1156 (name "ruby-cliver")
1161 (uri (rubygems-uri "cliver" version))
1164 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1165 (build-system ruby-build-system)
1168 (modify-phases %standard-phases
1169 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1170 ;; would be nice, but the tests look to be incompatible:
1172 ;; NoMethodError: undefined method `last_comment'
1174 (lambda* (#:key tests? #:allow-other-keys)
1179 `(("bundler" ,bundler)
1180 ("ruby-rspec" ,ruby-rspec-2)))
1181 (synopsis "Assertions for command-line dependencies in Ruby")
1183 "@code{cliver} provides a way to detect missing command-line
1184 dependencies, including versions.")
1185 (home-page "https://github.com/yaauie/cliver")
1186 (license license:expat)))
1188 (define-public ruby-czmq-ffi-gen
1190 (name "ruby-czmq-ffi-gen")
1195 (uri (rubygems-uri "czmq-ffi-gen" version))
1198 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1199 (build-system ruby-build-system)
1201 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1203 (modify-phases %standard-phases
1204 (add-after 'unpack 'patch-lib_dirs
1205 (lambda* (#:key inputs #:allow-other-keys)
1206 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1207 (("lib\\_dirs = \\[.*\\]")
1208 (string-append "lib_dirs = ['"
1209 (assoc-ref inputs "czmq") "/lib"
1211 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1212 (("lib\\_dirs = \\[.*\\]")
1213 (string-append "lib_dirs = ['"
1214 (assoc-ref inputs "zeromq") "/lib"
1217 `(("zeromq" ,zeromq)
1219 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1220 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1222 "These Ruby bindings are not intended to be directly used, but rather
1223 used by higher level bindings like those provided by CZTop.")
1225 "https://github.com/paddor/czmq-ffi-gen")
1226 (license license:isc)))
1228 (define-public ruby-cztop
1235 (uri (rubygems-uri "cztop" version))
1238 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1239 (build-system ruby-build-system)
1241 '(#:test-target "spec"
1243 (modify-phases %standard-phases
1244 (add-after 'unpack 'patch-lib_paths
1245 (lambda* (#:key inputs #:allow-other-keys)
1246 (substitute* "lib/cztop/poller/zmq.rb"
1247 (("lib\\_paths = \\[.*\\]")
1248 (string-append "lib_paths = ['"
1249 (assoc-ref inputs "zeromq") "/lib"
1252 `(("bundler" ,bundler)
1253 ("ruby-rspec" ,ruby-rspec)))
1255 `(("zeromq" ,zeromq)))
1257 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1258 (synopsis "CZMQ Ruby bindings")
1260 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1261 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1262 support for security mechanisms.")
1263 (home-page "https://github.com/paddor/cztop")
1264 (license license:isc)))
1266 (define-public ruby-saikuro-treemap
1268 (name "ruby-saikuro-treemap")
1272 (uri (rubygems-uri "saikuro_treemap" version))
1275 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1276 (build-system ruby-build-system)
1277 ;; Some of the tests fail because the generated JSON has keys in a
1278 ;; different order. This is a problem with the test suite rather than any
1279 ;; of the involved libraries.
1280 (arguments `(#:tests? #f))
1282 `(("ruby-json-pure" ,ruby-json-pure)
1283 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1284 (synopsis "Generate complexity treemap based on saikuro analysis")
1286 "This gem generates a treemap showing the complexity of Ruby code on
1287 which it is run. It uses Saikuro under the covers to analyze Ruby code
1289 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1290 (license license:expat)))
1292 (define-public ruby-oauth2
1294 (name "ruby-oauth2")
1299 (uri (rubygems-uri "oauth2" version))
1301 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1302 (build-system ruby-build-system)
1304 '(#:tests? #f)) ; no included tests
1306 `(("ruby-faraday" ,ruby-faraday)
1307 ("ruby-jwt" ,ruby-jwt)
1308 ("ruby-multi-json" ,ruby-multi-json)
1309 ("ruby-multi-xml" ,ruby-multi-xml)
1310 ("ruby-rack" ,ruby-rack)))
1311 (synopsis "Ruby wrapper for the OAuth 2.0")
1313 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1314 with a similar style to the original OAuth spec.")
1315 (home-page "https://github.com/oauth-xx/oauth2")
1316 (license license:expat)))
1318 (define-public ruby-omniauth
1320 (name "ruby-omniauth")
1325 (uri (rubygems-uri "omniauth" version))
1328 "1p16h1rp8by05k8gfw17xjhgwp60dk8qmj1xalv1n23kmxfsxb1x"))))
1329 (build-system ruby-build-system)
1331 '(#:tests? #f)) ; No included tests
1333 `(("ruby-hashie" ,ruby-hashie)
1334 ("ruby-rack" ,ruby-rack)))
1335 (synopsis "Generalized Rack framework for multiple-provider authentication")
1337 "This package provides a generalized Rack framework for multiple-provider
1339 (home-page "https://github.com/omniauth/omniauth")
1340 (license license:expat)))
1342 (define-public ruby-omniauth-oauth2
1344 (name "ruby-omniauth-oauth2")
1349 (uri (rubygems-uri "omniauth-oauth2" version))
1352 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1353 (build-system ruby-build-system)
1356 (modify-phases %standard-phases
1357 (add-after 'unpack 'remove-unnecessary-dependencies
1359 ;; The coveralls gem submits coverage information to an online
1360 ;; service, and is unnecessary when running the tests
1361 (substitute* "Gemfile"
1362 ((".*coveralls\"") ""))
1363 (substitute* "spec/helper.rb"
1364 (("require \"coveralls\"") "")
1365 (("Coveralls::SimpleCov::Formatter") ""))
1368 `(("ruby-oauth2" ,ruby-oauth2)
1369 ("ruby-omniauth" ,ruby-omniauth)))
1371 `(("bundler" ,bundler)
1372 ("ruby-rspec" ,ruby-rspec)
1373 ("ruby-simplecov" ,ruby-simplecov)
1374 ("ruby-rack-test" ,ruby-rack-test)
1375 ("ruby-webmock" ,ruby-webmock-2)))
1376 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1378 "This library provides a generic OAuth2 strategy for OmniAuth. It
1379 doesn't provide a way to gather user information, so should be used as a
1380 building block for authentication strategies.")
1381 (home-page "https://github.com/omniauth/omniauth-oauth2")
1382 (license license:expat)))
1384 (define-public ruby-open4
1391 (uri (rubygems-uri "open4" version))
1394 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1395 (build-system ruby-build-system)
1398 (modify-phases %standard-phases
1399 (add-after 'unpack 'patch
1401 (substitute* "rakefile"
1402 ;; Update the Rakefile so it works
1403 (("-rubygems") "-rrubygems")
1404 (("Config") "RbConfig"))
1406 (add-before 'check 'set-LIB
1408 ;; This is used in the rakefile when running the tests
1409 (setenv "LIB" "open4")
1411 (synopsis "Open child processes from Ruby and manage them easily")
1413 "@code{Open4} is a Ruby library to run child processes and manage their
1415 (home-page "https://github.com/ahoward/open4")
1416 (license license:ruby)))
1418 (define-public ruby-options
1420 (name "ruby-options")
1425 (uri (rubygems-uri "options" version))
1428 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1429 (build-system ruby-build-system)
1431 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1433 (modify-phases %standard-phases
1434 (add-before 'check 'set-LIB
1436 ;; This is used in the Rakefile, and setting it avoids an issue
1437 ;; with running the tests.
1438 (setenv "LIB" "options")
1440 (synopsis "Ruby library to parse options from *args cleanly")
1442 "The @code{options} library helps with parsing keyword options in Ruby
1444 (home-page "https://github.com/ahoward/options")
1445 (license license:ruby)))
1447 (define-public ruby-erubi
1454 (uri (rubygems-uri "erubi" version))
1457 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1458 (build-system ruby-build-system)
1459 (synopsis "ERB template engine for Ruby")
1461 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1463 (home-page "https://github.com/jeremyevans/erubi")
1464 (license license:expat)))
1466 (define-public ruby-erubis
1468 (name "ruby-erubis")
1473 (uri (rubygems-uri "erubis" version))
1476 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1477 (build-system ruby-build-system)
1479 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1480 (synopsis "Implementation of embedded Ruby (eRuby)")
1482 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1483 features such as multi-language support, auto escaping, auto trimming spaces
1484 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1486 (home-page "http://www.kuwata-lab.com/erubis/")
1487 (license license:expat)))
1489 (define-public ruby-execjs
1491 (name "ruby-execjs")
1495 ;; fetch from github as the gem does not contain testing code
1498 (url "https://github.com/rails/execjs.git")
1499 (commit (string-append "v" version))))
1500 (file-name (git-file-name name version))
1503 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1504 (build-system ruby-build-system)
1506 `(("bundler" ,bundler)
1507 ;; The test suite tests all the available backends. Currenly, this just
1508 ;; means the node backend.
1510 ;; PASSED: test:node
1511 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1512 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1514 (synopsis "Run JavaScript code from Ruby")
1516 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1517 runtime to evaluate your JavaScript program, then returns the result to you as
1519 (home-page "https://github.com/rails/execjs")
1520 (license license:expat)))
1522 (define-public ruby-orderedhash
1524 (name "ruby-orderedhash")
1528 (uri (rubygems-uri "orderedhash" version))
1531 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1532 (build-system ruby-build-system)
1534 '(#:tests? #f)) ; no test suite
1535 (synopsis "Ruby library providing an order-preserving hash")
1536 (description "Orderedhash is a Ruby library providing a hash
1537 implementation that preserves the order of items and features some array-like
1539 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1540 (license license:public-domain)))
1542 (define-public ruby-libxml
1544 (name "ruby-libxml")
1549 (uri (rubygems-uri "libxml-ruby" version))
1552 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1553 (build-system ruby-build-system)
1556 ("libxml2" ,libxml2)))
1558 '(#:tests? #f ; test suite hangs for unknown reason
1561 (string-append "--with-xml2-include="
1562 (assoc-ref %build-inputs "libxml2")
1563 "/include/libxml2" ))))
1564 (synopsis "Ruby bindings for GNOME Libxml2")
1565 (description "The Libxml-Ruby project provides Ruby language bindings for
1566 the GNOME Libxml2 XML toolkit.")
1567 (home-page "https://xml4r.github.com/libxml-ruby")
1568 (license license:expat)))
1570 (define-public ruby-lino
1577 (uri (rubygems-uri "lino" version))
1580 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1581 (build-system ruby-build-system)
1583 '(#:tests? #f)) ; No included tests
1585 `(("ruby-hamster" ,ruby-hamster)
1586 ("ruby-open4" ,ruby-open4)))
1587 (synopsis "Build and execute commands in Ruby")
1589 "@code{Lino} provides an interface to run external commands. It provides
1590 an interface to add options as well as managing the standard input, output and
1592 (home-page "https://github.com/tobyclemson/lino")
1593 (license license:expat)))
1595 (define-public ruby-xml-simple
1597 (name "ruby-xml-simple")
1601 (uri (rubygems-uri "xml-simple" version))
1604 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1605 (build-system ruby-build-system)
1607 '(#:tests? #f)) ; no test suite
1608 (synopsis "Simple Ruby library for XML processing")
1609 (description "This library provides a simple API for XML processing in
1611 (home-page "https://github.com/maik/xml-simple")
1612 (license license:ruby)))
1614 (define-public ruby-thor
1620 (uri (rubygems-uri "thor" version))
1623 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1624 (build-system ruby-build-system)
1626 '(#:tests? #f)) ; no test suite
1628 `(("bundler" ,bundler)))
1629 (synopsis "Ruby toolkit for building command-line interfaces")
1630 (description "Thor is a toolkit for building powerful command-line
1632 (home-page "http://whatisthor.com/")
1633 (license license:expat)))
1635 (define-public ruby-lumberjack
1637 (name "ruby-lumberjack")
1641 (uri (rubygems-uri "lumberjack" version))
1644 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1645 (build-system ruby-build-system)
1647 `(("ruby-rspec" ,ruby-rspec)
1648 ("ruby-timecop" ,ruby-timecop)))
1649 (synopsis "Logging utility library for Ruby")
1650 (description "Lumberjack is a simple logging utility that can be a drop in
1651 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1652 for automatically rolling log files even with multiple processes writing the
1654 (home-page "https://github.com/bdurand/lumberjack")
1655 (license license:expat)))
1657 (define-public ruby-rbnacl
1659 (name "ruby-rbnacl")
1664 (uri (rubygems-uri "rbnacl" version))
1667 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1668 (build-system ruby-build-system)
1671 (modify-phases %standard-phases
1672 (add-after 'unpack 'remove-unnecessary-dependencies
1674 ;; Coveralls relates to a network service, and Rubocop to code
1675 ;; linting and both are unnecessary to run the tests
1676 (substitute* "Gemfile"
1677 ((".*rubocop.*") "\n")
1678 ((".*guard-rspec.*") "\n")
1679 ((".*coveralls.*") "\n"))
1680 (substitute* "spec/spec_helper.rb"
1681 (("require \"coveralls\"") "")
1682 (("Coveralls.wear!") ""))
1684 (add-after 'unpack 'use-libsodium-from-store
1685 (lambda* (#:key inputs #:allow-other-keys)
1686 (substitute* '("lib/rbnacl/init.rb"
1687 "lib/rbnacl/sodium.rb")
1688 (("ffi_lib \\[.+\\]")
1689 (string-append "ffi_lib [\""
1690 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1693 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1695 (lambda* (#:key tests? #:allow-other-keys)
1700 `(("ruby-ffi" ,ruby-ffi)))
1702 `(("libsodium" ,libsodium)))
1704 `(("bundler" ,bundler)
1705 ("ruby-rspec" ,ruby-rspec)))
1706 (synopsis "Ruby FFI binding to libsodium")
1708 "This package provides Ruby FFI bindings to the Networking and
1709 Cryptography (NaCl) library, also known as libsodium. This provides a
1710 high-level toolkit for building cryptographic systems and protocols.")
1711 (home-page "https://github.com/crypto-rb/rbnacl")
1712 (license license:expat)))
1714 (define-public ruby-nenv
1720 (uri (rubygems-uri "nenv" version))
1723 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1724 (build-system ruby-build-system)
1726 `(#:tests? #f)) ; no tests included
1728 `(("ruby-rspec" ,ruby-rspec)
1729 ("bundler" ,bundler)))
1730 (synopsis "Ruby interface for modifying the environment")
1731 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1732 and inspect the environment.")
1733 (home-page "https://github.com/e2/nenv")
1734 (license license:expat)))
1736 (define-public ruby-permutation
1738 (name "ruby-permutation")
1742 (uri (rubygems-uri "permutation" version))
1745 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1746 (build-system ruby-build-system)
1749 (modify-phases %standard-phases
1750 (add-after 'unpack 'fix-rakefile
1752 (substitute* "Rakefile"
1753 (("require 'rake/gempackagetask'")
1754 "require 'rubygems/package_task'")
1755 (("include Config") ""))
1759 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1760 (synopsis "Library to perform operations with sequence permutations")
1761 (description "This package provides a Ruby library to perform different
1762 operations with permutations of sequences, such as strings and arrays.")
1763 (home-page "https://flori.github.io/permutation")
1764 (license license:gpl2))) ; GPL 2 only
1766 (define-public ruby-shellany
1768 (name "ruby-shellany")
1772 (uri (rubygems-uri "shellany" version))
1775 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1776 (build-system ruby-build-system)
1778 `(#:test-target "default"
1780 (modify-phases %standard-phases
1781 (add-after 'unpack 'fix-version-test
1783 (substitute* "spec/shellany_spec.rb"
1784 (("^RSpec") "require \"shellany\"\nRSpec"))
1787 `(("ruby-rspec" ,ruby-rspec)
1788 ("ruby-nenv" ,ruby-nenv)
1789 ("bundler" ,bundler)))
1790 (synopsis "Capture command output")
1791 (description "Shellany is a Ruby library providing functions to capture
1792 the output produced by running shell commands.")
1793 (home-page "https://rubygems.org/gems/shellany")
1794 (license license:expat)))
1796 (define-public ruby-notiffany
1798 (name "ruby-notiffany")
1802 (uri (rubygems-uri "notiffany" version))
1805 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
1806 (build-system ruby-build-system)
1807 ;; Tests are not included in the gem.
1808 (arguments `(#:tests? #f))
1810 `(("ruby-shellany" ,ruby-shellany)
1811 ("ruby-nenv" ,ruby-nenv)))
1813 `(("bundler" ,bundler)))
1814 (synopsis "Wrapper libray for notification libraries")
1815 (description "Notiffany is a Ruby wrapper libray for notification
1816 libraries such as Libnotify.")
1817 (home-page "https://github.com/guard/notiffany")
1818 (license license:expat)))
1820 (define-public ruby-formatador
1822 (name "ruby-formatador")
1826 (uri (rubygems-uri "formatador" version))
1829 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1830 (build-system ruby-build-system)
1831 ;; Circular dependency: Tests require ruby-shindo, which requires
1832 ;; ruby-formatador at runtime.
1833 (arguments `(#:tests? #f))
1834 (synopsis "Ruby library to format text on stdout")
1835 (description "Formatador is a Ruby library to format text printed to the
1836 standard output stream.")
1837 (home-page "https://github.com/geemus/formatador")
1838 (license license:expat)))
1840 (define-public ruby-fuubar
1842 (name "ruby-fuubar")
1846 ;; Fetch from the git repository, as the gem package doesn't include
1850 (url "https://github.com/thekompanee/fuubar.git")
1851 (commit (string-append "releases/v" version))))
1852 (file-name (git-file-name name version))
1855 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1856 (build-system ruby-build-system)
1858 '(;; TODO: Some tests fail, unsure why.
1859 ;; 21 examples, 7 failures
1862 (modify-phases %standard-phases
1863 (add-before 'build 'delete-certificate
1865 ;; Remove 's.cert_chain' as we do not build with a private key
1866 (substitute* "fuubar.gemspec"
1867 ((".*cert_chain.*") "")
1868 ((".*signing_key.*") ""))
1871 (lambda* (#:key tests? #:allow-other-keys)
1876 `(("bundler" ,bundler)))
1878 `(("ruby-rspec-core" ,ruby-rspec-core)
1879 ("ruby-progressbar" ,ruby-progressbar)))
1880 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1882 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1883 string of letters and dots as feedback. It also stops on the first test
1885 (home-page "https://github.com/thekompanee/fuubar")
1886 (license license:expat)))
1888 (define-public ruby-haml
1895 (uri (rubygems-uri "haml" version))
1898 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1899 (build-system ruby-build-system)
1901 '(#:tests? #f)) ; No included tests
1903 `(("ruby-tilt" ,ruby-tilt)
1904 ("ruby-temple" ,ruby-temple)))
1905 (synopsis "Haml is a Ruby library to generate HTML documents")
1907 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1908 HTML or XML that is designed to express the structure of documents using
1909 indentation rather than closing tags. It was originally envisioned as a
1910 plugin for Ruby on Rails, but it can function as a stand-alone templating
1912 (home-page "http://haml.info/")
1913 (license license:expat)))
1915 (define-public ruby-hamster
1917 (name "ruby-hamster")
1922 (uri (rubygems-uri "hamster" version))
1925 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1926 (build-system ruby-build-system)
1929 (modify-phases %standard-phases
1930 (add-after 'unpack 'remove-unnecessary-dependencies
1932 ;; pry is a debugging tool, and is unnecessary when running the
1934 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1935 (("require 'pry'") ""))
1936 (substitute* "spec/spec_helper.rb"
1937 (("require \"pry\"") "")
1938 ;; CodeClimate is an online service, and is unnecessary for
1939 ;; running the tests
1940 (("require \"codeclimate-test-reporter\"") "")
1941 (("CodeClimate.*\n") ""))
1943 ;; No Rakefile is included, so run rspec directly.
1945 (lambda* (#:key tests? #:allow-other-keys)
1950 `(("ruby-concurrent" ,ruby-concurrent)))
1952 `(("ruby-rspec" ,ruby-rspec)))
1953 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1955 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1956 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1957 immutable queue or stack).")
1958 (home-page "https://github.com/hamstergem/hamster")
1959 (license license:expat)))
1961 (define-public ruby-hashdiff
1963 (name "ruby-hashdiff")
1968 (uri (rubygems-uri "hashdiff" version))
1971 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1972 (build-system ruby-build-system)
1975 (modify-phases %standard-phases
1976 ;; Run tests directly via rspec to avoid Rake issue:
1977 ;; NoMethodError: undefined method `last_comment'
1979 (lambda* (#:key tests? #:allow-other-keys)
1984 `(("bundler" ,bundler)
1985 ("ruby-rspec" ,ruby-rspec-2)))
1986 (synopsis "HashDiff computes the smallest difference between two hashes")
1988 "HashDiff is a Ruby library to compute the smallest difference between
1990 (home-page "https://github.com/liufengyun/hashdiff")
1991 (license license:expat)))
1993 (define-public ruby-hydra
1995 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
1999 (version (git-version "0.0" revision commit))
2000 (home-page "https://github.com/hyphenation/hydra")
2003 (uri (git-reference (url home-page) (commit commit)))
2004 (file-name (git-file-name name version))
2007 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
2008 (build-system ruby-build-system)
2010 '(#:phases (modify-phases %standard-phases
2011 (add-after 'unpack 'make-files-writable
2013 (for-each make-file-writable (find-files "."))
2017 (invoke "rspec"))))))
2019 `(("ruby-rspec" ,ruby-rspec)))
2021 `(("ruby-byebug" ,ruby-byebug)))
2022 (synopsis "Ruby hyphenation patterns")
2024 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2025 (license license:expat))))
2027 (define-public ruby-shindo
2029 (name "ruby-shindo")
2033 (uri (rubygems-uri "shindo" version))
2036 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2037 (build-system ruby-build-system)
2039 `(#:test-target "shindo_tests"
2041 (modify-phases %standard-phases
2042 (add-after 'unpack 'fix-tests
2044 (substitute* "tests/tests_helper.rb"
2046 (substitute* "Rakefile"
2047 (("system \"shindo") "system \"./bin/shindo")
2048 ;; This test doesn't work, so we disable it.
2049 (("fail \"The build_error test should fail") "#")
2050 ((" -rubygems") ""))
2053 `(("ruby-formatador" ,ruby-formatador)))
2054 (synopsis "Simple depth first Ruby testing")
2055 (description "Shindo is a simple depth first testing library for Ruby.")
2056 (home-page "https://github.com/geemus/shindo")
2057 (license license:expat)))
2059 (define-public ruby-rubygems-tasks
2061 (name "ruby-rubygems-tasks")
2065 (uri (rubygems-uri "rubygems-tasks" version))
2068 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
2069 (build-system ruby-build-system)
2070 ;; Tests need Internet access.
2071 (arguments `(#:tests? #f))
2073 `(("ruby-rspec" ,ruby-rspec)
2074 ("ruby-yard" ,ruby-yard)))
2075 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2076 (description "Rubygems-task provides Rake tasks for managing and releasing
2078 (home-page "https://github.com/postmodern/rubygems-tasks")
2079 (license license:expat)))
2081 (define-public ruby-rubyzip
2083 (name "ruby-rubyzip")
2088 (uri (rubygems-uri "rubyzip" version))
2091 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2092 (build-system ruby-build-system)
2095 (modify-phases %standard-phases
2096 (add-before 'check 'patch-tests
2097 (lambda* (#:key inputs #:allow-other-keys)
2098 (substitute* "test/gentestfiles.rb"
2101 (assoc-ref inputs "zip") "/bin/zip")))
2102 (substitute* "test/input_stream_test.rb"
2103 (("/usr/bin/env ruby") (which "ruby")))
2106 `(("bundler" ,bundler)
2107 ("ruby-simplecov" ,ruby-simplecov)
2110 (synopsis "Ruby module is for reading and writing zip files")
2112 "The rubyzip module provides ways to read from and create zip files.")
2113 (home-page "http://github.com/rubyzip/rubyzip")
2114 (license license:bsd-2)))
2116 (define-public ruby-simplecov-html
2118 (name "ruby-simplecov-html")
2122 (uri (rubygems-uri "simplecov-html" version))
2125 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2126 (build-system ruby-build-system)
2127 (arguments `(#:tests? #f)) ; there are no tests
2129 `(("bundler" ,bundler)))
2130 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2131 (description "This package provides the default HTML formatter for
2132 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2133 (home-page "https://github.com/colszowka/simplecov-html")
2134 (license license:expat)))
2136 (define-public ruby-simplecov
2138 (name "ruby-simplecov")
2142 (uri (rubygems-uri "simplecov" version))
2145 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2146 (build-system ruby-build-system)
2147 ;; Simplecov depends on rubocop for code style checking at build time.
2148 ;; Rubocop needs simplecov at build time.
2149 (arguments `(#:tests? #f))
2151 `(("ruby-json" ,ruby-json)
2152 ("ruby-docile" ,ruby-docile)
2153 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2155 `(("bundler" ,bundler)))
2156 (synopsis "Code coverage framework for Ruby")
2157 (description "SimpleCov is a code coverage framework for Ruby with a
2158 powerful configuration library and automatic merging of coverage across test
2160 (home-page "https://github.com/colszowka/simplecov")
2161 (license license:expat)))
2163 (define-public ruby-useragent
2165 (name "ruby-useragent")
2169 (uri (rubygems-uri "useragent" version))
2172 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2173 (build-system ruby-build-system)
2175 '(#:tests? #f)) ; no test suite
2176 (synopsis "HTTP user agent parser for Ruby")
2177 (description "UserAgent is a Ruby library that parses and compares HTTP
2179 (home-page "https://github.com/gshutler/useragent")
2180 (license license:expat)))
2182 (define-public ruby-backports
2184 (name "ruby-backports")
2189 (uri (rubygems-uri "backports" version))
2192 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2193 (build-system ruby-build-system)
2195 '(;; TODO: This should be default, but there is one test failure
2196 #:test-target "all_spec"))
2198 `(("ruby-mspec" ,ruby-mspec)
2199 ("ruby-activesupport" ,ruby-activesupport)))
2200 (synopsis "Backports of the features in newer Ruby versions")
2202 "Backports enables more compatibility across Ruby versions by providing
2203 backports of some features.")
2204 (home-page "https://github.com/marcandre/backports")
2205 (license license:expat)))
2207 (define-public ruby-bacon
2213 (uri (rubygems-uri "bacon" version))
2216 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2217 (build-system ruby-build-system)
2218 (synopsis "Small RSpec clone")
2219 (description "Bacon is a small RSpec clone providing all essential
2221 (home-page "https://github.com/chneukirchen/bacon")
2222 (license license:expat)))
2224 (define-public ruby-bacon-bits
2226 (name "ruby-bacon-bits")
2231 (uri (rubygems-uri "bacon-bits" version))
2234 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2235 (build-system ruby-build-system)
2239 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2240 (synopsis "Extensions to Bacon, for disabling tests, before and after
2243 "This extends the bacon testing framework with useful extensions to
2244 disable tests, have before and after blocks that run once and more.")
2245 (home-page "https://github.com/cldwalker/bacon-bits")
2246 (license license:expat)))
2248 (define-public ruby-bacon-colored-output
2250 (name "ruby-bacon-colored-output")
2255 (uri (rubygems-uri "bacon-colored_output" version))
2258 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2259 (build-system ruby-build-system)
2261 '(;; No included tests
2264 `(("ruby-bacon" ,ruby-bacon)))
2265 (synopsis "Colored output for Bacon test framework")
2267 "This package adds color through ANSI escape codes to Bacon test
2269 (home-page "https://github.com/whitequark/bacon-colored_output")
2270 (license license:expat)))
2272 (define-public ruby-connection-pool
2274 (name "ruby-connection-pool")
2278 (uri (rubygems-uri "connection_pool" version))
2281 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2282 (build-system ruby-build-system)
2284 `(("bundler" ,bundler)))
2285 (synopsis "Generic connection pool for Ruby")
2286 (description "Connection_pool provides a generic connection pooling
2287 interface for Ruby programs.")
2288 (home-page "https://github.com/mperham/connection_pool")
2289 (license license:expat)))
2291 (define-public ruby-net-http-persistent
2293 (name "ruby-net-http-persistent")
2297 (uri (rubygems-uri "net-http-persistent" version))
2300 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2301 (build-system ruby-build-system)
2303 `(("ruby-connection-pool" ,ruby-connection-pool)
2304 ("ruby-hoe" ,ruby-hoe)))
2305 (synopsis "Persistent HTTP connection manager")
2306 (description "Net::HTTP::Persistent manages persistent HTTP connections
2307 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2308 (home-page "https://github.com/drbrain/net-http-persistent")
2309 (license license:expat)))
2311 (define-public ruby-power-assert
2313 (name "ruby-power-assert")
2317 (uri (rubygems-uri "power_assert" version))
2320 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2321 (build-system ruby-build-system)
2323 '(#:tests? #f)) ; No included tests
2325 `(("bundler" ,bundler)))
2326 (synopsis "Assert library with descriptive assertion messages")
2327 (description "Power-assert is an assertion library providing descriptive
2328 assertion messages for tests.")
2329 (home-page "https://github.com/k-tsj/power_assert")
2330 (license (list license:bsd-2 license:ruby))))
2332 (define-public ruby-powerpack
2334 (name "ruby-powerpack")
2339 (uri (rubygems-uri "powerpack" version))
2342 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2343 (build-system ruby-build-system)
2345 '(#:test-target "spec"))
2347 `(("bundler" ,bundler)
2348 ("ruby-rspec" ,ruby-rspec)
2349 ("ruby-yard" ,ruby-yard)))
2350 (synopsis "Useful extensions to core Ruby classes")
2352 "This package provides a few useful extensions to core Ruby classes,
2353 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2355 (home-page "https://github.com/bbatsov/powerpack")
2356 (license license:expat)))
2358 (define-public ruby-locale
2360 (name "ruby-locale")
2364 (uri (rubygems-uri "locale" version))
2367 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2368 (build-system ruby-build-system)
2369 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2370 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2371 ;; dependency cycle we disable tests.
2372 (arguments `(#:tests? #f))
2374 `(("bundler" ,bundler)
2375 ("ruby-yard" ,ruby-yard)))
2376 (synopsis "Ruby library providing basic localization APIs")
2378 "Ruby-Locale is the pure ruby library which provides basic APIs for
2380 (home-page "https://github.com/ruby-gettext/locale")
2381 (license (list license:lgpl3+ license:ruby))))
2383 (define-public ruby-temple
2385 (name "ruby-temple")
2390 (uri (rubygems-uri "temple" version))
2393 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2394 (build-system ruby-build-system)
2396 `(("ruby-tilt" ,ruby-tilt)
2397 ("ruby-bacon" ,ruby-bacon)
2398 ("ruby-erubis" ,ruby-erubis)))
2399 (synopsis "Template compilation framework in Ruby")
2401 "Temple is an abstraction and framework for compiling templates to pure
2403 (home-page "https://github.com/judofyr/temple")
2404 (license license:expat)))
2406 (define-public ruby-text
2412 (uri (rubygems-uri "text" version))
2415 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2416 (build-system ruby-build-system)
2417 (synopsis "Collection of text algorithms for Ruby")
2419 "This package provides a collection of text algorithms: Levenshtein,
2420 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2421 (home-page "https://github.com/threedaymonk/text")
2422 (license license:expat)))
2424 (define-public ruby-gettext
2426 (name "ruby-gettext")
2430 (uri (rubygems-uri "gettext" version))
2433 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2434 (build-system ruby-build-system)
2435 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2436 ;; which needs ruby-gettext. To break the dependency cycle we disable
2438 (arguments `(#:tests? #f))
2440 `(("ruby-locale" ,ruby-locale)
2441 ("ruby-text" ,ruby-text)))
2443 `(("bundler" ,bundler)
2444 ("ruby-yard" ,ruby-yard)))
2445 (synopsis "GNU gettext-like program for Ruby")
2447 "Gettext is a GNU gettext-like program for Ruby. The catalog
2448 file (po-file) used is the same as that used by GNU gettext, allowing you to
2449 use GNU gettext tools for maintenance.")
2450 (home-page "https://ruby-gettext.github.com/")
2451 (license (list license:lgpl3+ license:ruby))))
2453 (define-public ruby-packnga
2455 (name "ruby-packnga")
2459 (uri (rubygems-uri "packnga" version))
2462 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2463 (build-system ruby-build-system)
2464 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2465 ;; To break the dependency cycle we disable tests.
2466 (arguments `(#:tests? #f))
2468 `(("ruby-gettext" ,ruby-gettext)
2469 ("ruby-yard" ,ruby-yard)))
2471 `(("bundler" ,bundler)))
2472 (synopsis "Utility library to package internationalized libraries")
2474 "Packnga is a library to translate to many languages using YARD.")
2475 (home-page "http://ranguba.org/packnga/")
2476 (license license:lgpl2.0+)))
2478 (define-public ruby-test-construct
2480 (name "ruby-test-construct")
2485 (uri (rubygems-uri "test_construct" version))
2488 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2489 (build-system ruby-build-system)
2491 `(("bundler" ,bundler)
2492 ("ruby-mocha" ,ruby-mocha)
2493 ("ruby-rspec" ,ruby-rspec)))
2494 (synopsis "Creates temporary files and directories for testing")
2496 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2497 temporary files and directories during tests.")
2498 (home-page "https://github.com/bhb/test_construct")
2499 (license license:expat)))
2501 (define-public ruby-test-unit
2503 (name "ruby-test-unit")
2507 (uri (rubygems-uri "test-unit" version))
2510 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2511 (build-system ruby-build-system)
2513 `(("ruby-power-assert" ,ruby-power-assert)))
2515 `(("bundler" ,bundler)
2516 ("ruby-packnga" ,ruby-packnga)
2517 ("ruby-yard" ,ruby-yard)))
2518 (synopsis "Unit testing framework for Ruby")
2519 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2520 on xUnit principles. These were originally designed by Kent Beck, creator of
2521 extreme programming software development methodology, for Smalltalk's SUnit.
2522 It allows writing tests, checking results and automated testing in Ruby.")
2523 (home-page "https://test-unit.github.io/")
2524 (license (list license:psfl license:ruby))))
2526 (define-public ruby-markaby
2528 (name "ruby-markaby")
2533 (uri (rubygems-uri "markaby" version))
2536 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2537 (build-system ruby-build-system)
2540 (modify-phases %standard-phases
2541 ;; Run rspec manually without using the Rakefile, as the versions of
2542 ;; Rake and RSpec 2 are incompatible:
2544 ;; NoMethodError: undefined method `last_comment'
2546 (lambda* (#:key tests? #:allow-other-keys)
2551 `(("ruby-builder" ,ruby-builder)))
2553 `(("bundler" ,bundler)
2554 ("ruby-rspec" ,ruby-rspec-2)))
2555 (synopsis "Write HTML pages in pure Ruby")
2557 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2558 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2559 mixture of HTML and additional ERB syntax.")
2560 (home-page "http://markaby.github.io/")
2561 (license license:expat)))
2563 (define-public ruby-maruku
2565 (name "ruby-maruku")
2570 (uri (rubygems-uri "maruku" version))
2573 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2574 (build-system ruby-build-system)
2576 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2579 (modify-phases %standard-phases
2581 (lambda* (#:key tests? #:allow-other-keys)
2586 `(("ruby-rspec" ,ruby-rspec)
2587 ("ruby-simplecov" ,ruby-simplecov)
2588 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2589 (synopsis "Markdown interpreter in Ruby")
2591 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2592 HTML, and PDF through LaTeX.")
2593 (home-page "https://github.com/bhollis/maruku")
2594 (license license:expat)))
2596 (define-public ruby-metaclass
2598 (name "ruby-metaclass")
2602 (uri (rubygems-uri "metaclass" version))
2605 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2606 (build-system ruby-build-system)
2609 (modify-phases %standard-phases
2610 (add-after 'unpack 'add-test-unit-to-search-path
2611 (lambda* (#:key inputs #:allow-other-keys)
2612 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2613 (substitute* "Rakefile"
2614 (("t\\.libs << \"test\"" line)
2615 (string-append line "; t.libs << \""
2616 test-unit "/lib/ruby/vendor_ruby"
2618 ,(package-version ruby-test-unit)
2622 `(("bundler" ,bundler)
2623 ("ruby-test-unit" ,ruby-test-unit)))
2624 (synopsis "Ruby library adding metaclass method to all objects")
2626 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2628 (home-page "https://github.com/floehopper/metaclass")
2629 (license license:expat)))
2631 (define-public ruby-mspec
2638 (uri (rubygems-uri "mspec" version))
2641 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2642 (build-system ruby-build-system)
2644 '(;; TODO: 3 test failures
2645 ;; ./spec/mocks/mock_spec.rb:82
2646 ;; ./spec/utils/name_map_spec.rb:151
2647 ;; ./spec/utils/name_map_spec.rb:155
2650 (modify-phases %standard-phases
2651 (add-after 'extract-gemspec 'change-dependency-constraints
2653 (substitute* "mspec.gemspec"
2654 (("rake.*") "rake>)\n")
2655 (("rspec.*") "rspec>)\n"))
2658 (lambda* (#:key tests? #:allow-other-keys)
2660 (invoke "rspec" "spec"))
2663 `(("bundler" ,bundler)
2664 ("ruby-rake" ,ruby-rake)
2665 ("ruby-rspec" ,ruby-rspec)))
2666 (synopsis "MSpec is a specialized framework for RubySpec")
2668 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2669 for basic features. MSpec contains additional features that assist in writing
2670 specs for Ruby implementations in ruby/spec.")
2671 (home-page "http://rubyspec.org")
2672 (license license:expat)))
2674 (define-public ruby-mysql2
2676 (name "ruby-mysql2")
2682 (url "https://github.com/brianmario/mysql2.git")
2684 (file-name (git-file-name name version))
2687 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2688 (build-system ruby-build-system)
2690 '(;; TODO: Tests require a running MySQL/MariaDB service
2693 (modify-phases %standard-phases
2694 (replace 'replace-git-ls-files
2696 (substitute* "mysql2.gemspec"
2697 (("git ls-files .*`") "find . -type f |sort`"))
2699 (add-before 'install 'set-MAKEFLAGS
2700 (lambda* (#:key outputs #:allow-other-keys)
2704 "prefix=" (assoc-ref outputs "out")))
2706 ;; Move the 'check phase to after 'install, as then you can test
2707 ;; using the installed mysql2 gem in the store.
2709 (add-after 'install 'check
2710 (lambda* (#:key outputs tests? #:allow-other-keys)
2715 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2720 `(("mariadb" ,mariadb "lib")
2721 ("mariadb-dev" ,mariadb "dev")
2724 `(("ruby-rspec" ,ruby-rspec)
2725 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2726 (synopsis "MySQL library for Ruby, binding to libmysql")
2728 "This package provides a simple, fast MySQL library for Ruby, binding to
2730 (home-page "https://github.com/brianmario/mysql2")
2731 (license license:expat)))
2733 (define-public ruby-blankslate
2735 (name "ruby-blankslate")
2739 (uri (rubygems-uri "blankslate" version))
2742 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2743 (build-system ruby-build-system)
2746 (modify-phases %standard-phases
2748 (lambda _ (invoke "rspec" "spec/"))))))
2750 `(("bundler" ,bundler)
2751 ("ruby-rspec" ,ruby-rspec)))
2752 (synopsis "Abstract base class with no predefined methods")
2754 "BlankSlate provides an abstract base class with no predefined
2755 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2756 as a base class when writing classes that depend upon
2757 @code{method_missing} (e.g. dynamic proxies).")
2758 (home-page "https://github.com/masover/blankslate")
2759 (license license:expat)))
2761 (define-public ruby-bond
2768 (uri (rubygems-uri "bond" version))
2771 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2772 (build-system ruby-build-system)
2774 `(("ruby-bacon" ,ruby-bacon)
2775 ("ruby-bacon-bits" ,ruby-bacon-bits)
2776 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2777 (synopsis "Bond can provide custom autocompletion for arguments, methods
2780 "Bond can autocomplete argument(s) to methods, uniquely completing per
2781 module, per method and per argument. Bond provides a configuration system and
2782 a DSL for creating custom completions and completion rules. Bond can also
2783 load completions that ship with gems. Bond is able to offer more than irb's
2784 completion since it uses the full line of input when completing as opposed to
2785 irb's last-word approach.")
2786 (home-page "http://tagaholic.me/bond/")
2787 (license license:expat)))
2789 (define-public ruby-idn-ruby
2791 (name "ruby-idn-ruby")
2796 (uri (rubygems-uri "idn-ruby" version))
2799 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2800 (build-system ruby-build-system)
2803 (modify-phases %standard-phases
2805 (add-after 'install 'check
2806 (lambda* (#:key tests? outputs #:allow-other-keys)
2808 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2809 (name-and-version (basename gem-file ".gem")))
2813 (assoc-ref outputs "out")
2814 "/lib/ruby/vendor_ruby/gems/"
2817 (find-files "./test" ".*\\.rb"))))
2820 `(("libidn" ,libidn)))
2821 (synopsis "Ruby Bindings for the GNU LibIDN library")
2823 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2824 Stringprep, Punycode and IDNA specifications. These are used to encode and
2825 decode internationalized domain + names according to the IDNA2003
2828 Included are the most important parts of the Stringprep, Punycode and IDNA
2829 APIs like performing Stringprep processings, encoding to and decoding from
2830 Punycode strings and converting entire domain names to and from the ACE
2832 (home-page "https://github.com/deepfryed/idn-ruby")
2833 (license license:asl2.0)))
2835 (define-public ruby-instantiator
2837 (name "ruby-instantiator")
2841 (uri (rubygems-uri "instantiator" version))
2844 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2845 (build-system ruby-build-system)
2848 (modify-phases %standard-phases
2849 (add-after 'unpack 'add-test-unit-to-search-path
2850 (lambda* (#:key inputs #:allow-other-keys)
2851 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2852 (substitute* "Rakefile"
2853 (("t\\.libs << \"test\"" line)
2854 (string-append line "; t.libs << \""
2855 test-unit "/lib/ruby/vendor_ruby"
2857 ,(package-version ruby-test-unit)
2861 `(("ruby-blankslate" ,ruby-blankslate)))
2863 `(("bundler" ,bundler)
2864 ("ruby-test-unit" ,ruby-test-unit)))
2865 (synopsis "Instantiate an arbitrary Ruby class")
2867 "Instantiator lets you instantiate an arbitrary Ruby class without
2868 knowing anything about the constructor.")
2869 (home-page "https://github.com/floehopper/instantiator")
2870 (license license:expat)))
2872 (define-public ruby-introspection
2874 (name "ruby-introspection")
2878 (uri (rubygems-uri "introspection" version))
2881 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2882 (build-system ruby-build-system)
2885 (modify-phases %standard-phases
2886 (add-after 'unpack 'add-test-unit-to-search-path
2887 (lambda* (#:key inputs #:allow-other-keys)
2888 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2889 (substitute* "Rakefile"
2890 (("t\\.libs << \"test\"" line)
2891 (string-append line "; t.libs << \""
2892 test-unit "/lib/ruby/vendor_ruby"
2894 ,(package-version ruby-test-unit)
2898 `(("ruby-instantiator" ,ruby-instantiator)
2899 ("ruby-metaclass" ,ruby-metaclass)))
2901 `(("bundler" ,bundler)
2902 ("ruby-blankslate" ,ruby-blankslate)
2903 ("ruby-test-unit" ,ruby-test-unit)))
2904 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2906 "Introspection provides tools to inspect the hierarchy of method
2907 definitions on a Ruby object.")
2908 (home-page "https://github.com/floehopper/introspection")
2909 (license license:expat)))
2911 (define-public ruby-redcarpet
2913 (name "ruby-redcarpet")
2917 (uri (rubygems-uri "redcarpet" version))
2920 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2921 (build-system ruby-build-system)
2924 (modify-phases %standard-phases
2925 ;; The gem archive does not include the conformance tests.
2926 (add-after 'unpack 'disable-conformance-tests
2928 (substitute* "Rakefile"
2929 (("task :test => %w\\[test:unit test:conformance\\]")
2930 "task :test => %w[test:unit]"))
2933 `(("bundler" ,bundler)
2934 ("ruby-test-unit" ,ruby-test-unit)
2935 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2936 (synopsis "Extensible Markdown to (X)HTML converter")
2938 "Redcarpet is an extensible Ruby library for Markdown processing and
2939 conversion to (X)HTML.")
2940 (home-page "https://github.com/vmg/redcarpet")
2941 (license license:expat)))
2943 (define-public ruby-rerun
2950 (uri (rubygems-uri "rerun" version))
2953 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
2954 (build-system ruby-build-system)
2956 '(#:tests? #f)) ; No included tests
2958 `(("ruby-listen" ,ruby-listen)))
2959 (synopsis "Run a process, and restart when some monitored files change")
2961 "Rerun is a tool to launch programs, then monitor the file system, and
2962 restart the program when any of the monitored files change. It's written in
2963 Ruby, but can be used for all programs.")
2964 (home-page "https://github.com/alexch/rerun/")
2965 (license license:expat)))
2967 (define-public ruby-mocha
2973 (uri (rubygems-uri "mocha" version))
2976 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2977 (build-system ruby-build-system)
2980 (modify-phases %standard-phases
2981 (add-after 'unpack 'add-test-unit-to-search-path
2982 (lambda* (#:key inputs #:allow-other-keys)
2983 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2984 (substitute* "Rakefile"
2985 (("t\\.libs << 'test'" line)
2986 (string-append line "; t.libs << \""
2987 test-unit "/lib/ruby/vendor_ruby"
2989 ,(package-version ruby-test-unit)
2992 (add-before 'check 'use-latest-redcarpet
2994 (substitute* "mocha.gemspec"
2995 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2996 "<redcarpet>.freeze, [\">= 3\"]"))
2998 (add-before 'check 'hardcode-version
3000 ;; Mocha is undefined at build time
3001 (substitute* "Rakefile"
3002 (("#\\{Mocha::VERSION\\}") ,version))
3004 (add-before 'check 'remove-failing-test
3005 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
3007 (delete-file "test/acceptance/stubbing_nil_test.rb")
3010 `(("ruby-metaclass" ,ruby-metaclass)))
3012 `(("bundler" ,bundler)
3013 ("ruby-yard" ,ruby-yard)
3014 ("ruby-introspection" ,ruby-introspection)
3015 ("ruby-test-unit" ,ruby-test-unit)
3016 ("ruby-redcarpet" ,ruby-redcarpet)))
3017 (synopsis "Mocking and stubbing library for Ruby")
3019 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3020 allows mocking and stubbing of methods on real (non-mock) classes.")
3021 (home-page "http://gofreerange.com/mocha/docs")
3022 (license license:expat)))
3024 (define-public ruby-mocha-on-bacon
3026 (name "ruby-mocha-on-bacon")
3031 (uri (rubygems-uri "mocha-on-bacon" version))
3034 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3035 (build-system ruby-build-system)
3037 ;; rubygems.org release missing tests
3039 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3040 (synopsis "Mocha adapter for Bacon")
3042 "This package provides a Mocha adapter for Bacon, allowing you to use the
3043 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3045 "https://github.com/alloy/mocha-on-bacon")
3046 (license license:expat)))
3048 (define-public ruby-net-ssh
3050 (name "ruby-net-ssh")
3054 (uri (rubygems-uri "net-ssh" version))
3057 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3058 (build-system ruby-build-system)
3060 `(("bundler" ,bundler)
3061 ("ruby-mocha" ,ruby-mocha)
3062 ("ruby-test-unit" ,ruby-test-unit)))
3063 (synopsis "Ruby implementation of the SSH2 client protocol")
3064 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3065 client protocol. It allows you to write programs that invoke and interact
3066 with processes on remote servers, via SSH2.")
3067 (home-page "https://github.com/net-ssh/net-ssh")
3068 (license license:expat)))
3070 (define-public ruby-net-scp
3072 (name "ruby-net-scp")
3073 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3074 (version "1.2.2.rc2")
3079 (url "https://github.com/net-ssh/net-scp.git")
3080 (commit (string-append "v" version))))
3081 (file-name (git-file-name name version))
3083 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3084 (build-system ruby-build-system)
3086 `(("bundler" ,bundler)
3087 ("ruby-test-unit" ,ruby-test-unit)
3088 ("ruby-mocha" ,ruby-mocha)))
3090 `(("ruby-net-ssh" ,ruby-net-ssh)))
3091 (synopsis "Pure-Ruby SCP client library")
3092 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3094 (home-page "https://github.com/net-ssh/net-scp")
3095 (license license:expat)))
3097 (define-public ruby-minitest
3099 (name "ruby-minitest")
3103 (uri (rubygems-uri "minitest" version))
3106 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3107 (build-system ruby-build-system)
3109 `(("ruby-hoe" ,ruby-hoe)))
3110 (synopsis "Small test suite library for Ruby")
3111 (description "Minitest provides a complete suite of Ruby testing
3112 facilities supporting TDD, BDD, mocking, and benchmarking.")
3113 (home-page "https://github.com/seattlerb/minitest")
3114 (license license:expat)))
3116 ;; This is the last release of Minitest 4, which is used by some packages.
3117 (define-public ruby-minitest-4
3118 (package (inherit ruby-minitest)
3122 (uri (rubygems-uri "minitest" version))
3125 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3128 (modify-phases %standard-phases
3129 (add-after 'unpack 'remove-unsupported-method
3131 (substitute* "Rakefile"
3132 (("self\\.rubyforge_name = .*") ""))
3134 (add-after 'build 'exclude-failing-tests
3136 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3138 (delete-file "test/minitest/test_minitest_spec.rb")
3141 (define-public ruby-minitest-around
3143 (name "ruby-minitest-around")
3148 (uri (rubygems-uri "minitest-around" version))
3151 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3152 (build-system ruby-build-system)
3155 (modify-phases %standard-phases
3156 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3158 (substitute* "minitest-around.gemspec"
3159 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3162 `(("ruby-minitest" ,ruby-minitest)))
3164 `(("bundler" ,bundler)
3165 ("ruby-cucumber" ,ruby-cucumber)
3166 ("ruby-bump" ,ruby-bump)
3167 ("ruby-test-construct" ,ruby-test-construct)))
3168 (synopsis "Run code around tests in Minitest")
3170 "This library provides a way to run code around tests in Minitest,
3171 written using either the unit test or spec style.")
3172 (home-page "https://github.com/splattael/minitest-around")
3173 (license license:expat)))
3175 (define-public ruby-minitest-sprint
3177 (name "ruby-minitest-sprint")
3181 (uri (rubygems-uri "minitest-sprint" version))
3184 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3185 (build-system ruby-build-system)
3187 `(("ruby-hoe" ,ruby-hoe)
3188 ("ruby-minitest" ,ruby-minitest)))
3189 (synopsis "Fast test suite runner for minitest")
3190 (description "Minitest-sprint is a test runner for minitest that makes it
3191 easier to re-run individual failing tests.")
3192 (home-page "https://github.com/seattlerb/minitest-sprint")
3193 (license license:expat)))
3195 (define-public ruby-minitest-bacon
3197 (name "ruby-minitest-bacon")
3201 (uri (rubygems-uri "minitest-bacon" version))
3204 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3205 (build-system ruby-build-system)
3207 `(("ruby-hoe" ,ruby-hoe)))
3209 `(("ruby-minitest" ,ruby-minitest)))
3210 (synopsis "Bacon compatibility library for minitest")
3211 (description "Minitest-bacon extends minitest with bacon-like
3212 functionality, making it easier to migrate test suites from bacon to minitest.")
3213 (home-page "https://github.com/seattlerb/minitest-bacon")
3214 (license license:expat)))
3216 (define-public ruby-minitest-focus
3218 (name "ruby-minitest-focus")
3223 (uri (rubygems-uri "minitest-focus" version))
3226 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3227 (build-system ruby-build-system)
3229 `(("ruby-minitest" ,ruby-minitest)))
3231 `(("ruby-hoe" ,ruby-hoe)))
3232 (synopsis "Allows a few specific tests to be focused on")
3234 "@code{minitest-focus} gives the ability focus on a few tests with ease
3235 without having to use command-line arguments. It introduces a @code{focus}
3236 class method for use in testing classes, specifying that the next defined test
3238 (home-page "https://github.com/seattlerb/minitest-focus")
3239 (license license:expat)))
3241 (define-public ruby-minitest-pretty-diff
3242 ;; Use git reference because gem is out of date and does not contain testing
3243 ;; script. There are no releases on GitHub.
3244 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3246 (name "ruby-minitest-pretty-diff")
3247 (version (string-append "0.1-1." (string-take commit 8)))
3251 (url "https://github.com/adammck/minitest-pretty_diff.git")
3253 (file-name (string-append name "-" version "-checkout"))
3256 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3257 (build-system ruby-build-system)
3260 (modify-phases %standard-phases
3263 (invoke "script/test"))))))
3265 `(("bundler" ,bundler)
3266 ("ruby-turn" ,ruby-turn)))
3267 (synopsis "Pretty-print hashes and arrays in MiniTest")
3269 "@code{minitest-pretty_diff} monkey-patches
3270 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3271 diffing them. This makes it easier to spot differences between nested
3272 structures when tests fail.")
3273 (home-page "https://github.com/adammck/minitest-pretty_diff")
3274 (license license:expat))))
3276 (define-public ruby-minitest-moar
3278 (name "ruby-minitest-moar")
3283 (uri (rubygems-uri "minitest-moar" version))
3286 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3287 (build-system ruby-build-system)
3290 (modify-phases %standard-phases
3291 (add-before 'check 'clean-dependencies
3293 ;; Remove all gems defined in the Gemfile because these are not
3295 (substitute* "Gemfile"
3297 ;; Remove byebug as not needed to run tests.
3298 (substitute* "test/test_helper.rb"
3299 (("require 'byebug'") ""))
3302 `(("bundler" ,bundler)
3303 ("ruby-minitest" ,ruby-minitest)))
3304 (synopsis "Extra features and changes to MiniTest")
3305 (description "@code{MiniTest Moar} add some additional features and
3306 changes some default behaviours in MiniTest. For instance, Moar replaces the
3307 MiniTest @code{Object#stub} with a global @code{stub} method.")
3308 (home-page "https://github.com/dockyard/minitest-moar")
3309 (license license:expat)))
3311 (define-public ruby-minitest-bonus-assertions
3313 (name "ruby-minitest-bonus-assertions")
3318 (uri (rubygems-uri "minitest-bonus-assertions" version))
3321 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3322 (build-system ruby-build-system)
3325 (modify-phases %standard-phases
3326 (add-before 'check 'clean-dependencies
3328 ;; Remove unneeded require statement that would entail another
3330 (substitute* "test/minitest_config.rb"
3331 (("require 'minitest/bisect'") ""))
3334 `(("ruby-hoe" ,ruby-hoe)
3335 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3336 ("ruby-minitest-focus" ,ruby-minitest-focus)
3337 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3338 (synopsis "Bonus assertions for @code{Minitest}")
3340 "Minitest bonus assertions provides extra MiniTest assertions. For
3341 instance, it provides @code{assert_true}, @code{assert_false} and
3342 @code{assert_set_equal}.")
3343 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3344 (license license:expat)))
3346 (define-public ruby-minitest-reporters
3348 (name "ruby-minitest-reporters")
3353 (uri (rubygems-uri "minitest-reporters" version))
3356 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3357 (build-system ruby-build-system)
3360 (modify-phases %standard-phases
3361 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3362 ;; including it as an input can lead to circular dependencies.
3363 (add-after 'unpack 'remove-rubocop-from-Rakefile
3365 (substitute* "Rakefile"
3366 (("require 'rubocop/rake\\_task'") "")
3367 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3369 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3371 (substitute* "minitest-reporters.gemspec"
3372 ((".*%q<rubocop>.*") "\n"))
3375 `(("ruby-ansi" ,ruby-ansi)
3376 ("ruby-builder" ,ruby-builder)
3377 ("ruby-minitest" ,ruby-minitest)
3378 ("ruby-progressbar" ,ruby-progressbar)))
3380 `(("bundler" ,bundler)
3381 ("ruby-maruku" ,ruby-maruku)))
3382 (synopsis "Enhanced reporting for Minitest tests")
3384 "@code{minitest/reporters} provides a custom Minitest runner to improve
3385 how the test state is reported. A number of different reporters are
3386 available, including a spec reporter, progress bar reporter, a HTML
3388 (home-page "https://github.com/kern/minitest-reporters")
3389 (license license:expat)))
3391 (define-public ruby-minitest-rg
3393 (name "ruby-minitest-rg")
3398 (uri (rubygems-uri "minitest-rg" version))
3401 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3402 (build-system ruby-build-system)
3404 ;; Some tests fail even outside Guix, so disable tests.
3405 ;; https://github.com/blowmage/minitest-rg/issues/12
3406 ;; https://github.com/blowmage/minitest-rg/pull/13
3409 `(("ruby-minitest" ,ruby-minitest)))
3410 (synopsis "Coloured output for Minitest")
3412 "@code{minitest-rg} changes the colour of the output from Minitest.")
3413 (home-page "http://blowmage.com/minitest-rg")
3414 (license license:expat)))
3416 (define-public ruby-minitest-hooks
3418 (name "ruby-minitest-hooks")
3423 (uri (rubygems-uri "minitest-hooks" version))
3426 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3427 (build-system ruby-build-system)
3429 '(#:test-target "spec"))
3431 `(("ruby-sequel" ,ruby-sequel)
3432 ("ruby-sqlite3" ,ruby-sqlite3)))
3433 (synopsis "Hooks for the minitest framework")
3435 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3436 @code{around_all} hooks for Minitest. This allows, for instance, running each
3437 suite of specs inside a database transaction, running each spec inside its own
3438 savepoint inside that transaction. This can significantly speed up testing
3439 for specs that share expensive database setup code.")
3440 (home-page "https://github.com/jeremyevans/minitest-hooks")
3441 (license license:expat)))
3443 (define-public ruby-daemons
3445 (name "ruby-daemons")
3449 (uri (rubygems-uri "daemons" version))
3452 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3453 (build-system ruby-build-system)
3455 `(#:tests? #f)) ; no test suite
3456 (synopsis "Daemonize Ruby programs")
3457 (description "Daemons provides a way to wrap existing Ruby scripts to be
3458 run as a daemon and to be controlled by simple start/stop/restart commands.")
3459 (home-page "https://github.com/thuehlinger/daemons")
3460 (license license:expat)))
3462 (define-public ruby-data_uri
3464 (name "ruby-data_uri")
3469 (uri (rubygems-uri "data_uri" version))
3472 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3473 (build-system ruby-build-system)
3474 (synopsis "URI class for parsing data URIs")
3476 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3477 embedded inside a URI. The URI::Data class provides support for parsing these
3478 URIs using the normal URI.parse method.")
3479 (home-page "https://github.com/dball/data_uri")
3480 (license license:expat)))
3482 (define-public ruby-git
3488 (uri (rubygems-uri "git" version))
3491 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3492 (build-system ruby-build-system)
3494 `(#:tests? #f ; no tests
3495 #:phases (modify-phases %standard-phases
3496 (add-after 'install 'patch-git-binary
3497 (lambda* (#:key inputs outputs #:allow-other-keys)
3498 ;; Make the default git binary an absolute path to the
3500 (let ((git (string-append (assoc-ref inputs "git")
3502 (config (string-append
3503 (assoc-ref outputs "out")
3504 "/lib/ruby/vendor_ruby/gems/git-"
3505 ,version "/lib/git/config.rb")))
3506 (substitute* (list config)
3508 (string-append "'" git "'")))
3512 (synopsis "Ruby wrappers for Git")
3513 (description "Ruby/Git is a Ruby library that can be used to create, read
3514 and manipulate Git repositories by wrapping system calls to the git binary.")
3515 (home-page "https://github.com/schacon/ruby-git")
3516 (license license:expat)))
3518 (define-public ruby-slop
3524 (uri (rubygems-uri "slop" version))
3527 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3528 (build-system ruby-build-system)
3530 `(("ruby-minitest" ,ruby-minitest)))
3531 (synopsis "Ruby command line option parser")
3532 (description "Slop provides a Ruby domain specific language for gathering
3533 options and parsing command line flags.")
3534 (home-page "https://github.com/leejarvis/slop")
3535 (license license:expat)))
3537 (define-public ruby-slop-3
3538 (package (inherit ruby-slop)
3542 (uri (rubygems-uri "slop" version))
3545 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3547 (define-public ruby-multi-xml
3549 (name "ruby-multi-xml")
3554 (uri (rubygems-uri "multi_xml" version))
3557 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3558 (build-system ruby-build-system)
3560 '(#:tests? #f)) ; No included tests
3561 (synopsis "Swappable XML backends for Ruby")
3563 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3564 Nokogiri, Ox, or REXML.")
3565 (home-page "https://github.com/sferik/multi_xml")
3566 (license license:expat)))
3568 (define-public ruby-multipart-post
3570 (name "ruby-multipart-post")
3574 (uri (rubygems-uri "multipart-post" version))
3577 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3578 (build-system ruby-build-system)
3580 `(("bundler" ,bundler)))
3581 (synopsis "Multipart POST library for Ruby")
3582 (description "Multipart-Post Adds multipart POST capability to Ruby's
3584 (home-page "https://github.com/nicksieger/multipart-post")
3585 (license license:expat)))
3587 (define-public ruby-multi-json
3589 (name "ruby-multi-json")
3594 ;; Tests are not distributed at rubygems.org so download from GitHub
3597 (url "https://github.com/intridea/multi_json")
3598 (commit (string-append "v" version))))
3599 (file-name (git-file-name name version))
3602 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
3603 (build-system ruby-build-system)
3606 (modify-phases %standard-phases
3607 (add-after 'unpack 'remove-signing-key-reference
3609 (substitute* "multi_json.gemspec"
3610 ((".*spec.signing_key.*") ""))
3613 `(("bundler" ,bundler)
3614 ("ruby-rspec" ,ruby-rspec)
3615 ("ruby-yard" ,ruby-yard)
3616 ("ruby-json-pure" ,ruby-json-pure)
3617 ("ruby-oj" ,ruby-oj)
3618 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3619 (synopsis "Common interface to multiple JSON libraries for Ruby")
3621 "This package provides a common interface to multiple JSON libraries,
3622 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3623 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3624 (home-page "https://github.com/intridea/multi_json")
3625 (license license:expat)))
3627 (define-public ruby-multi-test
3629 (name "ruby-multi-test")
3634 (uri (rubygems-uri "multi_test" version))
3637 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3638 (build-system ruby-build-system)
3640 '(;; Tests require different sets of specific gem versions to be available,
3641 ;; and there is no gemfile that specifies the newest versions of
3642 ;; dependencies to be tested.
3645 "Interface to testing libraries loaded into a running Ruby process")
3647 "@code{multi_test} provides a uniform interface onto whatever testing
3648 libraries that have been loaded into a running Ruby process to help control
3649 rogue test/unit/autorun requires.")
3650 (home-page "https://github.com/cucumber/multi_test")
3651 (license license:expat)))
3653 (define-public ruby-arel
3659 (uri (rubygems-uri "arel" version))
3662 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3663 (build-system ruby-build-system)
3664 (arguments '(#:tests? #f)) ; no tests
3665 (home-page "https://github.com/rails/arel")
3666 (synopsis "SQL AST manager for Ruby")
3667 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3668 Ruby. It simplifies the generation of complex SQL queries and adapts to
3669 various relational database implementations.")
3670 (license license:expat)))
3672 (define-public ruby-marcel
3674 (name "ruby-marcel")
3679 (uri (rubygems-uri "marcel" version))
3682 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3683 (build-system ruby-build-system)
3685 '(;; No included tests
3688 `(("ruby-mimemagic" ,ruby-mimemagic)))
3689 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3691 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3692 Extensions} type detection using magic numbers, filenames, and extensions")
3693 (home-page "https://github.com/basecamp/marcel")
3694 (license license:expat)))
3696 (define-public ruby-minitar
3697 ;; We package from the GitHub source to fix the security issue reported at
3698 ;; https://github.com/halostatue/minitar/issues/16.
3699 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3701 (name "ruby-minitar")
3702 (version (string-append "0.5.4-1." (string-take commit 8)))
3707 (url "https://github.com/halostatue/minitar.git")
3709 (file-name (string-append name "-" version "-checkout"))
3712 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3713 (build-system ruby-build-system)
3715 '(#:tests? #f)) ; missing a gemspec
3716 (synopsis "Ruby library and utility for handling tar archives")
3718 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3719 that provides the ability to deal with POSIX tar archive files.")
3720 (home-page "http://www.github.com/atoulme/minitar")
3721 (license (list license:gpl2+ license:ruby)))))
3723 (define-public ruby-mini-portile
3725 (name "ruby-mini-portile")
3730 (uri (rubygems-uri "mini_portile" version))
3733 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3734 (build-system ruby-build-system)
3736 '(#:tests? #f)) ; tests require network access
3737 (synopsis "Ports system for Ruby developers")
3738 (description "Mini-portile is a port/recipe system for Ruby developers.
3739 It provides a standard way to compile against specific versions of libraries
3740 to reproduce user environments.")
3741 (home-page "https://github.com/flavorjones/mini_portile")
3742 (license license:expat)))
3744 (define-public ruby-mini-portile-2
3745 (package (inherit ruby-mini-portile)
3749 (uri (rubygems-uri "mini_portile2" version))
3752 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
3754 (define-public ruby-nokogiri
3756 (name "ruby-nokogiri")
3760 (uri (rubygems-uri "nokogiri" version))
3763 "185g3dwba73jqxjr94bd2zk6fil6n9hmcfnfyzh3p1w47vm296r7"))))
3764 (build-system ruby-build-system)
3766 ;; Tests fail because Nokogiri can only test with an installed extension,
3767 ;; and also because many test framework dependencies are missing.
3769 #:gem-flags (list "--" "--use-system-libraries"
3770 (string-append "--with-xml2-include="
3771 (assoc-ref %build-inputs "libxml2")
3772 "/include/libxml2" ))
3774 (modify-phases %standard-phases
3775 (add-before 'build 'patch-extconf
3776 ;; 'pkg-config' is not included in the GEM_PATH during
3777 ;; installation, so we add it directly to the load path.
3778 (lambda* (#:key inputs #:allow-other-keys)
3779 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3780 (substitute* "ext/nokogiri/extconf.rb"
3781 (("gem 'pkg-config'.*")
3782 (string-append "$:.unshift '"
3783 pkg-config "/lib/ruby/vendor_ruby"
3785 ,(package-version ruby-pkg-config)
3789 `(("ruby-hoe" ,ruby-hoe)))
3792 ("libxml2" ,libxml2)
3793 ("libxslt" ,libxslt)))
3795 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3796 ("ruby-pkg-config" ,ruby-pkg-config)))
3797 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3798 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3799 both CSS3 selector and XPath 1.0 support.")
3800 (home-page "http://www.nokogiri.org/")
3801 (license license:expat)))
3803 (define-public ruby-method-source
3805 (name "ruby-method-source")
3810 (uri (rubygems-uri "method_source" version))
3813 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3814 (build-system ruby-build-system)
3816 `(#:test-target "spec"))
3818 `(("ruby-rspec" ,ruby-rspec)
3820 (synopsis "Retrieve the source code for Ruby methods")
3821 (description "Method_source retrieves the source code for Ruby methods.
3822 Additionally, it can extract source code from Proc and Lambda objects or just
3824 (home-page "https://github.com/banister/method_source")
3825 (license license:expat)))
3827 (define-public ruby-coderay
3829 (name "ruby-coderay")
3834 (uri (rubygems-uri "coderay" version))
3837 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3838 (build-system ruby-build-system)
3840 '(#:tests? #f)) ; missing test files
3841 (synopsis "Ruby syntax highlighting library")
3842 (description "Coderay is a Ruby library that provides syntax highlighting
3843 for select languages.")
3844 (home-page "http://coderay.rubychan.de")
3845 (license license:expat)))
3847 (define-public ruby-parser
3849 (name "ruby-parser")
3854 (uri (rubygems-uri "parser" version))
3857 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3858 (build-system ruby-build-system)
3860 `(("bundler" ,bundler)
3861 ("ruby-cliver" ,ruby-cliver)
3862 ("ruby-simplecov" ,ruby-simplecov)
3863 ("ruby-racc" ,ruby-racc)))
3865 `(("ragel" ,ragel)))
3867 `(("ruby-ast" ,ruby-ast)))
3868 (synopsis "Ruby parser written in pure Ruby")
3870 "This package provides a Ruby parser written in pure Ruby.")
3871 (home-page "https://github.com/whitequark/parser")
3872 (license license:expat)))
3874 (define-public ruby-prawn-manual-builder
3876 (name "ruby-prawn-manual-builder")
3881 (uri (rubygems-uri "prawn-manual_builder" version))
3883 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
3884 (build-system ruby-build-system)
3886 '(#:tests? #f ; no included tests
3888 (modify-phases %standard-phases
3889 (add-after 'extract-gemspec 'patch-gemspec
3891 (substitute* ".gemspec"
3892 ;; Loosen the requirement for pdf-inspector
3893 (("~> 1\\.0\\.7") ">= 0")))))))
3895 `(("ruby-coderay" ,ruby-coderay)))
3896 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3898 "This package provides a tool for writing manuals for Prawn and Prawn
3900 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3902 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3906 (define-public ruby-progress_bar
3908 (name "ruby-progress_bar")
3913 (uri (rubygems-uri "progress_bar" version))
3916 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3917 (build-system ruby-build-system)
3919 '(#:test-target "spec"))
3921 `(("ruby-highline" ,ruby-highline)
3922 ("ruby-options" ,ruby-options)))
3924 `(("bundler" ,bundler)
3925 ("ruby-rspec" ,ruby-rspec)
3926 ("ruby-timecop" ,ruby-timecop)))
3928 "Ruby library for displaying progress bars")
3930 "ProgressBar is a simple library for displaying progress bars. The
3931 maximum value is configurable, and additional information can be displayed
3932 like the percentage completion, estimated time remaining, elapsed time and
3934 (home-page "https://github.com/paul/progress_bar")
3935 (license license:wtfpl2)))
3937 (define-public ruby-dep
3944 (uri (rubygems-uri "ruby_dep" version))
3947 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
3948 (build-system ruby-build-system)
3950 '(#:tests? #f)) ; No included tests
3951 (synopsis "Creates a version constraint of supported Rubies")
3953 "This package helps create a version constraint of supported Rubies,
3954 suitable for a gemspec file.")
3955 (home-page "https://github.com/e2/ruby_dep")
3956 (license license:expat)))
3958 (define-public ruby-progressbar
3960 (name "ruby-progressbar")
3965 (uri (rubygems-uri "ruby-progressbar" version))
3967 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
3968 (build-system ruby-build-system)
3970 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3972 (synopsis "Text progress bar library for Ruby")
3974 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3975 The output can be customized with a formatting system.")
3976 (home-page "https://github.com/jfelchner/ruby-progressbar")
3977 (license license:expat)))
3979 (define-public ruby-pry
3986 (uri (rubygems-uri "pry" version))
3989 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3990 (build-system ruby-build-system)
3992 '(#:tests? #f)) ; no tests
3994 `(("ruby-coderay" ,ruby-coderay)
3995 ("ruby-method-source" ,ruby-method-source)))
3996 (synopsis "Ruby REPL")
3997 (description "Pry is an IRB alternative and runtime developer console for
3998 Ruby. It features syntax highlighting, a plugin architecture, runtime
3999 invocation, and source and documentation browsing.")
4000 (home-page "https://pryrepl.org")
4001 (license license:expat)))
4003 (define-public ruby-guard
4009 ;; The gem does not include a Rakefile, nor does it contain a
4010 ;; gemspec file, nor does it come with the tests. This is why
4011 ;; we fetch the tarball from Github.
4013 (url "https://github.com/guard/guard")
4014 (commit (string-append "v" version))))
4015 (file-name (git-file-name name version))
4018 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
4019 (build-system ruby-build-system)
4021 `(#:tests? #f ; tests require cucumber
4023 (modify-phases %standard-phases
4024 (add-after 'unpack 'remove-git-ls-files
4025 (lambda* (#:key outputs #:allow-other-keys)
4026 (substitute* "guard.gemspec"
4027 (("git ls-files -z") "find . -type f -print0"))
4031 (invoke "gem" "build" "guard.gemspec"))))))
4033 `(("ruby-formatador" ,ruby-formatador)
4034 ("ruby-listen" ,ruby-listen)
4035 ("ruby-lumberjack" ,ruby-lumberjack)
4036 ("ruby-nenv" ,ruby-nenv)
4037 ("ruby-notiffany" ,ruby-notiffany)
4038 ("ruby-pry" ,ruby-pry)
4039 ("ruby-shellany" ,ruby-shellany)
4040 ("ruby-thor" ,ruby-thor)))
4042 `(("bundler" ,bundler)
4043 ("ruby-rspec" ,ruby-rspec)))
4044 (synopsis "Tool to handle events on file system modifications")
4046 "Guard is a command line tool to easily handle events on file system
4047 modifications. Guard automates various tasks by running custom rules whenever
4048 file or directories are modified.")
4049 (home-page "https://guardgem.org/")
4050 (license license:expat)))
4052 (define-public ruby-tilt
4059 (uri (rubygems-uri "tilt" version))
4062 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
4063 (build-system ruby-build-system)
4066 (modify-phases %standard-phases
4067 (add-after 'unpack 'remove-some-dependencies
4069 (substitute* "Gemfile"
4070 ;; TODO ronn is used for generating the manual
4071 (("gem 'ronn'.*") "\n")
4072 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4073 ;; pass it in as a native-input
4074 (("gem 'haml'.*") "\n")
4075 ;; TODO Not all of these gems are packaged for Guix yet:
4076 ;; less, coffee-script, livescript, babel-transpiler,
4078 (("if can_execjs") "if false")
4079 ;; Disable the secondary group to reduce the number of
4080 ;; dependencies. None of the normal approaches work, so patch
4081 ;; the Gemfile instead.
4082 (("group :secondary") "[].each"))
4085 `(("bundler" ,bundler)
4086 ("ruby-yard" ,ruby-yard)
4087 ("ruby-builder" ,ruby-builder)
4088 ("ruby-erubis" ,ruby-erubis)
4089 ("ruby-markaby" ,ruby-markaby)
4090 ("ruby-sassc" ,ruby-sassc)))
4091 (synopsis "Generic interface to multiple Ruby template engines")
4093 "Tilt is a thin interface over a number of different Ruby template
4094 engines in an attempt to make their usage as generic as possible.")
4095 (home-page "https://github.com/rtomayko/tilt/")
4096 (license license:expat)))
4098 (define-public ruby-thread-safe
4100 (name "ruby-thread-safe")
4105 (uri (rubygems-uri "thread_safe" version))
4108 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4109 (build-system ruby-build-system)
4111 '(#:tests? #f)) ; needs simplecov, among others
4112 (synopsis "Thread-safe utilities for Ruby")
4113 (description "The thread_safe library provides thread-safe collections and
4114 utilities for Ruby.")
4115 (home-page "https://github.com/ruby-concurrency/thread_safe")
4116 (license license:asl2.0)))
4118 (define-public ruby-tzinfo
4120 (name "ruby-tzinfo")
4125 (uri (rubygems-uri "tzinfo" version))
4128 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4129 (build-system ruby-build-system)
4132 (modify-phases %standard-phases
4133 (add-after 'unpack 'skip-safe-tests
4135 (substitute* "test/test_utils.rb"
4136 (("def safe_test\\(options = \\{\\}\\)")
4137 "def safe_test(options = {})
4138 skip('The Guix build environment has an unsafe load path')"))
4141 `(("ruby-thread-safe" ,ruby-thread-safe)))
4142 (synopsis "Time zone library for Ruby")
4143 (description "TZInfo is a Ruby library that provides daylight savings
4144 aware transformations between times in different time zones.")
4145 (home-page "https://tzinfo.github.io")
4146 (license license:expat)))
4148 (define-public ruby-tzinfo-data
4150 (name "ruby-tzinfo-data")
4151 (version "1.2017.3")
4155 ;; Download from GitHub because the rubygems version does not contain
4156 ;; Rakefile or tests.
4158 (url "https://github.com/tzinfo/tzinfo-data")
4159 (commit (string-append "v" version))))
4160 (file-name (git-file-name name version))
4163 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4164 ;; Remove the known test failure.
4165 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4166 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4167 (patches (search-patches
4168 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4169 (build-system ruby-build-system)
4171 `(("ruby-tzinfo" ,ruby-tzinfo)))
4172 (synopsis "Data from the IANA Time Zone database")
4174 "This library provides @code{TZInfo::Data}, which contains data from the
4175 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4176 (home-page "https://tzinfo.github.io")
4177 (license license:expat)))
4179 (define-public ruby-rb-inotify
4181 (name "ruby-rb-inotify")
4186 (uri (rubygems-uri "rb-inotify" version))
4189 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4190 (build-system ruby-build-system)
4192 '(#:tests? #f ; there are no tests
4194 (modify-phases %standard-phases
4195 ;; Building the gemspec with rake is not working here since it is
4196 ;; generated with Jeweler. It is also unnecessary because the
4197 ;; existing gemspec does not use any development tools to generate a
4201 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4203 `(("ruby-ffi" ,ruby-ffi)))
4205 `(("ruby-yard" ,ruby-yard)))
4206 (synopsis "Ruby wrapper for Linux's inotify")
4207 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4208 kernel subsystem for monitoring changes to files and directories.")
4209 (home-page "https://github.com/nex3/rb-inotify")
4210 (license license:expat)))
4212 (define-public ruby-pry-editline
4214 (name "ruby-pry-editline")
4218 (uri (rubygems-uri "pry-editline" version))
4221 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4222 (build-system ruby-build-system)
4223 (arguments `(#:tests? #f)) ; no tests included
4225 `(("bundler" ,bundler)))
4226 (synopsis "Open the current REPL line in an editor")
4228 "This gem provides a plugin for the Ruby REPL to enable opening the
4229 current line in an external editor.")
4230 (home-page "https://github.com/tpope/pry-editline")
4231 (license license:expat)))
4233 (define-public ruby-sdoc
4239 (uri (rubygems-uri "sdoc" version))
4242 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4243 (build-system ruby-build-system)
4246 (modify-phases %standard-phases
4247 (add-before 'check 'set-rubylib-and-patch-gemfile
4249 (setenv "RUBYLIB" "lib")
4250 (substitute* "sdoc.gemspec"
4251 (("s.add_runtime_dependency.*") "\n")
4252 (("s.add_dependency.*") "\n"))
4253 (substitute* "Gemfile"
4255 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4258 `(("ruby-json" ,ruby-json)))
4260 `(("bundler" ,bundler)
4261 ("ruby-minitest" ,ruby-minitest)
4262 ("ruby-hoe" ,ruby-hoe)))
4263 (synopsis "Generate searchable RDoc documentation")
4265 "SDoc is an RDoc documentation generator to build searchable HTML
4266 documentation for Ruby code.")
4267 (home-page "https://github.com/voloko/sdoc")
4268 (license license:expat)))
4270 (define-public ruby-tins
4276 (uri (rubygems-uri "tins" version))
4279 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4280 (build-system ruby-build-system)
4281 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4282 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4285 `(#:tests? #f ; there are no tests
4287 (modify-phases %standard-phases
4290 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4292 (substitute* "tins.gemspec"
4293 (("\"lib/spruz\", ") ""))
4294 (invoke "gem" "build" "tins.gemspec"))))))
4295 (synopsis "Assorted tools for Ruby")
4296 (description "Tins is a Ruby library providing assorted tools.")
4297 (home-page "https://github.com/flori/tins")
4298 (license license:expat)))
4300 (define-public ruby-gem-hadar
4302 (name "ruby-gem-hadar")
4306 (uri (rubygems-uri "gem_hadar" version))
4309 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4310 (build-system ruby-build-system)
4311 ;; This gem needs itself at development time. We disable rebuilding of the
4312 ;; gemspec to avoid this loop.
4314 `(#:tests? #f ; there are no tests
4316 (modify-phases %standard-phases
4319 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4322 ("ruby-tins" ,ruby-tins)
4323 ("ruby-yard" ,ruby-yard)))
4324 (synopsis "Library for the development of Ruby gems")
4326 "This library contains some useful functionality to support the
4327 development of Ruby gems.")
4328 (home-page "https://github.com/flori/gem_hadar")
4329 (license license:expat)))
4331 (define-public ruby-minitest-tu-shim
4333 (name "ruby-minitest-tu-shim")
4337 (uri (rubygems-uri "minitest_tu_shim" version))
4340 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4341 (build-system ruby-build-system)
4344 (modify-phases %standard-phases
4345 (add-after 'unpack 'fix-test-include-path
4346 (lambda* (#:key inputs #:allow-other-keys)
4347 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4348 (substitute* "Rakefile"
4349 (("Hoe\\.add_include_dirs .*")
4350 (string-append "Hoe.add_include_dirs \""
4351 minitest "/lib/ruby/vendor_ruby"
4353 ,(package-version ruby-minitest-4)
4356 (add-before 'check 'fix-test-assumptions
4358 ;; The test output includes the file name, so a couple of tests
4359 ;; fail. Changing the regular expressions slightly fixes this
4361 (substitute* "test/test_mini_test.rb"
4362 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4363 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4364 (("gsub\\(/.*, 'FILE:LINE'\\)")
4365 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4368 `(("ruby-minitest-4" ,ruby-minitest-4)))
4370 `(("ruby-hoe" ,ruby-hoe)))
4371 (synopsis "Adapter library between minitest and test/unit")
4373 "This library bridges the gap between the small and fast minitest and
4374 Ruby's large and slower test/unit.")
4375 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4376 (license license:expat)))
4378 (define-public ruby-term-ansicolor
4380 (name "ruby-term-ansicolor")
4384 (uri (rubygems-uri "term-ansicolor" version))
4387 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4388 (build-system ruby-build-system)
4389 ;; Rebuilding the gemspec seems to require git, even though this is not a
4390 ;; git repository, so we just build the gem from the existing gemspec.
4393 (modify-phases %standard-phases
4394 (add-after 'unpack 'fix-test
4396 (substitute* "tests/hsl_triple_test.rb"
4401 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4403 `(("ruby-tins" ,ruby-tins)))
4405 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4406 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4407 (synopsis "Ruby library to control the attributes of terminal output")
4409 "This Ruby library uses ANSI escape sequences to control the attributes
4410 of terminal output.")
4411 (home-page "https://flori.github.io/term-ansicolor/")
4412 ;; There is no mention of the "or later" clause.
4413 (license license:gpl2)))
4415 (define-public ruby-terraform
4417 (name "ruby-terraform")
4422 (uri (rubygems-uri "ruby-terraform" version))
4425 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4426 (build-system ruby-build-system)
4428 '(#:tests? #f)) ; No included tests
4430 `(("ruby-lino" ,ruby-lino)))
4431 (synopsis "Ruby wrapper around the Terraform command line interface")
4433 "This package provides a Ruby wrapper around the Terraform command line
4434 interface so that Terraform can be more easily invoked from Ruby code.")
4435 (home-page "https://github.com/infrablocks/ruby_terraform")
4436 (license license:expat)))
4438 (define-public ruby-pstree
4440 (name "ruby-pstree")
4444 (uri (rubygems-uri "pstree" version))
4447 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4448 (build-system ruby-build-system)
4450 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4451 ("bundler" ,bundler)))
4452 (synopsis "Create a process tree data structure")
4454 "This library uses the output of the @code{ps} command to create a
4455 process tree data structure for the current host.")
4456 (home-page "https://github.com/flori/pstree")
4457 ;; There is no mention of the "or later" clause.
4458 (license license:gpl2)))
4460 (define-public ruby-utils
4466 (uri (rubygems-uri "utils" version))
4469 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4470 (build-system ruby-build-system)
4472 `(("ruby-tins" ,ruby-tins)
4473 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4474 ("ruby-pstree" ,ruby-pstree)
4475 ("ruby-pry-editline" ,ruby-pry-editline)))
4477 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4478 ("bundler" ,bundler)))
4479 (synopsis "Command line tools for working with Ruby")
4481 "This package provides assorted command line tools that may be useful
4482 when working with Ruby code.")
4483 (home-page "https://github.com/flori/utils")
4484 ;; There is no mention of the "or later" clause.
4485 (license license:gpl2)))
4487 (define-public ruby-jaro-winkler
4489 (name "ruby-jaro-winkler")
4494 (uri (rubygems-uri "jaro_winkler" version))
4496 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
4497 (build-system ruby-build-system)
4499 '(#:tests? #f)) ; no included tests
4500 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4502 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4503 algorithm. It is written as a C extension and will fallback to a pure Ruby
4504 implementation on platforms where this is unsupported.")
4505 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4506 (license license:expat)))
4508 (define-public ruby-json
4515 (uri (rubygems-uri "json" version))
4518 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4519 (build-system ruby-build-system)
4520 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4521 (synopsis "JSON library for Ruby")
4522 (description "This Ruby library provides a JSON implementation written as
4523 a native C extension.")
4524 (home-page "http://json-jruby.rubyforge.org/")
4525 (license (list license:ruby license:gpl2)))) ; GPL2 only
4527 (define-public ruby-json-pure
4529 (name "ruby-json-pure")
4533 (uri (rubygems-uri "json_pure" version))
4536 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
4537 (build-system ruby-build-system)
4540 (modify-phases %standard-phases
4541 (add-after 'unpack 'fix-rakefile
4543 (substitute* "Rakefile"
4544 ;; Since this is not a git repository, do not call 'git'.
4545 (("`git ls-files`") "`find . -type f |sort`")
4546 ;; Loosen dependency constraint.
4547 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4549 (add-after 'replace-git-ls-files 'regenerate-gemspec
4551 ;; Regenerate gemspec so loosened dependency constraints are
4553 (invoke "rake" "gemspec")))
4554 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4556 ;; This gemspec doesn't look to be generated by the above
4557 ;; command, so patch it separately.
4558 (substitute* "json-java.gemspec"
4559 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4560 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4563 `(("bundler" ,bundler)
4565 ("ruby-simplecov" ,ruby-simplecov)
4566 ("ruby-test-unit" ,ruby-test-unit)))
4567 (synopsis "JSON implementation in pure Ruby")
4569 "This package provides a JSON implementation written in pure Ruby.")
4570 (home-page "https://flori.github.com/json/")
4571 (license license:ruby)))
4573 (define-public ruby-jwt
4580 (uri (rubygems-uri "jwt" version))
4583 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4584 (build-system ruby-build-system)
4586 '(#:test-target "test"
4588 (modify-phases %standard-phases
4589 (add-after 'unpack 'remove-unnecessary-dependencies
4591 (substitute* "spec/spec_helper.rb"
4592 (("require 'simplecov.*") "\n")
4593 ;; Use [].each to disable running the SimpleCov configuration
4595 (("SimpleCov\\.configure") "[].each")
4596 (("require 'codeclimate-test-reporter'") "")
4597 (("require 'codacy-coverage'") "")
4598 (("Codacy::Reporter\\.start") ""))
4601 `(("bundler" ,bundler)
4602 ("ruby-rspec" ,ruby-rspec)
4603 ("ruby-rbnacl" ,ruby-rbnacl)))
4604 (synopsis "Ruby implementation of the JSON Web Token standard")
4606 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4607 @acronym{JWT, JSON Web Token} standard.")
4608 (home-page "https://github.com/jwt/ruby-jwt")
4609 (license license:expat)))
4611 ;; Even though this package only provides bindings for a Mac OSX API it is
4612 ;; required by "ruby-listen" at runtime.
4613 (define-public ruby-rb-fsevent
4615 (name "ruby-rb-fsevent")
4619 (uri (rubygems-uri "rb-fsevent" version))
4622 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4623 (build-system ruby-build-system)
4624 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4625 ;; "listen", which needs "rb-fsevent" at runtime.
4626 (arguments `(#:tests? #f))
4627 (synopsis "FSEvents API with signals catching")
4629 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4630 (home-page "https://rubygems.org/gems/rb-fsevent")
4631 (license license:expat)))
4633 (define-public ruby-listen
4635 (name "ruby-listen")
4639 ;; The gem does not include a Rakefile, so fetch from the Git
4643 (url "https://github.com/guard/listen.git")
4644 (commit (string-append "v" version))))
4645 (file-name (git-file-name name version))
4648 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
4649 (build-system ruby-build-system)
4651 `(#:test-target "spec"
4653 (modify-phases %standard-phases
4654 (add-after 'unpack 'fix-files-in-gemspec
4656 (substitute* "listen.gemspec"
4657 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
4659 (add-before 'check 'remove-unnecessary-dependencies'
4661 (substitute* "Rakefile"
4662 ;; Rubocop is for code linting, and is unnecessary for running
4664 ((".*rubocop.*") ""))
4667 `(("bundler" ,bundler)
4668 ("ruby-rspec" ,ruby-rspec)))
4670 `(;; ruby-thor is used for the command line interface, and is referenced
4671 ;; in the wrapper, and therefore just needs to be an input.
4672 ("ruby-thor" ,ruby-thor)))
4674 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
4675 ("ruby-rb-inotify" ,ruby-rb-inotify)
4676 ("ruby-dep" ,ruby-dep)))
4677 (synopsis "Listen to file modifications")
4678 (description "The Listen gem listens to file modifications and notifies
4679 you about the changes.")
4680 (home-page "https://github.com/guard/listen")
4681 (license license:expat)))
4683 (define-public ruby-loofah
4685 (name "ruby-loofah")
4690 (uri (rubygems-uri "loofah" version))
4693 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4694 (build-system ruby-build-system)
4697 (modify-phases %standard-phases
4698 (add-after 'unpack 'remove-unnecessary-dependencies
4700 ;; concourse is a development tool which is unused, so remove it
4701 ;; so it's not required.
4702 (substitute* "Gemfile"
4703 ((".*\"concourse\".*") "\n"))
4704 (substitute* "Rakefile"
4705 (("require 'concourse'") "")
4706 (("Concourse\\.new.*") "\n"))
4709 `(("ruby-hoe" ,ruby-hoe)
4710 ("ruby-rr" ,ruby-rr)))
4712 `(("ruby-nokogiri" ,ruby-nokogiri)
4713 ("ruby-crass" ,ruby-crass)))
4714 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4716 "Loofah is a general library for manipulating and transforming HTML/XML
4717 documents and fragments. It's built on top of Nokogiri and libxml2.")
4718 (home-page "https://github.com/flavorjones/loofah")
4719 (license license:expat)))
4721 (define-public ruby-activesupport
4723 (name "ruby-activesupport")
4728 (uri (rubygems-uri "activesupport" version))
4731 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4732 (build-system ruby-build-system)
4735 (modify-phases %standard-phases
4738 ;; There are no tests, instead attempt to load the library.
4739 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4741 `(("ruby-concurrent" ,ruby-concurrent)
4742 ("ruby-i18n" ,ruby-i18n)
4743 ("ruby-minitest" ,ruby-minitest)
4744 ("ruby-tzinfo" ,ruby-tzinfo)
4745 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4746 (synopsis "Ruby on Rails utility library")
4747 (description "ActiveSupport is a toolkit of support libraries and Ruby
4748 core extensions extracted from the Rails framework. It includes support for
4749 multibyte strings, internationalization, time zones, and testing.")
4750 (home-page "http://www.rubyonrails.org")
4751 (license license:expat)))
4753 (define-public ruby-crass
4759 (uri (rubygems-uri "crass" version))
4762 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4763 (build-system ruby-build-system)
4765 `(("bundler" ,bundler)
4766 ("ruby-minitest" ,ruby-minitest)))
4767 (synopsis "Pure Ruby CSS parser")
4769 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4770 (home-page "https://github.com/rgrove/crass/")
4771 (license license:expat)))
4773 (define-public ruby-nokogumbo
4774 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4776 (name "ruby-nokogumbo")
4777 (version (string-append "1.4.7-1." (string-take commit 8)))
4779 ;; We use the git reference, because there's no Rakefile in the
4780 ;; published gem and the tarball on Github is outdated.
4783 (url "https://github.com/rubys/nokogumbo.git")
4784 (commit "d56f954d20a")))
4785 (file-name (string-append name "-" version "-checkout"))
4788 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4789 (build-system ruby-build-system)
4791 `(#:modules ((guix build ruby-build-system)
4795 (modify-phases %standard-phases
4796 (add-after 'unpack 'build-gemspec
4798 (substitute* "Rakefile"
4799 ;; Build Makefile even without a copy of gumbo-parser sources
4800 (("'gumbo-parser/src',") "")
4801 ;; We don't bundle gumbo-parser sources
4802 (("'gumbo-parser/src/\\*',") "")
4803 (("'gumbo-parser/visualc/include/\\*',") "")
4804 ;; The definition of SOURCES will be cut in gemspec, and
4805 ;; "FileList" will be undefined.
4806 (("SOURCES \\+ FileList\\[")
4807 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4809 ;; Copy the Rakefile and cut out the gemspec.
4810 (copy-file "Rakefile" ".gemspec")
4811 (with-atomic-file-replacement ".gemspec"
4813 (let loop ((line (read-line in 'concat))
4815 (if (eof-object? line)
4817 (let ((skip-next? (if skipping?
4818 (not (string-prefix? "SPEC =" line))
4819 (string-prefix? "end" line))))
4820 (when (or (not skipping?)
4821 (and skipping? (not skip-next?)))
4822 (format #t "~a" line)
4824 (loop (read-line in 'concat) skip-next?))))))
4827 `(("gumbo-parser" ,gumbo-parser)))
4829 `(("ruby-nokogiri" ,ruby-nokogiri)))
4830 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4832 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4833 access the result as a Nokogiri parsed document.")
4834 (home-page "https://github.com/rubys/nokogumbo/")
4835 (license license:asl2.0))))
4837 (define-public ruby-sanitize
4839 (name "ruby-sanitize")
4843 ;; The gem does not include the Rakefile, so we download the
4844 ;; release tarball from Github.
4845 (uri (string-append "https://github.com/rgrove/"
4846 "sanitize/archive/v" version ".tar.gz"))
4847 (file-name (string-append name "-" version ".tar.gz"))
4850 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4851 (build-system ruby-build-system)
4853 `(("ruby-crass" ,ruby-crass)
4854 ("ruby-nokogiri" ,ruby-nokogiri)
4855 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4857 `(("bundler" ,bundler)
4858 ("ruby-minitest" ,ruby-minitest)
4859 ("ruby-redcarpet" ,ruby-redcarpet)
4860 ("ruby-yard" ,ruby-yard)))
4861 (synopsis "Whitelist-based HTML and CSS sanitizer")
4863 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4864 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4865 unacceptable HTML and/or CSS from a string.")
4866 (home-page "https://github.com/rgrove/sanitize/")
4867 (license license:expat)))
4869 (define-public ruby-oj
4876 ;; Version on rubygems.org does not contain Rakefile, so download from
4879 (url "https://github.com/ohler55/oj")
4880 (commit (string-append "v" version))))
4881 (file-name (git-file-name name version))
4884 "1fqx58pwjiln7053lw2jy6ns4agcpxq2ac4f2fkd2ca3fxwpmh03"))))
4885 (build-system ruby-build-system)
4887 '(#:test-target "test_all"
4889 (modify-phases %standard-phases
4890 (add-before 'check 'disable-bundler
4892 (substitute* "Rakefile"
4893 (("Bundler\\.with_clean_env") "1.times")
4894 (("bundle exec ") "")))))))
4896 `(("bundler" ,bundler)
4897 ("ruby-rspec" ,ruby-rspec)
4898 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4899 (synopsis "JSON parser for Ruby optimized for speed")
4901 "Oj is a JSON parser and generator for Ruby, where the encoding and
4902 decoding of JSON is implemented as a C extension to Ruby.")
4903 (home-page "http://www.ohler.com/oj/")
4904 (license (list license:expat ; Ruby code
4905 license:bsd-3)))) ; extension code
4907 (define-public ruby-ox
4914 (uri (rubygems-uri "ox" version))
4917 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4918 (build-system ruby-build-system)
4920 '(#:tests? #f)) ; no tests
4921 (synopsis "Optimized XML library for Ruby")
4923 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4924 written as a native C extension. It was designed to be an alternative to
4925 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4926 alternative to Marshal for Object serialization. ")
4927 (home-page "http://www.ohler.com/ox")
4928 (license license:expat)))
4930 (define-public ruby-redcloth
4932 (name "ruby-redcloth")
4936 (uri (rubygems-uri "RedCloth" version))
4939 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4940 (build-system ruby-build-system)
4942 `(#:tests? #f ; no tests
4944 (modify-phases %standard-phases
4945 ;; Redcloth has complicated rake tasks to build various versions for
4946 ;; multiple targets using RVM. We don't want this so we just use the
4947 ;; existing gemspec.
4950 (invoke "gem" "build" "redcloth.gemspec"))))))
4952 `(("bundler" ,bundler)
4953 ("ruby-diff-lcs" ,ruby-diff-lcs)
4954 ("ruby-rspec-2" ,ruby-rspec-2)))
4955 (synopsis "Textile markup language parser for Ruby")
4957 "RedCloth is a Ruby parser for the Textile markup language.")
4958 (home-page "http://redcloth.org")
4959 (license license:expat)))
4961 (define-public ruby-pg
4968 (uri (rubygems-uri "pg" version))
4971 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
4972 (build-system ruby-build-system)
4974 '(#:test-target "spec"))
4976 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4977 ("ruby-hoe" ,ruby-hoe)
4978 ("ruby-rspec" ,ruby-rspec)))
4980 `(("postgresql" ,postgresql)))
4981 (synopsis "Ruby interface to PostgreSQL")
4982 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4983 with PostgreSQL 9.0 and later.")
4984 (home-page "https://bitbucket.org/ged/ruby-pg")
4985 (license license:ruby)))
4987 (define-public ruby-byebug
4989 (name "ruby-byebug")
4994 (uri (rubygems-uri "byebug" version))
4997 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4998 (build-system ruby-build-system)
5000 '(#:tests? #f)) ; no tests
5001 (synopsis "Debugger for Ruby 2")
5002 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
5003 TracePoint C API for execution control and the Debug Inspector C API for call
5004 stack navigation. The core component provides support that front-ends can
5005 build on. It provides breakpoint handling and bindings for stack frames among
5006 other things and it comes with a command line interface.")
5007 (home-page "https://github.com/deivid-rodriguez/byebug")
5008 (license license:bsd-2)))
5010 (define-public ruby-netrc
5016 (uri (rubygems-uri "netrc" version))
5019 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
5020 (build-system ruby-build-system)
5023 (modify-phases %standard-phases
5025 ;; There is no Rakefile and minitest can only run one file at once,
5026 ;; so we have to iterate over all test files.
5029 (invoke "ruby" "-Itest" file))
5030 (find-files "./test" "test_.*\\.rb")))))))
5032 `(("ruby-minitest" ,ruby-minitest)))
5033 (synopsis "Library to read and update netrc files")
5035 "This library can read and update netrc files, preserving formatting
5036 including comments and whitespace.")
5037 (home-page "https://github.com/geemus/netrc")
5038 (license license:expat)))
5040 (define-public ruby-unf-ext
5042 (name "ruby-unf-ext")
5046 (uri (rubygems-uri "unf_ext" version))
5049 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
5050 (build-system ruby-build-system)
5053 (modify-phases %standard-phases
5054 (add-after 'build 'build-ext
5055 (lambda _ (invoke "rake" "compile:unf_ext"))))))
5057 `(("bundler" ,bundler)
5058 ("ruby-rake-compiler" ,ruby-rake-compiler)
5059 ("ruby-test-unit" ,ruby-test-unit)))
5060 (synopsis "Unicode normalization form support library")
5062 "This package provides unicode normalization form support for Ruby.")
5063 (home-page "https://github.com/knu/ruby-unf_ext")
5064 (license license:expat)))
5066 (define-public ruby-tdiff
5067 ;; Use a newer than released snapshot so that rspec-2 is not required.
5068 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5071 (version (string-append "0.3.3-1." (string-take commit 8)))
5075 (url "https://github.com/postmodern/tdiff.git")
5077 (file-name (string-append name "-" version "-checkout"))
5080 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5081 (build-system ruby-build-system)
5083 `(("ruby-rspec" ,ruby-rspec)
5084 ("ruby-yard" ,ruby-yard)
5085 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5086 (synopsis "Calculate the differences between two tree-like structures")
5088 "This library provides functions to calculate the differences between two
5089 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5090 (home-page "https://github.com/postmodern/tdiff")
5091 (license license:expat))))
5093 (define-public ruby-nokogiri-diff
5094 ;; Use a newer than released snapshot so that rspec-2 is not required.
5095 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5097 (name "ruby-nokogiri-diff")
5098 (version (string-append "0.2.0-1." (string-take commit 8)))
5102 (url "https://github.com/postmodern/nokogiri-diff.git")
5104 (file-name (string-append name "-" version "-checkout"))
5107 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5108 (build-system ruby-build-system)
5110 `(("ruby-tdiff" ,ruby-tdiff)
5111 ("ruby-nokogiri" ,ruby-nokogiri)))
5113 `(("ruby-rspec" ,ruby-rspec)
5114 ("ruby-yard" ,ruby-yard)
5115 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5116 (synopsis "Calculate the differences between two XML/HTML documents")
5118 "@code{Nokogiri::Diff} adds the ability to calculate the
5119 differences (added or removed nodes) between two XML/HTML documents.")
5120 (home-page "https://github.com/postmodern/nokogiri-diff")
5121 (license license:expat))))
5123 (define-public ruby-racc
5130 (uri (rubygems-uri "racc" version))
5133 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5134 (build-system ruby-build-system)
5136 `(("ruby-hoe" ,ruby-hoe)
5137 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5138 (synopsis "LALR(1) parser generator for Ruby")
5140 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5141 generates Ruby program.")
5142 (home-page "http://i.loveruby.net/en/projects/racc/")
5144 ;; Generally licensed under the LGPL2.1, and some files also
5145 ;; available under the same license as Ruby.
5149 (define-public ruby-rack
5156 ;; Download from GitHub so that the patch can be applied.
5158 (url "https://github.com/rack/rack")
5160 (file-name (git-file-name name version))
5163 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5164 ;; Ignore test which fails inside the build environment but works
5166 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5167 (build-system ruby-build-system)
5170 (modify-phases %standard-phases
5171 (add-before 'check 'fix-tests
5173 ;; A few of the tests use the length of a file on disk for
5174 ;; Content-Length and Content-Range headers. However, this file
5175 ;; has a shebang in it which an earlier phase patches, growing
5176 ;; the file size from 193 to 239 bytes when the store prefix is
5178 (let ((size-diff (- (string-length (which "ruby"))
5179 (string-length "/usr/bin/env ruby"))))
5180 (substitute* '("test/spec_file.rb")
5182 (number->string (+ 193 size-diff)))
5183 (("bytes(.)22-33" all delimiter)
5184 (string-append "bytes"
5186 (number->string (+ 22 size-diff))
5188 (number->string (+ 33 size-diff))))))
5190 (add-before 'reset-gzip-timestamps 'make-files-writable
5191 (lambda* (#:key outputs #:allow-other-keys)
5192 ;; Make sure .gz files are writable so that the
5193 ;; 'reset-gzip-timestamps' phase can do its work.
5194 (let ((out (assoc-ref outputs "out")))
5195 (for-each make-file-writable
5196 (find-files out "\\.gz$"))
5199 `(("ruby-minitest" ,ruby-minitest)
5200 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5203 `(("ruby-concurrent" ,ruby-concurrent)))
5204 (synopsis "Unified web application interface for Ruby")
5205 (description "Rack provides a minimal, modular and adaptable interface for
5206 developing web applications in Ruby. By wrapping HTTP requests and responses,
5207 it unifies the API for web servers, web frameworks, and software in between
5208 into a single method call.")
5209 (home-page "https://rack.github.io/")
5210 (license license:expat)))
5212 (define-public ruby-rack-test
5214 (name "ruby-rack-test")
5219 (uri (rubygems-uri "rack-test" version))
5222 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5223 (build-system ruby-build-system)
5225 ;; Disable tests because of circular dependencies: requires sinatra,
5226 ;; which requires rack-protection, which requires rack-test. Instead
5227 ;; simply require the library.
5229 (modify-phases %standard-phases
5232 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5234 `(("ruby-rack" ,ruby-rack)))
5235 (synopsis "Testing API for Rack applications")
5237 "Rack::Test is a small, simple testing API for Rack applications. It can
5238 be used on its own or as a reusable starting point for Web frameworks and
5239 testing libraries to build on.")
5240 (home-page "https://github.com/rack-test/rack-test")
5241 (license license:expat)))
5243 (define-public ruby-rack-protection
5245 (name "ruby-rack-protection")
5250 (uri (rubygems-uri "rack-protection" version))
5253 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5254 (build-system ruby-build-system)
5256 '(;; Tests missing from the gem.
5259 `(("ruby-rack" ,ruby-rack)))
5261 `(("bundler" ,bundler)
5262 ("ruby-rspec" ,ruby-rspec-2)
5263 ("ruby-rack-test" ,ruby-rack-test)))
5264 (synopsis "Rack middleware that protects against typical web attacks")
5265 (description "Rack middleware that can be used to protect against typical
5266 web attacks. It can protect all Rack apps, including Rails. For instance, it
5267 protects against cross site request forgery, cross site scripting,
5268 clickjacking, directory traversal, session hijacking and IP spoofing.")
5269 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5270 (license license:expat)))
5272 (define-public ruby-rainbow
5274 (name "ruby-rainbow")
5279 (uri (rubygems-uri "rainbow" version))
5282 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5283 (build-system ruby-build-system)
5286 (modify-phases %standard-phases
5287 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5290 (lambda* (#:key tests? #:allow-other-keys)
5295 `(("bundler" ,bundler)
5296 ("ruby-rspec" ,ruby-rspec)))
5297 (synopsis "Colorize printed text on ANSI terminals")
5299 "@code{rainbow} provides a string presenter object to colorize strings by
5300 wrapping them in ANSI escape codes.")
5301 (home-page "https://github.com/sickill/rainbow")
5302 (license license:expat)))
5304 (define-public ruby-rr
5311 (uri (rubygems-uri "rr" version))
5314 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5315 (build-system ruby-build-system)
5317 '(#:tests? #f)) ; test files not included
5319 `(("bundler" ,bundler)
5320 ("ruby-rspec" ,ruby-rspec)))
5321 (synopsis "Ruby test double framework")
5323 "RR is a test double framework that features a rich selection of double
5324 techniques and a terse syntax.")
5325 (home-page "https://rr.github.io/rr/")
5326 (license license:expat)))
5328 (define-public ruby-rest-client
5330 (name "ruby-rest-client")
5335 (uri (rubygems-uri "rest-client" version))
5338 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5339 (build-system ruby-build-system)
5342 (modify-phases %standard-phases
5343 (add-before 'check 'remove-unnecessary-development-dependencies
5345 (substitute* "rest-client.gemspec"
5346 ;; Remove rubocop as it's unused. Rubocop also indirectly
5347 ;; depends on this package through ruby-parser and ruby-ast so
5348 ;; this avoids a dependency loop.
5349 ((".*rubocop.*") "\n")
5350 ;; Remove pry as it's unused, it's a debugging tool
5352 ;; Remove an unnecessarily strict rdoc dependency
5353 ((".*rdoc.*") "\n"))
5355 (add-before 'check 'delete-network-dependent-tests
5357 (delete-file "spec/integration/request_spec.rb")
5358 (delete-file "spec/integration/httpbin_spec.rb")
5361 `(("ruby-http-cookie" ,ruby-http-cookie)
5362 ("ruby-mime-types" ,ruby-mime-types)
5363 ("ruby-netrc" ,ruby-netrc)))
5365 `(("bundler" ,bundler)
5366 ("ruby-webmock" ,ruby-webmock-2)
5367 ("ruby-rspec" ,ruby-rspec)))
5368 (synopsis "Simple HTTP and REST client for Ruby")
5370 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5371 inspired by the Sinatra microframework style of specifying actions:
5372 @code{get}, @code{put}, @code{post}, @code{delete}.")
5373 (home-page "https://github.com/rest-client/rest-client")
5374 (license license:expat)))
5376 (define-public ruby-rubocop
5378 (name "ruby-rubocop")
5383 (uri (rubygems-uri "rubocop" version))
5386 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
5387 (build-system ruby-build-system)
5389 '(;; No included tests
5392 `(("ruby-parser" ,ruby-parser)
5393 ("ruby-powerpack" ,ruby-powerpack)
5394 ("ruby-rainbow" ,ruby-rainbow)
5395 ("ruby-progressbar" ,ruby-progressbar)
5396 ("ruby-parallel" ,ruby-parallel)
5397 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5398 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5399 (synopsis "Ruby code style checking tool")
5401 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5402 the community-driven Ruby Style Guide.")
5403 (home-page "https://github.com/rubocop-hq/rubocop")
5404 (license license:expat)))
5406 (define-public ruby-contest
5408 (name "ruby-contest")
5413 (uri (rubygems-uri "contest" version))
5416 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5417 (build-system ruby-build-system)
5418 (synopsis "Write declarative tests using nested contexts")
5420 "Contest allows writing declarative @code{Test::Unit} tests using nested
5421 contexts without performance penalties.")
5422 (home-page "https://github.com/citrusbyte/contest")
5423 (license license:expat)))
5425 (define-public ruby-creole
5427 (name "ruby-creole")
5432 (uri (rubygems-uri "creole" version))
5435 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5436 (build-system ruby-build-system)
5438 `(("ruby-bacon" ,ruby-bacon)))
5439 (synopsis "Creole markup language converter")
5441 "Creole is a lightweight markup language and this library for converting
5442 creole to @code{HTML}.")
5443 (home-page "https://github.com/minad/creole")
5444 (license license:ruby)))
5446 (define-public ruby-docile
5448 (name "ruby-docile")
5453 (uri (rubygems-uri "docile" version))
5456 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5457 (build-system ruby-build-system)
5459 '(#:tests? #f)) ; needs github-markup, among others
5460 (synopsis "Ruby EDSL helper library")
5461 (description "Docile is a Ruby library that provides an interface for
5462 creating embedded domain specific languages (EDSLs) that manipulate existing
5464 (home-page "https://ms-ati.github.io/docile/")
5465 (license license:expat)))
5467 (define-public ruby-gherkin
5469 (name "ruby-gherkin")
5474 (uri (rubygems-uri "gherkin" version))
5477 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5478 (build-system ruby-build-system)
5480 `(("bundler" ,bundler)))
5482 '(#:tests? #f)) ; needs simplecov, among others
5483 (synopsis "Gherkin parser for Ruby")
5484 (description "Gherkin is a parser and compiler for the Gherkin language.
5485 It is intended be used by all Cucumber implementations to parse
5486 @file{.feature} files.")
5487 (home-page "https://github.com/cucumber-attic/gherkin")
5488 (license license:expat)))
5490 (define-public ruby-aruba
5497 (uri (rubygems-uri "aruba" version))
5500 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
5501 (build-system ruby-build-system)
5503 '(#:test-target "spec"
5505 (modify-phases %standard-phases
5506 (add-after 'unpack 'patch
5508 (substitute* "spec/aruba/api_spec.rb"
5509 ;; This resolves some errors in the specs
5511 ;; undefined method `parse' for Time:Class
5512 (("require 'spec_helper'")
5513 "require 'spec_helper'\nrequire 'time'"))
5514 ;; Avoid shebang issues in this spec file
5515 (substitute* "spec/aruba/matchers/command_spec.rb"
5516 (("/usr/bin/env bash")
5519 (add-before 'check 'remove-unnecessary-dependencies
5521 (substitute* "Gemfile"
5522 ((".*byebug.*") "\n")
5526 ((".*kramdown.*") "\n")
5527 ((".*rubocop.*") "\n")
5528 ((".*cucumber-pro.*") "\n")
5529 ((".*cucumber.*") "\n")
5530 ((".*license_finder.*") "\n")
5531 ((".*rake.*") "gem 'rake'\n")
5532 ((".*relish.*") "\n"))
5533 (substitute* "aruba.gemspec"
5534 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5535 "spec.add_runtime_dependency 'cucumber'"))
5537 (add-before 'check 'set-home
5538 (lambda _ (setenv "HOME" "/tmp") #t)))))
5540 `(("bundler" ,bundler)
5541 ("ruby-rspec" ,ruby-rspec)
5542 ("ruby-fuubar" ,ruby-fuubar)
5543 ("ruby-simplecov" ,ruby-simplecov)))
5545 `(("ruby-childprocess" ,ruby-childprocess)
5546 ("ruby-contracts" ,ruby-contracts)
5547 ("ruby-cucumber" ,ruby-cucumber)
5548 ("ruby-ffi" ,ruby-ffi)
5549 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5550 ("ruby-thor" ,ruby-thor)
5551 ("ruby-yard" ,ruby-yard)))
5552 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5554 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5555 command-line applications. It supports applications written in any
5557 (home-page "https://github.com/cucumber/aruba")
5558 (license license:expat)))
5560 ;; A version of ruby-aruba without tests run so that circular dependencies can
5562 (define ruby-aruba-without-tests
5564 (inherit ruby-aruba)
5565 (arguments '(#:tests? #f))
5567 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5568 ,@(alist-delete "ruby-cucumber"
5569 (package-propagated-inputs ruby-aruba))))
5570 (native-inputs '())))
5572 (define-public ruby-cucumber
5574 (name "ruby-cucumber")
5580 (url "https://github.com/cucumber/cucumber-ruby.git")
5581 (commit (string-append "v" version))))
5582 (file-name (git-file-name name version))
5585 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5586 (build-system ruby-build-system)
5588 '(#:test-target "spec"
5590 (modify-phases %standard-phases
5591 ;; Don't run or require rubocop, the code linting tool, as this is a
5593 (add-after 'unpack 'dont-run-rubocop
5595 (substitute* "Rakefile"
5596 ((".*rubocop/rake\\_task.*") "")
5597 ((".*RuboCop.*") ""))
5600 `(("ruby-builder" ,ruby-builder)
5601 ("ruby-cucumber-core" ,ruby-cucumber-core)
5602 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5603 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5604 ("ruby-diff-lcs" ,ruby-diff-lcs)
5605 ("ruby-gherkin" ,ruby-gherkin)
5606 ("ruby-multi-json" ,ruby-multi-json)
5607 ("ruby-multi-test" ,ruby-multi-test)))
5609 `(("bundler" ,bundler)
5610 ;; Use a untested version of aruba, to avoid a circular dependency, as
5611 ;; ruby-aruba depends on ruby-cucumber.
5612 ("ruby-aruba", ruby-aruba-without-tests)
5613 ("ruby-rspec" ,ruby-rspec)
5614 ("ruby-pry" ,ruby-pry)
5615 ("ruby-nokogiri" ,ruby-nokogiri)))
5616 (synopsis "Describe automated tests in plain language")
5618 "Cucumber is a tool for running automated tests written in plain
5619 language. It's designed to support a Behaviour Driven Development (BDD)
5620 software development workflow.")
5621 (home-page "https://cucumber.io/")
5622 (license license:expat)))
5624 (define ruby-cucumber-without-tests
5625 (package (inherit ruby-cucumber)
5631 (define-public ruby-cucumber-core
5633 (name "ruby-cucumber-core")
5634 ;; Stick to major version 3, until version 4 of Cucumber is released.
5639 (uri (rubygems-uri "cucumber-core" version))
5642 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5643 (build-system ruby-build-system)
5645 `(("ruby-backports" ,ruby-backports)
5646 ("ruby-gherkin" ,ruby-gherkin)
5647 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5649 `(("bundler" ,bundler)))
5651 '(#:tests? #f)) ; needs simplecov, among others
5652 (synopsis "Core library for the Cucumber BDD app")
5653 (description "Cucumber is a tool for running automated tests
5654 written in plain language. Because they're written in plain language,
5655 they can be read by anyone on your team. Because they can be read by
5656 anyone, you can use them to help improve communication, collaboration
5657 and trust on your team.")
5658 (home-page "https://cucumber.io/")
5659 (license license:expat)))
5661 (define-public ruby-cucumber-expressions
5663 (name "ruby-cucumber-expressions")
5668 (uri (rubygems-uri "cucumber-expressions" version))
5671 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5672 (build-system ruby-build-system)
5674 '(#:test-target "spec"))
5676 `(("bundler" ,bundler)
5677 ("ruby-rspec" ,ruby-rspec)
5678 ("ruby-simplecov" ,ruby-simplecov)))
5679 (synopsis "Simpler alternative to Regular Expressions")
5680 (description "Cucumber Expressions offer similar functionality to Regular
5681 Expressions, with a syntax that is easier to read and write. Cucumber
5682 Expressions are extensible with parameter types.")
5683 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5684 (license license:expat)))
5686 (define-public ruby-cucumber-wire
5688 (name "ruby-cucumber-wire")
5689 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5690 ;; 3, and Cucumber 4 hasn't been released yet.
5695 (uri (rubygems-uri "cucumber-wire" version))
5698 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5699 (build-system ruby-build-system)
5701 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5702 ;; which would lead to a circular dependency.
5704 #:test-target "default"
5706 (modify-phases %standard-phases
5707 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5709 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5712 `(("bundler" ,bundler)
5713 ("ruby-rspec" ,ruby-rspec)))
5714 (synopsis "Cucumber wire protocol plugin")
5716 "Cucumber's wire protocol allows step definitions to be implemented and
5717 invoked on any platform.")
5718 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5719 (license license:expat)))
5721 (define-public ruby-cucumber-tag-expressions
5723 (name "ruby-cucumber-tag-expressions")
5728 (uri (rubygems-uri "cucumber-tag_expressions" version))
5731 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5732 (build-system ruby-build-system)
5735 (modify-phases %standard-phases
5741 `(("ruby-rspec" ,ruby-rspec)))
5742 (synopsis "Cucumber tag expressions for Ruby")
5744 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5745 boolean expression used by Cucumber.")
5746 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5747 (license license:expat)))
5749 (define-public ruby-bindex
5751 (name "ruby-bindex")
5756 (uri (rubygems-uri "bindex" version))
5759 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
5760 (build-system ruby-build-system)
5762 '(#:test-target "default"))
5764 `(("bundler" ,bundler)
5765 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5766 (synopsis "Provides access for bindings relating to Ruby exceptions")
5768 "@code{bindex} provides a way to access the bindings that relate to
5769 exceptions in Ruby, providing more information about the context in which the
5770 exception occurred.")
5771 (home-page "https://github.com/gsamokovarov/bindex")
5772 (license license:expat)))
5774 (define-public ruby-bio-logger
5776 (name "ruby-bio-logger")
5781 (uri (rubygems-uri "bio-logger" version))
5784 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5785 (build-system ruby-build-system)
5787 `(#:tests? #f)) ; rake errors, missing shoulda
5789 `(("ruby-log4r" ,ruby-log4r)))
5790 (synopsis "Log4r wrapper for Ruby")
5791 (description "Bio-logger is a wrapper around Log4r adding extra logging
5792 features such as filtering and fine grained logging.")
5793 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5794 (license license:expat)))
5796 (define-public ruby-yajl-ruby
5798 (name "ruby-yajl-ruby")
5803 (uri (rubygems-uri "yajl-ruby" version))
5806 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5807 (build-system ruby-build-system)
5809 '(#:test-target "spec"
5811 (modify-phases %standard-phases
5812 (add-before 'check 'patch-test-to-update-load-path
5814 (substitute* "spec/parsing/large_number_spec.rb"
5815 (("require \"yajl\"")
5816 "$LOAD_PATH << 'lib'; require 'yajl'"))
5819 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5820 ("ruby-rspec" ,ruby-rspec)))
5821 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5823 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5824 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5827 A modified copy of yajl is used, and included in the package.")
5828 (home-page "https://github.com/brianmario/yajl-ruby")
5829 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5830 license:bsd-3)))) ; Included, modified copy of yajl
5832 (define-public ruby-yard
5839 ;; Tests do not pass if we build from the distributed gem.
5841 (url "https://github.com/lsegal/yard")
5842 (commit (string-append "v" version))))
5843 (file-name (git-file-name name version))
5846 "1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
5847 (build-system ruby-build-system)
5850 (modify-phases %standard-phases
5853 ;; Delete the Gemfile to avoid errors relating to it
5854 (delete-file "Gemfile")
5855 ;; $HOME needs to be set to somewhere writeable for tests to run
5856 (setenv "HOME" "/tmp")
5857 ;; Run tests without using 'rake' to avoid dependencies.
5858 (invoke "rspec"))))))
5860 `(("ruby-rspec" ,ruby-rspec)
5861 ("ruby-rack" ,ruby-rack)
5862 ("ruby-redcloth" ,ruby-redcloth)
5863 ("ruby-asciidoc" ,ruby-asciidoctor)))
5864 (synopsis "Documentation generation tool for Ruby")
5866 "YARD is a documentation generation tool for the Ruby programming
5867 language. It enables the user to generate consistent, usable documentation
5868 that can be exported to a number of formats very easily, and also supports
5869 extending for custom Ruby constructs such as custom class level definitions.")
5870 (home-page "https://yardoc.org")
5871 (license license:expat)))
5873 (define-public ruby-clap
5879 (uri (rubygems-uri "clap" version))
5882 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5883 (build-system ruby-build-system)
5884 ;; Clap needs cutest for running tests, but cutest needs clap.
5885 (arguments `(#:tests? #f))
5886 (synopsis "Command line argument parsing for simple applications")
5888 "Clap provides command line argument parsing features. It covers the
5889 simple case of executing code based on the flags or parameters passed.")
5890 (home-page "https://github.com/djanowski/cutest")
5891 (license license:expat)))
5893 (define-public ruby-cutest
5895 (name "ruby-cutest")
5899 (uri (rubygems-uri "cutest" version))
5902 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5903 (build-system ruby-build-system)
5905 `(("ruby-clap" ,ruby-clap)))
5906 (synopsis "Run tests in separate processes")
5908 "Cutest runs tests in separate processes to avoid shared state.")
5909 (home-page "https://github.com/djanowski/cutest")
5910 (license license:expat)))
5912 (define-public ruby-pygmentize
5914 (name "ruby-pygmentize")
5918 (uri (rubygems-uri "pygmentize" version))
5921 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5922 (build-system ruby-build-system)
5925 (modify-phases %standard-phases
5926 (add-after 'unpack 'fix-pygmentize-path
5928 (substitute* "lib/pygmentize.rb"
5929 (("\"/usr/bin/env python.*")
5930 (string-append "\"" (which "pygmentize") "\"\n")))
5932 (add-after 'build 'do-not-use-vendor-directory
5934 ;; Remove bundled pygments sources
5935 ;; FIXME: ruby-build-system does not support snippets.
5936 (delete-file-recursively "vendor")
5937 (substitute* "pygmentize.gemspec"
5938 (("\"vendor/\\*\\*/\\*\",") ""))
5941 `(("pygments" ,python-pygments)))
5943 `(("ruby-cutest" ,ruby-cutest)
5944 ("ruby-nokogiri" ,ruby-nokogiri)))
5945 (synopsis "Thin Ruby wrapper around pygmentize")
5947 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5949 (home-page "https://github.com/djanowski/pygmentize")
5950 (license license:expat)))
5952 (define-public ruby-eventmachine
5954 (name "ruby-eventmachine")
5959 (uri (rubygems-uri "eventmachine" version))
5962 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5963 (build-system ruby-build-system)
5965 '(#:tests? #f)) ; test suite tries to connect to google.com
5967 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5968 (synopsis "Single-threaded network event framework for Ruby")
5970 "EventMachine implements a single-threaded engine for arbitrary network
5971 communications. EventMachine wraps all interactions with sockets, allowing
5972 programs to concentrate on the implementation of network protocols. It can be
5973 used to create both network servers and clients.")
5974 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5975 (home-page "https://github.com/eventmachine/eventmachine")
5976 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5978 (define-public ruby-ruby-engine
5980 (name "ruby-ruby-engine")
5985 (uri (rubygems-uri "ruby_engine" version))
5988 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5989 (build-system ruby-build-system)
5992 (modify-phases %standard-phases
5993 (add-before 'check 'clean-up
5995 (delete-file "Gemfile.lock")
5996 (substitute* "ruby_engine.gemspec"
5997 ;; Remove unnecessary imports that would entail further
6000 ((".*<rubygems-tasks.*") "")
6001 ;; Remove extraneous .gem file
6002 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
6003 ;; Soften rake dependency
6004 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
6005 "%q<rake>.freeze, [\">= 10.0\"]")
6006 ;; Soften the rspec dependency
6007 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
6008 "%q<rspec>.freeze, [\">= 2.4\"]"))
6009 (substitute* "Rakefile"
6010 (("require 'rubygems/tasks'") "")
6011 (("Gem::Tasks.new") ""))
6012 ;; Remove extraneous .gem file that otherwise gets installed.
6013 (delete-file "pkg/ruby_engine-1.0.0.gem")
6016 `(("bundler" ,bundler)
6017 ("ruby-rake" ,ruby-rake)
6018 ("ruby-rspec" ,ruby-rspec)))
6019 (synopsis "Simplifies checking for Ruby implementation")
6021 "@code{ruby_engine} provides an RubyEngine class that can be used to
6022 check which implementation of Ruby is in use. It can provide the interpreter
6023 name and provides query methods such as @{RubyEngine.mri?}.")
6024 (home-page "https://github.com/janlelis/ruby_engine")
6025 (license license:expat)))
6027 (define-public ruby-turn
6034 (uri (rubygems-uri "turn" version))
6037 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
6038 (build-system ruby-build-system)
6041 (modify-phases %standard-phases
6042 ;; Tests fail because turn changes its environment so can no longer
6043 ;; find test/unit. Instead simply test if the executable runs
6047 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
6049 `(("ruby-ansi" ,ruby-ansi)
6050 ("ruby-minitest" ,ruby-minitest-4)))
6051 (synopsis "Alternate set of alternative runners for MiniTest")
6053 "TURN provides a set of alternative runners for MiniTest which are both
6054 colorful and informative. TURN displays each test on a separate line with
6055 failures being displayed immediately instead of at the end of the tests. Note
6056 that TURN is no longer being maintained.")
6057 (home-page "https://rubygems.org/gems/turn")
6058 (license license:expat)))
6060 (define-public ruby-mimemagic
6062 (name "ruby-mimemagic")
6067 (uri (rubygems-uri "mimemagic" version))
6069 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
6070 (build-system ruby-build-system)
6073 (modify-phases %standard-phases
6074 ;; This phase breaks the tests, as it patches some of the test data.
6075 (delete 'patch-source-shebangs))))
6077 `(("ruby-bacon" ,ruby-bacon)))
6078 (synopsis "Ruby library for MIME detection by extension or content")
6080 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
6081 extension or content, using the freedesktop.org.xml shared-mime-info
6083 (home-page "https://github.com/minad/mimemagic")
6084 (license license:expat)))
6086 (define-public ruby-mime-types-data
6088 (name "ruby-mime-types-data")
6089 (version "3.2016.0521")
6093 (uri (rubygems-uri "mime-types-data" version))
6096 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
6097 (build-system ruby-build-system)
6099 `(("ruby-hoe" ,ruby-hoe)))
6100 (synopsis "Registry for information about MIME media type definitions")
6102 "@code{mime-types-data} provides a registry for information about
6103 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6104 be used with the Ruby mime-types library or other software to determine
6105 defined filename extensions for MIME types, or to use filename extensions to
6106 look up the likely MIME type definitions.")
6107 (home-page "https://github.com/mime-types/mime-types-data/")
6108 (license license:expat)))
6110 (define-public ruby-mime-types
6112 (name "ruby-mime-types")
6117 (uri (rubygems-uri "mime-types" version))
6120 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
6121 (build-system ruby-build-system)
6123 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6125 `(("ruby-hoe" ,ruby-hoe)
6126 ("ruby-fivemat" ,ruby-fivemat)
6127 ("ruby-minitest-focus" ,ruby-minitest-focus)
6128 ("ruby-minitest-rg" ,ruby-minitest-rg)
6129 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6130 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
6131 (synopsis "Library and registry for MIME content type definitions")
6132 (description "The mime-types library provides a library and registry for
6133 information about Multipurpose Internet Mail Extensions (MIME) content type
6134 definitions. It can be used to determine defined filename extensions for MIME
6135 types, or to use filename extensions to look up the likely MIME type
6137 (home-page "https://github.com/mime-types/ruby-mime-types")
6138 (license license:expat)))
6140 (define-public ruby-fivemat
6142 (name "ruby-fivemat")
6147 (uri (rubygems-uri "fivemat" version))
6150 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
6151 (build-system ruby-build-system)
6153 `(#:tests? #f)) ; no tests
6154 (synopsis "Each test file given its own line of dots")
6156 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6157 its own line of dots during testing. It aims to provide test output that is
6158 neither too verbose nor too minimal.")
6159 (home-page "https://github.com/tpope/fivemat")
6160 (license license:expat)))
6162 (define-public ruby-sqlite3
6164 (name "ruby-sqlite3")
6169 (uri (rubygems-uri "sqlite3" version))
6172 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
6173 (build-system ruby-build-system)
6176 (modify-phases %standard-phases
6177 (add-before 'check 'adjust-failing-test
6179 ;; XXX: This test fails with SQLite versions >= 3.21.
6180 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
6181 (substitute* "test/test_integration_resultset.rb"
6182 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
6184 (add-before 'check 'add-gemtest-file
6185 ;; This file exists in the repository but is not distributed.
6186 (lambda _ (invoke "touch" ".gemtest"))))))
6188 `(("sqlite" ,sqlite)))
6190 `(("ruby-hoe" ,ruby-hoe)
6191 ("ruby-rake-compiler" ,ruby-rake-compiler)
6192 ("ruby-mini-portile" ,ruby-mini-portile)))
6193 (synopsis "Interface with SQLite3 databases")
6195 "This module allows Ruby programs to interface with the SQLite3 database
6198 "https://github.com/sparklemotion/sqlite3-ruby")
6199 (license license:bsd-3)))
6201 (define-public ruby-shoulda-context
6203 (name "ruby-shoulda-context")
6208 (uri (rubygems-uri "shoulda-context" version))
6211 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
6212 (build-system ruby-build-system)
6215 (modify-phases %standard-phases
6218 ;; Do not run tests to avoid circular dependence with rails.
6219 ;; Instead just import the library to test.
6220 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
6221 (synopsis "Test::Unit context framework extracted from Shoulda")
6223 "@code{shoulda-context} is the context framework extracted from Shoulda.
6224 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6225 context, setup, and should blocks combine to produce natural test method
6227 (home-page "https://github.com/thoughtbot/shoulda-context")
6228 (license license:expat)))
6230 (define-public ruby-shoulda-matchers
6232 (name "ruby-shoulda-matchers")
6237 (uri (rubygems-uri "shoulda-matchers" version))
6240 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6241 (build-system ruby-build-system)
6244 (modify-phases %standard-phases
6247 ;; Do not run tests to avoid circular dependence with rails. Instead
6248 ;; just import the library to test.
6249 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6251 `(("ruby-activesupport" ,ruby-activesupport)))
6252 (synopsis "Collection of testing matchers extracted from Shoulda")
6254 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6255 test common Rails functionality. These tests would otherwise be much longer,
6256 more complex, and error-prone.")
6257 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6258 (license license:expat)))
6260 (define-public ruby-shoulda-matchers-2
6262 (inherit ruby-shoulda-matchers)
6266 (uri (rubygems-uri "shoulda-matchers" version))
6269 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6271 (define-public ruby-shoulda
6273 (name "ruby-shoulda")
6278 (uri (rubygems-uri "shoulda" version))
6281 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6282 (build-system ruby-build-system)
6285 (modify-phases %standard-phases
6287 ;; Don't run tests to avoid circular dependence with rails. Instead
6288 ;; just import the library to test.
6289 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6291 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6292 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6293 (synopsis "Context framework and matchers for testing")
6295 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6296 @code{shoulda-matchers} providing tools for writing tests.")
6297 (home-page "https://github.com/thoughtbot/shoulda")
6298 (license license:expat)))
6300 (define-public ruby-unf
6307 (uri (rubygems-uri "unf" version))
6310 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6311 (build-system ruby-build-system)
6314 (modify-phases %standard-phases
6315 (add-before 'check 'add-dependency-to-bundler
6317 ;; test-unit is required but not provided by the bundler
6318 ;; environment. This is fixed in the upstream repository but fix
6319 ;; has not been released.
6320 (substitute* "Gemfile"
6321 (("^gemspec") "gem 'test-unit'\ngemspec"))
6324 `(("ruby-unf-ext" ,ruby-unf-ext)))
6326 `(("ruby-shoulda" ,ruby-shoulda)
6327 ("bundler" ,bundler)
6328 ("ruby-test-unit" ,ruby-test-unit)))
6329 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6331 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6332 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6333 @code{java.text.Normalizer} on JRuby.")
6334 (home-page "https://github.com/knu/ruby-unf")
6335 (license license:bsd-2)))
6337 (define-public ruby-warden
6339 (name "ruby-warden")
6344 (uri (rubygems-uri "warden" version))
6347 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6348 (build-system ruby-build-system)
6350 '(#:tests? #f)) ; No included tests
6352 `(("ruby-rack" ,ruby-rack)))
6353 (synopsis "Rack middleware providing authentication")
6355 "Warden is a Rack-based middleware that provides a mechanism for
6356 authentication in Ruby web applications.")
6357 (home-page "https://github.com/wardencommunity/warden")
6358 (license license:expat)))
6360 (define-public ruby-warden-oauth2
6362 (name "ruby-warden-oauth2")
6367 (uri (rubygems-uri "warden-oauth2" version))
6370 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6371 (build-system ruby-build-system)
6373 '(#:test-target "spec"
6375 (modify-phases %standard-phases
6376 (add-after 'unpack 'remove-unnecessary-dependencies
6378 (substitute* "Gemfile"
6379 ;; All of these gems relate to development, and are unnecessary
6380 ;; when running the tests
6381 (("gem 'guard-bundler'") "")
6382 (("gem 'guard'") "")
6383 (("gem 'guard-rspec'") "")
6384 (("gem 'rb-fsevent'") "")
6386 (("gem 'growl'") ""))
6388 ;; The test suite doesn't work with rspec@2, and this is incompatible
6389 ;; with the current version of Rake, so invoke Rspec directly
6391 (lambda* (#:key tests? #:allow-other-keys)
6393 (invoke "bundle" "exec" "rspec"))
6396 `(("ruby-warden" ,ruby-warden)))
6398 `(("bundler" ,bundler)
6399 ("ruby-rspec" ,ruby-rspec-2)
6400 ("ruby-rack-test" ,ruby-rack-test)))
6401 (synopsis "OAuth 2.0 strategies for Warden")
6403 "This library extends Warden to support OAuth 2.0 authorized API
6405 (home-page "https://github.com/opperator/warden-oauth2")
6406 (license license:expat)))
6408 (define-public ruby-webmock-2
6410 (name "ruby-webmock")
6415 (uri (rubygems-uri "webmock" version))
6418 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6419 (build-system ruby-build-system)
6421 `(("bundler" ,bundler)
6422 ("ruby-rspec" ,ruby-rspec)))
6424 `(("ruby-addressable" ,ruby-addressable)
6425 ("ruby-crack" ,ruby-crack)
6426 ("ruby-hashdiff" ,ruby-hashdiff)))
6427 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6429 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6430 requests. This is useful when testing software.")
6431 (home-page "https://github.com/bblimke/webmock")
6432 (license license:expat)))
6434 (define-public ruby-unicode-display-width
6436 (name "ruby-unicode-display-width")
6441 (uri (rubygems-uri "unicode-display_width" version))
6444 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
6445 (build-system ruby-build-system)
6447 '(;; Test data not included.
6449 (synopsis "Determine the monospace display width of Ruby strings")
6451 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6452 display width of strings in Ruby.")
6453 (home-page "https://github.com/janlelis/unicode-display_width")
6454 (license license:expat)))
6456 ;; There is another gem called 'ruby-version' so we use an underscore in this
6458 (define-public ruby_version
6460 (name "ruby_version")
6465 (uri (rubygems-uri "ruby_version" version))
6468 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6469 (build-system ruby-build-system)
6472 (modify-phases %standard-phases
6473 (add-before 'check 'fix-dependencies
6475 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6476 ;; whatever versions.
6477 (delete-file "Gemfile.lock")
6478 ;; Remove the incldued gem file as it's unnecessary.
6479 (delete-file "pkg/ruby_version-1.0.0.gem")
6480 (substitute* "ruby_version.gemspec"
6481 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6483 ((".*rubygems-tasks.*") "\n")
6484 ;; Accept any version of rake and rspec
6485 (("%q<rake.*") "%q<rake>)\n")
6486 (("%q<rspec.*") "%q<rspec>)\n"))
6487 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6489 (substitute* "Rakefile"
6490 (("^require 'rubygems/tasks'") "")
6491 (("Gem::Tasks.new") ""))
6494 `(("bundler" ,bundler)
6495 ("ruby-rspec" ,ruby-rspec)))
6496 (synopsis "Ruby library to help check the Ruby version")
6498 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6499 checking for the right Ruby version in software.")
6500 (home-page "https://github.com/janlelis/ruby_version")
6501 (license license:expat)))
6503 (define-public ruby-websocket-driver
6505 (name "ruby-websocket-driver")
6510 (uri (rubygems-uri "websocket-driver" version))
6512 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
6513 (build-system ruby-build-system)
6515 '(#:tests? #f)) ; no included tests
6517 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6518 (synopsis "WebSocket protocol handler with pluggable I/O")
6520 "@code{websocket-driver} provides a complete implementation of the
6521 WebSocket protocols that can be hooked up to any TCP library")
6522 (home-page "https://github.com/faye/websocket-driver-ruby")
6523 (license license:expat)))
6525 (define-public ruby-websocket-extensions
6527 (name "ruby-websocket-extensions")
6532 (uri (rubygems-uri "websocket-extensions" version))
6535 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6536 (build-system ruby-build-system)
6538 '(;; No included tests
6540 (synopsis "Generic extension manager for WebSocket connections")
6542 "@code{websocket-extensions} provides a container for registering
6543 extension plugins.")
6544 (home-page "https://github.com/faye/websocket-extensions-ruby")
6545 (license license:expat)))
6547 (define-public ruby-domain-name
6549 (name "ruby-domain-name")
6550 (version "0.5.20180417")
6554 (uri (rubygems-uri "domain_name" version))
6557 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6558 (build-system ruby-build-system)
6561 (modify-phases %standard-phases
6562 (add-before 'check 'fix-versions
6564 ;; Fix NameError that appears to already be fixed upstream.
6565 (substitute* "Rakefile"
6566 (("DomainName::VERSION")
6567 "Bundler::GemHelper.gemspec.version"))
6568 ;; Loosen unnecessarily strict test-unit version specification.
6569 (substitute* "domain_name.gemspec"
6570 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6573 `(("ruby-unf" ,ruby-unf)))
6575 `(("ruby-shoulda" ,ruby-shoulda)
6576 ("bundler" ,bundler)
6577 ("ruby-test-unit" ,ruby-test-unit)))
6578 (synopsis "Domain name manipulation library")
6580 "@code{domain_name} is a Domain name manipulation library. It parses a
6581 domain name ready for extracting the registered domain and TLD (Top Level
6582 Domain). It can also be used for cookie domain validation based on the Public
6584 (home-page "https://github.com/knu/ruby-domain_name")
6585 (license license:bsd-2)))
6587 (define-public ruby-http-cookie
6589 (name "ruby-http-cookie")
6594 (uri (rubygems-uri "http-cookie" version))
6597 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6598 (build-system ruby-build-system)
6601 (modify-phases %standard-phases
6602 (add-before 'check 'add-dependency-to-bundler
6605 (substitute* "Rakefile"
6606 (("HTTP::Cookie::VERSION")
6607 "Bundler::GemHelper.gemspec.version"))
6610 `(("ruby-domain-name" ,ruby-domain-name)))
6612 `(("rubysimplecov" ,ruby-simplecov)
6613 ("bundler" ,bundler)
6614 ("ruby-sqlite3" ,ruby-sqlite3)
6615 ("ruby-test-unit" ,ruby-test-unit)))
6616 (synopsis "Handle HTTP Cookies based on RFC 6265")
6618 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6619 RFC 6265. It has been designed with security, standards compliance and
6620 compatibility in mind, to behave just the same as today's major web browsers.
6621 It has built-in support for the legacy @code{cookies.txt} and
6622 @code{cookies.sqlite} formats of Mozilla Firefox.")
6623 (home-page "https://github.com/sparklemotion/http-cookie")
6624 (license license:expat)))
6626 (define-public ruby-httpclient
6628 (name "ruby-httpclient")
6633 (uri (rubygems-uri "httpclient" version))
6636 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6637 (build-system ruby-build-system)
6639 '(;; TODO: Some tests currently fail
6641 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6642 ;; 2 omissions, 0 notifications
6645 ;; 6.49 tests/s, 22.41 assertions/s
6648 (modify-phases %standard-phases
6650 (lambda* (#:key tests? #:allow-other-keys)
6657 `(("ruby-rack" ,ruby-rack)))
6659 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6661 "The @code{httpclient} ruby library provides functionality related to
6662 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6663 Cookie, multithreading and authentication (digest, NTLM) support.
6665 Also provided is a @command{httpclient} command, which can perform HTTP
6666 requests either using arguments or with an interactive prompt.")
6667 (home-page "https://github.com/nahi/httpclient")
6668 (license license:ruby)))
6670 (define-public ruby-ansi
6677 ;; Fetch from GitHub as the gem does not contain testing code.
6679 (url "https://github.com/rubyworks/ansi")
6681 (file-name (git-file-name name version))
6684 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
6685 (build-system ruby-build-system)
6688 (modify-phases %standard-phases
6689 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6690 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6694 (invoke "ruby" "-Ilib" "-r" "ansi")))
6695 (add-before 'validate-runpath 'replace-broken-symlink
6696 (lambda* (#:key outputs #:allow-other-keys)
6697 (let* ((out (assoc-ref outputs "out"))
6698 (file (string-append
6699 out "/lib/ruby/vendor_ruby/gems/ansi-"
6700 ,version "/lib/ansi.yml")))
6701 ;; XXX: This symlink is broken since ruby 2.4.
6702 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6704 (symlink "../.index" file)
6706 (synopsis "ANSI escape code related libraries")
6708 "This package is a collection of ANSI escape code related libraries
6709 enabling ANSI colorization and stylization of console output. Included in the
6710 library are the @code{Code} module, which defines ANSI codes as constants and
6711 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6712 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6713 @code{Terminal} module which provides information about the current output
6715 (home-page "https://rubyworks.github.io/ansi/")
6716 (license license:bsd-2)))
6718 (define-public ruby-systemu
6720 (name "ruby-systemu")
6725 (uri (rubygems-uri "systemu" version))
6728 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6729 (build-system ruby-build-system)
6732 (modify-phases %standard-phases
6733 (add-before 'check 'set-version
6735 (setenv "VERSION" ,version)
6737 (synopsis "Capture of stdout/stderr and handling of child processes")
6739 "Systemu can be used on any platform to return status, stdout, and stderr
6740 of any command. Unlike other methods like @code{open3} and @code{popen4}
6741 there is no danger of full pipes or threading issues hanging your process or
6743 (home-page "https://github.com/ahoward/systemu")
6744 (license license:ruby)))
6746 (define-public ruby-bio-commandeer
6748 (name "ruby-bio-commandeer")
6753 (uri (rubygems-uri "bio-commandeer" version))
6756 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6757 (build-system ruby-build-system)
6760 (modify-phases %standard-phases
6762 ;; Run test without calling 'rake' so that jeweler is
6763 ;; not required as an input.
6765 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6767 `(("ruby-bio-logger" ,ruby-bio-logger)
6768 ("ruby-systemu" ,ruby-systemu)))
6770 `(("bundler" ,bundler)
6771 ("ruby-rspec" ,ruby-rspec)))
6772 (synopsis "Simplified running of shell commands from within Ruby")
6774 "Bio-commandeer provides an opinionated method of running shell commands
6775 from within Ruby. The advantage of bio-commandeer over other methods of
6776 running external commands is that when something goes wrong, messages printed
6777 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6778 detail to ease debugging.")
6779 (home-page "https://github.com/wwood/bioruby-commandeer")
6780 (license license:expat)))
6782 (define-public ruby-rubytest
6784 (name "ruby-rubytest")
6789 (uri (rubygems-uri "rubytest" version))
6792 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6793 (build-system ruby-build-system)
6795 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6796 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6797 ;; simply test that the library can be require'd.
6799 (modify-phases %standard-phases
6802 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6804 `(("ruby-ansi" ,ruby-ansi)))
6805 (synopsis "Universal test harness for Ruby")
6807 "Rubytest is a testing meta-framework for Ruby. It can handle any
6808 compliant test framework and can run tests from multiple frameworks in a
6810 (home-page "https://rubyworks.github.io/rubytest")
6811 (license license:bsd-2)))
6813 (define-public ruby-brass
6820 (uri (rubygems-uri "brass" version))
6823 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6824 (build-system ruby-build-system)
6826 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6827 ;; Instead simply test that the library can be require'd.
6829 (modify-phases %standard-phases
6832 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6833 (synopsis "Basic foundational assertions framework")
6835 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6836 foundational assertions framework for other assertion and test frameworks to
6838 (home-page "https://rubyworks.github.io/brass")
6839 (license license:bsd-2)))
6841 (define-public ruby-qed
6848 (uri (rubygems-uri "qed" version))
6851 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6852 (build-system ruby-build-system)
6854 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6855 ;; Instead simply test that the executable runs using --copyright.
6857 (modify-phases %standard-phases
6860 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6862 `(("ruby-ansi" ,ruby-ansi)
6863 ("ruby-brass" ,ruby-brass)))
6864 (synopsis "Test framework utilizing literate programming techniques")
6866 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6867 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6868 Development} (BDD) utilizing Literate Programming techniques. QED sits
6869 somewhere between lower-level testing tools like @code{Test::Unit} and
6870 requirement specifications systems like Cucumber.")
6871 (home-page "https://rubyworks.github.io/qed")
6872 (license license:bsd-2)))
6874 (define-public ruby-que
6877 (version "1.0.0.beta3")
6881 (uri (rubygems-uri "que" version))
6884 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6885 (build-system ruby-build-system)
6887 '(#:tests? #f)) ; No included tests
6888 (synopsis "Job queue using PostgreSQL written in Ruby")
6890 "This package provides a job queue that uses PostgreSQL for storing jobs
6891 and locking between worker processes.")
6892 (home-page "https://github.com/chanks/que")
6893 (license license:expat)))
6895 (define-public ruby-ae
6902 ;; Fetch from github so tests are included.
6904 (url "https://github.com/rubyworks/ae")
6906 (file-name (git-file-name name version))
6909 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
6910 (build-system ruby-build-system)
6913 (modify-phases %standard-phases
6915 (lambda _ (invoke "qed")))
6916 (add-before 'validate-runpath 'replace-broken-symlink
6917 (lambda* (#:key outputs #:allow-other-keys)
6918 (let* ((out (assoc-ref outputs "out"))
6919 (file (string-append
6920 out "/lib/ruby/vendor_ruby/gems/ae-"
6921 ,version "/lib/ae.yml")))
6922 ;; XXX: This symlink is broken since ruby 2.4.
6923 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6925 (symlink "../.index" file)
6928 `(("ruby-ansi" ,ruby-ansi)))
6930 `(("ruby-qed" ,ruby-qed)))
6931 (synopsis "Assertions library")
6933 "Assertive Expressive (AE) is an assertions library specifically designed
6934 for reuse by other test frameworks.")
6935 (home-page "https://rubyworks.github.io/ae/")
6936 (license license:bsd-2)))
6938 (define-public ruby-lemon
6945 (uri (rubygems-uri "lemon" version))
6948 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6949 (build-system ruby-build-system)
6952 (modify-phases %standard-phases
6953 (replace 'check (lambda _ (invoke "qed"))))))
6955 `(("ruby-ae" ,ruby-ae)
6956 ("ruby-ansi" ,ruby-ansi)
6957 ("ruby-rubytest" ,ruby-rubytest)))
6959 `(("ruby-qed" ,ruby-qed)))
6960 (synopsis "Test framework correlating code structure and test unit")
6962 "Lemon is a unit testing framework that enforces highly formal
6963 case-to-class and unit-to-method test construction. This enforcement can help
6964 focus concern on individual units of behavior.")
6965 (home-page "https://rubyworks.github.io/lemon")
6966 (license license:bsd-2)))
6968 (define-public ruby-rubytest-cli
6970 (name "ruby-rubytest-cli")
6975 (uri (rubygems-uri "rubytest-cli" version))
6978 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6979 (build-system ruby-build-system)
6981 `(#:tests? #f)) ; no tests
6983 `(("ruby-ansi" ,ruby-ansi)
6984 ("ruby-rubytest" ,ruby-rubytest)))
6985 (synopsis "Command-line interface for rubytest")
6987 "Rubytest CLI is a command-line interface for running tests for
6988 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6989 (home-page "https://rubyworks.github.io/rubytest-cli")
6990 (license license:bsd-2)))
6992 (define-public ruby-hashery
6994 (name "ruby-hashery")
6999 (uri (rubygems-uri "hashery" version))
7002 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
7003 (build-system ruby-build-system)
7006 (modify-phases %standard-phases
7010 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
7012 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
7013 ("ruby-qed" ,ruby-qed)
7014 ("ruby-lemon" ,ruby-lemon)))
7015 (synopsis "Hash-like classes with extra features")
7017 "The Hashery is a tight collection of @code{Hash}-like classes.
7018 Included are the auto-sorting @code{Dictionary} class, the efficient
7019 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
7020 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
7021 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
7022 standard @code{Hash} making it possible to subclass and augment to fit any
7023 specific use case.")
7024 (home-page "https://rubyworks.github.io/hashery")
7025 (license license:bsd-2)))
7027 (define-public ruby-rc4
7034 (uri (rubygems-uri "ruby-rc4" version))
7037 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
7038 (build-system ruby-build-system)
7041 (modify-phases %standard-phases
7044 (invoke "rspec" "spec/rc4_spec.rb"))))))
7046 `(("ruby-rspec" ,ruby-rspec-2)))
7047 (synopsis "Implementation of the RC4 algorithm")
7049 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
7050 (home-page "https://github.com/caiges/Ruby-RC4")
7051 (license license:expat)))
7053 (define-public ruby-afm
7060 (uri (rubygems-uri "afm" version))
7063 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
7064 (build-system ruby-build-system)
7066 `(("bundler" ,bundler)))
7067 (synopsis "Read Adobe Font Metrics (afm) files")
7069 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
7070 files and use the data therein.")
7071 (home-page "https://github.com/halfbyte/afm")
7072 (license license:expat)))
7074 (define-public ruby-ascii85
7076 (name "ruby-ascii85")
7081 (uri (rubygems-uri "Ascii85" version))
7084 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
7085 (build-system ruby-build-system)
7087 `(("bundler" ,bundler)))
7088 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
7090 "This library provides methods to encode and decode Ascii85
7091 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
7092 @dfn{Portable Document Format} (PDF) file formats.")
7093 (home-page "https://github.com/datawraith/ascii85gem")
7094 (license license:expat)))
7096 (define-public ruby-ttfunk
7098 (name "ruby-ttfunk")
7103 ;; fetch from github as the gem does not contain testing code
7105 (url "https://github.com/prawnpdf/ttfunk")
7107 (file-name (git-file-name name version))
7110 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
7111 (build-system ruby-build-system)
7113 `(#:test-target "spec"
7115 (modify-phases %standard-phases
7116 (add-before 'build 'remove-ssh
7118 ;; remove dependency on an ssh key pair that doesn't exist
7119 (substitute* "ttfunk.gemspec"
7120 (("spec.signing_key.*") ""))
7122 (add-before 'check 'remove-rubocop
7124 ;; remove rubocop as a dependency as not needed for testing
7125 (substitute* "ttfunk.gemspec"
7126 (("spec.add_development_dependency\\('rubocop'.*") ""))
7127 (substitute* "Rakefile"
7128 (("require 'rubocop/rake_task'") "")
7129 (("RuboCop::RakeTask.new") ""))
7132 `(("ruby-rspec" ,ruby-rspec)
7133 ("ruby-yard" ,ruby-yard)
7134 ("bundler" ,bundler)))
7135 (synopsis "Font metrics parser for the Prawn PDF generator")
7137 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7138 part of the Prawn PDF generator.")
7139 (home-page "https://github.com/prawnpdf/ttfunk")
7140 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7142 (license (list license:gpl2 license:gpl3 license:ruby))))
7144 (define-public ruby-puma
7151 ;; Fetch from GitHub because distributed gem does not contain tests.
7153 (url "https://github.com/puma/puma")
7154 (commit (string-append "v" version))))
7155 (file-name (git-file-name name version))
7158 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
7159 (build-system ruby-build-system)
7161 `(#:tests? #f ; Tests require an out-dated version of minitest.
7163 (modify-phases %standard-phases
7164 (add-before 'build 'fix-gemspec
7166 (substitute* "puma.gemspec"
7167 (("git ls-files") "find * |sort"))
7169 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7171 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7172 for Ruby/Rack applications. Puma is intended for use in both development and
7173 production environments. In order to get the best throughput, it is highly
7174 recommended that you use a Ruby implementation with real threads like Rubinius
7176 (home-page "https://puma.io/")
7177 (license license:expat)))
7179 (define-public ruby-hoe-git
7181 (name "ruby-hoe-git")
7186 (uri (rubygems-uri "hoe-git" version))
7189 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7190 (build-system ruby-build-system)
7192 `(("ruby-hoe" ,ruby-hoe)
7194 (synopsis "Hoe plugins for tighter Git integration")
7196 "This package provides a set of Hoe plugins for tighter Git integration.
7197 It provides tasks to automate release tagging and pushing and changelog
7199 (home-page "https://github.com/jbarnette/hoe-git")
7200 (license license:expat)))
7202 (define-public ruby-sequel
7204 (name "ruby-sequel")
7209 (uri (rubygems-uri "sequel" version))
7212 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
7213 (build-system ruby-build-system)
7215 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7216 (synopsis "Database toolkit for Ruby")
7217 (description "Sequel provides thread safety, connection pooling and a
7218 concise DSL for constructing SQL queries and table schemas. It includes a
7219 comprehensive ORM layer for mapping records to Ruby objects and handling
7220 associated records.")
7221 (home-page "http://sequel.jeremyevans.net")
7222 (license license:expat)))
7224 (define-public ruby-timecop
7226 (name "ruby-timecop")
7231 (uri (rubygems-uri "timecop" version))
7234 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7235 (build-system ruby-build-system)
7238 (modify-phases %standard-phases
7239 (add-before 'check 'set-check-rubylib
7241 ;; Set RUBYLIB so timecop tests finds its own lib.
7242 (setenv "RUBYLIB" "lib")
7245 `(("bundler" ,bundler)
7246 ("ruby-minitest-rg" ,ruby-minitest-rg)
7247 ("ruby-mocha" ,ruby-mocha)
7248 ("ruby-activesupport" ,ruby-activesupport)))
7249 (synopsis "Test mocks for time-dependent functions")
7251 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7252 making it easier to test time-dependent code. It provides a unified method to
7253 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7255 (home-page "https://github.com/travisjeffery/timecop")
7256 (license license:expat)))
7258 (define-public ruby-concurrent
7260 (name "ruby-concurrent")
7265 ;; Download from GitHub because the rubygems version does not contain
7268 (url "https://github.com/ruby-concurrency/concurrent-ruby")
7269 (commit (string-append "v" version))))
7270 (file-name (git-file-name name version))
7273 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
7274 (build-system ruby-build-system)
7276 `(#:test-target "ci"
7278 (modify-phases %standard-phases
7279 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7281 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7283 (delete-file "concurrent-ruby-edge.gemspec")
7284 (delete-file "concurrent-ruby-ext.gemspec")
7286 (replace 'replace-git-ls-files
7288 ;; XXX: The default substitution made by this phase is not fully
7289 ;; compatible with "git ls-files". The latter produces file names
7290 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
7291 ;; which gives "./lib/foo". That difference in turn breaks the
7292 ;; comparison against a glob pattern in this script.
7293 (substitute* "concurrent-ruby.gemspec"
7294 (("git ls-files") "find * -type f | sort"))
7296 (add-before 'build 'remove-jar-from-gemspec
7298 ;; The gemspec wants to include a JAR file that we do not build
7300 (substitute* "concurrent-ruby.gemspec"
7301 (("'lib/concurrent/concurrent_ruby.jar'")
7304 (add-before 'build 'remove-rake_compiler_dock-dependency
7306 ;; This library is only used when building for non-MRI targets.
7307 (substitute* "Rakefile"
7308 (("require 'rake_compiler_dock'")
7311 (add-before 'check 'remove-timecop-dependency
7312 ;; Remove timecop-dependent tests as having timecop as a depedency
7313 ;; causes circular depedencies.
7315 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7316 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7319 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7320 ("ruby-rspec" ,ruby-rspec)))
7321 (synopsis "Concurrency tools for Ruby")
7323 "This library provides modern concurrency tools including agents,
7324 futures, promises, thread pools, actors, supervisors, and more. It is
7325 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7327 (home-page "http://www.concurrent-ruby.com")
7328 (license license:expat)))
7330 (define-public ruby-pkg-config
7332 (name "ruby-pkg-config")
7337 (uri (rubygems-uri "pkg-config" version))
7340 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7341 (build-system ruby-build-system)
7343 ;; Tests require extra files not included in the gem.
7345 (synopsis "Detect libraries for compiling Ruby native extensions")
7347 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7348 libraries for compiling Ruby native extensions.")
7349 (home-page "https://github.com/ruby-gnome2/pkg-config")
7350 (license license:lgpl2.0+)))
7352 (define-public ruby-net-http-digest-auth
7354 (name "ruby-net-http-digest-auth")
7359 (uri (rubygems-uri "net-http-digest_auth" version))
7362 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7363 (build-system ruby-build-system)
7365 `(("ruby-hoe" ,ruby-hoe)))
7366 (synopsis "RFC 2617 HTTP digest authentication library")
7368 "This library implements HTTP's digest authentication scheme based on
7369 RFC 2617. This enables the use of the digest authentication scheme instead
7370 of the more insecure basic authentication scheme.")
7371 (home-page "https://github.com/drbrain/net-http-digest_auth")
7372 (license license:expat)))
7374 (define-public ruby-mail
7381 (uri (rubygems-uri "mail" version))
7384 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7385 (build-system ruby-build-system)
7387 `(("ruby-mime-types" ,ruby-mime-types)))
7389 ;; Tests require extra gems not included in the Gemfile.
7390 ;; XXX: Try enabling this for the next version with mini_mime.
7392 (synopsis "Mail library for Ruby")
7394 "Mail is an internet library for Ruby that is designed to handle email
7395 generation, parsing and sending. The purpose of this library is to provide
7396 a single point of access to handle all email functions, including sending
7397 and receiving emails. All network type actions are done through proxy
7398 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7400 Mail has been designed with a very simple object oriented system that
7401 really opens up the email messages you are parsing, if you know what you
7402 are doing, you can fiddle with every last bit of your email directly.")
7403 (home-page "https://github.com/mikel/mail")
7404 (license license:expat)))
7406 (define-public ruby-mathn
7413 (uri (rubygems-uri "mathn" version))
7416 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7417 (build-system ruby-build-system)
7419 `(("bundler" ,bundler)
7420 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7421 (synopsis "Extends math operations for increased precision")
7423 "This gem makes mathematical operations more precise in Ruby and
7424 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7425 @code{mathn} was part of the Ruby standard library.")
7426 (home-page "https://github.com/ruby/mathn")
7427 (license license:bsd-2)))
7429 (define-public ruby-code-statistics
7431 (name "ruby-code-statistics")
7436 (uri (rubygems-uri "code_statistics" version))
7439 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7440 (build-system ruby-build-system)
7442 `(#:tests? #f)) ; Not all test code is included in gem.
7443 (synopsis "Port of the rails 'rake stats' method")
7445 "This gem is a port of the rails 'rake stats' method so it can be made
7446 more robust and work for non rails projects.")
7447 (home-page "http://github.com/danmayer/code_statistics")
7448 (license license:expat)))
7450 (define-public ruby-rubypants
7452 (name "ruby-rubypants")
7456 (uri (rubygems-uri "rubypants" version))
7459 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7460 (build-system ruby-build-system)
7462 '(#:tests? #f)) ; need Codecov
7463 (synopsis "Port of the smart-quotes library SmartyPants")
7465 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7466 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7467 and BBEdit that easily translates plain ASCII punctuation characters into
7468 smart typographic punctuation HTML entities.")
7469 (home-page "https://github.com/jmcnevin/rubypants")
7470 (license license:bsd-2)))
7472 (define-public ruby-org-ruby
7474 (name "ruby-org-ruby")
7478 (uri (rubygems-uri "org-ruby" version))
7481 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7482 (build-system ruby-build-system)
7484 '(#:tests? #f)) ; no rakefile
7486 `(("ruby-rubypants" ,ruby-rubypants)))
7487 (synopsis "Org-mode parser written in Ruby")
7489 "Org-ruby is an org-mode parser written in Ruby. The most significant
7490 thing this library does today is convert org-mode files to HTML or Textile or
7492 (home-page "https://github.com/wallyqs/org-ruby")
7493 (license license:expat)))
7495 (define-public ruby-rake
7502 (uri (rubygems-uri "rake" version))
7505 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7506 (build-system ruby-build-system)
7508 `(("bundler" ,bundler)))
7509 (synopsis "Rake is a Make-like program implemented in Ruby")
7511 "Rake is a Make-like program where tasks and dependencies are specified
7512 in standard Ruby syntax.")
7513 (home-page "https://github.com/ruby/rake")
7514 (license license:expat)))
7516 (define-public ruby-childprocess
7518 (name "ruby-childprocess")
7523 (uri (rubygems-uri "childprocess" version))
7526 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
7527 (build-system ruby-build-system)
7531 `(("bundler" ,bundler)
7532 ("ruby-rspec" ,ruby-rspec)))
7534 `(("ruby-ffi" ,ruby-ffi)))
7535 (synopsis "Control external programs running in the background, in Ruby")
7536 (description "@code{childprocess} provides a gem to control external
7537 programs running in the background, in Ruby.")
7538 (home-page "https://github.com/enkessler/childprocess")
7539 (license license:expat)))
7541 (define-public ruby-public-suffix
7543 (name "ruby-public-suffix")
7547 (uri (rubygems-uri "public_suffix" version))
7550 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
7551 (build-system ruby-build-system)
7554 (modify-phases %standard-phases
7555 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7556 ;; including it as an input can lead to circular dependencies.
7557 (add-after 'unpack 'remove-rubocop-from-Rakefile
7559 (substitute* "Rakefile"
7560 (("require \"rubocop/rake\\_task\"") "")
7561 (("RuboCop::RakeTask\\.new") ""))
7564 `(("bundler" ,bundler)
7565 ("ruby-yard" ,ruby-yard)
7566 ("ruby-mocha" ,ruby-mocha)
7567 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7568 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7569 (synopsis "Domain name parser")
7570 (description "The gem @code{public_suffix} is a domain name parser,
7571 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7572 is one under which Internet users can (or historically could) directly
7573 register names. Some examples of public suffixes are @code{.com},
7574 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7575 all known public suffixes.")
7576 (license license:expat)))
7578 (define-public ruby-addressable
7580 (name "ruby-addressable")
7584 (uri (rubygems-uri "addressable" version))
7587 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
7588 (build-system ruby-build-system)
7590 '(#:test-target "spec"
7592 (modify-phases %standard-phases
7593 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7595 (substitute* "Gemfile"
7596 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7597 ((".*launchy.*") "")
7598 ((".*rake.*") "gem 'rake'\n")
7599 ((".*redcarpet.*") ""))
7601 (add-before 'check 'delete-network-dependent-test
7603 (delete-file "spec/addressable/net_http_compat_spec.rb")
7606 `(("ruby-rspec" ,ruby-rspec)
7607 ("bundler" ,bundler)
7608 ("ruby-idn-ruby" ,ruby-idn-ruby)
7609 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7610 ("ruby-rspec-its", ruby-rspec-its)
7611 ("ruby-yard" ,ruby-yard)
7612 ("ruby-simplecov" ,ruby-simplecov)))
7614 `(("ruby-public-suffix" ,ruby-public-suffix)))
7615 (home-page "https://github.com/sporkmonger/addressable")
7616 (synopsis "Alternative URI implementation")
7617 (description "Addressable is a replacement for the URI implementation that
7618 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7619 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7620 (license license:asl2.0)))
7622 (define-public ruby-colorator
7624 (name "ruby-colorator")
7628 (uri (rubygems-uri "colorator" version))
7631 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7632 (build-system ruby-build-system)
7636 (home-page "http://octopress.org/colorator/")
7637 (synopsis "Terminal color library")
7638 (description "Colorator is a Ruby gem that helps you colorize your text
7640 (license license:expat)))
7642 (define-public ruby-command-line-reporter
7644 (name "ruby-command-line-reporter")
7648 (uri (rubygems-uri "command_line_reporter" version))
7651 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
7652 (build-system ruby-build-system)
7657 (modify-phases %standard-phases
7658 (add-before 'build 'fix-dependencies
7660 (substitute* ".gemspec"
7661 ;; colored is unmaintained
7662 (("colored") "colorator")
7663 ;; colorator version
7664 (("= 1.2") "= 1.1"))
7666 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7667 (home-page "https://github.com/wbailey/command_line_reporter")
7668 (synopsis "Report production while executing Ruby scripts")
7669 (description "This gem provides a DSL that makes it easy to write reports
7670 of various types in ruby. It eliminates the need to litter your source with
7671 puts statements, instead providing a more readable, expressive interface to
7673 (license license:asl2.0)))
7675 (define-public ruby-command-line-reporter-3
7677 (inherit ruby-command-line-reporter)
7681 (uri (rubygems-uri "command_line_reporter" version))
7684 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7686 (define-public ruby-rdoc
7693 (uri (rubygems-uri "rdoc" version))
7696 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7697 (build-system ruby-build-system)
7699 `(("bundler" ,bundler)))
7700 (home-page "https://ruby.github.io/rdoc/")
7701 (synopsis "HTML and command-line documentation utility")
7702 (description "RDoc produces HTML and command-line documentation for Ruby
7703 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7704 documentation from the command-line.")
7705 (license license:gpl2+)))
7707 (define-public ruby-sass-listen
7709 (name "ruby-sass-listen")
7713 (uri (rubygems-uri "sass-listen" version))
7716 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7717 (build-system ruby-build-system)
7722 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7723 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7724 (home-page "https://github.com/sass/listen")
7725 (synopsis "File modification notification library")
7726 (description "The Listen gem listens to file modifications and notifies you
7727 about the changes.")
7728 (license license:expat)))
7730 (define-public ruby-terminfo
7732 (name "ruby-terminfo")
7737 (uri (rubygems-uri "ruby-terminfo" version))
7740 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7741 (build-system ruby-build-system)
7743 `(#:test-target "test"
7744 ;; Rakefile requires old packages and would need modification to
7745 ;; work with current software.
7748 `(("ncurses" ,ncurses)))
7750 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7751 ("ruby-rdoc" ,ruby-rdoc)))
7752 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7753 (synopsis "Terminfo binding for Ruby")
7754 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7755 (license license:bsd-3)))
7757 (define-public ruby-diffy
7764 (uri (rubygems-uri "diffy" version))
7767 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7768 (build-system ruby-build-system)
7773 `(("ruby-rspec" ,ruby-rspec)))
7774 (home-page "https://github.com/samg/diffy")
7775 (synopsis "Convenient diffing in ruby")
7776 (description "Diffy provides a convenient way to generate a diff from two
7778 (license license:expat)))
7780 (define-public ruby-sass-spec
7782 (name "ruby-sass-spec")
7788 (url "https://github.com/sass/sass-spec.git")
7789 (commit (string-append "v" version))))
7790 (file-name (git-file-name name version))
7792 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
7793 (build-system ruby-build-system)
7795 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7796 ("ruby-diffy" ,ruby-diffy)
7797 ("ruby-terminfo" ,ruby-terminfo)))
7799 `(;; This package contains tests for a sass implementation, and the to
7800 ;; avoid any circular dependencies, the tests are not run here
7803 (modify-phases %standard-phases
7804 (add-after 'unpack 'patch-test
7806 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7807 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7808 (("string") "color")))))))
7809 (home-page "https://github.com/sass/sass-spec")
7810 (synopsis "Test suite for Sass")
7811 (description "Sass Spec is a test suite for Sass. Test cases are all in
7812 the @file{spec} directory.")
7813 (license license:expat)))
7815 (define-public ruby-sass
7821 (uri (rubygems-uri "sass" version))
7824 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7825 (build-system ruby-build-system)
7827 `(("ruby-sass-listen" ,ruby-sass-listen)))
7829 `(("ruby-sass-spec" ,ruby-sass-spec)
7830 ("ruby-mathn" ,ruby-mathn)))
7831 (home-page "https://sass-lang.com/")
7832 (synopsis "CSS extension language")
7833 (description "Sass is a CSS extension language. It extends CSS with
7834 features that don't exist yet like variables, nesting, mixins and inheritance.")
7835 (license license:expat)))
7837 (define-public ruby-sassc
7844 (uri (rubygems-uri "sassc" version))
7847 "1sr4825rlwsrl7xrsm0sgalcpf5zgp4i56dbi3qxfa9lhs8r6zh4"))))
7848 (build-system ruby-build-system)
7851 (modify-phases %standard-phases
7852 ;; TODO: This would be better as a snippet, but the ruby-build-system
7853 ;; doesn't seem to support that
7854 (add-after 'unpack 'remove-libsass
7856 (delete-file-recursively "ext")
7858 (add-after 'unpack 'dont-check-the-libsass-version
7860 (substitute* "test/native_test.rb"
7861 (("assert_equal.*Native\\.version") ""))
7863 (add-after 'unpack 'remove-git-from-gemspec
7865 (substitute* "sassc.gemspec"
7866 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")
7867 (("`git submodule --quiet foreach pwd`") "''"))
7869 (add-after 'unpack 'remove-extensions-from-gemspec
7871 (substitute* "sassc.gemspec"
7872 (("\\[\"ext/Rakefile\"\\]") "[]"))
7874 (add-after 'unpack 'fix-Rakefile
7876 (substitute* "Rakefile"
7877 (("test: 'libsass:compile'") ":test"))
7879 (add-after 'unpack 'remove-unnecessary-dependencies
7881 (substitute* "test/test_helper.rb"
7882 (("require \"pry\"") ""))
7884 (add-before 'build 'patch-native.rb
7885 (lambda* (#:key inputs #:allow-other-keys)
7886 (substitute* "lib/sassc/native.rb"
7887 ((".*gem_root = spec.gem_dir") "")
7890 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7892 ;; The gemspec still references the libsass files, so just keep the
7894 (delete 'extract-gemspec))))
7896 `(("ruby-ffi" ,ruby-ffi)
7897 ("ruby-rake" ,ruby-rake)))
7899 `(("libsass" ,libsass)))
7901 `(("bundler" ,bundler)
7902 ("ruby-minitest-around" ,ruby-minitest-around)
7903 ("ruby-test-construct" ,ruby-test-construct)))
7904 (synopsis "Use libsss from Ruby")
7906 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7907 bindings to the libsass library. This enables rendering
7908 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7909 (home-page "https://github.com/sass/sassc-ruby")
7910 (license license:expat)))
7912 (define-public ruby-jekyll-sass-converter
7914 (name "ruby-jekyll-sass-converter")
7918 (uri (rubygems-uri "jekyll-sass-converter" version))
7921 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7922 (build-system ruby-build-system)
7924 `(("ruby-sass" ,ruby-sass)))
7928 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7929 (synopsis "Sass converter for Jekyll")
7930 (description "This gem provide built-in support for the Sass converter
7932 (license license:expat)))
7934 (define-public ruby-jekyll-watch
7936 (name "ruby-jekyll-watch")
7940 (uri (rubygems-uri "jekyll-watch" version))
7943 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
7944 (build-system ruby-build-system)
7946 `(("ruby-listen" ,ruby-listen)))
7950 (home-page "https://github.com/jekyll/jekyll-watch")
7951 (synopsis "Jekyll auto-rebuild support")
7952 (description "This gems add the @code{--watch} switch to the jekyll CLI
7953 interface. It allows Jekyll to rebuild your site when a file changes.")
7954 (license license:expat)))
7956 (define-public ruby-parallel
7958 (name "ruby-parallel")
7964 (url "https://github.com/grosser/parallel.git")
7965 (commit (string-append "v" version))))
7966 (file-name (git-file-name name version))
7969 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7970 (build-system ruby-build-system)
7972 `(;; TODO 3 test failures
7973 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7974 ;; open unnecessary pipes
7975 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7976 ;; SQLite in processes
7977 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7978 ;; SQLite in threads
7980 #:test-target "rspec-rerun:spec"
7982 (modify-phases %standard-phases
7983 (add-after 'unpack 'patch-Gemfile
7985 (substitute* "Gemfile"
7986 (("gem 'rspec-legacy_formatters'") "")
7987 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7988 (add-before 'check 'delete-Gemfile.lock
7990 ;; Bundler isn't being used for fetching dependendencies, so
7991 ;; delete the Gemfile.lock
7992 (delete-file "Gemfile.lock")
7994 (add-before 'build 'patch-gemspec
7996 (substitute* "parallel.gemspec"
7997 (("git ls-files") "find"))
8000 `(("ruby-rspec" ,ruby-rspec)
8001 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
8002 ("bundler" ,bundler)
8003 ("ruby-activerecord" ,ruby-activerecord)
8004 ("ruby-progressbar" ,ruby-progressbar)
8005 ("ruby-bump" ,ruby-bump)
8008 ("ruby-mysql2" ,ruby-mysql2)
8009 ("ruby-sqlite3" ,ruby-sqlite3)
8010 ("ruby-i18n" ,ruby-i18n)))
8011 (home-page "https://github.com/grosser/parallel")
8012 (synopsis "Parallel processing in Ruby")
8013 (description "Parallel allows you to run any code in parallel Processes
8014 (to use all CPUs) or Threads(to speedup blocking operations). It is best
8015 suited for map-reduce or e.g. parallel downloads/uploads.")
8016 (license license:expat)))
8018 (define-public ruby-cane
8024 (uri (rubygems-uri "cane" version))
8027 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
8028 (build-system ruby-build-system)
8029 (arguments `(#:tests? #f)); No rakefile
8030 (home-page "https://github.com/square/cane")
8032 `(("ruby-parallel" ,ruby-parallel)))
8033 (synopsis "Code quality threshold checking")
8034 (description "Cane fails your build if code quality thresholds are not met.")
8035 (license license:asl2.0)))
8037 (define-public ruby-morecane
8039 (name "ruby-morecane")
8043 (uri (rubygems-uri "morecane" version))
8046 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
8047 (build-system ruby-build-system)
8048 (home-page "https://github.com/yob/morecane")
8049 (arguments `(#:tests? #f)); No rakefile
8051 `(("ruby-parallel" ,ruby-parallel)))
8052 (synopsis "Extra checks for cane")
8053 (description "The cane gem provides a great framework for running quality
8054 checks over your ruby project as part of continuous integration build. It
8055 comes with a few checks out of the box, but also provides an API for loading
8056 custom checks. This gem provides a set of additional checks.")
8057 (license license:expat)))
8059 (define-public ruby-pdf-reader
8061 (name "ruby-pdf-reader")
8065 (uri (rubygems-uri "pdf-reader" version))
8068 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
8069 (build-system ruby-build-system)
8070 (arguments `(#:test-target "spec"))
8072 `(("bundler" ,bundler)
8073 ("ruby-rspec" ,ruby-rspec)
8074 ("ruby-cane" ,ruby-cane)
8075 ("ruby-morecane" ,ruby-morecane)))
8077 `(("ruby-afm" ,ruby-afm)
8078 ("ruby-ascii85" ,ruby-ascii85)
8079 ("ruby-hashery" ,ruby-hashery)
8080 ("ruby-rc4" ,ruby-rc4)
8081 ("ruby-ttfunk" ,ruby-ttfunk)))
8082 (home-page "https://github.com/yob/pdf-reader")
8083 (synopsis "PDF parser in Ruby")
8084 (description "The PDF::Reader library implements a PDF parser conforming as
8085 much as possible to the PDF specification from Adobe. It provides programmatic
8086 access to the contents of a PDF file with a high degree of flexibility.")
8087 (license license:gpl3+)))
8089 (define-public ruby-pdf-inspector
8091 (name "ruby-pdf-inspector")
8095 (uri (rubygems-uri "pdf-inspector" version))
8098 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
8099 (build-system ruby-build-system)
8101 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8102 (arguments `(#:tests? #f)); No rakefile
8103 (home-page "https://github.com/prawnpdf/pdf-inspector")
8104 (synopsis "Analysis classes for inspecting PDF output")
8105 (description "This library provides a number of PDF::Reader based tools for
8106 use in testing PDF output. Presently, the primary purpose of this tool is to
8107 support the tests found in Prawn, a pure Ruby PDF generation library.")
8108 (license license:gpl3+)))
8110 (define-public ruby-pdf-core
8112 (name "ruby-pdf-core")
8116 (uri (rubygems-uri "pdf-core" version))
8119 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8120 (build-system ruby-build-system)
8124 (home-page "https://github.com/prawnpdf/pdf-core")
8125 (synopsis "Low level PDF features for Prawn")
8126 (description "This is an experimental gem that extracts low-level PDF
8127 functionality from Prawn.")
8128 (license license:gpl3+)))
8130 (define-public ruby-prawn
8136 (uri (rubygems-uri "prawn" version))
8139 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8140 (build-system ruby-build-system)
8145 (modify-phases %standard-phases
8146 (add-before 'build 'fix-dependencies
8148 (substitute* "prawn.gemspec"
8149 (("~> 0.7.0") "~> 0.7"))
8152 `(("ruby-pdf-core" ,ruby-pdf-core)
8153 ("ruby-ttfunk" ,ruby-ttfunk)))
8155 `(("bundler" ,bundler)
8156 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8157 ("ruby-rspec" ,ruby-rspec)
8158 ("ruby-simplecov" ,ruby-simplecov)
8159 ("ruby-yard" ,ruby-yard)))
8160 (home-page "http://prawnpdf.org/api-docs/2.0/")
8161 (synopsis "PDF generation for Ruby")
8162 (description "Prawn is a pure Ruby PDF generation library.")
8163 (license license:gpl3+)))
8165 (define-public ruby-prawn-table
8167 (name "ruby-prawn-table")
8171 (uri (rubygems-uri "prawn-table" version))
8174 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8175 (build-system ruby-build-system)
8177 `(("ruby-prawn" ,ruby-prawn)
8178 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8180 `(("bundler" ,bundler)
8181 ("ruby-yard" ,ruby-yard)
8182 ("ruby-mocha" ,ruby-mocha)
8183 ("ruby-coderay" ,ruby-coderay)
8184 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8185 ("ruby-simplecov" ,ruby-simplecov)
8186 ("ruby-rspec-2" ,ruby-rspec-2)))
8188 '(;; TODO: 1 test fails
8189 ;; Failure/Error: pdf.page_count.should == 1
8191 ;; got: 2 (using ==)
8192 ;; # ./spec/table_spec.rb:1308
8194 ;; 225 examples, 1 failure
8197 (modify-phases %standard-phases
8198 (add-before 'check 'patch-gemspec
8200 (substitute* "prawn-table.gemspec"
8201 ;; Loosen the requirement for pdf-inspector
8202 (("~> 1\\.1\\.0") ">= 0")
8203 ;; Loosen the requirement for pdf-reader
8204 (("~> 1\\.2") ">= 0"))))
8206 (lambda* (#:key tests? #:allow-other-keys)
8210 (home-page "https://github.com/prawnpdf/prawn-table")
8211 (synopsis "Tables support for Prawn")
8212 (description "This gem provides tables support for Prawn.")
8213 (license license:gpl3+)))
8215 (define-public ruby-kramdown
8217 (name "ruby-kramdown")
8221 (uri (rubygems-uri "kramdown" version))
8224 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8225 (build-system ruby-build-system)
8226 (arguments `(#:tests? #f)); FIXME: some test failures
8228 `(("ruby-prawn" ,ruby-prawn)
8229 ("ruby-prawn-table" ,ruby-prawn-table)))
8230 (home-page "https://kramdown.gettalong.org/")
8231 (synopsis "Markdown parsing and converting library")
8232 (description "Kramdown is a library for parsing and converting a superset
8233 of Markdown. It is completely written in Ruby, supports standard Markdown
8234 (with some minor modifications) and various extensions that have been made
8235 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8236 (license license:expat)))
8238 (define-public ruby-http-parser.rb
8240 (name "ruby-http-parser.rb")
8245 (uri (rubygems-uri "http_parser.rb" version))
8248 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8249 (build-system ruby-build-system)
8254 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8255 ("ruby-rspec" ,ruby-rspec)))
8256 (home-page "https://github.com/tmm1/http_parser.rb")
8257 (synopsis "HTTP parser un Ruby")
8258 (description "This gem is a simple callback-based HTTP request/response
8259 parser for writing http servers, clients and proxies.")
8260 (license license:expat)))
8262 (define-public ruby-em-websocket
8264 (name "ruby-em-websocket")
8269 (uri (rubygems-uri "em-websocket" version))
8272 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8273 (build-system ruby-build-system)
8278 `(("ruby-eventmachine" ,ruby-eventmachine)
8279 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8281 `(("bundler" ,bundler)
8282 ("ruby-rspec" ,ruby-rspec)))
8283 (home-page "https://github.com/igrigorik/em-websocket")
8284 (synopsis "EventMachine based WebSocket server")
8285 (description "Em-websocket is an EventMachine based WebSocket server
8287 (license license:expat)))
8289 (define-public ruby-rouge
8295 (uri (rubygems-uri "rouge" version))
8298 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
8299 (build-system ruby-build-system)
8300 (arguments `(#:tests? #f)); No rakefile
8301 (home-page "http://rouge.jneen.net/")
8302 (synopsis "Code highlighter")
8303 (description "Rouge is a code highlighter written in Ruby. It supports more
8304 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8305 is compatible with stylesheets designed for pygments.")
8307 ;; rouge is licensed under expat
8309 ;; pygments is licensed under bsd-2
8312 (define-public ruby-rouge-2
8314 (inherit ruby-rouge)
8318 (uri (rubygems-uri "rouge" version))
8321 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8323 (define-public ruby-hashie
8325 (name "ruby-hashie")
8329 (uri (rubygems-uri "hashie" version))
8332 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8333 (build-system ruby-build-system)
8335 `(("bundler" ,bundler)))
8336 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8337 (home-page "https://github.com/intridea/hashie")
8338 (synopsis "Extensions to Ruby Hashes")
8339 (description "Hashie is a collection of classes and mixins that make Ruby
8340 hashes more powerful.")
8341 (license license:expat)))
8343 (define-public ruby-heredoc-unindent
8345 (name "ruby-heredoc-unindent")
8349 (uri (rubygems-uri "heredoc_unindent" version))
8352 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8353 (build-system ruby-build-system)
8355 `(("ruby-hoe" ,ruby-hoe)))
8356 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8357 (synopsis "Heredoc indentation cleaner")
8358 (description "This gem removes common margin from indented strings, such
8359 as the ones produced by indented heredocs. In other words, it strips out
8360 leading whitespace chars at the beginning of each line, but only as much as
8361 the line with the smallest margin.
8363 It is acknowledged that many strings defined by heredocs are just code and
8364 fact is that most parsers are insensitive to indentation. If, however, the
8365 strings are to be used otherwise, be it for printing or testing, the extra
8366 indentation will probably be an issue and hence this gem.")
8367 (license license:expat)))
8369 (define-public ruby-safe-yaml
8371 (name "ruby-safe-yaml")
8377 (url "https://github.com/dtao/safe_yaml.git")
8379 (file-name (git-file-name name version))
8382 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
8383 (build-system ruby-build-system)
8385 `(("ruby-rspec" ,ruby-rspec)
8386 ("ruby-hashie" ,ruby-hashie)
8387 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8389 '(#:test-target "spec"
8391 (modify-phases %standard-phases
8392 (add-before 'check 'set-TZ
8394 ;; This test is dependent on the timezone
8395 ;; spec/transform/to_date_spec.rb:35
8396 ;; # SafeYAML::Transform::ToDate converts times to the local
8398 (setenv "TZ" "UTC-11")
8400 (home-page "https://github.com/dtao/safe_yaml")
8401 (synopsis "YAML parser")
8402 (description "The SafeYAML gem provides an alternative implementation of
8403 YAML.load suitable for accepting user input in Ruby applications.")
8404 (license license:expat)))
8406 (define-public ruby-mercenary
8408 (name "ruby-mercenary")
8412 (uri (rubygems-uri "mercenary" version))
8415 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8416 (build-system ruby-build-system)
8417 (arguments `(#:test-target "spec"))
8419 `(("bundler" ,bundler)))
8420 (home-page "https://github.com/jekyll/mercenary")
8421 (synopsis "Command-line apps library in Ruby")
8422 (description "Mercenary is a lightweight and flexible library for writing
8423 command-line apps in Ruby.")
8424 (license license:expat)))
8426 (define-public ruby-liquid
8428 (name "ruby-liquid")
8432 (uri (rubygems-uri "liquid" version))
8435 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8436 (build-system ruby-build-system)
8437 (arguments `(#:tests? #f)); No rakefile
8438 (home-page "https://shopify.github.io/liquid/")
8439 (synopsis "Template language")
8440 (description "Liquid is a template language written in Ruby. It is used
8441 to load dynamic content on storefronts.")
8442 (license license:expat)))
8444 (define-public ruby-forwardable-extended
8446 (name "ruby-forwardable-extended")
8450 (uri (rubygems-uri "forwardable-extended" version))
8453 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8454 (build-system ruby-build-system)
8455 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8456 (home-page "https://github.com/envygeeks/forwardable-extended")
8457 (synopsis "Delegation to hashes and instance variables in Forwardable")
8458 (description "Forwardable Extended provides more @code{Forwardable}
8459 methods for your source as @code{Forwardable::Extended}.")
8460 (license license:expat)))
8462 (define-public ruby-pathutil
8464 (name "ruby-pathutil")
8468 (uri (rubygems-uri "pathutil" version))
8471 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
8472 (build-system ruby-build-system)
8474 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8476 `(("bundler" ,bundler)
8477 ("ruby-rspec" ,ruby-rspec)))
8478 ;; Fails with: cannot load such file --
8479 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8480 (arguments `(#:tests? #f))
8481 (home-page "https://github.com/envygeeks/pathutil")
8482 (synopsis "Extended implementation of Pathname")
8483 (description "Pathutil tries to be a faster pure Ruby implementation of
8485 (license license:expat)))
8487 (define-public jekyll
8493 (uri (rubygems-uri "jekyll" version))
8496 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
8497 (build-system ruby-build-system)
8499 ;; No rakefile, but a test subdirectory.
8502 (modify-phases %standard-phases
8503 (add-before 'build 'fix-i18n
8505 (substitute* ".gemspec"
8506 (("~> 0.7") ">= 0.7"))
8509 `(("ruby-addressable" ,ruby-addressable)
8510 ("ruby-colorator" ,ruby-colorator)
8511 ("ruby-em-websocket" ,ruby-em-websocket)
8512 ("ruby-i18n" ,ruby-i18n)
8513 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8514 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8515 ("ruby-kramdown" ,ruby-kramdown)
8516 ("ruby-liquid" ,ruby-liquid)
8517 ("ruby-mercenary" ,ruby-mercenary)
8518 ("ruby-pathutil" ,ruby-pathutil)
8519 ("ruby-rouge" ,ruby-rouge-2)
8520 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8521 (home-page "https://jekyllrb.com/")
8522 (synopsis "Static site generator")
8523 (description "Jekyll is a simple, blog aware, static site generator.")
8524 (license license:expat)))
8526 (define-public ruby-jekyll-paginate-v2
8528 (name "ruby-jekyll-paginate-v2")
8532 (uri (rubygems-uri "jekyll-paginate-v2" version))
8535 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8536 (build-system ruby-build-system)
8538 `(("jekyll" ,jekyll)))
8539 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8540 (synopsis "Pagination Generator for Jekyll 3")
8541 (description "The Pagination Generator forms the core of the pagination
8542 logic in Jekyll. It calculates and generates the pagination pages.")
8543 (license license:expat)))
8545 (define-public ruby-faraday
8547 (name "ruby-faraday")
8552 (uri (rubygems-uri "faraday" version))
8555 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8556 (build-system ruby-build-system)
8560 `(("ruby-multipart-post" ,ruby-multipart-post)))
8561 (synopsis "Ruby HTTP/REST API client library")
8563 "Faraday is a HTTP/REST API client library which provides a common
8564 interface over different adapters.")
8565 (home-page "https://github.com/lostisland/faraday")
8566 (license license:expat)))
8568 (define-public ruby-nio4r
8575 (uri (rubygems-uri "nio4r" version))
8578 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
8579 (build-system ruby-build-system)
8582 (modify-phases %standard-phases
8583 (add-after 'unpack 'remove-unnecessary-dependencies
8585 (substitute* "spec/spec_helper.rb"
8586 ;; Coveralls is for uploading test coverage information to an
8587 ;; online service, and thus unnecessary for building the Guix
8589 (("require \"coveralls\"") "")
8590 (("Coveralls\\.wear!") "")
8591 ;; Remove rspec/retry as we are not retrying the tests
8592 (("require \"rspec/retry\"") "")
8593 (("config\\.display_try_failure_messages = true") "")
8594 (("config\\.verbose_retry = true") ""))
8596 (add-before 'check 'compile
8598 (invoke "rake" "compile")
8601 (lambda* (#:key tests? #:allow-other-keys)
8606 `(("bundler" ,bundler)
8607 ("ruby-rake-compiler" ,ruby-rake-compiler)
8608 ("ruby-rspec" ,ruby-rspec)
8609 ("ruby-rubocop" ,ruby-rubocop)))
8610 (synopsis "New I/O for Ruby")
8612 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8613 for scalable network clients and servers.")
8614 (home-page "https://github.com/socketry/nio4r")
8615 (license license:expat)))
8617 (define-public ruby-globalid
8619 (name "ruby-globalid")
8624 (uri (rubygems-uri "globalid" version))
8627 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8628 (build-system ruby-build-system)
8630 '(;; No included tests
8633 `(("ruby-activesupport" ,ruby-activesupport)))
8634 (synopsis "Generate URIs idenfitying model instances in Ruby")
8636 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8637 uniquely identify it.")
8638 (home-page "https://rubyonrails.org/")
8639 (license license:expat)))
8641 (define-public ruby-sprockets
8643 (name "ruby-sprockets")
8648 (uri (rubygems-uri "sprockets" version))
8651 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8652 (build-system ruby-build-system)
8654 '(;; No included tests
8657 `(("ruby-concurrent" ,ruby-concurrent)
8658 ("ruby-rack" ,ruby-rack)))
8659 (synopsis "Sprockets is a Rack-based asset packaging system")
8661 "Sprockets is a Rack-based asset packaging system that concatenates and
8662 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8663 (home-page "https://github.com/rails/sprockets")
8664 (license license:expat)))
8666 (define-public ruby-mustermann
8668 (name "ruby-mustermann")
8673 (uri (rubygems-uri "mustermann" version))
8676 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8677 (build-system ruby-build-system)
8681 (synopsis "Library implementing patterns that behave like regular expressions")
8682 (description "Given a string pattern, Mustermann will turn it into an
8683 object that behaves like a regular expression and has comparable performance
8685 (home-page "https://github.com/sinatra/mustermann")
8686 (license license:expat)))
8688 (define-public ruby-htmlentities
8690 (name "ruby-htmlentities")
8695 (uri (rubygems-uri "htmlentities" version))
8698 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
8699 (build-system ruby-build-system)
8702 (modify-phases %standard-phases
8706 (invoke "ruby" "-Itest" file))
8707 (find-files "./test" ".*_test\\.rb")))))))
8708 (synopsis "Encode and decode (X)HTML entities")
8710 "This package provides a module for encoding and decoding (X)HTML
8712 (home-page "https://github.com/threedaymonk/htmlentities")
8713 (license license:expat)))
8715 (define-public ruby-sinatra
8717 (name "ruby-sinatra")
8722 (uri (rubygems-uri "sinatra" version))
8725 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8726 (build-system ruby-build-system)
8728 `(("ruby-mustermann" ,ruby-mustermann)
8729 ("ruby-rack" ,ruby-rack)
8730 ("ruby-rack-protection" ,ruby-rack-protection)
8731 ("ruby-tilt" ,ruby-tilt)))
8732 (synopsis "DSL for quick web applications creation in Ruby")
8734 "Sinatra is a DSL for quickly creating web applications in Ruby with
8736 (home-page "http://sinatrarb.com/")
8737 (license license:expat)))
8739 (define-public ruby-thin
8746 (uri (rubygems-uri "thin" version))
8749 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8750 (build-system ruby-build-system)
8755 `(("ruby-daemons" ,ruby-daemons)
8756 ("ruby-eventmachine" ,ruby-eventmachine)
8757 ("ruby-rack" ,ruby-rack)))
8758 (synopsis "Thin and fast web server for Ruby")
8759 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8761 @item the Mongrel parser,
8762 @item Event Machine, a network I/O library with high scalability, performance
8764 @item Rack, a minimal interface between webservers and Ruby frameworks.
8766 (home-page "http://code.macournoyer.com/thin/")
8767 (license license:ruby)))
8769 (define-public ruby-skinny
8771 (name "ruby-skinny")
8776 (uri (rubygems-uri "skinny" version))
8779 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8780 (build-system ruby-build-system)
8782 '(#:tests? #f ; No included tests
8784 (modify-phases %standard-phases
8785 (add-before 'build 'patch-gemspec
8787 (substitute* ".gemspec"
8788 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8789 "<eventmachine>, [\">= 1.0.0\"")
8790 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8793 `(("ruby-eventmachine" ,ruby-eventmachine)
8794 ("ruby-thin" ,ruby-thin)))
8795 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8796 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8798 (home-page "https://github.com/sj26/skinny")
8799 (license license:expat)))
8801 (define-public mailcatcher
8803 (name "mailcatcher")
8808 (uri (rubygems-uri "mailcatcher" version))
8811 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8812 (build-system ruby-build-system)
8814 ;; Tests require web/assets which is not included in the output. We
8815 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8816 ;; of the tests. See ruby-mysql2.
8819 (modify-phases %standard-phases
8820 (add-before 'build 'patch-gemspec
8822 (substitute* ".gemspec"
8823 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8824 "<eventmachine>, [\">= 1.0.9.1")
8825 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8826 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8827 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8829 (add-before 'build 'loosen-dependency-contraint
8831 (substitute* "lib/mail_catcher.rb"
8832 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8833 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8834 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8835 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8838 `(("ruby-eventmachine" ,ruby-eventmachine)
8839 ("ruby-mail" ,ruby-mail)
8840 ("ruby-rack" ,ruby-rack)
8841 ("ruby-sinatra" ,ruby-sinatra)
8842 ("ruby-skinny" ,ruby-skinny)
8843 ("ruby-sqlite3" ,ruby-sqlite3)
8844 ("ruby-thin" ,ruby-thin)))
8845 (synopsis "SMTP server which catches messages to display them a browser")
8847 "MailCatcher runs a super simple SMTP server which catches any message
8848 sent to it to display in a web interface. Run mailcatcher, set your favourite
8849 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8850 then check out http://127.0.0.1:1080 to see the mail.")
8851 (home-page "https://mailcatcher.me")
8852 (license license:expat)))
8854 (define-public ruby-backport
8856 (name "ruby-backport")
8860 ;; The gem does not include test code, so fetch from the Git repository.
8863 (url "https://github.com/castwide/backport.git")
8864 (commit (string-append "v" version))))
8865 (file-name (git-file-name name version))
8867 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
8868 (build-system ruby-build-system)
8870 `(#:test-target "spec"))
8872 `(("bundler" ,bundler)
8873 ("ruby-rspec" ,ruby-rspec)))
8875 `(("ruby-simplecov" ,ruby-simplecov)))
8876 (synopsis "Pure Ruby library for event-driven IO")
8878 "This package provides a pure Ruby library for event-driven IO.")
8879 (home-page "https://github.com/castwide/backport")
8880 (license license:expat)))
8882 (define-public ruby-json-schema
8884 (name "ruby-json-schema")
8889 (uri (rubygems-uri "json-schema" version))
8892 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
8893 (build-system ruby-build-system)
8895 `(#:tests? #f ; no tests
8897 (modify-phases %standard-phases
8900 (invoke "gem" "build" ".gemspec"))))))
8902 `(("ruby-addressable" ,ruby-addressable)))
8903 (synopsis "Ruby JSON Schema Validator")
8904 (description "This library provides Ruby with an interface for validating
8905 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
8906 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
8908 (home-page "https://github.com/ruby-json-schema/json-schema")
8909 (license license:expat)))
8911 (define-public swagger-diff
8913 (name "swagger-diff")
8918 (uri (rubygems-uri "swagger-diff" version))
8921 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
8922 (build-system ruby-build-system)
8924 `(#:test-target "spec"
8926 (modify-phases %standard-phases
8927 ;; Don't run or require rubocop, the code linting tool, as this is a
8929 (add-after 'unpack 'dont-run-rubocop
8931 (substitute* "Rakefile"
8932 ((".*rubocop.*") "")
8933 ((".*RuboCop.*") ""))
8936 `(("ruby-json-schema" ,ruby-json-schema)))
8938 `(("bundler" ,bundler)
8939 ("ruby-rspec-core" ,ruby-rspec-core)
8940 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
8942 "Compare Open API Initiative specification files")
8944 "Swagger::Diff is a utility for comparing two different Open API
8945 Initiative (OAI) specifications (formerly known as Swagger specifications).
8946 It is intended to determine whether a newer API specification is
8947 backwards-compatible with an older API specification.")
8948 (home-page "https://github.com/civisanalytics/swagger-diff")
8949 (license license:bsd-3)))
8951 (define-public ruby-reverse-markdown
8953 (name "ruby-reverse-markdown")
8958 (uri (rubygems-uri "reverse_markdown" version))
8961 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
8962 (build-system ruby-build-system)
8964 `(("ruby-nokogiri" ,ruby-nokogiri)))
8966 `(("bundler" ,bundler)
8967 ("ruby-rspec" ,ruby-rspec)
8968 ("ruby-kramdown" ,ruby-kramdown)
8969 ("ruby-simplecov" ,ruby-simplecov)))
8972 (modify-phases %standard-phases
8974 (lambda* (#:key tests? #:allow-other-keys)
8978 (synopsis "Convert HTML into Markdown")
8980 "This Ruby module allows you to map simple HTML back into
8981 Markdown---e.g., if you want to import existing HTML data in your
8983 (home-page "https://github.com/xijo/reverse_markdown")
8984 (license license:wtfpl2)))
8986 (define-public ruby-solargraph
8988 (name "ruby-solargraph")
8993 (uri (rubygems-uri "solargraph" version))
8996 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
8997 (build-system ruby-build-system)
8999 `(("ruby-backport" ,ruby-backport)
9000 ("bundler" ,bundler)
9001 ("ruby-htmlentities" ,ruby-htmlentities)
9002 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
9003 ("ruby-maruku" ,ruby-maruku)
9004 ("ruby-nokogiri" ,ruby-nokogiri)
9005 ("ruby-parser" ,ruby-parser)
9006 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
9007 ("ruby-rubocop" ,ruby-rubocop)
9008 ("ruby-thor" ,ruby-thor)
9009 ("ruby-tilt" ,ruby-tilt)
9010 ("ruby-yard" ,ruby-yard)))
9012 `(("ruby-rspec" ,ruby-rspec)
9013 ("ruby-pry" ,ruby-pry)
9014 ("ruby-simplecov" ,ruby-simplecov)
9015 ("ruby-webmock" ,ruby-webmock-2)))
9016 ;; FIXME: can't figure out how to run the tests properly:
9018 ;; An error occurred while loading spec_helper.
9019 ;; Failure/Error: return gem_original_require(path)
9021 ;; cannot load such file -- spec_helper
9025 (modify-phases %standard-phases
9027 (lambda* (#:key tests? #:allow-other-keys)
9032 "IDE tools for code completion, inline documentation, and static analysis")
9034 "Solargraph provides a comprehensive suite of tools for Ruby
9035 programming: intellisense, diagnostics, inline documentation, and type
9037 (home-page "https://solargraph.org/")
9038 (license license:expat)))
9040 (define-public ruby-wayback-machine-downloader
9042 (name "ruby-wayback-machine-downloader")
9048 "wayback_machine_downloader"
9052 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
9053 (build-system ruby-build-system)
9055 '(#:tests? #f)) ; no tests
9056 (synopsis "Download archived websites from the Wayback Machine")
9058 "Wayback Machine Downloader is a command line tool for downloading
9059 websites from the Internet Archive's Wayback Machine (archive.org).
9060 It allows fine grained control over what to download by specifying
9061 which snapshots to consider and what files to include.")
9063 "https://github.com/hartator/wayback-machine-downloader")
9064 (license license:expat)))