1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 Nikita <nikita@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
17 ;;; Copyright © 2019 Mikhail Kirillov <w96k.ru@gmail.com>
18 ;;; Copyright © 2019 Jelle Licht <jlicht@fsfe.org>
19 ;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
20 ;;; Copyright © 2019 Collin J. Doering <collin@rekahsoft.ca>
21 ;;; Copyright © 2019 Diego N. Barbato <dnbarbato@posteo.de>
22 ;;; Copyright © 2019 Brett Gilio <brettg@posteo.de>
23 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
25 ;;; This file is part of GNU Guix.
27 ;;; GNU Guix is free software; you can redistribute it and/or modify it
28 ;;; under the terms of the GNU General Public License as published by
29 ;;; the Free Software Foundation; either version 3 of the License, or (at
30 ;;; your option) any later version.
32 ;;; GNU Guix is distributed in the hope that it will be useful, but
33 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
34 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35 ;;; GNU General Public License for more details.
37 ;;; You should have received a copy of the GNU General Public License
38 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
40 (define-module (gnu packages ruby)
41 #:use-module ((guix licenses) #:prefix license:)
42 #:use-module (gnu packages)
43 #:use-module (gnu packages base)
44 #:use-module (gnu packages bison)
45 #:use-module (gnu packages c)
46 #:use-module (gnu packages check)
47 #:use-module (gnu packages compression)
48 #:use-module (gnu packages crypto)
49 #:use-module (gnu packages databases)
50 #:use-module (gnu packages dbm)
51 #:use-module (gnu packages rails)
52 #:use-module (gnu packages readline)
53 #:use-module (gnu packages autotools)
54 #:use-module (gnu packages haskell-xyz)
55 #:use-module (gnu packages java)
56 #:use-module (gnu packages libffi)
57 #:use-module (gnu packages libidn)
58 #:use-module (gnu packages linux)
59 #:use-module (gnu packages lsof)
60 #:use-module (gnu packages maths)
61 #:use-module (gnu packages ncurses)
62 #:use-module (gnu packages networking)
63 #:use-module (gnu packages node)
64 #:use-module (gnu packages protobuf)
65 #:use-module (gnu packages python)
66 #:use-module (gnu packages python-xyz)
67 #:use-module (gnu packages ragel)
68 #:use-module (gnu packages rsync)
69 #:use-module (gnu packages sqlite)
70 #:use-module (gnu packages tls)
71 #:use-module (gnu packages version-control)
72 #:use-module (guix packages)
73 #:use-module (guix download)
74 #:use-module (guix git-download)
75 #:use-module (guix utils)
76 #:use-module (guix build-system gnu)
77 #:use-module (gnu packages xml)
78 #:use-module (gnu packages web)
79 #:use-module (guix build-system ruby)
80 #:use-module ((srfi srfi-1) #:select (alist-delete)))
82 (define %prawn-project-licenses
83 ;; This set of licenses applies to most (all?) components of the Prawn
84 ;; project (it is triple licensed).
96 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
97 (version-major+minor version)
98 "/ruby-" version ".tar.xz"))
101 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
102 (modules '((guix build utils)))
104 ;; Remove bundled libffi
105 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
107 (build-system gnu-build-system)
109 `(#:test-target "test"
110 #:configure-flags '("--enable-shared") ; dynamic linking
112 (modify-phases %standard-phases
113 (add-before 'configure 'replace-bin-sh-and-remove-libffi
115 (substitute* '("Makefile.in"
120 "test/rubygems/test_gem_ext_configure_builder.rb"
121 "test/rdoc/test_rdoc_parser.rb"
122 "test/ruby/test_rubyoptions.rb"
123 "test/ruby/test_process.rb"
124 "test/ruby/test_system.rb"
126 (("/bin/sh") (which "sh")))
129 `(("readline" ,readline)
136 (list (search-path-specification
137 (variable "GEM_PATH")
138 (files (list (string-append "lib/ruby/vendor_ruby"))))))
139 (synopsis "Programming language interpreter")
140 (description "Ruby is a dynamic object-oriented programming language with
141 a focus on simplicity and productivity.")
142 (home-page "https://www.ruby-lang.org")
143 (license license:ruby)))
145 (define-public ruby-2.7
152 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
153 (version-major+minor version)
154 "/ruby-" version ".tar.gz"))
157 "0674x98f542y02r7n2yv2qhmh97blqhi2mvh2dn5f000vlxlh66l"))
158 (modules '((guix build utils)))
160 ;; Remove bundled libffi
161 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
164 `(#:test-target "test"
165 #:configure-flags '("--enable-shared") ; dynamic linking
167 (modify-phases %standard-phases
168 (add-before 'configure 'replace-bin-sh-and-remove-libffi
170 (substitute* '("configure.ac"
171 "template/Makefile.in"
172 "lib/rubygems/installer.rb"
177 "test/rubygems/test_gem_ext_configure_builder.rb"
178 "test/rdoc/test_rdoc_parser.rb"
179 "test/ruby/test_rubyoptions.rb"
180 "test/ruby/test_process.rb"
181 "test/ruby/test_system.rb"
183 (("/bin/sh") (which "sh")))
186 `(("autoconf" ,autoconf)))))
188 (define-public ruby-2.5
195 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
196 (version-major+minor version)
197 "/ruby-" version ".tar.xz"))
200 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
201 (modules '((guix build utils)))
203 ;; Remove bundled libffi
204 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
207 (define-public ruby-2.4
214 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
215 (version-major+minor version)
216 "/ruby-" version ".tar.xz"))
219 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
220 (modules '((guix build utils)))
222 ;; Remove bundled libffi
223 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
234 (url "https://github.com/mruby/mruby")
236 (file-name (git-file-name name version))
239 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
240 (build-system gnu-build-system)
242 `(#:test-target "test"
244 (modify-phases %standard-phases
246 (add-after 'unpack 'enable-verbose-tests
248 (substitute* "Makefile"
249 (("ruby ./minirake" m)
250 (string-append m " --verbose")))
252 (add-after 'unpack 'disable-broken-tests
254 (substitute* "mrbgems/mruby-io/test/io.rb"
255 (("assert\\('IO.popen.+$" m)
256 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
257 (("assert\\('IO#isatty.+$" m)
258 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
259 ;; This one is really weird. The *expected* output is all wrong.
260 (("assert\\('`cmd`.*" m)
261 (string-append m "skip \"Disable for Guix\"\n"))
263 (string-append (which "echo") " foo")))
265 ;; There is no install target
267 (lambda* (#:key outputs #:allow-other-keys)
268 (let* ((out (assoc-ref outputs "out"))
269 (bin (string-append out "/bin"))
270 (lib (string-append out "/lib")))
272 (copy-recursively "build/host/bin" bin)
274 (copy-recursively "build/host/lib" lib))
279 (home-page "https://github.com/mruby/mruby")
280 (synopsis "Lightweight Ruby")
281 (description "mruby is the lightweight implementation of the Ruby
282 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
283 embedded within your application.")
284 (license license:expat)))
286 (define-public ruby-commander
288 (name "ruby-commander")
293 (uri (rubygems-uri "commander" version))
296 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
297 (build-system ruby-build-system)
299 `(#:test-target "spec"
301 (modify-phases %standard-phases
302 ;; Don't run or require rubocop, the code linting tool, as this is a
304 (add-after 'unpack 'dont-run-rubocop
306 (substitute* "Rakefile"
308 ((".*RuboCop.*") ""))
311 `(("ruby-highline" ,ruby-highline)))
313 `(("bundler" ,bundler)
314 ("ruby-rspec-core" ,ruby-rspec-core)
315 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
316 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
317 ("ruby-simplecov" ,ruby-simplecov)))
318 (home-page "https://github.com/commander-rb/commander")
319 (synopsis "Library for building Ruby command-line executables")
321 "Commander aims to be a complete solution for Ruby command-line
322 executables. Commander bridges the gap between other terminal related
323 libraries (OptionParser, HighLine), while providing many new features, and an
325 (license license:expat)))
327 (define-public ruby-highline
329 (name "ruby-highline")
334 (uri (rubygems-uri "highline" version))
337 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
338 (build-system ruby-build-system)
340 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
342 `(("bundler" ,bundler)
343 ("ruby-code-statistics" ,ruby-code-statistics)))
345 "HighLine helps you build command-line interfaces")
347 "HighLine provides a high-level IO library that provides validation,
348 type conversion, and more for command-line interfaces. HighLine also includes
349 a menu system for providing multiple options to the user.")
350 (home-page "https://github.com/JEG2/highline")
351 (license (list license:gpl2 license:ruby))))
353 (define-public ruby-hoe
359 (uri (rubygems-uri "hoe" version))
362 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
363 (build-system ruby-build-system)
366 (modify-phases %standard-phases
367 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
368 ;; variable is set, so unset it for the duration of the tests.
370 ;; TestHoe#test_possibly_better
371 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
372 ;; Expected: 2019-11-12 00:00:00 UTC
373 ;; Actual: 1970-01-01 00:00:00 UTC
374 (add-before 'check 'unset-SOURCE-DATE-EPOCH
376 (unsetenv "SOURCE_DATE_EPOCH")
378 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
380 (setenv "SOURCE_DATE_EPOCH" "1")
382 (synopsis "Ruby project management helper")
384 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
385 maintain, and release projects and includes a dynamic plug-in system allowing
386 for easy extensibility. Hoe ships with plug-ins for all the usual project
387 tasks including rdoc generation, testing, packaging, deployment, and
389 (home-page "https://www.zenspider.com/projects/hoe.html")
390 (license license:expat)))
392 (define-public ruby-rake-compiler
394 (name "ruby-rake-compiler")
398 (uri (rubygems-uri "rake-compiler" version))
401 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
402 (build-system ruby-build-system)
404 '(#:tests? #f)) ; needs cucumber
405 (synopsis "Building and packaging helper for Ruby native extensions")
406 (description "Rake-compiler provides a framework for building and
407 packaging native C and Java extensions in Ruby.")
408 (home-page "https://github.com/rake-compiler/rake-compiler")
409 (license license:expat)))
411 (define-public ruby-rsync
418 (uri (rubygems-uri "rsync" version))
421 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
422 (build-system ruby-build-system)
424 '(#:test-target "spec"
426 (modify-phases %standard-phases
427 (add-after 'unpack 'remove-coveralls-requirement
429 (substitute* "spec/spec_helper.rb"
430 (("require 'coveralls'") "")
431 (("Coveralls.wear!") ""))
434 `(("bundler" ,bundler)
436 ("ruby-rspec-core" ,ruby-rspec-core)
437 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
438 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
439 (home-page "https://github.com/jbussdieker/ruby-rsync")
440 (synopsis "Ruby wrapper around rsync")
442 "Ruby Rsync is a Ruby library that can synchronize files between remote
443 hosts by wrapping the @file{rsync} binary.")
444 (license license:expat)))
446 (define-public ruby-i18n
452 (uri (rubygems-uri "i18n" version))
455 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
456 (build-system ruby-build-system)
458 '(#:tests? #f)) ; no tests
459 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
460 (synopsis "Internationalization library for Ruby")
461 (description "Ruby i18n is an internationalization and localization
462 solution for Ruby programs. It features translation and localization,
463 interpolation of values to translations, pluralization, customizable
464 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
465 translation data, custom key/scope separator, custom exception handlers, and
466 an extensible architecture with a swappable backend.")
467 (home-page "https://github.com/ruby-i18n/i18n")
468 (license license:expat)))
470 (define-public ruby-iruby
477 (uri (rubygems-uri "iruby" version))
480 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
481 (build-system ruby-build-system)
483 ;; TODO: Tests currently fail.
485 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
488 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
491 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
494 (modify-phases %standard-phases
495 (add-after 'unpack 'patch-ipython
496 (lambda* (#:key inputs #:allow-other-keys)
497 (substitute* "lib/iruby/command.rb"
501 (assoc-ref inputs "python-ipython")
503 (("Kernel\\.exec\\('")
506 (assoc-ref inputs "python-ipython")
510 `(("python-ipython" ,python-ipython)))
512 `(("ruby-bond" ,ruby-bond)
513 ("ruby-data_uri" ,ruby-data_uri)
514 ("ruby-mimemagic" ,ruby-mimemagic)
515 ("ruby-multi-json" ,ruby-multi-json)
516 ("ruby-cztop" ,ruby-cztop)
518 ("ruby-pry" ,ruby-pry)))
519 (synopsis "Ruby kernel for Jupyter/IPython")
521 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
523 (home-page "https://github.com/SciRuby/iruby")
524 (license license:expat)))
526 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
527 ;; dependencies use RSpec for their test suites! To avoid these circular
528 ;; dependencies, we disable tests for all of the RSpec-related packages.
529 (define-public ruby-rspec-support
531 (name "ruby-rspec-support")
535 (uri (rubygems-uri "rspec-support" version))
538 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
539 (build-system ruby-build-system)
541 '(#:tests? #f)) ; avoid dependency cycles
542 (synopsis "RSpec support library")
543 (description "Support utilities for RSpec gems.")
544 (home-page "https://github.com/rspec/rspec-support")
545 (license license:expat)))
547 (define-public ruby-rspec-core
549 (name "ruby-rspec-core")
553 (uri (rubygems-uri "rspec-core" version))
556 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
557 (build-system ruby-build-system)
559 '(#:tests? #f)) ; avoid dependency cycles
561 `(("ruby-rspec-support" ,ruby-rspec-support)))
562 (synopsis "RSpec core library")
563 (description "Rspec-core provides the RSpec test runner and example
565 (home-page "https://github.com/rspec/rspec-core")
566 (license license:expat)))
568 (define-public ruby-rspec-core-2
569 (package (inherit ruby-rspec-core)
573 (uri (rubygems-uri "rspec-core" version))
576 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
577 (propagated-inputs `())))
579 (define-public ruby-diff-lcs
581 (name "ruby-diff-lcs")
585 (uri (rubygems-uri "diff-lcs" version))
588 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
589 (build-system ruby-build-system)
591 '(#:tests? #f)) ; avoid dependency cycles
592 (synopsis "Compute the difference between two Enumerable sequences")
593 (description "Diff::LCS computes the difference between two Enumerable
594 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
595 It includes utilities to create a simple HTML diff output format and a
596 standard diff-like tool.")
597 (home-page "https://github.com/halostatue/diff-lcs")
598 (license license:expat)))
600 (define-public ruby-rspec-expectations
602 (name "ruby-rspec-expectations")
606 (uri (rubygems-uri "rspec-expectations" version))
609 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
610 (build-system ruby-build-system)
612 '(#:tests? #f)) ; avoid dependency cycles
614 `(("ruby-rspec-support" ,ruby-rspec-support)
615 ("ruby-diff-lcs" ,ruby-diff-lcs)))
616 (synopsis "RSpec expectations library")
617 (description "Rspec-expectations provides a simple API to express expected
618 outcomes of a code example.")
619 (home-page "https://github.com/rspec/rspec-expectations")
620 (license license:expat)))
622 (define-public ruby-rspec-expectations-2
623 (package (inherit ruby-rspec-expectations)
627 (uri (rubygems-uri "rspec-expectations" version))
630 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
632 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
634 (define-public ruby-sorcerer
636 (name "ruby-sorcerer")
641 (uri (rubygems-uri "sorcerer" version))
644 "0d32ha9pp9slpmsm027pkdpbr9vc5jn2m8rl6hwwx6a87m8cr58h"))))
645 (build-system ruby-build-system)
646 (synopsis "Ripper-style abstract syntax tree to Ruby source generator")
647 (description "Sorcerer generates Ruby code from a Ripper-like abstract
648 syntax tree (i.e. S-Expressions). Sorcerer is targeted mainly at small
649 snippets of Ruby code, expressable in a single line. Longer examples may be
650 re-sourced, but they will be rendered in a single line format.")
651 (home-page "https://github.com/rspec-given/sorcerer")
652 (license license:expat)))
654 (define-public ruby-given-core
656 (name "ruby-given-core")
661 (uri (rubygems-uri "given_core" version))
664 "1lzyqllbbv6as3qgwz2007mvy7wy247bgkch9adnmh1zfa73bkrg"))))
665 (build-system ruby-build-system)
666 (arguments '(#:tests? #f)) ;no test suite for the core package
668 `(("ruby-sorcerer" ,ruby-sorcerer)))
669 (synopsis "Core abstractions used by rspec-given and minitest-given")
670 (description "Given_core is the basic functionality behind rspec-given and
671 minitest-given, extensions that allow the use of Given/When/Then terminology
672 when defining specifications.")
673 (home-page "https://github.com/rspec-given/rspec-given")
674 (license license:expat)))
676 (define-public ruby-rspec-given
678 (name "ruby-rspec-given")
683 (uri (rubygems-uri "rspec-given" version))
686 "1783bazja10kbha8hk15khvybsq88siyax02cpkk688604h54nji"))))
687 (build-system ruby-build-system)
691 (modify-phases %standard-phases
692 (add-after 'unpack 'fix-rakefile
694 (substitute* '("Rakefile" "rakelib/gemspec.rake")
695 (("require '\\./lib/given/.*") "")
696 (("Given::VERSION") (format #f "~s" ,version))
697 ;; Fix the error: "cannot load such file -- example_helper"
699 "sh \"rspec -Ilib:examples"))
701 (add-after 'extract-gemspec 'delete-failing-tests
702 ;; See: https://github.com/jimweirich/rspec-given/issues/57.
704 (substitute* ".gemspec"
705 (("\"spec/lib/given/natural_assertion_spec.rb\".freeze, ")
707 (("\"examples/integration/failing_messages_spec.rb\".freeze, ")
709 (delete-file "spec/lib/given/natural_assertion_spec.rb")
710 (delete-file "examples/integration/failing_messages_spec.rb")
713 `(("ruby-rspec" ,ruby-rspec)
714 ("ruby-minitest" ,ruby-minitest)))
716 `(("ruby-given-core" ,ruby-given-core)
717 ("ruby-rspec" ,ruby-rspec)))
718 (synopsis "Given/When/Then for RSpec and Minitest")
719 (description "Given is an RSpec extension that allows the use of
720 Given/When/Then terminology when defining specifications, in a way similar to
721 the Cucumber Gherkin language.")
722 (home-page "https://github.com/rspec-given/rspec-given")
723 (license license:expat)))
725 (define-public ruby-rspec-its
727 (name "ruby-rspec-its")
733 (url "https://github.com/rspec/rspec-its")
734 (commit (string-append "v" version))))
735 (file-name (git-file-name name version))
738 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
739 (build-system ruby-build-system)
741 `(#:test-target "spec"
743 (modify-phases %standard-phases
744 (add-after 'unpack 'dont-install-gems-from-gemfile
746 (substitute* "Gemfile"
747 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
750 (add-before 'build 'loosen-ffi-requirement
752 ;; Accept any version of ruby-ffi.
753 (substitute* "Gemfile"
754 ((" gem 'ffi', '~> 1\\.9\\.25'")
757 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
759 (substitute* "rspec-its.gemspec"
760 (("rake.*") "rake'\n")
761 (("spec.add_development_dependency 'cucumber'.*")
762 "spec.add_development_dependency 'cucumber'\n")
763 (("bundler.*") "bundler'\n")
764 (("\"aruba.*") "'aruba'\n"))
767 `(("ruby-rspec-core" ,ruby-rspec-core)
768 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
770 `(("bundler" ,bundler)
771 ("ruby-cucumber" ,ruby-cucumber)
772 ("ruby-ffi" ,ruby-ffi)
773 ("ruby-aruba" ,ruby-aruba)))
774 (synopsis "RSpec extension that provides the @code{its} method")
776 "RSpec::Its provides the its method as a short-hand to specify the expected
777 value of an attribute. For example, one can use @code{its(:size)\\{should
779 (home-page "https://github.com/rspec/rspec-its")
780 (license license:expat)))
782 ;;; This variant is used to break a cycle with ruby-protobuf.
783 (define-public ruby-rspec-its-minimal
786 (inherit ruby-rspec-its)
788 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
789 ((#:tests? _ #f) #f)))
790 (native-inputs '()))))
792 (define-public ruby-rspec-mocks
794 (name "ruby-rspec-mocks")
798 (uri (rubygems-uri "rspec-mocks" version))
801 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
802 (build-system ruby-build-system)
804 '(#:tests? #f)) ; avoid dependency cycles
806 `(("ruby-rspec-support" ,ruby-rspec-support)
807 ("ruby-diff-lcs" ,ruby-diff-lcs)))
808 (synopsis "RSpec stubbing and mocking library")
809 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
810 support for stubbing and mocking.")
811 (home-page "https://github.com/rspec/rspec-mocks")
812 (license license:expat)))
814 (define-public ruby-rspec-mocks-2
815 (package (inherit ruby-rspec-mocks)
819 (uri (rubygems-uri "rspec-mocks" version))
822 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
824 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
826 (define-public ruby-rspec-rerun
828 (name "ruby-rspec-rerun")
833 (uri (rubygems-uri "rspec-rerun" version))
836 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
837 (build-system ruby-build-system)
839 '(;; No included tests
841 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
842 (synopsis "Track failed RSpec tests to re-run them")
844 "This package provides an automated way to track, and then re-run failed
846 (home-page "https://github.com/dblock/rspec-rerun")
847 (license license:expat)))
849 (define-public ruby-rspec-wait
851 (name "ruby-rspec-wait")
856 (uri (rubygems-uri "rspec-wait" version))
859 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
860 (build-system ruby-build-system)
863 (modify-phases %standard-phases
866 (invoke "rake" "spec"))))))
868 `(("bundler" ,bundler)))
870 `(("ruby-rspec" ,ruby-rspec)))
871 (home-page "https://github.com/laserlemon/rspec-wait")
872 (synopsis "Wait for conditions in RSpec")
874 "RSpec::Wait strives to make it easier to test asynchronous or slow
876 (license license:expat)))
878 (define-public ruby-rspec
884 (uri (rubygems-uri "rspec" version))
887 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
888 (build-system ruby-build-system)
890 '(#:tests? #f)) ; avoid dependency cycles
892 `(("ruby-rspec-core" ,ruby-rspec-core)
893 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
894 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
895 (synopsis "Behavior-driven development framework for Ruby")
896 (description "RSpec is a behavior-driven development (BDD) framework for
897 Ruby. This meta-package includes the RSpec test runner, along with the
898 expectations and mocks frameworks.")
899 (home-page "https://rspec.info/")
900 (license license:expat)))
902 (define-public ruby-rspec-2
903 (package (inherit ruby-rspec)
907 (uri (rubygems-uri "rspec" version))
910 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
912 `(("ruby-rspec-core" ,ruby-rspec-core-2)
913 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
914 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
916 ;; Bundler is yet another source of circular dependencies, so we must disable
917 ;; its test suite as well.
918 (define-public bundler
924 (uri (rubygems-uri "bundler" version))
927 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
928 (build-system ruby-build-system)
930 '(#:tests? #f)) ; avoid dependency cycles
931 (synopsis "Ruby gem bundler")
932 (description "Bundler automatically downloads and installs a list of gems
933 specified in a \"Gemfile\", as well as their dependencies.")
934 (home-page "https://bundler.io/")
935 (license license:expat)))
937 (define-public ruby-builder
939 (name "ruby-builder")
943 (uri (rubygems-uri "builder" version))
946 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
947 (build-system ruby-build-system)
950 (modify-phases %standard-phases
951 (add-after 'unpack 'do-not-use-rvm
953 (substitute* "rakelib/tags.rake"
954 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
956 (synopsis "Ruby library to create structured data")
957 (description "Builder provides a number of builder objects that make it
958 easy to create structured data. Currently the following builder objects are
959 supported: XML Markup and XML Events.")
960 (home-page "https://github.com/jimweirich/builder")
961 (license license:expat)))
963 (define-public ruby-bump
970 (uri (rubygems-uri "bump" version))
973 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
974 (build-system ruby-build-system)
976 '(;; No included tests
978 (synopsis "Tool for working with Rubygems")
980 "Bump provides commands to manage Rubygem versioning, updating to the
981 next patch version for example.")
982 (home-page "https://github.com/gregorym/bump")
983 (license license:expat)))
985 (define-public ruby-rjb
991 (uri (rubygems-uri "rjb" version))
994 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
995 (build-system ruby-build-system)
997 `(#:tests? #f ; no rakefile
999 (modify-phases %standard-phases
1000 (add-before 'build 'set-java-home
1001 (lambda* (#:key inputs #:allow-other-keys)
1002 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
1005 `(("jdk" ,icedtea "jdk")))
1006 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
1007 (description "RJB is a bridge program that connects Ruby and Java via the
1008 Java Native Interface.")
1009 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
1010 (license license:lgpl2.1+)))
1012 (define-public ruby-log4r
1019 (uri (rubygems-uri "log4r" version))
1022 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
1023 (build-system ruby-build-system)
1025 '(#:tests? #f)) ; no Rakefile in gem
1026 (synopsis "Flexible logging library for Ruby")
1027 (description "Comprehensive and flexible logging library written
1028 in Ruby for use in Ruby programs. It features a hierarchical logging
1029 system of any number of levels, custom level names, logger
1030 inheritance, multiple output destinations per log event, execution
1031 tracing, custom formatting, thread safteyness, XML and YAML
1032 configuration, and more.")
1033 (home-page "http://log4r.rubyforge.org/")
1034 (license license:bsd-3)))
1036 (define-public ruby-atoulme-antwrap
1038 (name "ruby-atoulme-antwrap")
1042 (uri (rubygems-uri "atoulme-Antwrap" version))
1045 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
1046 (build-system ruby-build-system)
1047 ;; Test data required for most of the tests are not included.
1048 (arguments `(#:tests? #f))
1050 `(("ruby-hoe" ,ruby-hoe)))
1052 `(("ruby-rjb" ,ruby-rjb)))
1053 (synopsis "Ruby wrapper for the Ant build tool")
1054 (description "Antwrap is a Ruby module that wraps the Apache Ant build
1055 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
1057 (home-page "http://rubyforge.org/projects/antwrap/")
1058 (license license:expat)))
1060 (define-public ruby-atoulme-saikuro
1062 (name "ruby-atoulme-saikuro")
1066 (uri (rubygems-uri "atoulme-Saikuro" version))
1069 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
1070 (build-system ruby-build-system)
1071 ;; FIXME: There are no unit tests. The tests are demonstrations of the
1073 (arguments `(#:tests? #f))
1074 (synopsis "Cyclomatic complexity analyzer")
1075 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
1076 given Ruby source code Saikuro will generate a report listing the cyclomatic
1077 complexity of each method found. In addition, Saikuro counts the number of
1078 lines per method and can generate a listing of the number of tokens on each
1080 (home-page "http://www.github.com/atoulme/Saikuro")
1081 ;; File headers contain the BSD-3 license and the README.rdoc says that
1082 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
1083 ;; of the Expat license.
1084 (license license:bsd-3)))
1086 (define-public ruby-pandoc-ruby
1088 (name "ruby-pandoc-ruby")
1092 (method git-fetch) ;the gem lacks many test files
1094 (url "https://github.com/xwmx/pandoc-ruby")
1096 (file-name (git-file-name name version))
1099 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1100 (build-system ruby-build-system)
1103 (modify-phases %standard-phases
1104 (add-after 'unpack 'disable-failing-tests
1105 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1106 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1108 (substitute* "test/test_conversions.rb"
1109 (("next if from == to.*" all)
1112 " next if ['plain', 'beamer'].include? to\n")))
1114 (add-after 'unpack 'patch-pandoc-path
1115 (lambda* (#:key inputs #:allow-other-keys)
1116 (let ((pandoc (string-append (assoc-ref inputs "ghc-pandoc")
1118 (substitute* "lib/pandoc-ruby.rb"
1119 (("@@pandoc_path = 'pandoc'")
1120 (format #f "@@pandoc_path = '~a'" pandoc)))
1121 (substitute* "test/test_pandoc_ruby.rb"
1122 (("('|\")pandoc" _ quote)
1123 (string-append quote pandoc))
1127 (add-after 'extract-gemspec 'remove-Gemfile.lock
1129 (delete-file "Gemfile.lock")
1130 (substitute* "pandoc-ruby.gemspec"
1131 (("Gemfile\\.lock") ""))
1134 `(("ruby-mocha" ,ruby-mocha)))
1136 `(("ghc-pandoc" ,ghc-pandoc)))
1137 (synopsis "Ruby wrapper for Pandoc")
1138 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1139 command line tools for converting one markup format to another. Pandoc can
1140 convert documents from a variety of formats including markdown,
1141 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1142 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1143 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1144 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1146 (home-page "https://github.com/xwmx/pandoc-ruby")
1147 (license license:expat)))
1149 (define-public ruby-slim
1156 (uri (rubygems-uri "slim" version))
1159 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1160 (build-system ruby-build-system)
1163 (modify-phases %standard-phases
1164 ;; See: https://github.com/slim-template/slim/issues/857 and
1165 ;; https://github.com/slim-template/slim/issues/858.
1166 (add-after 'unpack 'skip-broken-tests
1168 (substitute* "test/core/test_embedded_engines.rb"
1169 (("def test_render_with_markdown")
1170 "def skipped_test_render_with_markdown"))
1171 (substitute* "test/translator/test_translator.rb"
1172 (("raise (\"Missing test for.*)" _ tail)
1173 (string-append "print " tail)))
1175 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1176 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1177 (add-after 'unpack 'prevent-bundler-interference
1179 (substitute* "Rakefile"
1180 (("require 'bundler/setup'") "nil")
1181 (("Bundler::GemHelper\\.install_tasks") "nil"))
1184 `(("ruby-rack-test" ,ruby-rack-test)
1185 ("ruby-sinatra" ,ruby-sinatra)))
1187 `(("ruby-temple" ,ruby-temple)
1188 ("ruby-tilt" ,ruby-tilt)))
1189 (synopsis "Minimalist template language for Ruby")
1190 (description "Slim is a template language for Ruby that aims to reduce the
1191 syntax to the minimum while remaining clear.")
1192 (home-page "http://slim-lang.com/")
1193 (license license:expat)))
1195 (define-public ruby-asciidoctor
1197 (name "ruby-asciidoctor")
1201 (method git-fetch) ;the gem release lacks a Rakefile
1203 (url "https://github.com/asciidoctor/asciidoctor")
1204 (commit (string-append "v" version))))
1205 (file-name (git-file-name name version))
1208 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1209 (build-system ruby-build-system)
1211 `(#:test-target "test:all"
1213 (modify-phases %standard-phases
1214 (replace 'replace-git-ls-files
1216 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1217 ;; git ls-files output is merged in ruby-build-system.
1218 (substitute* "asciidoctor.gemspec"
1219 (("`git ls-files -z`")
1220 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1222 (add-after 'extract-gemspec 'strip-version-requirements
1224 (delete-file "Gemfile")
1225 (substitute* "asciidoctor.gemspec"
1226 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1227 (string-append stripped "\n")))
1230 `(("ruby-erubis" ,ruby-erubis)
1231 ("ruby-minitest" ,ruby-minitest)
1232 ("ruby-nokogiri" ,ruby-nokogiri)
1233 ("ruby-asciimath" ,ruby-asciimath)
1234 ("ruby-coderay" ,ruby-coderay)
1235 ("ruby-cucumber" ,ruby-cucumber)
1236 ("ruby-haml" ,ruby-haml)
1237 ("ruby-rouge" ,ruby-rouge)
1238 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1239 ("ruby-simplecov" ,ruby-simplecov)
1240 ("ruby-slim" ,ruby-slim)
1241 ("ruby-tilt" ,ruby-tilt)))
1242 (synopsis "Converter from AsciiDoc content to other formats")
1243 (description "Asciidoctor is a text processor and publishing toolchain for
1244 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1246 (home-page "https://asciidoctor.org")
1247 (license license:expat)))
1249 (define-public ruby-prawn-icon
1251 (name "ruby-prawn-icon")
1256 (uri (rubygems-uri "prawn-icon" version))
1259 "1ivkdf8rdf92hhy97vbmc2a4w97vcvqd58jcj4z9hz3hfsb1526w"))))
1260 (build-system ruby-build-system)
1262 `(#:test-target "spec"
1263 #:phases (modify-phases %standard-phases
1264 (add-after 'unpack 'remove-unnecessary-dependencies
1266 (substitute* '("Rakefile" "spec/spec_helper.rb")
1267 ((".*[Bb]undler.*") "")
1268 (("^require 'rubocop.*") "")
1269 (("^RuboCop.*") ""))
1272 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1273 ("ruby-pdf-reader" ,ruby-pdf-reader)
1274 ("ruby-rspec" ,ruby-rspec)
1275 ("ruby-simplecov" ,ruby-simplecov)))
1277 `(("ruby-prawn" ,ruby-prawn)))
1278 (synopsis "Icon fonts for use with the Prawn PDF toolkit")
1279 (description "@code{Prawn::Icon} provides various icon fonts including
1280 FontAwesome, PaymentFont and Foundation Icons for use with the Prawn PDF
1282 (home-page "https://github.com/jessedoyle/prawn-icon/")
1283 (license %prawn-project-licenses)))
1285 (define-public ruby-css-parser
1287 (name "ruby-css-parser")
1292 (uri (rubygems-uri "css_parser" version))
1295 "04c4dl8cm5rjr50k9qa6yl9r05fk9zcb1zxh0y0cdahxlsgcydfw"))))
1296 (build-system ruby-build-system)
1297 (arguments `(#:tests? #f)) ;gem doesn't ship with test suite
1299 `(("ruby-addressable" ,ruby-addressable)))
1300 (synopsis "Ruby Cascading Style Sheets (CSS) parser")
1301 (description "This package allows loading, parsing and cascading Cascading
1302 Style Sheets (CSS) rule sets in Ruby.")
1303 (home-page "https://github.com/premailer/css_parser")
1304 (license license:expat)))
1306 (define-public ruby-prawn-svg
1308 (name "ruby-prawn-svg")
1313 (uri (rubygems-uri "prawn-svg" version))
1316 "0df3l49cy3xpwi0b73hmi2ykbjg9kjwrvhk0k3z7qhh5ghmmrn77"))))
1317 (build-system ruby-build-system)
1319 `(#:phases (modify-phases %standard-phases
1320 (add-after 'unpack 'do-not-use-bundler
1322 (substitute* "spec/spec_helper.rb"
1323 ((".*[Bb]undler.*") ""))
1326 (lambda* (#:key tests? #:allow-other-keys)
1328 (invoke "rspec" "-Ilib" "-rprawn-svg"))
1331 `(("ruby-rspec" ,ruby-rspec)))
1333 `(("ruby-css-parser" ,ruby-css-parser)
1334 ("ruby-prawn" ,ruby-prawn)))
1335 (synopsis "SVG renderer for the Prawn PDF library")
1336 (description "This library allows rendering Scalable Vector Graphics (SVG)
1337 graphics directly into a Portable Document Format (PDF) document using the
1339 (home-page "https://github.com/mogest/prawn-svg")
1340 (license license:expat)))
1342 (define-public ruby-prawn-templates
1344 (name "ruby-prawn-templates")
1350 (url "https://github.com/prawnpdf/prawn-templates.git")
1352 (file-name (git-file-name name version))
1355 "0wll54wxxwixpwazfn4ffbqvqbfrl01cfsv8y11vnlzy7isx5xvl"))))
1356 (build-system ruby-build-system)
1358 `(#:phases (modify-phases %standard-phases
1359 (add-after 'unpack 'do-not-use-bundler
1361 (substitute* "spec/spec_helper.rb"
1362 ((".*[Bb]undler.*") ""))
1365 (lambda* (#:key tests? #:allow-other-keys)
1370 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
1371 ("ruby-rspec" ,ruby-rspec)))
1373 `(("ruby-pdf-reader" ,ruby-pdf-reader)
1374 ("ruby-prawn" ,ruby-prawn)))
1375 (synopsis "Prawn extension to include or combine PDF documents")
1376 (description "This @strong{unmaintained} package provides a Prawn
1377 extension that allows including other Portable Document Format (PDF) documents
1378 as background or combining several PDF documents into one. This functionality
1379 used to be part of Prawn itself, but was extracted from Prawn 0.15.0 because
1380 of its many longstanding issues.")
1381 (home-page "https://github.com/prawnpdf/prawn-templates")
1382 (license %prawn-project-licenses)))
1384 (define-public ruby-polyglot
1386 (name "ruby-polyglot")
1391 (uri (rubygems-uri "polyglot" version))
1394 "1bqnxwyip623d8pr29rg6m8r0hdg08fpr2yb74f46rn1wgsnxmjr"))))
1395 (build-system ruby-build-system)
1396 (arguments `(#:tests? #f)) ;no test suite
1397 (synopsis "Augment @code{require} to load non-Ruby file types")
1398 (description "The Polyglot library allows a Ruby module to register a
1399 loader for the file type associated with a filename extension, and it augments
1400 @code{require} to find and load matching files.")
1401 (home-page "https://github.com/cjheath/polyglot")
1402 (license license:expat)))
1404 (define-public ruby-treetop
1406 (name "ruby-treetop")
1410 (method git-fetch) ;no test suite in distributed gem
1412 (url "https://github.com/cjheath/treetop.git")
1413 (commit (string-append "v" version))))
1414 (file-name (git-file-name name version))
1417 "1dmk94z6ivhrz5hsq68vl5vgydhkz89n394rha1ymddw3rymbfcv"))))
1418 (build-system ruby-build-system)
1420 `(#:test-target "spec"
1422 (modify-phases %standard-phases
1423 (replace 'replace-git-ls-files
1425 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1426 ;; git ls-files output is merged in ruby-build-system.
1427 (substitute* "treetop.gemspec"
1428 (("`git ls-files -z`")
1429 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1432 `(("ruby-activesupport" ,ruby-activesupport)
1433 ("ruby-rr" ,ruby-rr)
1434 ("ruby-rspec" ,ruby-rspec)))
1436 `(("ruby-polyglot" ,ruby-polyglot)))
1437 (synopsis "Ruby-based parsing DSL based on parsing expression grammars")
1438 (description "This package provides a Ruby-based Parsing Expression
1439 Grammar (PEG) parser generator Domain Specific Language (DSL).")
1440 (home-page "https://github.com/cjheath/treetop")
1441 (license license:expat)))
1443 (define-public ruby-rubocop-performance
1445 (name "ruby-rubocop-performance")
1450 (uri (rubygems-uri "rubocop-performance" version))
1453 "04r8d4x62ygv17spvz9yyfxbmbf8qxwhijs0xycfvzr0q4pyg9sw"))))
1454 (build-system ruby-build-system)
1456 `(#:tests? #f)) ;no test suite in the distributed gem
1458 `(("ruby-rubocop" ,ruby-rubocop)))
1459 (synopsis "Performance optimizations checkers for Ruby code")
1460 (description "This package provides a collection of RuboCop cops to check
1461 for performance optimizations in Ruby code.")
1462 (home-page "https://docs.rubocop.org/rubocop-performance/")
1463 (license license:expat)))
1465 (define-public ruby-gimme
1466 (let ((revision "1")
1467 (commit "4e71f0236f1271871916dd403261d26533db34c0"))
1470 (version (git-version "0.5.0" revision commit))
1475 (url "https://github.com/searls/gimme.git")
1477 (file-name (git-file-name name version))
1480 "0hrd32ygvf3i7h47ak8f623cz8ns9q7g60nnnvvlnywbggjaz3h6"))))
1481 (build-system ruby-build-system)
1483 `(("ruby-coveralls" ,ruby-coveralls)
1484 ("ruby-cucumber" ,ruby-cucumber)
1485 ("ruby-pry" ,ruby-pry)
1486 ("ruby-simplecov" ,ruby-simplecov)
1487 ("ruby-rspec-given" ,ruby-rspec-given)))
1489 `(;; The cucumber task fails with error: "index 3 out of matches
1490 ;; (IndexError)", apparently due to our newer Cucumber version.
1491 ;; TODO: Try the "default" task with a future release.
1492 #:test-target "spec"
1494 (modify-phases %standard-phases
1495 (add-after 'extract-gemspec 'prepare-for-tests
1497 ;; Delete failing tests (possibly due to our newer rspec
1499 (delete-file "spec/gimme/gives_class_methods_spec.rb")
1500 (delete-file "spec/gimme/rspec_adapter_spec.rb")
1501 (delete-file "spec/gimme/verifies_class_methods_spec.rb")
1502 ;; Fix duplicate version requirements and de-register files.
1503 (delete-file "Gemfile")
1504 (delete-file "Gemfile.lock")
1505 (substitute* "gimme.gemspec"
1506 ((".*\"Gemfile\".*") "")
1507 ((".*\"Gemfile\\.lock\",.*") "")
1508 ((".*(rspec|cucumber).*\">= 0\".*") "")
1509 (("\"spec/gimme/gives_class_methods_spec.rb\",") "")
1510 (("\"spec/gimme/rspec_adapter_spec.rb\",") "")
1511 (("\"spec/gimme/verifies_class_methods_spec.rb\",") "")
1512 ;; All of these gems relate to development, and are
1513 ;; unnecessary when running the tests.
1514 ((".*(add|gem).*guard-.*") "")
1515 ((".*(add|gem).*jeweler.*") "")
1516 ((".*(add|gem).*pry.*") "")
1517 ((".*(add|gem).*growl.*") "")
1518 ((".*(add|gem).*rb-fsevent.*") ""))
1520 (synopsis "Lightweight test double library for Ruby")
1521 (description "Gimme is a very lightweight test double library for Ruby,
1522 based on Mockito (a mocking framework for Java). It is an opinionated (but
1523 not noisy) means to facilitate test-driving by enabling the authors to specify
1524 only what they care about.")
1525 (home-page "https://github.com/searls/gimme")
1526 (license license:expat))))
1528 (define-public ruby-standard
1530 (name "ruby-standard")
1534 (method git-fetch) ;no test suite in distributed gem
1536 (url "https://github.com/testdouble/standard.git")
1537 (commit (string-append "v" version))))
1538 (file-name (git-file-name name version))
1541 "0ylx0lm2pbbgr5h7fban592w96bl3wxmvfcpcdfrhkxnpg5kiwgv"))))
1542 (build-system ruby-build-system)
1544 ;; TODO: the tests are currently broken due to using a newer Rubocop.
1547 (modify-phases %standard-phases
1548 (add-after 'unpack 'relax-version-requiremens
1550 (delete-file "Gemfile")
1551 (delete-file "Gemfile.lock")
1553 (replace 'replace-git-ls-files
1555 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1556 ;; git ls-files output is merged in ruby-build-system.
1557 (substitute* "standard.gemspec"
1558 (("`git ls-files -z`")
1559 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1560 |sort -z|cut -zc3-`"))
1563 `(("ruby-gimme" ,ruby-gimme)
1564 ("ruby-pry" ,ruby-pry)
1565 ("ruby-simplecov" ,ruby-simplecov)))
1567 `(("ruby-rubocop" ,ruby-rubocop)
1568 ("ruby-rubocop-performance" ,ruby-rubocop-performance)))
1569 (synopsis "Ruby Style Guide, with linter & automatic code fixer")
1570 (description "Standard is a port of StandardJS. Like StandardJS, it aims
1571 to save time in the following ways:
1573 @item No configuration.
1574 @item Automatically format code.
1575 @item Catch style issues and programmer errors early.
1577 (home-page "https://github.com/testdouble/standard")
1578 (license license:expat)))
1580 (define-public ruby-chunky-png
1582 (name "ruby-chunky-png")
1588 (url "https://github.com/wvanbergen/chunky_png.git")
1589 (commit (string-append "v" version))))
1590 (file-name (git-file-name name version))
1593 "0hn8ap7iib47qkqdp0awmxgma11z0lmk1ca3lp7c97ykhv7ij1zs"))))
1594 (build-system ruby-build-system)
1596 `(#:test-target "spec"
1598 (modify-phases %standard-phases
1599 (add-after 'unpack 'disable-bundler
1601 (substitute* (find-files "." "\\.rb$")
1602 (("require.*bundler/setup.*") ""))
1604 (replace 'replace-git-ls-files
1606 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1607 ;; git ls-files output is merged in ruby-build-system.
1608 (substitute* "chunky_png.gemspec"
1610 "`find . -type f -not -regex '.*\\.gem$' |sort |cut -c3-`"))
1613 `(("bundler" ,bundler)
1614 ("ruby-rspec" ,ruby-rspec)
1615 ("ruby-standard" ,ruby-standard)
1616 ("ruby-yard" ,ruby-yard)))
1617 (synopsis "Ruby library to handle PNG images")
1618 (description "ChunkyPNG is a pure Ruby library that can read and write
1619 Portable Network Graphics (PNG) images without depending on an external image
1620 library. It tries to be memory efficient and reasonably fast. It has
1624 Decoding support for any image that the PNG standard allows. This includes all
1625 standard color modes, all bit depths, all transparency, and interlacing and
1628 Encoding support for images of all color modes (true color, grayscale, and
1629 indexed) and transparency for all these color modes. The best color mode is
1630 chosen automatically, based on the amount of used colors.
1631 @item Read/write access to the image's pixels.
1632 @item Read/write access to all image metadata that is stored in chunks.
1634 Memory efficiency: @code{fixnum} are used, i.e. 4 or 8 bytes of memory per
1635 pixel, depending on the hardware).
1637 Performance: ChunkyPNG is reasonably fast for Ruby standards, by only using
1638 integer math and a highly optimized saving routine.
1639 @item Interoperability with RMagick.
1641 (home-page "https://github.com/wvanbergen/chunky_png/wiki")
1642 (license license:expat)))
1644 (define-public ruby-text-hyphen
1646 (name "ruby-text-hyphen")
1651 (uri (rubygems-uri "text-hyphen" version))
1654 "1gj4awvs9ryf960m0iawg43jyjmfwcqgfwrbcfp890a57b9ag7q1"))))
1655 (build-system ruby-build-system)
1657 `(("ruby-hoe" ,ruby-hoe)))
1658 (synopsis "Ruby library to hyphenate words in various languages")
1659 (description "Text::Hyphen is a Ruby library to hyphenate words in various
1660 languages using Ruby-fied versions of TeX hyphenation patterns. It will
1661 properly hyphenate various words according to the rules of the language the
1662 word is written in. The algorithm is based on that of the TeX typesetting
1663 system by Donald E. Knuth.")
1664 (home-page "https://github.com/halostatue/text-hyphen")
1665 ;; The whole is licensed under the Expat license, but parts use various
1666 ;; versions of the LaTeX Project Public License.
1667 (license license:expat)))
1669 (define-public ruby-open-uri-cached
1671 (name "ruby-open-uri-cached")
1676 (uri (rubygems-uri "open-uri-cached" version))
1679 "13xy2vhrgz9mdxhklw5fszhamsdxh8ysf3l40g92hqm4hm288wap"))))
1680 (build-system ruby-build-system)
1682 `(#:tests? #f)) ;no test suite
1683 (synopsis "OpenURI with transparent disk caching")
1684 (description "OpenURI with transparent disk caching, which is
1685 useful to avoid making excessive queries, for example when scraping
1687 (home-page "https://github.com/tigris/open-uri-cached")
1688 (license license:expat)))
1690 (define-public ruby-asciidoctor-pdf
1691 ;; Use the latest commit, as the last tag doesn't build with the
1692 ;; latest Ruby dependencies in Guix.
1693 (let ((revision "1")
1694 (commit "d257440df895d1595a3825ef58b32e4b290ba1c3"))
1696 (name "ruby-asciidoctor-pdf")
1697 (version (git-version "1.5.3" revision commit))
1700 (method git-fetch) ;no test suite in the distributed gem
1702 (url "https://github.com/asciidoctor/asciidoctor-pdf.git")
1704 (file-name (git-file-name name version))
1707 "1563d11ghzsrsg4inwfwj6b9hb5sk5b429f49fwq5qg3sq76kgjj"))))
1708 (build-system ruby-build-system)
1710 `(#:test-target "spec"
1712 (modify-phases %standard-phases
1713 (add-after 'unpack 'remove-failing-tests
1714 ;; Two tests module fail for unknown reasons, *only* when
1715 ;; ran in the build container (see:
1716 ;; https://github.com/asciidoctor/asciidoctor-pdf/issues/1725#issuecomment-658777965).
1718 (delete-file "spec/audio_spec.rb")
1719 (delete-file "spec/video_spec.rb")
1721 (add-after 'extract-gemspec 'strip-version-requirements
1723 (substitute* "asciidoctor-pdf.gemspec"
1724 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1725 (string-append stripped "\n")))
1727 (replace 'replace-git-ls-files
1728 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1729 ;; git ls-files output is merged in ruby-build-system.
1731 (substitute* "asciidoctor-pdf.gemspec"
1732 (("`git ls-files -z`")
1733 "`find . -type f -not -regex '.*\\.gem$' -print0 \
1734 |sort -z|cut -zc3-`"))
1736 ;; The tests rely on the Gem being installed, so move the check phase
1737 ;; after the install phase.
1739 (add-after 'install 'check
1740 (lambda* (#:key outputs tests? #:allow-other-keys)
1741 (let ((new-gem (string-append (assoc-ref outputs "out")
1742 "/lib/ruby/vendor_ruby")))
1744 (string-append (getenv "GEM_PATH") ":" new-gem))
1746 (invoke "rspec" "-t" "~visual" "-t" "~cli" "-t" "~network"))
1749 `(("ruby-chunky-png" ,ruby-chunky-png)
1750 ("ruby-coderay" ,ruby-coderay)
1751 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
1752 ("ruby-rouge" ,ruby-rouge)
1753 ("ruby-rspec" ,ruby-rspec)))
1755 `(("ruby-asciidoctor" ,ruby-asciidoctor)
1756 ("ruby-concurrent-ruby" ,ruby-concurrent)
1757 ("ruby-open-uri-cached" ,ruby-open-uri-cached)
1758 ("ruby-prawn" ,ruby-prawn)
1759 ("ruby-prawn-icon" ,ruby-prawn-icon)
1760 ("ruby-prawn-svg" ,ruby-prawn-svg)
1761 ("ruby-prawn-table" ,ruby-prawn-table)
1762 ("ruby-prawn-templates" ,ruby-prawn-templates)
1763 ("ruby-safe-yaml" ,ruby-safe-yaml)
1764 ("ruby-text-hyphen" ,ruby-text-hyphen)
1765 ("ruby-thread-safe" ,ruby-thread-safe)
1766 ("ruby-treetop" ,ruby-treetop)
1767 ("ruby-ttfunk" ,ruby-ttfunk)))
1768 (synopsis"AsciiDoc to Portable Document Format (PDF)} converter")
1769 (description "Asciidoctor PDF is an extension for Asciidoctor that
1770 converts AsciiDoc documents to Portable Document Format (PDF) using the Prawn
1771 PDF library. It has features such as:
1773 @item Direct AsciiDoc to PDF conversion
1774 @item Configuration-driven theme (style and layout)
1775 @item Scalable Vector Graphics (SVG) support
1776 @item PDF document outline (i.e., bookmarks)
1777 @item Table of contents page(s)
1778 @item Document metadata (title, authors, subject, keywords, etc.)
1779 @item Internal cross reference links
1780 @item Syntax highlighting with Rouge, Pygments, or CodeRay
1781 @item Page numbering
1782 @item Customizable running content (header and footer)
1784 “Keep together” blocks (i.e., page breaks avoided in certain block content)
1785 @item Orphaned section titles avoided
1786 @item Autofit verbatim blocks (as permitted by base_font_size_min setting)
1787 @item Table border settings honored
1788 @item Font-based icons
1789 @item Custom TrueType (TTF) fonts
1790 @item Double-sided printing mode (margins alternate on recto and verso pages)
1792 (home-page "https://asciidoctor.org/docs/asciidoctor-pdf")
1793 (license license:expat))))
1795 (define-public ruby-ast
1801 (method git-fetch) ;no test included in gem from v2.4.1
1803 (url "https://github.com/whitequark/ast")
1804 (commit (string-append "v" version))))
1805 (file-name (git-file-name name version))
1808 "0k8vya256chimy473g818gim06m5rjgh6mz5sc5g8xz3csh3rysi"))))
1809 (build-system ruby-build-system)
1812 (modify-phases %standard-phases
1813 (add-after 'unpack 'remove-coveralls-requirement
1815 (substitute* "test/helper.rb"
1816 (("require 'coveralls'") "")
1817 (("Coveralls::SimpleCov::Formatter") ""))
1819 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1821 (substitute* "ast.gemspec"
1822 ((".*coveralls.*") "\n")
1823 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1824 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1825 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1828 `(("bundler" ,bundler)
1829 ("ruby-simplecov" ,ruby-simplecov)
1830 ("ruby-json-pure" ,ruby-json-pure)
1831 ("ruby-mime-times" ,ruby-mime-types)
1832 ("ruby-yard" ,ruby-yard)
1833 ("ruby-kramdown" ,ruby-kramdown)
1834 ("ruby-rest-client" ,ruby-rest-client)
1835 ("ruby-bacon" ,ruby-bacon)
1836 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1837 ("ruby-racc" ,ruby-racc)))
1838 (synopsis "Library for working with Abstract Syntax Trees")
1840 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1841 It does this through immutable data structures.")
1842 (home-page "https://whitequark.github.io/ast/")
1843 (license license:expat)))
1845 (define-public ruby-sporkmonger-rack-mount
1846 ;; Testing the addressable gem requires a newer commit than that released, so
1847 ;; use an up to date version.
1848 (let ((revision "1")
1849 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1851 (name "ruby-sporkmonger-rack-mount")
1852 (version (git-version "0.8.3" revision commit))
1856 (url "https://github.com/sporkmonger/rack-mount")
1858 (file-name (git-file-name name version))
1861 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1862 (build-system ruby-build-system)
1864 ;; Tests currently fail so disable them.
1865 ;; https://github.com/sporkmonger/rack-mount/pull/1
1867 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1868 (synopsis "Stackable dynamic tree based Rack router")
1870 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1871 continue trying routes if the response returns pass. This allows multiple
1872 routes to be nested or stacked on top of each other.")
1873 (home-page "https://github.com/sporkmonger/rack-mount")
1874 (license license:expat))))
1876 (define-public ruby-ci-reporter
1878 (name "ruby-ci-reporter")
1882 (uri (rubygems-uri "ci_reporter" version))
1885 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1886 (build-system ruby-build-system)
1888 `(#:test-target "rspec"))
1890 `(("ruby-builder" ,ruby-builder)))
1892 `(("bundler" ,bundler)
1893 ("ruby-rspec" ,ruby-rspec)))
1894 (synopsis "Generate XML reports of runs test")
1896 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1897 you to generate XML reports of your test runs. The resulting files can be
1898 read by a continuous integration system that understands Ant's JUnit report
1900 (home-page "https://github.com/nicksieger/ci_reporter")
1901 (license license:expat)))
1903 (define-public ruby-contracts
1905 (name "ruby-contracts")
1910 (uri (rubygems-uri "contracts" version))
1913 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1914 (build-system ruby-build-system)
1916 '(#:test-target "spec"
1918 (modify-phases %standard-phases
1919 ;; Don't run or require rubocop, the code linting tool, as this is a
1921 (add-after 'unpack 'dont-run-rubocop
1923 (substitute* "Rakefile"
1924 ((".*rubocop.*") "")
1925 ((".*RuboCop.*") ""))
1928 `(("ruby-rspec" ,ruby-rspec)))
1929 (synopsis "Method contracts for Ruby")
1931 "This library provides contracts for Ruby. A contract describes the
1932 correct inputs and output for a method, and will raise an error if a incorrect
1934 (home-page "https://github.com/egonSchiele/contracts.ruby")
1935 (license license:bsd-2)))
1937 (define-public ruby-crack
1944 (uri (rubygems-uri "crack" version))
1947 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1948 (build-system ruby-build-system)
1951 (modify-phases %standard-phases
1953 (lambda* (#:key tests? #:allow-other-keys)
1955 (for-each (lambda (file)
1956 (display file)(display "\n")
1957 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1958 (find-files "test" ".*rb$")))
1961 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1962 (synopsis "Simple JSON and XML parsing for Ruby")
1964 "@code{crack} provides really simple JSON and XML parsing, extracted from
1965 code in Merb and Rails.")
1966 (home-page "https://github.com/jnunemaker/crack")
1967 (license license:expat)))
1969 (define-public ruby-cliver
1971 (name "ruby-cliver")
1976 (uri (rubygems-uri "cliver" version))
1979 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1980 (build-system ruby-build-system)
1983 (modify-phases %standard-phases
1984 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1985 ;; would be nice, but the tests look to be incompatible:
1987 ;; NoMethodError: undefined method `last_comment'
1989 (lambda* (#:key tests? #:allow-other-keys)
1994 `(("bundler" ,bundler)
1995 ("ruby-rspec" ,ruby-rspec-2)))
1996 (synopsis "Assertions for command-line dependencies in Ruby")
1998 "@code{cliver} provides a way to detect missing command-line
1999 dependencies, including versions.")
2000 (home-page "https://github.com/yaauie/cliver")
2001 (license license:expat)))
2003 (define-public ruby-czmq-ffi-gen
2005 (name "ruby-czmq-ffi-gen")
2010 (uri (rubygems-uri "czmq-ffi-gen" version))
2013 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
2014 (build-system ruby-build-system)
2016 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
2018 (modify-phases %standard-phases
2019 (add-after 'unpack 'patch-lib_dirs
2020 (lambda* (#:key inputs #:allow-other-keys)
2021 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
2022 (("lib\\_dirs = \\[.*\\]")
2023 (string-append "lib_dirs = ['"
2024 (assoc-ref inputs "czmq") "/lib"
2026 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
2027 (("lib\\_dirs = \\[.*\\]")
2028 (string-append "lib_dirs = ['"
2029 (assoc-ref inputs "zeromq") "/lib"
2032 `(("zeromq" ,zeromq)
2034 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
2035 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
2037 "These Ruby bindings are not intended to be directly used, but rather
2038 used by higher level bindings like those provided by CZTop.")
2040 "https://github.com/paddor/czmq-ffi-gen")
2041 (license license:isc)))
2043 (define-public ruby-cztop
2050 (uri (rubygems-uri "cztop" version))
2053 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
2054 (build-system ruby-build-system)
2056 '(#:test-target "spec"
2058 (modify-phases %standard-phases
2059 (add-after 'unpack 'patch-lib_paths
2060 (lambda* (#:key inputs #:allow-other-keys)
2061 (substitute* "lib/cztop/poller/zmq.rb"
2062 (("lib\\_paths = \\[.*\\]")
2063 (string-append "lib_paths = ['"
2064 (assoc-ref inputs "zeromq") "/lib"
2067 `(("bundler" ,bundler)
2068 ("ruby-rspec" ,ruby-rspec)))
2070 `(("zeromq" ,zeromq)))
2072 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
2073 (synopsis "CZMQ Ruby bindings")
2075 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
2076 CZMQ. The focus of of CZTop is on being easy to use and providing first class
2077 support for security mechanisms.")
2078 (home-page "https://github.com/paddor/cztop")
2079 (license license:isc)))
2081 (define-public ruby-saikuro-treemap
2083 (name "ruby-saikuro-treemap")
2087 (uri (rubygems-uri "saikuro_treemap" version))
2090 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
2091 (build-system ruby-build-system)
2092 ;; Some of the tests fail because the generated JSON has keys in a
2093 ;; different order. This is a problem with the test suite rather than any
2094 ;; of the involved libraries.
2095 (arguments `(#:tests? #f))
2097 `(("ruby-json-pure" ,ruby-json-pure)
2098 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
2099 (synopsis "Generate complexity treemap based on saikuro analysis")
2101 "This gem generates a treemap showing the complexity of Ruby code on
2102 which it is run. It uses Saikuro under the covers to analyze Ruby code
2104 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
2105 (license license:expat)))
2107 (define-public ruby-oauth2
2109 (name "ruby-oauth2")
2114 (uri (rubygems-uri "oauth2" version))
2116 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
2117 (build-system ruby-build-system)
2119 '(#:tests? #f)) ; no included tests
2121 `(("ruby-faraday" ,ruby-faraday)
2122 ("ruby-jwt" ,ruby-jwt)
2123 ("ruby-multi-json" ,ruby-multi-json)
2124 ("ruby-multi-xml" ,ruby-multi-xml)
2125 ("ruby-rack" ,ruby-rack)))
2126 (synopsis "Ruby wrapper for the OAuth 2.0")
2128 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
2129 with a similar style to the original OAuth spec.")
2130 (home-page "https://github.com/oauth-xx/oauth2")
2131 (license license:expat)))
2133 (define-public ruby-omniauth
2135 (name "ruby-omniauth")
2140 (uri (rubygems-uri "omniauth" version))
2142 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
2143 (build-system ruby-build-system)
2145 '(#:tests? #f)) ; No included tests
2147 `(("ruby-hashie" ,ruby-hashie)
2148 ("ruby-rack" ,ruby-rack)))
2149 (synopsis "Generalized Rack framework for multiple-provider authentication")
2151 "This package provides a generalized Rack framework for multiple-provider
2153 (home-page "https://github.com/omniauth/omniauth")
2154 (license license:expat)))
2156 (define-public ruby-omniauth-oauth2
2158 (name "ruby-omniauth-oauth2")
2163 (uri (rubygems-uri "omniauth-oauth2" version))
2166 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
2167 (build-system ruby-build-system)
2170 (modify-phases %standard-phases
2171 (add-after 'unpack 'remove-unnecessary-dependencies
2173 ;; The coveralls gem submits coverage information to an online
2174 ;; service, and is unnecessary when running the tests
2175 (substitute* "Gemfile"
2176 ((".*coveralls\"") ""))
2177 (substitute* "spec/helper.rb"
2178 (("require \"coveralls\"") "")
2179 (("Coveralls::SimpleCov::Formatter") ""))
2182 `(("ruby-oauth2" ,ruby-oauth2)
2183 ("ruby-omniauth" ,ruby-omniauth)))
2185 `(("bundler" ,bundler)
2186 ("ruby-rspec" ,ruby-rspec)
2187 ("ruby-simplecov" ,ruby-simplecov)
2188 ("ruby-rack-test" ,ruby-rack-test)
2189 ("ruby-webmock" ,ruby-webmock-2)))
2190 (synopsis "Abstract OAuth2 strategy for OmniAuth")
2192 "This library provides a generic OAuth2 strategy for OmniAuth. It
2193 doesn't provide a way to gather user information, so should be used as a
2194 building block for authentication strategies.")
2195 (home-page "https://github.com/omniauth/omniauth-oauth2")
2196 (license license:expat)))
2198 (define-public ruby-open4
2205 (uri (rubygems-uri "open4" version))
2208 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
2209 (build-system ruby-build-system)
2212 (modify-phases %standard-phases
2213 (add-after 'unpack 'patch
2215 (substitute* "rakefile"
2216 ;; Update the Rakefile so it works
2217 (("-rubygems") "-rrubygems")
2218 (("Config") "RbConfig"))
2220 (add-before 'check 'set-LIB
2222 ;; This is used in the rakefile when running the tests
2223 (setenv "LIB" "open4")
2225 (synopsis "Open child processes from Ruby and manage them easily")
2227 "@code{Open4} is a Ruby library to run child processes and manage their
2229 (home-page "https://github.com/ahoward/open4")
2230 (license license:ruby)))
2232 (define-public ruby-options
2234 (name "ruby-options")
2239 (uri (rubygems-uri "options" version))
2242 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
2243 (build-system ruby-build-system)
2245 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
2247 (modify-phases %standard-phases
2248 (add-before 'check 'set-LIB
2250 ;; This is used in the Rakefile, and setting it avoids an issue
2251 ;; with running the tests.
2252 (setenv "LIB" "options")
2254 (synopsis "Ruby library to parse options from *args cleanly")
2256 "The @code{options} library helps with parsing keyword options in Ruby
2258 (home-page "https://github.com/ahoward/options")
2259 (license license:ruby)))
2261 (define-public ruby-erubi
2268 (uri (rubygems-uri "erubi" version))
2271 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
2272 (build-system ruby-build-system)
2273 (synopsis "ERB template engine for Ruby")
2275 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
2277 (home-page "https://github.com/jeremyevans/erubi")
2278 (license license:expat)))
2280 (define-public ruby-erubis
2282 (name "ruby-erubis")
2287 (uri (rubygems-uri "erubis" version))
2290 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
2291 (build-system ruby-build-system)
2293 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
2294 (synopsis "Implementation of embedded Ruby (eRuby)")
2296 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
2297 features such as multi-language support, auto escaping, auto trimming spaces
2298 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
2300 (home-page "http://www.kuwata-lab.com/erubis/")
2301 (license license:expat)))
2303 (define-public ruby-execjs
2305 (name "ruby-execjs")
2309 ;; fetch from github as the gem does not contain testing code
2312 (url "https://github.com/rails/execjs")
2313 (commit (string-append "v" version))))
2314 (file-name (git-file-name name version))
2317 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
2318 (build-system ruby-build-system)
2320 `(("bundler" ,bundler)
2321 ;; The test suite tests all the available backends. Currenly, this just
2322 ;; means the node backend.
2324 ;; PASSED: test:node
2325 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
2326 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
2328 (synopsis "Run JavaScript code from Ruby")
2330 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
2331 runtime to evaluate your JavaScript program, then returns the result to you as
2333 (home-page "https://github.com/rails/execjs")
2334 (license license:expat)))
2336 (define-public ruby-fakefs
2338 (name "ruby-fakefs")
2340 (home-page "https://github.com/fakefs/fakefs")
2342 ;; The Rubygems release does not contain tests.
2346 (commit (string-append "v" version))))
2347 (file-name (git-file-name name version))
2350 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
2351 (build-system ruby-build-system)
2353 '(#:phases (modify-phases %standard-phases
2354 (replace 'replace-git-ls-files
2356 (substitute* "fakefs.gemspec"
2357 (("`git ls-files lib README.md LICENSE`")
2358 "`find lib README.md LICENSE -type f | sort`"))
2360 (add-before 'check 'remove-version-constraints
2362 ;; Drop hard version requirements for test dependencies.
2363 (substitute* "fakefs.gemspec"
2364 (("(.*add_development_dependency .*), .*" _ dep)
2365 (string-append dep "\n")))
2368 `(("ruby-bump" ,ruby-bump)
2369 ("ruby-maxitest" ,ruby-maxitest)
2370 ("ruby-rubocop" ,ruby-rubocop)
2371 ("ruby-rspec" ,ruby-rspec)))
2372 (synopsis "Fake file system for Ruby")
2374 "This package provides a fake file system for use in test suites. It
2375 avoids the need for manually creating temporary directories, or dealing
2376 with platform intricacies in @code{File} and @code{FileUtils}.")
2377 (license license:expat)))
2379 (define-public ruby-orderedhash
2381 (name "ruby-orderedhash")
2385 (uri (rubygems-uri "orderedhash" version))
2388 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
2389 (build-system ruby-build-system)
2391 '(#:tests? #f)) ; no test suite
2392 (synopsis "Ruby library providing an order-preserving hash")
2393 (description "Orderedhash is a Ruby library providing a hash
2394 implementation that preserves the order of items and features some array-like
2396 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
2397 (license license:public-domain)))
2399 (define-public ruby-libxml
2401 (name "ruby-libxml")
2406 (uri (rubygems-uri "libxml-ruby" version))
2409 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
2410 (build-system ruby-build-system)
2413 ("libxml2" ,libxml2)))
2415 '(#:tests? #f ; test suite hangs for unknown reason
2418 (string-append "--with-xml2-include="
2419 (assoc-ref %build-inputs "libxml2")
2420 "/include/libxml2" ))))
2421 (synopsis "Ruby bindings for GNOME Libxml2")
2422 (description "The Libxml-Ruby project provides Ruby language bindings for
2423 the GNOME Libxml2 XML toolkit.")
2424 (home-page "https://xml4r.github.com/libxml-ruby")
2425 (license license:expat)))
2427 (define-public ruby-lino
2434 (uri (rubygems-uri "lino" version))
2437 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
2438 (build-system ruby-build-system)
2440 '(#:tests? #f)) ; No included tests
2442 `(("ruby-hamster" ,ruby-hamster)
2443 ("ruby-open4" ,ruby-open4)))
2444 (synopsis "Build and execute commands in Ruby")
2446 "@code{Lino} provides an interface to run external commands. It provides
2447 an interface to add options as well as managing the standard input, output and
2449 (home-page "https://github.com/tobyclemson/lino")
2450 (license license:expat)))
2452 (define-public ruby-xml-simple
2454 (name "ruby-xml-simple")
2458 (uri (rubygems-uri "xml-simple" version))
2461 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
2462 (build-system ruby-build-system)
2464 '(#:tests? #f)) ; no test suite
2465 (synopsis "Simple Ruby library for XML processing")
2466 (description "This library provides a simple API for XML processing in
2468 (home-page "https://github.com/maik/xml-simple")
2469 (license license:ruby)))
2471 (define-public ruby-thor
2476 ;; Pull from git because the gem has no tests.
2479 (url "https://github.com/erikhuda/thor")
2480 (commit (string-append "v" version))))
2481 (file-name (git-file-name name version))
2484 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
2485 (build-system ruby-build-system)
2487 '(#:phases (modify-phases %standard-phases
2488 (add-after 'unpack 'fix-readline-tests
2490 ;; Ensure Readline is initialized before running the
2491 ;; test to avoid a type clash with the mock ::Readline.
2492 ;; See <https://github.com/erikhuda/thor/pull/717>.
2493 (substitute* "spec/line_editor/readline_spec.rb"
2494 (("unless defined\\? ::Readline" all)
2495 (string-append "Thor::LineEditor::Readline.available?\n"
2498 (add-after 'unpack 'remove-coveralls-dependency
2500 ;; Do not hook the test suite into the online
2501 ;; coveralls service.
2502 (substitute* "Gemfile"
2503 ((".*coveralls.*") ""))
2504 (substitute* "spec/helper.rb"
2505 (("require \"coveralls\"") "")
2506 (("Coveralls::SimpleCov::Formatter") "")
2507 ;; Also drop the WebMock dependency which is only
2508 ;; present to allow a coveralls.io connection, and
2509 ;; would otherwise introduce a circular dependency.
2510 (("require \"webmock/rspec\"") "")
2511 (("WebMock\\.disable_net_connect.*") ""))
2513 (add-after 'unpack 'disable-network-tests
2515 ;; These tests attempt to look up example.com.
2516 (substitute* "spec/actions/file_manipulation_spec.rb"
2517 (("it \"accepts (https?) remote sources" _ proto)
2518 (string-append "xit \"accepts " proto " remote sources")))
2520 (add-after 'unpack 'disable-quality-tests
2522 ;; These tests attempt to check the git repository for
2523 ;; tabs vs spaces, double vs single quotes, etc, and
2524 ;; depend on the git checkout.
2525 (delete-file "spec/quality_spec.rb")
2527 (add-before 'check 'make-files-writable
2529 ;; The tests needs rw access to the test suite.
2530 (for-each make-file-writable (find-files "spec"))
2534 (invoke "rspec" "spec"))))))
2536 `(("ruby-rspec" ,ruby-rspec)
2537 ("ruby-simplecov" ,ruby-simplecov)))
2538 (synopsis "Ruby toolkit for building command-line interfaces")
2539 (description "Thor is a toolkit for building powerful command-line
2541 (home-page "http://whatisthor.com/")
2542 (license license:expat)))
2544 (define-public ruby-lumberjack
2546 (name "ruby-lumberjack")
2550 (uri (rubygems-uri "lumberjack" version))
2553 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
2554 (build-system ruby-build-system)
2556 `(("ruby-rspec" ,ruby-rspec)
2557 ("ruby-timecop" ,ruby-timecop)))
2558 (synopsis "Logging utility library for Ruby")
2559 (description "Lumberjack is a simple logging utility that can be a drop in
2560 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
2561 for automatically rolling log files even with multiple processes writing the
2563 (home-page "https://github.com/bdurand/lumberjack")
2564 (license license:expat)))
2566 (define-public ruby-rbnacl
2568 (name "ruby-rbnacl")
2573 (uri (rubygems-uri "rbnacl" version))
2576 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
2577 (build-system ruby-build-system)
2580 (modify-phases %standard-phases
2581 (add-after 'unpack 'remove-unnecessary-dependencies
2583 ;; Coveralls relates to a network service, and Rubocop to code
2584 ;; linting and both are unnecessary to run the tests
2585 (substitute* "Gemfile"
2586 ((".*rubocop.*") "\n")
2587 ((".*guard-rspec.*") "\n")
2588 ((".*coveralls.*") "\n"))
2589 (substitute* "spec/spec_helper.rb"
2590 (("require \"coveralls\"") "")
2591 (("Coveralls.wear!") ""))
2593 (add-after 'unpack 'use-libsodium-from-store
2594 (lambda* (#:key inputs #:allow-other-keys)
2595 (substitute* '("lib/rbnacl/init.rb"
2596 "lib/rbnacl/sodium.rb")
2597 (("ffi_lib \\[.+\\]")
2598 (string-append "ffi_lib [\""
2599 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
2602 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
2604 (lambda* (#:key tests? #:allow-other-keys)
2609 `(("ruby-ffi" ,ruby-ffi)))
2611 `(("libsodium" ,libsodium)))
2613 `(("bundler" ,bundler)
2614 ("ruby-rspec" ,ruby-rspec)))
2615 (synopsis "Ruby FFI binding to libsodium")
2617 "This package provides Ruby FFI bindings to the Networking and
2618 Cryptography (NaCl) library, also known as libsodium. This provides a
2619 high-level toolkit for building cryptographic systems and protocols.")
2620 (home-page "https://github.com/crypto-rb/rbnacl")
2621 (license license:expat)))
2623 (define-public ruby-nenv
2629 (uri (rubygems-uri "nenv" version))
2632 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
2633 (build-system ruby-build-system)
2635 `(#:tests? #f)) ; no tests included
2637 `(("ruby-rspec" ,ruby-rspec)
2638 ("bundler" ,bundler)))
2639 (synopsis "Ruby interface for modifying the environment")
2640 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2641 and inspect the environment.")
2642 (home-page "https://github.com/e2/nenv")
2643 (license license:expat)))
2645 (define-public ruby-ptools
2647 (name "ruby-ptools")
2651 (uri (rubygems-uri "ptools" version))
2654 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2655 (build-system ruby-build-system)
2657 '(#:phases (modify-phases %standard-phases
2658 (add-after 'unpack 'patch-/bin/ls
2660 (substitute* "test/test_binary.rb"
2664 (add-before 'install 'create-gem
2666 ;; Do not attempt to sign the gem.
2667 (substitute* "Rakefile"
2668 (("spec\\.signing_key = .*")
2670 (invoke "rake" "gem:create"))))))
2671 (synopsis "Extra methods for Ruby's @code{File} class")
2673 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2674 class with many additional methods modelled after common POSIX tools, such as
2675 @code{File.which} for finding executables, @code{File.tail} to print the last
2676 lines of a file, @code{File.wc} to count words, and so on.")
2677 (home-page "https://github.com/djberg96/ptools")
2678 (license license:artistic2.0)))
2680 (define-public ruby-permutation
2682 (name "ruby-permutation")
2686 (uri (rubygems-uri "permutation" version))
2689 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2690 (build-system ruby-build-system)
2693 (modify-phases %standard-phases
2694 (add-after 'unpack 'fix-rakefile
2696 (substitute* "Rakefile"
2697 (("require 'rake/gempackagetask'")
2698 "require 'rubygems/package_task'")
2699 (("include Config") ""))
2703 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2704 (synopsis "Library to perform operations with sequence permutations")
2705 (description "This package provides a Ruby library to perform different
2706 operations with permutations of sequences, such as strings and arrays.")
2707 (home-page "https://flori.github.io/permutation")
2708 (license license:gpl2))) ; GPL 2 only
2710 (define-public ruby-shellany
2712 (name "ruby-shellany")
2716 (uri (rubygems-uri "shellany" version))
2719 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2720 (build-system ruby-build-system)
2722 `(#:test-target "default"
2724 (modify-phases %standard-phases
2725 (add-after 'unpack 'fix-version-test
2727 (substitute* "spec/shellany_spec.rb"
2728 (("^RSpec") "require \"shellany\"\nRSpec"))
2731 `(("ruby-rspec" ,ruby-rspec)
2732 ("ruby-nenv" ,ruby-nenv)
2733 ("bundler" ,bundler)))
2734 (synopsis "Capture command output")
2735 (description "Shellany is a Ruby library providing functions to capture
2736 the output produced by running shell commands.")
2737 (home-page "https://rubygems.org/gems/shellany")
2738 (license license:expat)))
2740 (define-public ruby-notiffany
2742 (name "ruby-notiffany")
2746 (uri (rubygems-uri "notiffany" version))
2749 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2750 (build-system ruby-build-system)
2751 ;; Tests are not included in the gem.
2752 (arguments `(#:tests? #f))
2754 `(("ruby-shellany" ,ruby-shellany)
2755 ("ruby-nenv" ,ruby-nenv)))
2757 `(("bundler" ,bundler)))
2758 (synopsis "Wrapper library for notification libraries")
2759 (description "Notiffany is a Ruby wrapper library for notification
2760 libraries such as Libnotify.")
2761 (home-page "https://github.com/guard/notiffany")
2762 (license license:expat)))
2764 (define-public ruby-forking-test-runner
2766 (name "ruby-forking-test-runner")
2768 (home-page "https://github.com/grosser/forking_test_runner")
2771 (uri (git-reference (url home-page)
2772 (commit (string-append "v" version))))
2773 (file-name (git-file-name name version))
2776 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2777 (build-system ruby-build-system)
2779 '(#:test-target "spec"
2780 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2781 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2783 #:phases (modify-phases %standard-phases
2784 (replace 'replace-git-ls-files
2786 (substitute* "forking_test_runner.gemspec"
2787 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2788 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2790 (add-before 'check 'remove-version-constraints
2792 ;; Ignore hard coded version constraints for the tests.
2793 (delete-file "Gemfile.lock")
2795 (add-before 'check 'set-HOME
2797 ;; Many tests invoke Bundler, and fails when Bundler
2798 ;; warns that /homeless-shelter does not exist.
2799 (setenv "HOME" "/tmp")
2802 `(("ruby-activerecord" ,ruby-activerecord)
2803 ("ruby-bump" ,ruby-bump)
2804 ("ruby-rspec" ,ruby-rspec)
2805 ("ruby-sqlite3" ,ruby-sqlite3)
2806 ("ruby-wwtd" ,ruby-wwtd)))
2808 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2809 (synopsis "Run every test in a fork")
2811 "This package is a wrapper around @code{parallel_tests} that runs every
2812 test in a fork to avoid pollution and get clean output per test.")
2813 (license license:expat)))
2815 (define-public ruby-formatador
2817 (name "ruby-formatador")
2821 (uri (rubygems-uri "formatador" version))
2824 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2825 (build-system ruby-build-system)
2826 ;; Circular dependency: Tests require ruby-shindo, which requires
2827 ;; ruby-formatador at runtime.
2828 (arguments `(#:tests? #f))
2829 (synopsis "Ruby library to format text on stdout")
2830 (description "Formatador is a Ruby library to format text printed to the
2831 standard output stream.")
2832 (home-page "https://github.com/geemus/formatador")
2833 (license license:expat)))
2835 (define-public ruby-fuubar
2837 (name "ruby-fuubar")
2841 ;; Fetch from the git repository, as the gem package doesn't include
2845 (url "https://github.com/thekompanee/fuubar")
2846 (commit (string-append "releases/v" version))))
2847 (file-name (git-file-name name version))
2850 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2851 (build-system ruby-build-system)
2853 '(;; TODO: Some tests fail, unsure why.
2854 ;; 21 examples, 7 failures
2857 (modify-phases %standard-phases
2858 (add-before 'build 'delete-certificate
2860 ;; Remove 's.cert_chain' as we do not build with a private key
2861 (substitute* "fuubar.gemspec"
2862 ((".*cert_chain.*") "")
2863 ((".*signing_key.*") ""))
2866 (lambda* (#:key tests? #:allow-other-keys)
2871 `(("bundler" ,bundler)))
2873 `(("ruby-rspec-core" ,ruby-rspec-core)
2874 ("ruby-progressbar" ,ruby-progressbar)))
2875 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2877 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2878 string of letters and dots as feedback. It also stops on the first test
2880 (home-page "https://github.com/thekompanee/fuubar")
2881 (license license:expat)))
2883 (define-public ruby-haml
2890 (uri (rubygems-uri "haml" version))
2893 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2894 (build-system ruby-build-system)
2896 '(#:tests? #f)) ; No included tests
2898 `(("ruby-tilt" ,ruby-tilt)
2899 ("ruby-temple" ,ruby-temple)))
2900 (synopsis "Haml is a Ruby library to generate HTML documents")
2902 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2903 HTML or XML that is designed to express the structure of documents using
2904 indentation rather than closing tags. It was originally envisioned as a
2905 plugin for Ruby on Rails, but it can function as a stand-alone templating
2907 (home-page "http://haml.info/")
2908 (license license:expat)))
2910 (define-public ruby-hamster
2912 (name "ruby-hamster")
2917 (uri (rubygems-uri "hamster" version))
2920 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2921 (build-system ruby-build-system)
2924 (modify-phases %standard-phases
2925 (add-after 'unpack 'remove-unnecessary-dependencies
2927 ;; pry is a debugging tool, and is unnecessary when running the
2929 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2930 (("require 'pry'") ""))
2931 (substitute* "spec/spec_helper.rb"
2932 (("require \"pry\"") "")
2933 ;; CodeClimate is an online service, and is unnecessary for
2934 ;; running the tests
2935 (("require \"codeclimate-test-reporter\"") "")
2936 (("CodeClimate.*\n") ""))
2938 ;; No Rakefile is included, so run rspec directly.
2940 (lambda* (#:key tests? #:allow-other-keys)
2945 `(("ruby-concurrent" ,ruby-concurrent)))
2947 `(("ruby-rspec" ,ruby-rspec)))
2948 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2950 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2951 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2952 immutable queue or stack).")
2953 (home-page "https://github.com/hamstergem/hamster")
2954 (license license:expat)))
2956 (define-public ruby-hashdiff
2958 (name "ruby-hashdiff")
2963 (uri (rubygems-uri "hashdiff" version))
2966 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2967 (build-system ruby-build-system)
2970 (modify-phases %standard-phases
2971 ;; Run tests directly via rspec to avoid Rake issue:
2972 ;; NoMethodError: undefined method `last_comment'
2974 (lambda* (#:key tests? #:allow-other-keys)
2979 `(("bundler" ,bundler)
2980 ("ruby-rspec" ,ruby-rspec-2)))
2981 (synopsis "HashDiff computes the smallest difference between two hashes")
2983 "HashDiff is a Ruby library to compute the smallest difference between
2985 (home-page "https://github.com/liufengyun/hashdiff")
2986 (license license:expat)))
2988 (define-public ruby-hydra
2990 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
2994 (version (git-version "0.0" revision commit))
2995 (home-page "https://github.com/hyphenation/hydra")
2998 (uri (git-reference (url home-page) (commit commit)))
2999 (file-name (git-file-name name version))
3002 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
3003 (build-system ruby-build-system)
3005 '(#:phases (modify-phases %standard-phases
3006 (add-after 'unpack 'make-files-writable
3008 (for-each make-file-writable (find-files "."))
3012 (invoke "rspec"))))))
3014 `(("ruby-rspec" ,ruby-rspec)))
3016 `(("ruby-byebug" ,ruby-byebug)))
3017 (synopsis "Ruby hyphenation patterns")
3019 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
3020 (license license:expat))))
3022 (define-public ruby-shindo
3024 (name "ruby-shindo")
3028 (uri (rubygems-uri "shindo" version))
3031 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
3032 (build-system ruby-build-system)
3034 `(#:test-target "shindo_tests"
3036 (modify-phases %standard-phases
3037 (add-after 'unpack 'fix-tests
3039 (substitute* "tests/tests_helper.rb"
3041 (substitute* "Rakefile"
3042 (("system \"shindo") "system \"./bin/shindo")
3043 ;; This test doesn't work, so we disable it.
3044 (("fail \"The build_error test should fail") "#")
3045 ((" -rubygems") ""))
3048 `(("ruby-formatador" ,ruby-formatador)))
3049 (synopsis "Simple depth first Ruby testing")
3050 (description "Shindo is a simple depth first testing library for Ruby.")
3051 (home-page "https://github.com/geemus/shindo")
3052 (license license:expat)))
3054 (define-public ruby-rubygems-tasks
3056 (name "ruby-rubygems-tasks")
3060 (uri (rubygems-uri "rubygems-tasks" version))
3063 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
3064 (build-system ruby-build-system)
3065 ;; Tests need Internet access.
3066 (arguments `(#:tests? #f))
3068 `(("ruby-rspec" ,ruby-rspec)
3069 ("ruby-yard" ,ruby-yard)))
3070 (synopsis "Rake tasks for managing and releasing Ruby Gems")
3071 (description "Rubygems-task provides Rake tasks for managing and releasing
3073 (home-page "https://github.com/postmodern/rubygems-tasks")
3074 (license license:expat)))
3076 (define-public ruby-rubyzip
3078 (name "ruby-rubyzip")
3083 (uri (rubygems-uri "rubyzip" version))
3086 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
3087 (build-system ruby-build-system)
3090 (modify-phases %standard-phases
3091 (add-before 'check 'patch-tests
3092 (lambda* (#:key inputs #:allow-other-keys)
3093 (substitute* "test/gentestfiles.rb"
3096 (assoc-ref inputs "zip") "/bin/zip")))
3097 (substitute* "test/input_stream_test.rb"
3098 (("/usr/bin/env ruby") (which "ruby")))
3101 `(("bundler" ,bundler)
3102 ("ruby-simplecov" ,ruby-simplecov)
3105 (synopsis "Ruby module is for reading and writing zip files")
3107 "The rubyzip module provides ways to read from and create zip files.")
3108 (home-page "https://github.com/rubyzip/rubyzip")
3109 (license license:bsd-2)))
3111 (define-public ruby-simplecov-html
3113 (name "ruby-simplecov-html")
3117 (uri (rubygems-uri "simplecov-html" version))
3120 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
3121 (build-system ruby-build-system)
3122 (arguments `(#:tests? #f)) ; there are no tests
3124 `(("bundler" ,bundler)))
3125 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
3126 (description "This package provides the default HTML formatter for
3127 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
3128 (home-page "https://github.com/colszowka/simplecov-html")
3129 (license license:expat)))
3131 (define-public ruby-simplecov
3133 (name "ruby-simplecov")
3137 (uri (rubygems-uri "simplecov" version))
3140 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
3141 (build-system ruby-build-system)
3142 ;; Simplecov depends on rubocop for code style checking at build time.
3143 ;; Rubocop needs simplecov at build time.
3144 (arguments `(#:tests? #f))
3146 `(("ruby-json" ,ruby-json)
3147 ("ruby-docile" ,ruby-docile)
3148 ("ruby-simplecov-html" ,ruby-simplecov-html)))
3150 `(("bundler" ,bundler)))
3151 (synopsis "Code coverage framework for Ruby")
3152 (description "SimpleCov is a code coverage framework for Ruby with a
3153 powerful configuration library and automatic merging of coverage across test
3155 (home-page "https://github.com/colszowka/simplecov")
3156 (license license:expat)))
3158 (define-public ruby-useragent
3160 (name "ruby-useragent")
3164 (uri (rubygems-uri "useragent" version))
3167 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
3168 (build-system ruby-build-system)
3170 '(#:tests? #f)) ; no test suite
3171 (synopsis "HTTP user agent parser for Ruby")
3172 (description "UserAgent is a Ruby library that parses and compares HTTP
3174 (home-page "https://github.com/gshutler/useragent")
3175 (license license:expat)))
3177 (define-public ruby-backports
3179 (name "ruby-backports")
3184 (uri (rubygems-uri "backports" version))
3187 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
3188 (build-system ruby-build-system)
3190 '(;; TODO: This should be default, but there is one test failure
3191 #:test-target "all_spec"))
3193 `(("ruby-mspec" ,ruby-mspec)
3194 ("ruby-activesupport" ,ruby-activesupport)))
3195 (synopsis "Backports of the features in newer Ruby versions")
3197 "Backports enables more compatibility across Ruby versions by providing
3198 backports of some features.")
3199 (home-page "https://github.com/marcandre/backports")
3200 (license license:expat)))
3202 (define-public ruby-bacon
3208 (uri (rubygems-uri "bacon" version))
3211 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
3212 (build-system ruby-build-system)
3213 (synopsis "Small RSpec clone")
3214 (description "Bacon is a small RSpec clone providing all essential
3216 (home-page "https://github.com/chneukirchen/bacon")
3217 (license license:expat)))
3219 (define-public ruby-bacon-bits
3221 (name "ruby-bacon-bits")
3226 (uri (rubygems-uri "bacon-bits" version))
3229 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
3230 (build-system ruby-build-system)
3234 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
3235 (synopsis "Extensions to Bacon, for disabling tests, before and after
3238 "This extends the bacon testing framework with useful extensions to
3239 disable tests, have before and after blocks that run once and more.")
3240 (home-page "https://github.com/cldwalker/bacon-bits")
3241 (license license:expat)))
3243 (define-public ruby-bacon-colored-output
3245 (name "ruby-bacon-colored-output")
3250 (uri (rubygems-uri "bacon-colored_output" version))
3253 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
3254 (build-system ruby-build-system)
3256 '(;; No included tests
3259 `(("ruby-bacon" ,ruby-bacon)))
3260 (synopsis "Colored output for Bacon test framework")
3262 "This package adds color through ANSI escape codes to Bacon test
3264 (home-page "https://github.com/whitequark/bacon-colored_output")
3265 (license license:expat)))
3267 (define-public ruby-connection-pool
3269 (name "ruby-connection-pool")
3273 (uri (rubygems-uri "connection_pool" version))
3276 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
3277 (build-system ruby-build-system)
3279 `(("bundler" ,bundler)))
3280 (synopsis "Generic connection pool for Ruby")
3281 (description "Connection_pool provides a generic connection pooling
3282 interface for Ruby programs.")
3283 (home-page "https://github.com/mperham/connection_pool")
3284 (license license:expat)))
3286 (define-public ruby-fast-gettext
3288 (name "ruby-fast-gettext")
3290 (home-page "https://github.com/grosser/fast_gettext")
3293 (uri (git-reference (url home-page)
3294 (commit (string-append "v" version))))
3295 (file-name (git-file-name name version))
3298 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
3299 (build-system ruby-build-system)
3301 '(#:test-target "spec"
3302 #:phases (modify-phases %standard-phases
3303 (add-before 'check 'remove-version-constraints
3305 (delete-file "Gemfile.lock")
3307 (add-before 'check 'remove-activerecord-test
3309 ;; FIXME: This test fails because ActiveRecord depends on
3310 ;; a different version of ruby-sqlite than the currently
3313 "spec/fast_gettext/translation_repository/db_spec.rb")
3315 (add-before 'check 'disable-i18n-test
3317 ;; XXX: This test checks i18n intricasies with Rails 3 and
3318 ;; automatically disables itself for Rails 4.0, but does
3319 ;; not know about newer versions as it has not been updated
3320 ;; since 2014. Disable for later versions of Rails too.
3321 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
3322 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
3323 "ActiveRecord::VERSION::MINOR == 0"))
3324 "ActiveRecord::VERSION::MAJOR >= 4"))
3328 ("ruby-activerecord" ,ruby-activerecord)
3329 ("ruby-activesupport" ,ruby-activesupport)
3330 ("ruby-bump" ,ruby-bump)
3331 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
3332 ("ruby-i18n" ,ruby-i18n)
3333 ("ruby-rubocop" ,ruby-rubocop)
3334 ("ruby-rspec" ,ruby-rspec)
3335 ("ruby-single-cov" ,ruby-single-cov)
3336 ("ruby-sqlite3" ,ruby-sqlite3)
3337 ("ruby-wwtd" ,ruby-wwtd)))
3338 (synopsis "Fast implementation of @code{GetText}")
3340 "This package provides an alternative implementation of the Ruby
3341 @code{GetText} library that is approximately 12x faster yet thread safe.")
3342 ;; Some parts are covered by the Ruby license, see file headers.
3343 (license (list license:expat license:ruby))))
3345 (define-public ruby-net-http-persistent
3347 (name "ruby-net-http-persistent")
3351 (uri (rubygems-uri "net-http-persistent" version))
3354 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
3355 (build-system ruby-build-system)
3357 `(("ruby-connection-pool" ,ruby-connection-pool)
3358 ("ruby-hoe" ,ruby-hoe)))
3359 (synopsis "Persistent HTTP connection manager")
3360 (description "Net::HTTP::Persistent manages persistent HTTP connections
3361 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
3362 (home-page "https://github.com/drbrain/net-http-persistent")
3363 (license license:expat)))
3365 (define-public ruby-power-assert
3367 (name "ruby-power-assert")
3371 (uri (rubygems-uri "power_assert" version))
3374 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
3375 (build-system ruby-build-system)
3377 '(#:tests? #f)) ; No included tests
3379 `(("bundler" ,bundler)))
3380 (synopsis "Assert library with descriptive assertion messages")
3381 (description "Power-assert is an assertion library providing descriptive
3382 assertion messages for tests.")
3383 (home-page "https://github.com/k-tsj/power_assert")
3384 (license (list license:bsd-2 license:ruby))))
3386 (define-public ruby-powerpack
3388 (name "ruby-powerpack")
3393 (uri (rubygems-uri "powerpack" version))
3396 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
3397 (build-system ruby-build-system)
3399 '(#:test-target "spec"))
3401 `(("bundler" ,bundler)
3402 ("ruby-rspec" ,ruby-rspec)
3403 ("ruby-yard" ,ruby-yard)))
3404 (synopsis "Useful extensions to core Ruby classes")
3406 "This package provides a few useful extensions to core Ruby classes,
3407 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
3409 (home-page "https://github.com/bbatsov/powerpack")
3410 (license license:expat)))
3412 (define-public ruby-locale
3414 (name "ruby-locale")
3418 (uri (rubygems-uri "locale" version))
3421 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
3422 (build-system ruby-build-system)
3423 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3424 ;; which needs ruby-gettext, which needs ruby-locale. To break the
3425 ;; dependency cycle we disable tests.
3426 (arguments `(#:tests? #f))
3428 `(("bundler" ,bundler)
3429 ("ruby-yard" ,ruby-yard)))
3430 (synopsis "Ruby library providing basic localization APIs")
3432 "Ruby-Locale is the pure ruby library which provides basic APIs for
3434 (home-page "https://github.com/ruby-gettext/locale")
3435 (license (list license:lgpl3+ license:ruby))))
3437 (define-public ruby-temple
3439 (name "ruby-temple")
3444 (uri (rubygems-uri "temple" version))
3447 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
3448 (build-system ruby-build-system)
3450 `(("ruby-tilt" ,ruby-tilt)
3451 ("ruby-bacon" ,ruby-bacon)
3452 ("ruby-erubis" ,ruby-erubis)))
3453 (synopsis "Template compilation framework in Ruby")
3455 "Temple is an abstraction and framework for compiling templates to pure
3457 (home-page "https://github.com/judofyr/temple")
3458 (license license:expat)))
3460 (define-public ruby-text
3466 (uri (rubygems-uri "text" version))
3469 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
3470 (build-system ruby-build-system)
3471 (synopsis "Collection of text algorithms for Ruby")
3473 "This package provides a collection of text algorithms: Levenshtein,
3474 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
3475 (home-page "https://github.com/threedaymonk/text")
3476 (license license:expat)))
3478 (define-public ruby-gettext
3480 (name "ruby-gettext")
3484 (uri (rubygems-uri "gettext" version))
3487 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
3488 (build-system ruby-build-system)
3489 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
3490 ;; which needs ruby-gettext. To break the dependency cycle we disable
3492 (arguments `(#:tests? #f))
3494 `(("ruby-locale" ,ruby-locale)
3495 ("ruby-text" ,ruby-text)))
3497 `(("bundler" ,bundler)
3498 ("ruby-yard" ,ruby-yard)))
3499 (synopsis "GNU gettext-like program for Ruby")
3501 "Gettext is a GNU gettext-like program for Ruby. The catalog
3502 file (po-file) used is the same as that used by GNU gettext, allowing you to
3503 use GNU gettext tools for maintenance.")
3504 (home-page "https://ruby-gettext.github.com/")
3505 (license (list license:lgpl3+ license:ruby))))
3507 (define-public ruby-packnga
3509 (name "ruby-packnga")
3513 (uri (rubygems-uri "packnga" version))
3516 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
3517 (build-system ruby-build-system)
3518 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
3519 ;; To break the dependency cycle we disable tests.
3520 (arguments `(#:tests? #f))
3522 `(("ruby-gettext" ,ruby-gettext)
3523 ("ruby-yard" ,ruby-yard)))
3525 `(("bundler" ,bundler)))
3526 (synopsis "Utility library to package internationalized libraries")
3528 "Packnga is a library to translate to many languages using YARD.")
3529 (home-page "http://ranguba.org/packnga/")
3530 (license license:lgpl2.0+)))
3532 (define-public ruby-test-construct
3534 (name "ruby-test-construct")
3539 (uri (rubygems-uri "test_construct" version))
3542 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
3543 (build-system ruby-build-system)
3545 `(("bundler" ,bundler)
3546 ("ruby-mocha" ,ruby-mocha)
3547 ("ruby-rspec" ,ruby-rspec)))
3548 (synopsis "Creates temporary files and directories for testing")
3550 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
3551 temporary files and directories during tests.")
3552 (home-page "https://github.com/bhb/test_construct")
3553 (license license:expat)))
3555 (define-public ruby-test-unit
3557 (name "ruby-test-unit")
3561 (uri (rubygems-uri "test-unit" version))
3564 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
3565 (build-system ruby-build-system)
3567 `(("ruby-power-assert" ,ruby-power-assert)))
3569 `(("bundler" ,bundler)
3570 ("ruby-packnga" ,ruby-packnga)
3571 ("ruby-yard" ,ruby-yard)))
3572 (synopsis "Unit testing framework for Ruby")
3573 (description "@code{Test::Unit} is unit testing framework for Ruby, based
3574 on xUnit principles. These were originally designed by Kent Beck, creator of
3575 extreme programming software development methodology, for Smalltalk's SUnit.
3576 It allows writing tests, checking results and automated testing in Ruby.")
3577 (home-page "https://test-unit.github.io/")
3578 (license (list license:psfl license:ruby))))
3580 (define-public ruby-markaby
3582 (name "ruby-markaby")
3587 (uri (rubygems-uri "markaby" version))
3590 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
3591 (build-system ruby-build-system)
3594 (modify-phases %standard-phases
3595 ;; Run rspec manually without using the Rakefile, as the versions of
3596 ;; Rake and RSpec 2 are incompatible:
3598 ;; NoMethodError: undefined method `last_comment'
3600 (lambda* (#:key tests? #:allow-other-keys)
3605 `(("ruby-builder" ,ruby-builder)))
3607 `(("bundler" ,bundler)
3608 ("ruby-rspec" ,ruby-rspec-2)))
3609 (synopsis "Write HTML pages in pure Ruby")
3611 "Markaby allows writing HTML packages in pure Ruby. This is similar to
3612 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
3613 mixture of HTML and additional ERB syntax.")
3614 (home-page "https://markaby.github.io/")
3615 (license license:expat)))
3617 (define-public ruby-maruku
3619 (name "ruby-maruku")
3624 (uri (rubygems-uri "maruku" version))
3627 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
3628 (build-system ruby-build-system)
3630 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
3633 (modify-phases %standard-phases
3635 (lambda* (#:key tests? #:allow-other-keys)
3640 `(("ruby-rspec" ,ruby-rspec)
3641 ("ruby-simplecov" ,ruby-simplecov)
3642 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3643 (synopsis "Markdown interpreter in Ruby")
3645 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3646 HTML, and PDF through LaTeX.")
3647 (home-page "https://github.com/bhollis/maruku")
3648 (license license:expat)))
3650 (define-public ruby-metaclass
3652 (name "ruby-metaclass")
3656 (uri (rubygems-uri "metaclass" version))
3659 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3660 (build-system ruby-build-system)
3663 (modify-phases %standard-phases
3664 (add-after 'unpack 'add-test-unit-to-search-path
3665 (lambda* (#:key inputs #:allow-other-keys)
3666 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3667 (substitute* "Rakefile"
3668 (("t\\.libs << \"test\"" line)
3669 (string-append line "; t.libs << \""
3670 test-unit "/lib/ruby/vendor_ruby"
3672 ,(package-version ruby-test-unit)
3676 `(("bundler" ,bundler)
3677 ("ruby-test-unit" ,ruby-test-unit)))
3678 (synopsis "Ruby library adding metaclass method to all objects")
3680 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3682 (home-page "https://github.com/floehopper/metaclass")
3683 (license license:expat)))
3685 (define-public ruby-mkmf-lite
3687 (name "ruby-mkmf-lite")
3691 (uri (rubygems-uri "mkmf-lite" version))
3694 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3695 (build-system ruby-build-system)
3697 `(("ruby-ptools" ,ruby-ptools)))
3698 (synopsis "Lightweight alternative to @code{mkmf}")
3700 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3701 for use as a library. It does not create packages, builds, or log files of
3702 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3703 to check for the presence of header files, constants, and so on.")
3704 (home-page "https://github.com/djberg96/mkmf-lite")
3705 (license license:asl2.0)))
3707 (define-public ruby-mspec
3714 (uri (rubygems-uri "mspec" version))
3717 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3718 (build-system ruby-build-system)
3720 '(;; TODO: 3 test failures
3721 ;; ./spec/mocks/mock_spec.rb:82
3722 ;; ./spec/utils/name_map_spec.rb:151
3723 ;; ./spec/utils/name_map_spec.rb:155
3726 (modify-phases %standard-phases
3727 (add-after 'extract-gemspec 'change-dependency-constraints
3729 (substitute* "mspec.gemspec"
3730 (("rake.*") "rake>)\n")
3731 (("rspec.*") "rspec>)\n"))
3734 (lambda* (#:key tests? #:allow-other-keys)
3736 (invoke "rspec" "spec"))
3739 `(("bundler" ,bundler)
3740 ("ruby-rake" ,ruby-rake)
3741 ("ruby-rspec" ,ruby-rspec)))
3742 (synopsis "MSpec is a specialized framework for RubySpec")
3744 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3745 for basic features. MSpec contains additional features that assist in writing
3746 specs for Ruby implementations in ruby/spec.")
3747 (home-page "http://rubyspec.org")
3748 (license license:expat)))
3750 (define-public ruby-mysql2
3752 (name "ruby-mysql2")
3758 (url "https://github.com/brianmario/mysql2")
3760 (file-name (git-file-name name version))
3763 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3764 (build-system ruby-build-system)
3766 '(;; TODO: Tests require a running MySQL/MariaDB service
3769 (modify-phases %standard-phases
3770 (replace 'replace-git-ls-files
3772 (substitute* "mysql2.gemspec"
3773 (("git ls-files .*`") "find . -type f |sort`"))
3775 (add-before 'install 'set-MAKEFLAGS
3776 (lambda* (#:key outputs #:allow-other-keys)
3780 "prefix=" (assoc-ref outputs "out")))
3782 ;; Move the 'check phase to after 'install, as then you can test
3783 ;; using the installed mysql2 gem in the store.
3785 (add-after 'install 'check
3786 (lambda* (#:key outputs tests? #:allow-other-keys)
3791 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3796 `(("mariadb" ,mariadb "lib")
3797 ("mariadb-dev" ,mariadb "dev")
3800 `(("ruby-rspec" ,ruby-rspec)
3801 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3802 (synopsis "MySQL library for Ruby, binding to libmysql")
3804 "This package provides a simple, fast MySQL library for Ruby, binding to
3806 (home-page "https://github.com/brianmario/mysql2")
3807 (license license:expat)))
3809 (define-public ruby-blankslate
3811 (name "ruby-blankslate")
3815 (uri (rubygems-uri "blankslate" version))
3818 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3819 (build-system ruby-build-system)
3822 (modify-phases %standard-phases
3824 (lambda _ (invoke "rspec" "spec/"))))))
3826 `(("bundler" ,bundler)
3827 ("ruby-rspec" ,ruby-rspec)))
3828 (synopsis "Abstract base class with no predefined methods")
3830 "BlankSlate provides an abstract base class with no predefined
3831 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3832 as a base class when writing classes that depend upon
3833 @code{method_missing} (e.g. dynamic proxies).")
3834 (home-page "https://github.com/masover/blankslate")
3835 (license license:expat)))
3837 (define-public ruby-bond
3844 (uri (rubygems-uri "bond" version))
3847 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3848 (build-system ruby-build-system)
3850 `(("ruby-bacon" ,ruby-bacon)
3851 ("ruby-bacon-bits" ,ruby-bacon-bits)
3852 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3853 (synopsis "Bond can provide custom autocompletion for arguments, methods
3856 "Bond can autocomplete argument(s) to methods, uniquely completing per
3857 module, per method and per argument. Bond provides a configuration system and
3858 a DSL for creating custom completions and completion rules. Bond can also
3859 load completions that ship with gems. Bond is able to offer more than irb's
3860 completion since it uses the full line of input when completing as opposed to
3861 irb's last-word approach.")
3862 (home-page "http://tagaholic.me/bond/")
3863 (license license:expat)))
3865 (define-public ruby-idn-ruby
3867 (name "ruby-idn-ruby")
3872 (uri (rubygems-uri "idn-ruby" version))
3875 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3876 (build-system ruby-build-system)
3879 (modify-phases %standard-phases
3881 (add-after 'install 'check
3882 (lambda* (#:key tests? outputs #:allow-other-keys)
3884 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3885 (name-and-version (basename gem-file ".gem")))
3889 (assoc-ref outputs "out")
3890 "/lib/ruby/vendor_ruby/gems/"
3893 (find-files "./test" ".*\\.rb"))))
3896 `(("libidn" ,libidn)))
3897 (synopsis "Ruby Bindings for the GNU LibIDN library")
3899 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3900 Stringprep, Punycode and IDNA specifications. These are used to encode and
3901 decode internationalized domain + names according to the IDNA2003
3904 Included are the most important parts of the Stringprep, Punycode and IDNA
3905 APIs like performing Stringprep processings, encoding to and decoding from
3906 Punycode strings and converting entire domain names to and from the ACE
3908 (home-page "https://github.com/deepfryed/idn-ruby")
3909 (license license:asl2.0)))
3911 (define-public ruby-instantiator
3913 (name "ruby-instantiator")
3917 (uri (rubygems-uri "instantiator" version))
3920 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3921 (build-system ruby-build-system)
3924 (modify-phases %standard-phases
3925 (add-after 'unpack 'add-test-unit-to-search-path
3926 (lambda* (#:key inputs #:allow-other-keys)
3927 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3928 (substitute* "Rakefile"
3929 (("t\\.libs << \"test\"" line)
3930 (string-append line "; t.libs << \""
3931 test-unit "/lib/ruby/vendor_ruby"
3933 ,(package-version ruby-test-unit)
3937 `(("ruby-blankslate" ,ruby-blankslate)))
3939 `(("bundler" ,bundler)
3940 ("ruby-test-unit" ,ruby-test-unit)))
3941 (synopsis "Instantiate an arbitrary Ruby class")
3943 "Instantiator lets you instantiate an arbitrary Ruby class without
3944 knowing anything about the constructor.")
3945 (home-page "https://github.com/floehopper/instantiator")
3946 (license license:expat)))
3948 (define-public ruby-introspection
3950 (name "ruby-introspection")
3954 (uri (rubygems-uri "introspection" version))
3957 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3958 (build-system ruby-build-system)
3961 (modify-phases %standard-phases
3962 (add-after 'unpack 'add-test-unit-to-search-path
3963 (lambda* (#:key inputs #:allow-other-keys)
3964 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3965 (substitute* "Rakefile"
3966 (("t\\.libs << \"test\"" line)
3967 (string-append line "; t.libs << \""
3968 test-unit "/lib/ruby/vendor_ruby"
3970 ,(package-version ruby-test-unit)
3974 `(("ruby-instantiator" ,ruby-instantiator)
3975 ("ruby-metaclass" ,ruby-metaclass)))
3977 `(("bundler" ,bundler)
3978 ("ruby-blankslate" ,ruby-blankslate)
3979 ("ruby-test-unit" ,ruby-test-unit)))
3980 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
3982 "Introspection provides tools to inspect the hierarchy of method
3983 definitions on a Ruby object.")
3984 (home-page "https://github.com/floehopper/introspection")
3985 (license license:expat)))
3987 (define-public ruby-redcarpet
3989 (name "ruby-redcarpet")
3993 (uri (rubygems-uri "redcarpet" version))
3996 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
3997 (build-system ruby-build-system)
4000 (modify-phases %standard-phases
4001 ;; The gem archive does not include the conformance tests.
4002 (add-after 'unpack 'disable-conformance-tests
4004 (substitute* "Rakefile"
4005 (("task :test => %w\\[test:unit test:conformance\\]")
4006 "task :test => %w[test:unit]"))
4009 `(("bundler" ,bundler)
4010 ("ruby-test-unit" ,ruby-test-unit)
4011 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4012 (synopsis "Extensible Markdown to (X)HTML converter")
4014 "Redcarpet is an extensible Ruby library for Markdown processing and
4015 conversion to (X)HTML.")
4016 (home-page "https://github.com/vmg/redcarpet")
4017 (license license:expat)))
4019 (define-public ruby-rerun
4026 (uri (rubygems-uri "rerun" version))
4029 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
4030 (build-system ruby-build-system)
4032 '(#:tests? #f)) ; No included tests
4034 `(("ruby-listen" ,ruby-listen)))
4035 (synopsis "Run a process, and restart when some monitored files change")
4037 "Rerun is a tool to launch programs, then monitor the file system, and
4038 restart the program when any of the monitored files change. It's written in
4039 Ruby, but can be used for all programs.")
4040 (home-page "https://github.com/alexch/rerun/")
4041 (license license:expat)))
4043 (define-public ruby-maxitest
4045 (name "ruby-maxitest")
4047 (home-page "https://github.com/grosser/maxitest")
4049 ;; Pull from git because the gem does not contain tests.
4053 (commit (string-append "v" version))))
4054 (file-name (git-file-name name version))
4057 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
4058 (build-system ruby-build-system)
4060 '(#:test-target "default"
4061 #:phases (modify-phases %standard-phases
4062 (replace 'replace-git-ls-files
4064 (substitute* "maxitest.gemspec"
4065 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
4066 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
4068 (add-before 'check 'remove-version-constraints
4070 ;; Don't use specific versions of dependencies, instead
4071 ;; take whatever is available in Guix.
4072 (delete-file "Gemfile.lock")
4074 (add-before 'check 'add-mtest-on-PATH
4076 ;; Tests use 'mtest' which is not automatically added on
4078 (setenv "PATH" (string-append (getcwd) "/bin:"
4083 ("ruby-bump" ,ruby-bump)
4084 ("ruby-byebug" ,ruby-byebug)
4085 ("ruby-rspec" ,ruby-rspec)
4086 ("ruby-wwtd" ,ruby-wwtd)))
4088 `(("ruby-minitest" ,ruby-minitest)))
4089 (synopsis "Minitest with extra features")
4091 "Maxitest is a wrapper around Minitest with extra functionality such
4092 as timeouts, an @command{mtest} executable that can run tests by line
4093 number, support for interrupted tests, better backtraces, and more.")
4094 (license license:expat)))
4096 (define-public ruby-mocha
4102 (uri (rubygems-uri "mocha" version))
4105 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
4106 (build-system ruby-build-system)
4109 (modify-phases %standard-phases
4110 (add-before 'check 'remove-rubocop-dependency
4112 ;; Disable dependency on Rubocop, which is just a linter,
4113 ;; and would introduce a circular dependency.
4114 (substitute* "mocha.gemspec"
4119 `(("ruby-introspection" ,ruby-introspection)))
4120 (synopsis "Mocking and stubbing library for Ruby")
4122 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
4123 allows mocking and stubbing of methods on real (non-mock) classes.")
4124 (home-page "http://gofreerange.com/mocha/docs")
4125 ;; Mocha can be used with either license at the users choice.
4126 (license (list license:expat license:ruby))))
4128 (define-public ruby-mocha-on-bacon
4130 (name "ruby-mocha-on-bacon")
4135 (uri (rubygems-uri "mocha-on-bacon" version))
4138 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
4139 (build-system ruby-build-system)
4141 ;; rubygems.org release missing tests
4143 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
4144 (synopsis "Mocha adapter for Bacon")
4146 "This package provides a Mocha adapter for Bacon, allowing you to use the
4147 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
4149 "https://github.com/alloy/mocha-on-bacon")
4150 (license license:expat)))
4152 (define-public ruby-net-ssh
4154 (name "ruby-net-ssh")
4158 (uri (rubygems-uri "net-ssh" version))
4161 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
4162 (build-system ruby-build-system)
4164 `(("bundler" ,bundler)
4165 ("ruby-mocha" ,ruby-mocha)
4166 ("ruby-test-unit" ,ruby-test-unit)))
4167 (synopsis "Ruby implementation of the SSH2 client protocol")
4168 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
4169 client protocol. It allows you to write programs that invoke and interact
4170 with processes on remote servers, via SSH2.")
4171 (home-page "https://github.com/net-ssh/net-ssh")
4172 (license license:expat)))
4174 (define-public ruby-net-scp
4176 (name "ruby-net-scp")
4177 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
4178 (version "1.2.2.rc2")
4183 (url "https://github.com/net-ssh/net-scp")
4184 (commit (string-append "v" version))))
4185 (file-name (git-file-name name version))
4187 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
4188 (build-system ruby-build-system)
4190 `(("bundler" ,bundler)
4191 ("ruby-test-unit" ,ruby-test-unit)
4192 ("ruby-mocha" ,ruby-mocha)))
4194 `(("ruby-net-ssh" ,ruby-net-ssh)))
4195 (synopsis "Pure-Ruby SCP client library")
4196 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
4198 (home-page "https://github.com/net-ssh/net-scp")
4199 (license license:expat)))
4201 (define-public ruby-minitest
4203 (name "ruby-minitest")
4207 (uri (rubygems-uri "minitest" version))
4210 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
4211 (build-system ruby-build-system)
4213 `(("ruby-hoe" ,ruby-hoe)))
4214 (synopsis "Small test suite library for Ruby")
4215 (description "Minitest provides a complete suite of Ruby testing
4216 facilities supporting TDD, BDD, mocking, and benchmarking.")
4217 (home-page "https://github.com/seattlerb/minitest")
4218 (license license:expat)))
4220 ;; This is the last release of Minitest 4, which is used by some packages.
4221 (define-public ruby-minitest-4
4222 (package (inherit ruby-minitest)
4226 (uri (rubygems-uri "minitest" version))
4229 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
4232 (modify-phases %standard-phases
4233 (add-after 'unpack 'remove-unsupported-method
4235 (substitute* "Rakefile"
4236 (("self\\.rubyforge_name = .*") ""))
4238 (add-after 'build 'exclude-failing-tests
4240 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
4242 (delete-file "test/minitest/test_minitest_spec.rb")
4245 (define-public ruby-minitest-around
4247 (name "ruby-minitest-around")
4252 (uri (rubygems-uri "minitest-around" version))
4255 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
4256 (build-system ruby-build-system)
4259 (modify-phases %standard-phases
4260 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
4262 (substitute* "minitest-around.gemspec"
4263 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
4266 `(("ruby-minitest" ,ruby-minitest)))
4268 `(("bundler" ,bundler)
4269 ("ruby-cucumber" ,ruby-cucumber)
4270 ("ruby-bump" ,ruby-bump)
4271 ("ruby-test-construct" ,ruby-test-construct)))
4272 (synopsis "Run code around tests in Minitest")
4274 "This library provides a way to run code around tests in Minitest,
4275 written using either the unit test or spec style.")
4276 (home-page "https://github.com/splattael/minitest-around")
4277 (license license:expat)))
4279 (define-public ruby-minitest-sprint
4281 (name "ruby-minitest-sprint")
4285 (uri (rubygems-uri "minitest-sprint" version))
4288 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
4289 (build-system ruby-build-system)
4291 `(("ruby-hoe" ,ruby-hoe)
4292 ("ruby-minitest" ,ruby-minitest)))
4293 (synopsis "Fast test suite runner for minitest")
4294 (description "Minitest-sprint is a test runner for minitest that makes it
4295 easier to re-run individual failing tests.")
4296 (home-page "https://github.com/seattlerb/minitest-sprint")
4297 (license license:expat)))
4299 (define-public ruby-minitest-bacon
4301 (name "ruby-minitest-bacon")
4305 (uri (rubygems-uri "minitest-bacon" version))
4308 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
4309 (build-system ruby-build-system)
4311 `(("ruby-hoe" ,ruby-hoe)))
4313 `(("ruby-minitest" ,ruby-minitest)))
4314 (synopsis "Bacon compatibility library for minitest")
4315 (description "Minitest-bacon extends minitest with bacon-like
4316 functionality, making it easier to migrate test suites from bacon to minitest.")
4317 (home-page "https://github.com/seattlerb/minitest-bacon")
4318 (license license:expat)))
4320 (define-public ruby-minitest-focus
4322 (name "ruby-minitest-focus")
4327 (uri (rubygems-uri "minitest-focus" version))
4330 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
4331 (build-system ruby-build-system)
4333 `(("ruby-minitest" ,ruby-minitest)))
4335 `(("ruby-hoe" ,ruby-hoe)))
4336 (synopsis "Allows a few specific tests to be focused on")
4338 "@code{minitest-focus} gives the ability focus on a few tests with ease
4339 without having to use command-line arguments. It introduces a @code{focus}
4340 class method for use in testing classes, specifying that the next defined test
4342 (home-page "https://github.com/seattlerb/minitest-focus")
4343 (license license:expat)))
4345 (define-public ruby-minitest-pretty-diff
4346 ;; Use git reference because gem is out of date and does not contain testing
4347 ;; script. There are no releases on GitHub.
4348 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
4350 (name "ruby-minitest-pretty-diff")
4351 (version (string-append "0.1-1." (string-take commit 8)))
4355 (url "https://github.com/adammck/minitest-pretty_diff")
4357 (file-name (string-append name "-" version "-checkout"))
4360 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
4361 (build-system ruby-build-system)
4364 (modify-phases %standard-phases
4367 (invoke "script/test"))))))
4369 `(("bundler" ,bundler)
4370 ("ruby-turn" ,ruby-turn)))
4371 (synopsis "Pretty-print hashes and arrays in MiniTest")
4373 "@code{minitest-pretty_diff} monkey-patches
4374 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
4375 diffing them. This makes it easier to spot differences between nested
4376 structures when tests fail.")
4377 (home-page "https://github.com/adammck/minitest-pretty_diff")
4378 (license license:expat))))
4380 (define-public ruby-minitest-moar
4382 (name "ruby-minitest-moar")
4387 (uri (rubygems-uri "minitest-moar" version))
4390 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
4391 (build-system ruby-build-system)
4394 (modify-phases %standard-phases
4395 (add-before 'check 'clean-dependencies
4397 ;; Remove all gems defined in the Gemfile because these are not
4399 (substitute* "Gemfile"
4401 ;; Remove byebug as not needed to run tests.
4402 (substitute* "test/test_helper.rb"
4403 (("require 'byebug'") ""))
4406 `(("bundler" ,bundler)
4407 ("ruby-minitest" ,ruby-minitest)))
4408 (synopsis "Extra features and changes to MiniTest")
4409 (description "@code{MiniTest Moar} add some additional features and
4410 changes some default behaviours in MiniTest. For instance, Moar replaces the
4411 MiniTest @code{Object#stub} with a global @code{stub} method.")
4412 (home-page "https://github.com/dockyard/minitest-moar")
4413 (license license:expat)))
4415 (define-public ruby-minitest-bonus-assertions
4417 (name "ruby-minitest-bonus-assertions")
4422 (uri (rubygems-uri "minitest-bonus-assertions" version))
4425 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
4426 (build-system ruby-build-system)
4429 (modify-phases %standard-phases
4430 (add-before 'check 'clean-dependencies
4432 ;; Remove unneeded require statement that would entail another
4434 (substitute* "test/minitest_config.rb"
4435 (("require 'minitest/bisect'") ""))
4438 `(("ruby-hoe" ,ruby-hoe)
4439 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
4440 ("ruby-minitest-focus" ,ruby-minitest-focus)
4441 ("ruby-minitest-moar" ,ruby-minitest-moar)))
4442 (synopsis "Bonus assertions for @code{Minitest}")
4444 "Minitest bonus assertions provides extra MiniTest assertions. For
4445 instance, it provides @code{assert_true}, @code{assert_false} and
4446 @code{assert_set_equal}.")
4447 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
4448 (license license:expat)))
4450 (define-public ruby-minitest-reporters
4452 (name "ruby-minitest-reporters")
4457 (uri (rubygems-uri "minitest-reporters" version))
4460 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
4461 (build-system ruby-build-system)
4464 (modify-phases %standard-phases
4465 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
4466 ;; including it as an input can lead to circular dependencies.
4467 (add-after 'unpack 'remove-rubocop-from-Rakefile
4469 (substitute* "Rakefile"
4470 (("require 'rubocop/rake\\_task'") "")
4471 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
4473 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
4475 (substitute* "minitest-reporters.gemspec"
4476 ((".*%q<rubocop>.*") "\n"))
4479 `(("ruby-ansi" ,ruby-ansi)
4480 ("ruby-builder" ,ruby-builder)
4481 ("ruby-minitest" ,ruby-minitest)
4482 ("ruby-progressbar" ,ruby-progressbar)))
4484 `(("bundler" ,bundler)
4485 ("ruby-maruku" ,ruby-maruku)))
4486 (synopsis "Enhanced reporting for Minitest tests")
4488 "@code{minitest/reporters} provides a custom Minitest runner to improve
4489 how the test state is reported. A number of different reporters are
4490 available, including a spec reporter, progress bar reporter, a HTML
4492 (home-page "https://github.com/kern/minitest-reporters")
4493 (license license:expat)))
4495 (define-public ruby-minitest-rg
4497 (name "ruby-minitest-rg")
4502 (uri (rubygems-uri "minitest-rg" version))
4505 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
4506 (build-system ruby-build-system)
4508 ;; Some tests fail even outside Guix, so disable tests.
4509 ;; https://github.com/blowmage/minitest-rg/issues/12
4510 ;; https://github.com/blowmage/minitest-rg/pull/13
4513 `(("ruby-minitest" ,ruby-minitest)))
4514 (synopsis "Coloured output for Minitest")
4516 "@code{minitest-rg} changes the colour of the output from Minitest.")
4517 (home-page "https://blowmage.com/minitest-rg/")
4518 (license license:expat)))
4520 (define-public ruby-minitest-hooks
4522 (name "ruby-minitest-hooks")
4527 (uri (rubygems-uri "minitest-hooks" version))
4530 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
4531 (build-system ruby-build-system)
4533 '(#:test-target "spec"))
4535 `(("ruby-sequel" ,ruby-sequel)
4536 ("ruby-sqlite3" ,ruby-sqlite3)))
4537 (synopsis "Hooks for the minitest framework")
4539 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
4540 @code{around_all} hooks for Minitest. This allows, for instance, running each
4541 suite of specs inside a database transaction, running each spec inside its own
4542 savepoint inside that transaction. This can significantly speed up testing
4543 for specs that share expensive database setup code.")
4544 (home-page "https://github.com/jeremyevans/minitest-hooks")
4545 (license license:expat)))
4547 (define-public ruby-daemons
4549 (name "ruby-daemons")
4553 (uri (rubygems-uri "daemons" version))
4556 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
4557 (build-system ruby-build-system)
4559 `(#:tests? #f)) ; no test suite
4560 (synopsis "Daemonize Ruby programs")
4561 (description "Daemons provides a way to wrap existing Ruby scripts to be
4562 run as a daemon and to be controlled by simple start/stop/restart commands.")
4563 (home-page "https://github.com/thuehlinger/daemons")
4564 (license license:expat)))
4566 (define-public ruby-data_uri
4568 (name "ruby-data_uri")
4573 (uri (rubygems-uri "data_uri" version))
4576 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
4577 (build-system ruby-build-system)
4578 (synopsis "URI class for parsing data URIs")
4580 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
4581 embedded inside a URI. The URI::Data class provides support for parsing these
4582 URIs using the normal URI.parse method.")
4583 (home-page "https://github.com/dball/data_uri")
4584 (license license:expat)))
4586 (define-public ruby-deep-merge
4588 (name "ruby-deep-merge")
4590 (home-page "https://github.com/danielsdeleo/deep_merge")
4591 ;; The Rubygem source does not contain the gemspec required for tests.
4594 (uri (git-reference (url home-page) (commit version)))
4595 (file-name (git-file-name name version))
4598 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
4599 (build-system ruby-build-system)
4601 `(("ruby-minitest" ,ruby-minitest)))
4602 (synopsis "Recursively merge hashes")
4604 "Deep Merge is a set of utility functions for @code{Hash}. It permits
4605 you to merge elements inside a hash together recursively.")
4606 (license license:expat)))
4608 (define-public ruby-git
4614 (uri (rubygems-uri "git" version))
4617 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
4618 (build-system ruby-build-system)
4620 `(#:tests? #f ; no tests
4621 #:phases (modify-phases %standard-phases
4622 (add-after 'install 'patch-git-binary
4623 (lambda* (#:key inputs outputs #:allow-other-keys)
4624 ;; Make the default git binary an absolute path to the
4626 (let ((git (string-append (assoc-ref inputs "git")
4628 (config (string-append
4629 (assoc-ref outputs "out")
4630 "/lib/ruby/vendor_ruby/gems/git-"
4631 ,version "/lib/git/config.rb")))
4632 (substitute* (list config)
4634 (string-append "'" git "'")))
4638 (synopsis "Ruby wrappers for Git")
4639 (description "Ruby/Git is a Ruby library that can be used to create, read
4640 and manipulate Git repositories by wrapping system calls to the git binary.")
4641 (home-page "https://github.com/schacon/ruby-git")
4642 (license license:expat)))
4644 (define-public ruby-hocon
4648 (home-page "https://github.com/puppetlabs/ruby-hocon")
4651 (uri (git-reference (url home-page) (commit version)))
4652 (file-name (git-file-name name version))
4655 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4656 (build-system ruby-build-system)
4658 '(#:phases (modify-phases %standard-phases
4660 (lambda* (#:key tests? #:allow-other-keys)
4663 (format #t "test suite not run~%"))
4666 `(("bundler" ,bundler)
4667 ("ruby-rspec" ,ruby-rspec)))
4668 (synopsis "HOCON config library")
4670 "This package provides Ruby support for the @acronym{HOCON,
4671 Human-Optimized Config Object Notation} configuration file format. It
4672 supports parsing and modifying HOCON and JSON files, and rendering parsed
4673 objects back to a @code{String}.")
4674 (license license:asl2.0)))
4676 (define-public ruby-slop
4682 (uri (rubygems-uri "slop" version))
4685 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4686 (build-system ruby-build-system)
4688 `(("ruby-minitest" ,ruby-minitest)))
4689 (synopsis "Ruby command line option parser")
4690 (description "Slop provides a Ruby domain specific language for gathering
4691 options and parsing command line flags.")
4692 (home-page "https://github.com/leejarvis/slop")
4693 (license license:expat)))
4695 (define-public ruby-slop-3
4696 (package (inherit ruby-slop)
4700 (uri (rubygems-uri "slop" version))
4703 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4705 (define-public ruby-multi-xml
4707 (name "ruby-multi-xml")
4712 (uri (rubygems-uri "multi_xml" version))
4715 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4716 (build-system ruby-build-system)
4718 '(#:tests? #f)) ; No included tests
4719 (synopsis "Swappable XML backends for Ruby")
4721 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4722 Nokogiri, Ox, or REXML.")
4723 (home-page "https://github.com/sferik/multi_xml")
4724 (license license:expat)))
4726 (define-public ruby-multipart-post
4728 (name "ruby-multipart-post")
4732 (uri (rubygems-uri "multipart-post" version))
4735 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4736 (build-system ruby-build-system)
4738 `(("bundler" ,bundler)))
4739 (synopsis "Multipart POST library for Ruby")
4740 (description "Multipart-Post Adds multipart POST capability to Ruby's
4742 (home-page "https://github.com/nicksieger/multipart-post")
4743 (license license:expat)))
4745 (define-public ruby-multi-json
4747 (name "ruby-multi-json")
4752 ;; Tests are not distributed at rubygems.org so download from GitHub
4755 (url "https://github.com/intridea/multi_json")
4756 (commit (string-append "v" version))))
4757 (file-name (git-file-name name version))
4760 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4761 (build-system ruby-build-system)
4764 (modify-phases %standard-phases
4765 (add-after 'unpack 'remove-signing-key-reference
4767 (substitute* "multi_json.gemspec"
4768 ((".*spec.signing_key.*") ""))
4771 `(("bundler" ,bundler)
4772 ("ruby-rspec" ,ruby-rspec)
4773 ("ruby-yard" ,ruby-yard)
4774 ("ruby-json-pure" ,ruby-json-pure)
4775 ("ruby-oj" ,ruby-oj)
4776 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4777 (synopsis "Common interface to multiple JSON libraries for Ruby")
4779 "This package provides a common interface to multiple JSON libraries,
4780 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4781 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4782 (home-page "https://github.com/intridea/multi_json")
4783 (license license:expat)))
4785 (define-public ruby-multi-test
4787 (name "ruby-multi-test")
4792 (uri (rubygems-uri "multi_test" version))
4795 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4796 (build-system ruby-build-system)
4798 '(;; Tests require different sets of specific gem versions to be available,
4799 ;; and there is no gemfile that specifies the newest versions of
4800 ;; dependencies to be tested.
4803 "Interface to testing libraries loaded into a running Ruby process")
4805 "@code{multi_test} provides a uniform interface onto whatever testing
4806 libraries that have been loaded into a running Ruby process to help control
4807 rogue test/unit/autorun requires.")
4808 (home-page "https://github.com/cucumber/multi_test")
4809 (license license:expat)))
4811 (define-public ruby-arel
4817 (uri (rubygems-uri "arel" version))
4820 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4821 (build-system ruby-build-system)
4822 (arguments '(#:tests? #f)) ; no tests
4823 (home-page "https://github.com/rails/arel")
4824 (synopsis "SQL AST manager for Ruby")
4825 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4826 Ruby. It simplifies the generation of complex SQL queries and adapts to
4827 various relational database implementations.")
4828 (license license:expat)))
4830 (define-public ruby-marcel
4832 (name "ruby-marcel")
4837 (uri (rubygems-uri "marcel" version))
4840 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4841 (build-system ruby-build-system)
4843 '(;; No included tests
4846 `(("ruby-mimemagic" ,ruby-mimemagic)))
4847 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4849 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4850 Extensions} type detection using magic numbers, filenames, and extensions")
4851 (home-page "https://github.com/basecamp/marcel")
4852 (license license:expat)))
4854 (define-public ruby-minitar
4855 ;; We package from the GitHub source to fix the security issue reported at
4856 ;; https://github.com/halostatue/minitar/issues/16.
4857 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4859 (name "ruby-minitar")
4860 (version (string-append "0.5.4-1." (string-take commit 8)))
4865 (url "https://github.com/halostatue/minitar")
4867 (file-name (string-append name "-" version "-checkout"))
4870 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4871 (build-system ruby-build-system)
4873 '(#:tests? #f)) ; missing a gemspec
4874 (synopsis "Ruby library and utility for handling tar archives")
4876 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4877 that provides the ability to deal with POSIX tar archive files.")
4878 (home-page "http://www.github.com/atoulme/minitar")
4879 (license (list license:gpl2+ license:ruby)))))
4881 (define-public ruby-mini-portile
4883 (name "ruby-mini-portile")
4888 (uri (rubygems-uri "mini_portile" version))
4891 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4892 (build-system ruby-build-system)
4894 '(#:tests? #f)) ; tests require network access
4895 (synopsis "Ports system for Ruby developers")
4896 (description "Mini-portile is a port/recipe system for Ruby developers.
4897 It provides a standard way to compile against specific versions of libraries
4898 to reproduce user environments.")
4899 (home-page "https://github.com/flavorjones/mini_portile")
4900 (license license:expat)))
4902 (define-public ruby-mini-portile-2
4903 (package (inherit ruby-mini-portile)
4907 (uri (rubygems-uri "mini_portile2" version))
4910 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4912 (define-public ruby-nokogiri
4914 (name "ruby-nokogiri")
4918 (uri (rubygems-uri "nokogiri" version))
4921 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4922 (build-system ruby-build-system)
4924 ;; Tests fail because Nokogiri can only test with an installed extension,
4925 ;; and also because many test framework dependencies are missing.
4927 #:gem-flags (list "--" "--use-system-libraries"
4928 (string-append "--with-xml2-include="
4929 (assoc-ref %build-inputs "libxml2")
4930 "/include/libxml2" ))
4932 (modify-phases %standard-phases
4933 (add-before 'build 'patch-extconf
4934 ;; 'pkg-config' is not included in the GEM_PATH during
4935 ;; installation, so we add it directly to the load path.
4936 (lambda* (#:key inputs #:allow-other-keys)
4937 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4938 (substitute* "ext/nokogiri/extconf.rb"
4939 (("gem 'pkg-config'.*")
4940 (string-append "$:.unshift '"
4941 pkg-config "/lib/ruby/vendor_ruby"
4943 ,(package-version ruby-pkg-config)
4947 `(("ruby-hoe" ,ruby-hoe)))
4950 ("libxml2" ,libxml2)
4951 ("libxslt" ,libxslt)))
4953 `(("ruby-mini-portile" ,ruby-mini-portile-2)
4954 ("ruby-pkg-config" ,ruby-pkg-config)))
4955 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
4956 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
4957 both CSS3 selector and XPath 1.0 support.")
4958 (home-page "http://www.nokogiri.org/")
4959 (license license:expat)))
4961 (define-public ruby-method-source
4963 (name "ruby-method-source")
4968 (uri (rubygems-uri "method_source" version))
4971 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
4972 (build-system ruby-build-system)
4974 `(#:test-target "spec"))
4976 `(("ruby-rspec" ,ruby-rspec)
4978 (synopsis "Retrieve the source code for Ruby methods")
4979 (description "Method_source retrieves the source code for Ruby methods.
4980 Additionally, it can extract source code from Proc and Lambda objects or just
4982 (home-page "https://github.com/banister/method_source")
4983 (license license:expat)))
4985 (define-public ruby-coderay
4987 (name "ruby-coderay")
4992 (uri (rubygems-uri "coderay" version))
4995 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
4996 (build-system ruby-build-system)
4998 '(#:tests? #f)) ; missing test files
4999 (synopsis "Ruby syntax highlighting library")
5000 (description "Coderay is a Ruby library that provides syntax highlighting
5001 for select languages.")
5002 (home-page "http://coderay.rubychan.de")
5003 (license license:expat)))
5005 (define-public ruby-cuke-modeler
5007 (name "ruby-cuke-modeler")
5012 (uri (rubygems-uri "cuke_modeler" version))
5015 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
5016 (build-system ruby-build-system)
5017 (arguments `(#:tests? #f)) ;no test suite in gem
5019 `(("ruby-gherkin" ,ruby-gherkin)))
5020 (synopsis "Gherkin test suite analysis tool")
5021 (description "CukeModeler facilitates modeling a test suite that is
5022 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
5023 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
5024 the @code{cucumber-gherkin} generates when parsing features, as well as
5025 providing models for feature files and directories in order to be able to have
5026 a fully traversable model tree of a test suite's structure. These models can
5027 then be analyzed or manipulated more easily than the underlying AST layer.")
5028 (home-page "https://github.com/enkessler/cuke_modeler")
5029 (license license:expat)))
5031 (define-public ruby-parallel-tests
5033 (name "ruby-parallel-tests")
5035 (home-page "https://github.com/grosser/parallel_tests")
5040 (commit (string-append "v" version))))
5041 (file-name (string-append name version))
5044 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
5045 (build-system ruby-build-system)
5047 '(#:test-target "default"
5048 #:phases (modify-phases %standard-phases
5049 (add-after 'patch-source-shebangs 'patch-shell-invokations
5051 (substitute* '("lib/parallel_tests/tasks.rb"
5052 "spec/parallel_tests/tasks_spec.rb")
5053 (("/bin/sh") (which "sh"))
5054 (("/bin/bash") (which "bash")))
5056 (add-before 'check 'remove-version-constraints
5058 ;; Remove hard coded version constraints, instead just
5059 ;; use whatever versions are available in Guix.
5060 (delete-file "Gemfile.lock")
5061 (substitute* "Gemfile"
5067 (add-before 'check 'disable-rails-test
5069 ;; XXX: This test attempts to download and run the test
5070 ;; suites of multiple Rails versions(!) directly.
5071 (delete-file "spec/rails_spec.rb")
5073 (add-before 'check 'set-HOME
5075 ;; Some tests check the output of Bundler, and fail when
5076 ;; Bundler warns that /homeless-shelter does not exist.
5077 (setenv "HOME" "/tmp")
5080 `(("ruby-bump" ,ruby-bump)
5081 ("ruby-cucumber" ,ruby-cucumber)
5082 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
5083 ("ruby-minitest" ,ruby-minitest)
5084 ("ruby-rake" ,ruby-rake)
5085 ("ruby-rspec" ,ruby-rspec)
5086 ("ruby-spinach" ,ruby-spinach)))
5088 `(("ruby-parallel" ,ruby-parallel)))
5089 (synopsis "Run tests in parallel")
5091 "This package can speed up @code{Test::Unit}, @code{RSpec},
5092 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
5093 across multiple CPU cores.")
5094 (license license:expat)))
5096 (define-public ruby-parser
5098 (name "ruby-parser")
5103 (uri (rubygems-uri "parser" version))
5106 "1030znhvhkfn39svwbj6qn4xb6hgl94gnvg57k4d3r76f9bryqmn"))))
5107 (build-system ruby-build-system)
5109 `(("bundler" ,bundler)
5110 ("ruby-cliver" ,ruby-cliver)
5111 ("ruby-simplecov" ,ruby-simplecov)
5112 ("ruby-racc" ,ruby-racc)))
5114 `(("ragel" ,ragel)))
5116 `(("ruby-ast" ,ruby-ast)))
5117 (synopsis "Ruby parser written in pure Ruby")
5119 "This package provides a Ruby parser written in pure Ruby.")
5120 (home-page "https://github.com/whitequark/parser")
5121 (license license:expat)))
5123 (define-public ruby-sexp-processor
5125 (name "ruby-sexp-processor")
5130 (uri (rubygems-uri "sexp_processor" version))
5133 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
5134 (build-system ruby-build-system)
5136 ;; TODO: Add ruby-minitest-proveit once available.
5137 `(("hoe" ,ruby-hoe)))
5138 (synopsis "ParseTree fork which includes generic S-exp processing tools")
5139 (description "The sexp_processor package is derived from ParseTree, but
5140 contrary to ParseTree, it includes all the generic S-exp processing tools.
5141 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
5142 @code{Environment}")
5143 (home-page "https://github.com/seattlerb/sexp_processor")
5144 (license license:expat)))
5146 (define-public ruby-ruby-parser
5148 (name "ruby-ruby-parser")
5153 (uri (rubygems-uri "ruby_parser" version))
5156 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
5157 (build-system ruby-build-system)
5161 ("unifdef" ,unifdef)))
5163 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
5164 (home-page "https://github.com/seattlerb/ruby_parser/")
5165 (synopsis "Ruby parser written in pure Ruby")
5166 (description "The ruby_parser (RP) package provides a Ruby parser written
5167 in pure Ruby. It outputs S-expressions which can be manipulated and converted
5168 back to Ruby via the @code{ruby2ruby} library.")
5169 (license license:expat)))
5171 (define-public ruby-prawn-manual-builder
5173 (name "ruby-prawn-manual-builder")
5178 (uri (rubygems-uri "prawn-manual_builder" version))
5180 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
5181 (build-system ruby-build-system)
5183 '(#:tests? #f ; no included tests
5185 (modify-phases %standard-phases
5186 (add-after 'extract-gemspec 'patch-gemspec
5188 (substitute* ".gemspec"
5189 ;; Loosen the requirement for pdf-inspector
5190 (("~> 1\\.0\\.7") ">= 0")))))))
5192 `(("ruby-coderay" ,ruby-coderay)))
5193 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
5195 "This package provides a tool for writing manuals for Prawn and Prawn
5197 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
5198 (license %prawn-project-licenses)))
5200 (define-public ruby-progress_bar
5202 (name "ruby-progress_bar")
5207 (uri (rubygems-uri "progress_bar" version))
5210 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
5211 (build-system ruby-build-system)
5213 '(#:test-target "spec"))
5215 `(("ruby-highline" ,ruby-highline)
5216 ("ruby-options" ,ruby-options)))
5218 `(("bundler" ,bundler)
5219 ("ruby-rspec" ,ruby-rspec)
5220 ("ruby-timecop" ,ruby-timecop)))
5222 "Ruby library for displaying progress bars")
5224 "ProgressBar is a simple library for displaying progress bars. The
5225 maximum value is configurable, and additional information can be displayed
5226 like the percentage completion, estimated time remaining, elapsed time and
5228 (home-page "https://github.com/paul/progress_bar")
5229 (license license:wtfpl2)))
5231 (define-public ruby-dep
5238 (uri (rubygems-uri "ruby_dep" version))
5241 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
5242 (build-system ruby-build-system)
5244 '(#:tests? #f)) ; No included tests
5245 (synopsis "Creates a version constraint of supported Rubies")
5247 "This package helps create a version constraint of supported Rubies,
5248 suitable for a gemspec file.")
5249 (home-page "https://github.com/e2/ruby_dep")
5250 (license license:expat)))
5252 (define-public ruby-progressbar
5254 (name "ruby-progressbar")
5259 (uri (rubygems-uri "ruby-progressbar" version))
5261 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
5262 (build-system ruby-build-system)
5264 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
5266 (synopsis "Text progress bar library for Ruby")
5268 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
5269 The output can be customized with a formatting system.")
5270 (home-page "https://github.com/jfelchner/ruby-progressbar")
5271 (license license:expat)))
5273 (define-public ruby-pry
5280 (uri (rubygems-uri "pry" version))
5283 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
5284 (build-system ruby-build-system)
5286 '(#:tests? #f)) ; no tests
5288 `(("ruby-coderay" ,ruby-coderay)
5289 ("ruby-method-source" ,ruby-method-source)))
5290 (synopsis "Ruby REPL")
5291 (description "Pry is an IRB alternative and runtime developer console for
5292 Ruby. It features syntax highlighting, a plugin architecture, runtime
5293 invocation, and source and documentation browsing.")
5294 (home-page "https://cobaltbluemedia.com/pryrepl/")
5295 (license license:expat)))
5297 (define-public ruby-single-cov
5299 (name "ruby-single-cov")
5301 (home-page "https://github.com/grosser/single_cov")
5304 (uri (git-reference (url home-page)
5305 (commit (string-append "v" version))))
5306 (file-name (git-file-name name version))
5309 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
5310 (build-system ruby-build-system)
5312 '(#:test-target "default"
5313 #:phases (modify-phases %standard-phases
5314 (replace 'replace-git-ls-files
5316 (substitute* "single_cov.gemspec"
5317 (("`git ls-files lib/ bin/ MIT-LICENSE`")
5318 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
5320 (add-before 'check 'remove-version-constraints
5322 (delete-file "Gemfile.lock")
5324 (add-before 'check 'make-files-writable
5326 ;; Tests need to create local directories and open files
5327 ;; with write permissions.
5328 (for-each make-file-writable
5329 (find-files "specs" #:directories? #t))
5331 (add-before 'check 'disable-failing-test
5333 ;; XXX: This test copies assets from minitest, but can
5334 ;; not cope with the files being read-only. Just skip
5336 (substitute* "specs/single_cov_spec.rb"
5337 (("it \"complains when coverage is bad\"")
5338 "xit \"complains when coverage is bad\""))
5341 `(("ruby-bump" ,ruby-bump)
5342 ("ruby-minitest" ,ruby-minitest)
5343 ("ruby-rspec" ,ruby-rspec)
5344 ("ruby-simplecov" ,ruby-simplecov)))
5345 (synopsis "Code coverage reporting tool")
5347 "This package provides actionable code coverage reports for Ruby
5348 projects. It has very little overhead and can be easily integrated with
5349 development tools to catch coverage problems early.")
5350 (license license:expat)))
5352 (define-public ruby-guard
5358 ;; The gem does not include a Rakefile, nor does it contain a
5359 ;; gemspec file, nor does it come with the tests. This is why
5360 ;; we fetch the tarball from Github.
5362 (url "https://github.com/guard/guard")
5363 (commit (string-append "v" version))))
5364 (file-name (git-file-name name version))
5367 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
5368 (build-system ruby-build-system)
5370 `(#:tests? #f ; tests require cucumber
5372 (modify-phases %standard-phases
5373 (add-after 'unpack 'remove-git-ls-files
5374 (lambda* (#:key outputs #:allow-other-keys)
5375 (substitute* "guard.gemspec"
5376 (("git ls-files -z") "find . -type f -print0"))
5380 (invoke "gem" "build" "guard.gemspec"))))))
5382 `(("ruby-formatador" ,ruby-formatador)
5383 ("ruby-listen" ,ruby-listen)
5384 ("ruby-lumberjack" ,ruby-lumberjack)
5385 ("ruby-nenv" ,ruby-nenv)
5386 ("ruby-notiffany" ,ruby-notiffany)
5387 ("ruby-pry" ,ruby-pry)
5388 ("ruby-shellany" ,ruby-shellany)
5389 ("ruby-thor" ,ruby-thor)))
5391 `(("bundler" ,bundler)
5392 ("ruby-rspec" ,ruby-rspec)))
5393 (synopsis "Tool to handle events on file system modifications")
5395 "Guard is a command line tool to easily handle events on file system
5396 modifications. Guard automates various tasks by running custom rules whenever
5397 file or directories are modified.")
5398 (home-page "https://guardgem.org/")
5399 (license license:expat)))
5401 (define-public ruby-spinach
5403 (name "ruby-spinach")
5405 (home-page "https://github.com/codegram/spinach")
5408 (uri (rubygems-uri "spinach" version))
5411 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
5412 (build-system ruby-build-system)
5414 ;; FIXME: Disable tests altogether because they depend on 'capybara'
5415 ;; which in turn depends on many other unpackaged gems. Enable once
5416 ;; capybara is available.
5419 `(("ruby-colorize" ,ruby-colorize)
5420 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
5421 ("ruby-json" ,ruby-json)))
5422 (synopsis "Gherkin-based BDD framework")
5424 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
5425 framework that leverages the expressive @code{Gherkin} language to help you
5426 define executable specifications of your code.")
5427 (license license:expat)))
5429 (define-public ruby-tilt
5435 (method git-fetch) ;the distributed gem lacks tests
5437 (url "https://github.com/rtomayko/tilt")
5438 (commit (string-append "v" version))))
5439 (file-name (git-file-name name version))
5442 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
5443 (build-system ruby-build-system)
5446 (modify-phases %standard-phases
5447 (add-after 'unpack 'remove-some-dependencies
5449 (substitute* "Gemfile"
5450 ;; TODO ronn is used for generating the manual
5451 (("gem 'ronn'.*") "\n")
5452 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
5453 ;; pass it in as a native-input
5454 (("gem 'haml'.*") "\n")
5455 ;; TODO Not all of these gems are packaged for Guix yet:
5456 ;; less, coffee-script, livescript, babel-transpiler,
5458 (("if can_execjs") "if false")
5459 ;; Disable the secondary group to reduce the number of
5460 ;; dependencies. None of the normal approaches work, so patch
5461 ;; the Gemfile instead.
5462 (("group :secondary") "[].each"))
5465 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
5466 ("ruby-sassc" ,ruby-sassc)))
5468 `(("bundler" ,bundler)
5469 ("ruby-yard" ,ruby-yard)
5470 ("ruby-builder" ,ruby-builder)
5471 ("ruby-erubis" ,ruby-erubis)
5472 ("ruby-markaby" ,ruby-markaby)))
5473 (synopsis "Generic interface to multiple Ruby template engines")
5475 "Tilt is a thin interface over a number of different Ruby template
5476 engines in an attempt to make their usage as generic as possible.")
5477 (home-page "https://github.com/rtomayko/tilt/")
5478 (license license:expat)))
5480 (define-public ruby-thread-safe
5482 (name "ruby-thread-safe")
5487 (uri (rubygems-uri "thread_safe" version))
5490 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
5491 (build-system ruby-build-system)
5493 '(#:tests? #f)) ; needs simplecov, among others
5494 (synopsis "Thread-safe utilities for Ruby")
5495 (description "The thread_safe library provides thread-safe collections and
5496 utilities for Ruby.")
5497 (home-page "https://github.com/ruby-concurrency/thread_safe")
5498 (license license:asl2.0)))
5500 (define-public ruby-tzinfo
5502 (name "ruby-tzinfo")
5507 (uri (rubygems-uri "tzinfo" version))
5510 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
5511 (build-system ruby-build-system)
5514 (modify-phases %standard-phases
5515 (add-after 'unpack 'skip-safe-tests
5517 (substitute* "test/test_utils.rb"
5518 (("def safe_test\\(options = \\{\\}\\)")
5519 "def safe_test(options = {})
5520 skip('The Guix build environment has an unsafe load path')"))
5523 `(("ruby-thread-safe" ,ruby-thread-safe)))
5524 (synopsis "Time zone library for Ruby")
5525 (description "TZInfo is a Ruby library that provides daylight savings
5526 aware transformations between times in different time zones.")
5527 (home-page "https://tzinfo.github.io")
5528 (license license:expat)))
5530 (define-public ruby-tzinfo-data
5532 (name "ruby-tzinfo-data")
5533 (version "1.2017.3")
5537 ;; Download from GitHub because the rubygems version does not contain
5538 ;; Rakefile or tests.
5540 (url "https://github.com/tzinfo/tzinfo-data")
5541 (commit (string-append "v" version))))
5542 (file-name (git-file-name name version))
5545 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
5546 ;; Remove the known test failure.
5547 ;; https://github.com/tzinfo/tzinfo-data/issues/10
5548 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
5549 (patches (search-patches
5550 "ruby-tzinfo-data-ignore-broken-test.patch"))))
5551 (build-system ruby-build-system)
5553 `(("ruby-tzinfo" ,ruby-tzinfo)))
5554 (synopsis "Data from the IANA Time Zone database")
5556 "This library provides @code{TZInfo::Data}, which contains data from the
5557 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
5558 (home-page "https://tzinfo.github.io")
5559 (license license:expat)))
5561 (define-public ruby-rb-inotify
5563 (name "ruby-rb-inotify")
5568 (uri (rubygems-uri "rb-inotify" version))
5571 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
5572 (build-system ruby-build-system)
5574 '(#:tests? #f ; there are no tests
5576 (modify-phases %standard-phases
5577 ;; Building the gemspec with rake is not working here since it is
5578 ;; generated with Jeweler. It is also unnecessary because the
5579 ;; existing gemspec does not use any development tools to generate a
5583 (invoke "gem" "build" "rb-inotify.gemspec"))))))
5585 `(("ruby-ffi" ,ruby-ffi)))
5587 `(("ruby-yard" ,ruby-yard)))
5588 (synopsis "Ruby wrapper for Linux's inotify")
5589 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
5590 kernel subsystem for monitoring changes to files and directories.")
5591 (home-page "https://github.com/nex3/rb-inotify")
5592 (license license:expat)))
5594 (define-public ruby-pry-editline
5596 (name "ruby-pry-editline")
5600 (uri (rubygems-uri "pry-editline" version))
5603 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
5604 (build-system ruby-build-system)
5605 (arguments `(#:tests? #f)) ; no tests included
5607 `(("bundler" ,bundler)))
5608 (synopsis "Open the current REPL line in an editor")
5610 "This gem provides a plugin for the Ruby REPL to enable opening the
5611 current line in an external editor.")
5612 (home-page "https://github.com/tpope/pry-editline")
5613 (license license:expat)))
5615 (define-public ruby-sdoc
5621 (uri (rubygems-uri "sdoc" version))
5624 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
5625 (build-system ruby-build-system)
5628 (modify-phases %standard-phases
5629 (add-before 'check 'set-rubylib-and-patch-gemfile
5631 (setenv "RUBYLIB" "lib")
5632 (substitute* "sdoc.gemspec"
5633 (("s.add_runtime_dependency.*") "\n")
5634 (("s.add_dependency.*") "\n"))
5635 (substitute* "Gemfile"
5637 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5640 `(("ruby-json" ,ruby-json)))
5642 `(("bundler" ,bundler)
5643 ("ruby-minitest" ,ruby-minitest)
5644 ("ruby-hoe" ,ruby-hoe)))
5645 (synopsis "Generate searchable RDoc documentation")
5647 "SDoc is an RDoc documentation generator to build searchable HTML
5648 documentation for Ruby code.")
5649 (home-page "https://github.com/voloko/sdoc")
5650 (license license:expat)))
5652 (define-public ruby-tins
5658 (uri (rubygems-uri "tins" version))
5661 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5662 (build-system ruby-build-system)
5663 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5664 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5667 `(#:tests? #f ; there are no tests
5669 (modify-phases %standard-phases
5672 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5674 (substitute* "tins.gemspec"
5675 (("\"lib/spruz\", ") ""))
5676 (invoke "gem" "build" "tins.gemspec"))))))
5677 (synopsis "Assorted tools for Ruby")
5678 (description "Tins is a Ruby library providing assorted tools.")
5679 (home-page "https://github.com/flori/tins")
5680 (license license:expat)))
5682 (define-public ruby-gem-hadar
5684 (name "ruby-gem-hadar")
5688 (uri (rubygems-uri "gem_hadar" version))
5691 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5692 (build-system ruby-build-system)
5693 ;; This gem needs itself at development time. We disable rebuilding of the
5694 ;; gemspec to avoid this loop.
5696 `(#:tests? #f ; there are no tests
5698 (modify-phases %standard-phases
5701 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5704 ("ruby-tins" ,ruby-tins)
5705 ("ruby-yard" ,ruby-yard)))
5706 (synopsis "Library for the development of Ruby gems")
5708 "This library contains some useful functionality to support the
5709 development of Ruby gems.")
5710 (home-page "https://github.com/flori/gem_hadar")
5711 (license license:expat)))
5713 (define-public ruby-minitest-tu-shim
5715 (name "ruby-minitest-tu-shim")
5719 (uri (rubygems-uri "minitest_tu_shim" version))
5722 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5723 (build-system ruby-build-system)
5726 (modify-phases %standard-phases
5727 (add-after 'unpack 'fix-test-include-path
5728 (lambda* (#:key inputs #:allow-other-keys)
5729 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5730 (substitute* "Rakefile"
5731 (("Hoe\\.add_include_dirs .*")
5732 (string-append "Hoe.add_include_dirs \""
5733 minitest "/lib/ruby/vendor_ruby"
5735 ,(package-version ruby-minitest-4)
5738 (add-before 'check 'fix-test-assumptions
5740 ;; The test output includes the file name, so a couple of tests
5741 ;; fail. Changing the regular expressions slightly fixes this
5743 (substitute* "test/test_mini_test.rb"
5744 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5745 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5746 (("gsub\\(/.*, 'FILE:LINE'\\)")
5747 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5750 `(("ruby-minitest-4" ,ruby-minitest-4)))
5752 `(("ruby-hoe" ,ruby-hoe)))
5753 (synopsis "Adapter library between minitest and test/unit")
5755 "This library bridges the gap between the small and fast minitest and
5756 Ruby's large and slower test/unit.")
5757 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5758 (license license:expat)))
5760 (define-public ruby-term-ansicolor
5762 (name "ruby-term-ansicolor")
5766 (uri (rubygems-uri "term-ansicolor" version))
5769 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5770 (build-system ruby-build-system)
5771 ;; Rebuilding the gemspec seems to require git, even though this is not a
5772 ;; git repository, so we just build the gem from the existing gemspec.
5775 (modify-phases %standard-phases
5776 (add-after 'unpack 'fix-test
5778 (substitute* "tests/hsl_triple_test.rb"
5783 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5785 `(("ruby-tins" ,ruby-tins)))
5787 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5788 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5789 (synopsis "Ruby library to control the attributes of terminal output")
5791 "This Ruby library uses ANSI escape sequences to control the attributes
5792 of terminal output.")
5793 (home-page "https://flori.github.io/term-ansicolor/")
5794 ;; There is no mention of the "or later" clause.
5795 (license license:gpl2)))
5797 (define-public ruby-terraform
5799 (name "ruby-terraform")
5804 (uri (rubygems-uri "ruby-terraform" version))
5807 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5808 (build-system ruby-build-system)
5810 '(#:tests? #f)) ; No included tests
5812 `(("ruby-lino" ,ruby-lino)))
5813 (synopsis "Ruby wrapper around the Terraform command line interface")
5815 "This package provides a Ruby wrapper around the Terraform command line
5816 interface so that Terraform can be more easily invoked from Ruby code.")
5817 (home-page "https://github.com/infrablocks/ruby_terraform")
5818 (license license:expat)))
5820 (define-public ruby-pstree
5822 (name "ruby-pstree")
5826 (uri (rubygems-uri "pstree" version))
5829 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5830 (build-system ruby-build-system)
5832 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5833 ("bundler" ,bundler)))
5834 (synopsis "Create a process tree data structure")
5836 "This library uses the output of the @code{ps} command to create a
5837 process tree data structure for the current host.")
5838 (home-page "https://github.com/flori/pstree")
5839 ;; There is no mention of the "or later" clause.
5840 (license license:gpl2)))
5842 (define-public ruby-utils
5848 (uri (rubygems-uri "utils" version))
5851 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5852 (build-system ruby-build-system)
5854 `(("ruby-tins" ,ruby-tins)
5855 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5856 ("ruby-pstree" ,ruby-pstree)
5857 ("ruby-pry-editline" ,ruby-pry-editline)))
5859 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5860 ("bundler" ,bundler)))
5861 (synopsis "Command line tools for working with Ruby")
5863 "This package provides assorted command line tools that may be useful
5864 when working with Ruby code.")
5865 (home-page "https://github.com/flori/utils")
5866 ;; There is no mention of the "or later" clause.
5867 (license license:gpl2)))
5869 (define-public ruby-jaro-winkler
5871 (name "ruby-jaro-winkler")
5876 (uri (rubygems-uri "jaro_winkler" version))
5878 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5879 (build-system ruby-build-system)
5881 '(#:tests? #f)) ; no included tests
5882 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5884 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5885 algorithm. It is written as a C extension and will fallback to a pure Ruby
5886 implementation on platforms where this is unsupported.")
5887 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5888 (license license:expat)))
5890 (define-public ruby-json
5897 (uri (rubygems-uri "json" version))
5900 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5901 (build-system ruby-build-system)
5902 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5903 (synopsis "JSON library for Ruby")
5904 (description "This Ruby library provides a JSON implementation written as
5905 a native C extension.")
5906 (home-page "http://json-jruby.rubyforge.org/")
5907 (license (list license:ruby license:gpl2)))) ; GPL2 only
5909 (define-public ruby-json-pure
5911 (name "ruby-json-pure")
5915 (uri (rubygems-uri "json_pure" version))
5918 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5919 (build-system ruby-build-system)
5922 (modify-phases %standard-phases
5923 (add-after 'unpack 'fix-rakefile
5925 (substitute* "Rakefile"
5926 ;; Since this is not a git repository, do not call 'git'.
5927 (("`git ls-files`") "`find . -type f |sort`")
5928 ;; Loosen dependency constraint.
5929 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5931 (add-after 'replace-git-ls-files 'regenerate-gemspec
5933 ;; Regenerate gemspec so loosened dependency constraints are
5935 (invoke "rake" "gemspec")))
5936 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5938 ;; This gemspec doesn't look to be generated by the above
5939 ;; command, so patch it separately.
5940 (substitute* "json-java.gemspec"
5941 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5942 "%q<test-unit>.freeze, [\">= 2.0\"]"))
5945 `(("bundler" ,bundler)
5947 ("ruby-simplecov" ,ruby-simplecov)
5948 ("ruby-test-unit" ,ruby-test-unit)))
5949 (synopsis "JSON implementation in pure Ruby")
5951 "This package provides a JSON implementation written in pure Ruby.")
5952 (home-page "https://flori.github.com/json/")
5953 (license license:ruby)))
5955 (define-public ruby-jwt
5962 (uri (rubygems-uri "jwt" version))
5965 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
5966 (build-system ruby-build-system)
5968 '(#:test-target "test"
5970 (modify-phases %standard-phases
5971 (add-after 'unpack 'remove-unnecessary-dependencies
5973 (substitute* "spec/spec_helper.rb"
5974 (("require 'simplecov.*") "\n")
5975 ;; Use [].each to disable running the SimpleCov configuration
5977 (("SimpleCov\\.configure") "[].each")
5978 (("require 'codeclimate-test-reporter'") "")
5979 (("require 'codacy-coverage'") "")
5980 (("Codacy::Reporter\\.start") ""))
5983 `(("bundler" ,bundler)
5984 ("ruby-rspec" ,ruby-rspec)
5985 ("ruby-rbnacl" ,ruby-rbnacl)))
5986 (synopsis "Ruby implementation of the JSON Web Token standard")
5988 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
5989 @acronym{JWT, JSON Web Token} standard.")
5990 (home-page "https://github.com/jwt/ruby-jwt")
5991 (license license:expat)))
5993 ;; Even though this package only provides bindings for a Mac OSX API it is
5994 ;; required by "ruby-listen" at runtime.
5995 (define-public ruby-rb-fsevent
5997 (name "ruby-rb-fsevent")
6001 (uri (rubygems-uri "rb-fsevent" version))
6004 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
6005 (build-system ruby-build-system)
6006 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
6007 ;; "listen", which needs "rb-fsevent" at runtime.
6008 (arguments `(#:tests? #f))
6009 (synopsis "FSEvents API with signals catching")
6011 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
6012 (home-page "https://rubygems.org/gems/rb-fsevent")
6013 (license license:expat)))
6015 (define-public ruby-listen
6017 (name "ruby-listen")
6021 ;; The gem does not include a Rakefile, so fetch from the Git
6025 (url "https://github.com/guard/listen")
6026 (commit (string-append "v" version))))
6027 (file-name (git-file-name name version))
6030 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
6031 (build-system ruby-build-system)
6033 `(#:test-target "spec"
6035 (modify-phases %standard-phases
6036 (add-after 'unpack 'fix-files-in-gemspec
6038 (substitute* "listen.gemspec"
6039 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
6041 (add-before 'check 'remove-unnecessary-dependencies'
6043 (substitute* "Rakefile"
6044 ;; Rubocop is for code linting, and is unnecessary for running
6046 ((".*rubocop.*") ""))
6049 `(("bundler" ,bundler)
6050 ("ruby-rspec" ,ruby-rspec)))
6052 `(;; ruby-thor is used for the command line interface, and is referenced
6053 ;; in the wrapper, and therefore just needs to be an input.
6054 ("ruby-thor" ,ruby-thor)))
6056 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6057 ("ruby-rb-inotify" ,ruby-rb-inotify)
6058 ("ruby-dep" ,ruby-dep)))
6059 (synopsis "Listen to file modifications")
6060 (description "The Listen gem listens to file modifications and notifies
6061 you about the changes.")
6062 (home-page "https://github.com/guard/listen")
6063 (license license:expat)))
6065 (define-public ruby-loofah
6067 (name "ruby-loofah")
6072 (uri (rubygems-uri "loofah" version))
6075 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
6076 (build-system ruby-build-system)
6079 (modify-phases %standard-phases
6080 (add-after 'unpack 'remove-unnecessary-dependencies
6082 ;; concourse is a development tool which is unused, so remove it
6083 ;; so it's not required.
6084 (substitute* "Gemfile"
6085 ((".*\"concourse\".*") "\n"))
6086 (substitute* "Rakefile"
6087 (("require 'concourse'") "")
6088 (("Concourse\\.new.*") "\n"))
6091 `(("ruby-hoe" ,ruby-hoe)
6092 ("ruby-rr" ,ruby-rr)))
6094 `(("ruby-nokogiri" ,ruby-nokogiri)
6095 ("ruby-crass" ,ruby-crass)))
6096 (synopsis "Ruby library for manipulating and transforming HTML/XML")
6098 "Loofah is a general library for manipulating and transforming HTML/XML
6099 documents and fragments. It's built on top of Nokogiri and libxml2.")
6100 (home-page "https://github.com/flavorjones/loofah")
6101 (license license:expat)))
6103 (define-public ruby-activesupport
6105 (name "ruby-activesupport")
6110 (uri (rubygems-uri "activesupport" version))
6113 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
6114 (build-system ruby-build-system)
6117 (modify-phases %standard-phases
6120 ;; There are no tests, instead attempt to load the library.
6121 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
6123 `(("ruby-concurrent" ,ruby-concurrent)
6124 ("ruby-i18n" ,ruby-i18n)
6125 ("ruby-minitest" ,ruby-minitest)
6126 ("ruby-tzinfo" ,ruby-tzinfo)
6127 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
6128 (synopsis "Ruby on Rails utility library")
6129 (description "ActiveSupport is a toolkit of support libraries and Ruby
6130 core extensions extracted from the Rails framework. It includes support for
6131 multibyte strings, internationalization, time zones, and testing.")
6132 (home-page "http://www.rubyonrails.org")
6133 (license license:expat)))
6135 (define-public ruby-crass
6139 (home-page "https://github.com/rgrove/crass")
6141 ;; The gem does not contain tests, so pull from git.
6145 (commit (string-append "v" version))))
6146 (file-name (git-file-name name version))
6149 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
6150 (build-system ruby-build-system)
6151 (synopsis "Pure Ruby CSS parser")
6153 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
6154 (license license:expat)))
6156 (define-public ruby-nokogumbo
6158 (name "ruby-nokogumbo")
6161 ;; We use the git reference, because there's no Rakefile in the
6162 ;; published gem and the tarball on Github is outdated.
6165 (url "https://github.com/rubys/nokogumbo")
6166 (commit (string-append "v" version))))
6167 (file-name (string-append name "-" version "-checkout"))
6170 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
6171 (build-system ruby-build-system)
6173 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
6175 `(("gumbo-parser" ,gumbo-parser)))
6177 `(("ruby-nokogiri" ,ruby-nokogiri)))
6178 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
6180 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
6181 access the result as a Nokogiri parsed document.")
6182 (home-page "https://github.com/rubys/nokogumbo/")
6183 (license license:asl2.0)))
6185 (define-public ruby-sanitize
6187 (name "ruby-sanitize")
6189 (home-page "https://github.com/rgrove/sanitize")
6192 ;; The gem does not include the Rakefile, so we download the
6193 ;; source from Github.
6196 (commit (string-append "v" version))))
6197 (file-name (git-file-name name version))
6198 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
6201 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
6202 (build-system ruby-build-system)
6204 `(("ruby-crass" ,ruby-crass)
6205 ("ruby-nokogiri" ,ruby-nokogiri)
6206 ("ruby-nokogumbo" ,ruby-nokogumbo)))
6208 `(("ruby-minitest" ,ruby-minitest)))
6209 (synopsis "Whitelist-based HTML and CSS sanitizer")
6211 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
6212 acceptable elements, attributes, and CSS properties, Sanitize will remove all
6213 unacceptable HTML and/or CSS from a string.")
6214 (license license:expat)))
6216 (define-public ruby-oj
6223 ;; Version on rubygems.org does not contain Rakefile, so download from
6226 (url "https://github.com/ohler55/oj")
6227 (commit (string-append "v" version))))
6228 (file-name (git-file-name name version))
6231 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
6232 (build-system ruby-build-system)
6234 '(#:test-target "test_all"
6236 (modify-phases %standard-phases
6237 (add-before 'check 'disable-bundler
6239 (substitute* "Rakefile"
6240 (("Bundler\\.with_clean_env") "1.times")
6241 (("bundle exec ") "")))))))
6243 `(("bundler" ,bundler)
6244 ("ruby-rspec" ,ruby-rspec)
6245 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6246 (synopsis "JSON parser for Ruby optimized for speed")
6248 "Oj is a JSON parser and generator for Ruby, where the encoding and
6249 decoding of JSON is implemented as a C extension to Ruby.")
6250 (home-page "http://www.ohler.com/oj/")
6251 (license (list license:expat ; Ruby code
6252 license:bsd-3)))) ; extension code
6254 (define-public ruby-ox
6261 (uri (rubygems-uri "ox" version))
6264 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
6265 (build-system ruby-build-system)
6267 '(#:tests? #f)) ; no tests
6268 (synopsis "Optimized XML library for Ruby")
6270 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
6271 written as a native C extension. It was designed to be an alternative to
6272 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
6273 alternative to Marshal for Object serialization. ")
6274 (home-page "http://www.ohler.com/ox")
6275 (license license:expat)))
6277 (define-public ruby-redcloth
6279 (name "ruby-redcloth")
6283 (uri (rubygems-uri "RedCloth" version))
6286 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
6287 (build-system ruby-build-system)
6289 `(#:tests? #f ; no tests
6291 (modify-phases %standard-phases
6292 ;; Redcloth has complicated rake tasks to build various versions for
6293 ;; multiple targets using RVM. We don't want this so we just use the
6294 ;; existing gemspec.
6297 (invoke "gem" "build" "redcloth.gemspec"))))))
6299 `(("bundler" ,bundler)
6300 ("ruby-diff-lcs" ,ruby-diff-lcs)
6301 ("ruby-rspec-2" ,ruby-rspec-2)))
6302 (synopsis "Textile markup language parser for Ruby")
6304 "RedCloth is a Ruby parser for the Textile markup language.")
6305 (home-page "http://redcloth.org")
6306 (license license:expat)))
6308 (define-public ruby-pg
6315 (uri (rubygems-uri "pg" version))
6318 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
6319 (build-system ruby-build-system)
6321 '(#:test-target "spec"))
6323 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6324 ("ruby-hoe" ,ruby-hoe)
6325 ("ruby-rspec" ,ruby-rspec)))
6327 `(("postgresql" ,postgresql)))
6328 (synopsis "Ruby interface to PostgreSQL")
6329 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
6330 with PostgreSQL 9.0 and later.")
6331 (home-page "https://bitbucket.org/ged/ruby-pg")
6332 (license license:ruby)))
6334 (define-public ruby-byebug
6336 (name "ruby-byebug")
6341 (uri (rubygems-uri "byebug" version))
6344 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
6345 (build-system ruby-build-system)
6347 '(#:tests? #f)) ; no tests
6348 (synopsis "Debugger for Ruby 2")
6349 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
6350 TracePoint C API for execution control and the Debug Inspector C API for call
6351 stack navigation. The core component provides support that front-ends can
6352 build on. It provides breakpoint handling and bindings for stack frames among
6353 other things and it comes with a command line interface.")
6354 (home-page "https://github.com/deivid-rodriguez/byebug")
6355 (license license:bsd-2)))
6357 ;;; TODO: Make it the default byebug in core-updates.
6358 (define-public ruby-byebug-11
6360 (inherit ruby-byebug)
6361 (name "ruby-byebug")
6367 (url "https://github.com/deivid-rodriguez/byebug")
6368 (commit (string-append "v" version))))
6369 (file-name (git-file-name name version))
6372 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
6373 (modules '((guix build utils)))
6376 ;; Remove wrappers that try to setup a bundle environment.
6377 (with-directory-excursion "bin"
6378 (for-each delete-file '("bundle" "rake" "rubocop"))
6379 ;; ruby-minitest doesn't come with a launcher, so fix the one
6381 (substitute* "minitest"
6382 (("load File\\.expand_path\\(\"bundle\".*") "")
6383 (("require \"bundler/setup\".*") "")))
6388 (modify-phases %standard-phases
6389 (add-after 'unpack 'skip-tmp-path-sensitive-test
6391 (substitute* "test/commands/where_test.rb"
6392 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
6395 (add-before 'build 'compile
6397 (invoke "rake" "compile")))
6398 (add-before 'check 'set-home
6400 (setenv "HOME" (getcwd))
6403 `(("bundler" ,bundler)
6404 ("ruby-chandler" ,ruby-chandler)
6405 ("ruby-minitest" ,ruby-minitest)
6406 ("ruby-pry" ,ruby-pry)
6407 ("ruby-rake-compiler" ,ruby-rake-compiler)
6408 ("ruby-rubocop" ,ruby-rubocop)
6409 ("ruby-yard" ,ruby-yard)))))
6411 (define-public ruby-netrc
6417 (uri (rubygems-uri "netrc" version))
6420 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
6421 (build-system ruby-build-system)
6424 (modify-phases %standard-phases
6426 ;; There is no Rakefile and minitest can only run one file at once,
6427 ;; so we have to iterate over all test files.
6429 (for-each (lambda (file)
6430 (invoke "ruby" "-Itest" file))
6431 (find-files "./test" "test_.*\\.rb"))
6434 `(("ruby-minitest" ,ruby-minitest)))
6435 (synopsis "Library to read and update netrc files")
6437 "This library can read and update netrc files, preserving formatting
6438 including comments and whitespace.")
6439 (home-page "https://github.com/geemus/netrc")
6440 (license license:expat)))
6442 (define-public ruby-unf-ext
6444 (name "ruby-unf-ext")
6448 (uri (rubygems-uri "unf_ext" version))
6451 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
6452 (build-system ruby-build-system)
6455 (modify-phases %standard-phases
6456 (add-after 'build 'build-ext
6457 (lambda _ (invoke "rake" "compile:unf_ext")))
6458 (add-before 'check 'lose-rake-compiler-dock-dependency
6460 ;; rake-compiler-dock is listed in the gemspec, but only
6461 ;; required when cross-compiling.
6462 (substitute* "unf_ext.gemspec"
6463 ((".*rake-compiler-dock.*") ""))
6466 `(("bundler" ,bundler)
6467 ("ruby-rake-compiler" ,ruby-rake-compiler)
6468 ("ruby-test-unit" ,ruby-test-unit)))
6469 (synopsis "Unicode normalization form support library")
6471 "This package provides unicode normalization form support for Ruby.")
6472 (home-page "https://github.com/knu/ruby-unf_ext")
6473 (license license:expat)))
6475 (define-public ruby-tdiff
6476 ;; Use a newer than released snapshot so that rspec-2 is not required.
6477 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
6480 (version (string-append "0.3.3-1." (string-take commit 8)))
6484 (url "https://github.com/postmodern/tdiff")
6486 (file-name (string-append name "-" version "-checkout"))
6489 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
6490 (build-system ruby-build-system)
6492 `(("ruby-rspec" ,ruby-rspec)
6493 ("ruby-yard" ,ruby-yard)
6494 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6495 (synopsis "Calculate the differences between two tree-like structures")
6497 "This library provides functions to calculate the differences between two
6498 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
6499 (home-page "https://github.com/postmodern/tdiff")
6500 (license license:expat))))
6502 (define-public ruby-nokogiri-diff
6503 ;; Use a newer than released snapshot so that rspec-2 is not required.
6504 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
6506 (name "ruby-nokogiri-diff")
6507 (version (string-append "0.2.0-1." (string-take commit 8)))
6511 (url "https://github.com/postmodern/nokogiri-diff")
6513 (file-name (string-append name "-" version "-checkout"))
6516 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
6517 (build-system ruby-build-system)
6519 `(("ruby-tdiff" ,ruby-tdiff)
6520 ("ruby-nokogiri" ,ruby-nokogiri)))
6522 `(("ruby-rspec" ,ruby-rspec)
6523 ("ruby-yard" ,ruby-yard)
6524 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
6525 (synopsis "Calculate the differences between two XML/HTML documents")
6527 "@code{Nokogiri::Diff} adds the ability to calculate the
6528 differences (added or removed nodes) between two XML/HTML documents.")
6529 (home-page "https://github.com/postmodern/nokogiri-diff")
6530 (license license:expat))))
6532 (define-public ruby-racc
6539 (uri (rubygems-uri "racc" version))
6542 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
6543 (build-system ruby-build-system)
6545 `(("ruby-hoe" ,ruby-hoe)
6546 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6547 (synopsis "LALR(1) parser generator for Ruby")
6549 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
6550 generates Ruby program.")
6551 (home-page "http://i.loveruby.net/en/projects/racc/")
6553 ;; Generally licensed under the LGPL2.1, and some files also
6554 ;; available under the same license as Ruby.
6558 (define-public ruby-rack
6565 ;; Download from GitHub so that the patch can be applied.
6567 (url "https://github.com/rack/rack")
6569 (file-name (git-file-name name version))
6572 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
6573 ;; Ignore test which fails inside the build environment but works
6575 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
6576 (build-system ruby-build-system)
6579 (modify-phases %standard-phases
6580 (add-before 'check 'fix-tests
6582 ;; A few of the tests use the length of a file on disk for
6583 ;; Content-Length and Content-Range headers. However, this file
6584 ;; has a shebang in it which an earlier phase patches, growing
6585 ;; the file size from 193 to 239 bytes when the store prefix is
6587 (let ((size-diff (- (string-length (which "ruby"))
6588 (string-length "/usr/bin/env ruby"))))
6589 (substitute* '("test/spec_file.rb")
6591 (number->string (+ 193 size-diff)))
6592 (("bytes(.)22-33" all delimiter)
6593 (string-append "bytes"
6595 (number->string (+ 22 size-diff))
6597 (number->string (+ 33 size-diff))))))
6599 (add-before 'reset-gzip-timestamps 'make-files-writable
6600 (lambda* (#:key outputs #:allow-other-keys)
6601 ;; Make sure .gz files are writable so that the
6602 ;; 'reset-gzip-timestamps' phase can do its work.
6603 (let ((out (assoc-ref outputs "out")))
6604 (for-each make-file-writable
6605 (find-files out "\\.gz$"))
6608 `(("ruby-minitest" ,ruby-minitest)
6609 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
6612 `(("ruby-concurrent" ,ruby-concurrent)))
6613 (synopsis "Unified web application interface for Ruby")
6614 (description "Rack provides a minimal, modular and adaptable interface for
6615 developing web applications in Ruby. By wrapping HTTP requests and responses,
6616 it unifies the API for web servers, web frameworks, and software in between
6617 into a single method call.")
6618 (home-page "https://rack.github.io/")
6619 (license license:expat)))
6621 (define-public ruby-rack-test
6623 (name "ruby-rack-test")
6628 (uri (rubygems-uri "rack-test" version))
6631 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
6632 (build-system ruby-build-system)
6634 ;; Disable tests because of circular dependencies: requires sinatra,
6635 ;; which requires rack-protection, which requires rack-test. Instead
6636 ;; simply require the library.
6638 (modify-phases %standard-phases
6641 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6643 `(("ruby-rack" ,ruby-rack)))
6644 (synopsis "Testing API for Rack applications")
6646 "Rack::Test is a small, simple testing API for Rack applications. It can
6647 be used on its own or as a reusable starting point for Web frameworks and
6648 testing libraries to build on.")
6649 (home-page "https://github.com/rack-test/rack-test")
6650 (license license:expat)))
6652 (define-public ruby-rack-protection
6654 (name "ruby-rack-protection")
6659 (uri (rubygems-uri "rack-protection" version))
6662 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6663 (build-system ruby-build-system)
6665 '(;; Tests missing from the gem.
6668 `(("ruby-rack" ,ruby-rack)))
6670 `(("bundler" ,bundler)
6671 ("ruby-rspec" ,ruby-rspec-2)
6672 ("ruby-rack-test" ,ruby-rack-test)))
6673 (synopsis "Rack middleware that protects against typical web attacks")
6674 (description "Rack middleware that can be used to protect against typical
6675 web attacks. It can protect all Rack apps, including Rails. For instance, it
6676 protects against cross site request forgery, cross site scripting,
6677 clickjacking, directory traversal, session hijacking and IP spoofing.")
6678 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6679 (license license:expat)))
6681 (define-public ruby-rainbow
6683 (name "ruby-rainbow")
6688 (uri (rubygems-uri "rainbow" version))
6691 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6692 (build-system ruby-build-system)
6695 (modify-phases %standard-phases
6696 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6699 (lambda* (#:key tests? #:allow-other-keys)
6704 `(("bundler" ,bundler)
6705 ("ruby-rspec" ,ruby-rspec)))
6706 (synopsis "Colorize printed text on ANSI terminals")
6708 "@code{rainbow} provides a string presenter object to colorize strings by
6709 wrapping them in ANSI escape codes.")
6710 (home-page "https://github.com/sickill/rainbow")
6711 (license license:expat)))
6713 (define-public ruby-rr
6720 (uri (rubygems-uri "rr" version))
6723 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6724 (build-system ruby-build-system)
6726 '(#:tests? #f)) ; test files not included
6728 `(("bundler" ,bundler)
6729 ("ruby-rspec" ,ruby-rspec)))
6730 (synopsis "Ruby test double framework")
6732 "RR is a test double framework that features a rich selection of double
6733 techniques and a terse syntax.")
6734 (home-page "https://rr.github.io/rr/")
6735 (license license:expat)))
6737 (define-public ruby-rest-client
6739 (name "ruby-rest-client")
6744 (uri (rubygems-uri "rest-client" version))
6747 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6748 (build-system ruby-build-system)
6751 (modify-phases %standard-phases
6752 (add-before 'check 'remove-unnecessary-development-dependencies
6754 (substitute* "rest-client.gemspec"
6755 ;; Remove rubocop as it's unused. Rubocop also indirectly
6756 ;; depends on this package through ruby-parser and ruby-ast so
6757 ;; this avoids a dependency loop.
6758 ((".*rubocop.*") "\n")
6759 ;; Remove pry as it's unused, it's a debugging tool
6761 ;; Remove an unnecessarily strict rdoc dependency
6762 ((".*rdoc.*") "\n"))
6764 (add-before 'check 'delete-network-dependent-tests
6766 (delete-file "spec/integration/request_spec.rb")
6767 (delete-file "spec/integration/httpbin_spec.rb")
6770 `(("ruby-http-cookie" ,ruby-http-cookie)
6771 ("ruby-mime-types" ,ruby-mime-types)
6772 ("ruby-netrc" ,ruby-netrc)))
6774 `(("bundler" ,bundler)
6775 ("ruby-webmock" ,ruby-webmock-2)
6776 ("ruby-rspec" ,ruby-rspec)))
6777 (synopsis "Simple HTTP and REST client for Ruby")
6779 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6780 inspired by the Sinatra microframework style of specifying actions:
6781 @code{get}, @code{put}, @code{post}, @code{delete}.")
6782 (home-page "https://github.com/rest-client/rest-client")
6783 (license license:expat)))
6785 (define-public ruby-rubocop-ast
6787 (name "ruby-rubocop-ast")
6791 (method git-fetch) ;no test suite in distributed gem
6793 (url "https://github.com/rubocop-hq/rubocop-ast.git")
6794 (commit (string-append "v" version))))
6795 (file-name (git-file-name name version))
6798 "0nz25z5b76xkgb9sh370hni3l946j07fr05cdwkdj9x7ibgsb6nj"))))
6799 (build-system ruby-build-system)
6801 `(#:test-target "spec"
6802 #:phases (modify-phases %standard-phases
6803 (add-after 'unpack 'disable-bundler
6805 (substitute* "Rakefile"
6806 (("Bundler\\.setup.*") "nil\n"))
6808 (replace 'replace-git-ls-files
6810 (substitute* "rubocop-ast.gemspec"
6811 (("`git ls-files(.*)`" _ files)
6812 (format #f "`find ~a -type f| sort`" files)))
6815 `(("ruby-bump" ,ruby-bump)
6816 ("ruby-rspec" ,ruby-rspec)))
6818 `(("ruby-parser" ,ruby-parser)))
6819 (synopsis "RuboCop's AST extensions and NodePattern functionality")
6820 (description "Rubocop::AST extends @code{ruby-parser} with classes used
6821 by RuboCop to deal with Ruby's Abstract Syntax Tree (AST), in particular:
6823 @item @code{RuboCop::AST::Node}
6824 @item @code{RuboCop::AST::NodePattern}
6826 (home-page "https://rubocop.org/")
6827 (license license:expat)))
6829 (define-public ruby-rexml
6835 (method git-fetch) ;no tests in distributed gem
6837 (url "https://github.com/ruby/rexml.git")
6838 (commit (string-append "v" version))))
6839 (file-name (git-file-name name version))
6842 "0rhjjbkaq2f2cs8hyr2i4yjqpcyl8m0wmr2cypa401m3fvz4221i"))))
6843 (build-system ruby-build-system)
6844 (synopsis "XML toolkit for Ruby")
6845 (description "Inspired by Electric XML library for Java, REXML aims to be
6846 easy-to-use API, small and fast. It supports both tree and stream document
6848 (home-page "https://github.com/ruby/rexml")
6849 (license license:bsd-2)))
6851 (define-public ruby-character-set
6853 (name "ruby-character-set")
6858 (uri (rubygems-uri "character_set" version))
6861 "0affq9n77vwy897ri2zhmfinfagf37hcwwimrccy1bcxan9mj3h3"))))
6862 (build-system ruby-build-system)
6863 (arguments '(#:tests? #f)) ;avoid a cycle with ruby-regexp-parser
6864 (synopsis "Ruby library to manipulate Unicode")
6865 (description "CharacterSet is a C-extended Ruby library to work with sets
6866 of Unicode code points. It can read and write these sets in various formats
6867 and implements the @code{stdlib} @code{Set} interface for them. It also
6868 offers an alternate paradigm of @code{String} processing which grants much
6869 better performance than @code{Regexp} and @code{String} methods from the
6870 @code{stdlib} where applicable. Many parts can be used independently, e.g.:
6872 @item @code{CharacterSet::Character}
6873 @item @code{CharacterSet::Parser}
6874 @item @code{CharacterSet::Writer}
6875 @item @code{RangeCompressor}
6877 (home-page "https://github.com/jaynetics/character_set")
6878 (license license:expat)))
6880 (define-public ruby-range-compressor
6882 (name "ruby-range-compressor")
6888 (url "https://github.com/janosch-x/range_compressor.git")
6889 (commit (string-append "v" version))))
6890 (file-name (git-file-name name version))
6893 "0y8slri2msyyg2szgwgriqd6qw9hkxycssdrcl5lk2dbcq5zvn54"))))
6894 (build-system ruby-build-system)
6896 `(#:test-target "spec"
6897 #:phases (modify-phases %standard-phases
6898 (add-after 'extract-gemspec 'strip-version-requirements
6900 (substitute* "range_compressor.gemspec"
6901 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6902 (string-append stripped "\n")))
6905 `(("ruby-rspec" ,ruby-rspec)))
6906 (synopsis "Simple arrays of objects to arrays of ranges compressor")
6907 (description "RangeCompresses is a tiny library that allows compressing
6908 arrays of objects into arrays of ranges. For example, it can turn the
6909 following: @code{[1, 2, 3, 4, 6, 8, 9, 10]} into @code{[1..4, 6..6, 8..10]}.")
6910 (home-page "https://github.com/janosch-x/range_compressor")
6911 (license license:expat)))
6913 (define-public ruby-regexp-property-values
6915 (name "ruby-regexp-property-values")
6920 (uri (git-reference ;no test suite in distributed gem
6921 (url "https://github.com/jaynetics/regexp_property_values.git")
6922 (commit (string-append "v" version))))
6923 (file-name (git-file-name name version))
6926 "0l3fjmscg1wxn7kc6bl022cc6k5d91pwb7daq1b5w36kvsx52w1j"))))
6927 (build-system ruby-build-system)
6929 '(#:test-target "default"))
6931 `(("ruby-character-set" ,ruby-character-set)
6932 ("ruby-rake-compiler" ,ruby-rake-compiler)
6933 ("ruby-range-compressor" ,ruby-range-compressor)
6934 ("ruby-rspec" ,ruby-rspec)))
6935 (synopsis "Inspect Ruby's regex engine property values")
6936 (description "This small library lets you see which property values are
6937 supported by the regular expression engine of the Ruby version you are running
6938 and can directly read out their code point ranges. In other words, it
6939 determines all supported values for @code{\\p{value}} expressions and what
6941 (home-page "https://github.com/jaynetics/regexp_property_values")
6942 (license license:expat)))
6944 (define-public ruby-regexp-parser
6946 (name "ruby-regexp-parser")
6950 (method git-fetch) ;bin/test missing from gem
6952 (url "https://github.com/ammar/regexp_parser.git")
6953 (commit (string-append "v" version))))
6954 (file-name (git-file-name name version))
6957 "0dk9d4vpw31cc06s29fqyr1kq0kipym1mydifkcrnppvpl3pd53r"))))
6958 (build-system ruby-build-system)
6960 '(#:test-target "default"
6961 #:phases (modify-phases %standard-phases
6962 (add-before 'build 'compile-scanner.rb
6964 (invoke "rake" "build")
6965 ;; XXX: This is needed otherwise the install
6966 ;; phase fails to delete the installed cached
6968 (delete-file-recursively "pkg")
6972 ("ruby-regexp-property-values" ,ruby-regexp-property-values)
6973 ("ruby-rspec" ,ruby-rspec)))
6974 (synopsis "A regular expression parser library for Ruby ")
6975 (description "A Ruby gem for tokenizing, parsing, and transforming regular
6976 expressions. It comprises the following components:
6978 @item A scanner/tokenizer based on Ragel,
6979 @item A lexer that produces a stream of token objects,
6980 @item A parser that produces a tree of Expression objects.
6982 (home-page "https://github.com/ammar/regexp_parser")
6983 (license license:expat)))
6985 (define-public ruby-test-queue
6987 (name "ruby-test-queue")
6992 (uri (rubygems-uri "test-queue" version))
6995 "0hvm3n1qrqxqilhqk4rjivw3gcrd08zz1i6am9qzg1ppjxv6f36f"))))
6996 (build-system ruby-build-system)
6999 (modify-phases %standard-phases
7001 (lambda* (#:key tests? #:allow-other-keys)
7006 `(("ruby-rspec" ,ruby-rspec)))
7007 (synopsis "Minitest/RSpec parallel test runner for CI environments")
7008 (description "The test-queue module is a parallel test runner,
7009 built using a centralized queue to ensure optimal distribution of
7010 tests between workers. It is specifically optimized for Continuous
7011 Integration (CI) environments: build statistics from each run are
7012 stored locally and used to sort the queue at the beginning of the next
7014 (home-page "https://github.com/tmm1/test-queue")
7015 (license license:expat)))
7017 (define-public ruby-rubocop
7019 (name "ruby-rubocop")
7023 (method git-fetch) ;no tests in distributed gem
7025 (url "https://github.com/rubocop-hq/rubocop.git")
7026 (commit (string-append "v" version))))
7027 (file-name (git-file-name name version))
7030 "1d06893jp8pd85fvgp5d16vqcf31bafi430v4f4y746ihyvhzz5r"))
7031 (patches (search-patches "ruby-rubocop-break-dependency-cycle.patch"))))
7032 (build-system ruby-build-system)
7034 '(#:test-target "default"
7036 (modify-phases %standard-phases
7037 (add-after 'unpack 'remove-problematic-tests
7038 ;; These tests depend on Rubocop extensions, which cannot be
7039 ;; included as they cause a dependency cycle with Rubocop itself.
7041 (delete-file "spec/rubocop/config_loader_spec.rb")
7042 (substitute* "Gemfile"
7043 ((".*'rubocop-performance'.*") "")
7044 ((".*'rubocop-rspec'.*") ""))
7045 ;; Prevent "Unnecessary disabling of RSpec/* (unknown cop)"
7047 (substitute* (find-files "spec/rubocop/cop/" "_spec\\.rb$")
7048 (("# (rubocop:(enable|disable) RSpec.*)" _ what)
7049 (string-append "# Disabled: " what)))
7051 (add-after 'unpack 'disable-bundler
7053 (substitute* "Rakefile"
7054 (("Bundler\\.setup.*") "nil\n"))
7056 (replace 'replace-git-ls-files
7058 (substitute* "rubocop.gemspec"
7059 (("`git ls-files(.*)`" _ files)
7060 (format #f "`find ~a -type f| sort`" files)))
7062 (add-before 'check 'set-home
7064 (setenv "HOME" (getcwd))
7066 (add-before 'check 'make-adoc-files-writable
7068 (let ((adoc-files (find-files "docs/modules/ROOT/pages"
7070 (for-each make-file-writable adoc-files))
7073 `(("ruby-bump" ,ruby-bump)
7074 ("ruby-pry" ,ruby-pry)
7075 ("ruby-rspec" ,ruby-rspec)
7076 ("ruby-test-queue" ,ruby-test-queue)
7077 ("ruby-webmock" ,ruby-webmock-2)
7078 ("ruby-yard" ,ruby-yard)))
7080 `(("ruby-parallel" ,ruby-parallel)
7081 ("ruby-parser" ,ruby-parser)
7082 ("ruby-rainbow" ,ruby-rainbow)
7083 ("ruby-regexp-parser" ,ruby-regexp-parser)
7084 ("ruby-rexml" ,ruby-rexml)
7085 ("ruby-rubocop-ast" ,ruby-rubocop-ast)
7086 ("ruby-progressbar" ,ruby-progressbar)
7087 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
7088 (synopsis "Ruby code style checking tool")
7090 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
7091 the community-driven Ruby Style Guide.")
7092 (home-page "https://github.com/rubocop-hq/rubocop")
7093 (license license:expat)))
7095 (define-public ruby-contest
7097 (name "ruby-contest")
7102 (uri (rubygems-uri "contest" version))
7105 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
7106 (build-system ruby-build-system)
7107 (synopsis "Write declarative tests using nested contexts")
7109 "Contest allows writing declarative @code{Test::Unit} tests using nested
7110 contexts without performance penalties.")
7111 (home-page "https://github.com/citrusbyte/contest")
7112 (license license:expat)))
7114 (define-public ruby-creole
7116 (name "ruby-creole")
7121 (uri (rubygems-uri "creole" version))
7124 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
7125 (build-system ruby-build-system)
7127 `(("ruby-bacon" ,ruby-bacon)))
7128 (synopsis "Creole markup language converter")
7130 "Creole is a lightweight markup language and this library for converting
7131 creole to @code{HTML}.")
7132 (home-page "https://github.com/minad/creole")
7133 (license license:ruby)))
7135 (define-public ruby-docile
7137 (name "ruby-docile")
7142 (uri (rubygems-uri "docile" version))
7145 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
7146 (build-system ruby-build-system)
7148 '(#:tests? #f)) ; needs github-markup, among others
7149 (synopsis "Ruby EDSL helper library")
7150 (description "Docile is a Ruby library that provides an interface for
7151 creating embedded domain specific languages (EDSLs) that manipulate existing
7153 (home-page "https://ms-ati.github.io/docile/")
7154 (license license:expat)))
7156 (define-public ruby-middleware
7158 (name "ruby-middleware")
7163 (uri (rubygems-uri "middleware" version))
7166 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
7167 (build-system ruby-build-system)
7168 (arguments '(#:tests? #f)) ;no test suite
7169 (synopsis "Implementation of a middleware abstraction for Ruby")
7170 (description "Middleware is a generalized implementation of a middleware
7171 abstraction for Ruby.")
7172 (home-page "https://github.com/mitchellh/middleware")
7173 (license license:expat)))
7175 (define-public ruby-benchmark-ips
7177 (name "ruby-benchmark-ips")
7182 (uri (rubygems-uri "benchmark-ips" version))
7185 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
7186 (build-system ruby-build-system)
7188 `(("ruby-hoe" ,ruby-hoe)))
7189 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
7190 (description "Benchmark-ips enhances the Ruby Benchmark module with the
7191 iterations per second count. For short snippets of code, it can automatically
7192 figure out how many times to run the code to get interesting data.")
7193 (home-page "https://github.com/evanphx/benchmark-ips")
7194 (license license:expat)))
7196 (define-public ruby-ffi-rzmq-core
7198 (name "ruby-ffi-rzmq-core")
7203 (uri (rubygems-uri "ffi-rzmq-core" version))
7206 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
7207 (build-system ruby-build-system)
7210 (modify-phases %standard-phases
7211 (add-after 'unpack 'patch-libzmq-search-path
7212 (lambda* (#:key inputs #:allow-other-keys)
7213 (let ((zeromq (assoc-ref inputs "zeromq")))
7214 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
7216 (string-append zeromq "/lib")))
7220 (invoke "rspec"))))))
7222 `(("ruby-rspec" ,ruby-rspec)))
7224 `(("zeromq" ,zeromq)))
7225 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7226 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
7227 (description "This library only provides the FFI wrapper for the ZeroMQ
7228 networking library. It can be used to implement a Ruby API for the ZeroMQ
7230 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
7231 (license license:expat)))
7233 (define-public ruby-ffi-rzmq
7235 (name "ruby-ffi-rzmq")
7240 (uri (rubygems-uri "ffi-rzmq" version))
7243 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
7244 (build-system ruby-build-system)
7245 (arguments '(#:tests? #t
7246 #:phases (modify-phases %standard-phases
7249 (invoke "rspec"))))))
7251 `(("ruby-rspec" ,ruby-rspec)))
7253 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
7254 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
7255 (description "This library provides a high-level API that wraps the ZeroMQ
7256 networking library using the Ruby foreign function interface (FFI). It is a
7257 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
7259 (home-page "https://github.com/chuckremes/ffi-rzmq")
7260 (license license:expat)))
7262 (define-public ruby-sawyer
7264 (name "ruby-sawyer")
7269 (uri (rubygems-uri "sawyer" version))
7272 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
7273 (build-system ruby-build-system)
7275 `(("ruby-addressable" ,ruby-addressable)
7276 ("ruby-faraday" ,ruby-faraday)))
7277 (synopsis "Experimental hypermedia agent for Ruby")
7278 (description "Sawyer is an experimental hypermedia agent for Ruby built on
7280 (home-page "https://github.com/lostisland/sawyer")
7281 (license license:expat)))
7283 (define-public ruby-octokit
7285 (name "ruby-octokit")
7290 (uri (rubygems-uri "octokit" version))
7293 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
7294 (build-system ruby-build-system)
7295 (arguments '(#:tests? #f)) ;no test suite in the gem release
7297 `(("ruby-faraday" ,ruby-faraday)
7298 ("ruby-sawyer" ,ruby-sawyer)))
7299 (synopsis "Ruby toolkit for the GitHub API")
7300 (description "Octokit wraps the GitHub API in a flat API client that
7301 follows Ruby conventions and requires little knowledge of REST.")
7302 (home-page "https://github.com/octokit/octokit.rb")
7303 (license license:expat)))
7305 (define-public ruby-chandler
7307 (name "ruby-chandler")
7312 (uri (rubygems-uri "chandler" version))
7315 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
7316 (build-system ruby-build-system)
7318 `(("ruby-rubocop" ,ruby-rubocop)))
7320 `(("ruby-netrc" ,ruby-netrc)
7321 ("ruby-octokit" ,ruby-octokit)))
7322 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
7323 (description "Chandler syncs a project's CHANGELOG file entries to
7324 GitHub's release notes to remove the need of manually entering release
7326 (home-page "https://github.com/mattbrictson/chandler")
7327 (license license:expat)))
7329 (define-public ruby-pry-byebug
7331 (name "ruby-pry-byebug")
7337 (url "https://github.com/deivid-rodriguez/pry-byebug")
7338 (commit (string-append "v" version))))
7339 (file-name (git-file-name name version))
7342 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
7343 (build-system ruby-build-system)
7345 `(#:phases (modify-phases %standard-phases
7346 (add-before 'check 'set-home
7348 (setenv "HOME" (getcwd))
7351 `(("ruby-chandler" ,ruby-chandler)
7352 ("ruby-rubocop" ,ruby-rubocop)
7353 ("ruby-simplecov" ,ruby-simplecov)))
7355 `(("ruby-byebug" ,ruby-byebug-11)
7356 ("ruby-pry" ,ruby-pry)))
7357 (synopsis "Step-by-step debugging and stack navigation in Pry")
7358 (description "This package adds step-by-step debugging and stack
7359 navigation capabilities to @code{pry}, using @code{byebug}.")
7360 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
7361 (license license:expat)))
7363 (define-public ruby-binding-of-caller
7365 (name "ruby-binding-of-caller")
7370 (uri (rubygems-uri "binding_of_caller" version))
7373 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
7374 (build-system ruby-build-system)
7375 ;; Attempting to run the test suite fails with a rake deprecation error
7376 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
7377 (arguments '(#:tests? #f))
7379 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
7380 (synopsis "Retrieve the binding of a method's caller")
7381 (description "The @code{binding_of_caller} module provides the
7382 @code{Binding#of_caller} method. It allows accessing bindings from upper
7383 frames in the call stack and can evaluate code in that context.")
7384 (home-page "https://github.com/banister/binding_of_caller")
7385 (license license:expat)))
7387 (define-public ruby-pry-stack-explorer
7389 (name "ruby-pry-stack-explorer")
7394 (uri (rubygems-uri "pry-stack_explorer" version))
7397 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
7398 (build-system ruby-build-system)
7399 (arguments '(#:tests? #f)) ;no test suite in gem release
7401 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
7402 ("ruby-pry" ,ruby-pry)))
7403 (synopsis "Call-stack navigation plugin for the Pry REPL")
7404 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
7405 add support to navigate the call-stack.")
7406 (home-page "https://github.com/pry/pry-stack_explorer")
7407 (license license:expat)))
7409 (define-public ruby-varint
7411 (name "ruby-varint")
7416 (uri (rubygems-uri "varint" version))
7419 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
7420 (build-system ruby-build-system)
7421 (arguments '(#:tests? #f)) ;no test suite
7422 (synopsis "Variable length integers (varint) C extension for Ruby")
7423 (description "This package provides a small C extension to speed up
7424 variable length integers (varint) in Ruby Protocol Buffers.")
7425 (home-page "https://github.com/liquidm/varint")
7426 (license license:bsd-3)))
7428 (define-public ruby-ruby-prof
7430 (name "ruby-ruby-prof")
7435 (uri (rubygems-uri "ruby-prof" version))
7438 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
7439 (build-system ruby-build-system)
7442 (modify-phases %standard-phases
7443 (add-after 'unpack 'patch-rakefile
7444 ;; This fixes the following error: "NameError: uninitialized
7445 ;; constant Bundler::GemHelper" (see:
7446 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
7448 (substitute* "Rakefile"
7449 ((".*require \"bundler/setup\".*" all)
7450 (string-append all " require 'bundler/gem_tasks'\n")))
7452 ;; The LineNumbersTest test fails non-deterministically (see:
7453 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
7454 (add-after 'extract-gemspec 'delete-flaky-test
7456 (delete-file "test/line_number_test.rb")
7457 (substitute* "ruby-prof.gemspec"
7458 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
7460 (add-before 'check 'compile
7462 (invoke "rake" "compile"))))))
7464 `(("bundler" ,bundler)
7465 ("ruby-minitest" ,ruby-minitest)
7466 ("ruby-rake-compiler" ,ruby-rake-compiler)
7467 ("ruby-rdoc" ,ruby-rdoc)))
7468 (synopsis "Fast code profiler for Ruby")
7469 (description "RubyProf is a fast code profiler for Ruby. Its features
7473 Being a C extension, it is many times faster than the standard Ruby profiler.
7474 @item Measurement Modes
7475 It can measure program wall time, process time, object allocations and memory
7478 A variety of text and cross-referenced HTML reports can be generated.
7480 Profiling multiple threads simultaneously is supported.
7482 (home-page "https://github.com/ruby-prof/ruby-prof")
7483 (license license:bsd-2)))
7485 (define-public ruby-cucumber-messages
7487 (name "ruby-cucumber-messages")
7492 (url "https://github.com/cucumber/messages-ruby")
7493 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
7494 (file-name (git-file-name name version))
7497 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
7498 (build-system ruby-build-system)
7500 `(#:phases (modify-phases %standard-phases
7501 (add-after 'unpack 'patch-protobuf.rb
7503 (substitute* "rake/protobuf.rb"
7504 (("load 'protobuf/tasks/compile.rake'")
7505 "require 'protobuf/tasks'"))
7507 (add-before 'build 'compile
7509 (substitute* "Makefile"
7510 (("bundle exec ") "")
7511 (("include default.mk.*" all)
7512 (string-append "#" all)))
7516 (invoke "rspec"))))))
7518 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
7520 `(("ruby-rspec" ,ruby-rspec)))
7521 (home-page "https://github.com/cucumber/messages-ruby")
7522 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
7523 (description "Cucumber Messages for Ruby is a library which allows
7524 serialization and deserialization of the protocol buffer messages used in
7526 (license license:expat)))
7528 (define-public ruby-gherkin
7530 (name "ruby-gherkin")
7535 (url "https://github.com/cucumber/gherkin-ruby")
7536 (commit (string-append "v" version))))
7537 (file-name (git-file-name name version))
7540 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
7541 (build-system ruby-build-system)
7543 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7544 ("ruby-rspec" ,ruby-rspec)))
7546 `(#:test-target "spec"))
7547 (synopsis "Gherkin parser for Ruby")
7548 (description "Gherkin is a parser and compiler for the Gherkin language.
7549 It is intended be used by all Cucumber implementations to parse
7550 @file{.feature} files.")
7551 (home-page "https://github.com/cucumber/gherkin-ruby")
7552 (license license:expat)))
7554 (define-public ruby-gherkin-ruby
7556 (name "ruby-gherkin-ruby")
7558 (home-page "https://github.com/codegram/gherkin-ruby")
7561 (uri (rubygems-uri "gherkin-ruby" version))
7564 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
7565 (build-system ruby-build-system)
7566 (synopsis "Pure Ruby Gherkin parser")
7568 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
7569 200 lines of code.")
7570 ;; XXX: No license information anywhere but Readme.md.
7571 (license license:expat)))
7573 (define-public ruby-aruba
7580 (uri (rubygems-uri "aruba" version))
7583 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
7584 (build-system ruby-build-system)
7586 '(#:test-target "spec"
7588 (modify-phases %standard-phases
7589 (add-after 'unpack 'patch
7591 (substitute* "spec/aruba/api_spec.rb"
7592 ;; This resolves some errors in the specs
7594 ;; undefined method `parse' for Time:Class
7595 (("require 'spec_helper'")
7596 "require 'spec_helper'\nrequire 'time'"))
7597 ;; Avoid shebang issues in this spec file
7598 (substitute* "spec/aruba/matchers/command_spec.rb"
7599 (("/usr/bin/env bash")
7602 (add-before 'check 'remove-unnecessary-dependencies
7604 (substitute* "Gemfile"
7605 ((".*byebug.*") "\n")
7609 ((".*kramdown.*") "\n")
7610 ((".*rubocop.*") "\n")
7611 ((".*cucumber-pro.*") "\n")
7612 ((".*cucumber.*") "\n")
7613 ((".*license_finder.*") "\n")
7614 ((".*rake.*") "gem 'rake'\n")
7615 ((".*relish.*") "\n"))
7616 (substitute* "aruba.gemspec"
7617 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
7618 "spec.add_runtime_dependency 'cucumber'"))
7620 (add-before 'check 'set-home
7621 (lambda _ (setenv "HOME" "/tmp") #t)))))
7623 `(("bundler" ,bundler)
7624 ("ruby-rspec" ,ruby-rspec)
7625 ("ruby-fuubar" ,ruby-fuubar)
7626 ("ruby-simplecov" ,ruby-simplecov)))
7628 `(("ruby-childprocess" ,ruby-childprocess)
7629 ("ruby-contracts" ,ruby-contracts)
7630 ("ruby-cucumber" ,ruby-cucumber)
7631 ("ruby-ffi" ,ruby-ffi)
7632 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
7633 ("ruby-thor" ,ruby-thor)
7634 ("ruby-yard" ,ruby-yard)))
7635 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
7637 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
7638 command-line applications. It supports applications written in any
7640 (home-page "https://github.com/cucumber/aruba")
7641 (license license:expat)))
7643 ;; A version of ruby-aruba without tests run so that circular dependencies can
7645 (define ruby-aruba-without-tests
7647 (inherit ruby-aruba)
7648 (arguments '(#:tests? #f))
7650 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
7651 ,@(alist-delete "ruby-cucumber"
7652 (package-propagated-inputs ruby-aruba))))
7653 (native-inputs '())))
7655 (define-public ruby-sys-uname
7657 (name "ruby-sys-uname")
7662 (uri (rubygems-uri "sys-uname" version))
7665 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
7666 (build-system ruby-build-system)
7668 `(#:test-target "spec"))
7669 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
7670 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
7671 (synopsis "Ruby interface for gathering system information")
7672 (description "The sys-uname library provides an interface for gathering
7673 information about your current platform. It allows retrieving information
7674 such as the OS name, OS version, system name, etc.")
7675 (home-page "https://github.com/djberg96/sys-uname")
7676 (license license:asl2.0)))
7678 (define-public ruby-cucumber-create-meta
7680 (name "ruby-cucumber-create-meta")
7685 (uri (rubygems-uri "cucumber-create-meta" version))
7688 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
7689 (build-system ruby-build-system)
7691 `(#:phases (modify-phases %standard-phases
7692 (add-after 'extract-gemspec 'relax-version-requirements
7694 (substitute* ".gemspec"
7700 (invoke "rspec"))))))
7702 `(("ruby-rspec" ,ruby-rspec)))
7704 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7705 ("ruby-sys-uname" ,ruby-sys-uname)))
7706 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
7707 (description "The @code{createMeta} utility function allows generating
7708 system-specific @code{Meta} messages for Cucumber Ruby.")
7709 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
7710 (license license:expat)))
7712 (define-public ruby-cucumber-html-formatter
7714 (name "ruby-cucumber-html-formatter")
7719 (uri (rubygems-uri "cucumber-html-formatter" version))
7722 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
7723 (build-system ruby-build-system)
7725 `(#:phases (modify-phases %standard-phases
7728 (invoke "rspec"))))))
7730 `(("ruby-rspec" ,ruby-rspec)))
7732 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7733 (synopsis "HTML formatter for Cucumber")
7734 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
7735 runs. It is built on top of cucumber-react and works with any Cucumber
7736 implementation with a protocol buffer formatter that outputs Cucumber
7738 (home-page "https://github.com/cucumber/cucumber/tree/\
7739 master/html-formatter/ruby")
7740 (license license:expat)))
7742 (define-public ruby-cucumber
7744 (name "ruby-cucumber")
7750 (url "https://github.com/cucumber/cucumber-ruby")
7751 (commit (string-append "v" version))))
7752 (file-name (git-file-name name version))
7755 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
7756 (build-system ruby-build-system)
7758 '(#:test-target "default"
7760 (modify-phases %standard-phases
7761 (add-after 'unpack 'disable-rubocop
7762 ;; Rubocop lint check fails with our more recent version.
7764 (substitute* "Rakefile"
7765 (("spec cucumber rubocop")
7768 (add-after 'extract-gemspec 'strip-version-requirements
7770 (delete-file "Gemfile") ;do not use Bundler
7771 (substitute* "cucumber.gemspec"
7772 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
7773 (string-append stripped "\n")))
7775 (add-before 'check 'set-home
7777 (setenv "HOME" (getcwd))
7780 `(("ruby-builder" ,ruby-builder)
7781 ("ruby-cucumber-core" ,ruby-cucumber-core)
7782 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
7783 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
7784 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
7785 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
7786 ("ruby-diff-lcs" ,ruby-diff-lcs)
7787 ("ruby-gherkin" ,ruby-gherkin)
7788 ("ruby-multi-json" ,ruby-multi-json)
7789 ("ruby-multi-test" ,ruby-multi-test)))
7791 `(;; Use a untested version of aruba, to avoid a circular dependency, as
7792 ;; ruby-aruba depends on ruby-cucumber.
7793 ("ruby-aruba", ruby-aruba-without-tests)
7794 ("ruby-rspec" ,ruby-rspec)
7795 ("ruby-pry" ,ruby-pry)
7796 ("ruby-nokogiri" ,ruby-nokogiri)
7797 ("ruby-rubocop" ,ruby-rubocop)))
7798 (synopsis "Describe automated tests in plain language")
7799 (description "Cucumber is a tool for running automated tests written in
7800 plain language. It's designed to support a Behaviour Driven Development (BDD)
7801 software development workflow.")
7802 (home-page "https://cucumber.io/")
7803 (license license:expat)))
7805 (define ruby-cucumber-without-tests
7806 (package (inherit ruby-cucumber)
7812 (define-public ruby-coveralls
7814 (name "ruby-coveralls")
7819 (uri (rubygems-uri "coveralls" version))
7822 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
7823 (build-system ruby-build-system)
7824 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
7825 ;; because of its nonfree, Hippocratic-derived license.
7828 #:phases (modify-phases %standard-phases
7829 (add-after 'extract-gemspec 'strip-version-requirements
7830 ;; Keeping strict version requirements can cause problems
7831 ;; to users of the library, such as: Gem::ConflictError:
7832 ;; Unable to activate coveralls-0.8.23, because
7833 ;; simplecov-0.17.1 conflicts with simplecov (~> 0.16.1).
7835 (substitute* "coveralls-ruby.gemspec"
7836 (("(.*add_.*dependency\\([^,]+), .*" _ stripped)
7837 (string-append stripped ")\n")))
7840 `(("ruby-json" ,ruby-json)
7841 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
7842 ("ruby-thor" ,ruby-thor)
7843 ("ruby-tins" ,ruby-tins)))
7844 (synopsis "Ruby implementation of the Coveralls API")
7845 (description "This package provides a Ruby implementation of the Coveralls
7847 (home-page "https://coveralls.io")
7848 (license license:expat)))
7850 (define-public ruby-unindent
7852 (name "ruby-unindent")
7857 (uri (rubygems-uri "unindent" version))
7860 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
7861 (build-system ruby-build-system)
7862 (synopsis "Ruby method to unindent strings")
7863 (description "This module provides a @code{String#unindent} Ruby method to
7864 unindent strings, which can be useful to unindent multiline strings embedded
7865 in already-indented code.")
7866 (home-page "https://github.com/mynyml/unindent")
7867 (license license:expat)))
7869 (define-public ruby-cucumber-core
7871 (name "ruby-cucumber-core")
7877 (url "https://github.com/cucumber/cucumber-ruby-core")
7878 (commit (string-append "v" version))))
7879 (file-name (git-file-name name version))
7882 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
7883 (build-system ruby-build-system)
7885 `(#:test-target "spec"
7887 (modify-phases %standard-phases
7888 (add-after 'extract-gemspec 'relax-version-requirements
7890 (substitute* "cucumber-core.gemspec"
7891 (("'cucumber-tag-expressions',.*")
7892 "'cucumber-tag-expressions', '>=2.0.0'\n"))
7895 `(("ruby-rspec" ,ruby-rspec)
7896 ("ruby-coveralls" ,ruby-coveralls)
7897 ("ruby-rubocop" ,ruby-rubocop)
7898 ("ruby-simplecov" ,ruby-simplecov)
7899 ("ruby-unindent" ,ruby-unindent)))
7901 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
7902 ("ruby-gherkin" ,ruby-gherkin)
7903 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
7904 (synopsis "Core library for the Cucumber BDD app")
7905 (description "Cucumber is a tool for running automated tests
7906 written in plain language. Because they're written in plain language,
7907 they can be read by anyone on your team. Because they can be read by
7908 anyone, you can use them to help improve communication, collaboration
7909 and trust on your team.")
7910 (home-page "https://cucumber.io/")
7911 (license license:expat)))
7913 (define-public ruby-cucumber-expressions
7915 (name "ruby-cucumber-expressions")
7921 (url "https://github.com/cucumber/cucumber-expressions-ruby")
7922 (commit (string-append "v" version))))
7923 (file-name (git-file-name name version))
7926 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
7927 (build-system ruby-build-system)
7929 '(#:test-target "spec"))
7931 `(("ruby-rspec" ,ruby-rspec)
7932 ("ruby-simplecov" ,ruby-simplecov)))
7933 (synopsis "Simpler alternative to Regular Expressions")
7934 (description "Cucumber Expressions offer similar functionality to Regular
7935 Expressions, with a syntax that is easier to read and write. Cucumber
7936 Expressions are extensible with parameter types.")
7937 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7938 (license license:expat)))
7940 (define-public ruby-cucumber-wire
7942 (name "ruby-cucumber-wire")
7947 (uri (rubygems-uri "cucumber-wire" version))
7950 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
7951 (build-system ruby-build-system)
7953 '(#:tests? #f ;tests use cucumber, causing a cycle
7955 (modify-phases %standard-phases
7956 (add-after 'extract-gemspec 'relax-version-requirements
7958 (substitute* ".gemspec"
7959 ((" 10\\.1") " 10.2"))
7962 `(("ruby-cucumber-core" ,ruby-cucumber-core)
7963 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
7964 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7965 (synopsis "Cucumber wire protocol plugin")
7966 (description "Cucumber's wire protocol allows step definitions to be
7967 implemented and invoked on any platform.")
7968 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
7969 (license license:expat)))
7971 (define-public ruby-cucumber-tag-expressions
7973 (name "ruby-cucumber-tag-expressions")
7979 (url "https://github.com/cucumber/tag-expressions-ruby")
7980 (commit (string-append "v" version))))
7981 (file-name (git-file-name name version))
7984 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
7985 (build-system ruby-build-system)
7987 `(#:test-target "spec"))
7989 `(("ruby-rspec" ,ruby-rspec)))
7990 (synopsis "Cucumber tag expressions for Ruby")
7991 (description "Cucumber tag expression parser for Ruby. A tag expression
7992 is an infix boolean expression used by Cucumber.")
7993 (home-page "https://github.com/cucumber/tag-expressions-ruby")
7994 (license license:expat)))
7996 (define-public ruby-bindex
7998 (name "ruby-bindex")
8003 (uri (rubygems-uri "bindex" version))
8006 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
8007 (build-system ruby-build-system)
8009 '(#:test-target "default"))
8011 `(("bundler" ,bundler)
8012 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8013 (synopsis "Provides access for bindings relating to Ruby exceptions")
8015 "@code{bindex} provides a way to access the bindings that relate to
8016 exceptions in Ruby, providing more information about the context in which the
8017 exception occurred.")
8018 (home-page "https://github.com/gsamokovarov/bindex")
8019 (license license:expat)))
8021 (define-public ruby-bio-logger
8023 (name "ruby-bio-logger")
8028 (uri (rubygems-uri "bio-logger" version))
8031 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
8032 (build-system ruby-build-system)
8034 `(#:tests? #f)) ; rake errors, missing shoulda
8036 `(("ruby-log4r" ,ruby-log4r)))
8037 (synopsis "Log4r wrapper for Ruby")
8038 (description "Bio-logger is a wrapper around Log4r adding extra logging
8039 features such as filtering and fine grained logging.")
8040 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
8041 (license license:expat)))
8043 (define-public ruby-yajl-ruby
8045 (name "ruby-yajl-ruby")
8050 (uri (rubygems-uri "yajl-ruby" version))
8053 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
8054 (build-system ruby-build-system)
8056 '(#:test-target "spec"
8058 (modify-phases %standard-phases
8059 (add-before 'check 'patch-test-to-update-load-path
8061 (substitute* "spec/parsing/large_number_spec.rb"
8062 (("require \"yajl\"")
8063 "$LOAD_PATH << 'lib'; require 'yajl'"))
8066 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8067 ("ruby-rspec" ,ruby-rspec)))
8068 (synopsis "Streaming JSON parsing and encoding library for Ruby")
8070 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
8071 is compatible with the JSON gem, so yajl-ruby can act as a drop in
8074 A modified copy of yajl is used, and included in the package.")
8075 (home-page "https://github.com/brianmario/yajl-ruby")
8076 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
8077 license:bsd-3)))) ; Included, modified copy of yajl
8079 (define-public ruby-yard
8086 ;; Tests do not pass if we build from the distributed gem.
8088 (url "https://github.com/lsegal/yard")
8089 (commit (string-append "v" version))))
8090 (file-name (git-file-name name version))
8093 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
8094 (build-system ruby-build-system)
8096 ;; Note: Tests are willfully disabled to alleviate dependency cycle
8099 #:phases (modify-phases %standard-phases
8100 (add-after 'unpack 'do-not-set-date-in-gemspec
8101 ;; Fix a reproducibility issue (see:
8102 ;; https://github.com/lsegal/yard/issues/1343).
8104 (substitute* "yard.gemspec"
8105 ((".*s\\.date.*") ""))
8107 (synopsis "Documentation generation tool for Ruby")
8108 (description "YARD is a documentation generation tool for the Ruby
8109 programming language. It enables the user to generate consistent, usable
8110 documentation that can be exported to a number of formats very easily, and
8111 also supports extending for custom Ruby constructs such as custom class level
8113 (home-page "https://yardoc.org")
8114 (license license:expat)))
8116 (define-public ruby-yard-with-tests
8119 (name "ruby-yard-with-tests")
8121 (substitute-keyword-arguments (package-arguments ruby-yard)
8122 ((#:tests? _ #t) #t)
8123 ((#:test-target _ "default") "default")
8124 ((#:phases phases '%standard-phases)
8125 `(modify-phases ,phases
8126 (add-before 'check 'prepare-for-tests
8127 (lambda* (#:key tests? #:allow-other-keys)
8129 (substitute* "Rakefile"
8130 ((".*[Ss]amus.*") ""))
8131 ;; Delete the Gemfile to avoid errors relating to it.
8132 (delete-file "Gemfile")
8133 ;; $HOME needs to be set to somewhere writeable for tests to
8135 (setenv "HOME" "/tmp"))
8138 `(("ruby-rspec" ,ruby-rspec)
8139 ("ruby-rack" ,ruby-rack)
8140 ("ruby-redcloth" ,ruby-redcloth)
8141 ("ruby-asciidoc" ,ruby-asciidoctor)))))
8143 (define-public ruby-spectroscope
8145 (name "ruby-spectroscope")
8150 (uri (rubygems-uri "spectroscope" version))
8153 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
8154 (build-system ruby-build-system)
8157 (modify-phases %standard-phases
8160 (with-output-to-file ".test"
8169 Test.run :default do |run|
8170 run.files << 'spec/*_spec.rb'
8172 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
8174 `(("ruby-ae" ,ruby-ae)
8175 ("ruby-rspec" ,ruby-rspec)))
8177 `(("ruby-rubytest" ,ruby-rubytest)))
8178 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
8179 (description "Spectroscope is a Behavior-Driven Development (BDD)
8180 framework built on RubyTest, designed to emulate RSpec in most respects. It
8181 is assertion framework independent so any number of assertion systems can be
8182 used, such as Assay or AE.")
8183 (home-page "http://rubyworks.github.com/spectroscope/")
8184 (license license:bsd-2)))
8186 (define-public ruby-tomparse
8188 (name "ruby-tomparse")
8193 (uri (rubygems-uri "tomparse" version))
8196 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
8197 (build-system ruby-build-system)
8198 ;; TODO: Tests require citron and rulebow, not yet packaged.
8199 (arguments '(#:tests? #f))
8200 (synopsis "TomDoc parser for Ruby")
8201 (description "TomParse is a TomDoc parser for Ruby. It takes a code
8202 comment as input and parses it into a convenient object-oriented structure in
8203 accordance with the TomDoc standard. See
8204 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
8206 (home-page "http://rubyworks.github.com/tomparse/")
8207 (license license:bsd-2)))
8209 (define-public ruby-yard-tomdoc
8211 (name "ruby-yard-tomdoc")
8216 (uri (rubygems-uri "yard-tomdoc" version))
8219 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
8220 (build-system ruby-build-system)
8222 `(#:phases (modify-phases %standard-phases
8225 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8227 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8228 ("ruby-spectroscope" ,ruby-spectroscope)
8229 ("ruby-ae" ,ruby-ae)))
8231 `(("ruby-tomparse" ,ruby-tomparse)
8232 ("ruby-yard" ,ruby-yard)))
8233 (synopsis "TomDoc syntax for YARD")
8234 (description "This module adds support for the TomDoc documentation format
8235 to YARD, a documentation generation tool for Ruby.")
8236 (home-page "http://rubyworks.github.com/yard-tomdoc/")
8237 (license license:expat)))
8239 (define-public ruby-clap
8245 (uri (rubygems-uri "clap" version))
8248 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
8249 (build-system ruby-build-system)
8250 ;; Clap needs cutest for running tests, but cutest needs clap.
8251 (arguments `(#:tests? #f))
8252 (synopsis "Command line argument parsing for simple applications")
8254 "Clap provides command line argument parsing features. It covers the
8255 simple case of executing code based on the flags or parameters passed.")
8256 (home-page "https://github.com/djanowski/cutest")
8257 (license license:expat)))
8259 (define-public ruby-cutest
8261 (name "ruby-cutest")
8265 (uri (rubygems-uri "cutest" version))
8268 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
8269 (build-system ruby-build-system)
8271 `(("ruby-clap" ,ruby-clap)))
8272 (synopsis "Run tests in separate processes")
8274 "Cutest runs tests in separate processes to avoid shared state.")
8275 (home-page "https://github.com/djanowski/cutest")
8276 (license license:expat)))
8278 (define-public ruby-pygmentize
8280 (name "ruby-pygmentize")
8284 (uri (rubygems-uri "pygmentize" version))
8287 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
8288 (build-system ruby-build-system)
8291 (modify-phases %standard-phases
8292 (add-after 'unpack 'fix-pygmentize-path
8294 (substitute* "lib/pygmentize.rb"
8295 (("\"/usr/bin/env python.*")
8296 (string-append "\"" (which "pygmentize") "\"\n")))
8298 (add-after 'build 'do-not-use-vendor-directory
8300 ;; Remove bundled pygments sources
8301 ;; FIXME: ruby-build-system does not support snippets.
8302 (delete-file-recursively "vendor")
8303 (substitute* "pygmentize.gemspec"
8304 (("\"vendor/\\*\\*/\\*\",") ""))
8307 `(("pygments" ,python-pygments)))
8309 `(("ruby-cutest" ,ruby-cutest)
8310 ("ruby-nokogiri" ,ruby-nokogiri)))
8311 (synopsis "Thin Ruby wrapper around pygmentize")
8313 "Pygmentize provides a simple way to call pygmentize from within a Ruby
8315 (home-page "https://github.com/djanowski/pygmentize")
8316 (license license:expat)))
8318 (define-public ruby-eventmachine
8320 (name "ruby-eventmachine")
8325 (uri (rubygems-uri "eventmachine" version))
8328 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
8329 (build-system ruby-build-system)
8331 '(#:tests? #f)) ; test suite tries to connect to google.com
8333 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
8334 (synopsis "Single-threaded network event framework for Ruby")
8336 "EventMachine implements a single-threaded engine for arbitrary network
8337 communications. EventMachine wraps all interactions with sockets, allowing
8338 programs to concentrate on the implementation of network protocols. It can be
8339 used to create both network servers and clients.")
8340 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
8341 (home-page "https://github.com/eventmachine/eventmachine")
8342 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
8344 (define-public ruby-ruby-engine
8346 (name "ruby-ruby-engine")
8351 (uri (rubygems-uri "ruby_engine" version))
8354 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
8355 (build-system ruby-build-system)
8358 (modify-phases %standard-phases
8359 (add-after 'extract-gemspec 'clean-up
8361 (delete-file "Gemfile.lock")
8362 (substitute* "ruby_engine.gemspec"
8363 ;; Remove unnecessary imports that would entail further
8366 ((".*<rubygems-tasks.*") "")
8367 ;; Remove extraneous .gem file
8368 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
8369 (("\"Gemfile.lock\".freeze, ") "")
8370 ;; Soften rake dependency
8371 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
8372 "%q<rake>.freeze, [\">= 10.0\"]")
8373 ;; Soften the rspec dependency
8374 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
8375 "%q<rspec>.freeze, [\">= 2.4\"]"))
8376 (substitute* "Rakefile"
8377 (("require 'rubygems/tasks'") "")
8378 (("Gem::Tasks.new") ""))
8379 ;; Remove extraneous .gem file that otherwise gets installed.
8380 (delete-file-recursively "pkg")
8383 `(("bundler" ,bundler)
8384 ("ruby-rake" ,ruby-rake)
8385 ("ruby-rspec" ,ruby-rspec)))
8386 (synopsis "Simplifies checking for Ruby implementation")
8388 "@code{ruby_engine} provides an RubyEngine class that can be used to
8389 check which implementation of Ruby is in use. It can provide the interpreter
8390 name and provides query methods such as @{RubyEngine.mri?}.")
8391 (home-page "https://github.com/janlelis/ruby_engine")
8392 (license license:expat)))
8394 (define-public ruby-turn
8401 (uri (rubygems-uri "turn" version))
8404 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
8405 (build-system ruby-build-system)
8408 (modify-phases %standard-phases
8409 ;; Tests fail because turn changes its environment so can no longer
8410 ;; find test/unit. Instead simply test if the executable runs
8414 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
8416 `(("ruby-ansi" ,ruby-ansi)
8417 ("ruby-minitest" ,ruby-minitest-4)))
8418 (synopsis "Alternate set of alternative runners for MiniTest")
8420 "TURN provides a set of alternative runners for MiniTest which are both
8421 colorful and informative. TURN displays each test on a separate line with
8422 failures being displayed immediately instead of at the end of the tests. Note
8423 that TURN is no longer being maintained.")
8424 (home-page "https://rubygems.org/gems/turn")
8425 (license license:expat)))
8427 (define-public ruby-mimemagic
8429 (name "ruby-mimemagic")
8434 (uri (rubygems-uri "mimemagic" version))
8436 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
8437 (build-system ruby-build-system)
8440 (modify-phases %standard-phases
8441 ;; This phase breaks the tests, as it patches some of the test data.
8442 (delete 'patch-source-shebangs))))
8444 `(("ruby-bacon" ,ruby-bacon)))
8445 (synopsis "Ruby library for MIME detection by extension or content")
8447 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
8448 extension or content, using the freedesktop.org.xml shared-mime-info
8450 (home-page "https://github.com/minad/mimemagic")
8451 (license license:expat)))
8453 (define-public ruby-mime-types-data
8455 (name "ruby-mime-types-data")
8456 (version "3.2016.0521")
8460 (uri (rubygems-uri "mime-types-data" version))
8463 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
8464 (build-system ruby-build-system)
8466 `(("ruby-hoe" ,ruby-hoe)))
8467 (synopsis "Registry for information about MIME media type definitions")
8469 "@code{mime-types-data} provides a registry for information about
8470 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
8471 be used with the Ruby mime-types library or other software to determine
8472 defined filename extensions for MIME types, or to use filename extensions to
8473 look up the likely MIME type definitions.")
8474 (home-page "https://github.com/mime-types/mime-types-data/")
8475 (license license:expat)))
8477 (define-public ruby-mime-types
8479 (name "ruby-mime-types")
8484 (uri (rubygems-uri "mime-types" version))
8487 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
8488 (build-system ruby-build-system)
8490 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
8492 `(("ruby-hoe" ,ruby-hoe)
8493 ("ruby-fivemat" ,ruby-fivemat)
8494 ("ruby-minitest-focus" ,ruby-minitest-focus)
8495 ("ruby-minitest-rg" ,ruby-minitest-rg)
8496 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
8497 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
8498 (synopsis "Library and registry for MIME content type definitions")
8499 (description "The mime-types library provides a library and registry for
8500 information about Multipurpose Internet Mail Extensions (MIME) content type
8501 definitions. It can be used to determine defined filename extensions for MIME
8502 types, or to use filename extensions to look up the likely MIME type
8504 (home-page "https://github.com/mime-types/ruby-mime-types")
8505 (license license:expat)))
8507 (define-public ruby-fivemat
8509 (name "ruby-fivemat")
8514 (uri (rubygems-uri "fivemat" version))
8517 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
8518 (build-system ruby-build-system)
8520 `(#:tests? #f)) ; no tests
8521 (synopsis "Each test file given its own line of dots")
8523 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
8524 its own line of dots during testing. It aims to provide test output that is
8525 neither too verbose nor too minimal.")
8526 (home-page "https://github.com/tpope/fivemat")
8527 (license license:expat)))
8529 (define-public ruby-sqlite3
8531 (name "ruby-sqlite3")
8536 (uri (rubygems-uri "sqlite3" version))
8539 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
8540 (build-system ruby-build-system)
8543 (modify-phases %standard-phases
8544 (add-before 'check 'add-gemtest-file
8545 ;; This file exists in the repository but is not distributed.
8546 (lambda _ (invoke "touch" ".gemtest"))))))
8548 `(("sqlite" ,sqlite)))
8550 `(("ruby-hoe" ,ruby-hoe)
8551 ("ruby-rake-compiler" ,ruby-rake-compiler)
8552 ("ruby-mini-portile" ,ruby-mini-portile)))
8553 (synopsis "Interface with SQLite3 databases")
8555 "This module allows Ruby programs to interface with the SQLite3 database
8558 "https://github.com/sparklemotion/sqlite3-ruby")
8559 (license license:bsd-3)))
8561 (define-public ruby-shoulda-context
8563 (name "ruby-shoulda-context")
8568 (uri (rubygems-uri "shoulda-context" version))
8571 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
8572 (build-system ruby-build-system)
8575 (modify-phases %standard-phases
8578 ;; Do not run tests to avoid circular dependence with rails.
8579 ;; Instead just import the library to test.
8580 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
8581 (synopsis "Test::Unit context framework extracted from Shoulda")
8583 "@code{shoulda-context} is the context framework extracted from Shoulda.
8584 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
8585 context, setup, and should blocks combine to produce natural test method
8587 (home-page "https://github.com/thoughtbot/shoulda-context")
8588 (license license:expat)))
8590 (define-public ruby-shoulda-matchers
8592 (name "ruby-shoulda-matchers")
8597 (uri (rubygems-uri "shoulda-matchers" version))
8600 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
8601 (build-system ruby-build-system)
8604 (modify-phases %standard-phases
8607 ;; Do not run tests to avoid circular dependence with rails. Instead
8608 ;; just import the library to test.
8609 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
8611 `(("ruby-activesupport" ,ruby-activesupport)))
8612 (synopsis "Collection of testing matchers extracted from Shoulda")
8614 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
8615 test common Rails functionality. These tests would otherwise be much longer,
8616 more complex, and error-prone.")
8617 (home-page "https://github.com/thoughtbot/shoulda-matchers")
8618 (license license:expat)))
8620 (define-public ruby-shoulda-matchers-2
8622 (inherit ruby-shoulda-matchers)
8626 (uri (rubygems-uri "shoulda-matchers" version))
8629 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
8631 (define-public ruby-shoulda
8633 (name "ruby-shoulda")
8638 (uri (rubygems-uri "shoulda" version))
8641 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
8642 (build-system ruby-build-system)
8645 (modify-phases %standard-phases
8647 ;; Don't run tests to avoid circular dependence with rails. Instead
8648 ;; just import the library to test.
8649 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
8651 `(("ruby-shoulda-context" ,ruby-shoulda-context)
8652 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
8653 (synopsis "Context framework and matchers for testing")
8655 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
8656 @code{shoulda-matchers} providing tools for writing tests.")
8657 (home-page "https://github.com/thoughtbot/shoulda")
8658 (license license:expat)))
8660 (define-public ruby-unf
8667 (uri (rubygems-uri "unf" version))
8670 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
8671 (build-system ruby-build-system)
8674 (modify-phases %standard-phases
8675 (add-before 'check 'add-dependency-to-bundler
8677 ;; test-unit is required but not provided by the bundler
8678 ;; environment. This is fixed in the upstream repository but fix
8679 ;; has not been released.
8680 (substitute* "Gemfile"
8681 (("^gemspec") "gem 'test-unit'\ngemspec"))
8684 `(("ruby-unf-ext" ,ruby-unf-ext)))
8686 `(("ruby-shoulda" ,ruby-shoulda)
8687 ("bundler" ,bundler)
8688 ("ruby-test-unit" ,ruby-test-unit)))
8689 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
8691 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
8692 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
8693 @code{java.text.Normalizer} on JRuby.")
8694 (home-page "https://github.com/knu/ruby-unf")
8695 (license license:bsd-2)))
8697 (define-public ruby-warden
8699 (name "ruby-warden")
8704 (uri (rubygems-uri "warden" version))
8707 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
8708 (build-system ruby-build-system)
8710 '(#:tests? #f)) ; No included tests
8712 `(("ruby-rack" ,ruby-rack)))
8713 (synopsis "Rack middleware providing authentication")
8715 "Warden is a Rack-based middleware that provides a mechanism for
8716 authentication in Ruby web applications.")
8717 (home-page "https://github.com/wardencommunity/warden")
8718 (license license:expat)))
8720 (define-public ruby-warden-oauth2
8722 (name "ruby-warden-oauth2")
8727 (uri (rubygems-uri "warden-oauth2" version))
8730 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
8731 (build-system ruby-build-system)
8733 '(#:test-target "spec"
8735 (modify-phases %standard-phases
8736 (add-after 'unpack 'remove-unnecessary-dependencies
8738 (substitute* "Gemfile"
8739 ;; All of these gems relate to development, and are unnecessary
8740 ;; when running the tests
8741 (("gem 'guard-bundler'") "")
8742 (("gem 'guard'") "")
8743 (("gem 'guard-rspec'") "")
8744 (("gem 'rb-fsevent'") "")
8746 (("gem 'growl'") ""))
8748 ;; The test suite doesn't work with rspec@2, and this is incompatible
8749 ;; with the current version of Rake, so invoke Rspec directly
8751 (lambda* (#:key tests? #:allow-other-keys)
8753 (invoke "bundle" "exec" "rspec"))
8756 `(("ruby-warden" ,ruby-warden)))
8758 `(("bundler" ,bundler)
8759 ("ruby-rspec" ,ruby-rspec-2)
8760 ("ruby-rack-test" ,ruby-rack-test)))
8761 (synopsis "OAuth 2.0 strategies for Warden")
8763 "This library extends Warden to support OAuth 2.0 authorized API
8765 (home-page "https://github.com/opperator/warden-oauth2")
8766 (license license:expat)))
8768 (define-public ruby-webmock-2
8770 (name "ruby-webmock")
8775 (uri (rubygems-uri "webmock" version))
8778 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
8779 (build-system ruby-build-system)
8781 `(("bundler" ,bundler)
8782 ("ruby-rspec" ,ruby-rspec)))
8784 `(("ruby-addressable" ,ruby-addressable)
8785 ("ruby-crack" ,ruby-crack)
8786 ("ruby-hashdiff" ,ruby-hashdiff)))
8787 (synopsis "Allows stubbing and setting expectations on HTTP requests")
8789 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
8790 requests. This is useful when testing software.")
8791 (home-page "https://github.com/bblimke/webmock")
8792 (license license:expat)))
8794 (define-public ruby-unicode-display-width
8796 (name "ruby-unicode-display-width")
8801 (uri (rubygems-uri "unicode-display_width" version))
8804 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
8805 (build-system ruby-build-system)
8807 '(;; Test data not included.
8809 (synopsis "Determine the monospace display width of Ruby strings")
8811 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
8812 display width of strings in Ruby.")
8813 (home-page "https://github.com/janlelis/unicode-display_width")
8814 (license license:expat)))
8816 ;; There is another gem called 'ruby-version' so we use an underscore in this
8818 (define-public ruby_version
8820 (name "ruby_version")
8825 (uri (rubygems-uri "ruby_version" version))
8828 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
8829 (build-system ruby-build-system)
8832 (modify-phases %standard-phases
8833 (add-before 'check 'fix-dependencies
8835 ;; Remove the Gemfile.lock, as we want to use Guix packages at
8836 ;; whatever versions.
8837 (delete-file "Gemfile.lock")
8838 ;; Remove the included gem files as they unnecessary.
8839 (delete-file-recursively "pkg/")
8840 ;; Accept any version of rake, rdoc and rspec
8841 (substitute* "ruby_version.gemspec"
8842 (("%q<rake.*") "%q<rake>)\n")
8843 (("%q<rdoc.*") "%q<rdoc>)\n")
8844 (("%q<rspec.*") "%q<rspec>)\n"))
8845 ;; Do not use bundler.
8846 (substitute* "Rakefile"
8847 (("Bundler\\.setup.*") "nil\n"))
8850 `(("ruby-rdoc" ,ruby-rdoc)
8851 ("ruby-rspec" ,ruby-rspec)
8852 ("ruby-rubygems-tasks", ruby-rubygems-tasks)))
8853 (synopsis "Ruby library to help check the Ruby version")
8854 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
8855 checking for the right Ruby version in software.")
8856 (home-page "https://github.com/janlelis/ruby_version")
8857 (license license:expat)))
8859 (define-public ruby-websocket-driver
8861 (name "ruby-websocket-driver")
8866 (uri (rubygems-uri "websocket-driver" version))
8868 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
8869 (build-system ruby-build-system)
8871 '(#:tests? #f)) ; no included tests
8873 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
8874 (synopsis "WebSocket protocol handler with pluggable I/O")
8876 "@code{websocket-driver} provides a complete implementation of the
8877 WebSocket protocols that can be hooked up to any TCP library")
8878 (home-page "https://github.com/faye/websocket-driver-ruby")
8879 (license license:expat)))
8881 (define-public ruby-websocket-extensions
8883 (name "ruby-websocket-extensions")
8888 (uri (rubygems-uri "websocket-extensions" version))
8891 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
8892 (build-system ruby-build-system)
8894 '(;; No included tests
8896 (synopsis "Generic extension manager for WebSocket connections")
8898 "@code{websocket-extensions} provides a container for registering
8899 extension plugins.")
8900 (home-page "https://github.com/faye/websocket-extensions-ruby")
8901 (license license:expat)))
8903 (define-public ruby-domain-name
8905 (name "ruby-domain-name")
8906 (version "0.5.20180417")
8910 (uri (rubygems-uri "domain_name" version))
8913 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
8914 (build-system ruby-build-system)
8917 (modify-phases %standard-phases
8918 (add-before 'check 'fix-versions
8920 ;; Fix NameError that appears to already be fixed upstream.
8921 (substitute* "Rakefile"
8922 (("DomainName::VERSION")
8923 "Bundler::GemHelper.gemspec.version"))
8924 ;; Loosen unnecessarily strict test-unit version specification.
8925 (substitute* "domain_name.gemspec"
8926 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
8929 `(("ruby-unf" ,ruby-unf)))
8931 `(("ruby-shoulda" ,ruby-shoulda)
8932 ("bundler" ,bundler)
8933 ("ruby-test-unit" ,ruby-test-unit)))
8934 (synopsis "Domain name manipulation library")
8936 "@code{domain_name} is a Domain name manipulation library. It parses a
8937 domain name ready for extracting the registered domain and TLD (Top Level
8938 Domain). It can also be used for cookie domain validation based on the Public
8940 (home-page "https://github.com/knu/ruby-domain_name")
8941 (license license:bsd-2)))
8943 (define-public ruby-http-cookie
8945 (name "ruby-http-cookie")
8950 (uri (rubygems-uri "http-cookie" version))
8953 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
8954 (build-system ruby-build-system)
8957 (modify-phases %standard-phases
8958 (add-before 'check 'add-dependency-to-bundler
8961 (substitute* "Rakefile"
8962 (("HTTP::Cookie::VERSION")
8963 "Bundler::GemHelper.gemspec.version"))
8966 `(("ruby-domain-name" ,ruby-domain-name)))
8968 `(("rubysimplecov" ,ruby-simplecov)
8969 ("bundler" ,bundler)
8970 ("ruby-sqlite3" ,ruby-sqlite3)
8971 ("ruby-test-unit" ,ruby-test-unit)))
8972 (synopsis "Handle HTTP Cookies based on RFC 6265")
8974 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
8975 RFC 6265. It has been designed with security, standards compliance and
8976 compatibility in mind, to behave just the same as today's major web browsers.
8977 It has built-in support for the legacy @code{cookies.txt} and
8978 @code{cookies.sqlite} formats of Mozilla Firefox.")
8979 (home-page "https://github.com/sparklemotion/http-cookie")
8980 (license license:expat)))
8982 (define-public ruby-httpclient
8984 (name "ruby-httpclient")
8989 (uri (rubygems-uri "httpclient" version))
8992 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
8993 (build-system ruby-build-system)
8995 '(;; TODO: Some tests currently fail
8997 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
8998 ;; 2 omissions, 0 notifications
9001 ;; 6.49 tests/s, 22.41 assertions/s
9004 (modify-phases %standard-phases
9006 (lambda* (#:key tests? #:allow-other-keys)
9013 `(("ruby-rack" ,ruby-rack)))
9015 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
9017 "The @code{httpclient} ruby library provides functionality related to
9018 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
9019 Cookie, multithreading and authentication (digest, NTLM) support.
9021 Also provided is a @command{httpclient} command, which can perform HTTP
9022 requests either using arguments or with an interactive prompt.")
9023 (home-page "https://github.com/nahi/httpclient")
9024 (license license:ruby)))
9026 (define-public ruby-ansi
9033 ;; Fetch from GitHub as the gem does not contain testing code.
9035 (url "https://github.com/rubyworks/ansi")
9037 (file-name (git-file-name name version))
9040 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
9041 (build-system ruby-build-system)
9044 (modify-phases %standard-phases
9045 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
9046 ;; cycle ansi, qed, ansi. Instead simply test that the library can
9050 (invoke "ruby" "-Ilib" "-r" "ansi")))
9051 (add-before 'validate-runpath 'replace-broken-symlink
9052 (lambda* (#:key outputs #:allow-other-keys)
9053 (let* ((out (assoc-ref outputs "out"))
9054 (file (string-append
9055 out "/lib/ruby/vendor_ruby/gems/ansi-"
9056 ,version "/lib/ansi.yml")))
9057 ;; XXX: This symlink is broken since ruby 2.4.
9058 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9060 (symlink "../.index" file)
9062 (synopsis "ANSI escape code related libraries")
9064 "This package is a collection of ANSI escape code related libraries
9065 enabling ANSI colorization and stylization of console output. Included in the
9066 library are the @code{Code} module, which defines ANSI codes as constants and
9067 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
9068 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
9069 @code{Terminal} module which provides information about the current output
9071 (home-page "https://rubyworks.github.io/ansi/")
9072 (license license:bsd-2)))
9074 (define-public ruby-systemu
9076 (name "ruby-systemu")
9081 (uri (rubygems-uri "systemu" version))
9084 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
9085 (build-system ruby-build-system)
9088 (modify-phases %standard-phases
9089 (add-before 'check 'set-version
9091 (setenv "VERSION" ,version)
9093 (synopsis "Capture of stdout/stderr and handling of child processes")
9095 "Systemu can be used on any platform to return status, stdout, and stderr
9096 of any command. Unlike other methods like @code{open3} and @code{popen4}
9097 there is no danger of full pipes or threading issues hanging your process or
9099 (home-page "https://github.com/ahoward/systemu")
9100 (license license:ruby)))
9102 (define-public ruby-bio-commandeer
9104 (name "ruby-bio-commandeer")
9109 (uri (rubygems-uri "bio-commandeer" version))
9112 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
9113 (build-system ruby-build-system)
9116 (modify-phases %standard-phases
9118 ;; Run test without calling 'rake' so that jeweler is
9119 ;; not required as an input.
9121 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
9123 `(("ruby-bio-logger" ,ruby-bio-logger)
9124 ("ruby-systemu" ,ruby-systemu)))
9126 `(("bundler" ,bundler)
9127 ("ruby-rspec" ,ruby-rspec)))
9128 (synopsis "Simplified running of shell commands from within Ruby")
9130 "Bio-commandeer provides an opinionated method of running shell commands
9131 from within Ruby. The advantage of bio-commandeer over other methods of
9132 running external commands is that when something goes wrong, messages printed
9133 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
9134 detail to ease debugging.")
9135 (home-page "https://github.com/wwood/bioruby-commandeer")
9136 (license license:expat)))
9138 (define-public ruby-rubytest
9140 (name "ruby-rubytest")
9145 (uri (rubygems-uri "rubytest" version))
9148 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
9149 (build-system ruby-build-system)
9151 ;; Disable regular testing to break the cycle rubytest, qed, brass,
9152 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
9153 ;; simply test that the library can be require'd.
9155 (modify-phases %standard-phases
9158 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
9160 `(("ruby-ansi" ,ruby-ansi)))
9161 (synopsis "Universal test harness for Ruby")
9163 "Rubytest is a testing meta-framework for Ruby. It can handle any
9164 compliant test framework and can run tests from multiple frameworks in a
9166 (home-page "https://rubyworks.github.io/rubytest")
9167 (license license:bsd-2)))
9169 (define-public ruby-brass
9176 (uri (rubygems-uri "brass" version))
9179 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
9180 (build-system ruby-build-system)
9182 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
9183 ;; Instead simply test that the library can be require'd.
9185 (modify-phases %standard-phases
9188 (invoke "ruby" "-Ilib" "-r" "brass"))))))
9189 (synopsis "Basic foundational assertions framework")
9191 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
9192 foundational assertions framework for other assertion and test frameworks to
9194 (home-page "https://rubyworks.github.io/brass")
9195 (license license:bsd-2)))
9197 (define-public ruby-qed
9204 (uri (rubygems-uri "qed" version))
9207 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
9208 (build-system ruby-build-system)
9210 ;; Disable testing to break the cycle qed, ansi, qed, among others.
9211 ;; Instead simply test that the executable runs using --copyright.
9213 (modify-phases %standard-phases
9216 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
9218 `(("ruby-ansi" ,ruby-ansi)
9219 ("ruby-brass" ,ruby-brass)))
9220 (synopsis "Test framework utilizing literate programming techniques")
9222 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
9223 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
9224 Development} (BDD) utilizing Literate Programming techniques. QED sits
9225 somewhere between lower-level testing tools like @code{Test::Unit} and
9226 requirement specifications systems like Cucumber.")
9227 (home-page "https://rubyworks.github.io/qed")
9228 (license license:bsd-2)))
9230 (define-public ruby-que
9233 (version "1.0.0.beta3")
9237 (uri (rubygems-uri "que" version))
9240 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
9241 (build-system ruby-build-system)
9243 '(#:tests? #f)) ; No included tests
9244 (synopsis "Job queue using PostgreSQL written in Ruby")
9246 "This package provides a job queue that uses PostgreSQL for storing jobs
9247 and locking between worker processes.")
9248 (home-page "https://github.com/chanks/que")
9249 (license license:expat)))
9251 (define-public ruby-ae
9258 ;; Fetch from github so tests are included.
9260 (url "https://github.com/rubyworks/ae")
9262 (file-name (git-file-name name version))
9265 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
9266 (build-system ruby-build-system)
9269 (modify-phases %standard-phases
9271 (lambda _ (invoke "qed")))
9272 (add-before 'validate-runpath 'replace-broken-symlink
9273 (lambda* (#:key outputs #:allow-other-keys)
9274 (let* ((out (assoc-ref outputs "out"))
9275 (file (string-append
9276 out "/lib/ruby/vendor_ruby/gems/ae-"
9277 ,version "/lib/ae.yml")))
9278 ;; XXX: This symlink is broken since ruby 2.4.
9279 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
9281 (symlink "../.index" file)
9284 `(("ruby-ansi" ,ruby-ansi)))
9286 `(("ruby-qed" ,ruby-qed)))
9287 (synopsis "Assertions library")
9289 "Assertive Expressive (AE) is an assertions library specifically designed
9290 for reuse by other test frameworks.")
9291 (home-page "https://rubyworks.github.io/ae/")
9292 (license license:bsd-2)))
9294 (define-public ruby-lemon
9301 (uri (rubygems-uri "lemon" version))
9304 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
9305 (build-system ruby-build-system)
9308 (modify-phases %standard-phases
9309 (replace 'check (lambda _ (invoke "qed"))))))
9311 `(("ruby-ae" ,ruby-ae)
9312 ("ruby-ansi" ,ruby-ansi)
9313 ("ruby-rubytest" ,ruby-rubytest)))
9315 `(("ruby-qed" ,ruby-qed)))
9316 (synopsis "Test framework correlating code structure and test unit")
9318 "Lemon is a unit testing framework that enforces highly formal
9319 case-to-class and unit-to-method test construction. This enforcement can help
9320 focus concern on individual units of behavior.")
9321 (home-page "https://rubyworks.github.io/lemon")
9322 (license license:bsd-2)))
9324 (define-public ruby-rubytest-cli
9326 (name "ruby-rubytest-cli")
9331 (uri (rubygems-uri "rubytest-cli" version))
9334 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
9335 (build-system ruby-build-system)
9337 `(#:tests? #f)) ; no tests
9339 `(("ruby-ansi" ,ruby-ansi)
9340 ("ruby-rubytest" ,ruby-rubytest)))
9341 (synopsis "Command-line interface for rubytest")
9343 "Rubytest CLI is a command-line interface for running tests for
9344 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
9345 (home-page "https://rubyworks.github.io/rubytest-cli")
9346 (license license:bsd-2)))
9348 (define-public ruby-hashery
9350 (name "ruby-hashery")
9355 (uri (rubygems-uri "hashery" version))
9358 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
9359 (build-system ruby-build-system)
9362 (modify-phases %standard-phases
9366 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
9368 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
9369 ("ruby-qed" ,ruby-qed)
9370 ("ruby-lemon" ,ruby-lemon)))
9371 (synopsis "Hash-like classes with extra features")
9373 "The Hashery is a tight collection of @code{Hash}-like classes.
9374 Included are the auto-sorting @code{Dictionary} class, the efficient
9375 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
9376 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
9377 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
9378 standard @code{Hash} making it possible to subclass and augment to fit any
9379 specific use case.")
9380 (home-page "https://rubyworks.github.io/hashery")
9381 (license license:bsd-2)))
9383 (define-public ruby-rc4
9390 (uri (rubygems-uri "ruby-rc4" version))
9393 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
9394 (build-system ruby-build-system)
9397 (modify-phases %standard-phases
9400 (invoke "rspec" "spec/rc4_spec.rb"))))))
9402 `(("ruby-rspec" ,ruby-rspec-2)))
9403 (synopsis "Implementation of the RC4 algorithm")
9405 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
9406 (home-page "https://github.com/caiges/Ruby-RC4")
9407 (license license:expat)))
9409 (define-public ruby-afm
9416 (uri (rubygems-uri "afm" version))
9419 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
9420 (build-system ruby-build-system)
9422 `(("bundler" ,bundler)))
9423 (synopsis "Read Adobe Font Metrics (afm) files")
9425 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
9426 files and use the data therein.")
9427 (home-page "https://github.com/halfbyte/afm")
9428 (license license:expat)))
9430 (define-public ruby-ascii85
9432 (name "ruby-ascii85")
9437 (uri (rubygems-uri "Ascii85" version))
9440 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
9441 (build-system ruby-build-system)
9443 `(("bundler" ,bundler)))
9444 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
9446 "This library provides methods to encode and decode Ascii85
9447 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
9448 @dfn{Portable Document Format} (PDF) file formats.")
9449 (home-page "https://github.com/datawraith/ascii85gem")
9450 (license license:expat)))
9452 (define-public ruby-ttfunk
9454 (name "ruby-ttfunk")
9459 ;; fetch from github as the gem does not contain testing code
9461 (url "https://github.com/prawnpdf/ttfunk")
9463 (file-name (git-file-name name version))
9466 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
9467 (build-system ruby-build-system)
9469 `(#:test-target "spec"
9471 (modify-phases %standard-phases
9472 (add-before 'build 'remove-ssh
9474 ;; remove dependency on an ssh key pair that doesn't exist
9475 (substitute* "ttfunk.gemspec"
9476 (("spec.signing_key.*") ""))
9478 (add-before 'check 'remove-rubocop
9480 ;; remove rubocop as a dependency as not needed for testing
9481 (substitute* "ttfunk.gemspec"
9482 (("spec.add_development_dependency\\('rubocop'.*") ""))
9483 (substitute* "Rakefile"
9484 (("require 'rubocop/rake_task'") "")
9485 (("RuboCop::RakeTask.new") ""))
9488 `(("ruby-rspec" ,ruby-rspec)
9489 ("ruby-yard" ,ruby-yard)
9490 ("bundler" ,bundler)))
9491 (synopsis "Font metrics parser for the Prawn PDF generator")
9493 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
9494 part of the Prawn PDF generator.")
9495 (home-page "https://github.com/prawnpdf/ttfunk")
9496 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
9498 (license %prawn-project-licenses)))
9500 (define-public ruby-puma
9507 ;; Fetch from GitHub because distributed gem does not contain tests.
9509 (url "https://github.com/puma/puma")
9510 (commit (string-append "v" version))))
9511 (file-name (git-file-name name version))
9514 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
9515 (build-system ruby-build-system)
9517 `(#:tests? #f ; Tests require an out-dated version of minitest.
9519 (modify-phases %standard-phases
9520 (add-before 'build 'fix-gemspec
9522 (substitute* "puma.gemspec"
9523 (("git ls-files") "find * |sort"))
9525 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
9527 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
9528 for Ruby/Rack applications. Puma is intended for use in both development and
9529 production environments. In order to get the best throughput, it is highly
9530 recommended that you use a Ruby implementation with real threads like Rubinius
9532 (home-page "https://puma.io/")
9533 (license license:expat)))
9535 (define-public ruby-hoe-git
9537 (name "ruby-hoe-git")
9542 (uri (rubygems-uri "hoe-git" version))
9545 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
9546 (build-system ruby-build-system)
9548 `(("ruby-hoe" ,ruby-hoe)))
9549 (synopsis "Hoe plugins for tighter Git integration")
9551 "This package provides a set of Hoe plugins for tighter Git integration.
9552 It provides tasks to automate release tagging and pushing and changelog
9554 (home-page "https://github.com/jbarnette/hoe-git")
9555 (license license:expat)))
9557 (define-public ruby-sequel
9559 (name "ruby-sequel")
9564 (uri (rubygems-uri "sequel" version))
9567 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
9568 (build-system ruby-build-system)
9570 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
9571 (synopsis "Database toolkit for Ruby")
9572 (description "Sequel provides thread safety, connection pooling and a
9573 concise DSL for constructing SQL queries and table schemas. It includes a
9574 comprehensive ORM layer for mapping records to Ruby objects and handling
9575 associated records.")
9576 (home-page "https://sequel.jeremyevans.net")
9577 (license license:expat)))
9579 (define-public ruby-timecop
9581 (name "ruby-timecop")
9586 (uri (rubygems-uri "timecop" version))
9589 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
9590 (build-system ruby-build-system)
9593 (modify-phases %standard-phases
9594 (add-before 'check 'set-check-rubylib
9596 ;; Set RUBYLIB so timecop tests finds its own lib.
9597 (setenv "RUBYLIB" "lib")
9600 `(("bundler" ,bundler)
9601 ("ruby-minitest-rg" ,ruby-minitest-rg)
9602 ("ruby-mocha" ,ruby-mocha)
9603 ("ruby-activesupport" ,ruby-activesupport)))
9604 (synopsis "Test mocks for time-dependent functions")
9606 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
9607 making it easier to test time-dependent code. It provides a unified method to
9608 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
9610 (home-page "https://github.com/travisjeffery/timecop")
9611 (license license:expat)))
9613 (define-public ruby-concurrent
9615 (name "ruby-concurrent")
9620 ;; Download from GitHub because the rubygems version does not contain
9623 (url "https://github.com/ruby-concurrency/concurrent-ruby")
9624 (commit (string-append "v" version))))
9625 (file-name (git-file-name name version))
9628 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
9629 (build-system ruby-build-system)
9631 `(#:test-target "ci"
9633 (modify-phases %standard-phases
9634 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
9636 ;; Delete extra gemspec files so 'first-gemspec' chooses the
9638 (delete-file "concurrent-ruby-edge.gemspec")
9639 (delete-file "concurrent-ruby-ext.gemspec")
9641 (replace 'replace-git-ls-files
9643 ;; XXX: The default substitution made by this phase is not fully
9644 ;; compatible with "git ls-files". The latter produces file names
9645 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
9646 ;; which gives "./lib/foo". That difference in turn breaks the
9647 ;; comparison against a glob pattern in this script.
9648 (substitute* "concurrent-ruby.gemspec"
9649 (("git ls-files") "find * -type f | sort"))
9651 (add-before 'build 'remove-jar-from-gemspec
9653 ;; The gemspec wants to include a JAR file that we do not build
9655 (substitute* "concurrent-ruby.gemspec"
9656 (("'lib/concurrent/concurrent_ruby.jar'")
9659 (add-before 'build 'remove-rake_compiler_dock-dependency
9661 ;; This library is only used when building for non-MRI targets.
9662 (substitute* "Rakefile"
9663 (("require 'rake_compiler_dock'")
9666 (add-before 'check 'remove-timecop-dependency
9667 ;; Remove timecop-dependent tests as having timecop as a depedency
9668 ;; causes circular depedencies.
9670 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
9671 (delete-file "spec/concurrent/scheduled_task_spec.rb")
9674 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9675 ("ruby-rspec" ,ruby-rspec)))
9676 (synopsis "Concurrency tools for Ruby")
9678 "This library provides modern concurrency tools including agents,
9679 futures, promises, thread pools, actors, supervisors, and more. It is
9680 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
9682 (home-page "http://www.concurrent-ruby.com")
9683 (license license:expat)))
9685 (define-public ruby-pkg-config
9687 (name "ruby-pkg-config")
9692 (uri (rubygems-uri "pkg-config" version))
9695 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
9696 (build-system ruby-build-system)
9698 ;; Tests require extra files not included in the gem.
9700 (synopsis "Detect libraries for compiling Ruby native extensions")
9702 "@code{pkg-config} can be used in your extconf.rb to properly detect need
9703 libraries for compiling Ruby native extensions.")
9704 (home-page "https://github.com/ruby-gnome2/pkg-config")
9705 (license license:lgpl2.0+)))
9707 (define-public ruby-net-http-digest-auth
9709 (name "ruby-net-http-digest-auth")
9714 (uri (rubygems-uri "net-http-digest_auth" version))
9717 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
9718 (build-system ruby-build-system)
9720 `(("ruby-hoe" ,ruby-hoe)))
9721 (synopsis "RFC 2617 HTTP digest authentication library")
9723 "This library implements HTTP's digest authentication scheme based on
9724 RFC 2617. This enables the use of the digest authentication scheme instead
9725 of the more insecure basic authentication scheme.")
9726 (home-page "https://github.com/drbrain/net-http-digest_auth")
9727 (license license:expat)))
9729 (define-public ruby-mail
9736 (uri (rubygems-uri "mail" version))
9739 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
9740 (build-system ruby-build-system)
9742 `(("ruby-mime-types" ,ruby-mime-types)))
9744 ;; Tests require extra gems not included in the Gemfile.
9745 ;; XXX: Try enabling this for the next version with mini_mime.
9747 (synopsis "Mail library for Ruby")
9749 "Mail is an internet library for Ruby that is designed to handle email
9750 generation, parsing and sending. The purpose of this library is to provide
9751 a single point of access to handle all email functions, including sending
9752 and receiving emails. All network type actions are done through proxy
9753 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
9755 Mail has been designed with a very simple object oriented system that
9756 really opens up the email messages you are parsing, if you know what you
9757 are doing, you can fiddle with every last bit of your email directly.")
9758 (home-page "https://github.com/mikel/mail")
9759 (license license:expat)))
9761 (define-public ruby-mathn
9768 (uri (rubygems-uri "mathn" version))
9771 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
9772 (build-system ruby-build-system)
9774 `(("bundler" ,bundler)
9775 ("ruby-rake-compiler" ,ruby-rake-compiler)))
9776 (synopsis "Extends math operations for increased precision")
9778 "This gem makes mathematical operations more precise in Ruby and
9779 integrates other mathematical standard libraries. Prior to Ruby 2.5,
9780 @code{mathn} was part of the Ruby standard library.")
9781 (home-page "https://github.com/ruby/mathn")
9782 (license license:bsd-2)))
9784 (define-public ruby-code-statistics
9786 (name "ruby-code-statistics")
9791 (uri (rubygems-uri "code_statistics" version))
9794 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
9795 (build-system ruby-build-system)
9797 `(#:tests? #f)) ; Not all test code is included in gem.
9798 (synopsis "Port of the rails 'rake stats' method")
9800 "This gem is a port of the rails 'rake stats' method so it can be made
9801 more robust and work for non rails projects.")
9802 (home-page "https://github.com/danmayer/code_statistics")
9803 (license license:expat)))
9805 (define-public ruby-rubypants
9807 (name "ruby-rubypants")
9811 (uri (rubygems-uri "rubypants" version))
9814 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
9815 (build-system ruby-build-system)
9817 '(#:tests? #f)) ; need Codecov
9818 (synopsis "Port of the smart-quotes library SmartyPants")
9820 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
9821 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
9822 and BBEdit that easily translates plain ASCII punctuation characters into
9823 smart typographic punctuation HTML entities.")
9824 (home-page "https://github.com/jmcnevin/rubypants")
9825 (license license:bsd-2)))
9827 (define-public ruby-org-ruby
9829 (name "ruby-org-ruby")
9833 (uri (rubygems-uri "org-ruby" version))
9836 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
9837 (build-system ruby-build-system)
9839 '(#:tests? #f)) ; no rakefile
9841 `(("ruby-rubypants" ,ruby-rubypants)))
9842 (synopsis "Org-mode parser written in Ruby")
9844 "Org-ruby is an org-mode parser written in Ruby. The most significant
9845 thing this library does today is convert org-mode files to HTML or Textile or
9847 (home-page "https://github.com/wallyqs/org-ruby")
9848 (license license:expat)))
9850 (define-public ruby-rake
9857 (uri (rubygems-uri "rake" version))
9860 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
9861 (build-system ruby-build-system)
9863 `(("bundler" ,bundler)))
9864 (synopsis "Rake is a Make-like program implemented in Ruby")
9866 "Rake is a Make-like program where tasks and dependencies are specified
9867 in standard Ruby syntax.")
9868 (home-page "https://github.com/ruby/rake")
9869 (license license:expat)))
9871 (define-public ruby-childprocess
9873 (name "ruby-childprocess")
9878 (uri (rubygems-uri "childprocess" version))
9881 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
9882 (build-system ruby-build-system)
9886 `(("bundler" ,bundler)
9887 ("ruby-rspec" ,ruby-rspec)))
9889 `(("ruby-ffi" ,ruby-ffi)))
9890 (synopsis "Control external programs running in the background, in Ruby")
9891 (description "@code{childprocess} provides a gem to control external
9892 programs running in the background, in Ruby.")
9893 (home-page "https://github.com/enkessler/childprocess")
9894 (license license:expat)))
9896 (define-public ruby-public-suffix
9898 (name "ruby-public-suffix")
9902 (uri (rubygems-uri "public_suffix" version))
9905 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
9906 (build-system ruby-build-system)
9909 (modify-phases %standard-phases
9910 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
9911 ;; including it as an input can lead to circular dependencies.
9912 (add-after 'unpack 'remove-rubocop-from-Rakefile
9914 (substitute* "Rakefile"
9915 (("require \"rubocop/rake\\_task\"") "")
9916 (("RuboCop::RakeTask\\.new") ""))
9919 `(("bundler" ,bundler)
9920 ("ruby-yard" ,ruby-yard)
9921 ("ruby-mocha" ,ruby-mocha)
9922 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
9923 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
9924 (synopsis "Domain name parser")
9925 (description "The gem @code{public_suffix} is a domain name parser,
9926 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
9927 is one under which Internet users can (or historically could) directly
9928 register names. Some examples of public suffixes are @code{.com},
9929 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
9930 all known public suffixes.")
9931 (license license:expat)))
9933 (define-public ruby-addressable
9935 (name "ruby-addressable")
9939 (uri (rubygems-uri "addressable" version))
9942 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
9943 (build-system ruby-build-system)
9945 '(#:test-target "spec"
9947 (modify-phases %standard-phases
9948 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
9950 (substitute* "Gemfile"
9951 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
9952 ((".*launchy.*") "")
9953 ((".*rake.*") "gem 'rake'\n")
9954 ((".*redcarpet.*") ""))
9956 (add-before 'check 'delete-network-dependent-test
9958 (delete-file "spec/addressable/net_http_compat_spec.rb")
9961 `(("ruby-rspec" ,ruby-rspec)
9962 ("bundler" ,bundler)
9963 ("ruby-idn-ruby" ,ruby-idn-ruby)
9964 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
9965 ("ruby-rspec-its", ruby-rspec-its-minimal)
9966 ("ruby-yard" ,ruby-yard)
9967 ("ruby-simplecov" ,ruby-simplecov)))
9969 `(("ruby-public-suffix" ,ruby-public-suffix)))
9970 (home-page "https://github.com/sporkmonger/addressable")
9971 (synopsis "Alternative URI implementation")
9972 (description "Addressable is a replacement for the URI implementation that
9973 is part of Ruby's standard library. It more closely conforms to RFC 3986,
9974 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
9975 (license license:asl2.0)))
9977 (define-public ruby-colorize
9979 (name "ruby-colorize")
9983 (uri (rubygems-uri "colorize" version))
9986 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
9987 (build-system ruby-build-system)
9989 '(#:phases (modify-phases %standard-phases
9990 (add-before 'check 'remove-codeclimate-dependency
9992 (substitute* "test/test_colorize.rb"
9993 ;; Do not hook the tests into the online CodeClimate
9994 ;; service which is unnecessary for these tests.
9995 (("require 'codeclimate-test-reporter'")
9997 (("CodeClimate.*") ""))
9999 (synopsis "Add color effects to the @code{String} class")
10001 "This package extends the @code{String} class and adds a
10002 @code{ColorizedString} with methods to set text color, background color,
10003 and text effects.")
10004 (home-page "https://github.com/fazibear/colorize")
10005 (license license:gpl2+)))
10007 (define-public ruby-colorator
10009 (name "ruby-colorator")
10013 (uri (rubygems-uri "colorator" version))
10016 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
10017 (build-system ruby-build-system)
10021 (home-page "http://octopress.org/colorator/")
10022 (synopsis "Terminal color library")
10023 (description "Colorator is a Ruby gem that helps you colorize your text
10024 for the terminal.")
10025 (license license:expat)))
10027 (define-public ruby-command-line-reporter
10029 (name "ruby-command-line-reporter")
10033 (uri (rubygems-uri "command_line_reporter" version))
10036 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
10037 (build-system ruby-build-system)
10042 (modify-phases %standard-phases
10043 (add-before 'build 'fix-dependencies
10045 (substitute* ".gemspec"
10046 ;; colored is unmaintained
10047 (("colored") "colorator")
10048 ;; colorator version
10049 (("= 1.2") "= 1.1"))
10051 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
10052 (home-page "https://github.com/wbailey/command_line_reporter")
10053 (synopsis "Report production while executing Ruby scripts")
10054 (description "This gem provides a DSL that makes it easy to write reports
10055 of various types in ruby. It eliminates the need to litter your source with
10056 puts statements, instead providing a more readable, expressive interface to
10057 your application.")
10058 (license license:asl2.0)))
10060 (define-public ruby-command-line-reporter-3
10062 (inherit ruby-command-line-reporter)
10066 (uri (rubygems-uri "command_line_reporter" version))
10069 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
10071 (define-public ruby-kpeg
10078 (uri (rubygems-uri "kpeg" version))
10081 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
10082 (build-system ruby-build-system)
10084 `(("ruby-hoe" ,ruby-hoe)))
10085 (synopsis "PEG library for Ruby")
10086 (description "KPeg is a simple PEG library for Ruby. It provides an API as
10087 well as native grammar to build the grammar. KPeg supports direct left
10088 recursion of rules via the
10089 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
10091 (home-page "https://github.com/evanphx/kpeg")
10092 (license license:expat)))
10094 (define-public ruby-rdoc
10101 (uri (git-reference
10102 (url "https://github.com/ruby/rdoc")
10103 (commit (string-append "v" version))))
10104 (file-name (git-file-name name version))
10107 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
10108 (build-system ruby-build-system)
10111 (modify-phases %standard-phases
10112 (add-after 'unpack 'patch-gemspec
10113 ;; TODO: Remove after next release is tagged.
10115 (substitute* "rdoc.gemspec"
10116 (("\"lib/rdoc/generator/template/darkfish/js/\
10117 jquery\\.js\", ") ""))
10119 (add-before 'build 'generate
10120 ;; 'gem build' doesn't honor Rakefile dependencies (see:
10121 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
10123 (invoke "rake" "generate"))))))
10125 `(("bundler" ,bundler)
10126 ("ruby-kpeg" ,ruby-kpeg)
10127 ("ruby-racc" ,ruby-racc)
10128 ("ruby-rubocop" ,ruby-rubocop)))
10129 (home-page "https://ruby.github.io/rdoc/")
10130 (synopsis "HTML and command-line documentation utility")
10131 (description "RDoc produces HTML and command-line documentation for Ruby
10132 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
10133 documentation from the command-line.")
10134 (license license:gpl2+)))
10136 (define-public ruby-sass-listen
10138 (name "ruby-sass-listen")
10142 (uri (rubygems-uri "sass-listen" version))
10145 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
10146 (build-system ruby-build-system)
10151 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
10152 ("ruby-rb-inotify" ,ruby-rb-inotify)))
10153 (home-page "https://github.com/sass/listen")
10154 (synopsis "File modification notification library")
10155 (description "The Listen gem listens to file modifications and notifies you
10156 about the changes.")
10157 (license license:expat)))
10159 (define-public ruby-terminfo
10161 (name "ruby-terminfo")
10166 (uri (rubygems-uri "ruby-terminfo" version))
10169 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
10170 (build-system ruby-build-system)
10172 `(#:test-target "test"
10173 ;; Rakefile requires old packages and would need modification to
10174 ;; work with current software.
10177 `(("ncurses" ,ncurses)))
10179 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
10180 ("ruby-rdoc" ,ruby-rdoc)))
10181 (home-page "http://www.a-k-r.org/ruby-terminfo/")
10182 (synopsis "Terminfo binding for Ruby")
10183 (description "Ruby-terminfo provides terminfo binding for Ruby.")
10184 (license license:bsd-3)))
10186 (define-public ruby-diffy
10188 (name "ruby-diffy")
10193 (uri (rubygems-uri "diffy" version))
10196 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
10197 (build-system ruby-build-system)
10202 `(("ruby-rspec" ,ruby-rspec)))
10203 (home-page "https://github.com/samg/diffy")
10204 (synopsis "Convenient diffing in ruby")
10205 (description "Diffy provides a convenient way to generate a diff from two
10206 strings or files.")
10207 (license license:expat)))
10209 (define-public ruby-sass-spec
10211 (name "ruby-sass-spec")
10216 (uri (git-reference
10217 (url "https://github.com/sass/sass-spec")
10218 (commit (string-append "v" version))))
10219 (file-name (git-file-name name version))
10221 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
10222 (build-system ruby-build-system)
10224 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
10225 ("ruby-diffy" ,ruby-diffy)
10226 ("ruby-terminfo" ,ruby-terminfo)))
10228 `(;; This package contains tests for a sass implementation, and the to
10229 ;; avoid any circular dependencies, the tests are not run here
10232 (modify-phases %standard-phases
10233 (add-after 'unpack 'patch-test
10235 (delete-file "spec/values/colors/alpha_hex-3.5/error")
10236 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
10237 (("string") "color")))))))
10238 (home-page "https://github.com/sass/sass-spec")
10239 (synopsis "Test suite for Sass")
10240 (description "Sass Spec is a test suite for Sass. Test cases are all in
10241 the @file{spec} directory.")
10242 (license license:expat)))
10244 (define-public ruby-sass
10250 (uri (rubygems-uri "sass" version))
10253 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
10254 (build-system ruby-build-system)
10256 `(("ruby-sass-listen" ,ruby-sass-listen)))
10258 `(("ruby-sass-spec" ,ruby-sass-spec)
10259 ("ruby-mathn" ,ruby-mathn)))
10260 (home-page "https://sass-lang.com/")
10261 (synopsis "CSS extension language")
10262 (description "Sass is a CSS extension language. It extends CSS with
10263 features that don't exist yet like variables, nesting, mixins and inheritance.")
10264 (license license:expat)))
10266 (define-public ruby-sassc
10268 (name "ruby-sassc")
10273 (uri (rubygems-uri "sassc" version))
10276 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
10277 (build-system ruby-build-system)
10279 '(#:modules ((guix build ruby-build-system)
10281 (ice-9 textual-ports))
10283 (modify-phases %standard-phases
10284 ;; TODO: This would be better as a snippet, but the ruby-build-system
10285 ;; doesn't seem to support that
10286 (add-after 'unpack 'remove-libsass
10288 (delete-file-recursively "ext")
10289 (with-atomic-file-replacement "sassc.gemspec"
10291 (let* ((gemspec (get-string-all in))
10292 (index (string-contains gemspec "libsass_dir")))
10293 (display (string-append
10294 (string-take gemspec index)
10298 (add-after 'unpack 'dont-check-the-libsass-version
10300 (substitute* "test/native_test.rb"
10301 (("assert_equal.*Native\\.version") ""))
10303 (add-after 'unpack 'remove-git-from-gemspec
10305 (substitute* "sassc.gemspec"
10306 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
10308 (add-after 'unpack 'remove-extensions-from-gemspec
10310 (substitute* "sassc.gemspec"
10311 (("\\[\"ext/extconf.rb\"\\]") "[]"))
10313 (add-after 'unpack 'fix-Rakefile
10315 (substitute* "Rakefile"
10316 (("test: 'compile:libsass'") ":test"))
10318 (add-after 'unpack 'remove-unnecessary-dependencies
10320 (substitute* "test/test_helper.rb"
10321 (("require \"pry\"") ""))
10323 (add-before 'build 'patch-native.rb
10324 (lambda* (#:key inputs #:allow-other-keys)
10325 (substitute* "lib/sassc/native.rb"
10326 ((".*gem_root = spec.gem_dir") "")
10329 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
10331 ;; The gemspec still references the libsass files, so just keep the
10333 (delete 'extract-gemspec))))
10335 `(("ruby-ffi" ,ruby-ffi)
10336 ("ruby-rake" ,ruby-rake)))
10338 `(("libsass" ,libsass)))
10340 `(("bundler" ,bundler)
10341 ("ruby-rake-compiler" ,ruby-rake-compiler)
10342 ("ruby-minitest-around" ,ruby-minitest-around)
10343 ("ruby-test-construct" ,ruby-test-construct)))
10344 (synopsis "Use libsss from Ruby")
10346 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
10347 bindings to the libsass library. This enables rendering
10348 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
10349 (home-page "https://github.com/sass/sassc-ruby")
10350 (license license:expat)))
10352 (define-public ruby-jekyll-sass-converter
10354 (name "ruby-jekyll-sass-converter")
10358 (uri (rubygems-uri "jekyll-sass-converter" version))
10361 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
10362 (build-system ruby-build-system)
10364 `(("ruby-sass" ,ruby-sass)))
10368 (home-page "https://github.com/jekyll/jekyll-sass-converter")
10369 (synopsis "Sass converter for Jekyll")
10370 (description "This gem provide built-in support for the Sass converter
10372 (license license:expat)))
10374 (define-public ruby-jekyll-watch
10376 (name "ruby-jekyll-watch")
10380 (uri (rubygems-uri "jekyll-watch" version))
10383 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
10384 (build-system ruby-build-system)
10386 `(("ruby-listen" ,ruby-listen)))
10390 (home-page "https://github.com/jekyll/jekyll-watch")
10391 (synopsis "Jekyll auto-rebuild support")
10392 (description "This gems add the @code{--watch} switch to the jekyll CLI
10393 interface. It allows Jekyll to rebuild your site when a file changes.")
10394 (license license:expat)))
10396 (define-public ruby-parallel
10398 (name "ruby-parallel")
10403 (uri (git-reference
10404 (url "https://github.com/grosser/parallel")
10405 (commit (string-append "v" version))))
10406 (file-name (git-file-name name version))
10409 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
10410 (build-system ruby-build-system)
10412 `(;; TODO 3 test failures
10413 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
10414 ;; open unnecessary pipes
10415 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
10416 ;; SQLite in processes
10417 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
10418 ;; SQLite in threads
10420 #:test-target "rspec-rerun:spec"
10422 (modify-phases %standard-phases
10423 (add-after 'unpack 'patch-Gemfile
10425 (substitute* "Gemfile"
10426 (("gem 'rspec-legacy_formatters'") "")
10427 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
10428 (add-before 'check 'delete-Gemfile.lock
10430 ;; Bundler isn't being used for fetching dependendencies, so
10431 ;; delete the Gemfile.lock
10432 (delete-file "Gemfile.lock")
10434 (add-before 'build 'patch-gemspec
10436 (substitute* "parallel.gemspec"
10437 (("git ls-files") "find"))
10440 `(("ruby-rspec" ,ruby-rspec)
10441 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
10442 ("bundler" ,bundler)
10443 ("ruby-activerecord" ,ruby-activerecord)
10444 ("ruby-progressbar" ,ruby-progressbar)
10445 ("ruby-bump" ,ruby-bump)
10448 ("ruby-mysql2" ,ruby-mysql2)
10449 ("ruby-sqlite3" ,ruby-sqlite3)
10450 ("ruby-i18n" ,ruby-i18n)))
10451 (home-page "https://github.com/grosser/parallel")
10452 (synopsis "Parallel processing in Ruby")
10453 (description "Parallel allows you to run any code in parallel Processes
10454 (to use all CPUs) or Threads(to speedup blocking operations). It is best
10455 suited for map-reduce or e.g. parallel downloads/uploads.")
10456 (license license:expat)))
10458 (define-public ruby-cane
10464 (uri (rubygems-uri "cane" version))
10467 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
10468 (build-system ruby-build-system)
10469 (arguments `(#:tests? #f)); No rakefile
10470 (home-page "https://github.com/square/cane")
10472 `(("ruby-parallel" ,ruby-parallel)))
10473 (synopsis "Code quality threshold checking")
10474 (description "Cane fails your build if code quality thresholds are not met.")
10475 (license license:asl2.0)))
10477 (define-public ruby-morecane
10479 (name "ruby-morecane")
10483 (uri (rubygems-uri "morecane" version))
10486 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
10487 (build-system ruby-build-system)
10488 (home-page "https://github.com/yob/morecane")
10489 (arguments `(#:tests? #f)); No rakefile
10491 `(("ruby-parallel" ,ruby-parallel)))
10492 (synopsis "Extra checks for cane")
10493 (description "The cane gem provides a great framework for running quality
10494 checks over your ruby project as part of continuous integration build. It
10495 comes with a few checks out of the box, but also provides an API for loading
10496 custom checks. This gem provides a set of additional checks.")
10497 (license license:expat)))
10499 (define-public ruby-pdf-reader
10501 (name "ruby-pdf-reader")
10504 (method git-fetch) ;no test in distributed gem archive
10505 (uri (git-reference
10506 (url "https://github.com/yob/pdf-reader.git")
10507 (commit (string-append "v" version))))
10508 (file-name (git-file-name name version))
10511 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
10512 (build-system ruby-build-system)
10513 (arguments `(#:test-target "spec"
10514 #:phases (modify-phases %standard-phases
10515 (add-after 'unpack 'do-not-use-bundler
10517 (substitute* "spec/spec_helper.rb"
10518 ((".*[Bb]undler.*") ""))
10521 `(("ruby-rspec" ,ruby-rspec)
10522 ("ruby-cane" ,ruby-cane)
10523 ("ruby-morecane" ,ruby-morecane)))
10525 `(("ruby-afm" ,ruby-afm)
10526 ("ruby-ascii85" ,ruby-ascii85)
10527 ("ruby-hashery" ,ruby-hashery)
10528 ("ruby-rc4" ,ruby-rc4)
10529 ("ruby-ttfunk" ,ruby-ttfunk)))
10530 (home-page "https://github.com/yob/pdf-reader")
10531 (synopsis "PDF parser in Ruby")
10532 (description "The PDF::Reader library implements a PDF parser conforming as
10533 much as possible to the PDF specification from Adobe. It provides programmatic
10534 access to the contents of a PDF file with a high degree of flexibility.")
10535 (license license:gpl3+)))
10537 (define-public ruby-pdf-inspector
10538 (let ((revision "1")
10539 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
10541 (name "ruby-pdf-inspector")
10542 (version (git-version "1.3.0" revision commit))
10545 (uri (git-reference
10546 (url "https://github.com/prawnpdf/pdf-inspector.git")
10548 (file-name (git-file-name name version))
10551 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
10552 (build-system ruby-build-system)
10554 `(#:test-target "spec"
10555 #:phases (modify-phases %standard-phases
10556 (add-before 'build 'drop-signing-key-requirement
10558 (substitute* "pdf-inspector.gemspec"
10559 (("spec.signing_key =.*")
10560 "spec.signing_key = nil"))
10564 (substitute* "pdf-inspector.gemspec"
10565 ((".*rubocop.*") "")
10567 (invoke "rspec"))))))
10569 `(("ruby-rspec" ,ruby-rspec)))
10571 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
10572 (home-page "https://github.com/prawnpdf/pdf-inspector")
10573 (synopsis "Analysis classes for inspecting PDF output")
10574 (description "This library provides a number of PDF::Reader based tools for
10575 use in testing PDF output. Presently, the primary purpose of this tool is to
10576 support the tests found in Prawn, a pure Ruby PDF generation library.")
10577 (license %prawn-project-licenses))))
10579 (define-public ruby-pdf-core
10581 (name "ruby-pdf-core")
10585 (uri (rubygems-uri "pdf-core" version))
10588 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
10589 (build-system ruby-build-system)
10593 (home-page "https://github.com/prawnpdf/pdf-core")
10594 (synopsis "Low level PDF features for Prawn")
10595 (description "This is an experimental gem that extracts low-level PDF
10596 functionality from Prawn.")
10597 (license license:gpl3+)))
10599 (define-public ruby-prawn
10600 ;; There hasn't been a new release since 2017/03/17.
10601 (let ((revision "1")
10602 (commit "d980247be8a00e7c59cd4e5785e3aa98f9856db1"))
10604 (name "ruby-prawn")
10605 (version (git-version "2.2.2" revision commit))
10608 (uri (git-reference
10609 (url "https://github.com/prawnpdf/prawn.git")
10611 (file-name (git-file-name name version))
10614 "0mcmvf22h8il93yq48v9f31qpy27pvjxgv9172p0f4x9lqy0imwr"))))
10615 (build-system ruby-build-system)
10618 (modify-phases %standard-phases
10619 (add-before 'build 'drop-signing-key-requirement
10621 (substitute* "prawn.gemspec"
10622 (("spec.signing_key =.*")
10623 "spec.signing_key = nil"))
10626 (lambda* (#:key tests? #:allow-other-keys)
10628 ;; The Prawn manual test fails (see:
10629 ;; https://github.com/prawnpdf/prawn/issues/1163), so exclude
10631 (invoke "rspec" "--exclude-pattern" "prawn_manual_spec.rb"))
10634 `(("ruby-pdf-core" ,ruby-pdf-core)
10635 ("ruby-ttfunk" ,ruby-ttfunk)))
10637 `(("ruby-pdf-inspector" ,ruby-pdf-inspector)
10638 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10639 ("ruby-rspec" ,ruby-rspec)
10640 ("ruby-simplecov" ,ruby-simplecov)
10641 ("ruby-yard" ,ruby-yard)))
10642 (home-page "https://prawnpdf.org/api-docs/2.0/")
10643 (synopsis "PDF generation for Ruby")
10644 (description "Prawn is a pure Ruby PDF generation library.")
10645 (license %prawn-project-licenses))))
10647 (define-public ruby-prawn-table
10649 (name "ruby-prawn-table")
10653 (uri (rubygems-uri "prawn-table" version))
10656 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
10657 (build-system ruby-build-system)
10659 `(("ruby-prawn" ,ruby-prawn)
10660 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
10662 `(("bundler" ,bundler)
10663 ("ruby-yard" ,ruby-yard)
10664 ("ruby-mocha" ,ruby-mocha)
10665 ("ruby-coderay" ,ruby-coderay)
10666 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
10667 ("ruby-simplecov" ,ruby-simplecov)
10668 ("ruby-rspec-2" ,ruby-rspec-2)))
10670 '(;; TODO: 1 test fails
10671 ;; Failure/Error: pdf.page_count.should == 1
10673 ;; got: 2 (using ==)
10674 ;; # ./spec/table_spec.rb:1308
10676 ;; 225 examples, 1 failure
10679 (modify-phases %standard-phases
10680 (add-before 'check 'patch-gemspec
10682 (substitute* "prawn-table.gemspec"
10683 ;; Loosen the requirement for pdf-inspector
10684 (("~> 1\\.1\\.0") ">= 0")
10685 ;; Loosen the requirement for pdf-reader
10686 (("~> 1\\.2") ">= 0"))))
10688 (lambda* (#:key tests? #:allow-other-keys)
10692 (home-page "https://github.com/prawnpdf/prawn-table")
10693 (synopsis "Tables support for Prawn")
10694 (description "This gem provides tables support for Prawn.")
10695 (license license:gpl3+)))
10697 (define-public ruby-kramdown
10699 (name "ruby-kramdown")
10703 (uri (rubygems-uri "kramdown" version))
10706 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
10707 (build-system ruby-build-system)
10708 (arguments `(#:tests? #f)); FIXME: some test failures
10710 `(("ruby-prawn" ,ruby-prawn)
10711 ("ruby-prawn-table" ,ruby-prawn-table)))
10712 (home-page "https://kramdown.gettalong.org/")
10713 (synopsis "Markdown parsing and converting library")
10714 (description "Kramdown is a library for parsing and converting a superset
10715 of Markdown. It is completely written in Ruby, supports standard Markdown
10716 (with some minor modifications) and various extensions that have been made
10717 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
10718 (license license:expat)))
10720 (define-public ruby-http-parser.rb
10722 (name "ruby-http-parser.rb")
10727 (uri (rubygems-uri "http_parser.rb" version))
10730 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
10731 (build-system ruby-build-system)
10736 `(("ruby-rake-compiler" ,ruby-rake-compiler)
10737 ("ruby-rspec" ,ruby-rspec)))
10738 (home-page "https://github.com/tmm1/http_parser.rb")
10739 (synopsis "HTTP parser un Ruby")
10740 (description "This gem is a simple callback-based HTTP request/response
10741 parser for writing http servers, clients and proxies.")
10742 (license license:expat)))
10744 (define-public ruby-em-websocket
10746 (name "ruby-em-websocket")
10751 (uri (rubygems-uri "em-websocket" version))
10754 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
10755 (build-system ruby-build-system)
10760 `(("ruby-eventmachine" ,ruby-eventmachine)
10761 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
10763 `(("bundler" ,bundler)
10764 ("ruby-rspec" ,ruby-rspec)))
10765 (home-page "https://github.com/igrigorik/em-websocket")
10766 (synopsis "EventMachine based WebSocket server")
10767 (description "Em-websocket is an EventMachine based WebSocket server
10769 (license license:expat)))
10771 (define-public ruby-rouge
10773 (name "ruby-rouge")
10777 (uri (rubygems-uri "rouge" version))
10780 "1agrrmj88k9jkk36ra1ml2c1jffpp595pkxmcla74ac9ia09vn3s"))))
10781 (build-system ruby-build-system)
10782 (arguments `(#:tests? #f)); No rakefile
10783 (home-page "http://rouge.jneen.net/")
10784 (synopsis "Code highlighter")
10785 (description "Rouge is a code highlighter written in Ruby. It supports more
10786 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
10787 is compatible with stylesheets designed for pygments.")
10789 ;; rouge is licensed under expat
10791 ;; pygments is licensed under bsd-2
10794 (define-public ruby-rouge-2
10796 (inherit ruby-rouge)
10800 (uri (rubygems-uri "rouge" version))
10803 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
10805 (define-public ruby-hashie
10807 (name "ruby-hashie")
10811 (uri (rubygems-uri "hashie" version))
10814 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
10815 (build-system ruby-build-system)
10817 `(("bundler" ,bundler)))
10818 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
10819 (home-page "https://github.com/intridea/hashie")
10820 (synopsis "Extensions to Ruby Hashes")
10821 (description "Hashie is a collection of classes and mixins that make Ruby
10822 hashes more powerful.")
10823 (license license:expat)))
10825 (define-public ruby-heredoc-unindent
10827 (name "ruby-heredoc-unindent")
10831 (uri (rubygems-uri "heredoc_unindent" version))
10834 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
10835 (build-system ruby-build-system)
10837 `(("ruby-hoe" ,ruby-hoe)))
10838 (home-page "https://github.com/adrianomitre/heredoc_unindent")
10839 (synopsis "Heredoc indentation cleaner")
10840 (description "This gem removes common margin from indented strings, such
10841 as the ones produced by indented heredocs. In other words, it strips out
10842 leading whitespace chars at the beginning of each line, but only as much as
10843 the line with the smallest margin.
10845 It is acknowledged that many strings defined by heredocs are just code and
10846 fact is that most parsers are insensitive to indentation. If, however, the
10847 strings are to be used otherwise, be it for printing or testing, the extra
10848 indentation will probably be an issue and hence this gem.")
10849 (license license:expat)))
10851 (define-public ruby-safe-yaml
10853 (name "ruby-safe-yaml")
10858 (uri (git-reference
10859 (url "https://github.com/dtao/safe_yaml")
10861 (file-name (git-file-name name version))
10864 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
10865 (build-system ruby-build-system)
10867 `(("ruby-rspec" ,ruby-rspec)
10868 ("ruby-hashie" ,ruby-hashie)
10869 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
10871 '(#:test-target "spec"
10873 (modify-phases %standard-phases
10874 (add-before 'check 'set-TZ
10876 ;; This test is dependent on the timezone
10877 ;; spec/transform/to_date_spec.rb:35
10878 ;; # SafeYAML::Transform::ToDate converts times to the local
10880 (setenv "TZ" "UTC-11")
10882 (home-page "https://github.com/dtao/safe_yaml")
10883 (synopsis "YAML parser")
10884 (description "The SafeYAML gem provides an alternative implementation of
10885 YAML.load suitable for accepting user input in Ruby applications.")
10886 (license license:expat)))
10888 (define-public ruby-mercenary
10890 (name "ruby-mercenary")
10894 (uri (rubygems-uri "mercenary" version))
10897 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
10898 (build-system ruby-build-system)
10899 (arguments `(#:test-target "spec"))
10901 `(("bundler" ,bundler)))
10902 (home-page "https://github.com/jekyll/mercenary")
10903 (synopsis "Command-line apps library in Ruby")
10904 (description "Mercenary is a lightweight and flexible library for writing
10905 command-line apps in Ruby.")
10906 (license license:expat)))
10908 (define-public ruby-liquid
10910 (name "ruby-liquid")
10914 (uri (rubygems-uri "liquid" version))
10917 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
10918 (build-system ruby-build-system)
10919 (arguments `(#:tests? #f)); No rakefile
10920 (home-page "https://shopify.github.io/liquid/")
10921 (synopsis "Template language")
10922 (description "Liquid is a template language written in Ruby. It is used
10923 to load dynamic content on storefronts.")
10924 (license license:expat)))
10926 (define-public ruby-forwardable-extended
10928 (name "ruby-forwardable-extended")
10932 (uri (rubygems-uri "forwardable-extended" version))
10935 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
10936 (build-system ruby-build-system)
10937 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
10938 (home-page "https://github.com/envygeeks/forwardable-extended")
10939 (synopsis "Delegation to hashes and instance variables in Forwardable")
10940 (description "Forwardable Extended provides more @code{Forwardable}
10941 methods for your source as @code{Forwardable::Extended}.")
10942 (license license:expat)))
10944 (define-public ruby-pathutil
10946 (name "ruby-pathutil")
10950 (uri (rubygems-uri "pathutil" version))
10953 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
10954 (build-system ruby-build-system)
10956 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
10958 `(("bundler" ,bundler)
10959 ("ruby-rspec" ,ruby-rspec)))
10960 ;; Fails with: cannot load such file --
10961 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
10962 (arguments `(#:tests? #f))
10963 (home-page "https://github.com/envygeeks/pathutil")
10964 (synopsis "Extended implementation of Pathname")
10965 (description "Pathutil tries to be a faster pure Ruby implementation of
10967 (license license:expat)))
10969 (define-public jekyll
10975 (uri (rubygems-uri "jekyll" version))
10978 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
10979 (build-system ruby-build-system)
10981 ;; No rakefile, but a test subdirectory.
10984 (modify-phases %standard-phases
10985 (add-before 'build 'fix-i18n
10987 (substitute* ".gemspec"
10988 (("~> 0.7") ">= 0.7"))
10991 `(("ruby-addressable" ,ruby-addressable)
10992 ("ruby-colorator" ,ruby-colorator)
10993 ("ruby-em-websocket" ,ruby-em-websocket)
10994 ("ruby-i18n" ,ruby-i18n)
10995 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
10996 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
10997 ("ruby-kramdown" ,ruby-kramdown)
10998 ("ruby-liquid" ,ruby-liquid)
10999 ("ruby-mercenary" ,ruby-mercenary)
11000 ("ruby-pathutil" ,ruby-pathutil)
11001 ("ruby-rouge" ,ruby-rouge-2)
11002 ("ruby-safe-yaml" ,ruby-safe-yaml)))
11003 (home-page "https://jekyllrb.com/")
11004 (synopsis "Static site generator")
11005 (description "Jekyll is a simple, blog aware, static site generator.")
11006 (license license:expat)))
11008 (define-public ruby-jekyll-paginate-v2
11010 (name "ruby-jekyll-paginate-v2")
11014 (uri (rubygems-uri "jekyll-paginate-v2" version))
11017 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
11018 (build-system ruby-build-system)
11020 `(("jekyll" ,jekyll)))
11021 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
11022 (synopsis "Pagination Generator for Jekyll 3")
11023 (description "The Pagination Generator forms the core of the pagination
11024 logic in Jekyll. It calculates and generates the pagination pages.")
11025 (license license:expat)))
11027 (define-public ruby-faraday
11029 (name "ruby-faraday")
11034 (uri (rubygems-uri "faraday" version))
11037 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
11038 (build-system ruby-build-system)
11042 `(("ruby-multipart-post" ,ruby-multipart-post)))
11043 (synopsis "Ruby HTTP/REST API client library")
11045 "Faraday is a HTTP/REST API client library which provides a common
11046 interface over different adapters.")
11047 (home-page "https://github.com/lostisland/faraday")
11048 (license license:expat)))
11050 (define-public ruby-nio4r
11052 (name "ruby-nio4r")
11057 (uri (rubygems-uri "nio4r" version))
11060 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
11061 (build-system ruby-build-system)
11064 (modify-phases %standard-phases
11065 (add-after 'unpack 'remove-unnecessary-dependencies
11067 (substitute* "spec/spec_helper.rb"
11068 ;; Coveralls is for uploading test coverage information to an
11069 ;; online service, and thus unnecessary for building the Guix
11071 (("require \"coveralls\"") "")
11072 (("Coveralls\\.wear!") "")
11073 ;; Remove rspec/retry as we are not retrying the tests
11074 (("require \"rspec/retry\"") "")
11075 (("config\\.display_try_failure_messages = true") "")
11076 (("config\\.verbose_retry = true") ""))
11078 (add-before 'check 'compile
11080 (invoke "rake" "compile")
11083 (lambda* (#:key tests? #:allow-other-keys)
11088 `(("bundler" ,bundler)
11089 ("ruby-rake-compiler" ,ruby-rake-compiler)
11090 ("ruby-rspec" ,ruby-rspec)
11091 ("ruby-rubocop" ,ruby-rubocop)))
11092 (synopsis "New I/O for Ruby")
11094 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
11095 for scalable network clients and servers.")
11096 (home-page "https://github.com/socketry/nio4r")
11097 (license license:expat)))
11099 (define-public ruby-globalid
11101 (name "ruby-globalid")
11106 (uri (rubygems-uri "globalid" version))
11109 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
11110 (build-system ruby-build-system)
11112 '(;; No included tests
11115 `(("ruby-activesupport" ,ruby-activesupport)))
11116 (synopsis "Generate URIs idenfitying model instances in Ruby")
11118 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
11119 uniquely identify it.")
11120 (home-page "https://rubyonrails.org/")
11121 (license license:expat)))
11123 (define-public ruby-sprockets
11125 (name "ruby-sprockets")
11130 (uri (rubygems-uri "sprockets" version))
11133 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
11134 (build-system ruby-build-system)
11136 '(;; No included tests
11139 `(("ruby-concurrent" ,ruby-concurrent)
11140 ("ruby-rack" ,ruby-rack)))
11141 (synopsis "Sprockets is a Rack-based asset packaging system")
11143 "Sprockets is a Rack-based asset packaging system that concatenates and
11144 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
11145 (home-page "https://github.com/rails/sprockets")
11146 (license license:expat)))
11148 (define-public ruby-mustermann
11150 (name "ruby-mustermann")
11155 (uri (rubygems-uri "mustermann" version))
11158 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
11159 (build-system ruby-build-system)
11163 (synopsis "Library implementing patterns that behave like regular expressions")
11164 (description "Given a string pattern, Mustermann will turn it into an
11165 object that behaves like a regular expression and has comparable performance
11167 (home-page "https://github.com/sinatra/mustermann")
11168 (license license:expat)))
11170 (define-public ruby-htmlentities
11172 (name "ruby-htmlentities")
11177 (uri (rubygems-uri "htmlentities" version))
11180 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
11181 (build-system ruby-build-system)
11184 (modify-phases %standard-phases
11187 (map (lambda (file)
11188 (invoke "ruby" "-Itest" file))
11189 (find-files "./test" ".*_test\\.rb")))))))
11190 (synopsis "Encode and decode (X)HTML entities")
11192 "This package provides a module for encoding and decoding (X)HTML
11194 (home-page "https://github.com/threedaymonk/htmlentities")
11195 (license license:expat)))
11197 (define-public ruby-sinatra
11199 (name "ruby-sinatra")
11200 (version "2.0.8.1")
11204 (uri (rubygems-uri "sinatra" version))
11207 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
11208 (build-system ruby-build-system)
11211 (modify-phases %standard-phases
11212 ;; See: https://github.com/sinatra/sinatra/issues/1578.
11213 (add-after 'extract-gemspec 'fix-slow-doc-generation
11215 (substitute* "sinatra.gemspec"
11216 (("\"README.rdoc\"\\.freeze," all)
11217 (string-append all " \"--exclude=.*\\.md\".freeze,")))
11220 `(("ruby-mustermann" ,ruby-mustermann)
11221 ("ruby-rack" ,ruby-rack)
11222 ("ruby-rack-protection" ,ruby-rack-protection)
11223 ("ruby-tilt" ,ruby-tilt)))
11224 (synopsis "DSL for quick web applications creation in Ruby")
11226 "Sinatra is a DSL for quickly creating web applications in Ruby with
11228 (home-page "http://sinatrarb.com/")
11229 (license license:expat)))
11231 (define-public ruby-thin
11238 (uri (rubygems-uri "thin" version))
11241 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
11242 (build-system ruby-build-system)
11247 `(("ruby-daemons" ,ruby-daemons)
11248 ("ruby-eventmachine" ,ruby-eventmachine)
11249 ("ruby-rack" ,ruby-rack)))
11250 (synopsis "Thin and fast web server for Ruby")
11251 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
11253 @item the Mongrel parser,
11254 @item Event Machine, a network I/O library with high scalability, performance
11256 @item Rack, a minimal interface between webservers and Ruby frameworks.
11258 (home-page "https://github.com/macournoyer/thin")
11259 (license license:ruby)))
11261 (define-public ruby-skinny
11263 (name "ruby-skinny")
11268 (uri (rubygems-uri "skinny" version))
11271 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
11272 (build-system ruby-build-system)
11274 '(#:tests? #f ; No included tests
11276 (modify-phases %standard-phases
11277 (add-before 'build 'patch-gemspec
11279 (substitute* ".gemspec"
11280 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
11281 "<eventmachine>, [\">= 1.0.0\"")
11282 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
11285 `(("ruby-eventmachine" ,ruby-eventmachine)
11286 ("ruby-thin" ,ruby-thin)))
11287 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
11288 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
11289 the Thin library.")
11290 (home-page "https://github.com/sj26/skinny")
11291 (license license:expat)))
11293 (define-public ruby-sys-filesystem
11295 (name "ruby-sys-filesystem")
11299 (uri (rubygems-uri "sys-filesystem" version))
11302 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
11303 (build-system ruby-build-system)
11305 '(#:phases (modify-phases %standard-phases
11306 (add-before 'check 'set-HOME
11308 ;; Some tests attempt to stat $HOME. Let them.
11309 (setenv "HOME" "/tmp")
11312 `(("ruby-ffi" ,ruby-ffi)))
11314 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
11315 (synopsis "Gather file system information")
11317 "The @code{sys-filesystem} library provides a cross-platform interface
11318 for gathering file system information, such as disk space and mount points.")
11319 (home-page "https://github.com/djberg96/sys-filesystem")
11320 (license license:asl2.0)))
11322 (define-public mailcatcher
11324 (name "mailcatcher")
11329 (uri (rubygems-uri "mailcatcher" version))
11332 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
11333 (build-system ruby-build-system)
11335 ;; Tests require web/assets which is not included in the output. We
11336 ;; might be able to fix this by adding the Git repository to the GEM_PATH
11337 ;; of the tests. See ruby-mysql2.
11340 (modify-phases %standard-phases
11341 (add-before 'build 'patch-gemspec
11343 (substitute* ".gemspec"
11344 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
11345 "<eventmachine>, [\">= 1.0.9.1")
11346 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
11347 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
11348 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
11350 (add-before 'build 'loosen-dependency-contraint
11352 (substitute* "lib/mail_catcher.rb"
11353 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
11354 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
11355 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
11356 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
11359 `(("ruby-eventmachine" ,ruby-eventmachine)
11360 ("ruby-mail" ,ruby-mail)
11361 ("ruby-rack" ,ruby-rack)
11362 ("ruby-sinatra" ,ruby-sinatra)
11363 ("ruby-skinny" ,ruby-skinny)
11364 ("ruby-sqlite3" ,ruby-sqlite3)
11365 ("ruby-thin" ,ruby-thin)))
11366 (synopsis "SMTP server which catches messages to display them a browser")
11368 "MailCatcher runs a super simple SMTP server which catches any message
11369 sent to it to display in a web interface. Run mailcatcher, set your favourite
11370 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
11371 then check out http://127.0.0.1:1080 to see the mail.")
11372 (home-page "https://mailcatcher.me")
11373 (license license:expat)))
11375 (define-public ruby-backport
11377 (name "ruby-backport")
11381 ;; The gem does not include test code, so fetch from the Git repository.
11383 (uri (git-reference
11384 (url "https://github.com/castwide/backport")
11385 (commit (string-append "v" version))))
11386 (file-name (git-file-name name version))
11388 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
11389 (build-system ruby-build-system)
11391 `(#:test-target "spec"))
11393 `(("bundler" ,bundler)
11394 ("ruby-rspec" ,ruby-rspec)))
11396 `(("ruby-simplecov" ,ruby-simplecov)))
11397 (synopsis "Pure Ruby library for event-driven IO")
11399 "This package provides a pure Ruby library for event-driven IO.")
11400 (home-page "https://github.com/castwide/backport")
11401 (license license:expat)))
11403 (define-public ruby-json-schema
11405 (name "ruby-json-schema")
11410 (uri (rubygems-uri "json-schema" version))
11413 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
11414 (build-system ruby-build-system)
11416 `(#:tests? #f ; no tests
11418 (modify-phases %standard-phases
11421 (invoke "gem" "build" ".gemspec"))))))
11423 `(("ruby-addressable" ,ruby-addressable)))
11424 (synopsis "Ruby JSON Schema Validator")
11425 (description "This library provides Ruby with an interface for validating
11426 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
11427 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
11428 is also included.")
11429 (home-page "https://github.com/ruby-json-schema/json-schema")
11430 (license license:expat)))
11432 (define-public swagger-diff
11434 (name "swagger-diff")
11439 (uri (rubygems-uri "swagger-diff" version))
11442 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
11443 (build-system ruby-build-system)
11445 `(#:test-target "spec"
11447 (modify-phases %standard-phases
11448 ;; Don't run or require rubocop, the code linting tool, as this is a
11449 ;; bit unnecessary.
11450 (add-after 'unpack 'dont-run-rubocop
11452 (substitute* "Rakefile"
11453 ((".*rubocop.*") "")
11454 ((".*RuboCop.*") ""))
11457 `(("ruby-json-schema" ,ruby-json-schema)))
11459 `(("bundler" ,bundler)
11460 ("ruby-rspec-core" ,ruby-rspec-core)
11461 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
11463 "Compare Open API Initiative specification files")
11465 "Swagger::Diff is a utility for comparing two different Open API
11466 Initiative (OAI) specifications (formerly known as Swagger specifications).
11467 It is intended to determine whether a newer API specification is
11468 backwards-compatible with an older API specification.")
11469 (home-page "https://github.com/civisanalytics/swagger-diff")
11470 (license license:bsd-3)))
11472 (define-public ruby-reverse-markdown
11474 (name "ruby-reverse-markdown")
11479 (uri (rubygems-uri "reverse_markdown" version))
11482 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
11483 (build-system ruby-build-system)
11485 `(("ruby-nokogiri" ,ruby-nokogiri)))
11487 `(("bundler" ,bundler)
11488 ("ruby-rspec" ,ruby-rspec)
11489 ("ruby-kramdown" ,ruby-kramdown)
11490 ("ruby-simplecov" ,ruby-simplecov)))
11493 (modify-phases %standard-phases
11495 (lambda* (#:key tests? #:allow-other-keys)
11499 (synopsis "Convert HTML into Markdown")
11501 "This Ruby module allows you to map simple HTML back into
11502 Markdown---e.g., if you want to import existing HTML data in your
11504 (home-page "https://github.com/xijo/reverse_markdown")
11505 (license license:wtfpl2)))
11507 (define-public ruby-solargraph
11509 (name "ruby-solargraph")
11514 (uri (rubygems-uri "solargraph" version))
11517 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
11518 (build-system ruby-build-system)
11520 `(("ruby-backport" ,ruby-backport)
11521 ("bundler" ,bundler)
11522 ("ruby-htmlentities" ,ruby-htmlentities)
11523 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
11524 ("ruby-maruku" ,ruby-maruku)
11525 ("ruby-nokogiri" ,ruby-nokogiri)
11526 ("ruby-parser" ,ruby-parser)
11527 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
11528 ("ruby-rubocop" ,ruby-rubocop)
11529 ("ruby-thor" ,ruby-thor)
11530 ("ruby-tilt" ,ruby-tilt)
11531 ("ruby-yard" ,ruby-yard)))
11533 `(("ruby-rspec" ,ruby-rspec)
11534 ("ruby-pry" ,ruby-pry)
11535 ("ruby-simplecov" ,ruby-simplecov)
11536 ("ruby-webmock" ,ruby-webmock-2)))
11537 ;; FIXME: can't figure out how to run the tests properly:
11539 ;; An error occurred while loading spec_helper.
11540 ;; Failure/Error: return gem_original_require(path)
11542 ;; cannot load such file -- spec_helper
11546 (modify-phases %standard-phases
11548 (lambda* (#:key tests? #:allow-other-keys)
11553 "IDE tools for code completion, inline documentation, and static analysis")
11555 "Solargraph provides a comprehensive suite of tools for Ruby
11556 programming: intellisense, diagnostics, inline documentation, and type
11558 (home-page "https://solargraph.org/")
11559 (license license:expat)))
11561 (define-public ruby-wayback-machine-downloader
11563 (name "ruby-wayback-machine-downloader")
11569 "wayback_machine_downloader"
11573 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
11574 (build-system ruby-build-system)
11576 '(#:tests? #f)) ; no tests
11577 (synopsis "Download archived websites from the Wayback Machine")
11579 "Wayback Machine Downloader is a command line tool for downloading
11580 websites from the Internet Archive's Wayback Machine (archive.org).
11581 It allows fine grained control over what to download by specifying
11582 which snapshots to consider and what files to include.")
11584 "https://github.com/hartator/wayback-machine-downloader")
11585 (license license:expat)))
11587 (define-public ruby-wwtd
11591 (home-page "https://github.com/grosser/wwtd")
11594 (uri (git-reference
11596 (commit (string-append "v" version))))
11597 (file-name (git-file-name name version))
11600 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
11601 (modules '((guix build utils)))
11604 ;; Remove bundled library.
11605 (delete-file "spec/rake-12.3.0.gem")
11607 (build-system ruby-build-system)
11609 '(;; XXX: Tests need multiple versions of ruby, wants to run
11610 ;; `bundle install`, etc.
11612 #:phases (modify-phases %standard-phases
11613 (replace 'replace-git-ls-files
11615 (substitute* "wwtd.gemspec"
11616 (("git ls-files lib/ bin/`")
11617 "find lib/ bin/ -type f |sort`"))
11619 (add-before 'check 'remove-version-constraints
11621 (delete-file "Gemfile.lock")
11624 (lambda* (#:key tests? #:allow-other-keys)
11626 (invoke "rspec" "spec/")
11627 (format #t "test suite not run~%"))
11630 `(("ruby-bump" ,ruby-bump)
11631 ("ruby-rspec" ,ruby-rspec)))
11632 (synopsis "Run @file{.travis.yml} files locally")
11634 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
11635 defined in @file{.travis.yml} on your local machine, using @code{rvm},
11636 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
11637 (license license:expat)))