1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nikita <nikita@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
23 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
24 ;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
25 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
27 ;;; This file is part of GNU Guix.
29 ;;; GNU Guix is free software; you can redistribute it and/or modify it
30 ;;; under the terms of the GNU General Public License as published by
31 ;;; the Free Software Foundation; either version 3 of the License, or (at
32 ;;; your option) any later version.
34 ;;; GNU Guix is distributed in the hope that it will be useful, but
35 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
36 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 ;;; GNU General Public License for more details.
39 ;;; You should have received a copy of the GNU General Public License
40 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
42 (define-module (gnu packages ruby)
43 #:use-module ((guix licenses) #:prefix license:)
44 #:use-module (gnu packages)
45 #:use-module (gnu packages base)
46 #:use-module (gnu packages bison)
47 #:use-module (gnu packages c)
48 #:use-module (gnu packages check)
49 #:use-module (gnu packages compression)
50 #:use-module (gnu packages crypto)
51 #:use-module (gnu packages databases)
52 #:use-module (gnu packages dbm)
53 #:use-module (gnu packages rails)
54 #:use-module (gnu packages readline)
55 #:use-module (gnu packages autotools)
56 #:use-module (gnu packages haskell-xyz)
57 #:use-module (gnu packages java)
58 #:use-module (gnu packages libffi)
59 #:use-module (gnu packages libidn)
60 #:use-module (gnu packages linux)
61 #:use-module (gnu packages lsof)
62 #:use-module (gnu packages maths)
63 #:use-module (gnu packages ncurses)
64 #:use-module (gnu packages networking)
65 #:use-module (gnu packages node)
66 #:use-module (gnu packages protobuf)
67 #:use-module (gnu packages python)
68 #:use-module (gnu packages python-xyz)
69 #:use-module (gnu packages ragel)
70 #:use-module (gnu packages rsync)
71 #:use-module (gnu packages sqlite)
72 #:use-module (gnu packages tls)
73 #:use-module (gnu packages version-control)
74 #:use-module (guix packages)
75 #:use-module (guix download)
76 #:use-module (guix git-download)
77 #:use-module (guix utils)
78 #:use-module (guix build-system gnu)
79 #:use-module (gnu packages xml)
80 #:use-module (gnu packages web)
81 #:use-module (guix build-system ruby)
82 #:use-module ((srfi srfi-1) #:select (alist-delete)))
84 (define %prawn-project-licenses
85 ;; This set of licenses applies to most (all?) components of the Prawn
86 ;; project (it is triple licensed).
98 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
99 (version-major+minor version)
100 "/ruby-" version ".tar.xz"))
103 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
104 (modules '((guix build utils)))
106 ;; Remove bundled libffi
107 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
109 (build-system gnu-build-system)
111 `(#:test-target "test"
112 #:configure-flags '("--enable-shared") ; dynamic linking
114 (modify-phases %standard-phases
115 (add-before 'configure 'replace-bin-sh-and-remove-libffi
117 (substitute* '("Makefile.in"
122 "test/rubygems/test_gem_ext_configure_builder.rb"
123 "test/rdoc/test_rdoc_parser.rb"
124 "test/ruby/test_rubyoptions.rb"
125 "test/ruby/test_process.rb"
126 "test/ruby/test_system.rb"
128 (("/bin/sh") (which "sh")))
131 `(("readline" ,readline)
138 (list (search-path-specification
139 (variable "GEM_PATH")
140 (files (list (string-append "lib/ruby/vendor_ruby"))))))
141 (synopsis "Programming language interpreter")
142 (description "Ruby is a dynamic object-oriented programming language with
143 a focus on simplicity and productivity.")
144 (home-page "https://www.ruby-lang.org")
145 (license license:ruby)))
147 (define-public ruby-2.7
154 (uri (string-append "https://cache.ruby-lang.org/pub/ruby/"
155 (version-major+minor version)
156 "/ruby-" version ".tar.gz"))
159 "1m63461mxi3fg4y3bspbgmb0ckbbb1ldgf9xi0piwkpfsk80cmvf"))
160 (modules '((guix build utils)))
162 ;; Remove bundled libffi
163 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
166 `(#:test-target "test"
167 #:configure-flags '("--enable-shared") ; dynamic linking
169 (modify-phases %standard-phases
170 (add-before 'configure 'replace-bin-sh-and-remove-libffi
172 (substitute* '("configure.ac"
173 "template/Makefile.in"
174 "lib/rubygems/installer.rb"
179 "test/rubygems/test_gem_ext_configure_builder.rb"
180 "test/rdoc/test_rdoc_parser.rb"
181 "test/ruby/test_rubyoptions.rb"
182 "test/ruby/test_process.rb"
183 "test/ruby/test_system.rb"
185 (("/bin/sh") (which "sh")))
188 `(("autoconf" ,autoconf)))))
190 (define-public ruby-2.5
197 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
198 (version-major+minor version)
199 "/ruby-" version ".tar.xz"))
202 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
203 (modules '((guix build utils)))
205 ;; Remove bundled libffi
206 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
209 (define-public ruby-2.4
216 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
217 (version-major+minor version)
218 "/ruby-" version ".tar.xz"))
221 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
222 (modules '((guix build utils)))
224 ;; Remove bundled libffi
225 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
236 (url "https://github.com/mruby/mruby")
238 (file-name (git-file-name name version))
241 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
242 (build-system gnu-build-system)
244 `(#:test-target "test"
246 (modify-phases %standard-phases
248 (add-after 'unpack 'enable-verbose-tests
250 (substitute* "Makefile"
251 (("ruby ./minirake" m)
252 (string-append m " --verbose")))
254 (add-after 'unpack 'disable-broken-tests
256 (substitute* "mrbgems/mruby-io/test/io.rb"
257 (("assert\\('IO.popen.+$" m)
258 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
259 (("assert\\('IO#isatty.+$" m)
260 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
261 ;; This one is really weird. The *expected* output is all wrong.
262 (("assert\\('`cmd`.*" m)
263 (string-append m "skip \"Disable for Guix\"\n"))
265 (string-append (which "echo") " foo")))
267 ;; There is no install target
269 (lambda* (#:key outputs #:allow-other-keys)
270 (let* ((out (assoc-ref outputs "out"))
271 (bin (string-append out "/bin"))
272 (lib (string-append out "/lib")))
274 (copy-recursively "build/host/bin" bin)
276 (copy-recursively "build/host/lib" lib))
281 (home-page "https://github.com/mruby/mruby")
282 (synopsis "Lightweight Ruby")
283 (description "mruby is the lightweight implementation of the Ruby
284 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
285 embedded within your application.")
286 (license license:expat)))
288 (define-public ruby-commander
290 (name "ruby-commander")
295 (uri (rubygems-uri "commander" version))
298 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
299 (build-system ruby-build-system)
301 `(#:test-target "spec"
303 (modify-phases %standard-phases
304 ;; Don't run or require rubocop, the code linting tool, as this is a
306 (add-after 'unpack 'dont-run-rubocop
308 (substitute* "Rakefile"
310 ((".*RuboCop.*") ""))
313 `(("ruby-highline" ,ruby-highline)))
315 `(("bundler" ,bundler)
316 ("ruby-rspec-core" ,ruby-rspec-core)
317 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
318 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
319 ("ruby-simplecov" ,ruby-simplecov)))
320 (home-page "https://github.com/commander-rb/commander")
321 (synopsis "Library for building Ruby command-line executables")
323 "Commander aims to be a complete solution for Ruby command-line
324 executables. Commander bridges the gap between other terminal related
325 libraries (OptionParser, HighLine), while providing many new features, and an
327 (license license:expat)))
329 (define-public ruby-highline
331 (name "ruby-highline")
336 (uri (rubygems-uri "highline" version))
339 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
340 (build-system ruby-build-system)
342 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
344 `(("bundler" ,bundler)
345 ("ruby-code-statistics" ,ruby-code-statistics)))
347 "HighLine helps you build command-line interfaces")
349 "HighLine provides a high-level IO library that provides validation,
350 type conversion, and more for command-line interfaces. HighLine also includes
351 a menu system for providing multiple options to the user.")
352 (home-page "https://github.com/JEG2/highline")
353 (license (list license:gpl2 license:ruby))))
355 (define-public ruby-hoe
361 (uri (rubygems-uri "hoe" version))
364 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
365 (build-system ruby-build-system)
368 (modify-phases %standard-phases
369 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
370 ;; variable is set, so unset it for the duration of the tests.
372 ;; TestHoe#test_possibly_better
373 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
374 ;; Expected: 2019-11-12 00:00:00 UTC
375 ;; Actual: 1970-01-01 00:00:00 UTC
376 (add-before 'check 'unset-SOURCE-DATE-EPOCH
378 (unsetenv "SOURCE_DATE_EPOCH")
380 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
382 (setenv "SOURCE_DATE_EPOCH" "1")
384 (synopsis "Ruby project management helper")
386 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
387 maintain, and release projects and includes a dynamic plug-in system allowing
388 for easy extensibility. Hoe ships with plug-ins for all the usual project
389 tasks including rdoc generation, testing, packaging, deployment, and
391 (home-page "https://www.zenspider.com/projects/hoe.html")
392 (license license:expat)))
394 (define-public ruby-rake-compiler
396 (name "ruby-rake-compiler")
400 (uri (rubygems-uri "rake-compiler" version))
403 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
404 (build-system ruby-build-system)
406 '(#:tests? #f)) ; needs cucumber
407 (synopsis "Building and packaging helper for Ruby native extensions")
408 (description "Rake-compiler provides a framework for building and
409 packaging native C and Java extensions in Ruby.")
410 (home-page "https://github.com/rake-compiler/rake-compiler")
411 (license license:expat)))
413 (define-public ruby-rsync
420 (uri (rubygems-uri "rsync" version))
423 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
424 (build-system ruby-build-system)
426 '(#:test-target "spec"
428 (modify-phases %standard-phases
429 (add-after 'unpack 'remove-coveralls-requirement
431 (substitute* "spec/spec_helper.rb"
432 (("require 'coveralls'") "")
433 (("Coveralls.wear!") ""))
436 `(("bundler" ,bundler)
438 ("ruby-rspec-core" ,ruby-rspec-core)
439 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
440 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
441 (home-page "https://github.com/jbussdieker/ruby-rsync")
442 (synopsis "Ruby wrapper around rsync")
444 "Ruby Rsync is a Ruby library that can synchronize files between remote
445 hosts by wrapping the @file{rsync} binary.")
446 (license license:expat)))
448 (define-public ruby-i18n
454 (uri (rubygems-uri "i18n" version))
457 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
458 (build-system ruby-build-system)
460 '(#:tests? #f)) ; no tests
461 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
462 (synopsis "Internationalization library for Ruby")
463 (description "Ruby i18n is an internationalization and localization
464 solution for Ruby programs. It features translation and localization,
465 interpolation of values to translations, pluralization, customizable
466 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
467 translation data, custom key/scope separator, custom exception handlers, and
468 an extensible architecture with a swappable backend.")
469 (home-page "https://github.com/ruby-i18n/i18n")
470 (license license:expat)))
472 (define-public ruby-iruby
479 (uri (rubygems-uri "iruby" version))
482 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
483 (build-system ruby-build-system)
485 ;; TODO: Tests currently fail.
487 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
490 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
493 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
496 (modify-phases %standard-phases
497 (add-after 'unpack 'patch-ipython
498 (lambda* (#:key inputs #:allow-other-keys)
499 (substitute* "lib/iruby/command.rb"
503 (assoc-ref inputs "python-ipython")
505 (("Kernel\\.exec\\('")
508 (assoc-ref inputs "python-ipython")
512 `(("python-ipython" ,python-ipython)))
514 `(("ruby-bond" ,ruby-bond)
515 ("ruby-data_uri" ,ruby-data_uri)
516 ("ruby-mimemagic" ,ruby-mimemagic)
517 ("ruby-multi-json" ,ruby-multi-json)
518 ("ruby-cztop" ,ruby-cztop)
520 ("ruby-pry" ,ruby-pry)))
521 (synopsis "Ruby kernel for Jupyter/IPython")
523 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
525 (home-page "https://github.com/SciRuby/iruby")
526 (license license:expat)))
528 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
529 ;; dependencies use RSpec for their test suites! To avoid these circular
530 ;; dependencies, we disable tests for all of the RSpec-related packages.
531 (define-public ruby-rspec-support
533 (name "ruby-rspec-support")
537 (uri (rubygems-uri "rspec-support" version))
540 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
541 (build-system ruby-build-system)
543 '(#:tests? #f)) ; avoid dependency cycles
544 (synopsis "RSpec support library")
545 (description "Support utilities for RSpec gems.")
546 (home-page "https://github.com/rspec/rspec-support")
547 (license license:expat)))
549 (define-public ruby-rspec-core
551 (name "ruby-rspec-core")
555 (uri (rubygems-uri "rspec-core" version))
558 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
559 (build-system ruby-build-system)
561 '(#:tests? #f)) ; avoid dependency cycles
563 `(("ruby-rspec-support" ,ruby-rspec-support)))
564 (synopsis "RSpec core library")
565 (description "Rspec-core provides the RSpec test runner and example
567 (home-page "https://github.com/rspec/rspec-core")
568 (license license:expat)))
570 (define-public ruby-rspec-core-2
571 (package (inherit ruby-rspec-core)
575 (uri (rubygems-uri "rspec-core" version))
578 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
579 (propagated-inputs `())))
581 (define-public ruby-diff-lcs
583 (name "ruby-diff-lcs")
587 (uri (rubygems-uri "diff-lcs" version))
590 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
591 (build-system ruby-build-system)
593 '(#:tests? #f)) ; avoid dependency cycles
594 (synopsis "Compute the difference between two Enumerable sequences")
595 (description "Diff::LCS computes the difference between two Enumerable
596 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
597 It includes utilities to create a simple HTML diff output format and a
598 standard diff-like tool.")
599 (home-page "https://github.com/halostatue/diff-lcs")
600 (license license:expat)))
602 (define-public ruby-rspec-expectations
604 (name "ruby-rspec-expectations")
608 (uri (rubygems-uri "rspec-expectations" version))
611 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
612 (build-system ruby-build-system)
614 '(#:tests? #f)) ; avoid dependency cycles
616 `(("ruby-rspec-support" ,ruby-rspec-support)
617 ("ruby-diff-lcs" ,ruby-diff-lcs)))
618 (synopsis "RSpec expectations library")
619 (description "Rspec-expectations provides a simple API to express expected
620 outcomes of a code example.")
621 (home-page "https://github.com/rspec/rspec-expectations")
622 (license license:expat)))
624 (define-public ruby-rspec-expectations-2
625 (package (inherit ruby-rspec-expectations)
629 (uri (rubygems-uri "rspec-expectations" version))
632 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
634 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
636 (define-public ruby-sorcerer
638 (name "ruby-sorcerer")
643 (uri (rubygems-uri "sorcerer" version))
646 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
647 (build-system ruby-build-system)
648 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
649 (description "Sorcerer generates Ruby code from a Ripper-like abstract
650 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
651 snippets of Ruby code, expressible in a single line. Longer examples may be
652 re-sourced, but they will be rendered in a single-line format.")
653 (home-page "https://github.com/rspec-given/sorcerer")
654 (license license:expat)))
656 (define-public ruby-given-core
658 (name "ruby-given-core")
663 (uri (rubygems-uri "given_core" version))
666 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
667 (build-system ruby-build-system)
668 (arguments '(#:tests? #f)) ;no test suite for the core package
670 `(("ruby-sorcerer" ,ruby-sorcerer)))
671 (synopsis "Core abstractions used by rspec-given and minitest-given")
672 (description "Given_core is the basic functionality behind rspec-given and
673 minitest-given, extensions that allow the use of Given/When/Then terminology
674 when defining specifications.")
675 (home-page "https://github.com/rspec-given/rspec-given")
676 (license license:expat)))
678 (define-public ruby-rspec-given
680 (name "ruby-rspec-given")
685 (uri (rubygems-uri "rspec-given" version))
688 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
689 (build-system ruby-build-system)
693 (modify-phases %standard-phases
694 (add-after 'unpack 'fix-rakefile
696 (substitute* '("Rakefile" "rakelib/gemspec.rake")
697 (("require '\\./lib/given/.*") "")
698 (("Given::VERSION") (format #f "~s" ,version))
699 ;; Fix the error: "cannot load such file -- example_helper"
701 "sh \"rspec -Ilib:examples"))
703 (add-after 'extract-gemspec 'delete-failing-tests
704 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
706 (substitute* ".gemspec"
707 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
709 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
711 (delete-file "spec/lib/given/natural_assertion_spec.rb")
712 (delete-file "examples/integration/failing_messages_spec.rb")
715 `(("ruby-rspec" ,ruby-rspec)
716 ("ruby-minitest" ,ruby-minitest)))
718 `(("ruby-given-core" ,ruby-given-core)
719 ("ruby-rspec" ,ruby-rspec)))
720 (synopsis "Given/When/Then for RSpec and Minitest")
721 (description "Given is an RSpec extension that allows the use of
722 Given/When/Then terminology when defining specifications, in a way similar to
723 the Cucumber Gherkin language.")
724 (home-page "https://github.com/rspec-given/rspec-given")
725 (license license:expat)))
727 (define-public ruby-rspec-its
729 (name "ruby-rspec-its")
735 (url "https://github.com/rspec/rspec-its")
736 (commit (string-append "v" version))))
737 (file-name (git-file-name name version))
740 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
741 (build-system ruby-build-system)
743 `(#:test-target "spec"
745 (modify-phases %standard-phases
746 (add-after 'unpack 'dont-install-gems-from-gemfile
748 (substitute* "Gemfile"
749 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
752 (add-before 'build 'loosen-ffi-requirement
754 ;; Accept any version of ruby-ffi.
755 (substitute* "Gemfile"
756 ((" gem 'ffi', '~> 1\\.9\\.25'")
759 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
761 (substitute* "rspec-its.gemspec"
762 (("rake.*") "rake'\n")
763 (("spec.add_development_dependency 'cucumber'.*")
764 "spec.add_development_dependency 'cucumber'\n")
765 (("bundler.*") "bundler'\n")
766 (("\"aruba.*") "'aruba'\n"))
769 `(("ruby-rspec-core" ,ruby-rspec-core)
770 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
772 `(("bundler" ,bundler)
773 ("ruby-cucumber" ,ruby-cucumber)
774 ("ruby-ffi" ,ruby-ffi)
775 ("ruby-aruba" ,ruby-aruba)))
776 (synopsis "RSpec extension that provides the @code{its} method")
778 "RSpec::Its provides the its method as a short-hand to specify the expected
779 value of an attribute. For example, one can use @code{its(:size)\\{should
781 (home-page "https://github.com/rspec/rspec-its")
782 (license license:expat)))
784 ;;; This variant is used to break a cycle with ruby-protobuf.
785 (define-public ruby-rspec-its-minimal
788 (inherit ruby-rspec-its)
790 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
791 ((#:tests? _ #f) #f)))
792 (native-inputs '()))))
794 (define-public ruby-rspec-mocks
796 (name "ruby-rspec-mocks")
800 (uri (rubygems-uri "rspec-mocks" version))
803 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
804 (build-system ruby-build-system)
806 '(#:tests? #f)) ; avoid dependency cycles
808 `(("ruby-rspec-support" ,ruby-rspec-support)
809 ("ruby-diff-lcs" ,ruby-diff-lcs)))
810 (synopsis "RSpec stubbing and mocking library")
811 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
812 support for stubbing and mocking.")
813 (home-page "https://github.com/rspec/rspec-mocks")
814 (license license:expat)))
816 (define-public ruby-rspec-mocks-2
817 (package (inherit ruby-rspec-mocks)
821 (uri (rubygems-uri "rspec-mocks" version))
824 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
826 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
828 (define-public ruby-rspec-rerun
830 (name "ruby-rspec-rerun")
835 (uri (rubygems-uri "rspec-rerun" version))
838 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
839 (build-system ruby-build-system)
841 '(;; No included tests
843 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
844 (synopsis "Track failed RSpec tests to re-run them")
846 "This package provides an automated way to track, and then re-run failed
848 (home-page "https://github.com/dblock/rspec-rerun")
849 (license license:expat)))
851 (define-public ruby-rspec-wait
853 (name "ruby-rspec-wait")
858 (uri (rubygems-uri "rspec-wait" version))
861 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
862 (build-system ruby-build-system)
865 (modify-phases %standard-phases
868 (invoke "rake" "spec"))))))
870 `(("bundler" ,bundler)))
872 `(("ruby-rspec" ,ruby-rspec)))
873 (home-page "https://github.com/laserlemon/rspec-wait")
874 (synopsis "Wait for conditions in RSpec")
876 "RSpec::Wait strives to make it easier to test asynchronous or slow
878 (license license:expat)))
880 (define-public ruby-rspec
886 (uri (rubygems-uri "rspec" version))
889 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
890 (build-system ruby-build-system)
892 '(#:tests? #f)) ; avoid dependency cycles
894 `(("ruby-rspec-core" ,ruby-rspec-core)
895 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
896 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
897 (synopsis "Behavior-driven development framework for Ruby")
898 (description "RSpec is a behavior-driven development (BDD) framework for
899 Ruby. This meta-package includes the RSpec test runner, along with the
900 expectations and mocks frameworks.")
901 (home-page "https://rspec.info/")
902 (license license:expat)))
904 (define-public ruby-rspec-2
905 (package (inherit ruby-rspec)
909 (uri (rubygems-uri "rspec" version))
912 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
914 `(("ruby-rspec-core" ,ruby-rspec-core-2)
915 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
916 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
918 ;; Bundler is yet another source of circular dependencies, so we must disable
919 ;; its test suite as well.
920 (define-public bundler
926 (uri (rubygems-uri "bundler" version))
929 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
930 (build-system ruby-build-system)
932 '(#:tests? #f)) ; avoid dependency cycles
933 (synopsis "Ruby gem bundler")
934 (description "Bundler automatically downloads and installs a list of gems
935 specified in a \"Gemfile\", as well as their dependencies.")
936 (home-page "https://bundler.io/")
937 (license license:expat)))
939 (define-public ruby-builder
941 (name "ruby-builder")
945 (uri (rubygems-uri "builder" version))
948 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
949 (build-system ruby-build-system)
952 (modify-phases %standard-phases
953 (add-after 'unpack 'do-not-use-rvm
955 (substitute* "rakelib/tags.rake"
956 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
958 (synopsis "Ruby library to create structured data")
959 (description "Builder provides a number of builder objects that make it
960 easy to create structured data. Currently the following builder objects are
961 supported: XML Markup and XML Events.")
962 (home-page "https://github.com/jimweirich/builder")
963 (license license:expat)))
965 (define-public ruby-bump
972 (uri (rubygems-uri "bump" version))
975 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
976 (build-system ruby-build-system)
978 '(;; No included tests
980 (synopsis "Tool for working with Rubygems")
982 "Bump provides commands to manage Rubygem versioning, updating to the
983 next patch version for example.")
984 (home-page "https://github.com/gregorym/bump")
985 (license license:expat)))
987 (define-public ruby-rjb
993 (uri (rubygems-uri "rjb" version))
996 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
997 (build-system ruby-build-system)
999 `(#:tests? #f ; no rakefile
1001 (modify-phases %standard-phases
1002 (add-before 'build 'set-java-home
1003 (lambda* (#:key inputs #:allow-other-keys)
1004 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1007 `(("jdk" ,icedtea "jdk")))
1008 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1009 (description "RJB is a bridge program that connects Ruby and Java via the
1010 Java Native Interface.")
1011 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1012 (license license:lgpl2.1+)))
1014 (define-public ruby-log4r
1021 (uri (rubygems-uri "log4r" version))
1024 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1025 (build-system ruby-build-system)
1027 '(#:tests? #f)) ; no Rakefile in gem
1028 (synopsis "Flexible logging library for Ruby")
1029 (description "Comprehensive and flexible logging library written
1030 in Ruby for use in Ruby programs. It features a hierarchical logging
1031 system of any number of levels, custom level names, logger
1032 inheritance, multiple output destinations per log event, execution
1033 tracing, custom formatting, thread safteyness, XML and YAML
1034 configuration, and more.")
1035 (home-page "http://log4r.rubyforge.org/")
1036 (license license:bsd-3)))
1038 (define-public ruby-atoulme-antwrap
1040 (name "ruby-atoulme-antwrap")
1044 (uri (rubygems-uri "atoulme-Antwrap" version))
1047 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1048 (build-system ruby-build-system)
1049 ;; Test data required for most of the tests are not included.
1050 (arguments `(#:tests? #f))
1052 `(("ruby-hoe" ,ruby-hoe)))
1054 `(("ruby-rjb" ,ruby-rjb)))
1055 (synopsis "Ruby wrapper for the Ant build tool")
1056 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1057 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1059 (home-page "http://rubyforge.org/projects/antwrap/")
1060 (license license:expat)))
1062 (define-public ruby-atoulme-saikuro
1064 (name "ruby-atoulme-saikuro")
1068 (uri (rubygems-uri "atoulme-Saikuro" version))
1071 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1072 (build-system ruby-build-system)
1073 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1075 (arguments `(#:tests? #f))
1076 (synopsis "Cyclomatic complexity analyzer")
1077 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1078 given Ruby source code Saikuro will generate a report listing the cyclomatic
1079 complexity of each method found. In addition, Saikuro counts the number of
1080 lines per method and can generate a listing of the number of tokens on each
1082 (home-page "http://www.github.com/atoulme/Saikuro")
1083 ;; File headers contain the BSD-3 license and the README.rdoc says that
1084 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1085 ;; of the Expat license.
1086 (license license:bsd-3)))
1088 (define-public ruby-pandoc-ruby
1090 (name "ruby-pandoc-ruby")
1094 (method git-fetch) ;the gem lacks many test files
1096 (url "https://github.com/xwmx/pandoc-ruby")
1098 (file-name (git-file-name name version))
1101 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1102 (build-system ruby-build-system)
1105 (modify-phases %standard-phases
1106 (add-after 'unpack 'disable-failing-tests
1107 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1108 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1110 (substitute* "test/test_conversions.rb"
1111 (("next if from == to.*" all)
1114 " next if ['plain', 'beamer'].include? to\n")))
1116 (add-after 'unpack 'patch-pandoc-path
1117 (lambda* (#:key inputs #:allow-other-keys)
1118 (let ((pandoc (string-append (assoc-ref inputs "pandoc")
1120 (substitute* "lib/pandoc-ruby.rb"
1121 (("@@pandoc_path = 'pandoc'")
1122 (format #f "@@pandoc_path = '~a'" pandoc)))
1123 (substitute* "test/test_pandoc_ruby.rb"
1124 (("('|\")pandoc" _ quote)
1125 (string-append quote pandoc))
1129 (add-after 'extract-gemspec 'remove-Gemfile.lock
1131 (delete-file "Gemfile.lock")
1132 (substitute* "pandoc-ruby.gemspec"
1133 (("Gemfile\\.lock") ""))
1136 `(("ruby-mocha" ,ruby-mocha)))
1138 `(("pandoc" ,pandoc)))
1139 (synopsis "Ruby wrapper for Pandoc")
1140 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1141 command line tools for converting one markup format to another. Pandoc can
1142 convert documents from a variety of formats including markdown,
1143 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1144 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1145 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1146 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1148 (home-page "https://github.com/xwmx/pandoc-ruby")
1149 (license license:expat)))
1151 (define-public ruby-slim
1158 (uri (rubygems-uri "slim" version))
1161 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1162 (build-system ruby-build-system)
1165 (modify-phases %standard-phases
1166 ;; See: https://github.com/slim-template/slim/issues/857 and
1167 ;; https://github.com/slim-template/slim/issues/858.
1168 (add-after 'unpack 'skip-broken-tests
1170 (substitute* "test/core/test_embedded_engines.rb"
1171 (("def test_render_with_markdown")
1172 "def skipped_test_render_with_markdown"))
1173 (substitute* "test/translator/test_translator.rb"
1174 (("raise (\"Missing test for.*)" _ tail)
1175 (string-append "print " tail)))
1177 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1178 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1179 (add-after 'unpack 'prevent-bundler-interference
1181 (substitute* "Rakefile"
1182 (("require 'bundler/setup'") "nil")
1183 (("Bundler::GemHelper\\.install_tasks") "nil"))
1186 `(("ruby-rack-test" ,ruby-rack-test)
1187 ("ruby-sinatra" ,ruby-sinatra)))
1189 `(("ruby-temple" ,ruby-temple)
1190 ("ruby-tilt" ,ruby-tilt)))
1191 (synopsis "Minimalist template language for Ruby")
1192 (description "Slim is a template language for Ruby that aims to reduce the
1193 syntax to the minimum while remaining clear.")
1194 (home-page "http://slim-lang.com/")
1195 (license license:expat)))
1197 (define-public ruby-asciidoctor
1199 (name "ruby-asciidoctor")
1203 (method git-fetch) ;the gem release lacks a Rakefile
1205 (url "https://github.com/asciidoctor/asciidoctor")
1206 (commit (string-append "v" version))))
1207 (file-name (git-file-name name version))
1210 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1211 (build-system ruby-build-system)
1213 `(#:test-target "test:all"
1215 (modify-phases %standard-phases
1216 (replace 'replace-git-ls-files
1218 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1219 ;; git ls-files output is merged in ruby-build-system.
1220 (substitute* "asciidoctor.gemspec"
1221 (("`git ls-files -z`")
1222 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1224 (add-after 'extract-gemspec 'strip-version-requirements
1226 (delete-file "Gemfile")
1227 (substitute* "asciidoctor.gemspec"
1228 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1229 (string-append stripped "\n")))
1232 `(("ruby-erubis" ,ruby-erubis)
1233 ("ruby-minitest" ,ruby-minitest)
1234 ("ruby-nokogiri" ,ruby-nokogiri)
1235 ("ruby-asciimath" ,ruby-asciimath)
1236 ("ruby-coderay" ,ruby-coderay)
1237 ("ruby-cucumber" ,ruby-cucumber)
1238 ("ruby-haml" ,ruby-haml)
1239 ("ruby-rouge" ,ruby-rouge)
1240 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1241 ("ruby-simplecov" ,ruby-simplecov)
1242 ("ruby-slim" ,ruby-slim)
1243 ("ruby-tilt" ,ruby-tilt)))
1244 (synopsis "Converter from AsciiDoc content to other formats")
1245 (description "Asciidoctor is a text processor and publishing toolchain for
1246 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1248 (home-page "https://asciidoctor.org")
1249 (license license:expat)))
1251 (define-public ruby-prawn-icon
1253 (name "ruby-prawn-icon")
1258 (uri (rubygems-uri "prawn-icon" version))
1261 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1262 (build-system ruby-build-system)
1264 `(#:test-target "spec"
1265 #:phases (modify-phases %standard-phases
1266 (add-after 'unpack 'remove-unnecessary-dependencies
1268 (substitute* '("Rakefile" "spec/spec_helper.rb")
1269 ((".*[Bb]undler.*") "")
1270 (("^require 'rubocop.*") "")
1271 (("^RuboCop.*") ""))
1274 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1275 ("ruby-pdf-reader" ,ruby-pdf-reader)
1276 ("ruby-rspec" ,ruby-rspec)
1277 ("ruby-simplecov" ,ruby-simplecov)))
1279 `(("ruby-prawn" ,ruby-prawn)))
1280 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1281 (description "@code{Prawn::Icon} provides various icon fonts including
1282 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1284 (home-page "https://github.com/jessedoyle/prawn-icon/")
1285 (license %prawn-project-licenses)))
1287 (define-public ruby-css-parser
1289 (name "ruby-css-parser")
1294 (uri (rubygems-uri "css_parser" version))
1297 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1298 (build-system ruby-build-system)
1299 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1301 `(("ruby-addressable" ,ruby-addressable)))
1302 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1303 (description "This package allows loading, parsing and cascading Cascading
1304 Style Sheets (CSS) rule sets in Ruby.")
1305 (home-page "https://github.com/premailer/css_parser")
1306 (license license:expat)))
1308 (define-public ruby-prawn-svg
1310 (name "ruby-prawn-svg")
1315 (uri (rubygems-uri "prawn-svg" version))
1318 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1319 (build-system ruby-build-system)
1321 `(#:phases (modify-phases %standard-phases
1322 (add-after 'unpack 'do-not-use-bundler
1324 (substitute* "spec/spec_helper.rb"
1325 ((".*[Bb]undler.*") ""))
1328 (lambda* (#:key tests? #:allow-other-keys)
1330 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1333 `(("ruby-rspec" ,ruby-rspec)))
1335 `(("ruby-css-parser" ,ruby-css-parser)
1336 ("ruby-prawn" ,ruby-prawn)))
1337 (synopsis "SVG renderer for the Prawn PDF library")
1338 (description "This library allows rendering Scalable Vector Graphics (SVG)
1339 graphics directly into a Portable Document Format (PDF) document using the
1341 (home-page "https://github.com/mogest/prawn-svg")
1342 (license license:expat)))
1344 (define-public ruby-prawn-templates
1346 (name "ruby-prawn-templates")
1352 (url "https://github.com/prawnpdf/prawn-templates.git")
1354 (file-name (git-file-name name version))
1357 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1358 (build-system ruby-build-system)
1360 `(#:phases (modify-phases %standard-phases
1361 (add-after 'unpack 'do-not-use-bundler
1363 (substitute* "spec/spec_helper.rb"
1364 ((".*[Bb]undler.*") ""))
1367 (lambda* (#:key tests? #:allow-other-keys)
1372 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1373 ("ruby-rspec" ,ruby-rspec)))
1375 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1376 ("ruby-prawn" ,ruby-prawn)))
1377 (synopsis "Prawn extension to include or combine PDF documents")
1378 (description "This @strong{unmaintained} package provides a Prawn
1379 extension that allows including other Portable Document Format (PDF) documents
1380 as background or combining several PDF documents into one. This functionality
1381 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1382 of its many longstanding issues.")
1383 (home-page "https://github.com/prawnpdf/prawn-templates")
1384 (license %prawn-project-licenses)))
1386 (define-public ruby-polyglot
1388 (name "ruby-polyglot")
1393 (uri (rubygems-uri "polyglot" version))
1396 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1397 (build-system ruby-build-system)
1398 (arguments `(#:tests? #f)) ;no test suite
1399 (synopsis "Augment @code{require} to load non-Ruby file types")
1400 (description "The Polyglot library allows a Ruby module to register a
1401 loader for the file type associated with a filename extension, and it augments
1402 @code{require} to find and load matching files.")
1403 (home-page "https://github.com/cjheath/polyglot")
1404 (license license:expat)))
1406 (define-public ruby-treetop
1408 (name "ruby-treetop")
1412 (method git-fetch) ;no test suite in distributed gem
1414 (url "https://github.com/cjheath/treetop.git")
1415 (commit (string-append "v" version))))
1416 (file-name (git-file-name name version))
1419 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1420 (build-system ruby-build-system)
1422 `(#:test-target "spec"
1424 (modify-phases %standard-phases
1425 (replace 'replace-git-ls-files
1427 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1428 ;; git ls-files output is merged in ruby-build-system.
1429 (substitute* "treetop.gemspec"
1430 (("`git ls-files -z`")
1431 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1434 `(("ruby-activesupport" ,ruby-activesupport)
1435 ("ruby-rr" ,ruby-rr)
1436 ("ruby-rspec" ,ruby-rspec)))
1438 `(("ruby-polyglot" ,ruby-polyglot)))
1439 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1440 (description "This package provides a Ruby-based Parsing Expression
1441 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1442 (home-page "https://github.com/cjheath/treetop")
1443 (license license:expat)))
1445 (define-public ruby-rubocop-performance
1447 (name "ruby-rubocop-performance")
1452 (uri (rubygems-uri "rubocop-performance" version))
1455 "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
1456 (build-system ruby-build-system)
1458 `(#:tests? #f)) ;no test suite in the distributed gem
1460 `(("ruby-rubocop" ,ruby-rubocop)))
1461 (synopsis "Performance optimizations checkers for Ruby code")
1462 (description "This package provides a collection of RuboCop cops to check
1463 for performance optimizations in Ruby code.")
1464 (home-page "https://docs.rubocop.org/rubocop-performance/")
1465 (license license:expat)))
1467 (define-public ruby-gimme
1468 (let ((revision "1")
1469 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1472 (version (git-version "0.5.0" revision commit))
1477 (url "https://github.com/searls/gimme.git")
1479 (file-name (git-file-name name version))
1482 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1483 (build-system ruby-build-system)
1485 `(("ruby-coveralls" ,ruby-coveralls)
1486 ("ruby-cucumber" ,ruby-cucumber)
1487 ("ruby-pry" ,ruby-pry)
1488 ("ruby-simplecov" ,ruby-simplecov)
1489 ("ruby-rspec-given" ,ruby-rspec-given)))
1491 `(;; The cucumber task fails with error: "index 3 out of matches
1492 ;; (IndexError)", apparently due to our newer Cucumber version.
1493 ;; TODO: Try the "default" task with a future release.
1494 #:test-target "spec"
1496 (modify-phases %standard-phases
1497 (add-after 'extract-gemspec 'prepare-for-tests
1499 ;; Delete failing tests (possibly due to our newer rspec
1501 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1502 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1503 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1504 ;; Fix duplicate version requirements and de-register files.
1505 (delete-file "Gemfile")
1506 (delete-file "Gemfile.lock")
1507 (substitute* "gimme.gemspec"
1508 ((".*\"Gemfile\".*") "")
1509 ((".*\"Gemfile\\.lock\",.*") "")
1510 ((".*(rspec|cucumber).*\">= 0\".*") "")
1511 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1512 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1513 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1514 ;; All of these gems relate to development, and are
1515 ;; unnecessary when running the tests.
1516 ((".*(add|gem).*guard-.*") "")
1517 ((".*(add|gem).*jeweler.*") "")
1518 ((".*(add|gem).*pry.*") "")
1519 ((".*(add|gem).*growl.*") "")
1520 ((".*(add|gem).*rb-fsevent.*") ""))
1522 (synopsis "Lightweight test double library for Ruby")
1523 (description "Gimme is a very lightweight test double library for Ruby,
1524 based on Mockito (a mocking framework for Java). It is an opinionated (but
1525 not noisy) means to facilitate test-driving by enabling the authors to specify
1526 only what they care about.")
1527 (home-page "https://github.com/searls/gimme")
1528 (license license:expat))))
1530 (define-public ruby-standard
1532 (name "ruby-standard")
1536 (method git-fetch) ;no test suite in distributed gem
1538 (url "https://github.com/testdouble/standard.git")
1539 (commit (string-append "v" version))))
1540 (file-name (git-file-name name version))
1543 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1544 (build-system ruby-build-system)
1546 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1549 (modify-phases %standard-phases
1550 (add-after 'unpack 'relax-version-requiremens
1552 (delete-file "Gemfile")
1553 (delete-file "Gemfile.lock")
1555 (replace 'replace-git-ls-files
1557 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1558 ;; git ls-files output is merged in ruby-build-system.
1559 (substitute* "standard.gemspec"
1560 (("`git ls-files -z`")
1561 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1562 |sort -z|cut -zc3-`"))
1565 `(("ruby-gimme" ,ruby-gimme)
1566 ("ruby-pry" ,ruby-pry)
1567 ("ruby-simplecov" ,ruby-simplecov)))
1569 `(("ruby-rubocop" ,ruby-rubocop)
1570 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1571 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1572 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1573 to save time in the following ways:
1575 @item No configuration.
1576 @item Automatically format code.
1577 @item Catch style issues and programmer errors early.
1579 (home-page "https://github.com/testdouble/standard")
1580 (license license:expat)))
1582 (define-public ruby-chunky-png
1584 (name "ruby-chunky-png")
1590 (url "https://github.com/wvanbergen/chunky_png.git")
1591 (commit (string-append "v" version))))
1592 (file-name (git-file-name name version))
1594 (base32 "1m7y11ix38h5a2pj5v81qdmvqh980ql9hp62hk2dxwkwsa4nh22h"))))
1595 (build-system ruby-build-system)
1597 `(#:test-target "spec"
1599 (modify-phases %standard-phases
1600 (add-after 'unpack 'disable-bundler
1602 (substitute* (find-files "." "\\.rb$")
1603 (("require.*bundler/setup.*") ""))
1605 (replace 'replace-git-ls-files
1607 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1608 ;; git ls-files output is merged in ruby-build-system.
1609 (substitute* "chunky_png.gemspec"
1611 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1614 `(("bundler" ,bundler)
1615 ("ruby-rspec" ,ruby-rspec)
1616 ("ruby-standard" ,ruby-standard)
1617 ("ruby-yard" ,ruby-yard)))
1618 (synopsis "Ruby library to handle PNG images")
1619 (description "ChunkyPNG is a pure Ruby library that can read and write
1620 Portable Network Graphics (PNG) images without depending on an external image
1621 library. It tries to be memory efficient and reasonably fast. It has
1625 Decoding support for any image that the PNG standard allows. This includes all
1626 standard color modes, all bit depths, all transparency, and interlacing and
1629 Encoding support for images of all color modes (true color, grayscale, and
1630 indexed) and transparency for all these color modes. The best color mode is
1631 chosen automatically, based on the amount of used colors.
1632 @item Read/write access to the image's pixels.
1633 @item Read/write access to all image metadata that is stored in chunks.
1635 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1636 pixel, depending on the hardware).
1638 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1639 integer math and a highly optimized saving routine.
1640 @item Interoperability with RMagick.
1643 ChunkyPNG is vulnerable to decompression bombs and can run out of memory when
1644 loading a specifically crafted PNG file. This is hard to fix in pure Ruby.
1645 Deal with untrusted images in a separate process, e.g., by using @code{fork}
1646 or a background processing library.")
1647 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1648 (license license:expat)))
1650 (define-public ruby-text-hyphen
1652 (name "ruby-text-hyphen")
1657 (uri (rubygems-uri "text-hyphen" version))
1660 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1661 (build-system ruby-build-system)
1663 `(("ruby-hoe" ,ruby-hoe)))
1664 (synopsis "Ruby library to hyphenate words in various languages")
1665 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1666 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1667 properly hyphenate various words according to the rules of the language the
1668 word is written in. The algorithm is based on that of the TeX typesetting
1669 system by Donald E. Knuth.")
1670 (home-page "https://github.com/halostatue/text-hyphen")
1671 ;; The whole is licensed under the Expat license, but parts use various
1672 ;; versions of the LaTeX Project Public License.
1673 (license license:expat)))
1675 (define-public ruby-open-uri-cached
1677 (name "ruby-open-uri-cached")
1682 (uri (rubygems-uri "open-uri-cached" version))
1685 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1686 (build-system ruby-build-system)
1688 `(#:tests? #f)) ;no test suite
1689 (synopsis "OpenURI with transparent disk caching")
1690 (description "OpenURI with transparent disk caching, which is
1691 useful to avoid making excessive queries, for example when scraping
1693 (home-page "https://github.com/tigris/open-uri-cached")
1694 (license license:expat)))
1696 (define-public ruby-asciidoctor-pdf
1697 ;; Use the latest commit, as the last tag doesn't build with the
1698 ;; latest Ruby dependencies in Guix.
1699 (let ((revision "1")
1700 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1702 (name "ruby-asciidoctor-pdf")
1703 (version (git-version "1.5.3" revision commit))
1706 (method git-fetch) ;no test suite in the distributed gem
1708 (url "https://github.com/asciidoctor/asciidoctor-pdf.git")
1710 (file-name (git-file-name name version))
1713 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1714 (build-system ruby-build-system)
1716 `(#:test-target "spec"
1718 (modify-phases %standard-phases
1719 (add-after 'unpack 'remove-failing-tests
1720 ;; Two tests module fail for unknown reasons, *only* when
1721 ;; ran in the build container (see:
1722 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1724 (delete-file "spec/audio_spec.rb")
1725 (delete-file "spec/video_spec.rb")
1727 (add-after 'extract-gemspec 'strip-version-requirements
1729 (substitute* "asciidoctor-pdf.gemspec"
1730 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1731 (string-append stripped "\n")))
1733 (replace 'replace-git-ls-files
1734 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1735 ;; git ls-files output is merged in ruby-build-system.
1737 (substitute* "asciidoctor-pdf.gemspec"
1738 (("`git ls-files -z`")
1739 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1740 |sort -z|cut -zc3-`"))
1742 ;; The tests rely on the Gem being installed, so move the check phase
1743 ;; after the install phase.
1745 (add-after 'install 'check
1746 (lambda* (#:key outputs tests? #:allow-other-keys)
1747 (let ((new-gem (string-append (assoc-ref outputs "out")
1748 "/lib/ruby/vendor_ruby")))
1750 (string-append (getenv "GEM_PATH") ":" new-gem))
1752 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1755 `(("ruby-chunky-png" ,ruby-chunky-png)
1756 ("ruby-coderay" ,ruby-coderay)
1757 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1758 ("ruby-rouge" ,ruby-rouge)
1759 ("ruby-rspec" ,ruby-rspec)))
1761 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1762 ("ruby-concurrent-ruby" ,ruby-concurrent)
1763 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1764 ("ruby-prawn" ,ruby-prawn)
1765 ("ruby-prawn-icon" ,ruby-prawn-icon)
1766 ("ruby-prawn-svg" ,ruby-prawn-svg)
1767 ("ruby-prawn-table" ,ruby-prawn-table)
1768 ("ruby-prawn-templates" ,ruby-prawn-templates)
1769 ("ruby-safe-yaml" ,ruby-safe-yaml)
1770 ("ruby-text-hyphen" ,ruby-text-hyphen)
1771 ("ruby-thread-safe" ,ruby-thread-safe)
1772 ("ruby-treetop" ,ruby-treetop)
1773 ("ruby-ttfunk" ,ruby-ttfunk)))
1774 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1775 (description "Asciidoctor PDF is an extension for Asciidoctor that
1776 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1777 PDF library. It has features such as:
1779 @item Direct AsciiDoc to PDF conversion
1780 @item Configuration-driven theme (style and layout)
1781 @item Scalable Vector Graphics (SVG) support
1782 @item PDF document outline (i.e., bookmarks)
1783 @item Table of contents page(s)
1784 @item Document metadata (title, authors, subject, keywords, etc.)
1785 @item Internal cross reference links
1786 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1787 @item Page numbering
1788 @item Customizable running content (header and footer)
1790 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1791 @item Orphaned section titles avoided
1792 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1793 @item Table border settings honored
1794 @item Font-based icons
1795 @item Custom TrueType (TTF) fonts
1796 @item Double-sided printing mode (margins alternate on recto and verso pages)
1798 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1799 (license license:expat))))
1801 (define-public ruby-ast
1807 (method git-fetch) ;no test included in gem from v2.4.1
1809 (url "https://github.com/whitequark/ast")
1810 (commit (string-append "v" version))))
1811 (file-name (git-file-name name version))
1814 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1815 (build-system ruby-build-system)
1818 (modify-phases %standard-phases
1819 (add-after 'unpack 'remove-coveralls-requirement
1821 (substitute* "test/helper.rb"
1822 (("require 'coveralls'") "")
1823 (("Coveralls::SimpleCov::Formatter") ""))
1825 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1827 (substitute* "ast.gemspec"
1828 ((".*coveralls.*") "\n")
1829 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1830 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1831 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1834 `(("bundler" ,bundler)
1835 ("ruby-simplecov" ,ruby-simplecov)
1836 ("ruby-json-pure" ,ruby-json-pure)
1837 ("ruby-mime-times" ,ruby-mime-types)
1838 ("ruby-yard" ,ruby-yard)
1839 ("ruby-kramdown" ,ruby-kramdown)
1840 ("ruby-rest-client" ,ruby-rest-client)
1841 ("ruby-bacon" ,ruby-bacon)
1842 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1843 ("ruby-racc" ,ruby-racc)))
1844 (synopsis "Library for working with Abstract Syntax Trees")
1846 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1847 It does this through immutable data structures.")
1848 (home-page "https://whitequark.github.io/ast/")
1849 (license license:expat)))
1851 (define-public ruby-sporkmonger-rack-mount
1852 ;; Testing the addressable gem requires a newer commit than that released, so
1853 ;; use an up to date version.
1854 (let ((revision "1")
1855 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1857 (name "ruby-sporkmonger-rack-mount")
1858 (version (git-version "0.8.3" revision commit))
1862 (url "https://github.com/sporkmonger/rack-mount")
1864 (file-name (git-file-name name version))
1867 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1868 (build-system ruby-build-system)
1870 ;; Tests currently fail so disable them.
1871 ;; https://github.com/sporkmonger/rack-mount/pull/1
1873 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1874 (synopsis "Stackable dynamic tree based Rack router")
1876 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1877 continue trying routes if the response returns pass. This allows multiple
1878 routes to be nested or stacked on top of each other.")
1879 (home-page "https://github.com/sporkmonger/rack-mount")
1880 (license license:expat))))
1882 (define-public ruby-ci-reporter
1884 (name "ruby-ci-reporter")
1888 (uri (rubygems-uri "ci_reporter" version))
1891 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1892 (build-system ruby-build-system)
1894 `(#:test-target "rspec"))
1896 `(("ruby-builder" ,ruby-builder)))
1898 `(("bundler" ,bundler)
1899 ("ruby-rspec" ,ruby-rspec)))
1900 (synopsis "Generate XML reports of runs test")
1902 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1903 you to generate XML reports of your test runs. The resulting files can be
1904 read by a continuous integration system that understands Ant's JUnit report
1906 (home-page "https://github.com/nicksieger/ci_reporter")
1907 (license license:expat)))
1909 (define-public ruby-contracts
1911 (name "ruby-contracts")
1916 (uri (rubygems-uri "contracts" version))
1919 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1920 (build-system ruby-build-system)
1922 '(#:test-target "spec"
1924 (modify-phases %standard-phases
1925 ;; Don't run or require rubocop, the code linting tool, as this is a
1927 (add-after 'unpack 'dont-run-rubocop
1929 (substitute* "Rakefile"
1930 ((".*rubocop.*") "")
1931 ((".*RuboCop.*") ""))
1934 `(("ruby-rspec" ,ruby-rspec)))
1935 (synopsis "Method contracts for Ruby")
1937 "This library provides contracts for Ruby. A contract describes the
1938 correct inputs and output for a method, and will raise an error if a incorrect
1940 (home-page "https://github.com/egonSchiele/contracts.ruby")
1941 (license license:bsd-2)))
1943 (define-public ruby-crack
1950 (uri (rubygems-uri "crack" version))
1953 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1954 (build-system ruby-build-system)
1957 (modify-phases %standard-phases
1959 (lambda* (#:key tests? #:allow-other-keys)
1961 (for-each (lambda (file)
1962 (display file)(display "\n")
1963 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1964 (find-files "test" ".*rb$")))
1967 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1968 (synopsis "Simple JSON and XML parsing for Ruby")
1970 "@code{crack} provides really simple JSON and XML parsing, extracted from
1971 code in Merb and Rails.")
1972 (home-page "https://github.com/jnunemaker/crack")
1973 (license license:expat)))
1975 (define-public ruby-cliver
1977 (name "ruby-cliver")
1982 (uri (rubygems-uri "cliver" version))
1985 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1986 (build-system ruby-build-system)
1989 (modify-phases %standard-phases
1990 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1991 ;; would be nice, but the tests look to be incompatible:
1993 ;; NoMethodError: undefined method `last_comment'
1995 (lambda* (#:key tests? #:allow-other-keys)
2000 `(("bundler" ,bundler)
2001 ("ruby-rspec" ,ruby-rspec-2)))
2002 (synopsis "Assertions for command-line dependencies in Ruby")
2004 "@code{cliver} provides a way to detect missing command-line
2005 dependencies, including versions.")
2006 (home-page "https://github.com/yaauie/cliver")
2007 (license license:expat)))
2009 (define-public ruby-czmq-ffi-gen
2011 (name "ruby-czmq-ffi-gen")
2016 (uri (rubygems-uri "czmq-ffi-gen" version))
2019 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2020 (build-system ruby-build-system)
2022 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2024 (modify-phases %standard-phases
2025 (add-after 'unpack 'patch-lib_dirs
2026 (lambda* (#:key inputs #:allow-other-keys)
2027 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2028 (("lib\\_dirs = \\[.*\\]")
2029 (string-append "lib_dirs = ['"
2030 (assoc-ref inputs "czmq") "/lib"
2032 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2033 (("lib\\_dirs = \\[.*\\]")
2034 (string-append "lib_dirs = ['"
2035 (assoc-ref inputs "zeromq") "/lib"
2038 `(("zeromq" ,zeromq)
2040 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2041 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2043 "These Ruby bindings are not intended to be directly used, but rather
2044 used by higher level bindings like those provided by CZTop.")
2046 "https://github.com/paddor/czmq-ffi-gen")
2047 (license license:isc)))
2049 (define-public ruby-cztop
2056 (uri (rubygems-uri "cztop" version))
2059 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2060 (build-system ruby-build-system)
2062 '(#:test-target "spec"
2064 (modify-phases %standard-phases
2065 (add-after 'unpack 'patch-lib_paths
2066 (lambda* (#:key inputs #:allow-other-keys)
2067 (substitute* "lib/cztop/poller/zmq.rb"
2068 (("lib\\_paths = \\[.*\\]")
2069 (string-append "lib_paths = ['"
2070 (assoc-ref inputs "zeromq") "/lib"
2073 `(("bundler" ,bundler)
2074 ("ruby-rspec" ,ruby-rspec)))
2076 `(("zeromq" ,zeromq)))
2078 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2079 (synopsis "CZMQ Ruby bindings")
2081 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2082 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2083 support for security mechanisms.")
2084 (home-page "https://github.com/paddor/cztop")
2085 (license license:isc)))
2087 (define-public ruby-saikuro-treemap
2089 (name "ruby-saikuro-treemap")
2093 (uri (rubygems-uri "saikuro_treemap" version))
2096 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2097 (build-system ruby-build-system)
2098 ;; Some of the tests fail because the generated JSON has keys in a
2099 ;; different order. This is a problem with the test suite rather than any
2100 ;; of the involved libraries.
2101 (arguments `(#:tests? #f))
2103 `(("ruby-json-pure" ,ruby-json-pure)
2104 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2105 (synopsis "Generate complexity treemap based on saikuro analysis")
2107 "This gem generates a treemap showing the complexity of Ruby code on
2108 which it is run. It uses Saikuro under the covers to analyze Ruby code
2110 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2111 (license license:expat)))
2113 (define-public ruby-oauth2
2115 (name "ruby-oauth2")
2120 (uri (rubygems-uri "oauth2" version))
2122 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2123 (build-system ruby-build-system)
2125 '(#:tests? #f)) ; no included tests
2127 `(("ruby-faraday" ,ruby-faraday)
2128 ("ruby-jwt" ,ruby-jwt)
2129 ("ruby-multi-json" ,ruby-multi-json)
2130 ("ruby-multi-xml" ,ruby-multi-xml)
2131 ("ruby-rack" ,ruby-rack)))
2132 (synopsis "Ruby wrapper for the OAuth 2.0")
2134 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2135 with a similar style to the original OAuth spec.")
2136 (home-page "https://github.com/oauth-xx/oauth2")
2137 (license license:expat)))
2139 (define-public ruby-omniauth
2141 (name "ruby-omniauth")
2146 (uri (rubygems-uri "omniauth" version))
2148 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2149 (build-system ruby-build-system)
2151 '(#:tests? #f)) ; No included tests
2153 `(("ruby-hashie" ,ruby-hashie)
2154 ("ruby-rack" ,ruby-rack)))
2155 (synopsis "Generalized Rack framework for multiple-provider authentication")
2157 "This package provides a generalized Rack framework for multiple-provider
2159 (home-page "https://github.com/omniauth/omniauth")
2160 (license license:expat)))
2162 (define-public ruby-omniauth-oauth2
2164 (name "ruby-omniauth-oauth2")
2169 (uri (rubygems-uri "omniauth-oauth2" version))
2172 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2173 (build-system ruby-build-system)
2176 (modify-phases %standard-phases
2177 (add-after 'unpack 'remove-unnecessary-dependencies
2179 ;; The coveralls gem submits coverage information to an online
2180 ;; service, and is unnecessary when running the tests
2181 (substitute* "Gemfile"
2182 ((".*coveralls\"") ""))
2183 (substitute* "spec/helper.rb"
2184 (("require \"coveralls\"") "")
2185 (("Coveralls::SimpleCov::Formatter") ""))
2188 `(("ruby-oauth2" ,ruby-oauth2)
2189 ("ruby-omniauth" ,ruby-omniauth)))
2191 `(("bundler" ,bundler)
2192 ("ruby-rspec" ,ruby-rspec)
2193 ("ruby-simplecov" ,ruby-simplecov)
2194 ("ruby-rack-test" ,ruby-rack-test)
2195 ("ruby-webmock" ,ruby-webmock-2)))
2196 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2198 "This library provides a generic OAuth2 strategy for OmniAuth. It
2199 doesn't provide a way to gather user information, so should be used as a
2200 building block for authentication strategies.")
2201 (home-page "https://github.com/omniauth/omniauth-oauth2")
2202 (license license:expat)))
2204 (define-public ruby-open4
2211 (uri (rubygems-uri "open4" version))
2214 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2215 (build-system ruby-build-system)
2218 (modify-phases %standard-phases
2219 (add-after 'unpack 'patch
2221 (substitute* "rakefile"
2222 ;; Update the Rakefile so it works
2223 (("-rubygems") "-rrubygems")
2224 (("Config") "RbConfig"))
2226 (add-before 'check 'set-LIB
2228 ;; This is used in the rakefile when running the tests
2229 (setenv "LIB" "open4")
2231 (synopsis "Open child processes from Ruby and manage them easily")
2233 "@code{Open4} is a Ruby library to run child processes and manage their
2235 (home-page "https://github.com/ahoward/open4")
2236 (license license:ruby)))
2238 (define-public ruby-options
2240 (name "ruby-options")
2245 (uri (rubygems-uri "options" version))
2248 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2249 (build-system ruby-build-system)
2251 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2253 (modify-phases %standard-phases
2254 (add-before 'check 'set-LIB
2256 ;; This is used in the Rakefile, and setting it avoids an issue
2257 ;; with running the tests.
2258 (setenv "LIB" "options")
2260 (synopsis "Ruby library to parse options from *args cleanly")
2262 "The @code{options} library helps with parsing keyword options in Ruby
2264 (home-page "https://github.com/ahoward/options")
2265 (license license:ruby)))
2267 (define-public ruby-erubi
2274 (uri (rubygems-uri "erubi" version))
2277 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2278 (build-system ruby-build-system)
2279 (synopsis "ERB template engine for Ruby")
2281 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2283 (home-page "https://github.com/jeremyevans/erubi")
2284 (license license:expat)))
2286 (define-public ruby-erubis
2288 (name "ruby-erubis")
2293 (uri (rubygems-uri "erubis" version))
2296 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2297 (build-system ruby-build-system)
2299 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2300 (synopsis "Implementation of embedded Ruby (eRuby)")
2302 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2303 features such as multi-language support, auto escaping, auto trimming spaces
2304 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2306 (home-page "http://www.kuwata-lab.com/erubis/")
2307 (license license:expat)))
2309 (define-public ruby-execjs
2311 (name "ruby-execjs")
2315 ;; fetch from github as the gem does not contain testing code
2318 (url "https://github.com/rails/execjs")
2319 (commit (string-append "v" version))))
2320 (file-name (git-file-name name version))
2323 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2324 (build-system ruby-build-system)
2326 `(("bundler" ,bundler)
2327 ;; The test suite tests all the available backends. Currenly, this just
2328 ;; means the node backend.
2330 ;; PASSED: test:node
2331 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2332 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2334 (synopsis "Run JavaScript code from Ruby")
2336 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2337 runtime to evaluate your JavaScript program, then returns the result to you as
2339 (home-page "https://github.com/rails/execjs")
2340 (license license:expat)))
2342 (define-public ruby-fakefs
2344 (name "ruby-fakefs")
2346 (home-page "https://github.com/fakefs/fakefs")
2348 ;; The Rubygems release does not contain tests.
2352 (commit (string-append "v" version))))
2353 (file-name (git-file-name name version))
2356 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2357 (build-system ruby-build-system)
2359 '(#:phases (modify-phases %standard-phases
2360 (replace 'replace-git-ls-files
2362 (substitute* "fakefs.gemspec"
2363 (("`git ls-files lib README.md LICENSE`")
2364 "`find lib README.md LICENSE -type f | sort`"))
2366 (add-before 'check 'remove-version-constraints
2368 ;; Drop hard version requirements for test dependencies.
2369 (substitute* "fakefs.gemspec"
2370 (("(.*add_development_dependency .*), .*" _ dep)
2371 (string-append dep "\n")))
2374 `(("ruby-bump" ,ruby-bump)
2375 ("ruby-maxitest" ,ruby-maxitest)
2376 ("ruby-rubocop" ,ruby-rubocop)
2377 ("ruby-rspec" ,ruby-rspec)))
2378 (synopsis "Fake file system for Ruby")
2380 "This package provides a fake file system for use in test suites. It
2381 avoids the need for manually creating temporary directories, or dealing
2382 with platform intricacies in @code{File} and @code{FileUtils}.")
2383 (license license:expat)))
2385 (define-public ruby-orderedhash
2387 (name "ruby-orderedhash")
2391 (uri (rubygems-uri "orderedhash" version))
2394 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2395 (build-system ruby-build-system)
2397 '(#:tests? #f)) ; no test suite
2398 (synopsis "Ruby library providing an order-preserving hash")
2399 (description "Orderedhash is a Ruby library providing a hash
2400 implementation that preserves the order of items and features some array-like
2402 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2403 (license license:public-domain)))
2405 (define-public ruby-libxml
2407 (name "ruby-libxml")
2412 (uri (rubygems-uri "libxml-ruby" version))
2415 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2416 (build-system ruby-build-system)
2419 ("libxml2" ,libxml2)))
2421 '(#:tests? #f ; test suite hangs for unknown reason
2423 (list "--no-document" ; TODO: Re-enable when documentation
2426 (string-append "--with-xml2-include="
2427 (assoc-ref %build-inputs "libxml2")
2428 "/include/libxml2" ))))
2429 (synopsis "Ruby bindings for GNOME Libxml2")
2430 (description "The Libxml-Ruby project provides Ruby language bindings for
2431 the GNOME Libxml2 XML toolkit.")
2432 (home-page "https://xml4r.github.com/libxml-ruby")
2433 (license license:expat)))
2435 (define-public ruby-lino
2442 (uri (rubygems-uri "lino" version))
2445 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2446 (build-system ruby-build-system)
2448 '(#:tests? #f)) ; No included tests
2450 `(("ruby-hamster" ,ruby-hamster)
2451 ("ruby-open4" ,ruby-open4)))
2452 (synopsis "Build and execute commands in Ruby")
2454 "@code{Lino} provides an interface to run external commands. It provides
2455 an interface to add options as well as managing the standard input, output and
2457 (home-page "https://github.com/tobyclemson/lino")
2458 (license license:expat)))
2460 (define-public ruby-xml-simple
2462 (name "ruby-xml-simple")
2466 (uri (rubygems-uri "xml-simple" version))
2469 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2470 (build-system ruby-build-system)
2472 '(#:tests? #f)) ; no test suite
2473 (synopsis "Simple Ruby library for XML processing")
2474 (description "This library provides a simple API for XML processing in
2476 (home-page "https://github.com/maik/xml-simple")
2477 (license license:ruby)))
2479 (define-public ruby-thor
2484 ;; Pull from git because the gem has no tests.
2487 (url "https://github.com/erikhuda/thor")
2488 (commit (string-append "v" version))))
2489 (file-name (git-file-name name version))
2492 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2493 (build-system ruby-build-system)
2495 '(#:phases (modify-phases %standard-phases
2496 (add-after 'unpack 'fix-readline-tests
2498 ;; Ensure Readline is initialized before running the
2499 ;; test to avoid a type clash with the mock ::Readline.
2500 ;; See <https://github.com/erikhuda/thor/pull/717>.
2501 (substitute* "spec/line_editor/readline_spec.rb"
2502 (("unless defined\\? ::Readline" all)
2503 (string-append "Thor::LineEditor::Readline.available?\n"
2506 (add-after 'unpack 'remove-coveralls-dependency
2508 ;; Do not hook the test suite into the online
2509 ;; coveralls service.
2510 (substitute* "Gemfile"
2511 ((".*coveralls.*") ""))
2512 (substitute* "spec/helper.rb"
2513 (("require \"coveralls\"") "")
2514 (("Coveralls::SimpleCov::Formatter") "")
2515 ;; Also drop the WebMock dependency which is only
2516 ;; present to allow a coveralls.io connection, and
2517 ;; would otherwise introduce a circular dependency.
2518 (("require \"webmock/rspec\"") "")
2519 (("WebMock\\.disable_net_connect.*") ""))
2521 (add-after 'unpack 'disable-network-tests
2523 ;; These tests attempt to look up example.com.
2524 (substitute* "spec/actions/file_manipulation_spec.rb"
2525 (("it \"accepts (https?) remote sources" _ proto)
2526 (string-append "xit \"accepts " proto " remote sources")))
2528 (add-after 'unpack 'disable-quality-tests
2530 ;; These tests attempt to check the git repository for
2531 ;; tabs vs spaces, double vs single quotes, etc, and
2532 ;; depend on the git checkout.
2533 (delete-file "spec/quality_spec.rb")
2535 (add-before 'check 'make-files-writable
2537 ;; The tests needs rw access to the test suite.
2538 (for-each make-file-writable (find-files "spec"))
2542 (invoke "rspec" "spec"))))))
2544 `(("ruby-rspec" ,ruby-rspec)
2545 ("ruby-simplecov" ,ruby-simplecov)))
2546 (synopsis "Ruby toolkit for building command-line interfaces")
2547 (description "Thor is a toolkit for building powerful command-line
2549 (home-page "http://whatisthor.com/")
2550 (license license:expat)))
2552 (define-public ruby-lumberjack
2554 (name "ruby-lumberjack")
2558 (uri (rubygems-uri "lumberjack" version))
2561 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2562 (build-system ruby-build-system)
2564 `(("ruby-rspec" ,ruby-rspec)
2565 ("ruby-timecop" ,ruby-timecop)))
2566 (synopsis "Logging utility library for Ruby")
2567 (description "Lumberjack is a simple logging utility that can be a drop in
2568 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2569 for automatically rolling log files even with multiple processes writing the
2571 (home-page "https://github.com/bdurand/lumberjack")
2572 (license license:expat)))
2574 (define-public ruby-rbnacl
2576 (name "ruby-rbnacl")
2581 (uri (rubygems-uri "rbnacl" version))
2584 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2585 (build-system ruby-build-system)
2588 (modify-phases %standard-phases
2589 (add-after 'unpack 'remove-unnecessary-dependencies
2591 ;; Coveralls relates to a network service, and Rubocop to code
2592 ;; linting and both are unnecessary to run the tests
2593 (substitute* "Gemfile"
2594 ((".*rubocop.*") "\n")
2595 ((".*guard-rspec.*") "\n")
2596 ((".*coveralls.*") "\n"))
2597 (substitute* "spec/spec_helper.rb"
2598 (("require \"coveralls\"") "")
2599 (("Coveralls.wear!") ""))
2601 (add-after 'unpack 'use-libsodium-from-store
2602 (lambda* (#:key inputs #:allow-other-keys)
2603 (substitute* '("lib/rbnacl/init.rb"
2604 "lib/rbnacl/sodium.rb")
2605 (("ffi_lib \\[.+\\]")
2606 (string-append "ffi_lib [\""
2607 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2610 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2612 (lambda* (#:key tests? #:allow-other-keys)
2617 `(("ruby-ffi" ,ruby-ffi)))
2619 `(("libsodium" ,libsodium)))
2621 `(("bundler" ,bundler)
2622 ("ruby-rspec" ,ruby-rspec)))
2623 (synopsis "Ruby FFI binding to libsodium")
2625 "This package provides Ruby FFI bindings to the Networking and
2626 Cryptography (NaCl) library, also known as libsodium. This provides a
2627 high-level toolkit for building cryptographic systems and protocols.")
2628 (home-page "https://github.com/crypto-rb/rbnacl")
2629 (license license:expat)))
2631 (define-public ruby-nenv
2637 (uri (rubygems-uri "nenv" version))
2640 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2641 (build-system ruby-build-system)
2643 `(#:tests? #f)) ; no tests included
2645 `(("ruby-rspec" ,ruby-rspec)
2646 ("bundler" ,bundler)))
2647 (synopsis "Ruby interface for modifying the environment")
2648 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2649 and inspect the environment.")
2650 (home-page "https://github.com/e2/nenv")
2651 (license license:expat)))
2653 (define-public ruby-ptools
2655 (name "ruby-ptools")
2659 (uri (rubygems-uri "ptools" version))
2662 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2663 (build-system ruby-build-system)
2665 '(#:phases (modify-phases %standard-phases
2666 (add-after 'unpack 'patch-/bin/ls
2668 (substitute* "test/test_binary.rb"
2672 (add-before 'install 'create-gem
2674 ;; Do not attempt to sign the gem.
2675 (substitute* "Rakefile"
2676 (("spec\\.signing_key = .*")
2678 (invoke "rake" "gem:create"))))))
2679 (synopsis "Extra methods for Ruby's @code{File} class")
2681 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2682 class with many additional methods modelled after common POSIX tools, such as
2683 @code{File.which} for finding executables, @code{File.tail} to print the last
2684 lines of a file, @code{File.wc} to count words, and so on.")
2685 (home-page "https://github.com/djberg96/ptools")
2686 (license license:artistic2.0)))
2688 (define-public ruby-permutation
2690 (name "ruby-permutation")
2694 (uri (rubygems-uri "permutation" version))
2697 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2698 (build-system ruby-build-system)
2701 (modify-phases %standard-phases
2702 (add-after 'unpack 'fix-rakefile
2704 (substitute* "Rakefile"
2705 (("require 'rake/gempackagetask'")
2706 "require 'rubygems/package_task'")
2707 (("include Config") ""))
2711 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2712 (synopsis "Library to perform operations with sequence permutations")
2713 (description "This package provides a Ruby library to perform different
2714 operations with permutations of sequences, such as strings and arrays.")
2715 (home-page "https://flori.github.io/permutation")
2716 (license license:gpl2))) ; GPL 2 only
2718 (define-public ruby-shellany
2720 (name "ruby-shellany")
2724 (uri (rubygems-uri "shellany" version))
2727 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2728 (build-system ruby-build-system)
2730 `(#:test-target "default"
2732 (modify-phases %standard-phases
2733 (add-after 'unpack 'fix-version-test
2735 (substitute* "spec/shellany_spec.rb"
2736 (("^RSpec") "require \"shellany\"\nRSpec"))
2739 `(("ruby-rspec" ,ruby-rspec)
2740 ("ruby-nenv" ,ruby-nenv)
2741 ("bundler" ,bundler)))
2742 (synopsis "Capture command output")
2743 (description "Shellany is a Ruby library providing functions to capture
2744 the output produced by running shell commands.")
2745 (home-page "https://rubygems.org/gems/shellany")
2746 (license license:expat)))
2748 (define-public ruby-notiffany
2750 (name "ruby-notiffany")
2754 (uri (rubygems-uri "notiffany" version))
2757 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2758 (build-system ruby-build-system)
2759 ;; Tests are not included in the gem.
2760 (arguments `(#:tests? #f))
2762 `(("ruby-shellany" ,ruby-shellany)
2763 ("ruby-nenv" ,ruby-nenv)))
2765 `(("bundler" ,bundler)))
2766 (synopsis "Wrapper library for notification libraries")
2767 (description "Notiffany is a Ruby wrapper library for notification
2768 libraries such as Libnotify.")
2769 (home-page "https://github.com/guard/notiffany")
2770 (license license:expat)))
2772 (define-public ruby-forking-test-runner
2774 (name "ruby-forking-test-runner")
2776 (home-page "https://github.com/grosser/forking_test_runner")
2779 (uri (git-reference (url home-page)
2780 (commit (string-append "v" version))))
2781 (file-name (git-file-name name version))
2784 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2785 (build-system ruby-build-system)
2787 '(#:test-target "spec"
2788 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2789 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2791 #:phases (modify-phases %standard-phases
2792 (replace 'replace-git-ls-files
2794 (substitute* "forking_test_runner.gemspec"
2795 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2796 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2798 (add-before 'check 'remove-version-constraints
2800 ;; Ignore hard coded version constraints for the tests.
2801 (delete-file "Gemfile.lock")
2803 (add-before 'check 'set-HOME
2805 ;; Many tests invoke Bundler, and fails when Bundler
2806 ;; warns that /homeless-shelter does not exist.
2807 (setenv "HOME" "/tmp")
2810 `(("ruby-activerecord" ,ruby-activerecord)
2811 ("ruby-bump" ,ruby-bump)
2812 ("ruby-rspec" ,ruby-rspec)
2813 ("ruby-sqlite3" ,ruby-sqlite3)
2814 ("ruby-wwtd" ,ruby-wwtd)))
2816 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2817 (synopsis "Run every test in a fork")
2819 "This package is a wrapper around @code{parallel_tests} that runs every
2820 test in a fork to avoid pollution and get clean output per test.")
2821 (license license:expat)))
2823 (define-public ruby-formatador
2825 (name "ruby-formatador")
2829 (uri (rubygems-uri "formatador" version))
2832 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2833 (build-system ruby-build-system)
2834 ;; Circular dependency: Tests require ruby-shindo, which requires
2835 ;; ruby-formatador at runtime.
2836 (arguments `(#:tests? #f))
2837 (synopsis "Ruby library to format text on stdout")
2838 (description "Formatador is a Ruby library to format text printed to the
2839 standard output stream.")
2840 (home-page "https://github.com/geemus/formatador")
2841 (license license:expat)))
2843 (define-public ruby-fuubar
2845 (name "ruby-fuubar")
2849 ;; Fetch from the git repository, as the gem package doesn't include
2853 (url "https://github.com/thekompanee/fuubar")
2854 (commit (string-append "releases/v" version))))
2855 (file-name (git-file-name name version))
2858 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2859 (build-system ruby-build-system)
2861 '(;; TODO: Some tests fail, unsure why.
2862 ;; 21 examples, 7 failures
2865 (modify-phases %standard-phases
2866 (add-before 'build 'delete-certificate
2868 ;; Remove 's.cert_chain' as we do not build with a private key
2869 (substitute* "fuubar.gemspec"
2870 ((".*cert_chain.*") "")
2871 ((".*signing_key.*") ""))
2874 (lambda* (#:key tests? #:allow-other-keys)
2879 `(("bundler" ,bundler)))
2881 `(("ruby-rspec-core" ,ruby-rspec-core)
2882 ("ruby-progressbar" ,ruby-progressbar)))
2883 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2885 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2886 string of letters and dots as feedback. It also stops on the first test
2888 (home-page "https://github.com/thekompanee/fuubar")
2889 (license license:expat)))
2891 (define-public ruby-haml
2898 (uri (rubygems-uri "haml" version))
2901 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2902 (build-system ruby-build-system)
2904 '(#:tests? #f)) ; No included tests
2906 `(("ruby-tilt" ,ruby-tilt)
2907 ("ruby-temple" ,ruby-temple)))
2908 (synopsis "Haml is a Ruby library to generate HTML documents")
2910 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2911 HTML or XML that is designed to express the structure of documents using
2912 indentation rather than closing tags. It was originally envisioned as a
2913 plugin for Ruby on Rails, but it can function as a stand-alone templating
2915 (home-page "http://haml.info/")
2916 (license license:expat)))
2918 (define-public ruby-hamster
2920 (name "ruby-hamster")
2925 (uri (rubygems-uri "hamster" version))
2928 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2929 (build-system ruby-build-system)
2932 (modify-phases %standard-phases
2933 (add-after 'unpack 'remove-unnecessary-dependencies
2935 ;; pry is a debugging tool, and is unnecessary when running the
2937 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2938 (("require 'pry'") ""))
2939 (substitute* "spec/spec_helper.rb"
2940 (("require \"pry\"") "")
2941 ;; CodeClimate is an online service, and is unnecessary for
2942 ;; running the tests
2943 (("require \"codeclimate-test-reporter\"") "")
2944 (("CodeClimate.*\n") ""))
2946 ;; No Rakefile is included, so run rspec directly.
2948 (lambda* (#:key tests? #:allow-other-keys)
2953 `(("ruby-concurrent" ,ruby-concurrent)))
2955 `(("ruby-rspec" ,ruby-rspec)))
2956 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2958 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2959 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2960 immutable queue or stack).")
2961 (home-page "https://github.com/hamstergem/hamster")
2962 (license license:expat)))
2964 (define-public ruby-hashdiff
2966 (name "ruby-hashdiff")
2971 (uri (rubygems-uri "hashdiff" version))
2974 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2975 (build-system ruby-build-system)
2978 (modify-phases %standard-phases
2979 ;; Run tests directly via rspec to avoid Rake issue:
2980 ;; NoMethodError: undefined method `last_comment'
2982 (lambda* (#:key tests? #:allow-other-keys)
2987 `(("bundler" ,bundler)
2988 ("ruby-rspec" ,ruby-rspec-2)))
2989 (synopsis "HashDiff computes the smallest difference between two hashes")
2991 "HashDiff is a Ruby library to compute the smallest difference between
2993 (home-page "https://github.com/liufengyun/hashdiff")
2994 (license license:expat)))
2996 (define-public ruby-hydra
2998 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
3002 (version (git-version "0.0" revision commit))
3003 (home-page "https://github.com/hyphenation/hydra")
3006 (uri (git-reference (url home-page) (commit commit)))
3007 (file-name (git-file-name name version))
3010 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3011 (build-system ruby-build-system)
3013 '(#:phases (modify-phases %standard-phases
3014 (add-after 'unpack 'make-files-writable
3016 (for-each make-file-writable (find-files "."))
3020 (invoke "rspec"))))))
3022 `(("ruby-rspec" ,ruby-rspec)))
3024 `(("ruby-byebug" ,ruby-byebug)))
3025 (synopsis "Ruby hyphenation patterns")
3027 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3028 (license license:expat))))
3030 (define-public ruby-shindo
3032 (name "ruby-shindo")
3036 (uri (rubygems-uri "shindo" version))
3039 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3040 (build-system ruby-build-system)
3042 `(#:test-target "shindo_tests"
3044 (modify-phases %standard-phases
3045 (add-after 'unpack 'fix-tests
3047 (substitute* "tests/tests_helper.rb"
3049 (substitute* "Rakefile"
3050 (("system \"shindo") "system \"./bin/shindo")
3051 ;; This test doesn't work, so we disable it.
3052 (("fail \"The build_error test should fail") "#")
3053 ((" -rubygems") ""))
3056 `(("ruby-formatador" ,ruby-formatador)))
3057 (synopsis "Simple depth first Ruby testing")
3058 (description "Shindo is a simple depth first testing library for Ruby.")
3059 (home-page "https://github.com/geemus/shindo")
3060 (license license:expat)))
3062 (define-public ruby-rubygems-tasks
3064 (name "ruby-rubygems-tasks")
3068 (uri (rubygems-uri "rubygems-tasks" version))
3071 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3072 (build-system ruby-build-system)
3073 ;; Tests need Internet access.
3074 (arguments `(#:tests? #f))
3076 `(("ruby-rspec" ,ruby-rspec)
3077 ("ruby-yard" ,ruby-yard)))
3078 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3079 (description "Rubygems-task provides Rake tasks for managing and releasing
3081 (home-page "https://github.com/postmodern/rubygems-tasks")
3082 (license license:expat)))
3084 (define-public ruby-rubyzip
3086 (name "ruby-rubyzip")
3091 (uri (rubygems-uri "rubyzip" version))
3094 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3095 (build-system ruby-build-system)
3098 (modify-phases %standard-phases
3099 (add-before 'check 'patch-tests
3100 (lambda* (#:key inputs #:allow-other-keys)
3101 (substitute* "test/gentestfiles.rb"
3104 (assoc-ref inputs "zip") "/bin/zip")))
3105 (substitute* "test/input_stream_test.rb"
3106 (("/usr/bin/env ruby") (which "ruby")))
3109 `(("bundler" ,bundler)
3110 ("ruby-simplecov" ,ruby-simplecov)
3113 (synopsis "Ruby module is for reading and writing zip files")
3115 "The rubyzip module provides ways to read from and create zip files.")
3116 (home-page "https://github.com/rubyzip/rubyzip")
3117 (license license:bsd-2)))
3119 (define-public ruby-simplecov-html
3121 (name "ruby-simplecov-html")
3125 (uri (rubygems-uri "simplecov-html" version))
3128 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3129 (build-system ruby-build-system)
3130 (arguments `(#:tests? #f)) ; there are no tests
3132 `(("bundler" ,bundler)))
3133 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3134 (description "This package provides the default HTML formatter for
3135 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3136 (home-page "https://github.com/colszowka/simplecov-html")
3137 (license license:expat)))
3139 (define-public ruby-simplecov
3141 (name "ruby-simplecov")
3145 (uri (rubygems-uri "simplecov" version))
3148 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3149 (build-system ruby-build-system)
3150 ;; Simplecov depends on rubocop for code style checking at build time.
3151 ;; Rubocop needs simplecov at build time.
3152 (arguments `(#:tests? #f))
3154 `(("ruby-json" ,ruby-json)
3155 ("ruby-docile" ,ruby-docile)
3156 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3158 `(("bundler" ,bundler)))
3159 (synopsis "Code coverage framework for Ruby")
3160 (description "SimpleCov is a code coverage framework for Ruby with a
3161 powerful configuration library and automatic merging of coverage across test
3163 (home-page "https://github.com/colszowka/simplecov")
3164 (license license:expat)))
3166 (define-public ruby-useragent
3168 (name "ruby-useragent")
3172 (uri (rubygems-uri "useragent" version))
3175 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3176 (build-system ruby-build-system)
3178 '(#:tests? #f)) ; no test suite
3179 (synopsis "HTTP user agent parser for Ruby")
3180 (description "UserAgent is a Ruby library that parses and compares HTTP
3182 (home-page "https://github.com/gshutler/useragent")
3183 (license license:expat)))
3185 (define-public ruby-backports
3187 (name "ruby-backports")
3192 (uri (rubygems-uri "backports" version))
3195 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3196 (build-system ruby-build-system)
3198 '(;; TODO: This should be default, but there is one test failure
3199 #:test-target "all_spec"))
3201 `(("ruby-mspec" ,ruby-mspec)
3202 ("ruby-activesupport" ,ruby-activesupport)))
3203 (synopsis "Backports of the features in newer Ruby versions")
3205 "Backports enables more compatibility across Ruby versions by providing
3206 backports of some features.")
3207 (home-page "https://github.com/marcandre/backports")
3208 (license license:expat)))
3210 (define-public ruby-bacon
3216 (uri (rubygems-uri "bacon" version))
3219 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3220 (build-system ruby-build-system)
3221 (synopsis "Small RSpec clone")
3222 (description "Bacon is a small RSpec clone providing all essential
3224 (home-page "https://github.com/chneukirchen/bacon")
3225 (license license:expat)))
3227 (define-public ruby-bacon-bits
3229 (name "ruby-bacon-bits")
3234 (uri (rubygems-uri "bacon-bits" version))
3237 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3238 (build-system ruby-build-system)
3242 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3243 (synopsis "Extensions to Bacon, for disabling tests, before and after
3246 "This extends the bacon testing framework with useful extensions to
3247 disable tests, have before and after blocks that run once and more.")
3248 (home-page "https://github.com/cldwalker/bacon-bits")
3249 (license license:expat)))
3251 (define-public ruby-bacon-colored-output
3253 (name "ruby-bacon-colored-output")
3258 (uri (rubygems-uri "bacon-colored_output" version))
3261 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3262 (build-system ruby-build-system)
3264 '(;; No included tests
3267 `(("ruby-bacon" ,ruby-bacon)))
3268 (synopsis "Colored output for Bacon test framework")
3270 "This package adds color through ANSI escape codes to Bacon test
3272 (home-page "https://github.com/whitequark/bacon-colored_output")
3273 (license license:expat)))
3275 (define-public ruby-connection-pool
3277 (name "ruby-connection-pool")
3281 (uri (rubygems-uri "connection_pool" version))
3284 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3285 (build-system ruby-build-system)
3287 `(("bundler" ,bundler)))
3288 (synopsis "Generic connection pool for Ruby")
3289 (description "Connection_pool provides a generic connection pooling
3290 interface for Ruby programs.")
3291 (home-page "https://github.com/mperham/connection_pool")
3292 (license license:expat)))
3294 (define-public ruby-fast-gettext
3296 (name "ruby-fast-gettext")
3298 (home-page "https://github.com/grosser/fast_gettext")
3301 (uri (git-reference (url home-page)
3302 (commit (string-append "v" version))))
3303 (file-name (git-file-name name version))
3306 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3307 (build-system ruby-build-system)
3309 '(#:test-target "spec"
3310 #:phases (modify-phases %standard-phases
3311 (add-before 'check 'remove-version-constraints
3313 (delete-file "Gemfile.lock")
3315 (add-before 'check 'remove-activerecord-test
3317 ;; FIXME: This test fails because ActiveRecord depends on
3318 ;; a different version of ruby-sqlite than the currently
3321 "spec/fast_gettext/translation_repository/db_spec.rb")
3323 (add-before 'check 'disable-i18n-test
3325 ;; XXX: This test checks i18n intricasies with Rails 3 and
3326 ;; automatically disables itself for Rails 4.0, but does
3327 ;; not know about newer versions as it has not been updated
3328 ;; since 2014. Disable for later versions of Rails too.
3329 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3330 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3331 "ActiveRecord::VERSION::MINOR == 0"))
3332 "ActiveRecord::VERSION::MAJOR >= 4"))
3336 ("ruby-activerecord" ,ruby-activerecord)
3337 ("ruby-activesupport" ,ruby-activesupport)
3338 ("ruby-bump" ,ruby-bump)
3339 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3340 ("ruby-i18n" ,ruby-i18n)
3341 ("ruby-rubocop" ,ruby-rubocop)
3342 ("ruby-rspec" ,ruby-rspec)
3343 ("ruby-single-cov" ,ruby-single-cov)
3344 ("ruby-sqlite3" ,ruby-sqlite3)
3345 ("ruby-wwtd" ,ruby-wwtd)))
3346 (synopsis "Fast implementation of @code{GetText}")
3348 "This package provides an alternative implementation of the Ruby
3349 @code{GetText} library that is approximately 12x faster yet thread safe.")
3350 ;; Some parts are covered by the Ruby license, see file headers.
3351 (license (list license:expat license:ruby))))
3353 (define-public ruby-net-http-persistent
3355 (name "ruby-net-http-persistent")
3359 (uri (rubygems-uri "net-http-persistent" version))
3362 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3363 (build-system ruby-build-system)
3365 `(("ruby-connection-pool" ,ruby-connection-pool)
3366 ("ruby-hoe" ,ruby-hoe)))
3367 (synopsis "Persistent HTTP connection manager")
3368 (description "Net::HTTP::Persistent manages persistent HTTP connections
3369 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3370 (home-page "https://github.com/drbrain/net-http-persistent")
3371 (license license:expat)))
3373 (define-public ruby-power-assert
3375 (name "ruby-power-assert")
3379 (uri (rubygems-uri "power_assert" version))
3382 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3383 (build-system ruby-build-system)
3385 '(#:tests? #f)) ; No included tests
3387 `(("bundler" ,bundler)))
3388 (synopsis "Assert library with descriptive assertion messages")
3389 (description "Power-assert is an assertion library providing descriptive
3390 assertion messages for tests.")
3391 (home-page "https://github.com/k-tsj/power_assert")
3392 (license (list license:bsd-2 license:ruby))))
3394 (define-public ruby-powerpack
3396 (name "ruby-powerpack")
3401 (uri (rubygems-uri "powerpack" version))
3404 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3405 (build-system ruby-build-system)
3407 '(#:test-target "spec"))
3409 `(("bundler" ,bundler)
3410 ("ruby-rspec" ,ruby-rspec)
3411 ("ruby-yard" ,ruby-yard)))
3412 (synopsis "Useful extensions to core Ruby classes")
3414 "This package provides a few useful extensions to core Ruby classes,
3415 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3417 (home-page "https://github.com/bbatsov/powerpack")
3418 (license license:expat)))
3420 (define-public ruby-locale
3422 (name "ruby-locale")
3426 (uri (rubygems-uri "locale" version))
3429 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3430 (build-system ruby-build-system)
3431 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3432 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3433 ;; dependency cycle we disable tests.
3434 (arguments `(#:tests? #f))
3436 `(("bundler" ,bundler)
3437 ("ruby-yard" ,ruby-yard)))
3438 (synopsis "Ruby library providing basic localization APIs")
3440 "Ruby-Locale is the pure ruby library which provides basic APIs for
3442 (home-page "https://github.com/ruby-gettext/locale")
3443 (license (list license:lgpl3+ license:ruby))))
3445 (define-public ruby-temple
3447 (name "ruby-temple")
3452 (uri (rubygems-uri "temple" version))
3455 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3456 (build-system ruby-build-system)
3458 `(("ruby-tilt" ,ruby-tilt)
3459 ("ruby-bacon" ,ruby-bacon)
3460 ("ruby-erubis" ,ruby-erubis)))
3461 (synopsis "Template compilation framework in Ruby")
3463 "Temple is an abstraction and framework for compiling templates to pure
3465 (home-page "https://github.com/judofyr/temple")
3466 (license license:expat)))
3468 (define-public ruby-text
3474 (uri (rubygems-uri "text" version))
3477 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3478 (build-system ruby-build-system)
3479 (synopsis "Collection of text algorithms for Ruby")
3481 "This package provides a collection of text algorithms: Levenshtein,
3482 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3483 (home-page "https://github.com/threedaymonk/text")
3484 (license license:expat)))
3486 (define-public ruby-gettext
3488 (name "ruby-gettext")
3492 (uri (rubygems-uri "gettext" version))
3495 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3496 (build-system ruby-build-system)
3497 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3498 ;; which needs ruby-gettext. To break the dependency cycle we disable
3500 (arguments `(#:tests? #f))
3502 `(("ruby-locale" ,ruby-locale)
3503 ("ruby-text" ,ruby-text)))
3505 `(("bundler" ,bundler)
3506 ("ruby-yard" ,ruby-yard)))
3507 (synopsis "GNU gettext-like program for Ruby")
3509 "Gettext is a GNU gettext-like program for Ruby. The catalog
3510 file (po-file) used is the same as that used by GNU gettext, allowing you to
3511 use GNU gettext tools for maintenance.")
3512 (home-page "https://ruby-gettext.github.com/")
3513 (license (list license:lgpl3+ license:ruby))))
3515 (define-public ruby-packnga
3517 (name "ruby-packnga")
3521 (uri (rubygems-uri "packnga" version))
3524 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3525 (build-system ruby-build-system)
3526 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3527 ;; To break the dependency cycle we disable tests.
3528 (arguments `(#:tests? #f))
3530 `(("ruby-gettext" ,ruby-gettext)
3531 ("ruby-yard" ,ruby-yard)))
3533 `(("bundler" ,bundler)))
3534 (synopsis "Utility library to package internationalized libraries")
3536 "Packnga is a library to translate to many languages using YARD.")
3537 (home-page "http://ranguba.org/packnga/")
3538 (license license:lgpl2.0+)))
3540 (define-public ruby-test-construct
3542 (name "ruby-test-construct")
3547 (uri (rubygems-uri "test_construct" version))
3550 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3551 (build-system ruby-build-system)
3553 `(("bundler" ,bundler)
3554 ("ruby-mocha" ,ruby-mocha)
3555 ("ruby-rspec" ,ruby-rspec)))
3556 (synopsis "Creates temporary files and directories for testing")
3558 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3559 temporary files and directories during tests.")
3560 (home-page "https://github.com/bhb/test_construct")
3561 (license license:expat)))
3563 (define-public ruby-test-unit
3565 (name "ruby-test-unit")
3569 (uri (rubygems-uri "test-unit" version))
3572 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3573 (build-system ruby-build-system)
3575 `(("ruby-power-assert" ,ruby-power-assert)))
3577 `(("bundler" ,bundler)
3578 ("ruby-packnga" ,ruby-packnga)
3579 ("ruby-yard" ,ruby-yard)))
3580 (synopsis "Unit testing framework for Ruby")
3581 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3582 on xUnit principles. These were originally designed by Kent Beck, creator of
3583 extreme programming software development methodology, for Smalltalk's SUnit.
3584 It allows writing tests, checking results and automated testing in Ruby.")
3585 (home-page "https://test-unit.github.io/")
3586 (license (list license:psfl license:ruby))))
3588 (define-public ruby-markaby
3590 (name "ruby-markaby")
3595 (uri (rubygems-uri "markaby" version))
3598 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3599 (build-system ruby-build-system)
3602 (modify-phases %standard-phases
3603 ;; Run rspec manually without using the Rakefile, as the versions of
3604 ;; Rake and RSpec 2 are incompatible:
3606 ;; NoMethodError: undefined method `last_comment'
3608 (lambda* (#:key tests? #:allow-other-keys)
3613 `(("ruby-builder" ,ruby-builder)))
3615 `(("bundler" ,bundler)
3616 ("ruby-rspec" ,ruby-rspec-2)))
3617 (synopsis "Write HTML pages in pure Ruby")
3619 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3620 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3621 mixture of HTML and additional ERB syntax.")
3622 (home-page "https://markaby.github.io/")
3623 (license license:expat)))
3625 (define-public ruby-maruku
3627 (name "ruby-maruku")
3632 (uri (rubygems-uri "maruku" version))
3635 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3636 (build-system ruby-build-system)
3638 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3641 (modify-phases %standard-phases
3643 (lambda* (#:key tests? #:allow-other-keys)
3648 `(("ruby-rspec" ,ruby-rspec)
3649 ("ruby-simplecov" ,ruby-simplecov)
3650 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3651 (synopsis "Markdown interpreter in Ruby")
3653 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3654 HTML, and PDF through LaTeX.")
3655 (home-page "https://github.com/bhollis/maruku")
3656 (license license:expat)))
3658 (define-public ruby-metaclass
3660 (name "ruby-metaclass")
3664 (uri (rubygems-uri "metaclass" version))
3667 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3668 (build-system ruby-build-system)
3671 (modify-phases %standard-phases
3672 (add-after 'unpack 'add-test-unit-to-search-path
3673 (lambda* (#:key inputs #:allow-other-keys)
3674 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3675 (substitute* "Rakefile"
3676 (("t\\.libs << \"test\"" line)
3677 (string-append line "; t.libs << \""
3678 test-unit "/lib/ruby/vendor_ruby"
3680 ,(package-version ruby-test-unit)
3684 `(("bundler" ,bundler)
3685 ("ruby-test-unit" ,ruby-test-unit)))
3686 (synopsis "Ruby library adding metaclass method to all objects")
3688 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3690 (home-page "https://github.com/floehopper/metaclass")
3691 (license license:expat)))
3693 (define-public ruby-mkmf-lite
3695 (name "ruby-mkmf-lite")
3699 (uri (rubygems-uri "mkmf-lite" version))
3702 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3703 (build-system ruby-build-system)
3705 `(("ruby-ptools" ,ruby-ptools)))
3706 (synopsis "Lightweight alternative to @code{mkmf}")
3708 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3709 for use as a library. It does not create packages, builds, or log files of
3710 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3711 to check for the presence of header files, constants, and so on.")
3712 (home-page "https://github.com/djberg96/mkmf-lite")
3713 (license license:asl2.0)))
3715 (define-public ruby-mspec
3722 (uri (rubygems-uri "mspec" version))
3725 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3726 (build-system ruby-build-system)
3728 '(;; TODO: 3 test failures
3729 ;; ./spec/mocks/mock_spec.rb:82
3730 ;; ./spec/utils/name_map_spec.rb:151
3731 ;; ./spec/utils/name_map_spec.rb:155
3734 (modify-phases %standard-phases
3735 (add-after 'extract-gemspec 'change-dependency-constraints
3737 (substitute* "mspec.gemspec"
3738 (("rake.*") "rake>)\n")
3739 (("rspec.*") "rspec>)\n"))
3742 (lambda* (#:key tests? #:allow-other-keys)
3744 (invoke "rspec" "spec"))
3747 `(("bundler" ,bundler)
3748 ("ruby-rake" ,ruby-rake)
3749 ("ruby-rspec" ,ruby-rspec)))
3750 (synopsis "MSpec is a specialized framework for RubySpec")
3752 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3753 for basic features. MSpec contains additional features that assist in writing
3754 specs for Ruby implementations in ruby/spec.")
3755 (home-page "http://rubyspec.org")
3756 (license license:expat)))
3758 (define-public ruby-mysql2
3760 (name "ruby-mysql2")
3766 (url "https://github.com/brianmario/mysql2")
3768 (file-name (git-file-name name version))
3771 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3772 (build-system ruby-build-system)
3774 '(;; TODO: Tests require a running MySQL/MariaDB service
3777 (modify-phases %standard-phases
3778 (replace 'replace-git-ls-files
3780 (substitute* "mysql2.gemspec"
3781 (("git ls-files .*`") "find . -type f |sort`"))
3783 (add-before 'install 'set-MAKEFLAGS
3784 (lambda* (#:key outputs #:allow-other-keys)
3788 "prefix=" (assoc-ref outputs "out")))
3790 ;; Move the 'check phase to after 'install, as then you can test
3791 ;; using the installed mysql2 gem in the store.
3793 (add-after 'install 'check
3794 (lambda* (#:key outputs tests? #:allow-other-keys)
3799 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3804 `(("mariadb-dev" ,mariadb "dev")
3807 `(("ruby-rspec" ,ruby-rspec)
3808 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3809 (synopsis "MySQL library for Ruby, binding to libmysql")
3811 "This package provides a simple, fast MySQL library for Ruby, binding to
3813 (home-page "https://github.com/brianmario/mysql2")
3814 (license license:expat)))
3816 (define-public ruby-blankslate
3818 (name "ruby-blankslate")
3822 (uri (rubygems-uri "blankslate" version))
3825 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3826 (build-system ruby-build-system)
3829 (modify-phases %standard-phases
3831 (lambda _ (invoke "rspec" "spec/"))))))
3833 `(("bundler" ,bundler)
3834 ("ruby-rspec" ,ruby-rspec)))
3835 (synopsis "Abstract base class with no predefined methods")
3837 "BlankSlate provides an abstract base class with no predefined
3838 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3839 as a base class when writing classes that depend upon
3840 @code{method_missing} (e.g. dynamic proxies).")
3841 (home-page "https://github.com/masover/blankslate")
3842 (license license:expat)))
3844 (define-public ruby-bond
3851 (uri (rubygems-uri "bond" version))
3854 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3855 (build-system ruby-build-system)
3857 ;; The test suite fails (see:
3858 ;; https://github.com/cldwalker/bond/issues/46).
3861 `(("ruby-bacon" ,ruby-bacon)
3862 ("ruby-bacon-bits" ,ruby-bacon-bits)
3863 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3864 (synopsis "Bond can provide custom autocompletion for arguments, methods
3867 "Bond can autocomplete argument(s) to methods, uniquely completing per
3868 module, per method and per argument. Bond provides a configuration system and
3869 a DSL for creating custom completions and completion rules. Bond can also
3870 load completions that ship with gems. Bond is able to offer more than irb's
3871 completion since it uses the full line of input when completing as opposed to
3872 irb's last-word approach.")
3873 (home-page "http://tagaholic.me/bond/")
3874 (license license:expat)))
3876 (define-public ruby-idn-ruby
3878 (name "ruby-idn-ruby")
3883 (uri (rubygems-uri "idn-ruby" version))
3886 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3887 (build-system ruby-build-system)
3890 (modify-phases %standard-phases
3892 (add-after 'install 'check
3893 (lambda* (#:key tests? outputs #:allow-other-keys)
3895 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3896 (name-and-version (basename gem-file ".gem")))
3900 (assoc-ref outputs "out")
3901 "/lib/ruby/vendor_ruby/gems/"
3904 (find-files "./test" ".*\\.rb"))))
3907 `(("libidn" ,libidn)))
3908 (synopsis "Ruby Bindings for the GNU LibIDN library")
3910 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3911 Stringprep, Punycode and IDNA specifications. These are used to encode and
3912 decode internationalized domain + names according to the IDNA2003
3915 Included are the most important parts of the Stringprep, Punycode and IDNA
3916 APIs like performing Stringprep processings, encoding to and decoding from
3917 Punycode strings and converting entire domain names to and from the ACE
3919 (home-page "https://github.com/deepfryed/idn-ruby")
3920 (license license:asl2.0)))
3922 (define-public ruby-instantiator
3924 (name "ruby-instantiator")
3928 (uri (rubygems-uri "instantiator" version))
3931 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3932 (build-system ruby-build-system)
3935 (modify-phases %standard-phases
3936 (add-after 'unpack 'add-test-unit-to-search-path
3937 (lambda* (#:key inputs #:allow-other-keys)
3938 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3939 (substitute* "Rakefile"
3940 (("t\\.libs << \"test\"" line)
3941 (string-append line "; t.libs << \""
3942 test-unit "/lib/ruby/vendor_ruby"
3944 ,(package-version ruby-test-unit)
3948 `(("ruby-blankslate" ,ruby-blankslate)))
3950 `(("bundler" ,bundler)
3951 ("ruby-test-unit" ,ruby-test-unit)))
3952 (synopsis "Instantiate an arbitrary Ruby class")
3954 "Instantiator lets you instantiate an arbitrary Ruby class without
3955 knowing anything about the constructor.")
3956 (home-page "https://github.com/floehopper/instantiator")
3957 (license license:expat)))
3959 (define-public ruby-introspection
3961 (name "ruby-introspection")
3965 (uri (rubygems-uri "introspection" version))
3968 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3969 (build-system ruby-build-system)
3972 (modify-phases %standard-phases
3973 (add-after 'unpack 'add-test-unit-to-search-path
3974 (lambda* (#:key inputs #:allow-other-keys)
3975 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3976 (substitute* "Rakefile"
3977 (("t\\.libs << \"test\"" line)
3978 (string-append line "; t.libs << \""
3979 test-unit "/lib/ruby/vendor_ruby"
3981 ,(package-version ruby-test-unit)
3985 `(("ruby-instantiator" ,ruby-instantiator)
3986 ("ruby-metaclass" ,ruby-metaclass)))
3988 `(("bundler" ,bundler)
3989 ("ruby-blankslate" ,ruby-blankslate)
3990 ("ruby-test-unit" ,ruby-test-unit)))
3991 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
3993 "Introspection provides tools to inspect the hierarchy of method
3994 definitions on a Ruby object.")
3995 (home-page "https://github.com/floehopper/introspection")
3996 (license license:expat)))
3998 (define-public ruby-redcarpet
4000 (name "ruby-redcarpet")
4004 (uri (rubygems-uri "redcarpet" version))
4007 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
4008 (build-system ruby-build-system)
4011 (modify-phases %standard-phases
4012 ;; The gem archive does not include the conformance tests.
4013 (add-after 'unpack 'disable-conformance-tests
4015 (substitute* "Rakefile"
4016 (("task :test => %w\\[test:unit test:conformance\\]")
4017 "task :test => %w[test:unit]"))
4020 `(("bundler" ,bundler)
4021 ("ruby-test-unit" ,ruby-test-unit)
4022 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4023 (synopsis "Extensible Markdown to (X)HTML converter")
4025 "Redcarpet is an extensible Ruby library for Markdown processing and
4026 conversion to (X)HTML.")
4027 (home-page "https://github.com/vmg/redcarpet")
4028 (license license:expat)))
4030 (define-public ruby-rerun
4037 (uri (rubygems-uri "rerun" version))
4040 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4041 (build-system ruby-build-system)
4043 '(#:tests? #f)) ; No included tests
4045 `(("ruby-listen" ,ruby-listen)))
4046 (synopsis "Run a process, and restart when some monitored files change")
4048 "Rerun is a tool to launch programs, then monitor the file system, and
4049 restart the program when any of the monitored files change. It's written in
4050 Ruby, but can be used for all programs.")
4051 (home-page "https://github.com/alexch/rerun/")
4052 (license license:expat)))
4054 (define-public ruby-maxitest
4056 (name "ruby-maxitest")
4058 (home-page "https://github.com/grosser/maxitest")
4060 ;; Pull from git because the gem does not contain tests.
4064 (commit (string-append "v" version))))
4065 (file-name (git-file-name name version))
4068 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4069 (build-system ruby-build-system)
4071 '(#:test-target "default"
4072 #:phases (modify-phases %standard-phases
4073 (replace 'replace-git-ls-files
4075 (substitute* "maxitest.gemspec"
4076 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4077 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4079 (add-before 'check 'remove-version-constraints
4081 ;; Don't use specific versions of dependencies, instead
4082 ;; take whatever is available in Guix.
4083 (delete-file "Gemfile.lock")
4085 (add-before 'check 'add-mtest-on-PATH
4087 ;; Tests use 'mtest' which is not automatically added on
4089 (setenv "PATH" (string-append (getcwd) "/bin:"
4094 ("ruby-bump" ,ruby-bump)
4095 ("ruby-byebug" ,ruby-byebug)
4096 ("ruby-rspec" ,ruby-rspec)
4097 ("ruby-wwtd" ,ruby-wwtd)))
4099 `(("ruby-minitest" ,ruby-minitest)))
4100 (synopsis "Minitest with extra features")
4102 "Maxitest is a wrapper around Minitest with extra functionality such
4103 as timeouts, an @command{mtest} executable that can run tests by line
4104 number, support for interrupted tests, better backtraces, and more.")
4105 (license license:expat)))
4107 (define-public ruby-mocha
4113 (uri (rubygems-uri "mocha" version))
4116 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4117 (build-system ruby-build-system)
4120 (modify-phases %standard-phases
4121 (add-before 'check 'remove-rubocop-dependency
4123 ;; Disable dependency on Rubocop, which is just a linter,
4124 ;; and would introduce a circular dependency.
4125 (substitute* "mocha.gemspec"
4130 `(("ruby-introspection" ,ruby-introspection)))
4131 (synopsis "Mocking and stubbing library for Ruby")
4133 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4134 allows mocking and stubbing of methods on real (non-mock) classes.")
4135 (home-page "http://gofreerange.com/mocha/docs")
4136 ;; Mocha can be used with either license at the users choice.
4137 (license (list license:expat license:ruby))))
4139 (define-public ruby-mocha-on-bacon
4141 (name "ruby-mocha-on-bacon")
4146 (uri (rubygems-uri "mocha-on-bacon" version))
4149 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4150 (build-system ruby-build-system)
4152 ;; rubygems.org release missing tests
4154 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4155 (synopsis "Mocha adapter for Bacon")
4157 "This package provides a Mocha adapter for Bacon, allowing you to use the
4158 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4160 "https://github.com/alloy/mocha-on-bacon")
4161 (license license:expat)))
4163 (define-public ruby-net-ssh
4165 (name "ruby-net-ssh")
4169 (uri (rubygems-uri "net-ssh" version))
4172 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4173 (build-system ruby-build-system)
4175 `(("bundler" ,bundler)
4176 ("ruby-mocha" ,ruby-mocha)
4177 ("ruby-test-unit" ,ruby-test-unit)))
4178 (synopsis "Ruby implementation of the SSH2 client protocol")
4179 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4180 client protocol. It allows you to write programs that invoke and interact
4181 with processes on remote servers, via SSH2.")
4182 (home-page "https://github.com/net-ssh/net-ssh")
4183 (license license:expat)))
4185 (define-public ruby-net-scp
4187 (name "ruby-net-scp")
4188 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4189 (version "1.2.2.rc2")
4194 (url "https://github.com/net-ssh/net-scp")
4195 (commit (string-append "v" version))))
4196 (file-name (git-file-name name version))
4198 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4199 (build-system ruby-build-system)
4201 `(("bundler" ,bundler)
4202 ("ruby-test-unit" ,ruby-test-unit)
4203 ("ruby-mocha" ,ruby-mocha)))
4205 `(("ruby-net-ssh" ,ruby-net-ssh)))
4206 (synopsis "Pure-Ruby SCP client library")
4207 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4209 (home-page "https://github.com/net-ssh/net-scp")
4210 (license license:expat)))
4212 (define-public ruby-minitest
4214 (name "ruby-minitest")
4218 (uri (rubygems-uri "minitest" version))
4221 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4222 (build-system ruby-build-system)
4224 `(("ruby-hoe" ,ruby-hoe)))
4225 (synopsis "Small test suite library for Ruby")
4226 (description "Minitest provides a complete suite of Ruby testing
4227 facilities supporting TDD, BDD, mocking, and benchmarking.")
4228 (home-page "https://github.com/seattlerb/minitest")
4229 (license license:expat)))
4231 ;; This is the last release of Minitest 4, which is used by some packages.
4232 (define-public ruby-minitest-4
4233 (package (inherit ruby-minitest)
4237 (uri (rubygems-uri "minitest" version))
4240 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4243 (modify-phases %standard-phases
4244 (add-after 'unpack 'remove-unsupported-method
4246 (substitute* "Rakefile"
4247 (("self\\.rubyforge_name = .*") ""))
4249 (add-after 'build 'exclude-failing-tests
4251 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4253 (delete-file "test/minitest/test_minitest_spec.rb")
4256 (define-public ruby-minitest-around
4258 (name "ruby-minitest-around")
4263 (uri (rubygems-uri "minitest-around" version))
4266 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4267 (build-system ruby-build-system)
4270 (modify-phases %standard-phases
4271 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4273 (substitute* "minitest-around.gemspec"
4274 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4277 `(("ruby-minitest" ,ruby-minitest)))
4279 `(("bundler" ,bundler)
4280 ("ruby-cucumber" ,ruby-cucumber)
4281 ("ruby-bump" ,ruby-bump)
4282 ("ruby-test-construct" ,ruby-test-construct)))
4283 (synopsis "Run code around tests in Minitest")
4285 "This library provides a way to run code around tests in Minitest,
4286 written using either the unit test or spec style.")
4287 (home-page "https://github.com/splattael/minitest-around")
4288 (license license:expat)))
4290 (define-public ruby-minitest-sprint
4292 (name "ruby-minitest-sprint")
4296 (uri (rubygems-uri "minitest-sprint" version))
4299 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4300 (build-system ruby-build-system)
4302 `(("ruby-hoe" ,ruby-hoe)
4303 ("ruby-minitest" ,ruby-minitest)))
4304 (synopsis "Fast test suite runner for minitest")
4305 (description "Minitest-sprint is a test runner for minitest that makes it
4306 easier to re-run individual failing tests.")
4307 (home-page "https://github.com/seattlerb/minitest-sprint")
4308 (license license:expat)))
4310 (define-public ruby-minitest-bacon
4312 (name "ruby-minitest-bacon")
4316 (uri (rubygems-uri "minitest-bacon" version))
4319 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4320 (build-system ruby-build-system)
4322 `(("ruby-hoe" ,ruby-hoe)))
4324 `(("ruby-minitest" ,ruby-minitest)))
4325 (synopsis "Bacon compatibility library for minitest")
4326 (description "Minitest-bacon extends minitest with bacon-like
4327 functionality, making it easier to migrate test suites from bacon to minitest.")
4328 (home-page "https://github.com/seattlerb/minitest-bacon")
4329 (license license:expat)))
4331 (define-public ruby-minitest-focus
4333 (name "ruby-minitest-focus")
4338 (uri (rubygems-uri "minitest-focus" version))
4341 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4342 (build-system ruby-build-system)
4344 `(("ruby-minitest" ,ruby-minitest)))
4346 `(("ruby-hoe" ,ruby-hoe)))
4347 (synopsis "Allows a few specific tests to be focused on")
4349 "@code{minitest-focus} gives the ability focus on a few tests with ease
4350 without having to use command-line arguments. It introduces a @code{focus}
4351 class method for use in testing classes, specifying that the next defined test
4353 (home-page "https://github.com/seattlerb/minitest-focus")
4354 (license license:expat)))
4356 (define-public ruby-minitest-pretty-diff
4357 ;; Use git reference because gem is out of date and does not contain testing
4358 ;; script. There are no releases on GitHub.
4359 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4361 (name "ruby-minitest-pretty-diff")
4362 (version (string-append "0.1-1." (string-take commit 8)))
4366 (url "https://github.com/adammck/minitest-pretty_diff")
4368 (file-name (string-append name "-" version "-checkout"))
4371 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4372 (build-system ruby-build-system)
4375 (modify-phases %standard-phases
4378 (invoke "script/test"))))))
4380 `(("bundler" ,bundler)
4381 ("ruby-turn" ,ruby-turn)))
4382 (synopsis "Pretty-print hashes and arrays in MiniTest")
4384 "@code{minitest-pretty_diff} monkey-patches
4385 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4386 diffing them. This makes it easier to spot differences between nested
4387 structures when tests fail.")
4388 (home-page "https://github.com/adammck/minitest-pretty_diff")
4389 (license license:expat))))
4391 (define-public ruby-minitest-moar
4393 (name "ruby-minitest-moar")
4398 (uri (rubygems-uri "minitest-moar" version))
4401 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4402 (build-system ruby-build-system)
4405 (modify-phases %standard-phases
4406 (add-before 'check 'clean-dependencies
4408 ;; Remove all gems defined in the Gemfile because these are not
4410 (substitute* "Gemfile"
4412 ;; Remove byebug as not needed to run tests.
4413 (substitute* "test/test_helper.rb"
4414 (("require 'byebug'") ""))
4417 `(("bundler" ,bundler)
4418 ("ruby-minitest" ,ruby-minitest)))
4419 (synopsis "Extra features and changes to MiniTest")
4420 (description "@code{MiniTest Moar} add some additional features and
4421 changes some default behaviours in MiniTest. For instance, Moar replaces the
4422 MiniTest @code{Object#stub} with a global @code{stub} method.")
4423 (home-page "https://github.com/dockyard/minitest-moar")
4424 (license license:expat)))
4426 (define-public ruby-minitest-bonus-assertions
4428 (name "ruby-minitest-bonus-assertions")
4433 (uri (rubygems-uri "minitest-bonus-assertions" version))
4436 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4437 (build-system ruby-build-system)
4440 (modify-phases %standard-phases
4441 (add-before 'check 'clean-dependencies
4443 ;; Remove unneeded require statement that would entail another
4445 (substitute* "test/minitest_config.rb"
4446 (("require 'minitest/bisect'") ""))
4449 `(("ruby-hoe" ,ruby-hoe)
4450 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4451 ("ruby-minitest-focus" ,ruby-minitest-focus)
4452 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4453 (synopsis "Bonus assertions for @code{Minitest}")
4455 "Minitest bonus assertions provides extra MiniTest assertions. For
4456 instance, it provides @code{assert_true}, @code{assert_false} and
4457 @code{assert_set_equal}.")
4458 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4459 (license license:expat)))
4461 (define-public ruby-minitest-reporters
4463 (name "ruby-minitest-reporters")
4468 (uri (rubygems-uri "minitest-reporters" version))
4471 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4472 (build-system ruby-build-system)
4475 (modify-phases %standard-phases
4476 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4477 ;; including it as an input can lead to circular dependencies.
4478 (add-after 'unpack 'remove-rubocop-from-Rakefile
4480 (substitute* "Rakefile"
4481 (("require 'rubocop/rake\\_task'") "")
4482 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4484 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4486 (substitute* "minitest-reporters.gemspec"
4487 ((".*%q<rubocop>.*") "\n"))
4490 `(("ruby-ansi" ,ruby-ansi)
4491 ("ruby-builder" ,ruby-builder)
4492 ("ruby-minitest" ,ruby-minitest)
4493 ("ruby-progressbar" ,ruby-progressbar)))
4495 `(("bundler" ,bundler)
4496 ("ruby-maruku" ,ruby-maruku)))
4497 (synopsis "Enhanced reporting for Minitest tests")
4499 "@code{minitest/reporters} provides a custom Minitest runner to improve
4500 how the test state is reported. A number of different reporters are
4501 available, including a spec reporter, progress bar reporter, a HTML
4503 (home-page "https://github.com/kern/minitest-reporters")
4504 (license license:expat)))
4506 (define-public ruby-minitest-rg
4508 (name "ruby-minitest-rg")
4513 (uri (rubygems-uri "minitest-rg" version))
4516 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4517 (build-system ruby-build-system)
4519 ;; Some tests fail even outside Guix, so disable tests.
4520 ;; https://github.com/blowmage/minitest-rg/issues/12
4521 ;; https://github.com/blowmage/minitest-rg/pull/13
4524 `(("ruby-minitest" ,ruby-minitest)))
4525 (synopsis "Coloured output for Minitest")
4527 "@code{minitest-rg} changes the colour of the output from Minitest.")
4528 (home-page "https://blowmage.com/minitest-rg/")
4529 (license license:expat)))
4531 (define-public ruby-minitest-global-expectations
4533 (name "ruby-minitest-global-expectations")
4538 (uri (rubygems-uri "minitest-global_expectations"
4542 "1pp3k2608spj4kvqy2y16hs18an917g6vwgvphrfhjviac83090x"))))
4543 (build-system ruby-build-system)
4545 `(("ruby-minitest" ,ruby-minitest)))
4546 (synopsis "Adjust minitest behaviour for calling expectation methods")
4548 "Minitest-global_expectations allows continued use of expectation methods
4549 on all objects. Calling expectation methods on all objects was deprecated in
4550 minitest 5.12, and is planned to be removed from minitest 6.")
4551 (home-page "https://github.com/jeremyevans/minitest-global_expectations")
4552 (license license:expat)))
4554 (define-public ruby-minitest-hooks
4556 (name "ruby-minitest-hooks")
4561 (uri (rubygems-uri "minitest-hooks" version))
4564 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4565 (build-system ruby-build-system)
4567 '(#:test-target "spec"))
4569 `(("ruby-sequel" ,ruby-sequel)
4570 ("ruby-sqlite3" ,ruby-sqlite3)))
4571 (synopsis "Hooks for the minitest framework")
4573 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4574 @code{around_all} hooks for Minitest. This allows, for instance, running each
4575 suite of specs inside a database transaction, running each spec inside its own
4576 savepoint inside that transaction. This can significantly speed up testing
4577 for specs that share expensive database setup code.")
4578 (home-page "https://github.com/jeremyevans/minitest-hooks")
4579 (license license:expat)))
4581 (define-public ruby-daemons
4583 (name "ruby-daemons")
4587 (uri (rubygems-uri "daemons" version))
4590 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4591 (build-system ruby-build-system)
4593 `(#:tests? #f)) ; no test suite
4594 (synopsis "Daemonize Ruby programs")
4595 (description "Daemons provides a way to wrap existing Ruby scripts to be
4596 run as a daemon and to be controlled by simple start/stop/restart commands.")
4597 (home-page "https://github.com/thuehlinger/daemons")
4598 (license license:expat)))
4600 (define-public ruby-data_uri
4602 (name "ruby-data_uri")
4607 (uri (rubygems-uri "data_uri" version))
4610 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4611 (build-system ruby-build-system)
4612 (synopsis "URI class for parsing data URIs")
4614 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4615 embedded inside a URI. The URI::Data class provides support for parsing these
4616 URIs using the normal URI.parse method.")
4617 (home-page "https://github.com/dball/data_uri")
4618 (license license:expat)))
4620 (define-public ruby-deep-merge
4622 (name "ruby-deep-merge")
4624 (home-page "https://github.com/danielsdeleo/deep_merge")
4625 ;; The Rubygem source does not contain the gemspec required for tests.
4628 (uri (git-reference (url home-page) (commit version)))
4629 (file-name (git-file-name name version))
4632 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4633 (build-system ruby-build-system)
4635 `(("ruby-minitest" ,ruby-minitest)))
4636 (synopsis "Recursively merge hashes")
4638 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4639 you to merge elements inside a hash together recursively.")
4640 (license license:expat)))
4642 (define-public ruby-git
4648 (uri (rubygems-uri "git" version))
4651 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4652 (build-system ruby-build-system)
4654 `(#:tests? #f ; no tests
4655 #:phases (modify-phases %standard-phases
4656 (add-after 'install 'patch-git-binary
4657 (lambda* (#:key inputs outputs #:allow-other-keys)
4658 ;; Make the default git binary an absolute path to the
4660 (let ((git (string-append (assoc-ref inputs "git")
4662 (config (string-append
4663 (assoc-ref outputs "out")
4664 "/lib/ruby/vendor_ruby/gems/git-"
4665 ,version "/lib/git/config.rb")))
4666 (substitute* (list config)
4668 (string-append "'" git "'")))
4672 (synopsis "Ruby wrappers for Git")
4673 (description "Ruby/Git is a Ruby library that can be used to create, read
4674 and manipulate Git repositories by wrapping system calls to the git binary.")
4675 (home-page "https://github.com/schacon/ruby-git")
4676 (license license:expat)))
4678 (define-public ruby-hocon
4682 (home-page "https://github.com/puppetlabs/ruby-hocon")
4685 (uri (git-reference (url home-page) (commit version)))
4686 (file-name (git-file-name name version))
4689 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4690 (build-system ruby-build-system)
4692 '(#:phases (modify-phases %standard-phases
4694 (lambda* (#:key tests? #:allow-other-keys)
4697 (format #t "test suite not run~%"))
4700 `(("bundler" ,bundler)
4701 ("ruby-rspec" ,ruby-rspec)))
4702 (synopsis "HOCON config library")
4704 "This package provides Ruby support for the @acronym{HOCON,
4705 Human-Optimized Config Object Notation} configuration file format. It
4706 supports parsing and modifying HOCON and JSON files, and rendering parsed
4707 objects back to a @code{String}.")
4708 (license license:asl2.0)))
4710 (define-public ruby-slop
4716 (uri (rubygems-uri "slop" version))
4719 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4720 (build-system ruby-build-system)
4722 `(("ruby-minitest" ,ruby-minitest)))
4723 (synopsis "Ruby command line option parser")
4724 (description "Slop provides a Ruby domain specific language for gathering
4725 options and parsing command line flags.")
4726 (home-page "https://github.com/leejarvis/slop")
4727 (license license:expat)))
4729 (define-public ruby-slop-3
4730 (package (inherit ruby-slop)
4734 (uri (rubygems-uri "slop" version))
4737 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4739 (define-public ruby-multi-xml
4741 (name "ruby-multi-xml")
4746 (uri (rubygems-uri "multi_xml" version))
4749 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4750 (build-system ruby-build-system)
4752 '(#:tests? #f)) ; No included tests
4753 (synopsis "Swappable XML backends for Ruby")
4755 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4756 Nokogiri, Ox, or REXML.")
4757 (home-page "https://github.com/sferik/multi_xml")
4758 (license license:expat)))
4760 (define-public ruby-multipart-post
4762 (name "ruby-multipart-post")
4766 (uri (rubygems-uri "multipart-post" version))
4769 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4770 (build-system ruby-build-system)
4772 `(("bundler" ,bundler)))
4773 (synopsis "Multipart POST library for Ruby")
4774 (description "Multipart-Post Adds multipart POST capability to Ruby's
4776 (home-page "https://github.com/nicksieger/multipart-post")
4777 (license license:expat)))
4779 (define-public ruby-multi-json
4781 (name "ruby-multi-json")
4786 ;; Tests are not distributed at rubygems.org so download from GitHub
4789 (url "https://github.com/intridea/multi_json")
4790 (commit (string-append "v" version))))
4791 (file-name (git-file-name name version))
4794 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4795 (build-system ruby-build-system)
4798 (modify-phases %standard-phases
4799 (add-after 'unpack 'remove-signing-key-reference
4801 (substitute* "multi_json.gemspec"
4802 ((".*spec.signing_key.*") ""))
4805 `(("bundler" ,bundler)
4806 ("ruby-rspec" ,ruby-rspec)
4807 ("ruby-yard" ,ruby-yard)
4808 ("ruby-json-pure" ,ruby-json-pure)
4809 ("ruby-oj" ,ruby-oj)
4810 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4811 (synopsis "Common interface to multiple JSON libraries for Ruby")
4813 "This package provides a common interface to multiple JSON libraries,
4814 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4815 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4816 (home-page "https://github.com/intridea/multi_json")
4817 (license license:expat)))
4819 (define-public ruby-multi-test
4821 (name "ruby-multi-test")
4826 (uri (rubygems-uri "multi_test" version))
4829 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4830 (build-system ruby-build-system)
4832 '(;; Tests require different sets of specific gem versions to be available,
4833 ;; and there is no gemfile that specifies the newest versions of
4834 ;; dependencies to be tested.
4837 "Interface to testing libraries loaded into a running Ruby process")
4839 "@code{multi_test} provides a uniform interface onto whatever testing
4840 libraries that have been loaded into a running Ruby process to help control
4841 rogue test/unit/autorun requires.")
4842 (home-page "https://github.com/cucumber/multi_test")
4843 (license license:expat)))
4845 (define-public ruby-arel
4851 (uri (rubygems-uri "arel" version))
4854 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4855 (build-system ruby-build-system)
4856 (arguments '(#:tests? #f)) ; no tests
4857 (home-page "https://github.com/rails/arel")
4858 (synopsis "SQL AST manager for Ruby")
4859 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4860 Ruby. It simplifies the generation of complex SQL queries and adapts to
4861 various relational database implementations.")
4862 (license license:expat)))
4864 (define-public ruby-marcel
4866 (name "ruby-marcel")
4871 (uri (rubygems-uri "marcel" version))
4874 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4875 (build-system ruby-build-system)
4877 '(;; No included tests
4880 `(("ruby-mimemagic" ,ruby-mimemagic)))
4881 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4883 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4884 Extensions} type detection using magic numbers, filenames, and extensions")
4885 (home-page "https://github.com/basecamp/marcel")
4886 (license license:expat)))
4888 (define-public ruby-minitar
4889 ;; We package from the GitHub source to fix the security issue reported at
4890 ;; https://github.com/halostatue/minitar/issues/16.
4891 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4893 (name "ruby-minitar")
4894 (version (string-append "0.5.4-1." (string-take commit 8)))
4899 (url "https://github.com/halostatue/minitar")
4901 (file-name (string-append name "-" version "-checkout"))
4904 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4905 (build-system ruby-build-system)
4907 '(#:tests? #f)) ; missing a gemspec
4908 (synopsis "Ruby library and utility for handling tar archives")
4910 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4911 that provides the ability to deal with POSIX tar archive files.")
4912 (home-page "http://www.github.com/atoulme/minitar")
4913 (license (list license:gpl2+ license:ruby)))))
4915 (define-public ruby-mini-portile
4917 (name "ruby-mini-portile")
4922 (uri (rubygems-uri "mini_portile" version))
4925 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4926 (build-system ruby-build-system)
4928 '(#:tests? #f)) ; tests require network access
4929 (synopsis "Ports system for Ruby developers")
4930 (description "Mini-portile is a port/recipe system for Ruby developers.
4931 It provides a standard way to compile against specific versions of libraries
4932 to reproduce user environments.")
4933 (home-page "https://github.com/flavorjones/mini_portile")
4934 (license license:expat)))
4936 (define-public ruby-mini-portile-2
4937 (package (inherit ruby-mini-portile)
4941 (uri (rubygems-uri "mini_portile2" version))
4944 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4946 (define-public ruby-nokogiri
4948 (name "ruby-nokogiri")
4952 (uri (rubygems-uri "nokogiri" version))
4955 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4956 (build-system ruby-build-system)
4958 ;; Tests fail because Nokogiri can only test with an installed extension,
4959 ;; and also because many test framework dependencies are missing.
4961 #:gem-flags (list "--" "--use-system-libraries"
4962 (string-append "--with-xml2-include="
4963 (assoc-ref %build-inputs "libxml2")
4964 "/include/libxml2" ))
4966 (modify-phases %standard-phases
4967 (add-before 'build 'patch-extconf
4968 ;; 'pkg-config' is not included in the GEM_PATH during
4969 ;; installation, so we add it directly to the load path.
4970 (lambda* (#:key inputs #:allow-other-keys)
4971 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4972 (substitute* "ext/nokogiri/extconf.rb"
4973 (("gem 'pkg-config'.*")
4974 (string-append "$:.unshift '"
4975 pkg-config "/lib/ruby/vendor_ruby"
4977 ,(package-version ruby-pkg-config)
4981 `(("ruby-hoe" ,ruby-hoe)))
4984 ("libxml2" ,libxml2)
4985 ("libxslt" ,libxslt)))
4987 `(("ruby-mini-portile" ,ruby-mini-portile-2)
4988 ("ruby-pkg-config" ,ruby-pkg-config)))
4989 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
4990 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
4991 both CSS3 selector and XPath 1.0 support.")
4992 (home-page "http://www.nokogiri.org/")
4993 (license license:expat)))
4995 (define-public ruby-method-source
4997 (name "ruby-method-source")
5002 (uri (rubygems-uri "method_source" version))
5005 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
5006 (build-system ruby-build-system)
5008 `(#:test-target "spec"))
5010 `(("ruby-rspec" ,ruby-rspec)
5012 (synopsis "Retrieve the source code for Ruby methods")
5013 (description "Method_source retrieves the source code for Ruby methods.
5014 Additionally, it can extract source code from Proc and Lambda objects or just
5016 (home-page "https://github.com/banister/method_source")
5017 (license license:expat)))
5019 (define-public ruby-coderay
5021 (name "ruby-coderay")
5026 (uri (rubygems-uri "coderay" version))
5029 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
5030 (build-system ruby-build-system)
5032 '(#:tests? #f)) ; missing test files
5033 (synopsis "Ruby syntax highlighting library")
5034 (description "Coderay is a Ruby library that provides syntax highlighting
5035 for select languages.")
5036 (home-page "http://coderay.rubychan.de")
5037 (license license:expat)))
5039 (define-public ruby-cuke-modeler
5041 (name "ruby-cuke-modeler")
5046 (uri (rubygems-uri "cuke_modeler" version))
5049 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5050 (build-system ruby-build-system)
5051 (arguments `(#:tests? #f)) ;no test suite in gem
5053 `(("ruby-gherkin" ,ruby-gherkin)))
5054 (synopsis "Gherkin test suite analysis tool")
5055 (description "CukeModeler facilitates modeling a test suite that is
5056 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5057 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5058 the @code{cucumber-gherkin} generates when parsing features, as well as
5059 providing models for feature files and directories in order to be able to have
5060 a fully traversable model tree of a test suite's structure. These models can
5061 then be analyzed or manipulated more easily than the underlying AST layer.")
5062 (home-page "https://github.com/enkessler/cuke_modeler")
5063 (license license:expat)))
5065 (define-public ruby-parallel-tests
5067 (name "ruby-parallel-tests")
5069 (home-page "https://github.com/grosser/parallel_tests")
5074 (commit (string-append "v" version))))
5075 (file-name (string-append name version))
5078 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5079 (build-system ruby-build-system)
5081 '(#:test-target "default"
5082 #:phases (modify-phases %standard-phases
5083 (add-after 'patch-source-shebangs 'patch-shell-invokations
5085 (substitute* '("lib/parallel_tests/tasks.rb"
5086 "spec/parallel_tests/tasks_spec.rb")
5087 (("/bin/sh") (which "sh"))
5088 (("/bin/bash") (which "bash")))
5090 (add-before 'check 'remove-version-constraints
5092 ;; Remove hard coded version constraints, instead just
5093 ;; use whatever versions are available in Guix.
5094 (delete-file "Gemfile.lock")
5095 (substitute* "Gemfile"
5101 (add-before 'check 'disable-rails-test
5103 ;; XXX: This test attempts to download and run the test
5104 ;; suites of multiple Rails versions(!) directly.
5105 (delete-file "spec/rails_spec.rb")
5107 (add-before 'check 'set-HOME
5109 ;; Some tests check the output of Bundler, and fail when
5110 ;; Bundler warns that /homeless-shelter does not exist.
5111 (setenv "HOME" "/tmp")
5114 `(("ruby-bump" ,ruby-bump)
5115 ("ruby-cucumber" ,ruby-cucumber)
5116 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5117 ("ruby-minitest" ,ruby-minitest)
5118 ("ruby-rake" ,ruby-rake)
5119 ("ruby-rspec" ,ruby-rspec)
5120 ("ruby-spinach" ,ruby-spinach)))
5122 `(("ruby-parallel" ,ruby-parallel)))
5123 (synopsis "Run tests in parallel")
5125 "This package can speed up @code{Test::Unit}, @code{RSpec},
5126 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5127 across multiple CPU cores.")
5128 (license license:expat)))
5130 (define-public ruby-parser
5132 (name "ruby-parser")
5137 (uri (rubygems-uri "parser" version))
5140 "1030znhvhkfn39svwbj6qn4xb6hgl94gnvg57k4d3r76f9bryqmn"))))
5141 (build-system ruby-build-system)
5143 `(("bundler" ,bundler)
5144 ("ruby-cliver" ,ruby-cliver)
5145 ("ruby-simplecov" ,ruby-simplecov)
5146 ("ruby-racc" ,ruby-racc)))
5148 `(("ragel" ,ragel)))
5150 `(("ruby-ast" ,ruby-ast)))
5151 (synopsis "Ruby parser written in pure Ruby")
5153 "This package provides a Ruby parser written in pure Ruby.")
5154 (home-page "https://github.com/whitequark/parser")
5155 (license license:expat)))
5157 (define-public ruby-sexp-processor
5159 (name "ruby-sexp-processor")
5164 (uri (rubygems-uri "sexp_processor" version))
5167 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5168 (build-system ruby-build-system)
5170 ;; TODO: Add ruby-minitest-proveit once available.
5171 `(("hoe" ,ruby-hoe)))
5172 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5173 (description "The sexp_processor package is derived from ParseTree, but
5174 contrary to ParseTree, it includes all the generic S-exp processing tools.
5175 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5176 @code{Environment}")
5177 (home-page "https://github.com/seattlerb/sexp_processor")
5178 (license license:expat)))
5180 (define-public ruby-ruby-parser
5182 (name "ruby-ruby-parser")
5187 (uri (rubygems-uri "ruby_parser" version))
5190 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5191 (build-system ruby-build-system)
5195 ("unifdef" ,unifdef)))
5197 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5198 (home-page "https://github.com/seattlerb/ruby_parser/")
5199 (synopsis "Ruby parser written in pure Ruby")
5200 (description "The ruby_parser (RP) package provides a Ruby parser written
5201 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5202 back to Ruby via the @code{ruby2ruby} library.")
5203 (license license:expat)))
5205 (define-public ruby-prawn-manual-builder
5207 (name "ruby-prawn-manual-builder")
5212 (uri (rubygems-uri "prawn-manual_builder" version))
5214 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5215 (build-system ruby-build-system)
5217 '(#:tests? #f ; no included tests
5219 (modify-phases %standard-phases
5220 (add-after 'extract-gemspec 'patch-gemspec
5222 (substitute* ".gemspec"
5223 ;; Loosen the requirement for pdf-inspector
5224 (("~> 1\\.0\\.7") ">= 0")))))))
5226 `(("ruby-coderay" ,ruby-coderay)))
5227 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5229 "This package provides a tool for writing manuals for Prawn and Prawn
5231 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5232 (license %prawn-project-licenses)))
5234 (define-public ruby-progress_bar
5236 (name "ruby-progress_bar")
5241 (uri (rubygems-uri "progress_bar" version))
5244 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5245 (build-system ruby-build-system)
5247 '(#:test-target "spec"))
5249 `(("ruby-highline" ,ruby-highline)
5250 ("ruby-options" ,ruby-options)))
5252 `(("bundler" ,bundler)
5253 ("ruby-rspec" ,ruby-rspec)
5254 ("ruby-timecop" ,ruby-timecop)))
5256 "Ruby library for displaying progress bars")
5258 "ProgressBar is a simple library for displaying progress bars. The
5259 maximum value is configurable, and additional information can be displayed
5260 like the percentage completion, estimated time remaining, elapsed time and
5262 (home-page "https://github.com/paul/progress_bar")
5263 (license license:wtfpl2)))
5265 (define-public ruby-dep
5272 (uri (rubygems-uri "ruby_dep" version))
5275 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5276 (build-system ruby-build-system)
5278 '(#:tests? #f)) ; No included tests
5279 (synopsis "Creates a version constraint of supported Rubies")
5281 "This package helps create a version constraint of supported Rubies,
5282 suitable for a gemspec file.")
5283 (home-page "https://github.com/e2/ruby_dep")
5284 (license license:expat)))
5286 (define-public ruby-progressbar
5288 (name "ruby-progressbar")
5293 (uri (rubygems-uri "ruby-progressbar" version))
5295 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5296 (build-system ruby-build-system)
5298 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5300 (synopsis "Text progress bar library for Ruby")
5302 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5303 The output can be customized with a formatting system.")
5304 (home-page "https://github.com/jfelchner/ruby-progressbar")
5305 (license license:expat)))
5307 (define-public ruby-pry
5314 (uri (rubygems-uri "pry" version))
5317 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5318 (build-system ruby-build-system)
5320 '(#:tests? #f)) ; no tests
5322 `(("ruby-coderay" ,ruby-coderay)
5323 ("ruby-method-source" ,ruby-method-source)))
5324 (synopsis "Ruby REPL")
5325 (description "Pry is an IRB alternative and runtime developer console for
5326 Ruby. It features syntax highlighting, a plugin architecture, runtime
5327 invocation, and source and documentation browsing.")
5328 (home-page "https://cobaltbluemedia.com/pryrepl/")
5329 (license license:expat)))
5331 (define-public ruby-single-cov
5333 (name "ruby-single-cov")
5335 (home-page "https://github.com/grosser/single_cov")
5338 (uri (git-reference (url home-page)
5339 (commit (string-append "v" version))))
5340 (file-name (git-file-name name version))
5343 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5344 (build-system ruby-build-system)
5346 '(#:test-target "default"
5347 #:phases (modify-phases %standard-phases
5348 (replace 'replace-git-ls-files
5350 (substitute* "single_cov.gemspec"
5351 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5352 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5354 (add-before 'check 'remove-version-constraints
5356 (delete-file "Gemfile.lock")
5358 (add-before 'check 'make-files-writable
5360 ;; Tests need to create local directories and open files
5361 ;; with write permissions.
5362 (for-each make-file-writable
5363 (find-files "specs" #:directories? #t))
5365 (add-before 'check 'disable-failing-test
5367 ;; XXX: This test copies assets from minitest, but can
5368 ;; not cope with the files being read-only. Just skip
5370 (substitute* "specs/single_cov_spec.rb"
5371 (("it \"complains when coverage is bad\"")
5372 "xit \"complains when coverage is bad\""))
5375 `(("ruby-bump" ,ruby-bump)
5376 ("ruby-minitest" ,ruby-minitest)
5377 ("ruby-rspec" ,ruby-rspec)
5378 ("ruby-simplecov" ,ruby-simplecov)))
5379 (synopsis "Code coverage reporting tool")
5381 "This package provides actionable code coverage reports for Ruby
5382 projects. It has very little overhead and can be easily integrated with
5383 development tools to catch coverage problems early.")
5384 (license license:expat)))
5386 (define-public ruby-guard
5392 ;; The gem does not include a Rakefile, nor does it contain a
5393 ;; gemspec file, nor does it come with the tests. This is why
5394 ;; we fetch the tarball from Github.
5396 (url "https://github.com/guard/guard")
5397 (commit (string-append "v" version))))
5398 (file-name (git-file-name name version))
5401 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5402 (build-system ruby-build-system)
5404 `(#:tests? #f ; tests require cucumber
5406 (modify-phases %standard-phases
5407 (add-after 'unpack 'remove-git-ls-files
5408 (lambda* (#:key outputs #:allow-other-keys)
5409 (substitute* "guard.gemspec"
5410 (("git ls-files -z") "find . -type f -print0"))
5414 (invoke "gem" "build" "guard.gemspec"))))))
5416 `(("ruby-formatador" ,ruby-formatador)
5417 ("ruby-listen" ,ruby-listen)
5418 ("ruby-lumberjack" ,ruby-lumberjack)
5419 ("ruby-nenv" ,ruby-nenv)
5420 ("ruby-notiffany" ,ruby-notiffany)
5421 ("ruby-pry" ,ruby-pry)
5422 ("ruby-shellany" ,ruby-shellany)
5423 ("ruby-thor" ,ruby-thor)))
5425 `(("bundler" ,bundler)
5426 ("ruby-rspec" ,ruby-rspec)))
5427 (synopsis "Tool to handle events on file system modifications")
5429 "Guard is a command line tool to easily handle events on file system
5430 modifications. Guard automates various tasks by running custom rules whenever
5431 file or directories are modified.")
5432 (home-page "https://guardgem.org/")
5433 (license license:expat)))
5435 (define-public ruby-spinach
5437 (name "ruby-spinach")
5439 (home-page "https://github.com/codegram/spinach")
5442 (uri (rubygems-uri "spinach" version))
5445 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5446 (build-system ruby-build-system)
5448 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5449 ;; which in turn depends on many other unpackaged gems. Enable once
5450 ;; capybara is available.
5453 `(("ruby-colorize" ,ruby-colorize)
5454 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5455 ("ruby-json" ,ruby-json)))
5456 (synopsis "Gherkin-based BDD framework")
5458 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5459 framework that leverages the expressive @code{Gherkin} language to help you
5460 define executable specifications of your code.")
5461 (license license:expat)))
5463 (define-public ruby-tilt
5469 (method git-fetch) ;the distributed gem lacks tests
5471 (url "https://github.com/rtomayko/tilt")
5472 (commit (string-append "v" version))))
5473 (file-name (git-file-name name version))
5476 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5477 (build-system ruby-build-system)
5480 (modify-phases %standard-phases
5481 (add-after 'unpack 'remove-some-dependencies
5483 (substitute* "Gemfile"
5484 ;; TODO ronn is used for generating the manual
5485 (("gem 'ronn'.*") "\n")
5486 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5487 ;; pass it in as a native-input
5488 (("gem 'haml'.*") "\n")
5489 ;; TODO Not all of these gems are packaged for Guix yet:
5490 ;; less, coffee-script, livescript, babel-transpiler,
5492 (("if can_execjs") "if false")
5493 ;; Disable the secondary group to reduce the number of
5494 ;; dependencies. None of the normal approaches work, so patch
5495 ;; the Gemfile instead.
5496 (("group :secondary") "[].each"))
5499 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5500 ("ruby-sassc" ,ruby-sassc)))
5502 `(("bundler" ,bundler)
5503 ("ruby-yard" ,ruby-yard)
5504 ("ruby-builder" ,ruby-builder)
5505 ("ruby-erubis" ,ruby-erubis)
5506 ("ruby-markaby" ,ruby-markaby)))
5507 (synopsis "Generic interface to multiple Ruby template engines")
5509 "Tilt is a thin interface over a number of different Ruby template
5510 engines in an attempt to make their usage as generic as possible.")
5511 (home-page "https://github.com/rtomayko/tilt/")
5512 (license license:expat)))
5514 (define-public ruby-thread-safe
5516 (name "ruby-thread-safe")
5521 (uri (rubygems-uri "thread_safe" version))
5524 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5525 (build-system ruby-build-system)
5527 '(#:tests? #f)) ; needs simplecov, among others
5528 (synopsis "Thread-safe utilities for Ruby")
5529 (description "The thread_safe library provides thread-safe collections and
5530 utilities for Ruby.")
5531 (home-page "https://github.com/ruby-concurrency/thread_safe")
5532 (license license:asl2.0)))
5534 (define-public ruby-tzinfo
5536 (name "ruby-tzinfo")
5541 (uri (rubygems-uri "tzinfo" version))
5544 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5545 (build-system ruby-build-system)
5548 (modify-phases %standard-phases
5549 (add-after 'unpack 'skip-safe-tests
5551 (substitute* "test/test_utils.rb"
5552 (("def safe_test\\(options = \\{\\}\\)")
5553 "def safe_test(options = {})
5554 skip('The Guix build environment has an unsafe load path')"))
5557 `(("ruby-thread-safe" ,ruby-thread-safe)))
5558 (synopsis "Time zone library for Ruby")
5559 (description "TZInfo is a Ruby library that provides daylight savings
5560 aware transformations between times in different time zones.")
5561 (home-page "https://tzinfo.github.io")
5562 (license license:expat)))
5564 (define-public ruby-tzinfo-data
5566 (name "ruby-tzinfo-data")
5567 (version "1.2017.3")
5571 ;; Download from GitHub because the rubygems version does not contain
5572 ;; Rakefile or tests.
5574 (url "https://github.com/tzinfo/tzinfo-data")
5575 (commit (string-append "v" version))))
5576 (file-name (git-file-name name version))
5579 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5580 ;; Remove the known test failure.
5581 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5582 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5583 (patches (search-patches
5584 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5585 (build-system ruby-build-system)
5587 `(("ruby-tzinfo" ,ruby-tzinfo)))
5588 (synopsis "Data from the IANA Time Zone database")
5590 "This library provides @code{TZInfo::Data}, which contains data from the
5591 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5592 (home-page "https://tzinfo.github.io")
5593 (license license:expat)))
5595 (define-public ruby-rb-inotify
5597 (name "ruby-rb-inotify")
5602 (uri (rubygems-uri "rb-inotify" version))
5605 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5606 (build-system ruby-build-system)
5608 '(#:tests? #f ; there are no tests
5610 (modify-phases %standard-phases
5611 ;; Building the gemspec with rake is not working here since it is
5612 ;; generated with Jeweler. It is also unnecessary because the
5613 ;; existing gemspec does not use any development tools to generate a
5617 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5619 `(("ruby-ffi" ,ruby-ffi)))
5621 `(("ruby-yard" ,ruby-yard)))
5622 (synopsis "Ruby wrapper for Linux's inotify")
5623 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5624 kernel subsystem for monitoring changes to files and directories.")
5625 (home-page "https://github.com/nex3/rb-inotify")
5626 (license license:expat)))
5628 (define-public ruby-pry-editline
5630 (name "ruby-pry-editline")
5634 (uri (rubygems-uri "pry-editline" version))
5637 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5638 (build-system ruby-build-system)
5639 (arguments `(#:tests? #f)) ; no tests included
5641 `(("bundler" ,bundler)))
5642 (synopsis "Open the current REPL line in an editor")
5644 "This gem provides a plugin for the Ruby REPL to enable opening the
5645 current line in an external editor.")
5646 (home-page "https://github.com/tpope/pry-editline")
5647 (license license:expat)))
5649 (define-public ruby-sdoc
5655 (uri (rubygems-uri "sdoc" version))
5658 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5659 (build-system ruby-build-system)
5662 (modify-phases %standard-phases
5663 (add-before 'check 'set-rubylib-and-patch-gemfile
5665 (setenv "RUBYLIB" "lib")
5666 (substitute* "sdoc.gemspec"
5667 (("s.add_runtime_dependency.*") "\n")
5668 (("s.add_dependency.*") "\n"))
5669 (substitute* "Gemfile"
5671 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5674 `(("ruby-json" ,ruby-json)))
5676 `(("bundler" ,bundler)
5677 ("ruby-minitest" ,ruby-minitest)
5678 ("ruby-hoe" ,ruby-hoe)))
5679 (synopsis "Generate searchable RDoc documentation")
5681 "SDoc is an RDoc documentation generator to build searchable HTML
5682 documentation for Ruby code.")
5683 (home-page "https://github.com/voloko/sdoc")
5684 (license license:expat)))
5686 (define-public ruby-tins
5692 (uri (rubygems-uri "tins" version))
5695 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5696 (build-system ruby-build-system)
5697 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5698 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5701 `(#:tests? #f ; there are no tests
5703 (modify-phases %standard-phases
5706 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5708 (substitute* "tins.gemspec"
5709 (("\"lib/spruz\", ") ""))
5710 (invoke "gem" "build" "tins.gemspec"))))))
5711 (synopsis "Assorted tools for Ruby")
5712 (description "Tins is a Ruby library providing assorted tools.")
5713 (home-page "https://github.com/flori/tins")
5714 (license license:expat)))
5716 (define-public ruby-gem-hadar
5718 (name "ruby-gem-hadar")
5722 (uri (rubygems-uri "gem_hadar" version))
5725 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5726 (build-system ruby-build-system)
5727 ;; This gem needs itself at development time. We disable rebuilding of the
5728 ;; gemspec to avoid this loop.
5730 `(#:tests? #f ; there are no tests
5732 (modify-phases %standard-phases
5735 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5738 ("ruby-tins" ,ruby-tins)
5739 ("ruby-yard" ,ruby-yard)))
5740 (synopsis "Library for the development of Ruby gems")
5742 "This library contains some useful functionality to support the
5743 development of Ruby gems.")
5744 (home-page "https://github.com/flori/gem_hadar")
5745 (license license:expat)))
5747 (define-public ruby-minitest-tu-shim
5749 (name "ruby-minitest-tu-shim")
5753 (uri (rubygems-uri "minitest_tu_shim" version))
5756 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5757 (build-system ruby-build-system)
5760 (modify-phases %standard-phases
5761 (add-after 'unpack 'fix-test-include-path
5762 (lambda* (#:key inputs #:allow-other-keys)
5763 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5764 (substitute* "Rakefile"
5765 (("Hoe\\.add_include_dirs .*")
5766 (string-append "Hoe.add_include_dirs \""
5767 minitest "/lib/ruby/vendor_ruby"
5769 ,(package-version ruby-minitest-4)
5772 (add-before 'check 'fix-test-assumptions
5774 ;; The test output includes the file name, so a couple of tests
5775 ;; fail. Changing the regular expressions slightly fixes this
5777 (substitute* "test/test_mini_test.rb"
5778 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5779 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5780 (("gsub\\(/.*, 'FILE:LINE'\\)")
5781 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5784 `(("ruby-minitest-4" ,ruby-minitest-4)))
5786 `(("ruby-hoe" ,ruby-hoe)))
5787 (synopsis "Adapter library between minitest and test/unit")
5789 "This library bridges the gap between the small and fast minitest and
5790 Ruby's large and slower test/unit.")
5791 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5792 (license license:expat)))
5794 (define-public ruby-term-ansicolor
5796 (name "ruby-term-ansicolor")
5800 (uri (rubygems-uri "term-ansicolor" version))
5803 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5804 (build-system ruby-build-system)
5805 ;; Rebuilding the gemspec seems to require git, even though this is not a
5806 ;; git repository, so we just build the gem from the existing gemspec.
5809 (modify-phases %standard-phases
5810 (add-after 'unpack 'fix-test
5812 (substitute* "tests/hsl_triple_test.rb"
5817 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5819 `(("ruby-tins" ,ruby-tins)))
5821 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5822 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5823 (synopsis "Ruby library to control the attributes of terminal output")
5825 "This Ruby library uses ANSI escape sequences to control the attributes
5826 of terminal output.")
5827 (home-page "https://flori.github.io/term-ansicolor/")
5828 ;; There is no mention of the "or later" clause.
5829 (license license:gpl2)))
5831 (define-public ruby-terraform
5833 (name "ruby-terraform")
5838 (uri (rubygems-uri "ruby-terraform" version))
5841 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5842 (build-system ruby-build-system)
5844 '(#:tests? #f)) ; No included tests
5846 `(("ruby-lino" ,ruby-lino)))
5847 (synopsis "Ruby wrapper around the Terraform command line interface")
5849 "This package provides a Ruby wrapper around the Terraform command line
5850 interface so that Terraform can be more easily invoked from Ruby code.")
5851 (home-page "https://github.com/infrablocks/ruby_terraform")
5852 (license license:expat)))
5854 (define-public ruby-pstree
5856 (name "ruby-pstree")
5860 (uri (rubygems-uri "pstree" version))
5863 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5864 (build-system ruby-build-system)
5866 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5867 ("bundler" ,bundler)))
5868 (synopsis "Create a process tree data structure")
5870 "This library uses the output of the @code{ps} command to create a
5871 process tree data structure for the current host.")
5872 (home-page "https://github.com/flori/pstree")
5873 ;; There is no mention of the "or later" clause.
5874 (license license:gpl2)))
5876 (define-public ruby-utils
5882 (uri (rubygems-uri "utils" version))
5885 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5886 (build-system ruby-build-system)
5888 `(("ruby-tins" ,ruby-tins)
5889 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5890 ("ruby-pstree" ,ruby-pstree)
5891 ("ruby-pry-editline" ,ruby-pry-editline)))
5893 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5894 ("bundler" ,bundler)))
5895 (synopsis "Command line tools for working with Ruby")
5897 "This package provides assorted command line tools that may be useful
5898 when working with Ruby code.")
5899 (home-page "https://github.com/flori/utils")
5900 ;; There is no mention of the "or later" clause.
5901 (license license:gpl2)))
5903 (define-public ruby-jaro-winkler
5905 (name "ruby-jaro-winkler")
5910 (uri (rubygems-uri "jaro_winkler" version))
5912 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5913 (build-system ruby-build-system)
5915 '(#:tests? #f)) ; no included tests
5916 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5918 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5919 algorithm. It is written as a C extension and will fallback to a pure Ruby
5920 implementation on platforms where this is unsupported.")
5921 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5922 (license license:expat)))
5924 (define-public ruby-json
5931 (uri (rubygems-uri "json" version))
5934 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5935 (build-system ruby-build-system)
5936 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5937 (synopsis "JSON library for Ruby")
5938 (description "This Ruby library provides a JSON implementation written as
5939 a native C extension.")
5940 (home-page "http://json-jruby.rubyforge.org/")
5941 (license (list license:ruby license:gpl2)))) ; GPL2 only
5943 (define-public ruby-json-pure
5945 (name "ruby-json-pure")
5949 (uri (rubygems-uri "json_pure" version))
5952 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5953 (build-system ruby-build-system)
5956 (modify-phases %standard-phases
5957 (add-after 'unpack 'fix-rakefile
5959 (substitute* "Rakefile"
5960 ;; Since this is not a git repository, do not call 'git'.
5961 (("`git ls-files`") "`find . -type f |sort`")
5962 ;; Loosen dependency constraint.
5963 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5965 (add-after 'replace-git-ls-files 'regenerate-gemspec
5967 ;; Regenerate gemspec so loosened dependency constraints are
5969 (invoke "rake" "gemspec")))
5970 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5972 ;; This gemspec doesn't look to be generated by the above
5973 ;; command, so patch it separately.
5974 (substitute* "json-java.gemspec"
5975 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5976 "%q<test-unit>.freeze, [\">= 2.0\"]"))
5979 `(("bundler" ,bundler)
5981 ("ruby-simplecov" ,ruby-simplecov)
5982 ("ruby-test-unit" ,ruby-test-unit)))
5983 (synopsis "JSON implementation in pure Ruby")
5985 "This package provides a JSON implementation written in pure Ruby.")
5986 (home-page "https://flori.github.com/json/")
5987 (license license:ruby)))
5989 (define-public ruby-jwt
5996 (uri (rubygems-uri "jwt" version))
5999 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
6000 (build-system ruby-build-system)
6002 '(#:test-target "test"
6004 (modify-phases %standard-phases
6005 (add-after 'unpack 'remove-unnecessary-dependencies
6007 (substitute* "spec/spec_helper.rb"
6008 (("require 'simplecov.*") "\n")
6009 ;; Use [].each to disable running the SimpleCov configuration
6011 (("SimpleCov\\.configure") "[].each")
6012 (("require 'codeclimate-test-reporter'") "")
6013 (("require 'codacy-coverage'") "")
6014 (("Codacy::Reporter\\.start") ""))
6017 `(("bundler" ,bundler)
6018 ("ruby-rspec" ,ruby-rspec)
6019 ("ruby-rbnacl" ,ruby-rbnacl)))
6020 (synopsis "Ruby implementation of the JSON Web Token standard")
6022 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
6023 @acronym{JWT, JSON Web Token} standard.")
6024 (home-page "https://github.com/jwt/ruby-jwt")
6025 (license license:expat)))
6027 ;; Even though this package only provides bindings for a Mac OSX API it is
6028 ;; required by "ruby-listen" at runtime.
6029 (define-public ruby-rb-fsevent
6031 (name "ruby-rb-fsevent")
6035 (uri (rubygems-uri "rb-fsevent" version))
6038 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6039 (build-system ruby-build-system)
6040 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6041 ;; "listen", which needs "rb-fsevent" at runtime.
6042 (arguments `(#:tests? #f))
6043 (synopsis "FSEvents API with signals catching")
6045 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6046 (home-page "https://rubygems.org/gems/rb-fsevent")
6047 (license license:expat)))
6049 (define-public ruby-listen
6051 (name "ruby-listen")
6055 ;; The gem does not include a Rakefile, so fetch from the Git
6059 (url "https://github.com/guard/listen")
6060 (commit (string-append "v" version))))
6061 (file-name (git-file-name name version))
6064 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6065 (build-system ruby-build-system)
6067 `(#:test-target "spec"
6069 (modify-phases %standard-phases
6070 (add-after 'unpack 'fix-files-in-gemspec
6072 (substitute* "listen.gemspec"
6073 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6075 (add-before 'check 'remove-unnecessary-dependencies'
6077 (substitute* "Rakefile"
6078 ;; Rubocop is for code linting, and is unnecessary for running
6080 ((".*rubocop.*") ""))
6083 `(("bundler" ,bundler)
6084 ("ruby-rspec" ,ruby-rspec)))
6086 `(;; ruby-thor is used for the command line interface, and is referenced
6087 ;; in the wrapper, and therefore just needs to be an input.
6088 ("ruby-thor" ,ruby-thor)))
6090 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6091 ("ruby-rb-inotify" ,ruby-rb-inotify)
6092 ("ruby-dep" ,ruby-dep)))
6093 (synopsis "Listen to file modifications")
6094 (description "The Listen gem listens to file modifications and notifies
6095 you about the changes.")
6096 (home-page "https://github.com/guard/listen")
6097 (license license:expat)))
6099 (define-public ruby-loofah
6101 (name "ruby-loofah")
6106 (uri (rubygems-uri "loofah" version))
6109 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6110 (build-system ruby-build-system)
6113 (modify-phases %standard-phases
6114 (add-after 'unpack 'remove-unnecessary-dependencies
6116 ;; concourse is a development tool which is unused, so remove it
6117 ;; so it's not required.
6118 (substitute* "Gemfile"
6119 ((".*\"concourse\".*") "\n"))
6120 (substitute* "Rakefile"
6121 (("require 'concourse'") "")
6122 (("Concourse\\.new.*") "\n"))
6125 `(("ruby-hoe" ,ruby-hoe)
6126 ("ruby-rr" ,ruby-rr)))
6128 `(("ruby-nokogiri" ,ruby-nokogiri)
6129 ("ruby-crass" ,ruby-crass)))
6130 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6132 "Loofah is a general library for manipulating and transforming HTML/XML
6133 documents and fragments. It's built on top of Nokogiri and libxml2.")
6134 (home-page "https://github.com/flavorjones/loofah")
6135 (license license:expat)))
6137 (define-public ruby-activesupport
6139 (name "ruby-activesupport")
6144 (uri (rubygems-uri "activesupport" version))
6147 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6148 (build-system ruby-build-system)
6151 (modify-phases %standard-phases
6154 ;; There are no tests, instead attempt to load the library.
6155 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6157 `(("ruby-concurrent" ,ruby-concurrent)
6158 ("ruby-i18n" ,ruby-i18n)
6159 ("ruby-minitest" ,ruby-minitest)
6160 ("ruby-tzinfo" ,ruby-tzinfo)
6161 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6162 (synopsis "Ruby on Rails utility library")
6163 (description "ActiveSupport is a toolkit of support libraries and Ruby
6164 core extensions extracted from the Rails framework. It includes support for
6165 multibyte strings, internationalization, time zones, and testing.")
6166 (home-page "http://www.rubyonrails.org")
6167 (license license:expat)))
6169 (define-public ruby-crass
6173 (home-page "https://github.com/rgrove/crass")
6175 ;; The gem does not contain tests, so pull from git.
6179 (commit (string-append "v" version))))
6180 (file-name (git-file-name name version))
6183 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6184 (build-system ruby-build-system)
6185 (synopsis "Pure Ruby CSS parser")
6187 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6188 (license license:expat)))
6190 (define-public ruby-nokogumbo
6192 (name "ruby-nokogumbo")
6195 ;; We use the git reference, because there's no Rakefile in the
6196 ;; published gem and the tarball on Github is outdated.
6199 (url "https://github.com/rubys/nokogumbo")
6200 (commit (string-append "v" version))))
6201 (file-name (string-append name "-" version "-checkout"))
6204 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6205 (build-system ruby-build-system)
6207 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6209 `(("gumbo-parser" ,gumbo-parser)))
6211 `(("ruby-nokogiri" ,ruby-nokogiri)))
6212 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6214 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6215 access the result as a Nokogiri parsed document.")
6216 (home-page "https://github.com/rubys/nokogumbo/")
6217 (license license:asl2.0)))
6219 (define-public ruby-sanitize
6221 (name "ruby-sanitize")
6223 (home-page "https://github.com/rgrove/sanitize")
6226 ;; The gem does not include the Rakefile, so we download the
6227 ;; source from Github.
6230 (commit (string-append "v" version))))
6231 (file-name (git-file-name name version))
6232 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6235 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6236 (build-system ruby-build-system)
6238 `(("ruby-crass" ,ruby-crass)
6239 ("ruby-nokogiri" ,ruby-nokogiri)
6240 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6242 `(("ruby-minitest" ,ruby-minitest)))
6243 (synopsis "Whitelist-based HTML and CSS sanitizer")
6245 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6246 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6247 unacceptable HTML and/or CSS from a string.")
6248 (license license:expat)))
6250 (define-public ruby-oj
6257 ;; Version on rubygems.org does not contain Rakefile, so download from
6260 (url "https://github.com/ohler55/oj")
6261 (commit (string-append "v" version))))
6262 (file-name (git-file-name name version))
6265 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6266 (build-system ruby-build-system)
6268 '(#:test-target "test_all"
6270 (modify-phases %standard-phases
6271 (add-before 'check 'disable-bundler
6273 (substitute* "Rakefile"
6274 (("Bundler\\.with_clean_env") "1.times")
6275 (("bundle exec ") "")))))))
6277 `(("bundler" ,bundler)
6278 ("ruby-rspec" ,ruby-rspec)
6279 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6280 (synopsis "JSON parser for Ruby optimized for speed")
6282 "Oj is a JSON parser and generator for Ruby, where the encoding and
6283 decoding of JSON is implemented as a C extension to Ruby.")
6284 (home-page "http://www.ohler.com/oj/")
6285 (license (list license:expat ; Ruby code
6286 license:bsd-3)))) ; extension code
6288 (define-public ruby-ox
6295 (uri (rubygems-uri "ox" version))
6298 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6299 (build-system ruby-build-system)
6301 '(#:tests? #f)) ; no tests
6302 (synopsis "Optimized XML library for Ruby")
6304 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6305 written as a native C extension. It was designed to be an alternative to
6306 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6307 alternative to Marshal for Object serialization. ")
6308 (home-page "http://www.ohler.com/ox")
6309 (license license:expat)))
6311 (define-public ruby-redcloth
6313 (name "ruby-redcloth")
6317 (uri (rubygems-uri "RedCloth" version))
6320 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6321 (build-system ruby-build-system)
6323 `(#:tests? #f ; no tests
6325 (modify-phases %standard-phases
6326 ;; Redcloth has complicated rake tasks to build various versions for
6327 ;; multiple targets using RVM. We don't want this so we just use the
6328 ;; existing gemspec.
6331 (invoke "gem" "build" "redcloth.gemspec"))))))
6333 `(("bundler" ,bundler)
6334 ("ruby-diff-lcs" ,ruby-diff-lcs)
6335 ("ruby-rspec-2" ,ruby-rspec-2)))
6336 (synopsis "Textile markup language parser for Ruby")
6338 "RedCloth is a Ruby parser for the Textile markup language.")
6339 (home-page "http://redcloth.org")
6340 (license license:expat)))
6342 (define-public ruby-pg
6349 (uri (rubygems-uri "pg" version))
6352 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
6353 (build-system ruby-build-system)
6355 '(#:test-target "spec"))
6357 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6358 ("ruby-hoe" ,ruby-hoe)
6359 ("ruby-rspec" ,ruby-rspec)))
6361 `(("postgresql" ,postgresql)))
6362 (synopsis "Ruby interface to PostgreSQL")
6363 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6364 with PostgreSQL 9.0 and later.")
6365 (home-page "https://bitbucket.org/ged/ruby-pg")
6366 (license license:ruby)))
6368 (define-public ruby-byebug
6370 (name "ruby-byebug")
6375 (uri (rubygems-uri "byebug" version))
6378 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6379 (build-system ruby-build-system)
6381 '(#:tests? #f)) ; no tests
6382 (synopsis "Debugger for Ruby 2")
6383 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6384 TracePoint C API for execution control and the Debug Inspector C API for call
6385 stack navigation. The core component provides support that front-ends can
6386 build on. It provides breakpoint handling and bindings for stack frames among
6387 other things and it comes with a command line interface.")
6388 (home-page "https://github.com/deivid-rodriguez/byebug")
6389 (license license:bsd-2)))
6391 ;;; TODO: Make it the default byebug in core-updates.
6392 (define-public ruby-byebug-11
6394 (inherit ruby-byebug)
6395 (name "ruby-byebug")
6401 (url "https://github.com/deivid-rodriguez/byebug")
6402 (commit (string-append "v" version))))
6403 (file-name (git-file-name name version))
6406 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6407 (modules '((guix build utils)))
6410 ;; Remove wrappers that try to setup a bundle environment.
6411 (with-directory-excursion "bin"
6412 (for-each delete-file '("bundle" "rake" "rubocop"))
6413 ;; ruby-minitest doesn't come with a launcher, so fix the one
6415 (substitute* "minitest"
6416 (("load File\\.expand_path\\(\"bundle\".*") "")
6417 (("require \"bundler/setup\".*") "")))
6422 (modify-phases %standard-phases
6423 (add-after 'unpack 'skip-tmp-path-sensitive-test
6425 (substitute* "test/commands/where_test.rb"
6426 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6429 (add-before 'build 'compile
6431 (invoke "rake" "compile")))
6432 (add-before 'check 'set-home
6434 (setenv "HOME" (getcwd))
6437 `(("bundler" ,bundler)
6438 ("ruby-chandler" ,ruby-chandler)
6439 ("ruby-minitest" ,ruby-minitest)
6440 ("ruby-pry" ,ruby-pry)
6441 ("ruby-rake-compiler" ,ruby-rake-compiler)
6442 ("ruby-rubocop" ,ruby-rubocop)
6443 ("ruby-yard" ,ruby-yard)))))
6445 (define-public ruby-netrc
6451 (uri (rubygems-uri "netrc" version))
6454 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6455 (build-system ruby-build-system)
6458 (modify-phases %standard-phases
6460 ;; There is no Rakefile and minitest can only run one file at once,
6461 ;; so we have to iterate over all test files.
6463 (for-each (lambda (file)
6464 (invoke "ruby" "-Itest" file))
6465 (find-files "./test" "test_.*\\.rb"))
6468 `(("ruby-minitest" ,ruby-minitest)))
6469 (synopsis "Library to read and update netrc files")
6471 "This library can read and update netrc files, preserving formatting
6472 including comments and whitespace.")
6473 (home-page "https://github.com/geemus/netrc")
6474 (license license:expat)))
6476 (define-public ruby-unf-ext
6478 (name "ruby-unf-ext")
6482 (uri (rubygems-uri "unf_ext" version))
6485 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6486 (build-system ruby-build-system)
6489 (modify-phases %standard-phases
6490 (add-after 'build 'build-ext
6491 (lambda _ (invoke "rake" "compile:unf_ext")))
6492 (add-before 'check 'lose-rake-compiler-dock-dependency
6494 ;; rake-compiler-dock is listed in the gemspec, but only
6495 ;; required when cross-compiling.
6496 (substitute* "unf_ext.gemspec"
6497 ((".*rake-compiler-dock.*") ""))
6500 `(("bundler" ,bundler)
6501 ("ruby-rake-compiler" ,ruby-rake-compiler)
6502 ("ruby-test-unit" ,ruby-test-unit)))
6503 (synopsis "Unicode normalization form support library")
6505 "This package provides unicode normalization form support for Ruby.")
6506 (home-page "https://github.com/knu/ruby-unf_ext")
6507 (license license:expat)))
6509 (define-public ruby-tdiff
6510 ;; Use a newer than released snapshot so that rspec-2 is not required.
6511 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6514 (version (string-append "0.3.3-1." (string-take commit 8)))
6518 (url "https://github.com/postmodern/tdiff")
6520 (file-name (string-append name "-" version "-checkout"))
6523 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6524 (build-system ruby-build-system)
6526 `(("ruby-rspec" ,ruby-rspec)
6527 ("ruby-yard" ,ruby-yard)
6528 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6529 (synopsis "Calculate the differences between two tree-like structures")
6531 "This library provides functions to calculate the differences between two
6532 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6533 (home-page "https://github.com/postmodern/tdiff")
6534 (license license:expat))))
6536 (define-public ruby-nokogiri-diff
6537 ;; Use a newer than released snapshot so that rspec-2 is not required.
6538 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6540 (name "ruby-nokogiri-diff")
6541 (version (string-append "0.2.0-1." (string-take commit 8)))
6545 (url "https://github.com/postmodern/nokogiri-diff")
6547 (file-name (string-append name "-" version "-checkout"))
6550 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6551 (build-system ruby-build-system)
6553 `(("ruby-tdiff" ,ruby-tdiff)
6554 ("ruby-nokogiri" ,ruby-nokogiri)))
6556 `(("ruby-rspec" ,ruby-rspec)
6557 ("ruby-yard" ,ruby-yard)
6558 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6559 (synopsis "Calculate the differences between two XML/HTML documents")
6561 "@code{Nokogiri::Diff} adds the ability to calculate the
6562 differences (added or removed nodes) between two XML/HTML documents.")
6563 (home-page "https://github.com/postmodern/nokogiri-diff")
6564 (license license:expat))))
6566 (define-public ruby-racc
6573 (uri (rubygems-uri "racc" version))
6576 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6577 (build-system ruby-build-system)
6579 `(("ruby-hoe" ,ruby-hoe)
6580 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6581 (synopsis "LALR(1) parser generator for Ruby")
6583 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6584 generates Ruby program.")
6585 (home-page "http://i.loveruby.net/en/projects/racc/")
6587 ;; Generally licensed under the LGPL2.1, and some files also
6588 ;; available under the same license as Ruby.
6592 (define-public ruby-rack
6599 ;; Download from GitHub so that the patch can be applied.
6601 (url "https://github.com/rack/rack")
6603 (file-name (git-file-name name version))
6606 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6607 ;; Ignore test which fails inside the build environment but works
6609 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6610 (build-system ruby-build-system)
6613 (modify-phases %standard-phases
6614 (add-before 'check 'fix-tests
6616 ;; A few of the tests use the length of a file on disk for
6617 ;; Content-Length and Content-Range headers. However, this file
6618 ;; has a shebang in it which an earlier phase patches, growing
6619 ;; the file size from 193 to 239 bytes when the store prefix is
6621 (let ((size-diff (- (string-length (which "ruby"))
6622 (string-length "/usr/bin/env ruby"))))
6623 (substitute* '("test/spec_file.rb")
6625 (number->string (+ 193 size-diff)))
6626 (("bytes(.)22-33" all delimiter)
6627 (string-append "bytes"
6629 (number->string (+ 22 size-diff))
6631 (number->string (+ 33 size-diff))))))
6633 (add-before 'reset-gzip-timestamps 'make-files-writable
6634 (lambda* (#:key outputs #:allow-other-keys)
6635 ;; Make sure .gz files are writable so that the
6636 ;; 'reset-gzip-timestamps' phase can do its work.
6637 (let ((out (assoc-ref outputs "out")))
6638 (for-each make-file-writable
6639 (find-files out "\\.gz$"))
6642 `(("ruby-minitest" ,ruby-minitest)
6643 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6646 `(("ruby-concurrent" ,ruby-concurrent)))
6647 (synopsis "Unified web application interface for Ruby")
6648 (description "Rack provides a minimal, modular and adaptable interface for
6649 developing web applications in Ruby. By wrapping HTTP requests and responses,
6650 it unifies the API for web servers, web frameworks, and software in between
6651 into a single method call.")
6652 (home-page "https://rack.github.io/")
6653 (license license:expat)))
6655 (define-public ruby-rack-test
6657 (name "ruby-rack-test")
6662 (uri (rubygems-uri "rack-test" version))
6665 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6666 (build-system ruby-build-system)
6668 ;; Disable tests because of circular dependencies: requires sinatra,
6669 ;; which requires rack-protection, which requires rack-test. Instead
6670 ;; simply require the library.
6672 (modify-phases %standard-phases
6675 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6677 `(("ruby-rack" ,ruby-rack)))
6678 (synopsis "Testing API for Rack applications")
6680 "Rack::Test is a small, simple testing API for Rack applications. It can
6681 be used on its own or as a reusable starting point for Web frameworks and
6682 testing libraries to build on.")
6683 (home-page "https://github.com/rack-test/rack-test")
6684 (license license:expat)))
6686 (define-public ruby-rack-protection
6688 (name "ruby-rack-protection")
6693 (uri (rubygems-uri "rack-protection" version))
6696 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6697 (build-system ruby-build-system)
6699 '(;; Tests missing from the gem.
6702 `(("ruby-rack" ,ruby-rack)))
6704 `(("bundler" ,bundler)
6705 ("ruby-rspec" ,ruby-rspec-2)
6706 ("ruby-rack-test" ,ruby-rack-test)))
6707 (synopsis "Rack middleware that protects against typical web attacks")
6708 (description "Rack middleware that can be used to protect against typical
6709 web attacks. It can protect all Rack apps, including Rails. For instance, it
6710 protects against cross site request forgery, cross site scripting,
6711 clickjacking, directory traversal, session hijacking and IP spoofing.")
6712 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6713 (license license:expat)))
6715 (define-public ruby-rainbow
6717 (name "ruby-rainbow")
6722 (uri (rubygems-uri "rainbow" version))
6725 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6726 (build-system ruby-build-system)
6729 (modify-phases %standard-phases
6730 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6733 (lambda* (#:key tests? #:allow-other-keys)
6738 `(("bundler" ,bundler)
6739 ("ruby-rspec" ,ruby-rspec)))
6740 (synopsis "Colorize printed text on ANSI terminals")
6742 "@code{rainbow} provides a string presenter object to colorize strings by
6743 wrapping them in ANSI escape codes.")
6744 (home-page "https://github.com/sickill/rainbow")
6745 (license license:expat)))
6747 (define-public ruby-rr
6754 (uri (rubygems-uri "rr" version))
6757 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6758 (build-system ruby-build-system)
6760 '(#:tests? #f)) ; test files not included
6762 `(("bundler" ,bundler)
6763 ("ruby-rspec" ,ruby-rspec)))
6764 (synopsis "Ruby test double framework")
6766 "RR is a test double framework that features a rich selection of double
6767 techniques and a terse syntax.")
6768 (home-page "https://rr.github.io/rr/")
6769 (license license:expat)))
6771 (define-public ruby-rest-client
6773 (name "ruby-rest-client")
6778 (uri (rubygems-uri "rest-client" version))
6781 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6782 (build-system ruby-build-system)
6785 (modify-phases %standard-phases
6786 (add-before 'check 'remove-unnecessary-development-dependencies
6788 (substitute* "rest-client.gemspec"
6789 ;; Remove rubocop as it's unused. Rubocop also indirectly
6790 ;; depends on this package through ruby-parser and ruby-ast so
6791 ;; this avoids a dependency loop.
6792 ((".*rubocop.*") "\n")
6793 ;; Remove pry as it's unused, it's a debugging tool
6795 ;; Remove an unnecessarily strict rdoc dependency
6796 ((".*rdoc.*") "\n"))
6798 (add-before 'check 'delete-network-dependent-tests
6800 (delete-file "spec/integration/request_spec.rb")
6801 (delete-file "spec/integration/httpbin_spec.rb")
6804 `(("ruby-http-cookie" ,ruby-http-cookie)
6805 ("ruby-mime-types" ,ruby-mime-types)
6806 ("ruby-netrc" ,ruby-netrc)))
6808 `(("bundler" ,bundler)
6809 ("ruby-webmock" ,ruby-webmock-2)
6810 ("ruby-rspec" ,ruby-rspec)))
6811 (synopsis "Simple HTTP and REST client for Ruby")
6813 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6814 inspired by the Sinatra microframework style of specifying actions:
6815 @code{get}, @code{put}, @code{post}, @code{delete}.")
6816 (home-page "https://github.com/rest-client/rest-client")
6817 (license license:expat)))
6819 (define-public ruby-rubocop-ast
6821 (name "ruby-rubocop-ast")
6825 (method git-fetch) ;no test suite in distributed gem
6827 (url "https://github.com/rubocop-hq/rubocop-ast.git")
6828 (commit (string-append "v" version))))
6829 (file-name (git-file-name name version))
6832 "1ycf6qcj8nbzk2js72priim4642lkn56w5kbny1nlryjkckxgm04"))))
6833 (build-system ruby-build-system)
6835 `(#:test-target "spec"
6836 #:phases (modify-phases %standard-phases
6837 (add-after 'unpack 'disable-bundler
6839 (substitute* "Rakefile"
6840 (("Bundler\\.setup.*") "nil\n"))
6842 (replace 'replace-git-ls-files
6844 (substitute* "rubocop-ast.gemspec"
6845 (("`git ls-files(.*)`" _ files)
6846 (format #f "`find ~a -type f| sort`" files)))
6849 `(("ruby-bump" ,ruby-bump)
6850 ("ruby-rspec" ,ruby-rspec)))
6852 `(("ruby-parser" ,ruby-parser)))
6853 (synopsis "RuboCop's AST extensions and NodePattern functionality")
6854 (description "Rubocop::AST extends @code{ruby-parser} with classes used
6855 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
6857 @item @code{RuboCop::AST::Node}
6858 @item @code{RuboCop::AST::NodePattern}
6860 (home-page "https://rubocop.org/")
6861 (license license:expat)))
6863 (define-public ruby-rexml
6869 (method git-fetch) ;no tests in distributed gem
6871 (url "https://github.com/ruby/rexml.git")
6872 (commit (string-append "v" version))))
6873 (file-name (git-file-name name version))
6876 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
6877 (build-system ruby-build-system)
6878 (synopsis "XML toolkit for Ruby")
6879 (description "Inspired by Electric XML library for Java, REXML aims to be
6880 easy-to-use API, small and fast. It supports both tree and stream document
6882 (home-page "https://github.com/ruby/rexml")
6883 (license license:bsd-2)))
6885 (define-public ruby-character-set
6887 (name "ruby-character-set")
6892 (uri (rubygems-uri "character_set" version))
6895 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
6896 (build-system ruby-build-system)
6897 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
6898 (synopsis "Ruby library to manipulate Unicode")
6899 (description "CharacterSet is a C-extended Ruby library to work with sets
6900 of Unicode code points. It can read and write these sets in various formats
6901 and implements the @code{stdlib} @code{Set} interface for them. It also
6902 offers an alternate paradigm of @code{String} processing which grants much
6903 better performance than @code{Regexp} and @code{String} methods from the
6904 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
6906 @item @code{CharacterSet::Character}
6907 @item @code{CharacterSet::Parser}
6908 @item @code{CharacterSet::Writer}
6909 @item @code{RangeCompressor}
6911 (home-page "https://github.com/jaynetics/character_set")
6912 (license license:expat)))
6914 (define-public ruby-range-compressor
6916 (name "ruby-range-compressor")
6922 (url "https://github.com/janosch-x/range_compressor.git")
6923 (commit (string-append "v" version))))
6924 (file-name (git-file-name name version))
6927 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
6928 (build-system ruby-build-system)
6930 `(#:test-target "spec"
6931 #:phases (modify-phases %standard-phases
6932 (add-after 'extract-gemspec 'strip-version-requirements
6934 (substitute* "range_compressor.gemspec"
6935 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6936 (string-append stripped "\n")))
6939 `(("ruby-rspec" ,ruby-rspec)))
6940 (synopsis "Simple arrays of objects to arrays of ranges compressor")
6941 (description "RangeCompresses is a tiny library that allows compressing
6942 arrays of objects into arrays of ranges. For example, it can turn the
6943 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
6944 (home-page "https://github.com/janosch-x/range_compressor")
6945 (license license:expat)))
6947 (define-public ruby-regexp-property-values
6949 (name "ruby-regexp-property-values")
6954 (uri (git-reference ;no test suite in distributed gem
6955 (url "https://github.com/jaynetics/regexp_property_values.git")
6956 (commit (string-append "v" version))))
6957 (file-name (git-file-name name version))
6960 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
6961 (build-system ruby-build-system)
6963 '(#:test-target "default"))
6965 `(("ruby-character-set" ,ruby-character-set)
6966 ("ruby-rake-compiler" ,ruby-rake-compiler)
6967 ("ruby-range-compressor" ,ruby-range-compressor)
6968 ("ruby-rspec" ,ruby-rspec)))
6969 (synopsis "Inspect Ruby's regex engine property values")
6970 (description "This small library lets you see which property values are
6971 supported by the regular expression engine of the Ruby version you are running
6972 and can directly read out their code point ranges. In other words, it
6973 determines all supported values for @code{\\p{value}} expressions and what
6975 (home-page "https://github.com/jaynetics/regexp_property_values")
6976 (license license:expat)))
6978 (define-public ruby-regexp-parser
6980 (name "ruby-regexp-parser")
6984 (method git-fetch) ;bin/test missing from gem
6986 (url "https://github.com/ammar/regexp_parser.git")
6987 (commit (string-append "v" version))))
6988 (file-name (git-file-name name version))
6991 "0dk9d4vpw31cc06s29fqyr1kq0kipym1mydifkcrnppvpl3pd53r"))))
6992 (build-system ruby-build-system)
6994 '(#:test-target "default"
6995 #:phases (modify-phases %standard-phases
6996 (add-before 'build 'compile-scanner.rb
6998 (invoke "rake" "build")
6999 ;; XXX: This is needed otherwise the install
7000 ;; phase fails to delete the installed cached
7002 (delete-file-recursively "pkg")
7006 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
7007 ("ruby-rspec" ,ruby-rspec)))
7008 (synopsis "A regular expression parser library for Ruby ")
7009 (description "A Ruby gem for tokenizing, parsing, and transforming regular
7010 expressions. It comprises the following components:
7012 @item A scanner/tokenizer based on Ragel,
7013 @item A lexer that produces a stream of token objects,
7014 @item A parser that produces a tree of Expression objects.
7016 (home-page "https://github.com/ammar/regexp_parser")
7017 (license license:expat)))
7019 (define-public ruby-test-queue
7021 (name "ruby-test-queue")
7026 (uri (rubygems-uri "test-queue" version))
7029 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
7030 (build-system ruby-build-system)
7033 (modify-phases %standard-phases
7035 (lambda* (#:key tests? #:allow-other-keys)
7040 `(("ruby-rspec" ,ruby-rspec)))
7041 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7042 (description "The test-queue module is a parallel test runner,
7043 built using a centralized queue to ensure optimal distribution of
7044 tests between workers. It is specifically optimized for Continuous
7045 Integration (CI) environments: build statistics from each run are
7046 stored locally and used to sort the queue at the beginning of the next
7048 (home-page "https://github.com/tmm1/test-queue")
7049 (license license:expat)))
7051 (define-public ruby-rubocop
7053 (name "ruby-rubocop")
7057 (method git-fetch) ;no tests in distributed gem
7059 (url "https://github.com/rubocop-hq/rubocop.git")
7060 (commit (string-append "v" version))))
7061 (file-name (git-file-name name version))
7064 "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r"))
7065 (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch"))))
7066 (build-system ruby-build-system)
7068 '(#:test-target "default"
7070 (modify-phases %standard-phases
7071 (add-after 'unpack 'remove-problematic-tests
7072 ;; These tests depend on Rubocop extensions, which cannot be
7073 ;; included as they cause a dependency cycle with Rubocop itself.
7075 (delete-file "spec/rubocop/config_loader_spec.rb")
7076 (substitute* "Gemfile"
7077 ((".*'rubocop-performance'.*") "")
7078 ((".*'rubocop-rspec'.*") ""))
7079 ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)"
7081 (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$")
7082 (("# (rubocop:(enable|disable) RSpec.*)" _ what)
7083 (string-append "# Disabled: " what)))
7085 (add-after 'unpack 'disable-bundler
7087 (substitute* "Rakefile"
7088 (("Bundler\\.setup.*") "nil\n"))
7090 (replace 'replace-git-ls-files
7092 (substitute* "rubocop.gemspec"
7093 (("`git ls-files(.*)`" _ files)
7094 (format #f "`find ~a -type f| sort`" files)))
7096 (add-before 'check 'set-home
7098 (setenv "HOME" (getcwd))
7100 (add-before 'check 'make-adoc-files-writable
7102 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7104 (for-each make-file-writable adoc-files))
7107 `(("ruby-bump" ,ruby-bump)
7108 ("ruby-pry" ,ruby-pry)
7109 ("ruby-rspec" ,ruby-rspec)
7110 ("ruby-test-queue" ,ruby-test-queue)
7111 ("ruby-webmock" ,ruby-webmock-2)
7112 ("ruby-yard" ,ruby-yard)))
7114 `(("ruby-parallel" ,ruby-parallel)
7115 ("ruby-parser" ,ruby-parser)
7116 ("ruby-rainbow" ,ruby-rainbow)
7117 ("ruby-regexp-parser" ,ruby-regexp-parser)
7118 ("ruby-rexml" ,ruby-rexml)
7119 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7120 ("ruby-progressbar" ,ruby-progressbar)
7121 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7122 (synopsis "Ruby code style checking tool")
7124 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7125 the community-driven Ruby Style Guide.")
7126 (home-page "https://github.com/rubocop-hq/rubocop")
7127 (license license:expat)))
7129 (define-public ruby-contest
7131 (name "ruby-contest")
7136 (uri (rubygems-uri "contest" version))
7139 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7140 (build-system ruby-build-system)
7141 (synopsis "Write declarative tests using nested contexts")
7143 "Contest allows writing declarative @code{Test::Unit} tests using nested
7144 contexts without performance penalties.")
7145 (home-page "https://github.com/citrusbyte/contest")
7146 (license license:expat)))
7148 (define-public ruby-creole
7150 (name "ruby-creole")
7155 (uri (rubygems-uri "creole" version))
7158 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7159 (build-system ruby-build-system)
7161 `(("ruby-bacon" ,ruby-bacon)))
7162 (synopsis "Creole markup language converter")
7164 "Creole is a lightweight markup language and this library for converting
7165 creole to @code{HTML}.")
7166 (home-page "https://github.com/minad/creole")
7167 (license license:ruby)))
7169 (define-public ruby-docile
7171 (name "ruby-docile")
7176 (uri (rubygems-uri "docile" version))
7179 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7180 (build-system ruby-build-system)
7182 '(#:tests? #f)) ; needs github-markup, among others
7183 (synopsis "Ruby EDSL helper library")
7184 (description "Docile is a Ruby library that provides an interface for
7185 creating embedded domain specific languages (EDSLs) that manipulate existing
7187 (home-page "https://ms-ati.github.io/docile/")
7188 (license license:expat)))
7190 (define-public ruby-middleware
7192 (name "ruby-middleware")
7197 (uri (rubygems-uri "middleware" version))
7200 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7201 (build-system ruby-build-system)
7202 (arguments '(#:tests? #f)) ;no test suite
7203 (synopsis "Implementation of a middleware abstraction for Ruby")
7204 (description "Middleware is a generalized implementation of a middleware
7205 abstraction for Ruby.")
7206 (home-page "https://github.com/mitchellh/middleware")
7207 (license license:expat)))
7209 (define-public ruby-benchmark-ips
7211 (name "ruby-benchmark-ips")
7216 (uri (rubygems-uri "benchmark-ips" version))
7219 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7220 (build-system ruby-build-system)
7222 `(("ruby-hoe" ,ruby-hoe)))
7223 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7224 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7225 iterations per second count. For short snippets of code, it can automatically
7226 figure out how many times to run the code to get interesting data.")
7227 (home-page "https://github.com/evanphx/benchmark-ips")
7228 (license license:expat)))
7230 (define-public ruby-ffi-rzmq-core
7232 (name "ruby-ffi-rzmq-core")
7237 (uri (rubygems-uri "ffi-rzmq-core" version))
7240 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7241 (build-system ruby-build-system)
7244 (modify-phases %standard-phases
7245 (add-after 'unpack 'patch-libzmq-search-path
7246 (lambda* (#:key inputs #:allow-other-keys)
7247 (let ((zeromq (assoc-ref inputs "zeromq")))
7248 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7250 (string-append zeromq "/lib")))
7254 (invoke "rspec"))))))
7256 `(("ruby-rspec" ,ruby-rspec)))
7258 `(("zeromq" ,zeromq)))
7259 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7260 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7261 (description "This library only provides the FFI wrapper for the ZeroMQ
7262 networking library. It can be used to implement a Ruby API for the ZeroMQ
7264 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7265 (license license:expat)))
7267 (define-public ruby-ffi-rzmq
7269 (name "ruby-ffi-rzmq")
7274 (uri (rubygems-uri "ffi-rzmq" version))
7277 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7278 (build-system ruby-build-system)
7279 (arguments '(#:tests? #t
7280 #:phases (modify-phases %standard-phases
7283 (invoke "rspec"))))))
7285 `(("ruby-rspec" ,ruby-rspec)))
7287 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7288 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7289 (description "This library provides a high-level API that wraps the ZeroMQ
7290 networking library using the Ruby foreign function interface (FFI). It is a
7291 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7293 (home-page "https://github.com/chuckremes/ffi-rzmq")
7294 (license license:expat)))
7296 (define-public ruby-sawyer
7298 (name "ruby-sawyer")
7303 (uri (rubygems-uri "sawyer" version))
7306 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7307 (build-system ruby-build-system)
7309 `(("ruby-addressable" ,ruby-addressable)
7310 ("ruby-faraday" ,ruby-faraday)))
7311 (synopsis "Experimental hypermedia agent for Ruby")
7312 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7314 (home-page "https://github.com/lostisland/sawyer")
7315 (license license:expat)))
7317 (define-public ruby-octokit
7319 (name "ruby-octokit")
7324 (uri (rubygems-uri "octokit" version))
7327 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7328 (build-system ruby-build-system)
7329 (arguments '(#:tests? #f)) ;no test suite in the gem release
7331 `(("ruby-faraday" ,ruby-faraday)
7332 ("ruby-sawyer" ,ruby-sawyer)))
7333 (synopsis "Ruby toolkit for the GitHub API")
7334 (description "Octokit wraps the GitHub API in a flat API client that
7335 follows Ruby conventions and requires little knowledge of REST.")
7336 (home-page "https://github.com/octokit/octokit.rb")
7337 (license license:expat)))
7339 (define-public ruby-chandler
7341 (name "ruby-chandler")
7346 (uri (rubygems-uri "chandler" version))
7349 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7350 (build-system ruby-build-system)
7352 `(("ruby-rubocop" ,ruby-rubocop)))
7354 `(("ruby-netrc" ,ruby-netrc)
7355 ("ruby-octokit" ,ruby-octokit)))
7356 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7357 (description "Chandler syncs a project's CHANGELOG file entries to
7358 GitHub's release notes to remove the need of manually entering release
7360 (home-page "https://github.com/mattbrictson/chandler")
7361 (license license:expat)))
7363 (define-public ruby-pry-byebug
7365 (name "ruby-pry-byebug")
7371 (url "https://github.com/deivid-rodriguez/pry-byebug")
7372 (commit (string-append "v" version))))
7373 (file-name (git-file-name name version))
7376 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7377 (build-system ruby-build-system)
7379 `(#:phases (modify-phases %standard-phases
7380 (add-before 'check 'set-home
7382 (setenv "HOME" (getcwd))
7385 `(("ruby-chandler" ,ruby-chandler)
7386 ("ruby-rubocop" ,ruby-rubocop)
7387 ("ruby-simplecov" ,ruby-simplecov)))
7389 `(("ruby-byebug" ,ruby-byebug-11)
7390 ("ruby-pry" ,ruby-pry)))
7391 (synopsis "Step-by-step debugging and stack navigation in Pry")
7392 (description "This package adds step-by-step debugging and stack
7393 navigation capabilities to @code{pry}, using @code{byebug}.")
7394 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7395 (license license:expat)))
7397 (define-public ruby-binding-of-caller
7399 (name "ruby-binding-of-caller")
7404 (uri (rubygems-uri "binding_of_caller" version))
7407 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7408 (build-system ruby-build-system)
7409 ;; Attempting to run the test suite fails with a rake deprecation error
7410 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7411 (arguments '(#:tests? #f))
7413 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7414 (synopsis "Retrieve the binding of a method's caller")
7415 (description "The @code{binding_of_caller} module provides the
7416 @code{Binding#of_caller} method. It allows accessing bindings from upper
7417 frames in the call stack and can evaluate code in that context.")
7418 (home-page "https://github.com/banister/binding_of_caller")
7419 (license license:expat)))
7421 (define-public ruby-pry-stack-explorer
7423 (name "ruby-pry-stack-explorer")
7428 (uri (rubygems-uri "pry-stack_explorer" version))
7431 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7432 (build-system ruby-build-system)
7433 (arguments '(#:tests? #f)) ;no test suite in gem release
7435 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7436 ("ruby-pry" ,ruby-pry)))
7437 (synopsis "Call-stack navigation plugin for the Pry REPL")
7438 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7439 add support to navigate the call-stack.")
7440 (home-page "https://github.com/pry/pry-stack_explorer")
7441 (license license:expat)))
7443 (define-public ruby-varint
7445 (name "ruby-varint")
7450 (uri (rubygems-uri "varint" version))
7453 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7454 (build-system ruby-build-system)
7455 (arguments '(#:tests? #f)) ;no test suite
7456 (synopsis "Variable length integers (varint) C extension for Ruby")
7457 (description "This package provides a small C extension to speed up
7458 variable length integers (varint) in Ruby Protocol Buffers.")
7459 (home-page "https://github.com/liquidm/varint")
7460 (license license:bsd-3)))
7462 (define-public ruby-ruby-prof
7464 (name "ruby-ruby-prof")
7469 (uri (rubygems-uri "ruby-prof" version))
7472 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7473 (build-system ruby-build-system)
7476 (modify-phases %standard-phases
7477 (add-after 'unpack 'patch-rakefile
7478 ;; This fixes the following error: "NameError: uninitialized
7479 ;; constant Bundler::GemHelper" (see:
7480 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7482 (substitute* "Rakefile"
7483 ((".*require \"bundler/setup\".*" all)
7484 (string-append all " require 'bundler/gem_tasks'\n")))
7486 ;; The LineNumbersTest test fails non-deterministically (see:
7487 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7488 (add-after 'extract-gemspec 'delete-flaky-test
7490 (delete-file "test/line_number_test.rb")
7491 (substitute* "ruby-prof.gemspec"
7492 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7494 (add-before 'check 'compile
7496 (invoke "rake" "compile"))))))
7498 `(("bundler" ,bundler)
7499 ("ruby-minitest" ,ruby-minitest)
7500 ("ruby-rake-compiler" ,ruby-rake-compiler)
7501 ("ruby-rdoc" ,ruby-rdoc)))
7502 (synopsis "Fast code profiler for Ruby")
7503 (description "RubyProf is a fast code profiler for Ruby. Its features
7507 Being a C extension, it is many times faster than the standard Ruby profiler.
7508 @item Measurement Modes
7509 It can measure program wall time, process time, object allocations and memory
7512 A variety of text and cross-referenced HTML reports can be generated.
7514 Profiling multiple threads simultaneously is supported.
7516 (home-page "https://github.com/ruby-prof/ruby-prof")
7517 (license license:bsd-2)))
7519 (define-public ruby-cucumber-messages
7521 (name "ruby-cucumber-messages")
7526 (url "https://github.com/cucumber/messages-ruby")
7527 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7528 (file-name (git-file-name name version))
7531 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7532 (build-system ruby-build-system)
7534 `(#:phases (modify-phases %standard-phases
7535 (add-after 'unpack 'patch-protobuf.rb
7537 (substitute* "rake/protobuf.rb"
7538 (("load 'protobuf/tasks/compile.rake'")
7539 "require 'protobuf/tasks'"))
7541 (add-before 'build 'compile
7543 (substitute* "Makefile"
7544 (("bundle exec ") "")
7545 (("include default.mk.*" all)
7546 (string-append "#" all)))
7550 (invoke "rspec"))))))
7552 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7554 `(("ruby-rspec" ,ruby-rspec)))
7555 (home-page "https://github.com/cucumber/messages-ruby")
7556 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7557 (description "Cucumber Messages for Ruby is a library which allows
7558 serialization and deserialization of the protocol buffer messages used in
7560 (license license:expat)))
7562 (define-public ruby-gherkin
7564 (name "ruby-gherkin")
7569 (url "https://github.com/cucumber/gherkin-ruby")
7570 (commit (string-append "v" version))))
7571 (file-name (git-file-name name version))
7574 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7575 (build-system ruby-build-system)
7577 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7578 ("ruby-rspec" ,ruby-rspec)))
7580 `(#:test-target "spec"))
7581 (synopsis "Gherkin parser for Ruby")
7582 (description "Gherkin is a parser and compiler for the Gherkin language.
7583 It is intended be used by all Cucumber implementations to parse
7584 @file{.feature} files.")
7585 (home-page "https://github.com/cucumber/gherkin-ruby")
7586 (license license:expat)))
7588 (define-public ruby-gherkin-ruby
7590 (name "ruby-gherkin-ruby")
7592 (home-page "https://github.com/codegram/gherkin-ruby")
7595 (uri (rubygems-uri "gherkin-ruby" version))
7598 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7599 (build-system ruby-build-system)
7600 (synopsis "Pure Ruby Gherkin parser")
7602 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7603 200 lines of code.")
7604 ;; XXX: No license information anywhere but Readme.md.
7605 (license license:expat)))
7607 (define-public ruby-aruba
7614 (uri (rubygems-uri "aruba" version))
7617 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7618 (build-system ruby-build-system)
7620 '(#:test-target "spec"
7622 (modify-phases %standard-phases
7623 (add-after 'unpack 'patch
7625 (substitute* "spec/aruba/api_spec.rb"
7626 ;; This resolves some errors in the specs
7628 ;; undefined method `parse' for Time:Class
7629 (("require 'spec_helper'")
7630 "require 'spec_helper'\nrequire 'time'"))
7631 ;; Avoid shebang issues in this spec file
7632 (substitute* "spec/aruba/matchers/command_spec.rb"
7633 (("/usr/bin/env bash")
7636 (add-before 'check 'remove-unnecessary-dependencies
7638 (substitute* "Gemfile"
7639 ((".*byebug.*") "\n")
7643 ((".*kramdown.*") "\n")
7644 ((".*rubocop.*") "\n")
7645 ((".*cucumber-pro.*") "\n")
7646 ((".*cucumber.*") "\n")
7647 ((".*license_finder.*") "\n")
7648 ((".*rake.*") "gem 'rake'\n")
7649 ((".*relish.*") "\n"))
7650 (substitute* "aruba.gemspec"
7651 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7652 "spec.add_runtime_dependency 'cucumber'"))
7654 (add-before 'check 'set-home
7655 (lambda _ (setenv "HOME" "/tmp") #t)))))
7657 `(("bundler" ,bundler)
7658 ("ruby-rspec" ,ruby-rspec)
7659 ("ruby-fuubar" ,ruby-fuubar)
7660 ("ruby-simplecov" ,ruby-simplecov)))
7662 `(("ruby-childprocess" ,ruby-childprocess)
7663 ("ruby-contracts" ,ruby-contracts)
7664 ("ruby-cucumber" ,ruby-cucumber)
7665 ("ruby-ffi" ,ruby-ffi)
7666 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7667 ("ruby-thor" ,ruby-thor)
7668 ("ruby-yard" ,ruby-yard)))
7669 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7671 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7672 command-line applications. It supports applications written in any
7674 (home-page "https://github.com/cucumber/aruba")
7675 (license license:expat)))
7677 ;; A version of ruby-aruba without tests run so that circular dependencies can
7679 (define ruby-aruba-without-tests
7681 (inherit ruby-aruba)
7682 (arguments '(#:tests? #f))
7684 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7685 ,@(alist-delete "ruby-cucumber"
7686 (package-propagated-inputs ruby-aruba))))
7687 (native-inputs '())))
7689 (define-public ruby-sys-uname
7691 (name "ruby-sys-uname")
7696 (uri (rubygems-uri "sys-uname" version))
7699 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7700 (build-system ruby-build-system)
7702 `(#:test-target "spec"))
7703 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7704 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7705 (synopsis "Ruby interface for gathering system information")
7706 (description "The sys-uname library provides an interface for gathering
7707 information about your current platform. It allows retrieving information
7708 such as the OS name, OS version, system name, etc.")
7709 (home-page "https://github.com/djberg96/sys-uname")
7710 (license license:asl2.0)))
7712 (define-public ruby-cucumber-create-meta
7714 (name "ruby-cucumber-create-meta")
7719 (uri (rubygems-uri "cucumber-create-meta" version))
7722 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
7723 (build-system ruby-build-system)
7725 `(#:phases (modify-phases %standard-phases
7726 (add-after 'extract-gemspec 'relax-version-requirements
7728 (substitute* ".gemspec"
7734 (invoke "rspec"))))))
7736 `(("ruby-rspec" ,ruby-rspec)))
7738 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7739 ("ruby-sys-uname" ,ruby-sys-uname)))
7740 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
7741 (description "The @code{createMeta} utility function allows generating
7742 system-specific @code{Meta} messages for Cucumber Ruby.")
7743 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
7744 (license license:expat)))
7746 (define-public ruby-cucumber-html-formatter
7748 (name "ruby-cucumber-html-formatter")
7753 (uri (rubygems-uri "cucumber-html-formatter" version))
7756 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
7757 (build-system ruby-build-system)
7759 `(#:phases (modify-phases %standard-phases
7762 (invoke "rspec"))))))
7764 `(("ruby-rspec" ,ruby-rspec)))
7766 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7767 (synopsis "HTML formatter for Cucumber")
7768 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
7769 runs. It is built on top of cucumber-react and works with any Cucumber
7770 implementation with a protocol buffer formatter that outputs Cucumber
7772 (home-page "https://github.com/cucumber/cucumber/tree/\
7773 master/html-formatter/ruby")
7774 (license license:expat)))
7776 (define-public ruby-cucumber
7778 (name "ruby-cucumber")
7784 (url "https://github.com/cucumber/cucumber-ruby")
7785 (commit (string-append "v" version))))
7786 (file-name (git-file-name name version))
7789 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
7790 (build-system ruby-build-system)
7792 '(#:test-target "default"
7794 (modify-phases %standard-phases
7795 (add-after 'unpack 'disable-rubocop
7796 ;; Rubocop lint check fails with our more recent version.
7798 (substitute* "Rakefile"
7799 (("spec cucumber rubocop")
7802 (add-after 'extract-gemspec 'strip-version-requirements
7804 (delete-file "Gemfile") ;do not use Bundler
7805 (substitute* "cucumber.gemspec"
7806 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7807 (string-append stripped "\n")))
7809 (add-before 'check 'set-home
7811 (setenv "HOME" (getcwd))
7814 `(("ruby-builder" ,ruby-builder)
7815 ("ruby-cucumber-core" ,ruby-cucumber-core)
7816 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
7817 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
7818 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
7819 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
7820 ("ruby-diff-lcs" ,ruby-diff-lcs)
7821 ("ruby-gherkin" ,ruby-gherkin)
7822 ("ruby-multi-json" ,ruby-multi-json)
7823 ("ruby-multi-test" ,ruby-multi-test)))
7825 `(;; Use a untested version of aruba, to avoid a circular dependency, as
7826 ;; ruby-aruba depends on ruby-cucumber.
7827 ("ruby-aruba" ,ruby-aruba-without-tests)
7828 ("ruby-rspec" ,ruby-rspec)
7829 ("ruby-pry" ,ruby-pry)
7830 ("ruby-nokogiri" ,ruby-nokogiri)
7831 ("ruby-rubocop" ,ruby-rubocop)))
7832 (synopsis "Describe automated tests in plain language")
7833 (description "Cucumber is a tool for running automated tests written in
7834 plain language. It's designed to support a Behaviour Driven Development (BDD)
7835 software development workflow.")
7836 (home-page "https://cucumber.io/")
7837 (license license:expat)))
7839 (define ruby-cucumber-without-tests
7840 (package (inherit ruby-cucumber)
7846 (define-public ruby-coveralls
7848 (name "ruby-coveralls")
7853 (uri (rubygems-uri "coveralls" version))
7856 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
7857 (build-system ruby-build-system)
7858 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
7859 ;; because of its nonfree, Hippocratic-derived license.
7862 #:phases (modify-phases %standard-phases
7863 (add-after 'extract-gemspec 'strip-version-requirements
7864 ;; Keeping strict version requirements can cause problems
7865 ;; to users of the library, such as: Gem::ConflictError:
7866 ;; Unable to activate coveralls-0.8.23, because
7867 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
7869 (substitute* "coveralls-ruby.gemspec"
7870 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
7871 (string-append stripped ")\n")))
7874 `(("ruby-json" ,ruby-json)
7875 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
7876 ("ruby-thor" ,ruby-thor)
7877 ("ruby-tins" ,ruby-tins)))
7878 (synopsis "Ruby implementation of the Coveralls API")
7879 (description "This package provides a Ruby implementation of the Coveralls
7881 (home-page "https://coveralls.io")
7882 (license license:expat)))
7884 (define-public ruby-unindent
7886 (name "ruby-unindent")
7891 (uri (rubygems-uri "unindent" version))
7894 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
7895 (build-system ruby-build-system)
7896 (synopsis "Ruby method to unindent strings")
7897 (description "This module provides a @code{String#unindent} Ruby method to
7898 unindent strings, which can be useful to unindent multiline strings embedded
7899 in already-indented code.")
7900 (home-page "https://github.com/mynyml/unindent")
7901 (license license:expat)))
7903 (define-public ruby-cucumber-core
7905 (name "ruby-cucumber-core")
7911 (url "https://github.com/cucumber/cucumber-ruby-core")
7912 (commit (string-append "v" version))))
7913 (file-name (git-file-name name version))
7916 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
7917 (build-system ruby-build-system)
7919 `(#:test-target "spec"
7921 (modify-phases %standard-phases
7922 (add-after 'extract-gemspec 'relax-version-requirements
7924 (substitute* "cucumber-core.gemspec"
7925 (("'cucumber-tag-expressions',.*")
7926 "'cucumber-tag-expressions', '>=2.0.0'\n"))
7929 `(("ruby-rspec" ,ruby-rspec)
7930 ("ruby-coveralls" ,ruby-coveralls)
7931 ("ruby-rubocop" ,ruby-rubocop)
7932 ("ruby-simplecov" ,ruby-simplecov)
7933 ("ruby-unindent" ,ruby-unindent)))
7935 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7936 ("ruby-gherkin" ,ruby-gherkin)
7937 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
7938 (synopsis "Core library for the Cucumber BDD app")
7939 (description "Cucumber is a tool for running automated tests
7940 written in plain language. Because they're written in plain language,
7941 they can be read by anyone on your team. Because they can be read by
7942 anyone, you can use them to help improve communication, collaboration
7943 and trust on your team.")
7944 (home-page "https://cucumber.io/")
7945 (license license:expat)))
7947 (define-public ruby-cucumber-expressions
7949 (name "ruby-cucumber-expressions")
7955 (url "https://github.com/cucumber/cucumber-expressions-ruby")
7956 (commit (string-append "v" version))))
7957 (file-name (git-file-name name version))
7960 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
7961 (build-system ruby-build-system)
7963 '(#:test-target "spec"))
7965 `(("ruby-rspec" ,ruby-rspec)
7966 ("ruby-simplecov" ,ruby-simplecov)))
7967 (synopsis "Simpler alternative to Regular Expressions")
7968 (description "Cucumber Expressions offer similar functionality to Regular
7969 Expressions, with a syntax that is easier to read and write. Cucumber
7970 Expressions are extensible with parameter types.")
7971 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7972 (license license:expat)))
7974 (define-public ruby-cucumber-wire
7976 (name "ruby-cucumber-wire")
7981 (uri (rubygems-uri "cucumber-wire" version))
7984 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
7985 (build-system ruby-build-system)
7987 '(#:tests? #f ;tests use cucumber, causing a cycle
7989 (modify-phases %standard-phases
7990 (add-after 'extract-gemspec 'relax-version-requirements
7992 (substitute* ".gemspec"
7993 ((" 10\\.1") " 10.2"))
7996 `(("ruby-cucumber-core" ,ruby-cucumber-core)
7997 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
7998 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7999 (synopsis "Cucumber wire protocol plugin")
8000 (description "Cucumber's wire protocol allows step definitions to be
8001 implemented and invoked on any platform.")
8002 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
8003 (license license:expat)))
8005 (define-public ruby-cucumber-tag-expressions
8007 (name "ruby-cucumber-tag-expressions")
8013 (url "https://github.com/cucumber/tag-expressions-ruby")
8014 (commit (string-append "v" version))))
8015 (file-name (git-file-name name version))
8018 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
8019 (build-system ruby-build-system)
8021 `(#:test-target "spec"))
8023 `(("ruby-rspec" ,ruby-rspec)))
8024 (synopsis "Cucumber tag expressions for Ruby")
8025 (description "Cucumber tag expression parser for Ruby. A tag expression
8026 is an infix boolean expression used by Cucumber.")
8027 (home-page "https://github.com/cucumber/tag-expressions-ruby")
8028 (license license:expat)))
8030 (define-public ruby-bindex
8032 (name "ruby-bindex")
8037 (uri (rubygems-uri "bindex" version))
8040 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8041 (build-system ruby-build-system)
8043 '(#:test-target "default"))
8045 `(("bundler" ,bundler)
8046 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8047 (synopsis "Provides access for bindings relating to Ruby exceptions")
8049 "@code{bindex} provides a way to access the bindings that relate to
8050 exceptions in Ruby, providing more information about the context in which the
8051 exception occurred.")
8052 (home-page "https://github.com/gsamokovarov/bindex")
8053 (license license:expat)))
8055 (define-public ruby-bio-logger
8057 (name "ruby-bio-logger")
8062 (uri (rubygems-uri "bio-logger" version))
8065 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8066 (build-system ruby-build-system)
8068 `(#:tests? #f)) ; rake errors, missing shoulda
8070 `(("ruby-log4r" ,ruby-log4r)))
8071 (synopsis "Log4r wrapper for Ruby")
8072 (description "Bio-logger is a wrapper around Log4r adding extra logging
8073 features such as filtering and fine grained logging.")
8074 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8075 (license license:expat)))
8077 (define-public ruby-yajl-ruby
8079 (name "ruby-yajl-ruby")
8084 (uri (rubygems-uri "yajl-ruby" version))
8087 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8088 (build-system ruby-build-system)
8090 '(#:test-target "spec"
8092 (modify-phases %standard-phases
8093 (add-before 'check 'patch-test-to-update-load-path
8095 (substitute* "spec/parsing/large_number_spec.rb"
8096 (("require \"yajl\"")
8097 "$LOAD_PATH << 'lib'; require 'yajl'"))
8100 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8101 ("ruby-rspec" ,ruby-rspec)))
8102 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8104 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8105 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8108 A modified copy of yajl is used, and included in the package.")
8109 (home-page "https://github.com/brianmario/yajl-ruby")
8110 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8111 license:bsd-3)))) ; Included, modified copy of yajl
8113 (define-public ruby-yard
8120 ;; Tests do not pass if we build from the distributed gem.
8122 (url "https://github.com/lsegal/yard")
8123 (commit (string-append "v" version))))
8124 (file-name (git-file-name name version))
8127 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8128 (build-system ruby-build-system)
8130 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8133 #:phases (modify-phases %standard-phases
8134 (add-after 'unpack 'do-not-set-date-in-gemspec
8135 ;; Fix a reproducibility issue (see:
8136 ;; https://github.com/lsegal/yard/issues/1343).
8138 (substitute* "yard.gemspec"
8139 ((".*s\\.date.*") ""))
8141 (synopsis "Documentation generation tool for Ruby")
8142 (description "YARD is a documentation generation tool for the Ruby
8143 programming language. It enables the user to generate consistent, usable
8144 documentation that can be exported to a number of formats very easily, and
8145 also supports extending for custom Ruby constructs such as custom class level
8147 (home-page "https://yardoc.org")
8148 (license license:expat)))
8150 (define-public ruby-yard-with-tests
8153 (name "ruby-yard-with-tests")
8155 (substitute-keyword-arguments (package-arguments ruby-yard)
8156 ((#:tests? _ #t) #t)
8157 ((#:test-target _ "default") "default")
8158 ((#:phases phases '%standard-phases)
8159 `(modify-phases ,phases
8160 (add-before 'check 'prepare-for-tests
8161 (lambda* (#:key tests? #:allow-other-keys)
8163 (substitute* "Rakefile"
8164 ((".*[Ss]amus.*") ""))
8165 ;; Delete the Gemfile to avoid errors relating to it.
8166 (delete-file "Gemfile")
8167 ;; $HOME needs to be set to somewhere writeable for tests to
8169 (setenv "HOME" "/tmp"))
8172 `(("ruby-rspec" ,ruby-rspec)
8173 ("ruby-rack" ,ruby-rack)
8174 ("ruby-redcloth" ,ruby-redcloth)
8175 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8177 (define-public ruby-spectroscope
8179 (name "ruby-spectroscope")
8184 (uri (rubygems-uri "spectroscope" version))
8187 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8188 (build-system ruby-build-system)
8191 (modify-phases %standard-phases
8194 (with-output-to-file ".test"
8203 Test.run :default do |run|
8204 run.files << 'spec/*_spec.rb'
8206 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8208 `(("ruby-ae" ,ruby-ae)
8209 ("ruby-rspec" ,ruby-rspec)))
8211 `(("ruby-rubytest" ,ruby-rubytest)))
8212 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8213 (description "Spectroscope is a Behavior-Driven Development (BDD)
8214 framework built on RubyTest, designed to emulate RSpec in most respects. It
8215 is assertion framework independent so any number of assertion systems can be
8216 used, such as Assay or AE.")
8217 (home-page "http://rubyworks.github.com/spectroscope/")
8218 (license license:bsd-2)))
8220 (define-public ruby-tomparse
8222 (name "ruby-tomparse")
8227 (uri (rubygems-uri "tomparse" version))
8230 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8231 (build-system ruby-build-system)
8232 ;; TODO: Tests require citron and rulebow, not yet packaged.
8233 (arguments '(#:tests? #f))
8234 (synopsis "TomDoc parser for Ruby")
8235 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8236 comment as input and parses it into a convenient object-oriented structure in
8237 accordance with the TomDoc standard. See
8238 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8240 (home-page "http://rubyworks.github.com/tomparse/")
8241 (license license:bsd-2)))
8243 (define-public ruby-yard-tomdoc
8245 (name "ruby-yard-tomdoc")
8250 (uri (rubygems-uri "yard-tomdoc" version))
8253 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8254 (build-system ruby-build-system)
8256 `(#:phases (modify-phases %standard-phases
8259 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8261 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8262 ("ruby-spectroscope" ,ruby-spectroscope)
8263 ("ruby-ae" ,ruby-ae)))
8265 `(("ruby-tomparse" ,ruby-tomparse)
8266 ("ruby-yard" ,ruby-yard)))
8267 (synopsis "TomDoc syntax for YARD")
8268 (description "This module adds support for the TomDoc documentation format
8269 to YARD, a documentation generation tool for Ruby.")
8270 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8271 (license license:expat)))
8273 (define-public ruby-clap
8279 (uri (rubygems-uri "clap" version))
8282 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8283 (build-system ruby-build-system)
8284 ;; Clap needs cutest for running tests, but cutest needs clap.
8285 (arguments `(#:tests? #f))
8286 (synopsis "Command line argument parsing for simple applications")
8288 "Clap provides command line argument parsing features. It covers the
8289 simple case of executing code based on the flags or parameters passed.")
8290 (home-page "https://github.com/djanowski/cutest")
8291 (license license:expat)))
8293 (define-public ruby-cutest
8295 (name "ruby-cutest")
8299 (uri (rubygems-uri "cutest" version))
8302 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8303 (build-system ruby-build-system)
8305 `(("ruby-clap" ,ruby-clap)))
8306 (synopsis "Run tests in separate processes")
8308 "Cutest runs tests in separate processes to avoid shared state.")
8309 (home-page "https://github.com/djanowski/cutest")
8310 (license license:expat)))
8312 (define-public ruby-pygmentize
8314 (name "ruby-pygmentize")
8318 (uri (rubygems-uri "pygmentize" version))
8321 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8322 (build-system ruby-build-system)
8325 (modify-phases %standard-phases
8326 (add-after 'unpack 'fix-pygmentize-path
8328 (substitute* "lib/pygmentize.rb"
8329 (("\"/usr/bin/env python.*")
8330 (string-append "\"" (which "pygmentize") "\"\n")))
8332 (add-after 'build 'do-not-use-vendor-directory
8334 ;; Remove bundled pygments sources
8335 ;; FIXME: ruby-build-system does not support snippets.
8336 (delete-file-recursively "vendor")
8337 (substitute* "pygmentize.gemspec"
8338 (("\"vendor/\\*\\*/\\*\",") ""))
8341 `(("pygments" ,python-pygments)))
8343 `(("ruby-cutest" ,ruby-cutest)
8344 ("ruby-nokogiri" ,ruby-nokogiri)))
8345 (synopsis "Thin Ruby wrapper around pygmentize")
8347 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8349 (home-page "https://github.com/djanowski/pygmentize")
8350 (license license:expat)))
8352 (define-public ruby-eventmachine
8354 (name "ruby-eventmachine")
8359 (uri (rubygems-uri "eventmachine" version))
8362 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8363 (build-system ruby-build-system)
8365 '(#:tests? #f)) ; test suite tries to connect to google.com
8367 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8368 (synopsis "Single-threaded network event framework for Ruby")
8370 "EventMachine implements a single-threaded engine for arbitrary network
8371 communications. EventMachine wraps all interactions with sockets, allowing
8372 programs to concentrate on the implementation of network protocols. It can be
8373 used to create both network servers and clients.")
8374 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8375 (home-page "https://github.com/eventmachine/eventmachine")
8376 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8378 (define-public ruby-ruby-engine
8380 (name "ruby-ruby-engine")
8385 (uri (rubygems-uri "ruby_engine" version))
8388 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8389 (build-system ruby-build-system)
8392 (modify-phases %standard-phases
8393 (add-after 'extract-gemspec 'clean-up
8395 (delete-file "Gemfile.lock")
8396 (substitute* "ruby_engine.gemspec"
8397 ;; Remove unnecessary imports that would entail further
8400 ((".*<rubygems-tasks.*") "")
8401 ;; Remove extraneous .gem file
8402 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8403 (("\"Gemfile.lock\".freeze, ") "")
8404 ;; Soften rake dependency
8405 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8406 "%q<rake>.freeze, [\">= 10.0\"]")
8407 ;; Soften the rspec dependency
8408 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8409 "%q<rspec>.freeze, [\">= 2.4\"]"))
8410 (substitute* "Rakefile"
8411 (("require 'rubygems/tasks'") "")
8412 (("Gem::Tasks.new") ""))
8413 ;; Remove extraneous .gem file that otherwise gets installed.
8414 (delete-file-recursively "pkg")
8417 `(("bundler" ,bundler)
8418 ("ruby-rake" ,ruby-rake)
8419 ("ruby-rspec" ,ruby-rspec)))
8420 (synopsis "Simplifies checking for Ruby implementation")
8422 "@code{ruby_engine} provides an RubyEngine class that can be used to
8423 check which implementation of Ruby is in use. It can provide the interpreter
8424 name and provides query methods such as @{RubyEngine.mri?}.")
8425 (home-page "https://github.com/janlelis/ruby_engine")
8426 (license license:expat)))
8428 (define-public ruby-turn
8435 (uri (rubygems-uri "turn" version))
8438 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8439 (build-system ruby-build-system)
8442 (modify-phases %standard-phases
8443 ;; Tests fail because turn changes its environment so can no longer
8444 ;; find test/unit. Instead simply test if the executable runs
8448 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8450 `(("ruby-ansi" ,ruby-ansi)
8451 ("ruby-minitest" ,ruby-minitest-4)))
8452 (synopsis "Alternate set of alternative runners for MiniTest")
8454 "TURN provides a set of alternative runners for MiniTest which are both
8455 colorful and informative. TURN displays each test on a separate line with
8456 failures being displayed immediately instead of at the end of the tests. Note
8457 that TURN is no longer being maintained.")
8458 (home-page "https://rubygems.org/gems/turn")
8459 (license license:expat)))
8461 (define-public ruby-mimemagic
8463 (name "ruby-mimemagic")
8468 (uri (rubygems-uri "mimemagic" version))
8470 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8471 (build-system ruby-build-system)
8474 (modify-phases %standard-phases
8475 ;; This phase breaks the tests, as it patches some of the test data.
8476 (delete 'patch-source-shebangs))))
8478 `(("ruby-bacon" ,ruby-bacon)))
8479 (synopsis "Ruby library for MIME detection by extension or content")
8481 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8482 extension or content, using the freedesktop.org.xml shared-mime-info
8484 (home-page "https://github.com/minad/mimemagic")
8485 (license license:expat)))
8487 (define-public ruby-mime-types-data
8489 (name "ruby-mime-types-data")
8490 (version "3.2016.0521")
8494 (uri (rubygems-uri "mime-types-data" version))
8497 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8498 (build-system ruby-build-system)
8500 `(("ruby-hoe" ,ruby-hoe)))
8501 (synopsis "Registry for information about MIME media type definitions")
8503 "@code{mime-types-data} provides a registry for information about
8504 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8505 be used with the Ruby mime-types library or other software to determine
8506 defined filename extensions for MIME types, or to use filename extensions to
8507 look up the likely MIME type definitions.")
8508 (home-page "https://github.com/mime-types/mime-types-data/")
8509 (license license:expat)))
8511 (define-public ruby-mime-types
8513 (name "ruby-mime-types")
8518 (uri (rubygems-uri "mime-types" version))
8521 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8522 (build-system ruby-build-system)
8524 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8526 `(("ruby-hoe" ,ruby-hoe)
8527 ("ruby-fivemat" ,ruby-fivemat)
8528 ("ruby-minitest-focus" ,ruby-minitest-focus)
8529 ("ruby-minitest-rg" ,ruby-minitest-rg)
8530 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8531 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8532 (synopsis "Library and registry for MIME content type definitions")
8533 (description "The mime-types library provides a library and registry for
8534 information about Multipurpose Internet Mail Extensions (MIME) content type
8535 definitions. It can be used to determine defined filename extensions for MIME
8536 types, or to use filename extensions to look up the likely MIME type
8538 (home-page "https://github.com/mime-types/ruby-mime-types")
8539 (license license:expat)))
8541 (define-public ruby-fivemat
8543 (name "ruby-fivemat")
8548 (uri (rubygems-uri "fivemat" version))
8551 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8552 (build-system ruby-build-system)
8554 `(#:tests? #f)) ; no tests
8555 (synopsis "Each test file given its own line of dots")
8557 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8558 its own line of dots during testing. It aims to provide test output that is
8559 neither too verbose nor too minimal.")
8560 (home-page "https://github.com/tpope/fivemat")
8561 (license license:expat)))
8563 (define-public ruby-sqlite3
8565 (name "ruby-sqlite3")
8570 (uri (rubygems-uri "sqlite3" version))
8573 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8574 (build-system ruby-build-system)
8577 (modify-phases %standard-phases
8578 (add-before 'check 'add-gemtest-file
8579 ;; This file exists in the repository but is not distributed.
8580 (lambda _ (invoke "touch" ".gemtest"))))))
8582 `(("sqlite" ,sqlite)))
8584 `(("ruby-hoe" ,ruby-hoe)
8585 ("ruby-rake-compiler" ,ruby-rake-compiler)
8586 ("ruby-mini-portile" ,ruby-mini-portile)))
8587 (synopsis "Interface with SQLite3 databases")
8589 "This module allows Ruby programs to interface with the SQLite3 database
8592 "https://github.com/sparklemotion/sqlite3-ruby")
8593 (license license:bsd-3)))
8595 (define-public ruby-shoulda-context
8597 (name "ruby-shoulda-context")
8602 (uri (rubygems-uri "shoulda-context" version))
8605 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8606 (build-system ruby-build-system)
8609 (modify-phases %standard-phases
8612 ;; Do not run tests to avoid circular dependence with rails.
8613 ;; Instead just import the library to test.
8614 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8615 (synopsis "Test::Unit context framework extracted from Shoulda")
8617 "@code{shoulda-context} is the context framework extracted from Shoulda.
8618 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8619 context, setup, and should blocks combine to produce natural test method
8621 (home-page "https://github.com/thoughtbot/shoulda-context")
8622 (license license:expat)))
8624 (define-public ruby-shoulda-matchers
8626 (name "ruby-shoulda-matchers")
8631 (uri (rubygems-uri "shoulda-matchers" version))
8634 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8635 (build-system ruby-build-system)
8638 (modify-phases %standard-phases
8641 ;; Do not run tests to avoid circular dependence with rails. Instead
8642 ;; just import the library to test.
8643 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8645 `(("ruby-activesupport" ,ruby-activesupport)))
8646 (synopsis "Collection of testing matchers extracted from Shoulda")
8648 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8649 test common Rails functionality. These tests would otherwise be much longer,
8650 more complex, and error-prone.")
8651 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8652 (license license:expat)))
8654 (define-public ruby-shoulda-matchers-2
8656 (inherit ruby-shoulda-matchers)
8660 (uri (rubygems-uri "shoulda-matchers" version))
8663 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8665 (define-public ruby-shoulda
8667 (name "ruby-shoulda")
8672 (uri (rubygems-uri "shoulda" version))
8675 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8676 (build-system ruby-build-system)
8679 (modify-phases %standard-phases
8681 ;; Don't run tests to avoid circular dependence with rails. Instead
8682 ;; just import the library to test.
8683 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8685 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8686 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8687 (synopsis "Context framework and matchers for testing")
8689 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8690 @code{shoulda-matchers} providing tools for writing tests.")
8691 (home-page "https://github.com/thoughtbot/shoulda")
8692 (license license:expat)))
8694 (define-public ruby-unf
8701 (uri (rubygems-uri "unf" version))
8704 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8705 (build-system ruby-build-system)
8708 (modify-phases %standard-phases
8709 (add-before 'check 'add-dependency-to-bundler
8711 ;; test-unit is required but not provided by the bundler
8712 ;; environment. This is fixed in the upstream repository but fix
8713 ;; has not been released.
8714 (substitute* "Gemfile"
8715 (("^gemspec") "gem 'test-unit'\ngemspec"))
8718 `(("ruby-unf-ext" ,ruby-unf-ext)))
8720 `(("ruby-shoulda" ,ruby-shoulda)
8721 ("bundler" ,bundler)
8722 ("ruby-test-unit" ,ruby-test-unit)))
8723 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
8725 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
8726 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
8727 @code{java.text.Normalizer} on JRuby.")
8728 (home-page "https://github.com/knu/ruby-unf")
8729 (license license:bsd-2)))
8731 (define-public ruby-warden
8733 (name "ruby-warden")
8738 (uri (rubygems-uri "warden" version))
8741 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
8742 (build-system ruby-build-system)
8744 '(#:tests? #f)) ; No included tests
8746 `(("ruby-rack" ,ruby-rack)))
8747 (synopsis "Rack middleware providing authentication")
8749 "Warden is a Rack-based middleware that provides a mechanism for
8750 authentication in Ruby web applications.")
8751 (home-page "https://github.com/wardencommunity/warden")
8752 (license license:expat)))
8754 (define-public ruby-warden-oauth2
8756 (name "ruby-warden-oauth2")
8761 (uri (rubygems-uri "warden-oauth2" version))
8764 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
8765 (build-system ruby-build-system)
8767 '(#:test-target "spec"
8769 (modify-phases %standard-phases
8770 (add-after 'unpack 'remove-unnecessary-dependencies
8772 (substitute* "Gemfile"
8773 ;; All of these gems relate to development, and are unnecessary
8774 ;; when running the tests
8775 (("gem 'guard-bundler'") "")
8776 (("gem 'guard'") "")
8777 (("gem 'guard-rspec'") "")
8778 (("gem 'rb-fsevent'") "")
8780 (("gem 'growl'") ""))
8782 ;; The test suite doesn't work with rspec@2, and this is incompatible
8783 ;; with the current version of Rake, so invoke Rspec directly
8785 (lambda* (#:key tests? #:allow-other-keys)
8787 (invoke "bundle" "exec" "rspec"))
8790 `(("ruby-warden" ,ruby-warden)))
8792 `(("bundler" ,bundler)
8793 ("ruby-rspec" ,ruby-rspec-2)
8794 ("ruby-rack-test" ,ruby-rack-test)))
8795 (synopsis "OAuth 2.0 strategies for Warden")
8797 "This library extends Warden to support OAuth 2.0 authorized API
8799 (home-page "https://github.com/opperator/warden-oauth2")
8800 (license license:expat)))
8802 (define-public ruby-webmock-2
8804 (name "ruby-webmock")
8809 (uri (rubygems-uri "webmock" version))
8812 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
8813 (build-system ruby-build-system)
8815 `(("bundler" ,bundler)
8816 ("ruby-rspec" ,ruby-rspec)))
8818 `(("ruby-addressable" ,ruby-addressable)
8819 ("ruby-crack" ,ruby-crack)
8820 ("ruby-hashdiff" ,ruby-hashdiff)))
8821 (synopsis "Allows stubbing and setting expectations on HTTP requests")
8823 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
8824 requests. This is useful when testing software.")
8825 (home-page "https://github.com/bblimke/webmock")
8826 (license license:expat)))
8828 (define-public ruby-unicode-display-width
8830 (name "ruby-unicode-display-width")
8835 (uri (rubygems-uri "unicode-display_width" version))
8838 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
8839 (build-system ruby-build-system)
8841 '(;; Test data not included.
8843 (synopsis "Determine the monospace display width of Ruby strings")
8845 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
8846 display width of strings in Ruby.")
8847 (home-page "https://github.com/janlelis/unicode-display_width")
8848 (license license:expat)))
8850 ;; There is another gem called 'ruby-version' so we use an underscore in this
8852 (define-public ruby_version
8854 (name "ruby_version")
8859 (uri (rubygems-uri "ruby_version" version))
8862 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
8863 (build-system ruby-build-system)
8866 (modify-phases %standard-phases
8867 (add-before 'check 'fix-dependencies
8869 ;; Remove the Gemfile.lock, as we want to use Guix packages at
8870 ;; whatever versions.
8871 (delete-file "Gemfile.lock")
8872 ;; Remove the included gem files as they unnecessary.
8873 (delete-file-recursively "pkg/")
8874 ;; Accept any version of rake, rdoc and rspec
8875 (substitute* "ruby_version.gemspec"
8876 (("%q<rake.*") "%q<rake>)\n")
8877 (("%q<rdoc.*") "%q<rdoc>)\n")
8878 (("%q<rspec.*") "%q<rspec>)\n"))
8879 ;; Do not use bundler.
8880 (substitute* "Rakefile"
8881 (("Bundler\\.setup.*") "nil\n"))
8884 `(("ruby-rdoc" ,ruby-rdoc)
8885 ("ruby-rspec" ,ruby-rspec)
8886 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
8887 (synopsis "Ruby library to help check the Ruby version")
8888 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
8889 checking for the right Ruby version in software.")
8890 (home-page "https://github.com/janlelis/ruby_version")
8891 (license license:expat)))
8893 (define-public ruby-websocket-driver
8895 (name "ruby-websocket-driver")
8900 (uri (rubygems-uri "websocket-driver" version))
8902 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
8903 (build-system ruby-build-system)
8905 '(#:tests? #f)) ; no included tests
8907 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
8908 (synopsis "WebSocket protocol handler with pluggable I/O")
8910 "@code{websocket-driver} provides a complete implementation of the
8911 WebSocket protocols that can be hooked up to any TCP library")
8912 (home-page "https://github.com/faye/websocket-driver-ruby")
8913 (license license:expat)))
8915 (define-public ruby-websocket-extensions
8917 (name "ruby-websocket-extensions")
8922 (uri (rubygems-uri "websocket-extensions" version))
8925 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
8926 (build-system ruby-build-system)
8928 '(;; No included tests
8930 (synopsis "Generic extension manager for WebSocket connections")
8932 "@code{websocket-extensions} provides a container for registering
8933 extension plugins.")
8934 (home-page "https://github.com/faye/websocket-extensions-ruby")
8935 (license license:expat)))
8937 (define-public ruby-domain-name
8939 (name "ruby-domain-name")
8940 (version "0.5.20190701")
8944 (uri (rubygems-uri "domain_name" version))
8946 (base32 "0lcqjsmixjp52bnlgzh4lg9ppsk52x9hpwdjd53k8jnbah2602h0"))))
8947 (build-system ruby-build-system)
8950 (modify-phases %standard-phases
8951 (add-before 'check 'fix-versions
8953 ;; Fix NameError that appears to already be fixed upstream.
8954 (substitute* "Rakefile"
8955 (("DomainName::VERSION")
8956 "Bundler::GemHelper.gemspec.version"))
8957 ;; Loosen unnecessarily strict test-unit version specification.
8958 (substitute* "domain_name.gemspec"
8959 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
8962 `(("ruby-unf" ,ruby-unf)))
8964 `(("ruby-shoulda" ,ruby-shoulda)
8965 ("bundler" ,bundler)
8966 ("ruby-test-unit" ,ruby-test-unit)))
8967 (synopsis "Domain name manipulation library")
8969 "@code{domain_name} is a Domain name manipulation library. It parses a
8970 domain name ready for extracting the registered domain and TLD (Top Level
8971 Domain). It can also be used for cookie domain validation based on the Public
8973 (home-page "https://github.com/knu/ruby-domain_name")
8974 (license license:bsd-2)))
8976 (define-public ruby-http-cookie
8978 (name "ruby-http-cookie")
8983 (uri (rubygems-uri "http-cookie" version))
8986 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
8987 (build-system ruby-build-system)
8990 (modify-phases %standard-phases
8991 (add-before 'check 'add-dependency-to-bundler
8994 (substitute* "Rakefile"
8995 (("HTTP::Cookie::VERSION")
8996 "Bundler::GemHelper.gemspec.version"))
8999 `(("ruby-domain-name" ,ruby-domain-name)))
9001 `(("rubysimplecov" ,ruby-simplecov)
9002 ("bundler" ,bundler)
9003 ("ruby-sqlite3" ,ruby-sqlite3)
9004 ("ruby-test-unit" ,ruby-test-unit)))
9005 (synopsis "Handle HTTP Cookies based on RFC 6265")
9007 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
9008 RFC 6265. It has been designed with security, standards compliance and
9009 compatibility in mind, to behave just the same as today's major web browsers.
9010 It has built-in support for the legacy @code{cookies.txt} and
9011 @code{cookies.sqlite} formats of Mozilla Firefox.")
9012 (home-page "https://github.com/sparklemotion/http-cookie")
9013 (license license:expat)))
9015 (define-public ruby-httpclient
9017 (name "ruby-httpclient")
9022 (uri (rubygems-uri "httpclient" version))
9025 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
9026 (build-system ruby-build-system)
9028 '(;; TODO: Some tests currently fail
9030 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
9031 ;; 2 omissions, 0 notifications
9034 ;; 6.49 tests/s, 22.41 assertions/s
9037 (modify-phases %standard-phases
9039 (lambda* (#:key tests? #:allow-other-keys)
9046 `(("ruby-rack" ,ruby-rack)))
9048 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9050 "The @code{httpclient} ruby library provides functionality related to
9051 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9052 Cookie, multithreading and authentication (digest, NTLM) support.
9054 Also provided is a @command{httpclient} command, which can perform HTTP
9055 requests either using arguments or with an interactive prompt.")
9056 (home-page "https://github.com/nahi/httpclient")
9057 (license license:ruby)))
9059 (define-public ruby-ansi
9066 ;; Fetch from GitHub as the gem does not contain testing code.
9068 (url "https://github.com/rubyworks/ansi")
9070 (file-name (git-file-name name version))
9073 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9074 (build-system ruby-build-system)
9077 (modify-phases %standard-phases
9078 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9079 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9083 (invoke "ruby" "-Ilib" "-r" "ansi")))
9084 (add-before 'validate-runpath 'replace-broken-symlink
9085 (lambda* (#:key outputs #:allow-other-keys)
9086 (let* ((out (assoc-ref outputs "out"))
9087 (file (string-append
9088 out "/lib/ruby/vendor_ruby/gems/ansi-"
9089 ,version "/lib/ansi.yml")))
9090 ;; XXX: This symlink is broken since ruby 2.4.
9091 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9093 (symlink "../.index" file)
9095 (synopsis "ANSI escape code related libraries")
9097 "This package is a collection of ANSI escape code related libraries
9098 enabling ANSI colorization and stylization of console output. Included in the
9099 library are the @code{Code} module, which defines ANSI codes as constants and
9100 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9101 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9102 @code{Terminal} module which provides information about the current output
9104 (home-page "https://rubyworks.github.io/ansi/")
9105 (license license:bsd-2)))
9107 (define-public ruby-systemu
9109 (name "ruby-systemu")
9114 (uri (rubygems-uri "systemu" version))
9117 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9118 (build-system ruby-build-system)
9121 (modify-phases %standard-phases
9122 (add-before 'check 'set-version
9124 (setenv "VERSION" ,version)
9126 (synopsis "Capture of stdout/stderr and handling of child processes")
9128 "Systemu can be used on any platform to return status, stdout, and stderr
9129 of any command. Unlike other methods like @code{open3} and @code{popen4}
9130 there is no danger of full pipes or threading issues hanging your process or
9132 (home-page "https://github.com/ahoward/systemu")
9133 (license license:ruby)))
9135 (define-public ruby-bio-commandeer
9137 (name "ruby-bio-commandeer")
9142 (uri (rubygems-uri "bio-commandeer" version))
9145 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9146 (build-system ruby-build-system)
9149 (modify-phases %standard-phases
9151 ;; Run test without calling 'rake' so that jeweler is
9152 ;; not required as an input.
9154 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9156 `(("ruby-bio-logger" ,ruby-bio-logger)
9157 ("ruby-systemu" ,ruby-systemu)))
9159 `(("bundler" ,bundler)
9160 ("ruby-rspec" ,ruby-rspec)))
9161 (synopsis "Simplified running of shell commands from within Ruby")
9163 "Bio-commandeer provides an opinionated method of running shell commands
9164 from within Ruby. The advantage of bio-commandeer over other methods of
9165 running external commands is that when something goes wrong, messages printed
9166 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9167 detail to ease debugging.")
9168 (home-page "https://github.com/wwood/bioruby-commandeer")
9169 (license license:expat)))
9171 (define-public ruby-rubytest
9173 (name "ruby-rubytest")
9178 (uri (rubygems-uri "rubytest" version))
9181 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9182 (build-system ruby-build-system)
9184 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9185 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9186 ;; simply test that the library can be require'd.
9188 (modify-phases %standard-phases
9191 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9193 `(("ruby-ansi" ,ruby-ansi)))
9194 (synopsis "Universal test harness for Ruby")
9196 "Rubytest is a testing meta-framework for Ruby. It can handle any
9197 compliant test framework and can run tests from multiple frameworks in a
9199 (home-page "https://rubyworks.github.io/rubytest")
9200 (license license:bsd-2)))
9202 (define-public ruby-brass
9209 (uri (rubygems-uri "brass" version))
9212 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9213 (build-system ruby-build-system)
9215 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9216 ;; Instead simply test that the library can be require'd.
9218 (modify-phases %standard-phases
9221 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9222 (synopsis "Basic foundational assertions framework")
9224 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9225 foundational assertions framework for other assertion and test frameworks to
9227 (home-page "https://rubyworks.github.io/brass")
9228 (license license:bsd-2)))
9230 (define-public ruby-qed
9237 (uri (rubygems-uri "qed" version))
9240 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9241 (build-system ruby-build-system)
9243 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9244 ;; Instead simply test that the executable runs using --copyright.
9246 (modify-phases %standard-phases
9249 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9251 `(("ruby-ansi" ,ruby-ansi)
9252 ("ruby-brass" ,ruby-brass)))
9253 (synopsis "Test framework utilizing literate programming techniques")
9255 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9256 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9257 Development} (BDD) utilizing Literate Programming techniques. QED sits
9258 somewhere between lower-level testing tools like @code{Test::Unit} and
9259 requirement specifications systems like Cucumber.")
9260 (home-page "https://rubyworks.github.io/qed")
9261 (license license:bsd-2)))
9263 (define-public ruby-que
9266 (version "1.0.0.beta3")
9270 (uri (rubygems-uri "que" version))
9273 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9274 (build-system ruby-build-system)
9276 '(#:tests? #f)) ; No included tests
9277 (synopsis "Job queue using PostgreSQL written in Ruby")
9279 "This package provides a job queue that uses PostgreSQL for storing jobs
9280 and locking between worker processes.")
9281 (home-page "https://github.com/chanks/que")
9282 (license license:expat)))
9284 (define-public ruby-ae
9291 ;; Fetch from github so tests are included.
9293 (url "https://github.com/rubyworks/ae")
9295 (file-name (git-file-name name version))
9298 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9299 (build-system ruby-build-system)
9302 (modify-phases %standard-phases
9304 (lambda _ (invoke "qed")))
9305 (add-before 'validate-runpath 'replace-broken-symlink
9306 (lambda* (#:key outputs #:allow-other-keys)
9307 (let* ((out (assoc-ref outputs "out"))
9308 (file (string-append
9309 out "/lib/ruby/vendor_ruby/gems/ae-"
9310 ,version "/lib/ae.yml")))
9311 ;; XXX: This symlink is broken since ruby 2.4.
9312 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9314 (symlink "../.index" file)
9317 `(("ruby-ansi" ,ruby-ansi)))
9319 `(("ruby-qed" ,ruby-qed)))
9320 (synopsis "Assertions library")
9322 "Assertive Expressive (AE) is an assertions library specifically designed
9323 for reuse by other test frameworks.")
9324 (home-page "https://rubyworks.github.io/ae/")
9325 (license license:bsd-2)))
9327 (define-public ruby-lemon
9334 (uri (rubygems-uri "lemon" version))
9337 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9338 (build-system ruby-build-system)
9341 (modify-phases %standard-phases
9342 (replace 'check (lambda _ (invoke "qed"))))))
9344 `(("ruby-ae" ,ruby-ae)
9345 ("ruby-ansi" ,ruby-ansi)
9346 ("ruby-rubytest" ,ruby-rubytest)))
9348 `(("ruby-qed" ,ruby-qed)))
9349 (synopsis "Test framework correlating code structure and test unit")
9351 "Lemon is a unit testing framework that enforces highly formal
9352 case-to-class and unit-to-method test construction. This enforcement can help
9353 focus concern on individual units of behavior.")
9354 (home-page "https://rubyworks.github.io/lemon")
9355 (license license:bsd-2)))
9357 (define-public ruby-rubytest-cli
9359 (name "ruby-rubytest-cli")
9364 (uri (rubygems-uri "rubytest-cli" version))
9367 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9368 (build-system ruby-build-system)
9370 `(#:tests? #f)) ; no tests
9372 `(("ruby-ansi" ,ruby-ansi)
9373 ("ruby-rubytest" ,ruby-rubytest)))
9374 (synopsis "Command-line interface for rubytest")
9376 "Rubytest CLI is a command-line interface for running tests for
9377 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9378 (home-page "https://rubyworks.github.io/rubytest-cli")
9379 (license license:bsd-2)))
9381 (define-public ruby-hashery
9383 (name "ruby-hashery")
9388 (uri (rubygems-uri "hashery" version))
9391 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9392 (build-system ruby-build-system)
9395 (modify-phases %standard-phases
9399 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9401 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9402 ("ruby-qed" ,ruby-qed)
9403 ("ruby-lemon" ,ruby-lemon)))
9404 (synopsis "Hash-like classes with extra features")
9406 "The Hashery is a tight collection of @code{Hash}-like classes.
9407 Included are the auto-sorting @code{Dictionary} class, the efficient
9408 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9409 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9410 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9411 standard @code{Hash} making it possible to subclass and augment to fit any
9412 specific use case.")
9413 (home-page "https://rubyworks.github.io/hashery")
9414 (license license:bsd-2)))
9416 (define-public ruby-rc4
9423 (uri (rubygems-uri "ruby-rc4" version))
9426 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9427 (build-system ruby-build-system)
9430 (modify-phases %standard-phases
9433 (invoke "rspec" "spec/rc4_spec.rb"))))))
9435 `(("ruby-rspec" ,ruby-rspec-2)))
9436 (synopsis "Implementation of the RC4 algorithm")
9438 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9439 (home-page "https://github.com/caiges/Ruby-RC4")
9440 (license license:expat)))
9442 (define-public ruby-afm
9449 (uri (rubygems-uri "afm" version))
9452 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9453 (build-system ruby-build-system)
9455 `(("bundler" ,bundler)))
9456 (synopsis "Read Adobe Font Metrics (afm) files")
9458 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9459 files and use the data therein.")
9460 (home-page "https://github.com/halfbyte/afm")
9461 (license license:expat)))
9463 (define-public ruby-ascii85
9465 (name "ruby-ascii85")
9470 (uri (rubygems-uri "Ascii85" version))
9473 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9474 (build-system ruby-build-system)
9476 `(("bundler" ,bundler)))
9477 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9479 "This library provides methods to encode and decode Ascii85
9480 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9481 @dfn{Portable Document Format} (PDF) file formats.")
9482 (home-page "https://github.com/datawraith/ascii85gem")
9483 (license license:expat)))
9485 (define-public ruby-ttfunk
9487 (name "ruby-ttfunk")
9492 ;; fetch from github as the gem does not contain testing code
9494 (url "https://github.com/prawnpdf/ttfunk")
9496 (file-name (git-file-name name version))
9499 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9500 (build-system ruby-build-system)
9502 `(#:test-target "spec"
9504 (modify-phases %standard-phases
9505 (add-before 'build 'remove-ssh
9507 ;; remove dependency on an ssh key pair that doesn't exist
9508 (substitute* "ttfunk.gemspec"
9509 (("spec.signing_key.*") ""))
9511 (add-before 'check 'remove-rubocop
9513 ;; remove rubocop as a dependency as not needed for testing
9514 (substitute* "ttfunk.gemspec"
9515 (("spec.add_development_dependency\\('rubocop'.*") ""))
9516 (substitute* "Rakefile"
9517 (("require 'rubocop/rake_task'") "")
9518 (("RuboCop::RakeTask.new") ""))
9521 `(("ruby-rspec" ,ruby-rspec)
9522 ("ruby-yard" ,ruby-yard)
9523 ("bundler" ,bundler)))
9524 (synopsis "Font metrics parser for the Prawn PDF generator")
9526 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9527 part of the Prawn PDF generator.")
9528 (home-page "https://github.com/prawnpdf/ttfunk")
9529 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9531 (license %prawn-project-licenses)))
9533 (define-public ruby-puma
9540 ;; Fetch from GitHub because distributed gem does not contain tests.
9542 (url "https://github.com/puma/puma")
9543 (commit (string-append "v" version))))
9544 (file-name (git-file-name name version))
9547 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9548 (build-system ruby-build-system)
9550 `(#:tests? #f ; Tests require an out-dated version of minitest.
9552 (modify-phases %standard-phases
9553 (add-before 'build 'fix-gemspec
9555 (substitute* "puma.gemspec"
9556 (("git ls-files") "find * |sort"))
9558 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9560 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9561 for Ruby/Rack applications. Puma is intended for use in both development and
9562 production environments. In order to get the best throughput, it is highly
9563 recommended that you use a Ruby implementation with real threads like Rubinius
9565 (home-page "https://puma.io/")
9566 (license license:expat)))
9568 (define-public ruby-hoe-git
9570 (name "ruby-hoe-git")
9575 (uri (rubygems-uri "hoe-git" version))
9578 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9579 (build-system ruby-build-system)
9581 `(("ruby-hoe" ,ruby-hoe)))
9582 (synopsis "Hoe plugins for tighter Git integration")
9584 "This package provides a set of Hoe plugins for tighter Git integration.
9585 It provides tasks to automate release tagging and pushing and changelog
9587 (home-page "https://github.com/jbarnette/hoe-git")
9588 (license license:expat)))
9590 (define-public ruby-sequel
9592 (name "ruby-sequel")
9597 (uri (rubygems-uri "sequel" version))
9600 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9601 (build-system ruby-build-system)
9603 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9604 (synopsis "Database toolkit for Ruby")
9605 (description "Sequel provides thread safety, connection pooling and a
9606 concise DSL for constructing SQL queries and table schemas. It includes a
9607 comprehensive ORM layer for mapping records to Ruby objects and handling
9608 associated records.")
9609 (home-page "https://sequel.jeremyevans.net")
9610 (license license:expat)))
9612 (define-public ruby-timecop
9614 (name "ruby-timecop")
9619 (uri (rubygems-uri "timecop" version))
9622 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9623 (build-system ruby-build-system)
9626 (modify-phases %standard-phases
9627 (add-before 'check 'set-check-rubylib
9629 ;; Set RUBYLIB so timecop tests finds its own lib.
9630 (setenv "RUBYLIB" "lib")
9633 `(("bundler" ,bundler)
9634 ("ruby-minitest-rg" ,ruby-minitest-rg)
9635 ("ruby-mocha" ,ruby-mocha)
9636 ("ruby-activesupport" ,ruby-activesupport)))
9637 (synopsis "Test mocks for time-dependent functions")
9639 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9640 making it easier to test time-dependent code. It provides a unified method to
9641 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9643 (home-page "https://github.com/travisjeffery/timecop")
9644 (license license:expat)))
9646 (define-public ruby-concurrent
9648 (name "ruby-concurrent")
9653 ;; Download from GitHub because the rubygems version does not contain
9656 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9657 (commit (string-append "v" version))))
9658 (file-name (git-file-name name version))
9661 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9662 (build-system ruby-build-system)
9664 `(#:test-target "ci"
9666 (modify-phases %standard-phases
9667 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9669 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9671 (delete-file "concurrent-ruby-edge.gemspec")
9672 (delete-file "concurrent-ruby-ext.gemspec")
9674 (replace 'replace-git-ls-files
9676 ;; XXX: The default substitution made by this phase is not fully
9677 ;; compatible with "git ls-files". The latter produces file names
9678 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9679 ;; which gives "./lib/foo". That difference in turn breaks the
9680 ;; comparison against a glob pattern in this script.
9681 (substitute* "concurrent-ruby.gemspec"
9682 (("git ls-files") "find * -type f | sort"))
9684 (add-before 'build 'remove-jar-from-gemspec
9686 ;; The gemspec wants to include a JAR file that we do not build
9688 (substitute* "concurrent-ruby.gemspec"
9689 (("'lib/concurrent/concurrent_ruby.jar'")
9692 (add-before 'build 'remove-rake_compiler_dock-dependency
9694 ;; This library is only used when building for non-MRI targets.
9695 (substitute* "Rakefile"
9696 (("require 'rake_compiler_dock'")
9699 (add-before 'check 'remove-timecop-dependency
9700 ;; Remove timecop-dependent tests as having timecop as a depedency
9701 ;; causes circular depedencies.
9703 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
9704 (delete-file "spec/concurrent/scheduled_task_spec.rb")
9707 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9708 ("ruby-rspec" ,ruby-rspec)))
9709 (synopsis "Concurrency tools for Ruby")
9711 "This library provides modern concurrency tools including agents,
9712 futures, promises, thread pools, actors, supervisors, and more. It is
9713 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
9715 (home-page "http://www.concurrent-ruby.com")
9716 (license license:expat)))
9718 (define-public ruby-pkg-config
9720 (name "ruby-pkg-config")
9725 (uri (rubygems-uri "pkg-config" version))
9728 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
9729 (build-system ruby-build-system)
9731 ;; Tests require extra files not included in the gem.
9733 (synopsis "Detect libraries for compiling Ruby native extensions")
9735 "@code{pkg-config} can be used in your extconf.rb to properly detect need
9736 libraries for compiling Ruby native extensions.")
9737 (home-page "https://github.com/ruby-gnome2/pkg-config")
9738 (license license:lgpl2.0+)))
9740 (define-public ruby-net-http-digest-auth
9742 (name "ruby-net-http-digest-auth")
9747 (uri (rubygems-uri "net-http-digest_auth" version))
9750 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
9751 (build-system ruby-build-system)
9753 `(("ruby-hoe" ,ruby-hoe)))
9754 (synopsis "RFC 2617 HTTP digest authentication library")
9756 "This library implements HTTP's digest authentication scheme based on
9757 RFC 2617. This enables the use of the digest authentication scheme instead
9758 of the more insecure basic authentication scheme.")
9759 (home-page "https://github.com/drbrain/net-http-digest_auth")
9760 (license license:expat)))
9762 (define-public ruby-mail
9769 (uri (rubygems-uri "mail" version))
9772 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
9773 (build-system ruby-build-system)
9775 `(("ruby-mime-types" ,ruby-mime-types)))
9777 ;; Tests require extra gems not included in the Gemfile.
9778 ;; XXX: Try enabling this for the next version with mini_mime.
9780 (synopsis "Mail library for Ruby")
9782 "Mail is an internet library for Ruby that is designed to handle email
9783 generation, parsing and sending. The purpose of this library is to provide
9784 a single point of access to handle all email functions, including sending
9785 and receiving emails. All network type actions are done through proxy
9786 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
9788 Mail has been designed with a very simple object oriented system that
9789 really opens up the email messages you are parsing, if you know what you
9790 are doing, you can fiddle with every last bit of your email directly.")
9791 (home-page "https://github.com/mikel/mail")
9792 (license license:expat)))
9794 (define-public ruby-mathn
9801 (uri (rubygems-uri "mathn" version))
9804 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
9805 (build-system ruby-build-system)
9807 `(("bundler" ,bundler)
9808 ("ruby-rake-compiler" ,ruby-rake-compiler)))
9809 (synopsis "Extends math operations for increased precision")
9811 "This gem makes mathematical operations more precise in Ruby and
9812 integrates other mathematical standard libraries. Prior to Ruby 2.5,
9813 @code{mathn} was part of the Ruby standard library.")
9814 (home-page "https://github.com/ruby/mathn")
9815 (license license:bsd-2)))
9817 (define-public ruby-code-statistics
9819 (name "ruby-code-statistics")
9824 (uri (rubygems-uri "code_statistics" version))
9827 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
9828 (build-system ruby-build-system)
9830 `(#:tests? #f)) ; Not all test code is included in gem.
9831 (synopsis "Port of the rails 'rake stats' method")
9833 "This gem is a port of the rails 'rake stats' method so it can be made
9834 more robust and work for non rails projects.")
9835 (home-page "https://github.com/danmayer/code_statistics")
9836 (license license:expat)))
9838 (define-public ruby-rubypants
9840 (name "ruby-rubypants")
9844 (uri (rubygems-uri "rubypants" version))
9847 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
9848 (build-system ruby-build-system)
9850 '(#:tests? #f)) ; need Codecov
9851 (synopsis "Port of the smart-quotes library SmartyPants")
9853 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
9854 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
9855 and BBEdit that easily translates plain ASCII punctuation characters into
9856 smart typographic punctuation HTML entities.")
9857 (home-page "https://github.com/jmcnevin/rubypants")
9858 (license license:bsd-2)))
9860 (define-public ruby-org-ruby
9862 (name "ruby-org-ruby")
9866 (uri (rubygems-uri "org-ruby" version))
9869 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
9870 (build-system ruby-build-system)
9872 '(#:tests? #f)) ; no rakefile
9874 `(("ruby-rubypants" ,ruby-rubypants)))
9875 (synopsis "Org-mode parser written in Ruby")
9877 "Org-ruby is an org-mode parser written in Ruby. The most significant
9878 thing this library does today is convert org-mode files to HTML or Textile or
9880 (home-page "https://github.com/wallyqs/org-ruby")
9881 (license license:expat)))
9883 (define-public ruby-rake
9890 (uri (rubygems-uri "rake" version))
9893 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
9894 (build-system ruby-build-system)
9896 `(("bundler" ,bundler)))
9897 (synopsis "Rake is a Make-like program implemented in Ruby")
9899 "Rake is a Make-like program where tasks and dependencies are specified
9900 in standard Ruby syntax.")
9901 (home-page "https://github.com/ruby/rake")
9902 (license license:expat)))
9904 (define-public ruby-childprocess
9906 (name "ruby-childprocess")
9911 (uri (rubygems-uri "childprocess" version))
9914 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
9915 (build-system ruby-build-system)
9919 `(("bundler" ,bundler)
9920 ("ruby-rspec" ,ruby-rspec)))
9922 `(("ruby-ffi" ,ruby-ffi)))
9923 (synopsis "Control external programs running in the background, in Ruby")
9924 (description "@code{childprocess} provides a gem to control external
9925 programs running in the background, in Ruby.")
9926 (home-page "https://github.com/enkessler/childprocess")
9927 (license license:expat)))
9929 (define-public ruby-public-suffix
9931 (name "ruby-public-suffix")
9935 (uri (rubygems-uri "public_suffix" version))
9938 "0vywld400fzi17cszwrchrzcqys4qm6sshbv73wy5mwcixmrgg7g"))))
9939 (build-system ruby-build-system)
9942 (modify-phases %standard-phases
9943 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
9944 ;; including it as an input can lead to circular dependencies.
9945 (add-after 'unpack 'remove-rubocop-from-Rakefile
9947 (substitute* "Rakefile"
9948 (("require \"rubocop/rake\\_task\"") "")
9949 (("RuboCop::RakeTask\\.new") ""))
9952 `(("bundler" ,bundler)
9953 ("ruby-yard" ,ruby-yard)
9954 ("ruby-mocha" ,ruby-mocha)
9955 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
9956 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
9957 (synopsis "Domain name parser")
9958 (description "The gem @code{public_suffix} is a domain name parser,
9959 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
9960 is one under which Internet users can (or historically could) directly
9961 register names. Some examples of public suffixes are @code{.com},
9962 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
9963 all known public suffixes.")
9964 (license license:expat)))
9966 (define-public ruby-addressable
9968 (name "ruby-addressable")
9972 (uri (rubygems-uri "addressable" version))
9975 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
9976 (build-system ruby-build-system)
9978 '(#:test-target "spec"
9980 (modify-phases %standard-phases
9981 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
9983 (substitute* "Gemfile"
9984 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
9985 ((".*launchy.*") "")
9986 ((".*rake.*") "gem 'rake'\n")
9987 ((".*redcarpet.*") ""))
9989 (add-before 'check 'delete-network-dependent-test
9991 (delete-file "spec/addressable/net_http_compat_spec.rb")
9994 `(("ruby-rspec" ,ruby-rspec)
9995 ("bundler" ,bundler)
9996 ("ruby-idn-ruby" ,ruby-idn-ruby)
9997 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
9998 ("ruby-rspec-its" ,ruby-rspec-its-minimal)
9999 ("ruby-yard" ,ruby-yard)
10000 ("ruby-simplecov" ,ruby-simplecov)))
10002 `(("ruby-public-suffix" ,ruby-public-suffix)))
10003 (home-page "https://github.com/sporkmonger/addressable")
10004 (synopsis "Alternative URI implementation")
10005 (description "Addressable is a replacement for the URI implementation that
10006 is part of Ruby's standard library. It more closely conforms to RFC 3986,
10007 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
10008 (license license:asl2.0)))
10010 (define-public ruby-colorize
10012 (name "ruby-colorize")
10016 (uri (rubygems-uri "colorize" version))
10019 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
10020 (build-system ruby-build-system)
10022 '(#:phases (modify-phases %standard-phases
10023 (add-before 'check 'remove-codeclimate-dependency
10025 (substitute* "test/test_colorize.rb"
10026 ;; Do not hook the tests into the online CodeClimate
10027 ;; service which is unnecessary for these tests.
10028 (("require 'codeclimate-test-reporter'")
10030 (("CodeClimate.*") ""))
10032 (synopsis "Add color effects to the @code{String} class")
10034 "This package extends the @code{String} class and adds a
10035 @code{ColorizedString} with methods to set text color, background color,
10036 and text effects.")
10037 (home-page "https://github.com/fazibear/colorize")
10038 (license license:gpl2+)))
10040 (define-public ruby-colorator
10042 (name "ruby-colorator")
10046 (uri (rubygems-uri "colorator" version))
10049 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10050 (build-system ruby-build-system)
10054 (home-page "http://octopress.org/colorator/")
10055 (synopsis "Terminal color library")
10056 (description "Colorator is a Ruby gem that helps you colorize your text
10057 for the terminal.")
10058 (license license:expat)))
10060 (define-public ruby-command-line-reporter
10062 (name "ruby-command-line-reporter")
10066 (uri (rubygems-uri "command_line_reporter" version))
10069 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10070 (build-system ruby-build-system)
10075 (modify-phases %standard-phases
10076 (add-before 'build 'fix-dependencies
10078 (substitute* ".gemspec"
10079 ;; colored is unmaintained
10080 (("colored") "colorator")
10081 ;; colorator version
10082 (("= 1.2") "= 1.1"))
10084 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10085 (home-page "https://github.com/wbailey/command_line_reporter")
10086 (synopsis "Report production while executing Ruby scripts")
10087 (description "This gem provides a DSL that makes it easy to write reports
10088 of various types in ruby. It eliminates the need to litter your source with
10089 puts statements, instead providing a more readable, expressive interface to
10090 your application.")
10091 (license license:asl2.0)))
10093 (define-public ruby-command-line-reporter-3
10095 (inherit ruby-command-line-reporter)
10099 (uri (rubygems-uri "command_line_reporter" version))
10102 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10104 (define-public ruby-kpeg
10111 (uri (rubygems-uri "kpeg" version))
10114 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10115 (build-system ruby-build-system)
10117 `(("ruby-hoe" ,ruby-hoe)))
10118 (synopsis "PEG library for Ruby")
10119 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10120 well as native grammar to build the grammar. KPeg supports direct left
10121 recursion of rules via the
10122 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10124 (home-page "https://github.com/evanphx/kpeg")
10125 (license license:expat)))
10127 (define-public ruby-rdoc
10134 (uri (git-reference
10135 (url "https://github.com/ruby/rdoc")
10136 (commit (string-append "v" version))))
10137 (file-name (git-file-name name version))
10140 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10141 (build-system ruby-build-system)
10144 (modify-phases %standard-phases
10145 (add-after 'unpack 'patch-gemspec
10146 ;; TODO: Remove after next release is tagged.
10148 (substitute* "rdoc.gemspec"
10149 (("\"lib/rdoc/generator/template/darkfish/js/\
10150 jquery\\.js\", ") ""))
10152 (add-before 'build 'generate
10153 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10154 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10156 (invoke "rake" "generate"))))))
10158 `(("bundler" ,bundler)
10159 ("ruby-kpeg" ,ruby-kpeg)
10160 ("ruby-racc" ,ruby-racc)
10161 ("ruby-rubocop" ,ruby-rubocop)))
10162 (home-page "https://ruby.github.io/rdoc/")
10163 (synopsis "HTML and command-line documentation utility")
10164 (description "RDoc produces HTML and command-line documentation for Ruby
10165 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10166 documentation from the command-line.")
10167 (license license:gpl2+)))
10169 (define-public ruby-sass-listen
10171 (name "ruby-sass-listen")
10175 (uri (rubygems-uri "sass-listen" version))
10178 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10179 (build-system ruby-build-system)
10184 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10185 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10186 (home-page "https://github.com/sass/listen")
10187 (synopsis "File modification notification library")
10188 (description "The Listen gem listens to file modifications and notifies you
10189 about the changes.")
10190 (license license:expat)))
10192 (define-public ruby-terminfo
10194 (name "ruby-terminfo")
10199 (uri (rubygems-uri "ruby-terminfo" version))
10202 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10203 (build-system ruby-build-system)
10205 `(#:test-target "test"
10206 ;; Rakefile requires old packages and would need modification to
10207 ;; work with current software.
10210 `(("ncurses" ,ncurses)))
10212 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10213 ("ruby-rdoc" ,ruby-rdoc)))
10214 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10215 (synopsis "Terminfo binding for Ruby")
10216 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10217 (license license:bsd-3)))
10219 (define-public ruby-diffy
10221 (name "ruby-diffy")
10226 (uri (rubygems-uri "diffy" version))
10229 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10230 (build-system ruby-build-system)
10235 `(("ruby-rspec" ,ruby-rspec)))
10236 (home-page "https://github.com/samg/diffy")
10237 (synopsis "Convenient diffing in ruby")
10238 (description "Diffy provides a convenient way to generate a diff from two
10239 strings or files.")
10240 (license license:expat)))
10242 (define-public ruby-sass-spec
10244 (name "ruby-sass-spec")
10249 (uri (git-reference
10250 (url "https://github.com/sass/sass-spec")
10251 (commit (string-append "v" version))))
10252 (file-name (git-file-name name version))
10254 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10255 (build-system ruby-build-system)
10257 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10258 ("ruby-diffy" ,ruby-diffy)
10259 ("ruby-terminfo" ,ruby-terminfo)))
10261 `(;; This package contains tests for a sass implementation, and the to
10262 ;; avoid any circular dependencies, the tests are not run here
10265 (modify-phases %standard-phases
10266 (add-after 'unpack 'patch-test
10268 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10269 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10270 (("string") "color")))))))
10271 (home-page "https://github.com/sass/sass-spec")
10272 (synopsis "Test suite for Sass")
10273 (description "Sass Spec is a test suite for Sass. Test cases are all in
10274 the @file{spec} directory.")
10275 (license license:expat)))
10277 (define-public ruby-sass
10283 (uri (rubygems-uri "sass" version))
10286 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10287 (build-system ruby-build-system)
10289 `(("ruby-sass-listen" ,ruby-sass-listen)))
10291 `(("ruby-sass-spec" ,ruby-sass-spec)
10292 ("ruby-mathn" ,ruby-mathn)))
10293 (home-page "https://sass-lang.com/")
10294 (synopsis "CSS extension language")
10295 (description "Sass is a CSS extension language. It extends CSS with
10296 features that don't exist yet like variables, nesting, mixins and inheritance.")
10297 (license license:expat)))
10299 (define-public ruby-sassc
10301 (name "ruby-sassc")
10306 (uri (rubygems-uri "sassc" version))
10309 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
10310 (build-system ruby-build-system)
10312 '(#:modules ((guix build ruby-build-system)
10314 (ice-9 textual-ports))
10316 (modify-phases %standard-phases
10317 ;; TODO: This would be better as a snippet, but the ruby-build-system
10318 ;; doesn't seem to support that
10319 (add-after 'unpack 'remove-libsass
10321 (delete-file-recursively "ext")
10322 (with-atomic-file-replacement "sassc.gemspec"
10324 (let* ((gemspec (get-string-all in))
10325 (index (string-contains gemspec "libsass_dir")))
10326 (display (string-append
10327 (string-take gemspec index)
10331 (add-after 'unpack 'dont-check-the-libsass-version
10333 (substitute* "test/native_test.rb"
10334 (("assert_equal.*Native\\.version") ""))
10336 (add-after 'unpack 'remove-git-from-gemspec
10338 (substitute* "sassc.gemspec"
10339 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10341 (add-after 'unpack 'remove-extensions-from-gemspec
10343 (substitute* "sassc.gemspec"
10344 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10346 (add-after 'unpack 'fix-Rakefile
10348 (substitute* "Rakefile"
10349 (("test: 'compile:libsass'") ":test"))
10351 (add-after 'unpack 'remove-unnecessary-dependencies
10353 (substitute* "test/test_helper.rb"
10354 (("require \"pry\"") ""))
10356 (add-before 'build 'patch-native.rb
10357 (lambda* (#:key inputs #:allow-other-keys)
10358 (substitute* "lib/sassc/native.rb"
10359 ((".*gem_root = spec.gem_dir") "")
10362 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10364 ;; The gemspec still references the libsass files, so just keep the
10366 (delete 'extract-gemspec))))
10368 `(("ruby-ffi" ,ruby-ffi)
10369 ("ruby-rake" ,ruby-rake)))
10371 `(("libsass" ,libsass)))
10373 `(("bundler" ,bundler)
10374 ("ruby-rake-compiler" ,ruby-rake-compiler)
10375 ("ruby-minitest-around" ,ruby-minitest-around)
10376 ("ruby-test-construct" ,ruby-test-construct)))
10377 (synopsis "Use libsss from Ruby")
10379 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10380 bindings to the libsass library. This enables rendering
10381 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10382 (home-page "https://github.com/sass/sassc-ruby")
10383 (license license:expat)))
10385 (define-public ruby-jekyll-sass-converter
10387 (name "ruby-jekyll-sass-converter")
10391 (uri (rubygems-uri "jekyll-sass-converter" version))
10394 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
10395 (build-system ruby-build-system)
10397 `(("ruby-sass" ,ruby-sass)))
10401 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10402 (synopsis "Sass converter for Jekyll")
10403 (description "This gem provide built-in support for the Sass converter
10405 (license license:expat)))
10407 (define-public ruby-jekyll-watch
10409 (name "ruby-jekyll-watch")
10413 (uri (rubygems-uri "jekyll-watch" version))
10416 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10417 (build-system ruby-build-system)
10419 `(("ruby-listen" ,ruby-listen)))
10423 (home-page "https://github.com/jekyll/jekyll-watch")
10424 (synopsis "Jekyll auto-rebuild support")
10425 (description "This gems add the @code{--watch} switch to the jekyll CLI
10426 interface. It allows Jekyll to rebuild your site when a file changes.")
10427 (license license:expat)))
10429 (define-public ruby-parallel
10431 (name "ruby-parallel")
10436 (uri (git-reference
10437 (url "https://github.com/grosser/parallel")
10438 (commit (string-append "v" version))))
10439 (file-name (git-file-name name version))
10442 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10443 (build-system ruby-build-system)
10445 `(;; TODO 3 test failures
10446 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10447 ;; open unnecessary pipes
10448 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10449 ;; SQLite in processes
10450 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10451 ;; SQLite in threads
10453 #:test-target "rspec-rerun:spec"
10455 (modify-phases %standard-phases
10456 (add-after 'unpack 'patch-Gemfile
10458 (substitute* "Gemfile"
10459 (("gem 'rspec-legacy_formatters'") "")
10460 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10461 (add-before 'check 'delete-Gemfile.lock
10463 ;; Bundler isn't being used for fetching dependendencies, so
10464 ;; delete the Gemfile.lock
10465 (delete-file "Gemfile.lock")
10467 (add-before 'build 'patch-gemspec
10469 (substitute* "parallel.gemspec"
10470 (("git ls-files") "find"))
10473 `(("ruby-rspec" ,ruby-rspec)
10474 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10475 ("bundler" ,bundler)
10476 ("ruby-activerecord" ,ruby-activerecord)
10477 ("ruby-progressbar" ,ruby-progressbar)
10478 ("ruby-bump" ,ruby-bump)
10481 ("ruby-mysql2" ,ruby-mysql2)
10482 ("ruby-sqlite3" ,ruby-sqlite3)
10483 ("ruby-i18n" ,ruby-i18n)))
10484 (home-page "https://github.com/grosser/parallel")
10485 (synopsis "Parallel processing in Ruby")
10486 (description "Parallel allows you to run any code in parallel Processes
10487 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10488 suited for map-reduce or e.g. parallel downloads/uploads.")
10489 (license license:expat)))
10491 (define-public ruby-cane
10497 (uri (rubygems-uri "cane" version))
10500 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10501 (build-system ruby-build-system)
10502 (arguments `(#:tests? #f)); No rakefile
10503 (home-page "https://github.com/square/cane")
10505 `(("ruby-parallel" ,ruby-parallel)))
10506 (synopsis "Code quality threshold checking")
10507 (description "Cane fails your build if code quality thresholds are not met.")
10508 (license license:asl2.0)))
10510 (define-public ruby-morecane
10512 (name "ruby-morecane")
10516 (uri (rubygems-uri "morecane" version))
10519 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10520 (build-system ruby-build-system)
10521 (home-page "https://github.com/yob/morecane")
10522 (arguments `(#:tests? #f)); No rakefile
10524 `(("ruby-parallel" ,ruby-parallel)))
10525 (synopsis "Extra checks for cane")
10526 (description "The cane gem provides a great framework for running quality
10527 checks over your ruby project as part of continuous integration build. It
10528 comes with a few checks out of the box, but also provides an API for loading
10529 custom checks. This gem provides a set of additional checks.")
10530 (license license:expat)))
10532 (define-public ruby-pdf-reader
10534 (name "ruby-pdf-reader")
10537 (method git-fetch) ;no test in distributed gem archive
10538 (uri (git-reference
10539 (url "https://github.com/yob/pdf-reader.git")
10540 (commit (string-append "v" version))))
10541 (file-name (git-file-name name version))
10544 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10545 (build-system ruby-build-system)
10546 (arguments `(#:test-target "spec"
10547 #:phases (modify-phases %standard-phases
10548 (add-after 'unpack 'do-not-use-bundler
10550 (substitute* "spec/spec_helper.rb"
10551 ((".*[Bb]undler.*") ""))
10554 `(("ruby-rspec" ,ruby-rspec)
10555 ("ruby-cane" ,ruby-cane)
10556 ("ruby-morecane" ,ruby-morecane)))
10558 `(("ruby-afm" ,ruby-afm)
10559 ("ruby-ascii85" ,ruby-ascii85)
10560 ("ruby-hashery" ,ruby-hashery)
10561 ("ruby-rc4" ,ruby-rc4)
10562 ("ruby-ttfunk" ,ruby-ttfunk)))
10563 (home-page "https://github.com/yob/pdf-reader")
10564 (synopsis "PDF parser in Ruby")
10565 (description "The PDF::Reader library implements a PDF parser conforming as
10566 much as possible to the PDF specification from Adobe. It provides programmatic
10567 access to the contents of a PDF file with a high degree of flexibility.")
10568 (license license:gpl3+)))
10570 (define-public ruby-pdf-inspector
10571 (let ((revision "1")
10572 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10574 (name "ruby-pdf-inspector")
10575 (version (git-version "1.3.0" revision commit))
10578 (uri (git-reference
10579 (url "https://github.com/prawnpdf/pdf-inspector.git")
10581 (file-name (git-file-name name version))
10584 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10585 (build-system ruby-build-system)
10587 `(#:test-target "spec"
10588 #:phases (modify-phases %standard-phases
10589 (add-before 'build 'drop-signing-key-requirement
10591 (substitute* "pdf-inspector.gemspec"
10592 (("spec.signing_key =.*")
10593 "spec.signing_key = nil"))
10597 (substitute* "pdf-inspector.gemspec"
10598 ((".*rubocop.*") "")
10600 (invoke "rspec"))))))
10602 `(("ruby-rspec" ,ruby-rspec)))
10604 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10605 (home-page "https://github.com/prawnpdf/pdf-inspector")
10606 (synopsis "Analysis classes for inspecting PDF output")
10607 (description "This library provides a number of PDF::Reader based tools for
10608 use in testing PDF output. Presently, the primary purpose of this tool is to
10609 support the tests found in Prawn, a pure Ruby PDF generation library.")
10610 (license %prawn-project-licenses))))
10612 (define-public ruby-pdf-core
10614 (name "ruby-pdf-core")
10618 (uri (rubygems-uri "pdf-core" version))
10621 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10622 (build-system ruby-build-system)
10626 (home-page "https://github.com/prawnpdf/pdf-core")
10627 (synopsis "Low level PDF features for Prawn")
10628 (description "This is an experimental gem that extracts low-level PDF
10629 functionality from Prawn.")
10630 (license license:gpl3+)))
10632 (define-public ruby-prawn
10633 ;; There hasn't been a new release since 2017/03/17.
10634 (let ((revision "1")
10635 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10637 (name "ruby-prawn")
10638 (version (git-version "2.2.2" revision commit))
10641 (uri (git-reference
10642 (url "https://github.com/prawnpdf/prawn.git")
10644 (file-name (git-file-name name version))
10647 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10648 (build-system ruby-build-system)
10651 (modify-phases %standard-phases
10652 (add-before 'build 'drop-signing-key-requirement
10654 (substitute* "prawn.gemspec"
10655 (("spec.signing_key =.*")
10656 "spec.signing_key = nil"))
10659 (lambda* (#:key tests? #:allow-other-keys)
10661 ;; The Prawn manual test fails (see:
10662 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10664 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10667 `(("ruby-pdf-core" ,ruby-pdf-core)
10668 ("ruby-ttfunk" ,ruby-ttfunk)))
10670 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10671 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10672 ("ruby-rspec" ,ruby-rspec)
10673 ("ruby-simplecov" ,ruby-simplecov)
10674 ("ruby-yard" ,ruby-yard)))
10675 (home-page "https://prawnpdf.org/api-docs/2.0/")
10676 (synopsis "PDF generation for Ruby")
10677 (description "Prawn is a pure Ruby PDF generation library.")
10678 (license %prawn-project-licenses))))
10680 (define-public ruby-prawn-table
10682 (name "ruby-prawn-table")
10686 (uri (rubygems-uri "prawn-table" version))
10689 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10690 (build-system ruby-build-system)
10692 `(("ruby-prawn" ,ruby-prawn)
10693 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10695 `(("bundler" ,bundler)
10696 ("ruby-yard" ,ruby-yard)
10697 ("ruby-mocha" ,ruby-mocha)
10698 ("ruby-coderay" ,ruby-coderay)
10699 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10700 ("ruby-simplecov" ,ruby-simplecov)
10701 ("ruby-rspec-2" ,ruby-rspec-2)))
10703 '(;; TODO: 1 test fails
10704 ;; Failure/Error: pdf.page_count.should == 1
10706 ;; got: 2 (using ==)
10707 ;; # ./spec/table_spec.rb:1308
10709 ;; 225 examples, 1 failure
10712 (modify-phases %standard-phases
10713 (add-before 'check 'patch-gemspec
10715 (substitute* "prawn-table.gemspec"
10716 ;; Loosen the requirement for pdf-inspector
10717 (("~> 1\\.1\\.0") ">= 0")
10718 ;; Loosen the requirement for pdf-reader
10719 (("~> 1\\.2") ">= 0"))))
10721 (lambda* (#:key tests? #:allow-other-keys)
10725 (home-page "https://github.com/prawnpdf/prawn-table")
10726 (synopsis "Tables support for Prawn")
10727 (description "This gem provides tables support for Prawn.")
10728 (license license:gpl3+)))
10730 (define-public ruby-kramdown
10732 (name "ruby-kramdown")
10736 (uri (rubygems-uri "kramdown" version))
10739 "1vmw752c26ny2jwl0npn0gbyqwgz4hdmlpxnsld9qi9xhk5b1qh7"))))
10740 (build-system ruby-build-system)
10741 (arguments `(#:tests? #f)); FIXME: some test failures
10743 `(("ruby-prawn" ,ruby-prawn)
10744 ("ruby-prawn-table" ,ruby-prawn-table)))
10745 (home-page "https://kramdown.gettalong.org/")
10746 (synopsis "Markdown parsing and converting library")
10747 (description "Kramdown is a library for parsing and converting a superset
10748 of Markdown. It is completely written in Ruby, supports standard Markdown
10749 (with some minor modifications) and various extensions that have been made
10750 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
10751 (license license:expat)))
10753 (define-public ruby-kramdown-parser-gfm
10755 (name "ruby-kramdown-parser-gfm")
10760 (uri (rubygems-uri "kramdown-parser-gfm" version))
10762 (base32 "0a8pb3v951f4x7h968rqfsa19c8arz21zw1vaj42jza22rap8fgv"))))
10763 (build-system ruby-build-system)
10765 `(#:tests? #f)) ;no rakefile
10767 `(("ruby-kramdown" ,ruby-kramdown)))
10768 (synopsis "Kramdown parser for the GFM dialect of Markdown")
10770 "This is a parser for kramdown that converts Markdown documents in the
10771 GFM dialect to HTML.")
10772 (home-page "https://github.com/kramdown/parser-gfm")
10773 (license license:expat)))
10775 (define-public ruby-http-parser.rb
10777 (name "ruby-http-parser.rb")
10782 (uri (rubygems-uri "http_parser.rb" version))
10785 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
10786 (build-system ruby-build-system)
10791 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10792 ("ruby-rspec" ,ruby-rspec)))
10793 (home-page "https://github.com/tmm1/http_parser.rb")
10794 (synopsis "HTTP parser un Ruby")
10795 (description "This gem is a simple callback-based HTTP request/response
10796 parser for writing http servers, clients and proxies.")
10797 (license license:expat)))
10799 (define-public ruby-em-websocket
10801 (name "ruby-em-websocket")
10806 (uri (rubygems-uri "em-websocket" version))
10809 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
10810 (build-system ruby-build-system)
10815 `(("ruby-eventmachine" ,ruby-eventmachine)
10816 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
10818 `(("bundler" ,bundler)
10819 ("ruby-rspec" ,ruby-rspec)))
10820 (home-page "https://github.com/igrigorik/em-websocket")
10821 (synopsis "EventMachine based WebSocket server")
10822 (description "Em-websocket is an EventMachine based WebSocket server
10824 (license license:expat)))
10826 (define-public ruby-rouge
10828 (name "ruby-rouge")
10832 (uri (rubygems-uri "rouge" version))
10835 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
10836 (build-system ruby-build-system)
10837 (arguments `(#:tests? #f)); No rakefile
10838 (home-page "http://rouge.jneen.net/")
10839 (synopsis "Code highlighter")
10840 (description "Rouge is a code highlighter written in Ruby. It supports more
10841 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
10842 is compatible with stylesheets designed for pygments.")
10844 ;; rouge is licensed under expat
10846 ;; pygments is licensed under bsd-2
10849 (define-public ruby-rouge-2
10851 (inherit ruby-rouge)
10855 (uri (rubygems-uri "rouge" version))
10858 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
10860 (define-public ruby-hashie
10862 (name "ruby-hashie")
10866 (uri (rubygems-uri "hashie" version))
10869 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
10870 (build-system ruby-build-system)
10872 `(("bundler" ,bundler)))
10873 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
10874 (home-page "https://github.com/intridea/hashie")
10875 (synopsis "Extensions to Ruby Hashes")
10876 (description "Hashie is a collection of classes and mixins that make Ruby
10877 hashes more powerful.")
10878 (license license:expat)))
10880 (define-public ruby-heredoc-unindent
10882 (name "ruby-heredoc-unindent")
10886 (uri (rubygems-uri "heredoc_unindent" version))
10889 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
10890 (build-system ruby-build-system)
10892 `(("ruby-hoe" ,ruby-hoe)))
10893 (home-page "https://github.com/adrianomitre/heredoc_unindent")
10894 (synopsis "Heredoc indentation cleaner")
10895 (description "This gem removes common margin from indented strings, such
10896 as the ones produced by indented heredocs. In other words, it strips out
10897 leading whitespace chars at the beginning of each line, but only as much as
10898 the line with the smallest margin.
10900 It is acknowledged that many strings defined by heredocs are just code and
10901 fact is that most parsers are insensitive to indentation. If, however, the
10902 strings are to be used otherwise, be it for printing or testing, the extra
10903 indentation will probably be an issue and hence this gem.")
10904 (license license:expat)))
10906 (define-public ruby-safe-yaml
10908 (name "ruby-safe-yaml")
10913 (uri (git-reference
10914 (url "https://github.com/dtao/safe_yaml")
10916 (file-name (git-file-name name version))
10919 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
10920 (build-system ruby-build-system)
10922 `(("ruby-rspec" ,ruby-rspec)
10923 ("ruby-hashie" ,ruby-hashie)
10924 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
10926 '(#:test-target "spec"
10928 (modify-phases %standard-phases
10929 (add-before 'check 'set-TZ
10931 ;; This test is dependent on the timezone
10932 ;; spec/transform/to_date_spec.rb:35
10933 ;; # SafeYAML::Transform::ToDate converts times to the local
10935 (setenv "TZ" "UTC-11")
10937 (home-page "https://github.com/dtao/safe_yaml")
10938 (synopsis "YAML parser")
10939 (description "The SafeYAML gem provides an alternative implementation of
10940 YAML.load suitable for accepting user input in Ruby applications.")
10941 (license license:expat)))
10943 (define-public ruby-mercenary
10945 (name "ruby-mercenary")
10949 (uri (rubygems-uri "mercenary" version))
10952 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
10953 (build-system ruby-build-system)
10954 (arguments `(#:test-target "spec"))
10956 `(("bundler" ,bundler)))
10957 (home-page "https://github.com/jekyll/mercenary")
10958 (synopsis "Command-line apps library in Ruby")
10959 (description "Mercenary is a lightweight and flexible library for writing
10960 command-line apps in Ruby.")
10961 (license license:expat)))
10963 (define-public ruby-liquid
10965 (name "ruby-liquid")
10969 (uri (rubygems-uri "liquid" version))
10972 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
10973 (build-system ruby-build-system)
10974 (arguments `(#:tests? #f)); No rakefile
10975 (home-page "https://shopify.github.io/liquid/")
10976 (synopsis "Template language")
10977 (description "Liquid is a template language written in Ruby. It is used
10978 to load dynamic content on storefronts.")
10979 (license license:expat)))
10981 (define-public ruby-forwardable-extended
10983 (name "ruby-forwardable-extended")
10987 (uri (rubygems-uri "forwardable-extended" version))
10990 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
10991 (build-system ruby-build-system)
10992 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
10993 (home-page "https://github.com/envygeeks/forwardable-extended")
10994 (synopsis "Delegation to hashes and instance variables in Forwardable")
10995 (description "Forwardable Extended provides more @code{Forwardable}
10996 methods for your source as @code{Forwardable::Extended}.")
10997 (license license:expat)))
10999 (define-public ruby-pathutil
11001 (name "ruby-pathutil")
11005 (uri (rubygems-uri "pathutil" version))
11008 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
11009 (build-system ruby-build-system)
11011 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
11013 `(("bundler" ,bundler)
11014 ("ruby-rspec" ,ruby-rspec)))
11015 ;; Fails with: cannot load such file --
11016 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
11017 (arguments `(#:tests? #f))
11018 (home-page "https://github.com/envygeeks/pathutil")
11019 (synopsis "Extended implementation of Pathname")
11020 (description "Pathutil tries to be a faster pure Ruby implementation of
11022 (license license:expat)))
11024 (define-public jekyll
11030 (uri (rubygems-uri "jekyll" version))
11033 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
11034 (build-system ruby-build-system)
11036 ;; No rakefile, but a test subdirectory.
11039 (modify-phases %standard-phases
11040 (add-before 'build 'fix-i18n
11042 (substitute* ".gemspec"
11043 (("~> 0.7") ">= 0.7")
11044 (("~> 1.14") ">= 1.14"))
11047 `(("ruby-addressable" ,ruby-addressable)
11048 ("ruby-colorator" ,ruby-colorator)
11049 ("ruby-em-websocket" ,ruby-em-websocket)
11050 ("ruby-i18n" ,ruby-i18n)
11051 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
11052 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
11053 ("ruby-kramdown" ,ruby-kramdown-parser-gfm)
11054 ("ruby-liquid" ,ruby-liquid)
11055 ("ruby-mercenary" ,ruby-mercenary)
11056 ("ruby-pathutil" ,ruby-pathutil)
11057 ("ruby-rouge" ,ruby-rouge-2)
11058 ("ruby-safe-yaml" ,ruby-safe-yaml)))
11059 (home-page "https://jekyllrb.com/")
11060 (synopsis "Static site generator")
11061 (description "Jekyll is a simple, blog aware, static site generator.")
11062 (license license:expat)))
11064 (define-public ruby-jekyll-paginate-v2
11066 (name "ruby-jekyll-paginate-v2")
11070 (uri (rubygems-uri "jekyll-paginate-v2" version))
11073 "1qzlqhpiqz28624fp0ak76hfy7908w6kpx62v7z43aiwjv0yc6q0"))))
11074 (build-system ruby-build-system)
11076 `(("jekyll" ,jekyll)))
11077 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11078 (synopsis "Pagination Generator for Jekyll 3")
11079 (description "The Pagination Generator forms the core of the pagination
11080 logic in Jekyll. It calculates and generates the pagination pages.")
11081 (license license:expat)))
11083 (define-public ruby-faraday
11085 (name "ruby-faraday")
11090 (uri (rubygems-uri "faraday" version))
11093 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11094 (build-system ruby-build-system)
11098 `(("ruby-multipart-post" ,ruby-multipart-post)))
11099 (synopsis "Ruby HTTP/REST API client library")
11101 "Faraday is a HTTP/REST API client library which provides a common
11102 interface over different adapters.")
11103 (home-page "https://github.com/lostisland/faraday")
11104 (license license:expat)))
11106 (define-public ruby-nio4r
11108 (name "ruby-nio4r")
11113 (uri (rubygems-uri "nio4r" version))
11116 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11117 (build-system ruby-build-system)
11120 (modify-phases %standard-phases
11121 (add-after 'unpack 'remove-unnecessary-dependencies
11123 (substitute* "spec/spec_helper.rb"
11124 ;; Coveralls is for uploading test coverage information to an
11125 ;; online service, and thus unnecessary for building the Guix
11127 (("require \"coveralls\"") "")
11128 (("Coveralls\\.wear!") "")
11129 ;; Remove rspec/retry as we are not retrying the tests
11130 (("require \"rspec/retry\"") "")
11131 (("config\\.display_try_failure_messages = true") "")
11132 (("config\\.verbose_retry = true") ""))
11134 (add-before 'check 'compile
11136 (invoke "rake" "compile")
11139 (lambda* (#:key tests? #:allow-other-keys)
11144 `(("bundler" ,bundler)
11145 ("ruby-rake-compiler" ,ruby-rake-compiler)
11146 ("ruby-rspec" ,ruby-rspec)
11147 ("ruby-rubocop" ,ruby-rubocop)))
11148 (synopsis "New I/O for Ruby")
11150 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11151 for scalable network clients and servers.")
11152 (home-page "https://github.com/socketry/nio4r")
11153 (license license:expat)))
11155 (define-public ruby-globalid
11157 (name "ruby-globalid")
11162 (uri (rubygems-uri "globalid" version))
11165 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11166 (build-system ruby-build-system)
11168 '(;; No included tests
11171 `(("ruby-activesupport" ,ruby-activesupport)))
11172 (synopsis "Generate URIs idenfitying model instances in Ruby")
11174 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11175 uniquely identify it.")
11176 (home-page "https://rubyonrails.org/")
11177 (license license:expat)))
11179 (define-public ruby-sprockets
11181 (name "ruby-sprockets")
11186 (uri (rubygems-uri "sprockets" version))
11189 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11190 (build-system ruby-build-system)
11192 '(;; No included tests
11195 `(("ruby-concurrent" ,ruby-concurrent)
11196 ("ruby-rack" ,ruby-rack)))
11197 (synopsis "Sprockets is a Rack-based asset packaging system")
11199 "Sprockets is a Rack-based asset packaging system that concatenates and
11200 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11201 (home-page "https://github.com/rails/sprockets")
11202 (license license:expat)))
11204 (define-public ruby-mustache
11206 (name "ruby-mustache")
11211 (uri (rubygems-uri "mustache" version))
11213 (base32 "1l0p4wx15mi3wnamfv92ipkia4nsx8qi132c6g51jfdma3fiz2ch"))))
11214 (build-system ruby-build-system)
11216 `(("ruby-simplecov" ,ruby-simplecov)))
11217 (synopsis "framework-agnostic way to render logic-free views")
11219 "Mustache is a framework-agnostic way to render logic-free views.
11220 Think of Mustache as a replacement for your views. Instead of views
11221 consisting of ERB or HAML with random helpers and arbitrary logic,
11222 your views are broken into two parts: a Ruby class and an HTML
11224 (home-page "https://github.com/mustache/mustache")
11225 (license license:expat)))
11227 (define-public ruby-mustermann
11229 (name "ruby-mustermann")
11234 (uri (rubygems-uri "mustermann" version))
11237 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11238 (build-system ruby-build-system)
11242 (synopsis "Library implementing patterns that behave like regular expressions")
11243 (description "Given a string pattern, Mustermann will turn it into an
11244 object that behaves like a regular expression and has comparable performance
11246 (home-page "https://github.com/sinatra/mustermann")
11247 (license license:expat)))
11249 (define-public ruby-htmlentities
11251 (name "ruby-htmlentities")
11256 (uri (rubygems-uri "htmlentities" version))
11259 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11260 (build-system ruby-build-system)
11263 (modify-phases %standard-phases
11266 (map (lambda (file)
11267 (invoke "ruby" "-Itest" file))
11268 (find-files "./test" ".*_test\\.rb")))))))
11269 (synopsis "Encode and decode (X)HTML entities")
11271 "This package provides a module for encoding and decoding (X)HTML
11273 (home-page "https://github.com/threedaymonk/htmlentities")
11274 (license license:expat)))
11276 (define-public ruby-sinatra
11278 (name "ruby-sinatra")
11279 (version "2.0.8.1")
11283 (uri (rubygems-uri "sinatra" version))
11286 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11287 (build-system ruby-build-system)
11290 (modify-phases %standard-phases
11291 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11292 (add-after 'extract-gemspec 'fix-slow-doc-generation
11294 (substitute* "sinatra.gemspec"
11295 (("\"README.rdoc\"\\.freeze," all)
11296 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11299 `(("ruby-mustermann" ,ruby-mustermann)
11300 ("ruby-rack" ,ruby-rack)
11301 ("ruby-rack-protection" ,ruby-rack-protection)
11302 ("ruby-tilt" ,ruby-tilt)))
11303 (synopsis "DSL for quick web applications creation in Ruby")
11305 "Sinatra is a DSL for quickly creating web applications in Ruby with
11307 (home-page "http://sinatrarb.com/")
11308 (license license:expat)))
11310 (define-public ruby-thin
11317 (uri (rubygems-uri "thin" version))
11320 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11321 (build-system ruby-build-system)
11326 `(("ruby-daemons" ,ruby-daemons)
11327 ("ruby-eventmachine" ,ruby-eventmachine)
11328 ("ruby-rack" ,ruby-rack)))
11329 (synopsis "Thin and fast web server for Ruby")
11330 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11332 @item the Mongrel parser,
11333 @item Event Machine, a network I/O library with high scalability, performance
11335 @item Rack, a minimal interface between webservers and Ruby frameworks.
11337 (home-page "https://github.com/macournoyer/thin")
11338 (license license:ruby)))
11340 (define-public ruby-skinny
11342 (name "ruby-skinny")
11347 (uri (rubygems-uri "skinny" version))
11350 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11351 (build-system ruby-build-system)
11353 '(#:tests? #f ; No included tests
11355 (modify-phases %standard-phases
11356 (add-before 'build 'patch-gemspec
11358 (substitute* ".gemspec"
11359 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11360 "<eventmachine>, [\">= 1.0.0\"")
11361 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11364 `(("ruby-eventmachine" ,ruby-eventmachine)
11365 ("ruby-thin" ,ruby-thin)))
11366 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11367 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11368 the Thin library.")
11369 (home-page "https://github.com/sj26/skinny")
11370 (license license:expat)))
11372 (define-public ruby-sys-filesystem
11374 (name "ruby-sys-filesystem")
11378 (uri (rubygems-uri "sys-filesystem" version))
11381 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11382 (build-system ruby-build-system)
11384 '(#:phases (modify-phases %standard-phases
11385 (add-before 'check 'set-HOME
11387 ;; Some tests attempt to stat $HOME. Let them.
11388 (setenv "HOME" "/tmp")
11391 `(("ruby-ffi" ,ruby-ffi)))
11393 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11394 (synopsis "Gather file system information")
11396 "The @code{sys-filesystem} library provides a cross-platform interface
11397 for gathering file system information, such as disk space and mount points.")
11398 (home-page "https://github.com/djberg96/sys-filesystem")
11399 (license license:asl2.0)))
11401 (define-public mailcatcher
11403 (name "mailcatcher")
11408 (uri (rubygems-uri "mailcatcher" version))
11411 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11412 (build-system ruby-build-system)
11414 ;; Tests require web/assets which is not included in the output. We
11415 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11416 ;; of the tests. See ruby-mysql2.
11419 (modify-phases %standard-phases
11420 (add-before 'build 'patch-gemspec
11422 (substitute* ".gemspec"
11423 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11424 "<eventmachine>, [\">= 1.0.9.1")
11425 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11426 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11427 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11429 (add-before 'build 'loosen-dependency-contraint
11431 (substitute* "lib/mail_catcher.rb"
11432 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11433 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11434 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11435 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11438 `(("ruby-eventmachine" ,ruby-eventmachine)
11439 ("ruby-mail" ,ruby-mail)
11440 ("ruby-rack" ,ruby-rack)
11441 ("ruby-sinatra" ,ruby-sinatra)
11442 ("ruby-skinny" ,ruby-skinny)
11443 ("ruby-sqlite3" ,ruby-sqlite3)
11444 ("ruby-thin" ,ruby-thin)))
11445 (synopsis "SMTP server which catches messages to display them a browser")
11447 "MailCatcher runs a super simple SMTP server which catches any message
11448 sent to it to display in a web interface. Run mailcatcher, set your favourite
11449 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11450 then check out http://127.0.0.1:1080 to see the mail.")
11451 (home-page "https://mailcatcher.me")
11452 (license license:expat)))
11454 (define-public ruby-backport
11456 (name "ruby-backport")
11460 ;; The gem does not include test code, so fetch from the Git repository.
11462 (uri (git-reference
11463 (url "https://github.com/castwide/backport")
11464 (commit (string-append "v" version))))
11465 (file-name (git-file-name name version))
11467 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11468 (build-system ruby-build-system)
11470 `(#:test-target "spec"))
11472 `(("bundler" ,bundler)
11473 ("ruby-rspec" ,ruby-rspec)))
11475 `(("ruby-simplecov" ,ruby-simplecov)))
11476 (synopsis "Pure Ruby library for event-driven IO")
11478 "This package provides a pure Ruby library for event-driven IO.")
11479 (home-page "https://github.com/castwide/backport")
11480 (license license:expat)))
11482 (define-public ruby-json-schema
11484 (name "ruby-json-schema")
11489 (uri (rubygems-uri "json-schema" version))
11492 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11493 (build-system ruby-build-system)
11495 `(#:tests? #f ; no tests
11497 (modify-phases %standard-phases
11500 (invoke "gem" "build" ".gemspec"))))))
11502 `(("ruby-addressable" ,ruby-addressable)))
11503 (synopsis "Ruby JSON Schema Validator")
11504 (description "This library provides Ruby with an interface for validating
11505 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11506 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11507 is also included.")
11508 (home-page "https://github.com/ruby-json-schema/json-schema")
11509 (license license:expat)))
11511 (define-public swagger-diff
11513 (name "swagger-diff")
11518 (uri (rubygems-uri "swagger-diff" version))
11521 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11522 (build-system ruby-build-system)
11524 `(#:test-target "spec"
11526 (modify-phases %standard-phases
11527 ;; Don't run or require rubocop, the code linting tool, as this is a
11528 ;; bit unnecessary.
11529 (add-after 'unpack 'dont-run-rubocop
11531 (substitute* "Rakefile"
11532 ((".*rubocop.*") "")
11533 ((".*RuboCop.*") ""))
11536 `(("ruby-json-schema" ,ruby-json-schema)))
11538 `(("bundler" ,bundler)
11539 ("ruby-rspec-core" ,ruby-rspec-core)
11540 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11542 "Compare Open API Initiative specification files")
11544 "Swagger::Diff is a utility for comparing two different Open API
11545 Initiative (OAI) specifications (formerly known as Swagger specifications).
11546 It is intended to determine whether a newer API specification is
11547 backwards-compatible with an older API specification.")
11548 (home-page "https://github.com/civisanalytics/swagger-diff")
11549 (license license:bsd-3)))
11551 (define-public ruby-reverse-markdown
11553 (name "ruby-reverse-markdown")
11558 (uri (rubygems-uri "reverse_markdown" version))
11561 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11562 (build-system ruby-build-system)
11564 `(("ruby-nokogiri" ,ruby-nokogiri)))
11566 `(("bundler" ,bundler)
11567 ("ruby-rspec" ,ruby-rspec)
11568 ("ruby-kramdown" ,ruby-kramdown)
11569 ("ruby-simplecov" ,ruby-simplecov)))
11572 (modify-phases %standard-phases
11574 (lambda* (#:key tests? #:allow-other-keys)
11578 (synopsis "Convert HTML into Markdown")
11580 "This Ruby module allows you to map simple HTML back into
11581 Markdown---e.g., if you want to import existing HTML data in your
11583 (home-page "https://github.com/xijo/reverse_markdown")
11584 (license license:wtfpl2)))
11586 (define-public ruby-solargraph
11588 (name "ruby-solargraph")
11593 (uri (rubygems-uri "solargraph" version))
11596 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11597 (build-system ruby-build-system)
11599 `(("ruby-backport" ,ruby-backport)
11600 ("bundler" ,bundler)
11601 ("ruby-htmlentities" ,ruby-htmlentities)
11602 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11603 ("ruby-maruku" ,ruby-maruku)
11604 ("ruby-nokogiri" ,ruby-nokogiri)
11605 ("ruby-parser" ,ruby-parser)
11606 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11607 ("ruby-rubocop" ,ruby-rubocop)
11608 ("ruby-thor" ,ruby-thor)
11609 ("ruby-tilt" ,ruby-tilt)
11610 ("ruby-yard" ,ruby-yard)))
11612 `(("ruby-rspec" ,ruby-rspec)
11613 ("ruby-pry" ,ruby-pry)
11614 ("ruby-simplecov" ,ruby-simplecov)
11615 ("ruby-webmock" ,ruby-webmock-2)))
11616 ;; FIXME: can't figure out how to run the tests properly:
11618 ;; An error occurred while loading spec_helper.
11619 ;; Failure/Error: return gem_original_require(path)
11621 ;; cannot load such file -- spec_helper
11625 (modify-phases %standard-phases
11627 (lambda* (#:key tests? #:allow-other-keys)
11632 "IDE tools for code completion, inline documentation, and static analysis")
11634 "Solargraph provides a comprehensive suite of tools for Ruby
11635 programming: intellisense, diagnostics, inline documentation, and type
11637 (home-page "https://solargraph.org/")
11638 (license license:expat)))
11640 (define-public ruby-wayback-machine-downloader
11642 (name "ruby-wayback-machine-downloader")
11648 "wayback_machine_downloader"
11652 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
11653 (build-system ruby-build-system)
11655 '(#:tests? #f)) ; no tests
11656 (synopsis "Download archived websites from the Wayback Machine")
11658 "Wayback Machine Downloader is a command line tool for downloading
11659 websites from the Internet Archive's Wayback Machine (archive.org).
11660 It allows fine grained control over what to download by specifying
11661 which snapshots to consider and what files to include.")
11663 "https://github.com/hartator/wayback-machine-downloader")
11664 (license license:expat)))
11666 (define-public ruby-wwtd
11670 (home-page "https://github.com/grosser/wwtd")
11673 (uri (git-reference
11675 (commit (string-append "v" version))))
11676 (file-name (git-file-name name version))
11679 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
11680 (modules '((guix build utils)))
11683 ;; Remove bundled library.
11684 (delete-file "spec/rake-12.3.0.gem")
11686 (build-system ruby-build-system)
11688 '(;; XXX: Tests need multiple versions of ruby, wants to run
11689 ;; `bundle install`, etc.
11691 #:phases (modify-phases %standard-phases
11692 (replace 'replace-git-ls-files
11694 (substitute* "wwtd.gemspec"
11695 (("git ls-files lib/ bin/`")
11696 "find lib/ bin/ -type f |sort`"))
11698 (add-before 'check 'remove-version-constraints
11700 (delete-file "Gemfile.lock")
11703 (lambda* (#:key tests? #:allow-other-keys)
11705 (invoke "rspec" "spec/")
11706 (format #t "test suite not run~%"))
11709 `(("ruby-bump" ,ruby-bump)
11710 ("ruby-rspec" ,ruby-rspec)))
11711 (synopsis "Run @file{.travis.yml} files locally")
11713 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
11714 defined in @file{.travis.yml} on your local machine, using @code{rvm},
11715 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
11716 (license license:expat)))