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 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>
23 ;;; This file is part of GNU Guix.
25 ;;; GNU Guix is free software; you can redistribute it and/or modify it
26 ;;; under the terms of the GNU General Public License as published by
27 ;;; the Free Software Foundation; either version 3 of the License, or (at
28 ;;; your option) any later version.
30 ;;; GNU Guix is distributed in the hope that it will be useful, but
31 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
32 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33 ;;; GNU General Public License for more details.
35 ;;; You should have received a copy of the GNU General Public License
36 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
38 (define-module (gnu packages ruby)
39 #:use-module ((guix licenses) #:prefix license:)
40 #:use-module (gnu packages)
41 #:use-module (gnu packages base)
42 #:use-module (gnu packages bison)
43 #:use-module (gnu packages check)
44 #:use-module (gnu packages compression)
45 #:use-module (gnu packages crypto)
46 #:use-module (gnu packages databases)
47 #:use-module (gnu packages dbm)
48 #:use-module (gnu packages rails)
49 #:use-module (gnu packages readline)
50 #:use-module (gnu packages autotools)
51 #:use-module (gnu packages java)
52 #:use-module (gnu packages libffi)
53 #:use-module (gnu packages libidn)
54 #:use-module (gnu packages linux)
55 #:use-module (gnu packages lsof)
56 #:use-module (gnu packages maths)
57 #:use-module (gnu packages ncurses)
58 #:use-module (gnu packages networking)
59 #:use-module (gnu packages node)
60 #:use-module (gnu packages python)
61 #:use-module (gnu packages python-xyz)
62 #:use-module (gnu packages ragel)
63 #:use-module (gnu packages rsync)
64 #:use-module (gnu packages sqlite)
65 #:use-module (gnu packages tls)
66 #:use-module (gnu packages version-control)
67 #:use-module (guix packages)
68 #:use-module (guix download)
69 #:use-module (guix git-download)
70 #:use-module (guix utils)
71 #:use-module (guix build-system gnu)
72 #:use-module (gnu packages xml)
73 #:use-module (gnu packages web)
74 #:use-module (guix build-system ruby)
75 #:use-module ((srfi srfi-1) #:select (alist-delete)))
84 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
85 (version-major+minor version)
86 "/ruby-" version ".tar.xz"))
89 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
90 (modules '((guix build utils)))
92 ;; Remove bundled libffi
93 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
95 (build-system gnu-build-system)
97 `(#:test-target "test"
99 (modify-phases %standard-phases
100 (add-before 'configure 'replace-bin-sh-and-remove-libffi
102 (substitute* '("Makefile.in"
107 "test/rubygems/test_gem_ext_configure_builder.rb"
108 "test/rdoc/test_rdoc_parser.rb"
109 "test/ruby/test_rubyoptions.rb"
110 "test/ruby/test_process.rb"
111 "test/ruby/test_system.rb"
113 (("/bin/sh") (which "sh")))
116 `(("readline" ,readline)
122 (list (search-path-specification
123 (variable "GEM_PATH")
124 (files (list (string-append "lib/ruby/vendor_ruby"))))))
125 (synopsis "Programming language interpreter")
126 (description "Ruby is a dynamic object-oriented programming language with
127 a focus on simplicity and productivity.")
128 (home-page "https://www.ruby-lang.org")
129 (license license:ruby)))
131 (define-public ruby-2.4
138 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
139 (version-major+minor version)
140 "/ruby-" version ".tar.xz"))
143 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
144 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
145 (modules '((guix build utils)))
147 ;; Remove bundled libffi
148 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
151 (define-public ruby-2.3
158 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
159 (version-major+minor version)
160 "/ruby-" version ".tar.xz"))
163 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
164 (modules '((guix build utils)))
166 ;; Remove bundled libffi
167 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
178 (url "https://github.com/mruby/mruby.git")
180 (file-name (git-file-name name version))
183 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
184 (build-system gnu-build-system)
186 `(#:test-target "test"
188 (modify-phases %standard-phases
190 (add-after 'unpack 'enable-verbose-tests
192 (substitute* "Makefile"
193 (("ruby ./minirake" m)
194 (string-append m " --verbose")))
196 (add-after 'unpack 'disable-broken-tests
198 (substitute* "mrbgems/mruby-io/test/io.rb"
199 (("assert\\('IO.popen.+$" m)
200 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
201 (("assert\\('IO#isatty.+$" m)
202 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
203 ;; This one is really weird. The *expected* output is all wrong.
204 (("assert\\('`cmd`.*" m)
205 (string-append m "skip \"Disable for Guix\"\n"))
207 (string-append (which "echo") " foo")))
209 ;; There is no install target
211 (lambda* (#:key outputs #:allow-other-keys)
212 (let* ((out (assoc-ref outputs "out"))
213 (bin (string-append out "/bin"))
214 (lib (string-append out "/lib")))
216 (copy-recursively "build/host/bin" bin)
218 (copy-recursively "build/host/lib" lib))
223 (home-page "https://github.com/mruby/mruby")
224 (synopsis "Lightweight Ruby")
225 (description "mruby is the lightweight implementation of the Ruby
226 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
227 embedded within your application.")
228 (license license:expat)))
230 (define-public ruby-commander
232 (name "ruby-commander")
237 (uri (rubygems-uri "commander" version))
240 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
241 (build-system ruby-build-system)
243 `(#:test-target "spec"
245 (modify-phases %standard-phases
246 ;; Don't run or require rubocop, the code linting tool, as this is a
248 (add-after 'unpack 'dont-run-rubocop
250 (substitute* "Rakefile"
252 ((".*RuboCop.*") ""))
255 `(("ruby-highline" ,ruby-highline)))
257 `(("bundler" ,bundler)
258 ("ruby-rspec-core" ,ruby-rspec-core)
259 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
260 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
261 ("ruby-simplecov" ,ruby-simplecov)))
262 (home-page "https://github.com/commander-rb/commander")
263 (synopsis "Library for building Ruby command-line executables")
265 "Commander aims to be a complete solution for Ruby command-line
266 executables. Commander bridges the gap between other terminal related
267 libraries (OptionParser, HighLine), while providing many new features, and an
269 (license license:expat)))
271 (define-public ruby-highline
273 (name "ruby-highline")
278 (uri (rubygems-uri "highline" version))
281 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
282 (build-system ruby-build-system)
284 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
286 `(("bundler" ,bundler)
287 ("ruby-code-statistics" ,ruby-code-statistics)))
289 "HighLine helps you build command-line interfaces")
291 "HighLine provides a high-level IO library that provides validation,
292 type conversion, and more for command-line interfaces. HighLine also includes
293 a menu system for providing multiple options to the user.")
294 (home-page "https://github.com/JEG2/highline")
295 (license (list license:gpl2 license:ruby))))
297 (define-public ruby-hoe
303 (uri (rubygems-uri "hoe" version))
306 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
307 (build-system ruby-build-system)
308 (synopsis "Ruby project management helper")
310 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
311 maintain, and release projects and includes a dynamic plug-in system allowing
312 for easy extensibility. Hoe ships with plug-ins for all the usual project
313 tasks including rdoc generation, testing, packaging, deployment, and
315 (home-page "https://www.zenspider.com/projects/hoe.html")
316 (license license:expat)))
318 (define-public ruby-rake-compiler
320 (name "ruby-rake-compiler")
324 (uri (rubygems-uri "rake-compiler" version))
327 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
328 (build-system ruby-build-system)
330 '(#:tests? #f)) ; needs cucumber
331 (synopsis "Building and packaging helper for Ruby native extensions")
332 (description "Rake-compiler provides a framework for building and
333 packaging native C and Java extensions in Ruby.")
334 (home-page "https://github.com/rake-compiler/rake-compiler")
335 (license license:expat)))
337 (define-public ruby-rsync
344 (uri (rubygems-uri "rsync" version))
347 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
348 (build-system ruby-build-system)
350 '(#:test-target "spec"
352 (modify-phases %standard-phases
353 (add-after 'unpack 'remove-coveralls-requirement
355 (substitute* "spec/spec_helper.rb"
356 (("require 'coveralls'") "")
357 (("Coveralls.wear!") ""))
360 `(("bundler" ,bundler)
362 ("ruby-rspec-core" ,ruby-rspec-core)
363 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
364 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
365 (home-page "https://github.com/jbussdieker/ruby-rsync")
366 (synopsis "Ruby wrapper around rsync")
368 "Ruby Rsync is a Ruby library that can synchronize files between remote
369 hosts by wrapping the @file{rsync} binary.")
370 (license license:expat)))
372 (define-public ruby-i18n
378 (uri (rubygems-uri "i18n" version))
381 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
382 (build-system ruby-build-system)
384 '(#:tests? #f)) ; no tests
385 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
386 (synopsis "Internationalization library for Ruby")
387 (description "Ruby i18n is an internationalization and localization
388 solution for Ruby programs. It features translation and localization,
389 interpolation of values to translations, pluralization, customizable
390 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
391 translation data, custom key/scope separator, custom exception handlers, and
392 an extensible architecture with a swappable backend.")
393 (home-page "https://github.com/ruby-i18n/i18n")
394 (license license:expat)))
396 (define-public ruby-iruby
403 (uri (rubygems-uri "iruby" version))
406 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
407 (build-system ruby-build-system)
409 ;; TODO: Tests currently fail.
411 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
414 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
417 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
420 (modify-phases %standard-phases
421 (add-after 'unpack 'patch-ipython
422 (lambda* (#:key inputs #:allow-other-keys)
423 (substitute* "lib/iruby/command.rb"
427 (assoc-ref inputs "python-ipython")
429 (("Kernel\\.exec\\('")
432 (assoc-ref inputs "python-ipython")
436 `(("python-ipython" ,python-ipython)))
438 `(("ruby-bond" ,ruby-bond)
439 ("ruby-data_uri" ,ruby-data_uri)
440 ("ruby-mimemagic" ,ruby-mimemagic)
441 ("ruby-multi-json" ,ruby-multi-json)
442 ("ruby-cztop" ,ruby-cztop)
444 ("ruby-pry" ,ruby-pry)))
445 (synopsis "Ruby kernel for Jupyter/IPython")
447 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
449 (home-page "https://github.com/SciRuby/iruby")
450 (license license:expat)))
452 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
453 ;; dependencies use RSpec for their test suites! To avoid these circular
454 ;; dependencies, we disable tests for all of the RSpec-related packages.
455 (define-public ruby-rspec-support
457 (name "ruby-rspec-support")
461 (uri (rubygems-uri "rspec-support" version))
464 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
465 (build-system ruby-build-system)
467 '(#:tests? #f)) ; avoid dependency cycles
468 (synopsis "RSpec support library")
469 (description "Support utilities for RSpec gems.")
470 (home-page "https://github.com/rspec/rspec-support")
471 (license license:expat)))
473 (define-public ruby-rspec-core
475 (name "ruby-rspec-core")
479 (uri (rubygems-uri "rspec-core" version))
482 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
483 (build-system ruby-build-system)
485 '(#:tests? #f)) ; avoid dependency cycles
487 `(("ruby-rspec-support" ,ruby-rspec-support)))
488 (synopsis "RSpec core library")
489 (description "Rspec-core provides the RSpec test runner and example
491 (home-page "https://github.com/rspec/rspec-core")
492 (license license:expat)))
494 (define-public ruby-rspec-core-2
495 (package (inherit ruby-rspec-core)
499 (uri (rubygems-uri "rspec-core" version))
502 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
503 (propagated-inputs `())))
505 (define-public ruby-diff-lcs
507 (name "ruby-diff-lcs")
511 (uri (rubygems-uri "diff-lcs" version))
514 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
515 (build-system ruby-build-system)
517 '(#:tests? #f)) ; avoid dependency cycles
518 (synopsis "Compute the difference between two Enumerable sequences")
519 (description "Diff::LCS computes the difference between two Enumerable
520 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
521 It includes utilities to create a simple HTML diff output format and a
522 standard diff-like tool.")
523 (home-page "https://github.com/halostatue/diff-lcs")
524 (license license:expat)))
526 (define-public ruby-rspec-expectations
528 (name "ruby-rspec-expectations")
532 (uri (rubygems-uri "rspec-expectations" version))
535 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
536 (build-system ruby-build-system)
538 '(#:tests? #f)) ; avoid dependency cycles
540 `(("ruby-rspec-support" ,ruby-rspec-support)
541 ("ruby-diff-lcs" ,ruby-diff-lcs)))
542 (synopsis "RSpec expectations library")
543 (description "Rspec-expectations provides a simple API to express expected
544 outcomes of a code example.")
545 (home-page "https://github.com/rspec/rspec-expectations")
546 (license license:expat)))
548 (define-public ruby-rspec-expectations-2
549 (package (inherit ruby-rspec-expectations)
553 (uri (rubygems-uri "rspec-expectations" version))
556 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
558 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
560 (define-public ruby-rspec-its
562 (name "ruby-rspec-its")
568 (url "https://github.com/rspec/rspec-its.git")
569 (commit (string-append "v" version))))
570 (file-name (git-file-name name version))
573 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
574 (build-system ruby-build-system)
576 `(#:test-target "spec"
578 (modify-phases %standard-phases
579 (add-after 'unpack 'dont-install-gems-from-gemfile
581 (substitute* "Gemfile"
582 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
585 (add-before 'build 'update-ffi-in-gemfile
587 (substitute* "Gemfile"
588 ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'"))
590 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
592 (substitute* "rspec-its.gemspec"
593 (("rake.*") "rake'\n")
594 (("spec.add_development_dependency 'cucumber'.*")
595 "spec.add_development_dependency 'cucumber'\n")
596 (("bundler.*") "bundler'\n")
597 (("\"aruba.*") "'aruba'\n"))
600 `(("ruby-rspec-core" ,ruby-rspec-core)
601 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
603 `(("bundler" ,bundler)
604 ("ruby-cucumber" ,ruby-cucumber)
605 ("ruby-ffi" ,ruby-ffi)
606 ("ruby-aruba" ,ruby-aruba)))
607 (synopsis "RSpec extension that provides the @code{its} method")
609 "RSpec::Its provides the its method as a short-hand to specify the expected
610 value of an attribute. For example, one can use @code{its(:size)\\{should
612 (home-page "https://github.com/rspec/rspec-its")
613 (license license:expat)))
615 (define-public ruby-rspec-mocks
617 (name "ruby-rspec-mocks")
621 (uri (rubygems-uri "rspec-mocks" version))
624 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
625 (build-system ruby-build-system)
627 '(#:tests? #f)) ; avoid dependency cycles
629 `(("ruby-rspec-support" ,ruby-rspec-support)
630 ("ruby-diff-lcs" ,ruby-diff-lcs)))
631 (synopsis "RSpec stubbing and mocking library")
632 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
633 support for stubbing and mocking.")
634 (home-page "https://github.com/rspec/rspec-mocks")
635 (license license:expat)))
637 (define-public ruby-rspec-mocks-2
638 (package (inherit ruby-rspec-mocks)
642 (uri (rubygems-uri "rspec-mocks" version))
645 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
647 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
649 (define-public ruby-rspec-rerun
651 (name "ruby-rspec-rerun")
656 (uri (rubygems-uri "rspec-rerun" version))
659 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
660 (build-system ruby-build-system)
662 '(;; No included tests
664 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
665 (synopsis "Track failed RSpec tests to re-run them")
667 "This package provides an automated way to track, and then re-run failed
669 (home-page "https://github.com/dblock/rspec-rerun")
670 (license license:expat)))
672 (define-public ruby-rspec-wait
674 (name "ruby-rspec-wait")
679 (uri (rubygems-uri "rspec-wait" version))
682 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
683 (build-system ruby-build-system)
686 (modify-phases %standard-phases
689 (invoke "rake" "spec"))))))
691 `(("bundler" ,bundler)))
693 `(("ruby-rspec" ,ruby-rspec)))
694 (home-page "https://github.com/laserlemon/rspec-wait")
695 (synopsis "Wait for conditions in RSpec")
697 "RSpec::Wait strives to make it easier to test asynchronous or slow
699 (license license:expat)))
701 (define-public ruby-rspec
707 (uri (rubygems-uri "rspec" version))
710 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
711 (build-system ruby-build-system)
713 '(#:tests? #f)) ; avoid dependency cycles
715 `(("ruby-rspec-core" ,ruby-rspec-core)
716 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
717 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
718 (synopsis "Behavior-driven development framework for Ruby")
719 (description "RSpec is a behavior-driven development (BDD) framework for
720 Ruby. This meta-package includes the RSpec test runner, along with the
721 expectations and mocks frameworks.")
722 (home-page "http://rspec.info/")
723 (license license:expat)))
725 (define-public ruby-rspec-2
726 (package (inherit ruby-rspec)
730 (uri (rubygems-uri "rspec" version))
733 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
735 `(("ruby-rspec-core" ,ruby-rspec-core-2)
736 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
737 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
739 ;; Bundler is yet another source of circular dependencies, so we must disable
740 ;; its test suite as well.
741 (define-public bundler
747 (uri (rubygems-uri "bundler" version))
750 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
751 (build-system ruby-build-system)
753 '(#:tests? #f)) ; avoid dependency cycles
754 (synopsis "Ruby gem bundler")
755 (description "Bundler automatically downloads and installs a list of gems
756 specified in a \"Gemfile\", as well as their dependencies.")
757 (home-page "https://bundler.io/")
758 (license license:expat)))
760 (define-public ruby-builder
762 (name "ruby-builder")
766 (uri (rubygems-uri "builder" version))
769 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
770 (build-system ruby-build-system)
773 (modify-phases %standard-phases
774 (add-after 'unpack 'do-not-use-rvm
776 (substitute* "rakelib/tags.rake"
777 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
779 (synopsis "Ruby library to create structured data")
780 (description "Builder provides a number of builder objects that make it
781 easy to create structured data. Currently the following builder objects are
782 supported: XML Markup and XML Events.")
783 (home-page "https://github.com/jimweirich/builder")
784 (license license:expat)))
786 (define-public ruby-bump
793 (uri (rubygems-uri "bump" version))
796 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
797 (build-system ruby-build-system)
799 '(;; No included tests
801 (synopsis "Tool for working with Rubygems")
803 "Bump provides commands to manage Rubygem versioning, updating to the
804 next patch version for example.")
805 (home-page "https://github.com/gregorym/bump")
806 (license license:expat)))
808 (define-public ruby-rjb
814 (uri (rubygems-uri "rjb" version))
817 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
818 (build-system ruby-build-system)
820 `(#:tests? #f ; no rakefile
822 (modify-phases %standard-phases
823 (add-before 'build 'set-java-home
824 (lambda* (#:key inputs #:allow-other-keys)
825 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
828 `(("jdk" ,icedtea "jdk")))
829 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
830 (description "RJB is a bridge program that connects Ruby and Java via the
831 Java Native Interface.")
832 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
833 (license license:lgpl2.1+)))
835 (define-public ruby-log4r
842 (uri (rubygems-uri "log4r" version))
845 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
846 (build-system ruby-build-system)
848 '(#:tests? #f)) ; no Rakefile in gem
849 (synopsis "Flexible logging library for Ruby")
850 (description "Comprehensive and flexible logging library written
851 in Ruby for use in Ruby programs. It features a hierarchical logging
852 system of any number of levels, custom level names, logger
853 inheritance, multiple output destinations per log event, execution
854 tracing, custom formatting, thread safteyness, XML and YAML
855 configuration, and more.")
856 (home-page "http://log4r.rubyforge.org/")
857 (license license:bsd-3)))
859 (define-public ruby-atoulme-antwrap
861 (name "ruby-atoulme-antwrap")
865 (uri (rubygems-uri "atoulme-Antwrap" version))
868 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
869 (build-system ruby-build-system)
870 ;; Test data required for most of the tests are not included.
871 (arguments `(#:tests? #f))
873 `(("ruby-hoe" ,ruby-hoe)))
875 `(("ruby-rjb" ,ruby-rjb)))
876 (synopsis "Ruby wrapper for the Ant build tool")
877 (description "Antwrap is a Ruby module that wraps the Apache Ant build
878 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
880 (home-page "http://rubyforge.org/projects/antwrap/")
881 (license license:expat)))
883 (define-public ruby-atoulme-saikuro
885 (name "ruby-atoulme-saikuro")
889 (uri (rubygems-uri "atoulme-Saikuro" version))
892 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
893 (build-system ruby-build-system)
894 ;; FIXME: There are no unit tests. The tests are demonstrations of the
896 (arguments `(#:tests? #f))
897 (synopsis "Cyclomatic complexity analyzer")
898 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
899 given Ruby source code Saikuro will generate a report listing the cyclomatic
900 complexity of each method found. In addition, Saikuro counts the number of
901 lines per method and can generate a listing of the number of tokens on each
903 (home-page "http://www.github.com/atoulme/Saikuro")
904 ;; File headers contain the BSD-3 license and the README.rdoc says that
905 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
906 ;; of the Expat license.
907 (license license:bsd-3)))
909 (define-public ruby-asciidoctor
911 (name "ruby-asciidoctor")
916 (uri (rubygems-uri "asciidoctor" version))
919 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
920 (build-system ruby-build-system)
922 `(#:test-target "test:all"
924 (modify-phases %standard-phases
925 (add-before 'check 'remove-circular-tests
927 ;; Remove tests that require circular dependencies to load or pass.
928 (delete-file "test/invoker_test.rb")
929 (delete-file "test/converter_test.rb")
930 (delete-file "test/options_test.rb")
933 `(("ruby-minitest" ,ruby-minitest)
934 ("ruby-nokogiri" ,ruby-nokogiri)
935 ("ruby-asciimath" ,ruby-asciimath)
936 ("ruby-coderay" ,ruby-coderay)))
937 (synopsis "Converter from AsciiDoc content to other formats")
939 "Asciidoctor is a text processor and publishing toolchain for converting
940 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
941 (home-page "https://asciidoctor.org")
942 (license license:expat)))
944 (define-public ruby-ast
951 (uri (rubygems-uri "ast" version))
954 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
955 (build-system ruby-build-system)
958 (modify-phases %standard-phases
959 (add-after 'unpack 'remove-coveralls-requirement
961 (substitute* "test/helper.rb"
962 (("require 'coveralls'") "")
963 (("Coveralls::SimpleCov::Formatter") ""))
965 (add-after 'extract-gemspec 'remove-unnecessary-requirements
967 (substitute* "ast.gemspec"
968 ((".*coveralls.*") "\n")
969 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
970 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
971 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
974 `(("bundler" ,bundler)
975 ("ruby-simplecov" ,ruby-simplecov)
976 ("ruby-json-pure" ,ruby-json-pure)
977 ("ruby-mime-times" ,ruby-mime-types)
978 ("ruby-yard" ,ruby-yard)
979 ("ruby-kramdown" ,ruby-kramdown)
980 ("ruby-rest-client" ,ruby-rest-client)
981 ("ruby-bacon" ,ruby-bacon)
982 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
983 ("ruby-racc" ,ruby-racc)))
984 (synopsis "Library for working with Abstract Syntax Trees")
986 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
987 It does this through immutable data structures.")
988 (home-page "https://whitequark.github.io/ast/")
989 (license license:expat)))
991 (define-public ruby-sporkmonger-rack-mount
992 ;; Testing the addressable gem requires a newer commit than that released, so
993 ;; use an up to date version.
995 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
997 (name "ruby-sporkmonger-rack-mount")
998 (version (git-version "0.8.3" revision commit))
1002 (url "https://github.com/sporkmonger/rack-mount.git")
1004 (file-name (git-file-name name version))
1007 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1008 (build-system ruby-build-system)
1010 ;; Tests currently fail so disable them.
1011 ;; https://github.com/sporkmonger/rack-mount/pull/1
1013 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1014 (synopsis "Stackable dynamic tree based Rack router")
1016 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1017 continue trying routes if the response returns pass. This allows multiple
1018 routes to be nested or stacked on top of each other.")
1019 (home-page "https://github.com/sporkmonger/rack-mount")
1020 (license license:expat))))
1022 (define-public ruby-ci-reporter
1024 (name "ruby-ci-reporter")
1028 (uri (rubygems-uri "ci_reporter" version))
1031 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1032 (build-system ruby-build-system)
1034 `(#:test-target "rspec"))
1036 `(("ruby-builder" ,ruby-builder)))
1038 `(("bundler" ,bundler)
1039 ("ruby-rspec" ,ruby-rspec)))
1040 (synopsis "Generate XML reports of runs test")
1042 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1043 you to generate XML reports of your test runs. The resulting files can be
1044 read by a continuous integration system that understands Ant's JUnit report
1046 (home-page "https://github.com/nicksieger/ci_reporter")
1047 (license license:expat)))
1049 (define-public ruby-contracts
1051 (name "ruby-contracts")
1056 (uri (rubygems-uri "contracts" version))
1059 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1060 (build-system ruby-build-system)
1062 '(#:test-target "spec"
1064 (modify-phases %standard-phases
1065 ;; Don't run or require rubocop, the code linting tool, as this is a
1067 (add-after 'unpack 'dont-run-rubocop
1069 (substitute* "Rakefile"
1070 ((".*rubocop.*") "")
1071 ((".*RuboCop.*") ""))
1074 `(("ruby-rspec" ,ruby-rspec)))
1075 (synopsis "Method contracts for Ruby")
1077 "This library provides contracts for Ruby. A contract describes the
1078 correct inputs and output for a method, and will raise an error if a incorrect
1080 (home-page "https://github.com/egonSchiele/contracts.ruby")
1081 (license license:bsd-2)))
1083 (define-public ruby-crack
1090 (uri (rubygems-uri "crack" version))
1093 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1094 (build-system ruby-build-system)
1097 (modify-phases %standard-phases
1099 (lambda* (#:key tests? #:allow-other-keys)
1101 (for-each (lambda (file)
1102 (display file)(display "\n")
1103 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1104 (find-files "test" ".*rb$")))
1107 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1108 (synopsis "Simple JSON and XML parsing for Ruby")
1110 "@code{crack} provides really simple JSON and XML parsing, extracted from
1111 code in Merb and Rails.")
1112 (home-page "https://github.com/jnunemaker/crack")
1113 (license license:expat)))
1115 (define-public ruby-cliver
1117 (name "ruby-cliver")
1122 (uri (rubygems-uri "cliver" version))
1125 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1126 (build-system ruby-build-system)
1129 (modify-phases %standard-phases
1130 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1131 ;; would be nice, but the tests look to be incompatible:
1133 ;; NoMethodError: undefined method `last_comment'
1135 (lambda* (#:key tests? #:allow-other-keys)
1140 `(("bundler" ,bundler)
1141 ("ruby-rspec" ,ruby-rspec-2)))
1142 (synopsis "Assertions for command-line dependencies in Ruby")
1144 "@code{cliver} provides a way to detect missing command-line
1145 dependencies, including versions.")
1146 (home-page "https://github.com/yaauie/cliver")
1147 (license license:expat)))
1149 (define-public ruby-czmq-ffi-gen
1151 (name "ruby-czmq-ffi-gen")
1156 (uri (rubygems-uri "czmq-ffi-gen" version))
1159 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1160 (build-system ruby-build-system)
1162 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1164 (modify-phases %standard-phases
1165 (add-after 'unpack 'patch-lib_dirs
1166 (lambda* (#:key inputs #:allow-other-keys)
1167 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1168 (("lib\\_dirs = \\[.*\\]")
1169 (string-append "lib_dirs = ['"
1170 (assoc-ref inputs "czmq") "/lib"
1172 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1173 (("lib\\_dirs = \\[.*\\]")
1174 (string-append "lib_dirs = ['"
1175 (assoc-ref inputs "zeromq") "/lib"
1178 `(("zeromq" ,zeromq)
1180 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1181 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1183 "These Ruby bindings are not intended to be directly used, but rather
1184 used by higher level bindings like those provided by CZTop.")
1186 "https://github.com/paddor/czmq-ffi-gen")
1187 (license license:isc)))
1189 (define-public ruby-cztop
1196 (uri (rubygems-uri "cztop" version))
1199 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1200 (build-system ruby-build-system)
1202 '(#:test-target "spec"
1204 (modify-phases %standard-phases
1205 (add-after 'unpack 'patch-lib_paths
1206 (lambda* (#:key inputs #:allow-other-keys)
1207 (substitute* "lib/cztop/poller/zmq.rb"
1208 (("lib\\_paths = \\[.*\\]")
1209 (string-append "lib_paths = ['"
1210 (assoc-ref inputs "zeromq") "/lib"
1213 `(("bundler" ,bundler)
1214 ("ruby-rspec" ,ruby-rspec)))
1216 `(("zeromq" ,zeromq)))
1218 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1219 (synopsis "CZMQ Ruby bindings")
1221 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1222 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1223 support for security mechanisms.")
1224 (home-page "https://github.com/paddor/cztop")
1225 (license license:isc)))
1227 (define-public ruby-saikuro-treemap
1229 (name "ruby-saikuro-treemap")
1233 (uri (rubygems-uri "saikuro_treemap" version))
1236 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1237 (build-system ruby-build-system)
1238 ;; Some of the tests fail because the generated JSON has keys in a
1239 ;; different order. This is a problem with the test suite rather than any
1240 ;; of the involved libraries.
1241 (arguments `(#:tests? #f))
1243 `(("ruby-json-pure" ,ruby-json-pure)
1244 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1245 (synopsis "Generate complexity treemap based on saikuro analysis")
1247 "This gem generates a treemap showing the complexity of Ruby code on
1248 which it is run. It uses Saikuro under the covers to analyze Ruby code
1250 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1251 (license license:expat)))
1253 (define-public ruby-oauth2
1255 (name "ruby-oauth2")
1260 (uri (rubygems-uri "oauth2" version))
1262 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1263 (build-system ruby-build-system)
1265 '(#:tests? #f)) ; no included tests
1267 `(("ruby-faraday" ,ruby-faraday)
1268 ("ruby-jwt" ,ruby-jwt)
1269 ("ruby-multi-json" ,ruby-multi-json)
1270 ("ruby-multi-xml" ,ruby-multi-xml)
1271 ("ruby-rack" ,ruby-rack)))
1272 (synopsis "Ruby wrapper for the OAuth 2.0")
1274 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1275 with a similar style to the original OAuth spec.")
1276 (home-page "https://github.com/oauth-xx/oauth2")
1277 (license license:expat)))
1279 (define-public ruby-omniauth
1281 (name "ruby-omniauth")
1286 (uri (rubygems-uri "omniauth" version))
1289 "1p16h1rp8by05k8gfw17xjhgwp60dk8qmj1xalv1n23kmxfsxb1x"))))
1290 (build-system ruby-build-system)
1292 '(#:tests? #f)) ; No included tests
1294 `(("ruby-hashie" ,ruby-hashie)
1295 ("ruby-rack" ,ruby-rack)))
1296 (synopsis "Generalized Rack framework for multiple-provider authentication")
1298 "This package provides a generalized Rack framework for multiple-provider
1300 (home-page "https://github.com/omniauth/omniauth")
1301 (license license:expat)))
1303 (define-public ruby-omniauth-oauth2
1305 (name "ruby-omniauth-oauth2")
1310 (uri (rubygems-uri "omniauth-oauth2" version))
1313 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1314 (build-system ruby-build-system)
1317 (modify-phases %standard-phases
1318 (add-after 'unpack 'remove-unnecessary-dependencies
1320 ;; The coveralls gem submits coverage information to an online
1321 ;; service, and is unnecessary when running the tests
1322 (substitute* "Gemfile"
1323 ((".*coveralls\"") ""))
1324 (substitute* "spec/helper.rb"
1325 (("require \"coveralls\"") "")
1326 (("Coveralls::SimpleCov::Formatter") ""))
1329 `(("ruby-oauth2" ,ruby-oauth2)
1330 ("ruby-omniauth" ,ruby-omniauth)))
1332 `(("bundler" ,bundler)
1333 ("ruby-rspec" ,ruby-rspec)
1334 ("ruby-simplecov" ,ruby-simplecov)
1335 ("ruby-rack-test" ,ruby-rack-test)
1336 ("ruby-webmock" ,ruby-webmock-2)))
1337 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1339 "This library provides a generic OAuth2 strategy for OmniAuth. It
1340 doesn't provide a way to gather user information, so should be used as a
1341 building block for authentication strategies.")
1342 (home-page "https://github.com/omniauth/omniauth-oauth2")
1343 (license license:expat)))
1345 (define-public ruby-open4
1352 (uri (rubygems-uri "open4" version))
1355 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1356 (build-system ruby-build-system)
1359 (modify-phases %standard-phases
1360 (add-after 'unpack 'patch
1362 (substitute* "rakefile"
1363 ;; Update the Rakefile so it works
1364 (("-rubygems") "-rrubygems")
1365 (("Config") "RbConfig"))
1367 (add-before 'check 'set-LIB
1369 ;; This is used in the rakefile when running the tests
1370 (setenv "LIB" "open4")
1372 (synopsis "Open child processes from Ruby and manage them easily")
1374 "@code{Open4} is a Ruby library to run child processes and manage their
1376 (home-page "https://github.com/ahoward/open4")
1377 (license license:ruby)))
1379 (define-public ruby-options
1381 (name "ruby-options")
1386 (uri (rubygems-uri "options" version))
1389 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1390 (build-system ruby-build-system)
1392 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1394 (modify-phases %standard-phases
1395 (add-before 'check 'set-LIB
1397 ;; This is used in the Rakefile, and setting it avoids an issue
1398 ;; with running the tests.
1399 (setenv "LIB" "options")
1401 (synopsis "Ruby library to parse options from *args cleanly")
1403 "The @code{options} library helps with parsing keyword options in Ruby
1405 (home-page "https://github.com/ahoward/options")
1406 (license license:ruby)))
1408 (define-public ruby-erubi
1415 (uri (rubygems-uri "erubi" version))
1418 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1419 (build-system ruby-build-system)
1420 (synopsis "ERB template engine for Ruby")
1422 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1424 (home-page "https://github.com/jeremyevans/erubi")
1425 (license license:expat)))
1427 (define-public ruby-erubis
1429 (name "ruby-erubis")
1434 (uri (rubygems-uri "erubis" version))
1437 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1438 (build-system ruby-build-system)
1440 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1441 (synopsis "Implementation of embedded Ruby (eRuby)")
1443 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1444 features such as multi-language support, auto escaping, auto trimming spaces
1445 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1447 (home-page "http://www.kuwata-lab.com/erubis/")
1448 (license license:expat)))
1450 (define-public ruby-execjs
1452 (name "ruby-execjs")
1456 ;; fetch from github as the gem does not contain testing code
1459 (url "https://github.com/rails/execjs.git")
1460 (commit (string-append "v" version))))
1461 (file-name (git-file-name name version))
1464 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1465 (build-system ruby-build-system)
1467 `(("bundler" ,bundler)
1468 ;; The test suite tests all the available backends. Currenly, this just
1469 ;; means the node backend.
1471 ;; PASSED: test:node
1472 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1473 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1475 (synopsis "Run JavaScript code from Ruby")
1477 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1478 runtime to evaluate your JavaScript program, then returns the result to you as
1480 (home-page "https://github.com/rails/execjs")
1481 (license license:expat)))
1483 (define-public ruby-orderedhash
1485 (name "ruby-orderedhash")
1489 (uri (rubygems-uri "orderedhash" version))
1492 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1493 (build-system ruby-build-system)
1495 '(#:tests? #f)) ; no test suite
1496 (synopsis "Ruby library providing an order-preserving hash")
1497 (description "Orderedhash is a Ruby library providing a hash
1498 implementation that preserves the order of items and features some array-like
1500 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1501 (license license:public-domain)))
1503 (define-public ruby-libxml
1505 (name "ruby-libxml")
1510 (uri (rubygems-uri "libxml-ruby" version))
1513 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1514 (build-system ruby-build-system)
1517 ("libxml2" ,libxml2)))
1519 '(#:tests? #f ; test suite hangs for unknown reason
1522 (string-append "--with-xml2-include="
1523 (assoc-ref %build-inputs "libxml2")
1524 "/include/libxml2" ))))
1525 (synopsis "Ruby bindings for GNOME Libxml2")
1526 (description "The Libxml-Ruby project provides Ruby language bindings for
1527 the GNOME Libxml2 XML toolkit.")
1528 (home-page "https://xml4r.github.com/libxml-ruby")
1529 (license license:expat)))
1531 (define-public ruby-lino
1538 (uri (rubygems-uri "lino" version))
1541 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1542 (build-system ruby-build-system)
1544 '(#:tests? #f)) ; No included tests
1546 `(("ruby-hamster" ,ruby-hamster)
1547 ("ruby-open4" ,ruby-open4)))
1548 (synopsis "Build and execute commands in Ruby")
1550 "@code{Lino} provides an interface to run external commands. It provides
1551 an interface to add options as well as managing the standard input, output and
1553 (home-page "https://github.com/tobyclemson/lino")
1554 (license license:expat)))
1556 (define-public ruby-xml-simple
1558 (name "ruby-xml-simple")
1562 (uri (rubygems-uri "xml-simple" version))
1565 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1566 (build-system ruby-build-system)
1568 '(#:tests? #f)) ; no test suite
1569 (synopsis "Simple Ruby library for XML processing")
1570 (description "This library provides a simple API for XML processing in
1572 (home-page "https://github.com/maik/xml-simple")
1573 (license license:ruby)))
1575 (define-public ruby-thor
1581 (uri (rubygems-uri "thor" version))
1584 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1585 (build-system ruby-build-system)
1587 '(#:tests? #f)) ; no test suite
1589 `(("bundler" ,bundler)))
1590 (synopsis "Ruby toolkit for building command-line interfaces")
1591 (description "Thor is a toolkit for building powerful command-line
1593 (home-page "http://whatisthor.com/")
1594 (license license:expat)))
1596 (define-public ruby-lumberjack
1598 (name "ruby-lumberjack")
1602 (uri (rubygems-uri "lumberjack" version))
1605 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1606 (build-system ruby-build-system)
1608 `(("ruby-rspec" ,ruby-rspec)
1609 ("ruby-timecop" ,ruby-timecop)))
1610 (synopsis "Logging utility library for Ruby")
1611 (description "Lumberjack is a simple logging utility that can be a drop in
1612 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1613 for automatically rolling log files even with multiple processes writing the
1615 (home-page "https://github.com/bdurand/lumberjack")
1616 (license license:expat)))
1618 (define-public ruby-rbnacl
1620 (name "ruby-rbnacl")
1625 (uri (rubygems-uri "rbnacl" version))
1628 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1629 (build-system ruby-build-system)
1632 (modify-phases %standard-phases
1633 (add-after 'unpack 'remove-unnecessary-dependencies
1635 ;; Coveralls relates to a network service, and Rubocop to code
1636 ;; linting and both are unnecessary to run the tests
1637 (substitute* "Gemfile"
1638 ((".*rubocop.*") "\n")
1639 ((".*guard-rspec.*") "\n")
1640 ((".*coveralls.*") "\n"))
1641 (substitute* "spec/spec_helper.rb"
1642 (("require \"coveralls\"") "")
1643 (("Coveralls.wear!") ""))
1645 (add-after 'unpack 'use-libsodium-from-store
1646 (lambda* (#:key inputs #:allow-other-keys)
1647 (substitute* '("lib/rbnacl/init.rb"
1648 "lib/rbnacl/sodium.rb")
1649 (("ffi_lib \\[.+\\]")
1650 (string-append "ffi_lib [\""
1651 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1654 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1656 (lambda* (#:key tests? #:allow-other-keys)
1661 `(("ruby-ffi" ,ruby-ffi)))
1663 `(("libsodium" ,libsodium)))
1665 `(("bundler" ,bundler)
1666 ("ruby-rspec" ,ruby-rspec)))
1667 (synopsis "Ruby FFI binding to libsodium")
1669 "This package provides Ruby FFI bindings to the Networking and
1670 Cryptography (NaCl) library, also known as libsodium. This provides a
1671 high-level toolkit for building cryptographic systems and protocols.")
1672 (home-page "https://github.com/crypto-rb/rbnacl")
1673 (license license:expat)))
1675 (define-public ruby-nenv
1681 (uri (rubygems-uri "nenv" version))
1684 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1685 (build-system ruby-build-system)
1687 `(#:tests? #f)) ; no tests included
1689 `(("ruby-rspec" ,ruby-rspec)
1690 ("bundler" ,bundler)))
1691 (synopsis "Ruby interface for modifying the environment")
1692 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1693 and inspect the environment.")
1694 (home-page "https://github.com/e2/nenv")
1695 (license license:expat)))
1697 (define-public ruby-permutation
1699 (name "ruby-permutation")
1703 (uri (rubygems-uri "permutation" version))
1706 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1707 (build-system ruby-build-system)
1710 (modify-phases %standard-phases
1711 (add-after 'unpack 'fix-rakefile
1713 (substitute* "Rakefile"
1714 (("require 'rake/gempackagetask'")
1715 "require 'rubygems/package_task'")
1716 (("include Config") ""))
1720 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1721 (synopsis "Library to perform operations with sequence permutations")
1722 (description "This package provides a Ruby library to perform different
1723 operations with permutations of sequences, such as strings and arrays.")
1724 (home-page "https://flori.github.io/permutation")
1725 (license license:gpl2))) ; GPL 2 only
1727 (define-public ruby-shellany
1729 (name "ruby-shellany")
1733 (uri (rubygems-uri "shellany" version))
1736 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1737 (build-system ruby-build-system)
1739 `(#:test-target "default"
1741 (modify-phases %standard-phases
1742 (add-after 'unpack 'fix-version-test
1744 (substitute* "spec/shellany_spec.rb"
1745 (("^RSpec") "require \"shellany\"\nRSpec"))
1748 `(("ruby-rspec" ,ruby-rspec)
1749 ("ruby-nenv" ,ruby-nenv)
1750 ("bundler" ,bundler)))
1751 (synopsis "Capture command output")
1752 (description "Shellany is a Ruby library providing functions to capture
1753 the output produced by running shell commands.")
1754 (home-page "https://rubygems.org/gems/shellany")
1755 (license license:expat)))
1757 (define-public ruby-notiffany
1759 (name "ruby-notiffany")
1763 (uri (rubygems-uri "notiffany" version))
1766 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
1767 (build-system ruby-build-system)
1768 ;; Tests are not included in the gem.
1769 (arguments `(#:tests? #f))
1771 `(("ruby-shellany" ,ruby-shellany)
1772 ("ruby-nenv" ,ruby-nenv)))
1774 `(("bundler" ,bundler)))
1775 (synopsis "Wrapper libray for notification libraries")
1776 (description "Notiffany is a Ruby wrapper libray for notification
1777 libraries such as Libnotify.")
1778 (home-page "https://github.com/guard/notiffany")
1779 (license license:expat)))
1781 (define-public ruby-formatador
1783 (name "ruby-formatador")
1787 (uri (rubygems-uri "formatador" version))
1790 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1791 (build-system ruby-build-system)
1792 ;; Circular dependency: Tests require ruby-shindo, which requires
1793 ;; ruby-formatador at runtime.
1794 (arguments `(#:tests? #f))
1795 (synopsis "Ruby library to format text on stdout")
1796 (description "Formatador is a Ruby library to format text printed to the
1797 standard output stream.")
1798 (home-page "https://github.com/geemus/formatador")
1799 (license license:expat)))
1801 (define-public ruby-fuubar
1803 (name "ruby-fuubar")
1807 ;; Fetch from the git repository, as the gem package doesn't include
1811 (url "https://github.com/thekompanee/fuubar.git")
1812 (commit (string-append "releases/v" version))))
1813 (file-name (git-file-name name version))
1816 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1817 (build-system ruby-build-system)
1819 '(;; TODO: Some tests fail, unsure why.
1820 ;; 21 examples, 7 failures
1823 (modify-phases %standard-phases
1824 (add-before 'build 'delete-certificate
1826 ;; Remove 's.cert_chain' as we do not build with a private key
1827 (substitute* "fuubar.gemspec"
1828 ((".*cert_chain.*") "")
1829 ((".*signing_key.*") ""))
1832 (lambda* (#:key tests? #:allow-other-keys)
1837 `(("bundler" ,bundler)))
1839 `(("ruby-rspec-core" ,ruby-rspec-core)
1840 ("ruby-progressbar" ,ruby-progressbar)))
1841 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1843 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1844 string of letters and dots as feedback. It also stops on the first test
1846 (home-page "https://github.com/thekompanee/fuubar")
1847 (license license:expat)))
1849 (define-public ruby-haml
1856 (uri (rubygems-uri "haml" version))
1859 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1860 (build-system ruby-build-system)
1862 '(#:tests? #f)) ; No included tests
1864 `(("ruby-tilt" ,ruby-tilt)
1865 ("ruby-temple" ,ruby-temple)))
1866 (synopsis "Haml is a Ruby library to generate HTML documents")
1868 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1869 HTML or XML that is designed to express the structure of documents using
1870 indentation rather than closing tags. It was originally envisioned as a
1871 plugin for Ruby on Rails, but it can function as a stand-alone templating
1873 (home-page "http://haml.info/")
1874 (license license:expat)))
1876 (define-public ruby-hamster
1878 (name "ruby-hamster")
1883 (uri (rubygems-uri "hamster" version))
1886 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1887 (build-system ruby-build-system)
1890 (modify-phases %standard-phases
1891 (add-after 'unpack 'remove-unnecessary-dependencies
1893 ;; pry is a debugging tool, and is unnecessary when running the
1895 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1896 (("require 'pry'") ""))
1897 (substitute* "spec/spec_helper.rb"
1898 (("require \"pry\"") "")
1899 ;; CodeClimate is an online service, and is unnecessary for
1900 ;; running the tests
1901 (("require \"codeclimate-test-reporter\"") "")
1902 (("CodeClimate.*\n") ""))
1904 ;; No Rakefile is included, so run rspec directly.
1906 (lambda* (#:key tests? #:allow-other-keys)
1911 `(("ruby-concurrent" ,ruby-concurrent)))
1913 `(("ruby-rspec" ,ruby-rspec)))
1914 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1916 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1917 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1918 immutable queue or stack).")
1919 (home-page "https://github.com/hamstergem/hamster")
1920 (license license:expat)))
1922 (define-public ruby-hashdiff
1924 (name "ruby-hashdiff")
1929 (uri (rubygems-uri "hashdiff" version))
1932 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1933 (build-system ruby-build-system)
1936 (modify-phases %standard-phases
1937 ;; Run tests directly via rspec to avoid Rake issue:
1938 ;; NoMethodError: undefined method `last_comment'
1940 (lambda* (#:key tests? #:allow-other-keys)
1945 `(("bundler" ,bundler)
1946 ("ruby-rspec" ,ruby-rspec-2)))
1947 (synopsis "HashDiff computes the smallest difference between two hashes")
1949 "HashDiff is a Ruby library to compute the smallest difference between
1951 (home-page "https://github.com/liufengyun/hashdiff")
1952 (license license:expat)))
1954 (define-public ruby-shindo
1956 (name "ruby-shindo")
1960 (uri (rubygems-uri "shindo" version))
1963 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1964 (build-system ruby-build-system)
1966 `(#:test-target "shindo_tests"
1968 (modify-phases %standard-phases
1969 (add-after 'unpack 'fix-tests
1971 (substitute* "tests/tests_helper.rb"
1973 (substitute* "Rakefile"
1974 (("system \"shindo") "system \"./bin/shindo")
1975 ;; This test doesn't work, so we disable it.
1976 (("fail \"The build_error test should fail") "#")
1977 ((" -rubygems") ""))
1980 `(("ruby-formatador" ,ruby-formatador)))
1981 (synopsis "Simple depth first Ruby testing")
1982 (description "Shindo is a simple depth first testing library for Ruby.")
1983 (home-page "https://github.com/geemus/shindo")
1984 (license license:expat)))
1986 (define-public ruby-rubygems-tasks
1988 (name "ruby-rubygems-tasks")
1992 (uri (rubygems-uri "rubygems-tasks" version))
1995 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1996 (build-system ruby-build-system)
1997 ;; Tests need Internet access.
1998 (arguments `(#:tests? #f))
2000 `(("ruby-rspec" ,ruby-rspec)
2001 ("ruby-yard" ,ruby-yard)))
2002 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2003 (description "Rubygems-task provides Rake tasks for managing and releasing
2005 (home-page "https://github.com/postmodern/rubygems-tasks")
2006 (license license:expat)))
2008 (define-public ruby-rubyzip
2010 (name "ruby-rubyzip")
2015 (uri (rubygems-uri "rubyzip" version))
2018 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2019 (build-system ruby-build-system)
2022 (modify-phases %standard-phases
2023 (add-before 'check 'patch-tests
2024 (lambda* (#:key inputs #:allow-other-keys)
2025 (substitute* "test/gentestfiles.rb"
2028 (assoc-ref inputs "zip") "/bin/zip")))
2029 (substitute* "test/input_stream_test.rb"
2030 (("/usr/bin/env ruby") (which "ruby")))
2033 `(("bundler" ,bundler)
2034 ("ruby-simplecov" ,ruby-simplecov)
2037 (synopsis "Ruby module is for reading and writing zip files")
2039 "The rubyzip module provides ways to read from and create zip files.")
2040 (home-page "http://github.com/rubyzip/rubyzip")
2041 (license license:bsd-2)))
2043 (define-public ruby-simplecov-html
2045 (name "ruby-simplecov-html")
2049 (uri (rubygems-uri "simplecov-html" version))
2052 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2053 (build-system ruby-build-system)
2054 (arguments `(#:tests? #f)) ; there are no tests
2056 `(("bundler" ,bundler)))
2057 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2058 (description "This package provides the default HTML formatter for
2059 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2060 (home-page "https://github.com/colszowka/simplecov-html")
2061 (license license:expat)))
2063 (define-public ruby-simplecov
2065 (name "ruby-simplecov")
2069 (uri (rubygems-uri "simplecov" version))
2072 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2073 (build-system ruby-build-system)
2074 ;; Simplecov depends on rubocop for code style checking at build time.
2075 ;; Rubocop needs simplecov at build time.
2076 (arguments `(#:tests? #f))
2078 `(("ruby-json" ,ruby-json)
2079 ("ruby-docile" ,ruby-docile)
2080 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2082 `(("bundler" ,bundler)))
2083 (synopsis "Code coverage framework for Ruby")
2084 (description "SimpleCov is a code coverage framework for Ruby with a
2085 powerful configuration library and automatic merging of coverage across test
2087 (home-page "https://github.com/colszowka/simplecov")
2088 (license license:expat)))
2090 (define-public ruby-useragent
2092 (name "ruby-useragent")
2096 (uri (rubygems-uri "useragent" version))
2099 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2100 (build-system ruby-build-system)
2102 '(#:tests? #f)) ; no test suite
2103 (synopsis "HTTP user agent parser for Ruby")
2104 (description "UserAgent is a Ruby library that parses and compares HTTP
2106 (home-page "https://github.com/gshutler/useragent")
2107 (license license:expat)))
2109 (define-public ruby-backports
2111 (name "ruby-backports")
2116 (uri (rubygems-uri "backports" version))
2119 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2120 (build-system ruby-build-system)
2122 '(;; TODO: This should be default, but there is one test failure
2123 #:test-target "all_spec"))
2125 `(("ruby-mspec" ,ruby-mspec)
2126 ("ruby-activesupport" ,ruby-activesupport)))
2127 (synopsis "Backports of the features in newer Ruby versions")
2129 "Backports enables more compatibility across Ruby versions by providing
2130 backports of some features.")
2131 (home-page "https://github.com/marcandre/backports")
2132 (license license:expat)))
2134 (define-public ruby-bacon
2140 (uri (rubygems-uri "bacon" version))
2143 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2144 (build-system ruby-build-system)
2145 (synopsis "Small RSpec clone")
2146 (description "Bacon is a small RSpec clone providing all essential
2148 (home-page "https://github.com/chneukirchen/bacon")
2149 (license license:expat)))
2151 (define-public ruby-bacon-bits
2153 (name "ruby-bacon-bits")
2158 (uri (rubygems-uri "bacon-bits" version))
2161 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2162 (build-system ruby-build-system)
2166 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2167 (synopsis "Extensions to Bacon, for disabling tests, before and after
2170 "This extends the bacon testing framework with useful extensions to
2171 disable tests, have before and after blocks that run once and more.")
2172 (home-page "https://github.com/cldwalker/bacon-bits")
2173 (license license:expat)))
2175 (define-public ruby-bacon-colored-output
2177 (name "ruby-bacon-colored-output")
2182 (uri (rubygems-uri "bacon-colored_output" version))
2185 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2186 (build-system ruby-build-system)
2188 '(;; No included tests
2191 `(("ruby-bacon" ,ruby-bacon)))
2192 (synopsis "Colored output for Bacon test framework")
2194 "This package adds color through ANSI escape codes to Bacon test
2196 (home-page "https://github.com/whitequark/bacon-colored_output")
2197 (license license:expat)))
2199 (define-public ruby-connection-pool
2201 (name "ruby-connection-pool")
2205 (uri (rubygems-uri "connection_pool" version))
2208 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2209 (build-system ruby-build-system)
2211 `(("bundler" ,bundler)))
2212 (synopsis "Generic connection pool for Ruby")
2213 (description "Connection_pool provides a generic connection pooling
2214 interface for Ruby programs.")
2215 (home-page "https://github.com/mperham/connection_pool")
2216 (license license:expat)))
2218 (define-public ruby-net-http-persistent
2220 (name "ruby-net-http-persistent")
2224 (uri (rubygems-uri "net-http-persistent" version))
2227 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2228 (build-system ruby-build-system)
2230 `(("ruby-connection-pool" ,ruby-connection-pool)
2231 ("ruby-hoe" ,ruby-hoe)))
2232 (synopsis "Persistent HTTP connection manager")
2233 (description "Net::HTTP::Persistent manages persistent HTTP connections
2234 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2235 (home-page "https://github.com/drbrain/net-http-persistent")
2236 (license license:expat)))
2238 (define-public ruby-power-assert
2240 (name "ruby-power-assert")
2244 (uri (rubygems-uri "power_assert" version))
2247 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
2248 (build-system ruby-build-system)
2250 `(("bundler" ,bundler)))
2251 (synopsis "Assert library with descriptive assertion messages")
2252 (description "Power-assert is an assertion library providing descriptive
2253 assertion messages for tests.")
2254 (home-page "https://github.com/k-tsj/power_assert")
2255 (license (list license:bsd-2 license:ruby))))
2257 (define-public ruby-powerpack
2259 (name "ruby-powerpack")
2264 (uri (rubygems-uri "powerpack" version))
2267 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2268 (build-system ruby-build-system)
2270 '(#:test-target "spec"))
2272 `(("bundler" ,bundler)
2273 ("ruby-rspec" ,ruby-rspec)
2274 ("ruby-yard" ,ruby-yard)))
2275 (synopsis "Useful extensions to core Ruby classes")
2277 "This package provides a few useful extensions to core Ruby classes,
2278 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2280 (home-page "https://github.com/bbatsov/powerpack")
2281 (license license:expat)))
2283 (define-public ruby-locale
2285 (name "ruby-locale")
2289 (uri (rubygems-uri "locale" version))
2292 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2293 (build-system ruby-build-system)
2294 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2295 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2296 ;; dependency cycle we disable tests.
2297 (arguments `(#:tests? #f))
2299 `(("bundler" ,bundler)
2300 ("ruby-yard" ,ruby-yard)))
2301 (synopsis "Ruby library providing basic localization APIs")
2303 "Ruby-Locale is the pure ruby library which provides basic APIs for
2305 (home-page "https://github.com/ruby-gettext/locale")
2306 (license (list license:lgpl3+ license:ruby))))
2308 (define-public ruby-temple
2310 (name "ruby-temple")
2315 (uri (rubygems-uri "temple" version))
2318 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2319 (build-system ruby-build-system)
2321 `(("ruby-tilt" ,ruby-tilt)
2322 ("ruby-bacon" ,ruby-bacon)
2323 ("ruby-erubis" ,ruby-erubis)))
2324 (synopsis "Template compilation framework in Ruby")
2326 "Temple is an abstraction and framework for compiling templates to pure
2328 (home-page "https://github.com/judofyr/temple")
2329 (license license:expat)))
2331 (define-public ruby-text
2337 (uri (rubygems-uri "text" version))
2340 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2341 (build-system ruby-build-system)
2342 (synopsis "Collection of text algorithms for Ruby")
2344 "This package provides a collection of text algorithms: Levenshtein,
2345 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2346 (home-page "https://github.com/threedaymonk/text")
2347 (license license:expat)))
2349 (define-public ruby-gettext
2351 (name "ruby-gettext")
2355 (uri (rubygems-uri "gettext" version))
2358 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2359 (build-system ruby-build-system)
2360 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2361 ;; which needs ruby-gettext. To break the dependency cycle we disable
2363 (arguments `(#:tests? #f))
2365 `(("ruby-locale" ,ruby-locale)
2366 ("ruby-text" ,ruby-text)))
2368 `(("bundler" ,bundler)
2369 ("ruby-yard" ,ruby-yard)))
2370 (synopsis "GNU gettext-like program for Ruby")
2372 "Gettext is a GNU gettext-like program for Ruby. The catalog
2373 file (po-file) used is the same as that used by GNU gettext, allowing you to
2374 use GNU gettext tools for maintenance.")
2375 (home-page "https://ruby-gettext.github.com/")
2376 (license (list license:lgpl3+ license:ruby))))
2378 (define-public ruby-packnga
2380 (name "ruby-packnga")
2384 (uri (rubygems-uri "packnga" version))
2387 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2388 (build-system ruby-build-system)
2389 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2390 ;; To break the dependency cycle we disable tests.
2391 (arguments `(#:tests? #f))
2393 `(("ruby-gettext" ,ruby-gettext)
2394 ("ruby-yard" ,ruby-yard)))
2396 `(("bundler" ,bundler)))
2397 (synopsis "Utility library to package internationalized libraries")
2399 "Packnga is a library to translate to many languages using YARD.")
2400 (home-page "http://ranguba.org/packnga/")
2401 (license license:lgpl2.0+)))
2403 (define-public ruby-test-construct
2405 (name "ruby-test-construct")
2410 (uri (rubygems-uri "test_construct" version))
2413 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2414 (build-system ruby-build-system)
2416 `(("bundler" ,bundler)
2417 ("ruby-mocha" ,ruby-mocha)
2418 ("ruby-rspec" ,ruby-rspec)))
2419 (synopsis "Creates temporary files and directories for testing")
2421 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2422 temporary files and directories during tests.")
2423 (home-page "https://github.com/bhb/test_construct")
2424 (license license:expat)))
2426 (define-public ruby-test-unit
2428 (name "ruby-test-unit")
2432 (uri (rubygems-uri "test-unit" version))
2435 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2436 (build-system ruby-build-system)
2438 `(("ruby-power-assert" ,ruby-power-assert)))
2440 `(("bundler" ,bundler)
2441 ("ruby-packnga" ,ruby-packnga)
2442 ("ruby-yard" ,ruby-yard)))
2443 (synopsis "Unit testing framework for Ruby")
2444 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2445 on xUnit principles. These were originally designed by Kent Beck, creator of
2446 extreme programming software development methodology, for Smalltalk's SUnit.
2447 It allows writing tests, checking results and automated testing in Ruby.")
2448 (home-page "https://test-unit.github.io/")
2449 (license (list license:psfl license:ruby))))
2451 (define-public ruby-markaby
2453 (name "ruby-markaby")
2458 (uri (rubygems-uri "markaby" version))
2461 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2462 (build-system ruby-build-system)
2465 (modify-phases %standard-phases
2466 ;; Run rspec manually without using the Rakefile, as the versions of
2467 ;; Rake and RSpec 2 are incompatible:
2469 ;; NoMethodError: undefined method `last_comment'
2471 (lambda* (#:key tests? #:allow-other-keys)
2476 `(("ruby-builder" ,ruby-builder)))
2478 `(("bundler" ,bundler)
2479 ("ruby-rspec" ,ruby-rspec-2)))
2480 (synopsis "Write HTML pages in pure Ruby")
2482 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2483 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2484 mixture of HTML and additional ERB syntax.")
2485 (home-page "http://markaby.github.io/")
2486 (license license:expat)))
2488 (define-public ruby-maruku
2490 (name "ruby-maruku")
2495 (uri (rubygems-uri "maruku" version))
2498 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2499 (build-system ruby-build-system)
2501 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2504 (modify-phases %standard-phases
2506 (lambda* (#:key tests? #:allow-other-keys)
2511 `(("ruby-rspec" ,ruby-rspec)
2512 ("ruby-simplecov" ,ruby-simplecov)
2513 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2514 (synopsis "Markdown interpreter in Ruby")
2516 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2517 HTML, and PDF through LaTeX.")
2518 (home-page "https://github.com/bhollis/maruku")
2519 (license license:expat)))
2521 (define-public ruby-metaclass
2523 (name "ruby-metaclass")
2527 (uri (rubygems-uri "metaclass" version))
2530 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2531 (build-system ruby-build-system)
2534 (modify-phases %standard-phases
2535 (add-after 'unpack 'add-test-unit-to-search-path
2536 (lambda* (#:key inputs #:allow-other-keys)
2537 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2538 (substitute* "Rakefile"
2539 (("t\\.libs << \"test\"" line)
2540 (string-append line "; t.libs << \""
2541 test-unit "/lib/ruby/vendor_ruby"
2543 ,(package-version ruby-test-unit)
2547 `(("bundler" ,bundler)
2548 ("ruby-test-unit" ,ruby-test-unit)))
2549 (synopsis "Ruby library adding metaclass method to all objects")
2551 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2553 (home-page "https://github.com/floehopper/metaclass")
2554 (license license:expat)))
2556 (define-public ruby-mspec
2563 (uri (rubygems-uri "mspec" version))
2566 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2567 (build-system ruby-build-system)
2569 '(;; TODO: 3 test failures
2570 ;; ./spec/mocks/mock_spec.rb:82
2571 ;; ./spec/utils/name_map_spec.rb:151
2572 ;; ./spec/utils/name_map_spec.rb:155
2575 (modify-phases %standard-phases
2576 (add-after 'extract-gemspec 'change-dependency-constraints
2578 (substitute* "mspec.gemspec"
2579 (("rake.*") "rake>)\n")
2580 (("rspec.*") "rspec>)\n"))
2583 (lambda* (#:key tests? #:allow-other-keys)
2585 (invoke "rspec" "spec"))
2588 `(("bundler" ,bundler)
2589 ("ruby-rake" ,ruby-rake)
2590 ("ruby-rspec" ,ruby-rspec)))
2591 (synopsis "MSpec is a specialized framework for RubySpec")
2593 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2594 for basic features. MSpec contains additional features that assist in writing
2595 specs for Ruby implementations in ruby/spec.")
2596 (home-page "http://rubyspec.org")
2597 (license license:expat)))
2599 (define-public ruby-mysql2
2601 (name "ruby-mysql2")
2607 (url "https://github.com/brianmario/mysql2.git")
2609 (file-name (git-file-name name version))
2612 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2613 (build-system ruby-build-system)
2615 '(;; TODO: Tests require a running MySQL/MariaDB service
2618 (modify-phases %standard-phases
2619 (replace 'replace-git-ls-files
2621 (substitute* "mysql2.gemspec"
2622 (("git ls-files .*`") "find . -type f |sort`"))
2624 (add-before 'install 'set-MAKEFLAGS
2625 (lambda* (#:key outputs #:allow-other-keys)
2629 "prefix=" (assoc-ref outputs "out")))
2631 ;; Move the 'check phase to after 'install, as then you can test
2632 ;; using the installed mysql2 gem in the store.
2634 (add-after 'install 'check
2635 (lambda* (#:key outputs tests? #:allow-other-keys)
2640 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2645 `(("mariadb" ,mariadb "lib")
2646 ("mariadb-dev" ,mariadb "dev")
2649 `(("ruby-rspec" ,ruby-rspec)
2650 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2651 (synopsis "MySQL library for Ruby, binding to libmysql")
2653 "This package provides a simple, fast MySQL library for Ruby, binding to
2655 (home-page "https://github.com/brianmario/mysql2")
2656 (license license:expat)))
2658 (define-public ruby-blankslate
2660 (name "ruby-blankslate")
2664 (uri (rubygems-uri "blankslate" version))
2667 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2668 (build-system ruby-build-system)
2671 (modify-phases %standard-phases
2673 (lambda _ (invoke "rspec" "spec/"))))))
2675 `(("bundler" ,bundler)
2676 ("ruby-rspec" ,ruby-rspec)))
2677 (synopsis "Abstract base class with no predefined methods")
2679 "BlankSlate provides an abstract base class with no predefined
2680 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2681 as a base class when writing classes that depend upon
2682 @code{method_missing} (e.g. dynamic proxies).")
2683 (home-page "https://github.com/masover/blankslate")
2684 (license license:expat)))
2686 (define-public ruby-bond
2693 (uri (rubygems-uri "bond" version))
2696 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2697 (build-system ruby-build-system)
2699 `(("ruby-bacon" ,ruby-bacon)
2700 ("ruby-bacon-bits" ,ruby-bacon-bits)
2701 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2702 (synopsis "Bond can provide custom autocompletion for arguments, methods
2705 "Bond can autocomplete argument(s) to methods, uniquely completing per
2706 module, per method and per argument. Bond provides a configuration system and
2707 a DSL for creating custom completions and completion rules. Bond can also
2708 load completions that ship with gems. Bond is able to offer more than irb's
2709 completion since it uses the full line of input when completing as opposed to
2710 irb's last-word approach.")
2711 (home-page "http://tagaholic.me/bond/")
2712 (license license:expat)))
2714 (define-public ruby-idn-ruby
2716 (name "ruby-idn-ruby")
2721 (uri (rubygems-uri "idn-ruby" version))
2724 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2725 (build-system ruby-build-system)
2728 (modify-phases %standard-phases
2730 (add-after 'install 'check
2731 (lambda* (#:key tests? outputs #:allow-other-keys)
2733 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2734 (name-and-version (basename gem-file ".gem")))
2738 (assoc-ref outputs "out")
2739 "/lib/ruby/vendor_ruby/gems/"
2742 (find-files "./test" ".*\\.rb"))))
2745 `(("libidn" ,libidn)))
2746 (synopsis "Ruby Bindings for the GNU LibIDN library")
2748 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2749 Stringprep, Punycode and IDNA specifications. These are used to encode and
2750 decode internationalized domain + names according to the IDNA2003
2753 Included are the most important parts of the Stringprep, Punycode and IDNA
2754 APIs like performing Stringprep processings, encoding to and decoding from
2755 Punycode strings and converting entire domain names to and from the ACE
2757 (home-page "https://github.com/deepfryed/idn-ruby")
2758 (license license:asl2.0)))
2760 (define-public ruby-instantiator
2762 (name "ruby-instantiator")
2766 (uri (rubygems-uri "instantiator" version))
2769 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2770 (build-system ruby-build-system)
2773 (modify-phases %standard-phases
2774 (add-after 'unpack 'add-test-unit-to-search-path
2775 (lambda* (#:key inputs #:allow-other-keys)
2776 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2777 (substitute* "Rakefile"
2778 (("t\\.libs << \"test\"" line)
2779 (string-append line "; t.libs << \""
2780 test-unit "/lib/ruby/vendor_ruby"
2782 ,(package-version ruby-test-unit)
2786 `(("ruby-blankslate" ,ruby-blankslate)))
2788 `(("bundler" ,bundler)
2789 ("ruby-test-unit" ,ruby-test-unit)))
2790 (synopsis "Instantiate an arbitrary Ruby class")
2792 "Instantiator lets you instantiate an arbitrary Ruby class without
2793 knowing anything about the constructor.")
2794 (home-page "https://github.com/floehopper/instantiator")
2795 (license license:expat)))
2797 (define-public ruby-introspection
2799 (name "ruby-introspection")
2803 (uri (rubygems-uri "introspection" version))
2806 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2807 (build-system ruby-build-system)
2810 (modify-phases %standard-phases
2811 (add-after 'unpack 'add-test-unit-to-search-path
2812 (lambda* (#:key inputs #:allow-other-keys)
2813 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2814 (substitute* "Rakefile"
2815 (("t\\.libs << \"test\"" line)
2816 (string-append line "; t.libs << \""
2817 test-unit "/lib/ruby/vendor_ruby"
2819 ,(package-version ruby-test-unit)
2823 `(("ruby-instantiator" ,ruby-instantiator)
2824 ("ruby-metaclass" ,ruby-metaclass)))
2826 `(("bundler" ,bundler)
2827 ("ruby-blankslate" ,ruby-blankslate)
2828 ("ruby-test-unit" ,ruby-test-unit)))
2829 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2831 "Introspection provides tools to inspect the hierarchy of method
2832 definitions on a Ruby object.")
2833 (home-page "https://github.com/floehopper/introspection")
2834 (license license:expat)))
2836 (define-public ruby-redcarpet
2838 (name "ruby-redcarpet")
2842 (uri (rubygems-uri "redcarpet" version))
2845 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2846 (build-system ruby-build-system)
2849 (modify-phases %standard-phases
2850 ;; The gem archive does not include the conformance tests.
2851 (add-after 'unpack 'disable-conformance-tests
2853 (substitute* "Rakefile"
2854 (("task :test => %w\\[test:unit test:conformance\\]")
2855 "task :test => %w[test:unit]"))
2858 `(("bundler" ,bundler)
2859 ("ruby-test-unit" ,ruby-test-unit)
2860 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2861 (synopsis "Extensible Markdown to (X)HTML converter")
2863 "Redcarpet is an extensible Ruby library for Markdown processing and
2864 conversion to (X)HTML.")
2865 (home-page "https://github.com/vmg/redcarpet")
2866 (license license:expat)))
2868 (define-public ruby-rerun
2875 (uri (rubygems-uri "rerun" version))
2878 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
2879 (build-system ruby-build-system)
2881 '(#:tests? #f)) ; No included tests
2883 `(("ruby-listen" ,ruby-listen)))
2884 (synopsis "Run a process, and restart when some monitored files change")
2886 "Rerun is a tool to launch programs, then monitor the file system, and
2887 restart the program when any of the monitored files change. It's written in
2888 Ruby, but can be used for all programs.")
2889 (home-page "https://github.com/alexch/rerun/")
2890 (license license:expat)))
2892 (define-public ruby-mocha
2898 (uri (rubygems-uri "mocha" version))
2901 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2902 (build-system ruby-build-system)
2905 (modify-phases %standard-phases
2906 (add-after 'unpack 'add-test-unit-to-search-path
2907 (lambda* (#:key inputs #:allow-other-keys)
2908 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2909 (substitute* "Rakefile"
2910 (("t\\.libs << 'test'" line)
2911 (string-append line "; t.libs << \""
2912 test-unit "/lib/ruby/vendor_ruby"
2914 ,(package-version ruby-test-unit)
2917 (add-before 'check 'use-latest-redcarpet
2919 (substitute* "mocha.gemspec"
2920 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2921 "<redcarpet>.freeze, [\">= 3\"]"))
2923 (add-before 'check 'hardcode-version
2925 ;; Mocha is undefined at build time
2926 (substitute* "Rakefile"
2927 (("#\\{Mocha::VERSION\\}") ,version))
2929 (add-before 'check 'remove-failing-test
2930 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2932 (delete-file "test/acceptance/stubbing_nil_test.rb")
2935 `(("ruby-metaclass" ,ruby-metaclass)))
2937 `(("bundler" ,bundler)
2938 ("ruby-yard" ,ruby-yard)
2939 ("ruby-introspection" ,ruby-introspection)
2940 ("ruby-test-unit" ,ruby-test-unit)
2941 ("ruby-redcarpet" ,ruby-redcarpet)))
2942 (synopsis "Mocking and stubbing library for Ruby")
2944 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
2945 allows mocking and stubbing of methods on real (non-mock) classes.")
2946 (home-page "http://gofreerange.com/mocha/docs")
2947 (license license:expat)))
2949 (define-public ruby-mocha-on-bacon
2951 (name "ruby-mocha-on-bacon")
2956 (uri (rubygems-uri "mocha-on-bacon" version))
2959 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
2960 (build-system ruby-build-system)
2962 ;; rubygems.org release missing tests
2964 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
2965 (synopsis "Mocha adapter for Bacon")
2967 "This package provides a Mocha adapter for Bacon, allowing you to use the
2968 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
2970 "https://github.com/alloy/mocha-on-bacon")
2971 (license license:expat)))
2973 (define-public ruby-net-ssh
2975 (name "ruby-net-ssh")
2979 (uri (rubygems-uri "net-ssh" version))
2982 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2983 (build-system ruby-build-system)
2985 `(("bundler" ,bundler)
2986 ("ruby-mocha" ,ruby-mocha)
2987 ("ruby-test-unit" ,ruby-test-unit)))
2988 (synopsis "Ruby implementation of the SSH2 client protocol")
2989 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
2990 client protocol. It allows you to write programs that invoke and interact
2991 with processes on remote servers, via SSH2.")
2992 (home-page "https://github.com/net-ssh/net-ssh")
2993 (license license:expat)))
2995 (define-public ruby-net-scp
2997 (name "ruby-net-scp")
2998 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
2999 (version "1.2.2.rc2")
3004 (url "https://github.com/net-ssh/net-scp.git")
3005 (commit (string-append "v" version))))
3006 (file-name (git-file-name name version))
3008 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3009 (build-system ruby-build-system)
3011 `(("bundler" ,bundler)
3012 ("ruby-test-unit" ,ruby-test-unit)
3013 ("ruby-mocha" ,ruby-mocha)))
3015 `(("ruby-net-ssh" ,ruby-net-ssh)))
3016 (synopsis "Pure-Ruby SCP client library")
3017 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3019 (home-page "https://github.com/net-ssh/net-scp")
3020 (license license:expat)))
3022 (define-public ruby-minitest
3024 (name "ruby-minitest")
3028 (uri (rubygems-uri "minitest" version))
3031 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3032 (build-system ruby-build-system)
3034 `(("ruby-hoe" ,ruby-hoe)))
3035 (synopsis "Small test suite library for Ruby")
3036 (description "Minitest provides a complete suite of Ruby testing
3037 facilities supporting TDD, BDD, mocking, and benchmarking.")
3038 (home-page "https://github.com/seattlerb/minitest")
3039 (license license:expat)))
3041 ;; This is the last release of Minitest 4, which is used by some packages.
3042 (define-public ruby-minitest-4
3043 (package (inherit ruby-minitest)
3047 (uri (rubygems-uri "minitest" version))
3050 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3053 (modify-phases %standard-phases
3054 (add-after 'unpack 'remove-unsupported-method
3056 (substitute* "Rakefile"
3057 (("self\\.rubyforge_name = .*") ""))
3059 (add-after 'build 'exclude-failing-tests
3061 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3063 (delete-file "test/minitest/test_minitest_spec.rb")
3066 (define-public ruby-minitest-around
3068 (name "ruby-minitest-around")
3073 (uri (rubygems-uri "minitest-around" version))
3076 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3077 (build-system ruby-build-system)
3080 (modify-phases %standard-phases
3081 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3083 (substitute* "minitest-around.gemspec"
3084 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3087 `(("ruby-minitest" ,ruby-minitest)))
3089 `(("bundler" ,bundler)
3090 ("ruby-cucumber" ,ruby-cucumber)
3091 ("ruby-bump" ,ruby-bump)
3092 ("ruby-test-construct" ,ruby-test-construct)))
3093 (synopsis "Run code around tests in Minitest")
3095 "This library provides a way to run code around tests in Minitest,
3096 written using either the unit test or spec style.")
3097 (home-page "https://github.com/splattael/minitest-around")
3098 (license license:expat)))
3100 (define-public ruby-minitest-sprint
3102 (name "ruby-minitest-sprint")
3106 (uri (rubygems-uri "minitest-sprint" version))
3109 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3110 (build-system ruby-build-system)
3112 `(("ruby-hoe" ,ruby-hoe)
3113 ("ruby-minitest" ,ruby-minitest)))
3114 (synopsis "Fast test suite runner for minitest")
3115 (description "Minitest-sprint is a test runner for minitest that makes it
3116 easier to re-run individual failing tests.")
3117 (home-page "https://github.com/seattlerb/minitest-sprint")
3118 (license license:expat)))
3120 (define-public ruby-minitest-bacon
3122 (name "ruby-minitest-bacon")
3126 (uri (rubygems-uri "minitest-bacon" version))
3129 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3130 (build-system ruby-build-system)
3132 `(("ruby-hoe" ,ruby-hoe)))
3134 `(("ruby-minitest" ,ruby-minitest)))
3135 (synopsis "Bacon compatibility library for minitest")
3136 (description "Minitest-bacon extends minitest with bacon-like
3137 functionality, making it easier to migrate test suites from bacon to minitest.")
3138 (home-page "https://github.com/seattlerb/minitest-bacon")
3139 (license license:expat)))
3141 (define-public ruby-minitest-focus
3143 (name "ruby-minitest-focus")
3148 (uri (rubygems-uri "minitest-focus" version))
3151 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3152 (build-system ruby-build-system)
3154 `(("ruby-minitest" ,ruby-minitest)))
3156 `(("ruby-hoe" ,ruby-hoe)))
3157 (synopsis "Allows a few specific tests to be focused on")
3159 "@code{minitest-focus} gives the ability focus on a few tests with ease
3160 without having to use command-line arguments. It introduces a @code{focus}
3161 class method for use in testing classes, specifying that the next defined test
3163 (home-page "https://github.com/seattlerb/minitest-focus")
3164 (license license:expat)))
3166 (define-public ruby-minitest-pretty-diff
3167 ;; Use git reference because gem is out of date and does not contain testing
3168 ;; script. There are no releases on GitHub.
3169 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3171 (name "ruby-minitest-pretty-diff")
3172 (version (string-append "0.1-1." (string-take commit 8)))
3176 (url "https://github.com/adammck/minitest-pretty_diff.git")
3178 (file-name (string-append name "-" version "-checkout"))
3181 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3182 (build-system ruby-build-system)
3185 (modify-phases %standard-phases
3188 (invoke "script/test"))))))
3190 `(("bundler" ,bundler)
3191 ("ruby-turn" ,ruby-turn)))
3192 (synopsis "Pretty-print hashes and arrays in MiniTest")
3194 "@code{minitest-pretty_diff} monkey-patches
3195 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3196 diffing them. This makes it easier to spot differences between nested
3197 structures when tests fail.")
3198 (home-page "https://github.com/adammck/minitest-pretty_diff")
3199 (license license:expat))))
3201 (define-public ruby-minitest-moar
3203 (name "ruby-minitest-moar")
3208 (uri (rubygems-uri "minitest-moar" version))
3211 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3212 (build-system ruby-build-system)
3215 (modify-phases %standard-phases
3216 (add-before 'check 'clean-dependencies
3218 ;; Remove all gems defined in the Gemfile because these are not
3220 (substitute* "Gemfile"
3222 ;; Remove byebug as not needed to run tests.
3223 (substitute* "test/test_helper.rb"
3224 (("require 'byebug'") ""))
3227 `(("bundler" ,bundler)
3228 ("ruby-minitest" ,ruby-minitest)))
3229 (synopsis "Extra features and changes to MiniTest")
3230 (description "@code{MiniTest Moar} add some additional features and
3231 changes some default behaviours in MiniTest. For instance, Moar replaces the
3232 MiniTest @code{Object#stub} with a global @code{stub} method.")
3233 (home-page "https://github.com/dockyard/minitest-moar")
3234 (license license:expat)))
3236 (define-public ruby-minitest-bonus-assertions
3238 (name "ruby-minitest-bonus-assertions")
3243 (uri (rubygems-uri "minitest-bonus-assertions" version))
3246 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3247 (build-system ruby-build-system)
3250 (modify-phases %standard-phases
3251 (add-before 'check 'clean-dependencies
3253 ;; Remove unneeded require statement that would entail another
3255 (substitute* "test/minitest_config.rb"
3256 (("require 'minitest/bisect'") ""))
3259 `(("ruby-hoe" ,ruby-hoe)
3260 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3261 ("ruby-minitest-focus" ,ruby-minitest-focus)
3262 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3263 (synopsis "Bonus assertions for @code{Minitest}")
3265 "Minitest bonus assertions provides extra MiniTest assertions. For
3266 instance, it provides @code{assert_true}, @code{assert_false} and
3267 @code{assert_set_equal}.")
3268 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3269 (license license:expat)))
3271 (define-public ruby-minitest-reporters
3273 (name "ruby-minitest-reporters")
3278 (uri (rubygems-uri "minitest-reporters" version))
3281 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3282 (build-system ruby-build-system)
3285 (modify-phases %standard-phases
3286 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3287 ;; including it as an input can lead to circular dependencies.
3288 (add-after 'unpack 'remove-rubocop-from-Rakefile
3290 (substitute* "Rakefile"
3291 (("require 'rubocop/rake\\_task'") "")
3292 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3294 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3296 (substitute* "minitest-reporters.gemspec"
3297 ((".*%q<rubocop>.*") "\n"))
3300 `(("ruby-ansi" ,ruby-ansi)
3301 ("ruby-builder" ,ruby-builder)
3302 ("ruby-minitest" ,ruby-minitest)
3303 ("ruby-progressbar" ,ruby-progressbar)))
3305 `(("bundler" ,bundler)
3306 ("ruby-maruku" ,ruby-maruku)))
3307 (synopsis "Enhanced reporting for Minitest tests")
3309 "@code{minitest/reporters} provides a custom Minitest runner to improve
3310 how the test state is reported. A number of different reporters are
3311 available, including a spec reporter, progress bar reporter, a HTML
3313 (home-page "https://github.com/kern/minitest-reporters")
3314 (license license:expat)))
3316 (define-public ruby-minitest-rg
3318 (name "ruby-minitest-rg")
3323 (uri (rubygems-uri "minitest-rg" version))
3326 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3327 (build-system ruby-build-system)
3329 ;; Some tests fail even outside Guix, so disable tests.
3330 ;; https://github.com/blowmage/minitest-rg/issues/12
3331 ;; https://github.com/blowmage/minitest-rg/pull/13
3334 `(("ruby-minitest" ,ruby-minitest)))
3335 (synopsis "Coloured output for Minitest")
3337 "@code{minitest-rg} changes the colour of the output from Minitest.")
3338 (home-page "http://blowmage.com/minitest-rg")
3339 (license license:expat)))
3341 (define-public ruby-minitest-hooks
3343 (name "ruby-minitest-hooks")
3348 (uri (rubygems-uri "minitest-hooks" version))
3351 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3352 (build-system ruby-build-system)
3354 '(#:test-target "spec"))
3356 `(("ruby-sequel" ,ruby-sequel)
3357 ("ruby-sqlite3" ,ruby-sqlite3)))
3358 (synopsis "Hooks for the minitest framework")
3360 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3361 @code{around_all} hooks for Minitest. This allows, for instance, running each
3362 suite of specs inside a database transaction, running each spec inside its own
3363 savepoint inside that transaction. This can significantly speed up testing
3364 for specs that share expensive database setup code.")
3365 (home-page "https://github.com/jeremyevans/minitest-hooks")
3366 (license license:expat)))
3368 (define-public ruby-daemons
3370 (name "ruby-daemons")
3374 (uri (rubygems-uri "daemons" version))
3377 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3378 (build-system ruby-build-system)
3380 `(#:tests? #f)) ; no test suite
3381 (synopsis "Daemonize Ruby programs")
3382 (description "Daemons provides a way to wrap existing Ruby scripts to be
3383 run as a daemon and to be controlled by simple start/stop/restart commands.")
3384 (home-page "https://github.com/thuehlinger/daemons")
3385 (license license:expat)))
3387 (define-public ruby-data_uri
3389 (name "ruby-data_uri")
3394 (uri (rubygems-uri "data_uri" version))
3397 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3398 (build-system ruby-build-system)
3399 (synopsis "URI class for parsing data URIs")
3401 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3402 embedded inside a URI. The URI::Data class provides support for parsing these
3403 URIs using the normal URI.parse method.")
3404 (home-page "https://github.com/dball/data_uri")
3405 (license license:expat)))
3407 (define-public ruby-git
3413 (uri (rubygems-uri "git" version))
3416 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3417 (build-system ruby-build-system)
3419 `(#:tests? #f ; no tests
3420 #:phases (modify-phases %standard-phases
3421 (add-after 'install 'patch-git-binary
3422 (lambda* (#:key inputs outputs #:allow-other-keys)
3423 ;; Make the default git binary an absolute path to the
3425 (let ((git (string-append (assoc-ref inputs "git")
3427 (config (string-append
3428 (assoc-ref outputs "out")
3429 "/lib/ruby/vendor_ruby/gems/git-"
3430 ,version "/lib/git/config.rb")))
3431 (substitute* (list config)
3433 (string-append "'" git "'")))
3437 (synopsis "Ruby wrappers for Git")
3438 (description "Ruby/Git is a Ruby library that can be used to create, read
3439 and manipulate Git repositories by wrapping system calls to the git binary.")
3440 (home-page "https://github.com/schacon/ruby-git")
3441 (license license:expat)))
3443 (define-public ruby-slop
3449 (uri (rubygems-uri "slop" version))
3452 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3453 (build-system ruby-build-system)
3455 `(("ruby-minitest" ,ruby-minitest)))
3456 (synopsis "Ruby command line option parser")
3457 (description "Slop provides a Ruby domain specific language for gathering
3458 options and parsing command line flags.")
3459 (home-page "https://github.com/leejarvis/slop")
3460 (license license:expat)))
3462 (define-public ruby-slop-3
3463 (package (inherit ruby-slop)
3467 (uri (rubygems-uri "slop" version))
3470 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3472 (define-public ruby-multi-xml
3474 (name "ruby-multi-xml")
3479 (uri (rubygems-uri "multi_xml" version))
3482 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3483 (build-system ruby-build-system)
3485 '(#:tests? #f)) ; No included tests
3486 (synopsis "Swappable XML backends for Ruby")
3488 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3489 Nokogiri, Ox, or REXML.")
3490 (home-page "https://github.com/sferik/multi_xml")
3491 (license license:expat)))
3493 (define-public ruby-multipart-post
3495 (name "ruby-multipart-post")
3499 (uri (rubygems-uri "multipart-post" version))
3502 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3503 (build-system ruby-build-system)
3505 `(("bundler" ,bundler)))
3506 (synopsis "Multipart POST library for Ruby")
3507 (description "Multipart-Post Adds multipart POST capability to Ruby's
3509 (home-page "https://github.com/nicksieger/multipart-post")
3510 (license license:expat)))
3512 (define-public ruby-multi-json
3514 (name "ruby-multi-json")
3519 ;; Tests are not distributed at rubygems.org so download from GitHub
3522 (url "https://github.com/intridea/multi_json")
3523 (commit (string-append "v" version))))
3524 (file-name (git-file-name name version))
3527 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
3528 (build-system ruby-build-system)
3531 (modify-phases %standard-phases
3532 (add-after 'unpack 'remove-signing-key-reference
3534 (substitute* "multi_json.gemspec"
3535 ((".*spec.signing_key.*") ""))
3538 `(("bundler" ,bundler)
3539 ("ruby-rspec" ,ruby-rspec)
3540 ("ruby-yard" ,ruby-yard)
3541 ("ruby-json-pure" ,ruby-json-pure)
3542 ("ruby-oj" ,ruby-oj)
3543 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3544 (synopsis "Common interface to multiple JSON libraries for Ruby")
3546 "This package provides a common interface to multiple JSON libraries,
3547 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3548 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3549 (home-page "https://github.com/intridea/multi_json")
3550 (license license:expat)))
3552 (define-public ruby-multi-test
3554 (name "ruby-multi-test")
3559 (uri (rubygems-uri "multi_test" version))
3562 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3563 (build-system ruby-build-system)
3565 '(;; Tests require different sets of specific gem versions to be available,
3566 ;; and there is no gemfile that specifies the newest versions of
3567 ;; dependencies to be tested.
3570 "Interface to testing libraries loaded into a running Ruby process")
3572 "@code{multi_test} provides a uniform interface onto whatever testing
3573 libraries that have been loaded into a running Ruby process to help control
3574 rogue test/unit/autorun requires.")
3575 (home-page "https://github.com/cucumber/multi_test")
3576 (license license:expat)))
3578 (define-public ruby-arel
3584 (uri (rubygems-uri "arel" version))
3587 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3588 (build-system ruby-build-system)
3589 (arguments '(#:tests? #f)) ; no tests
3590 (home-page "https://github.com/rails/arel")
3591 (synopsis "SQL AST manager for Ruby")
3592 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3593 Ruby. It simplifies the generation of complex SQL queries and adapts to
3594 various relational database implementations.")
3595 (license license:expat)))
3597 (define-public ruby-marcel
3599 (name "ruby-marcel")
3604 (uri (rubygems-uri "marcel" version))
3607 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3608 (build-system ruby-build-system)
3610 '(;; No included tests
3613 `(("ruby-mimemagic" ,ruby-mimemagic)))
3614 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3616 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3617 Extensions} type detection using magic numbers, filenames, and extensions")
3618 (home-page "https://github.com/basecamp/marcel")
3619 (license license:expat)))
3621 (define-public ruby-minitar
3622 ;; We package from the GitHub source to fix the security issue reported at
3623 ;; https://github.com/halostatue/minitar/issues/16.
3624 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3626 (name "ruby-minitar")
3627 (version (string-append "0.5.4-1." (string-take commit 8)))
3632 (url "https://github.com/halostatue/minitar.git")
3634 (file-name (string-append name "-" version "-checkout"))
3637 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3638 (build-system ruby-build-system)
3640 '(#:tests? #f)) ; missing a gemspec
3641 (synopsis "Ruby library and utility for handling tar archives")
3643 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3644 that provides the ability to deal with POSIX tar archive files.")
3645 (home-page "http://www.github.com/atoulme/minitar")
3646 (license (list license:gpl2+ license:ruby)))))
3648 (define-public ruby-mini-portile
3650 (name "ruby-mini-portile")
3655 (uri (rubygems-uri "mini_portile" version))
3658 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3659 (build-system ruby-build-system)
3661 '(#:tests? #f)) ; tests require network access
3662 (synopsis "Ports system for Ruby developers")
3663 (description "Mini-portile is a port/recipe system for Ruby developers.
3664 It provides a standard way to compile against specific versions of libraries
3665 to reproduce user environments.")
3666 (home-page "https://github.com/flavorjones/mini_portile")
3667 (license license:expat)))
3669 (define-public ruby-mini-portile-2
3670 (package (inherit ruby-mini-portile)
3674 (uri (rubygems-uri "mini_portile2" version))
3677 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
3679 (define-public ruby-nokogiri
3681 (name "ruby-nokogiri")
3685 (uri (rubygems-uri "nokogiri" version))
3688 "185g3dwba73jqxjr94bd2zk6fil6n9hmcfnfyzh3p1w47vm296r7"))))
3689 (build-system ruby-build-system)
3691 ;; Tests fail because Nokogiri can only test with an installed extension,
3692 ;; and also because many test framework dependencies are missing.
3694 #:gem-flags (list "--" "--use-system-libraries"
3695 (string-append "--with-xml2-include="
3696 (assoc-ref %build-inputs "libxml2")
3697 "/include/libxml2" ))
3699 (modify-phases %standard-phases
3700 (add-before 'build 'patch-extconf
3701 ;; 'pkg-config' is not included in the GEM_PATH during
3702 ;; installation, so we add it directly to the load path.
3703 (lambda* (#:key inputs #:allow-other-keys)
3704 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3705 (substitute* "ext/nokogiri/extconf.rb"
3706 (("gem 'pkg-config'.*")
3707 (string-append "$:.unshift '"
3708 pkg-config "/lib/ruby/vendor_ruby"
3710 ,(package-version ruby-pkg-config)
3714 `(("ruby-hoe" ,ruby-hoe)))
3717 ("libxml2" ,libxml2)
3718 ("libxslt" ,libxslt)))
3720 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3721 ("ruby-pkg-config" ,ruby-pkg-config)))
3722 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3723 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3724 both CSS3 selector and XPath 1.0 support.")
3725 (home-page "http://www.nokogiri.org/")
3726 (license license:expat)))
3728 (define-public ruby-method-source
3730 (name "ruby-method-source")
3735 (uri (rubygems-uri "method_source" version))
3738 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3739 (build-system ruby-build-system)
3741 `(#:test-target "spec"))
3743 `(("ruby-rspec" ,ruby-rspec)
3745 (synopsis "Retrieve the source code for Ruby methods")
3746 (description "Method_source retrieves the source code for Ruby methods.
3747 Additionally, it can extract source code from Proc and Lambda objects or just
3749 (home-page "https://github.com/banister/method_source")
3750 (license license:expat)))
3752 (define-public ruby-coderay
3754 (name "ruby-coderay")
3759 (uri (rubygems-uri "coderay" version))
3762 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3763 (build-system ruby-build-system)
3765 '(#:tests? #f)) ; missing test files
3766 (synopsis "Ruby syntax highlighting library")
3767 (description "Coderay is a Ruby library that provides syntax highlighting
3768 for select languages.")
3769 (home-page "http://coderay.rubychan.de")
3770 (license license:expat)))
3772 (define-public ruby-parser
3774 (name "ruby-parser")
3779 (uri (rubygems-uri "parser" version))
3782 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3783 (build-system ruby-build-system)
3785 `(("bundler" ,bundler)
3786 ("ruby-cliver" ,ruby-cliver)
3787 ("ruby-simplecov" ,ruby-simplecov)
3788 ("ruby-racc" ,ruby-racc)))
3790 `(("ragel" ,ragel)))
3792 `(("ruby-ast" ,ruby-ast)))
3793 (synopsis "Ruby parser written in pure Ruby")
3795 "This package provides a Ruby parser written in pure Ruby.")
3796 (home-page "https://github.com/whitequark/parser")
3797 (license license:expat)))
3799 (define-public ruby-prawn-manual-builder
3801 (name "ruby-prawn-manual-builder")
3806 (uri (rubygems-uri "prawn-manual_builder" version))
3808 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
3809 (build-system ruby-build-system)
3811 '(#:tests? #f ; no included tests
3813 (modify-phases %standard-phases
3814 (add-after 'extract-gemspec 'patch-gemspec
3816 (substitute* ".gemspec"
3817 ;; Loosen the requirement for pdf-inspector
3818 (("~> 1\\.0\\.7") ">= 0")))))))
3820 `(("ruby-coderay" ,ruby-coderay)))
3821 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3823 "This package provides a tool for writing manuals for Prawn and Prawn
3825 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3827 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3831 (define-public ruby-progress_bar
3833 (name "ruby-progress_bar")
3838 (uri (rubygems-uri "progress_bar" version))
3841 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3842 (build-system ruby-build-system)
3844 '(#:test-target "spec"))
3846 `(("ruby-highline" ,ruby-highline)
3847 ("ruby-options" ,ruby-options)))
3849 `(("bundler" ,bundler)
3850 ("ruby-rspec" ,ruby-rspec)
3851 ("ruby-timecop" ,ruby-timecop)))
3853 "Ruby library for displaying progress bars")
3855 "ProgressBar is a simple library for displaying progress bars. The
3856 maximum value is configurable, and additional information can be displayed
3857 like the percentage completion, estimated time remaining, elapsed time and
3859 (home-page "https://github.com/paul/progress_bar")
3860 (license license:wtfpl2)))
3862 (define-public ruby-dep
3869 (uri (rubygems-uri "ruby_dep" version))
3872 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
3873 (build-system ruby-build-system)
3875 '(#:tests? #f)) ; No included tests
3876 (synopsis "Creates a version constraint of supported Rubies")
3878 "This package helps create a version constraint of supported Rubies,
3879 suitable for a gemspec file.")
3880 (home-page "https://github.com/e2/ruby_dep")
3881 (license license:expat)))
3883 (define-public ruby-progressbar
3885 (name "ruby-progressbar")
3890 (uri (rubygems-uri "ruby-progressbar" version))
3892 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
3893 (build-system ruby-build-system)
3895 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3897 (synopsis "Text progress bar library for Ruby")
3899 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3900 The output can be customized with a formatting system.")
3901 (home-page "https://github.com/jfelchner/ruby-progressbar")
3902 (license license:expat)))
3904 (define-public ruby-pry
3911 (uri (rubygems-uri "pry" version))
3914 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3915 (build-system ruby-build-system)
3917 '(#:tests? #f)) ; no tests
3919 `(("ruby-coderay" ,ruby-coderay)
3920 ("ruby-method-source" ,ruby-method-source)))
3921 (synopsis "Ruby REPL")
3922 (description "Pry is an IRB alternative and runtime developer console for
3923 Ruby. It features syntax highlighting, a plugin architecture, runtime
3924 invocation, and source and documentation browsing.")
3925 (home-page "https://pryrepl.org")
3926 (license license:expat)))
3928 (define-public ruby-guard
3934 ;; The gem does not include a Rakefile, nor does it contain a
3935 ;; gemspec file, nor does it come with the tests. This is why
3936 ;; we fetch the tarball from Github.
3938 (url "https://github.com/guard/guard")
3939 (commit (string-append "v" version))))
3940 (file-name (git-file-name name version))
3943 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
3944 (build-system ruby-build-system)
3946 `(#:tests? #f ; tests require cucumber
3948 (modify-phases %standard-phases
3949 (add-after 'unpack 'remove-git-ls-files
3950 (lambda* (#:key outputs #:allow-other-keys)
3951 (substitute* "guard.gemspec"
3952 (("git ls-files -z") "find . -type f -print0"))
3956 (invoke "gem" "build" "guard.gemspec"))))))
3958 `(("ruby-formatador" ,ruby-formatador)
3959 ("ruby-listen" ,ruby-listen)
3960 ("ruby-lumberjack" ,ruby-lumberjack)
3961 ("ruby-nenv" ,ruby-nenv)
3962 ("ruby-notiffany" ,ruby-notiffany)
3963 ("ruby-pry" ,ruby-pry)
3964 ("ruby-shellany" ,ruby-shellany)
3965 ("ruby-thor" ,ruby-thor)))
3967 `(("bundler" ,bundler)
3968 ("ruby-rspec" ,ruby-rspec)))
3969 (synopsis "Tool to handle events on file system modifications")
3971 "Guard is a command line tool to easily handle events on file system
3972 modifications. Guard automates various tasks by running custom rules whenever
3973 file or directories are modified.")
3974 (home-page "https://guardgem.org/")
3975 (license license:expat)))
3977 (define-public ruby-tilt
3984 (uri (rubygems-uri "tilt" version))
3987 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
3988 (build-system ruby-build-system)
3991 (modify-phases %standard-phases
3992 (add-after 'unpack 'remove-some-dependencies
3994 (substitute* "Gemfile"
3995 ;; TODO ronn is used for generating the manual
3996 (("gem 'ronn'.*") "\n")
3997 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
3998 ;; pass it in as a native-input
3999 (("gem 'haml'.*") "\n")
4000 ;; TODO Not all of these gems are packaged for Guix yet:
4001 ;; less, coffee-script, livescript, babel-transpiler,
4003 (("if can_execjs") "if false")
4004 ;; Disable the secondary group to reduce the number of
4005 ;; dependencies. None of the normal approaches work, so patch
4006 ;; the Gemfile instead.
4007 (("group :secondary") "[].each"))
4010 `(("bundler" ,bundler)
4011 ("ruby-yard" ,ruby-yard)
4012 ("ruby-builder" ,ruby-builder)
4013 ("ruby-erubis" ,ruby-erubis)
4014 ("ruby-markaby" ,ruby-markaby)
4015 ("ruby-sassc" ,ruby-sassc)))
4016 (synopsis "Generic interface to multiple Ruby template engines")
4018 "Tilt is a thin interface over a number of different Ruby template
4019 engines in an attempt to make their usage as generic as possible.")
4020 (home-page "https://github.com/rtomayko/tilt/")
4021 (license license:expat)))
4023 (define-public ruby-thread-safe
4025 (name "ruby-thread-safe")
4030 (uri (rubygems-uri "thread_safe" version))
4033 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4034 (build-system ruby-build-system)
4036 '(#:tests? #f)) ; needs simplecov, among others
4037 (synopsis "Thread-safe utilities for Ruby")
4038 (description "The thread_safe library provides thread-safe collections and
4039 utilities for Ruby.")
4040 (home-page "https://github.com/ruby-concurrency/thread_safe")
4041 (license license:asl2.0)))
4043 (define-public ruby-tzinfo
4045 (name "ruby-tzinfo")
4050 (uri (rubygems-uri "tzinfo" version))
4053 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4054 (build-system ruby-build-system)
4056 `(("ruby-thread-safe" ,ruby-thread-safe)))
4057 (synopsis "Time zone library for Ruby")
4058 (description "TZInfo is a Ruby library that provides daylight savings
4059 aware transformations between times in different time zones.")
4060 (home-page "https://tzinfo.github.io")
4061 (license license:expat)))
4063 (define-public ruby-tzinfo-data
4065 (name "ruby-tzinfo-data")
4066 (version "1.2017.3")
4070 ;; Download from GitHub because the rubygems version does not contain
4071 ;; Rakefile or tests.
4073 (url "https://github.com/tzinfo/tzinfo-data")
4074 (commit (string-append "v" version))))
4075 (file-name (git-file-name name version))
4078 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4079 ;; Remove the known test failure.
4080 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4081 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4082 (patches (search-patches
4083 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4084 (build-system ruby-build-system)
4086 `(("ruby-tzinfo" ,ruby-tzinfo)))
4087 (synopsis "Data from the IANA Time Zone database")
4089 "This library provides @code{TZInfo::Data}, which contains data from the
4090 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4091 (home-page "https://tzinfo.github.io")
4092 (license license:expat)))
4094 (define-public ruby-rb-inotify
4096 (name "ruby-rb-inotify")
4101 (uri (rubygems-uri "rb-inotify" version))
4104 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4105 (build-system ruby-build-system)
4107 '(#:tests? #f ; there are no tests
4109 (modify-phases %standard-phases
4110 ;; Building the gemspec with rake is not working here since it is
4111 ;; generated with Jeweler. It is also unnecessary because the
4112 ;; existing gemspec does not use any development tools to generate a
4116 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4118 `(("ruby-ffi" ,ruby-ffi)))
4120 `(("ruby-yard" ,ruby-yard)))
4121 (synopsis "Ruby wrapper for Linux's inotify")
4122 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4123 kernel subsystem for monitoring changes to files and directories.")
4124 (home-page "https://github.com/nex3/rb-inotify")
4125 (license license:expat)))
4127 (define-public ruby-pry-editline
4129 (name "ruby-pry-editline")
4133 (uri (rubygems-uri "pry-editline" version))
4136 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4137 (build-system ruby-build-system)
4138 (arguments `(#:tests? #f)) ; no tests included
4140 `(("bundler" ,bundler)))
4141 (synopsis "Open the current REPL line in an editor")
4143 "This gem provides a plugin for the Ruby REPL to enable opening the
4144 current line in an external editor.")
4145 (home-page "https://github.com/tpope/pry-editline")
4146 (license license:expat)))
4148 (define-public ruby-sdoc
4154 (uri (rubygems-uri "sdoc" version))
4157 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4158 (build-system ruby-build-system)
4161 (modify-phases %standard-phases
4162 (add-before 'check 'set-rubylib-and-patch-gemfile
4164 (setenv "RUBYLIB" "lib")
4165 (substitute* "sdoc.gemspec"
4166 (("s.add_runtime_dependency.*") "\n")
4167 (("s.add_dependency.*") "\n"))
4168 (substitute* "Gemfile"
4170 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4173 `(("ruby-json" ,ruby-json)))
4175 `(("bundler" ,bundler)
4176 ("ruby-minitest" ,ruby-minitest)
4177 ("ruby-hoe" ,ruby-hoe)))
4178 (synopsis "Generate searchable RDoc documentation")
4180 "SDoc is an RDoc documentation generator to build searchable HTML
4181 documentation for Ruby code.")
4182 (home-page "https://github.com/voloko/sdoc")
4183 (license license:expat)))
4185 (define-public ruby-tins
4191 (uri (rubygems-uri "tins" version))
4194 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4195 (build-system ruby-build-system)
4196 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4197 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4200 `(#:tests? #f ; there are no tests
4202 (modify-phases %standard-phases
4205 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4207 (substitute* "tins.gemspec"
4208 (("\"lib/spruz\", ") ""))
4209 (invoke "gem" "build" "tins.gemspec"))))))
4210 (synopsis "Assorted tools for Ruby")
4211 (description "Tins is a Ruby library providing assorted tools.")
4212 (home-page "https://github.com/flori/tins")
4213 (license license:expat)))
4215 (define-public ruby-gem-hadar
4217 (name "ruby-gem-hadar")
4221 (uri (rubygems-uri "gem_hadar" version))
4224 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4225 (build-system ruby-build-system)
4226 ;; This gem needs itself at development time. We disable rebuilding of the
4227 ;; gemspec to avoid this loop.
4229 `(#:tests? #f ; there are no tests
4231 (modify-phases %standard-phases
4234 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4237 ("ruby-tins" ,ruby-tins)
4238 ("ruby-yard" ,ruby-yard)))
4239 (synopsis "Library for the development of Ruby gems")
4241 "This library contains some useful functionality to support the
4242 development of Ruby gems.")
4243 (home-page "https://github.com/flori/gem_hadar")
4244 (license license:expat)))
4246 (define-public ruby-minitest-tu-shim
4248 (name "ruby-minitest-tu-shim")
4252 (uri (rubygems-uri "minitest_tu_shim" version))
4255 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4256 (build-system ruby-build-system)
4259 (modify-phases %standard-phases
4260 (add-after 'unpack 'fix-test-include-path
4261 (lambda* (#:key inputs #:allow-other-keys)
4262 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4263 (substitute* "Rakefile"
4264 (("Hoe\\.add_include_dirs .*")
4265 (string-append "Hoe.add_include_dirs \""
4266 minitest "/lib/ruby/vendor_ruby"
4268 ,(package-version ruby-minitest-4)
4271 (add-before 'check 'fix-test-assumptions
4273 ;; The test output includes the file name, so a couple of tests
4274 ;; fail. Changing the regular expressions slightly fixes this
4276 (substitute* "test/test_mini_test.rb"
4277 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4278 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4279 (("gsub\\(/.*, 'FILE:LINE'\\)")
4280 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4283 `(("ruby-minitest-4" ,ruby-minitest-4)))
4285 `(("ruby-hoe" ,ruby-hoe)))
4286 (synopsis "Adapter library between minitest and test/unit")
4288 "This library bridges the gap between the small and fast minitest and
4289 Ruby's large and slower test/unit.")
4290 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4291 (license license:expat)))
4293 (define-public ruby-term-ansicolor
4295 (name "ruby-term-ansicolor")
4299 (uri (rubygems-uri "term-ansicolor" version))
4302 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4303 (build-system ruby-build-system)
4304 ;; Rebuilding the gemspec seems to require git, even though this is not a
4305 ;; git repository, so we just build the gem from the existing gemspec.
4308 (modify-phases %standard-phases
4309 (add-after 'unpack 'fix-test
4311 (substitute* "tests/hsl_triple_test.rb"
4316 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4318 `(("ruby-tins" ,ruby-tins)))
4320 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4321 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4322 (synopsis "Ruby library to control the attributes of terminal output")
4324 "This Ruby library uses ANSI escape sequences to control the attributes
4325 of terminal output.")
4326 (home-page "https://flori.github.io/term-ansicolor/")
4327 ;; There is no mention of the "or later" clause.
4328 (license license:gpl2)))
4330 (define-public ruby-terraform
4332 (name "ruby-terraform")
4337 (uri (rubygems-uri "ruby-terraform" version))
4340 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4341 (build-system ruby-build-system)
4343 '(#:tests? #f)) ; No included tests
4345 `(("ruby-lino" ,ruby-lino)))
4346 (synopsis "Ruby wrapper around the Terraform command line interface")
4348 "This package provides a Ruby wrapper around the Terraform command line
4349 interface so that Terraform can be more easily invoked from Ruby code.")
4350 (home-page "https://github.com/infrablocks/ruby_terraform")
4351 (license license:expat)))
4353 (define-public ruby-pstree
4355 (name "ruby-pstree")
4359 (uri (rubygems-uri "pstree" version))
4362 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4363 (build-system ruby-build-system)
4365 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4366 ("bundler" ,bundler)))
4367 (synopsis "Create a process tree data structure")
4369 "This library uses the output of the @code{ps} command to create a
4370 process tree data structure for the current host.")
4371 (home-page "https://github.com/flori/pstree")
4372 ;; There is no mention of the "or later" clause.
4373 (license license:gpl2)))
4375 (define-public ruby-utils
4381 (uri (rubygems-uri "utils" version))
4384 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4385 (build-system ruby-build-system)
4387 `(("ruby-tins" ,ruby-tins)
4388 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4389 ("ruby-pstree" ,ruby-pstree)
4390 ("ruby-pry-editline" ,ruby-pry-editline)))
4392 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4393 ("bundler" ,bundler)))
4394 (synopsis "Command line tools for working with Ruby")
4396 "This package provides assorted command line tools that may be useful
4397 when working with Ruby code.")
4398 (home-page "https://github.com/flori/utils")
4399 ;; There is no mention of the "or later" clause.
4400 (license license:gpl2)))
4402 (define-public ruby-jaro-winkler
4404 (name "ruby-jaro-winkler")
4409 (uri (rubygems-uri "jaro_winkler" version))
4411 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
4412 (build-system ruby-build-system)
4414 '(#:tests? #f)) ; no included tests
4415 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4417 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4418 algorithm. It is written as a C extension and will fallback to a pure Ruby
4419 implementation on platforms where this is unsupported.")
4420 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4421 (license license:expat)))
4423 (define-public ruby-json
4430 (uri (rubygems-uri "json" version))
4433 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4434 (build-system ruby-build-system)
4435 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4436 (synopsis "JSON library for Ruby")
4437 (description "This Ruby library provides a JSON implementation written as
4438 a native C extension.")
4439 (home-page "http://json-jruby.rubyforge.org/")
4440 (license (list license:ruby license:gpl2)))) ; GPL2 only
4442 (define-public ruby-json-pure
4444 (name "ruby-json-pure")
4448 (uri (rubygems-uri "json_pure" version))
4451 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
4452 (build-system ruby-build-system)
4455 (modify-phases %standard-phases
4456 (add-after 'unpack 'fix-rakefile
4458 (substitute* "Rakefile"
4459 ;; Since this is not a git repository, do not call 'git'.
4460 (("`git ls-files`") "`find . -type f |sort`")
4461 ;; Loosen dependency constraint.
4462 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4464 (add-after 'replace-git-ls-files 'regenerate-gemspec
4466 ;; Regenerate gemspec so loosened dependency constraints are
4468 (invoke "rake" "gemspec")))
4469 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4471 ;; This gemspec doesn't look to be generated by the above
4472 ;; command, so patch it separately.
4473 (substitute* "json-java.gemspec"
4474 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4475 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4478 `(("bundler" ,bundler)
4480 ("ruby-simplecov" ,ruby-simplecov)
4481 ("ruby-test-unit" ,ruby-test-unit)))
4482 (synopsis "JSON implementation in pure Ruby")
4484 "This package provides a JSON implementation written in pure Ruby.")
4485 (home-page "https://flori.github.com/json")
4486 (license license:ruby)))
4488 (define-public ruby-jwt
4495 (uri (rubygems-uri "jwt" version))
4498 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4499 (build-system ruby-build-system)
4501 '(#:test-target "test"
4503 (modify-phases %standard-phases
4504 (add-after 'unpack 'remove-unnecessary-dependencies
4506 (substitute* "spec/spec_helper.rb"
4507 (("require 'simplecov.*") "\n")
4508 ;; Use [].each to disable running the SimpleCov configuration
4510 (("SimpleCov\\.configure") "[].each")
4511 (("require 'codeclimate-test-reporter'") "")
4512 (("require 'codacy-coverage'") "")
4513 (("Codacy::Reporter\\.start") ""))
4516 `(("bundler" ,bundler)
4517 ("ruby-rspec" ,ruby-rspec)
4518 ("ruby-rbnacl" ,ruby-rbnacl)))
4519 (synopsis "Ruby implementation of the JSON Web Token standard")
4521 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4522 @acronym{JWT, JSON Web Token} standard.")
4523 (home-page "https://github.com/jwt/ruby-jwt")
4524 (license license:expat)))
4526 ;; Even though this package only provides bindings for a Mac OSX API it is
4527 ;; required by "ruby-listen" at runtime.
4528 (define-public ruby-rb-fsevent
4530 (name "ruby-rb-fsevent")
4534 (uri (rubygems-uri "rb-fsevent" version))
4537 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4538 (build-system ruby-build-system)
4539 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4540 ;; "listen", which needs "rb-fsevent" at runtime.
4541 (arguments `(#:tests? #f))
4542 (synopsis "FSEvents API with signals catching")
4544 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4545 (home-page "https://rubygems.org/gems/rb-fsevent")
4546 (license license:expat)))
4548 (define-public ruby-listen
4550 (name "ruby-listen")
4554 ;; The gem does not include a Rakefile, so fetch from the Git
4558 (url "https://github.com/guard/listen.git")
4559 (commit (string-append "v" version))))
4560 (file-name (git-file-name name version))
4563 "1hqmkfa9f2xb5jlvqbafdxjd5ax75jm8gqj5nh3k22xq0kacsvgg"))))
4564 (build-system ruby-build-system)
4566 `(#:test-target "spec"
4568 (modify-phases %standard-phases
4569 (add-after 'unpack 'fix-files-in-gemspec
4571 (substitute* "listen.gemspec"
4572 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
4574 (add-before 'check 'remove-unnecessary-dependencies'
4576 (substitute* "Rakefile"
4577 ;; Rubocop is for code linting, and is unnecessary for running
4579 ((".*rubocop.*") ""))
4582 `(("bundler" ,bundler)
4583 ("ruby-rspec" ,ruby-rspec)))
4585 `(;; ruby-thor is used for the command line interface, and is referenced
4586 ;; in the wrapper, and therefore just needs to be an input.
4587 ("ruby-thor" ,ruby-thor)))
4589 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
4590 ("ruby-rb-inotify" ,ruby-rb-inotify)
4591 ("ruby-dep" ,ruby-dep)))
4592 (synopsis "Listen to file modifications")
4593 (description "The Listen gem listens to file modifications and notifies
4594 you about the changes.")
4595 (home-page "https://github.com/guard/listen")
4596 (license license:expat)))
4598 (define-public ruby-loofah
4600 (name "ruby-loofah")
4605 (uri (rubygems-uri "loofah" version))
4608 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4609 (build-system ruby-build-system)
4612 (modify-phases %standard-phases
4613 (add-after 'unpack 'remove-unnecessary-dependencies
4615 ;; concourse is a development tool which is unused, so remove it
4616 ;; so it's not required.
4617 (substitute* "Gemfile"
4618 ((".*\"concourse\".*") "\n"))
4619 (substitute* "Rakefile"
4620 (("require 'concourse'") "")
4621 (("Concourse\\.new.*") "\n"))
4624 `(("ruby-hoe" ,ruby-hoe)
4625 ("ruby-rr" ,ruby-rr)))
4627 `(("ruby-nokogiri" ,ruby-nokogiri)
4628 ("ruby-crass" ,ruby-crass)))
4629 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4631 "Loofah is a general library for manipulating and transforming HTML/XML
4632 documents and fragments. It's built on top of Nokogiri and libxml2.")
4633 (home-page "https://github.com/flavorjones/loofah")
4634 (license license:expat)))
4636 (define-public ruby-activesupport
4638 (name "ruby-activesupport")
4643 (uri (rubygems-uri "activesupport" version))
4646 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4647 (build-system ruby-build-system)
4650 (modify-phases %standard-phases
4653 ;; There are no tests, instead attempt to load the library.
4654 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4656 `(("ruby-concurrent" ,ruby-concurrent)
4657 ("ruby-i18n" ,ruby-i18n)
4658 ("ruby-minitest" ,ruby-minitest)
4659 ("ruby-tzinfo" ,ruby-tzinfo)
4660 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4661 (synopsis "Ruby on Rails utility library")
4662 (description "ActiveSupport is a toolkit of support libraries and Ruby
4663 core extensions extracted from the Rails framework. It includes support for
4664 multibyte strings, internationalization, time zones, and testing.")
4665 (home-page "http://www.rubyonrails.org")
4666 (license license:expat)))
4668 (define-public ruby-crass
4674 (uri (rubygems-uri "crass" version))
4677 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4678 (build-system ruby-build-system)
4680 `(("bundler" ,bundler)
4681 ("ruby-minitest" ,ruby-minitest)))
4682 (synopsis "Pure Ruby CSS parser")
4684 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4685 (home-page "https://github.com/rgrove/crass/")
4686 (license license:expat)))
4688 (define-public ruby-nokogumbo
4689 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4691 (name "ruby-nokogumbo")
4692 (version (string-append "1.4.7-1." (string-take commit 8)))
4694 ;; We use the git reference, because there's no Rakefile in the
4695 ;; published gem and the tarball on Github is outdated.
4698 (url "https://github.com/rubys/nokogumbo.git")
4699 (commit "d56f954d20a")))
4700 (file-name (string-append name "-" version "-checkout"))
4703 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4704 (build-system ruby-build-system)
4706 `(#:modules ((guix build ruby-build-system)
4710 (modify-phases %standard-phases
4711 (add-after 'unpack 'build-gemspec
4713 (substitute* "Rakefile"
4714 ;; Build Makefile even without a copy of gumbo-parser sources
4715 (("'gumbo-parser/src',") "")
4716 ;; We don't bundle gumbo-parser sources
4717 (("'gumbo-parser/src/\\*',") "")
4718 (("'gumbo-parser/visualc/include/\\*',") "")
4719 ;; The definition of SOURCES will be cut in gemspec, and
4720 ;; "FileList" will be undefined.
4721 (("SOURCES \\+ FileList\\[")
4722 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4724 ;; Copy the Rakefile and cut out the gemspec.
4725 (copy-file "Rakefile" ".gemspec")
4726 (with-atomic-file-replacement ".gemspec"
4728 (let loop ((line (read-line in 'concat))
4730 (if (eof-object? line)
4732 (let ((skip-next? (if skipping?
4733 (not (string-prefix? "SPEC =" line))
4734 (string-prefix? "end" line))))
4735 (when (or (not skipping?)
4736 (and skipping? (not skip-next?)))
4737 (format #t "~a" line)
4739 (loop (read-line in 'concat) skip-next?))))))
4742 `(("gumbo-parser" ,gumbo-parser)))
4744 `(("ruby-nokogiri" ,ruby-nokogiri)))
4745 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4747 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4748 access the result as a Nokogiri parsed document.")
4749 (home-page "https://github.com/rubys/nokogumbo/")
4750 (license license:asl2.0))))
4752 (define-public ruby-sanitize
4754 (name "ruby-sanitize")
4758 ;; The gem does not include the Rakefile, so we download the
4759 ;; release tarball from Github.
4760 (uri (string-append "https://github.com/rgrove/"
4761 "sanitize/archive/v" version ".tar.gz"))
4762 (file-name (string-append name "-" version ".tar.gz"))
4765 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4766 (build-system ruby-build-system)
4768 `(("ruby-crass" ,ruby-crass)
4769 ("ruby-nokogiri" ,ruby-nokogiri)
4770 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4772 `(("bundler" ,bundler)
4773 ("ruby-minitest" ,ruby-minitest)
4774 ("ruby-redcarpet" ,ruby-redcarpet)
4775 ("ruby-yard" ,ruby-yard)))
4776 (synopsis "Whitelist-based HTML and CSS sanitizer")
4778 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4779 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4780 unacceptable HTML and/or CSS from a string.")
4781 (home-page "https://github.com/rgrove/sanitize/")
4782 (license license:expat)))
4784 (define-public ruby-oj
4791 ;; Version on rubygems.org does not contain Rakefile, so download from
4794 (url "https://github.com/ohler55/oj")
4795 (commit (string-append "v" version))))
4796 (file-name (git-file-name name version))
4799 "1fqx58pwjiln7053lw2jy6ns4agcpxq2ac4f2fkd2ca3fxwpmh03"))))
4800 (build-system ruby-build-system)
4802 '(#:test-target "test_all"
4804 (modify-phases %standard-phases
4805 (add-before 'check 'disable-bundler
4807 (substitute* "Rakefile"
4808 (("Bundler\\.with_clean_env") "1.times")
4809 (("bundle exec ") "")))))))
4811 `(("bundler" ,bundler)
4812 ("ruby-rspec" ,ruby-rspec)
4813 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4814 (synopsis "JSON parser for Ruby optimized for speed")
4816 "Oj is a JSON parser and generator for Ruby, where the encoding and
4817 decoding of JSON is implemented as a C extension to Ruby.")
4818 (home-page "http://www.ohler.com/oj/")
4819 (license (list license:expat ; Ruby code
4820 license:bsd-3)))) ; extension code
4822 (define-public ruby-ox
4829 (uri (rubygems-uri "ox" version))
4832 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4833 (build-system ruby-build-system)
4835 '(#:tests? #f)) ; no tests
4836 (synopsis "Optimized XML library for Ruby")
4838 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4839 written as a native C extension. It was designed to be an alternative to
4840 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4841 alternative to Marshal for Object serialization. ")
4842 (home-page "http://www.ohler.com/ox")
4843 (license license:expat)))
4845 (define-public ruby-redcloth
4847 (name "ruby-redcloth")
4851 (uri (rubygems-uri "RedCloth" version))
4854 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4855 (build-system ruby-build-system)
4857 `(#:tests? #f ; no tests
4859 (modify-phases %standard-phases
4860 ;; Redcloth has complicated rake tasks to build various versions for
4861 ;; multiple targets using RVM. We don't want this so we just use the
4862 ;; existing gemspec.
4865 (invoke "gem" "build" "redcloth.gemspec"))))))
4867 `(("bundler" ,bundler)
4868 ("ruby-diff-lcs" ,ruby-diff-lcs)
4869 ("ruby-rspec-2" ,ruby-rspec-2)))
4870 (synopsis "Textile markup language parser for Ruby")
4872 "RedCloth is a Ruby parser for the Textile markup language.")
4873 (home-page "http://redcloth.org")
4874 (license license:expat)))
4876 (define-public ruby-pg
4883 (uri (rubygems-uri "pg" version))
4886 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
4887 (build-system ruby-build-system)
4889 '(#:test-target "spec"))
4891 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4892 ("ruby-hoe" ,ruby-hoe)
4893 ("ruby-rspec" ,ruby-rspec)))
4895 `(("postgresql" ,postgresql)))
4896 (synopsis "Ruby interface to PostgreSQL")
4897 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4898 with PostgreSQL 9.0 and later.")
4899 (home-page "https://bitbucket.org/ged/ruby-pg")
4900 (license license:ruby)))
4902 (define-public ruby-byebug
4904 (name "ruby-byebug")
4909 (uri (rubygems-uri "byebug" version))
4912 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4913 (build-system ruby-build-system)
4915 '(#:tests? #f)) ; no tests
4916 (synopsis "Debugger for Ruby 2")
4917 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4918 TracePoint C API for execution control and the Debug Inspector C API for call
4919 stack navigation. The core component provides support that front-ends can
4920 build on. It provides breakpoint handling and bindings for stack frames among
4921 other things and it comes with a command line interface.")
4922 (home-page "https://github.com/deivid-rodriguez/byebug")
4923 (license license:bsd-2)))
4925 (define-public ruby-netrc
4931 (uri (rubygems-uri "netrc" version))
4934 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4935 (build-system ruby-build-system)
4938 (modify-phases %standard-phases
4940 ;; There is no Rakefile and minitest can only run one file at once,
4941 ;; so we have to iterate over all test files.
4944 (invoke "ruby" "-Itest" file))
4945 (find-files "./test" "test_.*\\.rb")))))))
4947 `(("ruby-minitest" ,ruby-minitest)))
4948 (synopsis "Library to read and update netrc files")
4950 "This library can read and update netrc files, preserving formatting
4951 including comments and whitespace.")
4952 (home-page "https://github.com/geemus/netrc")
4953 (license license:expat)))
4955 (define-public ruby-unf-ext
4957 (name "ruby-unf-ext")
4961 (uri (rubygems-uri "unf_ext" version))
4964 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
4965 (build-system ruby-build-system)
4968 (modify-phases %standard-phases
4969 (add-after 'build 'build-ext
4970 (lambda _ (invoke "rake" "compile:unf_ext"))))))
4972 `(("bundler" ,bundler)
4973 ("ruby-rake-compiler" ,ruby-rake-compiler)
4974 ("ruby-test-unit" ,ruby-test-unit)))
4975 (synopsis "Unicode normalization form support library")
4977 "This package provides unicode normalization form support for Ruby.")
4978 (home-page "https://github.com/knu/ruby-unf_ext")
4979 (license license:expat)))
4981 (define-public ruby-tdiff
4982 ;; Use a newer than released snapshot so that rspec-2 is not required.
4983 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
4986 (version (string-append "0.3.3-1." (string-take commit 8)))
4990 (url "https://github.com/postmodern/tdiff.git")
4992 (file-name (string-append name "-" version "-checkout"))
4995 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
4996 (build-system ruby-build-system)
4998 `(("ruby-rspec" ,ruby-rspec)
4999 ("ruby-yard" ,ruby-yard)
5000 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5001 (synopsis "Calculate the differences between two tree-like structures")
5003 "This library provides functions to calculate the differences between two
5004 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5005 (home-page "https://github.com/postmodern/tdiff")
5006 (license license:expat))))
5008 (define-public ruby-nokogiri-diff
5009 ;; Use a newer than released snapshot so that rspec-2 is not required.
5010 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5012 (name "ruby-nokogiri-diff")
5013 (version (string-append "0.2.0-1." (string-take commit 8)))
5017 (url "https://github.com/postmodern/nokogiri-diff.git")
5019 (file-name (string-append name "-" version "-checkout"))
5022 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5023 (build-system ruby-build-system)
5025 `(("ruby-tdiff" ,ruby-tdiff)
5026 ("ruby-nokogiri" ,ruby-nokogiri)))
5028 `(("ruby-rspec" ,ruby-rspec)
5029 ("ruby-yard" ,ruby-yard)
5030 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5031 (synopsis "Calculate the differences between two XML/HTML documents")
5033 "@code{Nokogiri::Diff} adds the ability to calculate the
5034 differences (added or removed nodes) between two XML/HTML documents.")
5035 (home-page "https://github.com/postmodern/nokogiri-diff")
5036 (license license:expat))))
5038 (define-public ruby-racc
5045 (uri (rubygems-uri "racc" version))
5048 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5049 (build-system ruby-build-system)
5051 `(("ruby-hoe" ,ruby-hoe)
5052 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5053 (synopsis "LALR(1) parser generator for Ruby")
5055 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5056 generates Ruby program.")
5057 (home-page "http://i.loveruby.net/en/projects/racc/")
5059 ;; Generally licensed under the LGPL2.1, and some files also
5060 ;; available under the same license as Ruby.
5064 (define-public ruby-rack
5071 ;; Download from GitHub so that the patch can be applied.
5073 (url "https://github.com/rack/rack")
5075 (file-name (git-file-name name version))
5078 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5079 ;; Ignore test which fails inside the build environment but works
5081 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5082 (build-system ruby-build-system)
5085 (modify-phases %standard-phases
5086 (add-before 'check 'fix-tests
5088 ;; A few of the tests use the length of a file on disk for
5089 ;; Content-Length and Content-Range headers. However, this file
5090 ;; has a shebang in it which an earlier phase patches, growing
5091 ;; the file size from 193 to 239 bytes when the store prefix is
5093 (let ((size-diff (- (string-length (which "ruby"))
5094 (string-length "/usr/bin/env ruby"))))
5095 (substitute* '("test/spec_file.rb")
5097 (number->string (+ 193 size-diff)))
5098 (("bytes(.)22-33" all delimiter)
5099 (string-append "bytes"
5101 (number->string (+ 22 size-diff))
5103 (number->string (+ 33 size-diff))))))
5105 (add-before 'reset-gzip-timestamps 'make-files-writable
5106 (lambda* (#:key outputs #:allow-other-keys)
5107 ;; Make sure .gz files are writable so that the
5108 ;; 'reset-gzip-timestamps' phase can do its work.
5109 (let ((out (assoc-ref outputs "out")))
5110 (for-each make-file-writable
5111 (find-files out "\\.gz$"))
5114 `(("ruby-minitest" ,ruby-minitest)
5115 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5118 `(("ruby-concurrent" ,ruby-concurrent)))
5119 (synopsis "Unified web application interface for Ruby")
5120 (description "Rack provides a minimal, modular and adaptable interface for
5121 developing web applications in Ruby. By wrapping HTTP requests and responses,
5122 it unifies the API for web servers, web frameworks, and software in between
5123 into a single method call.")
5124 (home-page "https://rack.github.io/")
5125 (license license:expat)))
5127 (define-public ruby-rack-test
5129 (name "ruby-rack-test")
5134 (uri (rubygems-uri "rack-test" version))
5137 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5138 (build-system ruby-build-system)
5140 ;; Disable tests because of circular dependencies: requires sinatra,
5141 ;; which requires rack-protection, which requires rack-test. Instead
5142 ;; simply require the library.
5144 (modify-phases %standard-phases
5147 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5149 `(("ruby-rack" ,ruby-rack)))
5150 (synopsis "Testing API for Rack applications")
5152 "Rack::Test is a small, simple testing API for Rack applications. It can
5153 be used on its own or as a reusable starting point for Web frameworks and
5154 testing libraries to build on.")
5155 (home-page "https://github.com/rack-test/rack-test")
5156 (license license:expat)))
5158 (define-public ruby-rack-protection
5160 (name "ruby-rack-protection")
5165 (uri (rubygems-uri "rack-protection" version))
5168 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5169 (build-system ruby-build-system)
5171 '(;; Tests missing from the gem.
5174 `(("ruby-rack" ,ruby-rack)))
5176 `(("bundler" ,bundler)
5177 ("ruby-rspec" ,ruby-rspec-2)
5178 ("ruby-rack-test" ,ruby-rack-test)))
5179 (synopsis "Rack middleware that protects against typical web attacks")
5180 (description "Rack middleware that can be used to protect against typical
5181 web attacks. It can protect all Rack apps, including Rails. For instance, it
5182 protects against cross site request forgery, cross site scripting,
5183 clickjacking, directory traversal, session hijacking and IP spoofing.")
5184 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5185 (license license:expat)))
5187 (define-public ruby-rainbow
5189 (name "ruby-rainbow")
5194 (uri (rubygems-uri "rainbow" version))
5197 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5198 (build-system ruby-build-system)
5201 (modify-phases %standard-phases
5202 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5205 (lambda* (#:key tests? #:allow-other-keys)
5210 `(("bundler" ,bundler)
5211 ("ruby-rspec" ,ruby-rspec)))
5212 (synopsis "Colorize printed text on ANSI terminals")
5214 "@code{rainbow} provides a string presenter object to colorize strings by
5215 wrapping them in ANSI escape codes.")
5216 (home-page "https://github.com/sickill/rainbow")
5217 (license license:expat)))
5219 (define-public ruby-rr
5226 (uri (rubygems-uri "rr" version))
5229 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5230 (build-system ruby-build-system)
5232 '(#:tests? #f)) ; test files not included
5234 `(("bundler" ,bundler)
5235 ("ruby-rspec" ,ruby-rspec)))
5236 (synopsis "Ruby test double framework")
5238 "RR is a test double framework that features a rich selection of double
5239 techniques and a terse syntax.")
5240 (home-page "https://rr.github.io/rr/")
5241 (license license:expat)))
5243 (define-public ruby-rest-client
5245 (name "ruby-rest-client")
5250 (uri (rubygems-uri "rest-client" version))
5253 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5254 (build-system ruby-build-system)
5257 (modify-phases %standard-phases
5258 (add-before 'check 'remove-unnecessary-development-dependencies
5260 (substitute* "rest-client.gemspec"
5261 ;; Remove rubocop as it's unused. Rubocop also indirectly
5262 ;; depends on this package through ruby-parser and ruby-ast so
5263 ;; this avoids a dependency loop.
5264 ((".*rubocop.*") "\n")
5265 ;; Remove pry as it's unused, it's a debugging tool
5267 ;; Remove an unnecessarily strict rdoc dependency
5268 ((".*rdoc.*") "\n"))
5270 (add-before 'check 'delete-network-dependent-tests
5272 (delete-file "spec/integration/request_spec.rb")
5273 (delete-file "spec/integration/httpbin_spec.rb")
5276 `(("ruby-http-cookie" ,ruby-http-cookie)
5277 ("ruby-mime-types" ,ruby-mime-types)
5278 ("ruby-netrc" ,ruby-netrc)))
5280 `(("bundler" ,bundler)
5281 ("ruby-webmock" ,ruby-webmock-2)
5282 ("ruby-rspec" ,ruby-rspec)))
5283 (synopsis "Simple HTTP and REST client for Ruby")
5285 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5286 inspired by the Sinatra microframework style of specifying actions:
5287 @code{get}, @code{put}, @code{post}, @code{delete}.")
5288 (home-page "https://github.com/rest-client/rest-client")
5289 (license license:expat)))
5291 (define-public ruby-rubocop
5293 (name "ruby-rubocop")
5298 (uri (rubygems-uri "rubocop" version))
5301 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
5302 (build-system ruby-build-system)
5304 '(;; No included tests
5307 `(("ruby-parser" ,ruby-parser)
5308 ("ruby-powerpack" ,ruby-powerpack)
5309 ("ruby-rainbow" ,ruby-rainbow)
5310 ("ruby-progressbar" ,ruby-progressbar)
5311 ("ruby-parallel" ,ruby-parallel)
5312 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5313 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5314 (synopsis "Ruby code style checking tool")
5316 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5317 the community-driven Ruby Style Guide.")
5318 (home-page "https://github.com/rubocop-hq/rubocop")
5319 (license license:expat)))
5321 (define-public ruby-contest
5323 (name "ruby-contest")
5328 (uri (rubygems-uri "contest" version))
5331 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5332 (build-system ruby-build-system)
5333 (synopsis "Write declarative tests using nested contexts")
5335 "Contest allows writing declarative @code{Test::Unit} tests using nested
5336 contexts without performance penalties.")
5337 (home-page "https://github.com/citrusbyte/contest")
5338 (license license:expat)))
5340 (define-public ruby-creole
5342 (name "ruby-creole")
5347 (uri (rubygems-uri "creole" version))
5350 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5351 (build-system ruby-build-system)
5353 `(("ruby-bacon" ,ruby-bacon)))
5354 (synopsis "Creole markup language converter")
5356 "Creole is a lightweight markup language and this library for converting
5357 creole to @code{HTML}.")
5358 (home-page "https://github.com/minad/creole")
5359 (license license:ruby)))
5361 (define-public ruby-docile
5363 (name "ruby-docile")
5368 (uri (rubygems-uri "docile" version))
5371 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5372 (build-system ruby-build-system)
5374 '(#:tests? #f)) ; needs github-markup, among others
5375 (synopsis "Ruby EDSL helper library")
5376 (description "Docile is a Ruby library that provides an interface for
5377 creating embedded domain specific languages (EDSLs) that manipulate existing
5379 (home-page "https://ms-ati.github.io/docile/")
5380 (license license:expat)))
5382 (define-public ruby-gherkin
5384 (name "ruby-gherkin")
5389 (uri (rubygems-uri "gherkin" version))
5392 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5393 (build-system ruby-build-system)
5395 `(("bundler" ,bundler)))
5397 '(#:tests? #f)) ; needs simplecov, among others
5398 (synopsis "Gherkin parser for Ruby")
5399 (description "Gherkin is a parser and compiler for the Gherkin language.
5400 It is intended be used by all Cucumber implementations to parse
5401 @file{.feature} files.")
5402 (home-page "https://github.com/cucumber-attic/gherkin")
5403 (license license:expat)))
5405 (define-public ruby-aruba
5412 (uri (rubygems-uri "aruba" version))
5415 "0zdd81l1lp0x78sxa6kkfqclpj5il3xl70nz05wqv2sfzzhqydxh"))))
5416 (build-system ruby-build-system)
5418 '(#:test-target "spec"
5420 (modify-phases %standard-phases
5421 (add-after 'unpack 'patch
5423 (substitute* "spec/aruba/api_spec.rb"
5424 ;; This resolves some errors in the specs
5426 ;; undefined method `parse' for Time:Class
5427 (("require 'spec_helper'")
5428 "require 'spec_helper'\nrequire 'time'"))
5429 ;; Avoid shebang issues in this spec file
5430 (substitute* "spec/aruba/matchers/command_spec.rb"
5431 (("/usr/bin/env bash")
5434 (add-before 'check 'remove-unnecessary-dependencies
5436 (substitute* "Gemfile"
5437 ((".*byebug.*") "\n")
5441 ((".*kramdown.*") "\n")
5442 ((".*rubocop.*") "\n")
5443 ((".*cucumber-pro.*") "\n")
5444 ((".*cucumber.*") "\n")
5445 ((".*license_finder.*") "\n")
5446 ((".*rake.*") "gem 'rake'\n")
5447 ((".*simplecov.*") "\n")
5448 ((".*relish.*") "\n"))
5449 (substitute* "spec/spec_helper.rb"
5450 ((".*simplecov.*") "")
5451 (("^SimpleCov.*") ""))
5452 (substitute* "aruba.gemspec"
5453 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5454 "spec.add_runtime_dependency 'cucumber'"))
5456 (add-before 'check 'set-home
5457 (lambda _ (setenv "HOME" "/tmp") #t)))))
5459 `(("bundler" ,bundler)
5460 ("ruby-rspec" ,ruby-rspec)
5461 ("ruby-fuubar" ,ruby-fuubar)))
5463 `(("ruby-childprocess" ,ruby-childprocess)
5464 ("ruby-contracts" ,ruby-contracts)
5465 ("ruby-cucumber" ,ruby-cucumber)
5466 ("ruby-ffi" ,ruby-ffi)
5467 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5468 ("ruby-thor" ,ruby-thor)
5469 ("ruby-yard" ,ruby-yard)))
5470 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5472 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5473 command-line applications. It supports applications written in any
5475 (home-page "https://github.com/cucumber/aruba")
5476 (license license:expat)))
5478 ;; A version of ruby-aruba without tests run so that circular dependencies can
5480 (define ruby-aruba-without-tests
5482 (inherit ruby-aruba)
5483 (arguments '(#:tests? #f))
5485 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5486 ,@(alist-delete "ruby-cucumber"
5487 (package-propagated-inputs ruby-aruba))))
5488 (native-inputs '())))
5490 (define-public ruby-cucumber
5492 (name "ruby-cucumber")
5498 (url "https://github.com/cucumber/cucumber-ruby.git")
5499 (commit (string-append "v" version))))
5500 (file-name (git-file-name name version))
5503 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5504 (build-system ruby-build-system)
5506 '(#:test-target "spec"
5508 (modify-phases %standard-phases
5509 ;; Don't run or require rubocop, the code linting tool, as this is a
5511 (add-after 'unpack 'dont-run-rubocop
5513 (substitute* "Rakefile"
5514 ((".*rubocop/rake\\_task.*") "")
5515 ((".*RuboCop.*") ""))
5518 `(("ruby-builder" ,ruby-builder)
5519 ("ruby-cucumber-core" ,ruby-cucumber-core)
5520 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5521 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5522 ("ruby-diff-lcs" ,ruby-diff-lcs)
5523 ("ruby-gherkin" ,ruby-gherkin)
5524 ("ruby-multi-json" ,ruby-multi-json)
5525 ("ruby-multi-test" ,ruby-multi-test)))
5527 `(("bundler" ,bundler)
5528 ;; Use a untested version of aruba, to avoid a circular dependency, as
5529 ;; ruby-aruba depends on ruby-cucumber.
5530 ("ruby-aruba", ruby-aruba-without-tests)
5531 ("ruby-rspec" ,ruby-rspec)
5532 ("ruby-pry" ,ruby-pry)
5533 ("ruby-nokogiri" ,ruby-nokogiri)))
5534 (synopsis "Describe automated tests in plain language")
5536 "Cucumber is a tool for running automated tests written in plain
5537 language. It's designed to support a Behaviour Driven Development (BDD)
5538 software development workflow.")
5539 (home-page "https://cucumber.io/")
5540 (license license:expat)))
5542 (define ruby-cucumber-without-tests
5543 (package (inherit ruby-cucumber)
5549 (define-public ruby-cucumber-core
5551 (name "ruby-cucumber-core")
5552 ;; Stick to major version 3, until version 4 of Cucumber is released.
5557 (uri (rubygems-uri "cucumber-core" version))
5560 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5561 (build-system ruby-build-system)
5563 `(("ruby-backports" ,ruby-backports)
5564 ("ruby-gherkin" ,ruby-gherkin)
5565 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5567 `(("bundler" ,bundler)))
5569 '(#:tests? #f)) ; needs simplecov, among others
5570 (synopsis "Core library for the Cucumber BDD app")
5571 (description "Cucumber is a tool for running automated tests
5572 written in plain language. Because they're written in plain language,
5573 they can be read by anyone on your team. Because they can be read by
5574 anyone, you can use them to help improve communication, collaboration
5575 and trust on your team.")
5576 (home-page "https://cucumber.io/")
5577 (license license:expat)))
5579 (define-public ruby-cucumber-expressions
5581 (name "ruby-cucumber-expressions")
5586 (uri (rubygems-uri "cucumber-expressions" version))
5589 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5590 (build-system ruby-build-system)
5592 '(#:test-target "spec"))
5594 `(("bundler" ,bundler)
5595 ("ruby-rspec" ,ruby-rspec)
5596 ("ruby-simplecov" ,ruby-simplecov)))
5597 (synopsis "Simpler alternative to Regular Expressions")
5598 (description "Cucumber Expressions offer similar functionality to Regular
5599 Expressions, with a syntax that is easier to read and write. Cucumber
5600 Expressions are extensible with parameter types.")
5601 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5602 (license license:expat)))
5604 (define-public ruby-cucumber-wire
5606 (name "ruby-cucumber-wire")
5607 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5608 ;; 3, and Cucumber 4 hasn't been released yet.
5613 (uri (rubygems-uri "cucumber-wire" version))
5616 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5617 (build-system ruby-build-system)
5619 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5620 ;; which would lead to a circular dependency.
5622 #:test-target "default"
5624 (modify-phases %standard-phases
5625 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5627 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5630 `(("bundler" ,bundler)
5631 ("ruby-rspec" ,ruby-rspec)))
5632 (synopsis "Cucumber wire protocol plugin")
5634 "Cucumber's wire protocol allows step definitions to be implemented and
5635 invoked on any platform.")
5636 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5637 (license license:expat)))
5639 (define-public ruby-cucumber-tag-expressions
5641 (name "ruby-cucumber-tag-expressions")
5646 (uri (rubygems-uri "cucumber-tag_expressions" version))
5649 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5650 (build-system ruby-build-system)
5653 (modify-phases %standard-phases
5659 `(("ruby-rspec" ,ruby-rspec)))
5660 (synopsis "Cucumber tag expressions for Ruby")
5662 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5663 boolean expression used by Cucumber.")
5664 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5665 (license license:expat)))
5667 (define-public ruby-bindex
5669 (name "ruby-bindex")
5674 (uri (rubygems-uri "bindex" version))
5677 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
5678 (build-system ruby-build-system)
5680 '(#:test-target "default"))
5682 `(("bundler" ,bundler)
5683 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5684 (synopsis "Provides access for bindings relating to Ruby exceptions")
5686 "@code{bindex} provides a way to access the bindings that relate to
5687 exceptions in Ruby, providing more information about the context in which the
5688 exception occurred.")
5689 (home-page "https://github.com/gsamokovarov/bindex")
5690 (license license:expat)))
5692 (define-public ruby-bio-logger
5694 (name "ruby-bio-logger")
5699 (uri (rubygems-uri "bio-logger" version))
5702 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5703 (build-system ruby-build-system)
5705 `(#:tests? #f)) ; rake errors, missing shoulda
5707 `(("ruby-log4r" ,ruby-log4r)))
5708 (synopsis "Log4r wrapper for Ruby")
5709 (description "Bio-logger is a wrapper around Log4r adding extra logging
5710 features such as filtering and fine grained logging.")
5711 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5712 (license license:expat)))
5714 (define-public ruby-yajl-ruby
5716 (name "ruby-yajl-ruby")
5721 (uri (rubygems-uri "yajl-ruby" version))
5724 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5725 (build-system ruby-build-system)
5727 '(#:test-target "spec"
5729 (modify-phases %standard-phases
5730 (add-before 'check 'patch-test-to-update-load-path
5732 (substitute* "spec/parsing/large_number_spec.rb"
5733 (("require \"yajl\"")
5734 "$LOAD_PATH << 'lib'; require 'yajl'"))
5737 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5738 ("ruby-rspec" ,ruby-rspec)))
5739 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5741 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5742 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5745 A modified copy of yajl is used, and included in the package.")
5746 (home-page "https://github.com/brianmario/yajl-ruby")
5747 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5748 license:bsd-3)))) ; Included, modified copy of yajl
5750 (define-public ruby-yard
5757 ;; Tests do not pass if we build from the distributed gem.
5759 (url "https://github.com/lsegal/yard")
5760 (commit (string-append "v" version))))
5761 (file-name (git-file-name name version))
5764 "0a4r1pfs0ms4vlccsf1x2jckx35lqm8b8lh6rdjxqfr5fia5izpf"))))
5765 (build-system ruby-build-system)
5768 (modify-phases %standard-phases
5771 ;; $HOME needs to be set to somewhere writeable for tests to run
5772 (setenv "HOME" "/tmp")
5773 ;; Run tests without using 'rake' to avoid dependencies.
5774 (invoke "rspec"))))))
5776 `(("ruby-rspec" ,ruby-rspec)
5777 ("ruby-rack" ,ruby-rack)))
5778 (synopsis "Documentation generation tool for Ruby")
5780 "YARD is a documentation generation tool for the Ruby programming
5781 language. It enables the user to generate consistent, usable documentation
5782 that can be exported to a number of formats very easily, and also supports
5783 extending for custom Ruby constructs such as custom class level definitions.")
5784 (home-page "https://yardoc.org")
5785 (license license:expat)))
5787 (define-public ruby-clap
5793 (uri (rubygems-uri "clap" version))
5796 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5797 (build-system ruby-build-system)
5798 ;; Clap needs cutest for running tests, but cutest needs clap.
5799 (arguments `(#:tests? #f))
5800 (synopsis "Command line argument parsing for simple applications")
5802 "Clap provides command line argument parsing features. It covers the
5803 simple case of executing code based on the flags or parameters passed.")
5804 (home-page "https://github.com/djanowski/cutest")
5805 (license license:expat)))
5807 (define-public ruby-cutest
5809 (name "ruby-cutest")
5813 (uri (rubygems-uri "cutest" version))
5816 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5817 (build-system ruby-build-system)
5819 `(("ruby-clap" ,ruby-clap)))
5820 (synopsis "Run tests in separate processes")
5822 "Cutest runs tests in separate processes to avoid shared state.")
5823 (home-page "https://github.com/djanowski/cutest")
5824 (license license:expat)))
5826 (define-public ruby-pygmentize
5828 (name "ruby-pygmentize")
5832 (uri (rubygems-uri "pygmentize" version))
5835 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5836 (build-system ruby-build-system)
5839 (modify-phases %standard-phases
5840 (add-after 'unpack 'fix-pygmentize-path
5842 (substitute* "lib/pygmentize.rb"
5843 (("\"/usr/bin/env python.*")
5844 (string-append "\"" (which "pygmentize") "\"\n")))
5846 (add-after 'build 'do-not-use-vendor-directory
5848 ;; Remove bundled pygments sources
5849 ;; FIXME: ruby-build-system does not support snippets.
5850 (delete-file-recursively "vendor")
5851 (substitute* "pygmentize.gemspec"
5852 (("\"vendor/\\*\\*/\\*\",") ""))
5855 `(("pygments" ,python-pygments)))
5857 `(("ruby-cutest" ,ruby-cutest)
5858 ("ruby-nokogiri" ,ruby-nokogiri)))
5859 (synopsis "Thin Ruby wrapper around pygmentize")
5861 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5863 (home-page "https://github.com/djanowski/pygmentize")
5864 (license license:expat)))
5866 (define-public ruby-eventmachine
5868 (name "ruby-eventmachine")
5873 (uri (rubygems-uri "eventmachine" version))
5876 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5877 (build-system ruby-build-system)
5879 '(#:tests? #f)) ; test suite tries to connect to google.com
5881 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5882 (synopsis "Single-threaded network event framework for Ruby")
5884 "EventMachine implements a single-threaded engine for arbitrary network
5885 communications. EventMachine wraps all interactions with sockets, allowing
5886 programs to concentrate on the implementation of network protocols. It can be
5887 used to create both network servers and clients.")
5888 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5889 (home-page "https://github.com/eventmachine/eventmachine")
5890 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5892 (define-public ruby-ruby-engine
5894 (name "ruby-ruby-engine")
5899 (uri (rubygems-uri "ruby_engine" version))
5902 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5903 (build-system ruby-build-system)
5906 (modify-phases %standard-phases
5907 (add-before 'check 'clean-up
5909 (delete-file "Gemfile.lock")
5910 (substitute* "ruby_engine.gemspec"
5911 ;; Remove unnecessary imports that would entail further
5914 ((".*<rubygems-tasks.*") "")
5915 ;; Remove extraneous .gem file
5916 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5917 ;; Soften rake dependency
5918 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5919 "%q<rake>.freeze, [\">= 10.0\"]")
5920 ;; Soften the rspec dependency
5921 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5922 "%q<rspec>.freeze, [\">= 2.4\"]"))
5923 (substitute* "Rakefile"
5924 (("require 'rubygems/tasks'") "")
5925 (("Gem::Tasks.new") ""))
5926 ;; Remove extraneous .gem file that otherwise gets installed.
5927 (delete-file "pkg/ruby_engine-1.0.0.gem")
5930 `(("bundler" ,bundler)
5931 ("ruby-rake" ,ruby-rake)
5932 ("ruby-rspec" ,ruby-rspec)))
5933 (synopsis "Simplifies checking for Ruby implementation")
5935 "@code{ruby_engine} provides an RubyEngine class that can be used to
5936 check which implementation of Ruby is in use. It can provide the interpreter
5937 name and provides query methods such as @{RubyEngine.mri?}.")
5938 (home-page "https://github.com/janlelis/ruby_engine")
5939 (license license:expat)))
5941 (define-public ruby-turn
5948 (uri (rubygems-uri "turn" version))
5951 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
5952 (build-system ruby-build-system)
5955 (modify-phases %standard-phases
5956 ;; Tests fail because turn changes its environment so can no longer
5957 ;; find test/unit. Instead simply test if the executable runs
5961 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
5963 `(("ruby-ansi" ,ruby-ansi)
5964 ("ruby-minitest" ,ruby-minitest-4)))
5965 (synopsis "Alternate set of alternative runners for MiniTest")
5967 "TURN provides a set of alternative runners for MiniTest which are both
5968 colorful and informative. TURN displays each test on a separate line with
5969 failures being displayed immediately instead of at the end of the tests. Note
5970 that TURN is no longer being maintained.")
5971 (home-page "https://rubygems.org/gems/turn")
5972 (license license:expat)))
5974 (define-public ruby-mimemagic
5976 (name "ruby-mimemagic")
5981 (uri (rubygems-uri "mimemagic" version))
5983 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
5984 (build-system ruby-build-system)
5987 (modify-phases %standard-phases
5988 ;; This phase breaks the tests, as it patches some of the test data.
5989 (delete 'patch-source-shebangs))))
5991 `(("ruby-bacon" ,ruby-bacon)))
5992 (synopsis "Ruby library for MIME detection by extension or content")
5994 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
5995 extension or content, using the freedesktop.org.xml shared-mime-info
5997 (home-page "https://github.com/minad/mimemagic")
5998 (license license:expat)))
6000 (define-public ruby-mime-types-data
6002 (name "ruby-mime-types-data")
6003 (version "3.2016.0521")
6007 (uri (rubygems-uri "mime-types-data" version))
6010 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
6011 (build-system ruby-build-system)
6013 `(("ruby-hoe" ,ruby-hoe)))
6014 (synopsis "Registry for information about MIME media type definitions")
6016 "@code{mime-types-data} provides a registry for information about
6017 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6018 be used with the Ruby mime-types library or other software to determine
6019 defined filename extensions for MIME types, or to use filename extensions to
6020 look up the likely MIME type definitions.")
6021 (home-page "https://github.com/mime-types/mime-types-data/")
6022 (license license:expat)))
6024 (define-public ruby-mime-types
6026 (name "ruby-mime-types")
6031 (uri (rubygems-uri "mime-types" version))
6034 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
6035 (build-system ruby-build-system)
6037 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6039 `(("ruby-hoe" ,ruby-hoe)
6040 ("ruby-fivemat" ,ruby-fivemat)
6041 ("ruby-minitest-focus" ,ruby-minitest-focus)
6042 ("ruby-minitest-rg" ,ruby-minitest-rg)
6043 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6044 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
6045 (synopsis "Library and registry for MIME content type definitions")
6046 (description "The mime-types library provides a library and registry for
6047 information about Multipurpose Internet Mail Extensions (MIME) content type
6048 definitions. It can be used to determine defined filename extensions for MIME
6049 types, or to use filename extensions to look up the likely MIME type
6051 (home-page "https://github.com/mime-types/ruby-mime-types")
6052 (license license:expat)))
6054 (define-public ruby-fivemat
6056 (name "ruby-fivemat")
6061 (uri (rubygems-uri "fivemat" version))
6064 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
6065 (build-system ruby-build-system)
6067 `(#:tests? #f)) ; no tests
6068 (synopsis "Each test file given its own line of dots")
6070 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6071 its own line of dots during testing. It aims to provide test output that is
6072 neither too verbose nor too minimal.")
6073 (home-page "https://github.com/tpope/fivemat")
6074 (license license:expat)))
6076 (define-public ruby-sqlite3
6078 (name "ruby-sqlite3")
6083 (uri (rubygems-uri "sqlite3" version))
6086 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
6087 (build-system ruby-build-system)
6090 (modify-phases %standard-phases
6091 (add-before 'check 'adjust-failing-test
6093 ;; XXX: This test fails with SQLite versions >= 3.21.
6094 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
6095 (substitute* "test/test_integration_resultset.rb"
6096 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
6098 (add-before 'check 'add-gemtest-file
6099 ;; This file exists in the repository but is not distributed.
6100 (lambda _ (invoke "touch" ".gemtest"))))))
6102 `(("sqlite" ,sqlite)))
6104 `(("ruby-hoe" ,ruby-hoe)
6105 ("ruby-rake-compiler" ,ruby-rake-compiler)
6106 ("ruby-mini-portile" ,ruby-mini-portile)))
6107 (synopsis "Interface with SQLite3 databases")
6109 "This module allows Ruby programs to interface with the SQLite3 database
6112 "https://github.com/sparklemotion/sqlite3-ruby")
6113 (license license:bsd-3)))
6115 (define-public ruby-shoulda-context
6117 (name "ruby-shoulda-context")
6122 (uri (rubygems-uri "shoulda-context" version))
6125 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
6126 (build-system ruby-build-system)
6129 (modify-phases %standard-phases
6132 ;; Do not run tests to avoid circular dependence with rails.
6133 ;; Instead just import the library to test.
6134 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
6135 (synopsis "Test::Unit context framework extracted from Shoulda")
6137 "@code{shoulda-context} is the context framework extracted from Shoulda.
6138 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6139 context, setup, and should blocks combine to produce natural test method
6141 (home-page "https://github.com/thoughtbot/shoulda-context")
6142 (license license:expat)))
6144 (define-public ruby-shoulda-matchers
6146 (name "ruby-shoulda-matchers")
6151 (uri (rubygems-uri "shoulda-matchers" version))
6154 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6155 (build-system ruby-build-system)
6158 (modify-phases %standard-phases
6161 ;; Do not run tests to avoid circular dependence with rails. Instead
6162 ;; just import the library to test.
6163 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6165 `(("ruby-activesupport" ,ruby-activesupport)))
6166 (synopsis "Collection of testing matchers extracted from Shoulda")
6168 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6169 test common Rails functionality. These tests would otherwise be much longer,
6170 more complex, and error-prone.")
6171 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6172 (license license:expat)))
6174 (define-public ruby-shoulda-matchers-2
6176 (inherit ruby-shoulda-matchers)
6180 (uri (rubygems-uri "shoulda-matchers" version))
6183 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6185 (define-public ruby-shoulda
6187 (name "ruby-shoulda")
6192 (uri (rubygems-uri "shoulda" version))
6195 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6196 (build-system ruby-build-system)
6199 (modify-phases %standard-phases
6201 ;; Don't run tests to avoid circular dependence with rails. Instead
6202 ;; just import the library to test.
6203 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6205 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6206 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6207 (synopsis "Context framework and matchers for testing")
6209 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6210 @code{shoulda-matchers} providing tools for writing tests.")
6211 (home-page "https://github.com/thoughtbot/shoulda")
6212 (license license:expat)))
6214 (define-public ruby-unf
6221 (uri (rubygems-uri "unf" version))
6224 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6225 (build-system ruby-build-system)
6228 (modify-phases %standard-phases
6229 (add-before 'check 'add-dependency-to-bundler
6231 ;; test-unit is required but not provided by the bundler
6232 ;; environment. This is fixed in the upstream repository but fix
6233 ;; has not been released.
6234 (substitute* "Gemfile"
6235 (("^gemspec") "gem 'test-unit'\ngemspec"))
6238 `(("ruby-unf-ext" ,ruby-unf-ext)))
6240 `(("ruby-shoulda" ,ruby-shoulda)
6241 ("bundler" ,bundler)
6242 ("ruby-test-unit" ,ruby-test-unit)))
6243 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6245 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6246 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6247 @code{java.text.Normalizer} on JRuby.")
6248 (home-page "https://github.com/knu/ruby-unf")
6249 (license license:bsd-2)))
6251 (define-public ruby-warden
6253 (name "ruby-warden")
6258 (uri (rubygems-uri "warden" version))
6261 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6262 (build-system ruby-build-system)
6264 '(#:tests? #f)) ; No included tests
6266 `(("ruby-rack" ,ruby-rack)))
6267 (synopsis "Rack middleware providing authentication")
6269 "Warden is a Rack-based middleware that provides a mechanism for
6270 authentication in Ruby web applications.")
6271 (home-page "https://github.com/wardencommunity/warden")
6272 (license license:expat)))
6274 (define-public ruby-warden-oauth2
6276 (name "ruby-warden-oauth2")
6281 (uri (rubygems-uri "warden-oauth2" version))
6284 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6285 (build-system ruby-build-system)
6287 '(#:test-target "spec"
6289 (modify-phases %standard-phases
6290 (add-after 'unpack 'remove-unnecessary-dependencies
6292 (substitute* "Gemfile"
6293 ;; All of these gems relate to development, and are unnecessary
6294 ;; when running the tests
6295 (("gem 'guard-bundler'") "")
6296 (("gem 'guard'") "")
6297 (("gem 'guard-rspec'") "")
6298 (("gem 'rb-fsevent'") "")
6300 (("gem 'growl'") ""))
6302 ;; The test suite doesn't work with rspec@2, and this is incompatible
6303 ;; with the current version of Rake, so invoke Rspec directly
6305 (lambda* (#:key tests? #:allow-other-keys)
6307 (invoke "bundle" "exec" "rspec"))
6310 `(("ruby-warden" ,ruby-warden)))
6312 `(("bundler" ,bundler)
6313 ("ruby-rspec" ,ruby-rspec-2)
6314 ("ruby-rack-test" ,ruby-rack-test)))
6315 (synopsis "OAuth 2.0 strategies for Warden")
6317 "This library extends Warden to support OAuth 2.0 authorized API
6319 (home-page "https://github.com/opperator/warden-oauth2")
6320 (license license:expat)))
6322 (define-public ruby-webmock-2
6324 (name "ruby-webmock")
6329 (uri (rubygems-uri "webmock" version))
6332 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6333 (build-system ruby-build-system)
6335 `(("bundler" ,bundler)
6336 ("ruby-rspec" ,ruby-rspec)))
6338 `(("ruby-addressable" ,ruby-addressable)
6339 ("ruby-crack" ,ruby-crack)
6340 ("ruby-hashdiff" ,ruby-hashdiff)))
6341 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6343 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6344 requests. This is useful when testing software.")
6345 (home-page "https://github.com/bblimke/webmock")
6346 (license license:expat)))
6348 (define-public ruby-unicode-display-width
6350 (name "ruby-unicode-display-width")
6355 (uri (rubygems-uri "unicode-display_width" version))
6358 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
6359 (build-system ruby-build-system)
6361 '(;; Test data not included.
6363 (synopsis "Determine the monospace display width of Ruby strings")
6365 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6366 display width of strings in Ruby.")
6367 (home-page "https://github.com/janlelis/unicode-display_width")
6368 (license license:expat)))
6370 ;; There is another gem called 'ruby-version' so we use an underscore in this
6372 (define-public ruby_version
6374 (name "ruby_version")
6379 (uri (rubygems-uri "ruby_version" version))
6382 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6383 (build-system ruby-build-system)
6386 (modify-phases %standard-phases
6387 (add-before 'check 'fix-dependencies
6389 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6390 ;; whatever versions.
6391 (delete-file "Gemfile.lock")
6392 ;; Remove the incldued gem file as it's unnecessary.
6393 (delete-file "pkg/ruby_version-1.0.0.gem")
6394 (substitute* "ruby_version.gemspec"
6395 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6397 ((".*rubygems-tasks.*") "\n")
6398 ;; Accept any version of rake and rspec
6399 (("%q<rake.*") "%q<rake>)\n")
6400 (("%q<rspec.*") "%q<rspec>)\n"))
6401 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6403 (substitute* "Rakefile"
6404 (("^require 'rubygems/tasks'") "")
6405 (("Gem::Tasks.new") ""))
6408 `(("bundler" ,bundler)
6409 ("ruby-rspec" ,ruby-rspec)))
6410 (synopsis "Ruby library to help check the Ruby version")
6412 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6413 checking for the right Ruby version in software.")
6414 (home-page "https://github.com/janlelis/ruby_version")
6415 (license license:expat)))
6417 (define-public ruby-websocket-driver
6419 (name "ruby-websocket-driver")
6424 (uri (rubygems-uri "websocket-driver" version))
6426 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
6427 (build-system ruby-build-system)
6429 '(#:tests? #f)) ; no included tests
6431 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6432 (synopsis "WebSocket protocol handler with pluggable I/O")
6434 "@code{websocket-driver} provides a complete implementation of the
6435 WebSocket protocols that can be hooked up to any TCP library")
6436 (home-page "https://github.com/faye/websocket-driver-ruby")
6437 (license license:expat)))
6439 (define-public ruby-websocket-extensions
6441 (name "ruby-websocket-extensions")
6446 (uri (rubygems-uri "websocket-extensions" version))
6449 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6450 (build-system ruby-build-system)
6452 '(;; No included tests
6454 (synopsis "Generic extension manager for WebSocket connections")
6456 "@code{websocket-extensions} provides a container for registering
6457 extension plugins.")
6458 (home-page "https://github.com/faye/websocket-extensions-ruby")
6459 (license license:expat)))
6461 (define-public ruby-domain-name
6463 (name "ruby-domain-name")
6464 (version "0.5.20180417")
6468 (uri (rubygems-uri "domain_name" version))
6471 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6472 (build-system ruby-build-system)
6475 (modify-phases %standard-phases
6476 (add-before 'check 'fix-versions
6478 ;; Fix NameError that appears to already be fixed upstream.
6479 (substitute* "Rakefile"
6480 (("DomainName::VERSION")
6481 "Bundler::GemHelper.gemspec.version"))
6482 ;; Loosen unnecessarily strict test-unit version specification.
6483 (substitute* "domain_name.gemspec"
6484 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6487 `(("ruby-unf" ,ruby-unf)))
6489 `(("ruby-shoulda" ,ruby-shoulda)
6490 ("bundler" ,bundler)
6491 ("ruby-test-unit" ,ruby-test-unit)))
6492 (synopsis "Domain name manipulation library")
6494 "@code{domain_name} is a Domain name manipulation library. It parses a
6495 domain name ready for extracting the registered domain and TLD (Top Level
6496 Domain). It can also be used for cookie domain validation based on the Public
6498 (home-page "https://github.com/knu/ruby-domain_name")
6499 (license license:bsd-2)))
6501 (define-public ruby-http-cookie
6503 (name "ruby-http-cookie")
6508 (uri (rubygems-uri "http-cookie" version))
6511 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6512 (build-system ruby-build-system)
6515 (modify-phases %standard-phases
6516 (add-before 'check 'add-dependency-to-bundler
6519 (substitute* "Rakefile"
6520 (("HTTP::Cookie::VERSION")
6521 "Bundler::GemHelper.gemspec.version"))
6524 `(("ruby-domain-name" ,ruby-domain-name)))
6526 `(("rubysimplecov" ,ruby-simplecov)
6527 ("bundler" ,bundler)
6528 ("ruby-sqlite3" ,ruby-sqlite3)
6529 ("ruby-test-unit" ,ruby-test-unit)))
6530 (synopsis "Handle HTTP Cookies based on RFC 6265")
6532 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6533 RFC 6265. It has been designed with security, standards compliance and
6534 compatibility in mind, to behave just the same as today's major web browsers.
6535 It has built-in support for the legacy @code{cookies.txt} and
6536 @code{cookies.sqlite} formats of Mozilla Firefox.")
6537 (home-page "https://github.com/sparklemotion/http-cookie")
6538 (license license:expat)))
6540 (define-public ruby-httpclient
6542 (name "ruby-httpclient")
6547 (uri (rubygems-uri "httpclient" version))
6550 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6551 (build-system ruby-build-system)
6553 '(;; TODO: Some tests currently fail
6555 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6556 ;; 2 omissions, 0 notifications
6559 ;; 6.49 tests/s, 22.41 assertions/s
6562 (modify-phases %standard-phases
6564 (lambda* (#:key tests? #:allow-other-keys)
6571 `(("ruby-rack" ,ruby-rack)))
6573 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6575 "The @code{httpclient} ruby library provides functionality related to
6576 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6577 Cookie, multithreading and authentication (digest, NTLM) support.
6579 Also provided is a @command{httpclient} command, which can perform HTTP
6580 requests either using arguments or with an interactive prompt.")
6581 (home-page "https://github.com/nahi/httpclient")
6582 (license license:ruby)))
6584 (define-public ruby-ansi
6591 ;; Fetch from GitHub as the gem does not contain testing code.
6593 (url "https://github.com/rubyworks/ansi")
6595 (file-name (git-file-name name version))
6598 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
6599 (build-system ruby-build-system)
6602 (modify-phases %standard-phases
6603 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6604 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6608 (invoke "ruby" "-Ilib" "-r" "ansi")))
6609 (add-before 'validate-runpath 'replace-broken-symlink
6610 (lambda* (#:key outputs #:allow-other-keys)
6611 (let* ((out (assoc-ref outputs "out"))
6612 (file (string-append
6613 out "/lib/ruby/vendor_ruby/gems/ansi-"
6614 ,version "/lib/ansi.yml")))
6615 ;; XXX: This symlink is broken since ruby 2.4.
6616 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6618 (symlink "../.index" file)
6620 (synopsis "ANSI escape code related libraries")
6622 "This package is a collection of ANSI escape code related libraries
6623 enabling ANSI colorization and stylization of console output. Included in the
6624 library are the @code{Code} module, which defines ANSI codes as constants and
6625 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6626 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6627 @code{Terminal} module which provides information about the current output
6629 (home-page "https://rubyworks.github.io/ansi/")
6630 (license license:bsd-2)))
6632 (define-public ruby-systemu
6634 (name "ruby-systemu")
6639 (uri (rubygems-uri "systemu" version))
6642 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6643 (build-system ruby-build-system)
6646 (modify-phases %standard-phases
6647 (add-before 'check 'set-version
6649 (setenv "VERSION" ,version)
6651 (synopsis "Capture of stdout/stderr and handling of child processes")
6653 "Systemu can be used on any platform to return status, stdout, and stderr
6654 of any command. Unlike other methods like @code{open3} and @code{popen4}
6655 there is no danger of full pipes or threading issues hanging your process or
6657 (home-page "https://github.com/ahoward/systemu")
6658 (license license:ruby)))
6660 (define-public ruby-bio-commandeer
6662 (name "ruby-bio-commandeer")
6667 (uri (rubygems-uri "bio-commandeer" version))
6670 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6671 (build-system ruby-build-system)
6674 (modify-phases %standard-phases
6676 ;; Run test without calling 'rake' so that jeweler is
6677 ;; not required as an input.
6679 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6681 `(("ruby-bio-logger" ,ruby-bio-logger)
6682 ("ruby-systemu" ,ruby-systemu)))
6684 `(("bundler" ,bundler)
6685 ("ruby-rspec" ,ruby-rspec)))
6686 (synopsis "Simplified running of shell commands from within Ruby")
6688 "Bio-commandeer provides an opinionated method of running shell commands
6689 from within Ruby. The advantage of bio-commandeer over other methods of
6690 running external commands is that when something goes wrong, messages printed
6691 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6692 detail to ease debugging.")
6693 (home-page "https://github.com/wwood/bioruby-commandeer")
6694 (license license:expat)))
6696 (define-public ruby-rubytest
6698 (name "ruby-rubytest")
6703 (uri (rubygems-uri "rubytest" version))
6706 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6707 (build-system ruby-build-system)
6709 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6710 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6711 ;; simply test that the library can be require'd.
6713 (modify-phases %standard-phases
6716 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6718 `(("ruby-ansi" ,ruby-ansi)))
6719 (synopsis "Universal test harness for Ruby")
6721 "Rubytest is a testing meta-framework for Ruby. It can handle any
6722 compliant test framework and can run tests from multiple frameworks in a
6724 (home-page "https://rubyworks.github.io/rubytest")
6725 (license license:bsd-2)))
6727 (define-public ruby-brass
6734 (uri (rubygems-uri "brass" version))
6737 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6738 (build-system ruby-build-system)
6740 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6741 ;; Instead simply test that the library can be require'd.
6743 (modify-phases %standard-phases
6746 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6747 (synopsis "Basic foundational assertions framework")
6749 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6750 foundational assertions framework for other assertion and test frameworks to
6752 (home-page "https://rubyworks.github.io/brass")
6753 (license license:bsd-2)))
6755 (define-public ruby-qed
6762 (uri (rubygems-uri "qed" version))
6765 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6766 (build-system ruby-build-system)
6768 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6769 ;; Instead simply test that the executable runs using --copyright.
6771 (modify-phases %standard-phases
6774 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6776 `(("ruby-ansi" ,ruby-ansi)
6777 ("ruby-brass" ,ruby-brass)))
6778 (synopsis "Test framework utilizing literate programming techniques")
6780 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6781 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6782 Development} (BDD) utilizing Literate Programming techniques. QED sits
6783 somewhere between lower-level testing tools like @code{Test::Unit} and
6784 requirement specifications systems like Cucumber.")
6785 (home-page "https://rubyworks.github.io/qed")
6786 (license license:bsd-2)))
6788 (define-public ruby-que
6791 (version "1.0.0.beta3")
6795 (uri (rubygems-uri "que" version))
6798 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6799 (build-system ruby-build-system)
6801 '(#:tests? #f)) ; No included tests
6802 (synopsis "Job queue using PostgreSQL written in Ruby")
6804 "This package provides a job queue that uses PostgreSQL for storing jobs
6805 and locking between worker processes.")
6806 (home-page "https://github.com/chanks/que")
6807 (license license:expat)))
6809 (define-public ruby-ae
6816 ;; Fetch from github so tests are included.
6818 (url "https://github.com/rubyworks/ae")
6820 (file-name (git-file-name name version))
6823 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
6824 (build-system ruby-build-system)
6827 (modify-phases %standard-phases
6829 (lambda _ (invoke "qed")))
6830 (add-before 'validate-runpath 'replace-broken-symlink
6831 (lambda* (#:key outputs #:allow-other-keys)
6832 (let* ((out (assoc-ref outputs "out"))
6833 (file (string-append
6834 out "/lib/ruby/vendor_ruby/gems/ae-"
6835 ,version "/lib/ae.yml")))
6836 ;; XXX: This symlink is broken since ruby 2.4.
6837 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6839 (symlink "../.index" file)
6842 `(("ruby-ansi" ,ruby-ansi)))
6844 `(("ruby-qed" ,ruby-qed)))
6845 (synopsis "Assertions library")
6847 "Assertive Expressive (AE) is an assertions library specifically designed
6848 for reuse by other test frameworks.")
6849 (home-page "https://rubyworks.github.io/ae/")
6850 (license license:bsd-2)))
6852 (define-public ruby-lemon
6859 (uri (rubygems-uri "lemon" version))
6862 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6863 (build-system ruby-build-system)
6866 (modify-phases %standard-phases
6867 (replace 'check (lambda _ (invoke "qed"))))))
6869 `(("ruby-ae" ,ruby-ae)
6870 ("ruby-ansi" ,ruby-ansi)
6871 ("ruby-rubytest" ,ruby-rubytest)))
6873 `(("ruby-qed" ,ruby-qed)))
6874 (synopsis "Test framework correlating code structure and test unit")
6876 "Lemon is a unit testing framework that enforces highly formal
6877 case-to-class and unit-to-method test construction. This enforcement can help
6878 focus concern on individual units of behavior.")
6879 (home-page "https://rubyworks.github.io/lemon")
6880 (license license:bsd-2)))
6882 (define-public ruby-rubytest-cli
6884 (name "ruby-rubytest-cli")
6889 (uri (rubygems-uri "rubytest-cli" version))
6892 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6893 (build-system ruby-build-system)
6895 `(#:tests? #f)) ; no tests
6897 `(("ruby-ansi" ,ruby-ansi)
6898 ("ruby-rubytest" ,ruby-rubytest)))
6899 (synopsis "Command-line interface for rubytest")
6901 "Rubytest CLI is a command-line interface for running tests for
6902 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6903 (home-page "https://rubyworks.github.io/rubytest-cli")
6904 (license license:bsd-2)))
6906 (define-public ruby-hashery
6908 (name "ruby-hashery")
6913 (uri (rubygems-uri "hashery" version))
6916 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6917 (build-system ruby-build-system)
6920 (modify-phases %standard-phases
6924 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6926 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6927 ("ruby-qed" ,ruby-qed)
6928 ("ruby-lemon" ,ruby-lemon)))
6929 (synopsis "Hash-like classes with extra features")
6931 "The Hashery is a tight collection of @code{Hash}-like classes.
6932 Included are the auto-sorting @code{Dictionary} class, the efficient
6933 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6934 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6935 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6936 standard @code{Hash} making it possible to subclass and augment to fit any
6937 specific use case.")
6938 (home-page "https://rubyworks.github.io/hashery")
6939 (license license:bsd-2)))
6941 (define-public ruby-rc4
6948 (uri (rubygems-uri "ruby-rc4" version))
6951 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
6952 (build-system ruby-build-system)
6955 (modify-phases %standard-phases
6958 (invoke "rspec" "spec/rc4_spec.rb"))))))
6960 `(("ruby-rspec" ,ruby-rspec-2)))
6961 (synopsis "Implementation of the RC4 algorithm")
6963 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
6964 (home-page "https://github.com/caiges/Ruby-RC4")
6965 (license license:expat)))
6967 (define-public ruby-afm
6974 (uri (rubygems-uri "afm" version))
6977 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
6978 (build-system ruby-build-system)
6980 `(("bundler" ,bundler)))
6981 (synopsis "Read Adobe Font Metrics (afm) files")
6983 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
6984 files and use the data therein.")
6985 (home-page "https://github.com/halfbyte/afm")
6986 (license license:expat)))
6988 (define-public ruby-ascii85
6990 (name "ruby-ascii85")
6995 (uri (rubygems-uri "Ascii85" version))
6998 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
6999 (build-system ruby-build-system)
7001 `(("bundler" ,bundler)))
7002 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
7004 "This library provides methods to encode and decode Ascii85
7005 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
7006 @dfn{Portable Document Format} (PDF) file formats.")
7007 (home-page "https://github.com/datawraith/ascii85gem")
7008 (license license:expat)))
7010 (define-public ruby-ttfunk
7012 (name "ruby-ttfunk")
7017 ;; fetch from github as the gem does not contain testing code
7019 (url "https://github.com/prawnpdf/ttfunk")
7021 (file-name (git-file-name name version))
7024 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
7025 (build-system ruby-build-system)
7027 `(#:test-target "spec"
7029 (modify-phases %standard-phases
7030 (add-before 'build 'remove-ssh
7032 ;; remove dependency on an ssh key pair that doesn't exist
7033 (substitute* "ttfunk.gemspec"
7034 (("spec.signing_key.*") ""))
7036 (add-before 'check 'remove-rubocop
7038 ;; remove rubocop as a dependency as not needed for testing
7039 (substitute* "ttfunk.gemspec"
7040 (("spec.add_development_dependency\\('rubocop'.*") ""))
7041 (substitute* "Rakefile"
7042 (("require 'rubocop/rake_task'") "")
7043 (("RuboCop::RakeTask.new") ""))
7046 `(("ruby-rspec" ,ruby-rspec)
7047 ("ruby-yard" ,ruby-yard)
7048 ("bundler" ,bundler)))
7049 (synopsis "Font metrics parser for the Prawn PDF generator")
7051 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7052 part of the Prawn PDF generator.")
7053 (home-page "https://github.com/prawnpdf/ttfunk")
7054 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7056 (license (list license:gpl2 license:gpl3 license:ruby))))
7058 (define-public ruby-puma
7065 ;; Fetch from GitHub because distributed gem does not contain tests.
7067 (url "https://github.com/puma/puma")
7068 (commit (string-append "v" version))))
7069 (file-name (git-file-name name version))
7072 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
7073 (build-system ruby-build-system)
7075 `(#:tests? #f ; Tests require an out-dated version of minitest.
7077 (modify-phases %standard-phases
7078 (add-before 'build 'fix-gemspec
7080 (substitute* "puma.gemspec"
7081 (("git ls-files") "find * |sort"))
7083 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7085 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7086 for Ruby/Rack applications. Puma is intended for use in both development and
7087 production environments. In order to get the best throughput, it is highly
7088 recommended that you use a Ruby implementation with real threads like Rubinius
7090 (home-page "https://puma.io/")
7091 (license license:expat)))
7093 (define-public ruby-hoe-git
7095 (name "ruby-hoe-git")
7100 (uri (rubygems-uri "hoe-git" version))
7103 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7104 (build-system ruby-build-system)
7106 `(("ruby-hoe" ,ruby-hoe)
7108 (synopsis "Hoe plugins for tighter Git integration")
7110 "This package provides a set of Hoe plugins for tighter Git integration.
7111 It provides tasks to automate release tagging and pushing and changelog
7113 (home-page "https://github.com/jbarnette/hoe-git")
7114 (license license:expat)))
7116 (define-public ruby-sequel
7118 (name "ruby-sequel")
7123 (uri (rubygems-uri "sequel" version))
7126 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
7127 (build-system ruby-build-system)
7129 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7130 (synopsis "Database toolkit for Ruby")
7131 (description "Sequel provides thread safety, connection pooling and a
7132 concise DSL for constructing SQL queries and table schemas. It includes a
7133 comprehensive ORM layer for mapping records to Ruby objects and handling
7134 associated records.")
7135 (home-page "http://sequel.jeremyevans.net")
7136 (license license:expat)))
7138 (define-public ruby-timecop
7140 (name "ruby-timecop")
7145 (uri (rubygems-uri "timecop" version))
7148 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7149 (build-system ruby-build-system)
7152 (modify-phases %standard-phases
7153 (add-before 'check 'set-check-rubylib
7155 ;; Set RUBYLIB so timecop tests finds its own lib.
7156 (setenv "RUBYLIB" "lib")
7159 `(("bundler" ,bundler)
7160 ("ruby-minitest-rg" ,ruby-minitest-rg)
7161 ("ruby-mocha" ,ruby-mocha)
7162 ("ruby-activesupport" ,ruby-activesupport)))
7163 (synopsis "Test mocks for time-dependent functions")
7165 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7166 making it easier to test time-dependent code. It provides a unified method to
7167 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7169 (home-page "https://github.com/travisjeffery/timecop")
7170 (license license:expat)))
7172 (define-public ruby-concurrent
7174 (name "ruby-concurrent")
7179 ;; Download from GitHub because the rubygems version does not contain
7182 (url "https://github.com/ruby-concurrency/concurrent-ruby")
7183 (commit (string-append "v" version))))
7184 (file-name (git-file-name name version))
7187 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
7188 (build-system ruby-build-system)
7190 `(#:test-target "ci"
7192 (modify-phases %standard-phases
7193 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7195 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7197 (delete-file "concurrent-ruby-edge.gemspec")
7198 (delete-file "concurrent-ruby-ext.gemspec")
7200 (replace 'replace-git-ls-files
7202 ;; XXX: The default substitution made by this phase is not fully
7203 ;; compatible with "git ls-files". The latter produces file names
7204 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
7205 ;; which gives "./lib/foo". That difference in turn breaks the
7206 ;; comparison against a glob pattern in this script.
7207 (substitute* "concurrent-ruby.gemspec"
7208 (("git ls-files") "find * -type f | sort"))
7210 (add-before 'build 'remove-jar-from-gemspec
7212 ;; The gemspec wants to include a JAR file that we do not build
7214 (substitute* "concurrent-ruby.gemspec"
7215 (("'lib/concurrent/concurrent_ruby.jar'")
7218 (add-before 'build 'remove-rake_compiler_dock-dependency
7220 ;; This library is only used when building for non-MRI targets.
7221 (substitute* "Rakefile"
7222 (("require 'rake_compiler_dock'")
7225 (add-before 'check 'remove-timecop-dependency
7226 ;; Remove timecop-dependent tests as having timecop as a depedency
7227 ;; causes circular depedencies.
7229 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7230 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7233 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7234 ("ruby-rspec" ,ruby-rspec)))
7235 (synopsis "Concurrency tools for Ruby")
7237 "This library provides modern concurrency tools including agents,
7238 futures, promises, thread pools, actors, supervisors, and more. It is
7239 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7241 (home-page "http://www.concurrent-ruby.com")
7242 (license license:expat)))
7244 (define-public ruby-pkg-config
7246 (name "ruby-pkg-config")
7251 (uri (rubygems-uri "pkg-config" version))
7254 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7255 (build-system ruby-build-system)
7257 ;; Tests require extra files not included in the gem.
7259 (synopsis "Detect libraries for compiling Ruby native extensions")
7261 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7262 libraries for compiling Ruby native extensions.")
7263 (home-page "https://github.com/ruby-gnome2/pkg-config")
7264 (license license:lgpl2.0+)))
7266 (define-public ruby-net-http-digest-auth
7268 (name "ruby-net-http-digest-auth")
7273 (uri (rubygems-uri "net-http-digest_auth" version))
7276 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7277 (build-system ruby-build-system)
7279 `(("ruby-hoe" ,ruby-hoe)))
7280 (synopsis "RFC 2617 HTTP digest authentication library")
7282 "This library implements HTTP's digest authentication scheme based on
7283 RFC 2617. This enables the use of the digest authentication scheme instead
7284 of the more insecure basic authentication scheme.")
7285 (home-page "https://github.com/drbrain/net-http-digest_auth")
7286 (license license:expat)))
7288 (define-public ruby-mail
7295 (uri (rubygems-uri "mail" version))
7298 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7299 (build-system ruby-build-system)
7301 `(("ruby-mime-types" ,ruby-mime-types)))
7303 ;; Tests require extra gems not included in the Gemfile.
7304 ;; XXX: Try enabling this for the next version with mini_mime.
7306 (synopsis "Mail library for Ruby")
7308 "Mail is an internet library for Ruby that is designed to handle email
7309 generation, parsing and sending. The purpose of this library is to provide
7310 a single point of access to handle all email functions, including sending
7311 and receiving emails. All network type actions are done through proxy
7312 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7314 Mail has been designed with a very simple object oriented system that
7315 really opens up the email messages you are parsing, if you know what you
7316 are doing, you can fiddle with every last bit of your email directly.")
7317 (home-page "https://github.com/mikel/mail")
7318 (license license:expat)))
7320 (define-public ruby-mathn
7327 (uri (rubygems-uri "mathn" version))
7330 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7331 (build-system ruby-build-system)
7333 `(("bundler" ,bundler)
7334 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7335 (synopsis "Extends math operations for increased precision")
7337 "This gem makes mathematical operations more precise in Ruby and
7338 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7339 @code{mathn} was part of the Ruby standard library.")
7340 (home-page "https://github.com/ruby/mathn")
7341 (license license:bsd-2)))
7343 (define-public ruby-code-statistics
7345 (name "ruby-code-statistics")
7350 (uri (rubygems-uri "code_statistics" version))
7353 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7354 (build-system ruby-build-system)
7356 `(#:tests? #f)) ; Not all test code is included in gem.
7357 (synopsis "Port of the rails 'rake stats' method")
7359 "This gem is a port of the rails 'rake stats' method so it can be made
7360 more robust and work for non rails projects.")
7361 (home-page "http://github.com/danmayer/code_statistics")
7362 (license license:expat)))
7364 (define-public ruby-rubypants
7366 (name "ruby-rubypants")
7370 (uri (rubygems-uri "rubypants" version))
7373 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7374 (build-system ruby-build-system)
7376 '(#:tests? #f)) ; need Codecov
7377 (synopsis "Port of the smart-quotes library SmartyPants")
7379 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7380 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7381 and BBEdit that easily translates plain ASCII punctuation characters into
7382 smart typographic punctuation HTML entities.")
7383 (home-page "https://github.com/jmcnevin/rubypants")
7384 (license license:bsd-2)))
7386 (define-public ruby-org-ruby
7388 (name "ruby-org-ruby")
7392 (uri (rubygems-uri "org-ruby" version))
7395 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7396 (build-system ruby-build-system)
7398 '(#:tests? #f)) ; no rakefile
7400 `(("ruby-rubypants" ,ruby-rubypants)))
7401 (synopsis "Org-mode parser written in Ruby")
7403 "Org-ruby is an org-mode parser written in Ruby. The most significant
7404 thing this library does today is convert org-mode files to HTML or Textile or
7406 (home-page "https://github.com/wallyqs/org-ruby")
7407 (license license:expat)))
7409 (define-public ruby-rake
7416 (uri (rubygems-uri "rake" version))
7419 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7420 (build-system ruby-build-system)
7422 `(("bundler" ,bundler)))
7423 (synopsis "Rake is a Make-like program implemented in Ruby")
7425 "Rake is a Make-like program where tasks and dependencies are specified
7426 in standard Ruby syntax.")
7427 (home-page "https://github.com/ruby/rake")
7428 (license license:expat)))
7430 (define-public ruby-childprocess-0.6
7432 (name "ruby-childprocess")
7437 (uri (rubygems-uri "childprocess" version))
7440 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
7441 (build-system ruby-build-system)
7445 `(("bundler" ,bundler)
7446 ("ruby-rspec" ,ruby-rspec)))
7448 `(("ruby-ffi" ,ruby-ffi)))
7449 (synopsis "Control external programs running in the background, in Ruby")
7450 (description "@code{childprocess} provides a gem to control external
7451 programs running in the background, in Ruby.")
7452 (home-page "http://github.com/enkessler/childprocess")
7453 (license license:expat)))
7455 (define-public ruby-childprocess
7457 (inherit ruby-childprocess-0.6)
7458 (name "ruby-childprocess")
7463 (uri (rubygems-uri "childprocess" version))
7466 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
7468 (define-public ruby-public-suffix
7470 (name "ruby-public-suffix")
7474 (uri (rubygems-uri "public_suffix" version))
7477 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
7478 (build-system ruby-build-system)
7481 (modify-phases %standard-phases
7482 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7483 ;; including it as an input can lead to circular dependencies.
7484 (add-after 'unpack 'remove-rubocop-from-Rakefile
7486 (substitute* "Rakefile"
7487 (("require \"rubocop/rake\\_task\"") "")
7488 (("RuboCop::RakeTask\\.new") ""))
7491 `(("bundler" ,bundler)
7492 ("ruby-yard" ,ruby-yard)
7493 ("ruby-mocha" ,ruby-mocha)
7494 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7495 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7496 (synopsis "Domain name parser")
7497 (description "The gem @code{public_suffix} is a domain name parser,
7498 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7499 is one under which Internet users can (or historically could) directly
7500 register names. Some examples of public suffixes are @code{.com},
7501 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7502 all known public suffixes.")
7503 (license license:expat)))
7505 (define-public ruby-addressable
7507 (name "ruby-addressable")
7511 (uri (rubygems-uri "addressable" version))
7514 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
7515 (build-system ruby-build-system)
7517 '(#:test-target "spec"
7519 (modify-phases %standard-phases
7520 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7522 (substitute* "Gemfile"
7523 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7524 ((".*launchy.*") "")
7525 ((".*rake.*") "gem 'rake'\n")
7526 ((".*redcarpet.*") ""))
7528 (add-before 'check 'delete-network-dependent-test
7530 (delete-file "spec/addressable/net_http_compat_spec.rb")
7533 `(("ruby-rspec" ,ruby-rspec)
7534 ("bundler" ,bundler)
7535 ("ruby-idn-ruby" ,ruby-idn-ruby)
7536 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7537 ("ruby-rspec-its", ruby-rspec-its)
7538 ("ruby-yard" ,ruby-yard)
7539 ("ruby-simplecov" ,ruby-simplecov)))
7541 `(("ruby-public-suffix" ,ruby-public-suffix)))
7542 (home-page "https://github.com/sporkmonger/addressable")
7543 (synopsis "Alternative URI implementation")
7544 (description "Addressable is a replacement for the URI implementation that
7545 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7546 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7547 (license license:asl2.0)))
7549 (define-public ruby-colorator
7551 (name "ruby-colorator")
7555 (uri (rubygems-uri "colorator" version))
7558 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7559 (build-system ruby-build-system)
7563 (home-page "http://octopress.org/colorator/")
7564 (synopsis "Terminal color library")
7565 (description "Colorator is a Ruby gem that helps you colorize your text
7567 (license license:expat)))
7569 (define-public ruby-command-line-reporter
7571 (name "ruby-command-line-reporter")
7575 (uri (rubygems-uri "command_line_reporter" version))
7578 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
7579 (build-system ruby-build-system)
7584 (modify-phases %standard-phases
7585 (add-before 'build 'fix-dependencies
7587 (substitute* ".gemspec"
7588 ;; colored is unmaintained
7589 (("colored") "colorator")
7590 ;; colorator version
7591 (("= 1.2") "= 1.1"))
7593 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7594 (home-page "https://github.com/wbailey/command_line_reporter")
7595 (synopsis "Report production while executing Ruby scripts")
7596 (description "This gem provides a DSL that makes it easy to write reports
7597 of various types in ruby. It eliminates the need to litter your source with
7598 puts statements, instead providing a more readable, expressive interface to
7600 (license license:asl2.0)))
7602 (define-public ruby-command-line-reporter-3
7604 (inherit ruby-command-line-reporter)
7608 (uri (rubygems-uri "command_line_reporter" version))
7611 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7613 (define-public ruby-rdoc
7620 (uri (rubygems-uri "rdoc" version))
7623 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7624 (build-system ruby-build-system)
7626 `(("bundler" ,bundler)))
7627 (home-page "https://ruby.github.io/rdoc/")
7628 (synopsis "HTML and command-line documentation utility")
7629 (description "RDoc produces HTML and command-line documentation for Ruby
7630 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7631 documentation from the command-line.")
7632 (license license:gpl2+)))
7634 (define-public ruby-sass-listen
7636 (name "ruby-sass-listen")
7640 (uri (rubygems-uri "sass-listen" version))
7643 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7644 (build-system ruby-build-system)
7649 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7650 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7651 (home-page "https://github.com/sass/listen")
7652 (synopsis "File modification notification library")
7653 (description "The Listen gem listens to file modifications and notifies you
7654 about the changes.")
7655 (license license:expat)))
7657 (define-public ruby-terminfo
7659 (name "ruby-terminfo")
7664 (uri (rubygems-uri "ruby-terminfo" version))
7667 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7668 (build-system ruby-build-system)
7670 `(#:test-target "test"
7671 ;; Rakefile requires old packages and would need modification to
7672 ;; work with current software.
7675 `(("ncurses" ,ncurses)))
7677 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7678 ("ruby-rdoc" ,ruby-rdoc)))
7679 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7680 (synopsis "Terminfo binding for Ruby")
7681 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7682 (license license:bsd-3)))
7684 (define-public ruby-diffy
7691 (uri (rubygems-uri "diffy" version))
7694 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7695 (build-system ruby-build-system)
7700 `(("ruby-rspec" ,ruby-rspec)))
7701 (home-page "https://github.com/samg/diffy")
7702 (synopsis "Convenient diffing in ruby")
7703 (description "Diffy provides a convenient way to generate a diff from two
7705 (license license:expat)))
7707 (define-public ruby-sass-spec
7709 (name "ruby-sass-spec")
7715 (url "https://github.com/sass/sass-spec.git")
7716 (commit (string-append "v" version))))
7717 (file-name (git-file-name name version))
7719 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
7720 (build-system ruby-build-system)
7722 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7723 ("ruby-diffy" ,ruby-diffy)
7724 ("ruby-terminfo" ,ruby-terminfo)))
7726 `(;; This package contains tests for a sass implementation, and the to
7727 ;; avoid any circular dependencies, the tests are not run here
7730 (modify-phases %standard-phases
7731 (add-after 'unpack 'patch-test
7733 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7734 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7735 (("string") "color")))))))
7736 (home-page "https://github.com/sass/sass-spec")
7737 (synopsis "Test suite for Sass")
7738 (description "Sass Spec is a test suite for Sass. Test cases are all in
7739 the @file{spec} directory.")
7740 (license license:expat)))
7742 (define-public ruby-sass
7748 (uri (rubygems-uri "sass" version))
7751 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7752 (build-system ruby-build-system)
7754 `(("ruby-sass-listen" ,ruby-sass-listen)))
7756 `(("ruby-sass-spec" ,ruby-sass-spec)
7757 ("ruby-mathn" ,ruby-mathn)))
7758 (home-page "https://sass-lang.com/")
7759 (synopsis "CSS extension language")
7760 (description "Sass is a CSS extension language. It extends CSS with
7761 features that don't exist yet like variables, nesting, mixins and inheritance.")
7762 (license license:expat)))
7764 (define-public ruby-sassc
7771 (uri (rubygems-uri "sassc" version))
7774 "1sr4825rlwsrl7xrsm0sgalcpf5zgp4i56dbi3qxfa9lhs8r6zh4"))))
7775 (build-system ruby-build-system)
7778 (modify-phases %standard-phases
7779 ;; TODO: This would be better as a snippet, but the ruby-build-system
7780 ;; doesn't seem to support that
7781 (add-after 'unpack 'remove-libsass
7783 (delete-file-recursively "ext")
7785 (add-after 'unpack 'dont-check-the-libsass-version
7787 (substitute* "test/native_test.rb"
7788 (("assert_equal.*Native\\.version") ""))
7790 (add-after 'unpack 'remove-git-from-gemspec
7792 (substitute* "sassc.gemspec"
7793 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")
7794 (("`git submodule --quiet foreach pwd`") "''"))
7796 (add-after 'unpack 'remove-extensions-from-gemspec
7798 (substitute* "sassc.gemspec"
7799 (("\\[\"ext/Rakefile\"\\]") "[]"))
7801 (add-after 'unpack 'fix-Rakefile
7803 (substitute* "Rakefile"
7804 (("test: 'libsass:compile'") ":test"))
7806 (add-after 'unpack 'remove-unnecessary-dependencies
7808 (substitute* "test/test_helper.rb"
7809 (("require \"pry\"") ""))
7811 (add-before 'build 'patch-native.rb
7812 (lambda* (#:key inputs #:allow-other-keys)
7813 (substitute* "lib/sassc/native.rb"
7814 ((".*gem_root = spec.gem_dir") "")
7817 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7819 ;; The gemspec still references the libsass files, so just keep the
7821 (delete 'extract-gemspec))))
7823 `(("ruby-ffi" ,ruby-ffi)
7824 ("ruby-rake" ,ruby-rake)))
7826 `(("libsass" ,libsass)))
7828 `(("bundler" ,bundler)
7829 ("ruby-minitest-around" ,ruby-minitest-around)
7830 ("ruby-test-construct" ,ruby-test-construct)))
7831 (synopsis "Use libsss from Ruby")
7833 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7834 bindings to the libsass library. This enables rendering
7835 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7836 (home-page "https://github.com/sass/sassc-ruby")
7837 (license license:expat)))
7839 (define-public ruby-jekyll-sass-converter
7841 (name "ruby-jekyll-sass-converter")
7845 (uri (rubygems-uri "jekyll-sass-converter" version))
7848 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7849 (build-system ruby-build-system)
7851 `(("ruby-sass" ,ruby-sass)))
7855 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7856 (synopsis "Sass converter for Jekyll")
7857 (description "This gem provide built-in support for the Sass converter
7859 (license license:expat)))
7861 (define-public ruby-jekyll-watch
7863 (name "ruby-jekyll-watch")
7867 (uri (rubygems-uri "jekyll-watch" version))
7870 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
7871 (build-system ruby-build-system)
7873 `(("ruby-listen" ,ruby-listen)))
7877 (home-page "https://github.com/jekyll/jekyll-watch")
7878 (synopsis "Jekyll auto-rebuild support")
7879 (description "This gems add the @code{--watch} switch to the jekyll CLI
7880 interface. It allows Jekyll to rebuild your site when a file changes.")
7881 (license license:expat)))
7883 (define-public ruby-parallel
7885 (name "ruby-parallel")
7891 (url "https://github.com/grosser/parallel.git")
7892 (commit (string-append "v" version))))
7893 (file-name (git-file-name name version))
7896 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7897 (build-system ruby-build-system)
7899 `(;; TODO 3 test failures
7900 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7901 ;; open unnecessary pipes
7902 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7903 ;; SQLite in processes
7904 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7905 ;; SQLite in threads
7907 #:test-target "rspec-rerun:spec"
7909 (modify-phases %standard-phases
7910 (add-after 'unpack 'patch-Gemfile
7912 (substitute* "Gemfile"
7913 (("gem 'rspec-legacy_formatters'") "")
7914 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7915 (add-before 'check 'delete-Gemfile.lock
7917 ;; Bundler isn't being used for fetching dependendencies, so
7918 ;; delete the Gemfile.lock
7919 (delete-file "Gemfile.lock")
7921 (add-before 'build 'patch-gemspec
7923 (substitute* "parallel.gemspec"
7924 (("git ls-files") "find"))
7927 `(("ruby-rspec" ,ruby-rspec)
7928 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
7929 ("bundler" ,bundler)
7930 ("ruby-activerecord" ,ruby-activerecord)
7931 ("ruby-progressbar" ,ruby-progressbar)
7932 ("ruby-bump" ,ruby-bump)
7935 ("ruby-mysql2" ,ruby-mysql2)
7936 ("ruby-sqlite3" ,ruby-sqlite3)
7937 ("ruby-i18n" ,ruby-i18n)))
7938 (home-page "https://github.com/grosser/parallel")
7939 (synopsis "Parallel processing in Ruby")
7940 (description "Parallel allows you to run any code in parallel Processes
7941 (to use all CPUs) or Threads(to speedup blocking operations). It is best
7942 suited for map-reduce or e.g. parallel downloads/uploads.")
7943 (license license:expat)))
7945 (define-public ruby-cane
7951 (uri (rubygems-uri "cane" version))
7954 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7955 (build-system ruby-build-system)
7956 (arguments `(#:tests? #f)); No rakefile
7957 (home-page "https://github.com/square/cane")
7959 `(("ruby-parallel" ,ruby-parallel)))
7960 (synopsis "Code quality threshold checking")
7961 (description "Cane fails your build if code quality thresholds are not met.")
7962 (license license:asl2.0)))
7964 (define-public ruby-morecane
7966 (name "ruby-morecane")
7970 (uri (rubygems-uri "morecane" version))
7973 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
7974 (build-system ruby-build-system)
7975 (home-page "https://github.com/yob/morecane")
7976 (arguments `(#:tests? #f)); No rakefile
7978 `(("ruby-parallel" ,ruby-parallel)))
7979 (synopsis "Extra checks for cane")
7980 (description "The cane gem provides a great framework for running quality
7981 checks over your ruby project as part of continuous integration build. It
7982 comes with a few checks out of the box, but also provides an API for loading
7983 custom checks. This gem provides a set of additional checks.")
7984 (license license:expat)))
7986 (define-public ruby-pdf-reader
7988 (name "ruby-pdf-reader")
7992 (uri (rubygems-uri "pdf-reader" version))
7995 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
7996 (build-system ruby-build-system)
7997 (arguments `(#:test-target "spec"))
7999 `(("bundler" ,bundler)
8000 ("ruby-rspec" ,ruby-rspec)
8001 ("ruby-cane" ,ruby-cane)
8002 ("ruby-morecane" ,ruby-morecane)))
8004 `(("ruby-afm" ,ruby-afm)
8005 ("ruby-ascii85" ,ruby-ascii85)
8006 ("ruby-hashery" ,ruby-hashery)
8007 ("ruby-rc4" ,ruby-rc4)
8008 ("ruby-ttfunk" ,ruby-ttfunk)))
8009 (home-page "https://github.com/yob/pdf-reader")
8010 (synopsis "PDF parser in Ruby")
8011 (description "The PDF::Reader library implements a PDF parser conforming as
8012 much as possible to the PDF specification from Adobe. It provides programmatic
8013 access to the contents of a PDF file with a high degree of flexibility.")
8014 (license license:gpl3+)))
8016 (define-public ruby-pdf-inspector
8018 (name "ruby-pdf-inspector")
8022 (uri (rubygems-uri "pdf-inspector" version))
8025 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
8026 (build-system ruby-build-system)
8028 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8029 (arguments `(#:tests? #f)); No rakefile
8030 (home-page "https://github.com/prawnpdf/pdf-inspector")
8031 (synopsis "Analysis classes for inspecting PDF output")
8032 (description "This library provides a number of PDF::Reader based tools for
8033 use in testing PDF output. Presently, the primary purpose of this tool is to
8034 support the tests found in Prawn, a pure Ruby PDF generation library.")
8035 (license license:gpl3+)))
8037 (define-public ruby-pdf-core
8039 (name "ruby-pdf-core")
8043 (uri (rubygems-uri "pdf-core" version))
8046 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8047 (build-system ruby-build-system)
8051 (home-page "https://github.com/prawnpdf/pdf-core")
8052 (synopsis "Low level PDF features for Prawn")
8053 (description "This is an experimental gem that extracts low-level PDF
8054 functionality from Prawn.")
8055 (license license:gpl3+)))
8057 (define-public ruby-prawn
8063 (uri (rubygems-uri "prawn" version))
8066 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8067 (build-system ruby-build-system)
8072 (modify-phases %standard-phases
8073 (add-before 'build 'fix-dependencies
8075 (substitute* "prawn.gemspec"
8076 (("~> 0.7.0") "~> 0.7"))
8079 `(("ruby-pdf-core" ,ruby-pdf-core)
8080 ("ruby-ttfunk" ,ruby-ttfunk)))
8082 `(("bundler" ,bundler)
8083 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8084 ("ruby-rspec" ,ruby-rspec)
8085 ("ruby-simplecov" ,ruby-simplecov)
8086 ("ruby-yard" ,ruby-yard)))
8087 (home-page "http://prawnpdf.org/api-docs/2.0/")
8088 (synopsis "PDF generation for Ruby")
8089 (description "Prawn is a pure Ruby PDF generation library.")
8090 (license license:gpl3+)))
8092 (define-public ruby-prawn-table
8094 (name "ruby-prawn-table")
8098 (uri (rubygems-uri "prawn-table" version))
8101 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8102 (build-system ruby-build-system)
8104 `(("ruby-prawn" ,ruby-prawn)
8105 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8107 `(("bundler" ,bundler)
8108 ("ruby-yard" ,ruby-yard)
8109 ("ruby-mocha" ,ruby-mocha)
8110 ("ruby-coderay" ,ruby-coderay)
8111 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8112 ("ruby-simplecov" ,ruby-simplecov)
8113 ("ruby-rspec-2" ,ruby-rspec-2)))
8115 '(;; TODO: 1 test fails
8116 ;; Failure/Error: pdf.page_count.should == 1
8118 ;; got: 2 (using ==)
8119 ;; # ./spec/table_spec.rb:1308
8121 ;; 225 examples, 1 failure
8124 (modify-phases %standard-phases
8125 (add-before 'check 'patch-gemspec
8127 (substitute* "prawn-table.gemspec"
8128 ;; Loosen the requirement for pdf-inspector
8129 (("~> 1\\.1\\.0") ">= 0")
8130 ;; Loosen the requirement for pdf-reader
8131 (("~> 1\\.2") ">= 0"))))
8133 (lambda* (#:key tests? #:allow-other-keys)
8137 (home-page "https://github.com/prawnpdf/prawn-table")
8138 (synopsis "Tables support for Prawn")
8139 (description "This gem provides tables support for Prawn.")
8140 (license license:gpl3+)))
8142 (define-public ruby-kramdown
8144 (name "ruby-kramdown")
8148 (uri (rubygems-uri "kramdown" version))
8151 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8152 (build-system ruby-build-system)
8153 (arguments `(#:tests? #f)); FIXME: some test failures
8155 `(("ruby-prawn" ,ruby-prawn)
8156 ("ruby-prawn-table" ,ruby-prawn-table)))
8157 (home-page "https://kramdown.gettalong.org/")
8158 (synopsis "Markdown parsing and converting library")
8159 (description "Kramdown is a library for parsing and converting a superset
8160 of Markdown. It is completely written in Ruby, supports standard Markdown
8161 (with some minor modifications) and various extensions that have been made
8162 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8163 (license license:expat)))
8165 (define-public ruby-http-parser.rb
8167 (name "ruby-http-parser.rb")
8172 (uri (rubygems-uri "http_parser.rb" version))
8175 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8176 (build-system ruby-build-system)
8181 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8182 ("ruby-rspec" ,ruby-rspec)))
8183 (home-page "https://github.com/tmm1/http_parser.rb")
8184 (synopsis "HTTP parser un Ruby")
8185 (description "This gem is a simple callback-based HTTP request/response
8186 parser for writing http servers, clients and proxies.")
8187 (license license:expat)))
8189 (define-public ruby-em-websocket
8191 (name "ruby-em-websocket")
8196 (uri (rubygems-uri "em-websocket" version))
8199 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8200 (build-system ruby-build-system)
8205 `(("ruby-eventmachine" ,ruby-eventmachine)
8206 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8208 `(("bundler" ,bundler)
8209 ("ruby-rspec" ,ruby-rspec)))
8210 (home-page "https://github.com/igrigorik/em-websocket")
8211 (synopsis "EventMachine based WebSocket server")
8212 (description "Em-websocket is an EventMachine based WebSocket server
8214 (license license:expat)))
8216 (define-public ruby-rouge
8222 (uri (rubygems-uri "rouge" version))
8225 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
8226 (build-system ruby-build-system)
8227 (arguments `(#:tests? #f)); No rakefile
8228 (home-page "http://rouge.jneen.net/")
8229 (synopsis "Code highlighter")
8230 (description "Rouge is a code highlighter written in Ruby. It supports more
8231 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8232 is compatible with stylesheets designed for pygments.")
8234 ;; rouge is licensed under expat
8236 ;; pygments is licensed under bsd-2
8239 (define-public ruby-rouge-2
8241 (inherit ruby-rouge)
8245 (uri (rubygems-uri "rouge" version))
8248 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8250 (define-public ruby-hashie
8252 (name "ruby-hashie")
8256 (uri (rubygems-uri "hashie" version))
8259 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8260 (build-system ruby-build-system)
8262 `(("bundler" ,bundler)))
8263 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8264 (home-page "https://github.com/intridea/hashie")
8265 (synopsis "Extensions to Ruby Hashes")
8266 (description "Hashie is a collection of classes and mixins that make Ruby
8267 hashes more powerful.")
8268 (license license:expat)))
8270 (define-public ruby-heredoc-unindent
8272 (name "ruby-heredoc-unindent")
8276 (uri (rubygems-uri "heredoc_unindent" version))
8279 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8280 (build-system ruby-build-system)
8282 `(("ruby-hoe" ,ruby-hoe)))
8283 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8284 (synopsis "Heredoc indentation cleaner")
8285 (description "This gem removes common margin from indented strings, such
8286 as the ones produced by indented heredocs. In other words, it strips out
8287 leading whitespace chars at the beginning of each line, but only as much as
8288 the line with the smallest margin.
8290 It is acknowledged that many strings defined by heredocs are just code and
8291 fact is that most parsers are insensitive to indentation. If, however, the
8292 strings are to be used otherwise, be it for printing or testing, the extra
8293 indentation will probably be an issue and hence this gem.")
8294 (license license:expat)))
8296 (define-public ruby-safe-yaml
8298 (name "ruby-safe-yaml")
8304 (url "https://github.com/dtao/safe_yaml.git")
8306 (file-name (git-file-name name version))
8309 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
8310 (build-system ruby-build-system)
8312 `(("ruby-rspec" ,ruby-rspec)
8313 ("ruby-hashie" ,ruby-hashie)
8314 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8316 '(#:test-target "spec"
8318 (modify-phases %standard-phases
8319 (add-before 'check 'set-TZ
8321 ;; This test is dependent on the timezone
8322 ;; spec/transform/to_date_spec.rb:35
8323 ;; # SafeYAML::Transform::ToDate converts times to the local
8325 (setenv "TZ" "UTC-11")
8327 (home-page "https://github.com/dtao/safe_yaml")
8328 (synopsis "YAML parser")
8329 (description "The SafeYAML gem provides an alternative implementation of
8330 YAML.load suitable for accepting user input in Ruby applications.")
8331 (license license:expat)))
8333 (define-public ruby-mercenary
8335 (name "ruby-mercenary")
8339 (uri (rubygems-uri "mercenary" version))
8342 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8343 (build-system ruby-build-system)
8344 (arguments `(#:test-target "spec"))
8346 `(("bundler" ,bundler)))
8347 (home-page "https://github.com/jekyll/mercenary")
8348 (synopsis "Command-line apps library in Ruby")
8349 (description "Mercenary is a lightweight and flexible library for writing
8350 command-line apps in Ruby.")
8351 (license license:expat)))
8353 (define-public ruby-liquid
8355 (name "ruby-liquid")
8359 (uri (rubygems-uri "liquid" version))
8362 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8363 (build-system ruby-build-system)
8364 (arguments `(#:tests? #f)); No rakefile
8365 (home-page "https://shopify.github.io/liquid/")
8366 (synopsis "Template language")
8367 (description "Liquid is a template language written in Ruby. It is used
8368 to load dynamic content on storefronts.")
8369 (license license:expat)))
8371 (define-public ruby-forwardable-extended
8373 (name "ruby-forwardable-extended")
8377 (uri (rubygems-uri "forwardable-extended" version))
8380 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8381 (build-system ruby-build-system)
8382 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8383 (home-page "https://github.com/envygeeks/forwardable-extended")
8384 (synopsis "Delegation to hashes and instance variables in Forwardable")
8385 (description "Forwardable Extended provides more @code{Forwardable}
8386 methods for your source as @code{Forwardable::Extended}.")
8387 (license license:expat)))
8389 (define-public ruby-pathutil
8391 (name "ruby-pathutil")
8395 (uri (rubygems-uri "pathutil" version))
8398 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
8399 (build-system ruby-build-system)
8401 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8403 `(("bundler" ,bundler)
8404 ("ruby-rspec" ,ruby-rspec)))
8405 ;; Fails with: cannot load such file --
8406 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8407 (arguments `(#:tests? #f))
8408 (home-page "https://github.com/envygeeks/pathutil")
8409 (synopsis "Extended implementation of Pathname")
8410 (description "Pathutil tries to be a faster pure Ruby implementation of
8412 (license license:expat)))
8414 (define-public jekyll
8420 (uri (rubygems-uri "jekyll" version))
8423 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
8424 (build-system ruby-build-system)
8426 ;; No rakefile, but a test subdirectory.
8429 (modify-phases %standard-phases
8430 (add-before 'build 'fix-i18n
8432 (substitute* ".gemspec"
8433 (("~> 0.7") ">= 0.7"))
8436 `(("ruby-addressable" ,ruby-addressable)
8437 ("ruby-colorator" ,ruby-colorator)
8438 ("ruby-em-websocket" ,ruby-em-websocket)
8439 ("ruby-i18n" ,ruby-i18n)
8440 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8441 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8442 ("ruby-kramdown" ,ruby-kramdown)
8443 ("ruby-liquid" ,ruby-liquid)
8444 ("ruby-mercenary" ,ruby-mercenary)
8445 ("ruby-pathutil" ,ruby-pathutil)
8446 ("ruby-rouge" ,ruby-rouge-2)
8447 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8448 (home-page "https://jekyllrb.com/")
8449 (synopsis "Static site generator")
8450 (description "Jekyll is a simple, blog aware, static site generator.")
8451 (license license:expat)))
8453 (define-public ruby-jekyll-paginate-v2
8455 (name "ruby-jekyll-paginate-v2")
8459 (uri (rubygems-uri "jekyll-paginate-v2" version))
8462 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8463 (build-system ruby-build-system)
8465 `(("jekyll" ,jekyll)))
8466 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8467 (synopsis "Pagination Generator for Jekyll 3")
8468 (description "The Pagination Generator forms the core of the pagination
8469 logic in Jekyll. It calculates and generates the pagination pages.")
8470 (license license:expat)))
8472 (define-public ruby-faraday
8474 (name "ruby-faraday")
8479 (uri (rubygems-uri "faraday" version))
8482 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8483 (build-system ruby-build-system)
8487 `(("ruby-multipart-post" ,ruby-multipart-post)))
8488 (synopsis "Ruby HTTP/REST API client library")
8490 "Faraday is a HTTP/REST API client library which provides a common
8491 interface over different adapters.")
8492 (home-page "https://github.com/lostisland/faraday")
8493 (license license:expat)))
8495 (define-public ruby-nio4r
8502 (uri (rubygems-uri "nio4r" version))
8505 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
8506 (build-system ruby-build-system)
8509 (modify-phases %standard-phases
8510 (add-after 'unpack 'remove-unnecessary-dependencies
8512 (substitute* "spec/spec_helper.rb"
8513 ;; Coveralls is for uploading test coverage information to an
8514 ;; online service, and thus unnecessary for building the Guix
8516 (("require \"coveralls\"") "")
8517 (("Coveralls\\.wear!") "")
8518 ;; Remove rspec/retry as we are not retrying the tests
8519 (("require \"rspec/retry\"") "")
8520 (("config\\.display_try_failure_messages = true") "")
8521 (("config\\.verbose_retry = true") ""))
8523 (add-before 'check 'compile
8525 (invoke "rake" "compile")
8528 (lambda* (#:key tests? #:allow-other-keys)
8533 `(("bundler" ,bundler)
8534 ("ruby-rake-compiler" ,ruby-rake-compiler)
8535 ("ruby-rspec" ,ruby-rspec)
8536 ("ruby-rubocop" ,ruby-rubocop)))
8537 (synopsis "New I/O for Ruby")
8539 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8540 for scalable network clients and servers.")
8541 (home-page "https://github.com/socketry/nio4r")
8542 (license license:expat)))
8544 (define-public ruby-globalid
8546 (name "ruby-globalid")
8551 (uri (rubygems-uri "globalid" version))
8554 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8555 (build-system ruby-build-system)
8557 '(;; No included tests
8560 `(("ruby-activesupport" ,ruby-activesupport)))
8561 (synopsis "Generate URIs idenfitying model instances in Ruby")
8563 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8564 uniquely identify it.")
8565 (home-page "https://rubyonrails.org/")
8566 (license license:expat)))
8568 (define-public ruby-sprockets
8570 (name "ruby-sprockets")
8575 (uri (rubygems-uri "sprockets" version))
8578 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8579 (build-system ruby-build-system)
8581 '(;; No included tests
8584 `(("ruby-concurrent" ,ruby-concurrent)
8585 ("ruby-rack" ,ruby-rack)))
8586 (synopsis "Sprockets is a Rack-based asset packaging system")
8588 "Sprockets is a Rack-based asset packaging system that concatenates and
8589 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8590 (home-page "https://github.com/rails/sprockets")
8591 (license license:expat)))
8593 (define-public ruby-mustermann
8595 (name "ruby-mustermann")
8600 (uri (rubygems-uri "mustermann" version))
8603 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8604 (build-system ruby-build-system)
8608 (synopsis "Library implementing patterns that behave like regular expressions")
8609 (description "Given a string pattern, Mustermann will turn it into an
8610 object that behaves like a regular expression and has comparable performance
8612 (home-page "https://github.com/sinatra/mustermann")
8613 (license license:expat)))
8615 (define-public ruby-htmlentities
8617 (name "ruby-htmlentities")
8622 (uri (rubygems-uri "htmlentities" version))
8625 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
8626 (build-system ruby-build-system)
8629 (modify-phases %standard-phases
8633 (invoke "ruby" "-Itest" file))
8634 (find-files "./test" ".*_test\\.rb")))))))
8635 (synopsis "Encode and decode (X)HTML entities")
8637 "This package provides a module for encoding and decoding (X)HTML
8639 (home-page "https://github.com/threedaymonk/htmlentities")
8640 (license license:expat)))
8642 (define-public ruby-sinatra
8644 (name "ruby-sinatra")
8649 (uri (rubygems-uri "sinatra" version))
8652 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8653 (build-system ruby-build-system)
8655 `(("ruby-mustermann" ,ruby-mustermann)
8656 ("ruby-rack" ,ruby-rack)
8657 ("ruby-rack-protection" ,ruby-rack-protection)
8658 ("ruby-tilt" ,ruby-tilt)))
8659 (synopsis "DSL for quick web applications creation in Ruby")
8661 "Sinatra is a DSL for quickly creating web applications in Ruby with
8663 (home-page "http://sinatrarb.com/")
8664 (license license:expat)))
8666 (define-public ruby-thin
8673 (uri (rubygems-uri "thin" version))
8676 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8677 (build-system ruby-build-system)
8682 `(("ruby-daemons" ,ruby-daemons)
8683 ("ruby-eventmachine" ,ruby-eventmachine)
8684 ("ruby-rack" ,ruby-rack)))
8685 (synopsis "Thin and fast web server for Ruby")
8686 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8688 @item the Mongrel parser,
8689 @item Event Machine, a network I/O library with high scalability, performance
8691 @item Rack, a minimal interface between webservers and Ruby frameworks.
8693 (home-page "http://code.macournoyer.com/thin/")
8694 (license license:ruby)))
8696 (define-public ruby-skinny
8698 (name "ruby-skinny")
8703 (uri (rubygems-uri "skinny" version))
8706 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8707 (build-system ruby-build-system)
8709 '(#:tests? #f ; No included tests
8711 (modify-phases %standard-phases
8712 (add-before 'build 'patch-gemspec
8714 (substitute* ".gemspec"
8715 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8716 "<eventmachine>, [\">= 1.0.0\"")
8717 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8720 `(("ruby-eventmachine" ,ruby-eventmachine)
8721 ("ruby-thin" ,ruby-thin)))
8722 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8723 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8725 (home-page "https://github.com/sj26/skinny")
8726 (license license:expat)))
8728 (define-public mailcatcher
8730 (name "mailcatcher")
8735 (uri (rubygems-uri "mailcatcher" version))
8738 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8739 (build-system ruby-build-system)
8741 ;; Tests require web/assets which is not included in the output. We
8742 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8743 ;; of the tests. See ruby-mysql2.
8746 (modify-phases %standard-phases
8747 (add-before 'build 'patch-gemspec
8749 (substitute* ".gemspec"
8750 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8751 "<eventmachine>, [\">= 1.0.9.1")
8752 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8753 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8754 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8756 (add-before 'build 'loosen-dependency-contraint
8758 (substitute* "lib/mail_catcher.rb"
8759 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8760 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8761 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8762 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8765 `(("ruby-eventmachine" ,ruby-eventmachine)
8766 ("ruby-mail" ,ruby-mail)
8767 ("ruby-rack" ,ruby-rack)
8768 ("ruby-sinatra" ,ruby-sinatra)
8769 ("ruby-skinny" ,ruby-skinny)
8770 ("ruby-sqlite3" ,ruby-sqlite3)
8771 ("ruby-thin" ,ruby-thin)))
8772 (synopsis "SMTP server which catches messages to display them a browser")
8774 "MailCatcher runs a super simple SMTP server which catches any message
8775 sent to it to display in a web interface. Run mailcatcher, set your favourite
8776 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8777 then check out http://127.0.0.1:1080 to see the mail.")
8778 (home-page "https://mailcatcher.me")
8779 (license license:expat)))
8781 (define-public ruby-backport
8783 (name "ruby-backport")
8787 ;; The gem does not include test code, so fetch from the Git repository.
8790 (url "https://github.com/castwide/backport.git")
8791 (commit (string-append "v" version))))
8792 (file-name (git-file-name name version))
8794 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
8795 (build-system ruby-build-system)
8797 `(#:test-target "spec"))
8799 `(("bundler" ,bundler)
8800 ("ruby-rspec" ,ruby-rspec)))
8802 `(("ruby-simplecov" ,ruby-simplecov)))
8803 (synopsis "Pure Ruby library for event-driven IO")
8805 "This package provides a pure Ruby library for event-driven IO.")
8806 (home-page "https://github.com/castwide/backport")
8807 (license license:expat)))
8809 (define-public ruby-json-schema
8811 (name "ruby-json-schema")
8816 (uri (rubygems-uri "json-schema" version))
8819 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
8820 (build-system ruby-build-system)
8822 `(#:tests? #f ; no tests
8824 (modify-phases %standard-phases
8827 (invoke "gem" "build" ".gemspec"))))))
8829 `(("ruby-addressable" ,ruby-addressable)))
8830 (synopsis "Ruby JSON Schema Validator")
8831 (description "This library provides Ruby with an interface for validating
8832 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
8833 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
8835 (home-page "https://github.com/ruby-json-schema/json-schema")
8836 (license license:expat)))
8838 (define-public swagger-diff
8840 (name "swagger-diff")
8845 (uri (rubygems-uri "swagger-diff" version))
8848 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
8849 (build-system ruby-build-system)
8851 `(#:test-target "spec"
8853 (modify-phases %standard-phases
8854 ;; Don't run or require rubocop, the code linting tool, as this is a
8856 (add-after 'unpack 'dont-run-rubocop
8858 (substitute* "Rakefile"
8859 ((".*rubocop.*") "")
8860 ((".*RuboCop.*") ""))
8863 `(("ruby-json-schema" ,ruby-json-schema)))
8865 `(("bundler" ,bundler)
8866 ("ruby-rspec-core" ,ruby-rspec-core)
8867 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
8869 "Compare Open API Initiative specification files")
8871 "Swagger::Diff is a utility for comparing two different Open API
8872 Initiative (OAI) specifications (formerly known as Swagger specifications).
8873 It is intended to determine whether a newer API specification is
8874 backwards-compatible with an older API specification.")
8875 (home-page "https://github.com/civisanalytics/swagger-diff")
8876 (license license:bsd-3)))
8878 (define-public ruby-reverse-markdown
8880 (name "ruby-reverse-markdown")
8885 (uri (rubygems-uri "reverse_markdown" version))
8888 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
8889 (build-system ruby-build-system)
8891 `(("ruby-nokogiri" ,ruby-nokogiri)))
8893 `(("bundler" ,bundler)
8894 ("ruby-rspec" ,ruby-rspec)
8895 ("ruby-kramdown" ,ruby-kramdown)
8896 ("ruby-simplecov" ,ruby-simplecov)))
8899 (modify-phases %standard-phases
8901 (lambda* (#:key tests? #:allow-other-keys)
8905 (synopsis "Convert HTML into Markdown")
8907 "This Ruby module allows you to map simple HTML back into
8908 Markdown---e.g., if you want to import existing HTML data in your
8910 (home-page "https://github.com/xijo/reverse_markdown")
8911 (license license:wtfpl2)))
8913 (define-public ruby-solargraph
8915 (name "ruby-solargraph")
8920 (uri (rubygems-uri "solargraph" version))
8923 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
8924 (build-system ruby-build-system)
8926 `(("ruby-backport" ,ruby-backport)
8927 ("bundler" ,bundler)
8928 ("ruby-htmlentities" ,ruby-htmlentities)
8929 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
8930 ("ruby-maruku" ,ruby-maruku)
8931 ("ruby-nokogiri" ,ruby-nokogiri)
8932 ("ruby-parser" ,ruby-parser)
8933 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
8934 ("ruby-rubocop" ,ruby-rubocop)
8935 ("ruby-thor" ,ruby-thor)
8936 ("ruby-tilt" ,ruby-tilt)
8937 ("ruby-yard" ,ruby-yard)))
8939 `(("ruby-rspec" ,ruby-rspec)
8940 ("ruby-pry" ,ruby-pry)
8941 ("ruby-simplecov" ,ruby-simplecov)
8942 ("ruby-webmock" ,ruby-webmock-2)))
8943 ;; FIXME: can't figure out how to run the tests properly:
8945 ;; An error occurred while loading spec_helper.
8946 ;; Failure/Error: return gem_original_require(path)
8948 ;; cannot load such file -- spec_helper
8952 (modify-phases %standard-phases
8954 (lambda* (#:key tests? #:allow-other-keys)
8959 "IDE tools for code completion, inline documentation, and static analysis")
8961 "Solargraph provides a comprehensive suite of tools for Ruby
8962 programming: intellisense, diagnostics, inline documentation, and type
8964 (home-page "https://solargraph.org/")
8965 (license license:expat)))
8967 (define-public ruby-wayback-machine-downloader
8969 (name "ruby-wayback-machine-downloader")
8975 "wayback_machine_downloader"
8979 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
8980 (build-system ruby-build-system)
8982 '(#:tests? #f)) ; no tests
8983 (synopsis "Download archived websites from the Wayback Machine")
8985 "Wayback Machine Downloader is a command line tool for downloading
8986 websites from the Internet Archive's Wayback Machine (archive.org).
8987 It allows fine grained control over what to download by specifying
8988 which snapshots to consider and what files to include.")
8990 "https://github.com/hartator/wayback-machine-downloader")
8991 (license license:expat)))