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 python)
55 #:use-module (gnu packages python-xyz)
56 #:use-module (gnu packages ragel)
57 #:use-module (gnu packages rsync)
58 #:use-module (gnu packages sqlite)
59 #:use-module (gnu packages tls)
60 #:use-module (gnu packages version-control)
61 #:use-module (guix packages)
62 #:use-module (guix download)
63 #:use-module (guix git-download)
64 #:use-module (guix utils)
65 #:use-module (guix build-system gnu)
66 #:use-module (gnu packages xml)
67 #:use-module (gnu packages web)
68 #:use-module (guix build-system ruby)
69 #:use-module ((srfi srfi-1) #:select (alist-delete)))
78 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
79 (version-major+minor version)
80 "/ruby-" version ".tar.xz"))
83 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
84 (modules '((guix build utils)))
86 ;; Remove bundled libffi
87 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
89 (build-system gnu-build-system)
91 `(#:test-target "test"
93 (modify-phases %standard-phases
94 (add-before 'configure 'replace-bin-sh-and-remove-libffi
96 (substitute* '("Makefile.in"
101 "test/rubygems/test_gem_ext_configure_builder.rb"
102 "test/rdoc/test_rdoc_parser.rb"
103 "test/ruby/test_rubyoptions.rb"
104 "test/ruby/test_process.rb"
105 "test/ruby/test_system.rb"
107 (("/bin/sh") (which "sh")))
110 `(("readline" ,readline)
116 (list (search-path-specification
117 (variable "GEM_PATH")
118 (files (list (string-append "lib/ruby/vendor_ruby"))))))
119 (synopsis "Programming language interpreter")
120 (description "Ruby is a dynamic object-oriented programming language with
121 a focus on simplicity and productivity.")
122 (home-page "https://www.ruby-lang.org")
123 (license license:ruby)))
125 (define-public ruby-2.4
132 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
133 (version-major+minor version)
134 "/ruby-" version ".tar.xz"))
137 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
138 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
139 (modules '((guix build utils)))
141 ;; Remove bundled libffi
142 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
145 (define-public ruby-2.3
152 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
153 (version-major+minor version)
154 "/ruby-" version ".tar.xz"))
157 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
158 (modules '((guix build utils)))
160 ;; Remove bundled libffi
161 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
172 (url "https://github.com/mruby/mruby.git")
174 (file-name (git-file-name name version))
177 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
178 (build-system gnu-build-system)
180 `(#:test-target "test"
182 (modify-phases %standard-phases
184 (add-after 'unpack 'enable-verbose-tests
186 (substitute* "Makefile"
187 (("ruby ./minirake" m)
188 (string-append m " --verbose")))
190 (add-after 'unpack 'disable-broken-tests
192 (substitute* "mrbgems/mruby-io/test/io.rb"
193 (("assert\\('IO.popen.+$" m)
194 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
195 (("assert\\('IO#isatty.+$" m)
196 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
197 ;; This one is really weird. The *expected* output is all wrong.
198 (("assert\\('`cmd`.*" m)
199 (string-append m "skip \"Disable for Guix\"\n"))
201 (string-append (which "echo") " foo")))
203 ;; There is no install target
205 (lambda* (#:key outputs #:allow-other-keys)
206 (let* ((out (assoc-ref outputs "out"))
207 (bin (string-append out "/bin"))
208 (lib (string-append out "/lib")))
210 (copy-recursively "build/host/bin" bin)
212 (copy-recursively "build/host/lib" lib))
217 (home-page "https://github.com/mruby/mruby")
218 (synopsis "Lightweight Ruby")
219 (description "mruby is the lightweight implementation of the Ruby
220 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
221 embedded within your application.")
222 (license license:expat)))
224 (define-public ruby-commander
226 (name "ruby-commander")
231 (uri (rubygems-uri "commander" version))
234 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
235 (build-system ruby-build-system)
237 `(#:test-target "spec"
239 (modify-phases %standard-phases
240 ;; Don't run or require rubocop, the code linting tool, as this is a
242 (add-after 'unpack 'dont-run-rubocop
244 (substitute* "Rakefile"
246 ((".*RuboCop.*") ""))
249 `(("ruby-highline" ,ruby-highline)))
251 `(("bundler" ,bundler)
252 ("ruby-rspec-core" ,ruby-rspec-core)
253 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
254 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
255 ("ruby-simplecov" ,ruby-simplecov)))
256 (home-page "https://github.com/commander-rb/commander")
257 (synopsis "Library for building Ruby command-line executables")
259 "Commander aims to be a complete solution for Ruby command-line
260 executables. Commander bridges the gap between other terminal related
261 libraries (OptionParser, HighLine), while providing many new features, and an
263 (license license:expat)))
265 (define-public ruby-highline
267 (name "ruby-highline")
272 (uri (rubygems-uri "highline" version))
275 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
276 (build-system ruby-build-system)
278 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
280 `(("bundler" ,bundler)
281 ("ruby-code-statistics" ,ruby-code-statistics)))
283 "HighLine helps you build command-line interfaces")
285 "HighLine provides a high-level IO library that provides validation,
286 type conversion, and more for command-line interfaces. HighLine also includes
287 a menu system for providing multiple options to the user.")
288 (home-page "https://github.com/JEG2/highline")
289 (license (list license:gpl2 license:ruby))))
291 (define-public ruby-hoe
297 (uri (rubygems-uri "hoe" version))
300 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
301 (build-system ruby-build-system)
302 (synopsis "Ruby project management helper")
304 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
305 maintain, and release projects and includes a dynamic plug-in system allowing
306 for easy extensibility. Hoe ships with plug-ins for all the usual project
307 tasks including rdoc generation, testing, packaging, deployment, and
309 (home-page "https://www.zenspider.com/projects/hoe.html")
310 (license license:expat)))
312 (define-public ruby-rake-compiler
314 (name "ruby-rake-compiler")
318 (uri (rubygems-uri "rake-compiler" version))
321 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
322 (build-system ruby-build-system)
324 '(#:tests? #f)) ; needs cucumber
325 (synopsis "Building and packaging helper for Ruby native extensions")
326 (description "Rake-compiler provides a framework for building and
327 packaging native C and Java extensions in Ruby.")
328 (home-page "https://github.com/rake-compiler/rake-compiler")
329 (license license:expat)))
331 (define-public ruby-rsync
338 (uri (rubygems-uri "rsync" version))
341 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
342 (build-system ruby-build-system)
344 '(#:test-target "spec"
346 (modify-phases %standard-phases
347 (add-after 'unpack 'remove-coveralls-requirement
349 (substitute* "spec/spec_helper.rb"
350 (("require 'coveralls'") "")
351 (("Coveralls.wear!") ""))
354 `(("bundler" ,bundler)
356 ("ruby-rspec-core" ,ruby-rspec-core)
357 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
358 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
359 (home-page "https://github.com/jbussdieker/ruby-rsync")
360 (synopsis "Ruby wrapper around rsync")
362 "Ruby Rsync is a Ruby library that can synchronize files between remote
363 hosts by wrapping the @file{rsync} binary.")
364 (license license:expat)))
366 (define-public ruby-i18n
372 (uri (rubygems-uri "i18n" version))
375 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
376 (build-system ruby-build-system)
378 '(#:tests? #f)) ; no tests
379 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
380 (synopsis "Internationalization library for Ruby")
381 (description "Ruby i18n is an internationalization and localization
382 solution for Ruby programs. It features translation and localization,
383 interpolation of values to translations, pluralization, customizable
384 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
385 translation data, custom key/scope separator, custom exception handlers, and
386 an extensible architecture with a swappable backend.")
387 (home-page "https://github.com/svenfuchs/i18n")
388 (license license:expat)))
390 (define-public ruby-iruby
397 (uri (rubygems-uri "iruby" version))
400 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
401 (build-system ruby-build-system)
403 ;; TODO: Tests currently fail.
405 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
408 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
411 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
414 (modify-phases %standard-phases
415 (add-after 'unpack 'patch-ipython
416 (lambda* (#:key inputs #:allow-other-keys)
417 (substitute* "lib/iruby/command.rb"
421 (assoc-ref inputs "python-ipython")
423 (("Kernel\\.exec\\('")
426 (assoc-ref inputs "python-ipython")
430 `(("python-ipython" ,python-ipython)))
432 `(("ruby-bond" ,ruby-bond)
433 ("ruby-data_uri" ,ruby-data_uri)
434 ("ruby-mimemagic" ,ruby-mimemagic)
435 ("ruby-multi-json" ,ruby-multi-json)
436 ("ruby-cztop" ,ruby-cztop)
438 ("ruby-pry" ,ruby-pry)))
439 (synopsis "Ruby kernel for Jupyter/IPython")
441 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
443 (home-page "https://github.com/SciRuby/iruby")
444 (license license:expat)))
446 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
447 ;; dependencies use RSpec for their test suites! To avoid these circular
448 ;; dependencies, we disable tests for all of the RSpec-related packages.
449 (define ruby-rspec-support
451 (name "ruby-rspec-support")
455 (uri (rubygems-uri "rspec-support" version))
458 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
459 (build-system ruby-build-system)
461 '(#:tests? #f)) ; avoid dependency cycles
462 (synopsis "RSpec support library")
463 (description "Support utilities for RSpec gems.")
464 (home-page "https://github.com/rspec/rspec-support")
465 (license license:expat)))
467 (define-public ruby-rspec-core
469 (name "ruby-rspec-core")
473 (uri (rubygems-uri "rspec-core" version))
476 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
477 (build-system ruby-build-system)
479 '(#:tests? #f)) ; avoid dependency cycles
481 `(("ruby-rspec-support" ,ruby-rspec-support)))
482 (synopsis "RSpec core library")
483 (description "Rspec-core provides the RSpec test runner and example
485 (home-page "https://github.com/rspec/rspec-core")
486 (license license:expat)))
488 (define-public ruby-rspec-core-2
489 (package (inherit ruby-rspec-core)
493 (uri (rubygems-uri "rspec-core" version))
496 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
497 (propagated-inputs `())))
499 (define-public ruby-diff-lcs
501 (name "ruby-diff-lcs")
505 (uri (rubygems-uri "diff-lcs" version))
508 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
509 (build-system ruby-build-system)
511 '(#:tests? #f)) ; avoid dependency cycles
512 (synopsis "Compute the difference between two Enumerable sequences")
513 (description "Diff::LCS computes the difference between two Enumerable
514 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
515 It includes utilities to create a simple HTML diff output format and a
516 standard diff-like tool.")
517 (home-page "https://github.com/halostatue/diff-lcs")
518 (license license:expat)))
520 (define-public ruby-rspec-expectations
522 (name "ruby-rspec-expectations")
526 (uri (rubygems-uri "rspec-expectations" version))
529 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
530 (build-system ruby-build-system)
532 '(#:tests? #f)) ; avoid dependency cycles
534 `(("ruby-rspec-support" ,ruby-rspec-support)
535 ("ruby-diff-lcs" ,ruby-diff-lcs)))
536 (synopsis "RSpec expectations library")
537 (description "Rspec-expectations provides a simple API to express expected
538 outcomes of a code example.")
539 (home-page "https://github.com/rspec/rspec-expectations")
540 (license license:expat)))
542 (define-public ruby-rspec-expectations-2
543 (package (inherit ruby-rspec-expectations)
547 (uri (rubygems-uri "rspec-expectations" version))
550 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
552 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
554 (define-public ruby-rspec-its
556 (name "ruby-rspec-its")
562 (url "https://github.com/rspec/rspec-its.git")
563 (commit (string-append "v" version))))
564 (file-name (git-file-name name version))
567 "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f"))
570 (origin (method url-fetch)
572 "https://github.com/rspec/rspec-its/commit/"
573 "bfaab439c7c879f5ef25552f41827891f6308373.patch"))
574 (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch")
577 "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh")))))))
578 (build-system ruby-build-system)
580 `(#:test-target "spec"
582 (modify-phases %standard-phases
583 (add-after 'unpack 'dont-install-gems-from-gemfile
585 (substitute* "Gemfile"
586 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
589 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
591 (substitute* "rspec-its.gemspec"
592 (("rake.*") "rake'\n")
593 (("cucumber.*") "cucumber'\n")
594 (("bundler.*") "bundler'\n")
595 (("aruba.*") "aruba'\n"))
598 `(("ruby-rspec-core" ,ruby-rspec-core)
599 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
601 `(("bundler" ,bundler)
602 ("ruby-cucumber" ,ruby-cucumber)
603 ("ruby-aruba" ,ruby-aruba)))
604 (synopsis "RSpec extension that provides the @code{its} method")
606 "RSpec::Its provides the its method as a short-hand to specify the expected
607 value of an attribute. For example, one can use @code{its(:size)\\{should
609 (home-page "https://github.com/rspec/rspec-its")
610 (license license:expat)))
612 (define-public ruby-rspec-mocks
614 (name "ruby-rspec-mocks")
618 (uri (rubygems-uri "rspec-mocks" version))
621 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
622 (build-system ruby-build-system)
624 '(#:tests? #f)) ; avoid dependency cycles
626 `(("ruby-rspec-support" ,ruby-rspec-support)
627 ("ruby-diff-lcs" ,ruby-diff-lcs)))
628 (synopsis "RSpec stubbing and mocking library")
629 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
630 support for stubbing and mocking.")
631 (home-page "https://github.com/rspec/rspec-mocks")
632 (license license:expat)))
634 (define-public ruby-rspec-mocks-2
635 (package (inherit ruby-rspec-mocks)
639 (uri (rubygems-uri "rspec-mocks" version))
642 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
644 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
646 (define-public ruby-rspec-rerun
648 (name "ruby-rspec-rerun")
653 (uri (rubygems-uri "rspec-rerun" version))
656 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
657 (build-system ruby-build-system)
659 '(;; No included tests
661 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
662 (synopsis "Track failed RSpec tests to re-run them")
664 "This package provides an automated way to track, and then re-run failed
666 (home-page "https://github.com/dblock/rspec-rerun")
667 (license license:expat)))
669 (define-public ruby-rspec
675 (uri (rubygems-uri "rspec" version))
678 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
679 (build-system ruby-build-system)
681 '(#:tests? #f)) ; avoid dependency cycles
683 `(("ruby-rspec-core" ,ruby-rspec-core)
684 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
685 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
686 (synopsis "Behavior-driven development framework for Ruby")
687 (description "RSpec is a behavior-driven development (BDD) framework for
688 Ruby. This meta-package includes the RSpec test runner, along with the
689 expectations and mocks frameworks.")
690 (home-page "http://rspec.info/")
691 (license license:expat)))
693 (define-public ruby-rspec-2
694 (package (inherit ruby-rspec)
698 (uri (rubygems-uri "rspec" version))
701 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
703 `(("ruby-rspec-core" ,ruby-rspec-core-2)
704 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
705 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
707 ;; Bundler is yet another source of circular dependencies, so we must disable
708 ;; its test suite as well.
709 (define-public bundler
715 (uri (rubygems-uri "bundler" version))
718 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
719 (build-system ruby-build-system)
721 '(#:tests? #f)) ; avoid dependency cycles
722 (synopsis "Ruby gem bundler")
723 (description "Bundler automatically downloads and installs a list of gems
724 specified in a \"Gemfile\", as well as their dependencies.")
725 (home-page "https://bundler.io/")
726 (license license:expat)))
728 (define-public ruby-builder
730 (name "ruby-builder")
734 (uri (rubygems-uri "builder" version))
737 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
738 (build-system ruby-build-system)
741 (modify-phases %standard-phases
742 (add-after 'unpack 'do-not-use-rvm
744 (substitute* "rakelib/tags.rake"
745 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
747 (synopsis "Ruby library to create structured data")
748 (description "Builder provides a number of builder objects that make it
749 easy to create structured data. Currently the following builder objects are
750 supported: XML Markup and XML Events.")
751 (home-page "https://github.com/jimweirich/builder")
752 (license license:expat)))
754 (define-public ruby-bump
761 (uri (rubygems-uri "bump" version))
764 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
765 (build-system ruby-build-system)
767 '(;; No included tests
769 (synopsis "Tool for working with Rubygems")
771 "Bump provides commands to manage Rubygem versioning, updating to the
772 next patch version for example.")
773 (home-page "https://github.com/gregorym/bump")
774 (license license:expat)))
776 (define-public ruby-rjb
782 (uri (rubygems-uri "rjb" version))
785 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
786 (build-system ruby-build-system)
788 `(#:tests? #f ; no rakefile
790 (modify-phases %standard-phases
791 (add-before 'build 'set-java-home
792 (lambda* (#:key inputs #:allow-other-keys)
793 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
796 `(("jdk" ,icedtea "jdk")))
797 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
798 (description "RJB is a bridge program that connects Ruby and Java via the
799 Java Native Interface.")
800 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
801 (license license:lgpl2.1+)))
803 (define-public ruby-log4r
810 (uri (rubygems-uri "log4r" version))
813 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
814 (build-system ruby-build-system)
816 '(#:tests? #f)) ; no Rakefile in gem
817 (synopsis "Flexible logging library for Ruby")
818 (description "Comprehensive and flexible logging library written
819 in Ruby for use in Ruby programs. It features a hierarchical logging
820 system of any number of levels, custom level names, logger
821 inheritance, multiple output destinations per log event, execution
822 tracing, custom formatting, thread safteyness, XML and YAML
823 configuration, and more.")
824 (home-page "http://log4r.rubyforge.org/")
825 (license license:bsd-3)))
827 (define-public ruby-atoulme-antwrap
829 (name "ruby-atoulme-antwrap")
833 (uri (rubygems-uri "atoulme-Antwrap" version))
836 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
837 (build-system ruby-build-system)
838 ;; Test data required for most of the tests are not included.
839 (arguments `(#:tests? #f))
841 `(("ruby-hoe" ,ruby-hoe)))
843 `(("ruby-rjb" ,ruby-rjb)))
844 (synopsis "Ruby wrapper for the Ant build tool")
845 (description "Antwrap is a Ruby module that wraps the Apache Ant build
846 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
848 (home-page "http://rubyforge.org/projects/antwrap/")
849 (license license:expat)))
851 (define-public ruby-atoulme-saikuro
853 (name "ruby-atoulme-saikuro")
857 (uri (rubygems-uri "atoulme-Saikuro" version))
860 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
861 (build-system ruby-build-system)
862 ;; FIXME: There are no unit tests. The tests are demonstrations of the
864 (arguments `(#:tests? #f))
865 (synopsis "Cyclomatic complexity analyzer")
866 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
867 given Ruby source code Saikuro will generate a report listing the cyclomatic
868 complexity of each method found. In addition, Saikuro counts the number of
869 lines per method and can generate a listing of the number of tokens on each
871 (home-page "http://www.github.com/atoulme/Saikuro")
872 ;; File headers contain the BSD-3 license and the README.rdoc says that
873 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
874 ;; of the Expat license.
875 (license license:bsd-3)))
877 (define-public ruby-asciidoctor
879 (name "ruby-asciidoctor")
884 (uri (rubygems-uri "asciidoctor" version))
887 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
888 (build-system ruby-build-system)
890 `(#:test-target "test:all"
892 (modify-phases %standard-phases
893 (add-before 'check 'remove-circular-tests
895 ;; Remove tests that require circular dependencies to load or pass.
896 (delete-file "test/invoker_test.rb")
897 (delete-file "test/converter_test.rb")
898 (delete-file "test/options_test.rb")
901 `(("ruby-minitest" ,ruby-minitest)
902 ("ruby-nokogiri" ,ruby-nokogiri)
903 ("ruby-asciimath" ,ruby-asciimath)
904 ("ruby-coderay" ,ruby-coderay)))
905 (synopsis "Converter from AsciiDoc content to other formats")
907 "Asciidoctor is a text processor and publishing toolchain for converting
908 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
909 (home-page "https://asciidoctor.org")
910 (license license:expat)))
912 (define-public ruby-ast
919 (uri (rubygems-uri "ast" version))
922 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
923 (build-system ruby-build-system)
926 (modify-phases %standard-phases
927 (add-after 'unpack 'remove-coveralls-requirement
929 (substitute* "test/helper.rb"
930 (("require 'coveralls'") "")
931 (("Coveralls::SimpleCov::Formatter") ""))
933 (add-after 'extract-gemspec 'remove-unnecessary-requirements
935 (substitute* "ast.gemspec"
936 ((".*coveralls.*") "\n")
937 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
938 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
939 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
942 `(("bundler" ,bundler)
943 ("ruby-simplecov" ,ruby-simplecov)
944 ("ruby-json-pure" ,ruby-json-pure)
945 ("ruby-mime-times" ,ruby-mime-types)
946 ("ruby-yard" ,ruby-yard)
947 ("ruby-kramdown" ,ruby-kramdown)
948 ("ruby-rest-client" ,ruby-rest-client)
949 ("ruby-bacon" ,ruby-bacon)
950 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
951 ("ruby-racc" ,ruby-racc)))
952 (synopsis "Library for working with Abstract Syntax Trees")
954 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
955 It does this through immutable data structures.")
956 (home-page "https://whitequark.github.io/ast/")
957 (license license:expat)))
959 (define-public ruby-sporkmonger-rack-mount
960 ;; Testing the addressable gem requires a newer commit than that released, so
961 ;; use an up to date version.
963 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
965 (name "ruby-sporkmonger-rack-mount")
966 (version (git-version "0.8.3" revision commit))
970 (url "https://github.com/sporkmonger/rack-mount.git")
972 (file-name (git-file-name name version))
975 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
976 (build-system ruby-build-system)
978 ;; Tests currently fail so disable them.
979 ;; https://github.com/sporkmonger/rack-mount/pull/1
981 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
982 (synopsis "Stackable dynamic tree based Rack router")
984 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
985 continue trying routes if the response returns pass. This allows multiple
986 routes to be nested or stacked on top of each other.")
987 (home-page "https://github.com/sporkmonger/rack-mount")
988 (license license:expat))))
990 (define-public ruby-ci-reporter
992 (name "ruby-ci-reporter")
996 (uri (rubygems-uri "ci_reporter" version))
999 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1000 (build-system ruby-build-system)
1002 `(#:test-target "rspec"))
1004 `(("ruby-builder" ,ruby-builder)))
1006 `(("bundler" ,bundler)
1007 ("ruby-rspec" ,ruby-rspec)))
1008 (synopsis "Generate XML reports of runs test")
1010 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1011 you to generate XML reports of your test runs. The resulting files can be
1012 read by a continuous integration system that understands Ant's JUnit report
1014 (home-page "https://github.com/nicksieger/ci_reporter")
1015 (license license:expat)))
1017 (define-public ruby-contracts
1019 (name "ruby-contracts")
1024 (uri (rubygems-uri "contracts" version))
1027 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1028 (build-system ruby-build-system)
1030 '(#:test-target "spec"
1032 (modify-phases %standard-phases
1033 ;; Don't run or require rubocop, the code linting tool, as this is a
1035 (add-after 'unpack 'dont-run-rubocop
1037 (substitute* "Rakefile"
1038 ((".*rubocop.*") "")
1039 ((".*RuboCop.*") ""))
1042 `(("ruby-rspec" ,ruby-rspec)))
1043 (synopsis "Method contracts for Ruby")
1045 "This library provides contracts for Ruby. A contract describes the
1046 correct inputs and output for a method, and will raise an error if a incorrect
1048 (home-page "https://github.com/egonSchiele/contracts.ruby")
1049 (license license:bsd-2)))
1051 (define-public ruby-crack
1058 (uri (rubygems-uri "crack" version))
1061 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1062 (build-system ruby-build-system)
1065 (modify-phases %standard-phases
1067 (lambda* (#:key tests? #:allow-other-keys)
1069 (for-each (lambda (file)
1070 (display file)(display "\n")
1071 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1072 (find-files "test" ".*rb$")))
1075 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1076 (synopsis "Simple JSON and XML parsing for Ruby")
1078 "@code{crack} provides really simple JSON and XML parsing, extracted from
1079 code in Merb and Rails.")
1080 (home-page "https://github.com/jnunemaker/crack")
1081 (license license:expat)))
1083 (define-public ruby-crass
1090 (uri (rubygems-uri "crass" version))
1093 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
1094 (build-system ruby-build-system)
1095 (synopsis "Pure Ruby CSS parser based on CSS Syntax Level 3")
1097 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
1098 (home-page "https://github.com/rgrove/crass/")
1099 (license license:expat)))
1101 (define-public ruby-cliver
1103 (name "ruby-cliver")
1108 (uri (rubygems-uri "cliver" version))
1111 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1112 (build-system ruby-build-system)
1115 (modify-phases %standard-phases
1116 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1117 ;; would be nice, but the tests look to be incompatible:
1119 ;; NoMethodError: undefined method `last_comment'
1121 (lambda* (#:key tests? #:allow-other-keys)
1126 `(("bundler" ,bundler)
1127 ("ruby-rspec" ,ruby-rspec-2)))
1128 (synopsis "Assertions for command-line dependencies in Ruby")
1130 "@code{cliver} provides a way to detect missing command-line
1131 dependencies, including versions.")
1132 (home-page "https://github.com/yaauie/cliver")
1133 (license license:expat)))
1135 (define-public ruby-czmq-ffi-gen
1137 (name "ruby-czmq-ffi-gen")
1142 (uri (rubygems-uri "czmq-ffi-gen" version))
1145 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1146 (build-system ruby-build-system)
1148 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1150 (modify-phases %standard-phases
1151 (add-after 'unpack 'patch-lib_dirs
1152 (lambda* (#:key inputs #:allow-other-keys)
1153 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1154 (("lib\\_dirs = \\[.*\\]")
1155 (string-append "lib_dirs = ['"
1156 (assoc-ref inputs "czmq") "/lib"
1158 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1159 (("lib\\_dirs = \\[.*\\]")
1160 (string-append "lib_dirs = ['"
1161 (assoc-ref inputs "zeromq") "/lib"
1164 `(("zeromq" ,zeromq)
1166 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1167 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1169 "These Ruby bindings are not intended to be directly used, but rather
1170 used by higher level bindings like those provided by CZTop.")
1172 "https://github.com/paddor/czmq-ffi-gen")
1173 (license license:isc)))
1175 (define-public ruby-cztop
1182 (uri (rubygems-uri "cztop" version))
1185 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1186 (build-system ruby-build-system)
1188 '(#:test-target "spec"
1190 (modify-phases %standard-phases
1191 (add-after 'unpack 'patch-lib_paths
1192 (lambda* (#:key inputs #:allow-other-keys)
1193 (substitute* "lib/cztop/poller/zmq.rb"
1194 (("lib\\_paths = \\[.*\\]")
1195 (string-append "lib_paths = ['"
1196 (assoc-ref inputs "zeromq") "/lib"
1199 `(("bundler" ,bundler)
1200 ("ruby-rspec" ,ruby-rspec)))
1202 `(("zeromq" ,zeromq)))
1204 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1205 (synopsis "CZMQ Ruby bindings")
1207 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1208 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1209 support for security mechanisms.")
1210 (home-page "https://github.com/paddor/cztop")
1211 (license license:isc)))
1213 (define-public ruby-saikuro-treemap
1215 (name "ruby-saikuro-treemap")
1219 (uri (rubygems-uri "saikuro_treemap" version))
1222 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1223 (build-system ruby-build-system)
1224 ;; Some of the tests fail because the generated JSON has keys in a
1225 ;; different order. This is a problem with the test suite rather than any
1226 ;; of the involved libraries.
1227 (arguments `(#:tests? #f))
1229 `(("ruby-json-pure" ,ruby-json-pure)
1230 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1231 (synopsis "Generate complexity treemap based on saikuro analysis")
1233 "This gem generates a treemap showing the complexity of Ruby code on
1234 which it is run. It uses Saikuro under the covers to analyze Ruby code
1236 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1237 (license license:expat)))
1239 (define-public ruby-oauth2
1241 (name "ruby-oauth2")
1246 (uri (rubygems-uri "oauth2" version))
1249 "0av6nlb5y2sm6m8fx669ywrqa9858yqaqfqzny75nqp3anag89qh"))))
1250 (build-system ruby-build-system)
1252 '(#:tests? #f)) ; No included tests
1254 `(("ruby-faraday" ,ruby-faraday)
1255 ("ruby-jwt" ,ruby-jwt)
1256 ("ruby-multi-json" ,ruby-multi-json)
1257 ("ruby-multi-xml" ,ruby-multi-xml)
1258 ("ruby-rack" ,ruby-rack)))
1259 (synopsis "Ruby wrapper for the OAuth 2.0")
1261 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1262 with a similar style to the original OAuth spec.")
1263 (home-page "https://github.com/oauth-xx/oauth2")
1264 (license license:expat)))
1266 (define-public ruby-omniauth
1268 (name "ruby-omniauth")
1273 (uri (rubygems-uri "omniauth" version))
1276 "1p16h1rp8by05k8gfw17xjhgwp60dk8qmj1xalv1n23kmxfsxb1x"))))
1277 (build-system ruby-build-system)
1279 '(#:tests? #f)) ; No included tests
1281 `(("ruby-hashie" ,ruby-hashie)
1282 ("ruby-rack" ,ruby-rack)))
1283 (synopsis "Generalized Rack framework for multiple-provider authentication")
1285 "This package provides a generalized Rack framework for multiple-provider
1287 (home-page "https://github.com/omniauth/omniauth")
1288 (license license:expat)))
1290 (define-public ruby-omniauth-oauth2
1292 (name "ruby-omniauth-oauth2")
1297 (uri (rubygems-uri "omniauth-oauth2" version))
1300 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1301 (build-system ruby-build-system)
1304 (modify-phases %standard-phases
1305 (add-after 'unpack 'remove-unnecessary-dependencies
1307 ;; The coveralls gem submits coverage information to an online
1308 ;; service, and is unnecessary when running the tests
1309 (substitute* "Gemfile"
1310 ((".*coveralls\"") ""))
1311 (substitute* "spec/helper.rb"
1312 (("require \"coveralls\"") "")
1313 (("Coveralls::SimpleCov::Formatter") ""))
1316 `(("ruby-oauth2" ,ruby-oauth2)
1317 ("ruby-omniauth" ,ruby-omniauth)))
1319 `(("bundler" ,bundler)
1320 ("ruby-rspec" ,ruby-rspec)
1321 ("ruby-simplecov" ,ruby-simplecov)
1322 ("ruby-rack-test" ,ruby-rack-test)
1323 ("ruby-webmock" ,ruby-webmock-2)))
1324 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1326 "This library provides a generic OAuth2 strategy for OmniAuth. It
1327 doesn't provide a way to gather user information, so should be used as a
1328 building block for authentication strategies.")
1329 (home-page "https://github.com/omniauth/omniauth-oauth2")
1330 (license license:expat)))
1332 (define-public ruby-open4
1339 (uri (rubygems-uri "open4" version))
1342 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1343 (build-system ruby-build-system)
1346 (modify-phases %standard-phases
1347 (add-after 'unpack 'patch
1349 (substitute* "rakefile"
1350 ;; Update the Rakefile so it works
1351 (("-rubygems") "-rrubygems")
1352 (("Config") "RbConfig"))
1354 (add-before 'check 'set-LIB
1356 ;; This is used in the rakefile when running the tests
1357 (setenv "LIB" "open4")
1359 (synopsis "Open child processes from Ruby and manage them easily")
1361 "@code{Open4} is a Ruby library to run child processes and manage their
1363 (home-page "https://github.com/ahoward/open4")
1364 (license license:ruby)))
1366 (define-public ruby-options
1368 (name "ruby-options")
1373 (uri (rubygems-uri "options" version))
1376 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1377 (build-system ruby-build-system)
1379 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1381 (modify-phases %standard-phases
1382 (add-before 'check 'set-LIB
1384 ;; This is used in the Rakefile, and setting it avoids an issue
1385 ;; with running the tests.
1386 (setenv "LIB" "options")
1388 (synopsis "Ruby library to parse options from *args cleanly")
1390 "The @code{options} library helps with parsing keyword options in Ruby
1392 (home-page "https://github.com/ahoward/options")
1393 (license license:ruby)))
1395 (define-public ruby-erubi
1402 (uri (rubygems-uri "erubi" version))
1405 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1406 (build-system ruby-build-system)
1407 (synopsis "ERB template engine for Ruby")
1409 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1411 (home-page "https://github.com/jeremyevans/erubi")
1412 (license license:expat)))
1414 (define-public ruby-erubis
1416 (name "ruby-erubis")
1421 (uri (rubygems-uri "erubis" version))
1424 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1425 (build-system ruby-build-system)
1427 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1428 (synopsis "Implementation of embedded Ruby (eRuby)")
1430 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1431 features such as multi-language support, auto escaping, auto trimming spaces
1432 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1434 (home-page "http://www.kuwata-lab.com/erubis/")
1435 (license license:expat)))
1437 (define-public ruby-orderedhash
1439 (name "ruby-orderedhash")
1443 (uri (rubygems-uri "orderedhash" version))
1446 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1447 (build-system ruby-build-system)
1449 '(#:tests? #f)) ; no test suite
1450 (synopsis "Ruby library providing an order-preserving hash")
1451 (description "Orderedhash is a Ruby library providing a hash
1452 implementation that preserves the order of items and features some array-like
1454 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1455 (license license:public-domain)))
1457 (define-public ruby-libxml
1459 (name "ruby-libxml")
1464 (uri (rubygems-uri "libxml-ruby" version))
1467 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1468 (build-system ruby-build-system)
1471 ("libxml2" ,libxml2)))
1473 '(#:tests? #f ; test suite hangs for unknown reason
1476 (string-append "--with-xml2-include="
1477 (assoc-ref %build-inputs "libxml2")
1478 "/include/libxml2" ))))
1479 (synopsis "Ruby bindings for GNOME Libxml2")
1480 (description "The Libxml-Ruby project provides Ruby language bindings for
1481 the GNOME Libxml2 XML toolkit.")
1482 (home-page "https://xml4r.github.com/libxml-ruby")
1483 (license license:expat)))
1485 (define-public ruby-lino
1492 (uri (rubygems-uri "lino" version))
1495 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1496 (build-system ruby-build-system)
1498 '(#:tests? #f)) ; No included tests
1500 `(("ruby-hamster" ,ruby-hamster)
1501 ("ruby-open4" ,ruby-open4)))
1502 (synopsis "Build and execute commands in Ruby")
1504 "@code{Lino} provides an interface to run external commands. It provides
1505 an interface to add options as well as managing the standard input, output and
1507 (home-page "https://github.com/tobyclemson/lino")
1508 (license license:expat)))
1510 (define-public ruby-xml-simple
1512 (name "ruby-xml-simple")
1516 (uri (rubygems-uri "xml-simple" version))
1519 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1520 (build-system ruby-build-system)
1522 '(#:tests? #f)) ; no test suite
1523 (synopsis "Simple Ruby library for XML processing")
1524 (description "This library provides a simple API for XML processing in
1526 (home-page "https://github.com/maik/xml-simple")
1527 (license license:ruby)))
1529 (define-public ruby-thor
1535 (uri (rubygems-uri "thor" version))
1538 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1539 (build-system ruby-build-system)
1541 '(#:tests? #f)) ; no test suite
1543 `(("bundler" ,bundler)))
1544 (synopsis "Ruby toolkit for building command-line interfaces")
1545 (description "Thor is a toolkit for building powerful command-line
1547 (home-page "http://whatisthor.com/")
1548 (license license:expat)))
1550 (define-public ruby-lumberjack
1552 (name "ruby-lumberjack")
1556 (uri (rubygems-uri "lumberjack" version))
1559 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1560 (build-system ruby-build-system)
1562 `(("ruby-rspec" ,ruby-rspec)
1563 ("ruby-timecop" ,ruby-timecop)))
1564 (synopsis "Logging utility library for Ruby")
1565 (description "Lumberjack is a simple logging utility that can be a drop in
1566 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1567 for automatically rolling log files even with multiple processes writing the
1569 (home-page "https://github.com/bdurand/lumberjack")
1570 (license license:expat)))
1572 (define-public ruby-rbnacl
1574 (name "ruby-rbnacl")
1579 (uri (rubygems-uri "rbnacl" version))
1582 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1583 (build-system ruby-build-system)
1586 (modify-phases %standard-phases
1587 (add-after 'unpack 'remove-unnecessary-dependencies
1589 ;; Coveralls relates to a network service, and Rubocop to code
1590 ;; linting and both are unnecessary to run the tests
1591 (substitute* "Gemfile"
1592 ((".*rubocop.*") "\n")
1593 ((".*guard-rspec.*") "\n")
1594 ((".*coveralls.*") "\n"))
1595 (substitute* "spec/spec_helper.rb"
1596 (("require \"coveralls\"") "")
1597 (("Coveralls.wear!") ""))
1599 (add-after 'unpack 'use-libsodium-from-store
1600 (lambda* (#:key inputs #:allow-other-keys)
1601 (substitute* '("lib/rbnacl/init.rb"
1602 "lib/rbnacl/sodium.rb")
1603 (("ffi_lib \\[.+\\]")
1604 (string-append "ffi_lib [\""
1605 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1608 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1610 (lambda* (#:key tests? #:allow-other-keys)
1615 `(("ruby-ffi" ,ruby-ffi)))
1617 `(("libsodium" ,libsodium)))
1619 `(("bundler" ,bundler)
1620 ("ruby-rspec" ,ruby-rspec)))
1621 (synopsis "Ruby FFI binding to libsodium")
1623 "This package provides Ruby FFI bindings to the Networking and
1624 Cryptography (NaCl) library, also known as libsodium. This provides a
1625 high-level toolkit for building cryptographic systems and protocols.")
1626 (home-page "https://github.com/crypto-rb/rbnacl")
1627 (license license:expat)))
1629 (define-public ruby-nenv
1635 (uri (rubygems-uri "nenv" version))
1638 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1639 (build-system ruby-build-system)
1641 `(#:tests? #f)) ; no tests included
1643 `(("ruby-rspec" ,ruby-rspec)
1644 ("bundler" ,bundler)))
1645 (synopsis "Ruby interface for modifying the environment")
1646 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1647 and inspect the environment.")
1648 (home-page "https://github.com/e2/nenv")
1649 (license license:expat)))
1651 (define-public ruby-permutation
1653 (name "ruby-permutation")
1657 (uri (rubygems-uri "permutation" version))
1660 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1661 (build-system ruby-build-system)
1664 (modify-phases %standard-phases
1665 (add-after 'unpack 'fix-rakefile
1667 (substitute* "Rakefile"
1668 (("require 'rake/gempackagetask'")
1669 "require 'rubygems/package_task'")
1670 (("include Config") ""))
1674 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1675 (synopsis "Library to perform operations with sequence permutations")
1676 (description "This package provides a Ruby library to perform different
1677 operations with permutations of sequences, such as strings and arrays.")
1678 (home-page "https://flori.github.io/permutation")
1679 (license license:gpl2))) ; GPL 2 only
1681 (define-public ruby-shellany
1683 (name "ruby-shellany")
1687 (uri (rubygems-uri "shellany" version))
1690 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1691 (build-system ruby-build-system)
1693 `(#:test-target "default"
1695 (modify-phases %standard-phases
1696 (add-after 'unpack 'fix-version-test
1698 (substitute* "spec/shellany_spec.rb"
1699 (("^RSpec") "require \"shellany\"\nRSpec"))
1702 `(("ruby-rspec" ,ruby-rspec)
1703 ("ruby-nenv" ,ruby-nenv)
1704 ("bundler" ,bundler)))
1705 (synopsis "Capture command output")
1706 (description "Shellany is a Ruby library providing functions to capture
1707 the output produced by running shell commands.")
1708 (home-page "https://rubygems.org/gems/shellany")
1709 (license license:expat)))
1711 (define-public ruby-notiffany
1713 (name "ruby-notiffany")
1717 (uri (rubygems-uri "notiffany" version))
1720 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1721 (build-system ruby-build-system)
1722 ;; Tests are not included in the gem.
1723 (arguments `(#:tests? #f))
1725 `(("ruby-shellany" ,ruby-shellany)
1726 ("ruby-nenv" ,ruby-nenv)))
1728 `(("bundler" ,bundler)))
1729 (synopsis "Wrapper libray for notification libraries")
1730 (description "Notiffany is a Ruby wrapper libray for notification
1731 libraries such as Libnotify.")
1732 (home-page "https://github.com/guard/notiffany")
1733 (license license:expat)))
1735 (define-public ruby-formatador
1737 (name "ruby-formatador")
1741 (uri (rubygems-uri "formatador" version))
1744 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1745 (build-system ruby-build-system)
1746 ;; Circular dependency: Tests require ruby-shindo, which requires
1747 ;; ruby-formatador at runtime.
1748 (arguments `(#:tests? #f))
1749 (synopsis "Ruby library to format text on stdout")
1750 (description "Formatador is a Ruby library to format text printed to the
1751 standard output stream.")
1752 (home-page "https://github.com/geemus/formatador")
1753 (license license:expat)))
1755 (define-public ruby-fuubar
1757 (name "ruby-fuubar")
1761 ;; Fetch from the git repository, as the gem package doesn't include
1765 (url "https://github.com/thekompanee/fuubar.git")
1766 (commit (string-append "releases/v" version))))
1767 (file-name (git-file-name name version))
1770 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1771 (build-system ruby-build-system)
1773 '(;; TODO: Some tests fail, unsure why.
1774 ;; 21 examples, 7 failures
1777 (modify-phases %standard-phases
1778 (add-before 'build 'delete-certificate
1780 ;; Remove 's.cert_chain' as we do not build with a private key
1781 (substitute* "fuubar.gemspec"
1782 ((".*cert_chain.*") "")
1783 ((".*signing_key.*") ""))
1786 (lambda* (#:key tests? #:allow-other-keys)
1791 `(("bundler" ,bundler)))
1793 `(("ruby-rspec-core" ,ruby-rspec-core)
1794 ("ruby-progressbar" ,ruby-progressbar)))
1795 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1797 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1798 string of letters and dots as feedback. It also stops on the first test
1800 (home-page "https://github.com/thekompanee/fuubar")
1801 (license license:expat)))
1803 (define-public ruby-haml
1810 (uri (rubygems-uri "haml" version))
1813 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1814 (build-system ruby-build-system)
1816 '(#:tests? #f)) ; No included tests
1818 `(("ruby-tilt" ,ruby-tilt)
1819 ("ruby-temple" ,ruby-temple)))
1820 (synopsis "Haml is a Ruby library to generate HTML documents")
1822 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1823 HTML or XML that is designed to express the structure of documents using
1824 indentation rather than closing tags. It was originally envisioned as a
1825 plugin for Ruby on Rails, but it can function as a stand-alone templating
1827 (home-page "http://haml.info/")
1828 (license license:expat)))
1830 (define-public ruby-hamster
1832 (name "ruby-hamster")
1837 (uri (rubygems-uri "hamster" version))
1840 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1841 (build-system ruby-build-system)
1844 (modify-phases %standard-phases
1845 (add-after 'unpack 'remove-unnecessary-dependencies
1847 ;; pry is a debugging tool, and is unnecessary when running the
1849 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1850 (("require 'pry'") ""))
1851 (substitute* "spec/spec_helper.rb"
1852 (("require \"pry\"") "")
1853 ;; CodeClimate is an online service, and is unnecessary for
1854 ;; running the tests
1855 (("require \"codeclimate-test-reporter\"") "")
1856 (("CodeClimate.*\n") ""))
1858 ;; No Rakefile is included, so run rspec directly.
1860 (lambda* (#:key tests? #:allow-other-keys)
1865 `(("ruby-concurrent" ,ruby-concurrent)))
1867 `(("ruby-rspec" ,ruby-rspec)))
1868 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1870 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1871 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1872 immutable queue or stack).")
1873 (home-page "https://github.com/hamstergem/hamster")
1874 (license license:expat)))
1876 (define-public ruby-hashdiff
1878 (name "ruby-hashdiff")
1883 (uri (rubygems-uri "hashdiff" version))
1886 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1887 (build-system ruby-build-system)
1890 (modify-phases %standard-phases
1891 ;; Run tests directly via rspec to avoid Rake issue:
1892 ;; NoMethodError: undefined method `last_comment'
1894 (lambda* (#:key tests? #:allow-other-keys)
1899 `(("bundler" ,bundler)
1900 ("ruby-rspec" ,ruby-rspec-2)))
1901 (synopsis "HashDiff computes the smallest difference between two hashes")
1903 "HashDiff is a Ruby library to compute the smallest difference between
1905 (home-page "https://github.com/liufengyun/hashdiff")
1906 (license license:expat)))
1908 (define-public ruby-shindo
1910 (name "ruby-shindo")
1914 (uri (rubygems-uri "shindo" version))
1917 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1918 (build-system ruby-build-system)
1920 `(#:test-target "shindo_tests"
1922 (modify-phases %standard-phases
1923 (add-after 'unpack 'fix-tests
1925 (substitute* "tests/tests_helper.rb"
1927 (substitute* "Rakefile"
1928 (("system \"shindo") "system \"./bin/shindo")
1929 ;; This test doesn't work, so we disable it.
1930 (("fail \"The build_error test should fail") "#")
1931 ((" -rubygems") ""))
1934 `(("ruby-formatador" ,ruby-formatador)))
1935 (synopsis "Simple depth first Ruby testing")
1936 (description "Shindo is a simple depth first testing library for Ruby.")
1937 (home-page "https://github.com/geemus/shindo")
1938 (license license:expat)))
1940 (define-public ruby-rubygems-tasks
1942 (name "ruby-rubygems-tasks")
1946 (uri (rubygems-uri "rubygems-tasks" version))
1949 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1950 (build-system ruby-build-system)
1951 ;; Tests need Internet access.
1952 (arguments `(#:tests? #f))
1954 `(("ruby-rspec" ,ruby-rspec)
1955 ("ruby-yard" ,ruby-yard)))
1956 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1957 (description "Rubygems-task provides Rake tasks for managing and releasing
1959 (home-page "https://github.com/postmodern/rubygems-tasks")
1960 (license license:expat)))
1962 (define-public ruby-rubyzip
1964 (name "ruby-rubyzip")
1969 (uri (rubygems-uri "rubyzip" version))
1972 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1973 (build-system ruby-build-system)
1976 (modify-phases %standard-phases
1977 (add-before 'check 'patch-tests
1978 (lambda* (#:key inputs #:allow-other-keys)
1979 (substitute* "test/gentestfiles.rb"
1982 (assoc-ref inputs "zip") "/bin/zip")))
1983 (substitute* "test/input_stream_test.rb"
1984 (("/usr/bin/env ruby") (which "ruby")))
1987 `(("bundler" ,bundler)
1988 ("ruby-simplecov" ,ruby-simplecov)
1991 (synopsis "Ruby module is for reading and writing zip files")
1993 "The rubyzip module provides ways to read from and create zip files.")
1994 (home-page "http://github.com/rubyzip/rubyzip")
1995 (license license:bsd-2)))
1997 (define-public ruby-simplecov-html
1999 (name "ruby-simplecov-html")
2003 (uri (rubygems-uri "simplecov-html" version))
2006 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2007 (build-system ruby-build-system)
2008 (arguments `(#:tests? #f)) ; there are no tests
2010 `(("bundler" ,bundler)))
2011 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2012 (description "This package provides the default HTML formatter for
2013 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2014 (home-page "https://github.com/colszowka/simplecov-html")
2015 (license license:expat)))
2017 (define-public ruby-simplecov
2019 (name "ruby-simplecov")
2023 (uri (rubygems-uri "simplecov" version))
2026 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
2027 (build-system ruby-build-system)
2028 ;; Simplecov depends on rubocop for code style checking at build time.
2029 ;; Rubocop needs simplecov at build time.
2030 (arguments `(#:tests? #f))
2032 `(("ruby-json" ,ruby-json)
2033 ("ruby-docile" ,ruby-docile)
2034 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2036 `(("bundler" ,bundler)))
2037 (synopsis "Code coverage framework for Ruby")
2038 (description "SimpleCov is a code coverage framework for Ruby with a
2039 powerful configuration library and automatic merging of coverage across test
2041 (home-page "https://github.com/colszowka/simplecov")
2042 (license license:expat)))
2044 (define-public ruby-useragent
2046 (name "ruby-useragent")
2050 (uri (rubygems-uri "useragent" version))
2053 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
2054 (build-system ruby-build-system)
2056 '(#:tests? #f)) ; no test suite
2057 (synopsis "HTTP user agent parser for Ruby")
2058 (description "UserAgent is a Ruby library that parses and compares HTTP
2060 (home-page "https://github.com/gshutler/useragent")
2061 (license license:expat)))
2063 (define-public ruby-backports
2065 (name "ruby-backports")
2070 (uri (rubygems-uri "backports" version))
2073 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2074 (build-system ruby-build-system)
2076 '(;; TODO: This should be default, but there is one test failure
2077 #:test-target "all_spec"))
2079 `(("ruby-mspec" ,ruby-mspec)
2080 ("ruby-activesupport" ,ruby-activesupport)))
2081 (synopsis "Backports of the features in newer Ruby versions")
2083 "Backports enables more compatibility across Ruby versions by providing
2084 backports of some features.")
2085 (home-page "https://github.com/marcandre/backports")
2086 (license license:expat)))
2088 (define-public ruby-bacon
2094 (uri (rubygems-uri "bacon" version))
2097 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2098 (build-system ruby-build-system)
2099 (synopsis "Small RSpec clone")
2100 (description "Bacon is a small RSpec clone providing all essential
2102 (home-page "https://github.com/chneukirchen/bacon")
2103 (license license:expat)))
2105 (define-public ruby-bacon-bits
2107 (name "ruby-bacon-bits")
2112 (uri (rubygems-uri "bacon-bits" version))
2115 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2116 (build-system ruby-build-system)
2120 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2121 (synopsis "Extensions to Bacon, for disabling tests, before and after
2124 "This extends the bacon testing framework with useful extensions to
2125 disable tests, have before and after blocks that run once and more.")
2126 (home-page "https://github.com/cldwalker/bacon-bits")
2127 (license license:expat)))
2129 (define-public ruby-bacon-colored-output
2131 (name "ruby-bacon-colored-output")
2136 (uri (rubygems-uri "bacon-colored_output" version))
2139 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2140 (build-system ruby-build-system)
2142 '(;; No included tests
2145 `(("ruby-bacon" ,ruby-bacon)))
2146 (synopsis "Colored output for Bacon test framework")
2148 "This package adds color through ANSI escape codes to Bacon test
2150 (home-page "https://github.com/whitequark/bacon-colored_output")
2151 (license license:expat)))
2153 (define-public ruby-connection-pool
2155 (name "ruby-connection-pool")
2159 (uri (rubygems-uri "connection_pool" version))
2162 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2163 (build-system ruby-build-system)
2165 `(("bundler" ,bundler)))
2166 (synopsis "Generic connection pool for Ruby")
2167 (description "Connection_pool provides a generic connection pooling
2168 interface for Ruby programs.")
2169 (home-page "https://github.com/mperham/connection_pool")
2170 (license license:expat)))
2172 (define-public ruby-net-http-persistent
2174 (name "ruby-net-http-persistent")
2178 (uri (rubygems-uri "net-http-persistent" version))
2181 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2182 (build-system ruby-build-system)
2184 `(("ruby-connection-pool" ,ruby-connection-pool)
2185 ("ruby-hoe" ,ruby-hoe)))
2186 (synopsis "Persistent HTTP connection manager")
2187 (description "Net::HTTP::Persistent manages persistent HTTP connections
2188 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2189 (home-page "https://github.com/drbrain/net-http-persistent")
2190 (license license:expat)))
2192 (define-public ruby-power-assert
2194 (name "ruby-power-assert")
2198 (uri (rubygems-uri "power_assert" version))
2201 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
2202 (build-system ruby-build-system)
2204 `(("bundler" ,bundler)))
2205 (synopsis "Assert library with descriptive assertion messages")
2206 (description "Power-assert is an assertion library providing descriptive
2207 assertion messages for tests.")
2208 (home-page "https://github.com/k-tsj/power_assert")
2209 (license (list license:bsd-2 license:ruby))))
2211 (define-public ruby-powerpack
2213 (name "ruby-powerpack")
2218 (uri (rubygems-uri "powerpack" version))
2221 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2222 (build-system ruby-build-system)
2224 '(#:test-target "spec"))
2226 `(("bundler" ,bundler)
2227 ("ruby-rspec" ,ruby-rspec)
2228 ("ruby-yard" ,ruby-yard)))
2229 (synopsis "Useful extensions to core Ruby classes")
2231 "This package provides a few useful extensions to core Ruby classes,
2232 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2234 (home-page "https://github.com/bbatsov/powerpack")
2235 (license license:expat)))
2237 (define-public ruby-locale
2239 (name "ruby-locale")
2243 (uri (rubygems-uri "locale" version))
2246 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2247 (build-system ruby-build-system)
2248 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2249 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2250 ;; dependency cycle we disable tests.
2251 (arguments `(#:tests? #f))
2253 `(("bundler" ,bundler)
2254 ("ruby-yard" ,ruby-yard)))
2255 (synopsis "Ruby library providing basic localization APIs")
2257 "Ruby-Locale is the pure ruby library which provides basic APIs for
2259 (home-page "https://github.com/ruby-gettext/locale")
2260 (license (list license:lgpl3+ license:ruby))))
2262 (define-public ruby-temple
2264 (name "ruby-temple")
2269 (uri (rubygems-uri "temple" version))
2272 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2273 (build-system ruby-build-system)
2275 `(("ruby-tilt" ,ruby-tilt)
2276 ("ruby-bacon" ,ruby-bacon)
2277 ("ruby-erubis" ,ruby-erubis)))
2278 (synopsis "Template compilation framework in Ruby")
2280 "Temple is an abstraction and framework for compiling templates to pure
2282 (home-page "https://github.com/judofyr/temple")
2283 (license license:expat)))
2285 (define-public ruby-text
2291 (uri (rubygems-uri "text" version))
2294 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2295 (build-system ruby-build-system)
2296 (synopsis "Collection of text algorithms for Ruby")
2298 "This package provides a collection of text algorithms: Levenshtein,
2299 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2300 (home-page "https://github.com/threedaymonk/text")
2301 (license license:expat)))
2303 (define-public ruby-gettext
2305 (name "ruby-gettext")
2309 (uri (rubygems-uri "gettext" version))
2312 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2313 (build-system ruby-build-system)
2314 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2315 ;; which needs ruby-gettext. To break the dependency cycle we disable
2317 (arguments `(#:tests? #f))
2319 `(("ruby-locale" ,ruby-locale)
2320 ("ruby-text" ,ruby-text)))
2322 `(("bundler" ,bundler)
2323 ("ruby-yard" ,ruby-yard)))
2324 (synopsis "GNU gettext-like program for Ruby")
2326 "Gettext is a GNU gettext-like program for Ruby. The catalog
2327 file (po-file) used is the same as that used by GNU gettext, allowing you to
2328 use GNU gettext tools for maintenance.")
2329 (home-page "https://ruby-gettext.github.com/")
2330 (license (list license:lgpl3+ license:ruby))))
2332 (define-public ruby-packnga
2334 (name "ruby-packnga")
2338 (uri (rubygems-uri "packnga" version))
2341 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2342 (build-system ruby-build-system)
2343 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2344 ;; To break the dependency cycle we disable tests.
2345 (arguments `(#:tests? #f))
2347 `(("ruby-gettext" ,ruby-gettext)
2348 ("ruby-yard" ,ruby-yard)))
2350 `(("bundler" ,bundler)))
2351 (synopsis "Utility library to package internationalized libraries")
2353 "Packnga is a library to translate to many languages using YARD.")
2354 (home-page "http://ranguba.org/packnga/")
2355 (license license:lgpl2.0+)))
2357 (define-public ruby-test-construct
2359 (name "ruby-test-construct")
2364 (uri (rubygems-uri "test_construct" version))
2367 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2368 (build-system ruby-build-system)
2370 `(("bundler" ,bundler)
2371 ("ruby-mocha" ,ruby-mocha)
2372 ("ruby-rspec" ,ruby-rspec)))
2373 (synopsis "Creates temporary files and directories for testing")
2375 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2376 temporary files and directories during tests.")
2377 (home-page "https://github.com/bhb/test_construct")
2378 (license license:expat)))
2380 (define-public ruby-test-unit
2382 (name "ruby-test-unit")
2386 (uri (rubygems-uri "test-unit" version))
2389 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2390 (build-system ruby-build-system)
2392 `(("ruby-power-assert" ,ruby-power-assert)))
2394 `(("bundler" ,bundler)
2395 ("ruby-packnga" ,ruby-packnga)
2396 ("ruby-yard" ,ruby-yard)))
2397 (synopsis "Unit testing framework for Ruby")
2398 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2399 on xUnit principles. These were originally designed by Kent Beck, creator of
2400 extreme programming software development methodology, for Smalltalk's SUnit.
2401 It allows writing tests, checking results and automated testing in Ruby.")
2402 (home-page "https://test-unit.github.io/")
2403 (license (list license:psfl license:ruby))))
2405 (define-public ruby-markaby
2407 (name "ruby-markaby")
2412 (uri (rubygems-uri "markaby" version))
2415 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2416 (build-system ruby-build-system)
2419 (modify-phases %standard-phases
2420 ;; Run rspec manually without using the Rakefile, as the versions of
2421 ;; Rake and RSpec 2 are incompatible:
2423 ;; NoMethodError: undefined method `last_comment'
2425 (lambda* (#:key tests? #:allow-other-keys)
2430 `(("ruby-builder" ,ruby-builder)))
2432 `(("bundler" ,bundler)
2433 ("ruby-rspec" ,ruby-rspec-2)))
2434 (synopsis "Write HTML pages in pure Ruby")
2436 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2437 the functionality provided by @acronym{ERB, Embeded Ruby}, but without the
2438 mixture of HTML and additional ERB syntax.")
2439 (home-page "http://markaby.github.io/")
2440 (license license:expat)))
2442 (define-public ruby-maruku
2444 (name "ruby-maruku")
2449 (uri (rubygems-uri "maruku" version))
2452 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2453 (build-system ruby-build-system)
2455 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2458 (modify-phases %standard-phases
2460 (lambda* (#:key tests? #:allow-other-keys)
2465 `(("ruby-rspec" ,ruby-rspec)
2466 ("ruby-simplecov" ,ruby-simplecov)
2467 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2468 (synopsis "Markdown interpreter in Ruby")
2470 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2471 HTML, and PDF through LaTeX.")
2472 (home-page "https://github.com/bhollis/maruku")
2473 (license license:expat)))
2475 (define-public ruby-metaclass
2477 (name "ruby-metaclass")
2481 (uri (rubygems-uri "metaclass" version))
2484 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2485 (build-system ruby-build-system)
2488 (modify-phases %standard-phases
2489 (add-after 'unpack 'add-test-unit-to-search-path
2490 (lambda* (#:key inputs #:allow-other-keys)
2491 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2492 (substitute* "Rakefile"
2493 (("t\\.libs << \"test\"" line)
2494 (string-append line "; t.libs << \""
2495 test-unit "/lib/ruby/vendor_ruby"
2497 ,(package-version ruby-test-unit)
2501 `(("bundler" ,bundler)
2502 ("ruby-test-unit" ,ruby-test-unit)))
2503 (synopsis "Ruby library adding metaclass method to all objects")
2505 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2507 (home-page "https://github.com/floehopper/metaclass")
2508 (license license:expat)))
2510 (define-public ruby-mspec
2517 (uri (rubygems-uri "mspec" version))
2520 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2521 (build-system ruby-build-system)
2523 '(;; TODO: 3 test failures
2524 ;; ./spec/mocks/mock_spec.rb:82
2525 ;; ./spec/utils/name_map_spec.rb:151
2526 ;; ./spec/utils/name_map_spec.rb:155
2529 (modify-phases %standard-phases
2530 (add-after 'extract-gemspec 'change-dependency-constraints
2532 (substitute* "mspec.gemspec"
2533 (("rake.*") "rake>)\n")
2534 (("rspec.*") "rspec>)\n"))
2537 (lambda* (#:key tests? #:allow-other-keys)
2539 (invoke "rspec" "spec"))
2542 `(("bundler" ,bundler)
2543 ("ruby-rake" ,ruby-rake)
2544 ("ruby-rspec" ,ruby-rspec)))
2545 (synopsis "MSpec is a specialized framework for RubySpec")
2547 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2548 for basic features. MSpec contains additional features that assist in writing
2549 specs for Ruby implementations in ruby/spec.")
2550 (home-page "http://rubyspec.org")
2551 (license license:expat)))
2553 (define-public ruby-mysql2
2555 (name "ruby-mysql2")
2561 (url "https://github.com/brianmario/mysql2.git")
2563 (file-name (git-file-name name version))
2566 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2567 (build-system ruby-build-system)
2569 '(;; TODO: Tests require a running MySQL/MariaDB service
2572 (modify-phases %standard-phases
2573 (replace 'replace-git-ls-files
2575 (substitute* "mysql2.gemspec"
2576 (("git ls-files .*`") "find . -type f |sort`"))
2578 (add-before 'install 'set-MAKEFLAGS
2579 (lambda* (#:key outputs #:allow-other-keys)
2583 "prefix=" (assoc-ref outputs "out")))
2585 ;; Move the 'check phase to after 'install, as then you can test
2586 ;; using the installed mysql2 gem in the store.
2588 (add-after 'install 'check
2589 (lambda* (#:key outputs tests? #:allow-other-keys)
2594 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2599 `(("mariadb" ,mariadb)
2602 `(("ruby-rspec" ,ruby-rspec)
2603 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2604 (synopsis "MySQL library for Ruby, binding to libmysql")
2606 "This package provides a simple, fast MySQL library for Ruby, binding to
2608 (home-page "https://github.com/brianmario/mysql2")
2609 (license license:expat)))
2611 (define-public ruby-blankslate
2613 (name "ruby-blankslate")
2617 (uri (rubygems-uri "blankslate" version))
2620 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2621 (build-system ruby-build-system)
2624 (modify-phases %standard-phases
2626 (lambda _ (invoke "rspec" "spec/"))))))
2628 `(("bundler" ,bundler)
2629 ("ruby-rspec" ,ruby-rspec)))
2630 (synopsis "Abstract base class with no predefined methods")
2632 "BlankSlate provides an abstract base class with no predefined
2633 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2634 as a base class when writing classes that depend upon
2635 @code{method_missing} (e.g. dynamic proxies).")
2636 (home-page "https://github.com/masover/blankslate")
2637 (license license:expat)))
2639 (define-public ruby-bond
2646 (uri (rubygems-uri "bond" version))
2649 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2650 (build-system ruby-build-system)
2652 `(("ruby-bacon" ,ruby-bacon)
2653 ("ruby-bacon-bits" ,ruby-bacon-bits)
2654 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2655 (synopsis "Bond can provide custom autocompletion for arguments, methods
2658 "Bond can autocomplete argument(s) to methods, uniquely completing per
2659 module, per method and per argument. Bond provides a configuration system and
2660 a DSL for creating custom completions and completion rules. Bond can also
2661 load completions that ship with gems. Bond is able to offer more than irb's
2662 completion since it uses the full line of input when completing as opposed to
2663 irb's last-word approach.")
2664 (home-page "http://tagaholic.me/bond/")
2665 (license license:expat)))
2667 (define-public ruby-idn-ruby
2669 (name "ruby-idn-ruby")
2674 (uri (rubygems-uri "idn-ruby" version))
2677 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2678 (build-system ruby-build-system)
2681 (modify-phases %standard-phases
2683 (add-after 'install 'check
2684 (lambda* (#:key tests? outputs #:allow-other-keys)
2686 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2687 (name-and-version (basename gem-file ".gem")))
2691 (assoc-ref outputs "out")
2692 "/lib/ruby/vendor_ruby/gems/"
2695 (find-files "./test" ".*\\.rb"))))
2698 `(("libidn" ,libidn)))
2699 (synopsis "Ruby Bindings for the GNU LibIDN library")
2701 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2702 Stringprep, Punycode and IDNA specifications. These are used to encode and
2703 decode internationalized domain + names according to the IDNA2003
2706 Included are the most important parts of the Stringprep, Punycode and IDNA
2707 APIs like performing Stringprep processings, encoding to and decoding from
2708 Punycode strings and converting entire domain names to and from the ACE
2710 (home-page "https://github.com/deepfryed/idn-ruby")
2711 (license license:asl2.0)))
2713 (define-public ruby-instantiator
2715 (name "ruby-instantiator")
2719 (uri (rubygems-uri "instantiator" version))
2722 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2723 (build-system ruby-build-system)
2726 (modify-phases %standard-phases
2727 (add-after 'unpack 'add-test-unit-to-search-path
2728 (lambda* (#:key inputs #:allow-other-keys)
2729 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2730 (substitute* "Rakefile"
2731 (("t\\.libs << \"test\"" line)
2732 (string-append line "; t.libs << \""
2733 test-unit "/lib/ruby/vendor_ruby"
2735 ,(package-version ruby-test-unit)
2739 `(("ruby-blankslate" ,ruby-blankslate)))
2741 `(("bundler" ,bundler)
2742 ("ruby-test-unit" ,ruby-test-unit)))
2743 (synopsis "Instantiate an arbitrary Ruby class")
2745 "Instantiator lets you instantiate an arbitrary Ruby class without
2746 knowing anything about the constructor.")
2747 (home-page "https://github.com/floehopper/instantiator")
2748 (license license:expat)))
2750 (define-public ruby-introspection
2752 (name "ruby-introspection")
2756 (uri (rubygems-uri "introspection" version))
2759 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2760 (build-system ruby-build-system)
2763 (modify-phases %standard-phases
2764 (add-after 'unpack 'add-test-unit-to-search-path
2765 (lambda* (#:key inputs #:allow-other-keys)
2766 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2767 (substitute* "Rakefile"
2768 (("t\\.libs << \"test\"" line)
2769 (string-append line "; t.libs << \""
2770 test-unit "/lib/ruby/vendor_ruby"
2772 ,(package-version ruby-test-unit)
2776 `(("ruby-instantiator" ,ruby-instantiator)
2777 ("ruby-metaclass" ,ruby-metaclass)))
2779 `(("bundler" ,bundler)
2780 ("ruby-blankslate" ,ruby-blankslate)
2781 ("ruby-test-unit" ,ruby-test-unit)))
2782 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2784 "Introspection provides tools to inspect the hierarchy of method
2785 definitions on a Ruby object.")
2786 (home-page "https://github.com/floehopper/introspection")
2787 (license license:expat)))
2789 (define-public ruby-redcarpet
2791 (name "ruby-redcarpet")
2795 (uri (rubygems-uri "redcarpet" version))
2798 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2799 (build-system ruby-build-system)
2802 (modify-phases %standard-phases
2803 ;; The gem archive does not include the conformance tests.
2804 (add-after 'unpack 'disable-conformance-tests
2806 (substitute* "Rakefile"
2807 (("task :test => %w\\[test:unit test:conformance\\]")
2808 "task :test => %w[test:unit]"))
2811 `(("bundler" ,bundler)
2812 ("ruby-test-unit" ,ruby-test-unit)
2813 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2814 (synopsis "Extensible Markdown to (X)HTML converter")
2816 "Redcarpet is an extensible Ruby library for Markdown processing and
2817 conversion to (X)HTML.")
2818 (home-page "https://github.com/vmg/redcarpet")
2819 (license license:expat)))
2821 (define-public ruby-mocha
2827 (uri (rubygems-uri "mocha" version))
2830 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2831 (build-system ruby-build-system)
2834 (modify-phases %standard-phases
2835 (add-after 'unpack 'add-test-unit-to-search-path
2836 (lambda* (#:key inputs #:allow-other-keys)
2837 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2838 (substitute* "Rakefile"
2839 (("t\\.libs << 'test'" line)
2840 (string-append line "; t.libs << \""
2841 test-unit "/lib/ruby/vendor_ruby"
2843 ,(package-version ruby-test-unit)
2846 (add-before 'check 'use-latest-redcarpet
2848 (substitute* "mocha.gemspec"
2849 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2850 "<redcarpet>.freeze, [\">= 3\"]"))
2852 (add-before 'check 'hardcode-version
2854 ;; Mocha is undefined at build time
2855 (substitute* "Rakefile"
2856 (("#\\{Mocha::VERSION\\}") ,version))
2858 (add-before 'check 'remove-failing-test
2859 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2861 (delete-file "test/acceptance/stubbing_nil_test.rb")
2864 `(("ruby-metaclass" ,ruby-metaclass)))
2866 `(("bundler" ,bundler)
2867 ("ruby-yard" ,ruby-yard)
2868 ("ruby-introspection" ,ruby-introspection)
2869 ("ruby-test-unit" ,ruby-test-unit)
2870 ("ruby-redcarpet" ,ruby-redcarpet)))
2871 (synopsis "Mocking and stubbing library for Ruby")
2873 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
2874 allows mocking and stubbing of methods on real (non-mock) classes.")
2875 (home-page "http://gofreerange.com/mocha/docs")
2876 (license license:expat)))
2878 (define-public ruby-mocha-on-bacon
2880 (name "ruby-mocha-on-bacon")
2885 (uri (rubygems-uri "mocha-on-bacon" version))
2888 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
2889 (build-system ruby-build-system)
2891 ;; rubygems.org release missing tests
2893 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
2894 (synopsis "Mocha adapter for Bacon")
2896 "This package provides a Mocha adapter for Bacon, allowing you to use the
2897 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
2899 "https://github.com/alloy/mocha-on-bacon")
2900 (license license:expat)))
2902 (define-public ruby-net-ssh
2904 (name "ruby-net-ssh")
2908 (uri (rubygems-uri "net-ssh" version))
2911 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2912 (build-system ruby-build-system)
2914 `(("bundler" ,bundler)
2915 ("ruby-mocha" ,ruby-mocha)
2916 ("ruby-test-unit" ,ruby-test-unit)))
2917 (synopsis "Ruby implementation of the SSH2 client protocol")
2918 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
2919 client protocol. It allows you to write programs that invoke and interact
2920 with processes on remote servers, via SSH2.")
2921 (home-page "https://github.com/net-ssh/net-ssh")
2922 (license license:expat)))
2924 (define-public ruby-net-scp
2926 (name "ruby-net-scp")
2927 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
2928 (version "1.2.2.rc2")
2932 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
2936 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
2937 (build-system ruby-build-system)
2939 `(("bundler" ,bundler)
2940 ("ruby-test-unit" ,ruby-test-unit)
2941 ("ruby-mocha" ,ruby-mocha)))
2943 `(("ruby-net-ssh" ,ruby-net-ssh)))
2944 (synopsis "Pure-Ruby SCP client library")
2945 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
2947 (home-page "https://github.com/net-ssh/net-scp")
2948 (license license:expat)))
2950 (define-public ruby-minitest
2952 (name "ruby-minitest")
2956 (uri (rubygems-uri "minitest" version))
2959 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
2960 (build-system ruby-build-system)
2962 `(("ruby-hoe" ,ruby-hoe)))
2963 (synopsis "Small test suite library for Ruby")
2964 (description "Minitest provides a complete suite of Ruby testing
2965 facilities supporting TDD, BDD, mocking, and benchmarking.")
2966 (home-page "https://github.com/seattlerb/minitest")
2967 (license license:expat)))
2969 ;; This is the last release of Minitest 4, which is used by some packages.
2970 (define-public ruby-minitest-4
2971 (package (inherit ruby-minitest)
2975 (uri (rubygems-uri "minitest" version))
2978 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
2981 (modify-phases %standard-phases
2982 (add-after 'unpack 'remove-unsupported-method
2984 (substitute* "Rakefile"
2985 (("self\\.rubyforge_name = .*") ""))
2987 (add-after 'build 'exclude-failing-tests
2989 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
2991 (delete-file "test/minitest/test_minitest_spec.rb")
2994 (define-public ruby-minitest-around
2996 (name "ruby-minitest-around")
3001 (uri (rubygems-uri "minitest-around" version))
3004 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3005 (build-system ruby-build-system)
3008 (modify-phases %standard-phases
3009 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3011 (substitute* "minitest-around.gemspec"
3012 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3015 `(("ruby-minitest" ,ruby-minitest)))
3017 `(("bundler" ,bundler)
3018 ("ruby-cucumber" ,ruby-cucumber)
3019 ("ruby-bump" ,ruby-bump)
3020 ("ruby-test-construct" ,ruby-test-construct)))
3021 (synopsis "Run code around tests in Minitest")
3023 "This library provides a way to run code around tests in Minitest,
3024 written using either the unit test or spec style.")
3025 (home-page "https://github.com/splattael/minitest-around")
3026 (license license:expat)))
3028 (define-public ruby-minitest-sprint
3030 (name "ruby-minitest-sprint")
3034 (uri (rubygems-uri "minitest-sprint" version))
3037 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3038 (build-system ruby-build-system)
3040 `(("ruby-hoe" ,ruby-hoe)
3041 ("ruby-minitest" ,ruby-minitest)))
3042 (synopsis "Fast test suite runner for minitest")
3043 (description "Minitest-sprint is a test runner for minitest that makes it
3044 easier to re-run individual failing tests.")
3045 (home-page "https://github.com/seattlerb/minitest-sprint")
3046 (license license:expat)))
3048 (define-public ruby-minitest-bacon
3050 (name "ruby-minitest-bacon")
3054 (uri (rubygems-uri "minitest-bacon" version))
3057 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3058 (build-system ruby-build-system)
3060 `(("ruby-hoe" ,ruby-hoe)))
3062 `(("ruby-minitest" ,ruby-minitest)))
3063 (synopsis "Bacon compatibility library for minitest")
3064 (description "Minitest-bacon extends minitest with bacon-like
3065 functionality, making it easier to migrate test suites from bacon to minitest.")
3066 (home-page "https://github.com/seattlerb/minitest-bacon")
3067 (license license:expat)))
3069 (define-public ruby-minitest-focus
3071 (name "ruby-minitest-focus")
3076 (uri (rubygems-uri "minitest-focus" version))
3079 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3080 (build-system ruby-build-system)
3082 `(("ruby-minitest" ,ruby-minitest)))
3084 `(("ruby-hoe" ,ruby-hoe)))
3085 (synopsis "Allows a few specific tests to be focused on")
3087 "@code{minitest-focus} gives the ability focus on a few tests with ease
3088 without having to use command-line arguments. It introduces a @code{focus}
3089 class method for use in testing classes, specifying that the next defined test
3091 (home-page "https://github.com/seattlerb/minitest-focus")
3092 (license license:expat)))
3094 (define-public ruby-minitest-pretty-diff
3095 ;; Use git reference because gem is out of date and does not contain testing
3096 ;; script. There are no releases on GitHub.
3097 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3099 (name "ruby-minitest-pretty-diff")
3100 (version (string-append "0.1-1." (string-take commit 8)))
3104 (url "https://github.com/adammck/minitest-pretty_diff.git")
3106 (file-name (string-append name "-" version "-checkout"))
3109 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3110 (build-system ruby-build-system)
3113 (modify-phases %standard-phases
3116 (invoke "script/test"))))))
3118 `(("bundler" ,bundler)
3119 ("ruby-turn" ,ruby-turn)))
3120 (synopsis "Pretty-print hashes and arrays in MiniTest")
3122 "@code{minitest-pretty_diff} monkey-patches
3123 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3124 diffing them. This makes it easier to spot differences between nested
3125 structures when tests fail.")
3126 (home-page "https://github.com/adammck/minitest-pretty_diff")
3127 (license license:expat))))
3129 (define-public ruby-minitest-moar
3131 (name "ruby-minitest-moar")
3136 (uri (rubygems-uri "minitest-moar" version))
3139 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3140 (build-system ruby-build-system)
3143 (modify-phases %standard-phases
3144 (add-before 'check 'clean-dependencies
3146 ;; Remove all gems defined in the Gemfile because these are not
3148 (substitute* "Gemfile"
3150 ;; Remove byebug as not needed to run tests.
3151 (substitute* "test/test_helper.rb"
3152 (("require 'byebug'") ""))
3155 `(("bundler" ,bundler)
3156 ("ruby-minitest" ,ruby-minitest)))
3157 (synopsis "Extra features and changes to MiniTest")
3158 (description "@code{MiniTest Moar} add some additional features and
3159 changes some default behaviours in MiniTest. For instance, Moar replaces the
3160 MiniTest @code{Object#stub} with a global @code{stub} method.")
3161 (home-page "https://github.com/dockyard/minitest-moar")
3162 (license license:expat)))
3164 (define-public ruby-minitest-bonus-assertions
3166 (name "ruby-minitest-bonus-assertions")
3171 (uri (rubygems-uri "minitest-bonus-assertions" version))
3174 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3175 (build-system ruby-build-system)
3178 (modify-phases %standard-phases
3179 (add-before 'check 'clean-dependencies
3181 ;; Remove unneeded require statement that would entail another
3183 (substitute* "test/minitest_config.rb"
3184 (("require 'minitest/bisect'") ""))
3187 `(("ruby-hoe" ,ruby-hoe)
3188 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3189 ("ruby-minitest-focus" ,ruby-minitest-focus)
3190 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3191 (synopsis "Bonus assertions for @code{Minitest}")
3193 "Minitest bonus assertions provides extra MiniTest assertions. For
3194 instance, it provides @code{assert_true}, @code{assert_false} and
3195 @code{assert_set_equal}.")
3196 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3197 (license license:expat)))
3199 (define-public ruby-minitest-reporters
3201 (name "ruby-minitest-reporters")
3206 (uri (rubygems-uri "minitest-reporters" version))
3209 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3210 (build-system ruby-build-system)
3213 (modify-phases %standard-phases
3214 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3215 ;; including it as an input can lead to circular dependencies.
3216 (add-after 'unpack 'remove-rubocop-from-Rakefile
3218 (substitute* "Rakefile"
3219 (("require 'rubocop/rake\\_task'") "")
3220 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3222 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3224 (substitute* "minitest-reporters.gemspec"
3225 ((".*%q<rubocop>.*") "\n"))
3228 `(("ruby-ansi" ,ruby-ansi)
3229 ("ruby-builder" ,ruby-builder)
3230 ("ruby-minitest" ,ruby-minitest)
3231 ("ruby-progressbar" ,ruby-progressbar)))
3233 `(("bundler" ,bundler)
3234 ("ruby-maruku" ,ruby-maruku)))
3235 (synopsis "Enhanced reporting for Minitest tests")
3237 "@code{minitest/reporters} provides a custom Minitest runner to improve
3238 how the test state is reported. A number of different reporters are
3239 available, including a spec reporter, progress bar reporter, a HTML
3241 (home-page "https://github.com/kern/minitest-reporters")
3242 (license license:expat)))
3244 (define-public ruby-minitest-rg
3246 (name "ruby-minitest-rg")
3251 (uri (rubygems-uri "minitest-rg" version))
3254 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3255 (build-system ruby-build-system)
3257 ;; Some tests fail even outside Guix, so disable tests.
3258 ;; https://github.com/blowmage/minitest-rg/issues/12
3259 ;; https://github.com/blowmage/minitest-rg/pull/13
3262 `(("ruby-minitest" ,ruby-minitest)))
3263 (synopsis "Coloured output for Minitest")
3265 "@code{minitest-rg} changes the colour of the output from Minitest.")
3266 (home-page "http://blowmage.com/minitest-rg")
3267 (license license:expat)))
3269 (define-public ruby-minitest-hooks
3271 (name "ruby-minitest-hooks")
3276 (uri (rubygems-uri "minitest-hooks" version))
3279 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3280 (build-system ruby-build-system)
3282 '(#:test-target "spec"))
3284 `(("ruby-sequel" ,ruby-sequel)
3285 ("ruby-sqlite3" ,ruby-sqlite3)))
3286 (synopsis "Hooks for the minitest framework")
3288 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3289 @code{around_all} hooks for Minitest. This allows, for instance, running each
3290 suite of specs inside a database transaction, running each spec inside its own
3291 savepoint inside that transaction. This can significantly speed up testing
3292 for specs that share expensive database setup code.")
3293 (home-page "https://github.com/jeremyevans/minitest-hooks")
3294 (license license:expat)))
3296 (define-public ruby-daemons
3298 (name "ruby-daemons")
3302 (uri (rubygems-uri "daemons" version))
3305 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3306 (build-system ruby-build-system)
3308 `(#:tests? #f)) ; no test suite
3309 (synopsis "Daemonize Ruby programs")
3310 (description "Daemons provides a way to wrap existing Ruby scripts to be
3311 run as a daemon and to be controlled by simple start/stop/restart commands.")
3312 (home-page "https://github.com/thuehlinger/daemons")
3313 (license license:expat)))
3315 (define-public ruby-data_uri
3317 (name "ruby-data_uri")
3322 (uri (rubygems-uri "data_uri" version))
3325 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3326 (build-system ruby-build-system)
3327 (synopsis "URI class for parsing data URIs")
3329 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3330 embedded inside a URI. The URI::Data class provides support for parsing these
3331 URIs using the normal URI.parse method.")
3332 (home-page "https://github.com/dball/data_uri")
3333 (license license:expat)))
3335 (define-public ruby-git
3341 (uri (rubygems-uri "git" version))
3344 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3345 (build-system ruby-build-system)
3347 `(#:tests? #f ; no tests
3348 #:phases (modify-phases %standard-phases
3349 (add-after 'install 'patch-git-binary
3350 (lambda* (#:key inputs outputs #:allow-other-keys)
3351 ;; Make the default git binary an absolute path to the
3353 (let ((git (string-append (assoc-ref inputs "git")
3355 (config (string-append
3356 (assoc-ref outputs "out")
3357 "/lib/ruby/vendor_ruby/gems/git-"
3358 ,version "/lib/git/config.rb")))
3359 (substitute* (list config)
3361 (string-append "'" git "'")))
3365 (synopsis "Ruby wrappers for Git")
3366 (description "Ruby/Git is a Ruby library that can be used to create, read
3367 and manipulate Git repositories by wrapping system calls to the git binary.")
3368 (home-page "https://github.com/schacon/ruby-git")
3369 (license license:expat)))
3371 (define-public ruby-slop
3377 (uri (rubygems-uri "slop" version))
3380 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3381 (build-system ruby-build-system)
3383 `(("ruby-minitest" ,ruby-minitest)))
3384 (synopsis "Ruby command line option parser")
3385 (description "Slop provides a Ruby domain specific language for gathering
3386 options and parsing command line flags.")
3387 (home-page "https://github.com/leejarvis/slop")
3388 (license license:expat)))
3390 (define-public ruby-slop-3
3391 (package (inherit ruby-slop)
3395 (uri (rubygems-uri "slop" version))
3398 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3400 (define-public ruby-multi-xml
3402 (name "ruby-multi-xml")
3407 (uri (rubygems-uri "multi_xml" version))
3410 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3411 (build-system ruby-build-system)
3413 '(#:tests? #f)) ; No included tests
3414 (synopsis "Swappable XML backends for Ruby")
3416 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3417 Nokogiri, Ox, or REXML.")
3418 (home-page "https://github.com/sferik/multi_xml")
3419 (license license:expat)))
3421 (define-public ruby-multipart-post
3423 (name "ruby-multipart-post")
3427 (uri (rubygems-uri "multipart-post" version))
3430 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3431 (build-system ruby-build-system)
3433 `(("bundler" ,bundler)))
3434 (synopsis "Multipart POST library for Ruby")
3435 (description "Multipart-Post Adds multipart POST capability to Ruby's
3437 (home-page "https://github.com/nicksieger/multipart-post")
3438 (license license:expat)))
3440 (define-public ruby-multi-json
3442 (name "ruby-multi-json")
3447 ;; Tests are not distributed at rubygems.org so download from GitHub
3449 (uri (string-append "https://github.com/intridea/multi_json/archive/v"
3451 (file-name (string-append name "-" version ".tar.gz"))
3454 "1s64xqvrnrxmb59v6b2kchnisawg5ai9ky1w60dy6z6ws9la1xv4"))))
3455 (build-system ruby-build-system)
3458 (modify-phases %standard-phases
3459 (add-after 'unpack 'remove-signing-key-reference
3461 (substitute* "multi_json.gemspec"
3462 ((".*spec.signing_key.*") ""))
3465 `(("bundler" ,bundler)
3466 ("ruby-rspec" ,ruby-rspec)
3467 ("ruby-yard" ,ruby-yard)
3468 ("ruby-json-pure" ,ruby-json-pure)
3469 ("ruby-oj" ,ruby-oj)
3470 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3471 (synopsis "Common interface to multiple JSON libraries for Ruby")
3473 "This package provides a common interface to multiple JSON libraries,
3474 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3475 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3476 (home-page "https://github.com/intridea/multi_json")
3477 (license license:expat)))
3479 (define-public ruby-multi-test
3481 (name "ruby-multi-test")
3486 (uri (rubygems-uri "multi_test" version))
3489 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3490 (build-system ruby-build-system)
3492 '(;; Tests require different sets of specific gem versions to be available,
3493 ;; and there is no gemfile that specifies the newest versions of
3494 ;; dependencies to be tested.
3497 "Interface to testing libraries loaded into a running Ruby process")
3499 "@code{multi_test} provides a uniform interface onto whatever testing
3500 libraries that have been loaded into a running Ruby process to help control
3501 rogue test/unit/autorun requires.")
3502 (home-page "https://github.com/cucumber/multi_test")
3503 (license license:expat)))
3505 (define-public ruby-arel
3511 (uri (rubygems-uri "arel" version))
3514 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3515 (build-system ruby-build-system)
3516 (arguments '(#:tests? #f)) ; no tests
3517 (home-page "https://github.com/rails/arel")
3518 (synopsis "SQL AST manager for Ruby")
3519 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3520 Ruby. It simplifies the generation of complex SQL queries and adapts to
3521 various relational database implementations.")
3522 (license license:expat)))
3524 (define-public ruby-marcel
3526 (name "ruby-marcel")
3531 (uri (rubygems-uri "marcel" version))
3534 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3535 (build-system ruby-build-system)
3537 '(;; No included tests
3540 `(("ruby-mimemagic" ,ruby-mimemagic)))
3541 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3543 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3544 Extensions} type detection using magic numbers, filenames, and extensions")
3545 (home-page "https://github.com/basecamp/marcel")
3546 (license license:expat)))
3548 (define-public ruby-minitar
3549 ;; We package from the GitHub source to fix the security issue reported at
3550 ;; https://github.com/halostatue/minitar/issues/16.
3551 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3553 (name "ruby-minitar")
3554 (version (string-append "0.5.4-1." (string-take commit 8)))
3559 (url "https://github.com/halostatue/minitar.git")
3561 (file-name (string-append name "-" version "-checkout"))
3564 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3565 (build-system ruby-build-system)
3567 '(#:tests? #f)) ; missing a gemspec
3568 (synopsis "Ruby library and utility for handling tar archives")
3570 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3571 that provides the ability to deal with POSIX tar archive files.")
3572 (home-page "http://www.github.com/atoulme/minitar")
3573 (license (list license:gpl2+ license:ruby)))))
3575 (define-public ruby-mini-portile
3577 (name "ruby-mini-portile")
3582 (uri (rubygems-uri "mini_portile" version))
3585 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3586 (build-system ruby-build-system)
3588 '(#:tests? #f)) ; tests require network access
3589 (synopsis "Ports system for Ruby developers")
3590 (description "Mini-portile is a port/recipe system for Ruby developers.
3591 It provides a standard way to compile against specific versions of libraries
3592 to reproduce user environments.")
3593 (home-page "https://github.com/flavorjones/mini_portile")
3594 (license license:expat)))
3596 (define-public ruby-mini-portile-2
3597 (package (inherit ruby-mini-portile)
3601 (uri (rubygems-uri "mini_portile2" version))
3604 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
3606 (define-public ruby-nokogiri
3608 (name "ruby-nokogiri")
3612 (uri (rubygems-uri "nokogiri" version))
3615 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
3616 (build-system ruby-build-system)
3618 ;; Tests fail because Nokogiri can only test with an installed extension,
3619 ;; and also because many test framework dependencies are missing.
3621 #:gem-flags (list "--" "--use-system-libraries"
3622 (string-append "--with-xml2-include="
3623 (assoc-ref %build-inputs "libxml2")
3624 "/include/libxml2" ))
3626 (modify-phases %standard-phases
3627 (add-before 'build 'patch-extconf
3628 ;; 'pkg-config' is not included in the GEM_PATH during
3629 ;; installation, so we add it directly to the load path.
3630 (lambda* (#:key inputs #:allow-other-keys)
3631 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3632 (substitute* "ext/nokogiri/extconf.rb"
3633 (("gem 'pkg-config'.*")
3634 (string-append "$:.unshift '"
3635 pkg-config "/lib/ruby/vendor_ruby"
3637 ,(package-version ruby-pkg-config)
3641 `(("ruby-hoe" ,ruby-hoe)))
3644 ("libxml2" ,libxml2)
3645 ("libxslt" ,libxslt)))
3647 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3648 ("ruby-pkg-config" ,ruby-pkg-config)))
3649 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3650 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3651 both CSS3 selector and XPath 1.0 support.")
3652 (home-page "http://www.nokogiri.org/")
3653 (license license:expat)))
3655 (define-public ruby-method-source
3657 (name "ruby-method-source")
3662 (uri (rubygems-uri "method_source" version))
3665 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3666 (build-system ruby-build-system)
3668 `(#:test-target "spec"))
3670 `(("ruby-rspec" ,ruby-rspec)
3672 (synopsis "Retrieve the source code for Ruby methods")
3673 (description "Method_source retrieves the source code for Ruby methods.
3674 Additionally, it can extract source code from Proc and Lambda objects or just
3676 (home-page "https://github.com/banister/method_source")
3677 (license license:expat)))
3679 (define-public ruby-coderay
3681 (name "ruby-coderay")
3686 (uri (rubygems-uri "coderay" version))
3689 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3690 (build-system ruby-build-system)
3692 '(#:tests? #f)) ; missing test files
3693 (synopsis "Ruby syntax highlighting library")
3694 (description "Coderay is a Ruby library that provides syntax highlighting
3695 for select languages.")
3696 (home-page "http://coderay.rubychan.de")
3697 (license license:expat)))
3699 (define-public ruby-parser
3701 (name "ruby-parser")
3706 (uri (rubygems-uri "parser" version))
3709 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3710 (build-system ruby-build-system)
3712 `(("bundler" ,bundler)
3713 ("ruby-cliver" ,ruby-cliver)
3714 ("ruby-simplecov" ,ruby-simplecov)
3715 ("ruby-racc" ,ruby-racc)))
3717 `(("ragel" ,ragel)))
3719 `(("ruby-ast" ,ruby-ast)))
3720 (synopsis "Ruby parser written in pure Ruby")
3722 "This package provides a Ruby parser written in pure Ruby.")
3723 (home-page "https://github.com/whitequark/parser")
3724 (license license:expat)))
3726 (define-public ruby-prawn-manual-builder
3728 (name "ruby-prawn-manual-builder")
3733 (uri (rubygems-uri "prawn-manual_builder" version))
3736 "0wbjnkqp55p5wmz85ldypcray223glckd209hmdxhnzk8s5pb3za"))))
3737 (build-system ruby-build-system)
3739 '(;; No included tests
3742 (modify-phases %standard-phases
3743 (add-after 'extract-gemspec 'patch-gemspec
3745 (substitute* ".gemspec"
3746 ;; Loosen the requirement for pdf-inspector
3747 (("~> 1\\.0\\.7") ">= 0")))))))
3749 `(("ruby-coderay" ,ruby-coderay)))
3750 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3752 "This package provides a tool for writing manuals for Prawn and Prawn
3754 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3756 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3760 (define-public ruby-progress_bar
3762 (name "ruby-progress_bar")
3767 (uri (rubygems-uri "progress_bar" version))
3770 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3771 (build-system ruby-build-system)
3773 '(#:test-target "spec"))
3775 `(("ruby-highline" ,ruby-highline)
3776 ("ruby-options" ,ruby-options)))
3778 `(("bundler" ,bundler)
3779 ("ruby-rspec" ,ruby-rspec)
3780 ("ruby-timecop" ,ruby-timecop)))
3782 "Ruby library for displaying progress bars")
3784 "ProgressBar is a simple library for displaying progress bars. The
3785 maximum value is configurable, and additional information can be displayed
3786 like the percentage completion, estimated time remaining, elapsed time and
3788 (home-page "https://github.com/paul/progress_bar")
3789 (license license:wtfpl2)))
3791 (define-public ruby-progressbar
3793 (name "ruby-progressbar")
3798 (uri (rubygems-uri "ruby-progressbar" version))
3801 "1cv2ym3rl09svw8940ny67bav7b2db4ms39i4raaqzkf59jmhglk"))))
3802 (build-system ruby-build-system)
3804 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3806 (synopsis "Text progress bar library for Ruby")
3808 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3809 The output can be customized with a formatting system.")
3810 (home-page "https://github.com/jfelchner/ruby-progressbar")
3811 (license license:expat)))
3813 (define-public ruby-pry
3820 (uri (rubygems-uri "pry" version))
3823 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3824 (build-system ruby-build-system)
3826 '(#:tests? #f)) ; no tests
3828 `(("ruby-coderay" ,ruby-coderay)
3829 ("ruby-method-source" ,ruby-method-source)))
3830 (synopsis "Ruby REPL")
3831 (description "Pry is an IRB alternative and runtime developer console for
3832 Ruby. It features syntax highlighting, a plugin architecture, runtime
3833 invocation, and source and documentation browsing.")
3834 (home-page "https://pryrepl.org")
3835 (license license:expat)))
3837 (define-public ruby-guard
3843 ;; The gem does not include a Rakefile, nor does it contain a
3844 ;; gemspec file, nor does it come with the tests. This is why
3845 ;; we fetch the tarball from Github.
3846 (uri (string-append "https://github.com/guard/guard/archive/v"
3848 (file-name (string-append name "-" version ".tar.gz"))
3851 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
3852 (build-system ruby-build-system)
3854 `(#:tests? #f ; tests require cucumber
3856 (modify-phases %standard-phases
3857 (add-after 'unpack 'remove-git-ls-files
3858 (lambda* (#:key outputs #:allow-other-keys)
3859 (substitute* "guard.gemspec"
3860 (("git ls-files -z") "find . -type f -print0"))
3864 (invoke "gem" "build" "guard.gemspec"))))))
3866 `(("ruby-formatador" ,ruby-formatador)
3867 ("ruby-listen" ,ruby-listen)
3868 ("ruby-lumberjack" ,ruby-lumberjack)
3869 ("ruby-nenv" ,ruby-nenv)
3870 ("ruby-notiffany" ,ruby-notiffany)
3871 ("ruby-pry" ,ruby-pry)
3872 ("ruby-shellany" ,ruby-shellany)
3873 ("ruby-thor" ,ruby-thor)))
3875 `(("bundler" ,bundler)
3876 ("ruby-rspec" ,ruby-rspec)))
3877 (synopsis "Tool to handle events on file system modifications")
3879 "Guard is a command line tool to easily handle events on file system
3880 modifications. Guard automates various tasks by running custom rules whenever
3881 file or directories are modified.")
3882 (home-page "http://guardgem.org/")
3883 (license license:expat)))
3885 (define-public ruby-tilt
3892 (uri (rubygems-uri "tilt" version))
3895 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
3896 (build-system ruby-build-system)
3899 (modify-phases %standard-phases
3900 (add-after 'unpack 'remove-some-dependencies
3902 (substitute* "Gemfile"
3903 ;; TODO ronn is used for generating the manual
3904 (("gem 'ronn'.*") "\n")
3905 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
3906 ;; pass it in as a native-input
3907 (("gem 'haml'.*") "\n")
3908 ;; TODO Not all of these gems are packaged for Guix yet:
3909 ;; less, coffee-script, livescript, babel-transpiler,
3911 (("if can_execjs") "if false")
3912 ;; Disable the secondary group to reduce the number of
3913 ;; dependencies. None of the normal approaches work, so patch
3914 ;; the Gemfile instead.
3915 (("group :secondary") "[].each"))
3918 `(("bundler" ,bundler)
3919 ("ruby-yard" ,ruby-yard)
3920 ("ruby-builder" ,ruby-builder)
3921 ("ruby-erubis" ,ruby-erubis)
3922 ("ruby-markaby" ,ruby-markaby)
3923 ("ruby-sassc" ,ruby-sassc)))
3924 (synopsis "Generic interface to multiple Ruby template engines")
3926 "Tilt is a thin interface over a number of different Ruby template
3927 engines in an attempt to make their usage as generic as possible.")
3928 (home-page "https://github.com/rtomayko/tilt/")
3929 (license license:expat)))
3931 (define-public ruby-thread-safe
3933 (name "ruby-thread-safe")
3938 (uri (rubygems-uri "thread_safe" version))
3941 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
3942 (build-system ruby-build-system)
3944 '(#:tests? #f)) ; needs simplecov, among others
3945 (synopsis "Thread-safe utilities for Ruby")
3946 (description "The thread_safe library provides thread-safe collections and
3947 utilities for Ruby.")
3948 (home-page "https://github.com/ruby-concurrency/thread_safe")
3949 (license license:asl2.0)))
3951 (define-public ruby-tzinfo
3953 (name "ruby-tzinfo")
3958 (uri (rubygems-uri "tzinfo" version))
3961 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
3962 (build-system ruby-build-system)
3964 `(("ruby-thread-safe" ,ruby-thread-safe)))
3965 (synopsis "Time zone library for Ruby")
3966 (description "TZInfo is a Ruby library that provides daylight savings
3967 aware transformations between times in different time zones.")
3968 (home-page "https://tzinfo.github.io")
3969 (license license:expat)))
3971 (define-public ruby-tzinfo-data
3973 (name "ruby-tzinfo-data")
3974 (version "1.2017.3")
3978 ;; Download from GitHub because the rubygems version does not contain
3979 ;; Rakefile or tests.
3981 "https://github.com/tzinfo/tzinfo-data/archive/v"
3984 (file-name (string-append name "-" version ".tar.gz"))
3987 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
3988 ;; Remove the known test failure.
3989 ;; https://github.com/tzinfo/tzinfo-data/issues/10
3990 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
3991 (patches (search-patches
3992 "ruby-tzinfo-data-ignore-broken-test.patch"))))
3993 (build-system ruby-build-system)
3995 `(("ruby-tzinfo" ,ruby-tzinfo)))
3996 (synopsis "Data from the IANA Time Zone database")
3998 "This library provides @code{TZInfo::Data}, which contains data from the
3999 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4000 (home-page "https://tzinfo.github.io")
4001 (license license:expat)))
4003 (define-public ruby-rb-inotify
4005 (name "ruby-rb-inotify")
4010 (uri (rubygems-uri "rb-inotify" version))
4013 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4014 (build-system ruby-build-system)
4016 '(#:tests? #f ; there are no tests
4018 (modify-phases %standard-phases
4019 ;; Building the gemspec with rake is not working here since it is
4020 ;; generated with Jeweler. It is also unnecessary because the
4021 ;; existing gemspec does not use any development tools to generate a
4025 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4027 `(("ruby-ffi" ,ruby-ffi)))
4029 `(("ruby-yard" ,ruby-yard)))
4030 (synopsis "Ruby wrapper for Linux's inotify")
4031 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4032 kernel subsystem for monitoring changes to files and directories.")
4033 (home-page "https://github.com/nex3/rb-inotify")
4034 (license license:expat)))
4036 (define-public ruby-pry-editline
4038 (name "ruby-pry-editline")
4042 (uri (rubygems-uri "pry-editline" version))
4045 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4046 (build-system ruby-build-system)
4047 (arguments `(#:tests? #f)) ; no tests included
4049 `(("bundler" ,bundler)))
4050 (synopsis "Open the current REPL line in an editor")
4052 "This gem provides a plugin for the Ruby REPL to enable opening the
4053 current line in an external editor.")
4054 (home-page "https://github.com/tpope/pry-editline")
4055 (license license:expat)))
4057 (define-public ruby-sdoc
4063 (uri (rubygems-uri "sdoc" version))
4066 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4067 (build-system ruby-build-system)
4070 (modify-phases %standard-phases
4071 (add-before 'check 'set-rubylib-and-patch-gemfile
4073 (setenv "RUBYLIB" "lib")
4074 (substitute* "sdoc.gemspec"
4075 (("s.add_runtime_dependency.*") "\n")
4076 (("s.add_dependency.*") "\n"))
4077 (substitute* "Gemfile"
4079 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4082 `(("ruby-json" ,ruby-json)))
4084 `(("bundler" ,bundler)
4085 ("ruby-minitest" ,ruby-minitest)
4086 ("ruby-hoe" ,ruby-hoe)))
4087 (synopsis "Generate searchable RDoc documentation")
4089 "SDoc is an RDoc documentation generator to build searchable HTML
4090 documentation for Ruby code.")
4091 (home-page "https://github.com/voloko/sdoc")
4092 (license license:expat)))
4094 (define-public ruby-tins
4100 (uri (rubygems-uri "tins" version))
4103 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4104 (build-system ruby-build-system)
4105 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4106 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4109 `(#:tests? #f ; there are no tests
4111 (modify-phases %standard-phases
4114 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4116 (substitute* "tins.gemspec"
4117 (("\"lib/spruz\", ") ""))
4118 (invoke "gem" "build" "tins.gemspec"))))))
4119 (synopsis "Assorted tools for Ruby")
4120 (description "Tins is a Ruby library providing assorted tools.")
4121 (home-page "https://github.com/flori/tins")
4122 (license license:expat)))
4124 (define-public ruby-gem-hadar
4126 (name "ruby-gem-hadar")
4130 (uri (rubygems-uri "gem_hadar" version))
4133 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4134 (build-system ruby-build-system)
4135 ;; This gem needs itself at development time. We disable rebuilding of the
4136 ;; gemspec to avoid this loop.
4138 `(#:tests? #f ; there are no tests
4140 (modify-phases %standard-phases
4143 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4146 ("ruby-tins" ,ruby-tins)
4147 ("ruby-yard" ,ruby-yard)))
4148 (synopsis "Library for the development of Ruby gems")
4150 "This library contains some useful functionality to support the
4151 development of Ruby gems.")
4152 (home-page "https://github.com/flori/gem_hadar")
4153 (license license:expat)))
4155 (define-public ruby-minitest-tu-shim
4157 (name "ruby-minitest-tu-shim")
4161 (uri (rubygems-uri "minitest_tu_shim" version))
4164 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4165 (build-system ruby-build-system)
4168 (modify-phases %standard-phases
4169 (add-after 'unpack 'fix-test-include-path
4170 (lambda* (#:key inputs #:allow-other-keys)
4171 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4172 (substitute* "Rakefile"
4173 (("Hoe\\.add_include_dirs .*")
4174 (string-append "Hoe.add_include_dirs \""
4175 minitest "/lib/ruby/vendor_ruby"
4177 ,(package-version ruby-minitest-4)
4180 (add-before 'check 'fix-test-assumptions
4182 ;; The test output includes the file name, so a couple of tests
4183 ;; fail. Changing the regular expressions slightly fixes this
4185 (substitute* "test/test_mini_test.rb"
4186 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4187 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4188 (("gsub\\(/.*, 'FILE:LINE'\\)")
4189 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4192 `(("ruby-minitest-4" ,ruby-minitest-4)))
4194 `(("ruby-hoe" ,ruby-hoe)))
4195 (synopsis "Adapter library between minitest and test/unit")
4197 "This library bridges the gap between the small and fast minitest and
4198 Ruby's large and slower test/unit.")
4199 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4200 (license license:expat)))
4202 (define-public ruby-term-ansicolor
4204 (name "ruby-term-ansicolor")
4208 (uri (rubygems-uri "term-ansicolor" version))
4211 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4212 (build-system ruby-build-system)
4213 ;; Rebuilding the gemspec seems to require git, even though this is not a
4214 ;; git repository, so we just build the gem from the existing gemspec.
4217 (modify-phases %standard-phases
4218 (add-after 'unpack 'fix-test
4220 (substitute* "tests/hsl_triple_test.rb"
4225 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4227 `(("ruby-tins" ,ruby-tins)))
4229 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4230 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4231 (synopsis "Ruby library to control the attributes of terminal output")
4233 "This Ruby library uses ANSI escape sequences to control the attributes
4234 of terminal output.")
4235 (home-page "https://flori.github.io/term-ansicolor/")
4236 ;; There is no mention of the "or later" clause.
4237 (license license:gpl2)))
4239 (define-public ruby-terraform
4241 (name "ruby-terraform")
4246 (uri (rubygems-uri "ruby-terraform" version))
4249 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4250 (build-system ruby-build-system)
4252 '(#:tests? #f)) ; No included tests
4254 `(("ruby-lino" ,ruby-lino)))
4255 (synopsis "Ruby wrapper around the Terraform command line interface")
4257 "This package provides a Ruby wrapper around the Terraform command line
4258 interface so that Terraform can be more easily invoked from Ruby code.")
4259 (home-page "https://github.com/infrablocks/ruby_terraform")
4260 (license license:expat)))
4262 (define-public ruby-pstree
4264 (name "ruby-pstree")
4268 (uri (rubygems-uri "pstree" version))
4271 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4272 (build-system ruby-build-system)
4274 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4275 ("bundler" ,bundler)))
4276 (synopsis "Create a process tree data structure")
4278 "This library uses the output of the @code{ps} command to create a
4279 process tree data structure for the current host.")
4280 (home-page "https://github.com/flori/pstree")
4281 ;; There is no mention of the "or later" clause.
4282 (license license:gpl2)))
4284 (define-public ruby-utils
4290 (uri (rubygems-uri "utils" version))
4293 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4294 (build-system ruby-build-system)
4296 `(("ruby-tins" ,ruby-tins)
4297 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4298 ("ruby-pstree" ,ruby-pstree)
4299 ("ruby-pry-editline" ,ruby-pry-editline)))
4301 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4302 ("bundler" ,bundler)))
4303 (synopsis "Command line tools for working with Ruby")
4305 "This package provides assorted command line tools that may be useful
4306 when working with Ruby code.")
4307 (home-page "https://github.com/flori/utils")
4308 ;; There is no mention of the "or later" clause.
4309 (license license:gpl2)))
4311 (define-public ruby-jaro-winkler
4313 (name "ruby-jaro-winkler")
4318 (uri (rubygems-uri "jaro_winkler" version))
4321 "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"))))
4322 (build-system ruby-build-system)
4324 '(;; No included tests
4326 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4328 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4329 algorithm. It is written as a C extension and will fallback to a pure Ruby
4330 implementation on platforms where this is unsupported.")
4331 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4332 (license license:expat)))
4334 (define-public ruby-json
4341 (uri (rubygems-uri "json" version))
4344 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4345 (build-system ruby-build-system)
4346 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4347 (synopsis "JSON library for Ruby")
4348 (description "This Ruby library provides a JSON implementation written as
4349 a native C extension.")
4350 (home-page "http://json-jruby.rubyforge.org/")
4351 (license (list license:ruby license:gpl2)))) ; GPL2 only
4353 (define-public ruby-json-pure
4355 (name "ruby-json-pure")
4359 (uri (rubygems-uri "json_pure" version))
4362 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
4363 (build-system ruby-build-system)
4366 (modify-phases %standard-phases
4367 (add-after 'unpack 'fix-rakefile
4369 (substitute* "Rakefile"
4370 ;; Since this is not a git repository, do not call 'git'.
4371 (("`git ls-files`") "`find . -type f |sort`")
4372 ;; Loosen dependency constraint.
4373 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4375 (add-after 'replace-git-ls-files 'regenerate-gemspec
4377 ;; Regenerate gemspec so loosened dependency constraints are
4379 (invoke "rake" "gemspec")))
4380 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4382 ;; This gemspec doesn't look to be generated by the above
4383 ;; command, so patch it separately.
4384 (substitute* "json-java.gemspec"
4385 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4386 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4389 `(("bundler" ,bundler)
4391 ("ruby-simplecov" ,ruby-simplecov)
4392 ("ruby-test-unit" ,ruby-test-unit)))
4393 (synopsis "JSON implementation in pure Ruby")
4395 "This package provides a JSON implementation written in pure Ruby.")
4396 (home-page "https://flori.github.com/json")
4397 (license license:ruby)))
4399 (define-public ruby-jwt
4406 (uri (rubygems-uri "jwt" version))
4409 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4410 (build-system ruby-build-system)
4412 '(#:test-target "test"
4414 (modify-phases %standard-phases
4415 (add-after 'unpack 'remove-unnecessary-dependencies
4417 (substitute* "spec/spec_helper.rb"
4418 (("require 'simplecov.*") "\n")
4419 ;; Use [].each to disable running the SimpleCov configuration
4421 (("SimpleCov\\.configure") "[].each")
4422 (("require 'codeclimate-test-reporter'") "")
4423 (("require 'codacy-coverage'") "")
4424 (("Codacy::Reporter\\.start") ""))
4427 `(("bundler" ,bundler)
4428 ("ruby-rspec" ,ruby-rspec)
4429 ("ruby-rbnacl" ,ruby-rbnacl)))
4430 (synopsis "Ruby implementation of the JSON Web Token standard")
4432 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4433 @acronym{JWT, JSON Web Token} standard.")
4434 (home-page "https://github.com/jwt/ruby-jwt")
4435 (license license:expat)))
4437 ;; Even though this package only provides bindings for a Mac OSX API it is
4438 ;; required by "ruby-listen" at runtime.
4439 (define-public ruby-rb-fsevent
4441 (name "ruby-rb-fsevent")
4445 (uri (rubygems-uri "rb-fsevent" version))
4448 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4449 (build-system ruby-build-system)
4450 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4451 ;; "listen", which needs "rb-fsevent" at runtime.
4452 (arguments `(#:tests? #f))
4453 (synopsis "FSEvents API with signals catching")
4455 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4456 (home-page "https://rubygems.org/gems/rb-fsevent")
4457 (license license:expat)))
4459 (define-public ruby-listen
4461 (name "ruby-listen")
4466 (uri (rubygems-uri "listen" version))
4469 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
4470 (build-system ruby-build-system)
4471 (arguments '(#:tests? #f)) ; no tests
4473 `(("ruby-rb-inotify" ,ruby-rb-inotify)
4474 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
4475 (synopsis "Listen to file modifications")
4476 (description "The Listen gem listens to file modifications and notifies
4477 you about the changes.")
4478 (home-page "https://github.com/guard/listen")
4479 (license license:expat)))
4481 (define-public ruby-listen-3.0
4483 (inherit ruby-listen)
4487 (uri (rubygems-uri "listen" version))
4490 "1l0y7hbyfiwpvk172r28hsdqsifq1ls39hsfmzi1vy4ll0smd14i"))))))
4492 (define-public ruby-loofah
4494 (name "ruby-loofah")
4499 (uri (rubygems-uri "loofah" version))
4502 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4503 (build-system ruby-build-system)
4506 (modify-phases %standard-phases
4507 (add-after 'unpack 'remove-unnecessary-dependencies
4509 ;; concourse is a development tool which is unused, so remove it
4510 ;; so it's not required.
4511 (substitute* "Gemfile"
4512 ((".*\"concourse\".*") "\n"))
4513 (substitute* "Rakefile"
4514 (("require 'concourse'") "")
4515 (("Concourse\\.new.*") "\n"))
4518 `(("ruby-hoe" ,ruby-hoe)
4519 ("ruby-rr" ,ruby-rr)))
4521 `(("ruby-nokogiri" ,ruby-nokogiri)
4522 ("ruby-crass" ,ruby-crass)))
4523 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4525 "Loofah is a general library for manipulating and transforming HTML/XML
4526 documents and fragments. It's built on top of Nokogiri and libxml2.")
4527 (home-page "https://github.com/flavorjones/loofah")
4528 (license license:expat)))
4530 (define-public ruby-activesupport
4532 (name "ruby-activesupport")
4537 (uri (rubygems-uri "activesupport" version))
4540 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4541 (build-system ruby-build-system)
4544 (modify-phases %standard-phases
4547 ;; There are no tests, instead attempt to load the library.
4548 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4550 `(("ruby-concurrent" ,ruby-concurrent)
4551 ("ruby-i18n" ,ruby-i18n)
4552 ("ruby-minitest" ,ruby-minitest)
4553 ("ruby-tzinfo" ,ruby-tzinfo)
4554 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4555 (synopsis "Ruby on Rails utility library")
4556 (description "ActiveSupport is a toolkit of support libraries and Ruby
4557 core extensions extracted from the Rails framework. It includes support for
4558 multibyte strings, internationalization, time zones, and testing.")
4559 (home-page "http://www.rubyonrails.org")
4560 (license license:expat)))
4562 (define-public ruby-crass
4568 (uri (rubygems-uri "crass" version))
4571 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4572 (build-system ruby-build-system)
4574 `(("bundler" ,bundler)
4575 ("ruby-minitest" ,ruby-minitest)))
4576 (synopsis "Pure Ruby CSS parser")
4578 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4579 (home-page "https://github.com/rgrove/crass/")
4580 (license license:expat)))
4582 (define-public ruby-nokogumbo
4583 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4585 (name "ruby-nokogumbo")
4586 (version (string-append "1.4.7-1." (string-take commit 8)))
4588 ;; We use the git reference, because there's no Rakefile in the
4589 ;; published gem and the tarball on Github is outdated.
4592 (url "https://github.com/rubys/nokogumbo.git")
4593 (commit "d56f954d20a")))
4594 (file-name (string-append name "-" version "-checkout"))
4597 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4598 (build-system ruby-build-system)
4600 `(#:modules ((guix build ruby-build-system)
4604 (modify-phases %standard-phases
4605 (add-after 'unpack 'build-gemspec
4607 (substitute* "Rakefile"
4608 ;; Build Makefile even without a copy of gumbo-parser sources
4609 (("'gumbo-parser/src',") "")
4610 ;; We don't bundle gumbo-parser sources
4611 (("'gumbo-parser/src/\\*',") "")
4612 (("'gumbo-parser/visualc/include/\\*',") "")
4613 ;; The definition of SOURCES will be cut in gemspec, and
4614 ;; "FileList" will be undefined.
4615 (("SOURCES \\+ FileList\\[")
4616 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4618 ;; Copy the Rakefile and cut out the gemspec.
4619 (copy-file "Rakefile" ".gemspec")
4620 (with-atomic-file-replacement ".gemspec"
4622 (let loop ((line (read-line in 'concat))
4624 (if (eof-object? line)
4626 (let ((skip-next? (if skipping?
4627 (not (string-prefix? "SPEC =" line))
4628 (string-prefix? "end" line))))
4629 (when (or (not skipping?)
4630 (and skipping? (not skip-next?)))
4631 (format #t "~a" line)
4633 (loop (read-line in 'concat) skip-next?))))))
4636 `(("gumbo-parser" ,gumbo-parser)))
4638 `(("ruby-nokogiri" ,ruby-nokogiri)))
4639 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4641 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4642 access the result as a Nokogiri parsed document.")
4643 (home-page "https://github.com/rubys/nokogumbo/")
4644 (license license:asl2.0))))
4646 (define-public ruby-sanitize
4648 (name "ruby-sanitize")
4652 ;; The gem does not include the Rakefile, so we download the
4653 ;; release tarball from Github.
4654 (uri (string-append "https://github.com/rgrove/"
4655 "sanitize/archive/v" version ".tar.gz"))
4656 (file-name (string-append name "-" version ".tar.gz"))
4659 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4660 (build-system ruby-build-system)
4662 `(("ruby-crass" ,ruby-crass)
4663 ("ruby-nokogiri" ,ruby-nokogiri)
4664 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4666 `(("bundler" ,bundler)
4667 ("ruby-minitest" ,ruby-minitest)
4668 ("ruby-redcarpet" ,ruby-redcarpet)
4669 ("ruby-yard" ,ruby-yard)))
4670 (synopsis "Whitelist-based HTML and CSS sanitizer")
4672 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4673 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4674 unacceptable HTML and/or CSS from a string.")
4675 (home-page "https://github.com/rgrove/sanitize/")
4676 (license license:expat)))
4678 (define-public ruby-oj
4685 ;; Version on rubygems.org does not contain Rakefile, so download from
4687 (uri (string-append "https://github.com/ohler55/oj/archive/v"
4689 (file-name (string-append name "-" version ".tar.gz"))
4692 "1x28ga72jxlnmsd8g8c0fw81vlh54r0qgagw2lxsd3x3la091g2h"))))
4693 (build-system ruby-build-system)
4695 '(#:test-target "test_all"
4697 (modify-phases %standard-phases
4698 (add-before 'check 'disable-bundler
4700 (substitute* "Rakefile"
4701 (("Bundler\\.with_clean_env") "1.times")
4702 (("bundle exec ") "")))))))
4704 `(("bundler" ,bundler)
4705 ("ruby-rspec" ,ruby-rspec)
4706 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4707 (synopsis "JSON parser for Ruby optimized for speed")
4709 "Oj is a JSON parser and generator for Ruby, where the encoding and
4710 decoding of JSON is implemented as a C extension to Ruby.")
4711 (home-page "http://www.ohler.com/oj")
4712 (license (list license:expat ; Ruby code
4713 license:bsd-3)))) ; extension code
4715 (define-public ruby-ox
4722 (uri (rubygems-uri "ox" version))
4725 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4726 (build-system ruby-build-system)
4728 '(#:tests? #f)) ; no tests
4729 (synopsis "Optimized XML library for Ruby")
4731 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4732 written as a native C extension. It was designed to be an alternative to
4733 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4734 alternative to Marshal for Object serialization. ")
4735 (home-page "http://www.ohler.com/ox")
4736 (license license:expat)))
4738 (define-public ruby-redcloth
4740 (name "ruby-redcloth")
4744 (uri (rubygems-uri "RedCloth" version))
4747 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4748 (build-system ruby-build-system)
4750 `(#:tests? #f ; no tests
4752 (modify-phases %standard-phases
4753 ;; Redcloth has complicated rake tasks to build various versions for
4754 ;; multiple targets using RVM. We don't want this so we just use the
4755 ;; existing gemspec.
4758 (invoke "gem" "build" "redcloth.gemspec"))))))
4760 `(("bundler" ,bundler)
4761 ("ruby-diff-lcs" ,ruby-diff-lcs)
4762 ("ruby-rspec-2" ,ruby-rspec-2)))
4763 (synopsis "Textile markup language parser for Ruby")
4765 "RedCloth is a Ruby parser for the Textile markup language.")
4766 (home-page "http://redcloth.org")
4767 (license license:expat)))
4769 (define-public ruby-pg
4776 (uri (rubygems-uri "pg" version))
4779 "1pnjw3rspdfjssxyf42jnbsdlgri8ylysimp0s28wxb93k6ff2qb"))))
4780 (build-system ruby-build-system)
4782 '(#:test-target "spec"))
4784 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4785 ("ruby-hoe" ,ruby-hoe)
4786 ("ruby-rspec" ,ruby-rspec)))
4788 `(("postgresql" ,postgresql-9.6)))
4789 (synopsis "Ruby interface to PostgreSQL")
4790 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4791 with PostgreSQL 9.0 and later.")
4792 (home-page "https://bitbucket.org/ged/ruby-pg")
4793 (license license:ruby)))
4795 (define-public ruby-byebug
4797 (name "ruby-byebug")
4802 (uri (rubygems-uri "byebug" version))
4805 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4806 (build-system ruby-build-system)
4808 '(#:tests? #f)) ; no tests
4809 (synopsis "Debugger for Ruby 2")
4810 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4811 TracePoint C API for execution control and the Debug Inspector C API for call
4812 stack navigation. The core component provides support that front-ends can
4813 build on. It provides breakpoint handling and bindings for stack frames among
4814 other things and it comes with a command line interface.")
4815 (home-page "https://github.com/deivid-rodriguez/byebug")
4816 (license license:bsd-2)))
4818 (define-public ruby-netrc
4824 (uri (rubygems-uri "netrc" version))
4827 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4828 (build-system ruby-build-system)
4831 (modify-phases %standard-phases
4833 ;; There is no Rakefile and minitest can only run one file at once,
4834 ;; so we have to iterate over all test files.
4837 (invoke "ruby" "-Itest" file))
4838 (find-files "./test" "test_.*\\.rb")))))))
4840 `(("ruby-minitest" ,ruby-minitest)))
4841 (synopsis "Library to read and update netrc files")
4843 "This library can read and update netrc files, preserving formatting
4844 including comments and whitespace.")
4845 (home-page "https://github.com/geemus/netrc")
4846 (license license:expat)))
4848 (define-public ruby-unf-ext
4850 (name "ruby-unf-ext")
4854 (uri (rubygems-uri "unf_ext" version))
4857 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
4858 (build-system ruby-build-system)
4861 (modify-phases %standard-phases
4862 (add-after 'build 'build-ext
4863 (lambda _ (invoke "rake" "compile:unf_ext"))))))
4865 `(("bundler" ,bundler)
4866 ("ruby-rake-compiler" ,ruby-rake-compiler)
4867 ("ruby-test-unit" ,ruby-test-unit)))
4868 (synopsis "Unicode normalization form support library")
4870 "This package provides unicode normalization form support for Ruby.")
4871 (home-page "https://github.com/knu/ruby-unf_ext")
4872 (license license:expat)))
4874 (define-public ruby-tdiff
4875 ;; Use a newer than released snapshot so that rspec-2 is not required.
4876 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
4879 (version (string-append "0.3.3-1." (string-take commit 8)))
4883 (url "https://github.com/postmodern/tdiff.git")
4885 (file-name (string-append name "-" version "-checkout"))
4888 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
4889 (build-system ruby-build-system)
4891 `(("ruby-rspec" ,ruby-rspec)
4892 ("ruby-yard" ,ruby-yard)
4893 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4894 (synopsis "Calculate the differences between two tree-like structures")
4896 "This library provides functions to calculate the differences between two
4897 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
4898 (home-page "https://github.com/postmodern/tdiff")
4899 (license license:expat))))
4901 (define-public ruby-nokogiri-diff
4902 ;; Use a newer than released snapshot so that rspec-2 is not required.
4903 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
4905 (name "ruby-nokogiri-diff")
4906 (version (string-append "0.2.0-1." (string-take commit 8)))
4910 (url "https://github.com/postmodern/nokogiri-diff.git")
4912 (file-name (string-append name "-" version "-checkout"))
4915 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
4916 (build-system ruby-build-system)
4918 `(("ruby-tdiff" ,ruby-tdiff)
4919 ("ruby-nokogiri" ,ruby-nokogiri)))
4921 `(("ruby-rspec" ,ruby-rspec)
4922 ("ruby-yard" ,ruby-yard)
4923 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4924 (synopsis "Calculate the differences between two XML/HTML documents")
4926 "@code{Nokogiri::Diff} adds the ability to calculate the
4927 differences (added or removed nodes) between two XML/HTML documents.")
4928 (home-page "https://github.com/postmodern/nokogiri-diff")
4929 (license license:expat))))
4931 (define-public ruby-racc
4938 (uri (rubygems-uri "racc" version))
4941 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
4942 (build-system ruby-build-system)
4944 `(("ruby-hoe" ,ruby-hoe)
4945 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4946 (synopsis "LALR(1) parser generator for Ruby")
4948 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
4949 generates Ruby program.")
4950 (home-page "http://i.loveruby.net/en/projects/racc/")
4952 ;; Generally licensed under the LGPL2.1, and some files also
4953 ;; available under the same license as Ruby.
4957 (define-public ruby-rack
4964 ;; Download from GitHub so that the patch can be applied.
4966 "https://github.com/rack/rack/archive/"
4969 (file-name (string-append name "-" version ".tar.gz"))
4972 "0pb3g5ymvbf07xaxcn51dpqv3djlxavckp3qkxsjdxiqznb0d9p1"))
4973 ;; Ignore test which fails inside the build environment but works
4975 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
4976 (build-system ruby-build-system)
4979 (modify-phases %standard-phases
4980 (add-before 'check 'fix-tests
4982 ;; A few of the tests use the length of a file on disk for
4983 ;; Content-Length and Content-Range headers. However, this file
4984 ;; has a shebang in it which an earlier phase patches, growing
4985 ;; the file size from 193 to 239 bytes when the store prefix is
4987 (let ((size-diff (- (string-length (which "ruby"))
4988 (string-length "/usr/bin/env ruby"))))
4989 (substitute* '("test/spec_file.rb")
4991 (number->string (+ 193 size-diff)))
4992 (("bytes(.)22-33" all delimiter)
4993 (string-append "bytes"
4995 (number->string (+ 22 size-diff))
4997 (number->string (+ 33 size-diff))))))
5000 `(("ruby-minitest" ,ruby-minitest)
5001 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5004 `(("ruby-concurrent" ,ruby-concurrent)))
5005 (synopsis "Unified web application interface for Ruby")
5006 (description "Rack provides a minimal, modular and adaptable interface for
5007 developing web applications in Ruby. By wrapping HTTP requests and responses,
5008 it unifies the API for web servers, web frameworks, and software in between
5009 into a single method call.")
5010 (home-page "https://rack.github.io/")
5011 (license license:expat)))
5013 (define-public ruby-rack-test
5015 (name "ruby-rack-test")
5020 (uri (rubygems-uri "rack-test" version))
5023 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5024 (build-system ruby-build-system)
5026 ;; Disable tests because of circular dependencies: requires sinatra,
5027 ;; which requires rack-protection, which requires rack-test. Instead
5028 ;; simply require the library.
5030 (modify-phases %standard-phases
5033 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5035 `(("ruby-rack" ,ruby-rack)))
5036 (synopsis "Testing API for Rack applications")
5038 "Rack::Test is a small, simple testing API for Rack applications. It can
5039 be used on its own or as a reusable starting point for Web frameworks and
5040 testing libraries to build on.")
5041 (home-page "https://github.com/rack-test/rack-test")
5042 (license license:expat)))
5044 (define-public ruby-rack-protection
5046 (name "ruby-rack-protection")
5051 (uri (rubygems-uri "rack-protection" version))
5054 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5055 (build-system ruby-build-system)
5057 '(;; Tests missing from the gem.
5060 `(("ruby-rack" ,ruby-rack)))
5062 `(("bundler" ,bundler)
5063 ("ruby-rspec" ,ruby-rspec-2)
5064 ("ruby-rack-test" ,ruby-rack-test)))
5065 (synopsis "Rack middleware that protects against typical web attacks")
5066 (description "Rack middleware that can be used to protect against typical
5067 web attacks. It can protect all Rack apps, including Rails. For instance, it
5068 protects against cross site request forgery, cross site scripting,
5069 clickjacking, directory traversal, session hijacking and IP spoofing.")
5070 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5071 (license license:expat)))
5073 (define-public ruby-rainbow
5075 (name "ruby-rainbow")
5080 (uri (rubygems-uri "rainbow" version))
5083 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5084 (build-system ruby-build-system)
5087 (modify-phases %standard-phases
5088 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5091 (lambda* (#:key tests? #:allow-other-keys)
5096 `(("bundler" ,bundler)
5097 ("ruby-rspec" ,ruby-rspec)))
5098 (synopsis "Colorize printed text on ANSI terminals")
5100 "@code{rainbow} provides a string presenter object to colorize strings by
5101 wrapping them in ANSI escape codes.")
5102 (home-page "https://github.com/sickill/rainbow")
5103 (license license:expat)))
5105 (define-public ruby-rr
5112 (uri (rubygems-uri "rr" version))
5115 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5116 (build-system ruby-build-system)
5118 '(#:tests? #f)) ; test files not included
5120 `(("bundler" ,bundler)
5121 ("ruby-rspec" ,ruby-rspec)))
5122 (synopsis "Ruby test double framework")
5124 "RR is a test double framework that features a rich selection of double
5125 techniques and a terse syntax.")
5126 (home-page "https://rr.github.io/rr/")
5127 (license license:expat)))
5129 (define-public ruby-rest-client
5131 (name "ruby-rest-client")
5136 (uri (rubygems-uri "rest-client" version))
5139 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5140 (build-system ruby-build-system)
5143 (modify-phases %standard-phases
5144 (add-before 'check 'remove-unnecessary-development-dependencies
5146 (substitute* "rest-client.gemspec"
5147 ;; Remove rubocop as it's unused. Rubocop also indirectly
5148 ;; depends on this package through ruby-parser and ruby-ast so
5149 ;; this avoids a dependency loop.
5150 ((".*rubocop.*") "\n")
5151 ;; Remove pry as it's unused, it's a debugging tool
5153 ;; Remove an unnecessarily strict rdoc dependency
5154 ((".*rdoc.*") "\n"))
5156 (add-before 'check 'delete-network-dependent-tests
5158 (delete-file "spec/integration/request_spec.rb")
5159 (delete-file "spec/integration/httpbin_spec.rb")
5162 `(("ruby-http-cookie" ,ruby-http-cookie)
5163 ("ruby-mime-types" ,ruby-mime-types)
5164 ("ruby-netrc" ,ruby-netrc)))
5166 `(("bundler" ,bundler)
5167 ("ruby-webmock", ruby-webmock-2)
5168 ("ruby-rspec", ruby-rspec)))
5169 (synopsis "Simple HTTP and REST client for Ruby")
5171 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5172 inspired by the Sinatra microframework style of specifying actions:
5173 @code{get}, @code{put}, @code{post}, @code{delete}.")
5174 (home-page "https://github.com/rest-client/rest-client")
5175 (license license:expat)))
5177 (define-public ruby-rubocop
5179 (name "ruby-rubocop")
5184 (uri (rubygems-uri "rubocop" version))
5187 "07shi6kncwhkvlh9ci9rgccrjsq4448hbic3yrakh2w65ppynvbj"))))
5188 (build-system ruby-build-system)
5190 '(;; No included tests
5193 `(("ruby-parser" ,ruby-parser)
5194 ("ruby-powerpack" ,ruby-powerpack)
5195 ("ruby-rainbow" ,ruby-rainbow)
5196 ("ruby-progressbar" ,ruby-progressbar)
5197 ("ruby-parallel" ,ruby-parallel)
5198 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5199 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5200 (synopsis "Ruby code style checking tool")
5202 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5203 the community-driven Ruby Style Guide.")
5204 (home-page "https://github.com/rubocop-hq/rubocop")
5205 (license license:expat)))
5207 (define-public ruby-contest
5209 (name "ruby-contest")
5214 (uri (rubygems-uri "contest" version))
5217 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5218 (build-system ruby-build-system)
5219 (synopsis "Write declarative tests using nested contexts")
5221 "Contest allows writing declarative @code{Test::Unit} tests using nested
5222 contexts without performance penalties.")
5223 (home-page "https://github.com/citrusbyte/contest")
5224 (license license:expat)))
5226 (define-public ruby-creole
5228 (name "ruby-creole")
5233 (uri (rubygems-uri "creole" version))
5236 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5237 (build-system ruby-build-system)
5239 `(("ruby-bacon" ,ruby-bacon)))
5240 (synopsis "Creole markup language converter")
5242 "Creole is a lightweight markup language and this library for converting
5243 creole to @code{HTML}.")
5244 (home-page "https://github.com/minad/creole")
5245 (license license:ruby)))
5247 (define-public ruby-docile
5249 (name "ruby-docile")
5254 (uri (rubygems-uri "docile" version))
5257 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5258 (build-system ruby-build-system)
5260 '(#:tests? #f)) ; needs github-markup, among others
5261 (synopsis "Ruby EDSL helper library")
5262 (description "Docile is a Ruby library that provides an interface for
5263 creating embedded domain specific languages (EDSLs) that manipulate existing
5265 (home-page "https://ms-ati.github.io/docile/")
5266 (license license:expat)))
5268 (define-public ruby-gherkin
5270 (name "ruby-gherkin")
5275 (uri (rubygems-uri "gherkin" version))
5278 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5279 (build-system ruby-build-system)
5281 `(("bundler" ,bundler)))
5283 '(#:tests? #f)) ; needs simplecov, among others
5284 (synopsis "Gherkin parser for Ruby")
5285 (description "Gherkin is a parser and compiler for the Gherkin language.
5286 It is intended be used by all Cucumber implementations to parse
5287 @file{.feature} files.")
5288 (home-page "https://github.com/cucumber-attic/gherkin")
5289 (license license:expat)))
5291 (define-public ruby-aruba
5298 (uri (rubygems-uri "aruba" version))
5301 "0zdd81l1lp0x78sxa6kkfqclpj5il3xl70nz05wqv2sfzzhqydxh"))))
5302 (build-system ruby-build-system)
5304 '(#:test-target "spec"
5306 (modify-phases %standard-phases
5307 (add-after 'unpack 'patch
5309 (substitute* "spec/aruba/api_spec.rb"
5310 ;; This resolves some errors in the specs
5312 ;; undefined method `parse' for Time:Class
5313 (("require 'spec_helper'")
5314 "require 'spec_helper'\nrequire 'time'"))
5315 ;; Avoid shebang issues in this spec file
5316 (substitute* "spec/aruba/matchers/command_spec.rb"
5317 (("/usr/bin/env bash")
5320 (add-before 'check 'remove-unnecessary-dependencies
5322 (substitute* "Gemfile"
5323 ((".*byebug.*") "\n")
5327 ((".*kramdown.*") "\n")
5328 ((".*rubocop.*") "\n")
5329 ((".*cucumber-pro.*") "\n")
5330 ((".*cucumber.*") "\n")
5331 ((".*license_finder.*") "\n")
5332 ((".*rake.*") "gem 'rake'\n")
5333 ((".*simplecov.*") "\n")
5334 ((".*relish.*") "\n"))
5335 (substitute* "spec/spec_helper.rb"
5336 ((".*simplecov.*") "")
5337 (("^SimpleCov.*") ""))
5338 (substitute* "aruba.gemspec"
5339 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5340 "spec.add_runtime_dependency 'cucumber'"))
5342 (add-before 'check 'set-home
5343 (lambda _ (setenv "HOME" "/tmp") #t)))))
5345 `(("bundler" ,bundler)
5346 ("ruby-rspec" ,ruby-rspec)
5347 ("ruby-fuubar" ,ruby-fuubar)))
5349 `(("ruby-childprocess" ,ruby-childprocess)
5350 ("ruby-contracts" ,ruby-contracts)
5351 ("ruby-cucumber" ,ruby-cucumber)
5352 ("ruby-ffi" ,ruby-ffi)
5353 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5354 ("ruby-thor" ,ruby-thor)
5355 ("ruby-yard" ,ruby-yard)))
5356 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5358 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5359 command-line applications. It supports applications written in any
5361 (home-page "https://github.com/cucumber/aruba")
5362 (license license:expat)))
5364 ;; A version of ruby-aruba without tests run so that circular dependencies can
5366 (define ruby-aruba-without-tests
5368 (inherit ruby-aruba)
5369 (arguments '(#:tests? #f))
5371 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5372 ,@(alist-delete "ruby-cucumber"
5373 (package-propagated-inputs ruby-aruba))))
5374 (native-inputs '())))
5376 (define-public ruby-cucumber
5378 (name "ruby-cucumber")
5384 (url "https://github.com/cucumber/cucumber-ruby.git")
5385 (commit (string-append "v" version))))
5386 (file-name (git-file-name name version))
5389 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5390 (build-system ruby-build-system)
5392 '(#:test-target "spec"
5394 (modify-phases %standard-phases
5395 ;; Don't run or require rubocop, the code linting tool, as this is a
5397 (add-after 'unpack 'dont-run-rubocop
5399 (substitute* "Rakefile"
5400 ((".*rubocop/rake\\_task.*") "")
5401 ((".*RuboCop.*") ""))
5404 `(("ruby-builder" ,ruby-builder)
5405 ("ruby-cucumber-core" ,ruby-cucumber-core)
5406 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5407 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5408 ("ruby-diff-lcs" ,ruby-diff-lcs)
5409 ("ruby-gherkin" ,ruby-gherkin)
5410 ("ruby-multi-json" ,ruby-multi-json)
5411 ("ruby-multi-test" ,ruby-multi-test)))
5413 `(("bundler" ,bundler)
5414 ;; Use a untested version of aruba, to avoid a circular dependency, as
5415 ;; ruby-aruba depends on ruby-cucumber.
5416 ("ruby-aruba", ruby-aruba-without-tests)
5417 ("ruby-rspec" ,ruby-rspec)
5418 ("ruby-pry" ,ruby-pry)
5419 ("ruby-nokogiri" ,ruby-nokogiri)))
5420 (synopsis "Describe automated tests in plain language")
5422 "Cucumber is a tool for running automated tests written in plain
5423 language. It's designed to support a Behaviour Driven Development (BDD)
5424 software development workflow.")
5425 (home-page "https://cucumber.io/")
5426 (license license:expat)))
5428 (define ruby-cucumber-without-tests
5429 (package (inherit ruby-cucumber)
5435 (define-public ruby-cucumber-core
5437 (name "ruby-cucumber-core")
5438 ;; Stick to major version 3, until version 4 of Cucumber is released.
5443 (uri (rubygems-uri "cucumber-core" version))
5446 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5447 (build-system ruby-build-system)
5449 `(("ruby-backports" ,ruby-backports)
5450 ("ruby-gherkin" ,ruby-gherkin)
5451 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5453 `(("bundler" ,bundler)))
5455 '(#:tests? #f)) ; needs simplecov, among others
5456 (synopsis "Core library for the Cucumber BDD app")
5457 (description "Cucumber is a tool for running automated tests
5458 written in plain language. Because they're written in plain language,
5459 they can be read by anyone on your team. Because they can be read by
5460 anyone, you can use them to help improve communication, collaboration
5461 and trust on your team.")
5462 (home-page "https://cucumber.io/")
5463 (license license:expat)))
5465 (define-public ruby-cucumber-expressions
5467 (name "ruby-cucumber-expressions")
5472 (uri (rubygems-uri "cucumber-expressions" version))
5475 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5476 (build-system ruby-build-system)
5478 '(#:test-target "spec"))
5480 `(("bundler" ,bundler)
5481 ("ruby-rspec" ,ruby-rspec)
5482 ("ruby-simplecov" ,ruby-simplecov)))
5483 (synopsis "Simpler alternative to Regular Expressions")
5484 (description "Cucumber Expressions offer similar functionality to Regular
5485 Expressions, with a syntax that is easier to read and write. Cucumber
5486 Expressions are extensible with parameter types.")
5487 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5488 (license license:expat)))
5490 (define-public ruby-cucumber-wire
5492 (name "ruby-cucumber-wire")
5493 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5494 ;; 3, and Cucumber 4 hasn't been released yet.
5499 (uri (rubygems-uri "cucumber-wire" version))
5502 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5503 (build-system ruby-build-system)
5505 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5506 ;; which would lead to a circular dependency.
5508 #:test-target "default"
5510 (modify-phases %standard-phases
5511 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5513 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5516 `(("bundler" ,bundler)
5517 ("ruby-rspec" ,ruby-rspec)))
5518 (synopsis "Cucumber wire protocol plugin")
5520 "Cucumber's wire protocol allows step definitions to be implemented and
5521 invoked on any platform.")
5522 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5523 (license license:expat)))
5525 (define-public ruby-cucumber-tag-expressions
5527 (name "ruby-cucumber-tag-expressions")
5532 (uri (rubygems-uri "cucumber-tag_expressions" version))
5535 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5536 (build-system ruby-build-system)
5539 (modify-phases %standard-phases
5545 `(("ruby-rspec" ,ruby-rspec)))
5546 (synopsis "Cucumber tag expressions for Ruby")
5548 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5549 boolean expression used by Cucumber.")
5550 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5551 (license license:expat)))
5553 (define-public ruby-bio-logger
5555 (name "ruby-bio-logger")
5560 (uri (rubygems-uri "bio-logger" version))
5563 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5564 (build-system ruby-build-system)
5566 `(#:tests? #f)) ; rake errors, missing shoulda
5568 `(("ruby-log4r" ,ruby-log4r)))
5569 (synopsis "Log4r wrapper for Ruby")
5570 (description "Bio-logger is a wrapper around Log4r adding extra logging
5571 features such as filtering and fine grained logging.")
5572 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5573 (license license:expat)))
5575 (define-public ruby-yajl-ruby
5577 (name "ruby-yajl-ruby")
5582 (uri (rubygems-uri "yajl-ruby" version))
5585 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5586 (build-system ruby-build-system)
5588 '(#:test-target "spec"
5590 (modify-phases %standard-phases
5591 (add-before 'check 'patch-test-to-update-load-path
5593 (substitute* "spec/parsing/large_number_spec.rb"
5594 (("require \"yajl\"")
5595 "$LOAD_PATH << 'lib'; require 'yajl'"))
5598 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5599 ("ruby-rspec" ,ruby-rspec)))
5600 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5602 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5603 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5606 A modified copy of yajl is used, and included in the package.")
5607 (home-page "https://github.com/brianmario/yajl-ruby")
5608 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5609 license:bsd-3)))) ; Included, modified copy of yajl
5611 (define-public ruby-yard
5618 ;; Tests do not pass if we build from the distributed gem.
5619 (uri (string-append "https://github.com/lsegal/yard/archive/v"
5621 (file-name (string-append name "-" version ".tar.gz"))
5624 "0sqpbayy9sb406jh0zqg6qha1xds863qz9531dh6vp58hc00clfq"))))
5625 (build-system ruby-build-system)
5628 (modify-phases %standard-phases
5631 ;; $HOME needs to be set to somewhere writeable for tests to run
5632 (setenv "HOME" "/tmp")
5633 ;; Run tests without using 'rake' to avoid dependencies.
5634 (invoke "rspec"))))))
5636 `(("ruby-rspec" ,ruby-rspec)
5637 ("ruby-rack" ,ruby-rack)))
5638 (synopsis "Documentation generation tool for Ruby")
5640 "YARD is a documentation generation tool for the Ruby programming
5641 language. It enables the user to generate consistent, usable documentation
5642 that can be exported to a number of formats very easily, and also supports
5643 extending for custom Ruby constructs such as custom class level definitions.")
5644 (home-page "https://yardoc.org")
5645 (license license:expat)))
5647 (define-public ruby-clap
5653 (uri (rubygems-uri "clap" version))
5656 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5657 (build-system ruby-build-system)
5658 ;; Clap needs cutest for running tests, but cutest needs clap.
5659 (arguments `(#:tests? #f))
5660 (synopsis "Command line argument parsing for simple applications")
5662 "Clap provides command line argument parsing features. It covers the
5663 simple case of executing code based on the flags or parameters passed.")
5664 (home-page "https://github.com/djanowski/cutest")
5665 (license license:expat)))
5667 (define-public ruby-cutest
5669 (name "ruby-cutest")
5673 (uri (rubygems-uri "cutest" version))
5676 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5677 (build-system ruby-build-system)
5679 `(("ruby-clap" ,ruby-clap)))
5680 (synopsis "Run tests in separate processes")
5682 "Cutest runs tests in separate processes to avoid shared state.")
5683 (home-page "https://github.com/djanowski/cutest")
5684 (license license:expat)))
5686 (define-public ruby-pygmentize
5688 (name "ruby-pygmentize")
5692 (uri (rubygems-uri "pygmentize" version))
5695 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5696 (build-system ruby-build-system)
5699 (modify-phases %standard-phases
5700 (add-after 'unpack 'fix-pygmentize-path
5702 (substitute* "lib/pygmentize.rb"
5703 (("\"/usr/bin/env python.*")
5704 (string-append "\"" (which "pygmentize") "\"\n")))
5706 (add-after 'build 'do-not-use-vendor-directory
5708 ;; Remove bundled pygments sources
5709 ;; FIXME: ruby-build-system does not support snippets.
5710 (delete-file-recursively "vendor")
5711 (substitute* "pygmentize.gemspec"
5712 (("\"vendor/\\*\\*/\\*\",") ""))
5715 `(("pygments" ,python-pygments)))
5717 `(("ruby-cutest" ,ruby-cutest)
5718 ("ruby-nokogiri" ,ruby-nokogiri)))
5719 (synopsis "Thin Ruby wrapper around pygmentize")
5721 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5723 (home-page "https://github.com/djanowski/pygmentize")
5724 (license license:expat)))
5726 (define-public ruby-eventmachine
5728 (name "ruby-eventmachine")
5733 (uri (rubygems-uri "eventmachine" version))
5736 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5737 (build-system ruby-build-system)
5739 '(#:tests? #f)) ; test suite tries to connect to google.com
5741 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5742 (synopsis "Single-threaded network event framework for Ruby")
5744 "EventMachine implements a single-threaded engine for arbitrary network
5745 communications. EventMachine wraps all interactions with sockets, allowing
5746 programs to concentrate on the implementation of network protocols. It can be
5747 used to create both network servers and clients.")
5748 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5749 (home-page "https://github.com/eventmachine/eventmachine")
5750 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5752 (define-public ruby-ruby-engine
5754 (name "ruby-ruby-engine")
5759 (uri (rubygems-uri "ruby_engine" version))
5762 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5763 (build-system ruby-build-system)
5766 (modify-phases %standard-phases
5767 (add-before 'check 'clean-up
5769 (delete-file "Gemfile.lock")
5770 (substitute* "ruby_engine.gemspec"
5771 ;; Remove unnecessary imports that would entail further
5774 ((".*<rubygems-tasks.*") "")
5775 ;; Remove extraneous .gem file
5776 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5777 ;; Soften rake dependency
5778 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5779 "%q<rake>.freeze, [\">= 10.0\"]")
5780 ;; Soften the rspec dependency
5781 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5782 "%q<rspec>.freeze, [\">= 2.4\"]"))
5783 (substitute* "Rakefile"
5784 (("require 'rubygems/tasks'") "")
5785 (("Gem::Tasks.new") ""))
5786 ;; Remove extraneous .gem file that otherwise gets installed.
5787 (delete-file "pkg/ruby_engine-1.0.0.gem")
5790 `(("bundler" ,bundler)
5791 ("ruby-rake" ,ruby-rake)
5792 ("ruby-rspec" ,ruby-rspec)))
5793 (synopsis "Simplifies checking for Ruby implementation")
5795 "@code{ruby_engine} provides an RubyEngine class that can be used to
5796 check which implementation of Ruby is in use. It can provide the interpreter
5797 name and provides query methods such as @{RubyEngine.mri?}.")
5798 (home-page "https://github.com/janlelis/ruby_engine")
5799 (license license:expat)))
5801 (define-public ruby-turn
5808 (uri (rubygems-uri "turn" version))
5811 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
5812 (build-system ruby-build-system)
5815 (modify-phases %standard-phases
5816 ;; Tests fail because turn changes its environment so can no longer
5817 ;; find test/unit. Instead simply test if the executable runs
5821 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
5823 `(("ruby-ansi" ,ruby-ansi)
5824 ("ruby-minitest" ,ruby-minitest-4)))
5825 (synopsis "Alternate set of alternative runners for MiniTest")
5827 "TURN provides a set of alternative runners for MiniTest which are both
5828 colorful and informative. TURN displays each test on a separate line with
5829 failures being displayed immediately instead of at the end of the tests. Note
5830 that TURN is no longer being maintained.")
5831 (home-page "http://rubygems.org/gems/turn")
5832 (license license:expat)))
5834 (define-public ruby-mimemagic
5836 (name "ruby-mimemagic")
5841 (uri (rubygems-uri "mimemagic" version))
5844 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
5845 (build-system ruby-build-system)
5848 (modify-phases %standard-phases
5849 ;; This phase breaks the tests, as it patches some of the test data.
5850 (delete 'patch-source-shebangs))))
5852 `(("ruby-bacon" ,ruby-bacon)))
5853 (synopsis "Ruby library for MIME detection by extension or content")
5855 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
5856 extension or content, using the freedesktop.org.xml shared-mime-info
5858 (home-page "https://github.com/minad/mimemagic")
5859 (license license:expat)))
5861 (define-public ruby-mime-types-data
5863 (name "ruby-mime-types-data")
5864 (version "3.2016.0521")
5868 (uri (rubygems-uri "mime-types-data" version))
5871 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
5872 (build-system ruby-build-system)
5874 `(("ruby-hoe" ,ruby-hoe)))
5875 (synopsis "Registry for information about MIME media type definitions")
5877 "@code{mime-types-data} provides a registry for information about
5878 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
5879 be used with the Ruby mime-types library or other software to determine
5880 defined filename extensions for MIME types, or to use filename extensions to
5881 look up the likely MIME type definitions.")
5882 (home-page "https://github.com/mime-types/mime-types-data/")
5883 (license license:expat)))
5885 (define-public ruby-mime-types
5887 (name "ruby-mime-types")
5892 (uri (rubygems-uri "mime-types" version))
5895 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
5896 (build-system ruby-build-system)
5898 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
5900 `(("ruby-hoe" ,ruby-hoe)
5901 ("ruby-fivemat" ,ruby-fivemat)
5902 ("ruby-minitest-focus" ,ruby-minitest-focus)
5903 ("ruby-minitest-rg" ,ruby-minitest-rg)
5904 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
5905 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
5906 (synopsis "Library and registry for MIME content type definitions")
5907 (description "The mime-types library provides a library and registry for
5908 information about Multipurpose Internet Mail Extensions (MIME) content type
5909 definitions. It can be used to determine defined filename extensions for MIME
5910 types, or to use filename extensions to look up the likely MIME type
5912 (home-page "https://github.com/mime-types/ruby-mime-types")
5913 (license license:expat)))
5915 (define-public ruby-fivemat
5917 (name "ruby-fivemat")
5922 (uri (rubygems-uri "fivemat" version))
5925 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
5926 (build-system ruby-build-system)
5928 `(#:tests? #f)) ; no tests
5929 (synopsis "Each test file given its own line of dots")
5931 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
5932 its own line of dots during testing. It aims to provide test output that is
5933 neither too verbose nor too minimal.")
5934 (home-page "https://github.com/tpope/fivemat")
5935 (license license:expat)))
5937 (define-public ruby-sqlite3
5939 (name "ruby-sqlite3")
5944 (uri (rubygems-uri "sqlite3" version))
5947 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
5948 (build-system ruby-build-system)
5951 (modify-phases %standard-phases
5952 (add-before 'check 'adjust-failing-test
5954 ;; XXX: This test fails with SQLite versions >= 3.21.
5955 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
5956 (substitute* "test/test_integration_resultset.rb"
5957 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
5959 (add-before 'check 'add-gemtest-file
5960 ;; This file exists in the repository but is not distributed.
5961 (lambda _ (invoke "touch" ".gemtest"))))))
5963 `(("sqlite" ,sqlite)))
5965 `(("ruby-hoe" ,ruby-hoe)
5966 ("ruby-rake-compiler" ,ruby-rake-compiler)
5967 ("ruby-mini-portile" ,ruby-mini-portile)))
5968 (synopsis "Interface with SQLite3 databases")
5970 "This module allows Ruby programs to interface with the SQLite3 database
5973 "https://github.com/sparklemotion/sqlite3-ruby")
5974 (license license:bsd-3)))
5976 (define-public ruby-shoulda-context
5978 (name "ruby-shoulda-context")
5983 (uri (rubygems-uri "shoulda-context" version))
5986 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
5987 (build-system ruby-build-system)
5990 (modify-phases %standard-phases
5993 ;; Do not run tests to avoid circular dependence with rails.
5994 ;; Instead just import the library to test.
5995 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
5996 (synopsis "Test::Unit context framework extracted from Shoulda")
5998 "@code{shoulda-context} is the context framework extracted from Shoulda.
5999 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6000 context, setup, and should blocks combine to produce natural test method
6002 (home-page "https://github.com/thoughtbot/shoulda-context")
6003 (license license:expat)))
6005 (define-public ruby-shoulda-matchers
6007 (name "ruby-shoulda-matchers")
6012 (uri (rubygems-uri "shoulda-matchers" version))
6015 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6016 (build-system ruby-build-system)
6019 (modify-phases %standard-phases
6022 ;; Do not run tests to avoid circular dependence with rails. Instead
6023 ;; just import the library to test.
6024 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6026 `(("ruby-activesupport" ,ruby-activesupport)))
6027 (synopsis "Collection of testing matchers extracted from Shoulda")
6029 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6030 test common Rails functionality. These tests would otherwise be much longer,
6031 more complex, and error-prone.")
6032 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6033 (license license:expat)))
6035 (define-public ruby-shoulda-matchers-2
6037 (inherit ruby-shoulda-matchers)
6041 (uri (rubygems-uri "shoulda-matchers" version))
6044 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6046 (define-public ruby-shoulda
6048 (name "ruby-shoulda")
6053 (uri (rubygems-uri "shoulda" version))
6056 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6057 (build-system ruby-build-system)
6060 (modify-phases %standard-phases
6062 ;; Don't run tests to avoid circular dependence with rails. Instead
6063 ;; just import the library to test.
6064 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6066 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6067 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6068 (synopsis "Context framework and matchers for testing")
6070 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6071 @code{shoulda-matchers} providing tools for writing tests.")
6072 (home-page "https://github.com/thoughtbot/shoulda")
6073 (license license:expat)))
6075 (define-public ruby-unf
6082 (uri (rubygems-uri "unf" version))
6085 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6086 (build-system ruby-build-system)
6089 (modify-phases %standard-phases
6090 (add-before 'check 'add-dependency-to-bundler
6092 ;; test-unit is required but not provided by the bundler
6093 ;; environment. This is fixed in the upstream repository but fix
6094 ;; has not been released.
6095 (substitute* "Gemfile"
6096 (("^gemspec") "gem 'test-unit'\ngemspec"))
6099 `(("ruby-unf-ext" ,ruby-unf-ext)))
6101 `(("ruby-shoulda" ,ruby-shoulda)
6102 ("bundler" ,bundler)
6103 ("ruby-test-unit" ,ruby-test-unit)))
6104 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6106 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6107 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6108 @code{java.text.Normalizer} on JRuby.")
6109 (home-page "https://github.com/knu/ruby-unf")
6110 (license license:bsd-2)))
6112 (define-public ruby-warden
6114 (name "ruby-warden")
6119 (uri (rubygems-uri "warden" version))
6122 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6123 (build-system ruby-build-system)
6125 '(#:tests? #f)) ; No included tests
6127 `(("ruby-rack" ,ruby-rack)))
6128 (synopsis "Rack middleware providing authentication")
6130 "Warden is a Rack-based middleware that provides a mechanism for
6131 authentication in Ruby web applications.")
6132 (home-page "https://github.com/wardencommunity/warden")
6133 (license license:expat)))
6135 (define-public ruby-warden-oauth2
6137 (name "ruby-warden-oauth2")
6142 (uri (rubygems-uri "warden-oauth2" version))
6145 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6146 (build-system ruby-build-system)
6148 '(#:test-target "spec"
6150 (modify-phases %standard-phases
6151 (add-after 'unpack 'remove-unnecessary-dependencies
6153 (substitute* "Gemfile"
6154 ;; All of these gems relate to development, and are unnecessary
6155 ;; when running the tests
6156 (("gem 'guard-bundler'") "")
6157 (("gem 'guard'") "")
6158 (("gem 'guard-rspec'") "")
6159 (("gem 'rb-fsevent'") "")
6161 (("gem 'growl'") ""))
6163 ;; The test suite doesn't work with rspec@2, and this is incompatible
6164 ;; with the current version of Rake, so invoke Rspec directly
6166 (lambda* (#:key tests? #:allow-other-keys)
6168 (invoke "bundle" "exec" "rspec"))
6171 `(("ruby-warden" ,ruby-warden)))
6173 `(("bundler" ,bundler)
6174 ("ruby-rspec" ,ruby-rspec-2)
6175 ("ruby-rack-test" ,ruby-rack-test)))
6176 (synopsis "OAuth 2.0 strategies for Warden")
6178 "This library extends Warden to support OAuth 2.0 authorized API
6180 (home-page "https://github.com/opperator/warden-oauth2")
6181 (license license:expat)))
6183 (define-public ruby-webmock-2
6185 (name "ruby-webmock")
6190 (uri (rubygems-uri "webmock" version))
6193 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6194 (build-system ruby-build-system)
6196 `(("bundler" ,bundler)
6197 ("ruby-rspec" ,ruby-rspec)))
6199 `(("ruby-addressable" ,ruby-addressable)
6200 ("ruby-crack" ,ruby-crack)
6201 ("ruby-hashdiff" ,ruby-hashdiff)))
6202 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6204 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6205 requests. This is useful when testing software.")
6206 (home-page "https://github.com/bblimke/webmock")
6207 (license license:expat)))
6209 (define-public ruby-unicode-display-width
6211 (name "ruby-unicode-display-width")
6216 (uri (rubygems-uri "unicode-display_width" version))
6219 "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"))))
6220 (build-system ruby-build-system)
6222 '(;; Test data not included.
6224 (synopsis "Determine the monospace display width of Ruby strings")
6226 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6227 display width of strings in Ruby.")
6228 (home-page "https://github.com/janlelis/unicode-display_width")
6229 (license license:expat)))
6231 ;; There is another gem called 'ruby-version' so we use an underscore in this
6233 (define-public ruby_version
6235 (name "ruby_version")
6240 (uri (rubygems-uri "ruby_version" version))
6243 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6244 (build-system ruby-build-system)
6247 (modify-phases %standard-phases
6248 (add-before 'check 'fix-dependencies
6250 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6251 ;; whatever versions.
6252 (delete-file "Gemfile.lock")
6253 ;; Remove the incldued gem file as it's unnecessary.
6254 (delete-file "pkg/ruby_version-1.0.0.gem")
6255 (substitute* "ruby_version.gemspec"
6256 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6258 ((".*rubygems-tasks.*") "\n")
6259 ;; Accept any version of rake and rspec
6260 (("%q<rake.*") "%q<rake>)\n")
6261 (("%q<rspec.*") "%q<rspec>)\n"))
6262 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6264 (substitute* "Rakefile"
6265 (("^require 'rubygems/tasks'") "")
6266 (("Gem::Tasks.new") ""))
6269 `(("bundler" ,bundler)
6270 ("ruby-rspec" ,ruby-rspec)))
6271 (synopsis "Ruby library to help check the Ruby version")
6273 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6274 checking for the right Ruby version in software.")
6275 (home-page "https://github.com/janlelis/ruby_version")
6276 (license license:expat)))
6278 (define-public ruby-websocket-driver
6280 (name "ruby-websocket-driver")
6285 (uri (rubygems-uri "websocket-driver" version))
6288 "1551k3fs3kkb3ghqfj3n5lps0ikb9pyrdnzmvgfdxy8574n4g1dn"))))
6289 (build-system ruby-build-system)
6291 '(;; No included tests
6294 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6295 (synopsis "WebSocket protocol handler with pluggable I/O")
6297 "@code{websocket-driver} provides a complete implementation of the
6298 WebSocket protocols that can be hooked up to any TCP library")
6299 (home-page "https://github.com/faye/websocket-driver-ruby")
6300 (license license:expat)))
6302 (define-public ruby-websocket-extensions
6304 (name "ruby-websocket-extensions")
6309 (uri (rubygems-uri "websocket-extensions" version))
6312 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6313 (build-system ruby-build-system)
6315 '(;; No included tests
6317 (synopsis "Generic extension manager for WebSocket connections")
6319 "@code{websocket-extensions} provides a container for registering
6320 extension plugins.")
6321 (home-page "https://github.com/faye/websocket-extensions-ruby")
6322 (license license:expat)))
6324 (define-public ruby-domain-name
6326 (name "ruby-domain-name")
6327 (version "0.5.20180417")
6331 (uri (rubygems-uri "domain_name" version))
6334 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6335 (build-system ruby-build-system)
6338 (modify-phases %standard-phases
6339 (add-before 'check 'fix-versions
6341 ;; Fix NameError that appears to already be fixed upstream.
6342 (substitute* "Rakefile"
6343 (("DomainName::VERSION")
6344 "Bundler::GemHelper.gemspec.version"))
6345 ;; Loosen unnecessarily strict test-unit version specification.
6346 (substitute* "domain_name.gemspec"
6347 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6350 `(("ruby-unf" ,ruby-unf)))
6352 `(("ruby-shoulda" ,ruby-shoulda)
6353 ("bundler" ,bundler)
6354 ("ruby-test-unit" ,ruby-test-unit)))
6355 (synopsis "Domain name manipulation library")
6357 "@code{domain_name} is a Domain name manipulation library. It parses a
6358 domain name ready for extracting the registered domain and TLD (Top Level
6359 Domain). It can also be used for cookie domain validation based on the Public
6361 (home-page "https://github.com/knu/ruby-domain_name")
6362 (license license:bsd-2)))
6364 (define-public ruby-http-cookie
6366 (name "ruby-http-cookie")
6371 (uri (rubygems-uri "http-cookie" version))
6374 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6375 (build-system ruby-build-system)
6378 (modify-phases %standard-phases
6379 (add-before 'check 'add-dependency-to-bundler
6382 (substitute* "Rakefile"
6383 (("HTTP::Cookie::VERSION")
6384 "Bundler::GemHelper.gemspec.version"))
6387 `(("ruby-domain-name" ,ruby-domain-name)))
6389 `(("rubysimplecov" ,ruby-simplecov)
6390 ("bundler" ,bundler)
6391 ("ruby-sqlite3" ,ruby-sqlite3)
6392 ("ruby-test-unit" ,ruby-test-unit)))
6393 (synopsis "Handle HTTP Cookies based on RFC 6265")
6395 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6396 RFC 6265. It has been designed with security, standards compliance and
6397 compatibility in mind, to behave just the same as today's major web browsers.
6398 It has built-in support for the legacy @code{cookies.txt} and
6399 @code{cookies.sqlite} formats of Mozilla Firefox.")
6400 (home-page "https://github.com/sparklemotion/http-cookie")
6401 (license license:expat)))
6403 (define-public ruby-httpclient
6405 (name "ruby-httpclient")
6410 (uri (rubygems-uri "httpclient" version))
6413 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6414 (build-system ruby-build-system)
6416 '(;; TODO: Some tests currently fail
6418 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6419 ;; 2 omissions, 0 notifications
6422 ;; 6.49 tests/s, 22.41 assertions/s
6425 (modify-phases %standard-phases
6427 (lambda* (#:key tests? #:allow-other-keys)
6434 `(("ruby-rack" ,ruby-rack)))
6436 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6438 "The @code{httpclient} ruby library provides functionality related to
6439 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6440 Cookie, multithreading and authentication (digest, NTLM) support.
6442 Also provided is a @command{httpclient} command, which can perform HTTP
6443 requests either using arguments or with an interactive prompt.")
6444 (home-page "https://github.com/nahi/httpclient")
6445 (license license:ruby)))
6447 (define-public ruby-ansi
6454 ;; Fetch from GitHub as the gem does not contain testing code.
6455 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
6457 (file-name (string-append name "-" version ".tar.gz"))
6460 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
6461 (build-system ruby-build-system)
6464 (modify-phases %standard-phases
6465 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6466 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6470 (invoke "ruby" "-Ilib" "-r" "ansi")))
6471 (add-before 'validate-runpath 'replace-broken-symlink
6472 (lambda* (#:key outputs #:allow-other-keys)
6473 (let* ((out (assoc-ref outputs "out"))
6474 (file (string-append
6475 out "/lib/ruby/vendor_ruby/gems/ansi-"
6476 ,version "/lib/ansi.yml")))
6477 ;; XXX: This symlink is broken since ruby 2.4.
6478 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6480 (symlink "../.index" file)
6482 (synopsis "ANSI escape code related libraries")
6484 "This package is a collection of ANSI escape code related libraries
6485 enabling ANSI colorization and stylization of console output. Included in the
6486 library are the @code{Code} module, which defines ANSI codes as constants and
6487 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6488 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6489 @code{Terminal} module which provides information about the current output
6491 (home-page "https://rubyworks.github.io/ansi")
6492 (license license:bsd-2)))
6494 (define-public ruby-systemu
6496 (name "ruby-systemu")
6501 (uri (rubygems-uri "systemu" version))
6504 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6505 (build-system ruby-build-system)
6508 (modify-phases %standard-phases
6509 (add-before 'check 'set-version
6511 (setenv "VERSION" ,version)
6513 (synopsis "Capture of stdout/stderr and handling of child processes")
6515 "Systemu can be used on any platform to return status, stdout, and stderr
6516 of any command. Unlike other methods like @code{open3} and @code{popen4}
6517 there is no danger of full pipes or threading issues hanging your process or
6519 (home-page "https://github.com/ahoward/systemu")
6520 (license license:ruby)))
6522 (define-public ruby-bio-commandeer
6524 (name "ruby-bio-commandeer")
6529 (uri (rubygems-uri "bio-commandeer" version))
6532 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6533 (build-system ruby-build-system)
6536 (modify-phases %standard-phases
6538 ;; Run test without calling 'rake' so that jeweler is
6539 ;; not required as an input.
6541 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6543 `(("ruby-bio-logger" ,ruby-bio-logger)
6544 ("ruby-systemu" ,ruby-systemu)))
6546 `(("bundler" ,bundler)
6547 ("ruby-rspec" ,ruby-rspec)))
6548 (synopsis "Simplified running of shell commands from within Ruby")
6550 "Bio-commandeer provides an opinionated method of running shell commands
6551 from within Ruby. The advantage of bio-commandeer over other methods of
6552 running external commands is that when something goes wrong, messages printed
6553 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6554 detail to ease debugging.")
6555 (home-page "https://github.com/wwood/bioruby-commandeer")
6556 (license license:expat)))
6558 (define-public ruby-rubytest
6560 (name "ruby-rubytest")
6565 (uri (rubygems-uri "rubytest" version))
6568 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6569 (build-system ruby-build-system)
6571 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6572 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6573 ;; simply test that the library can be require'd.
6575 (modify-phases %standard-phases
6578 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6580 `(("ruby-ansi" ,ruby-ansi)))
6581 (synopsis "Universal test harness for Ruby")
6583 "Rubytest is a testing meta-framework for Ruby. It can handle any
6584 compliant test framework and can run tests from multiple frameworks in a
6586 (home-page "https://rubyworks.github.io/rubytest")
6587 (license license:bsd-2)))
6589 (define-public ruby-brass
6596 (uri (rubygems-uri "brass" version))
6599 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6600 (build-system ruby-build-system)
6602 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6603 ;; Instead simply test that the library can be require'd.
6605 (modify-phases %standard-phases
6608 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6609 (synopsis "Basic foundational assertions framework")
6611 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6612 foundational assertions framework for other assertion and test frameworks to
6614 (home-page "https://rubyworks.github.io/brass")
6615 (license license:bsd-2)))
6617 (define-public ruby-qed
6624 (uri (rubygems-uri "qed" version))
6627 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6628 (build-system ruby-build-system)
6630 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6631 ;; Instead simply test that the executable runs using --copyright.
6633 (modify-phases %standard-phases
6636 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6638 `(("ruby-ansi" ,ruby-ansi)
6639 ("ruby-brass" ,ruby-brass)))
6640 (synopsis "Test framework utilizing literate programming techniques")
6642 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6643 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6644 Development} (BDD) utilizing Literate Programming techniques. QED sits
6645 somewhere between lower-level testing tools like @code{Test::Unit} and
6646 requirement specifications systems like Cucumber.")
6647 (home-page "https://rubyworks.github.io/qed")
6648 (license license:bsd-2)))
6650 (define-public ruby-que
6653 (version "1.0.0.beta3")
6657 (uri (rubygems-uri "que" version))
6660 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6661 (build-system ruby-build-system)
6663 '(#:tests? #f)) ; No included tests
6664 (synopsis "Job queue using PostgreSQL written in Ruby")
6666 "This package provides a job queue that uses PostgreSQL for storing jobs
6667 and locking between worker processes.")
6668 (home-page "https://github.com/chanks/que")
6669 (license license:expat)))
6671 (define-public ruby-ae
6678 ;; Fetch from github so tests are included.
6680 "https://github.com/rubyworks/ae/archive/"
6682 (file-name (string-append name "-" version ".tar.gz"))
6685 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
6686 (build-system ruby-build-system)
6689 (modify-phases %standard-phases
6691 (lambda _ (invoke "qed")))
6692 (add-before 'validate-runpath 'replace-broken-symlink
6693 (lambda* (#:key outputs #:allow-other-keys)
6694 (let* ((out (assoc-ref outputs "out"))
6695 (file (string-append
6696 out "/lib/ruby/vendor_ruby/gems/ae-"
6697 ,version "/lib/ae.yml")))
6698 ;; XXX: This symlink is broken since ruby 2.4.
6699 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6701 (symlink "../.index" file)
6704 `(("ruby-ansi" ,ruby-ansi)))
6706 `(("ruby-qed" ,ruby-qed)))
6707 (synopsis "Assertions library")
6709 "Assertive Expressive (AE) is an assertions library specifically designed
6710 for reuse by other test frameworks.")
6711 (home-page "https://rubyworks.github.io/ae")
6712 (license license:bsd-2)))
6714 (define-public ruby-lemon
6721 (uri (rubygems-uri "lemon" version))
6724 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6725 (build-system ruby-build-system)
6728 (modify-phases %standard-phases
6729 (replace 'check (lambda _ (invoke "qed"))))))
6731 `(("ruby-ae" ,ruby-ae)
6732 ("ruby-ansi" ,ruby-ansi)
6733 ("ruby-rubytest" ,ruby-rubytest)))
6735 `(("ruby-qed" ,ruby-qed)))
6736 (synopsis "Test framework correlating code structure and test unit")
6738 "Lemon is a unit testing framework that enforces highly formal
6739 case-to-class and unit-to-method test construction. This enforcement can help
6740 focus concern on individual units of behavior.")
6741 (home-page "https://rubyworks.github.io/lemon")
6742 (license license:bsd-2)))
6744 (define-public ruby-rubytest-cli
6746 (name "ruby-rubytest-cli")
6751 (uri (rubygems-uri "rubytest-cli" version))
6754 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6755 (build-system ruby-build-system)
6757 `(#:tests? #f)) ; no tests
6759 `(("ruby-ansi" ,ruby-ansi)
6760 ("ruby-rubytest" ,ruby-rubytest)))
6761 (synopsis "Command-line interface for rubytest")
6763 "Rubytest CLI is a command-line interface for running tests for
6764 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6765 (home-page "https://rubyworks.github.io/rubytest-cli")
6766 (license license:bsd-2)))
6768 (define-public ruby-hashery
6770 (name "ruby-hashery")
6775 (uri (rubygems-uri "hashery" version))
6778 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6779 (build-system ruby-build-system)
6782 (modify-phases %standard-phases
6786 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6788 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6789 ("ruby-qed" ,ruby-qed)
6790 ("ruby-lemon" ,ruby-lemon)))
6791 (synopsis "Hash-like classes with extra features")
6793 "The Hashery is a tight collection of @code{Hash}-like classes.
6794 Included are the auto-sorting @code{Dictionary} class, the efficient
6795 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6796 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6797 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6798 standard @code{Hash} making it possible to subclass and augment to fit any
6799 specific use case.")
6800 (home-page "https://rubyworks.github.io/hashery")
6801 (license license:bsd-2)))
6803 (define-public ruby-rc4
6810 (uri (rubygems-uri "ruby-rc4" version))
6813 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
6814 (build-system ruby-build-system)
6817 (modify-phases %standard-phases
6820 (invoke "rspec" "spec/rc4_spec.rb"))))))
6822 `(("ruby-rspec" ,ruby-rspec-2)))
6823 (synopsis "Implementation of the RC4 algorithm")
6825 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
6826 (home-page "https://github.com/caiges/Ruby-RC4")
6827 (license license:expat)))
6829 (define-public ruby-afm
6836 (uri (rubygems-uri "afm" version))
6839 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
6840 (build-system ruby-build-system)
6842 `(("bundler" ,bundler)))
6843 (synopsis "Read Adobe Font Metrics (afm) files")
6845 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
6846 files and use the data therein.")
6847 (home-page "https://github.com/halfbyte/afm")
6848 (license license:expat)))
6850 (define-public ruby-ascii85
6852 (name "ruby-ascii85")
6857 (uri (rubygems-uri "Ascii85" version))
6860 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
6861 (build-system ruby-build-system)
6863 `(("bundler" ,bundler)))
6864 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
6866 "This library provides methods to encode and decode Ascii85
6867 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
6868 @dfn{Portable Document Format} (PDF) file formats.")
6869 (home-page "https://github.com/datawraith/ascii85gem")
6870 (license license:expat)))
6872 (define-public ruby-ttfunk
6874 (name "ruby-ttfunk")
6879 ;; fetch from github as the gem does not contain testing code
6881 "https://github.com/prawnpdf/ttfunk/archive/"
6883 (file-name (string-append name "-" version ".tar.gz"))
6886 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
6887 (build-system ruby-build-system)
6889 `(#:test-target "spec"
6891 (modify-phases %standard-phases
6892 (add-before 'build 'remove-ssh
6894 ;; remove dependency on an ssh key pair that doesn't exist
6895 (substitute* "ttfunk.gemspec"
6896 (("spec.signing_key.*") ""))
6898 (add-before 'check 'remove-rubocop
6900 ;; remove rubocop as a dependency as not needed for testing
6901 (substitute* "ttfunk.gemspec"
6902 (("spec.add_development_dependency\\('rubocop'.*") ""))
6903 (substitute* "Rakefile"
6904 (("require 'rubocop/rake_task'") "")
6905 (("RuboCop::RakeTask.new") ""))
6908 `(("ruby-rspec" ,ruby-rspec)
6909 ("ruby-yard" ,ruby-yard)
6910 ("bundler" ,bundler)))
6911 (synopsis "Font metrics parser for the Prawn PDF generator")
6913 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
6914 part of the Prawn PDF generator.")
6915 (home-page "https://github.com/prawnpdf/ttfunk")
6916 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
6918 (license (list license:gpl2 license:gpl3 license:ruby))))
6920 (define-public ruby-puma
6927 ;; Fetch from GitHub because distributed gem does not contain tests.
6928 (uri (string-append "https://github.com/puma/puma/archive/v"
6930 (file-name (string-append name "-" version ".tar.gz"))
6933 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
6934 (build-system ruby-build-system)
6936 `(#:tests? #f ; Tests require an out-dated version of minitest.
6938 (modify-phases %standard-phases
6939 (add-before 'build 'fix-gemspec
6941 (substitute* "puma.gemspec"
6942 (("git ls-files") "find * |sort"))
6944 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
6946 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
6947 for Ruby/Rack applications. Puma is intended for use in both development and
6948 production environments. In order to get the best throughput, it is highly
6949 recommended that you use a Ruby implementation with real threads like Rubinius
6951 (home-page "http://puma.io")
6952 (license license:expat)))
6954 (define-public ruby-hoe-git
6956 (name "ruby-hoe-git")
6961 (uri (rubygems-uri "hoe-git" version))
6964 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
6965 (build-system ruby-build-system)
6967 `(("ruby-hoe" ,ruby-hoe)
6969 (synopsis "Hoe plugins for tighter Git integration")
6971 "This package provides a set of Hoe plugins for tighter Git integration.
6972 It provides tasks to automate release tagging and pushing and changelog
6974 (home-page "https://github.com/jbarnette/hoe-git")
6975 (license license:expat)))
6977 (define-public ruby-sequel
6979 (name "ruby-sequel")
6984 (uri (rubygems-uri "sequel" version))
6987 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
6988 (build-system ruby-build-system)
6990 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
6991 (synopsis "Database toolkit for Ruby")
6992 (description "Sequel provides thread safety, connection pooling and a
6993 concise DSL for constructing SQL queries and table schemas. It includes a
6994 comprehensive ORM layer for mapping records to Ruby objects and handling
6995 associated records.")
6996 (home-page "http://sequel.jeremyevans.net")
6997 (license license:expat)))
6999 (define-public ruby-timecop
7001 (name "ruby-timecop")
7006 (uri (rubygems-uri "timecop" version))
7009 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7010 (build-system ruby-build-system)
7013 (modify-phases %standard-phases
7014 (add-before 'check 'set-check-rubylib
7016 ;; Set RUBYLIB so timecop tests finds its own lib.
7017 (setenv "RUBYLIB" "lib")
7020 `(("bundler" ,bundler)
7021 ("ruby-minitest-rg" ,ruby-minitest-rg)
7022 ("ruby-mocha" ,ruby-mocha)
7023 ("ruby-activesupport" ,ruby-activesupport)))
7024 (synopsis "Test mocks for time-dependent functions")
7026 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7027 making it easier to test time-dependent code. It provides a unified method to
7028 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7030 (home-page "https://github.com/travisjeffery/timecop")
7031 (license license:expat)))
7033 (define-public ruby-concurrent
7035 (name "ruby-concurrent")
7040 ;; Download from GitHub because the rubygems version does not contain
7043 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
7046 (file-name (string-append name "-" version ".tar.gz"))
7049 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
7050 ;; Exclude failing test reported at
7051 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
7052 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
7053 "ruby-concurrent-test-arm.patch"))))
7054 (build-system ruby-build-system)
7056 `(#:test-target "spec"
7058 (modify-phases %standard-phases
7059 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7061 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7063 (delete-file "concurrent-ruby-edge.gemspec")
7064 (delete-file "concurrent-ruby-ext.gemspec")
7066 (add-before 'build 'replace-git-ls-files2
7068 (substitute* "support/file_map.rb"
7069 (("git ls-files") "find * |sort"))
7071 (add-before 'check 'rake-compile
7072 ;; Fix the test error described at
7073 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
7074 (lambda _ (invoke "rake" "compile")))
7075 (add-before 'check 'remove-timecop-dependency
7076 ;; Remove timecop-dependent tests as having timecop as a depedency
7077 ;; causes circular depedencies.
7079 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7080 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7083 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7084 ("ruby-rspec" ,ruby-rspec)))
7085 (synopsis "Concurrency tools for Ruby")
7087 "This library provides modern concurrency tools including agents,
7088 futures, promises, thread pools, actors, supervisors, and more. It is
7089 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7091 (home-page "http://www.concurrent-ruby.com")
7092 (license license:expat)))
7094 (define-public ruby-pkg-config
7096 (name "ruby-pkg-config")
7101 (uri (rubygems-uri "pkg-config" version))
7104 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7105 (build-system ruby-build-system)
7107 ;; Tests require extra files not included in the gem.
7109 (synopsis "Detect libraries for compiling Ruby native extensions")
7111 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7112 libraries for compiling Ruby native extensions.")
7113 (home-page "https://github.com/ruby-gnome2/pkg-config")
7114 (license license:lgpl2.0+)))
7116 (define-public ruby-net-http-digest-auth
7118 (name "ruby-net-http-digest-auth")
7123 (uri (rubygems-uri "net-http-digest_auth" version))
7126 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7127 (build-system ruby-build-system)
7129 `(("ruby-hoe" ,ruby-hoe)))
7130 (synopsis "RFC 2617 HTTP digest authentication library")
7132 "This library implements HTTP's digest authentication scheme based on
7133 RFC 2617. This enables the use of the digest authentication scheme instead
7134 of the more insecure basic authentication scheme.")
7135 (home-page "https://github.com/drbrain/net-http-digest_auth")
7136 (license license:expat)))
7138 (define-public ruby-mail
7145 (uri (rubygems-uri "mail" version))
7148 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7149 (build-system ruby-build-system)
7151 `(("ruby-mime-types" ,ruby-mime-types)))
7153 ;; Tests require extra gems not included in the Gemfile.
7154 ;; XXX: Try enabling this for the next version with mini_mime.
7156 (synopsis "Mail library for Ruby")
7158 "Mail is an internet library for Ruby that is designed to handle email
7159 generation, parsing and sending. The purpose of this library is to provide
7160 a single point of access to handle all email functions, including sending
7161 and receiving emails. All network type actions are done through proxy
7162 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7164 Mail has been designed with a very simple object oriented system that
7165 really opens up the email messages you are parsing, if you know what you
7166 are doing, you can fiddle with every last bit of your email directly.")
7167 (home-page "https://github.com/mikel/mail")
7168 (license license:expat)))
7170 (define-public ruby-mathn
7177 (uri (rubygems-uri "mathn" version))
7180 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7181 (build-system ruby-build-system)
7183 `(("bundler" ,bundler)
7184 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7185 (synopsis "Extends math operations for increased precision")
7187 "This gem makes mathematical operations more precise in Ruby and
7188 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7189 @code{mathn} was part of the Ruby standard library.")
7190 (home-page "https://github.com/ruby/mathn")
7191 (license license:bsd-2)))
7193 (define-public ruby-code-statistics
7195 (name "ruby-code-statistics")
7200 (uri (rubygems-uri "code_statistics" version))
7203 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7204 (build-system ruby-build-system)
7206 `(#:tests? #f)) ; Not all test code is included in gem.
7207 (synopsis "Port of the rails 'rake stats' method")
7209 "This gem is a port of the rails 'rake stats' method so it can be made
7210 more robust and work for non rails projects.")
7211 (home-page "http://github.com/danmayer/code_statistics")
7212 (license license:expat)))
7214 (define-public ruby-rubypants
7216 (name "ruby-rubypants")
7220 (uri (rubygems-uri "rubypants" version))
7223 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7224 (build-system ruby-build-system)
7226 '(#:tests? #f)) ; need Codecov
7227 (synopsis "Port of the smart-quotes library SmartyPants")
7229 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7230 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7231 and BBEdit that easily translates plain ASCII punctuation characters into
7232 smart typographic punctuation HTML entities.")
7233 (home-page "https://github.com/jmcnevin/rubypants")
7234 (license license:bsd-2)))
7236 (define-public ruby-org-ruby
7238 (name "ruby-org-ruby")
7242 (uri (rubygems-uri "org-ruby" version))
7245 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7246 (build-system ruby-build-system)
7248 '(#:tests? #f)) ; no rakefile
7250 `(("ruby-rubypants" ,ruby-rubypants)))
7251 (synopsis "Org-mode parser written in Ruby")
7253 "Org-ruby is an org-mode parser written in Ruby. The most significant
7254 thing this library does today is convert org-mode files to HTML or Textile or
7256 (home-page "https://github.com/wallyqs/org-ruby")
7257 (license license:expat)))
7259 (define-public ruby-rake
7266 (uri (rubygems-uri "rake" version))
7269 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7270 (build-system ruby-build-system)
7272 `(("bundler" ,bundler)))
7273 (synopsis "Rake is a Make-like program implemented in Ruby")
7275 "Rake is a Make-like program where tasks and dependencies are specified
7276 in standard Ruby syntax.")
7277 (home-page "https://github.com/ruby/rake")
7278 (license license:expat)))
7280 (define-public ruby-childprocess-0.6
7282 (name "ruby-childprocess")
7287 (uri (rubygems-uri "childprocess" version))
7290 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
7291 (build-system ruby-build-system)
7295 `(("bundler" ,bundler)
7296 ("ruby-rspec" ,ruby-rspec)))
7298 `(("ruby-ffi" ,ruby-ffi)))
7299 (synopsis "Control external programs running in the background, in Ruby")
7300 (description "@code{childprocess} provides a gem to control external
7301 programs running in the background, in Ruby.")
7302 (home-page "http://github.com/enkessler/childprocess")
7303 (license license:expat)))
7305 (define-public ruby-childprocess
7307 (inherit ruby-childprocess-0.6)
7308 (name "ruby-childprocess")
7313 (uri (rubygems-uri "childprocess" version))
7316 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
7318 (define-public ruby-public-suffix
7320 (name "ruby-public-suffix")
7324 (uri (rubygems-uri "public_suffix" version))
7327 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
7328 (build-system ruby-build-system)
7331 (modify-phases %standard-phases
7332 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7333 ;; including it as an input can lead to circular dependencies.
7334 (add-after 'unpack 'remove-rubocop-from-Rakefile
7336 (substitute* "Rakefile"
7337 (("require \"rubocop/rake\\_task\"") "")
7338 (("RuboCop::RakeTask\\.new") ""))
7341 `(("bundler" ,bundler)
7342 ("ruby-yard" ,ruby-yard)
7343 ("ruby-mocha" ,ruby-mocha)
7344 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7345 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7346 (synopsis "Domain name parser")
7347 (description "The gem @code{public_suffix} is a domain name parser,
7348 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7349 is one under which Internet users can (or historically could) directly
7350 register names. Some examples of public suffixes are @code{.com},
7351 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7352 all known public suffixes.")
7353 (license license:expat)))
7355 (define-public ruby-addressable
7357 (name "ruby-addressable")
7361 (uri (rubygems-uri "addressable" version))
7364 "0bcm2hchn897xjhqj9zzsxf3n9xhddymj4lsclz508f4vw3av46l"))))
7365 (build-system ruby-build-system)
7367 '(#:test-target "spec"
7369 (modify-phases %standard-phases
7370 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7372 (substitute* "Gemfile"
7373 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7374 ((".*launchy.*") "")
7375 ((".*rake.*") "gem 'rake'\n")
7376 ((".*redcarpet.*") ""))
7378 (add-before 'check 'delete-network-dependent-test
7380 (delete-file "spec/addressable/net_http_compat_spec.rb")
7383 `(("ruby-rspec" ,ruby-rspec)
7384 ("bundler" ,bundler)
7385 ("ruby-idn-ruby" ,ruby-idn-ruby)
7386 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7387 ("ruby-rspec-its", ruby-rspec-its)
7388 ("ruby-yard" ,ruby-yard)
7389 ("ruby-simplecov" ,ruby-simplecov)))
7391 `(("ruby-public-suffix" ,ruby-public-suffix)))
7392 (home-page "https://github.com/sporkmonger/addressable")
7393 (synopsis "Alternative URI implementation")
7394 (description "Addressable is a replacement for the URI implementation that
7395 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7396 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7397 (license license:asl2.0)))
7399 (define-public ruby-colorator
7401 (name "ruby-colorator")
7405 (uri (rubygems-uri "colorator" version))
7408 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7409 (build-system ruby-build-system)
7413 (home-page "http://octopress.org/colorator/")
7414 (synopsis "Terminal color library")
7415 (description "Colorator is a Ruby gem that helps you colorize your text
7417 (license license:expat)))
7419 (define-public ruby-command-line-reporter
7421 (name "ruby-command-line-reporter")
7425 (uri (rubygems-uri "command_line_reporter" version))
7428 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
7429 (build-system ruby-build-system)
7434 (modify-phases %standard-phases
7435 (add-before 'build 'fix-dependencies
7437 (substitute* ".gemspec"
7438 ;; colored is unmaintained
7439 (("colored") "colorator")
7440 ;; colorator version
7441 (("= 1.2") "= 1.1"))
7443 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7444 (home-page "https://github.com/wbailey/command_line_reporter")
7445 (synopsis "Report production while executing Ruby scripts")
7446 (description "This gem provides a DSL that makes it easy to write reports
7447 of various types in ruby. It eliminates the need to litter your source with
7448 puts statements, instead providing a more readable, expressive interface to
7450 (license license:asl2.0)))
7452 (define-public ruby-command-line-reporter-3
7454 (inherit ruby-command-line-reporter)
7458 (uri (rubygems-uri "command_line_reporter" version))
7461 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7463 (define-public ruby-rdoc
7470 (uri (rubygems-uri "rdoc" version))
7473 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7474 (build-system ruby-build-system)
7476 `(("bundler" ,bundler)))
7477 (home-page "https://ruby.github.io/rdoc/")
7478 (synopsis "HTML and command-line documentation utility")
7479 (description "RDoc produces HTML and command-line documentation for Ruby
7480 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7481 documentation from the command-line.")
7482 (license license:gpl2+)))
7484 (define-public ruby-sass-listen
7486 (name "ruby-sass-listen")
7490 (uri (rubygems-uri "sass-listen" version))
7493 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7494 (build-system ruby-build-system)
7499 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7500 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7501 (home-page "https://github.com/sass/listen")
7502 (synopsis "File modification notification library")
7503 (description "The Listen gem listens to file modifications and notifies you
7504 about the changes.")
7505 (license license:expat)))
7507 (define-public ruby-terminfo
7509 (name "ruby-terminfo")
7514 (uri (rubygems-uri "ruby-terminfo" version))
7517 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7518 (build-system ruby-build-system)
7520 `(#:test-target "test"
7521 ;; Rakefile requires old packages and would need modification to
7522 ;; work with current software.
7525 `(("ncurses" ,ncurses)))
7527 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7528 ("ruby-rdoc" ,ruby-rdoc)))
7529 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7530 (synopsis "Terminfo binding for Ruby")
7531 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7532 (license license:bsd-3)))
7534 (define-public ruby-diffy
7541 (uri (rubygems-uri "diffy" version))
7544 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7545 (build-system ruby-build-system)
7550 `(("ruby-rspec" ,ruby-rspec)))
7551 (home-page "https://github.com/samg/diffy")
7552 (synopsis "Convenient diffing in ruby")
7553 (description "Diffy provides a convenient way to generate a diff from two
7555 (license license:expat)))
7557 (define-public ruby-sass-spec
7559 (name "ruby-sass-spec")
7563 (uri (string-append "https://github.com/sass/sass-spec/archive/v"
7565 (file-name (string-append name "-" version ".tar.gz"))
7568 "0nx8lp7c9qa58w489crgqa3c489xsyarn1a8h4np9mwwfqm1h3rr"))))
7569 (build-system ruby-build-system)
7571 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7572 ("ruby-diffy" ,ruby-diffy)
7573 ("ruby-terminfo" ,ruby-terminfo)))
7575 `(;; This package contains tests for a sass implementation, and the to
7576 ;; avoid any circular dependencies, the tests are not run here
7579 (modify-phases %standard-phases
7580 (add-after 'unpack 'patch-test
7582 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7583 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7584 (("string") "color")))))))
7585 (home-page "https://github.com/sass/sass-spec")
7586 (synopsis "Test suite for Sass")
7587 (description "Sass Spec is a test suite for Sass. Test cases are all in
7588 the @file{spec} directory.")
7589 (license license:expat)))
7591 (define-public ruby-sass
7597 (uri (rubygems-uri "sass" version))
7600 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7601 (build-system ruby-build-system)
7603 `(("ruby-sass-listen" ,ruby-sass-listen)))
7605 `(("ruby-sass-spec" ,ruby-sass-spec)
7606 ("ruby-mathn" ,ruby-mathn)))
7607 (home-page "http://sass-lang.com/")
7608 (synopsis "CSS extension language")
7609 (description "Sass is a CSS extension language. It extends CSS with
7610 features that don't exist yet like variables, nesting, mixins and inheritance.")
7611 (license license:expat)))
7613 (define-public ruby-sassc
7620 (uri (rubygems-uri "sassc" version))
7623 "1sr4825rlwsrl7xrsm0sgalcpf5zgp4i56dbi3qxfa9lhs8r6zh4"))))
7624 (build-system ruby-build-system)
7627 (modify-phases %standard-phases
7628 ;; TODO: This would be better as a snippet, but the ruby-build-system
7629 ;; doesn't seem to support that
7630 (add-after 'unpack 'remove-libsass
7632 (delete-file-recursively "ext")
7634 (add-after 'unpack 'dont-check-the-libsass-version
7636 (substitute* "test/native_test.rb"
7637 (("assert_equal.*Native\\.version") ""))
7639 (add-after 'unpack 'remove-git-from-gemspec
7641 (substitute* "sassc.gemspec"
7642 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")
7643 (("`git submodule --quiet foreach pwd`") "''"))
7645 (add-after 'unpack 'remove-extensions-from-gemspec
7647 (substitute* "sassc.gemspec"
7648 (("\\[\"ext/Rakefile\"\\]") "[]"))
7650 (add-after 'unpack 'fix-Rakefile
7652 (substitute* "Rakefile"
7653 (("test: 'libsass:compile'") ":test"))
7655 (add-after 'unpack 'remove-unnecessary-dependencies
7657 (substitute* "test/test_helper.rb"
7658 (("require \"pry\"") ""))
7660 (add-before 'build 'patch-native.rb
7661 (lambda* (#:key inputs #:allow-other-keys)
7662 (substitute* "lib/sassc/native.rb"
7663 ((".*gem_root = spec.gem_dir") "")
7666 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7668 ;; The gemspec still references the libsass files, so just keep the
7670 (delete 'extract-gemspec))))
7672 `(("ruby-ffi" ,ruby-ffi)
7673 ("ruby-rake" ,ruby-rake)))
7675 `(("libsass" ,libsass)))
7677 `(("bundler" ,bundler)
7678 ("ruby-minitest-around" ,ruby-minitest-around)
7679 ("ruby-test-construct" ,ruby-test-construct)))
7680 (synopsis "Use libsss from Ruby")
7682 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7683 bindings to the libsass library. This enables rendering
7684 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7685 (home-page "https://github.com/sass/sassc-ruby")
7686 (license license:expat)))
7688 (define-public ruby-jekyll-sass-converter
7690 (name "ruby-jekyll-sass-converter")
7694 (uri (rubygems-uri "jekyll-sass-converter" version))
7697 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7698 (build-system ruby-build-system)
7700 `(("ruby-sass" ,ruby-sass)))
7704 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7705 (synopsis "Sass converter for Jekyll")
7706 (description "This gem provide built-in support for the Sass converter
7708 (license license:expat)))
7710 (define-public ruby-jekyll-watch
7712 (name "ruby-jekyll-watch")
7716 (uri (rubygems-uri "jekyll-watch" version))
7719 "0m7scvj3ki8bmyx5v8pzibpg6my10nycnc28lip98dskf8iakprp"))))
7720 (build-system ruby-build-system)
7722 `(("ruby-listen-3.0" ,ruby-listen-3.0)))
7726 (home-page "https://github.com/jekyll/jekyll-watch")
7727 (synopsis "Jekyll auto-rebuild support")
7728 (description "This gems add the @code{--watch} switch to the jekyll CLI
7729 interface. It allows Jekyll to rebuild your site when a file changes.")
7730 (license license:expat)))
7732 (define-public ruby-parallel
7734 (name "ruby-parallel")
7740 (url "https://github.com/grosser/parallel.git")
7741 (commit (string-append "v" version))))
7742 (file-name (git-file-name name version))
7745 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7746 (build-system ruby-build-system)
7748 `(;; TODO 3 test failures
7749 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7750 ;; open unnecessary pipes
7751 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7752 ;; SQLite in processes
7753 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7754 ;; SQLite in threads
7756 #:test-target "rspec-rerun:spec"
7758 (modify-phases %standard-phases
7759 (add-after 'unpack 'patch-Gemfile
7761 (substitute* "Gemfile"
7762 (("gem 'rspec-legacy_formatters'") "")
7763 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7764 (add-before 'check 'delete-Gemfile.lock
7766 ;; Bundler isn't being used for fetching dependendencies, so
7767 ;; delete the Gemfile.lock
7768 (delete-file "Gemfile.lock")
7770 (add-before 'build 'patch-gemspec
7772 (substitute* "parallel.gemspec"
7773 (("git ls-files") "find"))
7776 `(("ruby-rspec" ,ruby-rspec)
7777 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
7778 ("bundler" ,bundler)
7779 ("ruby-activerecord" ,ruby-activerecord)
7780 ("ruby-progressbar" ,ruby-progressbar)
7781 ("ruby-bump" ,ruby-bump)
7784 ("ruby-mysql2" ,ruby-mysql2)
7785 ("ruby-sqlite3" ,ruby-sqlite3)
7786 ("ruby-i18n" ,ruby-i18n)))
7787 (home-page "https://github.com/grosser/parallel")
7788 (synopsis "Parallel processing in Ruby")
7789 (description "Parallel allows you to run any code in parallel Processes
7790 (to use all CPUs) or Threads(to speedup blocking operations). It is best
7791 suited for map-reduce or e.g. parallel downloads/uploads.")
7792 (license license:expat)))
7794 (define-public ruby-cane
7800 (uri (rubygems-uri "cane" version))
7803 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7804 (build-system ruby-build-system)
7805 (arguments `(#:tests? #f)); No rakefile
7806 (home-page "https://github.com/square/cane")
7808 `(("ruby-parallel" ,ruby-parallel)))
7809 (synopsis "Code quality threshold checking")
7810 (description "Cane fails your build if code quality thresholds are not met.")
7811 (license license:asl2.0)))
7813 (define-public ruby-morecane
7815 (name "ruby-morecane")
7819 (uri (rubygems-uri "morecane" version))
7822 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
7823 (build-system ruby-build-system)
7824 (home-page "https://github.com/yob/morecane")
7825 (arguments `(#:tests? #f)); No rakefile
7827 `(("ruby-parallel" ,ruby-parallel)))
7828 (synopsis "Extra checks for cane")
7829 (description "The cane gem provides a great framework for running quality
7830 checks over your ruby project as part of continuous integration build. It
7831 comes with a few checks out of the box, but also provides an API for loading
7832 custom checks. This gem provides a set of additional checks.")
7833 (license license:expat)))
7835 (define-public ruby-pdf-reader
7837 (name "ruby-pdf-reader")
7841 (uri (rubygems-uri "pdf-reader" version))
7844 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
7845 (build-system ruby-build-system)
7846 (arguments `(#:test-target "spec"))
7848 `(("bundler" ,bundler)
7849 ("ruby-rspec" ,ruby-rspec)
7850 ("ruby-cane" ,ruby-cane)
7851 ("ruby-morecane" ,ruby-morecane)))
7853 `(("ruby-afm" ,ruby-afm)
7854 ("ruby-ascii85" ,ruby-ascii85)
7855 ("ruby-hashery" ,ruby-hashery)
7856 ("ruby-rc4" ,ruby-rc4)
7857 ("ruby-ttfunk" ,ruby-ttfunk)))
7858 (home-page "https://github.com/yob/pdf-reader")
7859 (synopsis "PDF parser in Ruby")
7860 (description "The PDF::Reader library implements a PDF parser conforming as
7861 much as possible to the PDF specification from Adobe. It provides programmatic
7862 access to the contents of a PDF file with a high degree of flexibility.")
7863 (license license:gpl3+)))
7865 (define-public ruby-pdf-inspector
7867 (name "ruby-pdf-inspector")
7871 (uri (rubygems-uri "pdf-inspector" version))
7874 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
7875 (build-system ruby-build-system)
7877 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
7878 (arguments `(#:tests? #f)); No rakefile
7879 (home-page "https://github.com/prawnpdf/pdf-inspector")
7880 (synopsis "Analysis classes for inspecting PDF output")
7881 (description "This library provides a number of PDF::Reader based tools for
7882 use in testing PDF output. Presently, the primary purpose of this tool is to
7883 support the tests found in Prawn, a pure Ruby PDF generation library.")
7884 (license license:gpl3+)))
7886 (define-public ruby-pdf-core
7888 (name "ruby-pdf-core")
7892 (uri (rubygems-uri "pdf-core" version))
7895 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
7896 (build-system ruby-build-system)
7900 (home-page "https://github.com/prawnpdf/pdf-core")
7901 (synopsis "Low level PDF features for Prawn")
7902 (description "This is an experimental gem that extracts low-level PDF
7903 functionality from Prawn.")
7904 (license license:gpl3+)))
7906 (define-public ruby-prawn
7912 (uri (rubygems-uri "prawn" version))
7915 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
7916 (build-system ruby-build-system)
7921 (modify-phases %standard-phases
7922 (add-before 'build 'fix-dependencies
7924 (substitute* "prawn.gemspec"
7925 (("~> 0.7.0") "~> 0.7"))
7928 `(("ruby-pdf-core" ,ruby-pdf-core)
7929 ("ruby-ttfunk" ,ruby-ttfunk)))
7931 `(("bundler" ,bundler)
7932 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
7933 ("ruby-rspec" ,ruby-rspec)
7934 ("ruby-simplecov" ,ruby-simplecov)
7935 ("ruby-yard" ,ruby-yard)))
7936 (home-page "http://prawnpdf.org/api-docs/2.0/")
7937 (synopsis "PDF generation for Ruby")
7938 (description "Prawn is a pure Ruby PDF generation library.")
7939 (license license:gpl3+)))
7941 (define-public ruby-prawn-table
7943 (name "ruby-prawn-table")
7947 (uri (rubygems-uri "prawn-table" version))
7950 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
7951 (build-system ruby-build-system)
7953 `(("ruby-prawn" ,ruby-prawn)
7954 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
7956 `(("bundler" ,bundler)
7957 ("ruby-yard" ,ruby-yard)
7958 ("ruby-mocha" ,ruby-mocha)
7959 ("ruby-coderay" ,ruby-coderay)
7960 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
7961 ("ruby-simplecov" ,ruby-simplecov)
7962 ("ruby-rspec-2" ,ruby-rspec-2)))
7964 '(;; TODO: 1 test fails
7965 ;; Failure/Error: pdf.page_count.should == 1
7967 ;; got: 2 (using ==)
7968 ;; # ./spec/table_spec.rb:1308
7970 ;; 225 examples, 1 failure
7973 (modify-phases %standard-phases
7974 (add-before 'check 'patch-gemspec
7976 (substitute* "prawn-table.gemspec"
7977 ;; Loosen the requirement for pdf-inspector
7978 (("~> 1\\.1\\.0") ">= 0")
7979 ;; Loosen the requirement for pdf-reader
7980 (("~> 1\\.2") ">= 0"))))
7982 (lambda* (#:key tests? #:allow-other-keys)
7986 (home-page "https://github.com/prawnpdf/prawn-table")
7987 (synopsis "Tables support for Prawn")
7988 (description "This gem provides tables support for Prawn.")
7989 (license license:gpl3+)))
7991 (define-public ruby-kramdown
7993 (name "ruby-kramdown")
7997 (uri (rubygems-uri "kramdown" version))
8000 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8001 (build-system ruby-build-system)
8002 (arguments `(#:tests? #f)); FIXME: some test failures
8004 `(("ruby-prawn" ,ruby-prawn)
8005 ("ruby-prawn-table" ,ruby-prawn-table)))
8006 (home-page "https://kramdown.gettalong.org/")
8007 (synopsis "Markdown parsing and converting library")
8008 (description "Kramdown is a library for parsing and converting a superset
8009 of Markdown. It is completely written in Ruby, supports standard Markdown
8010 (with some minor modifications) and various extensions that have been made
8011 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8012 (license license:expat)))
8014 (define-public ruby-http-parser.rb
8016 (name "ruby-http-parser.rb")
8021 (uri (rubygems-uri "http_parser.rb" version))
8024 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8025 (build-system ruby-build-system)
8030 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8031 ("ruby-rspec" ,ruby-rspec)))
8032 (home-page "https://github.com/tmm1/http_parser.rb")
8033 (synopsis "HTTP parser un Ruby")
8034 (description "This gem is a simple callback-based HTTP request/response
8035 parser for writing http servers, clients and proxies.")
8036 (license license:expat)))
8038 (define-public ruby-em-websocket
8040 (name "ruby-em-websocket")
8045 (uri (rubygems-uri "em-websocket" version))
8048 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8049 (build-system ruby-build-system)
8054 `(("ruby-eventmachine" ,ruby-eventmachine)
8055 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8057 `(("bundler" ,bundler)
8058 ("ruby-rspec" ,ruby-rspec)))
8059 (home-page "https://github.com/igrigorik/em-websocket")
8060 (synopsis "EventMachine based WebSocket server")
8061 (description "Em-websocket is an EventMachine based WebSocket server
8063 (license license:expat)))
8065 (define-public ruby-rouge
8071 (uri (rubygems-uri "rouge" version))
8074 "0h79gn2wmn1wix2d27lgiaimccyj8gvizrllyym500pir408x62f"))))
8075 (build-system ruby-build-system)
8076 (arguments `(#:tests? #f)); No rakefile
8077 (home-page "http://rouge.jneen.net/")
8078 (synopsis "Code highlighter")
8079 (description "Rouge is a code highlighter written in Ruby. It supports more
8080 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8081 is compatible with stylesheets designed for pygments.")
8083 ;; rouge is licensed under expat
8085 ;; pygments is licensed under bsd-2
8088 (define-public ruby-rouge-2
8090 (inherit ruby-rouge)
8094 (uri (rubygems-uri "rouge" version))
8097 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8099 (define-public ruby-hashie
8101 (name "ruby-hashie")
8105 (uri (rubygems-uri "hashie" version))
8108 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8109 (build-system ruby-build-system)
8111 `(("bundler" ,bundler)))
8112 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8113 (home-page "https://github.com/intridea/hashie")
8114 (synopsis "Extensions to Ruby Hashes")
8115 (description "Hashie is a collection of classes and mixins that make Ruby
8116 hashes more powerful.")
8117 (license license:expat)))
8119 (define-public ruby-heredoc-unindent
8121 (name "ruby-heredoc-unindent")
8125 (uri (rubygems-uri "heredoc_unindent" version))
8128 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8129 (build-system ruby-build-system)
8131 `(("ruby-hoe" ,ruby-hoe)))
8132 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8133 (synopsis "Heredoc indentation cleaner")
8134 (description "This gem removes common margin from indented strings, such
8135 as the ones produced by indented heredocs. In other words, it strips out
8136 leading whitespace chars at the beginning of each line, but only as much as
8137 the line with the smallest margin.
8139 It is acknowledged that many strings defined by heredocs are just code and
8140 fact is that most parsers are insensitive to indentation. If, however, the
8141 strings are to be used otherwise, be it for printing or testing, the extra
8142 indentation will probably be an issue and hence this gem.")
8143 (license license:expat)))
8145 (define-public ruby-safe-yaml
8147 (name "ruby-safe-yaml")
8151 ;; TODO Fetch from the git repository so a patch can be applied
8154 (url "https://github.com/dtao/safe_yaml.git")
8156 (file-name (git-file-name name version))
8159 "1wnln8xdy8g6kwdj4amm8773xwffqxpf2sxslk6jjh2wxsy1lrig"))
8161 (search-patches "ruby-safe-yaml-add-require-time.patch"))))
8162 (build-system ruby-build-system)
8164 `(("ruby-rspec" ,ruby-rspec)
8165 ("ruby-hashie" ,ruby-hashie)
8166 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8168 '(#:test-target "spec"
8170 (modify-phases %standard-phases
8171 (add-before 'check 'set-TZ
8173 ;; This test is dependent on the timezone
8174 ;; spec/transform/to_date_spec.rb:35
8175 ;; # SafeYAML::Transform::ToDate converts times to the local
8177 (setenv "TZ" "UTC-11")
8179 (home-page "https://github.com/dtao/safe_yaml")
8180 (synopsis "YAML parser")
8181 (description "The SafeYAML gem provides an alternative implementation of
8182 YAML.load suitable for accepting user input in Ruby applications.")
8183 (license license:expat)))
8185 (define-public ruby-mercenary
8187 (name "ruby-mercenary")
8191 (uri (rubygems-uri "mercenary" version))
8194 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8195 (build-system ruby-build-system)
8196 (arguments `(#:test-target "spec"))
8198 `(("bundler" ,bundler)))
8199 (home-page "https://github.com/jekyll/mercenary")
8200 (synopsis "Command-line apps library in Ruby")
8201 (description "Mercenary is a lightweight and flexible library for writing
8202 command-line apps in Ruby.")
8203 (license license:expat)))
8205 (define-public ruby-liquid
8207 (name "ruby-liquid")
8211 (uri (rubygems-uri "liquid" version))
8214 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8215 (build-system ruby-build-system)
8216 (arguments `(#:tests? #f)); No rakefile
8217 (home-page "https://shopify.github.io/liquid/")
8218 (synopsis "Template language")
8219 (description "Liquid is a template language written in Ruby. It is used
8220 to load dynamic content on storefronts.")
8221 (license license:expat)))
8223 (define-public ruby-forwardable-extended
8225 (name "ruby-forwardable-extended")
8229 (uri (rubygems-uri "forwardable-extended" version))
8232 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8233 (build-system ruby-build-system)
8234 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8235 (home-page "https://github.com/envygeeks/forwardable-extended")
8236 (synopsis "Delegation to hashes and instance variables in Forwardable")
8237 (description "Forwardable Extended provides more @code{Forwardable}
8238 methods for your source as @code{Forwardable::Extended}.")
8239 (license license:expat)))
8241 (define-public ruby-pathutil
8243 (name "ruby-pathutil")
8247 (uri (rubygems-uri "pathutil" version))
8250 "0wc18ms1rzi44lpjychyw2a96jcmgxqdvy2949r4vvb5f4p0lgvz"))))
8251 (build-system ruby-build-system)
8253 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8255 `(("bundler" ,bundler)
8256 ("ruby-rspec" ,ruby-rspec)))
8257 ;; Fails with: cannot load such file --
8258 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8259 (arguments `(#:tests? #f))
8260 (home-page "https://github.com/envygeeks/pathutil")
8261 (synopsis "Extended implementation of Pathname")
8262 (description "Pathutil tries to be a faster pure Ruby implementation of
8264 (license license:expat)))
8266 (define-public jekyll
8272 (uri (rubygems-uri "jekyll" version))
8275 "1iw90wihk9dscgmppf5v6lysg3kjmnx50mjyl4gghkdb4spw97xk"))))
8276 (build-system ruby-build-system)
8278 ;; No rakefile, but a test subdirectory
8281 (modify-phases %standard-phases
8282 (add-before 'build 'fix-i18n
8284 (substitute* ".gemspec"
8285 (("~> 0.7") ">= 0.7"))
8288 `(("ruby-addressable" ,ruby-addressable)
8289 ("ruby-colorator" ,ruby-colorator)
8290 ("ruby-em-websocket" ,ruby-em-websocket)
8291 ("ruby-i18n" ,ruby-i18n)
8292 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8293 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8294 ("ruby-kramdown" ,ruby-kramdown)
8295 ("ruby-liquid" ,ruby-liquid)
8296 ("ruby-mercenary" ,ruby-mercenary)
8297 ("ruby-pathutil" ,ruby-pathutil)
8298 ("ruby-rouge" ,ruby-rouge-2)
8299 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8300 (home-page "https://jekyllrb.com/")
8301 (synopsis "Static site generator")
8302 (description "Jekyll is a simple, blog aware, static site generator.")
8303 (license license:expat)))
8305 (define-public ruby-jekyll-paginate-v2
8307 (name "ruby-jekyll-paginate-v2")
8311 (uri (rubygems-uri "jekyll-paginate-v2" version))
8314 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8315 (build-system ruby-build-system)
8317 `(("jekyll" ,jekyll)))
8318 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8319 (synopsis "Pagination Generator for Jekyll 3")
8320 (description "The Pagination Generator forms the core of the pagination
8321 logic in Jekyll. It calculates and generates the pagination pages.")
8322 (license license:expat)))
8324 (define-public ruby-faraday
8326 (name "ruby-faraday")
8331 (uri (rubygems-uri "faraday" version))
8334 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8335 (build-system ruby-build-system)
8339 `(("ruby-multipart-post" ,ruby-multipart-post)))
8340 (synopsis "Ruby HTTP/REST API client library")
8342 "Faraday is a HTTP/REST API client library which provides a common
8343 interface over different adapters.")
8344 (home-page "https://github.com/lostisland/faraday")
8345 (license license:expat)))
8347 (define-public ruby-nio4r
8354 (uri (rubygems-uri "nio4r" version))
8357 "1a41ca1kpdmrypjp9xbgvckpy8g26zxphkja9vk7j5wl4n8yvlyr"))))
8358 (build-system ruby-build-system)
8361 (modify-phases %standard-phases
8362 (add-after 'unpack 'remove-unnecessary-dependencies
8364 (substitute* "spec/spec_helper.rb"
8365 ;; Coveralls is for uploading test coverage information to an
8366 ;; online service, and thus unnecessary for building the Guix
8368 (("require \"coveralls\"") "")
8369 (("Coveralls\\.wear!") "")
8370 ;; Remove rspec/retry as we are not retrying the tests
8371 (("require \"rspec/retry\"") "")
8372 (("config\\.display_try_failure_messages = true") "")
8373 (("config\\.verbose_retry = true") ""))
8375 (add-before 'check 'compile
8377 (invoke "rake" "compile")
8380 (lambda* (#:key tests? #:allow-other-keys)
8385 `(("bundler" ,bundler)
8386 ("ruby-rake-compiler" ,ruby-rake-compiler)
8387 ("ruby-rspec" ,ruby-rspec)
8388 ("ruby-rubocop" ,ruby-rubocop)))
8389 (synopsis "New I/O for Ruby")
8391 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8392 for scalable network clients and servers.")
8393 (home-page "https://github.com/socketry/nio4r")
8394 (license license:expat)))
8396 (define-public ruby-globalid
8398 (name "ruby-globalid")
8403 (uri (rubygems-uri "globalid" version))
8406 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8407 (build-system ruby-build-system)
8409 '(;; No included tests
8412 `(("ruby-activesupport" ,ruby-activesupport)))
8413 (synopsis "Generate URIs idenfitying model instances in Ruby")
8415 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8416 uniquely identify it.")
8417 (home-page "https://rubyonrails.org/")
8418 (license license:expat)))
8420 (define-public ruby-sprockets
8422 (name "ruby-sprockets")
8427 (uri (rubygems-uri "sprockets" version))
8430 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8431 (build-system ruby-build-system)
8433 '(;; No included tests
8436 `(("ruby-concurrent" ,ruby-concurrent)
8437 ("ruby-rack" ,ruby-rack)))
8438 (synopsis "Sprockets is a Rack-based asset packaging system")
8440 "Sprockets is a Rack-based asset packaging system that concatenates and
8441 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8442 (home-page "https://github.com/rails/sprockets")
8443 (license license:expat)))
8445 (define-public ruby-mustermann
8447 (name "ruby-mustermann")
8452 (uri (rubygems-uri "mustermann" version))
8455 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8456 (build-system ruby-build-system)
8460 (synopsis "Library implementing patterns that behave like regular expressions")
8461 (description "Given a string pattern, Mustermann will turn it into an
8462 object that behaves like a regular expression and has comparable performance
8464 (home-page "https://github.com/sinatra/mustermann")
8465 (license license:expat)))
8467 (define-public ruby-sinatra
8469 (name "ruby-sinatra")
8474 (uri (rubygems-uri "sinatra" version))
8477 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8478 (build-system ruby-build-system)
8480 `(("ruby-mustermann" ,ruby-mustermann)
8481 ("ruby-rack" ,ruby-rack)
8482 ("ruby-rack-protection" ,ruby-rack-protection)
8483 ("ruby-tilt" ,ruby-tilt)))
8484 (synopsis "DSL for quick web applications creation in Ruby")
8486 "Sinatra is a DSL for quickly creating web applications in Ruby with
8488 (home-page "http://sinatrarb.com/")
8489 (license license:expat)))
8491 (define-public ruby-thin
8498 (uri (rubygems-uri "thin" version))
8501 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8502 (build-system ruby-build-system)
8507 `(("ruby-daemons" ,ruby-daemons)
8508 ("ruby-eventmachine" ,ruby-eventmachine)
8509 ("ruby-rack" ,ruby-rack)))
8510 (synopsis "Thin and fast web server for Ruby")
8511 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8513 @item the Mongrel parser,
8514 @item Event Machine, a network I/O library with high scalability, performance
8516 @item Rack, a minimal interface between webservers and Ruby frameworks.
8518 (home-page "http://code.macournoyer.com/thin/")
8519 (license license:ruby)))
8521 (define-public ruby-skinny
8523 (name "ruby-skinny")
8528 (uri (rubygems-uri "skinny" version))
8531 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8532 (build-system ruby-build-system)
8534 '(#:tests? #f ; No included tests
8536 (modify-phases %standard-phases
8537 (add-before 'build 'patch-gemspec
8539 (substitute* ".gemspec"
8540 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8541 "<eventmachine>, [\">= 1.0.0\"")
8542 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8545 `(("ruby-eventmachine" ,ruby-eventmachine)
8546 ("ruby-thin" ,ruby-thin)))
8547 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8548 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8550 (home-page "https://github.com/sj26/skinny")
8551 (license license:expat)))
8553 (define-public mailcatcher
8555 (name "mailcatcher")
8560 (uri (rubygems-uri "mailcatcher" version))
8563 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8564 (build-system ruby-build-system)
8566 ;; Tests require web/assets which is not included in the output. We
8567 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8568 ;; of the tests. See ruby-mysql2.
8571 (modify-phases %standard-phases
8572 (add-before 'build 'patch-gemspec
8574 (substitute* ".gemspec"
8575 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8576 "<eventmachine>, [\">= 1.0.9.1")
8577 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8578 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8579 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8581 (add-before 'build 'loosen-dependency-contraint
8583 (substitute* "lib/mail_catcher.rb"
8584 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8585 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8586 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8587 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8590 `(("ruby-eventmachine" ,ruby-eventmachine)
8591 ("ruby-mail" ,ruby-mail)
8592 ("ruby-rack" ,ruby-rack)
8593 ("ruby-sinatra" ,ruby-sinatra)
8594 ("ruby-skinny" ,ruby-skinny)
8595 ("ruby-sqlite3" ,ruby-sqlite3)
8596 ("ruby-thin" ,ruby-thin)))
8597 (synopsis "SMTP server which catches messages to display them a browser")
8599 "MailCatcher runs a super simple SMTP server which catches any message
8600 sent to it to display in a web interface. Run mailcatcher, set your favourite
8601 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8602 then check out http://127.0.0.1:1080 to see the mail.")
8603 (home-page "https://mailcatcher.me")
8604 (license license:expat)))