1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nikita <nikita@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages ruby)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages base)
43 #:use-module (gnu packages bison)
44 #:use-module (gnu packages check)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages crypto)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages dbm)
49 #:use-module (gnu packages rails)
50 #:use-module (gnu packages readline)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages java)
53 #:use-module (gnu packages libffi)
54 #:use-module (gnu packages libidn)
55 #:use-module (gnu packages linux)
56 #:use-module (gnu packages lsof)
57 #:use-module (gnu packages maths)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages networking)
60 #:use-module (gnu packages node)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-xyz)
63 #:use-module (gnu packages ragel)
64 #:use-module (gnu packages rsync)
65 #:use-module (gnu packages sqlite)
66 #:use-module (gnu packages tls)
67 #:use-module (gnu packages version-control)
68 #:use-module (guix packages)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module (guix utils)
72 #:use-module (guix build-system gnu)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages web)
75 #:use-module (guix build-system ruby)
76 #:use-module ((srfi srfi-1) #:select (alist-delete)))
85 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
86 (version-major+minor version)
87 "/ruby-" version ".tar.xz"))
90 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
91 (modules '((guix build utils)))
93 ;; Remove bundled libffi
94 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
96 (build-system gnu-build-system)
98 `(#:test-target "test"
99 #:configure-flags '("--enable-shared") ; dynamic linking
101 (modify-phases %standard-phases
102 (add-before 'configure 'replace-bin-sh-and-remove-libffi
104 (substitute* '("Makefile.in"
109 "test/rubygems/test_gem_ext_configure_builder.rb"
110 "test/rdoc/test_rdoc_parser.rb"
111 "test/ruby/test_rubyoptions.rb"
112 "test/ruby/test_process.rb"
113 "test/ruby/test_system.rb"
115 (("/bin/sh") (which "sh")))
118 `(("readline" ,readline)
125 (list (search-path-specification
126 (variable "GEM_PATH")
127 (files (list (string-append "lib/ruby/vendor_ruby"))))))
128 (synopsis "Programming language interpreter")
129 (description "Ruby is a dynamic object-oriented programming language with
130 a focus on simplicity and productivity.")
131 (home-page "https://www.ruby-lang.org")
132 (license license:ruby)))
134 (define-public ruby-2.5
141 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
142 (version-major+minor version)
143 "/ruby-" version ".tar.xz"))
146 "159zka4sbx1p4ayxqi7a5ybbzxvn3n5mivrz4d1damw9ypl70610"))
147 (modules '((guix build utils)))
149 ;; Remove bundled libffi
150 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
153 (define-public ruby-2.4
160 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
161 (version-major+minor version)
162 "/ruby-" version ".tar.xz"))
165 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
166 (modules '((guix build utils)))
168 ;; Remove bundled libffi
169 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
180 (url "https://github.com/mruby/mruby.git")
182 (file-name (git-file-name name version))
185 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
186 (build-system gnu-build-system)
188 `(#:test-target "test"
190 (modify-phases %standard-phases
192 (add-after 'unpack 'enable-verbose-tests
194 (substitute* "Makefile"
195 (("ruby ./minirake" m)
196 (string-append m " --verbose")))
198 (add-after 'unpack 'disable-broken-tests
200 (substitute* "mrbgems/mruby-io/test/io.rb"
201 (("assert\\('IO.popen.+$" m)
202 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
203 (("assert\\('IO#isatty.+$" m)
204 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
205 ;; This one is really weird. The *expected* output is all wrong.
206 (("assert\\('`cmd`.*" m)
207 (string-append m "skip \"Disable for Guix\"\n"))
209 (string-append (which "echo") " foo")))
211 ;; There is no install target
213 (lambda* (#:key outputs #:allow-other-keys)
214 (let* ((out (assoc-ref outputs "out"))
215 (bin (string-append out "/bin"))
216 (lib (string-append out "/lib")))
218 (copy-recursively "build/host/bin" bin)
220 (copy-recursively "build/host/lib" lib))
225 (home-page "https://github.com/mruby/mruby")
226 (synopsis "Lightweight Ruby")
227 (description "mruby is the lightweight implementation of the Ruby
228 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
229 embedded within your application.")
230 (license license:expat)))
232 (define-public ruby-commander
234 (name "ruby-commander")
239 (uri (rubygems-uri "commander" version))
242 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
243 (build-system ruby-build-system)
245 `(#:test-target "spec"
247 (modify-phases %standard-phases
248 ;; Don't run or require rubocop, the code linting tool, as this is a
250 (add-after 'unpack 'dont-run-rubocop
252 (substitute* "Rakefile"
254 ((".*RuboCop.*") ""))
257 `(("ruby-highline" ,ruby-highline)))
259 `(("bundler" ,bundler)
260 ("ruby-rspec-core" ,ruby-rspec-core)
261 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
262 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
263 ("ruby-simplecov" ,ruby-simplecov)))
264 (home-page "https://github.com/commander-rb/commander")
265 (synopsis "Library for building Ruby command-line executables")
267 "Commander aims to be a complete solution for Ruby command-line
268 executables. Commander bridges the gap between other terminal related
269 libraries (OptionParser, HighLine), while providing many new features, and an
271 (license license:expat)))
273 (define-public ruby-highline
275 (name "ruby-highline")
280 (uri (rubygems-uri "highline" version))
283 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
284 (build-system ruby-build-system)
286 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
288 `(("bundler" ,bundler)
289 ("ruby-code-statistics" ,ruby-code-statistics)))
291 "HighLine helps you build command-line interfaces")
293 "HighLine provides a high-level IO library that provides validation,
294 type conversion, and more for command-line interfaces. HighLine also includes
295 a menu system for providing multiple options to the user.")
296 (home-page "https://github.com/JEG2/highline")
297 (license (list license:gpl2 license:ruby))))
299 (define-public ruby-hoe
305 (uri (rubygems-uri "hoe" version))
308 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
309 (build-system ruby-build-system)
312 (modify-phases %standard-phases
313 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
314 ;; variable is set, so unset it for the duration of the tests.
316 ;; TestHoe#test_possibly_better
317 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
318 ;; Expected: 2019-11-12 00:00:00 UTC
319 ;; Actual: 1970-01-01 00:00:00 UTC
320 (add-before 'check 'unset-SOURCE-DATE-EPOCH
322 (unsetenv "SOURCE_DATE_EPOCH")
324 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
326 (setenv "SOURCE_DATE_EPOCH" "1")
328 (synopsis "Ruby project management helper")
330 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
331 maintain, and release projects and includes a dynamic plug-in system allowing
332 for easy extensibility. Hoe ships with plug-ins for all the usual project
333 tasks including rdoc generation, testing, packaging, deployment, and
335 (home-page "https://www.zenspider.com/projects/hoe.html")
336 (license license:expat)))
338 (define-public ruby-rake-compiler
340 (name "ruby-rake-compiler")
344 (uri (rubygems-uri "rake-compiler" version))
347 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
348 (build-system ruby-build-system)
350 '(#:tests? #f)) ; needs cucumber
351 (synopsis "Building and packaging helper for Ruby native extensions")
352 (description "Rake-compiler provides a framework for building and
353 packaging native C and Java extensions in Ruby.")
354 (home-page "https://github.com/rake-compiler/rake-compiler")
355 (license license:expat)))
357 (define-public ruby-rsync
364 (uri (rubygems-uri "rsync" version))
367 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
368 (build-system ruby-build-system)
370 '(#:test-target "spec"
372 (modify-phases %standard-phases
373 (add-after 'unpack 'remove-coveralls-requirement
375 (substitute* "spec/spec_helper.rb"
376 (("require 'coveralls'") "")
377 (("Coveralls.wear!") ""))
380 `(("bundler" ,bundler)
382 ("ruby-rspec-core" ,ruby-rspec-core)
383 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
384 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
385 (home-page "https://github.com/jbussdieker/ruby-rsync")
386 (synopsis "Ruby wrapper around rsync")
388 "Ruby Rsync is a Ruby library that can synchronize files between remote
389 hosts by wrapping the @file{rsync} binary.")
390 (license license:expat)))
392 (define-public ruby-i18n
398 (uri (rubygems-uri "i18n" version))
401 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
402 (build-system ruby-build-system)
404 '(#:tests? #f)) ; no tests
405 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
406 (synopsis "Internationalization library for Ruby")
407 (description "Ruby i18n is an internationalization and localization
408 solution for Ruby programs. It features translation and localization,
409 interpolation of values to translations, pluralization, customizable
410 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
411 translation data, custom key/scope separator, custom exception handlers, and
412 an extensible architecture with a swappable backend.")
413 (home-page "https://github.com/ruby-i18n/i18n")
414 (license license:expat)))
416 (define-public ruby-iruby
423 (uri (rubygems-uri "iruby" version))
426 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
427 (build-system ruby-build-system)
429 ;; TODO: Tests currently fail.
431 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
434 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
437 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
440 (modify-phases %standard-phases
441 (add-after 'unpack 'patch-ipython
442 (lambda* (#:key inputs #:allow-other-keys)
443 (substitute* "lib/iruby/command.rb"
447 (assoc-ref inputs "python-ipython")
449 (("Kernel\\.exec\\('")
452 (assoc-ref inputs "python-ipython")
456 `(("python-ipython" ,python-ipython)))
458 `(("ruby-bond" ,ruby-bond)
459 ("ruby-data_uri" ,ruby-data_uri)
460 ("ruby-mimemagic" ,ruby-mimemagic)
461 ("ruby-multi-json" ,ruby-multi-json)
462 ("ruby-cztop" ,ruby-cztop)
464 ("ruby-pry" ,ruby-pry)))
465 (synopsis "Ruby kernel for Jupyter/IPython")
467 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
469 (home-page "https://github.com/SciRuby/iruby")
470 (license license:expat)))
472 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
473 ;; dependencies use RSpec for their test suites! To avoid these circular
474 ;; dependencies, we disable tests for all of the RSpec-related packages.
475 (define-public ruby-rspec-support
477 (name "ruby-rspec-support")
481 (uri (rubygems-uri "rspec-support" version))
484 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
485 (build-system ruby-build-system)
487 '(#:tests? #f)) ; avoid dependency cycles
488 (synopsis "RSpec support library")
489 (description "Support utilities for RSpec gems.")
490 (home-page "https://github.com/rspec/rspec-support")
491 (license license:expat)))
493 (define-public ruby-rspec-core
495 (name "ruby-rspec-core")
499 (uri (rubygems-uri "rspec-core" version))
502 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
503 (build-system ruby-build-system)
505 '(#:tests? #f)) ; avoid dependency cycles
507 `(("ruby-rspec-support" ,ruby-rspec-support)))
508 (synopsis "RSpec core library")
509 (description "Rspec-core provides the RSpec test runner and example
511 (home-page "https://github.com/rspec/rspec-core")
512 (license license:expat)))
514 (define-public ruby-rspec-core-2
515 (package (inherit ruby-rspec-core)
519 (uri (rubygems-uri "rspec-core" version))
522 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
523 (propagated-inputs `())))
525 (define-public ruby-diff-lcs
527 (name "ruby-diff-lcs")
531 (uri (rubygems-uri "diff-lcs" version))
534 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
535 (build-system ruby-build-system)
537 '(#:tests? #f)) ; avoid dependency cycles
538 (synopsis "Compute the difference between two Enumerable sequences")
539 (description "Diff::LCS computes the difference between two Enumerable
540 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
541 It includes utilities to create a simple HTML diff output format and a
542 standard diff-like tool.")
543 (home-page "https://github.com/halostatue/diff-lcs")
544 (license license:expat)))
546 (define-public ruby-rspec-expectations
548 (name "ruby-rspec-expectations")
552 (uri (rubygems-uri "rspec-expectations" version))
555 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
556 (build-system ruby-build-system)
558 '(#:tests? #f)) ; avoid dependency cycles
560 `(("ruby-rspec-support" ,ruby-rspec-support)
561 ("ruby-diff-lcs" ,ruby-diff-lcs)))
562 (synopsis "RSpec expectations library")
563 (description "Rspec-expectations provides a simple API to express expected
564 outcomes of a code example.")
565 (home-page "https://github.com/rspec/rspec-expectations")
566 (license license:expat)))
568 (define-public ruby-rspec-expectations-2
569 (package (inherit ruby-rspec-expectations)
573 (uri (rubygems-uri "rspec-expectations" version))
576 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
578 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
580 (define-public ruby-rspec-its
582 (name "ruby-rspec-its")
588 (url "https://github.com/rspec/rspec-its.git")
589 (commit (string-append "v" version))))
590 (file-name (git-file-name name version))
593 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
594 (build-system ruby-build-system)
596 `(#:test-target "spec"
598 (modify-phases %standard-phases
599 (add-after 'unpack 'dont-install-gems-from-gemfile
601 (substitute* "Gemfile"
602 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
605 (add-before 'build 'update-ffi-in-gemfile
607 (substitute* "Gemfile"
608 ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'"))
610 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
612 (substitute* "rspec-its.gemspec"
613 (("rake.*") "rake'\n")
614 (("spec.add_development_dependency 'cucumber'.*")
615 "spec.add_development_dependency 'cucumber'\n")
616 (("bundler.*") "bundler'\n")
617 (("\"aruba.*") "'aruba'\n"))
620 `(("ruby-rspec-core" ,ruby-rspec-core)
621 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
623 `(("bundler" ,bundler)
624 ("ruby-cucumber" ,ruby-cucumber)
625 ("ruby-ffi" ,ruby-ffi)
626 ("ruby-aruba" ,ruby-aruba)))
627 (synopsis "RSpec extension that provides the @code{its} method")
629 "RSpec::Its provides the its method as a short-hand to specify the expected
630 value of an attribute. For example, one can use @code{its(:size)\\{should
632 (home-page "https://github.com/rspec/rspec-its")
633 (license license:expat)))
635 (define-public ruby-rspec-mocks
637 (name "ruby-rspec-mocks")
641 (uri (rubygems-uri "rspec-mocks" version))
644 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
645 (build-system ruby-build-system)
647 '(#:tests? #f)) ; avoid dependency cycles
649 `(("ruby-rspec-support" ,ruby-rspec-support)
650 ("ruby-diff-lcs" ,ruby-diff-lcs)))
651 (synopsis "RSpec stubbing and mocking library")
652 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
653 support for stubbing and mocking.")
654 (home-page "https://github.com/rspec/rspec-mocks")
655 (license license:expat)))
657 (define-public ruby-rspec-mocks-2
658 (package (inherit ruby-rspec-mocks)
662 (uri (rubygems-uri "rspec-mocks" version))
665 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
667 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
669 (define-public ruby-rspec-rerun
671 (name "ruby-rspec-rerun")
676 (uri (rubygems-uri "rspec-rerun" version))
679 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
680 (build-system ruby-build-system)
682 '(;; No included tests
684 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
685 (synopsis "Track failed RSpec tests to re-run them")
687 "This package provides an automated way to track, and then re-run failed
689 (home-page "https://github.com/dblock/rspec-rerun")
690 (license license:expat)))
692 (define-public ruby-rspec-wait
694 (name "ruby-rspec-wait")
699 (uri (rubygems-uri "rspec-wait" version))
702 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
703 (build-system ruby-build-system)
706 (modify-phases %standard-phases
709 (invoke "rake" "spec"))))))
711 `(("bundler" ,bundler)))
713 `(("ruby-rspec" ,ruby-rspec)))
714 (home-page "https://github.com/laserlemon/rspec-wait")
715 (synopsis "Wait for conditions in RSpec")
717 "RSpec::Wait strives to make it easier to test asynchronous or slow
719 (license license:expat)))
721 (define-public ruby-rspec
727 (uri (rubygems-uri "rspec" version))
730 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
731 (build-system ruby-build-system)
733 '(#:tests? #f)) ; avoid dependency cycles
735 `(("ruby-rspec-core" ,ruby-rspec-core)
736 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
737 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
738 (synopsis "Behavior-driven development framework for Ruby")
739 (description "RSpec is a behavior-driven development (BDD) framework for
740 Ruby. This meta-package includes the RSpec test runner, along with the
741 expectations and mocks frameworks.")
742 (home-page "https://rspec.info/")
743 (license license:expat)))
745 (define-public ruby-rspec-2
746 (package (inherit ruby-rspec)
750 (uri (rubygems-uri "rspec" version))
753 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
755 `(("ruby-rspec-core" ,ruby-rspec-core-2)
756 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
757 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
759 ;; Bundler is yet another source of circular dependencies, so we must disable
760 ;; its test suite as well.
761 (define-public bundler
767 (uri (rubygems-uri "bundler" version))
770 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
771 (build-system ruby-build-system)
773 '(#:tests? #f)) ; avoid dependency cycles
774 (synopsis "Ruby gem bundler")
775 (description "Bundler automatically downloads and installs a list of gems
776 specified in a \"Gemfile\", as well as their dependencies.")
777 (home-page "https://bundler.io/")
778 (license license:expat)))
780 (define-public ruby-builder
782 (name "ruby-builder")
786 (uri (rubygems-uri "builder" version))
789 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
790 (build-system ruby-build-system)
793 (modify-phases %standard-phases
794 (add-after 'unpack 'do-not-use-rvm
796 (substitute* "rakelib/tags.rake"
797 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
799 (synopsis "Ruby library to create structured data")
800 (description "Builder provides a number of builder objects that make it
801 easy to create structured data. Currently the following builder objects are
802 supported: XML Markup and XML Events.")
803 (home-page "https://github.com/jimweirich/builder")
804 (license license:expat)))
806 (define-public ruby-bump
813 (uri (rubygems-uri "bump" version))
816 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
817 (build-system ruby-build-system)
819 '(;; No included tests
821 (synopsis "Tool for working with Rubygems")
823 "Bump provides commands to manage Rubygem versioning, updating to the
824 next patch version for example.")
825 (home-page "https://github.com/gregorym/bump")
826 (license license:expat)))
828 (define-public ruby-rjb
834 (uri (rubygems-uri "rjb" version))
837 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
838 (build-system ruby-build-system)
840 `(#:tests? #f ; no rakefile
842 (modify-phases %standard-phases
843 (add-before 'build 'set-java-home
844 (lambda* (#:key inputs #:allow-other-keys)
845 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
848 `(("jdk" ,icedtea "jdk")))
849 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
850 (description "RJB is a bridge program that connects Ruby and Java via the
851 Java Native Interface.")
852 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
853 (license license:lgpl2.1+)))
855 (define-public ruby-log4r
862 (uri (rubygems-uri "log4r" version))
865 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
866 (build-system ruby-build-system)
868 '(#:tests? #f)) ; no Rakefile in gem
869 (synopsis "Flexible logging library for Ruby")
870 (description "Comprehensive and flexible logging library written
871 in Ruby for use in Ruby programs. It features a hierarchical logging
872 system of any number of levels, custom level names, logger
873 inheritance, multiple output destinations per log event, execution
874 tracing, custom formatting, thread safteyness, XML and YAML
875 configuration, and more.")
876 (home-page "http://log4r.rubyforge.org/")
877 (license license:bsd-3)))
879 (define-public ruby-atoulme-antwrap
881 (name "ruby-atoulme-antwrap")
885 (uri (rubygems-uri "atoulme-Antwrap" version))
888 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
889 (build-system ruby-build-system)
890 ;; Test data required for most of the tests are not included.
891 (arguments `(#:tests? #f))
893 `(("ruby-hoe" ,ruby-hoe)))
895 `(("ruby-rjb" ,ruby-rjb)))
896 (synopsis "Ruby wrapper for the Ant build tool")
897 (description "Antwrap is a Ruby module that wraps the Apache Ant build
898 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
900 (home-page "http://rubyforge.org/projects/antwrap/")
901 (license license:expat)))
903 (define-public ruby-atoulme-saikuro
905 (name "ruby-atoulme-saikuro")
909 (uri (rubygems-uri "atoulme-Saikuro" version))
912 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
913 (build-system ruby-build-system)
914 ;; FIXME: There are no unit tests. The tests are demonstrations of the
916 (arguments `(#:tests? #f))
917 (synopsis "Cyclomatic complexity analyzer")
918 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
919 given Ruby source code Saikuro will generate a report listing the cyclomatic
920 complexity of each method found. In addition, Saikuro counts the number of
921 lines per method and can generate a listing of the number of tokens on each
923 (home-page "http://www.github.com/atoulme/Saikuro")
924 ;; File headers contain the BSD-3 license and the README.rdoc says that
925 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
926 ;; of the Expat license.
927 (license license:bsd-3)))
929 (define-public ruby-asciidoctor
931 (name "ruby-asciidoctor")
936 (uri (rubygems-uri "asciidoctor" version))
939 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
940 (build-system ruby-build-system)
942 `(#:test-target "test:all"
944 (modify-phases %standard-phases
945 (add-before 'check 'remove-circular-tests
947 ;; Remove tests that require circular dependencies to load or pass.
948 (delete-file "test/invoker_test.rb")
949 (delete-file "test/converter_test.rb")
950 (delete-file "test/options_test.rb")
953 `(("ruby-minitest" ,ruby-minitest)
954 ("ruby-nokogiri" ,ruby-nokogiri)
955 ("ruby-asciimath" ,ruby-asciimath)
956 ("ruby-coderay" ,ruby-coderay)))
957 (synopsis "Converter from AsciiDoc content to other formats")
959 "Asciidoctor is a text processor and publishing toolchain for converting
960 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
961 (home-page "https://asciidoctor.org")
962 (license license:expat)))
964 (define-public ruby-ast
971 (uri (rubygems-uri "ast" version))
974 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
975 (build-system ruby-build-system)
978 (modify-phases %standard-phases
979 (add-after 'unpack 'remove-coveralls-requirement
981 (substitute* "test/helper.rb"
982 (("require 'coveralls'") "")
983 (("Coveralls::SimpleCov::Formatter") ""))
985 (add-after 'extract-gemspec 'remove-unnecessary-requirements
987 (substitute* "ast.gemspec"
988 ((".*coveralls.*") "\n")
989 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
990 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
991 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
994 `(("bundler" ,bundler)
995 ("ruby-simplecov" ,ruby-simplecov)
996 ("ruby-json-pure" ,ruby-json-pure)
997 ("ruby-mime-times" ,ruby-mime-types)
998 ("ruby-yard" ,ruby-yard)
999 ("ruby-kramdown" ,ruby-kramdown)
1000 ("ruby-rest-client" ,ruby-rest-client)
1001 ("ruby-bacon" ,ruby-bacon)
1002 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1003 ("ruby-racc" ,ruby-racc)))
1004 (synopsis "Library for working with Abstract Syntax Trees")
1006 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1007 It does this through immutable data structures.")
1008 (home-page "https://whitequark.github.io/ast/")
1009 (license license:expat)))
1011 (define-public ruby-sporkmonger-rack-mount
1012 ;; Testing the addressable gem requires a newer commit than that released, so
1013 ;; use an up to date version.
1014 (let ((revision "1")
1015 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1017 (name "ruby-sporkmonger-rack-mount")
1018 (version (git-version "0.8.3" revision commit))
1022 (url "https://github.com/sporkmonger/rack-mount.git")
1024 (file-name (git-file-name name version))
1027 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1028 (build-system ruby-build-system)
1030 ;; Tests currently fail so disable them.
1031 ;; https://github.com/sporkmonger/rack-mount/pull/1
1033 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1034 (synopsis "Stackable dynamic tree based Rack router")
1036 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1037 continue trying routes if the response returns pass. This allows multiple
1038 routes to be nested or stacked on top of each other.")
1039 (home-page "https://github.com/sporkmonger/rack-mount")
1040 (license license:expat))))
1042 (define-public ruby-ci-reporter
1044 (name "ruby-ci-reporter")
1048 (uri (rubygems-uri "ci_reporter" version))
1051 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1052 (build-system ruby-build-system)
1054 `(#:test-target "rspec"))
1056 `(("ruby-builder" ,ruby-builder)))
1058 `(("bundler" ,bundler)
1059 ("ruby-rspec" ,ruby-rspec)))
1060 (synopsis "Generate XML reports of runs test")
1062 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1063 you to generate XML reports of your test runs. The resulting files can be
1064 read by a continuous integration system that understands Ant's JUnit report
1066 (home-page "https://github.com/nicksieger/ci_reporter")
1067 (license license:expat)))
1069 (define-public ruby-contracts
1071 (name "ruby-contracts")
1076 (uri (rubygems-uri "contracts" version))
1079 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1080 (build-system ruby-build-system)
1082 '(#:test-target "spec"
1084 (modify-phases %standard-phases
1085 ;; Don't run or require rubocop, the code linting tool, as this is a
1087 (add-after 'unpack 'dont-run-rubocop
1089 (substitute* "Rakefile"
1090 ((".*rubocop.*") "")
1091 ((".*RuboCop.*") ""))
1094 `(("ruby-rspec" ,ruby-rspec)))
1095 (synopsis "Method contracts for Ruby")
1097 "This library provides contracts for Ruby. A contract describes the
1098 correct inputs and output for a method, and will raise an error if a incorrect
1100 (home-page "https://github.com/egonSchiele/contracts.ruby")
1101 (license license:bsd-2)))
1103 (define-public ruby-crack
1110 (uri (rubygems-uri "crack" version))
1113 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1114 (build-system ruby-build-system)
1117 (modify-phases %standard-phases
1119 (lambda* (#:key tests? #:allow-other-keys)
1121 (for-each (lambda (file)
1122 (display file)(display "\n")
1123 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1124 (find-files "test" ".*rb$")))
1127 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1128 (synopsis "Simple JSON and XML parsing for Ruby")
1130 "@code{crack} provides really simple JSON and XML parsing, extracted from
1131 code in Merb and Rails.")
1132 (home-page "https://github.com/jnunemaker/crack")
1133 (license license:expat)))
1135 (define-public ruby-cliver
1137 (name "ruby-cliver")
1142 (uri (rubygems-uri "cliver" version))
1145 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1146 (build-system ruby-build-system)
1149 (modify-phases %standard-phases
1150 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1151 ;; would be nice, but the tests look to be incompatible:
1153 ;; NoMethodError: undefined method `last_comment'
1155 (lambda* (#:key tests? #:allow-other-keys)
1160 `(("bundler" ,bundler)
1161 ("ruby-rspec" ,ruby-rspec-2)))
1162 (synopsis "Assertions for command-line dependencies in Ruby")
1164 "@code{cliver} provides a way to detect missing command-line
1165 dependencies, including versions.")
1166 (home-page "https://github.com/yaauie/cliver")
1167 (license license:expat)))
1169 (define-public ruby-czmq-ffi-gen
1171 (name "ruby-czmq-ffi-gen")
1176 (uri (rubygems-uri "czmq-ffi-gen" version))
1179 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1180 (build-system ruby-build-system)
1182 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1184 (modify-phases %standard-phases
1185 (add-after 'unpack 'patch-lib_dirs
1186 (lambda* (#:key inputs #:allow-other-keys)
1187 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1188 (("lib\\_dirs = \\[.*\\]")
1189 (string-append "lib_dirs = ['"
1190 (assoc-ref inputs "czmq") "/lib"
1192 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1193 (("lib\\_dirs = \\[.*\\]")
1194 (string-append "lib_dirs = ['"
1195 (assoc-ref inputs "zeromq") "/lib"
1198 `(("zeromq" ,zeromq)
1200 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1201 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1203 "These Ruby bindings are not intended to be directly used, but rather
1204 used by higher level bindings like those provided by CZTop.")
1206 "https://github.com/paddor/czmq-ffi-gen")
1207 (license license:isc)))
1209 (define-public ruby-cztop
1216 (uri (rubygems-uri "cztop" version))
1219 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1220 (build-system ruby-build-system)
1222 '(#:test-target "spec"
1224 (modify-phases %standard-phases
1225 (add-after 'unpack 'patch-lib_paths
1226 (lambda* (#:key inputs #:allow-other-keys)
1227 (substitute* "lib/cztop/poller/zmq.rb"
1228 (("lib\\_paths = \\[.*\\]")
1229 (string-append "lib_paths = ['"
1230 (assoc-ref inputs "zeromq") "/lib"
1233 `(("bundler" ,bundler)
1234 ("ruby-rspec" ,ruby-rspec)))
1236 `(("zeromq" ,zeromq)))
1238 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1239 (synopsis "CZMQ Ruby bindings")
1241 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1242 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1243 support for security mechanisms.")
1244 (home-page "https://github.com/paddor/cztop")
1245 (license license:isc)))
1247 (define-public ruby-saikuro-treemap
1249 (name "ruby-saikuro-treemap")
1253 (uri (rubygems-uri "saikuro_treemap" version))
1256 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1257 (build-system ruby-build-system)
1258 ;; Some of the tests fail because the generated JSON has keys in a
1259 ;; different order. This is a problem with the test suite rather than any
1260 ;; of the involved libraries.
1261 (arguments `(#:tests? #f))
1263 `(("ruby-json-pure" ,ruby-json-pure)
1264 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1265 (synopsis "Generate complexity treemap based on saikuro analysis")
1267 "This gem generates a treemap showing the complexity of Ruby code on
1268 which it is run. It uses Saikuro under the covers to analyze Ruby code
1270 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1271 (license license:expat)))
1273 (define-public ruby-oauth2
1275 (name "ruby-oauth2")
1280 (uri (rubygems-uri "oauth2" version))
1282 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1283 (build-system ruby-build-system)
1285 '(#:tests? #f)) ; no included tests
1287 `(("ruby-faraday" ,ruby-faraday)
1288 ("ruby-jwt" ,ruby-jwt)
1289 ("ruby-multi-json" ,ruby-multi-json)
1290 ("ruby-multi-xml" ,ruby-multi-xml)
1291 ("ruby-rack" ,ruby-rack)))
1292 (synopsis "Ruby wrapper for the OAuth 2.0")
1294 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1295 with a similar style to the original OAuth spec.")
1296 (home-page "https://github.com/oauth-xx/oauth2")
1297 (license license:expat)))
1299 (define-public ruby-omniauth
1301 (name "ruby-omniauth")
1306 (uri (rubygems-uri "omniauth" version))
1308 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
1309 (build-system ruby-build-system)
1311 '(#:tests? #f)) ; No included tests
1313 `(("ruby-hashie" ,ruby-hashie)
1314 ("ruby-rack" ,ruby-rack)))
1315 (synopsis "Generalized Rack framework for multiple-provider authentication")
1317 "This package provides a generalized Rack framework for multiple-provider
1319 (home-page "https://github.com/omniauth/omniauth")
1320 (license license:expat)))
1322 (define-public ruby-omniauth-oauth2
1324 (name "ruby-omniauth-oauth2")
1329 (uri (rubygems-uri "omniauth-oauth2" version))
1332 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1333 (build-system ruby-build-system)
1336 (modify-phases %standard-phases
1337 (add-after 'unpack 'remove-unnecessary-dependencies
1339 ;; The coveralls gem submits coverage information to an online
1340 ;; service, and is unnecessary when running the tests
1341 (substitute* "Gemfile"
1342 ((".*coveralls\"") ""))
1343 (substitute* "spec/helper.rb"
1344 (("require \"coveralls\"") "")
1345 (("Coveralls::SimpleCov::Formatter") ""))
1348 `(("ruby-oauth2" ,ruby-oauth2)
1349 ("ruby-omniauth" ,ruby-omniauth)))
1351 `(("bundler" ,bundler)
1352 ("ruby-rspec" ,ruby-rspec)
1353 ("ruby-simplecov" ,ruby-simplecov)
1354 ("ruby-rack-test" ,ruby-rack-test)
1355 ("ruby-webmock" ,ruby-webmock-2)))
1356 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1358 "This library provides a generic OAuth2 strategy for OmniAuth. It
1359 doesn't provide a way to gather user information, so should be used as a
1360 building block for authentication strategies.")
1361 (home-page "https://github.com/omniauth/omniauth-oauth2")
1362 (license license:expat)))
1364 (define-public ruby-open4
1371 (uri (rubygems-uri "open4" version))
1374 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1375 (build-system ruby-build-system)
1378 (modify-phases %standard-phases
1379 (add-after 'unpack 'patch
1381 (substitute* "rakefile"
1382 ;; Update the Rakefile so it works
1383 (("-rubygems") "-rrubygems")
1384 (("Config") "RbConfig"))
1386 (add-before 'check 'set-LIB
1388 ;; This is used in the rakefile when running the tests
1389 (setenv "LIB" "open4")
1391 (synopsis "Open child processes from Ruby and manage them easily")
1393 "@code{Open4} is a Ruby library to run child processes and manage their
1395 (home-page "https://github.com/ahoward/open4")
1396 (license license:ruby)))
1398 (define-public ruby-options
1400 (name "ruby-options")
1405 (uri (rubygems-uri "options" version))
1408 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1409 (build-system ruby-build-system)
1411 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1413 (modify-phases %standard-phases
1414 (add-before 'check 'set-LIB
1416 ;; This is used in the Rakefile, and setting it avoids an issue
1417 ;; with running the tests.
1418 (setenv "LIB" "options")
1420 (synopsis "Ruby library to parse options from *args cleanly")
1422 "The @code{options} library helps with parsing keyword options in Ruby
1424 (home-page "https://github.com/ahoward/options")
1425 (license license:ruby)))
1427 (define-public ruby-erubi
1434 (uri (rubygems-uri "erubi" version))
1437 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1438 (build-system ruby-build-system)
1439 (synopsis "ERB template engine for Ruby")
1441 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1443 (home-page "https://github.com/jeremyevans/erubi")
1444 (license license:expat)))
1446 (define-public ruby-erubis
1448 (name "ruby-erubis")
1453 (uri (rubygems-uri "erubis" version))
1456 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1457 (build-system ruby-build-system)
1459 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1460 (synopsis "Implementation of embedded Ruby (eRuby)")
1462 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1463 features such as multi-language support, auto escaping, auto trimming spaces
1464 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1466 (home-page "http://www.kuwata-lab.com/erubis/")
1467 (license license:expat)))
1469 (define-public ruby-execjs
1471 (name "ruby-execjs")
1475 ;; fetch from github as the gem does not contain testing code
1478 (url "https://github.com/rails/execjs.git")
1479 (commit (string-append "v" version))))
1480 (file-name (git-file-name name version))
1483 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1484 (build-system ruby-build-system)
1486 `(("bundler" ,bundler)
1487 ;; The test suite tests all the available backends. Currenly, this just
1488 ;; means the node backend.
1490 ;; PASSED: test:node
1491 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1492 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1494 (synopsis "Run JavaScript code from Ruby")
1496 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1497 runtime to evaluate your JavaScript program, then returns the result to you as
1499 (home-page "https://github.com/rails/execjs")
1500 (license license:expat)))
1502 (define-public ruby-orderedhash
1504 (name "ruby-orderedhash")
1508 (uri (rubygems-uri "orderedhash" version))
1511 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1512 (build-system ruby-build-system)
1514 '(#:tests? #f)) ; no test suite
1515 (synopsis "Ruby library providing an order-preserving hash")
1516 (description "Orderedhash is a Ruby library providing a hash
1517 implementation that preserves the order of items and features some array-like
1519 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1520 (license license:public-domain)))
1522 (define-public ruby-libxml
1524 (name "ruby-libxml")
1529 (uri (rubygems-uri "libxml-ruby" version))
1532 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1533 (build-system ruby-build-system)
1536 ("libxml2" ,libxml2)))
1538 '(#:tests? #f ; test suite hangs for unknown reason
1541 (string-append "--with-xml2-include="
1542 (assoc-ref %build-inputs "libxml2")
1543 "/include/libxml2" ))))
1544 (synopsis "Ruby bindings for GNOME Libxml2")
1545 (description "The Libxml-Ruby project provides Ruby language bindings for
1546 the GNOME Libxml2 XML toolkit.")
1547 (home-page "https://xml4r.github.com/libxml-ruby")
1548 (license license:expat)))
1550 (define-public ruby-lino
1557 (uri (rubygems-uri "lino" version))
1560 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1561 (build-system ruby-build-system)
1563 '(#:tests? #f)) ; No included tests
1565 `(("ruby-hamster" ,ruby-hamster)
1566 ("ruby-open4" ,ruby-open4)))
1567 (synopsis "Build and execute commands in Ruby")
1569 "@code{Lino} provides an interface to run external commands. It provides
1570 an interface to add options as well as managing the standard input, output and
1572 (home-page "https://github.com/tobyclemson/lino")
1573 (license license:expat)))
1575 (define-public ruby-xml-simple
1577 (name "ruby-xml-simple")
1581 (uri (rubygems-uri "xml-simple" version))
1584 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1585 (build-system ruby-build-system)
1587 '(#:tests? #f)) ; no test suite
1588 (synopsis "Simple Ruby library for XML processing")
1589 (description "This library provides a simple API for XML processing in
1591 (home-page "https://github.com/maik/xml-simple")
1592 (license license:ruby)))
1594 (define-public ruby-thor
1600 (uri (rubygems-uri "thor" version))
1603 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1604 (build-system ruby-build-system)
1606 '(#:tests? #f)) ; no test suite
1608 `(("bundler" ,bundler)))
1609 (synopsis "Ruby toolkit for building command-line interfaces")
1610 (description "Thor is a toolkit for building powerful command-line
1612 (home-page "http://whatisthor.com/")
1613 (license license:expat)))
1615 (define-public ruby-lumberjack
1617 (name "ruby-lumberjack")
1621 (uri (rubygems-uri "lumberjack" version))
1624 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1625 (build-system ruby-build-system)
1627 `(("ruby-rspec" ,ruby-rspec)
1628 ("ruby-timecop" ,ruby-timecop)))
1629 (synopsis "Logging utility library for Ruby")
1630 (description "Lumberjack is a simple logging utility that can be a drop in
1631 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1632 for automatically rolling log files even with multiple processes writing the
1634 (home-page "https://github.com/bdurand/lumberjack")
1635 (license license:expat)))
1637 (define-public ruby-rbnacl
1639 (name "ruby-rbnacl")
1644 (uri (rubygems-uri "rbnacl" version))
1647 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1648 (build-system ruby-build-system)
1651 (modify-phases %standard-phases
1652 (add-after 'unpack 'remove-unnecessary-dependencies
1654 ;; Coveralls relates to a network service, and Rubocop to code
1655 ;; linting and both are unnecessary to run the tests
1656 (substitute* "Gemfile"
1657 ((".*rubocop.*") "\n")
1658 ((".*guard-rspec.*") "\n")
1659 ((".*coveralls.*") "\n"))
1660 (substitute* "spec/spec_helper.rb"
1661 (("require \"coveralls\"") "")
1662 (("Coveralls.wear!") ""))
1664 (add-after 'unpack 'use-libsodium-from-store
1665 (lambda* (#:key inputs #:allow-other-keys)
1666 (substitute* '("lib/rbnacl/init.rb"
1667 "lib/rbnacl/sodium.rb")
1668 (("ffi_lib \\[.+\\]")
1669 (string-append "ffi_lib [\""
1670 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1673 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1675 (lambda* (#:key tests? #:allow-other-keys)
1680 `(("ruby-ffi" ,ruby-ffi)))
1682 `(("libsodium" ,libsodium)))
1684 `(("bundler" ,bundler)
1685 ("ruby-rspec" ,ruby-rspec)))
1686 (synopsis "Ruby FFI binding to libsodium")
1688 "This package provides Ruby FFI bindings to the Networking and
1689 Cryptography (NaCl) library, also known as libsodium. This provides a
1690 high-level toolkit for building cryptographic systems and protocols.")
1691 (home-page "https://github.com/crypto-rb/rbnacl")
1692 (license license:expat)))
1694 (define-public ruby-nenv
1700 (uri (rubygems-uri "nenv" version))
1703 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1704 (build-system ruby-build-system)
1706 `(#:tests? #f)) ; no tests included
1708 `(("ruby-rspec" ,ruby-rspec)
1709 ("bundler" ,bundler)))
1710 (synopsis "Ruby interface for modifying the environment")
1711 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1712 and inspect the environment.")
1713 (home-page "https://github.com/e2/nenv")
1714 (license license:expat)))
1716 (define-public ruby-permutation
1718 (name "ruby-permutation")
1722 (uri (rubygems-uri "permutation" version))
1725 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1726 (build-system ruby-build-system)
1729 (modify-phases %standard-phases
1730 (add-after 'unpack 'fix-rakefile
1732 (substitute* "Rakefile"
1733 (("require 'rake/gempackagetask'")
1734 "require 'rubygems/package_task'")
1735 (("include Config") ""))
1739 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1740 (synopsis "Library to perform operations with sequence permutations")
1741 (description "This package provides a Ruby library to perform different
1742 operations with permutations of sequences, such as strings and arrays.")
1743 (home-page "https://flori.github.io/permutation")
1744 (license license:gpl2))) ; GPL 2 only
1746 (define-public ruby-shellany
1748 (name "ruby-shellany")
1752 (uri (rubygems-uri "shellany" version))
1755 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1756 (build-system ruby-build-system)
1758 `(#:test-target "default"
1760 (modify-phases %standard-phases
1761 (add-after 'unpack 'fix-version-test
1763 (substitute* "spec/shellany_spec.rb"
1764 (("^RSpec") "require \"shellany\"\nRSpec"))
1767 `(("ruby-rspec" ,ruby-rspec)
1768 ("ruby-nenv" ,ruby-nenv)
1769 ("bundler" ,bundler)))
1770 (synopsis "Capture command output")
1771 (description "Shellany is a Ruby library providing functions to capture
1772 the output produced by running shell commands.")
1773 (home-page "https://rubygems.org/gems/shellany")
1774 (license license:expat)))
1776 (define-public ruby-notiffany
1778 (name "ruby-notiffany")
1782 (uri (rubygems-uri "notiffany" version))
1785 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
1786 (build-system ruby-build-system)
1787 ;; Tests are not included in the gem.
1788 (arguments `(#:tests? #f))
1790 `(("ruby-shellany" ,ruby-shellany)
1791 ("ruby-nenv" ,ruby-nenv)))
1793 `(("bundler" ,bundler)))
1794 (synopsis "Wrapper library for notification libraries")
1795 (description "Notiffany is a Ruby wrapper library for notification
1796 libraries such as Libnotify.")
1797 (home-page "https://github.com/guard/notiffany")
1798 (license license:expat)))
1800 (define-public ruby-formatador
1802 (name "ruby-formatador")
1806 (uri (rubygems-uri "formatador" version))
1809 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1810 (build-system ruby-build-system)
1811 ;; Circular dependency: Tests require ruby-shindo, which requires
1812 ;; ruby-formatador at runtime.
1813 (arguments `(#:tests? #f))
1814 (synopsis "Ruby library to format text on stdout")
1815 (description "Formatador is a Ruby library to format text printed to the
1816 standard output stream.")
1817 (home-page "https://github.com/geemus/formatador")
1818 (license license:expat)))
1820 (define-public ruby-fuubar
1822 (name "ruby-fuubar")
1826 ;; Fetch from the git repository, as the gem package doesn't include
1830 (url "https://github.com/thekompanee/fuubar.git")
1831 (commit (string-append "releases/v" version))))
1832 (file-name (git-file-name name version))
1835 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1836 (build-system ruby-build-system)
1838 '(;; TODO: Some tests fail, unsure why.
1839 ;; 21 examples, 7 failures
1842 (modify-phases %standard-phases
1843 (add-before 'build 'delete-certificate
1845 ;; Remove 's.cert_chain' as we do not build with a private key
1846 (substitute* "fuubar.gemspec"
1847 ((".*cert_chain.*") "")
1848 ((".*signing_key.*") ""))
1851 (lambda* (#:key tests? #:allow-other-keys)
1856 `(("bundler" ,bundler)))
1858 `(("ruby-rspec-core" ,ruby-rspec-core)
1859 ("ruby-progressbar" ,ruby-progressbar)))
1860 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1862 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1863 string of letters and dots as feedback. It also stops on the first test
1865 (home-page "https://github.com/thekompanee/fuubar")
1866 (license license:expat)))
1868 (define-public ruby-haml
1875 (uri (rubygems-uri "haml" version))
1878 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1879 (build-system ruby-build-system)
1881 '(#:tests? #f)) ; No included tests
1883 `(("ruby-tilt" ,ruby-tilt)
1884 ("ruby-temple" ,ruby-temple)))
1885 (synopsis "Haml is a Ruby library to generate HTML documents")
1887 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1888 HTML or XML that is designed to express the structure of documents using
1889 indentation rather than closing tags. It was originally envisioned as a
1890 plugin for Ruby on Rails, but it can function as a stand-alone templating
1892 (home-page "http://haml.info/")
1893 (license license:expat)))
1895 (define-public ruby-hamster
1897 (name "ruby-hamster")
1902 (uri (rubygems-uri "hamster" version))
1905 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1906 (build-system ruby-build-system)
1909 (modify-phases %standard-phases
1910 (add-after 'unpack 'remove-unnecessary-dependencies
1912 ;; pry is a debugging tool, and is unnecessary when running the
1914 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1915 (("require 'pry'") ""))
1916 (substitute* "spec/spec_helper.rb"
1917 (("require \"pry\"") "")
1918 ;; CodeClimate is an online service, and is unnecessary for
1919 ;; running the tests
1920 (("require \"codeclimate-test-reporter\"") "")
1921 (("CodeClimate.*\n") ""))
1923 ;; No Rakefile is included, so run rspec directly.
1925 (lambda* (#:key tests? #:allow-other-keys)
1930 `(("ruby-concurrent" ,ruby-concurrent)))
1932 `(("ruby-rspec" ,ruby-rspec)))
1933 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1935 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1936 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1937 immutable queue or stack).")
1938 (home-page "https://github.com/hamstergem/hamster")
1939 (license license:expat)))
1941 (define-public ruby-hashdiff
1943 (name "ruby-hashdiff")
1948 (uri (rubygems-uri "hashdiff" version))
1951 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1952 (build-system ruby-build-system)
1955 (modify-phases %standard-phases
1956 ;; Run tests directly via rspec to avoid Rake issue:
1957 ;; NoMethodError: undefined method `last_comment'
1959 (lambda* (#:key tests? #:allow-other-keys)
1964 `(("bundler" ,bundler)
1965 ("ruby-rspec" ,ruby-rspec-2)))
1966 (synopsis "HashDiff computes the smallest difference between two hashes")
1968 "HashDiff is a Ruby library to compute the smallest difference between
1970 (home-page "https://github.com/liufengyun/hashdiff")
1971 (license license:expat)))
1973 (define-public ruby-hydra
1975 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
1979 (version (git-version "0.0" revision commit))
1980 (home-page "https://github.com/hyphenation/hydra")
1983 (uri (git-reference (url home-page) (commit commit)))
1984 (file-name (git-file-name name version))
1987 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
1988 (build-system ruby-build-system)
1990 '(#:phases (modify-phases %standard-phases
1991 (add-after 'unpack 'make-files-writable
1993 (for-each make-file-writable (find-files "."))
1997 (invoke "rspec"))))))
1999 `(("ruby-rspec" ,ruby-rspec)))
2001 `(("ruby-byebug" ,ruby-byebug)))
2002 (synopsis "Ruby hyphenation patterns")
2004 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2005 (license license:expat))))
2007 (define-public ruby-shindo
2009 (name "ruby-shindo")
2013 (uri (rubygems-uri "shindo" version))
2016 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2017 (build-system ruby-build-system)
2019 `(#:test-target "shindo_tests"
2021 (modify-phases %standard-phases
2022 (add-after 'unpack 'fix-tests
2024 (substitute* "tests/tests_helper.rb"
2026 (substitute* "Rakefile"
2027 (("system \"shindo") "system \"./bin/shindo")
2028 ;; This test doesn't work, so we disable it.
2029 (("fail \"The build_error test should fail") "#")
2030 ((" -rubygems") ""))
2033 `(("ruby-formatador" ,ruby-formatador)))
2034 (synopsis "Simple depth first Ruby testing")
2035 (description "Shindo is a simple depth first testing library for Ruby.")
2036 (home-page "https://github.com/geemus/shindo")
2037 (license license:expat)))
2039 (define-public ruby-rubygems-tasks
2041 (name "ruby-rubygems-tasks")
2045 (uri (rubygems-uri "rubygems-tasks" version))
2048 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
2049 (build-system ruby-build-system)
2050 ;; Tests need Internet access.
2051 (arguments `(#:tests? #f))
2053 `(("ruby-rspec" ,ruby-rspec)
2054 ("ruby-yard" ,ruby-yard)))
2055 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2056 (description "Rubygems-task provides Rake tasks for managing and releasing
2058 (home-page "https://github.com/postmodern/rubygems-tasks")
2059 (license license:expat)))
2061 (define-public ruby-rubyzip
2063 (name "ruby-rubyzip")
2068 (uri (rubygems-uri "rubyzip" version))
2071 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2072 (build-system ruby-build-system)
2075 (modify-phases %standard-phases
2076 (add-before 'check 'patch-tests
2077 (lambda* (#:key inputs #:allow-other-keys)
2078 (substitute* "test/gentestfiles.rb"
2081 (assoc-ref inputs "zip") "/bin/zip")))
2082 (substitute* "test/input_stream_test.rb"
2083 (("/usr/bin/env ruby") (which "ruby")))
2086 `(("bundler" ,bundler)
2087 ("ruby-simplecov" ,ruby-simplecov)
2090 (synopsis "Ruby module is for reading and writing zip files")
2092 "The rubyzip module provides ways to read from and create zip files.")
2093 (home-page "http://github.com/rubyzip/rubyzip")
2094 (license license:bsd-2)))
2096 (define-public ruby-simplecov-html
2098 (name "ruby-simplecov-html")
2102 (uri (rubygems-uri "simplecov-html" version))
2105 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2106 (build-system ruby-build-system)
2107 (arguments `(#:tests? #f)) ; there are no tests
2109 `(("bundler" ,bundler)))
2110 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2111 (description "This package provides the default HTML formatter for
2112 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2113 (home-page "https://github.com/colszowka/simplecov-html")
2114 (license license:expat)))
2116 (define-public ruby-simplecov
2118 (name "ruby-simplecov")
2122 (uri (rubygems-uri "simplecov" version))
2125 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2126 (build-system ruby-build-system)
2127 ;; Simplecov depends on rubocop for code style checking at build time.
2128 ;; Rubocop needs simplecov at build time.
2129 (arguments `(#:tests? #f))
2131 `(("ruby-json" ,ruby-json)
2132 ("ruby-docile" ,ruby-docile)
2133 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2135 `(("bundler" ,bundler)))
2136 (synopsis "Code coverage framework for Ruby")
2137 (description "SimpleCov is a code coverage framework for Ruby with a
2138 powerful configuration library and automatic merging of coverage across test
2140 (home-page "https://github.com/colszowka/simplecov")
2141 (license license:expat)))
2143 (define-public ruby-useragent
2145 (name "ruby-useragent")
2149 (uri (rubygems-uri "useragent" version))
2152 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2153 (build-system ruby-build-system)
2155 '(#:tests? #f)) ; no test suite
2156 (synopsis "HTTP user agent parser for Ruby")
2157 (description "UserAgent is a Ruby library that parses and compares HTTP
2159 (home-page "https://github.com/gshutler/useragent")
2160 (license license:expat)))
2162 (define-public ruby-backports
2164 (name "ruby-backports")
2169 (uri (rubygems-uri "backports" version))
2172 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2173 (build-system ruby-build-system)
2175 '(;; TODO: This should be default, but there is one test failure
2176 #:test-target "all_spec"))
2178 `(("ruby-mspec" ,ruby-mspec)
2179 ("ruby-activesupport" ,ruby-activesupport)))
2180 (synopsis "Backports of the features in newer Ruby versions")
2182 "Backports enables more compatibility across Ruby versions by providing
2183 backports of some features.")
2184 (home-page "https://github.com/marcandre/backports")
2185 (license license:expat)))
2187 (define-public ruby-bacon
2193 (uri (rubygems-uri "bacon" version))
2196 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2197 (build-system ruby-build-system)
2198 (synopsis "Small RSpec clone")
2199 (description "Bacon is a small RSpec clone providing all essential
2201 (home-page "https://github.com/chneukirchen/bacon")
2202 (license license:expat)))
2204 (define-public ruby-bacon-bits
2206 (name "ruby-bacon-bits")
2211 (uri (rubygems-uri "bacon-bits" version))
2214 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2215 (build-system ruby-build-system)
2219 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2220 (synopsis "Extensions to Bacon, for disabling tests, before and after
2223 "This extends the bacon testing framework with useful extensions to
2224 disable tests, have before and after blocks that run once and more.")
2225 (home-page "https://github.com/cldwalker/bacon-bits")
2226 (license license:expat)))
2228 (define-public ruby-bacon-colored-output
2230 (name "ruby-bacon-colored-output")
2235 (uri (rubygems-uri "bacon-colored_output" version))
2238 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2239 (build-system ruby-build-system)
2241 '(;; No included tests
2244 `(("ruby-bacon" ,ruby-bacon)))
2245 (synopsis "Colored output for Bacon test framework")
2247 "This package adds color through ANSI escape codes to Bacon test
2249 (home-page "https://github.com/whitequark/bacon-colored_output")
2250 (license license:expat)))
2252 (define-public ruby-connection-pool
2254 (name "ruby-connection-pool")
2258 (uri (rubygems-uri "connection_pool" version))
2261 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2262 (build-system ruby-build-system)
2264 `(("bundler" ,bundler)))
2265 (synopsis "Generic connection pool for Ruby")
2266 (description "Connection_pool provides a generic connection pooling
2267 interface for Ruby programs.")
2268 (home-page "https://github.com/mperham/connection_pool")
2269 (license license:expat)))
2271 (define-public ruby-net-http-persistent
2273 (name "ruby-net-http-persistent")
2277 (uri (rubygems-uri "net-http-persistent" version))
2280 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2281 (build-system ruby-build-system)
2283 `(("ruby-connection-pool" ,ruby-connection-pool)
2284 ("ruby-hoe" ,ruby-hoe)))
2285 (synopsis "Persistent HTTP connection manager")
2286 (description "Net::HTTP::Persistent manages persistent HTTP connections
2287 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2288 (home-page "https://github.com/drbrain/net-http-persistent")
2289 (license license:expat)))
2291 (define-public ruby-power-assert
2293 (name "ruby-power-assert")
2297 (uri (rubygems-uri "power_assert" version))
2300 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2301 (build-system ruby-build-system)
2303 '(#:tests? #f)) ; No included tests
2305 `(("bundler" ,bundler)))
2306 (synopsis "Assert library with descriptive assertion messages")
2307 (description "Power-assert is an assertion library providing descriptive
2308 assertion messages for tests.")
2309 (home-page "https://github.com/k-tsj/power_assert")
2310 (license (list license:bsd-2 license:ruby))))
2312 (define-public ruby-powerpack
2314 (name "ruby-powerpack")
2319 (uri (rubygems-uri "powerpack" version))
2322 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2323 (build-system ruby-build-system)
2325 '(#:test-target "spec"))
2327 `(("bundler" ,bundler)
2328 ("ruby-rspec" ,ruby-rspec)
2329 ("ruby-yard" ,ruby-yard)))
2330 (synopsis "Useful extensions to core Ruby classes")
2332 "This package provides a few useful extensions to core Ruby classes,
2333 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2335 (home-page "https://github.com/bbatsov/powerpack")
2336 (license license:expat)))
2338 (define-public ruby-locale
2340 (name "ruby-locale")
2344 (uri (rubygems-uri "locale" version))
2347 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2348 (build-system ruby-build-system)
2349 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2350 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2351 ;; dependency cycle we disable tests.
2352 (arguments `(#:tests? #f))
2354 `(("bundler" ,bundler)
2355 ("ruby-yard" ,ruby-yard)))
2356 (synopsis "Ruby library providing basic localization APIs")
2358 "Ruby-Locale is the pure ruby library which provides basic APIs for
2360 (home-page "https://github.com/ruby-gettext/locale")
2361 (license (list license:lgpl3+ license:ruby))))
2363 (define-public ruby-temple
2365 (name "ruby-temple")
2370 (uri (rubygems-uri "temple" version))
2373 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2374 (build-system ruby-build-system)
2376 `(("ruby-tilt" ,ruby-tilt)
2377 ("ruby-bacon" ,ruby-bacon)
2378 ("ruby-erubis" ,ruby-erubis)))
2379 (synopsis "Template compilation framework in Ruby")
2381 "Temple is an abstraction and framework for compiling templates to pure
2383 (home-page "https://github.com/judofyr/temple")
2384 (license license:expat)))
2386 (define-public ruby-text
2392 (uri (rubygems-uri "text" version))
2395 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2396 (build-system ruby-build-system)
2397 (synopsis "Collection of text algorithms for Ruby")
2399 "This package provides a collection of text algorithms: Levenshtein,
2400 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2401 (home-page "https://github.com/threedaymonk/text")
2402 (license license:expat)))
2404 (define-public ruby-gettext
2406 (name "ruby-gettext")
2410 (uri (rubygems-uri "gettext" version))
2413 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2414 (build-system ruby-build-system)
2415 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2416 ;; which needs ruby-gettext. To break the dependency cycle we disable
2418 (arguments `(#:tests? #f))
2420 `(("ruby-locale" ,ruby-locale)
2421 ("ruby-text" ,ruby-text)))
2423 `(("bundler" ,bundler)
2424 ("ruby-yard" ,ruby-yard)))
2425 (synopsis "GNU gettext-like program for Ruby")
2427 "Gettext is a GNU gettext-like program for Ruby. The catalog
2428 file (po-file) used is the same as that used by GNU gettext, allowing you to
2429 use GNU gettext tools for maintenance.")
2430 (home-page "https://ruby-gettext.github.com/")
2431 (license (list license:lgpl3+ license:ruby))))
2433 (define-public ruby-packnga
2435 (name "ruby-packnga")
2439 (uri (rubygems-uri "packnga" version))
2442 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2443 (build-system ruby-build-system)
2444 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2445 ;; To break the dependency cycle we disable tests.
2446 (arguments `(#:tests? #f))
2448 `(("ruby-gettext" ,ruby-gettext)
2449 ("ruby-yard" ,ruby-yard)))
2451 `(("bundler" ,bundler)))
2452 (synopsis "Utility library to package internationalized libraries")
2454 "Packnga is a library to translate to many languages using YARD.")
2455 (home-page "http://ranguba.org/packnga/")
2456 (license license:lgpl2.0+)))
2458 (define-public ruby-test-construct
2460 (name "ruby-test-construct")
2465 (uri (rubygems-uri "test_construct" version))
2468 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2469 (build-system ruby-build-system)
2471 `(("bundler" ,bundler)
2472 ("ruby-mocha" ,ruby-mocha)
2473 ("ruby-rspec" ,ruby-rspec)))
2474 (synopsis "Creates temporary files and directories for testing")
2476 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2477 temporary files and directories during tests.")
2478 (home-page "https://github.com/bhb/test_construct")
2479 (license license:expat)))
2481 (define-public ruby-test-unit
2483 (name "ruby-test-unit")
2487 (uri (rubygems-uri "test-unit" version))
2490 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2491 (build-system ruby-build-system)
2493 `(("ruby-power-assert" ,ruby-power-assert)))
2495 `(("bundler" ,bundler)
2496 ("ruby-packnga" ,ruby-packnga)
2497 ("ruby-yard" ,ruby-yard)))
2498 (synopsis "Unit testing framework for Ruby")
2499 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2500 on xUnit principles. These were originally designed by Kent Beck, creator of
2501 extreme programming software development methodology, for Smalltalk's SUnit.
2502 It allows writing tests, checking results and automated testing in Ruby.")
2503 (home-page "https://test-unit.github.io/")
2504 (license (list license:psfl license:ruby))))
2506 (define-public ruby-markaby
2508 (name "ruby-markaby")
2513 (uri (rubygems-uri "markaby" version))
2516 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2517 (build-system ruby-build-system)
2520 (modify-phases %standard-phases
2521 ;; Run rspec manually without using the Rakefile, as the versions of
2522 ;; Rake and RSpec 2 are incompatible:
2524 ;; NoMethodError: undefined method `last_comment'
2526 (lambda* (#:key tests? #:allow-other-keys)
2531 `(("ruby-builder" ,ruby-builder)))
2533 `(("bundler" ,bundler)
2534 ("ruby-rspec" ,ruby-rspec-2)))
2535 (synopsis "Write HTML pages in pure Ruby")
2537 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2538 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2539 mixture of HTML and additional ERB syntax.")
2540 (home-page "https://markaby.github.io/")
2541 (license license:expat)))
2543 (define-public ruby-maruku
2545 (name "ruby-maruku")
2550 (uri (rubygems-uri "maruku" version))
2553 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2554 (build-system ruby-build-system)
2556 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2559 (modify-phases %standard-phases
2561 (lambda* (#:key tests? #:allow-other-keys)
2566 `(("ruby-rspec" ,ruby-rspec)
2567 ("ruby-simplecov" ,ruby-simplecov)
2568 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2569 (synopsis "Markdown interpreter in Ruby")
2571 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2572 HTML, and PDF through LaTeX.")
2573 (home-page "https://github.com/bhollis/maruku")
2574 (license license:expat)))
2576 (define-public ruby-metaclass
2578 (name "ruby-metaclass")
2582 (uri (rubygems-uri "metaclass" version))
2585 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2586 (build-system ruby-build-system)
2589 (modify-phases %standard-phases
2590 (add-after 'unpack 'add-test-unit-to-search-path
2591 (lambda* (#:key inputs #:allow-other-keys)
2592 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2593 (substitute* "Rakefile"
2594 (("t\\.libs << \"test\"" line)
2595 (string-append line "; t.libs << \""
2596 test-unit "/lib/ruby/vendor_ruby"
2598 ,(package-version ruby-test-unit)
2602 `(("bundler" ,bundler)
2603 ("ruby-test-unit" ,ruby-test-unit)))
2604 (synopsis "Ruby library adding metaclass method to all objects")
2606 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2608 (home-page "https://github.com/floehopper/metaclass")
2609 (license license:expat)))
2611 (define-public ruby-mspec
2618 (uri (rubygems-uri "mspec" version))
2621 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2622 (build-system ruby-build-system)
2624 '(;; TODO: 3 test failures
2625 ;; ./spec/mocks/mock_spec.rb:82
2626 ;; ./spec/utils/name_map_spec.rb:151
2627 ;; ./spec/utils/name_map_spec.rb:155
2630 (modify-phases %standard-phases
2631 (add-after 'extract-gemspec 'change-dependency-constraints
2633 (substitute* "mspec.gemspec"
2634 (("rake.*") "rake>)\n")
2635 (("rspec.*") "rspec>)\n"))
2638 (lambda* (#:key tests? #:allow-other-keys)
2640 (invoke "rspec" "spec"))
2643 `(("bundler" ,bundler)
2644 ("ruby-rake" ,ruby-rake)
2645 ("ruby-rspec" ,ruby-rspec)))
2646 (synopsis "MSpec is a specialized framework for RubySpec")
2648 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2649 for basic features. MSpec contains additional features that assist in writing
2650 specs for Ruby implementations in ruby/spec.")
2651 (home-page "http://rubyspec.org")
2652 (license license:expat)))
2654 (define-public ruby-mysql2
2656 (name "ruby-mysql2")
2662 (url "https://github.com/brianmario/mysql2.git")
2664 (file-name (git-file-name name version))
2667 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2668 (build-system ruby-build-system)
2670 '(;; TODO: Tests require a running MySQL/MariaDB service
2673 (modify-phases %standard-phases
2674 (replace 'replace-git-ls-files
2676 (substitute* "mysql2.gemspec"
2677 (("git ls-files .*`") "find . -type f |sort`"))
2679 (add-before 'install 'set-MAKEFLAGS
2680 (lambda* (#:key outputs #:allow-other-keys)
2684 "prefix=" (assoc-ref outputs "out")))
2686 ;; Move the 'check phase to after 'install, as then you can test
2687 ;; using the installed mysql2 gem in the store.
2689 (add-after 'install 'check
2690 (lambda* (#:key outputs tests? #:allow-other-keys)
2695 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2700 `(("mariadb" ,mariadb "lib")
2701 ("mariadb-dev" ,mariadb "dev")
2704 `(("ruby-rspec" ,ruby-rspec)
2705 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2706 (synopsis "MySQL library for Ruby, binding to libmysql")
2708 "This package provides a simple, fast MySQL library for Ruby, binding to
2710 (home-page "https://github.com/brianmario/mysql2")
2711 (license license:expat)))
2713 (define-public ruby-blankslate
2715 (name "ruby-blankslate")
2719 (uri (rubygems-uri "blankslate" version))
2722 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2723 (build-system ruby-build-system)
2726 (modify-phases %standard-phases
2728 (lambda _ (invoke "rspec" "spec/"))))))
2730 `(("bundler" ,bundler)
2731 ("ruby-rspec" ,ruby-rspec)))
2732 (synopsis "Abstract base class with no predefined methods")
2734 "BlankSlate provides an abstract base class with no predefined
2735 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2736 as a base class when writing classes that depend upon
2737 @code{method_missing} (e.g. dynamic proxies).")
2738 (home-page "https://github.com/masover/blankslate")
2739 (license license:expat)))
2741 (define-public ruby-bond
2748 (uri (rubygems-uri "bond" version))
2751 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2752 (build-system ruby-build-system)
2754 `(("ruby-bacon" ,ruby-bacon)
2755 ("ruby-bacon-bits" ,ruby-bacon-bits)
2756 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2757 (synopsis "Bond can provide custom autocompletion for arguments, methods
2760 "Bond can autocomplete argument(s) to methods, uniquely completing per
2761 module, per method and per argument. Bond provides a configuration system and
2762 a DSL for creating custom completions and completion rules. Bond can also
2763 load completions that ship with gems. Bond is able to offer more than irb's
2764 completion since it uses the full line of input when completing as opposed to
2765 irb's last-word approach.")
2766 (home-page "http://tagaholic.me/bond/")
2767 (license license:expat)))
2769 (define-public ruby-idn-ruby
2771 (name "ruby-idn-ruby")
2776 (uri (rubygems-uri "idn-ruby" version))
2779 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2780 (build-system ruby-build-system)
2783 (modify-phases %standard-phases
2785 (add-after 'install 'check
2786 (lambda* (#:key tests? outputs #:allow-other-keys)
2788 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2789 (name-and-version (basename gem-file ".gem")))
2793 (assoc-ref outputs "out")
2794 "/lib/ruby/vendor_ruby/gems/"
2797 (find-files "./test" ".*\\.rb"))))
2800 `(("libidn" ,libidn)))
2801 (synopsis "Ruby Bindings for the GNU LibIDN library")
2803 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2804 Stringprep, Punycode and IDNA specifications. These are used to encode and
2805 decode internationalized domain + names according to the IDNA2003
2808 Included are the most important parts of the Stringprep, Punycode and IDNA
2809 APIs like performing Stringprep processings, encoding to and decoding from
2810 Punycode strings and converting entire domain names to and from the ACE
2812 (home-page "https://github.com/deepfryed/idn-ruby")
2813 (license license:asl2.0)))
2815 (define-public ruby-instantiator
2817 (name "ruby-instantiator")
2821 (uri (rubygems-uri "instantiator" version))
2824 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2825 (build-system ruby-build-system)
2828 (modify-phases %standard-phases
2829 (add-after 'unpack 'add-test-unit-to-search-path
2830 (lambda* (#:key inputs #:allow-other-keys)
2831 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2832 (substitute* "Rakefile"
2833 (("t\\.libs << \"test\"" line)
2834 (string-append line "; t.libs << \""
2835 test-unit "/lib/ruby/vendor_ruby"
2837 ,(package-version ruby-test-unit)
2841 `(("ruby-blankslate" ,ruby-blankslate)))
2843 `(("bundler" ,bundler)
2844 ("ruby-test-unit" ,ruby-test-unit)))
2845 (synopsis "Instantiate an arbitrary Ruby class")
2847 "Instantiator lets you instantiate an arbitrary Ruby class without
2848 knowing anything about the constructor.")
2849 (home-page "https://github.com/floehopper/instantiator")
2850 (license license:expat)))
2852 (define-public ruby-introspection
2854 (name "ruby-introspection")
2858 (uri (rubygems-uri "introspection" version))
2861 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2862 (build-system ruby-build-system)
2865 (modify-phases %standard-phases
2866 (add-after 'unpack 'add-test-unit-to-search-path
2867 (lambda* (#:key inputs #:allow-other-keys)
2868 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2869 (substitute* "Rakefile"
2870 (("t\\.libs << \"test\"" line)
2871 (string-append line "; t.libs << \""
2872 test-unit "/lib/ruby/vendor_ruby"
2874 ,(package-version ruby-test-unit)
2878 `(("ruby-instantiator" ,ruby-instantiator)
2879 ("ruby-metaclass" ,ruby-metaclass)))
2881 `(("bundler" ,bundler)
2882 ("ruby-blankslate" ,ruby-blankslate)
2883 ("ruby-test-unit" ,ruby-test-unit)))
2884 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2886 "Introspection provides tools to inspect the hierarchy of method
2887 definitions on a Ruby object.")
2888 (home-page "https://github.com/floehopper/introspection")
2889 (license license:expat)))
2891 (define-public ruby-redcarpet
2893 (name "ruby-redcarpet")
2897 (uri (rubygems-uri "redcarpet" version))
2900 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
2901 (build-system ruby-build-system)
2904 (modify-phases %standard-phases
2905 ;; The gem archive does not include the conformance tests.
2906 (add-after 'unpack 'disable-conformance-tests
2908 (substitute* "Rakefile"
2909 (("task :test => %w\\[test:unit test:conformance\\]")
2910 "task :test => %w[test:unit]"))
2913 `(("bundler" ,bundler)
2914 ("ruby-test-unit" ,ruby-test-unit)
2915 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2916 (synopsis "Extensible Markdown to (X)HTML converter")
2918 "Redcarpet is an extensible Ruby library for Markdown processing and
2919 conversion to (X)HTML.")
2920 (home-page "https://github.com/vmg/redcarpet")
2921 (license license:expat)))
2923 (define-public ruby-rerun
2930 (uri (rubygems-uri "rerun" version))
2933 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
2934 (build-system ruby-build-system)
2936 '(#:tests? #f)) ; No included tests
2938 `(("ruby-listen" ,ruby-listen)))
2939 (synopsis "Run a process, and restart when some monitored files change")
2941 "Rerun is a tool to launch programs, then monitor the file system, and
2942 restart the program when any of the monitored files change. It's written in
2943 Ruby, but can be used for all programs.")
2944 (home-page "https://github.com/alexch/rerun/")
2945 (license license:expat)))
2947 (define-public ruby-mocha
2953 (uri (rubygems-uri "mocha" version))
2956 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2957 (build-system ruby-build-system)
2960 (modify-phases %standard-phases
2961 (add-after 'unpack 'add-test-unit-to-search-path
2962 (lambda* (#:key inputs #:allow-other-keys)
2963 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2964 (substitute* "Rakefile"
2965 (("t\\.libs << 'test'" line)
2966 (string-append line "; t.libs << \""
2967 test-unit "/lib/ruby/vendor_ruby"
2969 ,(package-version ruby-test-unit)
2972 (add-before 'check 'use-latest-redcarpet
2974 (substitute* "mocha.gemspec"
2975 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2976 "<redcarpet>.freeze, [\">= 3\"]"))
2978 (add-before 'check 'hardcode-version
2980 ;; Mocha is undefined at build time
2981 (substitute* "Rakefile"
2982 (("#\\{Mocha::VERSION\\}") ,version))
2984 (add-before 'check 'remove-failing-test
2985 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2987 (delete-file "test/acceptance/stubbing_nil_test.rb")
2990 `(("ruby-metaclass" ,ruby-metaclass)))
2992 `(("bundler" ,bundler)
2993 ("ruby-yard" ,ruby-yard)
2994 ("ruby-introspection" ,ruby-introspection)
2995 ("ruby-test-unit" ,ruby-test-unit)
2996 ("ruby-redcarpet" ,ruby-redcarpet)))
2997 (synopsis "Mocking and stubbing library for Ruby")
2999 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3000 allows mocking and stubbing of methods on real (non-mock) classes.")
3001 (home-page "http://gofreerange.com/mocha/docs")
3002 (license license:expat)))
3004 (define-public ruby-mocha-on-bacon
3006 (name "ruby-mocha-on-bacon")
3011 (uri (rubygems-uri "mocha-on-bacon" version))
3014 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3015 (build-system ruby-build-system)
3017 ;; rubygems.org release missing tests
3019 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3020 (synopsis "Mocha adapter for Bacon")
3022 "This package provides a Mocha adapter for Bacon, allowing you to use the
3023 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3025 "https://github.com/alloy/mocha-on-bacon")
3026 (license license:expat)))
3028 (define-public ruby-net-ssh
3030 (name "ruby-net-ssh")
3034 (uri (rubygems-uri "net-ssh" version))
3037 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3038 (build-system ruby-build-system)
3040 `(("bundler" ,bundler)
3041 ("ruby-mocha" ,ruby-mocha)
3042 ("ruby-test-unit" ,ruby-test-unit)))
3043 (synopsis "Ruby implementation of the SSH2 client protocol")
3044 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3045 client protocol. It allows you to write programs that invoke and interact
3046 with processes on remote servers, via SSH2.")
3047 (home-page "https://github.com/net-ssh/net-ssh")
3048 (license license:expat)))
3050 (define-public ruby-net-scp
3052 (name "ruby-net-scp")
3053 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3054 (version "1.2.2.rc2")
3059 (url "https://github.com/net-ssh/net-scp.git")
3060 (commit (string-append "v" version))))
3061 (file-name (git-file-name name version))
3063 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3064 (build-system ruby-build-system)
3066 `(("bundler" ,bundler)
3067 ("ruby-test-unit" ,ruby-test-unit)
3068 ("ruby-mocha" ,ruby-mocha)))
3070 `(("ruby-net-ssh" ,ruby-net-ssh)))
3071 (synopsis "Pure-Ruby SCP client library")
3072 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3074 (home-page "https://github.com/net-ssh/net-scp")
3075 (license license:expat)))
3077 (define-public ruby-minitest
3079 (name "ruby-minitest")
3083 (uri (rubygems-uri "minitest" version))
3086 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3087 (build-system ruby-build-system)
3089 `(("ruby-hoe" ,ruby-hoe)))
3090 (synopsis "Small test suite library for Ruby")
3091 (description "Minitest provides a complete suite of Ruby testing
3092 facilities supporting TDD, BDD, mocking, and benchmarking.")
3093 (home-page "https://github.com/seattlerb/minitest")
3094 (license license:expat)))
3096 ;; This is the last release of Minitest 4, which is used by some packages.
3097 (define-public ruby-minitest-4
3098 (package (inherit ruby-minitest)
3102 (uri (rubygems-uri "minitest" version))
3105 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3108 (modify-phases %standard-phases
3109 (add-after 'unpack 'remove-unsupported-method
3111 (substitute* "Rakefile"
3112 (("self\\.rubyforge_name = .*") ""))
3114 (add-after 'build 'exclude-failing-tests
3116 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3118 (delete-file "test/minitest/test_minitest_spec.rb")
3121 (define-public ruby-minitest-around
3123 (name "ruby-minitest-around")
3128 (uri (rubygems-uri "minitest-around" version))
3131 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3132 (build-system ruby-build-system)
3135 (modify-phases %standard-phases
3136 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3138 (substitute* "minitest-around.gemspec"
3139 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3142 `(("ruby-minitest" ,ruby-minitest)))
3144 `(("bundler" ,bundler)
3145 ("ruby-cucumber" ,ruby-cucumber)
3146 ("ruby-bump" ,ruby-bump)
3147 ("ruby-test-construct" ,ruby-test-construct)))
3148 (synopsis "Run code around tests in Minitest")
3150 "This library provides a way to run code around tests in Minitest,
3151 written using either the unit test or spec style.")
3152 (home-page "https://github.com/splattael/minitest-around")
3153 (license license:expat)))
3155 (define-public ruby-minitest-sprint
3157 (name "ruby-minitest-sprint")
3161 (uri (rubygems-uri "minitest-sprint" version))
3164 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3165 (build-system ruby-build-system)
3167 `(("ruby-hoe" ,ruby-hoe)
3168 ("ruby-minitest" ,ruby-minitest)))
3169 (synopsis "Fast test suite runner for minitest")
3170 (description "Minitest-sprint is a test runner for minitest that makes it
3171 easier to re-run individual failing tests.")
3172 (home-page "https://github.com/seattlerb/minitest-sprint")
3173 (license license:expat)))
3175 (define-public ruby-minitest-bacon
3177 (name "ruby-minitest-bacon")
3181 (uri (rubygems-uri "minitest-bacon" version))
3184 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3185 (build-system ruby-build-system)
3187 `(("ruby-hoe" ,ruby-hoe)))
3189 `(("ruby-minitest" ,ruby-minitest)))
3190 (synopsis "Bacon compatibility library for minitest")
3191 (description "Minitest-bacon extends minitest with bacon-like
3192 functionality, making it easier to migrate test suites from bacon to minitest.")
3193 (home-page "https://github.com/seattlerb/minitest-bacon")
3194 (license license:expat)))
3196 (define-public ruby-minitest-focus
3198 (name "ruby-minitest-focus")
3203 (uri (rubygems-uri "minitest-focus" version))
3206 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3207 (build-system ruby-build-system)
3209 `(("ruby-minitest" ,ruby-minitest)))
3211 `(("ruby-hoe" ,ruby-hoe)))
3212 (synopsis "Allows a few specific tests to be focused on")
3214 "@code{minitest-focus} gives the ability focus on a few tests with ease
3215 without having to use command-line arguments. It introduces a @code{focus}
3216 class method for use in testing classes, specifying that the next defined test
3218 (home-page "https://github.com/seattlerb/minitest-focus")
3219 (license license:expat)))
3221 (define-public ruby-minitest-pretty-diff
3222 ;; Use git reference because gem is out of date and does not contain testing
3223 ;; script. There are no releases on GitHub.
3224 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3226 (name "ruby-minitest-pretty-diff")
3227 (version (string-append "0.1-1." (string-take commit 8)))
3231 (url "https://github.com/adammck/minitest-pretty_diff.git")
3233 (file-name (string-append name "-" version "-checkout"))
3236 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3237 (build-system ruby-build-system)
3240 (modify-phases %standard-phases
3243 (invoke "script/test"))))))
3245 `(("bundler" ,bundler)
3246 ("ruby-turn" ,ruby-turn)))
3247 (synopsis "Pretty-print hashes and arrays in MiniTest")
3249 "@code{minitest-pretty_diff} monkey-patches
3250 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3251 diffing them. This makes it easier to spot differences between nested
3252 structures when tests fail.")
3253 (home-page "https://github.com/adammck/minitest-pretty_diff")
3254 (license license:expat))))
3256 (define-public ruby-minitest-moar
3258 (name "ruby-minitest-moar")
3263 (uri (rubygems-uri "minitest-moar" version))
3266 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3267 (build-system ruby-build-system)
3270 (modify-phases %standard-phases
3271 (add-before 'check 'clean-dependencies
3273 ;; Remove all gems defined in the Gemfile because these are not
3275 (substitute* "Gemfile"
3277 ;; Remove byebug as not needed to run tests.
3278 (substitute* "test/test_helper.rb"
3279 (("require 'byebug'") ""))
3282 `(("bundler" ,bundler)
3283 ("ruby-minitest" ,ruby-minitest)))
3284 (synopsis "Extra features and changes to MiniTest")
3285 (description "@code{MiniTest Moar} add some additional features and
3286 changes some default behaviours in MiniTest. For instance, Moar replaces the
3287 MiniTest @code{Object#stub} with a global @code{stub} method.")
3288 (home-page "https://github.com/dockyard/minitest-moar")
3289 (license license:expat)))
3291 (define-public ruby-minitest-bonus-assertions
3293 (name "ruby-minitest-bonus-assertions")
3298 (uri (rubygems-uri "minitest-bonus-assertions" version))
3301 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3302 (build-system ruby-build-system)
3305 (modify-phases %standard-phases
3306 (add-before 'check 'clean-dependencies
3308 ;; Remove unneeded require statement that would entail another
3310 (substitute* "test/minitest_config.rb"
3311 (("require 'minitest/bisect'") ""))
3314 `(("ruby-hoe" ,ruby-hoe)
3315 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3316 ("ruby-minitest-focus" ,ruby-minitest-focus)
3317 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3318 (synopsis "Bonus assertions for @code{Minitest}")
3320 "Minitest bonus assertions provides extra MiniTest assertions. For
3321 instance, it provides @code{assert_true}, @code{assert_false} and
3322 @code{assert_set_equal}.")
3323 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3324 (license license:expat)))
3326 (define-public ruby-minitest-reporters
3328 (name "ruby-minitest-reporters")
3333 (uri (rubygems-uri "minitest-reporters" version))
3336 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3337 (build-system ruby-build-system)
3340 (modify-phases %standard-phases
3341 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3342 ;; including it as an input can lead to circular dependencies.
3343 (add-after 'unpack 'remove-rubocop-from-Rakefile
3345 (substitute* "Rakefile"
3346 (("require 'rubocop/rake\\_task'") "")
3347 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3349 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3351 (substitute* "minitest-reporters.gemspec"
3352 ((".*%q<rubocop>.*") "\n"))
3355 `(("ruby-ansi" ,ruby-ansi)
3356 ("ruby-builder" ,ruby-builder)
3357 ("ruby-minitest" ,ruby-minitest)
3358 ("ruby-progressbar" ,ruby-progressbar)))
3360 `(("bundler" ,bundler)
3361 ("ruby-maruku" ,ruby-maruku)))
3362 (synopsis "Enhanced reporting for Minitest tests")
3364 "@code{minitest/reporters} provides a custom Minitest runner to improve
3365 how the test state is reported. A number of different reporters are
3366 available, including a spec reporter, progress bar reporter, a HTML
3368 (home-page "https://github.com/kern/minitest-reporters")
3369 (license license:expat)))
3371 (define-public ruby-minitest-rg
3373 (name "ruby-minitest-rg")
3378 (uri (rubygems-uri "minitest-rg" version))
3381 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3382 (build-system ruby-build-system)
3384 ;; Some tests fail even outside Guix, so disable tests.
3385 ;; https://github.com/blowmage/minitest-rg/issues/12
3386 ;; https://github.com/blowmage/minitest-rg/pull/13
3389 `(("ruby-minitest" ,ruby-minitest)))
3390 (synopsis "Coloured output for Minitest")
3392 "@code{minitest-rg} changes the colour of the output from Minitest.")
3393 (home-page "https://blowmage.com/minitest-rg/")
3394 (license license:expat)))
3396 (define-public ruby-minitest-hooks
3398 (name "ruby-minitest-hooks")
3403 (uri (rubygems-uri "minitest-hooks" version))
3406 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3407 (build-system ruby-build-system)
3409 '(#:test-target "spec"))
3411 `(("ruby-sequel" ,ruby-sequel)
3412 ("ruby-sqlite3" ,ruby-sqlite3)))
3413 (synopsis "Hooks for the minitest framework")
3415 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3416 @code{around_all} hooks for Minitest. This allows, for instance, running each
3417 suite of specs inside a database transaction, running each spec inside its own
3418 savepoint inside that transaction. This can significantly speed up testing
3419 for specs that share expensive database setup code.")
3420 (home-page "https://github.com/jeremyevans/minitest-hooks")
3421 (license license:expat)))
3423 (define-public ruby-daemons
3425 (name "ruby-daemons")
3429 (uri (rubygems-uri "daemons" version))
3432 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3433 (build-system ruby-build-system)
3435 `(#:tests? #f)) ; no test suite
3436 (synopsis "Daemonize Ruby programs")
3437 (description "Daemons provides a way to wrap existing Ruby scripts to be
3438 run as a daemon and to be controlled by simple start/stop/restart commands.")
3439 (home-page "https://github.com/thuehlinger/daemons")
3440 (license license:expat)))
3442 (define-public ruby-data_uri
3444 (name "ruby-data_uri")
3449 (uri (rubygems-uri "data_uri" version))
3452 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3453 (build-system ruby-build-system)
3454 (synopsis "URI class for parsing data URIs")
3456 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3457 embedded inside a URI. The URI::Data class provides support for parsing these
3458 URIs using the normal URI.parse method.")
3459 (home-page "https://github.com/dball/data_uri")
3460 (license license:expat)))
3462 (define-public ruby-git
3468 (uri (rubygems-uri "git" version))
3471 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3472 (build-system ruby-build-system)
3474 `(#:tests? #f ; no tests
3475 #:phases (modify-phases %standard-phases
3476 (add-after 'install 'patch-git-binary
3477 (lambda* (#:key inputs outputs #:allow-other-keys)
3478 ;; Make the default git binary an absolute path to the
3480 (let ((git (string-append (assoc-ref inputs "git")
3482 (config (string-append
3483 (assoc-ref outputs "out")
3484 "/lib/ruby/vendor_ruby/gems/git-"
3485 ,version "/lib/git/config.rb")))
3486 (substitute* (list config)
3488 (string-append "'" git "'")))
3492 (synopsis "Ruby wrappers for Git")
3493 (description "Ruby/Git is a Ruby library that can be used to create, read
3494 and manipulate Git repositories by wrapping system calls to the git binary.")
3495 (home-page "https://github.com/schacon/ruby-git")
3496 (license license:expat)))
3498 (define-public ruby-slop
3504 (uri (rubygems-uri "slop" version))
3507 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3508 (build-system ruby-build-system)
3510 `(("ruby-minitest" ,ruby-minitest)))
3511 (synopsis "Ruby command line option parser")
3512 (description "Slop provides a Ruby domain specific language for gathering
3513 options and parsing command line flags.")
3514 (home-page "https://github.com/leejarvis/slop")
3515 (license license:expat)))
3517 (define-public ruby-slop-3
3518 (package (inherit ruby-slop)
3522 (uri (rubygems-uri "slop" version))
3525 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3527 (define-public ruby-multi-xml
3529 (name "ruby-multi-xml")
3534 (uri (rubygems-uri "multi_xml" version))
3537 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3538 (build-system ruby-build-system)
3540 '(#:tests? #f)) ; No included tests
3541 (synopsis "Swappable XML backends for Ruby")
3543 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3544 Nokogiri, Ox, or REXML.")
3545 (home-page "https://github.com/sferik/multi_xml")
3546 (license license:expat)))
3548 (define-public ruby-multipart-post
3550 (name "ruby-multipart-post")
3554 (uri (rubygems-uri "multipart-post" version))
3557 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3558 (build-system ruby-build-system)
3560 `(("bundler" ,bundler)))
3561 (synopsis "Multipart POST library for Ruby")
3562 (description "Multipart-Post Adds multipart POST capability to Ruby's
3564 (home-page "https://github.com/nicksieger/multipart-post")
3565 (license license:expat)))
3567 (define-public ruby-multi-json
3569 (name "ruby-multi-json")
3574 ;; Tests are not distributed at rubygems.org so download from GitHub
3577 (url "https://github.com/intridea/multi_json")
3578 (commit (string-append "v" version))))
3579 (file-name (git-file-name name version))
3582 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
3583 (build-system ruby-build-system)
3586 (modify-phases %standard-phases
3587 (add-after 'unpack 'remove-signing-key-reference
3589 (substitute* "multi_json.gemspec"
3590 ((".*spec.signing_key.*") ""))
3593 `(("bundler" ,bundler)
3594 ("ruby-rspec" ,ruby-rspec)
3595 ("ruby-yard" ,ruby-yard)
3596 ("ruby-json-pure" ,ruby-json-pure)
3597 ("ruby-oj" ,ruby-oj)
3598 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3599 (synopsis "Common interface to multiple JSON libraries for Ruby")
3601 "This package provides a common interface to multiple JSON libraries,
3602 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3603 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3604 (home-page "https://github.com/intridea/multi_json")
3605 (license license:expat)))
3607 (define-public ruby-multi-test
3609 (name "ruby-multi-test")
3614 (uri (rubygems-uri "multi_test" version))
3617 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3618 (build-system ruby-build-system)
3620 '(;; Tests require different sets of specific gem versions to be available,
3621 ;; and there is no gemfile that specifies the newest versions of
3622 ;; dependencies to be tested.
3625 "Interface to testing libraries loaded into a running Ruby process")
3627 "@code{multi_test} provides a uniform interface onto whatever testing
3628 libraries that have been loaded into a running Ruby process to help control
3629 rogue test/unit/autorun requires.")
3630 (home-page "https://github.com/cucumber/multi_test")
3631 (license license:expat)))
3633 (define-public ruby-arel
3639 (uri (rubygems-uri "arel" version))
3642 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3643 (build-system ruby-build-system)
3644 (arguments '(#:tests? #f)) ; no tests
3645 (home-page "https://github.com/rails/arel")
3646 (synopsis "SQL AST manager for Ruby")
3647 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3648 Ruby. It simplifies the generation of complex SQL queries and adapts to
3649 various relational database implementations.")
3650 (license license:expat)))
3652 (define-public ruby-marcel
3654 (name "ruby-marcel")
3659 (uri (rubygems-uri "marcel" version))
3662 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3663 (build-system ruby-build-system)
3665 '(;; No included tests
3668 `(("ruby-mimemagic" ,ruby-mimemagic)))
3669 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3671 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3672 Extensions} type detection using magic numbers, filenames, and extensions")
3673 (home-page "https://github.com/basecamp/marcel")
3674 (license license:expat)))
3676 (define-public ruby-minitar
3677 ;; We package from the GitHub source to fix the security issue reported at
3678 ;; https://github.com/halostatue/minitar/issues/16.
3679 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3681 (name "ruby-minitar")
3682 (version (string-append "0.5.4-1." (string-take commit 8)))
3687 (url "https://github.com/halostatue/minitar.git")
3689 (file-name (string-append name "-" version "-checkout"))
3692 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3693 (build-system ruby-build-system)
3695 '(#:tests? #f)) ; missing a gemspec
3696 (synopsis "Ruby library and utility for handling tar archives")
3698 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3699 that provides the ability to deal with POSIX tar archive files.")
3700 (home-page "http://www.github.com/atoulme/minitar")
3701 (license (list license:gpl2+ license:ruby)))))
3703 (define-public ruby-mini-portile
3705 (name "ruby-mini-portile")
3710 (uri (rubygems-uri "mini_portile" version))
3713 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3714 (build-system ruby-build-system)
3716 '(#:tests? #f)) ; tests require network access
3717 (synopsis "Ports system for Ruby developers")
3718 (description "Mini-portile is a port/recipe system for Ruby developers.
3719 It provides a standard way to compile against specific versions of libraries
3720 to reproduce user environments.")
3721 (home-page "https://github.com/flavorjones/mini_portile")
3722 (license license:expat)))
3724 (define-public ruby-mini-portile-2
3725 (package (inherit ruby-mini-portile)
3729 (uri (rubygems-uri "mini_portile2" version))
3732 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
3734 (define-public ruby-nokogiri
3736 (name "ruby-nokogiri")
3740 (uri (rubygems-uri "nokogiri" version))
3743 "185g3dwba73jqxjr94bd2zk6fil6n9hmcfnfyzh3p1w47vm296r7"))))
3744 (build-system ruby-build-system)
3746 ;; Tests fail because Nokogiri can only test with an installed extension,
3747 ;; and also because many test framework dependencies are missing.
3749 #:gem-flags (list "--" "--use-system-libraries"
3750 (string-append "--with-xml2-include="
3751 (assoc-ref %build-inputs "libxml2")
3752 "/include/libxml2" ))
3754 (modify-phases %standard-phases
3755 (add-before 'build 'patch-extconf
3756 ;; 'pkg-config' is not included in the GEM_PATH during
3757 ;; installation, so we add it directly to the load path.
3758 (lambda* (#:key inputs #:allow-other-keys)
3759 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3760 (substitute* "ext/nokogiri/extconf.rb"
3761 (("gem 'pkg-config'.*")
3762 (string-append "$:.unshift '"
3763 pkg-config "/lib/ruby/vendor_ruby"
3765 ,(package-version ruby-pkg-config)
3769 `(("ruby-hoe" ,ruby-hoe)))
3772 ("libxml2" ,libxml2)
3773 ("libxslt" ,libxslt)))
3775 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3776 ("ruby-pkg-config" ,ruby-pkg-config)))
3777 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3778 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3779 both CSS3 selector and XPath 1.0 support.")
3780 (home-page "http://www.nokogiri.org/")
3781 (license license:expat)))
3783 (define-public ruby-method-source
3785 (name "ruby-method-source")
3790 (uri (rubygems-uri "method_source" version))
3793 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3794 (build-system ruby-build-system)
3796 `(#:test-target "spec"))
3798 `(("ruby-rspec" ,ruby-rspec)
3800 (synopsis "Retrieve the source code for Ruby methods")
3801 (description "Method_source retrieves the source code for Ruby methods.
3802 Additionally, it can extract source code from Proc and Lambda objects or just
3804 (home-page "https://github.com/banister/method_source")
3805 (license license:expat)))
3807 (define-public ruby-coderay
3809 (name "ruby-coderay")
3814 (uri (rubygems-uri "coderay" version))
3817 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3818 (build-system ruby-build-system)
3820 '(#:tests? #f)) ; missing test files
3821 (synopsis "Ruby syntax highlighting library")
3822 (description "Coderay is a Ruby library that provides syntax highlighting
3823 for select languages.")
3824 (home-page "http://coderay.rubychan.de")
3825 (license license:expat)))
3827 (define-public ruby-parser
3829 (name "ruby-parser")
3834 (uri (rubygems-uri "parser" version))
3837 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3838 (build-system ruby-build-system)
3840 `(("bundler" ,bundler)
3841 ("ruby-cliver" ,ruby-cliver)
3842 ("ruby-simplecov" ,ruby-simplecov)
3843 ("ruby-racc" ,ruby-racc)))
3845 `(("ragel" ,ragel)))
3847 `(("ruby-ast" ,ruby-ast)))
3848 (synopsis "Ruby parser written in pure Ruby")
3850 "This package provides a Ruby parser written in pure Ruby.")
3851 (home-page "https://github.com/whitequark/parser")
3852 (license license:expat)))
3854 (define-public ruby-prawn-manual-builder
3856 (name "ruby-prawn-manual-builder")
3861 (uri (rubygems-uri "prawn-manual_builder" version))
3863 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
3864 (build-system ruby-build-system)
3866 '(#:tests? #f ; no included tests
3868 (modify-phases %standard-phases
3869 (add-after 'extract-gemspec 'patch-gemspec
3871 (substitute* ".gemspec"
3872 ;; Loosen the requirement for pdf-inspector
3873 (("~> 1\\.0\\.7") ">= 0")))))))
3875 `(("ruby-coderay" ,ruby-coderay)))
3876 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3878 "This package provides a tool for writing manuals for Prawn and Prawn
3880 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3882 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3886 (define-public ruby-progress_bar
3888 (name "ruby-progress_bar")
3893 (uri (rubygems-uri "progress_bar" version))
3896 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3897 (build-system ruby-build-system)
3899 '(#:test-target "spec"))
3901 `(("ruby-highline" ,ruby-highline)
3902 ("ruby-options" ,ruby-options)))
3904 `(("bundler" ,bundler)
3905 ("ruby-rspec" ,ruby-rspec)
3906 ("ruby-timecop" ,ruby-timecop)))
3908 "Ruby library for displaying progress bars")
3910 "ProgressBar is a simple library for displaying progress bars. The
3911 maximum value is configurable, and additional information can be displayed
3912 like the percentage completion, estimated time remaining, elapsed time and
3914 (home-page "https://github.com/paul/progress_bar")
3915 (license license:wtfpl2)))
3917 (define-public ruby-dep
3924 (uri (rubygems-uri "ruby_dep" version))
3927 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
3928 (build-system ruby-build-system)
3930 '(#:tests? #f)) ; No included tests
3931 (synopsis "Creates a version constraint of supported Rubies")
3933 "This package helps create a version constraint of supported Rubies,
3934 suitable for a gemspec file.")
3935 (home-page "https://github.com/e2/ruby_dep")
3936 (license license:expat)))
3938 (define-public ruby-progressbar
3940 (name "ruby-progressbar")
3945 (uri (rubygems-uri "ruby-progressbar" version))
3947 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
3948 (build-system ruby-build-system)
3950 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3952 (synopsis "Text progress bar library for Ruby")
3954 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3955 The output can be customized with a formatting system.")
3956 (home-page "https://github.com/jfelchner/ruby-progressbar")
3957 (license license:expat)))
3959 (define-public ruby-pry
3966 (uri (rubygems-uri "pry" version))
3969 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3970 (build-system ruby-build-system)
3972 '(#:tests? #f)) ; no tests
3974 `(("ruby-coderay" ,ruby-coderay)
3975 ("ruby-method-source" ,ruby-method-source)))
3976 (synopsis "Ruby REPL")
3977 (description "Pry is an IRB alternative and runtime developer console for
3978 Ruby. It features syntax highlighting, a plugin architecture, runtime
3979 invocation, and source and documentation browsing.")
3980 (home-page "https://pryrepl.org")
3981 (license license:expat)))
3983 (define-public ruby-guard
3989 ;; The gem does not include a Rakefile, nor does it contain a
3990 ;; gemspec file, nor does it come with the tests. This is why
3991 ;; we fetch the tarball from Github.
3993 (url "https://github.com/guard/guard")
3994 (commit (string-append "v" version))))
3995 (file-name (git-file-name name version))
3998 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
3999 (build-system ruby-build-system)
4001 `(#:tests? #f ; tests require cucumber
4003 (modify-phases %standard-phases
4004 (add-after 'unpack 'remove-git-ls-files
4005 (lambda* (#:key outputs #:allow-other-keys)
4006 (substitute* "guard.gemspec"
4007 (("git ls-files -z") "find . -type f -print0"))
4011 (invoke "gem" "build" "guard.gemspec"))))))
4013 `(("ruby-formatador" ,ruby-formatador)
4014 ("ruby-listen" ,ruby-listen)
4015 ("ruby-lumberjack" ,ruby-lumberjack)
4016 ("ruby-nenv" ,ruby-nenv)
4017 ("ruby-notiffany" ,ruby-notiffany)
4018 ("ruby-pry" ,ruby-pry)
4019 ("ruby-shellany" ,ruby-shellany)
4020 ("ruby-thor" ,ruby-thor)))
4022 `(("bundler" ,bundler)
4023 ("ruby-rspec" ,ruby-rspec)))
4024 (synopsis "Tool to handle events on file system modifications")
4026 "Guard is a command line tool to easily handle events on file system
4027 modifications. Guard automates various tasks by running custom rules whenever
4028 file or directories are modified.")
4029 (home-page "https://guardgem.org/")
4030 (license license:expat)))
4032 (define-public ruby-tilt
4039 (uri (rubygems-uri "tilt" version))
4042 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
4043 (build-system ruby-build-system)
4046 (modify-phases %standard-phases
4047 (add-after 'unpack 'remove-some-dependencies
4049 (substitute* "Gemfile"
4050 ;; TODO ronn is used for generating the manual
4051 (("gem 'ronn'.*") "\n")
4052 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4053 ;; pass it in as a native-input
4054 (("gem 'haml'.*") "\n")
4055 ;; TODO Not all of these gems are packaged for Guix yet:
4056 ;; less, coffee-script, livescript, babel-transpiler,
4058 (("if can_execjs") "if false")
4059 ;; Disable the secondary group to reduce the number of
4060 ;; dependencies. None of the normal approaches work, so patch
4061 ;; the Gemfile instead.
4062 (("group :secondary") "[].each"))
4065 `(("bundler" ,bundler)
4066 ("ruby-yard" ,ruby-yard)
4067 ("ruby-builder" ,ruby-builder)
4068 ("ruby-erubis" ,ruby-erubis)
4069 ("ruby-markaby" ,ruby-markaby)
4070 ("ruby-sassc" ,ruby-sassc)))
4071 (synopsis "Generic interface to multiple Ruby template engines")
4073 "Tilt is a thin interface over a number of different Ruby template
4074 engines in an attempt to make their usage as generic as possible.")
4075 (home-page "https://github.com/rtomayko/tilt/")
4076 (license license:expat)))
4078 (define-public ruby-thread-safe
4080 (name "ruby-thread-safe")
4085 (uri (rubygems-uri "thread_safe" version))
4088 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4089 (build-system ruby-build-system)
4091 '(#:tests? #f)) ; needs simplecov, among others
4092 (synopsis "Thread-safe utilities for Ruby")
4093 (description "The thread_safe library provides thread-safe collections and
4094 utilities for Ruby.")
4095 (home-page "https://github.com/ruby-concurrency/thread_safe")
4096 (license license:asl2.0)))
4098 (define-public ruby-tzinfo
4100 (name "ruby-tzinfo")
4105 (uri (rubygems-uri "tzinfo" version))
4108 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4109 (build-system ruby-build-system)
4112 (modify-phases %standard-phases
4113 (add-after 'unpack 'skip-safe-tests
4115 (substitute* "test/test_utils.rb"
4116 (("def safe_test\\(options = \\{\\}\\)")
4117 "def safe_test(options = {})
4118 skip('The Guix build environment has an unsafe load path')"))
4121 `(("ruby-thread-safe" ,ruby-thread-safe)))
4122 (synopsis "Time zone library for Ruby")
4123 (description "TZInfo is a Ruby library that provides daylight savings
4124 aware transformations between times in different time zones.")
4125 (home-page "https://tzinfo.github.io")
4126 (license license:expat)))
4128 (define-public ruby-tzinfo-data
4130 (name "ruby-tzinfo-data")
4131 (version "1.2017.3")
4135 ;; Download from GitHub because the rubygems version does not contain
4136 ;; Rakefile or tests.
4138 (url "https://github.com/tzinfo/tzinfo-data")
4139 (commit (string-append "v" version))))
4140 (file-name (git-file-name name version))
4143 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4144 ;; Remove the known test failure.
4145 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4146 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4147 (patches (search-patches
4148 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4149 (build-system ruby-build-system)
4151 `(("ruby-tzinfo" ,ruby-tzinfo)))
4152 (synopsis "Data from the IANA Time Zone database")
4154 "This library provides @code{TZInfo::Data}, which contains data from the
4155 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4156 (home-page "https://tzinfo.github.io")
4157 (license license:expat)))
4159 (define-public ruby-rb-inotify
4161 (name "ruby-rb-inotify")
4166 (uri (rubygems-uri "rb-inotify" version))
4169 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4170 (build-system ruby-build-system)
4172 '(#:tests? #f ; there are no tests
4174 (modify-phases %standard-phases
4175 ;; Building the gemspec with rake is not working here since it is
4176 ;; generated with Jeweler. It is also unnecessary because the
4177 ;; existing gemspec does not use any development tools to generate a
4181 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4183 `(("ruby-ffi" ,ruby-ffi)))
4185 `(("ruby-yard" ,ruby-yard)))
4186 (synopsis "Ruby wrapper for Linux's inotify")
4187 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4188 kernel subsystem for monitoring changes to files and directories.")
4189 (home-page "https://github.com/nex3/rb-inotify")
4190 (license license:expat)))
4192 (define-public ruby-pry-editline
4194 (name "ruby-pry-editline")
4198 (uri (rubygems-uri "pry-editline" version))
4201 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4202 (build-system ruby-build-system)
4203 (arguments `(#:tests? #f)) ; no tests included
4205 `(("bundler" ,bundler)))
4206 (synopsis "Open the current REPL line in an editor")
4208 "This gem provides a plugin for the Ruby REPL to enable opening the
4209 current line in an external editor.")
4210 (home-page "https://github.com/tpope/pry-editline")
4211 (license license:expat)))
4213 (define-public ruby-sdoc
4219 (uri (rubygems-uri "sdoc" version))
4222 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4223 (build-system ruby-build-system)
4226 (modify-phases %standard-phases
4227 (add-before 'check 'set-rubylib-and-patch-gemfile
4229 (setenv "RUBYLIB" "lib")
4230 (substitute* "sdoc.gemspec"
4231 (("s.add_runtime_dependency.*") "\n")
4232 (("s.add_dependency.*") "\n"))
4233 (substitute* "Gemfile"
4235 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4238 `(("ruby-json" ,ruby-json)))
4240 `(("bundler" ,bundler)
4241 ("ruby-minitest" ,ruby-minitest)
4242 ("ruby-hoe" ,ruby-hoe)))
4243 (synopsis "Generate searchable RDoc documentation")
4245 "SDoc is an RDoc documentation generator to build searchable HTML
4246 documentation for Ruby code.")
4247 (home-page "https://github.com/voloko/sdoc")
4248 (license license:expat)))
4250 (define-public ruby-tins
4256 (uri (rubygems-uri "tins" version))
4259 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4260 (build-system ruby-build-system)
4261 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4262 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4265 `(#:tests? #f ; there are no tests
4267 (modify-phases %standard-phases
4270 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4272 (substitute* "tins.gemspec"
4273 (("\"lib/spruz\", ") ""))
4274 (invoke "gem" "build" "tins.gemspec"))))))
4275 (synopsis "Assorted tools for Ruby")
4276 (description "Tins is a Ruby library providing assorted tools.")
4277 (home-page "https://github.com/flori/tins")
4278 (license license:expat)))
4280 (define-public ruby-gem-hadar
4282 (name "ruby-gem-hadar")
4286 (uri (rubygems-uri "gem_hadar" version))
4289 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4290 (build-system ruby-build-system)
4291 ;; This gem needs itself at development time. We disable rebuilding of the
4292 ;; gemspec to avoid this loop.
4294 `(#:tests? #f ; there are no tests
4296 (modify-phases %standard-phases
4299 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4302 ("ruby-tins" ,ruby-tins)
4303 ("ruby-yard" ,ruby-yard)))
4304 (synopsis "Library for the development of Ruby gems")
4306 "This library contains some useful functionality to support the
4307 development of Ruby gems.")
4308 (home-page "https://github.com/flori/gem_hadar")
4309 (license license:expat)))
4311 (define-public ruby-minitest-tu-shim
4313 (name "ruby-minitest-tu-shim")
4317 (uri (rubygems-uri "minitest_tu_shim" version))
4320 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4321 (build-system ruby-build-system)
4324 (modify-phases %standard-phases
4325 (add-after 'unpack 'fix-test-include-path
4326 (lambda* (#:key inputs #:allow-other-keys)
4327 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4328 (substitute* "Rakefile"
4329 (("Hoe\\.add_include_dirs .*")
4330 (string-append "Hoe.add_include_dirs \""
4331 minitest "/lib/ruby/vendor_ruby"
4333 ,(package-version ruby-minitest-4)
4336 (add-before 'check 'fix-test-assumptions
4338 ;; The test output includes the file name, so a couple of tests
4339 ;; fail. Changing the regular expressions slightly fixes this
4341 (substitute* "test/test_mini_test.rb"
4342 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4343 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4344 (("gsub\\(/.*, 'FILE:LINE'\\)")
4345 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4348 `(("ruby-minitest-4" ,ruby-minitest-4)))
4350 `(("ruby-hoe" ,ruby-hoe)))
4351 (synopsis "Adapter library between minitest and test/unit")
4353 "This library bridges the gap between the small and fast minitest and
4354 Ruby's large and slower test/unit.")
4355 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4356 (license license:expat)))
4358 (define-public ruby-term-ansicolor
4360 (name "ruby-term-ansicolor")
4364 (uri (rubygems-uri "term-ansicolor" version))
4367 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4368 (build-system ruby-build-system)
4369 ;; Rebuilding the gemspec seems to require git, even though this is not a
4370 ;; git repository, so we just build the gem from the existing gemspec.
4373 (modify-phases %standard-phases
4374 (add-after 'unpack 'fix-test
4376 (substitute* "tests/hsl_triple_test.rb"
4381 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4383 `(("ruby-tins" ,ruby-tins)))
4385 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4386 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4387 (synopsis "Ruby library to control the attributes of terminal output")
4389 "This Ruby library uses ANSI escape sequences to control the attributes
4390 of terminal output.")
4391 (home-page "https://flori.github.io/term-ansicolor/")
4392 ;; There is no mention of the "or later" clause.
4393 (license license:gpl2)))
4395 (define-public ruby-terraform
4397 (name "ruby-terraform")
4402 (uri (rubygems-uri "ruby-terraform" version))
4405 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4406 (build-system ruby-build-system)
4408 '(#:tests? #f)) ; No included tests
4410 `(("ruby-lino" ,ruby-lino)))
4411 (synopsis "Ruby wrapper around the Terraform command line interface")
4413 "This package provides a Ruby wrapper around the Terraform command line
4414 interface so that Terraform can be more easily invoked from Ruby code.")
4415 (home-page "https://github.com/infrablocks/ruby_terraform")
4416 (license license:expat)))
4418 (define-public ruby-pstree
4420 (name "ruby-pstree")
4424 (uri (rubygems-uri "pstree" version))
4427 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4428 (build-system ruby-build-system)
4430 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4431 ("bundler" ,bundler)))
4432 (synopsis "Create a process tree data structure")
4434 "This library uses the output of the @code{ps} command to create a
4435 process tree data structure for the current host.")
4436 (home-page "https://github.com/flori/pstree")
4437 ;; There is no mention of the "or later" clause.
4438 (license license:gpl2)))
4440 (define-public ruby-utils
4446 (uri (rubygems-uri "utils" version))
4449 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4450 (build-system ruby-build-system)
4452 `(("ruby-tins" ,ruby-tins)
4453 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4454 ("ruby-pstree" ,ruby-pstree)
4455 ("ruby-pry-editline" ,ruby-pry-editline)))
4457 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4458 ("bundler" ,bundler)))
4459 (synopsis "Command line tools for working with Ruby")
4461 "This package provides assorted command line tools that may be useful
4462 when working with Ruby code.")
4463 (home-page "https://github.com/flori/utils")
4464 ;; There is no mention of the "or later" clause.
4465 (license license:gpl2)))
4467 (define-public ruby-jaro-winkler
4469 (name "ruby-jaro-winkler")
4474 (uri (rubygems-uri "jaro_winkler" version))
4476 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
4477 (build-system ruby-build-system)
4479 '(#:tests? #f)) ; no included tests
4480 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4482 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4483 algorithm. It is written as a C extension and will fallback to a pure Ruby
4484 implementation on platforms where this is unsupported.")
4485 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4486 (license license:expat)))
4488 (define-public ruby-json
4495 (uri (rubygems-uri "json" version))
4498 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4499 (build-system ruby-build-system)
4500 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4501 (synopsis "JSON library for Ruby")
4502 (description "This Ruby library provides a JSON implementation written as
4503 a native C extension.")
4504 (home-page "http://json-jruby.rubyforge.org/")
4505 (license (list license:ruby license:gpl2)))) ; GPL2 only
4507 (define-public ruby-json-pure
4509 (name "ruby-json-pure")
4513 (uri (rubygems-uri "json_pure" version))
4516 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
4517 (build-system ruby-build-system)
4520 (modify-phases %standard-phases
4521 (add-after 'unpack 'fix-rakefile
4523 (substitute* "Rakefile"
4524 ;; Since this is not a git repository, do not call 'git'.
4525 (("`git ls-files`") "`find . -type f |sort`")
4526 ;; Loosen dependency constraint.
4527 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4529 (add-after 'replace-git-ls-files 'regenerate-gemspec
4531 ;; Regenerate gemspec so loosened dependency constraints are
4533 (invoke "rake" "gemspec")))
4534 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4536 ;; This gemspec doesn't look to be generated by the above
4537 ;; command, so patch it separately.
4538 (substitute* "json-java.gemspec"
4539 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4540 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4543 `(("bundler" ,bundler)
4545 ("ruby-simplecov" ,ruby-simplecov)
4546 ("ruby-test-unit" ,ruby-test-unit)))
4547 (synopsis "JSON implementation in pure Ruby")
4549 "This package provides a JSON implementation written in pure Ruby.")
4550 (home-page "https://flori.github.com/json/")
4551 (license license:ruby)))
4553 (define-public ruby-jwt
4560 (uri (rubygems-uri "jwt" version))
4563 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4564 (build-system ruby-build-system)
4566 '(#:test-target "test"
4568 (modify-phases %standard-phases
4569 (add-after 'unpack 'remove-unnecessary-dependencies
4571 (substitute* "spec/spec_helper.rb"
4572 (("require 'simplecov.*") "\n")
4573 ;; Use [].each to disable running the SimpleCov configuration
4575 (("SimpleCov\\.configure") "[].each")
4576 (("require 'codeclimate-test-reporter'") "")
4577 (("require 'codacy-coverage'") "")
4578 (("Codacy::Reporter\\.start") ""))
4581 `(("bundler" ,bundler)
4582 ("ruby-rspec" ,ruby-rspec)
4583 ("ruby-rbnacl" ,ruby-rbnacl)))
4584 (synopsis "Ruby implementation of the JSON Web Token standard")
4586 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4587 @acronym{JWT, JSON Web Token} standard.")
4588 (home-page "https://github.com/jwt/ruby-jwt")
4589 (license license:expat)))
4591 ;; Even though this package only provides bindings for a Mac OSX API it is
4592 ;; required by "ruby-listen" at runtime.
4593 (define-public ruby-rb-fsevent
4595 (name "ruby-rb-fsevent")
4599 (uri (rubygems-uri "rb-fsevent" version))
4602 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4603 (build-system ruby-build-system)
4604 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4605 ;; "listen", which needs "rb-fsevent" at runtime.
4606 (arguments `(#:tests? #f))
4607 (synopsis "FSEvents API with signals catching")
4609 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4610 (home-page "https://rubygems.org/gems/rb-fsevent")
4611 (license license:expat)))
4613 (define-public ruby-listen
4615 (name "ruby-listen")
4619 ;; The gem does not include a Rakefile, so fetch from the Git
4623 (url "https://github.com/guard/listen.git")
4624 (commit (string-append "v" version))))
4625 (file-name (git-file-name name version))
4628 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
4629 (build-system ruby-build-system)
4631 `(#:test-target "spec"
4633 (modify-phases %standard-phases
4634 (add-after 'unpack 'fix-files-in-gemspec
4636 (substitute* "listen.gemspec"
4637 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
4639 (add-before 'check 'remove-unnecessary-dependencies'
4641 (substitute* "Rakefile"
4642 ;; Rubocop is for code linting, and is unnecessary for running
4644 ((".*rubocop.*") ""))
4647 `(("bundler" ,bundler)
4648 ("ruby-rspec" ,ruby-rspec)))
4650 `(;; ruby-thor is used for the command line interface, and is referenced
4651 ;; in the wrapper, and therefore just needs to be an input.
4652 ("ruby-thor" ,ruby-thor)))
4654 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
4655 ("ruby-rb-inotify" ,ruby-rb-inotify)
4656 ("ruby-dep" ,ruby-dep)))
4657 (synopsis "Listen to file modifications")
4658 (description "The Listen gem listens to file modifications and notifies
4659 you about the changes.")
4660 (home-page "https://github.com/guard/listen")
4661 (license license:expat)))
4663 (define-public ruby-loofah
4665 (name "ruby-loofah")
4670 (uri (rubygems-uri "loofah" version))
4673 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4674 (build-system ruby-build-system)
4677 (modify-phases %standard-phases
4678 (add-after 'unpack 'remove-unnecessary-dependencies
4680 ;; concourse is a development tool which is unused, so remove it
4681 ;; so it's not required.
4682 (substitute* "Gemfile"
4683 ((".*\"concourse\".*") "\n"))
4684 (substitute* "Rakefile"
4685 (("require 'concourse'") "")
4686 (("Concourse\\.new.*") "\n"))
4689 `(("ruby-hoe" ,ruby-hoe)
4690 ("ruby-rr" ,ruby-rr)))
4692 `(("ruby-nokogiri" ,ruby-nokogiri)
4693 ("ruby-crass" ,ruby-crass)))
4694 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4696 "Loofah is a general library for manipulating and transforming HTML/XML
4697 documents and fragments. It's built on top of Nokogiri and libxml2.")
4698 (home-page "https://github.com/flavorjones/loofah")
4699 (license license:expat)))
4701 (define-public ruby-activesupport
4703 (name "ruby-activesupport")
4708 (uri (rubygems-uri "activesupport" version))
4711 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4712 (build-system ruby-build-system)
4715 (modify-phases %standard-phases
4718 ;; There are no tests, instead attempt to load the library.
4719 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4721 `(("ruby-concurrent" ,ruby-concurrent)
4722 ("ruby-i18n" ,ruby-i18n)
4723 ("ruby-minitest" ,ruby-minitest)
4724 ("ruby-tzinfo" ,ruby-tzinfo)
4725 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4726 (synopsis "Ruby on Rails utility library")
4727 (description "ActiveSupport is a toolkit of support libraries and Ruby
4728 core extensions extracted from the Rails framework. It includes support for
4729 multibyte strings, internationalization, time zones, and testing.")
4730 (home-page "http://www.rubyonrails.org")
4731 (license license:expat)))
4733 (define-public ruby-crass
4739 (uri (rubygems-uri "crass" version))
4742 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4743 (build-system ruby-build-system)
4745 `(("bundler" ,bundler)
4746 ("ruby-minitest" ,ruby-minitest)))
4747 (synopsis "Pure Ruby CSS parser")
4749 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4750 (home-page "https://github.com/rgrove/crass/")
4751 (license license:expat)))
4753 (define-public ruby-nokogumbo
4754 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4756 (name "ruby-nokogumbo")
4757 (version (string-append "1.4.7-1." (string-take commit 8)))
4759 ;; We use the git reference, because there's no Rakefile in the
4760 ;; published gem and the tarball on Github is outdated.
4763 (url "https://github.com/rubys/nokogumbo.git")
4764 (commit "d56f954d20a")))
4765 (file-name (string-append name "-" version "-checkout"))
4768 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4769 (build-system ruby-build-system)
4771 `(#:modules ((guix build ruby-build-system)
4775 (modify-phases %standard-phases
4776 (add-after 'unpack 'build-gemspec
4778 (substitute* "Rakefile"
4779 ;; Build Makefile even without a copy of gumbo-parser sources
4780 (("'gumbo-parser/src',") "")
4781 ;; We don't bundle gumbo-parser sources
4782 (("'gumbo-parser/src/\\*',") "")
4783 (("'gumbo-parser/visualc/include/\\*',") "")
4784 ;; The definition of SOURCES will be cut in gemspec, and
4785 ;; "FileList" will be undefined.
4786 (("SOURCES \\+ FileList\\[")
4787 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4789 ;; Copy the Rakefile and cut out the gemspec.
4790 (copy-file "Rakefile" ".gemspec")
4791 (with-atomic-file-replacement ".gemspec"
4793 (let loop ((line (read-line in 'concat))
4795 (if (eof-object? line)
4797 (let ((skip-next? (if skipping?
4798 (not (string-prefix? "SPEC =" line))
4799 (string-prefix? "end" line))))
4800 (when (or (not skipping?)
4801 (and skipping? (not skip-next?)))
4802 (format #t "~a" line)
4804 (loop (read-line in 'concat) skip-next?))))))
4807 `(("gumbo-parser" ,gumbo-parser)))
4809 `(("ruby-nokogiri" ,ruby-nokogiri)))
4810 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4812 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4813 access the result as a Nokogiri parsed document.")
4814 (home-page "https://github.com/rubys/nokogumbo/")
4815 (license license:asl2.0))))
4817 (define-public ruby-sanitize
4819 (name "ruby-sanitize")
4823 ;; The gem does not include the Rakefile, so we download the
4824 ;; release tarball from Github.
4825 (uri (string-append "https://github.com/rgrove/"
4826 "sanitize/archive/v" version ".tar.gz"))
4827 (file-name (string-append name "-" version ".tar.gz"))
4830 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4831 (build-system ruby-build-system)
4833 `(("ruby-crass" ,ruby-crass)
4834 ("ruby-nokogiri" ,ruby-nokogiri)
4835 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4837 `(("bundler" ,bundler)
4838 ("ruby-minitest" ,ruby-minitest)
4839 ("ruby-redcarpet" ,ruby-redcarpet)
4840 ("ruby-yard" ,ruby-yard)))
4841 (synopsis "Whitelist-based HTML and CSS sanitizer")
4843 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4844 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4845 unacceptable HTML and/or CSS from a string.")
4846 (home-page "https://github.com/rgrove/sanitize/")
4847 (license license:expat)))
4849 (define-public ruby-oj
4856 ;; Version on rubygems.org does not contain Rakefile, so download from
4859 (url "https://github.com/ohler55/oj")
4860 (commit (string-append "v" version))))
4861 (file-name (git-file-name name version))
4864 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
4865 (build-system ruby-build-system)
4867 '(#:test-target "test_all"
4869 (modify-phases %standard-phases
4870 (add-before 'check 'disable-bundler
4872 (substitute* "Rakefile"
4873 (("Bundler\\.with_clean_env") "1.times")
4874 (("bundle exec ") "")))))))
4876 `(("bundler" ,bundler)
4877 ("ruby-rspec" ,ruby-rspec)
4878 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4879 (synopsis "JSON parser for Ruby optimized for speed")
4881 "Oj is a JSON parser and generator for Ruby, where the encoding and
4882 decoding of JSON is implemented as a C extension to Ruby.")
4883 (home-page "http://www.ohler.com/oj/")
4884 (license (list license:expat ; Ruby code
4885 license:bsd-3)))) ; extension code
4887 (define-public ruby-ox
4894 (uri (rubygems-uri "ox" version))
4897 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4898 (build-system ruby-build-system)
4900 '(#:tests? #f)) ; no tests
4901 (synopsis "Optimized XML library for Ruby")
4903 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4904 written as a native C extension. It was designed to be an alternative to
4905 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4906 alternative to Marshal for Object serialization. ")
4907 (home-page "http://www.ohler.com/ox")
4908 (license license:expat)))
4910 (define-public ruby-redcloth
4912 (name "ruby-redcloth")
4916 (uri (rubygems-uri "RedCloth" version))
4919 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4920 (build-system ruby-build-system)
4922 `(#:tests? #f ; no tests
4924 (modify-phases %standard-phases
4925 ;; Redcloth has complicated rake tasks to build various versions for
4926 ;; multiple targets using RVM. We don't want this so we just use the
4927 ;; existing gemspec.
4930 (invoke "gem" "build" "redcloth.gemspec"))))))
4932 `(("bundler" ,bundler)
4933 ("ruby-diff-lcs" ,ruby-diff-lcs)
4934 ("ruby-rspec-2" ,ruby-rspec-2)))
4935 (synopsis "Textile markup language parser for Ruby")
4937 "RedCloth is a Ruby parser for the Textile markup language.")
4938 (home-page "http://redcloth.org")
4939 (license license:expat)))
4941 (define-public ruby-pg
4948 (uri (rubygems-uri "pg" version))
4951 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
4952 (build-system ruby-build-system)
4954 '(#:test-target "spec"))
4956 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4957 ("ruby-hoe" ,ruby-hoe)
4958 ("ruby-rspec" ,ruby-rspec)))
4960 `(("postgresql" ,postgresql)))
4961 (synopsis "Ruby interface to PostgreSQL")
4962 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4963 with PostgreSQL 9.0 and later.")
4964 (home-page "https://bitbucket.org/ged/ruby-pg")
4965 (license license:ruby)))
4967 (define-public ruby-byebug
4969 (name "ruby-byebug")
4974 (uri (rubygems-uri "byebug" version))
4977 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4978 (build-system ruby-build-system)
4980 '(#:tests? #f)) ; no tests
4981 (synopsis "Debugger for Ruby 2")
4982 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4983 TracePoint C API for execution control and the Debug Inspector C API for call
4984 stack navigation. The core component provides support that front-ends can
4985 build on. It provides breakpoint handling and bindings for stack frames among
4986 other things and it comes with a command line interface.")
4987 (home-page "https://github.com/deivid-rodriguez/byebug")
4988 (license license:bsd-2)))
4990 (define-public ruby-netrc
4996 (uri (rubygems-uri "netrc" version))
4999 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
5000 (build-system ruby-build-system)
5003 (modify-phases %standard-phases
5005 ;; There is no Rakefile and minitest can only run one file at once,
5006 ;; so we have to iterate over all test files.
5009 (invoke "ruby" "-Itest" file))
5010 (find-files "./test" "test_.*\\.rb")))))))
5012 `(("ruby-minitest" ,ruby-minitest)))
5013 (synopsis "Library to read and update netrc files")
5015 "This library can read and update netrc files, preserving formatting
5016 including comments and whitespace.")
5017 (home-page "https://github.com/geemus/netrc")
5018 (license license:expat)))
5020 (define-public ruby-unf-ext
5022 (name "ruby-unf-ext")
5026 (uri (rubygems-uri "unf_ext" version))
5029 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
5030 (build-system ruby-build-system)
5033 (modify-phases %standard-phases
5034 (add-after 'build 'build-ext
5035 (lambda _ (invoke "rake" "compile:unf_ext")))
5036 (add-before 'check 'lose-rake-compiler-dock-dependency
5038 ;; rake-compiler-dock is listed in the gemspec, but only
5039 ;; required when cross-compiling.
5040 (substitute* "unf_ext.gemspec"
5041 ((".*rake-compiler-dock.*") ""))
5044 `(("bundler" ,bundler)
5045 ("ruby-rake-compiler" ,ruby-rake-compiler)
5046 ("ruby-test-unit" ,ruby-test-unit)))
5047 (synopsis "Unicode normalization form support library")
5049 "This package provides unicode normalization form support for Ruby.")
5050 (home-page "https://github.com/knu/ruby-unf_ext")
5051 (license license:expat)))
5053 (define-public ruby-tdiff
5054 ;; Use a newer than released snapshot so that rspec-2 is not required.
5055 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5058 (version (string-append "0.3.3-1." (string-take commit 8)))
5062 (url "https://github.com/postmodern/tdiff.git")
5064 (file-name (string-append name "-" version "-checkout"))
5067 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5068 (build-system ruby-build-system)
5070 `(("ruby-rspec" ,ruby-rspec)
5071 ("ruby-yard" ,ruby-yard)
5072 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5073 (synopsis "Calculate the differences between two tree-like structures")
5075 "This library provides functions to calculate the differences between two
5076 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5077 (home-page "https://github.com/postmodern/tdiff")
5078 (license license:expat))))
5080 (define-public ruby-nokogiri-diff
5081 ;; Use a newer than released snapshot so that rspec-2 is not required.
5082 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5084 (name "ruby-nokogiri-diff")
5085 (version (string-append "0.2.0-1." (string-take commit 8)))
5089 (url "https://github.com/postmodern/nokogiri-diff.git")
5091 (file-name (string-append name "-" version "-checkout"))
5094 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5095 (build-system ruby-build-system)
5097 `(("ruby-tdiff" ,ruby-tdiff)
5098 ("ruby-nokogiri" ,ruby-nokogiri)))
5100 `(("ruby-rspec" ,ruby-rspec)
5101 ("ruby-yard" ,ruby-yard)
5102 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5103 (synopsis "Calculate the differences between two XML/HTML documents")
5105 "@code{Nokogiri::Diff} adds the ability to calculate the
5106 differences (added or removed nodes) between two XML/HTML documents.")
5107 (home-page "https://github.com/postmodern/nokogiri-diff")
5108 (license license:expat))))
5110 (define-public ruby-racc
5117 (uri (rubygems-uri "racc" version))
5120 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5121 (build-system ruby-build-system)
5123 `(("ruby-hoe" ,ruby-hoe)
5124 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5125 (synopsis "LALR(1) parser generator for Ruby")
5127 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5128 generates Ruby program.")
5129 (home-page "http://i.loveruby.net/en/projects/racc/")
5131 ;; Generally licensed under the LGPL2.1, and some files also
5132 ;; available under the same license as Ruby.
5136 (define-public ruby-rack
5143 ;; Download from GitHub so that the patch can be applied.
5145 (url "https://github.com/rack/rack")
5147 (file-name (git-file-name name version))
5150 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5151 ;; Ignore test which fails inside the build environment but works
5153 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5154 (build-system ruby-build-system)
5157 (modify-phases %standard-phases
5158 (add-before 'check 'fix-tests
5160 ;; A few of the tests use the length of a file on disk for
5161 ;; Content-Length and Content-Range headers. However, this file
5162 ;; has a shebang in it which an earlier phase patches, growing
5163 ;; the file size from 193 to 239 bytes when the store prefix is
5165 (let ((size-diff (- (string-length (which "ruby"))
5166 (string-length "/usr/bin/env ruby"))))
5167 (substitute* '("test/spec_file.rb")
5169 (number->string (+ 193 size-diff)))
5170 (("bytes(.)22-33" all delimiter)
5171 (string-append "bytes"
5173 (number->string (+ 22 size-diff))
5175 (number->string (+ 33 size-diff))))))
5177 (add-before 'reset-gzip-timestamps 'make-files-writable
5178 (lambda* (#:key outputs #:allow-other-keys)
5179 ;; Make sure .gz files are writable so that the
5180 ;; 'reset-gzip-timestamps' phase can do its work.
5181 (let ((out (assoc-ref outputs "out")))
5182 (for-each make-file-writable
5183 (find-files out "\\.gz$"))
5186 `(("ruby-minitest" ,ruby-minitest)
5187 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5190 `(("ruby-concurrent" ,ruby-concurrent)))
5191 (synopsis "Unified web application interface for Ruby")
5192 (description "Rack provides a minimal, modular and adaptable interface for
5193 developing web applications in Ruby. By wrapping HTTP requests and responses,
5194 it unifies the API for web servers, web frameworks, and software in between
5195 into a single method call.")
5196 (home-page "https://rack.github.io/")
5197 (license license:expat)))
5199 (define-public ruby-rack-test
5201 (name "ruby-rack-test")
5206 (uri (rubygems-uri "rack-test" version))
5209 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5210 (build-system ruby-build-system)
5212 ;; Disable tests because of circular dependencies: requires sinatra,
5213 ;; which requires rack-protection, which requires rack-test. Instead
5214 ;; simply require the library.
5216 (modify-phases %standard-phases
5219 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5221 `(("ruby-rack" ,ruby-rack)))
5222 (synopsis "Testing API for Rack applications")
5224 "Rack::Test is a small, simple testing API for Rack applications. It can
5225 be used on its own or as a reusable starting point for Web frameworks and
5226 testing libraries to build on.")
5227 (home-page "https://github.com/rack-test/rack-test")
5228 (license license:expat)))
5230 (define-public ruby-rack-protection
5232 (name "ruby-rack-protection")
5237 (uri (rubygems-uri "rack-protection" version))
5240 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5241 (build-system ruby-build-system)
5243 '(;; Tests missing from the gem.
5246 `(("ruby-rack" ,ruby-rack)))
5248 `(("bundler" ,bundler)
5249 ("ruby-rspec" ,ruby-rspec-2)
5250 ("ruby-rack-test" ,ruby-rack-test)))
5251 (synopsis "Rack middleware that protects against typical web attacks")
5252 (description "Rack middleware that can be used to protect against typical
5253 web attacks. It can protect all Rack apps, including Rails. For instance, it
5254 protects against cross site request forgery, cross site scripting,
5255 clickjacking, directory traversal, session hijacking and IP spoofing.")
5256 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5257 (license license:expat)))
5259 (define-public ruby-rainbow
5261 (name "ruby-rainbow")
5266 (uri (rubygems-uri "rainbow" version))
5269 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5270 (build-system ruby-build-system)
5273 (modify-phases %standard-phases
5274 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5277 (lambda* (#:key tests? #:allow-other-keys)
5282 `(("bundler" ,bundler)
5283 ("ruby-rspec" ,ruby-rspec)))
5284 (synopsis "Colorize printed text on ANSI terminals")
5286 "@code{rainbow} provides a string presenter object to colorize strings by
5287 wrapping them in ANSI escape codes.")
5288 (home-page "https://github.com/sickill/rainbow")
5289 (license license:expat)))
5291 (define-public ruby-rr
5298 (uri (rubygems-uri "rr" version))
5301 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5302 (build-system ruby-build-system)
5304 '(#:tests? #f)) ; test files not included
5306 `(("bundler" ,bundler)
5307 ("ruby-rspec" ,ruby-rspec)))
5308 (synopsis "Ruby test double framework")
5310 "RR is a test double framework that features a rich selection of double
5311 techniques and a terse syntax.")
5312 (home-page "https://rr.github.io/rr/")
5313 (license license:expat)))
5315 (define-public ruby-rest-client
5317 (name "ruby-rest-client")
5322 (uri (rubygems-uri "rest-client" version))
5325 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5326 (build-system ruby-build-system)
5329 (modify-phases %standard-phases
5330 (add-before 'check 'remove-unnecessary-development-dependencies
5332 (substitute* "rest-client.gemspec"
5333 ;; Remove rubocop as it's unused. Rubocop also indirectly
5334 ;; depends on this package through ruby-parser and ruby-ast so
5335 ;; this avoids a dependency loop.
5336 ((".*rubocop.*") "\n")
5337 ;; Remove pry as it's unused, it's a debugging tool
5339 ;; Remove an unnecessarily strict rdoc dependency
5340 ((".*rdoc.*") "\n"))
5342 (add-before 'check 'delete-network-dependent-tests
5344 (delete-file "spec/integration/request_spec.rb")
5345 (delete-file "spec/integration/httpbin_spec.rb")
5348 `(("ruby-http-cookie" ,ruby-http-cookie)
5349 ("ruby-mime-types" ,ruby-mime-types)
5350 ("ruby-netrc" ,ruby-netrc)))
5352 `(("bundler" ,bundler)
5353 ("ruby-webmock" ,ruby-webmock-2)
5354 ("ruby-rspec" ,ruby-rspec)))
5355 (synopsis "Simple HTTP and REST client for Ruby")
5357 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5358 inspired by the Sinatra microframework style of specifying actions:
5359 @code{get}, @code{put}, @code{post}, @code{delete}.")
5360 (home-page "https://github.com/rest-client/rest-client")
5361 (license license:expat)))
5363 (define-public ruby-rubocop
5365 (name "ruby-rubocop")
5370 (uri (rubygems-uri "rubocop" version))
5373 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
5374 (build-system ruby-build-system)
5376 '(;; No included tests
5379 `(("ruby-parser" ,ruby-parser)
5380 ("ruby-powerpack" ,ruby-powerpack)
5381 ("ruby-rainbow" ,ruby-rainbow)
5382 ("ruby-progressbar" ,ruby-progressbar)
5383 ("ruby-parallel" ,ruby-parallel)
5384 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5385 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5386 (synopsis "Ruby code style checking tool")
5388 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5389 the community-driven Ruby Style Guide.")
5390 (home-page "https://github.com/rubocop-hq/rubocop")
5391 (license license:expat)))
5393 (define-public ruby-contest
5395 (name "ruby-contest")
5400 (uri (rubygems-uri "contest" version))
5403 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5404 (build-system ruby-build-system)
5405 (synopsis "Write declarative tests using nested contexts")
5407 "Contest allows writing declarative @code{Test::Unit} tests using nested
5408 contexts without performance penalties.")
5409 (home-page "https://github.com/citrusbyte/contest")
5410 (license license:expat)))
5412 (define-public ruby-creole
5414 (name "ruby-creole")
5419 (uri (rubygems-uri "creole" version))
5422 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5423 (build-system ruby-build-system)
5425 `(("ruby-bacon" ,ruby-bacon)))
5426 (synopsis "Creole markup language converter")
5428 "Creole is a lightweight markup language and this library for converting
5429 creole to @code{HTML}.")
5430 (home-page "https://github.com/minad/creole")
5431 (license license:ruby)))
5433 (define-public ruby-docile
5435 (name "ruby-docile")
5440 (uri (rubygems-uri "docile" version))
5443 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5444 (build-system ruby-build-system)
5446 '(#:tests? #f)) ; needs github-markup, among others
5447 (synopsis "Ruby EDSL helper library")
5448 (description "Docile is a Ruby library that provides an interface for
5449 creating embedded domain specific languages (EDSLs) that manipulate existing
5451 (home-page "https://ms-ati.github.io/docile/")
5452 (license license:expat)))
5454 (define-public ruby-gherkin
5456 (name "ruby-gherkin")
5461 (uri (rubygems-uri "gherkin" version))
5464 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5465 (build-system ruby-build-system)
5467 `(("bundler" ,bundler)))
5469 '(#:tests? #f)) ; needs simplecov, among others
5470 (synopsis "Gherkin parser for Ruby")
5471 (description "Gherkin is a parser and compiler for the Gherkin language.
5472 It is intended be used by all Cucumber implementations to parse
5473 @file{.feature} files.")
5474 (home-page "https://github.com/cucumber-attic/gherkin")
5475 (license license:expat)))
5477 (define-public ruby-aruba
5484 (uri (rubygems-uri "aruba" version))
5487 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
5488 (build-system ruby-build-system)
5490 '(#:test-target "spec"
5492 (modify-phases %standard-phases
5493 (add-after 'unpack 'patch
5495 (substitute* "spec/aruba/api_spec.rb"
5496 ;; This resolves some errors in the specs
5498 ;; undefined method `parse' for Time:Class
5499 (("require 'spec_helper'")
5500 "require 'spec_helper'\nrequire 'time'"))
5501 ;; Avoid shebang issues in this spec file
5502 (substitute* "spec/aruba/matchers/command_spec.rb"
5503 (("/usr/bin/env bash")
5506 (add-before 'check 'remove-unnecessary-dependencies
5508 (substitute* "Gemfile"
5509 ((".*byebug.*") "\n")
5513 ((".*kramdown.*") "\n")
5514 ((".*rubocop.*") "\n")
5515 ((".*cucumber-pro.*") "\n")
5516 ((".*cucumber.*") "\n")
5517 ((".*license_finder.*") "\n")
5518 ((".*rake.*") "gem 'rake'\n")
5519 ((".*relish.*") "\n"))
5520 (substitute* "aruba.gemspec"
5521 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5522 "spec.add_runtime_dependency 'cucumber'"))
5524 (add-before 'check 'set-home
5525 (lambda _ (setenv "HOME" "/tmp") #t)))))
5527 `(("bundler" ,bundler)
5528 ("ruby-rspec" ,ruby-rspec)
5529 ("ruby-fuubar" ,ruby-fuubar)
5530 ("ruby-simplecov" ,ruby-simplecov)))
5532 `(("ruby-childprocess" ,ruby-childprocess)
5533 ("ruby-contracts" ,ruby-contracts)
5534 ("ruby-cucumber" ,ruby-cucumber)
5535 ("ruby-ffi" ,ruby-ffi)
5536 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5537 ("ruby-thor" ,ruby-thor)
5538 ("ruby-yard" ,ruby-yard)))
5539 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5541 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5542 command-line applications. It supports applications written in any
5544 (home-page "https://github.com/cucumber/aruba")
5545 (license license:expat)))
5547 ;; A version of ruby-aruba without tests run so that circular dependencies can
5549 (define ruby-aruba-without-tests
5551 (inherit ruby-aruba)
5552 (arguments '(#:tests? #f))
5554 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5555 ,@(alist-delete "ruby-cucumber"
5556 (package-propagated-inputs ruby-aruba))))
5557 (native-inputs '())))
5559 (define-public ruby-cucumber
5561 (name "ruby-cucumber")
5567 (url "https://github.com/cucumber/cucumber-ruby.git")
5568 (commit (string-append "v" version))))
5569 (file-name (git-file-name name version))
5572 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5573 (build-system ruby-build-system)
5575 '(#:test-target "spec"
5577 (modify-phases %standard-phases
5578 ;; Don't run or require rubocop, the code linting tool, as this is a
5580 (add-after 'unpack 'dont-run-rubocop
5582 (substitute* "Rakefile"
5583 ((".*rubocop/rake\\_task.*") "")
5584 ((".*RuboCop.*") ""))
5587 `(("ruby-builder" ,ruby-builder)
5588 ("ruby-cucumber-core" ,ruby-cucumber-core)
5589 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5590 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5591 ("ruby-diff-lcs" ,ruby-diff-lcs)
5592 ("ruby-gherkin" ,ruby-gherkin)
5593 ("ruby-multi-json" ,ruby-multi-json)
5594 ("ruby-multi-test" ,ruby-multi-test)))
5596 `(("bundler" ,bundler)
5597 ;; Use a untested version of aruba, to avoid a circular dependency, as
5598 ;; ruby-aruba depends on ruby-cucumber.
5599 ("ruby-aruba", ruby-aruba-without-tests)
5600 ("ruby-rspec" ,ruby-rspec)
5601 ("ruby-pry" ,ruby-pry)
5602 ("ruby-nokogiri" ,ruby-nokogiri)))
5603 (synopsis "Describe automated tests in plain language")
5605 "Cucumber is a tool for running automated tests written in plain
5606 language. It's designed to support a Behaviour Driven Development (BDD)
5607 software development workflow.")
5608 (home-page "https://cucumber.io/")
5609 (license license:expat)))
5611 (define ruby-cucumber-without-tests
5612 (package (inherit ruby-cucumber)
5618 (define-public ruby-cucumber-core
5620 (name "ruby-cucumber-core")
5621 ;; Stick to major version 3, until version 4 of Cucumber is released.
5626 (uri (rubygems-uri "cucumber-core" version))
5629 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5630 (build-system ruby-build-system)
5632 `(("ruby-backports" ,ruby-backports)
5633 ("ruby-gherkin" ,ruby-gherkin)
5634 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5636 `(("bundler" ,bundler)))
5638 '(#:tests? #f)) ; needs simplecov, among others
5639 (synopsis "Core library for the Cucumber BDD app")
5640 (description "Cucumber is a tool for running automated tests
5641 written in plain language. Because they're written in plain language,
5642 they can be read by anyone on your team. Because they can be read by
5643 anyone, you can use them to help improve communication, collaboration
5644 and trust on your team.")
5645 (home-page "https://cucumber.io/")
5646 (license license:expat)))
5648 (define-public ruby-cucumber-expressions
5650 (name "ruby-cucumber-expressions")
5655 (uri (rubygems-uri "cucumber-expressions" version))
5658 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5659 (build-system ruby-build-system)
5661 '(#:test-target "spec"))
5663 `(("bundler" ,bundler)
5664 ("ruby-rspec" ,ruby-rspec)
5665 ("ruby-simplecov" ,ruby-simplecov)))
5666 (synopsis "Simpler alternative to Regular Expressions")
5667 (description "Cucumber Expressions offer similar functionality to Regular
5668 Expressions, with a syntax that is easier to read and write. Cucumber
5669 Expressions are extensible with parameter types.")
5670 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5671 (license license:expat)))
5673 (define-public ruby-cucumber-wire
5675 (name "ruby-cucumber-wire")
5676 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5677 ;; 3, and Cucumber 4 hasn't been released yet.
5682 (uri (rubygems-uri "cucumber-wire" version))
5685 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5686 (build-system ruby-build-system)
5688 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5689 ;; which would lead to a circular dependency.
5691 #:test-target "default"
5693 (modify-phases %standard-phases
5694 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5696 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5699 `(("bundler" ,bundler)
5700 ("ruby-rspec" ,ruby-rspec)))
5701 (synopsis "Cucumber wire protocol plugin")
5703 "Cucumber's wire protocol allows step definitions to be implemented and
5704 invoked on any platform.")
5705 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5706 (license license:expat)))
5708 (define-public ruby-cucumber-tag-expressions
5710 (name "ruby-cucumber-tag-expressions")
5715 (uri (rubygems-uri "cucumber-tag_expressions" version))
5718 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5719 (build-system ruby-build-system)
5722 (modify-phases %standard-phases
5728 `(("ruby-rspec" ,ruby-rspec)))
5729 (synopsis "Cucumber tag expressions for Ruby")
5731 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5732 boolean expression used by Cucumber.")
5733 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5734 (license license:expat)))
5736 (define-public ruby-bindex
5738 (name "ruby-bindex")
5743 (uri (rubygems-uri "bindex" version))
5746 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
5747 (build-system ruby-build-system)
5749 '(#:test-target "default"))
5751 `(("bundler" ,bundler)
5752 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5753 (synopsis "Provides access for bindings relating to Ruby exceptions")
5755 "@code{bindex} provides a way to access the bindings that relate to
5756 exceptions in Ruby, providing more information about the context in which the
5757 exception occurred.")
5758 (home-page "https://github.com/gsamokovarov/bindex")
5759 (license license:expat)))
5761 (define-public ruby-bio-logger
5763 (name "ruby-bio-logger")
5768 (uri (rubygems-uri "bio-logger" version))
5771 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5772 (build-system ruby-build-system)
5774 `(#:tests? #f)) ; rake errors, missing shoulda
5776 `(("ruby-log4r" ,ruby-log4r)))
5777 (synopsis "Log4r wrapper for Ruby")
5778 (description "Bio-logger is a wrapper around Log4r adding extra logging
5779 features such as filtering and fine grained logging.")
5780 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5781 (license license:expat)))
5783 (define-public ruby-yajl-ruby
5785 (name "ruby-yajl-ruby")
5790 (uri (rubygems-uri "yajl-ruby" version))
5793 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5794 (build-system ruby-build-system)
5796 '(#:test-target "spec"
5798 (modify-phases %standard-phases
5799 (add-before 'check 'patch-test-to-update-load-path
5801 (substitute* "spec/parsing/large_number_spec.rb"
5802 (("require \"yajl\"")
5803 "$LOAD_PATH << 'lib'; require 'yajl'"))
5806 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5807 ("ruby-rspec" ,ruby-rspec)))
5808 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5810 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5811 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5814 A modified copy of yajl is used, and included in the package.")
5815 (home-page "https://github.com/brianmario/yajl-ruby")
5816 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5817 license:bsd-3)))) ; Included, modified copy of yajl
5819 (define-public ruby-yard
5826 ;; Tests do not pass if we build from the distributed gem.
5828 (url "https://github.com/lsegal/yard")
5829 (commit (string-append "v" version))))
5830 (file-name (git-file-name name version))
5833 "1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
5834 (build-system ruby-build-system)
5837 (modify-phases %standard-phases
5840 ;; Delete the Gemfile to avoid errors relating to it
5841 (delete-file "Gemfile")
5842 ;; $HOME needs to be set to somewhere writeable for tests to run
5843 (setenv "HOME" "/tmp")
5844 ;; Run tests without using 'rake' to avoid dependencies.
5845 (invoke "rspec"))))))
5847 `(("ruby-rspec" ,ruby-rspec)
5848 ("ruby-rack" ,ruby-rack)
5849 ("ruby-redcloth" ,ruby-redcloth)
5850 ("ruby-asciidoc" ,ruby-asciidoctor)))
5851 (synopsis "Documentation generation tool for Ruby")
5853 "YARD is a documentation generation tool for the Ruby programming
5854 language. It enables the user to generate consistent, usable documentation
5855 that can be exported to a number of formats very easily, and also supports
5856 extending for custom Ruby constructs such as custom class level definitions.")
5857 (home-page "https://yardoc.org")
5858 (license license:expat)))
5860 (define-public ruby-clap
5866 (uri (rubygems-uri "clap" version))
5869 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5870 (build-system ruby-build-system)
5871 ;; Clap needs cutest for running tests, but cutest needs clap.
5872 (arguments `(#:tests? #f))
5873 (synopsis "Command line argument parsing for simple applications")
5875 "Clap provides command line argument parsing features. It covers the
5876 simple case of executing code based on the flags or parameters passed.")
5877 (home-page "https://github.com/djanowski/cutest")
5878 (license license:expat)))
5880 (define-public ruby-cutest
5882 (name "ruby-cutest")
5886 (uri (rubygems-uri "cutest" version))
5889 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5890 (build-system ruby-build-system)
5892 `(("ruby-clap" ,ruby-clap)))
5893 (synopsis "Run tests in separate processes")
5895 "Cutest runs tests in separate processes to avoid shared state.")
5896 (home-page "https://github.com/djanowski/cutest")
5897 (license license:expat)))
5899 (define-public ruby-pygmentize
5901 (name "ruby-pygmentize")
5905 (uri (rubygems-uri "pygmentize" version))
5908 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5909 (build-system ruby-build-system)
5912 (modify-phases %standard-phases
5913 (add-after 'unpack 'fix-pygmentize-path
5915 (substitute* "lib/pygmentize.rb"
5916 (("\"/usr/bin/env python.*")
5917 (string-append "\"" (which "pygmentize") "\"\n")))
5919 (add-after 'build 'do-not-use-vendor-directory
5921 ;; Remove bundled pygments sources
5922 ;; FIXME: ruby-build-system does not support snippets.
5923 (delete-file-recursively "vendor")
5924 (substitute* "pygmentize.gemspec"
5925 (("\"vendor/\\*\\*/\\*\",") ""))
5928 `(("pygments" ,python-pygments)))
5930 `(("ruby-cutest" ,ruby-cutest)
5931 ("ruby-nokogiri" ,ruby-nokogiri)))
5932 (synopsis "Thin Ruby wrapper around pygmentize")
5934 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5936 (home-page "https://github.com/djanowski/pygmentize")
5937 (license license:expat)))
5939 (define-public ruby-eventmachine
5941 (name "ruby-eventmachine")
5946 (uri (rubygems-uri "eventmachine" version))
5949 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5950 (build-system ruby-build-system)
5952 '(#:tests? #f)) ; test suite tries to connect to google.com
5954 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5955 (synopsis "Single-threaded network event framework for Ruby")
5957 "EventMachine implements a single-threaded engine for arbitrary network
5958 communications. EventMachine wraps all interactions with sockets, allowing
5959 programs to concentrate on the implementation of network protocols. It can be
5960 used to create both network servers and clients.")
5961 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5962 (home-page "https://github.com/eventmachine/eventmachine")
5963 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5965 (define-public ruby-ruby-engine
5967 (name "ruby-ruby-engine")
5972 (uri (rubygems-uri "ruby_engine" version))
5975 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5976 (build-system ruby-build-system)
5979 (modify-phases %standard-phases
5980 (add-before 'check 'clean-up
5982 (delete-file "Gemfile.lock")
5983 (substitute* "ruby_engine.gemspec"
5984 ;; Remove unnecessary imports that would entail further
5987 ((".*<rubygems-tasks.*") "")
5988 ;; Remove extraneous .gem file
5989 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5990 ;; Soften rake dependency
5991 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5992 "%q<rake>.freeze, [\">= 10.0\"]")
5993 ;; Soften the rspec dependency
5994 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5995 "%q<rspec>.freeze, [\">= 2.4\"]"))
5996 (substitute* "Rakefile"
5997 (("require 'rubygems/tasks'") "")
5998 (("Gem::Tasks.new") ""))
5999 ;; Remove extraneous .gem file that otherwise gets installed.
6000 (delete-file "pkg/ruby_engine-1.0.0.gem")
6003 `(("bundler" ,bundler)
6004 ("ruby-rake" ,ruby-rake)
6005 ("ruby-rspec" ,ruby-rspec)))
6006 (synopsis "Simplifies checking for Ruby implementation")
6008 "@code{ruby_engine} provides an RubyEngine class that can be used to
6009 check which implementation of Ruby is in use. It can provide the interpreter
6010 name and provides query methods such as @{RubyEngine.mri?}.")
6011 (home-page "https://github.com/janlelis/ruby_engine")
6012 (license license:expat)))
6014 (define-public ruby-turn
6021 (uri (rubygems-uri "turn" version))
6024 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
6025 (build-system ruby-build-system)
6028 (modify-phases %standard-phases
6029 ;; Tests fail because turn changes its environment so can no longer
6030 ;; find test/unit. Instead simply test if the executable runs
6034 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
6036 `(("ruby-ansi" ,ruby-ansi)
6037 ("ruby-minitest" ,ruby-minitest-4)))
6038 (synopsis "Alternate set of alternative runners for MiniTest")
6040 "TURN provides a set of alternative runners for MiniTest which are both
6041 colorful and informative. TURN displays each test on a separate line with
6042 failures being displayed immediately instead of at the end of the tests. Note
6043 that TURN is no longer being maintained.")
6044 (home-page "https://rubygems.org/gems/turn")
6045 (license license:expat)))
6047 (define-public ruby-mimemagic
6049 (name "ruby-mimemagic")
6054 (uri (rubygems-uri "mimemagic" version))
6056 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
6057 (build-system ruby-build-system)
6060 (modify-phases %standard-phases
6061 ;; This phase breaks the tests, as it patches some of the test data.
6062 (delete 'patch-source-shebangs))))
6064 `(("ruby-bacon" ,ruby-bacon)))
6065 (synopsis "Ruby library for MIME detection by extension or content")
6067 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
6068 extension or content, using the freedesktop.org.xml shared-mime-info
6070 (home-page "https://github.com/minad/mimemagic")
6071 (license license:expat)))
6073 (define-public ruby-mime-types-data
6075 (name "ruby-mime-types-data")
6076 (version "3.2016.0521")
6080 (uri (rubygems-uri "mime-types-data" version))
6083 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
6084 (build-system ruby-build-system)
6086 `(("ruby-hoe" ,ruby-hoe)))
6087 (synopsis "Registry for information about MIME media type definitions")
6089 "@code{mime-types-data} provides a registry for information about
6090 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6091 be used with the Ruby mime-types library or other software to determine
6092 defined filename extensions for MIME types, or to use filename extensions to
6093 look up the likely MIME type definitions.")
6094 (home-page "https://github.com/mime-types/mime-types-data/")
6095 (license license:expat)))
6097 (define-public ruby-mime-types
6099 (name "ruby-mime-types")
6104 (uri (rubygems-uri "mime-types" version))
6107 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
6108 (build-system ruby-build-system)
6110 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6112 `(("ruby-hoe" ,ruby-hoe)
6113 ("ruby-fivemat" ,ruby-fivemat)
6114 ("ruby-minitest-focus" ,ruby-minitest-focus)
6115 ("ruby-minitest-rg" ,ruby-minitest-rg)
6116 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6117 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
6118 (synopsis "Library and registry for MIME content type definitions")
6119 (description "The mime-types library provides a library and registry for
6120 information about Multipurpose Internet Mail Extensions (MIME) content type
6121 definitions. It can be used to determine defined filename extensions for MIME
6122 types, or to use filename extensions to look up the likely MIME type
6124 (home-page "https://github.com/mime-types/ruby-mime-types")
6125 (license license:expat)))
6127 (define-public ruby-fivemat
6129 (name "ruby-fivemat")
6134 (uri (rubygems-uri "fivemat" version))
6137 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
6138 (build-system ruby-build-system)
6140 `(#:tests? #f)) ; no tests
6141 (synopsis "Each test file given its own line of dots")
6143 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6144 its own line of dots during testing. It aims to provide test output that is
6145 neither too verbose nor too minimal.")
6146 (home-page "https://github.com/tpope/fivemat")
6147 (license license:expat)))
6149 (define-public ruby-sqlite3
6151 (name "ruby-sqlite3")
6156 (uri (rubygems-uri "sqlite3" version))
6159 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
6160 (build-system ruby-build-system)
6163 (modify-phases %standard-phases
6164 (add-before 'check 'add-gemtest-file
6165 ;; This file exists in the repository but is not distributed.
6166 (lambda _ (invoke "touch" ".gemtest"))))))
6168 `(("sqlite" ,sqlite)))
6170 `(("ruby-hoe" ,ruby-hoe)
6171 ("ruby-rake-compiler" ,ruby-rake-compiler)
6172 ("ruby-mini-portile" ,ruby-mini-portile)))
6173 (synopsis "Interface with SQLite3 databases")
6175 "This module allows Ruby programs to interface with the SQLite3 database
6178 "https://github.com/sparklemotion/sqlite3-ruby")
6179 (license license:bsd-3)))
6181 (define-public ruby-shoulda-context
6183 (name "ruby-shoulda-context")
6188 (uri (rubygems-uri "shoulda-context" version))
6191 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
6192 (build-system ruby-build-system)
6195 (modify-phases %standard-phases
6198 ;; Do not run tests to avoid circular dependence with rails.
6199 ;; Instead just import the library to test.
6200 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
6201 (synopsis "Test::Unit context framework extracted from Shoulda")
6203 "@code{shoulda-context} is the context framework extracted from Shoulda.
6204 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6205 context, setup, and should blocks combine to produce natural test method
6207 (home-page "https://github.com/thoughtbot/shoulda-context")
6208 (license license:expat)))
6210 (define-public ruby-shoulda-matchers
6212 (name "ruby-shoulda-matchers")
6217 (uri (rubygems-uri "shoulda-matchers" version))
6220 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6221 (build-system ruby-build-system)
6224 (modify-phases %standard-phases
6227 ;; Do not run tests to avoid circular dependence with rails. Instead
6228 ;; just import the library to test.
6229 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6231 `(("ruby-activesupport" ,ruby-activesupport)))
6232 (synopsis "Collection of testing matchers extracted from Shoulda")
6234 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6235 test common Rails functionality. These tests would otherwise be much longer,
6236 more complex, and error-prone.")
6237 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6238 (license license:expat)))
6240 (define-public ruby-shoulda-matchers-2
6242 (inherit ruby-shoulda-matchers)
6246 (uri (rubygems-uri "shoulda-matchers" version))
6249 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6251 (define-public ruby-shoulda
6253 (name "ruby-shoulda")
6258 (uri (rubygems-uri "shoulda" version))
6261 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6262 (build-system ruby-build-system)
6265 (modify-phases %standard-phases
6267 ;; Don't run tests to avoid circular dependence with rails. Instead
6268 ;; just import the library to test.
6269 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6271 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6272 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6273 (synopsis "Context framework and matchers for testing")
6275 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6276 @code{shoulda-matchers} providing tools for writing tests.")
6277 (home-page "https://github.com/thoughtbot/shoulda")
6278 (license license:expat)))
6280 (define-public ruby-unf
6287 (uri (rubygems-uri "unf" version))
6290 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6291 (build-system ruby-build-system)
6294 (modify-phases %standard-phases
6295 (add-before 'check 'add-dependency-to-bundler
6297 ;; test-unit is required but not provided by the bundler
6298 ;; environment. This is fixed in the upstream repository but fix
6299 ;; has not been released.
6300 (substitute* "Gemfile"
6301 (("^gemspec") "gem 'test-unit'\ngemspec"))
6304 `(("ruby-unf-ext" ,ruby-unf-ext)))
6306 `(("ruby-shoulda" ,ruby-shoulda)
6307 ("bundler" ,bundler)
6308 ("ruby-test-unit" ,ruby-test-unit)))
6309 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6311 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6312 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6313 @code{java.text.Normalizer} on JRuby.")
6314 (home-page "https://github.com/knu/ruby-unf")
6315 (license license:bsd-2)))
6317 (define-public ruby-warden
6319 (name "ruby-warden")
6324 (uri (rubygems-uri "warden" version))
6327 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6328 (build-system ruby-build-system)
6330 '(#:tests? #f)) ; No included tests
6332 `(("ruby-rack" ,ruby-rack)))
6333 (synopsis "Rack middleware providing authentication")
6335 "Warden is a Rack-based middleware that provides a mechanism for
6336 authentication in Ruby web applications.")
6337 (home-page "https://github.com/wardencommunity/warden")
6338 (license license:expat)))
6340 (define-public ruby-warden-oauth2
6342 (name "ruby-warden-oauth2")
6347 (uri (rubygems-uri "warden-oauth2" version))
6350 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6351 (build-system ruby-build-system)
6353 '(#:test-target "spec"
6355 (modify-phases %standard-phases
6356 (add-after 'unpack 'remove-unnecessary-dependencies
6358 (substitute* "Gemfile"
6359 ;; All of these gems relate to development, and are unnecessary
6360 ;; when running the tests
6361 (("gem 'guard-bundler'") "")
6362 (("gem 'guard'") "")
6363 (("gem 'guard-rspec'") "")
6364 (("gem 'rb-fsevent'") "")
6366 (("gem 'growl'") ""))
6368 ;; The test suite doesn't work with rspec@2, and this is incompatible
6369 ;; with the current version of Rake, so invoke Rspec directly
6371 (lambda* (#:key tests? #:allow-other-keys)
6373 (invoke "bundle" "exec" "rspec"))
6376 `(("ruby-warden" ,ruby-warden)))
6378 `(("bundler" ,bundler)
6379 ("ruby-rspec" ,ruby-rspec-2)
6380 ("ruby-rack-test" ,ruby-rack-test)))
6381 (synopsis "OAuth 2.0 strategies for Warden")
6383 "This library extends Warden to support OAuth 2.0 authorized API
6385 (home-page "https://github.com/opperator/warden-oauth2")
6386 (license license:expat)))
6388 (define-public ruby-webmock-2
6390 (name "ruby-webmock")
6395 (uri (rubygems-uri "webmock" version))
6398 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6399 (build-system ruby-build-system)
6401 `(("bundler" ,bundler)
6402 ("ruby-rspec" ,ruby-rspec)))
6404 `(("ruby-addressable" ,ruby-addressable)
6405 ("ruby-crack" ,ruby-crack)
6406 ("ruby-hashdiff" ,ruby-hashdiff)))
6407 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6409 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6410 requests. This is useful when testing software.")
6411 (home-page "https://github.com/bblimke/webmock")
6412 (license license:expat)))
6414 (define-public ruby-unicode-display-width
6416 (name "ruby-unicode-display-width")
6421 (uri (rubygems-uri "unicode-display_width" version))
6424 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
6425 (build-system ruby-build-system)
6427 '(;; Test data not included.
6429 (synopsis "Determine the monospace display width of Ruby strings")
6431 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6432 display width of strings in Ruby.")
6433 (home-page "https://github.com/janlelis/unicode-display_width")
6434 (license license:expat)))
6436 ;; There is another gem called 'ruby-version' so we use an underscore in this
6438 (define-public ruby_version
6440 (name "ruby_version")
6445 (uri (rubygems-uri "ruby_version" version))
6448 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6449 (build-system ruby-build-system)
6452 (modify-phases %standard-phases
6453 (add-before 'check 'fix-dependencies
6455 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6456 ;; whatever versions.
6457 (delete-file "Gemfile.lock")
6458 ;; Remove the incldued gem file as it's unnecessary.
6459 (delete-file "pkg/ruby_version-1.0.0.gem")
6460 (substitute* "ruby_version.gemspec"
6461 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6463 ((".*rubygems-tasks.*") "\n")
6464 ;; Accept any version of rake and rspec
6465 (("%q<rake.*") "%q<rake>)\n")
6466 (("%q<rspec.*") "%q<rspec>)\n"))
6467 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6469 (substitute* "Rakefile"
6470 (("^require 'rubygems/tasks'") "")
6471 (("Gem::Tasks.new") ""))
6474 `(("bundler" ,bundler)
6475 ("ruby-rspec" ,ruby-rspec)))
6476 (synopsis "Ruby library to help check the Ruby version")
6478 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6479 checking for the right Ruby version in software.")
6480 (home-page "https://github.com/janlelis/ruby_version")
6481 (license license:expat)))
6483 (define-public ruby-websocket-driver
6485 (name "ruby-websocket-driver")
6490 (uri (rubygems-uri "websocket-driver" version))
6492 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
6493 (build-system ruby-build-system)
6495 '(#:tests? #f)) ; no included tests
6497 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6498 (synopsis "WebSocket protocol handler with pluggable I/O")
6500 "@code{websocket-driver} provides a complete implementation of the
6501 WebSocket protocols that can be hooked up to any TCP library")
6502 (home-page "https://github.com/faye/websocket-driver-ruby")
6503 (license license:expat)))
6505 (define-public ruby-websocket-extensions
6507 (name "ruby-websocket-extensions")
6512 (uri (rubygems-uri "websocket-extensions" version))
6515 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6516 (build-system ruby-build-system)
6518 '(;; No included tests
6520 (synopsis "Generic extension manager for WebSocket connections")
6522 "@code{websocket-extensions} provides a container for registering
6523 extension plugins.")
6524 (home-page "https://github.com/faye/websocket-extensions-ruby")
6525 (license license:expat)))
6527 (define-public ruby-domain-name
6529 (name "ruby-domain-name")
6530 (version "0.5.20180417")
6534 (uri (rubygems-uri "domain_name" version))
6537 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6538 (build-system ruby-build-system)
6541 (modify-phases %standard-phases
6542 (add-before 'check 'fix-versions
6544 ;; Fix NameError that appears to already be fixed upstream.
6545 (substitute* "Rakefile"
6546 (("DomainName::VERSION")
6547 "Bundler::GemHelper.gemspec.version"))
6548 ;; Loosen unnecessarily strict test-unit version specification.
6549 (substitute* "domain_name.gemspec"
6550 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6553 `(("ruby-unf" ,ruby-unf)))
6555 `(("ruby-shoulda" ,ruby-shoulda)
6556 ("bundler" ,bundler)
6557 ("ruby-test-unit" ,ruby-test-unit)))
6558 (synopsis "Domain name manipulation library")
6560 "@code{domain_name} is a Domain name manipulation library. It parses a
6561 domain name ready for extracting the registered domain and TLD (Top Level
6562 Domain). It can also be used for cookie domain validation based on the Public
6564 (home-page "https://github.com/knu/ruby-domain_name")
6565 (license license:bsd-2)))
6567 (define-public ruby-http-cookie
6569 (name "ruby-http-cookie")
6574 (uri (rubygems-uri "http-cookie" version))
6577 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6578 (build-system ruby-build-system)
6581 (modify-phases %standard-phases
6582 (add-before 'check 'add-dependency-to-bundler
6585 (substitute* "Rakefile"
6586 (("HTTP::Cookie::VERSION")
6587 "Bundler::GemHelper.gemspec.version"))
6590 `(("ruby-domain-name" ,ruby-domain-name)))
6592 `(("rubysimplecov" ,ruby-simplecov)
6593 ("bundler" ,bundler)
6594 ("ruby-sqlite3" ,ruby-sqlite3)
6595 ("ruby-test-unit" ,ruby-test-unit)))
6596 (synopsis "Handle HTTP Cookies based on RFC 6265")
6598 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6599 RFC 6265. It has been designed with security, standards compliance and
6600 compatibility in mind, to behave just the same as today's major web browsers.
6601 It has built-in support for the legacy @code{cookies.txt} and
6602 @code{cookies.sqlite} formats of Mozilla Firefox.")
6603 (home-page "https://github.com/sparklemotion/http-cookie")
6604 (license license:expat)))
6606 (define-public ruby-httpclient
6608 (name "ruby-httpclient")
6613 (uri (rubygems-uri "httpclient" version))
6616 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6617 (build-system ruby-build-system)
6619 '(;; TODO: Some tests currently fail
6621 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6622 ;; 2 omissions, 0 notifications
6625 ;; 6.49 tests/s, 22.41 assertions/s
6628 (modify-phases %standard-phases
6630 (lambda* (#:key tests? #:allow-other-keys)
6637 `(("ruby-rack" ,ruby-rack)))
6639 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6641 "The @code{httpclient} ruby library provides functionality related to
6642 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6643 Cookie, multithreading and authentication (digest, NTLM) support.
6645 Also provided is a @command{httpclient} command, which can perform HTTP
6646 requests either using arguments or with an interactive prompt.")
6647 (home-page "https://github.com/nahi/httpclient")
6648 (license license:ruby)))
6650 (define-public ruby-ansi
6657 ;; Fetch from GitHub as the gem does not contain testing code.
6659 (url "https://github.com/rubyworks/ansi")
6661 (file-name (git-file-name name version))
6664 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
6665 (build-system ruby-build-system)
6668 (modify-phases %standard-phases
6669 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6670 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6674 (invoke "ruby" "-Ilib" "-r" "ansi")))
6675 (add-before 'validate-runpath 'replace-broken-symlink
6676 (lambda* (#:key outputs #:allow-other-keys)
6677 (let* ((out (assoc-ref outputs "out"))
6678 (file (string-append
6679 out "/lib/ruby/vendor_ruby/gems/ansi-"
6680 ,version "/lib/ansi.yml")))
6681 ;; XXX: This symlink is broken since ruby 2.4.
6682 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6684 (symlink "../.index" file)
6686 (synopsis "ANSI escape code related libraries")
6688 "This package is a collection of ANSI escape code related libraries
6689 enabling ANSI colorization and stylization of console output. Included in the
6690 library are the @code{Code} module, which defines ANSI codes as constants and
6691 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6692 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6693 @code{Terminal} module which provides information about the current output
6695 (home-page "https://rubyworks.github.io/ansi/")
6696 (license license:bsd-2)))
6698 (define-public ruby-systemu
6700 (name "ruby-systemu")
6705 (uri (rubygems-uri "systemu" version))
6708 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6709 (build-system ruby-build-system)
6712 (modify-phases %standard-phases
6713 (add-before 'check 'set-version
6715 (setenv "VERSION" ,version)
6717 (synopsis "Capture of stdout/stderr and handling of child processes")
6719 "Systemu can be used on any platform to return status, stdout, and stderr
6720 of any command. Unlike other methods like @code{open3} and @code{popen4}
6721 there is no danger of full pipes or threading issues hanging your process or
6723 (home-page "https://github.com/ahoward/systemu")
6724 (license license:ruby)))
6726 (define-public ruby-bio-commandeer
6728 (name "ruby-bio-commandeer")
6733 (uri (rubygems-uri "bio-commandeer" version))
6736 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6737 (build-system ruby-build-system)
6740 (modify-phases %standard-phases
6742 ;; Run test without calling 'rake' so that jeweler is
6743 ;; not required as an input.
6745 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6747 `(("ruby-bio-logger" ,ruby-bio-logger)
6748 ("ruby-systemu" ,ruby-systemu)))
6750 `(("bundler" ,bundler)
6751 ("ruby-rspec" ,ruby-rspec)))
6752 (synopsis "Simplified running of shell commands from within Ruby")
6754 "Bio-commandeer provides an opinionated method of running shell commands
6755 from within Ruby. The advantage of bio-commandeer over other methods of
6756 running external commands is that when something goes wrong, messages printed
6757 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6758 detail to ease debugging.")
6759 (home-page "https://github.com/wwood/bioruby-commandeer")
6760 (license license:expat)))
6762 (define-public ruby-rubytest
6764 (name "ruby-rubytest")
6769 (uri (rubygems-uri "rubytest" version))
6772 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6773 (build-system ruby-build-system)
6775 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6776 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6777 ;; simply test that the library can be require'd.
6779 (modify-phases %standard-phases
6782 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6784 `(("ruby-ansi" ,ruby-ansi)))
6785 (synopsis "Universal test harness for Ruby")
6787 "Rubytest is a testing meta-framework for Ruby. It can handle any
6788 compliant test framework and can run tests from multiple frameworks in a
6790 (home-page "https://rubyworks.github.io/rubytest")
6791 (license license:bsd-2)))
6793 (define-public ruby-brass
6800 (uri (rubygems-uri "brass" version))
6803 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6804 (build-system ruby-build-system)
6806 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6807 ;; Instead simply test that the library can be require'd.
6809 (modify-phases %standard-phases
6812 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6813 (synopsis "Basic foundational assertions framework")
6815 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6816 foundational assertions framework for other assertion and test frameworks to
6818 (home-page "https://rubyworks.github.io/brass")
6819 (license license:bsd-2)))
6821 (define-public ruby-qed
6828 (uri (rubygems-uri "qed" version))
6831 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6832 (build-system ruby-build-system)
6834 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6835 ;; Instead simply test that the executable runs using --copyright.
6837 (modify-phases %standard-phases
6840 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6842 `(("ruby-ansi" ,ruby-ansi)
6843 ("ruby-brass" ,ruby-brass)))
6844 (synopsis "Test framework utilizing literate programming techniques")
6846 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6847 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6848 Development} (BDD) utilizing Literate Programming techniques. QED sits
6849 somewhere between lower-level testing tools like @code{Test::Unit} and
6850 requirement specifications systems like Cucumber.")
6851 (home-page "https://rubyworks.github.io/qed")
6852 (license license:bsd-2)))
6854 (define-public ruby-que
6857 (version "1.0.0.beta3")
6861 (uri (rubygems-uri "que" version))
6864 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6865 (build-system ruby-build-system)
6867 '(#:tests? #f)) ; No included tests
6868 (synopsis "Job queue using PostgreSQL written in Ruby")
6870 "This package provides a job queue that uses PostgreSQL for storing jobs
6871 and locking between worker processes.")
6872 (home-page "https://github.com/chanks/que")
6873 (license license:expat)))
6875 (define-public ruby-ae
6882 ;; Fetch from github so tests are included.
6884 (url "https://github.com/rubyworks/ae")
6886 (file-name (git-file-name name version))
6889 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
6890 (build-system ruby-build-system)
6893 (modify-phases %standard-phases
6895 (lambda _ (invoke "qed")))
6896 (add-before 'validate-runpath 'replace-broken-symlink
6897 (lambda* (#:key outputs #:allow-other-keys)
6898 (let* ((out (assoc-ref outputs "out"))
6899 (file (string-append
6900 out "/lib/ruby/vendor_ruby/gems/ae-"
6901 ,version "/lib/ae.yml")))
6902 ;; XXX: This symlink is broken since ruby 2.4.
6903 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6905 (symlink "../.index" file)
6908 `(("ruby-ansi" ,ruby-ansi)))
6910 `(("ruby-qed" ,ruby-qed)))
6911 (synopsis "Assertions library")
6913 "Assertive Expressive (AE) is an assertions library specifically designed
6914 for reuse by other test frameworks.")
6915 (home-page "https://rubyworks.github.io/ae/")
6916 (license license:bsd-2)))
6918 (define-public ruby-lemon
6925 (uri (rubygems-uri "lemon" version))
6928 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6929 (build-system ruby-build-system)
6932 (modify-phases %standard-phases
6933 (replace 'check (lambda _ (invoke "qed"))))))
6935 `(("ruby-ae" ,ruby-ae)
6936 ("ruby-ansi" ,ruby-ansi)
6937 ("ruby-rubytest" ,ruby-rubytest)))
6939 `(("ruby-qed" ,ruby-qed)))
6940 (synopsis "Test framework correlating code structure and test unit")
6942 "Lemon is a unit testing framework that enforces highly formal
6943 case-to-class and unit-to-method test construction. This enforcement can help
6944 focus concern on individual units of behavior.")
6945 (home-page "https://rubyworks.github.io/lemon")
6946 (license license:bsd-2)))
6948 (define-public ruby-rubytest-cli
6950 (name "ruby-rubytest-cli")
6955 (uri (rubygems-uri "rubytest-cli" version))
6958 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6959 (build-system ruby-build-system)
6961 `(#:tests? #f)) ; no tests
6963 `(("ruby-ansi" ,ruby-ansi)
6964 ("ruby-rubytest" ,ruby-rubytest)))
6965 (synopsis "Command-line interface for rubytest")
6967 "Rubytest CLI is a command-line interface for running tests for
6968 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6969 (home-page "https://rubyworks.github.io/rubytest-cli")
6970 (license license:bsd-2)))
6972 (define-public ruby-hashery
6974 (name "ruby-hashery")
6979 (uri (rubygems-uri "hashery" version))
6982 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6983 (build-system ruby-build-system)
6986 (modify-phases %standard-phases
6990 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6992 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6993 ("ruby-qed" ,ruby-qed)
6994 ("ruby-lemon" ,ruby-lemon)))
6995 (synopsis "Hash-like classes with extra features")
6997 "The Hashery is a tight collection of @code{Hash}-like classes.
6998 Included are the auto-sorting @code{Dictionary} class, the efficient
6999 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
7000 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
7001 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
7002 standard @code{Hash} making it possible to subclass and augment to fit any
7003 specific use case.")
7004 (home-page "https://rubyworks.github.io/hashery")
7005 (license license:bsd-2)))
7007 (define-public ruby-rc4
7014 (uri (rubygems-uri "ruby-rc4" version))
7017 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
7018 (build-system ruby-build-system)
7021 (modify-phases %standard-phases
7024 (invoke "rspec" "spec/rc4_spec.rb"))))))
7026 `(("ruby-rspec" ,ruby-rspec-2)))
7027 (synopsis "Implementation of the RC4 algorithm")
7029 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
7030 (home-page "https://github.com/caiges/Ruby-RC4")
7031 (license license:expat)))
7033 (define-public ruby-afm
7040 (uri (rubygems-uri "afm" version))
7043 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
7044 (build-system ruby-build-system)
7046 `(("bundler" ,bundler)))
7047 (synopsis "Read Adobe Font Metrics (afm) files")
7049 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
7050 files and use the data therein.")
7051 (home-page "https://github.com/halfbyte/afm")
7052 (license license:expat)))
7054 (define-public ruby-ascii85
7056 (name "ruby-ascii85")
7061 (uri (rubygems-uri "Ascii85" version))
7064 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
7065 (build-system ruby-build-system)
7067 `(("bundler" ,bundler)))
7068 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
7070 "This library provides methods to encode and decode Ascii85
7071 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
7072 @dfn{Portable Document Format} (PDF) file formats.")
7073 (home-page "https://github.com/datawraith/ascii85gem")
7074 (license license:expat)))
7076 (define-public ruby-ttfunk
7078 (name "ruby-ttfunk")
7083 ;; fetch from github as the gem does not contain testing code
7085 (url "https://github.com/prawnpdf/ttfunk")
7087 (file-name (git-file-name name version))
7090 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
7091 (build-system ruby-build-system)
7093 `(#:test-target "spec"
7095 (modify-phases %standard-phases
7096 (add-before 'build 'remove-ssh
7098 ;; remove dependency on an ssh key pair that doesn't exist
7099 (substitute* "ttfunk.gemspec"
7100 (("spec.signing_key.*") ""))
7102 (add-before 'check 'remove-rubocop
7104 ;; remove rubocop as a dependency as not needed for testing
7105 (substitute* "ttfunk.gemspec"
7106 (("spec.add_development_dependency\\('rubocop'.*") ""))
7107 (substitute* "Rakefile"
7108 (("require 'rubocop/rake_task'") "")
7109 (("RuboCop::RakeTask.new") ""))
7112 `(("ruby-rspec" ,ruby-rspec)
7113 ("ruby-yard" ,ruby-yard)
7114 ("bundler" ,bundler)))
7115 (synopsis "Font metrics parser for the Prawn PDF generator")
7117 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7118 part of the Prawn PDF generator.")
7119 (home-page "https://github.com/prawnpdf/ttfunk")
7120 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7122 (license (list license:gpl2 license:gpl3 license:ruby))))
7124 (define-public ruby-puma
7131 ;; Fetch from GitHub because distributed gem does not contain tests.
7133 (url "https://github.com/puma/puma")
7134 (commit (string-append "v" version))))
7135 (file-name (git-file-name name version))
7138 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
7139 (build-system ruby-build-system)
7141 `(#:tests? #f ; Tests require an out-dated version of minitest.
7143 (modify-phases %standard-phases
7144 (add-before 'build 'fix-gemspec
7146 (substitute* "puma.gemspec"
7147 (("git ls-files") "find * |sort"))
7149 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7151 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7152 for Ruby/Rack applications. Puma is intended for use in both development and
7153 production environments. In order to get the best throughput, it is highly
7154 recommended that you use a Ruby implementation with real threads like Rubinius
7156 (home-page "https://puma.io/")
7157 (license license:expat)))
7159 (define-public ruby-hoe-git
7161 (name "ruby-hoe-git")
7166 (uri (rubygems-uri "hoe-git" version))
7169 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7170 (build-system ruby-build-system)
7172 `(("ruby-hoe" ,ruby-hoe)
7174 (synopsis "Hoe plugins for tighter Git integration")
7176 "This package provides a set of Hoe plugins for tighter Git integration.
7177 It provides tasks to automate release tagging and pushing and changelog
7179 (home-page "https://github.com/jbarnette/hoe-git")
7180 (license license:expat)))
7182 (define-public ruby-sequel
7184 (name "ruby-sequel")
7189 (uri (rubygems-uri "sequel" version))
7192 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
7193 (build-system ruby-build-system)
7195 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7196 (synopsis "Database toolkit for Ruby")
7197 (description "Sequel provides thread safety, connection pooling and a
7198 concise DSL for constructing SQL queries and table schemas. It includes a
7199 comprehensive ORM layer for mapping records to Ruby objects and handling
7200 associated records.")
7201 (home-page "https://sequel.jeremyevans.net")
7202 (license license:expat)))
7204 (define-public ruby-timecop
7206 (name "ruby-timecop")
7211 (uri (rubygems-uri "timecop" version))
7214 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7215 (build-system ruby-build-system)
7218 (modify-phases %standard-phases
7219 (add-before 'check 'set-check-rubylib
7221 ;; Set RUBYLIB so timecop tests finds its own lib.
7222 (setenv "RUBYLIB" "lib")
7225 `(("bundler" ,bundler)
7226 ("ruby-minitest-rg" ,ruby-minitest-rg)
7227 ("ruby-mocha" ,ruby-mocha)
7228 ("ruby-activesupport" ,ruby-activesupport)))
7229 (synopsis "Test mocks for time-dependent functions")
7231 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7232 making it easier to test time-dependent code. It provides a unified method to
7233 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7235 (home-page "https://github.com/travisjeffery/timecop")
7236 (license license:expat)))
7238 (define-public ruby-concurrent
7240 (name "ruby-concurrent")
7245 ;; Download from GitHub because the rubygems version does not contain
7248 (url "https://github.com/ruby-concurrency/concurrent-ruby")
7249 (commit (string-append "v" version))))
7250 (file-name (git-file-name name version))
7253 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
7254 (build-system ruby-build-system)
7256 `(#:test-target "ci"
7258 (modify-phases %standard-phases
7259 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7261 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7263 (delete-file "concurrent-ruby-edge.gemspec")
7264 (delete-file "concurrent-ruby-ext.gemspec")
7266 (replace 'replace-git-ls-files
7268 ;; XXX: The default substitution made by this phase is not fully
7269 ;; compatible with "git ls-files". The latter produces file names
7270 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
7271 ;; which gives "./lib/foo". That difference in turn breaks the
7272 ;; comparison against a glob pattern in this script.
7273 (substitute* "concurrent-ruby.gemspec"
7274 (("git ls-files") "find * -type f | sort"))
7276 (add-before 'build 'remove-jar-from-gemspec
7278 ;; The gemspec wants to include a JAR file that we do not build
7280 (substitute* "concurrent-ruby.gemspec"
7281 (("'lib/concurrent/concurrent_ruby.jar'")
7284 (add-before 'build 'remove-rake_compiler_dock-dependency
7286 ;; This library is only used when building for non-MRI targets.
7287 (substitute* "Rakefile"
7288 (("require 'rake_compiler_dock'")
7291 (add-before 'check 'remove-timecop-dependency
7292 ;; Remove timecop-dependent tests as having timecop as a depedency
7293 ;; causes circular depedencies.
7295 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7296 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7299 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7300 ("ruby-rspec" ,ruby-rspec)))
7301 (synopsis "Concurrency tools for Ruby")
7303 "This library provides modern concurrency tools including agents,
7304 futures, promises, thread pools, actors, supervisors, and more. It is
7305 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7307 (home-page "http://www.concurrent-ruby.com")
7308 (license license:expat)))
7310 (define-public ruby-pkg-config
7312 (name "ruby-pkg-config")
7317 (uri (rubygems-uri "pkg-config" version))
7320 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7321 (build-system ruby-build-system)
7323 ;; Tests require extra files not included in the gem.
7325 (synopsis "Detect libraries for compiling Ruby native extensions")
7327 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7328 libraries for compiling Ruby native extensions.")
7329 (home-page "https://github.com/ruby-gnome2/pkg-config")
7330 (license license:lgpl2.0+)))
7332 (define-public ruby-net-http-digest-auth
7334 (name "ruby-net-http-digest-auth")
7339 (uri (rubygems-uri "net-http-digest_auth" version))
7342 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7343 (build-system ruby-build-system)
7345 `(("ruby-hoe" ,ruby-hoe)))
7346 (synopsis "RFC 2617 HTTP digest authentication library")
7348 "This library implements HTTP's digest authentication scheme based on
7349 RFC 2617. This enables the use of the digest authentication scheme instead
7350 of the more insecure basic authentication scheme.")
7351 (home-page "https://github.com/drbrain/net-http-digest_auth")
7352 (license license:expat)))
7354 (define-public ruby-mail
7361 (uri (rubygems-uri "mail" version))
7364 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7365 (build-system ruby-build-system)
7367 `(("ruby-mime-types" ,ruby-mime-types)))
7369 ;; Tests require extra gems not included in the Gemfile.
7370 ;; XXX: Try enabling this for the next version with mini_mime.
7372 (synopsis "Mail library for Ruby")
7374 "Mail is an internet library for Ruby that is designed to handle email
7375 generation, parsing and sending. The purpose of this library is to provide
7376 a single point of access to handle all email functions, including sending
7377 and receiving emails. All network type actions are done through proxy
7378 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7380 Mail has been designed with a very simple object oriented system that
7381 really opens up the email messages you are parsing, if you know what you
7382 are doing, you can fiddle with every last bit of your email directly.")
7383 (home-page "https://github.com/mikel/mail")
7384 (license license:expat)))
7386 (define-public ruby-mathn
7393 (uri (rubygems-uri "mathn" version))
7396 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7397 (build-system ruby-build-system)
7399 `(("bundler" ,bundler)
7400 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7401 (synopsis "Extends math operations for increased precision")
7403 "This gem makes mathematical operations more precise in Ruby and
7404 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7405 @code{mathn} was part of the Ruby standard library.")
7406 (home-page "https://github.com/ruby/mathn")
7407 (license license:bsd-2)))
7409 (define-public ruby-code-statistics
7411 (name "ruby-code-statistics")
7416 (uri (rubygems-uri "code_statistics" version))
7419 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7420 (build-system ruby-build-system)
7422 `(#:tests? #f)) ; Not all test code is included in gem.
7423 (synopsis "Port of the rails 'rake stats' method")
7425 "This gem is a port of the rails 'rake stats' method so it can be made
7426 more robust and work for non rails projects.")
7427 (home-page "http://github.com/danmayer/code_statistics")
7428 (license license:expat)))
7430 (define-public ruby-rubypants
7432 (name "ruby-rubypants")
7436 (uri (rubygems-uri "rubypants" version))
7439 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7440 (build-system ruby-build-system)
7442 '(#:tests? #f)) ; need Codecov
7443 (synopsis "Port of the smart-quotes library SmartyPants")
7445 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7446 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7447 and BBEdit that easily translates plain ASCII punctuation characters into
7448 smart typographic punctuation HTML entities.")
7449 (home-page "https://github.com/jmcnevin/rubypants")
7450 (license license:bsd-2)))
7452 (define-public ruby-org-ruby
7454 (name "ruby-org-ruby")
7458 (uri (rubygems-uri "org-ruby" version))
7461 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7462 (build-system ruby-build-system)
7464 '(#:tests? #f)) ; no rakefile
7466 `(("ruby-rubypants" ,ruby-rubypants)))
7467 (synopsis "Org-mode parser written in Ruby")
7469 "Org-ruby is an org-mode parser written in Ruby. The most significant
7470 thing this library does today is convert org-mode files to HTML or Textile or
7472 (home-page "https://github.com/wallyqs/org-ruby")
7473 (license license:expat)))
7475 (define-public ruby-rake
7482 (uri (rubygems-uri "rake" version))
7485 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7486 (build-system ruby-build-system)
7488 `(("bundler" ,bundler)))
7489 (synopsis "Rake is a Make-like program implemented in Ruby")
7491 "Rake is a Make-like program where tasks and dependencies are specified
7492 in standard Ruby syntax.")
7493 (home-page "https://github.com/ruby/rake")
7494 (license license:expat)))
7496 (define-public ruby-childprocess
7498 (name "ruby-childprocess")
7503 (uri (rubygems-uri "childprocess" version))
7506 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
7507 (build-system ruby-build-system)
7511 `(("bundler" ,bundler)
7512 ("ruby-rspec" ,ruby-rspec)))
7514 `(("ruby-ffi" ,ruby-ffi)))
7515 (synopsis "Control external programs running in the background, in Ruby")
7516 (description "@code{childprocess} provides a gem to control external
7517 programs running in the background, in Ruby.")
7518 (home-page "https://github.com/enkessler/childprocess")
7519 (license license:expat)))
7521 (define-public ruby-public-suffix
7523 (name "ruby-public-suffix")
7527 (uri (rubygems-uri "public_suffix" version))
7530 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
7531 (build-system ruby-build-system)
7534 (modify-phases %standard-phases
7535 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7536 ;; including it as an input can lead to circular dependencies.
7537 (add-after 'unpack 'remove-rubocop-from-Rakefile
7539 (substitute* "Rakefile"
7540 (("require \"rubocop/rake\\_task\"") "")
7541 (("RuboCop::RakeTask\\.new") ""))
7544 `(("bundler" ,bundler)
7545 ("ruby-yard" ,ruby-yard)
7546 ("ruby-mocha" ,ruby-mocha)
7547 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7548 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7549 (synopsis "Domain name parser")
7550 (description "The gem @code{public_suffix} is a domain name parser,
7551 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7552 is one under which Internet users can (or historically could) directly
7553 register names. Some examples of public suffixes are @code{.com},
7554 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7555 all known public suffixes.")
7556 (license license:expat)))
7558 (define-public ruby-addressable
7560 (name "ruby-addressable")
7564 (uri (rubygems-uri "addressable" version))
7567 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
7568 (build-system ruby-build-system)
7570 '(#:test-target "spec"
7572 (modify-phases %standard-phases
7573 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7575 (substitute* "Gemfile"
7576 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7577 ((".*launchy.*") "")
7578 ((".*rake.*") "gem 'rake'\n")
7579 ((".*redcarpet.*") ""))
7581 (add-before 'check 'delete-network-dependent-test
7583 (delete-file "spec/addressable/net_http_compat_spec.rb")
7586 `(("ruby-rspec" ,ruby-rspec)
7587 ("bundler" ,bundler)
7588 ("ruby-idn-ruby" ,ruby-idn-ruby)
7589 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7590 ("ruby-rspec-its", ruby-rspec-its)
7591 ("ruby-yard" ,ruby-yard)
7592 ("ruby-simplecov" ,ruby-simplecov)))
7594 `(("ruby-public-suffix" ,ruby-public-suffix)))
7595 (home-page "https://github.com/sporkmonger/addressable")
7596 (synopsis "Alternative URI implementation")
7597 (description "Addressable is a replacement for the URI implementation that
7598 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7599 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7600 (license license:asl2.0)))
7602 (define-public ruby-colorator
7604 (name "ruby-colorator")
7608 (uri (rubygems-uri "colorator" version))
7611 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7612 (build-system ruby-build-system)
7616 (home-page "http://octopress.org/colorator/")
7617 (synopsis "Terminal color library")
7618 (description "Colorator is a Ruby gem that helps you colorize your text
7620 (license license:expat)))
7622 (define-public ruby-command-line-reporter
7624 (name "ruby-command-line-reporter")
7628 (uri (rubygems-uri "command_line_reporter" version))
7631 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
7632 (build-system ruby-build-system)
7637 (modify-phases %standard-phases
7638 (add-before 'build 'fix-dependencies
7640 (substitute* ".gemspec"
7641 ;; colored is unmaintained
7642 (("colored") "colorator")
7643 ;; colorator version
7644 (("= 1.2") "= 1.1"))
7646 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7647 (home-page "https://github.com/wbailey/command_line_reporter")
7648 (synopsis "Report production while executing Ruby scripts")
7649 (description "This gem provides a DSL that makes it easy to write reports
7650 of various types in ruby. It eliminates the need to litter your source with
7651 puts statements, instead providing a more readable, expressive interface to
7653 (license license:asl2.0)))
7655 (define-public ruby-command-line-reporter-3
7657 (inherit ruby-command-line-reporter)
7661 (uri (rubygems-uri "command_line_reporter" version))
7664 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7666 (define-public ruby-rdoc
7673 (uri (rubygems-uri "rdoc" version))
7676 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7677 (build-system ruby-build-system)
7679 `(("bundler" ,bundler)))
7680 (home-page "https://ruby.github.io/rdoc/")
7681 (synopsis "HTML and command-line documentation utility")
7682 (description "RDoc produces HTML and command-line documentation for Ruby
7683 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7684 documentation from the command-line.")
7685 (license license:gpl2+)))
7687 (define-public ruby-sass-listen
7689 (name "ruby-sass-listen")
7693 (uri (rubygems-uri "sass-listen" version))
7696 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7697 (build-system ruby-build-system)
7702 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7703 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7704 (home-page "https://github.com/sass/listen")
7705 (synopsis "File modification notification library")
7706 (description "The Listen gem listens to file modifications and notifies you
7707 about the changes.")
7708 (license license:expat)))
7710 (define-public ruby-terminfo
7712 (name "ruby-terminfo")
7717 (uri (rubygems-uri "ruby-terminfo" version))
7720 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7721 (build-system ruby-build-system)
7723 `(#:test-target "test"
7724 ;; Rakefile requires old packages and would need modification to
7725 ;; work with current software.
7728 `(("ncurses" ,ncurses)))
7730 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7731 ("ruby-rdoc" ,ruby-rdoc)))
7732 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7733 (synopsis "Terminfo binding for Ruby")
7734 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7735 (license license:bsd-3)))
7737 (define-public ruby-diffy
7744 (uri (rubygems-uri "diffy" version))
7747 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7748 (build-system ruby-build-system)
7753 `(("ruby-rspec" ,ruby-rspec)))
7754 (home-page "https://github.com/samg/diffy")
7755 (synopsis "Convenient diffing in ruby")
7756 (description "Diffy provides a convenient way to generate a diff from two
7758 (license license:expat)))
7760 (define-public ruby-sass-spec
7762 (name "ruby-sass-spec")
7768 (url "https://github.com/sass/sass-spec.git")
7769 (commit (string-append "v" version))))
7770 (file-name (git-file-name name version))
7772 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
7773 (build-system ruby-build-system)
7775 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7776 ("ruby-diffy" ,ruby-diffy)
7777 ("ruby-terminfo" ,ruby-terminfo)))
7779 `(;; This package contains tests for a sass implementation, and the to
7780 ;; avoid any circular dependencies, the tests are not run here
7783 (modify-phases %standard-phases
7784 (add-after 'unpack 'patch-test
7786 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7787 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7788 (("string") "color")))))))
7789 (home-page "https://github.com/sass/sass-spec")
7790 (synopsis "Test suite for Sass")
7791 (description "Sass Spec is a test suite for Sass. Test cases are all in
7792 the @file{spec} directory.")
7793 (license license:expat)))
7795 (define-public ruby-sass
7801 (uri (rubygems-uri "sass" version))
7804 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7805 (build-system ruby-build-system)
7807 `(("ruby-sass-listen" ,ruby-sass-listen)))
7809 `(("ruby-sass-spec" ,ruby-sass-spec)
7810 ("ruby-mathn" ,ruby-mathn)))
7811 (home-page "https://sass-lang.com/")
7812 (synopsis "CSS extension language")
7813 (description "Sass is a CSS extension language. It extends CSS with
7814 features that don't exist yet like variables, nesting, mixins and inheritance.")
7815 (license license:expat)))
7817 (define-public ruby-sassc
7824 (uri (rubygems-uri "sassc" version))
7827 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
7828 (build-system ruby-build-system)
7830 '(#:modules ((guix build ruby-build-system)
7832 (ice-9 textual-ports))
7834 (modify-phases %standard-phases
7835 ;; TODO: This would be better as a snippet, but the ruby-build-system
7836 ;; doesn't seem to support that
7837 (add-after 'unpack 'remove-libsass
7839 (delete-file-recursively "ext")
7840 (with-atomic-file-replacement "sassc.gemspec"
7842 (let* ((gemspec (get-string-all in))
7843 (index (string-contains gemspec "libsass_dir")))
7844 (display (string-append
7845 (string-take gemspec index)
7849 (add-after 'unpack 'dont-check-the-libsass-version
7851 (substitute* "test/native_test.rb"
7852 (("assert_equal.*Native\\.version") ""))
7854 (add-after 'unpack 'remove-git-from-gemspec
7856 (substitute* "sassc.gemspec"
7857 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
7859 (add-after 'unpack 'remove-extensions-from-gemspec
7861 (substitute* "sassc.gemspec"
7862 (("\\[\"ext/extconf.rb\"\\]") "[]"))
7864 (add-after 'unpack 'fix-Rakefile
7866 (substitute* "Rakefile"
7867 (("test: 'compile:libsass'") ":test"))
7869 (add-after 'unpack 'remove-unnecessary-dependencies
7871 (substitute* "test/test_helper.rb"
7872 (("require \"pry\"") ""))
7874 (add-before 'build 'patch-native.rb
7875 (lambda* (#:key inputs #:allow-other-keys)
7876 (substitute* "lib/sassc/native.rb"
7877 ((".*gem_root = spec.gem_dir") "")
7880 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7882 ;; The gemspec still references the libsass files, so just keep the
7884 (delete 'extract-gemspec))))
7886 `(("ruby-ffi" ,ruby-ffi)
7887 ("ruby-rake" ,ruby-rake)))
7889 `(("libsass" ,libsass)))
7891 `(("bundler" ,bundler)
7892 ("ruby-rake-compiler" ,ruby-rake-compiler)
7893 ("ruby-minitest-around" ,ruby-minitest-around)
7894 ("ruby-test-construct" ,ruby-test-construct)))
7895 (synopsis "Use libsss from Ruby")
7897 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7898 bindings to the libsass library. This enables rendering
7899 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7900 (home-page "https://github.com/sass/sassc-ruby")
7901 (license license:expat)))
7903 (define-public ruby-jekyll-sass-converter
7905 (name "ruby-jekyll-sass-converter")
7909 (uri (rubygems-uri "jekyll-sass-converter" version))
7912 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7913 (build-system ruby-build-system)
7915 `(("ruby-sass" ,ruby-sass)))
7919 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7920 (synopsis "Sass converter for Jekyll")
7921 (description "This gem provide built-in support for the Sass converter
7923 (license license:expat)))
7925 (define-public ruby-jekyll-watch
7927 (name "ruby-jekyll-watch")
7931 (uri (rubygems-uri "jekyll-watch" version))
7934 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
7935 (build-system ruby-build-system)
7937 `(("ruby-listen" ,ruby-listen)))
7941 (home-page "https://github.com/jekyll/jekyll-watch")
7942 (synopsis "Jekyll auto-rebuild support")
7943 (description "This gems add the @code{--watch} switch to the jekyll CLI
7944 interface. It allows Jekyll to rebuild your site when a file changes.")
7945 (license license:expat)))
7947 (define-public ruby-parallel
7949 (name "ruby-parallel")
7955 (url "https://github.com/grosser/parallel.git")
7956 (commit (string-append "v" version))))
7957 (file-name (git-file-name name version))
7960 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7961 (build-system ruby-build-system)
7963 `(;; TODO 3 test failures
7964 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7965 ;; open unnecessary pipes
7966 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7967 ;; SQLite in processes
7968 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7969 ;; SQLite in threads
7971 #:test-target "rspec-rerun:spec"
7973 (modify-phases %standard-phases
7974 (add-after 'unpack 'patch-Gemfile
7976 (substitute* "Gemfile"
7977 (("gem 'rspec-legacy_formatters'") "")
7978 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7979 (add-before 'check 'delete-Gemfile.lock
7981 ;; Bundler isn't being used for fetching dependendencies, so
7982 ;; delete the Gemfile.lock
7983 (delete-file "Gemfile.lock")
7985 (add-before 'build 'patch-gemspec
7987 (substitute* "parallel.gemspec"
7988 (("git ls-files") "find"))
7991 `(("ruby-rspec" ,ruby-rspec)
7992 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
7993 ("bundler" ,bundler)
7994 ("ruby-activerecord" ,ruby-activerecord)
7995 ("ruby-progressbar" ,ruby-progressbar)
7996 ("ruby-bump" ,ruby-bump)
7999 ("ruby-mysql2" ,ruby-mysql2)
8000 ("ruby-sqlite3" ,ruby-sqlite3)
8001 ("ruby-i18n" ,ruby-i18n)))
8002 (home-page "https://github.com/grosser/parallel")
8003 (synopsis "Parallel processing in Ruby")
8004 (description "Parallel allows you to run any code in parallel Processes
8005 (to use all CPUs) or Threads(to speedup blocking operations). It is best
8006 suited for map-reduce or e.g. parallel downloads/uploads.")
8007 (license license:expat)))
8009 (define-public ruby-cane
8015 (uri (rubygems-uri "cane" version))
8018 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
8019 (build-system ruby-build-system)
8020 (arguments `(#:tests? #f)); No rakefile
8021 (home-page "https://github.com/square/cane")
8023 `(("ruby-parallel" ,ruby-parallel)))
8024 (synopsis "Code quality threshold checking")
8025 (description "Cane fails your build if code quality thresholds are not met.")
8026 (license license:asl2.0)))
8028 (define-public ruby-morecane
8030 (name "ruby-morecane")
8034 (uri (rubygems-uri "morecane" version))
8037 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
8038 (build-system ruby-build-system)
8039 (home-page "https://github.com/yob/morecane")
8040 (arguments `(#:tests? #f)); No rakefile
8042 `(("ruby-parallel" ,ruby-parallel)))
8043 (synopsis "Extra checks for cane")
8044 (description "The cane gem provides a great framework for running quality
8045 checks over your ruby project as part of continuous integration build. It
8046 comes with a few checks out of the box, but also provides an API for loading
8047 custom checks. This gem provides a set of additional checks.")
8048 (license license:expat)))
8050 (define-public ruby-pdf-reader
8052 (name "ruby-pdf-reader")
8056 (uri (rubygems-uri "pdf-reader" version))
8059 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
8060 (build-system ruby-build-system)
8061 (arguments `(#:test-target "spec"))
8063 `(("bundler" ,bundler)
8064 ("ruby-rspec" ,ruby-rspec)
8065 ("ruby-cane" ,ruby-cane)
8066 ("ruby-morecane" ,ruby-morecane)))
8068 `(("ruby-afm" ,ruby-afm)
8069 ("ruby-ascii85" ,ruby-ascii85)
8070 ("ruby-hashery" ,ruby-hashery)
8071 ("ruby-rc4" ,ruby-rc4)
8072 ("ruby-ttfunk" ,ruby-ttfunk)))
8073 (home-page "https://github.com/yob/pdf-reader")
8074 (synopsis "PDF parser in Ruby")
8075 (description "The PDF::Reader library implements a PDF parser conforming as
8076 much as possible to the PDF specification from Adobe. It provides programmatic
8077 access to the contents of a PDF file with a high degree of flexibility.")
8078 (license license:gpl3+)))
8080 (define-public ruby-pdf-inspector
8082 (name "ruby-pdf-inspector")
8086 (uri (rubygems-uri "pdf-inspector" version))
8089 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
8090 (build-system ruby-build-system)
8092 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8093 (arguments `(#:tests? #f)); No rakefile
8094 (home-page "https://github.com/prawnpdf/pdf-inspector")
8095 (synopsis "Analysis classes for inspecting PDF output")
8096 (description "This library provides a number of PDF::Reader based tools for
8097 use in testing PDF output. Presently, the primary purpose of this tool is to
8098 support the tests found in Prawn, a pure Ruby PDF generation library.")
8099 (license license:gpl3+)))
8101 (define-public ruby-pdf-core
8103 (name "ruby-pdf-core")
8107 (uri (rubygems-uri "pdf-core" version))
8110 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8111 (build-system ruby-build-system)
8115 (home-page "https://github.com/prawnpdf/pdf-core")
8116 (synopsis "Low level PDF features for Prawn")
8117 (description "This is an experimental gem that extracts low-level PDF
8118 functionality from Prawn.")
8119 (license license:gpl3+)))
8121 (define-public ruby-prawn
8127 (uri (rubygems-uri "prawn" version))
8130 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8131 (build-system ruby-build-system)
8136 (modify-phases %standard-phases
8137 (add-before 'build 'fix-dependencies
8139 (substitute* "prawn.gemspec"
8140 (("~> 0.7.0") "~> 0.7"))
8143 `(("ruby-pdf-core" ,ruby-pdf-core)
8144 ("ruby-ttfunk" ,ruby-ttfunk)))
8146 `(("bundler" ,bundler)
8147 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8148 ("ruby-rspec" ,ruby-rspec)
8149 ("ruby-simplecov" ,ruby-simplecov)
8150 ("ruby-yard" ,ruby-yard)))
8151 (home-page "http://prawnpdf.org/api-docs/2.0/")
8152 (synopsis "PDF generation for Ruby")
8153 (description "Prawn is a pure Ruby PDF generation library.")
8154 (license license:gpl3+)))
8156 (define-public ruby-prawn-table
8158 (name "ruby-prawn-table")
8162 (uri (rubygems-uri "prawn-table" version))
8165 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8166 (build-system ruby-build-system)
8168 `(("ruby-prawn" ,ruby-prawn)
8169 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8171 `(("bundler" ,bundler)
8172 ("ruby-yard" ,ruby-yard)
8173 ("ruby-mocha" ,ruby-mocha)
8174 ("ruby-coderay" ,ruby-coderay)
8175 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8176 ("ruby-simplecov" ,ruby-simplecov)
8177 ("ruby-rspec-2" ,ruby-rspec-2)))
8179 '(;; TODO: 1 test fails
8180 ;; Failure/Error: pdf.page_count.should == 1
8182 ;; got: 2 (using ==)
8183 ;; # ./spec/table_spec.rb:1308
8185 ;; 225 examples, 1 failure
8188 (modify-phases %standard-phases
8189 (add-before 'check 'patch-gemspec
8191 (substitute* "prawn-table.gemspec"
8192 ;; Loosen the requirement for pdf-inspector
8193 (("~> 1\\.1\\.0") ">= 0")
8194 ;; Loosen the requirement for pdf-reader
8195 (("~> 1\\.2") ">= 0"))))
8197 (lambda* (#:key tests? #:allow-other-keys)
8201 (home-page "https://github.com/prawnpdf/prawn-table")
8202 (synopsis "Tables support for Prawn")
8203 (description "This gem provides tables support for Prawn.")
8204 (license license:gpl3+)))
8206 (define-public ruby-kramdown
8208 (name "ruby-kramdown")
8212 (uri (rubygems-uri "kramdown" version))
8215 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8216 (build-system ruby-build-system)
8217 (arguments `(#:tests? #f)); FIXME: some test failures
8219 `(("ruby-prawn" ,ruby-prawn)
8220 ("ruby-prawn-table" ,ruby-prawn-table)))
8221 (home-page "https://kramdown.gettalong.org/")
8222 (synopsis "Markdown parsing and converting library")
8223 (description "Kramdown is a library for parsing and converting a superset
8224 of Markdown. It is completely written in Ruby, supports standard Markdown
8225 (with some minor modifications) and various extensions that have been made
8226 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8227 (license license:expat)))
8229 (define-public ruby-http-parser.rb
8231 (name "ruby-http-parser.rb")
8236 (uri (rubygems-uri "http_parser.rb" version))
8239 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8240 (build-system ruby-build-system)
8245 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8246 ("ruby-rspec" ,ruby-rspec)))
8247 (home-page "https://github.com/tmm1/http_parser.rb")
8248 (synopsis "HTTP parser un Ruby")
8249 (description "This gem is a simple callback-based HTTP request/response
8250 parser for writing http servers, clients and proxies.")
8251 (license license:expat)))
8253 (define-public ruby-em-websocket
8255 (name "ruby-em-websocket")
8260 (uri (rubygems-uri "em-websocket" version))
8263 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8264 (build-system ruby-build-system)
8269 `(("ruby-eventmachine" ,ruby-eventmachine)
8270 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8272 `(("bundler" ,bundler)
8273 ("ruby-rspec" ,ruby-rspec)))
8274 (home-page "https://github.com/igrigorik/em-websocket")
8275 (synopsis "EventMachine based WebSocket server")
8276 (description "Em-websocket is an EventMachine based WebSocket server
8278 (license license:expat)))
8280 (define-public ruby-rouge
8286 (uri (rubygems-uri "rouge" version))
8289 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
8290 (build-system ruby-build-system)
8291 (arguments `(#:tests? #f)); No rakefile
8292 (home-page "http://rouge.jneen.net/")
8293 (synopsis "Code highlighter")
8294 (description "Rouge is a code highlighter written in Ruby. It supports more
8295 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8296 is compatible with stylesheets designed for pygments.")
8298 ;; rouge is licensed under expat
8300 ;; pygments is licensed under bsd-2
8303 (define-public ruby-rouge-2
8305 (inherit ruby-rouge)
8309 (uri (rubygems-uri "rouge" version))
8312 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8314 (define-public ruby-hashie
8316 (name "ruby-hashie")
8320 (uri (rubygems-uri "hashie" version))
8323 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8324 (build-system ruby-build-system)
8326 `(("bundler" ,bundler)))
8327 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8328 (home-page "https://github.com/intridea/hashie")
8329 (synopsis "Extensions to Ruby Hashes")
8330 (description "Hashie is a collection of classes and mixins that make Ruby
8331 hashes more powerful.")
8332 (license license:expat)))
8334 (define-public ruby-heredoc-unindent
8336 (name "ruby-heredoc-unindent")
8340 (uri (rubygems-uri "heredoc_unindent" version))
8343 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8344 (build-system ruby-build-system)
8346 `(("ruby-hoe" ,ruby-hoe)))
8347 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8348 (synopsis "Heredoc indentation cleaner")
8349 (description "This gem removes common margin from indented strings, such
8350 as the ones produced by indented heredocs. In other words, it strips out
8351 leading whitespace chars at the beginning of each line, but only as much as
8352 the line with the smallest margin.
8354 It is acknowledged that many strings defined by heredocs are just code and
8355 fact is that most parsers are insensitive to indentation. If, however, the
8356 strings are to be used otherwise, be it for printing or testing, the extra
8357 indentation will probably be an issue and hence this gem.")
8358 (license license:expat)))
8360 (define-public ruby-safe-yaml
8362 (name "ruby-safe-yaml")
8368 (url "https://github.com/dtao/safe_yaml.git")
8370 (file-name (git-file-name name version))
8373 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
8374 (build-system ruby-build-system)
8376 `(("ruby-rspec" ,ruby-rspec)
8377 ("ruby-hashie" ,ruby-hashie)
8378 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8380 '(#:test-target "spec"
8382 (modify-phases %standard-phases
8383 (add-before 'check 'set-TZ
8385 ;; This test is dependent on the timezone
8386 ;; spec/transform/to_date_spec.rb:35
8387 ;; # SafeYAML::Transform::ToDate converts times to the local
8389 (setenv "TZ" "UTC-11")
8391 (home-page "https://github.com/dtao/safe_yaml")
8392 (synopsis "YAML parser")
8393 (description "The SafeYAML gem provides an alternative implementation of
8394 YAML.load suitable for accepting user input in Ruby applications.")
8395 (license license:expat)))
8397 (define-public ruby-mercenary
8399 (name "ruby-mercenary")
8403 (uri (rubygems-uri "mercenary" version))
8406 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8407 (build-system ruby-build-system)
8408 (arguments `(#:test-target "spec"))
8410 `(("bundler" ,bundler)))
8411 (home-page "https://github.com/jekyll/mercenary")
8412 (synopsis "Command-line apps library in Ruby")
8413 (description "Mercenary is a lightweight and flexible library for writing
8414 command-line apps in Ruby.")
8415 (license license:expat)))
8417 (define-public ruby-liquid
8419 (name "ruby-liquid")
8423 (uri (rubygems-uri "liquid" version))
8426 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8427 (build-system ruby-build-system)
8428 (arguments `(#:tests? #f)); No rakefile
8429 (home-page "https://shopify.github.io/liquid/")
8430 (synopsis "Template language")
8431 (description "Liquid is a template language written in Ruby. It is used
8432 to load dynamic content on storefronts.")
8433 (license license:expat)))
8435 (define-public ruby-forwardable-extended
8437 (name "ruby-forwardable-extended")
8441 (uri (rubygems-uri "forwardable-extended" version))
8444 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8445 (build-system ruby-build-system)
8446 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8447 (home-page "https://github.com/envygeeks/forwardable-extended")
8448 (synopsis "Delegation to hashes and instance variables in Forwardable")
8449 (description "Forwardable Extended provides more @code{Forwardable}
8450 methods for your source as @code{Forwardable::Extended}.")
8451 (license license:expat)))
8453 (define-public ruby-pathutil
8455 (name "ruby-pathutil")
8459 (uri (rubygems-uri "pathutil" version))
8462 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
8463 (build-system ruby-build-system)
8465 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8467 `(("bundler" ,bundler)
8468 ("ruby-rspec" ,ruby-rspec)))
8469 ;; Fails with: cannot load such file --
8470 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8471 (arguments `(#:tests? #f))
8472 (home-page "https://github.com/envygeeks/pathutil")
8473 (synopsis "Extended implementation of Pathname")
8474 (description "Pathutil tries to be a faster pure Ruby implementation of
8476 (license license:expat)))
8478 (define-public jekyll
8484 (uri (rubygems-uri "jekyll" version))
8487 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
8488 (build-system ruby-build-system)
8490 ;; No rakefile, but a test subdirectory.
8493 (modify-phases %standard-phases
8494 (add-before 'build 'fix-i18n
8496 (substitute* ".gemspec"
8497 (("~> 0.7") ">= 0.7"))
8500 `(("ruby-addressable" ,ruby-addressable)
8501 ("ruby-colorator" ,ruby-colorator)
8502 ("ruby-em-websocket" ,ruby-em-websocket)
8503 ("ruby-i18n" ,ruby-i18n)
8504 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8505 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8506 ("ruby-kramdown" ,ruby-kramdown)
8507 ("ruby-liquid" ,ruby-liquid)
8508 ("ruby-mercenary" ,ruby-mercenary)
8509 ("ruby-pathutil" ,ruby-pathutil)
8510 ("ruby-rouge" ,ruby-rouge-2)
8511 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8512 (home-page "https://jekyllrb.com/")
8513 (synopsis "Static site generator")
8514 (description "Jekyll is a simple, blog aware, static site generator.")
8515 (license license:expat)))
8517 (define-public ruby-jekyll-paginate-v2
8519 (name "ruby-jekyll-paginate-v2")
8523 (uri (rubygems-uri "jekyll-paginate-v2" version))
8526 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8527 (build-system ruby-build-system)
8529 `(("jekyll" ,jekyll)))
8530 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8531 (synopsis "Pagination Generator for Jekyll 3")
8532 (description "The Pagination Generator forms the core of the pagination
8533 logic in Jekyll. It calculates and generates the pagination pages.")
8534 (license license:expat)))
8536 (define-public ruby-faraday
8538 (name "ruby-faraday")
8543 (uri (rubygems-uri "faraday" version))
8546 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8547 (build-system ruby-build-system)
8551 `(("ruby-multipart-post" ,ruby-multipart-post)))
8552 (synopsis "Ruby HTTP/REST API client library")
8554 "Faraday is a HTTP/REST API client library which provides a common
8555 interface over different adapters.")
8556 (home-page "https://github.com/lostisland/faraday")
8557 (license license:expat)))
8559 (define-public ruby-nio4r
8566 (uri (rubygems-uri "nio4r" version))
8569 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
8570 (build-system ruby-build-system)
8573 (modify-phases %standard-phases
8574 (add-after 'unpack 'remove-unnecessary-dependencies
8576 (substitute* "spec/spec_helper.rb"
8577 ;; Coveralls is for uploading test coverage information to an
8578 ;; online service, and thus unnecessary for building the Guix
8580 (("require \"coveralls\"") "")
8581 (("Coveralls\\.wear!") "")
8582 ;; Remove rspec/retry as we are not retrying the tests
8583 (("require \"rspec/retry\"") "")
8584 (("config\\.display_try_failure_messages = true") "")
8585 (("config\\.verbose_retry = true") ""))
8587 (add-before 'check 'compile
8589 (invoke "rake" "compile")
8592 (lambda* (#:key tests? #:allow-other-keys)
8597 `(("bundler" ,bundler)
8598 ("ruby-rake-compiler" ,ruby-rake-compiler)
8599 ("ruby-rspec" ,ruby-rspec)
8600 ("ruby-rubocop" ,ruby-rubocop)))
8601 (synopsis "New I/O for Ruby")
8603 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8604 for scalable network clients and servers.")
8605 (home-page "https://github.com/socketry/nio4r")
8606 (license license:expat)))
8608 (define-public ruby-globalid
8610 (name "ruby-globalid")
8615 (uri (rubygems-uri "globalid" version))
8618 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8619 (build-system ruby-build-system)
8621 '(;; No included tests
8624 `(("ruby-activesupport" ,ruby-activesupport)))
8625 (synopsis "Generate URIs idenfitying model instances in Ruby")
8627 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8628 uniquely identify it.")
8629 (home-page "https://rubyonrails.org/")
8630 (license license:expat)))
8632 (define-public ruby-sprockets
8634 (name "ruby-sprockets")
8639 (uri (rubygems-uri "sprockets" version))
8642 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8643 (build-system ruby-build-system)
8645 '(;; No included tests
8648 `(("ruby-concurrent" ,ruby-concurrent)
8649 ("ruby-rack" ,ruby-rack)))
8650 (synopsis "Sprockets is a Rack-based asset packaging system")
8652 "Sprockets is a Rack-based asset packaging system that concatenates and
8653 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8654 (home-page "https://github.com/rails/sprockets")
8655 (license license:expat)))
8657 (define-public ruby-mustermann
8659 (name "ruby-mustermann")
8664 (uri (rubygems-uri "mustermann" version))
8667 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8668 (build-system ruby-build-system)
8672 (synopsis "Library implementing patterns that behave like regular expressions")
8673 (description "Given a string pattern, Mustermann will turn it into an
8674 object that behaves like a regular expression and has comparable performance
8676 (home-page "https://github.com/sinatra/mustermann")
8677 (license license:expat)))
8679 (define-public ruby-htmlentities
8681 (name "ruby-htmlentities")
8686 (uri (rubygems-uri "htmlentities" version))
8689 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
8690 (build-system ruby-build-system)
8693 (modify-phases %standard-phases
8697 (invoke "ruby" "-Itest" file))
8698 (find-files "./test" ".*_test\\.rb")))))))
8699 (synopsis "Encode and decode (X)HTML entities")
8701 "This package provides a module for encoding and decoding (X)HTML
8703 (home-page "https://github.com/threedaymonk/htmlentities")
8704 (license license:expat)))
8706 (define-public ruby-sinatra
8708 (name "ruby-sinatra")
8713 (uri (rubygems-uri "sinatra" version))
8716 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8717 (build-system ruby-build-system)
8719 `(("ruby-mustermann" ,ruby-mustermann)
8720 ("ruby-rack" ,ruby-rack)
8721 ("ruby-rack-protection" ,ruby-rack-protection)
8722 ("ruby-tilt" ,ruby-tilt)))
8723 (synopsis "DSL for quick web applications creation in Ruby")
8725 "Sinatra is a DSL for quickly creating web applications in Ruby with
8727 (home-page "http://sinatrarb.com/")
8728 (license license:expat)))
8730 (define-public ruby-thin
8737 (uri (rubygems-uri "thin" version))
8740 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8741 (build-system ruby-build-system)
8746 `(("ruby-daemons" ,ruby-daemons)
8747 ("ruby-eventmachine" ,ruby-eventmachine)
8748 ("ruby-rack" ,ruby-rack)))
8749 (synopsis "Thin and fast web server for Ruby")
8750 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8752 @item the Mongrel parser,
8753 @item Event Machine, a network I/O library with high scalability, performance
8755 @item Rack, a minimal interface between webservers and Ruby frameworks.
8757 (home-page "https://github.com/macournoyer/thin")
8758 (license license:ruby)))
8760 (define-public ruby-skinny
8762 (name "ruby-skinny")
8767 (uri (rubygems-uri "skinny" version))
8770 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8771 (build-system ruby-build-system)
8773 '(#:tests? #f ; No included tests
8775 (modify-phases %standard-phases
8776 (add-before 'build 'patch-gemspec
8778 (substitute* ".gemspec"
8779 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8780 "<eventmachine>, [\">= 1.0.0\"")
8781 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8784 `(("ruby-eventmachine" ,ruby-eventmachine)
8785 ("ruby-thin" ,ruby-thin)))
8786 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8787 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8789 (home-page "https://github.com/sj26/skinny")
8790 (license license:expat)))
8792 (define-public mailcatcher
8794 (name "mailcatcher")
8799 (uri (rubygems-uri "mailcatcher" version))
8802 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8803 (build-system ruby-build-system)
8805 ;; Tests require web/assets which is not included in the output. We
8806 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8807 ;; of the tests. See ruby-mysql2.
8810 (modify-phases %standard-phases
8811 (add-before 'build 'patch-gemspec
8813 (substitute* ".gemspec"
8814 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8815 "<eventmachine>, [\">= 1.0.9.1")
8816 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8817 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8818 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8820 (add-before 'build 'loosen-dependency-contraint
8822 (substitute* "lib/mail_catcher.rb"
8823 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8824 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8825 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8826 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8829 `(("ruby-eventmachine" ,ruby-eventmachine)
8830 ("ruby-mail" ,ruby-mail)
8831 ("ruby-rack" ,ruby-rack)
8832 ("ruby-sinatra" ,ruby-sinatra)
8833 ("ruby-skinny" ,ruby-skinny)
8834 ("ruby-sqlite3" ,ruby-sqlite3)
8835 ("ruby-thin" ,ruby-thin)))
8836 (synopsis "SMTP server which catches messages to display them a browser")
8838 "MailCatcher runs a super simple SMTP server which catches any message
8839 sent to it to display in a web interface. Run mailcatcher, set your favourite
8840 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8841 then check out http://127.0.0.1:1080 to see the mail.")
8842 (home-page "https://mailcatcher.me")
8843 (license license:expat)))
8845 (define-public ruby-backport
8847 (name "ruby-backport")
8851 ;; The gem does not include test code, so fetch from the Git repository.
8854 (url "https://github.com/castwide/backport.git")
8855 (commit (string-append "v" version))))
8856 (file-name (git-file-name name version))
8858 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
8859 (build-system ruby-build-system)
8861 `(#:test-target "spec"))
8863 `(("bundler" ,bundler)
8864 ("ruby-rspec" ,ruby-rspec)))
8866 `(("ruby-simplecov" ,ruby-simplecov)))
8867 (synopsis "Pure Ruby library for event-driven IO")
8869 "This package provides a pure Ruby library for event-driven IO.")
8870 (home-page "https://github.com/castwide/backport")
8871 (license license:expat)))
8873 (define-public ruby-json-schema
8875 (name "ruby-json-schema")
8880 (uri (rubygems-uri "json-schema" version))
8883 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
8884 (build-system ruby-build-system)
8886 `(#:tests? #f ; no tests
8888 (modify-phases %standard-phases
8891 (invoke "gem" "build" ".gemspec"))))))
8893 `(("ruby-addressable" ,ruby-addressable)))
8894 (synopsis "Ruby JSON Schema Validator")
8895 (description "This library provides Ruby with an interface for validating
8896 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
8897 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
8899 (home-page "https://github.com/ruby-json-schema/json-schema")
8900 (license license:expat)))
8902 (define-public swagger-diff
8904 (name "swagger-diff")
8909 (uri (rubygems-uri "swagger-diff" version))
8912 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
8913 (build-system ruby-build-system)
8915 `(#:test-target "spec"
8917 (modify-phases %standard-phases
8918 ;; Don't run or require rubocop, the code linting tool, as this is a
8920 (add-after 'unpack 'dont-run-rubocop
8922 (substitute* "Rakefile"
8923 ((".*rubocop.*") "")
8924 ((".*RuboCop.*") ""))
8927 `(("ruby-json-schema" ,ruby-json-schema)))
8929 `(("bundler" ,bundler)
8930 ("ruby-rspec-core" ,ruby-rspec-core)
8931 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
8933 "Compare Open API Initiative specification files")
8935 "Swagger::Diff is a utility for comparing two different Open API
8936 Initiative (OAI) specifications (formerly known as Swagger specifications).
8937 It is intended to determine whether a newer API specification is
8938 backwards-compatible with an older API specification.")
8939 (home-page "https://github.com/civisanalytics/swagger-diff")
8940 (license license:bsd-3)))
8942 (define-public ruby-reverse-markdown
8944 (name "ruby-reverse-markdown")
8949 (uri (rubygems-uri "reverse_markdown" version))
8952 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
8953 (build-system ruby-build-system)
8955 `(("ruby-nokogiri" ,ruby-nokogiri)))
8957 `(("bundler" ,bundler)
8958 ("ruby-rspec" ,ruby-rspec)
8959 ("ruby-kramdown" ,ruby-kramdown)
8960 ("ruby-simplecov" ,ruby-simplecov)))
8963 (modify-phases %standard-phases
8965 (lambda* (#:key tests? #:allow-other-keys)
8969 (synopsis "Convert HTML into Markdown")
8971 "This Ruby module allows you to map simple HTML back into
8972 Markdown---e.g., if you want to import existing HTML data in your
8974 (home-page "https://github.com/xijo/reverse_markdown")
8975 (license license:wtfpl2)))
8977 (define-public ruby-solargraph
8979 (name "ruby-solargraph")
8984 (uri (rubygems-uri "solargraph" version))
8987 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
8988 (build-system ruby-build-system)
8990 `(("ruby-backport" ,ruby-backport)
8991 ("bundler" ,bundler)
8992 ("ruby-htmlentities" ,ruby-htmlentities)
8993 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
8994 ("ruby-maruku" ,ruby-maruku)
8995 ("ruby-nokogiri" ,ruby-nokogiri)
8996 ("ruby-parser" ,ruby-parser)
8997 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
8998 ("ruby-rubocop" ,ruby-rubocop)
8999 ("ruby-thor" ,ruby-thor)
9000 ("ruby-tilt" ,ruby-tilt)
9001 ("ruby-yard" ,ruby-yard)))
9003 `(("ruby-rspec" ,ruby-rspec)
9004 ("ruby-pry" ,ruby-pry)
9005 ("ruby-simplecov" ,ruby-simplecov)
9006 ("ruby-webmock" ,ruby-webmock-2)))
9007 ;; FIXME: can't figure out how to run the tests properly:
9009 ;; An error occurred while loading spec_helper.
9010 ;; Failure/Error: return gem_original_require(path)
9012 ;; cannot load such file -- spec_helper
9016 (modify-phases %standard-phases
9018 (lambda* (#:key tests? #:allow-other-keys)
9023 "IDE tools for code completion, inline documentation, and static analysis")
9025 "Solargraph provides a comprehensive suite of tools for Ruby
9026 programming: intellisense, diagnostics, inline documentation, and type
9028 (home-page "https://solargraph.org/")
9029 (license license:expat)))
9031 (define-public ruby-wayback-machine-downloader
9033 (name "ruby-wayback-machine-downloader")
9039 "wayback_machine_downloader"
9043 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
9044 (build-system ruby-build-system)
9046 '(#:tests? #f)) ; no tests
9047 (synopsis "Download archived websites from the Wayback Machine")
9049 "Wayback Machine Downloader is a command line tool for downloading
9050 websites from the Internet Archive's Wayback Machine (archive.org).
9051 It allows fine grained control over what to download by specifying
9052 which snapshots to consider and what files to include.")
9054 "https://github.com/hartator/wayback-machine-downloader")
9055 (license license:expat)))