1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 ng0 <ng0@n0.is>
9 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
18 ;;; This file is part of GNU Guix.
20 ;;; GNU Guix is free software; you can redistribute it and/or modify it
21 ;;; under the terms of the GNU General Public License as published by
22 ;;; the Free Software Foundation; either version 3 of the License, or (at
23 ;;; your option) any later version.
25 ;;; GNU Guix is distributed in the hope that it will be useful, but
26 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
27 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 ;;; GNU General Public License for more details.
30 ;;; You should have received a copy of the GNU General Public License
31 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
33 (define-module (gnu packages ruby)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (gnu packages)
36 #:use-module (gnu packages base)
37 #:use-module (gnu packages bison)
38 #:use-module (gnu packages check)
39 #:use-module (gnu packages compression)
40 #:use-module (gnu packages crypto)
41 #:use-module (gnu packages databases)
42 #:use-module (gnu packages dbm)
43 #:use-module (gnu packages rails)
44 #:use-module (gnu packages readline)
45 #:use-module (gnu packages autotools)
46 #:use-module (gnu packages java)
47 #:use-module (gnu packages libffi)
48 #:use-module (gnu packages libidn)
49 #:use-module (gnu packages linux)
50 #:use-module (gnu packages lsof)
51 #:use-module (gnu packages maths)
52 #:use-module (gnu packages ncurses)
53 #:use-module (gnu packages networking)
54 #:use-module (gnu packages node)
55 #:use-module (gnu packages python)
56 #:use-module (gnu packages python-xyz)
57 #:use-module (gnu packages ragel)
58 #:use-module (gnu packages rsync)
59 #:use-module (gnu packages sqlite)
60 #:use-module (gnu packages tls)
61 #:use-module (gnu packages version-control)
62 #:use-module (guix packages)
63 #:use-module (guix download)
64 #:use-module (guix git-download)
65 #:use-module (guix utils)
66 #:use-module (guix build-system gnu)
67 #:use-module (gnu packages xml)
68 #:use-module (gnu packages web)
69 #:use-module (guix build-system ruby)
70 #:use-module ((srfi srfi-1) #:select (alist-delete)))
79 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
80 (version-major+minor version)
81 "/ruby-" version ".tar.xz"))
84 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
85 (modules '((guix build utils)))
87 ;; Remove bundled libffi
88 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
90 (build-system gnu-build-system)
92 `(#:test-target "test"
94 (modify-phases %standard-phases
95 (add-before 'configure 'replace-bin-sh-and-remove-libffi
97 (substitute* '("Makefile.in"
102 "test/rubygems/test_gem_ext_configure_builder.rb"
103 "test/rdoc/test_rdoc_parser.rb"
104 "test/ruby/test_rubyoptions.rb"
105 "test/ruby/test_process.rb"
106 "test/ruby/test_system.rb"
108 (("/bin/sh") (which "sh")))
111 `(("readline" ,readline)
117 (list (search-path-specification
118 (variable "GEM_PATH")
119 (files (list (string-append "lib/ruby/vendor_ruby"))))))
120 (synopsis "Programming language interpreter")
121 (description "Ruby is a dynamic object-oriented programming language with
122 a focus on simplicity and productivity.")
123 (home-page "https://www.ruby-lang.org")
124 (license license:ruby)))
126 (define-public ruby-2.4
133 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
134 (version-major+minor version)
135 "/ruby-" version ".tar.xz"))
138 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
139 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
140 (modules '((guix build utils)))
142 ;; Remove bundled libffi
143 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
146 (define-public ruby-2.3
153 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
154 (version-major+minor version)
155 "/ruby-" version ".tar.xz"))
158 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
159 (modules '((guix build utils)))
161 ;; Remove bundled libffi
162 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
173 (url "https://github.com/mruby/mruby.git")
175 (file-name (git-file-name name version))
178 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
179 (build-system gnu-build-system)
181 `(#:test-target "test"
183 (modify-phases %standard-phases
185 (add-after 'unpack 'enable-verbose-tests
187 (substitute* "Makefile"
188 (("ruby ./minirake" m)
189 (string-append m " --verbose")))
191 (add-after 'unpack 'disable-broken-tests
193 (substitute* "mrbgems/mruby-io/test/io.rb"
194 (("assert\\('IO.popen.+$" m)
195 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
196 (("assert\\('IO#isatty.+$" m)
197 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
198 ;; This one is really weird. The *expected* output is all wrong.
199 (("assert\\('`cmd`.*" m)
200 (string-append m "skip \"Disable for Guix\"\n"))
202 (string-append (which "echo") " foo")))
204 ;; There is no install target
206 (lambda* (#:key outputs #:allow-other-keys)
207 (let* ((out (assoc-ref outputs "out"))
208 (bin (string-append out "/bin"))
209 (lib (string-append out "/lib")))
211 (copy-recursively "build/host/bin" bin)
213 (copy-recursively "build/host/lib" lib))
218 (home-page "https://github.com/mruby/mruby")
219 (synopsis "Lightweight Ruby")
220 (description "mruby is the lightweight implementation of the Ruby
221 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
222 embedded within your application.")
223 (license license:expat)))
225 (define-public ruby-commander
227 (name "ruby-commander")
232 (uri (rubygems-uri "commander" version))
235 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
236 (build-system ruby-build-system)
238 `(#:test-target "spec"
240 (modify-phases %standard-phases
241 ;; Don't run or require rubocop, the code linting tool, as this is a
243 (add-after 'unpack 'dont-run-rubocop
245 (substitute* "Rakefile"
247 ((".*RuboCop.*") ""))
250 `(("ruby-highline" ,ruby-highline)))
252 `(("bundler" ,bundler)
253 ("ruby-rspec-core" ,ruby-rspec-core)
254 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
255 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
256 ("ruby-simplecov" ,ruby-simplecov)))
257 (home-page "https://github.com/commander-rb/commander")
258 (synopsis "Library for building Ruby command-line executables")
260 "Commander aims to be a complete solution for Ruby command-line
261 executables. Commander bridges the gap between other terminal related
262 libraries (OptionParser, HighLine), while providing many new features, and an
264 (license license:expat)))
266 (define-public ruby-highline
268 (name "ruby-highline")
273 (uri (rubygems-uri "highline" version))
276 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
277 (build-system ruby-build-system)
279 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
281 `(("bundler" ,bundler)
282 ("ruby-code-statistics" ,ruby-code-statistics)))
284 "HighLine helps you build command-line interfaces")
286 "HighLine provides a high-level IO library that provides validation,
287 type conversion, and more for command-line interfaces. HighLine also includes
288 a menu system for providing multiple options to the user.")
289 (home-page "https://github.com/JEG2/highline")
290 (license (list license:gpl2 license:ruby))))
292 (define-public ruby-hoe
298 (uri (rubygems-uri "hoe" version))
301 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
302 (build-system ruby-build-system)
303 (synopsis "Ruby project management helper")
305 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
306 maintain, and release projects and includes a dynamic plug-in system allowing
307 for easy extensibility. Hoe ships with plug-ins for all the usual project
308 tasks including rdoc generation, testing, packaging, deployment, and
310 (home-page "https://www.zenspider.com/projects/hoe.html")
311 (license license:expat)))
313 (define-public ruby-rake-compiler
315 (name "ruby-rake-compiler")
319 (uri (rubygems-uri "rake-compiler" version))
322 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
323 (build-system ruby-build-system)
325 '(#:tests? #f)) ; needs cucumber
326 (synopsis "Building and packaging helper for Ruby native extensions")
327 (description "Rake-compiler provides a framework for building and
328 packaging native C and Java extensions in Ruby.")
329 (home-page "https://github.com/rake-compiler/rake-compiler")
330 (license license:expat)))
332 (define-public ruby-rsync
339 (uri (rubygems-uri "rsync" version))
342 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
343 (build-system ruby-build-system)
345 '(#:test-target "spec"
347 (modify-phases %standard-phases
348 (add-after 'unpack 'remove-coveralls-requirement
350 (substitute* "spec/spec_helper.rb"
351 (("require 'coveralls'") "")
352 (("Coveralls.wear!") ""))
355 `(("bundler" ,bundler)
357 ("ruby-rspec-core" ,ruby-rspec-core)
358 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
359 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
360 (home-page "https://github.com/jbussdieker/ruby-rsync")
361 (synopsis "Ruby wrapper around rsync")
363 "Ruby Rsync is a Ruby library that can synchronize files between remote
364 hosts by wrapping the @file{rsync} binary.")
365 (license license:expat)))
367 (define-public ruby-i18n
373 (uri (rubygems-uri "i18n" version))
376 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
377 (build-system ruby-build-system)
379 '(#:tests? #f)) ; no tests
380 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
381 (synopsis "Internationalization library for Ruby")
382 (description "Ruby i18n is an internationalization and localization
383 solution for Ruby programs. It features translation and localization,
384 interpolation of values to translations, pluralization, customizable
385 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
386 translation data, custom key/scope separator, custom exception handlers, and
387 an extensible architecture with a swappable backend.")
388 (home-page "https://github.com/svenfuchs/i18n")
389 (license license:expat)))
391 (define-public ruby-iruby
398 (uri (rubygems-uri "iruby" version))
401 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
402 (build-system ruby-build-system)
404 ;; TODO: Tests currently fail.
406 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
409 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
412 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
415 (modify-phases %standard-phases
416 (add-after 'unpack 'patch-ipython
417 (lambda* (#:key inputs #:allow-other-keys)
418 (substitute* "lib/iruby/command.rb"
422 (assoc-ref inputs "python-ipython")
424 (("Kernel\\.exec\\('")
427 (assoc-ref inputs "python-ipython")
431 `(("python-ipython" ,python-ipython)))
433 `(("ruby-bond" ,ruby-bond)
434 ("ruby-data_uri" ,ruby-data_uri)
435 ("ruby-mimemagic" ,ruby-mimemagic)
436 ("ruby-multi-json" ,ruby-multi-json)
437 ("ruby-cztop" ,ruby-cztop)
439 ("ruby-pry" ,ruby-pry)))
440 (synopsis "Ruby kernel for Jupyter/IPython")
442 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
444 (home-page "https://github.com/SciRuby/iruby")
445 (license license:expat)))
447 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
448 ;; dependencies use RSpec for their test suites! To avoid these circular
449 ;; dependencies, we disable tests for all of the RSpec-related packages.
450 (define-public ruby-rspec-support
452 (name "ruby-rspec-support")
456 (uri (rubygems-uri "rspec-support" version))
459 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
460 (build-system ruby-build-system)
462 '(#:tests? #f)) ; avoid dependency cycles
463 (synopsis "RSpec support library")
464 (description "Support utilities for RSpec gems.")
465 (home-page "https://github.com/rspec/rspec-support")
466 (license license:expat)))
468 (define-public ruby-rspec-core
470 (name "ruby-rspec-core")
474 (uri (rubygems-uri "rspec-core" version))
477 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
478 (build-system ruby-build-system)
480 '(#:tests? #f)) ; avoid dependency cycles
482 `(("ruby-rspec-support" ,ruby-rspec-support)))
483 (synopsis "RSpec core library")
484 (description "Rspec-core provides the RSpec test runner and example
486 (home-page "https://github.com/rspec/rspec-core")
487 (license license:expat)))
489 (define-public ruby-rspec-core-2
490 (package (inherit ruby-rspec-core)
494 (uri (rubygems-uri "rspec-core" version))
497 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
498 (propagated-inputs `())))
500 (define-public ruby-diff-lcs
502 (name "ruby-diff-lcs")
506 (uri (rubygems-uri "diff-lcs" version))
509 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
510 (build-system ruby-build-system)
512 '(#:tests? #f)) ; avoid dependency cycles
513 (synopsis "Compute the difference between two Enumerable sequences")
514 (description "Diff::LCS computes the difference between two Enumerable
515 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
516 It includes utilities to create a simple HTML diff output format and a
517 standard diff-like tool.")
518 (home-page "https://github.com/halostatue/diff-lcs")
519 (license license:expat)))
521 (define-public ruby-rspec-expectations
523 (name "ruby-rspec-expectations")
527 (uri (rubygems-uri "rspec-expectations" version))
530 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
531 (build-system ruby-build-system)
533 '(#:tests? #f)) ; avoid dependency cycles
535 `(("ruby-rspec-support" ,ruby-rspec-support)
536 ("ruby-diff-lcs" ,ruby-diff-lcs)))
537 (synopsis "RSpec expectations library")
538 (description "Rspec-expectations provides a simple API to express expected
539 outcomes of a code example.")
540 (home-page "https://github.com/rspec/rspec-expectations")
541 (license license:expat)))
543 (define-public ruby-rspec-expectations-2
544 (package (inherit ruby-rspec-expectations)
548 (uri (rubygems-uri "rspec-expectations" version))
551 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
553 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
555 (define-public ruby-rspec-its
557 (name "ruby-rspec-its")
563 (url "https://github.com/rspec/rspec-its.git")
564 (commit (string-append "v" version))))
565 (file-name (git-file-name name version))
568 "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f"))
571 (origin (method url-fetch)
573 "https://github.com/rspec/rspec-its/commit/"
574 "bfaab439c7c879f5ef25552f41827891f6308373.patch"))
575 (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch")
578 "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh")))))))
579 (build-system ruby-build-system)
581 `(#:test-target "spec"
583 (modify-phases %standard-phases
584 (add-after 'unpack 'dont-install-gems-from-gemfile
586 (substitute* "Gemfile"
587 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
590 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
592 (substitute* "rspec-its.gemspec"
593 (("rake.*") "rake'\n")
594 (("cucumber.*") "cucumber'\n")
595 (("bundler.*") "bundler'\n")
596 (("aruba.*") "aruba'\n"))
599 `(("ruby-rspec-core" ,ruby-rspec-core)
600 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
602 `(("bundler" ,bundler)
603 ("ruby-cucumber" ,ruby-cucumber)
604 ("ruby-aruba" ,ruby-aruba)))
605 (synopsis "RSpec extension that provides the @code{its} method")
607 "RSpec::Its provides the its method as a short-hand to specify the expected
608 value of an attribute. For example, one can use @code{its(:size)\\{should
610 (home-page "https://github.com/rspec/rspec-its")
611 (license license:expat)))
613 (define-public ruby-rspec-mocks
615 (name "ruby-rspec-mocks")
619 (uri (rubygems-uri "rspec-mocks" version))
622 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
623 (build-system ruby-build-system)
625 '(#:tests? #f)) ; avoid dependency cycles
627 `(("ruby-rspec-support" ,ruby-rspec-support)
628 ("ruby-diff-lcs" ,ruby-diff-lcs)))
629 (synopsis "RSpec stubbing and mocking library")
630 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
631 support for stubbing and mocking.")
632 (home-page "https://github.com/rspec/rspec-mocks")
633 (license license:expat)))
635 (define-public ruby-rspec-mocks-2
636 (package (inherit ruby-rspec-mocks)
640 (uri (rubygems-uri "rspec-mocks" version))
643 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
645 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
647 (define-public ruby-rspec-rerun
649 (name "ruby-rspec-rerun")
654 (uri (rubygems-uri "rspec-rerun" version))
657 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
658 (build-system ruby-build-system)
660 '(;; No included tests
662 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
663 (synopsis "Track failed RSpec tests to re-run them")
665 "This package provides an automated way to track, and then re-run failed
667 (home-page "https://github.com/dblock/rspec-rerun")
668 (license license:expat)))
670 (define-public ruby-rspec
676 (uri (rubygems-uri "rspec" version))
679 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
680 (build-system ruby-build-system)
682 '(#:tests? #f)) ; avoid dependency cycles
684 `(("ruby-rspec-core" ,ruby-rspec-core)
685 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
686 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
687 (synopsis "Behavior-driven development framework for Ruby")
688 (description "RSpec is a behavior-driven development (BDD) framework for
689 Ruby. This meta-package includes the RSpec test runner, along with the
690 expectations and mocks frameworks.")
691 (home-page "http://rspec.info/")
692 (license license:expat)))
694 (define-public ruby-rspec-2
695 (package (inherit ruby-rspec)
699 (uri (rubygems-uri "rspec" version))
702 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
704 `(("ruby-rspec-core" ,ruby-rspec-core-2)
705 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
706 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
708 ;; Bundler is yet another source of circular dependencies, so we must disable
709 ;; its test suite as well.
710 (define-public bundler
716 (uri (rubygems-uri "bundler" version))
719 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
720 (build-system ruby-build-system)
722 '(#:tests? #f)) ; avoid dependency cycles
723 (synopsis "Ruby gem bundler")
724 (description "Bundler automatically downloads and installs a list of gems
725 specified in a \"Gemfile\", as well as their dependencies.")
726 (home-page "https://bundler.io/")
727 (license license:expat)))
729 (define-public ruby-builder
731 (name "ruby-builder")
735 (uri (rubygems-uri "builder" version))
738 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
739 (build-system ruby-build-system)
742 (modify-phases %standard-phases
743 (add-after 'unpack 'do-not-use-rvm
745 (substitute* "rakelib/tags.rake"
746 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
748 (synopsis "Ruby library to create structured data")
749 (description "Builder provides a number of builder objects that make it
750 easy to create structured data. Currently the following builder objects are
751 supported: XML Markup and XML Events.")
752 (home-page "https://github.com/jimweirich/builder")
753 (license license:expat)))
755 (define-public ruby-bump
762 (uri (rubygems-uri "bump" version))
765 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
766 (build-system ruby-build-system)
768 '(;; No included tests
770 (synopsis "Tool for working with Rubygems")
772 "Bump provides commands to manage Rubygem versioning, updating to the
773 next patch version for example.")
774 (home-page "https://github.com/gregorym/bump")
775 (license license:expat)))
777 (define-public ruby-rjb
783 (uri (rubygems-uri "rjb" version))
786 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
787 (build-system ruby-build-system)
789 `(#:tests? #f ; no rakefile
791 (modify-phases %standard-phases
792 (add-before 'build 'set-java-home
793 (lambda* (#:key inputs #:allow-other-keys)
794 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
797 `(("jdk" ,icedtea "jdk")))
798 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
799 (description "RJB is a bridge program that connects Ruby and Java via the
800 Java Native Interface.")
801 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
802 (license license:lgpl2.1+)))
804 (define-public ruby-log4r
811 (uri (rubygems-uri "log4r" version))
814 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
815 (build-system ruby-build-system)
817 '(#:tests? #f)) ; no Rakefile in gem
818 (synopsis "Flexible logging library for Ruby")
819 (description "Comprehensive and flexible logging library written
820 in Ruby for use in Ruby programs. It features a hierarchical logging
821 system of any number of levels, custom level names, logger
822 inheritance, multiple output destinations per log event, execution
823 tracing, custom formatting, thread safteyness, XML and YAML
824 configuration, and more.")
825 (home-page "http://log4r.rubyforge.org/")
826 (license license:bsd-3)))
828 (define-public ruby-atoulme-antwrap
830 (name "ruby-atoulme-antwrap")
834 (uri (rubygems-uri "atoulme-Antwrap" version))
837 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
838 (build-system ruby-build-system)
839 ;; Test data required for most of the tests are not included.
840 (arguments `(#:tests? #f))
842 `(("ruby-hoe" ,ruby-hoe)))
844 `(("ruby-rjb" ,ruby-rjb)))
845 (synopsis "Ruby wrapper for the Ant build tool")
846 (description "Antwrap is a Ruby module that wraps the Apache Ant build
847 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
849 (home-page "http://rubyforge.org/projects/antwrap/")
850 (license license:expat)))
852 (define-public ruby-atoulme-saikuro
854 (name "ruby-atoulme-saikuro")
858 (uri (rubygems-uri "atoulme-Saikuro" version))
861 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
862 (build-system ruby-build-system)
863 ;; FIXME: There are no unit tests. The tests are demonstrations of the
865 (arguments `(#:tests? #f))
866 (synopsis "Cyclomatic complexity analyzer")
867 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
868 given Ruby source code Saikuro will generate a report listing the cyclomatic
869 complexity of each method found. In addition, Saikuro counts the number of
870 lines per method and can generate a listing of the number of tokens on each
872 (home-page "http://www.github.com/atoulme/Saikuro")
873 ;; File headers contain the BSD-3 license and the README.rdoc says that
874 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
875 ;; of the Expat license.
876 (license license:bsd-3)))
878 (define-public ruby-asciidoctor
880 (name "ruby-asciidoctor")
885 (uri (rubygems-uri "asciidoctor" version))
888 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
889 (build-system ruby-build-system)
891 `(#:test-target "test:all"
893 (modify-phases %standard-phases
894 (add-before 'check 'remove-circular-tests
896 ;; Remove tests that require circular dependencies to load or pass.
897 (delete-file "test/invoker_test.rb")
898 (delete-file "test/converter_test.rb")
899 (delete-file "test/options_test.rb")
902 `(("ruby-minitest" ,ruby-minitest)
903 ("ruby-nokogiri" ,ruby-nokogiri)
904 ("ruby-asciimath" ,ruby-asciimath)
905 ("ruby-coderay" ,ruby-coderay)))
906 (synopsis "Converter from AsciiDoc content to other formats")
908 "Asciidoctor is a text processor and publishing toolchain for converting
909 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
910 (home-page "https://asciidoctor.org")
911 (license license:expat)))
913 (define-public ruby-ast
920 (uri (rubygems-uri "ast" version))
923 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
924 (build-system ruby-build-system)
927 (modify-phases %standard-phases
928 (add-after 'unpack 'remove-coveralls-requirement
930 (substitute* "test/helper.rb"
931 (("require 'coveralls'") "")
932 (("Coveralls::SimpleCov::Formatter") ""))
934 (add-after 'extract-gemspec 'remove-unnecessary-requirements
936 (substitute* "ast.gemspec"
937 ((".*coveralls.*") "\n")
938 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
939 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
940 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
943 `(("bundler" ,bundler)
944 ("ruby-simplecov" ,ruby-simplecov)
945 ("ruby-json-pure" ,ruby-json-pure)
946 ("ruby-mime-times" ,ruby-mime-types)
947 ("ruby-yard" ,ruby-yard)
948 ("ruby-kramdown" ,ruby-kramdown)
949 ("ruby-rest-client" ,ruby-rest-client)
950 ("ruby-bacon" ,ruby-bacon)
951 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
952 ("ruby-racc" ,ruby-racc)))
953 (synopsis "Library for working with Abstract Syntax Trees")
955 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
956 It does this through immutable data structures.")
957 (home-page "https://whitequark.github.io/ast/")
958 (license license:expat)))
960 (define-public ruby-sporkmonger-rack-mount
961 ;; Testing the addressable gem requires a newer commit than that released, so
962 ;; use an up to date version.
964 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
966 (name "ruby-sporkmonger-rack-mount")
967 (version (git-version "0.8.3" revision commit))
971 (url "https://github.com/sporkmonger/rack-mount.git")
973 (file-name (git-file-name name version))
976 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
977 (build-system ruby-build-system)
979 ;; Tests currently fail so disable them.
980 ;; https://github.com/sporkmonger/rack-mount/pull/1
982 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
983 (synopsis "Stackable dynamic tree based Rack router")
985 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
986 continue trying routes if the response returns pass. This allows multiple
987 routes to be nested or stacked on top of each other.")
988 (home-page "https://github.com/sporkmonger/rack-mount")
989 (license license:expat))))
991 (define-public ruby-ci-reporter
993 (name "ruby-ci-reporter")
997 (uri (rubygems-uri "ci_reporter" version))
1000 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1001 (build-system ruby-build-system)
1003 `(#:test-target "rspec"))
1005 `(("ruby-builder" ,ruby-builder)))
1007 `(("bundler" ,bundler)
1008 ("ruby-rspec" ,ruby-rspec)))
1009 (synopsis "Generate XML reports of runs test")
1011 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1012 you to generate XML reports of your test runs. The resulting files can be
1013 read by a continuous integration system that understands Ant's JUnit report
1015 (home-page "https://github.com/nicksieger/ci_reporter")
1016 (license license:expat)))
1018 (define-public ruby-contracts
1020 (name "ruby-contracts")
1025 (uri (rubygems-uri "contracts" version))
1028 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1029 (build-system ruby-build-system)
1031 '(#:test-target "spec"
1033 (modify-phases %standard-phases
1034 ;; Don't run or require rubocop, the code linting tool, as this is a
1036 (add-after 'unpack 'dont-run-rubocop
1038 (substitute* "Rakefile"
1039 ((".*rubocop.*") "")
1040 ((".*RuboCop.*") ""))
1043 `(("ruby-rspec" ,ruby-rspec)))
1044 (synopsis "Method contracts for Ruby")
1046 "This library provides contracts for Ruby. A contract describes the
1047 correct inputs and output for a method, and will raise an error if a incorrect
1049 (home-page "https://github.com/egonSchiele/contracts.ruby")
1050 (license license:bsd-2)))
1052 (define-public ruby-crack
1059 (uri (rubygems-uri "crack" version))
1062 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1063 (build-system ruby-build-system)
1066 (modify-phases %standard-phases
1068 (lambda* (#:key tests? #:allow-other-keys)
1070 (for-each (lambda (file)
1071 (display file)(display "\n")
1072 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1073 (find-files "test" ".*rb$")))
1076 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1077 (synopsis "Simple JSON and XML parsing for Ruby")
1079 "@code{crack} provides really simple JSON and XML parsing, extracted from
1080 code in Merb and Rails.")
1081 (home-page "https://github.com/jnunemaker/crack")
1082 (license license:expat)))
1084 (define-public ruby-crass
1091 (uri (rubygems-uri "crass" version))
1094 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
1095 (build-system ruby-build-system)
1096 (synopsis "Pure Ruby CSS parser based on CSS Syntax Level 3")
1098 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
1099 (home-page "https://github.com/rgrove/crass/")
1100 (license license:expat)))
1102 (define-public ruby-cliver
1104 (name "ruby-cliver")
1109 (uri (rubygems-uri "cliver" version))
1112 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1113 (build-system ruby-build-system)
1116 (modify-phases %standard-phases
1117 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1118 ;; would be nice, but the tests look to be incompatible:
1120 ;; NoMethodError: undefined method `last_comment'
1122 (lambda* (#:key tests? #:allow-other-keys)
1127 `(("bundler" ,bundler)
1128 ("ruby-rspec" ,ruby-rspec-2)))
1129 (synopsis "Assertions for command-line dependencies in Ruby")
1131 "@code{cliver} provides a way to detect missing command-line
1132 dependencies, including versions.")
1133 (home-page "https://github.com/yaauie/cliver")
1134 (license license:expat)))
1136 (define-public ruby-czmq-ffi-gen
1138 (name "ruby-czmq-ffi-gen")
1143 (uri (rubygems-uri "czmq-ffi-gen" version))
1146 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1147 (build-system ruby-build-system)
1149 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1151 (modify-phases %standard-phases
1152 (add-after 'unpack 'patch-lib_dirs
1153 (lambda* (#:key inputs #:allow-other-keys)
1154 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1155 (("lib\\_dirs = \\[.*\\]")
1156 (string-append "lib_dirs = ['"
1157 (assoc-ref inputs "czmq") "/lib"
1159 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1160 (("lib\\_dirs = \\[.*\\]")
1161 (string-append "lib_dirs = ['"
1162 (assoc-ref inputs "zeromq") "/lib"
1165 `(("zeromq" ,zeromq)
1167 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1168 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1170 "These Ruby bindings are not intended to be directly used, but rather
1171 used by higher level bindings like those provided by CZTop.")
1173 "https://github.com/paddor/czmq-ffi-gen")
1174 (license license:isc)))
1176 (define-public ruby-cztop
1183 (uri (rubygems-uri "cztop" version))
1186 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1187 (build-system ruby-build-system)
1189 '(#:test-target "spec"
1191 (modify-phases %standard-phases
1192 (add-after 'unpack 'patch-lib_paths
1193 (lambda* (#:key inputs #:allow-other-keys)
1194 (substitute* "lib/cztop/poller/zmq.rb"
1195 (("lib\\_paths = \\[.*\\]")
1196 (string-append "lib_paths = ['"
1197 (assoc-ref inputs "zeromq") "/lib"
1200 `(("bundler" ,bundler)
1201 ("ruby-rspec" ,ruby-rspec)))
1203 `(("zeromq" ,zeromq)))
1205 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1206 (synopsis "CZMQ Ruby bindings")
1208 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1209 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1210 support for security mechanisms.")
1211 (home-page "https://github.com/paddor/cztop")
1212 (license license:isc)))
1214 (define-public ruby-saikuro-treemap
1216 (name "ruby-saikuro-treemap")
1220 (uri (rubygems-uri "saikuro_treemap" version))
1223 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1224 (build-system ruby-build-system)
1225 ;; Some of the tests fail because the generated JSON has keys in a
1226 ;; different order. This is a problem with the test suite rather than any
1227 ;; of the involved libraries.
1228 (arguments `(#:tests? #f))
1230 `(("ruby-json-pure" ,ruby-json-pure)
1231 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1232 (synopsis "Generate complexity treemap based on saikuro analysis")
1234 "This gem generates a treemap showing the complexity of Ruby code on
1235 which it is run. It uses Saikuro under the covers to analyze Ruby code
1237 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1238 (license license:expat)))
1240 (define-public ruby-oauth2
1242 (name "ruby-oauth2")
1247 (uri (rubygems-uri "oauth2" version))
1250 "0av6nlb5y2sm6m8fx669ywrqa9858yqaqfqzny75nqp3anag89qh"))))
1251 (build-system ruby-build-system)
1253 '(#:tests? #f)) ; No included tests
1255 `(("ruby-faraday" ,ruby-faraday)
1256 ("ruby-jwt" ,ruby-jwt)
1257 ("ruby-multi-json" ,ruby-multi-json)
1258 ("ruby-multi-xml" ,ruby-multi-xml)
1259 ("ruby-rack" ,ruby-rack)))
1260 (synopsis "Ruby wrapper for the OAuth 2.0")
1262 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1263 with a similar style to the original OAuth spec.")
1264 (home-page "https://github.com/oauth-xx/oauth2")
1265 (license license:expat)))
1267 (define-public ruby-omniauth
1269 (name "ruby-omniauth")
1274 (uri (rubygems-uri "omniauth" version))
1277 "1p16h1rp8by05k8gfw17xjhgwp60dk8qmj1xalv1n23kmxfsxb1x"))))
1278 (build-system ruby-build-system)
1280 '(#:tests? #f)) ; No included tests
1282 `(("ruby-hashie" ,ruby-hashie)
1283 ("ruby-rack" ,ruby-rack)))
1284 (synopsis "Generalized Rack framework for multiple-provider authentication")
1286 "This package provides a generalized Rack framework for multiple-provider
1288 (home-page "https://github.com/omniauth/omniauth")
1289 (license license:expat)))
1291 (define-public ruby-omniauth-oauth2
1293 (name "ruby-omniauth-oauth2")
1298 (uri (rubygems-uri "omniauth-oauth2" version))
1301 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1302 (build-system ruby-build-system)
1305 (modify-phases %standard-phases
1306 (add-after 'unpack 'remove-unnecessary-dependencies
1308 ;; The coveralls gem submits coverage information to an online
1309 ;; service, and is unnecessary when running the tests
1310 (substitute* "Gemfile"
1311 ((".*coveralls\"") ""))
1312 (substitute* "spec/helper.rb"
1313 (("require \"coveralls\"") "")
1314 (("Coveralls::SimpleCov::Formatter") ""))
1317 `(("ruby-oauth2" ,ruby-oauth2)
1318 ("ruby-omniauth" ,ruby-omniauth)))
1320 `(("bundler" ,bundler)
1321 ("ruby-rspec" ,ruby-rspec)
1322 ("ruby-simplecov" ,ruby-simplecov)
1323 ("ruby-rack-test" ,ruby-rack-test)
1324 ("ruby-webmock" ,ruby-webmock-2)))
1325 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1327 "This library provides a generic OAuth2 strategy for OmniAuth. It
1328 doesn't provide a way to gather user information, so should be used as a
1329 building block for authentication strategies.")
1330 (home-page "https://github.com/omniauth/omniauth-oauth2")
1331 (license license:expat)))
1333 (define-public ruby-open4
1340 (uri (rubygems-uri "open4" version))
1343 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1344 (build-system ruby-build-system)
1347 (modify-phases %standard-phases
1348 (add-after 'unpack 'patch
1350 (substitute* "rakefile"
1351 ;; Update the Rakefile so it works
1352 (("-rubygems") "-rrubygems")
1353 (("Config") "RbConfig"))
1355 (add-before 'check 'set-LIB
1357 ;; This is used in the rakefile when running the tests
1358 (setenv "LIB" "open4")
1360 (synopsis "Open child processes from Ruby and manage them easily")
1362 "@code{Open4} is a Ruby library to run child processes and manage their
1364 (home-page "https://github.com/ahoward/open4")
1365 (license license:ruby)))
1367 (define-public ruby-options
1369 (name "ruby-options")
1374 (uri (rubygems-uri "options" version))
1377 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1378 (build-system ruby-build-system)
1380 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1382 (modify-phases %standard-phases
1383 (add-before 'check 'set-LIB
1385 ;; This is used in the Rakefile, and setting it avoids an issue
1386 ;; with running the tests.
1387 (setenv "LIB" "options")
1389 (synopsis "Ruby library to parse options from *args cleanly")
1391 "The @code{options} library helps with parsing keyword options in Ruby
1393 (home-page "https://github.com/ahoward/options")
1394 (license license:ruby)))
1396 (define-public ruby-erubi
1403 (uri (rubygems-uri "erubi" version))
1406 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1407 (build-system ruby-build-system)
1408 (synopsis "ERB template engine for Ruby")
1410 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1412 (home-page "https://github.com/jeremyevans/erubi")
1413 (license license:expat)))
1415 (define-public ruby-erubis
1417 (name "ruby-erubis")
1422 (uri (rubygems-uri "erubis" version))
1425 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1426 (build-system ruby-build-system)
1428 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1429 (synopsis "Implementation of embedded Ruby (eRuby)")
1431 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1432 features such as multi-language support, auto escaping, auto trimming spaces
1433 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1435 (home-page "http://www.kuwata-lab.com/erubis/")
1436 (license license:expat)))
1438 (define-public ruby-execjs
1440 (name "ruby-execjs")
1444 ;; fetch from github as the gem does not contain testing code
1447 (url "https://github.com/rails/execjs.git")
1448 (commit (string-append "v" version))))
1449 (file-name (git-file-name name version))
1452 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1453 (build-system ruby-build-system)
1455 `(("bundler" ,bundler)
1456 ;; The test suite tests all the available backends. Currenly, this just
1457 ;; means the node backend.
1459 ;; PASSED: test:node
1460 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1461 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1463 (synopsis "Run JavaScript code from Ruby")
1465 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1466 runtime to evaluate your JavaScript program, then returns the result to you as
1468 (home-page "https://github.com/rails/execjs")
1469 (license license:expat)))
1471 (define-public ruby-orderedhash
1473 (name "ruby-orderedhash")
1477 (uri (rubygems-uri "orderedhash" version))
1480 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1481 (build-system ruby-build-system)
1483 '(#:tests? #f)) ; no test suite
1484 (synopsis "Ruby library providing an order-preserving hash")
1485 (description "Orderedhash is a Ruby library providing a hash
1486 implementation that preserves the order of items and features some array-like
1488 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1489 (license license:public-domain)))
1491 (define-public ruby-libxml
1493 (name "ruby-libxml")
1498 (uri (rubygems-uri "libxml-ruby" version))
1501 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1502 (build-system ruby-build-system)
1505 ("libxml2" ,libxml2)))
1507 '(#:tests? #f ; test suite hangs for unknown reason
1510 (string-append "--with-xml2-include="
1511 (assoc-ref %build-inputs "libxml2")
1512 "/include/libxml2" ))))
1513 (synopsis "Ruby bindings for GNOME Libxml2")
1514 (description "The Libxml-Ruby project provides Ruby language bindings for
1515 the GNOME Libxml2 XML toolkit.")
1516 (home-page "https://xml4r.github.com/libxml-ruby")
1517 (license license:expat)))
1519 (define-public ruby-lino
1526 (uri (rubygems-uri "lino" version))
1529 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1530 (build-system ruby-build-system)
1532 '(#:tests? #f)) ; No included tests
1534 `(("ruby-hamster" ,ruby-hamster)
1535 ("ruby-open4" ,ruby-open4)))
1536 (synopsis "Build and execute commands in Ruby")
1538 "@code{Lino} provides an interface to run external commands. It provides
1539 an interface to add options as well as managing the standard input, output and
1541 (home-page "https://github.com/tobyclemson/lino")
1542 (license license:expat)))
1544 (define-public ruby-xml-simple
1546 (name "ruby-xml-simple")
1550 (uri (rubygems-uri "xml-simple" version))
1553 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1554 (build-system ruby-build-system)
1556 '(#:tests? #f)) ; no test suite
1557 (synopsis "Simple Ruby library for XML processing")
1558 (description "This library provides a simple API for XML processing in
1560 (home-page "https://github.com/maik/xml-simple")
1561 (license license:ruby)))
1563 (define-public ruby-thor
1569 (uri (rubygems-uri "thor" version))
1572 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1573 (build-system ruby-build-system)
1575 '(#:tests? #f)) ; no test suite
1577 `(("bundler" ,bundler)))
1578 (synopsis "Ruby toolkit for building command-line interfaces")
1579 (description "Thor is a toolkit for building powerful command-line
1581 (home-page "http://whatisthor.com/")
1582 (license license:expat)))
1584 (define-public ruby-lumberjack
1586 (name "ruby-lumberjack")
1590 (uri (rubygems-uri "lumberjack" version))
1593 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1594 (build-system ruby-build-system)
1596 `(("ruby-rspec" ,ruby-rspec)
1597 ("ruby-timecop" ,ruby-timecop)))
1598 (synopsis "Logging utility library for Ruby")
1599 (description "Lumberjack is a simple logging utility that can be a drop in
1600 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1601 for automatically rolling log files even with multiple processes writing the
1603 (home-page "https://github.com/bdurand/lumberjack")
1604 (license license:expat)))
1606 (define-public ruby-rbnacl
1608 (name "ruby-rbnacl")
1613 (uri (rubygems-uri "rbnacl" version))
1616 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1617 (build-system ruby-build-system)
1620 (modify-phases %standard-phases
1621 (add-after 'unpack 'remove-unnecessary-dependencies
1623 ;; Coveralls relates to a network service, and Rubocop to code
1624 ;; linting and both are unnecessary to run the tests
1625 (substitute* "Gemfile"
1626 ((".*rubocop.*") "\n")
1627 ((".*guard-rspec.*") "\n")
1628 ((".*coveralls.*") "\n"))
1629 (substitute* "spec/spec_helper.rb"
1630 (("require \"coveralls\"") "")
1631 (("Coveralls.wear!") ""))
1633 (add-after 'unpack 'use-libsodium-from-store
1634 (lambda* (#:key inputs #:allow-other-keys)
1635 (substitute* '("lib/rbnacl/init.rb"
1636 "lib/rbnacl/sodium.rb")
1637 (("ffi_lib \\[.+\\]")
1638 (string-append "ffi_lib [\""
1639 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1642 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1644 (lambda* (#:key tests? #:allow-other-keys)
1649 `(("ruby-ffi" ,ruby-ffi)))
1651 `(("libsodium" ,libsodium)))
1653 `(("bundler" ,bundler)
1654 ("ruby-rspec" ,ruby-rspec)))
1655 (synopsis "Ruby FFI binding to libsodium")
1657 "This package provides Ruby FFI bindings to the Networking and
1658 Cryptography (NaCl) library, also known as libsodium. This provides a
1659 high-level toolkit for building cryptographic systems and protocols.")
1660 (home-page "https://github.com/crypto-rb/rbnacl")
1661 (license license:expat)))
1663 (define-public ruby-nenv
1669 (uri (rubygems-uri "nenv" version))
1672 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1673 (build-system ruby-build-system)
1675 `(#:tests? #f)) ; no tests included
1677 `(("ruby-rspec" ,ruby-rspec)
1678 ("bundler" ,bundler)))
1679 (synopsis "Ruby interface for modifying the environment")
1680 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1681 and inspect the environment.")
1682 (home-page "https://github.com/e2/nenv")
1683 (license license:expat)))
1685 (define-public ruby-permutation
1687 (name "ruby-permutation")
1691 (uri (rubygems-uri "permutation" version))
1694 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1695 (build-system ruby-build-system)
1698 (modify-phases %standard-phases
1699 (add-after 'unpack 'fix-rakefile
1701 (substitute* "Rakefile"
1702 (("require 'rake/gempackagetask'")
1703 "require 'rubygems/package_task'")
1704 (("include Config") ""))
1708 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1709 (synopsis "Library to perform operations with sequence permutations")
1710 (description "This package provides a Ruby library to perform different
1711 operations with permutations of sequences, such as strings and arrays.")
1712 (home-page "https://flori.github.io/permutation")
1713 (license license:gpl2))) ; GPL 2 only
1715 (define-public ruby-shellany
1717 (name "ruby-shellany")
1721 (uri (rubygems-uri "shellany" version))
1724 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1725 (build-system ruby-build-system)
1727 `(#:test-target "default"
1729 (modify-phases %standard-phases
1730 (add-after 'unpack 'fix-version-test
1732 (substitute* "spec/shellany_spec.rb"
1733 (("^RSpec") "require \"shellany\"\nRSpec"))
1736 `(("ruby-rspec" ,ruby-rspec)
1737 ("ruby-nenv" ,ruby-nenv)
1738 ("bundler" ,bundler)))
1739 (synopsis "Capture command output")
1740 (description "Shellany is a Ruby library providing functions to capture
1741 the output produced by running shell commands.")
1742 (home-page "https://rubygems.org/gems/shellany")
1743 (license license:expat)))
1745 (define-public ruby-notiffany
1747 (name "ruby-notiffany")
1751 (uri (rubygems-uri "notiffany" version))
1754 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1755 (build-system ruby-build-system)
1756 ;; Tests are not included in the gem.
1757 (arguments `(#:tests? #f))
1759 `(("ruby-shellany" ,ruby-shellany)
1760 ("ruby-nenv" ,ruby-nenv)))
1762 `(("bundler" ,bundler)))
1763 (synopsis "Wrapper libray for notification libraries")
1764 (description "Notiffany is a Ruby wrapper libray for notification
1765 libraries such as Libnotify.")
1766 (home-page "https://github.com/guard/notiffany")
1767 (license license:expat)))
1769 (define-public ruby-formatador
1771 (name "ruby-formatador")
1775 (uri (rubygems-uri "formatador" version))
1778 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1779 (build-system ruby-build-system)
1780 ;; Circular dependency: Tests require ruby-shindo, which requires
1781 ;; ruby-formatador at runtime.
1782 (arguments `(#:tests? #f))
1783 (synopsis "Ruby library to format text on stdout")
1784 (description "Formatador is a Ruby library to format text printed to the
1785 standard output stream.")
1786 (home-page "https://github.com/geemus/formatador")
1787 (license license:expat)))
1789 (define-public ruby-fuubar
1791 (name "ruby-fuubar")
1795 ;; Fetch from the git repository, as the gem package doesn't include
1799 (url "https://github.com/thekompanee/fuubar.git")
1800 (commit (string-append "releases/v" version))))
1801 (file-name (git-file-name name version))
1804 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1805 (build-system ruby-build-system)
1807 '(;; TODO: Some tests fail, unsure why.
1808 ;; 21 examples, 7 failures
1811 (modify-phases %standard-phases
1812 (add-before 'build 'delete-certificate
1814 ;; Remove 's.cert_chain' as we do not build with a private key
1815 (substitute* "fuubar.gemspec"
1816 ((".*cert_chain.*") "")
1817 ((".*signing_key.*") ""))
1820 (lambda* (#:key tests? #:allow-other-keys)
1825 `(("bundler" ,bundler)))
1827 `(("ruby-rspec-core" ,ruby-rspec-core)
1828 ("ruby-progressbar" ,ruby-progressbar)))
1829 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1831 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1832 string of letters and dots as feedback. It also stops on the first test
1834 (home-page "https://github.com/thekompanee/fuubar")
1835 (license license:expat)))
1837 (define-public ruby-haml
1844 (uri (rubygems-uri "haml" version))
1847 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1848 (build-system ruby-build-system)
1850 '(#:tests? #f)) ; No included tests
1852 `(("ruby-tilt" ,ruby-tilt)
1853 ("ruby-temple" ,ruby-temple)))
1854 (synopsis "Haml is a Ruby library to generate HTML documents")
1856 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1857 HTML or XML that is designed to express the structure of documents using
1858 indentation rather than closing tags. It was originally envisioned as a
1859 plugin for Ruby on Rails, but it can function as a stand-alone templating
1861 (home-page "http://haml.info/")
1862 (license license:expat)))
1864 (define-public ruby-hamster
1866 (name "ruby-hamster")
1871 (uri (rubygems-uri "hamster" version))
1874 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1875 (build-system ruby-build-system)
1878 (modify-phases %standard-phases
1879 (add-after 'unpack 'remove-unnecessary-dependencies
1881 ;; pry is a debugging tool, and is unnecessary when running the
1883 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1884 (("require 'pry'") ""))
1885 (substitute* "spec/spec_helper.rb"
1886 (("require \"pry\"") "")
1887 ;; CodeClimate is an online service, and is unnecessary for
1888 ;; running the tests
1889 (("require \"codeclimate-test-reporter\"") "")
1890 (("CodeClimate.*\n") ""))
1892 ;; No Rakefile is included, so run rspec directly.
1894 (lambda* (#:key tests? #:allow-other-keys)
1899 `(("ruby-concurrent" ,ruby-concurrent)))
1901 `(("ruby-rspec" ,ruby-rspec)))
1902 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1904 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1905 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1906 immutable queue or stack).")
1907 (home-page "https://github.com/hamstergem/hamster")
1908 (license license:expat)))
1910 (define-public ruby-hashdiff
1912 (name "ruby-hashdiff")
1917 (uri (rubygems-uri "hashdiff" version))
1920 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1921 (build-system ruby-build-system)
1924 (modify-phases %standard-phases
1925 ;; Run tests directly via rspec to avoid Rake issue:
1926 ;; NoMethodError: undefined method `last_comment'
1928 (lambda* (#:key tests? #:allow-other-keys)
1933 `(("bundler" ,bundler)
1934 ("ruby-rspec" ,ruby-rspec-2)))
1935 (synopsis "HashDiff computes the smallest difference between two hashes")
1937 "HashDiff is a Ruby library to compute the smallest difference between
1939 (home-page "https://github.com/liufengyun/hashdiff")
1940 (license license:expat)))
1942 (define-public ruby-shindo
1944 (name "ruby-shindo")
1948 (uri (rubygems-uri "shindo" version))
1951 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1952 (build-system ruby-build-system)
1954 `(#:test-target "shindo_tests"
1956 (modify-phases %standard-phases
1957 (add-after 'unpack 'fix-tests
1959 (substitute* "tests/tests_helper.rb"
1961 (substitute* "Rakefile"
1962 (("system \"shindo") "system \"./bin/shindo")
1963 ;; This test doesn't work, so we disable it.
1964 (("fail \"The build_error test should fail") "#")
1965 ((" -rubygems") ""))
1968 `(("ruby-formatador" ,ruby-formatador)))
1969 (synopsis "Simple depth first Ruby testing")
1970 (description "Shindo is a simple depth first testing library for Ruby.")
1971 (home-page "https://github.com/geemus/shindo")
1972 (license license:expat)))
1974 (define-public ruby-rubygems-tasks
1976 (name "ruby-rubygems-tasks")
1980 (uri (rubygems-uri "rubygems-tasks" version))
1983 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1984 (build-system ruby-build-system)
1985 ;; Tests need Internet access.
1986 (arguments `(#:tests? #f))
1988 `(("ruby-rspec" ,ruby-rspec)
1989 ("ruby-yard" ,ruby-yard)))
1990 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1991 (description "Rubygems-task provides Rake tasks for managing and releasing
1993 (home-page "https://github.com/postmodern/rubygems-tasks")
1994 (license license:expat)))
1996 (define-public ruby-rubyzip
1998 (name "ruby-rubyzip")
2003 (uri (rubygems-uri "rubyzip" version))
2006 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2007 (build-system ruby-build-system)
2010 (modify-phases %standard-phases
2011 (add-before 'check 'patch-tests
2012 (lambda* (#:key inputs #:allow-other-keys)
2013 (substitute* "test/gentestfiles.rb"
2016 (assoc-ref inputs "zip") "/bin/zip")))
2017 (substitute* "test/input_stream_test.rb"
2018 (("/usr/bin/env ruby") (which "ruby")))
2021 `(("bundler" ,bundler)
2022 ("ruby-simplecov" ,ruby-simplecov)
2025 (synopsis "Ruby module is for reading and writing zip files")
2027 "The rubyzip module provides ways to read from and create zip files.")
2028 (home-page "http://github.com/rubyzip/rubyzip")
2029 (license license:bsd-2)))
2031 (define-public ruby-simplecov-html
2033 (name "ruby-simplecov-html")
2037 (uri (rubygems-uri "simplecov-html" version))
2040 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2041 (build-system ruby-build-system)
2042 (arguments `(#:tests? #f)) ; there are no tests
2044 `(("bundler" ,bundler)))
2045 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2046 (description "This package provides the default HTML formatter for
2047 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2048 (home-page "https://github.com/colszowka/simplecov-html")
2049 (license license:expat)))
2051 (define-public ruby-simplecov
2053 (name "ruby-simplecov")
2057 (uri (rubygems-uri "simplecov" version))
2060 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
2061 (build-system ruby-build-system)
2062 ;; Simplecov depends on rubocop for code style checking at build time.
2063 ;; Rubocop needs simplecov at build time.
2064 (arguments `(#:tests? #f))
2066 `(("ruby-json" ,ruby-json)
2067 ("ruby-docile" ,ruby-docile)
2068 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2070 `(("bundler" ,bundler)))
2071 (synopsis "Code coverage framework for Ruby")
2072 (description "SimpleCov is a code coverage framework for Ruby with a
2073 powerful configuration library and automatic merging of coverage across test
2075 (home-page "https://github.com/colszowka/simplecov")
2076 (license license:expat)))
2078 (define-public ruby-useragent
2080 (name "ruby-useragent")
2084 (uri (rubygems-uri "useragent" version))
2087 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
2088 (build-system ruby-build-system)
2090 '(#:tests? #f)) ; no test suite
2091 (synopsis "HTTP user agent parser for Ruby")
2092 (description "UserAgent is a Ruby library that parses and compares HTTP
2094 (home-page "https://github.com/gshutler/useragent")
2095 (license license:expat)))
2097 (define-public ruby-backports
2099 (name "ruby-backports")
2104 (uri (rubygems-uri "backports" version))
2107 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2108 (build-system ruby-build-system)
2110 '(;; TODO: This should be default, but there is one test failure
2111 #:test-target "all_spec"))
2113 `(("ruby-mspec" ,ruby-mspec)
2114 ("ruby-activesupport" ,ruby-activesupport)))
2115 (synopsis "Backports of the features in newer Ruby versions")
2117 "Backports enables more compatibility across Ruby versions by providing
2118 backports of some features.")
2119 (home-page "https://github.com/marcandre/backports")
2120 (license license:expat)))
2122 (define-public ruby-bacon
2128 (uri (rubygems-uri "bacon" version))
2131 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2132 (build-system ruby-build-system)
2133 (synopsis "Small RSpec clone")
2134 (description "Bacon is a small RSpec clone providing all essential
2136 (home-page "https://github.com/chneukirchen/bacon")
2137 (license license:expat)))
2139 (define-public ruby-bacon-bits
2141 (name "ruby-bacon-bits")
2146 (uri (rubygems-uri "bacon-bits" version))
2149 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2150 (build-system ruby-build-system)
2154 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2155 (synopsis "Extensions to Bacon, for disabling tests, before and after
2158 "This extends the bacon testing framework with useful extensions to
2159 disable tests, have before and after blocks that run once and more.")
2160 (home-page "https://github.com/cldwalker/bacon-bits")
2161 (license license:expat)))
2163 (define-public ruby-bacon-colored-output
2165 (name "ruby-bacon-colored-output")
2170 (uri (rubygems-uri "bacon-colored_output" version))
2173 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2174 (build-system ruby-build-system)
2176 '(;; No included tests
2179 `(("ruby-bacon" ,ruby-bacon)))
2180 (synopsis "Colored output for Bacon test framework")
2182 "This package adds color through ANSI escape codes to Bacon test
2184 (home-page "https://github.com/whitequark/bacon-colored_output")
2185 (license license:expat)))
2187 (define-public ruby-connection-pool
2189 (name "ruby-connection-pool")
2193 (uri (rubygems-uri "connection_pool" version))
2196 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2197 (build-system ruby-build-system)
2199 `(("bundler" ,bundler)))
2200 (synopsis "Generic connection pool for Ruby")
2201 (description "Connection_pool provides a generic connection pooling
2202 interface for Ruby programs.")
2203 (home-page "https://github.com/mperham/connection_pool")
2204 (license license:expat)))
2206 (define-public ruby-net-http-persistent
2208 (name "ruby-net-http-persistent")
2212 (uri (rubygems-uri "net-http-persistent" version))
2215 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2216 (build-system ruby-build-system)
2218 `(("ruby-connection-pool" ,ruby-connection-pool)
2219 ("ruby-hoe" ,ruby-hoe)))
2220 (synopsis "Persistent HTTP connection manager")
2221 (description "Net::HTTP::Persistent manages persistent HTTP connections
2222 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2223 (home-page "https://github.com/drbrain/net-http-persistent")
2224 (license license:expat)))
2226 (define-public ruby-power-assert
2228 (name "ruby-power-assert")
2232 (uri (rubygems-uri "power_assert" version))
2235 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
2236 (build-system ruby-build-system)
2238 `(("bundler" ,bundler)))
2239 (synopsis "Assert library with descriptive assertion messages")
2240 (description "Power-assert is an assertion library providing descriptive
2241 assertion messages for tests.")
2242 (home-page "https://github.com/k-tsj/power_assert")
2243 (license (list license:bsd-2 license:ruby))))
2245 (define-public ruby-powerpack
2247 (name "ruby-powerpack")
2252 (uri (rubygems-uri "powerpack" version))
2255 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2256 (build-system ruby-build-system)
2258 '(#:test-target "spec"))
2260 `(("bundler" ,bundler)
2261 ("ruby-rspec" ,ruby-rspec)
2262 ("ruby-yard" ,ruby-yard)))
2263 (synopsis "Useful extensions to core Ruby classes")
2265 "This package provides a few useful extensions to core Ruby classes,
2266 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2268 (home-page "https://github.com/bbatsov/powerpack")
2269 (license license:expat)))
2271 (define-public ruby-locale
2273 (name "ruby-locale")
2277 (uri (rubygems-uri "locale" version))
2280 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2281 (build-system ruby-build-system)
2282 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2283 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2284 ;; dependency cycle we disable tests.
2285 (arguments `(#:tests? #f))
2287 `(("bundler" ,bundler)
2288 ("ruby-yard" ,ruby-yard)))
2289 (synopsis "Ruby library providing basic localization APIs")
2291 "Ruby-Locale is the pure ruby library which provides basic APIs for
2293 (home-page "https://github.com/ruby-gettext/locale")
2294 (license (list license:lgpl3+ license:ruby))))
2296 (define-public ruby-temple
2298 (name "ruby-temple")
2303 (uri (rubygems-uri "temple" version))
2306 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2307 (build-system ruby-build-system)
2309 `(("ruby-tilt" ,ruby-tilt)
2310 ("ruby-bacon" ,ruby-bacon)
2311 ("ruby-erubis" ,ruby-erubis)))
2312 (synopsis "Template compilation framework in Ruby")
2314 "Temple is an abstraction and framework for compiling templates to pure
2316 (home-page "https://github.com/judofyr/temple")
2317 (license license:expat)))
2319 (define-public ruby-text
2325 (uri (rubygems-uri "text" version))
2328 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2329 (build-system ruby-build-system)
2330 (synopsis "Collection of text algorithms for Ruby")
2332 "This package provides a collection of text algorithms: Levenshtein,
2333 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2334 (home-page "https://github.com/threedaymonk/text")
2335 (license license:expat)))
2337 (define-public ruby-gettext
2339 (name "ruby-gettext")
2343 (uri (rubygems-uri "gettext" version))
2346 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2347 (build-system ruby-build-system)
2348 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2349 ;; which needs ruby-gettext. To break the dependency cycle we disable
2351 (arguments `(#:tests? #f))
2353 `(("ruby-locale" ,ruby-locale)
2354 ("ruby-text" ,ruby-text)))
2356 `(("bundler" ,bundler)
2357 ("ruby-yard" ,ruby-yard)))
2358 (synopsis "GNU gettext-like program for Ruby")
2360 "Gettext is a GNU gettext-like program for Ruby. The catalog
2361 file (po-file) used is the same as that used by GNU gettext, allowing you to
2362 use GNU gettext tools for maintenance.")
2363 (home-page "https://ruby-gettext.github.com/")
2364 (license (list license:lgpl3+ license:ruby))))
2366 (define-public ruby-packnga
2368 (name "ruby-packnga")
2372 (uri (rubygems-uri "packnga" version))
2375 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2376 (build-system ruby-build-system)
2377 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2378 ;; To break the dependency cycle we disable tests.
2379 (arguments `(#:tests? #f))
2381 `(("ruby-gettext" ,ruby-gettext)
2382 ("ruby-yard" ,ruby-yard)))
2384 `(("bundler" ,bundler)))
2385 (synopsis "Utility library to package internationalized libraries")
2387 "Packnga is a library to translate to many languages using YARD.")
2388 (home-page "http://ranguba.org/packnga/")
2389 (license license:lgpl2.0+)))
2391 (define-public ruby-test-construct
2393 (name "ruby-test-construct")
2398 (uri (rubygems-uri "test_construct" version))
2401 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2402 (build-system ruby-build-system)
2404 `(("bundler" ,bundler)
2405 ("ruby-mocha" ,ruby-mocha)
2406 ("ruby-rspec" ,ruby-rspec)))
2407 (synopsis "Creates temporary files and directories for testing")
2409 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2410 temporary files and directories during tests.")
2411 (home-page "https://github.com/bhb/test_construct")
2412 (license license:expat)))
2414 (define-public ruby-test-unit
2416 (name "ruby-test-unit")
2420 (uri (rubygems-uri "test-unit" version))
2423 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2424 (build-system ruby-build-system)
2426 `(("ruby-power-assert" ,ruby-power-assert)))
2428 `(("bundler" ,bundler)
2429 ("ruby-packnga" ,ruby-packnga)
2430 ("ruby-yard" ,ruby-yard)))
2431 (synopsis "Unit testing framework for Ruby")
2432 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2433 on xUnit principles. These were originally designed by Kent Beck, creator of
2434 extreme programming software development methodology, for Smalltalk's SUnit.
2435 It allows writing tests, checking results and automated testing in Ruby.")
2436 (home-page "https://test-unit.github.io/")
2437 (license (list license:psfl license:ruby))))
2439 (define-public ruby-markaby
2441 (name "ruby-markaby")
2446 (uri (rubygems-uri "markaby" version))
2449 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2450 (build-system ruby-build-system)
2453 (modify-phases %standard-phases
2454 ;; Run rspec manually without using the Rakefile, as the versions of
2455 ;; Rake and RSpec 2 are incompatible:
2457 ;; NoMethodError: undefined method `last_comment'
2459 (lambda* (#:key tests? #:allow-other-keys)
2464 `(("ruby-builder" ,ruby-builder)))
2466 `(("bundler" ,bundler)
2467 ("ruby-rspec" ,ruby-rspec-2)))
2468 (synopsis "Write HTML pages in pure Ruby")
2470 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2471 the functionality provided by @acronym{ERB, Embeded Ruby}, but without the
2472 mixture of HTML and additional ERB syntax.")
2473 (home-page "http://markaby.github.io/")
2474 (license license:expat)))
2476 (define-public ruby-maruku
2478 (name "ruby-maruku")
2483 (uri (rubygems-uri "maruku" version))
2486 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2487 (build-system ruby-build-system)
2489 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2492 (modify-phases %standard-phases
2494 (lambda* (#:key tests? #:allow-other-keys)
2499 `(("ruby-rspec" ,ruby-rspec)
2500 ("ruby-simplecov" ,ruby-simplecov)
2501 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2502 (synopsis "Markdown interpreter in Ruby")
2504 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2505 HTML, and PDF through LaTeX.")
2506 (home-page "https://github.com/bhollis/maruku")
2507 (license license:expat)))
2509 (define-public ruby-metaclass
2511 (name "ruby-metaclass")
2515 (uri (rubygems-uri "metaclass" version))
2518 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2519 (build-system ruby-build-system)
2522 (modify-phases %standard-phases
2523 (add-after 'unpack 'add-test-unit-to-search-path
2524 (lambda* (#:key inputs #:allow-other-keys)
2525 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2526 (substitute* "Rakefile"
2527 (("t\\.libs << \"test\"" line)
2528 (string-append line "; t.libs << \""
2529 test-unit "/lib/ruby/vendor_ruby"
2531 ,(package-version ruby-test-unit)
2535 `(("bundler" ,bundler)
2536 ("ruby-test-unit" ,ruby-test-unit)))
2537 (synopsis "Ruby library adding metaclass method to all objects")
2539 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2541 (home-page "https://github.com/floehopper/metaclass")
2542 (license license:expat)))
2544 (define-public ruby-mspec
2551 (uri (rubygems-uri "mspec" version))
2554 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2555 (build-system ruby-build-system)
2557 '(;; TODO: 3 test failures
2558 ;; ./spec/mocks/mock_spec.rb:82
2559 ;; ./spec/utils/name_map_spec.rb:151
2560 ;; ./spec/utils/name_map_spec.rb:155
2563 (modify-phases %standard-phases
2564 (add-after 'extract-gemspec 'change-dependency-constraints
2566 (substitute* "mspec.gemspec"
2567 (("rake.*") "rake>)\n")
2568 (("rspec.*") "rspec>)\n"))
2571 (lambda* (#:key tests? #:allow-other-keys)
2573 (invoke "rspec" "spec"))
2576 `(("bundler" ,bundler)
2577 ("ruby-rake" ,ruby-rake)
2578 ("ruby-rspec" ,ruby-rspec)))
2579 (synopsis "MSpec is a specialized framework for RubySpec")
2581 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2582 for basic features. MSpec contains additional features that assist in writing
2583 specs for Ruby implementations in ruby/spec.")
2584 (home-page "http://rubyspec.org")
2585 (license license:expat)))
2587 (define-public ruby-mysql2
2589 (name "ruby-mysql2")
2595 (url "https://github.com/brianmario/mysql2.git")
2597 (file-name (git-file-name name version))
2600 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2601 (build-system ruby-build-system)
2603 '(;; TODO: Tests require a running MySQL/MariaDB service
2606 (modify-phases %standard-phases
2607 (replace 'replace-git-ls-files
2609 (substitute* "mysql2.gemspec"
2610 (("git ls-files .*`") "find . -type f |sort`"))
2612 (add-before 'install 'set-MAKEFLAGS
2613 (lambda* (#:key outputs #:allow-other-keys)
2617 "prefix=" (assoc-ref outputs "out")))
2619 ;; Move the 'check phase to after 'install, as then you can test
2620 ;; using the installed mysql2 gem in the store.
2622 (add-after 'install 'check
2623 (lambda* (#:key outputs tests? #:allow-other-keys)
2628 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2633 `(("mariadb" ,mariadb)
2636 `(("ruby-rspec" ,ruby-rspec)
2637 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2638 (synopsis "MySQL library for Ruby, binding to libmysql")
2640 "This package provides a simple, fast MySQL library for Ruby, binding to
2642 (home-page "https://github.com/brianmario/mysql2")
2643 (license license:expat)))
2645 (define-public ruby-blankslate
2647 (name "ruby-blankslate")
2651 (uri (rubygems-uri "blankslate" version))
2654 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2655 (build-system ruby-build-system)
2658 (modify-phases %standard-phases
2660 (lambda _ (invoke "rspec" "spec/"))))))
2662 `(("bundler" ,bundler)
2663 ("ruby-rspec" ,ruby-rspec)))
2664 (synopsis "Abstract base class with no predefined methods")
2666 "BlankSlate provides an abstract base class with no predefined
2667 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2668 as a base class when writing classes that depend upon
2669 @code{method_missing} (e.g. dynamic proxies).")
2670 (home-page "https://github.com/masover/blankslate")
2671 (license license:expat)))
2673 (define-public ruby-bond
2680 (uri (rubygems-uri "bond" version))
2683 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2684 (build-system ruby-build-system)
2686 `(("ruby-bacon" ,ruby-bacon)
2687 ("ruby-bacon-bits" ,ruby-bacon-bits)
2688 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2689 (synopsis "Bond can provide custom autocompletion for arguments, methods
2692 "Bond can autocomplete argument(s) to methods, uniquely completing per
2693 module, per method and per argument. Bond provides a configuration system and
2694 a DSL for creating custom completions and completion rules. Bond can also
2695 load completions that ship with gems. Bond is able to offer more than irb's
2696 completion since it uses the full line of input when completing as opposed to
2697 irb's last-word approach.")
2698 (home-page "http://tagaholic.me/bond/")
2699 (license license:expat)))
2701 (define-public ruby-idn-ruby
2703 (name "ruby-idn-ruby")
2708 (uri (rubygems-uri "idn-ruby" version))
2711 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2712 (build-system ruby-build-system)
2715 (modify-phases %standard-phases
2717 (add-after 'install 'check
2718 (lambda* (#:key tests? outputs #:allow-other-keys)
2720 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2721 (name-and-version (basename gem-file ".gem")))
2725 (assoc-ref outputs "out")
2726 "/lib/ruby/vendor_ruby/gems/"
2729 (find-files "./test" ".*\\.rb"))))
2732 `(("libidn" ,libidn)))
2733 (synopsis "Ruby Bindings for the GNU LibIDN library")
2735 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2736 Stringprep, Punycode and IDNA specifications. These are used to encode and
2737 decode internationalized domain + names according to the IDNA2003
2740 Included are the most important parts of the Stringprep, Punycode and IDNA
2741 APIs like performing Stringprep processings, encoding to and decoding from
2742 Punycode strings and converting entire domain names to and from the ACE
2744 (home-page "https://github.com/deepfryed/idn-ruby")
2745 (license license:asl2.0)))
2747 (define-public ruby-instantiator
2749 (name "ruby-instantiator")
2753 (uri (rubygems-uri "instantiator" version))
2756 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2757 (build-system ruby-build-system)
2760 (modify-phases %standard-phases
2761 (add-after 'unpack 'add-test-unit-to-search-path
2762 (lambda* (#:key inputs #:allow-other-keys)
2763 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2764 (substitute* "Rakefile"
2765 (("t\\.libs << \"test\"" line)
2766 (string-append line "; t.libs << \""
2767 test-unit "/lib/ruby/vendor_ruby"
2769 ,(package-version ruby-test-unit)
2773 `(("ruby-blankslate" ,ruby-blankslate)))
2775 `(("bundler" ,bundler)
2776 ("ruby-test-unit" ,ruby-test-unit)))
2777 (synopsis "Instantiate an arbitrary Ruby class")
2779 "Instantiator lets you instantiate an arbitrary Ruby class without
2780 knowing anything about the constructor.")
2781 (home-page "https://github.com/floehopper/instantiator")
2782 (license license:expat)))
2784 (define-public ruby-introspection
2786 (name "ruby-introspection")
2790 (uri (rubygems-uri "introspection" version))
2793 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2794 (build-system ruby-build-system)
2797 (modify-phases %standard-phases
2798 (add-after 'unpack 'add-test-unit-to-search-path
2799 (lambda* (#:key inputs #:allow-other-keys)
2800 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2801 (substitute* "Rakefile"
2802 (("t\\.libs << \"test\"" line)
2803 (string-append line "; t.libs << \""
2804 test-unit "/lib/ruby/vendor_ruby"
2806 ,(package-version ruby-test-unit)
2810 `(("ruby-instantiator" ,ruby-instantiator)
2811 ("ruby-metaclass" ,ruby-metaclass)))
2813 `(("bundler" ,bundler)
2814 ("ruby-blankslate" ,ruby-blankslate)
2815 ("ruby-test-unit" ,ruby-test-unit)))
2816 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2818 "Introspection provides tools to inspect the hierarchy of method
2819 definitions on a Ruby object.")
2820 (home-page "https://github.com/floehopper/introspection")
2821 (license license:expat)))
2823 (define-public ruby-redcarpet
2825 (name "ruby-redcarpet")
2829 (uri (rubygems-uri "redcarpet" version))
2832 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2833 (build-system ruby-build-system)
2836 (modify-phases %standard-phases
2837 ;; The gem archive does not include the conformance tests.
2838 (add-after 'unpack 'disable-conformance-tests
2840 (substitute* "Rakefile"
2841 (("task :test => %w\\[test:unit test:conformance\\]")
2842 "task :test => %w[test:unit]"))
2845 `(("bundler" ,bundler)
2846 ("ruby-test-unit" ,ruby-test-unit)
2847 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2848 (synopsis "Extensible Markdown to (X)HTML converter")
2850 "Redcarpet is an extensible Ruby library for Markdown processing and
2851 conversion to (X)HTML.")
2852 (home-page "https://github.com/vmg/redcarpet")
2853 (license license:expat)))
2855 (define-public ruby-rerun
2862 (uri (rubygems-uri "rerun" version))
2865 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
2866 (build-system ruby-build-system)
2868 '(#:tests? #f)) ; No included tests
2870 `(("ruby-listen" ,ruby-listen)))
2871 (synopsis "Run a process, and restart when some monitored files change")
2873 "Rerun is a tool to launch programs, then monitor the file system, and
2874 restart the program when any of the monitored files change. It's written in
2875 Ruby, but can be used for all programs.")
2876 (home-page "https://github.com/alexch/rerun/")
2877 (license license:expat)))
2879 (define-public ruby-mocha
2885 (uri (rubygems-uri "mocha" version))
2888 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2889 (build-system ruby-build-system)
2892 (modify-phases %standard-phases
2893 (add-after 'unpack 'add-test-unit-to-search-path
2894 (lambda* (#:key inputs #:allow-other-keys)
2895 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2896 (substitute* "Rakefile"
2897 (("t\\.libs << 'test'" line)
2898 (string-append line "; t.libs << \""
2899 test-unit "/lib/ruby/vendor_ruby"
2901 ,(package-version ruby-test-unit)
2904 (add-before 'check 'use-latest-redcarpet
2906 (substitute* "mocha.gemspec"
2907 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2908 "<redcarpet>.freeze, [\">= 3\"]"))
2910 (add-before 'check 'hardcode-version
2912 ;; Mocha is undefined at build time
2913 (substitute* "Rakefile"
2914 (("#\\{Mocha::VERSION\\}") ,version))
2916 (add-before 'check 'remove-failing-test
2917 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2919 (delete-file "test/acceptance/stubbing_nil_test.rb")
2922 `(("ruby-metaclass" ,ruby-metaclass)))
2924 `(("bundler" ,bundler)
2925 ("ruby-yard" ,ruby-yard)
2926 ("ruby-introspection" ,ruby-introspection)
2927 ("ruby-test-unit" ,ruby-test-unit)
2928 ("ruby-redcarpet" ,ruby-redcarpet)))
2929 (synopsis "Mocking and stubbing library for Ruby")
2931 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
2932 allows mocking and stubbing of methods on real (non-mock) classes.")
2933 (home-page "http://gofreerange.com/mocha/docs")
2934 (license license:expat)))
2936 (define-public ruby-mocha-on-bacon
2938 (name "ruby-mocha-on-bacon")
2943 (uri (rubygems-uri "mocha-on-bacon" version))
2946 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
2947 (build-system ruby-build-system)
2949 ;; rubygems.org release missing tests
2951 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
2952 (synopsis "Mocha adapter for Bacon")
2954 "This package provides a Mocha adapter for Bacon, allowing you to use the
2955 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
2957 "https://github.com/alloy/mocha-on-bacon")
2958 (license license:expat)))
2960 (define-public ruby-net-ssh
2962 (name "ruby-net-ssh")
2966 (uri (rubygems-uri "net-ssh" version))
2969 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2970 (build-system ruby-build-system)
2972 `(("bundler" ,bundler)
2973 ("ruby-mocha" ,ruby-mocha)
2974 ("ruby-test-unit" ,ruby-test-unit)))
2975 (synopsis "Ruby implementation of the SSH2 client protocol")
2976 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
2977 client protocol. It allows you to write programs that invoke and interact
2978 with processes on remote servers, via SSH2.")
2979 (home-page "https://github.com/net-ssh/net-ssh")
2980 (license license:expat)))
2982 (define-public ruby-net-scp
2984 (name "ruby-net-scp")
2985 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
2986 (version "1.2.2.rc2")
2991 (url "https://github.com/net-ssh/net-scp.git")
2992 (commit (string-append "v" version))))
2993 (file-name (git-file-name name version))
2995 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
2996 (build-system ruby-build-system)
2998 `(("bundler" ,bundler)
2999 ("ruby-test-unit" ,ruby-test-unit)
3000 ("ruby-mocha" ,ruby-mocha)))
3002 `(("ruby-net-ssh" ,ruby-net-ssh)))
3003 (synopsis "Pure-Ruby SCP client library")
3004 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3006 (home-page "https://github.com/net-ssh/net-scp")
3007 (license license:expat)))
3009 (define-public ruby-minitest
3011 (name "ruby-minitest")
3015 (uri (rubygems-uri "minitest" version))
3018 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3019 (build-system ruby-build-system)
3021 `(("ruby-hoe" ,ruby-hoe)))
3022 (synopsis "Small test suite library for Ruby")
3023 (description "Minitest provides a complete suite of Ruby testing
3024 facilities supporting TDD, BDD, mocking, and benchmarking.")
3025 (home-page "https://github.com/seattlerb/minitest")
3026 (license license:expat)))
3028 ;; This is the last release of Minitest 4, which is used by some packages.
3029 (define-public ruby-minitest-4
3030 (package (inherit ruby-minitest)
3034 (uri (rubygems-uri "minitest" version))
3037 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3040 (modify-phases %standard-phases
3041 (add-after 'unpack 'remove-unsupported-method
3043 (substitute* "Rakefile"
3044 (("self\\.rubyforge_name = .*") ""))
3046 (add-after 'build 'exclude-failing-tests
3048 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3050 (delete-file "test/minitest/test_minitest_spec.rb")
3053 (define-public ruby-minitest-around
3055 (name "ruby-minitest-around")
3060 (uri (rubygems-uri "minitest-around" version))
3063 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3064 (build-system ruby-build-system)
3067 (modify-phases %standard-phases
3068 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3070 (substitute* "minitest-around.gemspec"
3071 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3074 `(("ruby-minitest" ,ruby-minitest)))
3076 `(("bundler" ,bundler)
3077 ("ruby-cucumber" ,ruby-cucumber)
3078 ("ruby-bump" ,ruby-bump)
3079 ("ruby-test-construct" ,ruby-test-construct)))
3080 (synopsis "Run code around tests in Minitest")
3082 "This library provides a way to run code around tests in Minitest,
3083 written using either the unit test or spec style.")
3084 (home-page "https://github.com/splattael/minitest-around")
3085 (license license:expat)))
3087 (define-public ruby-minitest-sprint
3089 (name "ruby-minitest-sprint")
3093 (uri (rubygems-uri "minitest-sprint" version))
3096 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3097 (build-system ruby-build-system)
3099 `(("ruby-hoe" ,ruby-hoe)
3100 ("ruby-minitest" ,ruby-minitest)))
3101 (synopsis "Fast test suite runner for minitest")
3102 (description "Minitest-sprint is a test runner for minitest that makes it
3103 easier to re-run individual failing tests.")
3104 (home-page "https://github.com/seattlerb/minitest-sprint")
3105 (license license:expat)))
3107 (define-public ruby-minitest-bacon
3109 (name "ruby-minitest-bacon")
3113 (uri (rubygems-uri "minitest-bacon" version))
3116 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3117 (build-system ruby-build-system)
3119 `(("ruby-hoe" ,ruby-hoe)))
3121 `(("ruby-minitest" ,ruby-minitest)))
3122 (synopsis "Bacon compatibility library for minitest")
3123 (description "Minitest-bacon extends minitest with bacon-like
3124 functionality, making it easier to migrate test suites from bacon to minitest.")
3125 (home-page "https://github.com/seattlerb/minitest-bacon")
3126 (license license:expat)))
3128 (define-public ruby-minitest-focus
3130 (name "ruby-minitest-focus")
3135 (uri (rubygems-uri "minitest-focus" version))
3138 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3139 (build-system ruby-build-system)
3141 `(("ruby-minitest" ,ruby-minitest)))
3143 `(("ruby-hoe" ,ruby-hoe)))
3144 (synopsis "Allows a few specific tests to be focused on")
3146 "@code{minitest-focus} gives the ability focus on a few tests with ease
3147 without having to use command-line arguments. It introduces a @code{focus}
3148 class method for use in testing classes, specifying that the next defined test
3150 (home-page "https://github.com/seattlerb/minitest-focus")
3151 (license license:expat)))
3153 (define-public ruby-minitest-pretty-diff
3154 ;; Use git reference because gem is out of date and does not contain testing
3155 ;; script. There are no releases on GitHub.
3156 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3158 (name "ruby-minitest-pretty-diff")
3159 (version (string-append "0.1-1." (string-take commit 8)))
3163 (url "https://github.com/adammck/minitest-pretty_diff.git")
3165 (file-name (string-append name "-" version "-checkout"))
3168 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3169 (build-system ruby-build-system)
3172 (modify-phases %standard-phases
3175 (invoke "script/test"))))))
3177 `(("bundler" ,bundler)
3178 ("ruby-turn" ,ruby-turn)))
3179 (synopsis "Pretty-print hashes and arrays in MiniTest")
3181 "@code{minitest-pretty_diff} monkey-patches
3182 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3183 diffing them. This makes it easier to spot differences between nested
3184 structures when tests fail.")
3185 (home-page "https://github.com/adammck/minitest-pretty_diff")
3186 (license license:expat))))
3188 (define-public ruby-minitest-moar
3190 (name "ruby-minitest-moar")
3195 (uri (rubygems-uri "minitest-moar" version))
3198 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3199 (build-system ruby-build-system)
3202 (modify-phases %standard-phases
3203 (add-before 'check 'clean-dependencies
3205 ;; Remove all gems defined in the Gemfile because these are not
3207 (substitute* "Gemfile"
3209 ;; Remove byebug as not needed to run tests.
3210 (substitute* "test/test_helper.rb"
3211 (("require 'byebug'") ""))
3214 `(("bundler" ,bundler)
3215 ("ruby-minitest" ,ruby-minitest)))
3216 (synopsis "Extra features and changes to MiniTest")
3217 (description "@code{MiniTest Moar} add some additional features and
3218 changes some default behaviours in MiniTest. For instance, Moar replaces the
3219 MiniTest @code{Object#stub} with a global @code{stub} method.")
3220 (home-page "https://github.com/dockyard/minitest-moar")
3221 (license license:expat)))
3223 (define-public ruby-minitest-bonus-assertions
3225 (name "ruby-minitest-bonus-assertions")
3230 (uri (rubygems-uri "minitest-bonus-assertions" version))
3233 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3234 (build-system ruby-build-system)
3237 (modify-phases %standard-phases
3238 (add-before 'check 'clean-dependencies
3240 ;; Remove unneeded require statement that would entail another
3242 (substitute* "test/minitest_config.rb"
3243 (("require 'minitest/bisect'") ""))
3246 `(("ruby-hoe" ,ruby-hoe)
3247 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3248 ("ruby-minitest-focus" ,ruby-minitest-focus)
3249 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3250 (synopsis "Bonus assertions for @code{Minitest}")
3252 "Minitest bonus assertions provides extra MiniTest assertions. For
3253 instance, it provides @code{assert_true}, @code{assert_false} and
3254 @code{assert_set_equal}.")
3255 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3256 (license license:expat)))
3258 (define-public ruby-minitest-reporters
3260 (name "ruby-minitest-reporters")
3265 (uri (rubygems-uri "minitest-reporters" version))
3268 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3269 (build-system ruby-build-system)
3272 (modify-phases %standard-phases
3273 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3274 ;; including it as an input can lead to circular dependencies.
3275 (add-after 'unpack 'remove-rubocop-from-Rakefile
3277 (substitute* "Rakefile"
3278 (("require 'rubocop/rake\\_task'") "")
3279 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3281 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3283 (substitute* "minitest-reporters.gemspec"
3284 ((".*%q<rubocop>.*") "\n"))
3287 `(("ruby-ansi" ,ruby-ansi)
3288 ("ruby-builder" ,ruby-builder)
3289 ("ruby-minitest" ,ruby-minitest)
3290 ("ruby-progressbar" ,ruby-progressbar)))
3292 `(("bundler" ,bundler)
3293 ("ruby-maruku" ,ruby-maruku)))
3294 (synopsis "Enhanced reporting for Minitest tests")
3296 "@code{minitest/reporters} provides a custom Minitest runner to improve
3297 how the test state is reported. A number of different reporters are
3298 available, including a spec reporter, progress bar reporter, a HTML
3300 (home-page "https://github.com/kern/minitest-reporters")
3301 (license license:expat)))
3303 (define-public ruby-minitest-rg
3305 (name "ruby-minitest-rg")
3310 (uri (rubygems-uri "minitest-rg" version))
3313 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3314 (build-system ruby-build-system)
3316 ;; Some tests fail even outside Guix, so disable tests.
3317 ;; https://github.com/blowmage/minitest-rg/issues/12
3318 ;; https://github.com/blowmage/minitest-rg/pull/13
3321 `(("ruby-minitest" ,ruby-minitest)))
3322 (synopsis "Coloured output for Minitest")
3324 "@code{minitest-rg} changes the colour of the output from Minitest.")
3325 (home-page "http://blowmage.com/minitest-rg")
3326 (license license:expat)))
3328 (define-public ruby-minitest-hooks
3330 (name "ruby-minitest-hooks")
3335 (uri (rubygems-uri "minitest-hooks" version))
3338 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3339 (build-system ruby-build-system)
3341 '(#:test-target "spec"))
3343 `(("ruby-sequel" ,ruby-sequel)
3344 ("ruby-sqlite3" ,ruby-sqlite3)))
3345 (synopsis "Hooks for the minitest framework")
3347 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3348 @code{around_all} hooks for Minitest. This allows, for instance, running each
3349 suite of specs inside a database transaction, running each spec inside its own
3350 savepoint inside that transaction. This can significantly speed up testing
3351 for specs that share expensive database setup code.")
3352 (home-page "https://github.com/jeremyevans/minitest-hooks")
3353 (license license:expat)))
3355 (define-public ruby-daemons
3357 (name "ruby-daemons")
3361 (uri (rubygems-uri "daemons" version))
3364 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3365 (build-system ruby-build-system)
3367 `(#:tests? #f)) ; no test suite
3368 (synopsis "Daemonize Ruby programs")
3369 (description "Daemons provides a way to wrap existing Ruby scripts to be
3370 run as a daemon and to be controlled by simple start/stop/restart commands.")
3371 (home-page "https://github.com/thuehlinger/daemons")
3372 (license license:expat)))
3374 (define-public ruby-data_uri
3376 (name "ruby-data_uri")
3381 (uri (rubygems-uri "data_uri" version))
3384 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3385 (build-system ruby-build-system)
3386 (synopsis "URI class for parsing data URIs")
3388 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3389 embedded inside a URI. The URI::Data class provides support for parsing these
3390 URIs using the normal URI.parse method.")
3391 (home-page "https://github.com/dball/data_uri")
3392 (license license:expat)))
3394 (define-public ruby-git
3400 (uri (rubygems-uri "git" version))
3403 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3404 (build-system ruby-build-system)
3406 `(#:tests? #f ; no tests
3407 #:phases (modify-phases %standard-phases
3408 (add-after 'install 'patch-git-binary
3409 (lambda* (#:key inputs outputs #:allow-other-keys)
3410 ;; Make the default git binary an absolute path to the
3412 (let ((git (string-append (assoc-ref inputs "git")
3414 (config (string-append
3415 (assoc-ref outputs "out")
3416 "/lib/ruby/vendor_ruby/gems/git-"
3417 ,version "/lib/git/config.rb")))
3418 (substitute* (list config)
3420 (string-append "'" git "'")))
3424 (synopsis "Ruby wrappers for Git")
3425 (description "Ruby/Git is a Ruby library that can be used to create, read
3426 and manipulate Git repositories by wrapping system calls to the git binary.")
3427 (home-page "https://github.com/schacon/ruby-git")
3428 (license license:expat)))
3430 (define-public ruby-slop
3436 (uri (rubygems-uri "slop" version))
3439 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3440 (build-system ruby-build-system)
3442 `(("ruby-minitest" ,ruby-minitest)))
3443 (synopsis "Ruby command line option parser")
3444 (description "Slop provides a Ruby domain specific language for gathering
3445 options and parsing command line flags.")
3446 (home-page "https://github.com/leejarvis/slop")
3447 (license license:expat)))
3449 (define-public ruby-slop-3
3450 (package (inherit ruby-slop)
3454 (uri (rubygems-uri "slop" version))
3457 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3459 (define-public ruby-multi-xml
3461 (name "ruby-multi-xml")
3466 (uri (rubygems-uri "multi_xml" version))
3469 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3470 (build-system ruby-build-system)
3472 '(#:tests? #f)) ; No included tests
3473 (synopsis "Swappable XML backends for Ruby")
3475 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3476 Nokogiri, Ox, or REXML.")
3477 (home-page "https://github.com/sferik/multi_xml")
3478 (license license:expat)))
3480 (define-public ruby-multipart-post
3482 (name "ruby-multipart-post")
3486 (uri (rubygems-uri "multipart-post" version))
3489 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3490 (build-system ruby-build-system)
3492 `(("bundler" ,bundler)))
3493 (synopsis "Multipart POST library for Ruby")
3494 (description "Multipart-Post Adds multipart POST capability to Ruby's
3496 (home-page "https://github.com/nicksieger/multipart-post")
3497 (license license:expat)))
3499 (define-public ruby-multi-json
3501 (name "ruby-multi-json")
3506 ;; Tests are not distributed at rubygems.org so download from GitHub
3508 (uri (string-append "https://github.com/intridea/multi_json/archive/v"
3510 (file-name (string-append name "-" version ".tar.gz"))
3513 "1s64xqvrnrxmb59v6b2kchnisawg5ai9ky1w60dy6z6ws9la1xv4"))))
3514 (build-system ruby-build-system)
3517 (modify-phases %standard-phases
3518 (add-after 'unpack 'remove-signing-key-reference
3520 (substitute* "multi_json.gemspec"
3521 ((".*spec.signing_key.*") ""))
3524 `(("bundler" ,bundler)
3525 ("ruby-rspec" ,ruby-rspec)
3526 ("ruby-yard" ,ruby-yard)
3527 ("ruby-json-pure" ,ruby-json-pure)
3528 ("ruby-oj" ,ruby-oj)
3529 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3530 (synopsis "Common interface to multiple JSON libraries for Ruby")
3532 "This package provides a common interface to multiple JSON libraries,
3533 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3534 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3535 (home-page "https://github.com/intridea/multi_json")
3536 (license license:expat)))
3538 (define-public ruby-multi-test
3540 (name "ruby-multi-test")
3545 (uri (rubygems-uri "multi_test" version))
3548 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3549 (build-system ruby-build-system)
3551 '(;; Tests require different sets of specific gem versions to be available,
3552 ;; and there is no gemfile that specifies the newest versions of
3553 ;; dependencies to be tested.
3556 "Interface to testing libraries loaded into a running Ruby process")
3558 "@code{multi_test} provides a uniform interface onto whatever testing
3559 libraries that have been loaded into a running Ruby process to help control
3560 rogue test/unit/autorun requires.")
3561 (home-page "https://github.com/cucumber/multi_test")
3562 (license license:expat)))
3564 (define-public ruby-arel
3570 (uri (rubygems-uri "arel" version))
3573 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3574 (build-system ruby-build-system)
3575 (arguments '(#:tests? #f)) ; no tests
3576 (home-page "https://github.com/rails/arel")
3577 (synopsis "SQL AST manager for Ruby")
3578 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3579 Ruby. It simplifies the generation of complex SQL queries and adapts to
3580 various relational database implementations.")
3581 (license license:expat)))
3583 (define-public ruby-marcel
3585 (name "ruby-marcel")
3590 (uri (rubygems-uri "marcel" version))
3593 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3594 (build-system ruby-build-system)
3596 '(;; No included tests
3599 `(("ruby-mimemagic" ,ruby-mimemagic)))
3600 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3602 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3603 Extensions} type detection using magic numbers, filenames, and extensions")
3604 (home-page "https://github.com/basecamp/marcel")
3605 (license license:expat)))
3607 (define-public ruby-minitar
3608 ;; We package from the GitHub source to fix the security issue reported at
3609 ;; https://github.com/halostatue/minitar/issues/16.
3610 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3612 (name "ruby-minitar")
3613 (version (string-append "0.5.4-1." (string-take commit 8)))
3618 (url "https://github.com/halostatue/minitar.git")
3620 (file-name (string-append name "-" version "-checkout"))
3623 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3624 (build-system ruby-build-system)
3626 '(#:tests? #f)) ; missing a gemspec
3627 (synopsis "Ruby library and utility for handling tar archives")
3629 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3630 that provides the ability to deal with POSIX tar archive files.")
3631 (home-page "http://www.github.com/atoulme/minitar")
3632 (license (list license:gpl2+ license:ruby)))))
3634 (define-public ruby-mini-portile
3636 (name "ruby-mini-portile")
3641 (uri (rubygems-uri "mini_portile" version))
3644 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3645 (build-system ruby-build-system)
3647 '(#:tests? #f)) ; tests require network access
3648 (synopsis "Ports system for Ruby developers")
3649 (description "Mini-portile is a port/recipe system for Ruby developers.
3650 It provides a standard way to compile against specific versions of libraries
3651 to reproduce user environments.")
3652 (home-page "https://github.com/flavorjones/mini_portile")
3653 (license license:expat)))
3655 (define-public ruby-mini-portile-2
3656 (package (inherit ruby-mini-portile)
3660 (uri (rubygems-uri "mini_portile2" version))
3663 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
3665 (define-public ruby-nokogiri
3667 (name "ruby-nokogiri")
3671 (uri (rubygems-uri "nokogiri" version))
3674 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
3675 (build-system ruby-build-system)
3677 ;; Tests fail because Nokogiri can only test with an installed extension,
3678 ;; and also because many test framework dependencies are missing.
3680 #:gem-flags (list "--" "--use-system-libraries"
3681 (string-append "--with-xml2-include="
3682 (assoc-ref %build-inputs "libxml2")
3683 "/include/libxml2" ))
3685 (modify-phases %standard-phases
3686 (add-before 'build 'patch-extconf
3687 ;; 'pkg-config' is not included in the GEM_PATH during
3688 ;; installation, so we add it directly to the load path.
3689 (lambda* (#:key inputs #:allow-other-keys)
3690 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3691 (substitute* "ext/nokogiri/extconf.rb"
3692 (("gem 'pkg-config'.*")
3693 (string-append "$:.unshift '"
3694 pkg-config "/lib/ruby/vendor_ruby"
3696 ,(package-version ruby-pkg-config)
3700 `(("ruby-hoe" ,ruby-hoe)))
3703 ("libxml2" ,libxml2)
3704 ("libxslt" ,libxslt)))
3706 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3707 ("ruby-pkg-config" ,ruby-pkg-config)))
3708 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3709 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3710 both CSS3 selector and XPath 1.0 support.")
3711 (home-page "http://www.nokogiri.org/")
3712 (license license:expat)))
3714 (define-public ruby-method-source
3716 (name "ruby-method-source")
3721 (uri (rubygems-uri "method_source" version))
3724 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3725 (build-system ruby-build-system)
3727 `(#:test-target "spec"))
3729 `(("ruby-rspec" ,ruby-rspec)
3731 (synopsis "Retrieve the source code for Ruby methods")
3732 (description "Method_source retrieves the source code for Ruby methods.
3733 Additionally, it can extract source code from Proc and Lambda objects or just
3735 (home-page "https://github.com/banister/method_source")
3736 (license license:expat)))
3738 (define-public ruby-coderay
3740 (name "ruby-coderay")
3745 (uri (rubygems-uri "coderay" version))
3748 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3749 (build-system ruby-build-system)
3751 '(#:tests? #f)) ; missing test files
3752 (synopsis "Ruby syntax highlighting library")
3753 (description "Coderay is a Ruby library that provides syntax highlighting
3754 for select languages.")
3755 (home-page "http://coderay.rubychan.de")
3756 (license license:expat)))
3758 (define-public ruby-parser
3760 (name "ruby-parser")
3765 (uri (rubygems-uri "parser" version))
3768 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3769 (build-system ruby-build-system)
3771 `(("bundler" ,bundler)
3772 ("ruby-cliver" ,ruby-cliver)
3773 ("ruby-simplecov" ,ruby-simplecov)
3774 ("ruby-racc" ,ruby-racc)))
3776 `(("ragel" ,ragel)))
3778 `(("ruby-ast" ,ruby-ast)))
3779 (synopsis "Ruby parser written in pure Ruby")
3781 "This package provides a Ruby parser written in pure Ruby.")
3782 (home-page "https://github.com/whitequark/parser")
3783 (license license:expat)))
3785 (define-public ruby-prawn-manual-builder
3787 (name "ruby-prawn-manual-builder")
3792 (uri (rubygems-uri "prawn-manual_builder" version))
3795 "0wbjnkqp55p5wmz85ldypcray223glckd209hmdxhnzk8s5pb3za"))))
3796 (build-system ruby-build-system)
3798 '(;; No included tests
3801 (modify-phases %standard-phases
3802 (add-after 'extract-gemspec 'patch-gemspec
3804 (substitute* ".gemspec"
3805 ;; Loosen the requirement for pdf-inspector
3806 (("~> 1\\.0\\.7") ">= 0")))))))
3808 `(("ruby-coderay" ,ruby-coderay)))
3809 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3811 "This package provides a tool for writing manuals for Prawn and Prawn
3813 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3815 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3819 (define-public ruby-progress_bar
3821 (name "ruby-progress_bar")
3826 (uri (rubygems-uri "progress_bar" version))
3829 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3830 (build-system ruby-build-system)
3832 '(#:test-target "spec"))
3834 `(("ruby-highline" ,ruby-highline)
3835 ("ruby-options" ,ruby-options)))
3837 `(("bundler" ,bundler)
3838 ("ruby-rspec" ,ruby-rspec)
3839 ("ruby-timecop" ,ruby-timecop)))
3841 "Ruby library for displaying progress bars")
3843 "ProgressBar is a simple library for displaying progress bars. The
3844 maximum value is configurable, and additional information can be displayed
3845 like the percentage completion, estimated time remaining, elapsed time and
3847 (home-page "https://github.com/paul/progress_bar")
3848 (license license:wtfpl2)))
3850 (define-public ruby-dep
3857 (uri (rubygems-uri "ruby_dep" version))
3860 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
3861 (build-system ruby-build-system)
3863 '(#:tests? #f)) ; No included tests
3864 (synopsis "Creates a version constraint of supported Rubies")
3866 "This package helps create a version constraint of supported Rubies,
3867 suitable for a gemspec file.")
3868 (home-page "https://github.com/e2/ruby_dep")
3869 (license license:expat)))
3871 (define-public ruby-progressbar
3873 (name "ruby-progressbar")
3878 (uri (rubygems-uri "ruby-progressbar" version))
3881 "1cv2ym3rl09svw8940ny67bav7b2db4ms39i4raaqzkf59jmhglk"))))
3882 (build-system ruby-build-system)
3884 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3886 (synopsis "Text progress bar library for Ruby")
3888 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3889 The output can be customized with a formatting system.")
3890 (home-page "https://github.com/jfelchner/ruby-progressbar")
3891 (license license:expat)))
3893 (define-public ruby-pry
3900 (uri (rubygems-uri "pry" version))
3903 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3904 (build-system ruby-build-system)
3906 '(#:tests? #f)) ; no tests
3908 `(("ruby-coderay" ,ruby-coderay)
3909 ("ruby-method-source" ,ruby-method-source)))
3910 (synopsis "Ruby REPL")
3911 (description "Pry is an IRB alternative and runtime developer console for
3912 Ruby. It features syntax highlighting, a plugin architecture, runtime
3913 invocation, and source and documentation browsing.")
3914 (home-page "https://pryrepl.org")
3915 (license license:expat)))
3917 (define-public ruby-guard
3923 ;; The gem does not include a Rakefile, nor does it contain a
3924 ;; gemspec file, nor does it come with the tests. This is why
3925 ;; we fetch the tarball from Github.
3926 (uri (string-append "https://github.com/guard/guard/archive/v"
3928 (file-name (string-append name "-" version ".tar.gz"))
3931 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
3932 (build-system ruby-build-system)
3934 `(#:tests? #f ; tests require cucumber
3936 (modify-phases %standard-phases
3937 (add-after 'unpack 'remove-git-ls-files
3938 (lambda* (#:key outputs #:allow-other-keys)
3939 (substitute* "guard.gemspec"
3940 (("git ls-files -z") "find . -type f -print0"))
3944 (invoke "gem" "build" "guard.gemspec"))))))
3946 `(("ruby-formatador" ,ruby-formatador)
3947 ("ruby-listen" ,ruby-listen)
3948 ("ruby-lumberjack" ,ruby-lumberjack)
3949 ("ruby-nenv" ,ruby-nenv)
3950 ("ruby-notiffany" ,ruby-notiffany)
3951 ("ruby-pry" ,ruby-pry)
3952 ("ruby-shellany" ,ruby-shellany)
3953 ("ruby-thor" ,ruby-thor)))
3955 `(("bundler" ,bundler)
3956 ("ruby-rspec" ,ruby-rspec)))
3957 (synopsis "Tool to handle events on file system modifications")
3959 "Guard is a command line tool to easily handle events on file system
3960 modifications. Guard automates various tasks by running custom rules whenever
3961 file or directories are modified.")
3962 (home-page "http://guardgem.org/")
3963 (license license:expat)))
3965 (define-public ruby-tilt
3972 (uri (rubygems-uri "tilt" version))
3975 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
3976 (build-system ruby-build-system)
3979 (modify-phases %standard-phases
3980 (add-after 'unpack 'remove-some-dependencies
3982 (substitute* "Gemfile"
3983 ;; TODO ronn is used for generating the manual
3984 (("gem 'ronn'.*") "\n")
3985 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
3986 ;; pass it in as a native-input
3987 (("gem 'haml'.*") "\n")
3988 ;; TODO Not all of these gems are packaged for Guix yet:
3989 ;; less, coffee-script, livescript, babel-transpiler,
3991 (("if can_execjs") "if false")
3992 ;; Disable the secondary group to reduce the number of
3993 ;; dependencies. None of the normal approaches work, so patch
3994 ;; the Gemfile instead.
3995 (("group :secondary") "[].each"))
3998 `(("bundler" ,bundler)
3999 ("ruby-yard" ,ruby-yard)
4000 ("ruby-builder" ,ruby-builder)
4001 ("ruby-erubis" ,ruby-erubis)
4002 ("ruby-markaby" ,ruby-markaby)
4003 ("ruby-sassc" ,ruby-sassc)))
4004 (synopsis "Generic interface to multiple Ruby template engines")
4006 "Tilt is a thin interface over a number of different Ruby template
4007 engines in an attempt to make their usage as generic as possible.")
4008 (home-page "https://github.com/rtomayko/tilt/")
4009 (license license:expat)))
4011 (define-public ruby-thread-safe
4013 (name "ruby-thread-safe")
4018 (uri (rubygems-uri "thread_safe" version))
4021 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4022 (build-system ruby-build-system)
4024 '(#:tests? #f)) ; needs simplecov, among others
4025 (synopsis "Thread-safe utilities for Ruby")
4026 (description "The thread_safe library provides thread-safe collections and
4027 utilities for Ruby.")
4028 (home-page "https://github.com/ruby-concurrency/thread_safe")
4029 (license license:asl2.0)))
4031 (define-public ruby-tzinfo
4033 (name "ruby-tzinfo")
4038 (uri (rubygems-uri "tzinfo" version))
4041 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4042 (build-system ruby-build-system)
4044 `(("ruby-thread-safe" ,ruby-thread-safe)))
4045 (synopsis "Time zone library for Ruby")
4046 (description "TZInfo is a Ruby library that provides daylight savings
4047 aware transformations between times in different time zones.")
4048 (home-page "https://tzinfo.github.io")
4049 (license license:expat)))
4051 (define-public ruby-tzinfo-data
4053 (name "ruby-tzinfo-data")
4054 (version "1.2017.3")
4058 ;; Download from GitHub because the rubygems version does not contain
4059 ;; Rakefile or tests.
4061 "https://github.com/tzinfo/tzinfo-data/archive/v"
4064 (file-name (string-append name "-" version ".tar.gz"))
4067 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
4068 ;; Remove the known test failure.
4069 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4070 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4071 (patches (search-patches
4072 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4073 (build-system ruby-build-system)
4075 `(("ruby-tzinfo" ,ruby-tzinfo)))
4076 (synopsis "Data from the IANA Time Zone database")
4078 "This library provides @code{TZInfo::Data}, which contains data from the
4079 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4080 (home-page "https://tzinfo.github.io")
4081 (license license:expat)))
4083 (define-public ruby-rb-inotify
4085 (name "ruby-rb-inotify")
4090 (uri (rubygems-uri "rb-inotify" version))
4093 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4094 (build-system ruby-build-system)
4096 '(#:tests? #f ; there are no tests
4098 (modify-phases %standard-phases
4099 ;; Building the gemspec with rake is not working here since it is
4100 ;; generated with Jeweler. It is also unnecessary because the
4101 ;; existing gemspec does not use any development tools to generate a
4105 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4107 `(("ruby-ffi" ,ruby-ffi)))
4109 `(("ruby-yard" ,ruby-yard)))
4110 (synopsis "Ruby wrapper for Linux's inotify")
4111 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4112 kernel subsystem for monitoring changes to files and directories.")
4113 (home-page "https://github.com/nex3/rb-inotify")
4114 (license license:expat)))
4116 (define-public ruby-pry-editline
4118 (name "ruby-pry-editline")
4122 (uri (rubygems-uri "pry-editline" version))
4125 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4126 (build-system ruby-build-system)
4127 (arguments `(#:tests? #f)) ; no tests included
4129 `(("bundler" ,bundler)))
4130 (synopsis "Open the current REPL line in an editor")
4132 "This gem provides a plugin for the Ruby REPL to enable opening the
4133 current line in an external editor.")
4134 (home-page "https://github.com/tpope/pry-editline")
4135 (license license:expat)))
4137 (define-public ruby-sdoc
4143 (uri (rubygems-uri "sdoc" version))
4146 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4147 (build-system ruby-build-system)
4150 (modify-phases %standard-phases
4151 (add-before 'check 'set-rubylib-and-patch-gemfile
4153 (setenv "RUBYLIB" "lib")
4154 (substitute* "sdoc.gemspec"
4155 (("s.add_runtime_dependency.*") "\n")
4156 (("s.add_dependency.*") "\n"))
4157 (substitute* "Gemfile"
4159 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4162 `(("ruby-json" ,ruby-json)))
4164 `(("bundler" ,bundler)
4165 ("ruby-minitest" ,ruby-minitest)
4166 ("ruby-hoe" ,ruby-hoe)))
4167 (synopsis "Generate searchable RDoc documentation")
4169 "SDoc is an RDoc documentation generator to build searchable HTML
4170 documentation for Ruby code.")
4171 (home-page "https://github.com/voloko/sdoc")
4172 (license license:expat)))
4174 (define-public ruby-tins
4180 (uri (rubygems-uri "tins" version))
4183 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4184 (build-system ruby-build-system)
4185 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4186 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4189 `(#:tests? #f ; there are no tests
4191 (modify-phases %standard-phases
4194 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4196 (substitute* "tins.gemspec"
4197 (("\"lib/spruz\", ") ""))
4198 (invoke "gem" "build" "tins.gemspec"))))))
4199 (synopsis "Assorted tools for Ruby")
4200 (description "Tins is a Ruby library providing assorted tools.")
4201 (home-page "https://github.com/flori/tins")
4202 (license license:expat)))
4204 (define-public ruby-gem-hadar
4206 (name "ruby-gem-hadar")
4210 (uri (rubygems-uri "gem_hadar" version))
4213 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4214 (build-system ruby-build-system)
4215 ;; This gem needs itself at development time. We disable rebuilding of the
4216 ;; gemspec to avoid this loop.
4218 `(#:tests? #f ; there are no tests
4220 (modify-phases %standard-phases
4223 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4226 ("ruby-tins" ,ruby-tins)
4227 ("ruby-yard" ,ruby-yard)))
4228 (synopsis "Library for the development of Ruby gems")
4230 "This library contains some useful functionality to support the
4231 development of Ruby gems.")
4232 (home-page "https://github.com/flori/gem_hadar")
4233 (license license:expat)))
4235 (define-public ruby-minitest-tu-shim
4237 (name "ruby-minitest-tu-shim")
4241 (uri (rubygems-uri "minitest_tu_shim" version))
4244 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4245 (build-system ruby-build-system)
4248 (modify-phases %standard-phases
4249 (add-after 'unpack 'fix-test-include-path
4250 (lambda* (#:key inputs #:allow-other-keys)
4251 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4252 (substitute* "Rakefile"
4253 (("Hoe\\.add_include_dirs .*")
4254 (string-append "Hoe.add_include_dirs \""
4255 minitest "/lib/ruby/vendor_ruby"
4257 ,(package-version ruby-minitest-4)
4260 (add-before 'check 'fix-test-assumptions
4262 ;; The test output includes the file name, so a couple of tests
4263 ;; fail. Changing the regular expressions slightly fixes this
4265 (substitute* "test/test_mini_test.rb"
4266 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4267 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4268 (("gsub\\(/.*, 'FILE:LINE'\\)")
4269 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4272 `(("ruby-minitest-4" ,ruby-minitest-4)))
4274 `(("ruby-hoe" ,ruby-hoe)))
4275 (synopsis "Adapter library between minitest and test/unit")
4277 "This library bridges the gap between the small and fast minitest and
4278 Ruby's large and slower test/unit.")
4279 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4280 (license license:expat)))
4282 (define-public ruby-term-ansicolor
4284 (name "ruby-term-ansicolor")
4288 (uri (rubygems-uri "term-ansicolor" version))
4291 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4292 (build-system ruby-build-system)
4293 ;; Rebuilding the gemspec seems to require git, even though this is not a
4294 ;; git repository, so we just build the gem from the existing gemspec.
4297 (modify-phases %standard-phases
4298 (add-after 'unpack 'fix-test
4300 (substitute* "tests/hsl_triple_test.rb"
4305 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4307 `(("ruby-tins" ,ruby-tins)))
4309 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4310 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4311 (synopsis "Ruby library to control the attributes of terminal output")
4313 "This Ruby library uses ANSI escape sequences to control the attributes
4314 of terminal output.")
4315 (home-page "https://flori.github.io/term-ansicolor/")
4316 ;; There is no mention of the "or later" clause.
4317 (license license:gpl2)))
4319 (define-public ruby-terraform
4321 (name "ruby-terraform")
4326 (uri (rubygems-uri "ruby-terraform" version))
4329 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4330 (build-system ruby-build-system)
4332 '(#:tests? #f)) ; No included tests
4334 `(("ruby-lino" ,ruby-lino)))
4335 (synopsis "Ruby wrapper around the Terraform command line interface")
4337 "This package provides a Ruby wrapper around the Terraform command line
4338 interface so that Terraform can be more easily invoked from Ruby code.")
4339 (home-page "https://github.com/infrablocks/ruby_terraform")
4340 (license license:expat)))
4342 (define-public ruby-pstree
4344 (name "ruby-pstree")
4348 (uri (rubygems-uri "pstree" version))
4351 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4352 (build-system ruby-build-system)
4354 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4355 ("bundler" ,bundler)))
4356 (synopsis "Create a process tree data structure")
4358 "This library uses the output of the @code{ps} command to create a
4359 process tree data structure for the current host.")
4360 (home-page "https://github.com/flori/pstree")
4361 ;; There is no mention of the "or later" clause.
4362 (license license:gpl2)))
4364 (define-public ruby-utils
4370 (uri (rubygems-uri "utils" version))
4373 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4374 (build-system ruby-build-system)
4376 `(("ruby-tins" ,ruby-tins)
4377 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4378 ("ruby-pstree" ,ruby-pstree)
4379 ("ruby-pry-editline" ,ruby-pry-editline)))
4381 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4382 ("bundler" ,bundler)))
4383 (synopsis "Command line tools for working with Ruby")
4385 "This package provides assorted command line tools that may be useful
4386 when working with Ruby code.")
4387 (home-page "https://github.com/flori/utils")
4388 ;; There is no mention of the "or later" clause.
4389 (license license:gpl2)))
4391 (define-public ruby-jaro-winkler
4393 (name "ruby-jaro-winkler")
4398 (uri (rubygems-uri "jaro_winkler" version))
4401 "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"))))
4402 (build-system ruby-build-system)
4404 '(;; No included tests
4406 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4408 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4409 algorithm. It is written as a C extension and will fallback to a pure Ruby
4410 implementation on platforms where this is unsupported.")
4411 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4412 (license license:expat)))
4414 (define-public ruby-json
4421 (uri (rubygems-uri "json" version))
4424 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4425 (build-system ruby-build-system)
4426 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4427 (synopsis "JSON library for Ruby")
4428 (description "This Ruby library provides a JSON implementation written as
4429 a native C extension.")
4430 (home-page "http://json-jruby.rubyforge.org/")
4431 (license (list license:ruby license:gpl2)))) ; GPL2 only
4433 (define-public ruby-json-pure
4435 (name "ruby-json-pure")
4439 (uri (rubygems-uri "json_pure" version))
4442 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
4443 (build-system ruby-build-system)
4446 (modify-phases %standard-phases
4447 (add-after 'unpack 'fix-rakefile
4449 (substitute* "Rakefile"
4450 ;; Since this is not a git repository, do not call 'git'.
4451 (("`git ls-files`") "`find . -type f |sort`")
4452 ;; Loosen dependency constraint.
4453 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4455 (add-after 'replace-git-ls-files 'regenerate-gemspec
4457 ;; Regenerate gemspec so loosened dependency constraints are
4459 (invoke "rake" "gemspec")))
4460 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4462 ;; This gemspec doesn't look to be generated by the above
4463 ;; command, so patch it separately.
4464 (substitute* "json-java.gemspec"
4465 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4466 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4469 `(("bundler" ,bundler)
4471 ("ruby-simplecov" ,ruby-simplecov)
4472 ("ruby-test-unit" ,ruby-test-unit)))
4473 (synopsis "JSON implementation in pure Ruby")
4475 "This package provides a JSON implementation written in pure Ruby.")
4476 (home-page "https://flori.github.com/json")
4477 (license license:ruby)))
4479 (define-public ruby-jwt
4486 (uri (rubygems-uri "jwt" version))
4489 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4490 (build-system ruby-build-system)
4492 '(#:test-target "test"
4494 (modify-phases %standard-phases
4495 (add-after 'unpack 'remove-unnecessary-dependencies
4497 (substitute* "spec/spec_helper.rb"
4498 (("require 'simplecov.*") "\n")
4499 ;; Use [].each to disable running the SimpleCov configuration
4501 (("SimpleCov\\.configure") "[].each")
4502 (("require 'codeclimate-test-reporter'") "")
4503 (("require 'codacy-coverage'") "")
4504 (("Codacy::Reporter\\.start") ""))
4507 `(("bundler" ,bundler)
4508 ("ruby-rspec" ,ruby-rspec)
4509 ("ruby-rbnacl" ,ruby-rbnacl)))
4510 (synopsis "Ruby implementation of the JSON Web Token standard")
4512 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4513 @acronym{JWT, JSON Web Token} standard.")
4514 (home-page "https://github.com/jwt/ruby-jwt")
4515 (license license:expat)))
4517 ;; Even though this package only provides bindings for a Mac OSX API it is
4518 ;; required by "ruby-listen" at runtime.
4519 (define-public ruby-rb-fsevent
4521 (name "ruby-rb-fsevent")
4525 (uri (rubygems-uri "rb-fsevent" version))
4528 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4529 (build-system ruby-build-system)
4530 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4531 ;; "listen", which needs "rb-fsevent" at runtime.
4532 (arguments `(#:tests? #f))
4533 (synopsis "FSEvents API with signals catching")
4535 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4536 (home-page "https://rubygems.org/gems/rb-fsevent")
4537 (license license:expat)))
4539 (define-public ruby-listen
4541 (name "ruby-listen")
4545 ;; The gem does not include a Rakefile, so fetch from the Git
4549 (url "https://github.com/guard/listen.git")
4550 (commit (string-append "v" version))))
4551 (file-name (git-file-name name version))
4554 "1hqmkfa9f2xb5jlvqbafdxjd5ax75jm8gqj5nh3k22xq0kacsvgg"))))
4555 (build-system ruby-build-system)
4557 `(#:test-target "spec"
4559 (modify-phases %standard-phases
4560 (add-after 'unpack 'fix-files-in-gemspec
4562 (substitute* "listen.gemspec"
4563 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
4565 (add-before 'check 'remove-unnecessary-dependencies'
4567 (substitute* "Rakefile"
4568 ;; Rubocop is for code linting, and is unnecessary for running
4570 ((".*rubocop.*") ""))
4573 `(("bundler" ,bundler)
4574 ("ruby-rspec" ,ruby-rspec)))
4576 `(;; ruby-thor is used for the command line interface, and is referenced
4577 ;; in the wrapper, and therefore just needs to be an input.
4578 ("ruby-thor" ,ruby-thor)))
4580 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
4581 ("ruby-rb-inotify" ,ruby-rb-inotify)
4582 ("ruby-dep" ,ruby-dep)))
4583 (synopsis "Listen to file modifications")
4584 (description "The Listen gem listens to file modifications and notifies
4585 you about the changes.")
4586 (home-page "https://github.com/guard/listen")
4587 (license license:expat)))
4589 (define-public ruby-loofah
4591 (name "ruby-loofah")
4596 (uri (rubygems-uri "loofah" version))
4599 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4600 (build-system ruby-build-system)
4603 (modify-phases %standard-phases
4604 (add-after 'unpack 'remove-unnecessary-dependencies
4606 ;; concourse is a development tool which is unused, so remove it
4607 ;; so it's not required.
4608 (substitute* "Gemfile"
4609 ((".*\"concourse\".*") "\n"))
4610 (substitute* "Rakefile"
4611 (("require 'concourse'") "")
4612 (("Concourse\\.new.*") "\n"))
4615 `(("ruby-hoe" ,ruby-hoe)
4616 ("ruby-rr" ,ruby-rr)))
4618 `(("ruby-nokogiri" ,ruby-nokogiri)
4619 ("ruby-crass" ,ruby-crass)))
4620 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4622 "Loofah is a general library for manipulating and transforming HTML/XML
4623 documents and fragments. It's built on top of Nokogiri and libxml2.")
4624 (home-page "https://github.com/flavorjones/loofah")
4625 (license license:expat)))
4627 (define-public ruby-activesupport
4629 (name "ruby-activesupport")
4634 (uri (rubygems-uri "activesupport" version))
4637 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4638 (build-system ruby-build-system)
4641 (modify-phases %standard-phases
4644 ;; There are no tests, instead attempt to load the library.
4645 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4647 `(("ruby-concurrent" ,ruby-concurrent)
4648 ("ruby-i18n" ,ruby-i18n)
4649 ("ruby-minitest" ,ruby-minitest)
4650 ("ruby-tzinfo" ,ruby-tzinfo)
4651 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4652 (synopsis "Ruby on Rails utility library")
4653 (description "ActiveSupport is a toolkit of support libraries and Ruby
4654 core extensions extracted from the Rails framework. It includes support for
4655 multibyte strings, internationalization, time zones, and testing.")
4656 (home-page "http://www.rubyonrails.org")
4657 (license license:expat)))
4659 (define-public ruby-crass
4665 (uri (rubygems-uri "crass" version))
4668 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4669 (build-system ruby-build-system)
4671 `(("bundler" ,bundler)
4672 ("ruby-minitest" ,ruby-minitest)))
4673 (synopsis "Pure Ruby CSS parser")
4675 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4676 (home-page "https://github.com/rgrove/crass/")
4677 (license license:expat)))
4679 (define-public ruby-nokogumbo
4680 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4682 (name "ruby-nokogumbo")
4683 (version (string-append "1.4.7-1." (string-take commit 8)))
4685 ;; We use the git reference, because there's no Rakefile in the
4686 ;; published gem and the tarball on Github is outdated.
4689 (url "https://github.com/rubys/nokogumbo.git")
4690 (commit "d56f954d20a")))
4691 (file-name (string-append name "-" version "-checkout"))
4694 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4695 (build-system ruby-build-system)
4697 `(#:modules ((guix build ruby-build-system)
4701 (modify-phases %standard-phases
4702 (add-after 'unpack 'build-gemspec
4704 (substitute* "Rakefile"
4705 ;; Build Makefile even without a copy of gumbo-parser sources
4706 (("'gumbo-parser/src',") "")
4707 ;; We don't bundle gumbo-parser sources
4708 (("'gumbo-parser/src/\\*',") "")
4709 (("'gumbo-parser/visualc/include/\\*',") "")
4710 ;; The definition of SOURCES will be cut in gemspec, and
4711 ;; "FileList" will be undefined.
4712 (("SOURCES \\+ FileList\\[")
4713 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4715 ;; Copy the Rakefile and cut out the gemspec.
4716 (copy-file "Rakefile" ".gemspec")
4717 (with-atomic-file-replacement ".gemspec"
4719 (let loop ((line (read-line in 'concat))
4721 (if (eof-object? line)
4723 (let ((skip-next? (if skipping?
4724 (not (string-prefix? "SPEC =" line))
4725 (string-prefix? "end" line))))
4726 (when (or (not skipping?)
4727 (and skipping? (not skip-next?)))
4728 (format #t "~a" line)
4730 (loop (read-line in 'concat) skip-next?))))))
4733 `(("gumbo-parser" ,gumbo-parser)))
4735 `(("ruby-nokogiri" ,ruby-nokogiri)))
4736 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4738 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4739 access the result as a Nokogiri parsed document.")
4740 (home-page "https://github.com/rubys/nokogumbo/")
4741 (license license:asl2.0))))
4743 (define-public ruby-sanitize
4745 (name "ruby-sanitize")
4749 ;; The gem does not include the Rakefile, so we download the
4750 ;; release tarball from Github.
4751 (uri (string-append "https://github.com/rgrove/"
4752 "sanitize/archive/v" version ".tar.gz"))
4753 (file-name (string-append name "-" version ".tar.gz"))
4756 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4757 (build-system ruby-build-system)
4759 `(("ruby-crass" ,ruby-crass)
4760 ("ruby-nokogiri" ,ruby-nokogiri)
4761 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4763 `(("bundler" ,bundler)
4764 ("ruby-minitest" ,ruby-minitest)
4765 ("ruby-redcarpet" ,ruby-redcarpet)
4766 ("ruby-yard" ,ruby-yard)))
4767 (synopsis "Whitelist-based HTML and CSS sanitizer")
4769 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4770 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4771 unacceptable HTML and/or CSS from a string.")
4772 (home-page "https://github.com/rgrove/sanitize/")
4773 (license license:expat)))
4775 (define-public ruby-oj
4782 ;; Version on rubygems.org does not contain Rakefile, so download from
4784 (uri (string-append "https://github.com/ohler55/oj/archive/v"
4786 (file-name (string-append name "-" version ".tar.gz"))
4789 "1x28ga72jxlnmsd8g8c0fw81vlh54r0qgagw2lxsd3x3la091g2h"))))
4790 (build-system ruby-build-system)
4792 '(#:test-target "test_all"
4794 (modify-phases %standard-phases
4795 (add-before 'check 'disable-bundler
4797 (substitute* "Rakefile"
4798 (("Bundler\\.with_clean_env") "1.times")
4799 (("bundle exec ") "")))))))
4801 `(("bundler" ,bundler)
4802 ("ruby-rspec" ,ruby-rspec)
4803 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4804 (synopsis "JSON parser for Ruby optimized for speed")
4806 "Oj is a JSON parser and generator for Ruby, where the encoding and
4807 decoding of JSON is implemented as a C extension to Ruby.")
4808 (home-page "http://www.ohler.com/oj")
4809 (license (list license:expat ; Ruby code
4810 license:bsd-3)))) ; extension code
4812 (define-public ruby-ox
4819 (uri (rubygems-uri "ox" version))
4822 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4823 (build-system ruby-build-system)
4825 '(#:tests? #f)) ; no tests
4826 (synopsis "Optimized XML library for Ruby")
4828 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4829 written as a native C extension. It was designed to be an alternative to
4830 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4831 alternative to Marshal for Object serialization. ")
4832 (home-page "http://www.ohler.com/ox")
4833 (license license:expat)))
4835 (define-public ruby-redcloth
4837 (name "ruby-redcloth")
4841 (uri (rubygems-uri "RedCloth" version))
4844 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4845 (build-system ruby-build-system)
4847 `(#:tests? #f ; no tests
4849 (modify-phases %standard-phases
4850 ;; Redcloth has complicated rake tasks to build various versions for
4851 ;; multiple targets using RVM. We don't want this so we just use the
4852 ;; existing gemspec.
4855 (invoke "gem" "build" "redcloth.gemspec"))))))
4857 `(("bundler" ,bundler)
4858 ("ruby-diff-lcs" ,ruby-diff-lcs)
4859 ("ruby-rspec-2" ,ruby-rspec-2)))
4860 (synopsis "Textile markup language parser for Ruby")
4862 "RedCloth is a Ruby parser for the Textile markup language.")
4863 (home-page "http://redcloth.org")
4864 (license license:expat)))
4866 (define-public ruby-pg
4873 (uri (rubygems-uri "pg" version))
4876 "1pnjw3rspdfjssxyf42jnbsdlgri8ylysimp0s28wxb93k6ff2qb"))))
4877 (build-system ruby-build-system)
4879 '(#:test-target "spec"))
4881 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4882 ("ruby-hoe" ,ruby-hoe)
4883 ("ruby-rspec" ,ruby-rspec)))
4885 `(("postgresql" ,postgresql-9.6)))
4886 (synopsis "Ruby interface to PostgreSQL")
4887 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4888 with PostgreSQL 9.0 and later.")
4889 (home-page "https://bitbucket.org/ged/ruby-pg")
4890 (license license:ruby)))
4892 (define-public ruby-byebug
4894 (name "ruby-byebug")
4899 (uri (rubygems-uri "byebug" version))
4902 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4903 (build-system ruby-build-system)
4905 '(#:tests? #f)) ; no tests
4906 (synopsis "Debugger for Ruby 2")
4907 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4908 TracePoint C API for execution control and the Debug Inspector C API for call
4909 stack navigation. The core component provides support that front-ends can
4910 build on. It provides breakpoint handling and bindings for stack frames among
4911 other things and it comes with a command line interface.")
4912 (home-page "https://github.com/deivid-rodriguez/byebug")
4913 (license license:bsd-2)))
4915 (define-public ruby-netrc
4921 (uri (rubygems-uri "netrc" version))
4924 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4925 (build-system ruby-build-system)
4928 (modify-phases %standard-phases
4930 ;; There is no Rakefile and minitest can only run one file at once,
4931 ;; so we have to iterate over all test files.
4934 (invoke "ruby" "-Itest" file))
4935 (find-files "./test" "test_.*\\.rb")))))))
4937 `(("ruby-minitest" ,ruby-minitest)))
4938 (synopsis "Library to read and update netrc files")
4940 "This library can read and update netrc files, preserving formatting
4941 including comments and whitespace.")
4942 (home-page "https://github.com/geemus/netrc")
4943 (license license:expat)))
4945 (define-public ruby-unf-ext
4947 (name "ruby-unf-ext")
4951 (uri (rubygems-uri "unf_ext" version))
4954 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
4955 (build-system ruby-build-system)
4958 (modify-phases %standard-phases
4959 (add-after 'build 'build-ext
4960 (lambda _ (invoke "rake" "compile:unf_ext"))))))
4962 `(("bundler" ,bundler)
4963 ("ruby-rake-compiler" ,ruby-rake-compiler)
4964 ("ruby-test-unit" ,ruby-test-unit)))
4965 (synopsis "Unicode normalization form support library")
4967 "This package provides unicode normalization form support for Ruby.")
4968 (home-page "https://github.com/knu/ruby-unf_ext")
4969 (license license:expat)))
4971 (define-public ruby-tdiff
4972 ;; Use a newer than released snapshot so that rspec-2 is not required.
4973 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
4976 (version (string-append "0.3.3-1." (string-take commit 8)))
4980 (url "https://github.com/postmodern/tdiff.git")
4982 (file-name (string-append name "-" version "-checkout"))
4985 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
4986 (build-system ruby-build-system)
4988 `(("ruby-rspec" ,ruby-rspec)
4989 ("ruby-yard" ,ruby-yard)
4990 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4991 (synopsis "Calculate the differences between two tree-like structures")
4993 "This library provides functions to calculate the differences between two
4994 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
4995 (home-page "https://github.com/postmodern/tdiff")
4996 (license license:expat))))
4998 (define-public ruby-nokogiri-diff
4999 ;; Use a newer than released snapshot so that rspec-2 is not required.
5000 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5002 (name "ruby-nokogiri-diff")
5003 (version (string-append "0.2.0-1." (string-take commit 8)))
5007 (url "https://github.com/postmodern/nokogiri-diff.git")
5009 (file-name (string-append name "-" version "-checkout"))
5012 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5013 (build-system ruby-build-system)
5015 `(("ruby-tdiff" ,ruby-tdiff)
5016 ("ruby-nokogiri" ,ruby-nokogiri)))
5018 `(("ruby-rspec" ,ruby-rspec)
5019 ("ruby-yard" ,ruby-yard)
5020 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5021 (synopsis "Calculate the differences between two XML/HTML documents")
5023 "@code{Nokogiri::Diff} adds the ability to calculate the
5024 differences (added or removed nodes) between two XML/HTML documents.")
5025 (home-page "https://github.com/postmodern/nokogiri-diff")
5026 (license license:expat))))
5028 (define-public ruby-racc
5035 (uri (rubygems-uri "racc" version))
5038 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5039 (build-system ruby-build-system)
5041 `(("ruby-hoe" ,ruby-hoe)
5042 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5043 (synopsis "LALR(1) parser generator for Ruby")
5045 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5046 generates Ruby program.")
5047 (home-page "http://i.loveruby.net/en/projects/racc/")
5049 ;; Generally licensed under the LGPL2.1, and some files also
5050 ;; available under the same license as Ruby.
5054 (define-public ruby-rack
5061 ;; Download from GitHub so that the patch can be applied.
5063 "https://github.com/rack/rack/archive/"
5066 (file-name (string-append name "-" version ".tar.gz"))
5069 "0pb3g5ymvbf07xaxcn51dpqv3djlxavckp3qkxsjdxiqznb0d9p1"))
5070 ;; Ignore test which fails inside the build environment but works
5072 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5073 (build-system ruby-build-system)
5076 (modify-phases %standard-phases
5077 (add-before 'check 'fix-tests
5079 ;; A few of the tests use the length of a file on disk for
5080 ;; Content-Length and Content-Range headers. However, this file
5081 ;; has a shebang in it which an earlier phase patches, growing
5082 ;; the file size from 193 to 239 bytes when the store prefix is
5084 (let ((size-diff (- (string-length (which "ruby"))
5085 (string-length "/usr/bin/env ruby"))))
5086 (substitute* '("test/spec_file.rb")
5088 (number->string (+ 193 size-diff)))
5089 (("bytes(.)22-33" all delimiter)
5090 (string-append "bytes"
5092 (number->string (+ 22 size-diff))
5094 (number->string (+ 33 size-diff))))))
5097 `(("ruby-minitest" ,ruby-minitest)
5098 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5101 `(("ruby-concurrent" ,ruby-concurrent)))
5102 (synopsis "Unified web application interface for Ruby")
5103 (description "Rack provides a minimal, modular and adaptable interface for
5104 developing web applications in Ruby. By wrapping HTTP requests and responses,
5105 it unifies the API for web servers, web frameworks, and software in between
5106 into a single method call.")
5107 (home-page "https://rack.github.io/")
5108 (license license:expat)))
5110 (define-public ruby-rack-test
5112 (name "ruby-rack-test")
5117 (uri (rubygems-uri "rack-test" version))
5120 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5121 (build-system ruby-build-system)
5123 ;; Disable tests because of circular dependencies: requires sinatra,
5124 ;; which requires rack-protection, which requires rack-test. Instead
5125 ;; simply require the library.
5127 (modify-phases %standard-phases
5130 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5132 `(("ruby-rack" ,ruby-rack)))
5133 (synopsis "Testing API for Rack applications")
5135 "Rack::Test is a small, simple testing API for Rack applications. It can
5136 be used on its own or as a reusable starting point for Web frameworks and
5137 testing libraries to build on.")
5138 (home-page "https://github.com/rack-test/rack-test")
5139 (license license:expat)))
5141 (define-public ruby-rack-protection
5143 (name "ruby-rack-protection")
5148 (uri (rubygems-uri "rack-protection" version))
5151 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5152 (build-system ruby-build-system)
5154 '(;; Tests missing from the gem.
5157 `(("ruby-rack" ,ruby-rack)))
5159 `(("bundler" ,bundler)
5160 ("ruby-rspec" ,ruby-rspec-2)
5161 ("ruby-rack-test" ,ruby-rack-test)))
5162 (synopsis "Rack middleware that protects against typical web attacks")
5163 (description "Rack middleware that can be used to protect against typical
5164 web attacks. It can protect all Rack apps, including Rails. For instance, it
5165 protects against cross site request forgery, cross site scripting,
5166 clickjacking, directory traversal, session hijacking and IP spoofing.")
5167 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5168 (license license:expat)))
5170 (define-public ruby-rainbow
5172 (name "ruby-rainbow")
5177 (uri (rubygems-uri "rainbow" version))
5180 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5181 (build-system ruby-build-system)
5184 (modify-phases %standard-phases
5185 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5188 (lambda* (#:key tests? #:allow-other-keys)
5193 `(("bundler" ,bundler)
5194 ("ruby-rspec" ,ruby-rspec)))
5195 (synopsis "Colorize printed text on ANSI terminals")
5197 "@code{rainbow} provides a string presenter object to colorize strings by
5198 wrapping them in ANSI escape codes.")
5199 (home-page "https://github.com/sickill/rainbow")
5200 (license license:expat)))
5202 (define-public ruby-rr
5209 (uri (rubygems-uri "rr" version))
5212 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5213 (build-system ruby-build-system)
5215 '(#:tests? #f)) ; test files not included
5217 `(("bundler" ,bundler)
5218 ("ruby-rspec" ,ruby-rspec)))
5219 (synopsis "Ruby test double framework")
5221 "RR is a test double framework that features a rich selection of double
5222 techniques and a terse syntax.")
5223 (home-page "https://rr.github.io/rr/")
5224 (license license:expat)))
5226 (define-public ruby-rest-client
5228 (name "ruby-rest-client")
5233 (uri (rubygems-uri "rest-client" version))
5236 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5237 (build-system ruby-build-system)
5240 (modify-phases %standard-phases
5241 (add-before 'check 'remove-unnecessary-development-dependencies
5243 (substitute* "rest-client.gemspec"
5244 ;; Remove rubocop as it's unused. Rubocop also indirectly
5245 ;; depends on this package through ruby-parser and ruby-ast so
5246 ;; this avoids a dependency loop.
5247 ((".*rubocop.*") "\n")
5248 ;; Remove pry as it's unused, it's a debugging tool
5250 ;; Remove an unnecessarily strict rdoc dependency
5251 ((".*rdoc.*") "\n"))
5253 (add-before 'check 'delete-network-dependent-tests
5255 (delete-file "spec/integration/request_spec.rb")
5256 (delete-file "spec/integration/httpbin_spec.rb")
5259 `(("ruby-http-cookie" ,ruby-http-cookie)
5260 ("ruby-mime-types" ,ruby-mime-types)
5261 ("ruby-netrc" ,ruby-netrc)))
5263 `(("bundler" ,bundler)
5264 ("ruby-webmock", ruby-webmock-2)
5265 ("ruby-rspec", ruby-rspec)))
5266 (synopsis "Simple HTTP and REST client for Ruby")
5268 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5269 inspired by the Sinatra microframework style of specifying actions:
5270 @code{get}, @code{put}, @code{post}, @code{delete}.")
5271 (home-page "https://github.com/rest-client/rest-client")
5272 (license license:expat)))
5274 (define-public ruby-rubocop
5276 (name "ruby-rubocop")
5281 (uri (rubygems-uri "rubocop" version))
5284 "07shi6kncwhkvlh9ci9rgccrjsq4448hbic3yrakh2w65ppynvbj"))))
5285 (build-system ruby-build-system)
5287 '(;; No included tests
5290 `(("ruby-parser" ,ruby-parser)
5291 ("ruby-powerpack" ,ruby-powerpack)
5292 ("ruby-rainbow" ,ruby-rainbow)
5293 ("ruby-progressbar" ,ruby-progressbar)
5294 ("ruby-parallel" ,ruby-parallel)
5295 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5296 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5297 (synopsis "Ruby code style checking tool")
5299 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5300 the community-driven Ruby Style Guide.")
5301 (home-page "https://github.com/rubocop-hq/rubocop")
5302 (license license:expat)))
5304 (define-public ruby-contest
5306 (name "ruby-contest")
5311 (uri (rubygems-uri "contest" version))
5314 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5315 (build-system ruby-build-system)
5316 (synopsis "Write declarative tests using nested contexts")
5318 "Contest allows writing declarative @code{Test::Unit} tests using nested
5319 contexts without performance penalties.")
5320 (home-page "https://github.com/citrusbyte/contest")
5321 (license license:expat)))
5323 (define-public ruby-creole
5325 (name "ruby-creole")
5330 (uri (rubygems-uri "creole" version))
5333 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5334 (build-system ruby-build-system)
5336 `(("ruby-bacon" ,ruby-bacon)))
5337 (synopsis "Creole markup language converter")
5339 "Creole is a lightweight markup language and this library for converting
5340 creole to @code{HTML}.")
5341 (home-page "https://github.com/minad/creole")
5342 (license license:ruby)))
5344 (define-public ruby-docile
5346 (name "ruby-docile")
5351 (uri (rubygems-uri "docile" version))
5354 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5355 (build-system ruby-build-system)
5357 '(#:tests? #f)) ; needs github-markup, among others
5358 (synopsis "Ruby EDSL helper library")
5359 (description "Docile is a Ruby library that provides an interface for
5360 creating embedded domain specific languages (EDSLs) that manipulate existing
5362 (home-page "https://ms-ati.github.io/docile/")
5363 (license license:expat)))
5365 (define-public ruby-gherkin
5367 (name "ruby-gherkin")
5372 (uri (rubygems-uri "gherkin" version))
5375 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5376 (build-system ruby-build-system)
5378 `(("bundler" ,bundler)))
5380 '(#:tests? #f)) ; needs simplecov, among others
5381 (synopsis "Gherkin parser for Ruby")
5382 (description "Gherkin is a parser and compiler for the Gherkin language.
5383 It is intended be used by all Cucumber implementations to parse
5384 @file{.feature} files.")
5385 (home-page "https://github.com/cucumber-attic/gherkin")
5386 (license license:expat)))
5388 (define-public ruby-aruba
5395 (uri (rubygems-uri "aruba" version))
5398 "0zdd81l1lp0x78sxa6kkfqclpj5il3xl70nz05wqv2sfzzhqydxh"))))
5399 (build-system ruby-build-system)
5401 '(#:test-target "spec"
5403 (modify-phases %standard-phases
5404 (add-after 'unpack 'patch
5406 (substitute* "spec/aruba/api_spec.rb"
5407 ;; This resolves some errors in the specs
5409 ;; undefined method `parse' for Time:Class
5410 (("require 'spec_helper'")
5411 "require 'spec_helper'\nrequire 'time'"))
5412 ;; Avoid shebang issues in this spec file
5413 (substitute* "spec/aruba/matchers/command_spec.rb"
5414 (("/usr/bin/env bash")
5417 (add-before 'check 'remove-unnecessary-dependencies
5419 (substitute* "Gemfile"
5420 ((".*byebug.*") "\n")
5424 ((".*kramdown.*") "\n")
5425 ((".*rubocop.*") "\n")
5426 ((".*cucumber-pro.*") "\n")
5427 ((".*cucumber.*") "\n")
5428 ((".*license_finder.*") "\n")
5429 ((".*rake.*") "gem 'rake'\n")
5430 ((".*simplecov.*") "\n")
5431 ((".*relish.*") "\n"))
5432 (substitute* "spec/spec_helper.rb"
5433 ((".*simplecov.*") "")
5434 (("^SimpleCov.*") ""))
5435 (substitute* "aruba.gemspec"
5436 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5437 "spec.add_runtime_dependency 'cucumber'"))
5439 (add-before 'check 'set-home
5440 (lambda _ (setenv "HOME" "/tmp") #t)))))
5442 `(("bundler" ,bundler)
5443 ("ruby-rspec" ,ruby-rspec)
5444 ("ruby-fuubar" ,ruby-fuubar)))
5446 `(("ruby-childprocess" ,ruby-childprocess)
5447 ("ruby-contracts" ,ruby-contracts)
5448 ("ruby-cucumber" ,ruby-cucumber)
5449 ("ruby-ffi" ,ruby-ffi)
5450 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5451 ("ruby-thor" ,ruby-thor)
5452 ("ruby-yard" ,ruby-yard)))
5453 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5455 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5456 command-line applications. It supports applications written in any
5458 (home-page "https://github.com/cucumber/aruba")
5459 (license license:expat)))
5461 ;; A version of ruby-aruba without tests run so that circular dependencies can
5463 (define ruby-aruba-without-tests
5465 (inherit ruby-aruba)
5466 (arguments '(#:tests? #f))
5468 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5469 ,@(alist-delete "ruby-cucumber"
5470 (package-propagated-inputs ruby-aruba))))
5471 (native-inputs '())))
5473 (define-public ruby-cucumber
5475 (name "ruby-cucumber")
5481 (url "https://github.com/cucumber/cucumber-ruby.git")
5482 (commit (string-append "v" version))))
5483 (file-name (git-file-name name version))
5486 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5487 (build-system ruby-build-system)
5489 '(#:test-target "spec"
5491 (modify-phases %standard-phases
5492 ;; Don't run or require rubocop, the code linting tool, as this is a
5494 (add-after 'unpack 'dont-run-rubocop
5496 (substitute* "Rakefile"
5497 ((".*rubocop/rake\\_task.*") "")
5498 ((".*RuboCop.*") ""))
5501 `(("ruby-builder" ,ruby-builder)
5502 ("ruby-cucumber-core" ,ruby-cucumber-core)
5503 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5504 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5505 ("ruby-diff-lcs" ,ruby-diff-lcs)
5506 ("ruby-gherkin" ,ruby-gherkin)
5507 ("ruby-multi-json" ,ruby-multi-json)
5508 ("ruby-multi-test" ,ruby-multi-test)))
5510 `(("bundler" ,bundler)
5511 ;; Use a untested version of aruba, to avoid a circular dependency, as
5512 ;; ruby-aruba depends on ruby-cucumber.
5513 ("ruby-aruba", ruby-aruba-without-tests)
5514 ("ruby-rspec" ,ruby-rspec)
5515 ("ruby-pry" ,ruby-pry)
5516 ("ruby-nokogiri" ,ruby-nokogiri)))
5517 (synopsis "Describe automated tests in plain language")
5519 "Cucumber is a tool for running automated tests written in plain
5520 language. It's designed to support a Behaviour Driven Development (BDD)
5521 software development workflow.")
5522 (home-page "https://cucumber.io/")
5523 (license license:expat)))
5525 (define ruby-cucumber-without-tests
5526 (package (inherit ruby-cucumber)
5532 (define-public ruby-cucumber-core
5534 (name "ruby-cucumber-core")
5535 ;; Stick to major version 3, until version 4 of Cucumber is released.
5540 (uri (rubygems-uri "cucumber-core" version))
5543 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5544 (build-system ruby-build-system)
5546 `(("ruby-backports" ,ruby-backports)
5547 ("ruby-gherkin" ,ruby-gherkin)
5548 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5550 `(("bundler" ,bundler)))
5552 '(#:tests? #f)) ; needs simplecov, among others
5553 (synopsis "Core library for the Cucumber BDD app")
5554 (description "Cucumber is a tool for running automated tests
5555 written in plain language. Because they're written in plain language,
5556 they can be read by anyone on your team. Because they can be read by
5557 anyone, you can use them to help improve communication, collaboration
5558 and trust on your team.")
5559 (home-page "https://cucumber.io/")
5560 (license license:expat)))
5562 (define-public ruby-cucumber-expressions
5564 (name "ruby-cucumber-expressions")
5569 (uri (rubygems-uri "cucumber-expressions" version))
5572 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5573 (build-system ruby-build-system)
5575 '(#:test-target "spec"))
5577 `(("bundler" ,bundler)
5578 ("ruby-rspec" ,ruby-rspec)
5579 ("ruby-simplecov" ,ruby-simplecov)))
5580 (synopsis "Simpler alternative to Regular Expressions")
5581 (description "Cucumber Expressions offer similar functionality to Regular
5582 Expressions, with a syntax that is easier to read and write. Cucumber
5583 Expressions are extensible with parameter types.")
5584 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5585 (license license:expat)))
5587 (define-public ruby-cucumber-wire
5589 (name "ruby-cucumber-wire")
5590 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5591 ;; 3, and Cucumber 4 hasn't been released yet.
5596 (uri (rubygems-uri "cucumber-wire" version))
5599 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5600 (build-system ruby-build-system)
5602 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5603 ;; which would lead to a circular dependency.
5605 #:test-target "default"
5607 (modify-phases %standard-phases
5608 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5610 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5613 `(("bundler" ,bundler)
5614 ("ruby-rspec" ,ruby-rspec)))
5615 (synopsis "Cucumber wire protocol plugin")
5617 "Cucumber's wire protocol allows step definitions to be implemented and
5618 invoked on any platform.")
5619 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5620 (license license:expat)))
5622 (define-public ruby-cucumber-tag-expressions
5624 (name "ruby-cucumber-tag-expressions")
5629 (uri (rubygems-uri "cucumber-tag_expressions" version))
5632 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5633 (build-system ruby-build-system)
5636 (modify-phases %standard-phases
5642 `(("ruby-rspec" ,ruby-rspec)))
5643 (synopsis "Cucumber tag expressions for Ruby")
5645 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5646 boolean expression used by Cucumber.")
5647 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5648 (license license:expat)))
5650 (define-public ruby-bindex
5652 (name "ruby-bindex")
5657 (uri (rubygems-uri "bindex" version))
5660 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
5661 (build-system ruby-build-system)
5663 '(#:test-target "default"))
5665 `(("bundler" ,bundler)
5666 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5667 (synopsis "Provides access for bindings relating to Ruby exceptions")
5669 "@code{bindex} provides a way to access the bindings that relate to
5670 exceptions in Ruby, providing more information about the context in which the
5671 exception occurred.")
5672 (home-page "https://github.com/gsamokovarov/bindex")
5673 (license license:expat)))
5675 (define-public ruby-bio-logger
5677 (name "ruby-bio-logger")
5682 (uri (rubygems-uri "bio-logger" version))
5685 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5686 (build-system ruby-build-system)
5688 `(#:tests? #f)) ; rake errors, missing shoulda
5690 `(("ruby-log4r" ,ruby-log4r)))
5691 (synopsis "Log4r wrapper for Ruby")
5692 (description "Bio-logger is a wrapper around Log4r adding extra logging
5693 features such as filtering and fine grained logging.")
5694 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5695 (license license:expat)))
5697 (define-public ruby-yajl-ruby
5699 (name "ruby-yajl-ruby")
5704 (uri (rubygems-uri "yajl-ruby" version))
5707 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5708 (build-system ruby-build-system)
5710 '(#:test-target "spec"
5712 (modify-phases %standard-phases
5713 (add-before 'check 'patch-test-to-update-load-path
5715 (substitute* "spec/parsing/large_number_spec.rb"
5716 (("require \"yajl\"")
5717 "$LOAD_PATH << 'lib'; require 'yajl'"))
5720 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5721 ("ruby-rspec" ,ruby-rspec)))
5722 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5724 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5725 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5728 A modified copy of yajl is used, and included in the package.")
5729 (home-page "https://github.com/brianmario/yajl-ruby")
5730 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5731 license:bsd-3)))) ; Included, modified copy of yajl
5733 (define-public ruby-yard
5740 ;; Tests do not pass if we build from the distributed gem.
5741 (uri (string-append "https://github.com/lsegal/yard/archive/v"
5743 (file-name (string-append name "-" version ".tar.gz"))
5746 "0sqpbayy9sb406jh0zqg6qha1xds863qz9531dh6vp58hc00clfq"))))
5747 (build-system ruby-build-system)
5750 (modify-phases %standard-phases
5753 ;; $HOME needs to be set to somewhere writeable for tests to run
5754 (setenv "HOME" "/tmp")
5755 ;; Run tests without using 'rake' to avoid dependencies.
5756 (invoke "rspec"))))))
5758 `(("ruby-rspec" ,ruby-rspec)
5759 ("ruby-rack" ,ruby-rack)))
5760 (synopsis "Documentation generation tool for Ruby")
5762 "YARD is a documentation generation tool for the Ruby programming
5763 language. It enables the user to generate consistent, usable documentation
5764 that can be exported to a number of formats very easily, and also supports
5765 extending for custom Ruby constructs such as custom class level definitions.")
5766 (home-page "https://yardoc.org")
5767 (license license:expat)))
5769 (define-public ruby-clap
5775 (uri (rubygems-uri "clap" version))
5778 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5779 (build-system ruby-build-system)
5780 ;; Clap needs cutest for running tests, but cutest needs clap.
5781 (arguments `(#:tests? #f))
5782 (synopsis "Command line argument parsing for simple applications")
5784 "Clap provides command line argument parsing features. It covers the
5785 simple case of executing code based on the flags or parameters passed.")
5786 (home-page "https://github.com/djanowski/cutest")
5787 (license license:expat)))
5789 (define-public ruby-cutest
5791 (name "ruby-cutest")
5795 (uri (rubygems-uri "cutest" version))
5798 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5799 (build-system ruby-build-system)
5801 `(("ruby-clap" ,ruby-clap)))
5802 (synopsis "Run tests in separate processes")
5804 "Cutest runs tests in separate processes to avoid shared state.")
5805 (home-page "https://github.com/djanowski/cutest")
5806 (license license:expat)))
5808 (define-public ruby-pygmentize
5810 (name "ruby-pygmentize")
5814 (uri (rubygems-uri "pygmentize" version))
5817 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5818 (build-system ruby-build-system)
5821 (modify-phases %standard-phases
5822 (add-after 'unpack 'fix-pygmentize-path
5824 (substitute* "lib/pygmentize.rb"
5825 (("\"/usr/bin/env python.*")
5826 (string-append "\"" (which "pygmentize") "\"\n")))
5828 (add-after 'build 'do-not-use-vendor-directory
5830 ;; Remove bundled pygments sources
5831 ;; FIXME: ruby-build-system does not support snippets.
5832 (delete-file-recursively "vendor")
5833 (substitute* "pygmentize.gemspec"
5834 (("\"vendor/\\*\\*/\\*\",") ""))
5837 `(("pygments" ,python-pygments)))
5839 `(("ruby-cutest" ,ruby-cutest)
5840 ("ruby-nokogiri" ,ruby-nokogiri)))
5841 (synopsis "Thin Ruby wrapper around pygmentize")
5843 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5845 (home-page "https://github.com/djanowski/pygmentize")
5846 (license license:expat)))
5848 (define-public ruby-eventmachine
5850 (name "ruby-eventmachine")
5855 (uri (rubygems-uri "eventmachine" version))
5858 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5859 (build-system ruby-build-system)
5861 '(#:tests? #f)) ; test suite tries to connect to google.com
5863 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5864 (synopsis "Single-threaded network event framework for Ruby")
5866 "EventMachine implements a single-threaded engine for arbitrary network
5867 communications. EventMachine wraps all interactions with sockets, allowing
5868 programs to concentrate on the implementation of network protocols. It can be
5869 used to create both network servers and clients.")
5870 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5871 (home-page "https://github.com/eventmachine/eventmachine")
5872 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5874 (define-public ruby-ruby-engine
5876 (name "ruby-ruby-engine")
5881 (uri (rubygems-uri "ruby_engine" version))
5884 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5885 (build-system ruby-build-system)
5888 (modify-phases %standard-phases
5889 (add-before 'check 'clean-up
5891 (delete-file "Gemfile.lock")
5892 (substitute* "ruby_engine.gemspec"
5893 ;; Remove unnecessary imports that would entail further
5896 ((".*<rubygems-tasks.*") "")
5897 ;; Remove extraneous .gem file
5898 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5899 ;; Soften rake dependency
5900 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5901 "%q<rake>.freeze, [\">= 10.0\"]")
5902 ;; Soften the rspec dependency
5903 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5904 "%q<rspec>.freeze, [\">= 2.4\"]"))
5905 (substitute* "Rakefile"
5906 (("require 'rubygems/tasks'") "")
5907 (("Gem::Tasks.new") ""))
5908 ;; Remove extraneous .gem file that otherwise gets installed.
5909 (delete-file "pkg/ruby_engine-1.0.0.gem")
5912 `(("bundler" ,bundler)
5913 ("ruby-rake" ,ruby-rake)
5914 ("ruby-rspec" ,ruby-rspec)))
5915 (synopsis "Simplifies checking for Ruby implementation")
5917 "@code{ruby_engine} provides an RubyEngine class that can be used to
5918 check which implementation of Ruby is in use. It can provide the interpreter
5919 name and provides query methods such as @{RubyEngine.mri?}.")
5920 (home-page "https://github.com/janlelis/ruby_engine")
5921 (license license:expat)))
5923 (define-public ruby-turn
5930 (uri (rubygems-uri "turn" version))
5933 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
5934 (build-system ruby-build-system)
5937 (modify-phases %standard-phases
5938 ;; Tests fail because turn changes its environment so can no longer
5939 ;; find test/unit. Instead simply test if the executable runs
5943 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
5945 `(("ruby-ansi" ,ruby-ansi)
5946 ("ruby-minitest" ,ruby-minitest-4)))
5947 (synopsis "Alternate set of alternative runners for MiniTest")
5949 "TURN provides a set of alternative runners for MiniTest which are both
5950 colorful and informative. TURN displays each test on a separate line with
5951 failures being displayed immediately instead of at the end of the tests. Note
5952 that TURN is no longer being maintained.")
5953 (home-page "http://rubygems.org/gems/turn")
5954 (license license:expat)))
5956 (define-public ruby-mimemagic
5958 (name "ruby-mimemagic")
5963 (uri (rubygems-uri "mimemagic" version))
5966 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
5967 (build-system ruby-build-system)
5970 (modify-phases %standard-phases
5971 ;; This phase breaks the tests, as it patches some of the test data.
5972 (delete 'patch-source-shebangs))))
5974 `(("ruby-bacon" ,ruby-bacon)))
5975 (synopsis "Ruby library for MIME detection by extension or content")
5977 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
5978 extension or content, using the freedesktop.org.xml shared-mime-info
5980 (home-page "https://github.com/minad/mimemagic")
5981 (license license:expat)))
5983 (define-public ruby-mime-types-data
5985 (name "ruby-mime-types-data")
5986 (version "3.2016.0521")
5990 (uri (rubygems-uri "mime-types-data" version))
5993 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
5994 (build-system ruby-build-system)
5996 `(("ruby-hoe" ,ruby-hoe)))
5997 (synopsis "Registry for information about MIME media type definitions")
5999 "@code{mime-types-data} provides a registry for information about
6000 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6001 be used with the Ruby mime-types library or other software to determine
6002 defined filename extensions for MIME types, or to use filename extensions to
6003 look up the likely MIME type definitions.")
6004 (home-page "https://github.com/mime-types/mime-types-data/")
6005 (license license:expat)))
6007 (define-public ruby-mime-types
6009 (name "ruby-mime-types")
6014 (uri (rubygems-uri "mime-types" version))
6017 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
6018 (build-system ruby-build-system)
6020 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6022 `(("ruby-hoe" ,ruby-hoe)
6023 ("ruby-fivemat" ,ruby-fivemat)
6024 ("ruby-minitest-focus" ,ruby-minitest-focus)
6025 ("ruby-minitest-rg" ,ruby-minitest-rg)
6026 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6027 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
6028 (synopsis "Library and registry for MIME content type definitions")
6029 (description "The mime-types library provides a library and registry for
6030 information about Multipurpose Internet Mail Extensions (MIME) content type
6031 definitions. It can be used to determine defined filename extensions for MIME
6032 types, or to use filename extensions to look up the likely MIME type
6034 (home-page "https://github.com/mime-types/ruby-mime-types")
6035 (license license:expat)))
6037 (define-public ruby-fivemat
6039 (name "ruby-fivemat")
6044 (uri (rubygems-uri "fivemat" version))
6047 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
6048 (build-system ruby-build-system)
6050 `(#:tests? #f)) ; no tests
6051 (synopsis "Each test file given its own line of dots")
6053 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6054 its own line of dots during testing. It aims to provide test output that is
6055 neither too verbose nor too minimal.")
6056 (home-page "https://github.com/tpope/fivemat")
6057 (license license:expat)))
6059 (define-public ruby-sqlite3
6061 (name "ruby-sqlite3")
6066 (uri (rubygems-uri "sqlite3" version))
6069 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
6070 (build-system ruby-build-system)
6073 (modify-phases %standard-phases
6074 (add-before 'check 'adjust-failing-test
6076 ;; XXX: This test fails with SQLite versions >= 3.21.
6077 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
6078 (substitute* "test/test_integration_resultset.rb"
6079 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
6081 (add-before 'check 'add-gemtest-file
6082 ;; This file exists in the repository but is not distributed.
6083 (lambda _ (invoke "touch" ".gemtest"))))))
6085 `(("sqlite" ,sqlite)))
6087 `(("ruby-hoe" ,ruby-hoe)
6088 ("ruby-rake-compiler" ,ruby-rake-compiler)
6089 ("ruby-mini-portile" ,ruby-mini-portile)))
6090 (synopsis "Interface with SQLite3 databases")
6092 "This module allows Ruby programs to interface with the SQLite3 database
6095 "https://github.com/sparklemotion/sqlite3-ruby")
6096 (license license:bsd-3)))
6098 (define-public ruby-shoulda-context
6100 (name "ruby-shoulda-context")
6105 (uri (rubygems-uri "shoulda-context" version))
6108 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
6109 (build-system ruby-build-system)
6112 (modify-phases %standard-phases
6115 ;; Do not run tests to avoid circular dependence with rails.
6116 ;; Instead just import the library to test.
6117 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
6118 (synopsis "Test::Unit context framework extracted from Shoulda")
6120 "@code{shoulda-context} is the context framework extracted from Shoulda.
6121 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6122 context, setup, and should blocks combine to produce natural test method
6124 (home-page "https://github.com/thoughtbot/shoulda-context")
6125 (license license:expat)))
6127 (define-public ruby-shoulda-matchers
6129 (name "ruby-shoulda-matchers")
6134 (uri (rubygems-uri "shoulda-matchers" version))
6137 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6138 (build-system ruby-build-system)
6141 (modify-phases %standard-phases
6144 ;; Do not run tests to avoid circular dependence with rails. Instead
6145 ;; just import the library to test.
6146 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6148 `(("ruby-activesupport" ,ruby-activesupport)))
6149 (synopsis "Collection of testing matchers extracted from Shoulda")
6151 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6152 test common Rails functionality. These tests would otherwise be much longer,
6153 more complex, and error-prone.")
6154 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6155 (license license:expat)))
6157 (define-public ruby-shoulda-matchers-2
6159 (inherit ruby-shoulda-matchers)
6163 (uri (rubygems-uri "shoulda-matchers" version))
6166 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6168 (define-public ruby-shoulda
6170 (name "ruby-shoulda")
6175 (uri (rubygems-uri "shoulda" version))
6178 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6179 (build-system ruby-build-system)
6182 (modify-phases %standard-phases
6184 ;; Don't run tests to avoid circular dependence with rails. Instead
6185 ;; just import the library to test.
6186 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6188 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6189 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6190 (synopsis "Context framework and matchers for testing")
6192 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6193 @code{shoulda-matchers} providing tools for writing tests.")
6194 (home-page "https://github.com/thoughtbot/shoulda")
6195 (license license:expat)))
6197 (define-public ruby-unf
6204 (uri (rubygems-uri "unf" version))
6207 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6208 (build-system ruby-build-system)
6211 (modify-phases %standard-phases
6212 (add-before 'check 'add-dependency-to-bundler
6214 ;; test-unit is required but not provided by the bundler
6215 ;; environment. This is fixed in the upstream repository but fix
6216 ;; has not been released.
6217 (substitute* "Gemfile"
6218 (("^gemspec") "gem 'test-unit'\ngemspec"))
6221 `(("ruby-unf-ext" ,ruby-unf-ext)))
6223 `(("ruby-shoulda" ,ruby-shoulda)
6224 ("bundler" ,bundler)
6225 ("ruby-test-unit" ,ruby-test-unit)))
6226 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6228 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6229 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6230 @code{java.text.Normalizer} on JRuby.")
6231 (home-page "https://github.com/knu/ruby-unf")
6232 (license license:bsd-2)))
6234 (define-public ruby-warden
6236 (name "ruby-warden")
6241 (uri (rubygems-uri "warden" version))
6244 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6245 (build-system ruby-build-system)
6247 '(#:tests? #f)) ; No included tests
6249 `(("ruby-rack" ,ruby-rack)))
6250 (synopsis "Rack middleware providing authentication")
6252 "Warden is a Rack-based middleware that provides a mechanism for
6253 authentication in Ruby web applications.")
6254 (home-page "https://github.com/wardencommunity/warden")
6255 (license license:expat)))
6257 (define-public ruby-warden-oauth2
6259 (name "ruby-warden-oauth2")
6264 (uri (rubygems-uri "warden-oauth2" version))
6267 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6268 (build-system ruby-build-system)
6270 '(#:test-target "spec"
6272 (modify-phases %standard-phases
6273 (add-after 'unpack 'remove-unnecessary-dependencies
6275 (substitute* "Gemfile"
6276 ;; All of these gems relate to development, and are unnecessary
6277 ;; when running the tests
6278 (("gem 'guard-bundler'") "")
6279 (("gem 'guard'") "")
6280 (("gem 'guard-rspec'") "")
6281 (("gem 'rb-fsevent'") "")
6283 (("gem 'growl'") ""))
6285 ;; The test suite doesn't work with rspec@2, and this is incompatible
6286 ;; with the current version of Rake, so invoke Rspec directly
6288 (lambda* (#:key tests? #:allow-other-keys)
6290 (invoke "bundle" "exec" "rspec"))
6293 `(("ruby-warden" ,ruby-warden)))
6295 `(("bundler" ,bundler)
6296 ("ruby-rspec" ,ruby-rspec-2)
6297 ("ruby-rack-test" ,ruby-rack-test)))
6298 (synopsis "OAuth 2.0 strategies for Warden")
6300 "This library extends Warden to support OAuth 2.0 authorized API
6302 (home-page "https://github.com/opperator/warden-oauth2")
6303 (license license:expat)))
6305 (define-public ruby-webmock-2
6307 (name "ruby-webmock")
6312 (uri (rubygems-uri "webmock" version))
6315 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6316 (build-system ruby-build-system)
6318 `(("bundler" ,bundler)
6319 ("ruby-rspec" ,ruby-rspec)))
6321 `(("ruby-addressable" ,ruby-addressable)
6322 ("ruby-crack" ,ruby-crack)
6323 ("ruby-hashdiff" ,ruby-hashdiff)))
6324 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6326 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6327 requests. This is useful when testing software.")
6328 (home-page "https://github.com/bblimke/webmock")
6329 (license license:expat)))
6331 (define-public ruby-unicode-display-width
6333 (name "ruby-unicode-display-width")
6338 (uri (rubygems-uri "unicode-display_width" version))
6341 "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"))))
6342 (build-system ruby-build-system)
6344 '(;; Test data not included.
6346 (synopsis "Determine the monospace display width of Ruby strings")
6348 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6349 display width of strings in Ruby.")
6350 (home-page "https://github.com/janlelis/unicode-display_width")
6351 (license license:expat)))
6353 ;; There is another gem called 'ruby-version' so we use an underscore in this
6355 (define-public ruby_version
6357 (name "ruby_version")
6362 (uri (rubygems-uri "ruby_version" version))
6365 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6366 (build-system ruby-build-system)
6369 (modify-phases %standard-phases
6370 (add-before 'check 'fix-dependencies
6372 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6373 ;; whatever versions.
6374 (delete-file "Gemfile.lock")
6375 ;; Remove the incldued gem file as it's unnecessary.
6376 (delete-file "pkg/ruby_version-1.0.0.gem")
6377 (substitute* "ruby_version.gemspec"
6378 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6380 ((".*rubygems-tasks.*") "\n")
6381 ;; Accept any version of rake and rspec
6382 (("%q<rake.*") "%q<rake>)\n")
6383 (("%q<rspec.*") "%q<rspec>)\n"))
6384 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6386 (substitute* "Rakefile"
6387 (("^require 'rubygems/tasks'") "")
6388 (("Gem::Tasks.new") ""))
6391 `(("bundler" ,bundler)
6392 ("ruby-rspec" ,ruby-rspec)))
6393 (synopsis "Ruby library to help check the Ruby version")
6395 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6396 checking for the right Ruby version in software.")
6397 (home-page "https://github.com/janlelis/ruby_version")
6398 (license license:expat)))
6400 (define-public ruby-websocket-driver
6402 (name "ruby-websocket-driver")
6407 (uri (rubygems-uri "websocket-driver" version))
6410 "1551k3fs3kkb3ghqfj3n5lps0ikb9pyrdnzmvgfdxy8574n4g1dn"))))
6411 (build-system ruby-build-system)
6413 '(;; No included tests
6416 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6417 (synopsis "WebSocket protocol handler with pluggable I/O")
6419 "@code{websocket-driver} provides a complete implementation of the
6420 WebSocket protocols that can be hooked up to any TCP library")
6421 (home-page "https://github.com/faye/websocket-driver-ruby")
6422 (license license:expat)))
6424 (define-public ruby-websocket-extensions
6426 (name "ruby-websocket-extensions")
6431 (uri (rubygems-uri "websocket-extensions" version))
6434 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6435 (build-system ruby-build-system)
6437 '(;; No included tests
6439 (synopsis "Generic extension manager for WebSocket connections")
6441 "@code{websocket-extensions} provides a container for registering
6442 extension plugins.")
6443 (home-page "https://github.com/faye/websocket-extensions-ruby")
6444 (license license:expat)))
6446 (define-public ruby-domain-name
6448 (name "ruby-domain-name")
6449 (version "0.5.20180417")
6453 (uri (rubygems-uri "domain_name" version))
6456 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6457 (build-system ruby-build-system)
6460 (modify-phases %standard-phases
6461 (add-before 'check 'fix-versions
6463 ;; Fix NameError that appears to already be fixed upstream.
6464 (substitute* "Rakefile"
6465 (("DomainName::VERSION")
6466 "Bundler::GemHelper.gemspec.version"))
6467 ;; Loosen unnecessarily strict test-unit version specification.
6468 (substitute* "domain_name.gemspec"
6469 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6472 `(("ruby-unf" ,ruby-unf)))
6474 `(("ruby-shoulda" ,ruby-shoulda)
6475 ("bundler" ,bundler)
6476 ("ruby-test-unit" ,ruby-test-unit)))
6477 (synopsis "Domain name manipulation library")
6479 "@code{domain_name} is a Domain name manipulation library. It parses a
6480 domain name ready for extracting the registered domain and TLD (Top Level
6481 Domain). It can also be used for cookie domain validation based on the Public
6483 (home-page "https://github.com/knu/ruby-domain_name")
6484 (license license:bsd-2)))
6486 (define-public ruby-http-cookie
6488 (name "ruby-http-cookie")
6493 (uri (rubygems-uri "http-cookie" version))
6496 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6497 (build-system ruby-build-system)
6500 (modify-phases %standard-phases
6501 (add-before 'check 'add-dependency-to-bundler
6504 (substitute* "Rakefile"
6505 (("HTTP::Cookie::VERSION")
6506 "Bundler::GemHelper.gemspec.version"))
6509 `(("ruby-domain-name" ,ruby-domain-name)))
6511 `(("rubysimplecov" ,ruby-simplecov)
6512 ("bundler" ,bundler)
6513 ("ruby-sqlite3" ,ruby-sqlite3)
6514 ("ruby-test-unit" ,ruby-test-unit)))
6515 (synopsis "Handle HTTP Cookies based on RFC 6265")
6517 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6518 RFC 6265. It has been designed with security, standards compliance and
6519 compatibility in mind, to behave just the same as today's major web browsers.
6520 It has built-in support for the legacy @code{cookies.txt} and
6521 @code{cookies.sqlite} formats of Mozilla Firefox.")
6522 (home-page "https://github.com/sparklemotion/http-cookie")
6523 (license license:expat)))
6525 (define-public ruby-httpclient
6527 (name "ruby-httpclient")
6532 (uri (rubygems-uri "httpclient" version))
6535 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6536 (build-system ruby-build-system)
6538 '(;; TODO: Some tests currently fail
6540 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6541 ;; 2 omissions, 0 notifications
6544 ;; 6.49 tests/s, 22.41 assertions/s
6547 (modify-phases %standard-phases
6549 (lambda* (#:key tests? #:allow-other-keys)
6556 `(("ruby-rack" ,ruby-rack)))
6558 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6560 "The @code{httpclient} ruby library provides functionality related to
6561 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6562 Cookie, multithreading and authentication (digest, NTLM) support.
6564 Also provided is a @command{httpclient} command, which can perform HTTP
6565 requests either using arguments or with an interactive prompt.")
6566 (home-page "https://github.com/nahi/httpclient")
6567 (license license:ruby)))
6569 (define-public ruby-ansi
6576 ;; Fetch from GitHub as the gem does not contain testing code.
6577 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
6579 (file-name (string-append name "-" version ".tar.gz"))
6582 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
6583 (build-system ruby-build-system)
6586 (modify-phases %standard-phases
6587 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6588 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6592 (invoke "ruby" "-Ilib" "-r" "ansi")))
6593 (add-before 'validate-runpath 'replace-broken-symlink
6594 (lambda* (#:key outputs #:allow-other-keys)
6595 (let* ((out (assoc-ref outputs "out"))
6596 (file (string-append
6597 out "/lib/ruby/vendor_ruby/gems/ansi-"
6598 ,version "/lib/ansi.yml")))
6599 ;; XXX: This symlink is broken since ruby 2.4.
6600 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6602 (symlink "../.index" file)
6604 (synopsis "ANSI escape code related libraries")
6606 "This package is a collection of ANSI escape code related libraries
6607 enabling ANSI colorization and stylization of console output. Included in the
6608 library are the @code{Code} module, which defines ANSI codes as constants and
6609 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6610 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6611 @code{Terminal} module which provides information about the current output
6613 (home-page "https://rubyworks.github.io/ansi")
6614 (license license:bsd-2)))
6616 (define-public ruby-systemu
6618 (name "ruby-systemu")
6623 (uri (rubygems-uri "systemu" version))
6626 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6627 (build-system ruby-build-system)
6630 (modify-phases %standard-phases
6631 (add-before 'check 'set-version
6633 (setenv "VERSION" ,version)
6635 (synopsis "Capture of stdout/stderr and handling of child processes")
6637 "Systemu can be used on any platform to return status, stdout, and stderr
6638 of any command. Unlike other methods like @code{open3} and @code{popen4}
6639 there is no danger of full pipes or threading issues hanging your process or
6641 (home-page "https://github.com/ahoward/systemu")
6642 (license license:ruby)))
6644 (define-public ruby-bio-commandeer
6646 (name "ruby-bio-commandeer")
6651 (uri (rubygems-uri "bio-commandeer" version))
6654 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6655 (build-system ruby-build-system)
6658 (modify-phases %standard-phases
6660 ;; Run test without calling 'rake' so that jeweler is
6661 ;; not required as an input.
6663 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6665 `(("ruby-bio-logger" ,ruby-bio-logger)
6666 ("ruby-systemu" ,ruby-systemu)))
6668 `(("bundler" ,bundler)
6669 ("ruby-rspec" ,ruby-rspec)))
6670 (synopsis "Simplified running of shell commands from within Ruby")
6672 "Bio-commandeer provides an opinionated method of running shell commands
6673 from within Ruby. The advantage of bio-commandeer over other methods of
6674 running external commands is that when something goes wrong, messages printed
6675 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6676 detail to ease debugging.")
6677 (home-page "https://github.com/wwood/bioruby-commandeer")
6678 (license license:expat)))
6680 (define-public ruby-rubytest
6682 (name "ruby-rubytest")
6687 (uri (rubygems-uri "rubytest" version))
6690 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6691 (build-system ruby-build-system)
6693 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6694 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6695 ;; simply test that the library can be require'd.
6697 (modify-phases %standard-phases
6700 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6702 `(("ruby-ansi" ,ruby-ansi)))
6703 (synopsis "Universal test harness for Ruby")
6705 "Rubytest is a testing meta-framework for Ruby. It can handle any
6706 compliant test framework and can run tests from multiple frameworks in a
6708 (home-page "https://rubyworks.github.io/rubytest")
6709 (license license:bsd-2)))
6711 (define-public ruby-brass
6718 (uri (rubygems-uri "brass" version))
6721 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6722 (build-system ruby-build-system)
6724 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6725 ;; Instead simply test that the library can be require'd.
6727 (modify-phases %standard-phases
6730 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6731 (synopsis "Basic foundational assertions framework")
6733 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6734 foundational assertions framework for other assertion and test frameworks to
6736 (home-page "https://rubyworks.github.io/brass")
6737 (license license:bsd-2)))
6739 (define-public ruby-qed
6746 (uri (rubygems-uri "qed" version))
6749 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6750 (build-system ruby-build-system)
6752 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6753 ;; Instead simply test that the executable runs using --copyright.
6755 (modify-phases %standard-phases
6758 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6760 `(("ruby-ansi" ,ruby-ansi)
6761 ("ruby-brass" ,ruby-brass)))
6762 (synopsis "Test framework utilizing literate programming techniques")
6764 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6765 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6766 Development} (BDD) utilizing Literate Programming techniques. QED sits
6767 somewhere between lower-level testing tools like @code{Test::Unit} and
6768 requirement specifications systems like Cucumber.")
6769 (home-page "https://rubyworks.github.io/qed")
6770 (license license:bsd-2)))
6772 (define-public ruby-que
6775 (version "1.0.0.beta3")
6779 (uri (rubygems-uri "que" version))
6782 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6783 (build-system ruby-build-system)
6785 '(#:tests? #f)) ; No included tests
6786 (synopsis "Job queue using PostgreSQL written in Ruby")
6788 "This package provides a job queue that uses PostgreSQL for storing jobs
6789 and locking between worker processes.")
6790 (home-page "https://github.com/chanks/que")
6791 (license license:expat)))
6793 (define-public ruby-ae
6800 ;; Fetch from github so tests are included.
6802 "https://github.com/rubyworks/ae/archive/"
6804 (file-name (string-append name "-" version ".tar.gz"))
6807 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
6808 (build-system ruby-build-system)
6811 (modify-phases %standard-phases
6813 (lambda _ (invoke "qed")))
6814 (add-before 'validate-runpath 'replace-broken-symlink
6815 (lambda* (#:key outputs #:allow-other-keys)
6816 (let* ((out (assoc-ref outputs "out"))
6817 (file (string-append
6818 out "/lib/ruby/vendor_ruby/gems/ae-"
6819 ,version "/lib/ae.yml")))
6820 ;; XXX: This symlink is broken since ruby 2.4.
6821 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6823 (symlink "../.index" file)
6826 `(("ruby-ansi" ,ruby-ansi)))
6828 `(("ruby-qed" ,ruby-qed)))
6829 (synopsis "Assertions library")
6831 "Assertive Expressive (AE) is an assertions library specifically designed
6832 for reuse by other test frameworks.")
6833 (home-page "https://rubyworks.github.io/ae")
6834 (license license:bsd-2)))
6836 (define-public ruby-lemon
6843 (uri (rubygems-uri "lemon" version))
6846 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6847 (build-system ruby-build-system)
6850 (modify-phases %standard-phases
6851 (replace 'check (lambda _ (invoke "qed"))))))
6853 `(("ruby-ae" ,ruby-ae)
6854 ("ruby-ansi" ,ruby-ansi)
6855 ("ruby-rubytest" ,ruby-rubytest)))
6857 `(("ruby-qed" ,ruby-qed)))
6858 (synopsis "Test framework correlating code structure and test unit")
6860 "Lemon is a unit testing framework that enforces highly formal
6861 case-to-class and unit-to-method test construction. This enforcement can help
6862 focus concern on individual units of behavior.")
6863 (home-page "https://rubyworks.github.io/lemon")
6864 (license license:bsd-2)))
6866 (define-public ruby-rubytest-cli
6868 (name "ruby-rubytest-cli")
6873 (uri (rubygems-uri "rubytest-cli" version))
6876 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6877 (build-system ruby-build-system)
6879 `(#:tests? #f)) ; no tests
6881 `(("ruby-ansi" ,ruby-ansi)
6882 ("ruby-rubytest" ,ruby-rubytest)))
6883 (synopsis "Command-line interface for rubytest")
6885 "Rubytest CLI is a command-line interface for running tests for
6886 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6887 (home-page "https://rubyworks.github.io/rubytest-cli")
6888 (license license:bsd-2)))
6890 (define-public ruby-hashery
6892 (name "ruby-hashery")
6897 (uri (rubygems-uri "hashery" version))
6900 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6901 (build-system ruby-build-system)
6904 (modify-phases %standard-phases
6908 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6910 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6911 ("ruby-qed" ,ruby-qed)
6912 ("ruby-lemon" ,ruby-lemon)))
6913 (synopsis "Hash-like classes with extra features")
6915 "The Hashery is a tight collection of @code{Hash}-like classes.
6916 Included are the auto-sorting @code{Dictionary} class, the efficient
6917 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6918 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6919 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6920 standard @code{Hash} making it possible to subclass and augment to fit any
6921 specific use case.")
6922 (home-page "https://rubyworks.github.io/hashery")
6923 (license license:bsd-2)))
6925 (define-public ruby-rc4
6932 (uri (rubygems-uri "ruby-rc4" version))
6935 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
6936 (build-system ruby-build-system)
6939 (modify-phases %standard-phases
6942 (invoke "rspec" "spec/rc4_spec.rb"))))))
6944 `(("ruby-rspec" ,ruby-rspec-2)))
6945 (synopsis "Implementation of the RC4 algorithm")
6947 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
6948 (home-page "https://github.com/caiges/Ruby-RC4")
6949 (license license:expat)))
6951 (define-public ruby-afm
6958 (uri (rubygems-uri "afm" version))
6961 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
6962 (build-system ruby-build-system)
6964 `(("bundler" ,bundler)))
6965 (synopsis "Read Adobe Font Metrics (afm) files")
6967 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
6968 files and use the data therein.")
6969 (home-page "https://github.com/halfbyte/afm")
6970 (license license:expat)))
6972 (define-public ruby-ascii85
6974 (name "ruby-ascii85")
6979 (uri (rubygems-uri "Ascii85" version))
6982 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
6983 (build-system ruby-build-system)
6985 `(("bundler" ,bundler)))
6986 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
6988 "This library provides methods to encode and decode Ascii85
6989 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
6990 @dfn{Portable Document Format} (PDF) file formats.")
6991 (home-page "https://github.com/datawraith/ascii85gem")
6992 (license license:expat)))
6994 (define-public ruby-ttfunk
6996 (name "ruby-ttfunk")
7001 ;; fetch from github as the gem does not contain testing code
7003 "https://github.com/prawnpdf/ttfunk/archive/"
7005 (file-name (string-append name "-" version ".tar.gz"))
7008 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
7009 (build-system ruby-build-system)
7011 `(#:test-target "spec"
7013 (modify-phases %standard-phases
7014 (add-before 'build 'remove-ssh
7016 ;; remove dependency on an ssh key pair that doesn't exist
7017 (substitute* "ttfunk.gemspec"
7018 (("spec.signing_key.*") ""))
7020 (add-before 'check 'remove-rubocop
7022 ;; remove rubocop as a dependency as not needed for testing
7023 (substitute* "ttfunk.gemspec"
7024 (("spec.add_development_dependency\\('rubocop'.*") ""))
7025 (substitute* "Rakefile"
7026 (("require 'rubocop/rake_task'") "")
7027 (("RuboCop::RakeTask.new") ""))
7030 `(("ruby-rspec" ,ruby-rspec)
7031 ("ruby-yard" ,ruby-yard)
7032 ("bundler" ,bundler)))
7033 (synopsis "Font metrics parser for the Prawn PDF generator")
7035 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7036 part of the Prawn PDF generator.")
7037 (home-page "https://github.com/prawnpdf/ttfunk")
7038 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7040 (license (list license:gpl2 license:gpl3 license:ruby))))
7042 (define-public ruby-puma
7049 ;; Fetch from GitHub because distributed gem does not contain tests.
7050 (uri (string-append "https://github.com/puma/puma/archive/v"
7052 (file-name (string-append name "-" version ".tar.gz"))
7055 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
7056 (build-system ruby-build-system)
7058 `(#:tests? #f ; Tests require an out-dated version of minitest.
7060 (modify-phases %standard-phases
7061 (add-before 'build 'fix-gemspec
7063 (substitute* "puma.gemspec"
7064 (("git ls-files") "find * |sort"))
7066 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7068 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7069 for Ruby/Rack applications. Puma is intended for use in both development and
7070 production environments. In order to get the best throughput, it is highly
7071 recommended that you use a Ruby implementation with real threads like Rubinius
7073 (home-page "http://puma.io")
7074 (license license:expat)))
7076 (define-public ruby-hoe-git
7078 (name "ruby-hoe-git")
7083 (uri (rubygems-uri "hoe-git" version))
7086 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7087 (build-system ruby-build-system)
7089 `(("ruby-hoe" ,ruby-hoe)
7091 (synopsis "Hoe plugins for tighter Git integration")
7093 "This package provides a set of Hoe plugins for tighter Git integration.
7094 It provides tasks to automate release tagging and pushing and changelog
7096 (home-page "https://github.com/jbarnette/hoe-git")
7097 (license license:expat)))
7099 (define-public ruby-sequel
7101 (name "ruby-sequel")
7106 (uri (rubygems-uri "sequel" version))
7109 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
7110 (build-system ruby-build-system)
7112 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7113 (synopsis "Database toolkit for Ruby")
7114 (description "Sequel provides thread safety, connection pooling and a
7115 concise DSL for constructing SQL queries and table schemas. It includes a
7116 comprehensive ORM layer for mapping records to Ruby objects and handling
7117 associated records.")
7118 (home-page "http://sequel.jeremyevans.net")
7119 (license license:expat)))
7121 (define-public ruby-timecop
7123 (name "ruby-timecop")
7128 (uri (rubygems-uri "timecop" version))
7131 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7132 (build-system ruby-build-system)
7135 (modify-phases %standard-phases
7136 (add-before 'check 'set-check-rubylib
7138 ;; Set RUBYLIB so timecop tests finds its own lib.
7139 (setenv "RUBYLIB" "lib")
7142 `(("bundler" ,bundler)
7143 ("ruby-minitest-rg" ,ruby-minitest-rg)
7144 ("ruby-mocha" ,ruby-mocha)
7145 ("ruby-activesupport" ,ruby-activesupport)))
7146 (synopsis "Test mocks for time-dependent functions")
7148 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7149 making it easier to test time-dependent code. It provides a unified method to
7150 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7152 (home-page "https://github.com/travisjeffery/timecop")
7153 (license license:expat)))
7155 (define-public ruby-concurrent
7157 (name "ruby-concurrent")
7162 ;; Download from GitHub because the rubygems version does not contain
7165 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
7168 (file-name (string-append name "-" version ".tar.gz"))
7171 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
7172 ;; Exclude failing test reported at
7173 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
7174 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
7175 "ruby-concurrent-test-arm.patch"))))
7176 (build-system ruby-build-system)
7178 `(#:test-target "spec"
7180 (modify-phases %standard-phases
7181 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7183 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7185 (delete-file "concurrent-ruby-edge.gemspec")
7186 (delete-file "concurrent-ruby-ext.gemspec")
7188 (add-before 'build 'replace-git-ls-files2
7190 (substitute* "support/file_map.rb"
7191 (("git ls-files") "find * |sort"))
7193 (add-before 'check 'rake-compile
7194 ;; Fix the test error described at
7195 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
7196 (lambda _ (invoke "rake" "compile")))
7197 (add-before 'check 'remove-timecop-dependency
7198 ;; Remove timecop-dependent tests as having timecop as a depedency
7199 ;; causes circular depedencies.
7201 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7202 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7205 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7206 ("ruby-rspec" ,ruby-rspec)))
7207 (synopsis "Concurrency tools for Ruby")
7209 "This library provides modern concurrency tools including agents,
7210 futures, promises, thread pools, actors, supervisors, and more. It is
7211 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7213 (home-page "http://www.concurrent-ruby.com")
7214 (license license:expat)))
7216 (define-public ruby-pkg-config
7218 (name "ruby-pkg-config")
7223 (uri (rubygems-uri "pkg-config" version))
7226 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7227 (build-system ruby-build-system)
7229 ;; Tests require extra files not included in the gem.
7231 (synopsis "Detect libraries for compiling Ruby native extensions")
7233 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7234 libraries for compiling Ruby native extensions.")
7235 (home-page "https://github.com/ruby-gnome2/pkg-config")
7236 (license license:lgpl2.0+)))
7238 (define-public ruby-net-http-digest-auth
7240 (name "ruby-net-http-digest-auth")
7245 (uri (rubygems-uri "net-http-digest_auth" version))
7248 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7249 (build-system ruby-build-system)
7251 `(("ruby-hoe" ,ruby-hoe)))
7252 (synopsis "RFC 2617 HTTP digest authentication library")
7254 "This library implements HTTP's digest authentication scheme based on
7255 RFC 2617. This enables the use of the digest authentication scheme instead
7256 of the more insecure basic authentication scheme.")
7257 (home-page "https://github.com/drbrain/net-http-digest_auth")
7258 (license license:expat)))
7260 (define-public ruby-mail
7267 (uri (rubygems-uri "mail" version))
7270 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7271 (build-system ruby-build-system)
7273 `(("ruby-mime-types" ,ruby-mime-types)))
7275 ;; Tests require extra gems not included in the Gemfile.
7276 ;; XXX: Try enabling this for the next version with mini_mime.
7278 (synopsis "Mail library for Ruby")
7280 "Mail is an internet library for Ruby that is designed to handle email
7281 generation, parsing and sending. The purpose of this library is to provide
7282 a single point of access to handle all email functions, including sending
7283 and receiving emails. All network type actions are done through proxy
7284 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7286 Mail has been designed with a very simple object oriented system that
7287 really opens up the email messages you are parsing, if you know what you
7288 are doing, you can fiddle with every last bit of your email directly.")
7289 (home-page "https://github.com/mikel/mail")
7290 (license license:expat)))
7292 (define-public ruby-mathn
7299 (uri (rubygems-uri "mathn" version))
7302 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7303 (build-system ruby-build-system)
7305 `(("bundler" ,bundler)
7306 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7307 (synopsis "Extends math operations for increased precision")
7309 "This gem makes mathematical operations more precise in Ruby and
7310 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7311 @code{mathn} was part of the Ruby standard library.")
7312 (home-page "https://github.com/ruby/mathn")
7313 (license license:bsd-2)))
7315 (define-public ruby-code-statistics
7317 (name "ruby-code-statistics")
7322 (uri (rubygems-uri "code_statistics" version))
7325 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7326 (build-system ruby-build-system)
7328 `(#:tests? #f)) ; Not all test code is included in gem.
7329 (synopsis "Port of the rails 'rake stats' method")
7331 "This gem is a port of the rails 'rake stats' method so it can be made
7332 more robust and work for non rails projects.")
7333 (home-page "http://github.com/danmayer/code_statistics")
7334 (license license:expat)))
7336 (define-public ruby-rubypants
7338 (name "ruby-rubypants")
7342 (uri (rubygems-uri "rubypants" version))
7345 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7346 (build-system ruby-build-system)
7348 '(#:tests? #f)) ; need Codecov
7349 (synopsis "Port of the smart-quotes library SmartyPants")
7351 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7352 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7353 and BBEdit that easily translates plain ASCII punctuation characters into
7354 smart typographic punctuation HTML entities.")
7355 (home-page "https://github.com/jmcnevin/rubypants")
7356 (license license:bsd-2)))
7358 (define-public ruby-org-ruby
7360 (name "ruby-org-ruby")
7364 (uri (rubygems-uri "org-ruby" version))
7367 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7368 (build-system ruby-build-system)
7370 '(#:tests? #f)) ; no rakefile
7372 `(("ruby-rubypants" ,ruby-rubypants)))
7373 (synopsis "Org-mode parser written in Ruby")
7375 "Org-ruby is an org-mode parser written in Ruby. The most significant
7376 thing this library does today is convert org-mode files to HTML or Textile or
7378 (home-page "https://github.com/wallyqs/org-ruby")
7379 (license license:expat)))
7381 (define-public ruby-rake
7388 (uri (rubygems-uri "rake" version))
7391 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7392 (build-system ruby-build-system)
7394 `(("bundler" ,bundler)))
7395 (synopsis "Rake is a Make-like program implemented in Ruby")
7397 "Rake is a Make-like program where tasks and dependencies are specified
7398 in standard Ruby syntax.")
7399 (home-page "https://github.com/ruby/rake")
7400 (license license:expat)))
7402 (define-public ruby-childprocess-0.6
7404 (name "ruby-childprocess")
7409 (uri (rubygems-uri "childprocess" version))
7412 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
7413 (build-system ruby-build-system)
7417 `(("bundler" ,bundler)
7418 ("ruby-rspec" ,ruby-rspec)))
7420 `(("ruby-ffi" ,ruby-ffi)))
7421 (synopsis "Control external programs running in the background, in Ruby")
7422 (description "@code{childprocess} provides a gem to control external
7423 programs running in the background, in Ruby.")
7424 (home-page "http://github.com/enkessler/childprocess")
7425 (license license:expat)))
7427 (define-public ruby-childprocess
7429 (inherit ruby-childprocess-0.6)
7430 (name "ruby-childprocess")
7435 (uri (rubygems-uri "childprocess" version))
7438 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
7440 (define-public ruby-public-suffix
7442 (name "ruby-public-suffix")
7446 (uri (rubygems-uri "public_suffix" version))
7449 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
7450 (build-system ruby-build-system)
7453 (modify-phases %standard-phases
7454 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7455 ;; including it as an input can lead to circular dependencies.
7456 (add-after 'unpack 'remove-rubocop-from-Rakefile
7458 (substitute* "Rakefile"
7459 (("require \"rubocop/rake\\_task\"") "")
7460 (("RuboCop::RakeTask\\.new") ""))
7463 `(("bundler" ,bundler)
7464 ("ruby-yard" ,ruby-yard)
7465 ("ruby-mocha" ,ruby-mocha)
7466 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7467 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7468 (synopsis "Domain name parser")
7469 (description "The gem @code{public_suffix} is a domain name parser,
7470 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7471 is one under which Internet users can (or historically could) directly
7472 register names. Some examples of public suffixes are @code{.com},
7473 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7474 all known public suffixes.")
7475 (license license:expat)))
7477 (define-public ruby-addressable
7479 (name "ruby-addressable")
7483 (uri (rubygems-uri "addressable" version))
7486 "0bcm2hchn897xjhqj9zzsxf3n9xhddymj4lsclz508f4vw3av46l"))))
7487 (build-system ruby-build-system)
7489 '(#:test-target "spec"
7491 (modify-phases %standard-phases
7492 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7494 (substitute* "Gemfile"
7495 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7496 ((".*launchy.*") "")
7497 ((".*rake.*") "gem 'rake'\n")
7498 ((".*redcarpet.*") ""))
7500 (add-before 'check 'delete-network-dependent-test
7502 (delete-file "spec/addressable/net_http_compat_spec.rb")
7505 `(("ruby-rspec" ,ruby-rspec)
7506 ("bundler" ,bundler)
7507 ("ruby-idn-ruby" ,ruby-idn-ruby)
7508 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7509 ("ruby-rspec-its", ruby-rspec-its)
7510 ("ruby-yard" ,ruby-yard)
7511 ("ruby-simplecov" ,ruby-simplecov)))
7513 `(("ruby-public-suffix" ,ruby-public-suffix)))
7514 (home-page "https://github.com/sporkmonger/addressable")
7515 (synopsis "Alternative URI implementation")
7516 (description "Addressable is a replacement for the URI implementation that
7517 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7518 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7519 (license license:asl2.0)))
7521 (define-public ruby-colorator
7523 (name "ruby-colorator")
7527 (uri (rubygems-uri "colorator" version))
7530 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7531 (build-system ruby-build-system)
7535 (home-page "http://octopress.org/colorator/")
7536 (synopsis "Terminal color library")
7537 (description "Colorator is a Ruby gem that helps you colorize your text
7539 (license license:expat)))
7541 (define-public ruby-command-line-reporter
7543 (name "ruby-command-line-reporter")
7547 (uri (rubygems-uri "command_line_reporter" version))
7550 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
7551 (build-system ruby-build-system)
7556 (modify-phases %standard-phases
7557 (add-before 'build 'fix-dependencies
7559 (substitute* ".gemspec"
7560 ;; colored is unmaintained
7561 (("colored") "colorator")
7562 ;; colorator version
7563 (("= 1.2") "= 1.1"))
7565 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7566 (home-page "https://github.com/wbailey/command_line_reporter")
7567 (synopsis "Report production while executing Ruby scripts")
7568 (description "This gem provides a DSL that makes it easy to write reports
7569 of various types in ruby. It eliminates the need to litter your source with
7570 puts statements, instead providing a more readable, expressive interface to
7572 (license license:asl2.0)))
7574 (define-public ruby-command-line-reporter-3
7576 (inherit ruby-command-line-reporter)
7580 (uri (rubygems-uri "command_line_reporter" version))
7583 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7585 (define-public ruby-rdoc
7592 (uri (rubygems-uri "rdoc" version))
7595 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7596 (build-system ruby-build-system)
7598 `(("bundler" ,bundler)))
7599 (home-page "https://ruby.github.io/rdoc/")
7600 (synopsis "HTML and command-line documentation utility")
7601 (description "RDoc produces HTML and command-line documentation for Ruby
7602 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7603 documentation from the command-line.")
7604 (license license:gpl2+)))
7606 (define-public ruby-sass-listen
7608 (name "ruby-sass-listen")
7612 (uri (rubygems-uri "sass-listen" version))
7615 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7616 (build-system ruby-build-system)
7621 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7622 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7623 (home-page "https://github.com/sass/listen")
7624 (synopsis "File modification notification library")
7625 (description "The Listen gem listens to file modifications and notifies you
7626 about the changes.")
7627 (license license:expat)))
7629 (define-public ruby-terminfo
7631 (name "ruby-terminfo")
7636 (uri (rubygems-uri "ruby-terminfo" version))
7639 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7640 (build-system ruby-build-system)
7642 `(#:test-target "test"
7643 ;; Rakefile requires old packages and would need modification to
7644 ;; work with current software.
7647 `(("ncurses" ,ncurses)))
7649 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7650 ("ruby-rdoc" ,ruby-rdoc)))
7651 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7652 (synopsis "Terminfo binding for Ruby")
7653 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7654 (license license:bsd-3)))
7656 (define-public ruby-diffy
7663 (uri (rubygems-uri "diffy" version))
7666 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7667 (build-system ruby-build-system)
7672 `(("ruby-rspec" ,ruby-rspec)))
7673 (home-page "https://github.com/samg/diffy")
7674 (synopsis "Convenient diffing in ruby")
7675 (description "Diffy provides a convenient way to generate a diff from two
7677 (license license:expat)))
7679 (define-public ruby-sass-spec
7681 (name "ruby-sass-spec")
7687 (url "https://github.com/sass/sass-spec.git")
7688 (commit (string-append "v" version))))
7689 (file-name (git-file-name name version))
7691 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
7692 (build-system ruby-build-system)
7694 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7695 ("ruby-diffy" ,ruby-diffy)
7696 ("ruby-terminfo" ,ruby-terminfo)))
7698 `(;; This package contains tests for a sass implementation, and the to
7699 ;; avoid any circular dependencies, the tests are not run here
7702 (modify-phases %standard-phases
7703 (add-after 'unpack 'patch-test
7705 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7706 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7707 (("string") "color")))))))
7708 (home-page "https://github.com/sass/sass-spec")
7709 (synopsis "Test suite for Sass")
7710 (description "Sass Spec is a test suite for Sass. Test cases are all in
7711 the @file{spec} directory.")
7712 (license license:expat)))
7714 (define-public ruby-sass
7720 (uri (rubygems-uri "sass" version))
7723 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7724 (build-system ruby-build-system)
7726 `(("ruby-sass-listen" ,ruby-sass-listen)))
7728 `(("ruby-sass-spec" ,ruby-sass-spec)
7729 ("ruby-mathn" ,ruby-mathn)))
7730 (home-page "http://sass-lang.com/")
7731 (synopsis "CSS extension language")
7732 (description "Sass is a CSS extension language. It extends CSS with
7733 features that don't exist yet like variables, nesting, mixins and inheritance.")
7734 (license license:expat)))
7736 (define-public ruby-sassc
7743 (uri (rubygems-uri "sassc" version))
7746 "1sr4825rlwsrl7xrsm0sgalcpf5zgp4i56dbi3qxfa9lhs8r6zh4"))))
7747 (build-system ruby-build-system)
7750 (modify-phases %standard-phases
7751 ;; TODO: This would be better as a snippet, but the ruby-build-system
7752 ;; doesn't seem to support that
7753 (add-after 'unpack 'remove-libsass
7755 (delete-file-recursively "ext")
7757 (add-after 'unpack 'dont-check-the-libsass-version
7759 (substitute* "test/native_test.rb"
7760 (("assert_equal.*Native\\.version") ""))
7762 (add-after 'unpack 'remove-git-from-gemspec
7764 (substitute* "sassc.gemspec"
7765 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")
7766 (("`git submodule --quiet foreach pwd`") "''"))
7768 (add-after 'unpack 'remove-extensions-from-gemspec
7770 (substitute* "sassc.gemspec"
7771 (("\\[\"ext/Rakefile\"\\]") "[]"))
7773 (add-after 'unpack 'fix-Rakefile
7775 (substitute* "Rakefile"
7776 (("test: 'libsass:compile'") ":test"))
7778 (add-after 'unpack 'remove-unnecessary-dependencies
7780 (substitute* "test/test_helper.rb"
7781 (("require \"pry\"") ""))
7783 (add-before 'build 'patch-native.rb
7784 (lambda* (#:key inputs #:allow-other-keys)
7785 (substitute* "lib/sassc/native.rb"
7786 ((".*gem_root = spec.gem_dir") "")
7789 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7791 ;; The gemspec still references the libsass files, so just keep the
7793 (delete 'extract-gemspec))))
7795 `(("ruby-ffi" ,ruby-ffi)
7796 ("ruby-rake" ,ruby-rake)))
7798 `(("libsass" ,libsass)))
7800 `(("bundler" ,bundler)
7801 ("ruby-minitest-around" ,ruby-minitest-around)
7802 ("ruby-test-construct" ,ruby-test-construct)))
7803 (synopsis "Use libsss from Ruby")
7805 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7806 bindings to the libsass library. This enables rendering
7807 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7808 (home-page "https://github.com/sass/sassc-ruby")
7809 (license license:expat)))
7811 (define-public ruby-jekyll-sass-converter
7813 (name "ruby-jekyll-sass-converter")
7817 (uri (rubygems-uri "jekyll-sass-converter" version))
7820 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7821 (build-system ruby-build-system)
7823 `(("ruby-sass" ,ruby-sass)))
7827 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7828 (synopsis "Sass converter for Jekyll")
7829 (description "This gem provide built-in support for the Sass converter
7831 (license license:expat)))
7833 (define-public ruby-jekyll-watch
7835 (name "ruby-jekyll-watch")
7839 (uri (rubygems-uri "jekyll-watch" version))
7842 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
7843 (build-system ruby-build-system)
7845 `(("ruby-listen" ,ruby-listen)))
7849 (home-page "https://github.com/jekyll/jekyll-watch")
7850 (synopsis "Jekyll auto-rebuild support")
7851 (description "This gems add the @code{--watch} switch to the jekyll CLI
7852 interface. It allows Jekyll to rebuild your site when a file changes.")
7853 (license license:expat)))
7855 (define-public ruby-parallel
7857 (name "ruby-parallel")
7863 (url "https://github.com/grosser/parallel.git")
7864 (commit (string-append "v" version))))
7865 (file-name (git-file-name name version))
7868 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7869 (build-system ruby-build-system)
7871 `(;; TODO 3 test failures
7872 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7873 ;; open unnecessary pipes
7874 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7875 ;; SQLite in processes
7876 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7877 ;; SQLite in threads
7879 #:test-target "rspec-rerun:spec"
7881 (modify-phases %standard-phases
7882 (add-after 'unpack 'patch-Gemfile
7884 (substitute* "Gemfile"
7885 (("gem 'rspec-legacy_formatters'") "")
7886 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7887 (add-before 'check 'delete-Gemfile.lock
7889 ;; Bundler isn't being used for fetching dependendencies, so
7890 ;; delete the Gemfile.lock
7891 (delete-file "Gemfile.lock")
7893 (add-before 'build 'patch-gemspec
7895 (substitute* "parallel.gemspec"
7896 (("git ls-files") "find"))
7899 `(("ruby-rspec" ,ruby-rspec)
7900 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
7901 ("bundler" ,bundler)
7902 ("ruby-activerecord" ,ruby-activerecord)
7903 ("ruby-progressbar" ,ruby-progressbar)
7904 ("ruby-bump" ,ruby-bump)
7907 ("ruby-mysql2" ,ruby-mysql2)
7908 ("ruby-sqlite3" ,ruby-sqlite3)
7909 ("ruby-i18n" ,ruby-i18n)))
7910 (home-page "https://github.com/grosser/parallel")
7911 (synopsis "Parallel processing in Ruby")
7912 (description "Parallel allows you to run any code in parallel Processes
7913 (to use all CPUs) or Threads(to speedup blocking operations). It is best
7914 suited for map-reduce or e.g. parallel downloads/uploads.")
7915 (license license:expat)))
7917 (define-public ruby-cane
7923 (uri (rubygems-uri "cane" version))
7926 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7927 (build-system ruby-build-system)
7928 (arguments `(#:tests? #f)); No rakefile
7929 (home-page "https://github.com/square/cane")
7931 `(("ruby-parallel" ,ruby-parallel)))
7932 (synopsis "Code quality threshold checking")
7933 (description "Cane fails your build if code quality thresholds are not met.")
7934 (license license:asl2.0)))
7936 (define-public ruby-morecane
7938 (name "ruby-morecane")
7942 (uri (rubygems-uri "morecane" version))
7945 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
7946 (build-system ruby-build-system)
7947 (home-page "https://github.com/yob/morecane")
7948 (arguments `(#:tests? #f)); No rakefile
7950 `(("ruby-parallel" ,ruby-parallel)))
7951 (synopsis "Extra checks for cane")
7952 (description "The cane gem provides a great framework for running quality
7953 checks over your ruby project as part of continuous integration build. It
7954 comes with a few checks out of the box, but also provides an API for loading
7955 custom checks. This gem provides a set of additional checks.")
7956 (license license:expat)))
7958 (define-public ruby-pdf-reader
7960 (name "ruby-pdf-reader")
7964 (uri (rubygems-uri "pdf-reader" version))
7967 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
7968 (build-system ruby-build-system)
7969 (arguments `(#:test-target "spec"))
7971 `(("bundler" ,bundler)
7972 ("ruby-rspec" ,ruby-rspec)
7973 ("ruby-cane" ,ruby-cane)
7974 ("ruby-morecane" ,ruby-morecane)))
7976 `(("ruby-afm" ,ruby-afm)
7977 ("ruby-ascii85" ,ruby-ascii85)
7978 ("ruby-hashery" ,ruby-hashery)
7979 ("ruby-rc4" ,ruby-rc4)
7980 ("ruby-ttfunk" ,ruby-ttfunk)))
7981 (home-page "https://github.com/yob/pdf-reader")
7982 (synopsis "PDF parser in Ruby")
7983 (description "The PDF::Reader library implements a PDF parser conforming as
7984 much as possible to the PDF specification from Adobe. It provides programmatic
7985 access to the contents of a PDF file with a high degree of flexibility.")
7986 (license license:gpl3+)))
7988 (define-public ruby-pdf-inspector
7990 (name "ruby-pdf-inspector")
7994 (uri (rubygems-uri "pdf-inspector" version))
7997 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
7998 (build-system ruby-build-system)
8000 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8001 (arguments `(#:tests? #f)); No rakefile
8002 (home-page "https://github.com/prawnpdf/pdf-inspector")
8003 (synopsis "Analysis classes for inspecting PDF output")
8004 (description "This library provides a number of PDF::Reader based tools for
8005 use in testing PDF output. Presently, the primary purpose of this tool is to
8006 support the tests found in Prawn, a pure Ruby PDF generation library.")
8007 (license license:gpl3+)))
8009 (define-public ruby-pdf-core
8011 (name "ruby-pdf-core")
8015 (uri (rubygems-uri "pdf-core" version))
8018 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8019 (build-system ruby-build-system)
8023 (home-page "https://github.com/prawnpdf/pdf-core")
8024 (synopsis "Low level PDF features for Prawn")
8025 (description "This is an experimental gem that extracts low-level PDF
8026 functionality from Prawn.")
8027 (license license:gpl3+)))
8029 (define-public ruby-prawn
8035 (uri (rubygems-uri "prawn" version))
8038 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8039 (build-system ruby-build-system)
8044 (modify-phases %standard-phases
8045 (add-before 'build 'fix-dependencies
8047 (substitute* "prawn.gemspec"
8048 (("~> 0.7.0") "~> 0.7"))
8051 `(("ruby-pdf-core" ,ruby-pdf-core)
8052 ("ruby-ttfunk" ,ruby-ttfunk)))
8054 `(("bundler" ,bundler)
8055 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8056 ("ruby-rspec" ,ruby-rspec)
8057 ("ruby-simplecov" ,ruby-simplecov)
8058 ("ruby-yard" ,ruby-yard)))
8059 (home-page "http://prawnpdf.org/api-docs/2.0/")
8060 (synopsis "PDF generation for Ruby")
8061 (description "Prawn is a pure Ruby PDF generation library.")
8062 (license license:gpl3+)))
8064 (define-public ruby-prawn-table
8066 (name "ruby-prawn-table")
8070 (uri (rubygems-uri "prawn-table" version))
8073 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8074 (build-system ruby-build-system)
8076 `(("ruby-prawn" ,ruby-prawn)
8077 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8079 `(("bundler" ,bundler)
8080 ("ruby-yard" ,ruby-yard)
8081 ("ruby-mocha" ,ruby-mocha)
8082 ("ruby-coderay" ,ruby-coderay)
8083 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8084 ("ruby-simplecov" ,ruby-simplecov)
8085 ("ruby-rspec-2" ,ruby-rspec-2)))
8087 '(;; TODO: 1 test fails
8088 ;; Failure/Error: pdf.page_count.should == 1
8090 ;; got: 2 (using ==)
8091 ;; # ./spec/table_spec.rb:1308
8093 ;; 225 examples, 1 failure
8096 (modify-phases %standard-phases
8097 (add-before 'check 'patch-gemspec
8099 (substitute* "prawn-table.gemspec"
8100 ;; Loosen the requirement for pdf-inspector
8101 (("~> 1\\.1\\.0") ">= 0")
8102 ;; Loosen the requirement for pdf-reader
8103 (("~> 1\\.2") ">= 0"))))
8105 (lambda* (#:key tests? #:allow-other-keys)
8109 (home-page "https://github.com/prawnpdf/prawn-table")
8110 (synopsis "Tables support for Prawn")
8111 (description "This gem provides tables support for Prawn.")
8112 (license license:gpl3+)))
8114 (define-public ruby-kramdown
8116 (name "ruby-kramdown")
8120 (uri (rubygems-uri "kramdown" version))
8123 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8124 (build-system ruby-build-system)
8125 (arguments `(#:tests? #f)); FIXME: some test failures
8127 `(("ruby-prawn" ,ruby-prawn)
8128 ("ruby-prawn-table" ,ruby-prawn-table)))
8129 (home-page "https://kramdown.gettalong.org/")
8130 (synopsis "Markdown parsing and converting library")
8131 (description "Kramdown is a library for parsing and converting a superset
8132 of Markdown. It is completely written in Ruby, supports standard Markdown
8133 (with some minor modifications) and various extensions that have been made
8134 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8135 (license license:expat)))
8137 (define-public ruby-http-parser.rb
8139 (name "ruby-http-parser.rb")
8144 (uri (rubygems-uri "http_parser.rb" version))
8147 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8148 (build-system ruby-build-system)
8153 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8154 ("ruby-rspec" ,ruby-rspec)))
8155 (home-page "https://github.com/tmm1/http_parser.rb")
8156 (synopsis "HTTP parser un Ruby")
8157 (description "This gem is a simple callback-based HTTP request/response
8158 parser for writing http servers, clients and proxies.")
8159 (license license:expat)))
8161 (define-public ruby-em-websocket
8163 (name "ruby-em-websocket")
8168 (uri (rubygems-uri "em-websocket" version))
8171 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8172 (build-system ruby-build-system)
8177 `(("ruby-eventmachine" ,ruby-eventmachine)
8178 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8180 `(("bundler" ,bundler)
8181 ("ruby-rspec" ,ruby-rspec)))
8182 (home-page "https://github.com/igrigorik/em-websocket")
8183 (synopsis "EventMachine based WebSocket server")
8184 (description "Em-websocket is an EventMachine based WebSocket server
8186 (license license:expat)))
8188 (define-public ruby-rouge
8194 (uri (rubygems-uri "rouge" version))
8197 "0h79gn2wmn1wix2d27lgiaimccyj8gvizrllyym500pir408x62f"))))
8198 (build-system ruby-build-system)
8199 (arguments `(#:tests? #f)); No rakefile
8200 (home-page "http://rouge.jneen.net/")
8201 (synopsis "Code highlighter")
8202 (description "Rouge is a code highlighter written in Ruby. It supports more
8203 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8204 is compatible with stylesheets designed for pygments.")
8206 ;; rouge is licensed under expat
8208 ;; pygments is licensed under bsd-2
8211 (define-public ruby-rouge-2
8213 (inherit ruby-rouge)
8217 (uri (rubygems-uri "rouge" version))
8220 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8222 (define-public ruby-hashie
8224 (name "ruby-hashie")
8228 (uri (rubygems-uri "hashie" version))
8231 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8232 (build-system ruby-build-system)
8234 `(("bundler" ,bundler)))
8235 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8236 (home-page "https://github.com/intridea/hashie")
8237 (synopsis "Extensions to Ruby Hashes")
8238 (description "Hashie is a collection of classes and mixins that make Ruby
8239 hashes more powerful.")
8240 (license license:expat)))
8242 (define-public ruby-heredoc-unindent
8244 (name "ruby-heredoc-unindent")
8248 (uri (rubygems-uri "heredoc_unindent" version))
8251 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8252 (build-system ruby-build-system)
8254 `(("ruby-hoe" ,ruby-hoe)))
8255 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8256 (synopsis "Heredoc indentation cleaner")
8257 (description "This gem removes common margin from indented strings, such
8258 as the ones produced by indented heredocs. In other words, it strips out
8259 leading whitespace chars at the beginning of each line, but only as much as
8260 the line with the smallest margin.
8262 It is acknowledged that many strings defined by heredocs are just code and
8263 fact is that most parsers are insensitive to indentation. If, however, the
8264 strings are to be used otherwise, be it for printing or testing, the extra
8265 indentation will probably be an issue and hence this gem.")
8266 (license license:expat)))
8268 (define-public ruby-safe-yaml
8270 (name "ruby-safe-yaml")
8274 ;; TODO Fetch from the git repository so a patch can be applied
8277 (url "https://github.com/dtao/safe_yaml.git")
8279 (file-name (git-file-name name version))
8282 "1wnln8xdy8g6kwdj4amm8773xwffqxpf2sxslk6jjh2wxsy1lrig"))
8284 (search-patches "ruby-safe-yaml-add-require-time.patch"))))
8285 (build-system ruby-build-system)
8287 `(("ruby-rspec" ,ruby-rspec)
8288 ("ruby-hashie" ,ruby-hashie)
8289 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8291 '(#:test-target "spec"
8293 (modify-phases %standard-phases
8294 (add-before 'check 'set-TZ
8296 ;; This test is dependent on the timezone
8297 ;; spec/transform/to_date_spec.rb:35
8298 ;; # SafeYAML::Transform::ToDate converts times to the local
8300 (setenv "TZ" "UTC-11")
8302 (home-page "https://github.com/dtao/safe_yaml")
8303 (synopsis "YAML parser")
8304 (description "The SafeYAML gem provides an alternative implementation of
8305 YAML.load suitable for accepting user input in Ruby applications.")
8306 (license license:expat)))
8308 (define-public ruby-mercenary
8310 (name "ruby-mercenary")
8314 (uri (rubygems-uri "mercenary" version))
8317 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8318 (build-system ruby-build-system)
8319 (arguments `(#:test-target "spec"))
8321 `(("bundler" ,bundler)))
8322 (home-page "https://github.com/jekyll/mercenary")
8323 (synopsis "Command-line apps library in Ruby")
8324 (description "Mercenary is a lightweight and flexible library for writing
8325 command-line apps in Ruby.")
8326 (license license:expat)))
8328 (define-public ruby-liquid
8330 (name "ruby-liquid")
8334 (uri (rubygems-uri "liquid" version))
8337 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8338 (build-system ruby-build-system)
8339 (arguments `(#:tests? #f)); No rakefile
8340 (home-page "https://shopify.github.io/liquid/")
8341 (synopsis "Template language")
8342 (description "Liquid is a template language written in Ruby. It is used
8343 to load dynamic content on storefronts.")
8344 (license license:expat)))
8346 (define-public ruby-forwardable-extended
8348 (name "ruby-forwardable-extended")
8352 (uri (rubygems-uri "forwardable-extended" version))
8355 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8356 (build-system ruby-build-system)
8357 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8358 (home-page "https://github.com/envygeeks/forwardable-extended")
8359 (synopsis "Delegation to hashes and instance variables in Forwardable")
8360 (description "Forwardable Extended provides more @code{Forwardable}
8361 methods for your source as @code{Forwardable::Extended}.")
8362 (license license:expat)))
8364 (define-public ruby-pathutil
8366 (name "ruby-pathutil")
8370 (uri (rubygems-uri "pathutil" version))
8373 "0wc18ms1rzi44lpjychyw2a96jcmgxqdvy2949r4vvb5f4p0lgvz"))))
8374 (build-system ruby-build-system)
8376 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8378 `(("bundler" ,bundler)
8379 ("ruby-rspec" ,ruby-rspec)))
8380 ;; Fails with: cannot load such file --
8381 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8382 (arguments `(#:tests? #f))
8383 (home-page "https://github.com/envygeeks/pathutil")
8384 (synopsis "Extended implementation of Pathname")
8385 (description "Pathutil tries to be a faster pure Ruby implementation of
8387 (license license:expat)))
8389 (define-public jekyll
8395 (uri (rubygems-uri "jekyll" version))
8398 "1nn2sc308l2mz0yiall4r90l6vy67qp4sy9zapi73a948nd4a5k3"))))
8399 (build-system ruby-build-system)
8401 ;; No rakefile, but a test subdirectory
8404 (modify-phases %standard-phases
8405 (add-before 'build 'fix-i18n
8407 (substitute* ".gemspec"
8408 (("~> 0.7") ">= 0.7"))
8411 `(("ruby-addressable" ,ruby-addressable)
8412 ("ruby-colorator" ,ruby-colorator)
8413 ("ruby-em-websocket" ,ruby-em-websocket)
8414 ("ruby-i18n" ,ruby-i18n)
8415 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8416 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8417 ("ruby-kramdown" ,ruby-kramdown)
8418 ("ruby-liquid" ,ruby-liquid)
8419 ("ruby-mercenary" ,ruby-mercenary)
8420 ("ruby-pathutil" ,ruby-pathutil)
8421 ("ruby-rouge" ,ruby-rouge-2)
8422 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8423 (home-page "https://jekyllrb.com/")
8424 (synopsis "Static site generator")
8425 (description "Jekyll is a simple, blog aware, static site generator.")
8426 (license license:expat)))
8428 (define-public ruby-jekyll-paginate-v2
8430 (name "ruby-jekyll-paginate-v2")
8434 (uri (rubygems-uri "jekyll-paginate-v2" version))
8437 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8438 (build-system ruby-build-system)
8440 `(("jekyll" ,jekyll)))
8441 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8442 (synopsis "Pagination Generator for Jekyll 3")
8443 (description "The Pagination Generator forms the core of the pagination
8444 logic in Jekyll. It calculates and generates the pagination pages.")
8445 (license license:expat)))
8447 (define-public ruby-faraday
8449 (name "ruby-faraday")
8454 (uri (rubygems-uri "faraday" version))
8457 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8458 (build-system ruby-build-system)
8462 `(("ruby-multipart-post" ,ruby-multipart-post)))
8463 (synopsis "Ruby HTTP/REST API client library")
8465 "Faraday is a HTTP/REST API client library which provides a common
8466 interface over different adapters.")
8467 (home-page "https://github.com/lostisland/faraday")
8468 (license license:expat)))
8470 (define-public ruby-nio4r
8477 (uri (rubygems-uri "nio4r" version))
8480 "1a41ca1kpdmrypjp9xbgvckpy8g26zxphkja9vk7j5wl4n8yvlyr"))))
8481 (build-system ruby-build-system)
8484 (modify-phases %standard-phases
8485 (add-after 'unpack 'remove-unnecessary-dependencies
8487 (substitute* "spec/spec_helper.rb"
8488 ;; Coveralls is for uploading test coverage information to an
8489 ;; online service, and thus unnecessary for building the Guix
8491 (("require \"coveralls\"") "")
8492 (("Coveralls\\.wear!") "")
8493 ;; Remove rspec/retry as we are not retrying the tests
8494 (("require \"rspec/retry\"") "")
8495 (("config\\.display_try_failure_messages = true") "")
8496 (("config\\.verbose_retry = true") ""))
8498 (add-before 'check 'compile
8500 (invoke "rake" "compile")
8503 (lambda* (#:key tests? #:allow-other-keys)
8508 `(("bundler" ,bundler)
8509 ("ruby-rake-compiler" ,ruby-rake-compiler)
8510 ("ruby-rspec" ,ruby-rspec)
8511 ("ruby-rubocop" ,ruby-rubocop)))
8512 (synopsis "New I/O for Ruby")
8514 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8515 for scalable network clients and servers.")
8516 (home-page "https://github.com/socketry/nio4r")
8517 (license license:expat)))
8519 (define-public ruby-globalid
8521 (name "ruby-globalid")
8526 (uri (rubygems-uri "globalid" version))
8529 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8530 (build-system ruby-build-system)
8532 '(;; No included tests
8535 `(("ruby-activesupport" ,ruby-activesupport)))
8536 (synopsis "Generate URIs idenfitying model instances in Ruby")
8538 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8539 uniquely identify it.")
8540 (home-page "https://rubyonrails.org/")
8541 (license license:expat)))
8543 (define-public ruby-sprockets
8545 (name "ruby-sprockets")
8550 (uri (rubygems-uri "sprockets" version))
8553 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8554 (build-system ruby-build-system)
8556 '(;; No included tests
8559 `(("ruby-concurrent" ,ruby-concurrent)
8560 ("ruby-rack" ,ruby-rack)))
8561 (synopsis "Sprockets is a Rack-based asset packaging system")
8563 "Sprockets is a Rack-based asset packaging system that concatenates and
8564 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8565 (home-page "https://github.com/rails/sprockets")
8566 (license license:expat)))
8568 (define-public ruby-mustermann
8570 (name "ruby-mustermann")
8575 (uri (rubygems-uri "mustermann" version))
8578 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8579 (build-system ruby-build-system)
8583 (synopsis "Library implementing patterns that behave like regular expressions")
8584 (description "Given a string pattern, Mustermann will turn it into an
8585 object that behaves like a regular expression and has comparable performance
8587 (home-page "https://github.com/sinatra/mustermann")
8588 (license license:expat)))
8590 (define-public ruby-sinatra
8592 (name "ruby-sinatra")
8597 (uri (rubygems-uri "sinatra" version))
8600 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8601 (build-system ruby-build-system)
8603 `(("ruby-mustermann" ,ruby-mustermann)
8604 ("ruby-rack" ,ruby-rack)
8605 ("ruby-rack-protection" ,ruby-rack-protection)
8606 ("ruby-tilt" ,ruby-tilt)))
8607 (synopsis "DSL for quick web applications creation in Ruby")
8609 "Sinatra is a DSL for quickly creating web applications in Ruby with
8611 (home-page "http://sinatrarb.com/")
8612 (license license:expat)))
8614 (define-public ruby-thin
8621 (uri (rubygems-uri "thin" version))
8624 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8625 (build-system ruby-build-system)
8630 `(("ruby-daemons" ,ruby-daemons)
8631 ("ruby-eventmachine" ,ruby-eventmachine)
8632 ("ruby-rack" ,ruby-rack)))
8633 (synopsis "Thin and fast web server for Ruby")
8634 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8636 @item the Mongrel parser,
8637 @item Event Machine, a network I/O library with high scalability, performance
8639 @item Rack, a minimal interface between webservers and Ruby frameworks.
8641 (home-page "http://code.macournoyer.com/thin/")
8642 (license license:ruby)))
8644 (define-public ruby-skinny
8646 (name "ruby-skinny")
8651 (uri (rubygems-uri "skinny" version))
8654 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8655 (build-system ruby-build-system)
8657 '(#:tests? #f ; No included tests
8659 (modify-phases %standard-phases
8660 (add-before 'build 'patch-gemspec
8662 (substitute* ".gemspec"
8663 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8664 "<eventmachine>, [\">= 1.0.0\"")
8665 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8668 `(("ruby-eventmachine" ,ruby-eventmachine)
8669 ("ruby-thin" ,ruby-thin)))
8670 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8671 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8673 (home-page "https://github.com/sj26/skinny")
8674 (license license:expat)))
8676 (define-public mailcatcher
8678 (name "mailcatcher")
8683 (uri (rubygems-uri "mailcatcher" version))
8686 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8687 (build-system ruby-build-system)
8689 ;; Tests require web/assets which is not included in the output. We
8690 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8691 ;; of the tests. See ruby-mysql2.
8694 (modify-phases %standard-phases
8695 (add-before 'build 'patch-gemspec
8697 (substitute* ".gemspec"
8698 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8699 "<eventmachine>, [\">= 1.0.9.1")
8700 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8701 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8702 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8704 (add-before 'build 'loosen-dependency-contraint
8706 (substitute* "lib/mail_catcher.rb"
8707 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8708 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8709 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8710 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8713 `(("ruby-eventmachine" ,ruby-eventmachine)
8714 ("ruby-mail" ,ruby-mail)
8715 ("ruby-rack" ,ruby-rack)
8716 ("ruby-sinatra" ,ruby-sinatra)
8717 ("ruby-skinny" ,ruby-skinny)
8718 ("ruby-sqlite3" ,ruby-sqlite3)
8719 ("ruby-thin" ,ruby-thin)))
8720 (synopsis "SMTP server which catches messages to display them a browser")
8722 "MailCatcher runs a super simple SMTP server which catches any message
8723 sent to it to display in a web interface. Run mailcatcher, set your favourite
8724 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8725 then check out http://127.0.0.1:1080 to see the mail.")
8726 (home-page "https://mailcatcher.me")
8727 (license license:expat)))