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-rspec-its
636 (name "ruby-rspec-its")
642 (url "https://github.com/rspec/rspec-its")
643 (commit (string-append "v" version))))
644 (file-name (git-file-name name version))
647 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
648 (build-system ruby-build-system)
650 `(#:test-target "spec"
652 (modify-phases %standard-phases
653 (add-after 'unpack 'dont-install-gems-from-gemfile
655 (substitute* "Gemfile"
656 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
659 (add-before 'build 'loosen-ffi-requirement
661 ;; Accept any version of ruby-ffi.
662 (substitute* "Gemfile"
663 ((" gem 'ffi', '~> 1\\.9\\.25'")
666 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
668 (substitute* "rspec-its.gemspec"
669 (("rake.*") "rake'\n")
670 (("spec.add_development_dependency 'cucumber'.*")
671 "spec.add_development_dependency 'cucumber'\n")
672 (("bundler.*") "bundler'\n")
673 (("\"aruba.*") "'aruba'\n"))
676 `(("ruby-rspec-core" ,ruby-rspec-core)
677 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
679 `(("bundler" ,bundler)
680 ("ruby-cucumber" ,ruby-cucumber)
681 ("ruby-ffi" ,ruby-ffi)
682 ("ruby-aruba" ,ruby-aruba)))
683 (synopsis "RSpec extension that provides the @code{its} method")
685 "RSpec::Its provides the its method as a short-hand to specify the expected
686 value of an attribute. For example, one can use @code{its(:size)\\{should
688 (home-page "https://github.com/rspec/rspec-its")
689 (license license:expat)))
691 ;;; This variant is used to break a cycle with ruby-protobuf.
692 (define-public ruby-rspec-its-minimal
695 (inherit ruby-rspec-its)
697 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
698 ((#:tests? _ #f) #f)))
699 (native-inputs '()))))
701 (define-public ruby-rspec-mocks
703 (name "ruby-rspec-mocks")
707 (uri (rubygems-uri "rspec-mocks" version))
710 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
711 (build-system ruby-build-system)
713 '(#:tests? #f)) ; avoid dependency cycles
715 `(("ruby-rspec-support" ,ruby-rspec-support)
716 ("ruby-diff-lcs" ,ruby-diff-lcs)))
717 (synopsis "RSpec stubbing and mocking library")
718 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
719 support for stubbing and mocking.")
720 (home-page "https://github.com/rspec/rspec-mocks")
721 (license license:expat)))
723 (define-public ruby-rspec-mocks-2
724 (package (inherit ruby-rspec-mocks)
728 (uri (rubygems-uri "rspec-mocks" version))
731 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
733 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
735 (define-public ruby-rspec-rerun
737 (name "ruby-rspec-rerun")
742 (uri (rubygems-uri "rspec-rerun" version))
745 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
746 (build-system ruby-build-system)
748 '(;; No included tests
750 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
751 (synopsis "Track failed RSpec tests to re-run them")
753 "This package provides an automated way to track, and then re-run failed
755 (home-page "https://github.com/dblock/rspec-rerun")
756 (license license:expat)))
758 (define-public ruby-rspec-wait
760 (name "ruby-rspec-wait")
765 (uri (rubygems-uri "rspec-wait" version))
768 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
769 (build-system ruby-build-system)
772 (modify-phases %standard-phases
775 (invoke "rake" "spec"))))))
777 `(("bundler" ,bundler)))
779 `(("ruby-rspec" ,ruby-rspec)))
780 (home-page "https://github.com/laserlemon/rspec-wait")
781 (synopsis "Wait for conditions in RSpec")
783 "RSpec::Wait strives to make it easier to test asynchronous or slow
785 (license license:expat)))
787 (define-public ruby-rspec
793 (uri (rubygems-uri "rspec" version))
796 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
797 (build-system ruby-build-system)
799 '(#:tests? #f)) ; avoid dependency cycles
801 `(("ruby-rspec-core" ,ruby-rspec-core)
802 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
803 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
804 (synopsis "Behavior-driven development framework for Ruby")
805 (description "RSpec is a behavior-driven development (BDD) framework for
806 Ruby. This meta-package includes the RSpec test runner, along with the
807 expectations and mocks frameworks.")
808 (home-page "https://rspec.info/")
809 (license license:expat)))
811 (define-public ruby-rspec-2
812 (package (inherit ruby-rspec)
816 (uri (rubygems-uri "rspec" version))
819 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
821 `(("ruby-rspec-core" ,ruby-rspec-core-2)
822 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
823 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
825 ;; Bundler is yet another source of circular dependencies, so we must disable
826 ;; its test suite as well.
827 (define-public bundler
833 (uri (rubygems-uri "bundler" version))
836 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
837 (build-system ruby-build-system)
839 '(#:tests? #f)) ; avoid dependency cycles
840 (synopsis "Ruby gem bundler")
841 (description "Bundler automatically downloads and installs a list of gems
842 specified in a \"Gemfile\", as well as their dependencies.")
843 (home-page "https://bundler.io/")
844 (license license:expat)))
846 (define-public ruby-builder
848 (name "ruby-builder")
852 (uri (rubygems-uri "builder" version))
855 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
856 (build-system ruby-build-system)
859 (modify-phases %standard-phases
860 (add-after 'unpack 'do-not-use-rvm
862 (substitute* "rakelib/tags.rake"
863 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
865 (synopsis "Ruby library to create structured data")
866 (description "Builder provides a number of builder objects that make it
867 easy to create structured data. Currently the following builder objects are
868 supported: XML Markup and XML Events.")
869 (home-page "https://github.com/jimweirich/builder")
870 (license license:expat)))
872 (define-public ruby-bump
879 (uri (rubygems-uri "bump" version))
882 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
883 (build-system ruby-build-system)
885 '(;; No included tests
887 (synopsis "Tool for working with Rubygems")
889 "Bump provides commands to manage Rubygem versioning, updating to the
890 next patch version for example.")
891 (home-page "https://github.com/gregorym/bump")
892 (license license:expat)))
894 (define-public ruby-rjb
900 (uri (rubygems-uri "rjb" version))
903 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
904 (build-system ruby-build-system)
906 `(#:tests? #f ; no rakefile
908 (modify-phases %standard-phases
909 (add-before 'build 'set-java-home
910 (lambda* (#:key inputs #:allow-other-keys)
911 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
914 `(("jdk" ,icedtea "jdk")))
915 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
916 (description "RJB is a bridge program that connects Ruby and Java via the
917 Java Native Interface.")
918 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
919 (license license:lgpl2.1+)))
921 (define-public ruby-log4r
928 (uri (rubygems-uri "log4r" version))
931 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
932 (build-system ruby-build-system)
934 '(#:tests? #f)) ; no Rakefile in gem
935 (synopsis "Flexible logging library for Ruby")
936 (description "Comprehensive and flexible logging library written
937 in Ruby for use in Ruby programs. It features a hierarchical logging
938 system of any number of levels, custom level names, logger
939 inheritance, multiple output destinations per log event, execution
940 tracing, custom formatting, thread safteyness, XML and YAML
941 configuration, and more.")
942 (home-page "http://log4r.rubyforge.org/")
943 (license license:bsd-3)))
945 (define-public ruby-atoulme-antwrap
947 (name "ruby-atoulme-antwrap")
951 (uri (rubygems-uri "atoulme-Antwrap" version))
954 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
955 (build-system ruby-build-system)
956 ;; Test data required for most of the tests are not included.
957 (arguments `(#:tests? #f))
959 `(("ruby-hoe" ,ruby-hoe)))
961 `(("ruby-rjb" ,ruby-rjb)))
962 (synopsis "Ruby wrapper for the Ant build tool")
963 (description "Antwrap is a Ruby module that wraps the Apache Ant build
964 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
966 (home-page "http://rubyforge.org/projects/antwrap/")
967 (license license:expat)))
969 (define-public ruby-atoulme-saikuro
971 (name "ruby-atoulme-saikuro")
975 (uri (rubygems-uri "atoulme-Saikuro" version))
978 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
979 (build-system ruby-build-system)
980 ;; FIXME: There are no unit tests. The tests are demonstrations of the
982 (arguments `(#:tests? #f))
983 (synopsis "Cyclomatic complexity analyzer")
984 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
985 given Ruby source code Saikuro will generate a report listing the cyclomatic
986 complexity of each method found. In addition, Saikuro counts the number of
987 lines per method and can generate a listing of the number of tokens on each
989 (home-page "http://www.github.com/atoulme/Saikuro")
990 ;; File headers contain the BSD-3 license and the README.rdoc says that
991 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
992 ;; of the Expat license.
993 (license license:bsd-3)))
995 (define-public ruby-pandoc-ruby
997 (name "ruby-pandoc-ruby")
1001 (method git-fetch) ;the gem lacks many test files
1003 (url "https://github.com/xwmx/pandoc-ruby")
1005 (file-name (git-file-name name version))
1008 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1009 (build-system ruby-build-system)
1012 (modify-phases %standard-phases
1013 (add-after 'unpack 'disable-failing-tests
1014 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1015 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1017 (substitute* "test/test_conversions.rb"
1018 (("next if from == to.*" all)
1021 " next if ['plain', 'beamer'].include? to\n")))
1023 (add-after 'unpack 'patch-pandoc-path
1024 (lambda* (#:key inputs #:allow-other-keys)
1025 (let ((pandoc (string-append (assoc-ref inputs "ghc-pandoc")
1027 (substitute* "lib/pandoc-ruby.rb"
1028 (("@@pandoc_path = 'pandoc'")
1029 (format #f "@@pandoc_path = '~a'" pandoc)))
1030 (substitute* "test/test_pandoc_ruby.rb"
1031 (("('|\")pandoc" _ quote)
1032 (string-append quote pandoc))
1036 (add-after 'extract-gemspec 'remove-Gemfile.lock
1038 (delete-file "Gemfile.lock")
1039 (substitute* "pandoc-ruby.gemspec"
1040 (("Gemfile\\.lock") ""))
1043 `(("ruby-mocha" ,ruby-mocha)))
1045 `(("ghc-pandoc" ,ghc-pandoc)))
1046 (synopsis "Ruby wrapper for Pandoc")
1047 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1048 command line tools for converting one markup format to another. Pandoc can
1049 convert documents from a variety of formats including markdown,
1050 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1051 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1052 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1053 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1055 (home-page "https://github.com/xwmx/pandoc-ruby")
1056 (license license:expat)))
1058 (define-public ruby-slim
1065 (uri (rubygems-uri "slim" version))
1068 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1069 (build-system ruby-build-system)
1072 (modify-phases %standard-phases
1073 ;; See: https://github.com/slim-template/slim/issues/857 and
1074 ;; https://github.com/slim-template/slim/issues/858.
1075 (add-after 'unpack 'skip-broken-tests
1077 (substitute* "test/core/test_embedded_engines.rb"
1078 (("def test_render_with_markdown")
1079 "def skipped_test_render_with_markdown"))
1080 (substitute* "test/translator/test_translator.rb"
1081 (("raise (\"Missing test for.*)" _ tail)
1082 (string-append "print " tail)))
1084 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1085 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1086 (add-after 'unpack 'prevent-bundler-interference
1088 (substitute* "Rakefile"
1089 (("require 'bundler/setup'") "nil")
1090 (("Bundler::GemHelper\\.install_tasks") "nil"))
1093 `(("ruby-rack-test" ,ruby-rack-test)
1094 ("ruby-sinatra" ,ruby-sinatra)))
1096 `(("ruby-temple" ,ruby-temple)
1097 ("ruby-tilt" ,ruby-tilt)))
1098 (synopsis "Minimalist template language for Ruby")
1099 (description "Slim is a template language for Ruby that aims to reduce the
1100 syntax to the minimum while remaining clear.")
1101 (home-page "http://slim-lang.com/")
1102 (license license:expat)))
1104 (define-public ruby-asciidoctor
1106 (name "ruby-asciidoctor")
1110 (method git-fetch) ;the gem release lacks a Rakefile
1112 (url "https://github.com/asciidoctor/asciidoctor")
1113 (commit (string-append "v" version))))
1114 (file-name (git-file-name name version))
1117 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1118 (build-system ruby-build-system)
1120 `(#:test-target "test:all"
1122 (modify-phases %standard-phases
1123 (replace 'replace-git-ls-files
1125 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1126 ;; git ls-files output is merged in ruby-build-system.
1127 (substitute* "asciidoctor.gemspec"
1128 (("`git ls-files -z`")
1129 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1131 (add-after 'extract-gemspec 'strip-version-requirements
1133 (delete-file "Gemfile")
1134 (substitute* "asciidoctor.gemspec"
1135 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1136 (string-append stripped "\n")))
1139 `(("ruby-erubis" ,ruby-erubis)
1140 ("ruby-minitest" ,ruby-minitest)
1141 ("ruby-nokogiri" ,ruby-nokogiri)
1142 ("ruby-asciimath" ,ruby-asciimath)
1143 ("ruby-coderay" ,ruby-coderay)
1144 ("ruby-cucumber" ,ruby-cucumber)
1145 ("ruby-haml" ,ruby-haml)
1146 ("ruby-rouge" ,ruby-rouge)
1147 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1148 ("ruby-simplecov" ,ruby-simplecov)
1149 ("ruby-slim" ,ruby-slim)
1150 ("ruby-tilt" ,ruby-tilt)))
1151 (synopsis "Converter from AsciiDoc content to other formats")
1152 (description "Asciidoctor is a text processor and publishing toolchain for
1153 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1155 (home-page "https://asciidoctor.org")
1156 (license license:expat)))
1158 (define-public ruby-ast
1165 (uri (rubygems-uri "ast" version))
1168 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
1169 (build-system ruby-build-system)
1172 (modify-phases %standard-phases
1173 (add-after 'unpack 'remove-coveralls-requirement
1175 (substitute* "test/helper.rb"
1176 (("require 'coveralls'") "")
1177 (("Coveralls::SimpleCov::Formatter") ""))
1179 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1181 (substitute* "ast.gemspec"
1182 ((".*coveralls.*") "\n")
1183 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1184 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1185 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1188 `(("bundler" ,bundler)
1189 ("ruby-simplecov" ,ruby-simplecov)
1190 ("ruby-json-pure" ,ruby-json-pure)
1191 ("ruby-mime-times" ,ruby-mime-types)
1192 ("ruby-yard" ,ruby-yard)
1193 ("ruby-kramdown" ,ruby-kramdown)
1194 ("ruby-rest-client" ,ruby-rest-client)
1195 ("ruby-bacon" ,ruby-bacon)
1196 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1197 ("ruby-racc" ,ruby-racc)))
1198 (synopsis "Library for working with Abstract Syntax Trees")
1200 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1201 It does this through immutable data structures.")
1202 (home-page "https://whitequark.github.io/ast/")
1203 (license license:expat)))
1205 (define-public ruby-sporkmonger-rack-mount
1206 ;; Testing the addressable gem requires a newer commit than that released, so
1207 ;; use an up to date version.
1208 (let ((revision "1")
1209 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1211 (name "ruby-sporkmonger-rack-mount")
1212 (version (git-version "0.8.3" revision commit))
1216 (url "https://github.com/sporkmonger/rack-mount")
1218 (file-name (git-file-name name version))
1221 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1222 (build-system ruby-build-system)
1224 ;; Tests currently fail so disable them.
1225 ;; https://github.com/sporkmonger/rack-mount/pull/1
1227 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1228 (synopsis "Stackable dynamic tree based Rack router")
1230 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1231 continue trying routes if the response returns pass. This allows multiple
1232 routes to be nested or stacked on top of each other.")
1233 (home-page "https://github.com/sporkmonger/rack-mount")
1234 (license license:expat))))
1236 (define-public ruby-ci-reporter
1238 (name "ruby-ci-reporter")
1242 (uri (rubygems-uri "ci_reporter" version))
1245 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1246 (build-system ruby-build-system)
1248 `(#:test-target "rspec"))
1250 `(("ruby-builder" ,ruby-builder)))
1252 `(("bundler" ,bundler)
1253 ("ruby-rspec" ,ruby-rspec)))
1254 (synopsis "Generate XML reports of runs test")
1256 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1257 you to generate XML reports of your test runs. The resulting files can be
1258 read by a continuous integration system that understands Ant's JUnit report
1260 (home-page "https://github.com/nicksieger/ci_reporter")
1261 (license license:expat)))
1263 (define-public ruby-contracts
1265 (name "ruby-contracts")
1270 (uri (rubygems-uri "contracts" version))
1273 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1274 (build-system ruby-build-system)
1276 '(#:test-target "spec"
1278 (modify-phases %standard-phases
1279 ;; Don't run or require rubocop, the code linting tool, as this is a
1281 (add-after 'unpack 'dont-run-rubocop
1283 (substitute* "Rakefile"
1284 ((".*rubocop.*") "")
1285 ((".*RuboCop.*") ""))
1288 `(("ruby-rspec" ,ruby-rspec)))
1289 (synopsis "Method contracts for Ruby")
1291 "This library provides contracts for Ruby. A contract describes the
1292 correct inputs and output for a method, and will raise an error if a incorrect
1294 (home-page "https://github.com/egonSchiele/contracts.ruby")
1295 (license license:bsd-2)))
1297 (define-public ruby-crack
1304 (uri (rubygems-uri "crack" version))
1307 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1308 (build-system ruby-build-system)
1311 (modify-phases %standard-phases
1313 (lambda* (#:key tests? #:allow-other-keys)
1315 (for-each (lambda (file)
1316 (display file)(display "\n")
1317 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1318 (find-files "test" ".*rb$")))
1321 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1322 (synopsis "Simple JSON and XML parsing for Ruby")
1324 "@code{crack} provides really simple JSON and XML parsing, extracted from
1325 code in Merb and Rails.")
1326 (home-page "https://github.com/jnunemaker/crack")
1327 (license license:expat)))
1329 (define-public ruby-cliver
1331 (name "ruby-cliver")
1336 (uri (rubygems-uri "cliver" version))
1339 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1340 (build-system ruby-build-system)
1343 (modify-phases %standard-phases
1344 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1345 ;; would be nice, but the tests look to be incompatible:
1347 ;; NoMethodError: undefined method `last_comment'
1349 (lambda* (#:key tests? #:allow-other-keys)
1354 `(("bundler" ,bundler)
1355 ("ruby-rspec" ,ruby-rspec-2)))
1356 (synopsis "Assertions for command-line dependencies in Ruby")
1358 "@code{cliver} provides a way to detect missing command-line
1359 dependencies, including versions.")
1360 (home-page "https://github.com/yaauie/cliver")
1361 (license license:expat)))
1363 (define-public ruby-czmq-ffi-gen
1365 (name "ruby-czmq-ffi-gen")
1370 (uri (rubygems-uri "czmq-ffi-gen" version))
1373 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1374 (build-system ruby-build-system)
1376 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1378 (modify-phases %standard-phases
1379 (add-after 'unpack 'patch-lib_dirs
1380 (lambda* (#:key inputs #:allow-other-keys)
1381 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1382 (("lib\\_dirs = \\[.*\\]")
1383 (string-append "lib_dirs = ['"
1384 (assoc-ref inputs "czmq") "/lib"
1386 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1387 (("lib\\_dirs = \\[.*\\]")
1388 (string-append "lib_dirs = ['"
1389 (assoc-ref inputs "zeromq") "/lib"
1392 `(("zeromq" ,zeromq)
1394 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1395 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1397 "These Ruby bindings are not intended to be directly used, but rather
1398 used by higher level bindings like those provided by CZTop.")
1400 "https://github.com/paddor/czmq-ffi-gen")
1401 (license license:isc)))
1403 (define-public ruby-cztop
1410 (uri (rubygems-uri "cztop" version))
1413 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1414 (build-system ruby-build-system)
1416 '(#:test-target "spec"
1418 (modify-phases %standard-phases
1419 (add-after 'unpack 'patch-lib_paths
1420 (lambda* (#:key inputs #:allow-other-keys)
1421 (substitute* "lib/cztop/poller/zmq.rb"
1422 (("lib\\_paths = \\[.*\\]")
1423 (string-append "lib_paths = ['"
1424 (assoc-ref inputs "zeromq") "/lib"
1427 `(("bundler" ,bundler)
1428 ("ruby-rspec" ,ruby-rspec)))
1430 `(("zeromq" ,zeromq)))
1432 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1433 (synopsis "CZMQ Ruby bindings")
1435 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1436 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1437 support for security mechanisms.")
1438 (home-page "https://github.com/paddor/cztop")
1439 (license license:isc)))
1441 (define-public ruby-saikuro-treemap
1443 (name "ruby-saikuro-treemap")
1447 (uri (rubygems-uri "saikuro_treemap" version))
1450 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1451 (build-system ruby-build-system)
1452 ;; Some of the tests fail because the generated JSON has keys in a
1453 ;; different order. This is a problem with the test suite rather than any
1454 ;; of the involved libraries.
1455 (arguments `(#:tests? #f))
1457 `(("ruby-json-pure" ,ruby-json-pure)
1458 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1459 (synopsis "Generate complexity treemap based on saikuro analysis")
1461 "This gem generates a treemap showing the complexity of Ruby code on
1462 which it is run. It uses Saikuro under the covers to analyze Ruby code
1464 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1465 (license license:expat)))
1467 (define-public ruby-oauth2
1469 (name "ruby-oauth2")
1474 (uri (rubygems-uri "oauth2" version))
1476 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1477 (build-system ruby-build-system)
1479 '(#:tests? #f)) ; no included tests
1481 `(("ruby-faraday" ,ruby-faraday)
1482 ("ruby-jwt" ,ruby-jwt)
1483 ("ruby-multi-json" ,ruby-multi-json)
1484 ("ruby-multi-xml" ,ruby-multi-xml)
1485 ("ruby-rack" ,ruby-rack)))
1486 (synopsis "Ruby wrapper for the OAuth 2.0")
1488 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1489 with a similar style to the original OAuth spec.")
1490 (home-page "https://github.com/oauth-xx/oauth2")
1491 (license license:expat)))
1493 (define-public ruby-omniauth
1495 (name "ruby-omniauth")
1500 (uri (rubygems-uri "omniauth" version))
1502 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
1503 (build-system ruby-build-system)
1505 '(#:tests? #f)) ; No included tests
1507 `(("ruby-hashie" ,ruby-hashie)
1508 ("ruby-rack" ,ruby-rack)))
1509 (synopsis "Generalized Rack framework for multiple-provider authentication")
1511 "This package provides a generalized Rack framework for multiple-provider
1513 (home-page "https://github.com/omniauth/omniauth")
1514 (license license:expat)))
1516 (define-public ruby-omniauth-oauth2
1518 (name "ruby-omniauth-oauth2")
1523 (uri (rubygems-uri "omniauth-oauth2" version))
1526 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1527 (build-system ruby-build-system)
1530 (modify-phases %standard-phases
1531 (add-after 'unpack 'remove-unnecessary-dependencies
1533 ;; The coveralls gem submits coverage information to an online
1534 ;; service, and is unnecessary when running the tests
1535 (substitute* "Gemfile"
1536 ((".*coveralls\"") ""))
1537 (substitute* "spec/helper.rb"
1538 (("require \"coveralls\"") "")
1539 (("Coveralls::SimpleCov::Formatter") ""))
1542 `(("ruby-oauth2" ,ruby-oauth2)
1543 ("ruby-omniauth" ,ruby-omniauth)))
1545 `(("bundler" ,bundler)
1546 ("ruby-rspec" ,ruby-rspec)
1547 ("ruby-simplecov" ,ruby-simplecov)
1548 ("ruby-rack-test" ,ruby-rack-test)
1549 ("ruby-webmock" ,ruby-webmock-2)))
1550 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1552 "This library provides a generic OAuth2 strategy for OmniAuth. It
1553 doesn't provide a way to gather user information, so should be used as a
1554 building block for authentication strategies.")
1555 (home-page "https://github.com/omniauth/omniauth-oauth2")
1556 (license license:expat)))
1558 (define-public ruby-open4
1565 (uri (rubygems-uri "open4" version))
1568 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1569 (build-system ruby-build-system)
1572 (modify-phases %standard-phases
1573 (add-after 'unpack 'patch
1575 (substitute* "rakefile"
1576 ;; Update the Rakefile so it works
1577 (("-rubygems") "-rrubygems")
1578 (("Config") "RbConfig"))
1580 (add-before 'check 'set-LIB
1582 ;; This is used in the rakefile when running the tests
1583 (setenv "LIB" "open4")
1585 (synopsis "Open child processes from Ruby and manage them easily")
1587 "@code{Open4} is a Ruby library to run child processes and manage their
1589 (home-page "https://github.com/ahoward/open4")
1590 (license license:ruby)))
1592 (define-public ruby-options
1594 (name "ruby-options")
1599 (uri (rubygems-uri "options" version))
1602 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1603 (build-system ruby-build-system)
1605 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1607 (modify-phases %standard-phases
1608 (add-before 'check 'set-LIB
1610 ;; This is used in the Rakefile, and setting it avoids an issue
1611 ;; with running the tests.
1612 (setenv "LIB" "options")
1614 (synopsis "Ruby library to parse options from *args cleanly")
1616 "The @code{options} library helps with parsing keyword options in Ruby
1618 (home-page "https://github.com/ahoward/options")
1619 (license license:ruby)))
1621 (define-public ruby-erubi
1628 (uri (rubygems-uri "erubi" version))
1631 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1632 (build-system ruby-build-system)
1633 (synopsis "ERB template engine for Ruby")
1635 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1637 (home-page "https://github.com/jeremyevans/erubi")
1638 (license license:expat)))
1640 (define-public ruby-erubis
1642 (name "ruby-erubis")
1647 (uri (rubygems-uri "erubis" version))
1650 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1651 (build-system ruby-build-system)
1653 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1654 (synopsis "Implementation of embedded Ruby (eRuby)")
1656 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1657 features such as multi-language support, auto escaping, auto trimming spaces
1658 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1660 (home-page "http://www.kuwata-lab.com/erubis/")
1661 (license license:expat)))
1663 (define-public ruby-execjs
1665 (name "ruby-execjs")
1669 ;; fetch from github as the gem does not contain testing code
1672 (url "https://github.com/rails/execjs")
1673 (commit (string-append "v" version))))
1674 (file-name (git-file-name name version))
1677 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1678 (build-system ruby-build-system)
1680 `(("bundler" ,bundler)
1681 ;; The test suite tests all the available backends. Currenly, this just
1682 ;; means the node backend.
1684 ;; PASSED: test:node
1685 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1686 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1688 (synopsis "Run JavaScript code from Ruby")
1690 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1691 runtime to evaluate your JavaScript program, then returns the result to you as
1693 (home-page "https://github.com/rails/execjs")
1694 (license license:expat)))
1696 (define-public ruby-fakefs
1698 (name "ruby-fakefs")
1700 (home-page "https://github.com/fakefs/fakefs")
1702 ;; The Rubygems release does not contain tests.
1706 (commit (string-append "v" version))))
1707 (file-name (git-file-name name version))
1710 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
1711 (build-system ruby-build-system)
1713 '(#:phases (modify-phases %standard-phases
1714 (replace 'replace-git-ls-files
1716 (substitute* "fakefs.gemspec"
1717 (("`git ls-files lib README.md LICENSE`")
1718 "`find lib README.md LICENSE -type f | sort`"))
1720 (add-before 'check 'remove-version-constraints
1722 ;; Drop hard version requirements for test dependencies.
1723 (substitute* "fakefs.gemspec"
1724 (("(.*add_development_dependency .*), .*" _ dep)
1725 (string-append dep "\n")))
1728 `(("ruby-bump" ,ruby-bump)
1729 ("ruby-maxitest" ,ruby-maxitest)
1730 ("ruby-rubocop" ,ruby-rubocop)
1731 ("ruby-rspec" ,ruby-rspec)))
1732 (synopsis "Fake file system for Ruby")
1734 "This package provides a fake file system for use in test suites. It
1735 avoids the need for manually creating temporary directories, or dealing
1736 with platform intricacies in @code{File} and @code{FileUtils}.")
1737 (license license:expat)))
1739 (define-public ruby-orderedhash
1741 (name "ruby-orderedhash")
1745 (uri (rubygems-uri "orderedhash" version))
1748 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1749 (build-system ruby-build-system)
1751 '(#:tests? #f)) ; no test suite
1752 (synopsis "Ruby library providing an order-preserving hash")
1753 (description "Orderedhash is a Ruby library providing a hash
1754 implementation that preserves the order of items and features some array-like
1756 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1757 (license license:public-domain)))
1759 (define-public ruby-libxml
1761 (name "ruby-libxml")
1766 (uri (rubygems-uri "libxml-ruby" version))
1769 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1770 (build-system ruby-build-system)
1773 ("libxml2" ,libxml2)))
1775 '(#:tests? #f ; test suite hangs for unknown reason
1778 (string-append "--with-xml2-include="
1779 (assoc-ref %build-inputs "libxml2")
1780 "/include/libxml2" ))))
1781 (synopsis "Ruby bindings for GNOME Libxml2")
1782 (description "The Libxml-Ruby project provides Ruby language bindings for
1783 the GNOME Libxml2 XML toolkit.")
1784 (home-page "https://xml4r.github.com/libxml-ruby")
1785 (license license:expat)))
1787 (define-public ruby-lino
1794 (uri (rubygems-uri "lino" version))
1797 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1798 (build-system ruby-build-system)
1800 '(#:tests? #f)) ; No included tests
1802 `(("ruby-hamster" ,ruby-hamster)
1803 ("ruby-open4" ,ruby-open4)))
1804 (synopsis "Build and execute commands in Ruby")
1806 "@code{Lino} provides an interface to run external commands. It provides
1807 an interface to add options as well as managing the standard input, output and
1809 (home-page "https://github.com/tobyclemson/lino")
1810 (license license:expat)))
1812 (define-public ruby-xml-simple
1814 (name "ruby-xml-simple")
1818 (uri (rubygems-uri "xml-simple" version))
1821 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1822 (build-system ruby-build-system)
1824 '(#:tests? #f)) ; no test suite
1825 (synopsis "Simple Ruby library for XML processing")
1826 (description "This library provides a simple API for XML processing in
1828 (home-page "https://github.com/maik/xml-simple")
1829 (license license:ruby)))
1831 (define-public ruby-thor
1836 ;; Pull from git because the gem has no tests.
1839 (url "https://github.com/erikhuda/thor")
1840 (commit (string-append "v" version))))
1841 (file-name (git-file-name name version))
1844 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
1845 (build-system ruby-build-system)
1847 '(#:phases (modify-phases %standard-phases
1848 (add-after 'unpack 'fix-readline-tests
1850 ;; Ensure Readline is initialized before running the
1851 ;; test to avoid a type clash with the mock ::Readline.
1852 ;; See <https://github.com/erikhuda/thor/pull/717>.
1853 (substitute* "spec/line_editor/readline_spec.rb"
1854 (("unless defined\\? ::Readline" all)
1855 (string-append "Thor::LineEditor::Readline.available?\n"
1858 (add-after 'unpack 'remove-coveralls-dependency
1860 ;; Do not hook the test suite into the online
1861 ;; coveralls service.
1862 (substitute* "Gemfile"
1863 ((".*coveralls.*") ""))
1864 (substitute* "spec/helper.rb"
1865 (("require \"coveralls\"") "")
1866 (("Coveralls::SimpleCov::Formatter") "")
1867 ;; Also drop the WebMock dependency which is only
1868 ;; present to allow a coveralls.io connection, and
1869 ;; would otherwise introduce a circular dependency.
1870 (("require \"webmock/rspec\"") "")
1871 (("WebMock\\.disable_net_connect.*") ""))
1873 (add-after 'unpack 'disable-network-tests
1875 ;; These tests attempt to look up example.com.
1876 (substitute* "spec/actions/file_manipulation_spec.rb"
1877 (("it \"accepts (https?) remote sources" _ proto)
1878 (string-append "xit \"accepts " proto " remote sources")))
1880 (add-after 'unpack 'disable-quality-tests
1882 ;; These tests attempt to check the git repository for
1883 ;; tabs vs spaces, double vs single quotes, etc, and
1884 ;; depend on the git checkout.
1885 (delete-file "spec/quality_spec.rb")
1887 (add-before 'check 'make-files-writable
1889 ;; The tests needs rw access to the test suite.
1890 (for-each make-file-writable (find-files "spec"))
1894 (invoke "rspec" "spec"))))))
1896 `(("ruby-rspec" ,ruby-rspec)
1897 ("ruby-simplecov" ,ruby-simplecov)))
1898 (synopsis "Ruby toolkit for building command-line interfaces")
1899 (description "Thor is a toolkit for building powerful command-line
1901 (home-page "http://whatisthor.com/")
1902 (license license:expat)))
1904 (define-public ruby-lumberjack
1906 (name "ruby-lumberjack")
1910 (uri (rubygems-uri "lumberjack" version))
1913 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1914 (build-system ruby-build-system)
1916 `(("ruby-rspec" ,ruby-rspec)
1917 ("ruby-timecop" ,ruby-timecop)))
1918 (synopsis "Logging utility library for Ruby")
1919 (description "Lumberjack is a simple logging utility that can be a drop in
1920 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1921 for automatically rolling log files even with multiple processes writing the
1923 (home-page "https://github.com/bdurand/lumberjack")
1924 (license license:expat)))
1926 (define-public ruby-rbnacl
1928 (name "ruby-rbnacl")
1933 (uri (rubygems-uri "rbnacl" version))
1936 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1937 (build-system ruby-build-system)
1940 (modify-phases %standard-phases
1941 (add-after 'unpack 'remove-unnecessary-dependencies
1943 ;; Coveralls relates to a network service, and Rubocop to code
1944 ;; linting and both are unnecessary to run the tests
1945 (substitute* "Gemfile"
1946 ((".*rubocop.*") "\n")
1947 ((".*guard-rspec.*") "\n")
1948 ((".*coveralls.*") "\n"))
1949 (substitute* "spec/spec_helper.rb"
1950 (("require \"coveralls\"") "")
1951 (("Coveralls.wear!") ""))
1953 (add-after 'unpack 'use-libsodium-from-store
1954 (lambda* (#:key inputs #:allow-other-keys)
1955 (substitute* '("lib/rbnacl/init.rb"
1956 "lib/rbnacl/sodium.rb")
1957 (("ffi_lib \\[.+\\]")
1958 (string-append "ffi_lib [\""
1959 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1962 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1964 (lambda* (#:key tests? #:allow-other-keys)
1969 `(("ruby-ffi" ,ruby-ffi)))
1971 `(("libsodium" ,libsodium)))
1973 `(("bundler" ,bundler)
1974 ("ruby-rspec" ,ruby-rspec)))
1975 (synopsis "Ruby FFI binding to libsodium")
1977 "This package provides Ruby FFI bindings to the Networking and
1978 Cryptography (NaCl) library, also known as libsodium. This provides a
1979 high-level toolkit for building cryptographic systems and protocols.")
1980 (home-page "https://github.com/crypto-rb/rbnacl")
1981 (license license:expat)))
1983 (define-public ruby-nenv
1989 (uri (rubygems-uri "nenv" version))
1992 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1993 (build-system ruby-build-system)
1995 `(#:tests? #f)) ; no tests included
1997 `(("ruby-rspec" ,ruby-rspec)
1998 ("bundler" ,bundler)))
1999 (synopsis "Ruby interface for modifying the environment")
2000 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
2001 and inspect the environment.")
2002 (home-page "https://github.com/e2/nenv")
2003 (license license:expat)))
2005 (define-public ruby-ptools
2007 (name "ruby-ptools")
2011 (uri (rubygems-uri "ptools" version))
2014 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2015 (build-system ruby-build-system)
2017 '(#:phases (modify-phases %standard-phases
2018 (add-after 'unpack 'patch-/bin/ls
2020 (substitute* "test/test_binary.rb"
2024 (add-before 'install 'create-gem
2026 ;; Do not attempt to sign the gem.
2027 (substitute* "Rakefile"
2028 (("spec\\.signing_key = .*")
2030 (invoke "rake" "gem:create"))))))
2031 (synopsis "Extra methods for Ruby's @code{File} class")
2033 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2034 class with many additional methods modelled after common POSIX tools, such as
2035 @code{File.which} for finding executables, @code{File.tail} to print the last
2036 lines of a file, @code{File.wc} to count words, and so on.")
2037 (home-page "https://github.com/djberg96/ptools")
2038 (license license:artistic2.0)))
2040 (define-public ruby-permutation
2042 (name "ruby-permutation")
2046 (uri (rubygems-uri "permutation" version))
2049 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2050 (build-system ruby-build-system)
2053 (modify-phases %standard-phases
2054 (add-after 'unpack 'fix-rakefile
2056 (substitute* "Rakefile"
2057 (("require 'rake/gempackagetask'")
2058 "require 'rubygems/package_task'")
2059 (("include Config") ""))
2063 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2064 (synopsis "Library to perform operations with sequence permutations")
2065 (description "This package provides a Ruby library to perform different
2066 operations with permutations of sequences, such as strings and arrays.")
2067 (home-page "https://flori.github.io/permutation")
2068 (license license:gpl2))) ; GPL 2 only
2070 (define-public ruby-shellany
2072 (name "ruby-shellany")
2076 (uri (rubygems-uri "shellany" version))
2079 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2080 (build-system ruby-build-system)
2082 `(#:test-target "default"
2084 (modify-phases %standard-phases
2085 (add-after 'unpack 'fix-version-test
2087 (substitute* "spec/shellany_spec.rb"
2088 (("^RSpec") "require \"shellany\"\nRSpec"))
2091 `(("ruby-rspec" ,ruby-rspec)
2092 ("ruby-nenv" ,ruby-nenv)
2093 ("bundler" ,bundler)))
2094 (synopsis "Capture command output")
2095 (description "Shellany is a Ruby library providing functions to capture
2096 the output produced by running shell commands.")
2097 (home-page "https://rubygems.org/gems/shellany")
2098 (license license:expat)))
2100 (define-public ruby-notiffany
2102 (name "ruby-notiffany")
2106 (uri (rubygems-uri "notiffany" version))
2109 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2110 (build-system ruby-build-system)
2111 ;; Tests are not included in the gem.
2112 (arguments `(#:tests? #f))
2114 `(("ruby-shellany" ,ruby-shellany)
2115 ("ruby-nenv" ,ruby-nenv)))
2117 `(("bundler" ,bundler)))
2118 (synopsis "Wrapper library for notification libraries")
2119 (description "Notiffany is a Ruby wrapper library for notification
2120 libraries such as Libnotify.")
2121 (home-page "https://github.com/guard/notiffany")
2122 (license license:expat)))
2124 (define-public ruby-forking-test-runner
2126 (name "ruby-forking-test-runner")
2128 (home-page "https://github.com/grosser/forking_test_runner")
2131 (uri (git-reference (url home-page)
2132 (commit (string-append "v" version))))
2133 (file-name (git-file-name name version))
2136 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2137 (build-system ruby-build-system)
2139 '(#:test-target "spec"
2140 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2141 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2143 #:phases (modify-phases %standard-phases
2144 (replace 'replace-git-ls-files
2146 (substitute* "forking_test_runner.gemspec"
2147 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2148 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2150 (add-before 'check 'remove-version-constraints
2152 ;; Ignore hard coded version constraints for the tests.
2153 (delete-file "Gemfile.lock")
2155 (add-before 'check 'set-HOME
2157 ;; Many tests invoke Bundler, and fails when Bundler
2158 ;; warns that /homeless-shelter does not exist.
2159 (setenv "HOME" "/tmp")
2162 `(("ruby-activerecord" ,ruby-activerecord)
2163 ("ruby-bump" ,ruby-bump)
2164 ("ruby-rspec" ,ruby-rspec)
2165 ("ruby-sqlite3" ,ruby-sqlite3)
2166 ("ruby-wwtd" ,ruby-wwtd)))
2168 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2169 (synopsis "Run every test in a fork")
2171 "This package is a wrapper around @code{parallel_tests} that runs every
2172 test in a fork to avoid pollution and get clean output per test.")
2173 (license license:expat)))
2175 (define-public ruby-formatador
2177 (name "ruby-formatador")
2181 (uri (rubygems-uri "formatador" version))
2184 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2185 (build-system ruby-build-system)
2186 ;; Circular dependency: Tests require ruby-shindo, which requires
2187 ;; ruby-formatador at runtime.
2188 (arguments `(#:tests? #f))
2189 (synopsis "Ruby library to format text on stdout")
2190 (description "Formatador is a Ruby library to format text printed to the
2191 standard output stream.")
2192 (home-page "https://github.com/geemus/formatador")
2193 (license license:expat)))
2195 (define-public ruby-fuubar
2197 (name "ruby-fuubar")
2201 ;; Fetch from the git repository, as the gem package doesn't include
2205 (url "https://github.com/thekompanee/fuubar")
2206 (commit (string-append "releases/v" version))))
2207 (file-name (git-file-name name version))
2210 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2211 (build-system ruby-build-system)
2213 '(;; TODO: Some tests fail, unsure why.
2214 ;; 21 examples, 7 failures
2217 (modify-phases %standard-phases
2218 (add-before 'build 'delete-certificate
2220 ;; Remove 's.cert_chain' as we do not build with a private key
2221 (substitute* "fuubar.gemspec"
2222 ((".*cert_chain.*") "")
2223 ((".*signing_key.*") ""))
2226 (lambda* (#:key tests? #:allow-other-keys)
2231 `(("bundler" ,bundler)))
2233 `(("ruby-rspec-core" ,ruby-rspec-core)
2234 ("ruby-progressbar" ,ruby-progressbar)))
2235 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2237 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2238 string of letters and dots as feedback. It also stops on the first test
2240 (home-page "https://github.com/thekompanee/fuubar")
2241 (license license:expat)))
2243 (define-public ruby-haml
2250 (uri (rubygems-uri "haml" version))
2253 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2254 (build-system ruby-build-system)
2256 '(#:tests? #f)) ; No included tests
2258 `(("ruby-tilt" ,ruby-tilt)
2259 ("ruby-temple" ,ruby-temple)))
2260 (synopsis "Haml is a Ruby library to generate HTML documents")
2262 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2263 HTML or XML that is designed to express the structure of documents using
2264 indentation rather than closing tags. It was originally envisioned as a
2265 plugin for Ruby on Rails, but it can function as a stand-alone templating
2267 (home-page "http://haml.info/")
2268 (license license:expat)))
2270 (define-public ruby-hamster
2272 (name "ruby-hamster")
2277 (uri (rubygems-uri "hamster" version))
2280 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2281 (build-system ruby-build-system)
2284 (modify-phases %standard-phases
2285 (add-after 'unpack 'remove-unnecessary-dependencies
2287 ;; pry is a debugging tool, and is unnecessary when running the
2289 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2290 (("require 'pry'") ""))
2291 (substitute* "spec/spec_helper.rb"
2292 (("require \"pry\"") "")
2293 ;; CodeClimate is an online service, and is unnecessary for
2294 ;; running the tests
2295 (("require \"codeclimate-test-reporter\"") "")
2296 (("CodeClimate.*\n") ""))
2298 ;; No Rakefile is included, so run rspec directly.
2300 (lambda* (#:key tests? #:allow-other-keys)
2305 `(("ruby-concurrent" ,ruby-concurrent)))
2307 `(("ruby-rspec" ,ruby-rspec)))
2308 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2310 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2311 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2312 immutable queue or stack).")
2313 (home-page "https://github.com/hamstergem/hamster")
2314 (license license:expat)))
2316 (define-public ruby-hashdiff
2318 (name "ruby-hashdiff")
2323 (uri (rubygems-uri "hashdiff" version))
2326 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2327 (build-system ruby-build-system)
2330 (modify-phases %standard-phases
2331 ;; Run tests directly via rspec to avoid Rake issue:
2332 ;; NoMethodError: undefined method `last_comment'
2334 (lambda* (#:key tests? #:allow-other-keys)
2339 `(("bundler" ,bundler)
2340 ("ruby-rspec" ,ruby-rspec-2)))
2341 (synopsis "HashDiff computes the smallest difference between two hashes")
2343 "HashDiff is a Ruby library to compute the smallest difference between
2345 (home-page "https://github.com/liufengyun/hashdiff")
2346 (license license:expat)))
2348 (define-public ruby-hydra
2350 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
2354 (version (git-version "0.0" revision commit))
2355 (home-page "https://github.com/hyphenation/hydra")
2358 (uri (git-reference (url home-page) (commit commit)))
2359 (file-name (git-file-name name version))
2362 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
2363 (build-system ruby-build-system)
2365 '(#:phases (modify-phases %standard-phases
2366 (add-after 'unpack 'make-files-writable
2368 (for-each make-file-writable (find-files "."))
2372 (invoke "rspec"))))))
2374 `(("ruby-rspec" ,ruby-rspec)))
2376 `(("ruby-byebug" ,ruby-byebug)))
2377 (synopsis "Ruby hyphenation patterns")
2379 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2380 (license license:expat))))
2382 (define-public ruby-shindo
2384 (name "ruby-shindo")
2388 (uri (rubygems-uri "shindo" version))
2391 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2392 (build-system ruby-build-system)
2394 `(#:test-target "shindo_tests"
2396 (modify-phases %standard-phases
2397 (add-after 'unpack 'fix-tests
2399 (substitute* "tests/tests_helper.rb"
2401 (substitute* "Rakefile"
2402 (("system \"shindo") "system \"./bin/shindo")
2403 ;; This test doesn't work, so we disable it.
2404 (("fail \"The build_error test should fail") "#")
2405 ((" -rubygems") ""))
2408 `(("ruby-formatador" ,ruby-formatador)))
2409 (synopsis "Simple depth first Ruby testing")
2410 (description "Shindo is a simple depth first testing library for Ruby.")
2411 (home-page "https://github.com/geemus/shindo")
2412 (license license:expat)))
2414 (define-public ruby-rubygems-tasks
2416 (name "ruby-rubygems-tasks")
2420 (uri (rubygems-uri "rubygems-tasks" version))
2423 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
2424 (build-system ruby-build-system)
2425 ;; Tests need Internet access.
2426 (arguments `(#:tests? #f))
2428 `(("ruby-rspec" ,ruby-rspec)
2429 ("ruby-yard" ,ruby-yard)))
2430 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2431 (description "Rubygems-task provides Rake tasks for managing and releasing
2433 (home-page "https://github.com/postmodern/rubygems-tasks")
2434 (license license:expat)))
2436 (define-public ruby-rubyzip
2438 (name "ruby-rubyzip")
2443 (uri (rubygems-uri "rubyzip" version))
2446 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2447 (build-system ruby-build-system)
2450 (modify-phases %standard-phases
2451 (add-before 'check 'patch-tests
2452 (lambda* (#:key inputs #:allow-other-keys)
2453 (substitute* "test/gentestfiles.rb"
2456 (assoc-ref inputs "zip") "/bin/zip")))
2457 (substitute* "test/input_stream_test.rb"
2458 (("/usr/bin/env ruby") (which "ruby")))
2461 `(("bundler" ,bundler)
2462 ("ruby-simplecov" ,ruby-simplecov)
2465 (synopsis "Ruby module is for reading and writing zip files")
2467 "The rubyzip module provides ways to read from and create zip files.")
2468 (home-page "https://github.com/rubyzip/rubyzip")
2469 (license license:bsd-2)))
2471 (define-public ruby-simplecov-html
2473 (name "ruby-simplecov-html")
2477 (uri (rubygems-uri "simplecov-html" version))
2480 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2481 (build-system ruby-build-system)
2482 (arguments `(#:tests? #f)) ; there are no tests
2484 `(("bundler" ,bundler)))
2485 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2486 (description "This package provides the default HTML formatter for
2487 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2488 (home-page "https://github.com/colszowka/simplecov-html")
2489 (license license:expat)))
2491 (define-public ruby-simplecov
2493 (name "ruby-simplecov")
2497 (uri (rubygems-uri "simplecov" version))
2500 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2501 (build-system ruby-build-system)
2502 ;; Simplecov depends on rubocop for code style checking at build time.
2503 ;; Rubocop needs simplecov at build time.
2504 (arguments `(#:tests? #f))
2506 `(("ruby-json" ,ruby-json)
2507 ("ruby-docile" ,ruby-docile)
2508 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2510 `(("bundler" ,bundler)))
2511 (synopsis "Code coverage framework for Ruby")
2512 (description "SimpleCov is a code coverage framework for Ruby with a
2513 powerful configuration library and automatic merging of coverage across test
2515 (home-page "https://github.com/colszowka/simplecov")
2516 (license license:expat)))
2518 (define-public ruby-useragent
2520 (name "ruby-useragent")
2524 (uri (rubygems-uri "useragent" version))
2527 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2528 (build-system ruby-build-system)
2530 '(#:tests? #f)) ; no test suite
2531 (synopsis "HTTP user agent parser for Ruby")
2532 (description "UserAgent is a Ruby library that parses and compares HTTP
2534 (home-page "https://github.com/gshutler/useragent")
2535 (license license:expat)))
2537 (define-public ruby-backports
2539 (name "ruby-backports")
2544 (uri (rubygems-uri "backports" version))
2547 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2548 (build-system ruby-build-system)
2550 '(;; TODO: This should be default, but there is one test failure
2551 #:test-target "all_spec"))
2553 `(("ruby-mspec" ,ruby-mspec)
2554 ("ruby-activesupport" ,ruby-activesupport)))
2555 (synopsis "Backports of the features in newer Ruby versions")
2557 "Backports enables more compatibility across Ruby versions by providing
2558 backports of some features.")
2559 (home-page "https://github.com/marcandre/backports")
2560 (license license:expat)))
2562 (define-public ruby-bacon
2568 (uri (rubygems-uri "bacon" version))
2571 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2572 (build-system ruby-build-system)
2573 (synopsis "Small RSpec clone")
2574 (description "Bacon is a small RSpec clone providing all essential
2576 (home-page "https://github.com/chneukirchen/bacon")
2577 (license license:expat)))
2579 (define-public ruby-bacon-bits
2581 (name "ruby-bacon-bits")
2586 (uri (rubygems-uri "bacon-bits" version))
2589 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2590 (build-system ruby-build-system)
2594 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2595 (synopsis "Extensions to Bacon, for disabling tests, before and after
2598 "This extends the bacon testing framework with useful extensions to
2599 disable tests, have before and after blocks that run once and more.")
2600 (home-page "https://github.com/cldwalker/bacon-bits")
2601 (license license:expat)))
2603 (define-public ruby-bacon-colored-output
2605 (name "ruby-bacon-colored-output")
2610 (uri (rubygems-uri "bacon-colored_output" version))
2613 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2614 (build-system ruby-build-system)
2616 '(;; No included tests
2619 `(("ruby-bacon" ,ruby-bacon)))
2620 (synopsis "Colored output for Bacon test framework")
2622 "This package adds color through ANSI escape codes to Bacon test
2624 (home-page "https://github.com/whitequark/bacon-colored_output")
2625 (license license:expat)))
2627 (define-public ruby-connection-pool
2629 (name "ruby-connection-pool")
2633 (uri (rubygems-uri "connection_pool" version))
2636 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2637 (build-system ruby-build-system)
2639 `(("bundler" ,bundler)))
2640 (synopsis "Generic connection pool for Ruby")
2641 (description "Connection_pool provides a generic connection pooling
2642 interface for Ruby programs.")
2643 (home-page "https://github.com/mperham/connection_pool")
2644 (license license:expat)))
2646 (define-public ruby-fast-gettext
2648 (name "ruby-fast-gettext")
2650 (home-page "https://github.com/grosser/fast_gettext")
2653 (uri (git-reference (url home-page)
2654 (commit (string-append "v" version))))
2655 (file-name (git-file-name name version))
2658 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
2659 (build-system ruby-build-system)
2661 '(#:test-target "spec"
2662 #:phases (modify-phases %standard-phases
2663 (add-before 'check 'remove-version-constraints
2665 (delete-file "Gemfile.lock")
2667 (add-before 'check 'remove-activerecord-test
2669 ;; FIXME: This test fails because ActiveRecord depends on
2670 ;; a different version of ruby-sqlite than the currently
2673 "spec/fast_gettext/translation_repository/db_spec.rb")
2675 (add-before 'check 'disable-i18n-test
2677 ;; XXX: This test checks i18n intricasies with Rails 3 and
2678 ;; automatically disables itself for Rails 4.0, but does
2679 ;; not know about newer versions as it has not been updated
2680 ;; since 2014. Disable for later versions of Rails too.
2681 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
2682 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
2683 "ActiveRecord::VERSION::MINOR == 0"))
2684 "ActiveRecord::VERSION::MAJOR >= 4"))
2688 ("ruby-activerecord" ,ruby-activerecord)
2689 ("ruby-activesupport" ,ruby-activesupport)
2690 ("ruby-bump" ,ruby-bump)
2691 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
2692 ("ruby-i18n" ,ruby-i18n)
2693 ("ruby-rubocop" ,ruby-rubocop)
2694 ("ruby-rspec" ,ruby-rspec)
2695 ("ruby-single-cov" ,ruby-single-cov)
2696 ("ruby-sqlite3" ,ruby-sqlite3)
2697 ("ruby-wwtd" ,ruby-wwtd)))
2698 (synopsis "Fast implementation of @code{GetText}")
2700 "This package provides an alternative implementation of the Ruby
2701 @code{GetText} library that is approximately 12x faster yet thread safe.")
2702 ;; Some parts are covered by the Ruby license, see file headers.
2703 (license (list license:expat license:ruby))))
2705 (define-public ruby-net-http-persistent
2707 (name "ruby-net-http-persistent")
2711 (uri (rubygems-uri "net-http-persistent" version))
2714 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2715 (build-system ruby-build-system)
2717 `(("ruby-connection-pool" ,ruby-connection-pool)
2718 ("ruby-hoe" ,ruby-hoe)))
2719 (synopsis "Persistent HTTP connection manager")
2720 (description "Net::HTTP::Persistent manages persistent HTTP connections
2721 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2722 (home-page "https://github.com/drbrain/net-http-persistent")
2723 (license license:expat)))
2725 (define-public ruby-power-assert
2727 (name "ruby-power-assert")
2731 (uri (rubygems-uri "power_assert" version))
2734 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2735 (build-system ruby-build-system)
2737 '(#:tests? #f)) ; No included tests
2739 `(("bundler" ,bundler)))
2740 (synopsis "Assert library with descriptive assertion messages")
2741 (description "Power-assert is an assertion library providing descriptive
2742 assertion messages for tests.")
2743 (home-page "https://github.com/k-tsj/power_assert")
2744 (license (list license:bsd-2 license:ruby))))
2746 (define-public ruby-powerpack
2748 (name "ruby-powerpack")
2753 (uri (rubygems-uri "powerpack" version))
2756 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2757 (build-system ruby-build-system)
2759 '(#:test-target "spec"))
2761 `(("bundler" ,bundler)
2762 ("ruby-rspec" ,ruby-rspec)
2763 ("ruby-yard" ,ruby-yard)))
2764 (synopsis "Useful extensions to core Ruby classes")
2766 "This package provides a few useful extensions to core Ruby classes,
2767 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2769 (home-page "https://github.com/bbatsov/powerpack")
2770 (license license:expat)))
2772 (define-public ruby-locale
2774 (name "ruby-locale")
2778 (uri (rubygems-uri "locale" version))
2781 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2782 (build-system ruby-build-system)
2783 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2784 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2785 ;; dependency cycle we disable tests.
2786 (arguments `(#:tests? #f))
2788 `(("bundler" ,bundler)
2789 ("ruby-yard" ,ruby-yard)))
2790 (synopsis "Ruby library providing basic localization APIs")
2792 "Ruby-Locale is the pure ruby library which provides basic APIs for
2794 (home-page "https://github.com/ruby-gettext/locale")
2795 (license (list license:lgpl3+ license:ruby))))
2797 (define-public ruby-temple
2799 (name "ruby-temple")
2804 (uri (rubygems-uri "temple" version))
2807 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
2808 (build-system ruby-build-system)
2810 `(("ruby-tilt" ,ruby-tilt)
2811 ("ruby-bacon" ,ruby-bacon)
2812 ("ruby-erubis" ,ruby-erubis)))
2813 (synopsis "Template compilation framework in Ruby")
2815 "Temple is an abstraction and framework for compiling templates to pure
2817 (home-page "https://github.com/judofyr/temple")
2818 (license license:expat)))
2820 (define-public ruby-text
2826 (uri (rubygems-uri "text" version))
2829 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2830 (build-system ruby-build-system)
2831 (synopsis "Collection of text algorithms for Ruby")
2833 "This package provides a collection of text algorithms: Levenshtein,
2834 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2835 (home-page "https://github.com/threedaymonk/text")
2836 (license license:expat)))
2838 (define-public ruby-gettext
2840 (name "ruby-gettext")
2844 (uri (rubygems-uri "gettext" version))
2847 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2848 (build-system ruby-build-system)
2849 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2850 ;; which needs ruby-gettext. To break the dependency cycle we disable
2852 (arguments `(#:tests? #f))
2854 `(("ruby-locale" ,ruby-locale)
2855 ("ruby-text" ,ruby-text)))
2857 `(("bundler" ,bundler)
2858 ("ruby-yard" ,ruby-yard)))
2859 (synopsis "GNU gettext-like program for Ruby")
2861 "Gettext is a GNU gettext-like program for Ruby. The catalog
2862 file (po-file) used is the same as that used by GNU gettext, allowing you to
2863 use GNU gettext tools for maintenance.")
2864 (home-page "https://ruby-gettext.github.com/")
2865 (license (list license:lgpl3+ license:ruby))))
2867 (define-public ruby-packnga
2869 (name "ruby-packnga")
2873 (uri (rubygems-uri "packnga" version))
2876 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2877 (build-system ruby-build-system)
2878 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2879 ;; To break the dependency cycle we disable tests.
2880 (arguments `(#:tests? #f))
2882 `(("ruby-gettext" ,ruby-gettext)
2883 ("ruby-yard" ,ruby-yard)))
2885 `(("bundler" ,bundler)))
2886 (synopsis "Utility library to package internationalized libraries")
2888 "Packnga is a library to translate to many languages using YARD.")
2889 (home-page "http://ranguba.org/packnga/")
2890 (license license:lgpl2.0+)))
2892 (define-public ruby-test-construct
2894 (name "ruby-test-construct")
2899 (uri (rubygems-uri "test_construct" version))
2902 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2903 (build-system ruby-build-system)
2905 `(("bundler" ,bundler)
2906 ("ruby-mocha" ,ruby-mocha)
2907 ("ruby-rspec" ,ruby-rspec)))
2908 (synopsis "Creates temporary files and directories for testing")
2910 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2911 temporary files and directories during tests.")
2912 (home-page "https://github.com/bhb/test_construct")
2913 (license license:expat)))
2915 (define-public ruby-test-unit
2917 (name "ruby-test-unit")
2921 (uri (rubygems-uri "test-unit" version))
2924 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2925 (build-system ruby-build-system)
2927 `(("ruby-power-assert" ,ruby-power-assert)))
2929 `(("bundler" ,bundler)
2930 ("ruby-packnga" ,ruby-packnga)
2931 ("ruby-yard" ,ruby-yard)))
2932 (synopsis "Unit testing framework for Ruby")
2933 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2934 on xUnit principles. These were originally designed by Kent Beck, creator of
2935 extreme programming software development methodology, for Smalltalk's SUnit.
2936 It allows writing tests, checking results and automated testing in Ruby.")
2937 (home-page "https://test-unit.github.io/")
2938 (license (list license:psfl license:ruby))))
2940 (define-public ruby-markaby
2942 (name "ruby-markaby")
2947 (uri (rubygems-uri "markaby" version))
2950 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2951 (build-system ruby-build-system)
2954 (modify-phases %standard-phases
2955 ;; Run rspec manually without using the Rakefile, as the versions of
2956 ;; Rake and RSpec 2 are incompatible:
2958 ;; NoMethodError: undefined method `last_comment'
2960 (lambda* (#:key tests? #:allow-other-keys)
2965 `(("ruby-builder" ,ruby-builder)))
2967 `(("bundler" ,bundler)
2968 ("ruby-rspec" ,ruby-rspec-2)))
2969 (synopsis "Write HTML pages in pure Ruby")
2971 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2972 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2973 mixture of HTML and additional ERB syntax.")
2974 (home-page "https://markaby.github.io/")
2975 (license license:expat)))
2977 (define-public ruby-maruku
2979 (name "ruby-maruku")
2984 (uri (rubygems-uri "maruku" version))
2987 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2988 (build-system ruby-build-system)
2990 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2993 (modify-phases %standard-phases
2995 (lambda* (#:key tests? #:allow-other-keys)
3000 `(("ruby-rspec" ,ruby-rspec)
3001 ("ruby-simplecov" ,ruby-simplecov)
3002 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
3003 (synopsis "Markdown interpreter in Ruby")
3005 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
3006 HTML, and PDF through LaTeX.")
3007 (home-page "https://github.com/bhollis/maruku")
3008 (license license:expat)))
3010 (define-public ruby-metaclass
3012 (name "ruby-metaclass")
3016 (uri (rubygems-uri "metaclass" version))
3019 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3020 (build-system ruby-build-system)
3023 (modify-phases %standard-phases
3024 (add-after 'unpack 'add-test-unit-to-search-path
3025 (lambda* (#:key inputs #:allow-other-keys)
3026 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3027 (substitute* "Rakefile"
3028 (("t\\.libs << \"test\"" line)
3029 (string-append line "; t.libs << \""
3030 test-unit "/lib/ruby/vendor_ruby"
3032 ,(package-version ruby-test-unit)
3036 `(("bundler" ,bundler)
3037 ("ruby-test-unit" ,ruby-test-unit)))
3038 (synopsis "Ruby library adding metaclass method to all objects")
3040 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3042 (home-page "https://github.com/floehopper/metaclass")
3043 (license license:expat)))
3045 (define-public ruby-mkmf-lite
3047 (name "ruby-mkmf-lite")
3051 (uri (rubygems-uri "mkmf-lite" version))
3054 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3055 (build-system ruby-build-system)
3057 `(("ruby-ptools" ,ruby-ptools)))
3058 (synopsis "Lightweight alternative to @code{mkmf}")
3060 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3061 for use as a library. It does not create packages, builds, or log files of
3062 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3063 to check for the presence of header files, constants, and so on.")
3064 (home-page "https://github.com/djberg96/mkmf-lite")
3065 (license license:asl2.0)))
3067 (define-public ruby-mspec
3074 (uri (rubygems-uri "mspec" version))
3077 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3078 (build-system ruby-build-system)
3080 '(;; TODO: 3 test failures
3081 ;; ./spec/mocks/mock_spec.rb:82
3082 ;; ./spec/utils/name_map_spec.rb:151
3083 ;; ./spec/utils/name_map_spec.rb:155
3086 (modify-phases %standard-phases
3087 (add-after 'extract-gemspec 'change-dependency-constraints
3089 (substitute* "mspec.gemspec"
3090 (("rake.*") "rake>)\n")
3091 (("rspec.*") "rspec>)\n"))
3094 (lambda* (#:key tests? #:allow-other-keys)
3096 (invoke "rspec" "spec"))
3099 `(("bundler" ,bundler)
3100 ("ruby-rake" ,ruby-rake)
3101 ("ruby-rspec" ,ruby-rspec)))
3102 (synopsis "MSpec is a specialized framework for RubySpec")
3104 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3105 for basic features. MSpec contains additional features that assist in writing
3106 specs for Ruby implementations in ruby/spec.")
3107 (home-page "http://rubyspec.org")
3108 (license license:expat)))
3110 (define-public ruby-mysql2
3112 (name "ruby-mysql2")
3118 (url "https://github.com/brianmario/mysql2")
3120 (file-name (git-file-name name version))
3123 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3124 (build-system ruby-build-system)
3126 '(;; TODO: Tests require a running MySQL/MariaDB service
3129 (modify-phases %standard-phases
3130 (replace 'replace-git-ls-files
3132 (substitute* "mysql2.gemspec"
3133 (("git ls-files .*`") "find . -type f |sort`"))
3135 (add-before 'install 'set-MAKEFLAGS
3136 (lambda* (#:key outputs #:allow-other-keys)
3140 "prefix=" (assoc-ref outputs "out")))
3142 ;; Move the 'check phase to after 'install, as then you can test
3143 ;; using the installed mysql2 gem in the store.
3145 (add-after 'install 'check
3146 (lambda* (#:key outputs tests? #:allow-other-keys)
3151 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3156 `(("mariadb" ,mariadb "lib")
3157 ("mariadb-dev" ,mariadb "dev")
3160 `(("ruby-rspec" ,ruby-rspec)
3161 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3162 (synopsis "MySQL library for Ruby, binding to libmysql")
3164 "This package provides a simple, fast MySQL library for Ruby, binding to
3166 (home-page "https://github.com/brianmario/mysql2")
3167 (license license:expat)))
3169 (define-public ruby-blankslate
3171 (name "ruby-blankslate")
3175 (uri (rubygems-uri "blankslate" version))
3178 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3179 (build-system ruby-build-system)
3182 (modify-phases %standard-phases
3184 (lambda _ (invoke "rspec" "spec/"))))))
3186 `(("bundler" ,bundler)
3187 ("ruby-rspec" ,ruby-rspec)))
3188 (synopsis "Abstract base class with no predefined methods")
3190 "BlankSlate provides an abstract base class with no predefined
3191 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3192 as a base class when writing classes that depend upon
3193 @code{method_missing} (e.g. dynamic proxies).")
3194 (home-page "https://github.com/masover/blankslate")
3195 (license license:expat)))
3197 (define-public ruby-bond
3204 (uri (rubygems-uri "bond" version))
3207 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3208 (build-system ruby-build-system)
3210 `(("ruby-bacon" ,ruby-bacon)
3211 ("ruby-bacon-bits" ,ruby-bacon-bits)
3212 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3213 (synopsis "Bond can provide custom autocompletion for arguments, methods
3216 "Bond can autocomplete argument(s) to methods, uniquely completing per
3217 module, per method and per argument. Bond provides a configuration system and
3218 a DSL for creating custom completions and completion rules. Bond can also
3219 load completions that ship with gems. Bond is able to offer more than irb's
3220 completion since it uses the full line of input when completing as opposed to
3221 irb's last-word approach.")
3222 (home-page "http://tagaholic.me/bond/")
3223 (license license:expat)))
3225 (define-public ruby-idn-ruby
3227 (name "ruby-idn-ruby")
3232 (uri (rubygems-uri "idn-ruby" version))
3235 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3236 (build-system ruby-build-system)
3239 (modify-phases %standard-phases
3241 (add-after 'install 'check
3242 (lambda* (#:key tests? outputs #:allow-other-keys)
3244 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3245 (name-and-version (basename gem-file ".gem")))
3249 (assoc-ref outputs "out")
3250 "/lib/ruby/vendor_ruby/gems/"
3253 (find-files "./test" ".*\\.rb"))))
3256 `(("libidn" ,libidn)))
3257 (synopsis "Ruby Bindings for the GNU LibIDN library")
3259 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3260 Stringprep, Punycode and IDNA specifications. These are used to encode and
3261 decode internationalized domain + names according to the IDNA2003
3264 Included are the most important parts of the Stringprep, Punycode and IDNA
3265 APIs like performing Stringprep processings, encoding to and decoding from
3266 Punycode strings and converting entire domain names to and from the ACE
3268 (home-page "https://github.com/deepfryed/idn-ruby")
3269 (license license:asl2.0)))
3271 (define-public ruby-instantiator
3273 (name "ruby-instantiator")
3277 (uri (rubygems-uri "instantiator" version))
3280 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3281 (build-system ruby-build-system)
3284 (modify-phases %standard-phases
3285 (add-after 'unpack 'add-test-unit-to-search-path
3286 (lambda* (#:key inputs #:allow-other-keys)
3287 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3288 (substitute* "Rakefile"
3289 (("t\\.libs << \"test\"" line)
3290 (string-append line "; t.libs << \""
3291 test-unit "/lib/ruby/vendor_ruby"
3293 ,(package-version ruby-test-unit)
3297 `(("ruby-blankslate" ,ruby-blankslate)))
3299 `(("bundler" ,bundler)
3300 ("ruby-test-unit" ,ruby-test-unit)))
3301 (synopsis "Instantiate an arbitrary Ruby class")
3303 "Instantiator lets you instantiate an arbitrary Ruby class without
3304 knowing anything about the constructor.")
3305 (home-page "https://github.com/floehopper/instantiator")
3306 (license license:expat)))
3308 (define-public ruby-introspection
3310 (name "ruby-introspection")
3314 (uri (rubygems-uri "introspection" version))
3317 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3318 (build-system ruby-build-system)
3321 (modify-phases %standard-phases
3322 (add-after 'unpack 'add-test-unit-to-search-path
3323 (lambda* (#:key inputs #:allow-other-keys)
3324 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3325 (substitute* "Rakefile"
3326 (("t\\.libs << \"test\"" line)
3327 (string-append line "; t.libs << \""
3328 test-unit "/lib/ruby/vendor_ruby"
3330 ,(package-version ruby-test-unit)
3334 `(("ruby-instantiator" ,ruby-instantiator)
3335 ("ruby-metaclass" ,ruby-metaclass)))
3337 `(("bundler" ,bundler)
3338 ("ruby-blankslate" ,ruby-blankslate)
3339 ("ruby-test-unit" ,ruby-test-unit)))
3340 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
3342 "Introspection provides tools to inspect the hierarchy of method
3343 definitions on a Ruby object.")
3344 (home-page "https://github.com/floehopper/introspection")
3345 (license license:expat)))
3347 (define-public ruby-redcarpet
3349 (name "ruby-redcarpet")
3353 (uri (rubygems-uri "redcarpet" version))
3356 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
3357 (build-system ruby-build-system)
3360 (modify-phases %standard-phases
3361 ;; The gem archive does not include the conformance tests.
3362 (add-after 'unpack 'disable-conformance-tests
3364 (substitute* "Rakefile"
3365 (("task :test => %w\\[test:unit test:conformance\\]")
3366 "task :test => %w[test:unit]"))
3369 `(("bundler" ,bundler)
3370 ("ruby-test-unit" ,ruby-test-unit)
3371 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3372 (synopsis "Extensible Markdown to (X)HTML converter")
3374 "Redcarpet is an extensible Ruby library for Markdown processing and
3375 conversion to (X)HTML.")
3376 (home-page "https://github.com/vmg/redcarpet")
3377 (license license:expat)))
3379 (define-public ruby-rerun
3386 (uri (rubygems-uri "rerun" version))
3389 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
3390 (build-system ruby-build-system)
3392 '(#:tests? #f)) ; No included tests
3394 `(("ruby-listen" ,ruby-listen)))
3395 (synopsis "Run a process, and restart when some monitored files change")
3397 "Rerun is a tool to launch programs, then monitor the file system, and
3398 restart the program when any of the monitored files change. It's written in
3399 Ruby, but can be used for all programs.")
3400 (home-page "https://github.com/alexch/rerun/")
3401 (license license:expat)))
3403 (define-public ruby-maxitest
3405 (name "ruby-maxitest")
3407 (home-page "https://github.com/grosser/maxitest")
3409 ;; Pull from git because the gem does not contain tests.
3413 (commit (string-append "v" version))))
3414 (file-name (git-file-name name version))
3417 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
3418 (build-system ruby-build-system)
3420 '(#:test-target "default"
3421 #:phases (modify-phases %standard-phases
3422 (replace 'replace-git-ls-files
3424 (substitute* "maxitest.gemspec"
3425 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
3426 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
3428 (add-before 'check 'remove-version-constraints
3430 ;; Don't use specific versions of dependencies, instead
3431 ;; take whatever is available in Guix.
3432 (delete-file "Gemfile.lock")
3434 (add-before 'check 'add-mtest-on-PATH
3436 ;; Tests use 'mtest' which is not automatically added on
3438 (setenv "PATH" (string-append (getcwd) "/bin:"
3443 ("ruby-bump" ,ruby-bump)
3444 ("ruby-byebug" ,ruby-byebug)
3445 ("ruby-rspec" ,ruby-rspec)
3446 ("ruby-wwtd" ,ruby-wwtd)))
3448 `(("ruby-minitest" ,ruby-minitest)))
3449 (synopsis "Minitest with extra features")
3451 "Maxitest is a wrapper around Minitest with extra functionality such
3452 as timeouts, an @command{mtest} executable that can run tests by line
3453 number, support for interrupted tests, better backtraces, and more.")
3454 (license license:expat)))
3456 (define-public ruby-mocha
3462 (uri (rubygems-uri "mocha" version))
3465 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
3466 (build-system ruby-build-system)
3469 (modify-phases %standard-phases
3470 (add-before 'check 'remove-rubocop-dependency
3472 ;; Disable dependency on Rubocop, which is just a linter,
3473 ;; and would introduce a circular dependency.
3474 (substitute* "mocha.gemspec"
3479 `(("ruby-introspection" ,ruby-introspection)))
3480 (synopsis "Mocking and stubbing library for Ruby")
3482 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3483 allows mocking and stubbing of methods on real (non-mock) classes.")
3484 (home-page "http://gofreerange.com/mocha/docs")
3485 ;; Mocha can be used with either license at the users choice.
3486 (license (list license:expat license:ruby))))
3488 (define-public ruby-mocha-on-bacon
3490 (name "ruby-mocha-on-bacon")
3495 (uri (rubygems-uri "mocha-on-bacon" version))
3498 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3499 (build-system ruby-build-system)
3501 ;; rubygems.org release missing tests
3503 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3504 (synopsis "Mocha adapter for Bacon")
3506 "This package provides a Mocha adapter for Bacon, allowing you to use the
3507 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3509 "https://github.com/alloy/mocha-on-bacon")
3510 (license license:expat)))
3512 (define-public ruby-net-ssh
3514 (name "ruby-net-ssh")
3518 (uri (rubygems-uri "net-ssh" version))
3521 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3522 (build-system ruby-build-system)
3524 `(("bundler" ,bundler)
3525 ("ruby-mocha" ,ruby-mocha)
3526 ("ruby-test-unit" ,ruby-test-unit)))
3527 (synopsis "Ruby implementation of the SSH2 client protocol")
3528 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3529 client protocol. It allows you to write programs that invoke and interact
3530 with processes on remote servers, via SSH2.")
3531 (home-page "https://github.com/net-ssh/net-ssh")
3532 (license license:expat)))
3534 (define-public ruby-net-scp
3536 (name "ruby-net-scp")
3537 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3538 (version "1.2.2.rc2")
3543 (url "https://github.com/net-ssh/net-scp")
3544 (commit (string-append "v" version))))
3545 (file-name (git-file-name name version))
3547 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3548 (build-system ruby-build-system)
3550 `(("bundler" ,bundler)
3551 ("ruby-test-unit" ,ruby-test-unit)
3552 ("ruby-mocha" ,ruby-mocha)))
3554 `(("ruby-net-ssh" ,ruby-net-ssh)))
3555 (synopsis "Pure-Ruby SCP client library")
3556 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3558 (home-page "https://github.com/net-ssh/net-scp")
3559 (license license:expat)))
3561 (define-public ruby-minitest
3563 (name "ruby-minitest")
3567 (uri (rubygems-uri "minitest" version))
3570 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3571 (build-system ruby-build-system)
3573 `(("ruby-hoe" ,ruby-hoe)))
3574 (synopsis "Small test suite library for Ruby")
3575 (description "Minitest provides a complete suite of Ruby testing
3576 facilities supporting TDD, BDD, mocking, and benchmarking.")
3577 (home-page "https://github.com/seattlerb/minitest")
3578 (license license:expat)))
3580 ;; This is the last release of Minitest 4, which is used by some packages.
3581 (define-public ruby-minitest-4
3582 (package (inherit ruby-minitest)
3586 (uri (rubygems-uri "minitest" version))
3589 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3592 (modify-phases %standard-phases
3593 (add-after 'unpack 'remove-unsupported-method
3595 (substitute* "Rakefile"
3596 (("self\\.rubyforge_name = .*") ""))
3598 (add-after 'build 'exclude-failing-tests
3600 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3602 (delete-file "test/minitest/test_minitest_spec.rb")
3605 (define-public ruby-minitest-around
3607 (name "ruby-minitest-around")
3612 (uri (rubygems-uri "minitest-around" version))
3615 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3616 (build-system ruby-build-system)
3619 (modify-phases %standard-phases
3620 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3622 (substitute* "minitest-around.gemspec"
3623 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3626 `(("ruby-minitest" ,ruby-minitest)))
3628 `(("bundler" ,bundler)
3629 ("ruby-cucumber" ,ruby-cucumber)
3630 ("ruby-bump" ,ruby-bump)
3631 ("ruby-test-construct" ,ruby-test-construct)))
3632 (synopsis "Run code around tests in Minitest")
3634 "This library provides a way to run code around tests in Minitest,
3635 written using either the unit test or spec style.")
3636 (home-page "https://github.com/splattael/minitest-around")
3637 (license license:expat)))
3639 (define-public ruby-minitest-sprint
3641 (name "ruby-minitest-sprint")
3645 (uri (rubygems-uri "minitest-sprint" version))
3648 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3649 (build-system ruby-build-system)
3651 `(("ruby-hoe" ,ruby-hoe)
3652 ("ruby-minitest" ,ruby-minitest)))
3653 (synopsis "Fast test suite runner for minitest")
3654 (description "Minitest-sprint is a test runner for minitest that makes it
3655 easier to re-run individual failing tests.")
3656 (home-page "https://github.com/seattlerb/minitest-sprint")
3657 (license license:expat)))
3659 (define-public ruby-minitest-bacon
3661 (name "ruby-minitest-bacon")
3665 (uri (rubygems-uri "minitest-bacon" version))
3668 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3669 (build-system ruby-build-system)
3671 `(("ruby-hoe" ,ruby-hoe)))
3673 `(("ruby-minitest" ,ruby-minitest)))
3674 (synopsis "Bacon compatibility library for minitest")
3675 (description "Minitest-bacon extends minitest with bacon-like
3676 functionality, making it easier to migrate test suites from bacon to minitest.")
3677 (home-page "https://github.com/seattlerb/minitest-bacon")
3678 (license license:expat)))
3680 (define-public ruby-minitest-focus
3682 (name "ruby-minitest-focus")
3687 (uri (rubygems-uri "minitest-focus" version))
3690 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3691 (build-system ruby-build-system)
3693 `(("ruby-minitest" ,ruby-minitest)))
3695 `(("ruby-hoe" ,ruby-hoe)))
3696 (synopsis "Allows a few specific tests to be focused on")
3698 "@code{minitest-focus} gives the ability focus on a few tests with ease
3699 without having to use command-line arguments. It introduces a @code{focus}
3700 class method for use in testing classes, specifying that the next defined test
3702 (home-page "https://github.com/seattlerb/minitest-focus")
3703 (license license:expat)))
3705 (define-public ruby-minitest-pretty-diff
3706 ;; Use git reference because gem is out of date and does not contain testing
3707 ;; script. There are no releases on GitHub.
3708 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3710 (name "ruby-minitest-pretty-diff")
3711 (version (string-append "0.1-1." (string-take commit 8)))
3715 (url "https://github.com/adammck/minitest-pretty_diff")
3717 (file-name (string-append name "-" version "-checkout"))
3720 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3721 (build-system ruby-build-system)
3724 (modify-phases %standard-phases
3727 (invoke "script/test"))))))
3729 `(("bundler" ,bundler)
3730 ("ruby-turn" ,ruby-turn)))
3731 (synopsis "Pretty-print hashes and arrays in MiniTest")
3733 "@code{minitest-pretty_diff} monkey-patches
3734 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3735 diffing them. This makes it easier to spot differences between nested
3736 structures when tests fail.")
3737 (home-page "https://github.com/adammck/minitest-pretty_diff")
3738 (license license:expat))))
3740 (define-public ruby-minitest-moar
3742 (name "ruby-minitest-moar")
3747 (uri (rubygems-uri "minitest-moar" version))
3750 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3751 (build-system ruby-build-system)
3754 (modify-phases %standard-phases
3755 (add-before 'check 'clean-dependencies
3757 ;; Remove all gems defined in the Gemfile because these are not
3759 (substitute* "Gemfile"
3761 ;; Remove byebug as not needed to run tests.
3762 (substitute* "test/test_helper.rb"
3763 (("require 'byebug'") ""))
3766 `(("bundler" ,bundler)
3767 ("ruby-minitest" ,ruby-minitest)))
3768 (synopsis "Extra features and changes to MiniTest")
3769 (description "@code{MiniTest Moar} add some additional features and
3770 changes some default behaviours in MiniTest. For instance, Moar replaces the
3771 MiniTest @code{Object#stub} with a global @code{stub} method.")
3772 (home-page "https://github.com/dockyard/minitest-moar")
3773 (license license:expat)))
3775 (define-public ruby-minitest-bonus-assertions
3777 (name "ruby-minitest-bonus-assertions")
3782 (uri (rubygems-uri "minitest-bonus-assertions" version))
3785 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3786 (build-system ruby-build-system)
3789 (modify-phases %standard-phases
3790 (add-before 'check 'clean-dependencies
3792 ;; Remove unneeded require statement that would entail another
3794 (substitute* "test/minitest_config.rb"
3795 (("require 'minitest/bisect'") ""))
3798 `(("ruby-hoe" ,ruby-hoe)
3799 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3800 ("ruby-minitest-focus" ,ruby-minitest-focus)
3801 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3802 (synopsis "Bonus assertions for @code{Minitest}")
3804 "Minitest bonus assertions provides extra MiniTest assertions. For
3805 instance, it provides @code{assert_true}, @code{assert_false} and
3806 @code{assert_set_equal}.")
3807 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3808 (license license:expat)))
3810 (define-public ruby-minitest-reporters
3812 (name "ruby-minitest-reporters")
3817 (uri (rubygems-uri "minitest-reporters" version))
3820 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3821 (build-system ruby-build-system)
3824 (modify-phases %standard-phases
3825 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3826 ;; including it as an input can lead to circular dependencies.
3827 (add-after 'unpack 'remove-rubocop-from-Rakefile
3829 (substitute* "Rakefile"
3830 (("require 'rubocop/rake\\_task'") "")
3831 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3833 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3835 (substitute* "minitest-reporters.gemspec"
3836 ((".*%q<rubocop>.*") "\n"))
3839 `(("ruby-ansi" ,ruby-ansi)
3840 ("ruby-builder" ,ruby-builder)
3841 ("ruby-minitest" ,ruby-minitest)
3842 ("ruby-progressbar" ,ruby-progressbar)))
3844 `(("bundler" ,bundler)
3845 ("ruby-maruku" ,ruby-maruku)))
3846 (synopsis "Enhanced reporting for Minitest tests")
3848 "@code{minitest/reporters} provides a custom Minitest runner to improve
3849 how the test state is reported. A number of different reporters are
3850 available, including a spec reporter, progress bar reporter, a HTML
3852 (home-page "https://github.com/kern/minitest-reporters")
3853 (license license:expat)))
3855 (define-public ruby-minitest-rg
3857 (name "ruby-minitest-rg")
3862 (uri (rubygems-uri "minitest-rg" version))
3865 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3866 (build-system ruby-build-system)
3868 ;; Some tests fail even outside Guix, so disable tests.
3869 ;; https://github.com/blowmage/minitest-rg/issues/12
3870 ;; https://github.com/blowmage/minitest-rg/pull/13
3873 `(("ruby-minitest" ,ruby-minitest)))
3874 (synopsis "Coloured output for Minitest")
3876 "@code{minitest-rg} changes the colour of the output from Minitest.")
3877 (home-page "https://blowmage.com/minitest-rg/")
3878 (license license:expat)))
3880 (define-public ruby-minitest-hooks
3882 (name "ruby-minitest-hooks")
3887 (uri (rubygems-uri "minitest-hooks" version))
3890 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3891 (build-system ruby-build-system)
3893 '(#:test-target "spec"))
3895 `(("ruby-sequel" ,ruby-sequel)
3896 ("ruby-sqlite3" ,ruby-sqlite3)))
3897 (synopsis "Hooks for the minitest framework")
3899 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3900 @code{around_all} hooks for Minitest. This allows, for instance, running each
3901 suite of specs inside a database transaction, running each spec inside its own
3902 savepoint inside that transaction. This can significantly speed up testing
3903 for specs that share expensive database setup code.")
3904 (home-page "https://github.com/jeremyevans/minitest-hooks")
3905 (license license:expat)))
3907 (define-public ruby-daemons
3909 (name "ruby-daemons")
3913 (uri (rubygems-uri "daemons" version))
3916 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3917 (build-system ruby-build-system)
3919 `(#:tests? #f)) ; no test suite
3920 (synopsis "Daemonize Ruby programs")
3921 (description "Daemons provides a way to wrap existing Ruby scripts to be
3922 run as a daemon and to be controlled by simple start/stop/restart commands.")
3923 (home-page "https://github.com/thuehlinger/daemons")
3924 (license license:expat)))
3926 (define-public ruby-data_uri
3928 (name "ruby-data_uri")
3933 (uri (rubygems-uri "data_uri" version))
3936 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3937 (build-system ruby-build-system)
3938 (synopsis "URI class for parsing data URIs")
3940 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3941 embedded inside a URI. The URI::Data class provides support for parsing these
3942 URIs using the normal URI.parse method.")
3943 (home-page "https://github.com/dball/data_uri")
3944 (license license:expat)))
3946 (define-public ruby-deep-merge
3948 (name "ruby-deep-merge")
3950 (home-page "https://github.com/danielsdeleo/deep_merge")
3951 ;; The Rubygem source does not contain the gemspec required for tests.
3954 (uri (git-reference (url home-page) (commit version)))
3955 (file-name (git-file-name name version))
3958 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
3959 (build-system ruby-build-system)
3961 `(("ruby-minitest" ,ruby-minitest)))
3962 (synopsis "Recursively merge hashes")
3964 "Deep Merge is a set of utility functions for @code{Hash}. It permits
3965 you to merge elements inside a hash together recursively.")
3966 (license license:expat)))
3968 (define-public ruby-git
3974 (uri (rubygems-uri "git" version))
3977 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3978 (build-system ruby-build-system)
3980 `(#:tests? #f ; no tests
3981 #:phases (modify-phases %standard-phases
3982 (add-after 'install 'patch-git-binary
3983 (lambda* (#:key inputs outputs #:allow-other-keys)
3984 ;; Make the default git binary an absolute path to the
3986 (let ((git (string-append (assoc-ref inputs "git")
3988 (config (string-append
3989 (assoc-ref outputs "out")
3990 "/lib/ruby/vendor_ruby/gems/git-"
3991 ,version "/lib/git/config.rb")))
3992 (substitute* (list config)
3994 (string-append "'" git "'")))
3998 (synopsis "Ruby wrappers for Git")
3999 (description "Ruby/Git is a Ruby library that can be used to create, read
4000 and manipulate Git repositories by wrapping system calls to the git binary.")
4001 (home-page "https://github.com/schacon/ruby-git")
4002 (license license:expat)))
4004 (define-public ruby-hocon
4008 (home-page "https://github.com/puppetlabs/ruby-hocon")
4011 (uri (git-reference (url home-page) (commit version)))
4012 (file-name (git-file-name name version))
4015 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4016 (build-system ruby-build-system)
4018 '(#:phases (modify-phases %standard-phases
4020 (lambda* (#:key tests? #:allow-other-keys)
4023 (format #t "test suite not run~%"))
4026 `(("bundler" ,bundler)
4027 ("ruby-rspec" ,ruby-rspec)))
4028 (synopsis "HOCON config library")
4030 "This package provides Ruby support for the @acronym{HOCON,
4031 Human-Optimized Config Object Notation} configuration file format. It
4032 supports parsing and modifying HOCON and JSON files, and rendering parsed
4033 objects back to a @code{String}.")
4034 (license license:asl2.0)))
4036 (define-public ruby-slop
4042 (uri (rubygems-uri "slop" version))
4045 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4046 (build-system ruby-build-system)
4048 `(("ruby-minitest" ,ruby-minitest)))
4049 (synopsis "Ruby command line option parser")
4050 (description "Slop provides a Ruby domain specific language for gathering
4051 options and parsing command line flags.")
4052 (home-page "https://github.com/leejarvis/slop")
4053 (license license:expat)))
4055 (define-public ruby-slop-3
4056 (package (inherit ruby-slop)
4060 (uri (rubygems-uri "slop" version))
4063 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4065 (define-public ruby-multi-xml
4067 (name "ruby-multi-xml")
4072 (uri (rubygems-uri "multi_xml" version))
4075 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4076 (build-system ruby-build-system)
4078 '(#:tests? #f)) ; No included tests
4079 (synopsis "Swappable XML backends for Ruby")
4081 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4082 Nokogiri, Ox, or REXML.")
4083 (home-page "https://github.com/sferik/multi_xml")
4084 (license license:expat)))
4086 (define-public ruby-multipart-post
4088 (name "ruby-multipart-post")
4092 (uri (rubygems-uri "multipart-post" version))
4095 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4096 (build-system ruby-build-system)
4098 `(("bundler" ,bundler)))
4099 (synopsis "Multipart POST library for Ruby")
4100 (description "Multipart-Post Adds multipart POST capability to Ruby's
4102 (home-page "https://github.com/nicksieger/multipart-post")
4103 (license license:expat)))
4105 (define-public ruby-multi-json
4107 (name "ruby-multi-json")
4112 ;; Tests are not distributed at rubygems.org so download from GitHub
4115 (url "https://github.com/intridea/multi_json")
4116 (commit (string-append "v" version))))
4117 (file-name (git-file-name name version))
4120 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4121 (build-system ruby-build-system)
4124 (modify-phases %standard-phases
4125 (add-after 'unpack 'remove-signing-key-reference
4127 (substitute* "multi_json.gemspec"
4128 ((".*spec.signing_key.*") ""))
4131 `(("bundler" ,bundler)
4132 ("ruby-rspec" ,ruby-rspec)
4133 ("ruby-yard" ,ruby-yard)
4134 ("ruby-json-pure" ,ruby-json-pure)
4135 ("ruby-oj" ,ruby-oj)
4136 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4137 (synopsis "Common interface to multiple JSON libraries for Ruby")
4139 "This package provides a common interface to multiple JSON libraries,
4140 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4141 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4142 (home-page "https://github.com/intridea/multi_json")
4143 (license license:expat)))
4145 (define-public ruby-multi-test
4147 (name "ruby-multi-test")
4152 (uri (rubygems-uri "multi_test" version))
4155 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4156 (build-system ruby-build-system)
4158 '(;; Tests require different sets of specific gem versions to be available,
4159 ;; and there is no gemfile that specifies the newest versions of
4160 ;; dependencies to be tested.
4163 "Interface to testing libraries loaded into a running Ruby process")
4165 "@code{multi_test} provides a uniform interface onto whatever testing
4166 libraries that have been loaded into a running Ruby process to help control
4167 rogue test/unit/autorun requires.")
4168 (home-page "https://github.com/cucumber/multi_test")
4169 (license license:expat)))
4171 (define-public ruby-arel
4177 (uri (rubygems-uri "arel" version))
4180 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4181 (build-system ruby-build-system)
4182 (arguments '(#:tests? #f)) ; no tests
4183 (home-page "https://github.com/rails/arel")
4184 (synopsis "SQL AST manager for Ruby")
4185 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4186 Ruby. It simplifies the generation of complex SQL queries and adapts to
4187 various relational database implementations.")
4188 (license license:expat)))
4190 (define-public ruby-marcel
4192 (name "ruby-marcel")
4197 (uri (rubygems-uri "marcel" version))
4200 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4201 (build-system ruby-build-system)
4203 '(;; No included tests
4206 `(("ruby-mimemagic" ,ruby-mimemagic)))
4207 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4209 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4210 Extensions} type detection using magic numbers, filenames, and extensions")
4211 (home-page "https://github.com/basecamp/marcel")
4212 (license license:expat)))
4214 (define-public ruby-minitar
4215 ;; We package from the GitHub source to fix the security issue reported at
4216 ;; https://github.com/halostatue/minitar/issues/16.
4217 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4219 (name "ruby-minitar")
4220 (version (string-append "0.5.4-1." (string-take commit 8)))
4225 (url "https://github.com/halostatue/minitar")
4227 (file-name (string-append name "-" version "-checkout"))
4230 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4231 (build-system ruby-build-system)
4233 '(#:tests? #f)) ; missing a gemspec
4234 (synopsis "Ruby library and utility for handling tar archives")
4236 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4237 that provides the ability to deal with POSIX tar archive files.")
4238 (home-page "http://www.github.com/atoulme/minitar")
4239 (license (list license:gpl2+ license:ruby)))))
4241 (define-public ruby-mini-portile
4243 (name "ruby-mini-portile")
4248 (uri (rubygems-uri "mini_portile" version))
4251 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4252 (build-system ruby-build-system)
4254 '(#:tests? #f)) ; tests require network access
4255 (synopsis "Ports system for Ruby developers")
4256 (description "Mini-portile is a port/recipe system for Ruby developers.
4257 It provides a standard way to compile against specific versions of libraries
4258 to reproduce user environments.")
4259 (home-page "https://github.com/flavorjones/mini_portile")
4260 (license license:expat)))
4262 (define-public ruby-mini-portile-2
4263 (package (inherit ruby-mini-portile)
4267 (uri (rubygems-uri "mini_portile2" version))
4270 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4272 (define-public ruby-nokogiri
4274 (name "ruby-nokogiri")
4278 (uri (rubygems-uri "nokogiri" version))
4281 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4282 (build-system ruby-build-system)
4284 ;; Tests fail because Nokogiri can only test with an installed extension,
4285 ;; and also because many test framework dependencies are missing.
4287 #:gem-flags (list "--" "--use-system-libraries"
4288 (string-append "--with-xml2-include="
4289 (assoc-ref %build-inputs "libxml2")
4290 "/include/libxml2" ))
4292 (modify-phases %standard-phases
4293 (add-before 'build 'patch-extconf
4294 ;; 'pkg-config' is not included in the GEM_PATH during
4295 ;; installation, so we add it directly to the load path.
4296 (lambda* (#:key inputs #:allow-other-keys)
4297 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4298 (substitute* "ext/nokogiri/extconf.rb"
4299 (("gem 'pkg-config'.*")
4300 (string-append "$:.unshift '"
4301 pkg-config "/lib/ruby/vendor_ruby"
4303 ,(package-version ruby-pkg-config)
4307 `(("ruby-hoe" ,ruby-hoe)))
4310 ("libxml2" ,libxml2)
4311 ("libxslt" ,libxslt)))
4313 `(("ruby-mini-portile" ,ruby-mini-portile-2)
4314 ("ruby-pkg-config" ,ruby-pkg-config)))
4315 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
4316 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
4317 both CSS3 selector and XPath 1.0 support.")
4318 (home-page "http://www.nokogiri.org/")
4319 (license license:expat)))
4321 (define-public ruby-method-source
4323 (name "ruby-method-source")
4328 (uri (rubygems-uri "method_source" version))
4331 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
4332 (build-system ruby-build-system)
4334 `(#:test-target "spec"))
4336 `(("ruby-rspec" ,ruby-rspec)
4338 (synopsis "Retrieve the source code for Ruby methods")
4339 (description "Method_source retrieves the source code for Ruby methods.
4340 Additionally, it can extract source code from Proc and Lambda objects or just
4342 (home-page "https://github.com/banister/method_source")
4343 (license license:expat)))
4345 (define-public ruby-coderay
4347 (name "ruby-coderay")
4352 (uri (rubygems-uri "coderay" version))
4355 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
4356 (build-system ruby-build-system)
4358 '(#:tests? #f)) ; missing test files
4359 (synopsis "Ruby syntax highlighting library")
4360 (description "Coderay is a Ruby library that provides syntax highlighting
4361 for select languages.")
4362 (home-page "http://coderay.rubychan.de")
4363 (license license:expat)))
4365 (define-public ruby-cuke-modeler
4367 (name "ruby-cuke-modeler")
4372 (uri (rubygems-uri "cuke_modeler" version))
4375 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
4376 (build-system ruby-build-system)
4377 (arguments `(#:tests? #f)) ;no test suite in gem
4379 `(("ruby-gherkin" ,ruby-gherkin)))
4380 (synopsis "Gherkin test suite analysis tool")
4381 (description "CukeModeler facilitates modeling a test suite that is
4382 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
4383 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
4384 the @code{cucumber-gherkin} generates when parsing features, as well as
4385 providing models for feature files and directories in order to be able to have
4386 a fully traversable model tree of a test suite's structure. These models can
4387 then be analyzed or manipulated more easily than the underlying AST layer.")
4388 (home-page "https://github.com/enkessler/cuke_modeler")
4389 (license license:expat)))
4391 (define-public ruby-parallel-tests
4393 (name "ruby-parallel-tests")
4395 (home-page "https://github.com/grosser/parallel_tests")
4400 (commit (string-append "v" version))))
4401 (file-name (string-append name version))
4404 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
4405 (build-system ruby-build-system)
4407 '(#:test-target "default"
4408 #:phases (modify-phases %standard-phases
4409 (add-after 'patch-source-shebangs 'patch-shell-invokations
4411 (substitute* '("lib/parallel_tests/tasks.rb"
4412 "spec/parallel_tests/tasks_spec.rb")
4413 (("/bin/sh") (which "sh"))
4414 (("/bin/bash") (which "bash")))
4416 (add-before 'check 'remove-version-constraints
4418 ;; Remove hard coded version constraints, instead just
4419 ;; use whatever versions are available in Guix.
4420 (delete-file "Gemfile.lock")
4421 (substitute* "Gemfile"
4427 (add-before 'check 'disable-rails-test
4429 ;; XXX: This test attempts to download and run the test
4430 ;; suites of multiple Rails versions(!) directly.
4431 (delete-file "spec/rails_spec.rb")
4433 (add-before 'check 'set-HOME
4435 ;; Some tests check the output of Bundler, and fail when
4436 ;; Bundler warns that /homeless-shelter does not exist.
4437 (setenv "HOME" "/tmp")
4440 `(("ruby-bump" ,ruby-bump)
4441 ("ruby-cucumber" ,ruby-cucumber)
4442 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
4443 ("ruby-minitest" ,ruby-minitest)
4444 ("ruby-rake" ,ruby-rake)
4445 ("ruby-rspec" ,ruby-rspec)
4446 ("ruby-spinach" ,ruby-spinach)))
4448 `(("ruby-parallel" ,ruby-parallel)))
4449 (synopsis "Run tests in parallel")
4451 "This package can speed up @code{Test::Unit}, @code{RSpec},
4452 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
4453 across multiple CPU cores.")
4454 (license license:expat)))
4456 (define-public ruby-parser
4458 (name "ruby-parser")
4463 (uri (rubygems-uri "parser" version))
4466 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
4467 (build-system ruby-build-system)
4469 `(("bundler" ,bundler)
4470 ("ruby-cliver" ,ruby-cliver)
4471 ("ruby-simplecov" ,ruby-simplecov)
4472 ("ruby-racc" ,ruby-racc)))
4474 `(("ragel" ,ragel)))
4476 `(("ruby-ast" ,ruby-ast)))
4477 (synopsis "Ruby parser written in pure Ruby")
4479 "This package provides a Ruby parser written in pure Ruby.")
4480 (home-page "https://github.com/whitequark/parser")
4481 (license license:expat)))
4483 (define-public ruby-sexp-processor
4485 (name "ruby-sexp-processor")
4490 (uri (rubygems-uri "sexp_processor" version))
4493 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
4494 (build-system ruby-build-system)
4496 ;; TODO: Add ruby-minitest-proveit once available.
4497 `(("hoe" ,ruby-hoe)))
4498 (synopsis "ParseTree fork which includes generic S-exp processing tools")
4499 (description "The sexp_processor package is derived from ParseTree, but
4500 contrary to ParseTree, it includes all the generic S-exp processing tools.
4501 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
4502 @code{Environment}")
4503 (home-page "https://github.com/seattlerb/sexp_processor")
4504 (license license:expat)))
4506 (define-public ruby-ruby-parser
4508 (name "ruby-ruby-parser")
4513 (uri (rubygems-uri "ruby_parser" version))
4516 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
4517 (build-system ruby-build-system)
4521 ("unifdef" ,unifdef)))
4523 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
4524 (home-page "https://github.com/seattlerb/ruby_parser/")
4525 (synopsis "Ruby parser written in pure Ruby")
4526 (description "The ruby_parser (RP) package provides a Ruby parser written
4527 in pure Ruby. It outputs S-expressions which can be manipulated and converted
4528 back to Ruby via the @code{ruby2ruby} library.")
4529 (license license:expat)))
4531 (define-public ruby-prawn-manual-builder
4533 (name "ruby-prawn-manual-builder")
4538 (uri (rubygems-uri "prawn-manual_builder" version))
4540 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
4541 (build-system ruby-build-system)
4543 '(#:tests? #f ; no included tests
4545 (modify-phases %standard-phases
4546 (add-after 'extract-gemspec 'patch-gemspec
4548 (substitute* ".gemspec"
4549 ;; Loosen the requirement for pdf-inspector
4550 (("~> 1\\.0\\.7") ">= 0")))))))
4552 `(("ruby-coderay" ,ruby-coderay)))
4553 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
4555 "This package provides a tool for writing manuals for Prawn and Prawn
4557 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
4559 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
4563 (define-public ruby-progress_bar
4565 (name "ruby-progress_bar")
4570 (uri (rubygems-uri "progress_bar" version))
4573 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
4574 (build-system ruby-build-system)
4576 '(#:test-target "spec"))
4578 `(("ruby-highline" ,ruby-highline)
4579 ("ruby-options" ,ruby-options)))
4581 `(("bundler" ,bundler)
4582 ("ruby-rspec" ,ruby-rspec)
4583 ("ruby-timecop" ,ruby-timecop)))
4585 "Ruby library for displaying progress bars")
4587 "ProgressBar is a simple library for displaying progress bars. The
4588 maximum value is configurable, and additional information can be displayed
4589 like the percentage completion, estimated time remaining, elapsed time and
4591 (home-page "https://github.com/paul/progress_bar")
4592 (license license:wtfpl2)))
4594 (define-public ruby-dep
4601 (uri (rubygems-uri "ruby_dep" version))
4604 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
4605 (build-system ruby-build-system)
4607 '(#:tests? #f)) ; No included tests
4608 (synopsis "Creates a version constraint of supported Rubies")
4610 "This package helps create a version constraint of supported Rubies,
4611 suitable for a gemspec file.")
4612 (home-page "https://github.com/e2/ruby_dep")
4613 (license license:expat)))
4615 (define-public ruby-progressbar
4617 (name "ruby-progressbar")
4622 (uri (rubygems-uri "ruby-progressbar" version))
4624 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
4625 (build-system ruby-build-system)
4627 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
4629 (synopsis "Text progress bar library for Ruby")
4631 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
4632 The output can be customized with a formatting system.")
4633 (home-page "https://github.com/jfelchner/ruby-progressbar")
4634 (license license:expat)))
4636 (define-public ruby-pry
4643 (uri (rubygems-uri "pry" version))
4646 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
4647 (build-system ruby-build-system)
4649 '(#:tests? #f)) ; no tests
4651 `(("ruby-coderay" ,ruby-coderay)
4652 ("ruby-method-source" ,ruby-method-source)))
4653 (synopsis "Ruby REPL")
4654 (description "Pry is an IRB alternative and runtime developer console for
4655 Ruby. It features syntax highlighting, a plugin architecture, runtime
4656 invocation, and source and documentation browsing.")
4657 (home-page "https://cobaltbluemedia.com/pryrepl/")
4658 (license license:expat)))
4660 (define-public ruby-single-cov
4662 (name "ruby-single-cov")
4664 (home-page "https://github.com/grosser/single_cov")
4667 (uri (git-reference (url home-page)
4668 (commit (string-append "v" version))))
4669 (file-name (git-file-name name version))
4672 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
4673 (build-system ruby-build-system)
4675 '(#:test-target "default"
4676 #:phases (modify-phases %standard-phases
4677 (replace 'replace-git-ls-files
4679 (substitute* "single_cov.gemspec"
4680 (("`git ls-files lib/ bin/ MIT-LICENSE`")
4681 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
4683 (add-before 'check 'remove-version-constraints
4685 (delete-file "Gemfile.lock")
4687 (add-before 'check 'make-files-writable
4689 ;; Tests need to create local directories and open files
4690 ;; with write permissions.
4691 (for-each make-file-writable
4692 (find-files "specs" #:directories? #t))
4694 (add-before 'check 'disable-failing-test
4696 ;; XXX: This test copies assets from minitest, but can
4697 ;; not cope with the files being read-only. Just skip
4699 (substitute* "specs/single_cov_spec.rb"
4700 (("it \"complains when coverage is bad\"")
4701 "xit \"complains when coverage is bad\""))
4704 `(("ruby-bump" ,ruby-bump)
4705 ("ruby-minitest" ,ruby-minitest)
4706 ("ruby-rspec" ,ruby-rspec)
4707 ("ruby-simplecov" ,ruby-simplecov)))
4708 (synopsis "Code coverage reporting tool")
4710 "This package provides actionable code coverage reports for Ruby
4711 projects. It has very little overhead and can be easily integrated with
4712 development tools to catch coverage problems early.")
4713 (license license:expat)))
4715 (define-public ruby-guard
4721 ;; The gem does not include a Rakefile, nor does it contain a
4722 ;; gemspec file, nor does it come with the tests. This is why
4723 ;; we fetch the tarball from Github.
4725 (url "https://github.com/guard/guard")
4726 (commit (string-append "v" version))))
4727 (file-name (git-file-name name version))
4730 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
4731 (build-system ruby-build-system)
4733 `(#:tests? #f ; tests require cucumber
4735 (modify-phases %standard-phases
4736 (add-after 'unpack 'remove-git-ls-files
4737 (lambda* (#:key outputs #:allow-other-keys)
4738 (substitute* "guard.gemspec"
4739 (("git ls-files -z") "find . -type f -print0"))
4743 (invoke "gem" "build" "guard.gemspec"))))))
4745 `(("ruby-formatador" ,ruby-formatador)
4746 ("ruby-listen" ,ruby-listen)
4747 ("ruby-lumberjack" ,ruby-lumberjack)
4748 ("ruby-nenv" ,ruby-nenv)
4749 ("ruby-notiffany" ,ruby-notiffany)
4750 ("ruby-pry" ,ruby-pry)
4751 ("ruby-shellany" ,ruby-shellany)
4752 ("ruby-thor" ,ruby-thor)))
4754 `(("bundler" ,bundler)
4755 ("ruby-rspec" ,ruby-rspec)))
4756 (synopsis "Tool to handle events on file system modifications")
4758 "Guard is a command line tool to easily handle events on file system
4759 modifications. Guard automates various tasks by running custom rules whenever
4760 file or directories are modified.")
4761 (home-page "https://guardgem.org/")
4762 (license license:expat)))
4764 (define-public ruby-spinach
4766 (name "ruby-spinach")
4768 (home-page "https://github.com/codegram/spinach")
4771 (uri (rubygems-uri "spinach" version))
4774 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
4775 (build-system ruby-build-system)
4777 ;; FIXME: Disable tests altogether because they depend on 'capybara'
4778 ;; which in turn depends on many other unpackaged gems. Enable once
4779 ;; capybara is available.
4782 `(("ruby-colorize" ,ruby-colorize)
4783 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
4784 ("ruby-json" ,ruby-json)))
4785 (synopsis "Gherkin-based BDD framework")
4787 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
4788 framework that leverages the expressive @code{Gherkin} language to help you
4789 define executable specifications of your code.")
4790 (license license:expat)))
4792 (define-public ruby-tilt
4798 (method git-fetch) ;the distributed gem lacks tests
4800 (url "https://github.com/rtomayko/tilt")
4801 (commit (string-append "v" version))))
4802 (file-name (git-file-name name version))
4805 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
4806 (build-system ruby-build-system)
4809 (modify-phases %standard-phases
4810 (add-after 'unpack 'remove-some-dependencies
4812 (substitute* "Gemfile"
4813 ;; TODO ronn is used for generating the manual
4814 (("gem 'ronn'.*") "\n")
4815 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4816 ;; pass it in as a native-input
4817 (("gem 'haml'.*") "\n")
4818 ;; TODO Not all of these gems are packaged for Guix yet:
4819 ;; less, coffee-script, livescript, babel-transpiler,
4821 (("if can_execjs") "if false")
4822 ;; Disable the secondary group to reduce the number of
4823 ;; dependencies. None of the normal approaches work, so patch
4824 ;; the Gemfile instead.
4825 (("group :secondary") "[].each"))
4828 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
4829 ("ruby-sassc" ,ruby-sassc)))
4831 `(("bundler" ,bundler)
4832 ("ruby-yard" ,ruby-yard)
4833 ("ruby-builder" ,ruby-builder)
4834 ("ruby-erubis" ,ruby-erubis)
4835 ("ruby-markaby" ,ruby-markaby)))
4836 (synopsis "Generic interface to multiple Ruby template engines")
4838 "Tilt is a thin interface over a number of different Ruby template
4839 engines in an attempt to make their usage as generic as possible.")
4840 (home-page "https://github.com/rtomayko/tilt/")
4841 (license license:expat)))
4843 (define-public ruby-thread-safe
4845 (name "ruby-thread-safe")
4850 (uri (rubygems-uri "thread_safe" version))
4853 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4854 (build-system ruby-build-system)
4856 '(#:tests? #f)) ; needs simplecov, among others
4857 (synopsis "Thread-safe utilities for Ruby")
4858 (description "The thread_safe library provides thread-safe collections and
4859 utilities for Ruby.")
4860 (home-page "https://github.com/ruby-concurrency/thread_safe")
4861 (license license:asl2.0)))
4863 (define-public ruby-tzinfo
4865 (name "ruby-tzinfo")
4870 (uri (rubygems-uri "tzinfo" version))
4873 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4874 (build-system ruby-build-system)
4877 (modify-phases %standard-phases
4878 (add-after 'unpack 'skip-safe-tests
4880 (substitute* "test/test_utils.rb"
4881 (("def safe_test\\(options = \\{\\}\\)")
4882 "def safe_test(options = {})
4883 skip('The Guix build environment has an unsafe load path')"))
4886 `(("ruby-thread-safe" ,ruby-thread-safe)))
4887 (synopsis "Time zone library for Ruby")
4888 (description "TZInfo is a Ruby library that provides daylight savings
4889 aware transformations between times in different time zones.")
4890 (home-page "https://tzinfo.github.io")
4891 (license license:expat)))
4893 (define-public ruby-tzinfo-data
4895 (name "ruby-tzinfo-data")
4896 (version "1.2017.3")
4900 ;; Download from GitHub because the rubygems version does not contain
4901 ;; Rakefile or tests.
4903 (url "https://github.com/tzinfo/tzinfo-data")
4904 (commit (string-append "v" version))))
4905 (file-name (git-file-name name version))
4908 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4909 ;; Remove the known test failure.
4910 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4911 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4912 (patches (search-patches
4913 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4914 (build-system ruby-build-system)
4916 `(("ruby-tzinfo" ,ruby-tzinfo)))
4917 (synopsis "Data from the IANA Time Zone database")
4919 "This library provides @code{TZInfo::Data}, which contains data from the
4920 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4921 (home-page "https://tzinfo.github.io")
4922 (license license:expat)))
4924 (define-public ruby-rb-inotify
4926 (name "ruby-rb-inotify")
4931 (uri (rubygems-uri "rb-inotify" version))
4934 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4935 (build-system ruby-build-system)
4937 '(#:tests? #f ; there are no tests
4939 (modify-phases %standard-phases
4940 ;; Building the gemspec with rake is not working here since it is
4941 ;; generated with Jeweler. It is also unnecessary because the
4942 ;; existing gemspec does not use any development tools to generate a
4946 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4948 `(("ruby-ffi" ,ruby-ffi)))
4950 `(("ruby-yard" ,ruby-yard)))
4951 (synopsis "Ruby wrapper for Linux's inotify")
4952 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4953 kernel subsystem for monitoring changes to files and directories.")
4954 (home-page "https://github.com/nex3/rb-inotify")
4955 (license license:expat)))
4957 (define-public ruby-pry-editline
4959 (name "ruby-pry-editline")
4963 (uri (rubygems-uri "pry-editline" version))
4966 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4967 (build-system ruby-build-system)
4968 (arguments `(#:tests? #f)) ; no tests included
4970 `(("bundler" ,bundler)))
4971 (synopsis "Open the current REPL line in an editor")
4973 "This gem provides a plugin for the Ruby REPL to enable opening the
4974 current line in an external editor.")
4975 (home-page "https://github.com/tpope/pry-editline")
4976 (license license:expat)))
4978 (define-public ruby-sdoc
4984 (uri (rubygems-uri "sdoc" version))
4987 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
4988 (build-system ruby-build-system)
4991 (modify-phases %standard-phases
4992 (add-before 'check 'set-rubylib-and-patch-gemfile
4994 (setenv "RUBYLIB" "lib")
4995 (substitute* "sdoc.gemspec"
4996 (("s.add_runtime_dependency.*") "\n")
4997 (("s.add_dependency.*") "\n"))
4998 (substitute* "Gemfile"
5000 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
5003 `(("ruby-json" ,ruby-json)))
5005 `(("bundler" ,bundler)
5006 ("ruby-minitest" ,ruby-minitest)
5007 ("ruby-hoe" ,ruby-hoe)))
5008 (synopsis "Generate searchable RDoc documentation")
5010 "SDoc is an RDoc documentation generator to build searchable HTML
5011 documentation for Ruby code.")
5012 (home-page "https://github.com/voloko/sdoc")
5013 (license license:expat)))
5015 (define-public ruby-tins
5021 (uri (rubygems-uri "tins" version))
5024 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5025 (build-system ruby-build-system)
5026 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5027 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5030 `(#:tests? #f ; there are no tests
5032 (modify-phases %standard-phases
5035 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5037 (substitute* "tins.gemspec"
5038 (("\"lib/spruz\", ") ""))
5039 (invoke "gem" "build" "tins.gemspec"))))))
5040 (synopsis "Assorted tools for Ruby")
5041 (description "Tins is a Ruby library providing assorted tools.")
5042 (home-page "https://github.com/flori/tins")
5043 (license license:expat)))
5045 (define-public ruby-gem-hadar
5047 (name "ruby-gem-hadar")
5051 (uri (rubygems-uri "gem_hadar" version))
5054 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5055 (build-system ruby-build-system)
5056 ;; This gem needs itself at development time. We disable rebuilding of the
5057 ;; gemspec to avoid this loop.
5059 `(#:tests? #f ; there are no tests
5061 (modify-phases %standard-phases
5064 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5067 ("ruby-tins" ,ruby-tins)
5068 ("ruby-yard" ,ruby-yard)))
5069 (synopsis "Library for the development of Ruby gems")
5071 "This library contains some useful functionality to support the
5072 development of Ruby gems.")
5073 (home-page "https://github.com/flori/gem_hadar")
5074 (license license:expat)))
5076 (define-public ruby-minitest-tu-shim
5078 (name "ruby-minitest-tu-shim")
5082 (uri (rubygems-uri "minitest_tu_shim" version))
5085 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5086 (build-system ruby-build-system)
5089 (modify-phases %standard-phases
5090 (add-after 'unpack 'fix-test-include-path
5091 (lambda* (#:key inputs #:allow-other-keys)
5092 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5093 (substitute* "Rakefile"
5094 (("Hoe\\.add_include_dirs .*")
5095 (string-append "Hoe.add_include_dirs \""
5096 minitest "/lib/ruby/vendor_ruby"
5098 ,(package-version ruby-minitest-4)
5101 (add-before 'check 'fix-test-assumptions
5103 ;; The test output includes the file name, so a couple of tests
5104 ;; fail. Changing the regular expressions slightly fixes this
5106 (substitute* "test/test_mini_test.rb"
5107 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5108 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5109 (("gsub\\(/.*, 'FILE:LINE'\\)")
5110 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5113 `(("ruby-minitest-4" ,ruby-minitest-4)))
5115 `(("ruby-hoe" ,ruby-hoe)))
5116 (synopsis "Adapter library between minitest and test/unit")
5118 "This library bridges the gap between the small and fast minitest and
5119 Ruby's large and slower test/unit.")
5120 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5121 (license license:expat)))
5123 (define-public ruby-term-ansicolor
5125 (name "ruby-term-ansicolor")
5129 (uri (rubygems-uri "term-ansicolor" version))
5132 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5133 (build-system ruby-build-system)
5134 ;; Rebuilding the gemspec seems to require git, even though this is not a
5135 ;; git repository, so we just build the gem from the existing gemspec.
5138 (modify-phases %standard-phases
5139 (add-after 'unpack 'fix-test
5141 (substitute* "tests/hsl_triple_test.rb"
5146 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5148 `(("ruby-tins" ,ruby-tins)))
5150 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5151 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5152 (synopsis "Ruby library to control the attributes of terminal output")
5154 "This Ruby library uses ANSI escape sequences to control the attributes
5155 of terminal output.")
5156 (home-page "https://flori.github.io/term-ansicolor/")
5157 ;; There is no mention of the "or later" clause.
5158 (license license:gpl2)))
5160 (define-public ruby-terraform
5162 (name "ruby-terraform")
5167 (uri (rubygems-uri "ruby-terraform" version))
5170 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5171 (build-system ruby-build-system)
5173 '(#:tests? #f)) ; No included tests
5175 `(("ruby-lino" ,ruby-lino)))
5176 (synopsis "Ruby wrapper around the Terraform command line interface")
5178 "This package provides a Ruby wrapper around the Terraform command line
5179 interface so that Terraform can be more easily invoked from Ruby code.")
5180 (home-page "https://github.com/infrablocks/ruby_terraform")
5181 (license license:expat)))
5183 (define-public ruby-pstree
5185 (name "ruby-pstree")
5189 (uri (rubygems-uri "pstree" version))
5192 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5193 (build-system ruby-build-system)
5195 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5196 ("bundler" ,bundler)))
5197 (synopsis "Create a process tree data structure")
5199 "This library uses the output of the @code{ps} command to create a
5200 process tree data structure for the current host.")
5201 (home-page "https://github.com/flori/pstree")
5202 ;; There is no mention of the "or later" clause.
5203 (license license:gpl2)))
5205 (define-public ruby-utils
5211 (uri (rubygems-uri "utils" version))
5214 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5215 (build-system ruby-build-system)
5217 `(("ruby-tins" ,ruby-tins)
5218 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5219 ("ruby-pstree" ,ruby-pstree)
5220 ("ruby-pry-editline" ,ruby-pry-editline)))
5222 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5223 ("bundler" ,bundler)))
5224 (synopsis "Command line tools for working with Ruby")
5226 "This package provides assorted command line tools that may be useful
5227 when working with Ruby code.")
5228 (home-page "https://github.com/flori/utils")
5229 ;; There is no mention of the "or later" clause.
5230 (license license:gpl2)))
5232 (define-public ruby-jaro-winkler
5234 (name "ruby-jaro-winkler")
5239 (uri (rubygems-uri "jaro_winkler" version))
5241 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5242 (build-system ruby-build-system)
5244 '(#:tests? #f)) ; no included tests
5245 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5247 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5248 algorithm. It is written as a C extension and will fallback to a pure Ruby
5249 implementation on platforms where this is unsupported.")
5250 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5251 (license license:expat)))
5253 (define-public ruby-json
5260 (uri (rubygems-uri "json" version))
5263 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5264 (build-system ruby-build-system)
5265 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5266 (synopsis "JSON library for Ruby")
5267 (description "This Ruby library provides a JSON implementation written as
5268 a native C extension.")
5269 (home-page "http://json-jruby.rubyforge.org/")
5270 (license (list license:ruby license:gpl2)))) ; GPL2 only
5272 (define-public ruby-json-pure
5274 (name "ruby-json-pure")
5278 (uri (rubygems-uri "json_pure" version))
5281 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5282 (build-system ruby-build-system)
5285 (modify-phases %standard-phases
5286 (add-after 'unpack 'fix-rakefile
5288 (substitute* "Rakefile"
5289 ;; Since this is not a git repository, do not call 'git'.
5290 (("`git ls-files`") "`find . -type f |sort`")
5291 ;; Loosen dependency constraint.
5292 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5294 (add-after 'replace-git-ls-files 'regenerate-gemspec
5296 ;; Regenerate gemspec so loosened dependency constraints are
5298 (invoke "rake" "gemspec")))
5299 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5301 ;; This gemspec doesn't look to be generated by the above
5302 ;; command, so patch it separately.
5303 (substitute* "json-java.gemspec"
5304 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5305 "%q<test-unit>.freeze, [\">= 2.0\"]"))
5308 `(("bundler" ,bundler)
5310 ("ruby-simplecov" ,ruby-simplecov)
5311 ("ruby-test-unit" ,ruby-test-unit)))
5312 (synopsis "JSON implementation in pure Ruby")
5314 "This package provides a JSON implementation written in pure Ruby.")
5315 (home-page "https://flori.github.com/json/")
5316 (license license:ruby)))
5318 (define-public ruby-jwt
5325 (uri (rubygems-uri "jwt" version))
5328 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
5329 (build-system ruby-build-system)
5331 '(#:test-target "test"
5333 (modify-phases %standard-phases
5334 (add-after 'unpack 'remove-unnecessary-dependencies
5336 (substitute* "spec/spec_helper.rb"
5337 (("require 'simplecov.*") "\n")
5338 ;; Use [].each to disable running the SimpleCov configuration
5340 (("SimpleCov\\.configure") "[].each")
5341 (("require 'codeclimate-test-reporter'") "")
5342 (("require 'codacy-coverage'") "")
5343 (("Codacy::Reporter\\.start") ""))
5346 `(("bundler" ,bundler)
5347 ("ruby-rspec" ,ruby-rspec)
5348 ("ruby-rbnacl" ,ruby-rbnacl)))
5349 (synopsis "Ruby implementation of the JSON Web Token standard")
5351 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
5352 @acronym{JWT, JSON Web Token} standard.")
5353 (home-page "https://github.com/jwt/ruby-jwt")
5354 (license license:expat)))
5356 ;; Even though this package only provides bindings for a Mac OSX API it is
5357 ;; required by "ruby-listen" at runtime.
5358 (define-public ruby-rb-fsevent
5360 (name "ruby-rb-fsevent")
5364 (uri (rubygems-uri "rb-fsevent" version))
5367 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
5368 (build-system ruby-build-system)
5369 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
5370 ;; "listen", which needs "rb-fsevent" at runtime.
5371 (arguments `(#:tests? #f))
5372 (synopsis "FSEvents API with signals catching")
5374 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
5375 (home-page "https://rubygems.org/gems/rb-fsevent")
5376 (license license:expat)))
5378 (define-public ruby-listen
5380 (name "ruby-listen")
5384 ;; The gem does not include a Rakefile, so fetch from the Git
5388 (url "https://github.com/guard/listen")
5389 (commit (string-append "v" version))))
5390 (file-name (git-file-name name version))
5393 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
5394 (build-system ruby-build-system)
5396 `(#:test-target "spec"
5398 (modify-phases %standard-phases
5399 (add-after 'unpack 'fix-files-in-gemspec
5401 (substitute* "listen.gemspec"
5402 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
5404 (add-before 'check 'remove-unnecessary-dependencies'
5406 (substitute* "Rakefile"
5407 ;; Rubocop is for code linting, and is unnecessary for running
5409 ((".*rubocop.*") ""))
5412 `(("bundler" ,bundler)
5413 ("ruby-rspec" ,ruby-rspec)))
5415 `(;; ruby-thor is used for the command line interface, and is referenced
5416 ;; in the wrapper, and therefore just needs to be an input.
5417 ("ruby-thor" ,ruby-thor)))
5419 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
5420 ("ruby-rb-inotify" ,ruby-rb-inotify)
5421 ("ruby-dep" ,ruby-dep)))
5422 (synopsis "Listen to file modifications")
5423 (description "The Listen gem listens to file modifications and notifies
5424 you about the changes.")
5425 (home-page "https://github.com/guard/listen")
5426 (license license:expat)))
5428 (define-public ruby-loofah
5430 (name "ruby-loofah")
5435 (uri (rubygems-uri "loofah" version))
5438 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
5439 (build-system ruby-build-system)
5442 (modify-phases %standard-phases
5443 (add-after 'unpack 'remove-unnecessary-dependencies
5445 ;; concourse is a development tool which is unused, so remove it
5446 ;; so it's not required.
5447 (substitute* "Gemfile"
5448 ((".*\"concourse\".*") "\n"))
5449 (substitute* "Rakefile"
5450 (("require 'concourse'") "")
5451 (("Concourse\\.new.*") "\n"))
5454 `(("ruby-hoe" ,ruby-hoe)
5455 ("ruby-rr" ,ruby-rr)))
5457 `(("ruby-nokogiri" ,ruby-nokogiri)
5458 ("ruby-crass" ,ruby-crass)))
5459 (synopsis "Ruby library for manipulating and transforming HTML/XML")
5461 "Loofah is a general library for manipulating and transforming HTML/XML
5462 documents and fragments. It's built on top of Nokogiri and libxml2.")
5463 (home-page "https://github.com/flavorjones/loofah")
5464 (license license:expat)))
5466 (define-public ruby-activesupport
5468 (name "ruby-activesupport")
5473 (uri (rubygems-uri "activesupport" version))
5476 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
5477 (build-system ruby-build-system)
5480 (modify-phases %standard-phases
5483 ;; There are no tests, instead attempt to load the library.
5484 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
5486 `(("ruby-concurrent" ,ruby-concurrent)
5487 ("ruby-i18n" ,ruby-i18n)
5488 ("ruby-minitest" ,ruby-minitest)
5489 ("ruby-tzinfo" ,ruby-tzinfo)
5490 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
5491 (synopsis "Ruby on Rails utility library")
5492 (description "ActiveSupport is a toolkit of support libraries and Ruby
5493 core extensions extracted from the Rails framework. It includes support for
5494 multibyte strings, internationalization, time zones, and testing.")
5495 (home-page "http://www.rubyonrails.org")
5496 (license license:expat)))
5498 (define-public ruby-crass
5502 (home-page "https://github.com/rgrove/crass")
5504 ;; The gem does not contain tests, so pull from git.
5508 (commit (string-append "v" version))))
5509 (file-name (git-file-name name version))
5512 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
5513 (build-system ruby-build-system)
5514 (synopsis "Pure Ruby CSS parser")
5516 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
5517 (license license:expat)))
5519 (define-public ruby-nokogumbo
5521 (name "ruby-nokogumbo")
5524 ;; We use the git reference, because there's no Rakefile in the
5525 ;; published gem and the tarball on Github is outdated.
5528 (url "https://github.com/rubys/nokogumbo")
5529 (commit (string-append "v" version))))
5530 (file-name (string-append name "-" version "-checkout"))
5533 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
5534 (build-system ruby-build-system)
5536 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5538 `(("gumbo-parser" ,gumbo-parser)))
5540 `(("ruby-nokogiri" ,ruby-nokogiri)))
5541 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
5543 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
5544 access the result as a Nokogiri parsed document.")
5545 (home-page "https://github.com/rubys/nokogumbo/")
5546 (license license:asl2.0)))
5548 (define-public ruby-sanitize
5550 (name "ruby-sanitize")
5552 (home-page "https://github.com/rgrove/sanitize")
5555 ;; The gem does not include the Rakefile, so we download the
5556 ;; source from Github.
5559 (commit (string-append "v" version))))
5560 (file-name (git-file-name name version))
5561 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
5564 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
5565 (build-system ruby-build-system)
5567 `(("ruby-crass" ,ruby-crass)
5568 ("ruby-nokogiri" ,ruby-nokogiri)
5569 ("ruby-nokogumbo" ,ruby-nokogumbo)))
5571 `(("ruby-minitest" ,ruby-minitest)))
5572 (synopsis "Whitelist-based HTML and CSS sanitizer")
5574 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
5575 acceptable elements, attributes, and CSS properties, Sanitize will remove all
5576 unacceptable HTML and/or CSS from a string.")
5577 (license license:expat)))
5579 (define-public ruby-oj
5586 ;; Version on rubygems.org does not contain Rakefile, so download from
5589 (url "https://github.com/ohler55/oj")
5590 (commit (string-append "v" version))))
5591 (file-name (git-file-name name version))
5594 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
5595 (build-system ruby-build-system)
5597 '(#:test-target "test_all"
5599 (modify-phases %standard-phases
5600 (add-before 'check 'disable-bundler
5602 (substitute* "Rakefile"
5603 (("Bundler\\.with_clean_env") "1.times")
5604 (("bundle exec ") "")))))))
5606 `(("bundler" ,bundler)
5607 ("ruby-rspec" ,ruby-rspec)
5608 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5609 (synopsis "JSON parser for Ruby optimized for speed")
5611 "Oj is a JSON parser and generator for Ruby, where the encoding and
5612 decoding of JSON is implemented as a C extension to Ruby.")
5613 (home-page "http://www.ohler.com/oj/")
5614 (license (list license:expat ; Ruby code
5615 license:bsd-3)))) ; extension code
5617 (define-public ruby-ox
5624 (uri (rubygems-uri "ox" version))
5627 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
5628 (build-system ruby-build-system)
5630 '(#:tests? #f)) ; no tests
5631 (synopsis "Optimized XML library for Ruby")
5633 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
5634 written as a native C extension. It was designed to be an alternative to
5635 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
5636 alternative to Marshal for Object serialization. ")
5637 (home-page "http://www.ohler.com/ox")
5638 (license license:expat)))
5640 (define-public ruby-redcloth
5642 (name "ruby-redcloth")
5646 (uri (rubygems-uri "RedCloth" version))
5649 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
5650 (build-system ruby-build-system)
5652 `(#:tests? #f ; no tests
5654 (modify-phases %standard-phases
5655 ;; Redcloth has complicated rake tasks to build various versions for
5656 ;; multiple targets using RVM. We don't want this so we just use the
5657 ;; existing gemspec.
5660 (invoke "gem" "build" "redcloth.gemspec"))))))
5662 `(("bundler" ,bundler)
5663 ("ruby-diff-lcs" ,ruby-diff-lcs)
5664 ("ruby-rspec-2" ,ruby-rspec-2)))
5665 (synopsis "Textile markup language parser for Ruby")
5667 "RedCloth is a Ruby parser for the Textile markup language.")
5668 (home-page "http://redcloth.org")
5669 (license license:expat)))
5671 (define-public ruby-pg
5678 (uri (rubygems-uri "pg" version))
5681 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
5682 (build-system ruby-build-system)
5684 '(#:test-target "spec"))
5686 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5687 ("ruby-hoe" ,ruby-hoe)
5688 ("ruby-rspec" ,ruby-rspec)))
5690 `(("postgresql" ,postgresql)))
5691 (synopsis "Ruby interface to PostgreSQL")
5692 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
5693 with PostgreSQL 9.0 and later.")
5694 (home-page "https://bitbucket.org/ged/ruby-pg")
5695 (license license:ruby)))
5697 (define-public ruby-byebug
5699 (name "ruby-byebug")
5704 (uri (rubygems-uri "byebug" version))
5707 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
5708 (build-system ruby-build-system)
5710 '(#:tests? #f)) ; no tests
5711 (synopsis "Debugger for Ruby 2")
5712 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
5713 TracePoint C API for execution control and the Debug Inspector C API for call
5714 stack navigation. The core component provides support that front-ends can
5715 build on. It provides breakpoint handling and bindings for stack frames among
5716 other things and it comes with a command line interface.")
5717 (home-page "https://github.com/deivid-rodriguez/byebug")
5718 (license license:bsd-2)))
5720 ;;; TODO: Make it the default byebug in core-updates.
5721 (define-public ruby-byebug-11
5723 (inherit ruby-byebug)
5724 (name "ruby-byebug")
5730 (url "https://github.com/deivid-rodriguez/byebug")
5731 (commit (string-append "v" version))))
5732 (file-name (git-file-name name version))
5735 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
5736 (modules '((guix build utils)))
5739 ;; Remove wrappers that try to setup a bundle environment.
5740 (with-directory-excursion "bin"
5741 (for-each delete-file '("bundle" "rake" "rubocop"))
5742 ;; ruby-minitest doesn't come with a launcher, so fix the one
5744 (substitute* "minitest"
5745 (("load File\\.expand_path\\(\"bundle\".*") "")
5746 (("require \"bundler/setup\".*") "")))
5751 (modify-phases %standard-phases
5752 (add-after 'unpack 'skip-tmp-path-sensitive-test
5754 (substitute* "test/commands/where_test.rb"
5755 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
5758 (add-before 'build 'compile
5760 (invoke "rake" "compile")))
5761 (add-before 'check 'set-home
5763 (setenv "HOME" (getcwd))
5766 `(("bundler" ,bundler)
5767 ("ruby-chandler" ,ruby-chandler)
5768 ("ruby-minitest" ,ruby-minitest)
5769 ("ruby-pry" ,ruby-pry)
5770 ("ruby-rake-compiler" ,ruby-rake-compiler)
5771 ("ruby-rubocop" ,ruby-rubocop)
5772 ("ruby-yard" ,ruby-yard)))))
5774 (define-public ruby-netrc
5780 (uri (rubygems-uri "netrc" version))
5783 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
5784 (build-system ruby-build-system)
5787 (modify-phases %standard-phases
5789 ;; There is no Rakefile and minitest can only run one file at once,
5790 ;; so we have to iterate over all test files.
5793 (invoke "ruby" "-Itest" file))
5794 (find-files "./test" "test_.*\\.rb")))))))
5796 `(("ruby-minitest" ,ruby-minitest)))
5797 (synopsis "Library to read and update netrc files")
5799 "This library can read and update netrc files, preserving formatting
5800 including comments and whitespace.")
5801 (home-page "https://github.com/geemus/netrc")
5802 (license license:expat)))
5804 (define-public ruby-unf-ext
5806 (name "ruby-unf-ext")
5810 (uri (rubygems-uri "unf_ext" version))
5813 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
5814 (build-system ruby-build-system)
5817 (modify-phases %standard-phases
5818 (add-after 'build 'build-ext
5819 (lambda _ (invoke "rake" "compile:unf_ext")))
5820 (add-before 'check 'lose-rake-compiler-dock-dependency
5822 ;; rake-compiler-dock is listed in the gemspec, but only
5823 ;; required when cross-compiling.
5824 (substitute* "unf_ext.gemspec"
5825 ((".*rake-compiler-dock.*") ""))
5828 `(("bundler" ,bundler)
5829 ("ruby-rake-compiler" ,ruby-rake-compiler)
5830 ("ruby-test-unit" ,ruby-test-unit)))
5831 (synopsis "Unicode normalization form support library")
5833 "This package provides unicode normalization form support for Ruby.")
5834 (home-page "https://github.com/knu/ruby-unf_ext")
5835 (license license:expat)))
5837 (define-public ruby-tdiff
5838 ;; Use a newer than released snapshot so that rspec-2 is not required.
5839 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5842 (version (string-append "0.3.3-1." (string-take commit 8)))
5846 (url "https://github.com/postmodern/tdiff")
5848 (file-name (string-append name "-" version "-checkout"))
5851 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5852 (build-system ruby-build-system)
5854 `(("ruby-rspec" ,ruby-rspec)
5855 ("ruby-yard" ,ruby-yard)
5856 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5857 (synopsis "Calculate the differences between two tree-like structures")
5859 "This library provides functions to calculate the differences between two
5860 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5861 (home-page "https://github.com/postmodern/tdiff")
5862 (license license:expat))))
5864 (define-public ruby-nokogiri-diff
5865 ;; Use a newer than released snapshot so that rspec-2 is not required.
5866 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5868 (name "ruby-nokogiri-diff")
5869 (version (string-append "0.2.0-1." (string-take commit 8)))
5873 (url "https://github.com/postmodern/nokogiri-diff")
5875 (file-name (string-append name "-" version "-checkout"))
5878 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5879 (build-system ruby-build-system)
5881 `(("ruby-tdiff" ,ruby-tdiff)
5882 ("ruby-nokogiri" ,ruby-nokogiri)))
5884 `(("ruby-rspec" ,ruby-rspec)
5885 ("ruby-yard" ,ruby-yard)
5886 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5887 (synopsis "Calculate the differences between two XML/HTML documents")
5889 "@code{Nokogiri::Diff} adds the ability to calculate the
5890 differences (added or removed nodes) between two XML/HTML documents.")
5891 (home-page "https://github.com/postmodern/nokogiri-diff")
5892 (license license:expat))))
5894 (define-public ruby-racc
5901 (uri (rubygems-uri "racc" version))
5904 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5905 (build-system ruby-build-system)
5907 `(("ruby-hoe" ,ruby-hoe)
5908 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5909 (synopsis "LALR(1) parser generator for Ruby")
5911 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5912 generates Ruby program.")
5913 (home-page "http://i.loveruby.net/en/projects/racc/")
5915 ;; Generally licensed under the LGPL2.1, and some files also
5916 ;; available under the same license as Ruby.
5920 (define-public ruby-rack
5927 ;; Download from GitHub so that the patch can be applied.
5929 (url "https://github.com/rack/rack")
5931 (file-name (git-file-name name version))
5934 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5935 ;; Ignore test which fails inside the build environment but works
5937 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5938 (build-system ruby-build-system)
5941 (modify-phases %standard-phases
5942 (add-before 'check 'fix-tests
5944 ;; A few of the tests use the length of a file on disk for
5945 ;; Content-Length and Content-Range headers. However, this file
5946 ;; has a shebang in it which an earlier phase patches, growing
5947 ;; the file size from 193 to 239 bytes when the store prefix is
5949 (let ((size-diff (- (string-length (which "ruby"))
5950 (string-length "/usr/bin/env ruby"))))
5951 (substitute* '("test/spec_file.rb")
5953 (number->string (+ 193 size-diff)))
5954 (("bytes(.)22-33" all delimiter)
5955 (string-append "bytes"
5957 (number->string (+ 22 size-diff))
5959 (number->string (+ 33 size-diff))))))
5961 (add-before 'reset-gzip-timestamps 'make-files-writable
5962 (lambda* (#:key outputs #:allow-other-keys)
5963 ;; Make sure .gz files are writable so that the
5964 ;; 'reset-gzip-timestamps' phase can do its work.
5965 (let ((out (assoc-ref outputs "out")))
5966 (for-each make-file-writable
5967 (find-files out "\\.gz$"))
5970 `(("ruby-minitest" ,ruby-minitest)
5971 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5974 `(("ruby-concurrent" ,ruby-concurrent)))
5975 (synopsis "Unified web application interface for Ruby")
5976 (description "Rack provides a minimal, modular and adaptable interface for
5977 developing web applications in Ruby. By wrapping HTTP requests and responses,
5978 it unifies the API for web servers, web frameworks, and software in between
5979 into a single method call.")
5980 (home-page "https://rack.github.io/")
5981 (license license:expat)))
5983 (define-public ruby-rack-test
5985 (name "ruby-rack-test")
5990 (uri (rubygems-uri "rack-test" version))
5993 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5994 (build-system ruby-build-system)
5996 ;; Disable tests because of circular dependencies: requires sinatra,
5997 ;; which requires rack-protection, which requires rack-test. Instead
5998 ;; simply require the library.
6000 (modify-phases %standard-phases
6003 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
6005 `(("ruby-rack" ,ruby-rack)))
6006 (synopsis "Testing API for Rack applications")
6008 "Rack::Test is a small, simple testing API for Rack applications. It can
6009 be used on its own or as a reusable starting point for Web frameworks and
6010 testing libraries to build on.")
6011 (home-page "https://github.com/rack-test/rack-test")
6012 (license license:expat)))
6014 (define-public ruby-rack-protection
6016 (name "ruby-rack-protection")
6021 (uri (rubygems-uri "rack-protection" version))
6024 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6025 (build-system ruby-build-system)
6027 '(;; Tests missing from the gem.
6030 `(("ruby-rack" ,ruby-rack)))
6032 `(("bundler" ,bundler)
6033 ("ruby-rspec" ,ruby-rspec-2)
6034 ("ruby-rack-test" ,ruby-rack-test)))
6035 (synopsis "Rack middleware that protects against typical web attacks")
6036 (description "Rack middleware that can be used to protect against typical
6037 web attacks. It can protect all Rack apps, including Rails. For instance, it
6038 protects against cross site request forgery, cross site scripting,
6039 clickjacking, directory traversal, session hijacking and IP spoofing.")
6040 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6041 (license license:expat)))
6043 (define-public ruby-rainbow
6045 (name "ruby-rainbow")
6050 (uri (rubygems-uri "rainbow" version))
6053 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6054 (build-system ruby-build-system)
6057 (modify-phases %standard-phases
6058 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6061 (lambda* (#:key tests? #:allow-other-keys)
6066 `(("bundler" ,bundler)
6067 ("ruby-rspec" ,ruby-rspec)))
6068 (synopsis "Colorize printed text on ANSI terminals")
6070 "@code{rainbow} provides a string presenter object to colorize strings by
6071 wrapping them in ANSI escape codes.")
6072 (home-page "https://github.com/sickill/rainbow")
6073 (license license:expat)))
6075 (define-public ruby-rr
6082 (uri (rubygems-uri "rr" version))
6085 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6086 (build-system ruby-build-system)
6088 '(#:tests? #f)) ; test files not included
6090 `(("bundler" ,bundler)
6091 ("ruby-rspec" ,ruby-rspec)))
6092 (synopsis "Ruby test double framework")
6094 "RR is a test double framework that features a rich selection of double
6095 techniques and a terse syntax.")
6096 (home-page "https://rr.github.io/rr/")
6097 (license license:expat)))
6099 (define-public ruby-rest-client
6101 (name "ruby-rest-client")
6106 (uri (rubygems-uri "rest-client" version))
6109 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6110 (build-system ruby-build-system)
6113 (modify-phases %standard-phases
6114 (add-before 'check 'remove-unnecessary-development-dependencies
6116 (substitute* "rest-client.gemspec"
6117 ;; Remove rubocop as it's unused. Rubocop also indirectly
6118 ;; depends on this package through ruby-parser and ruby-ast so
6119 ;; this avoids a dependency loop.
6120 ((".*rubocop.*") "\n")
6121 ;; Remove pry as it's unused, it's a debugging tool
6123 ;; Remove an unnecessarily strict rdoc dependency
6124 ((".*rdoc.*") "\n"))
6126 (add-before 'check 'delete-network-dependent-tests
6128 (delete-file "spec/integration/request_spec.rb")
6129 (delete-file "spec/integration/httpbin_spec.rb")
6132 `(("ruby-http-cookie" ,ruby-http-cookie)
6133 ("ruby-mime-types" ,ruby-mime-types)
6134 ("ruby-netrc" ,ruby-netrc)))
6136 `(("bundler" ,bundler)
6137 ("ruby-webmock" ,ruby-webmock-2)
6138 ("ruby-rspec" ,ruby-rspec)))
6139 (synopsis "Simple HTTP and REST client for Ruby")
6141 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6142 inspired by the Sinatra microframework style of specifying actions:
6143 @code{get}, @code{put}, @code{post}, @code{delete}.")
6144 (home-page "https://github.com/rest-client/rest-client")
6145 (license license:expat)))
6147 (define-public ruby-rubocop
6149 (name "ruby-rubocop")
6154 (uri (rubygems-uri "rubocop" version))
6157 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
6158 (build-system ruby-build-system)
6160 '(;; No included tests
6163 `(("ruby-parser" ,ruby-parser)
6164 ("ruby-powerpack" ,ruby-powerpack)
6165 ("ruby-rainbow" ,ruby-rainbow)
6166 ("ruby-progressbar" ,ruby-progressbar)
6167 ("ruby-parallel" ,ruby-parallel)
6168 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
6169 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
6170 (synopsis "Ruby code style checking tool")
6172 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
6173 the community-driven Ruby Style Guide.")
6174 (home-page "https://github.com/rubocop-hq/rubocop")
6175 (license license:expat)))
6177 (define-public ruby-contest
6179 (name "ruby-contest")
6184 (uri (rubygems-uri "contest" version))
6187 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
6188 (build-system ruby-build-system)
6189 (synopsis "Write declarative tests using nested contexts")
6191 "Contest allows writing declarative @code{Test::Unit} tests using nested
6192 contexts without performance penalties.")
6193 (home-page "https://github.com/citrusbyte/contest")
6194 (license license:expat)))
6196 (define-public ruby-creole
6198 (name "ruby-creole")
6203 (uri (rubygems-uri "creole" version))
6206 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
6207 (build-system ruby-build-system)
6209 `(("ruby-bacon" ,ruby-bacon)))
6210 (synopsis "Creole markup language converter")
6212 "Creole is a lightweight markup language and this library for converting
6213 creole to @code{HTML}.")
6214 (home-page "https://github.com/minad/creole")
6215 (license license:ruby)))
6217 (define-public ruby-docile
6219 (name "ruby-docile")
6224 (uri (rubygems-uri "docile" version))
6227 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
6228 (build-system ruby-build-system)
6230 '(#:tests? #f)) ; needs github-markup, among others
6231 (synopsis "Ruby EDSL helper library")
6232 (description "Docile is a Ruby library that provides an interface for
6233 creating embedded domain specific languages (EDSLs) that manipulate existing
6235 (home-page "https://ms-ati.github.io/docile/")
6236 (license license:expat)))
6238 (define-public ruby-middleware
6240 (name "ruby-middleware")
6245 (uri (rubygems-uri "middleware" version))
6248 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
6249 (build-system ruby-build-system)
6250 (arguments '(#:tests? #f)) ;no test suite
6251 (synopsis "Implementation of a middleware abstraction for Ruby")
6252 (description "Middleware is a generalized implementation of a middleware
6253 abstraction for Ruby.")
6254 (home-page "https://github.com/mitchellh/middleware")
6255 (license license:expat)))
6257 (define-public ruby-benchmark-ips
6259 (name "ruby-benchmark-ips")
6264 (uri (rubygems-uri "benchmark-ips" version))
6267 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
6268 (build-system ruby-build-system)
6270 `(("ruby-hoe" ,ruby-hoe)))
6271 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
6272 (description "Benchmark-ips enhances the Ruby Benchmark module with the
6273 iterations per second count. For short snippets of code, it can automatically
6274 figure out how many times to run the code to get interesting data.")
6275 (home-page "https://github.com/evanphx/benchmark-ips")
6276 (license license:expat)))
6278 (define-public ruby-ffi-rzmq-core
6280 (name "ruby-ffi-rzmq-core")
6285 (uri (rubygems-uri "ffi-rzmq-core" version))
6288 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
6289 (build-system ruby-build-system)
6292 (modify-phases %standard-phases
6293 (add-after 'unpack 'patch-libzmq-search-path
6294 (lambda* (#:key inputs #:allow-other-keys)
6295 (let ((zeromq (assoc-ref inputs "zeromq")))
6296 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
6298 (string-append zeromq "/lib")))
6302 (invoke "rspec"))))))
6304 `(("ruby-rspec" ,ruby-rspec)))
6306 `(("zeromq" ,zeromq)))
6307 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
6308 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
6309 (description "This library only provides the FFI wrapper for the ZeroMQ
6310 networking library. It can be used to implement a Ruby API for the ZeroMQ
6312 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
6313 (license license:expat)))
6315 (define-public ruby-ffi-rzmq
6317 (name "ruby-ffi-rzmq")
6322 (uri (rubygems-uri "ffi-rzmq" version))
6325 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
6326 (build-system ruby-build-system)
6327 (arguments '(#:tests? #t
6328 #:phases (modify-phases %standard-phases
6331 (invoke "rspec"))))))
6333 `(("ruby-rspec" ,ruby-rspec)))
6335 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
6336 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
6337 (description "This library provides a high-level API that wraps the ZeroMQ
6338 networking library using the Ruby foreign function interface (FFI). It is a
6339 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
6341 (home-page "https://github.com/chuckremes/ffi-rzmq")
6342 (license license:expat)))
6344 (define-public ruby-sawyer
6346 (name "ruby-sawyer")
6351 (uri (rubygems-uri "sawyer" version))
6354 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
6355 (build-system ruby-build-system)
6357 `(("ruby-addressable" ,ruby-addressable)
6358 ("ruby-faraday" ,ruby-faraday)))
6359 (synopsis "Experimental hypermedia agent for Ruby")
6360 (description "Sawyer is an experimental hypermedia agent for Ruby built on
6362 (home-page "https://github.com/lostisland/sawyer")
6363 (license license:expat)))
6365 (define-public ruby-octokit
6367 (name "ruby-octokit")
6372 (uri (rubygems-uri "octokit" version))
6375 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
6376 (build-system ruby-build-system)
6377 (arguments '(#:tests? #f)) ;no test suite in the gem release
6379 `(("ruby-faraday" ,ruby-faraday)
6380 ("ruby-sawyer" ,ruby-sawyer)))
6381 (synopsis "Ruby toolkit for the GitHub API")
6382 (description "Octokit wraps the GitHub API in a flat API client that
6383 follows Ruby conventions and requires little knowledge of REST.")
6384 (home-page "https://github.com/octokit/octokit.rb")
6385 (license license:expat)))
6387 (define-public ruby-chandler
6389 (name "ruby-chandler")
6394 (uri (rubygems-uri "chandler" version))
6397 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
6398 (build-system ruby-build-system)
6400 `(("ruby-rubocop" ,ruby-rubocop)))
6402 `(("ruby-netrc" ,ruby-netrc)
6403 ("ruby-octokit" ,ruby-octokit)))
6404 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
6405 (description "Chandler syncs a project's CHANGELOG file entries to
6406 GitHub's release notes to remove the need of manually entering release
6408 (home-page "https://github.com/mattbrictson/chandler")
6409 (license license:expat)))
6411 (define-public ruby-pry-byebug
6413 (name "ruby-pry-byebug")
6419 (url "https://github.com/deivid-rodriguez/pry-byebug")
6420 (commit (string-append "v" version))))
6421 (file-name (git-file-name name version))
6424 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
6425 (build-system ruby-build-system)
6427 `(#:phases (modify-phases %standard-phases
6428 (add-before 'check 'set-home
6430 (setenv "HOME" (getcwd))
6433 `(("ruby-chandler" ,ruby-chandler)
6434 ("ruby-rubocop" ,ruby-rubocop)
6435 ("ruby-simplecov" ,ruby-simplecov)))
6437 `(("ruby-byebug" ,ruby-byebug-11)
6438 ("ruby-pry" ,ruby-pry)))
6439 (synopsis "Step-by-step debugging and stack navigation in Pry")
6440 (description "This package adds step-by-step debugging and stack
6441 navigation capabilities to @code{pry}, using @code{byebug}.")
6442 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
6443 (license license:expat)))
6445 (define-public ruby-binding-of-caller
6447 (name "ruby-binding-of-caller")
6452 (uri (rubygems-uri "binding_of_caller" version))
6455 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
6456 (build-system ruby-build-system)
6457 ;; Attempting to run the test suite fails with a rake deprecation error
6458 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
6459 (arguments '(#:tests? #f))
6461 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
6462 (synopsis "Retrieve the binding of a method's caller")
6463 (description "The @code{binding_of_caller} module provides the
6464 @code{Binding#of_caller} method. It allows accessing bindings from upper
6465 frames in the call stack and can evaluate code in that context.")
6466 (home-page "https://github.com/banister/binding_of_caller")
6467 (license license:expat)))
6469 (define-public ruby-pry-stack-explorer
6471 (name "ruby-pry-stack-explorer")
6476 (uri (rubygems-uri "pry-stack_explorer" version))
6479 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
6480 (build-system ruby-build-system)
6481 (arguments '(#:tests? #f)) ;no test suite in gem release
6483 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
6484 ("ruby-pry" ,ruby-pry)))
6485 (synopsis "Call-stack navigation plugin for the Pry REPL")
6486 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
6487 add support to navigate the call-stack.")
6488 (home-page "https://github.com/pry/pry-stack_explorer")
6489 (license license:expat)))
6491 (define-public ruby-varint
6493 (name "ruby-varint")
6498 (uri (rubygems-uri "varint" version))
6501 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
6502 (build-system ruby-build-system)
6503 (arguments '(#:tests? #f)) ;no test suite
6504 (synopsis "Variable length integers (varint) C extension for Ruby")
6505 (description "This package provides a small C extension to speed up
6506 variable length integers (varint) in Ruby Protocol Buffers.")
6507 (home-page "https://github.com/liquidm/varint")
6508 (license license:bsd-3)))
6510 (define-public ruby-ruby-prof
6512 (name "ruby-ruby-prof")
6517 (uri (rubygems-uri "ruby-prof" version))
6520 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
6521 (build-system ruby-build-system)
6524 (modify-phases %standard-phases
6525 (add-after 'unpack 'patch-rakefile
6526 ;; This fixes the following error: "NameError: uninitialized
6527 ;; constant Bundler::GemHelper" (see:
6528 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
6530 (substitute* "Rakefile"
6531 ((".*require \"bundler/setup\".*" all)
6532 (string-append all " require 'bundler/gem_tasks'\n")))
6534 ;; The LineNumbersTest test fails non-deterministically (see:
6535 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
6536 (add-after 'extract-gemspec 'delete-flaky-test
6538 (delete-file "test/line_number_test.rb")
6539 (substitute* "ruby-prof.gemspec"
6540 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
6542 (add-before 'check 'compile
6544 (invoke "rake" "compile"))))))
6546 `(("bundler" ,bundler)
6547 ("ruby-minitest" ,ruby-minitest)
6548 ("ruby-rake-compiler" ,ruby-rake-compiler)
6549 ("ruby-rdoc" ,ruby-rdoc)))
6550 (synopsis "Fast code profiler for Ruby")
6551 (description "RubyProf is a fast code profiler for Ruby. Its features
6555 Being a C extension, it is many times faster than the standard Ruby profiler.
6556 @item Measurement Modes
6557 It can measure program wall time, process time, object allocations and memory
6560 A variety of text and cross-referenced HTML reports can be generated.
6562 Profiling multiple threads simultaneously is supported.
6564 (home-page "https://github.com/ruby-prof/ruby-prof")
6565 (license license:bsd-2)))
6567 (define-public ruby-cucumber-messages
6569 (name "ruby-cucumber-messages")
6574 (url "https://github.com/cucumber/messages-ruby")
6575 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
6576 (file-name (git-file-name name version))
6579 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
6580 (build-system ruby-build-system)
6582 `(#:phases (modify-phases %standard-phases
6583 (add-after 'unpack 'patch-protobuf.rb
6585 (substitute* "rake/protobuf.rb"
6586 (("load 'protobuf/tasks/compile.rake'")
6587 "require 'protobuf/tasks'"))
6589 (add-before 'build 'compile
6591 (substitute* "Makefile"
6592 (("bundle exec ") "")
6593 (("include default.mk.*" all)
6594 (string-append "#" all)))
6598 (invoke "rspec"))))))
6600 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
6602 `(("ruby-rspec" ,ruby-rspec)))
6603 (home-page "https://github.com/cucumber/messages-ruby")
6604 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
6605 (description "Cucumber Messages for Ruby is a library which allows
6606 serialization and deserialization of the protocol buffer messages used in
6608 (license license:expat)))
6610 (define-public ruby-gherkin
6612 (name "ruby-gherkin")
6617 (url "https://github.com/cucumber/gherkin-ruby")
6618 (commit (string-append "v" version))))
6619 (file-name (git-file-name name version))
6622 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
6623 (build-system ruby-build-system)
6625 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6626 ("ruby-rspec" ,ruby-rspec)))
6628 `(#:test-target "spec"))
6629 (synopsis "Gherkin parser for Ruby")
6630 (description "Gherkin is a parser and compiler for the Gherkin language.
6631 It is intended be used by all Cucumber implementations to parse
6632 @file{.feature} files.")
6633 (home-page "https://github.com/cucumber/gherkin-ruby")
6634 (license license:expat)))
6636 (define-public ruby-gherkin-ruby
6638 (name "ruby-gherkin-ruby")
6640 (home-page "https://github.com/codegram/gherkin-ruby")
6643 (uri (rubygems-uri "gherkin-ruby" version))
6646 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
6647 (build-system ruby-build-system)
6648 (synopsis "Pure Ruby Gherkin parser")
6650 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
6651 200 lines of code.")
6652 ;; XXX: No license information anywhere but Readme.md.
6653 (license license:expat)))
6655 (define-public ruby-aruba
6662 (uri (rubygems-uri "aruba" version))
6665 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
6666 (build-system ruby-build-system)
6668 '(#:test-target "spec"
6670 (modify-phases %standard-phases
6671 (add-after 'unpack 'patch
6673 (substitute* "spec/aruba/api_spec.rb"
6674 ;; This resolves some errors in the specs
6676 ;; undefined method `parse' for Time:Class
6677 (("require 'spec_helper'")
6678 "require 'spec_helper'\nrequire 'time'"))
6679 ;; Avoid shebang issues in this spec file
6680 (substitute* "spec/aruba/matchers/command_spec.rb"
6681 (("/usr/bin/env bash")
6684 (add-before 'check 'remove-unnecessary-dependencies
6686 (substitute* "Gemfile"
6687 ((".*byebug.*") "\n")
6691 ((".*kramdown.*") "\n")
6692 ((".*rubocop.*") "\n")
6693 ((".*cucumber-pro.*") "\n")
6694 ((".*cucumber.*") "\n")
6695 ((".*license_finder.*") "\n")
6696 ((".*rake.*") "gem 'rake'\n")
6697 ((".*relish.*") "\n"))
6698 (substitute* "aruba.gemspec"
6699 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
6700 "spec.add_runtime_dependency 'cucumber'"))
6702 (add-before 'check 'set-home
6703 (lambda _ (setenv "HOME" "/tmp") #t)))))
6705 `(("bundler" ,bundler)
6706 ("ruby-rspec" ,ruby-rspec)
6707 ("ruby-fuubar" ,ruby-fuubar)
6708 ("ruby-simplecov" ,ruby-simplecov)))
6710 `(("ruby-childprocess" ,ruby-childprocess)
6711 ("ruby-contracts" ,ruby-contracts)
6712 ("ruby-cucumber" ,ruby-cucumber)
6713 ("ruby-ffi" ,ruby-ffi)
6714 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
6715 ("ruby-thor" ,ruby-thor)
6716 ("ruby-yard" ,ruby-yard)))
6717 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
6719 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
6720 command-line applications. It supports applications written in any
6722 (home-page "https://github.com/cucumber/aruba")
6723 (license license:expat)))
6725 ;; A version of ruby-aruba without tests run so that circular dependencies can
6727 (define ruby-aruba-without-tests
6729 (inherit ruby-aruba)
6730 (arguments '(#:tests? #f))
6732 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
6733 ,@(alist-delete "ruby-cucumber"
6734 (package-propagated-inputs ruby-aruba))))
6735 (native-inputs '())))
6737 (define-public ruby-sys-uname
6739 (name "ruby-sys-uname")
6744 (uri (rubygems-uri "sys-uname" version))
6747 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
6748 (build-system ruby-build-system)
6750 `(#:test-target "spec"))
6751 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
6752 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
6753 (synopsis "Ruby interface for gathering system information")
6754 (description "The sys-uname library provides an interface for gathering
6755 information about your current platform. It allows retrieving information
6756 such as the OS name, OS version, system name, etc.")
6757 (home-page "https://github.com/djberg96/sys-uname")
6758 (license license:asl2.0)))
6760 (define-public ruby-cucumber-create-meta
6762 (name "ruby-cucumber-create-meta")
6767 (uri (rubygems-uri "cucumber-create-meta" version))
6770 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
6771 (build-system ruby-build-system)
6773 `(#:phases (modify-phases %standard-phases
6774 (add-after 'extract-gemspec 'relax-version-requirements
6776 (substitute* ".gemspec"
6782 (invoke "rspec"))))))
6784 `(("ruby-rspec" ,ruby-rspec)))
6786 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6787 ("ruby-sys-uname" ,ruby-sys-uname)))
6788 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
6789 (description "The @code{createMeta} utility function allows generating
6790 system-specific @code{Meta} messages for Cucumber Ruby.")
6791 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
6792 (license license:expat)))
6794 (define-public ruby-cucumber-html-formatter
6796 (name "ruby-cucumber-html-formatter")
6801 (uri (rubygems-uri "cucumber-html-formatter" version))
6804 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
6805 (build-system ruby-build-system)
6807 `(#:phases (modify-phases %standard-phases
6810 (invoke "rspec"))))))
6812 `(("ruby-rspec" ,ruby-rspec)))
6814 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
6815 (synopsis "HTML formatter for Cucumber")
6816 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
6817 runs. It is built on top of cucumber-react and works with any Cucumber
6818 implementation with a protocol buffer formatter that outputs Cucumber
6820 (home-page "https://github.com/cucumber/cucumber/tree/\
6821 master/html-formatter/ruby")
6822 (license license:expat)))
6824 (define-public ruby-cucumber
6826 (name "ruby-cucumber")
6832 (url "https://github.com/cucumber/cucumber-ruby")
6833 (commit (string-append "v" version))))
6834 (file-name (git-file-name name version))
6837 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
6838 (build-system ruby-build-system)
6840 '(#:test-target "default"
6842 (modify-phases %standard-phases
6843 (add-after 'unpack 'disable-rubocop
6844 ;; Rubocop lint check fails with our more recent version.
6846 (substitute* "Rakefile"
6847 (("spec cucumber rubocop")
6850 (add-after 'extract-gemspec 'strip-version-requirements
6852 (delete-file "Gemfile") ;do not use Bundler
6853 (substitute* "cucumber.gemspec"
6854 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6855 (string-append stripped "\n")))
6857 (add-before 'check 'set-home
6859 (setenv "HOME" (getcwd))
6862 `(("ruby-builder" ,ruby-builder)
6863 ("ruby-cucumber-core" ,ruby-cucumber-core)
6864 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
6865 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
6866 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
6867 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
6868 ("ruby-diff-lcs" ,ruby-diff-lcs)
6869 ("ruby-gherkin" ,ruby-gherkin)
6870 ("ruby-multi-json" ,ruby-multi-json)
6871 ("ruby-multi-test" ,ruby-multi-test)))
6873 `(;; Use a untested version of aruba, to avoid a circular dependency, as
6874 ;; ruby-aruba depends on ruby-cucumber.
6875 ("ruby-aruba", ruby-aruba-without-tests)
6876 ("ruby-rspec" ,ruby-rspec)
6877 ("ruby-pry" ,ruby-pry)
6878 ("ruby-nokogiri" ,ruby-nokogiri)
6879 ("ruby-rubocop" ,ruby-rubocop)))
6880 (synopsis "Describe automated tests in plain language")
6881 (description "Cucumber is a tool for running automated tests written in
6882 plain language. It's designed to support a Behaviour Driven Development (BDD)
6883 software development workflow.")
6884 (home-page "https://cucumber.io/")
6885 (license license:expat)))
6887 (define ruby-cucumber-without-tests
6888 (package (inherit ruby-cucumber)
6894 (define-public ruby-coveralls
6896 (name "ruby-coveralls")
6901 (uri (rubygems-uri "coveralls" version))
6904 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
6905 (build-system ruby-build-system)
6906 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
6907 ;; because of its nonfree, Hippocratic derived license.
6908 (arguments '(#:tests? #f))
6910 `(("ruby-json" ,ruby-json)
6911 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
6912 ("ruby-thor" ,ruby-thor)
6913 ("ruby-tins" ,ruby-tins)))
6914 (synopsis "Ruby implementation of the Coveralls API")
6915 (description "This package provides a Ruby implementation of the Coveralls
6917 (home-page "https://coveralls.io")
6918 (license license:expat)))
6920 (define-public ruby-unindent
6922 (name "ruby-unindent")
6927 (uri (rubygems-uri "unindent" version))
6930 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
6931 (build-system ruby-build-system)
6932 (synopsis "Ruby method to unindent strings")
6933 (description "This module provides a @code{String#unindent} Ruby method to
6934 unindent strings, which can be useful to unindent multiline strings embedded
6935 in already-indented code.")
6936 (home-page "https://github.com/mynyml/unindent")
6937 (license license:expat)))
6939 (define-public ruby-cucumber-core
6941 (name "ruby-cucumber-core")
6947 (url "https://github.com/cucumber/cucumber-ruby-core")
6948 (commit (string-append "v" version))))
6949 (file-name (git-file-name name version))
6952 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
6953 (build-system ruby-build-system)
6955 `(#:test-target "spec"
6957 (modify-phases %standard-phases
6958 (add-after 'extract-gemspec 'relax-version-requirements
6960 (substitute* "cucumber-core.gemspec"
6961 (("'cucumber-tag-expressions',.*")
6962 "'cucumber-tag-expressions', '>=2.0.0'\n"))
6965 `(("ruby-rspec" ,ruby-rspec)
6966 ("ruby-coveralls" ,ruby-coveralls)
6967 ("ruby-rubocop" ,ruby-rubocop)
6968 ("ruby-simplecov" ,ruby-simplecov)
6969 ("ruby-unindent" ,ruby-unindent)))
6971 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6972 ("ruby-gherkin" ,ruby-gherkin)
6973 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
6974 (synopsis "Core library for the Cucumber BDD app")
6975 (description "Cucumber is a tool for running automated tests
6976 written in plain language. Because they're written in plain language,
6977 they can be read by anyone on your team. Because they can be read by
6978 anyone, you can use them to help improve communication, collaboration
6979 and trust on your team.")
6980 (home-page "https://cucumber.io/")
6981 (license license:expat)))
6983 (define-public ruby-cucumber-expressions
6985 (name "ruby-cucumber-expressions")
6991 (url "https://github.com/cucumber/cucumber-expressions-ruby")
6992 (commit (string-append "v" version))))
6993 (file-name (git-file-name name version))
6996 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
6997 (build-system ruby-build-system)
6999 '(#:test-target "spec"))
7001 `(("ruby-rspec" ,ruby-rspec)
7002 ("ruby-simplecov" ,ruby-simplecov)))
7003 (synopsis "Simpler alternative to Regular Expressions")
7004 (description "Cucumber Expressions offer similar functionality to Regular
7005 Expressions, with a syntax that is easier to read and write. Cucumber
7006 Expressions are extensible with parameter types.")
7007 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7008 (license license:expat)))
7010 (define-public ruby-cucumber-wire
7012 (name "ruby-cucumber-wire")
7017 (uri (rubygems-uri "cucumber-wire" version))
7020 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
7021 (build-system ruby-build-system)
7023 '(#:tests? #f ;tests use cucumber, causing a cycle
7025 (modify-phases %standard-phases
7026 (add-after 'extract-gemspec 'relax-version-requirements
7028 (substitute* ".gemspec"
7029 ((" 10\\.1") " 10.2"))
7032 `(("ruby-cucumber-core" ,ruby-cucumber-core)
7033 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
7034 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7035 (synopsis "Cucumber wire protocol plugin")
7036 (description "Cucumber's wire protocol allows step definitions to be
7037 implemented and invoked on any platform.")
7038 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
7039 (license license:expat)))
7041 (define-public ruby-cucumber-tag-expressions
7043 (name "ruby-cucumber-tag-expressions")
7049 (url "https://github.com/cucumber/tag-expressions-ruby")
7050 (commit (string-append "v" version))))
7051 (file-name (git-file-name name version))
7054 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
7055 (build-system ruby-build-system)
7057 `(#:test-target "spec"))
7059 `(("ruby-rspec" ,ruby-rspec)))
7060 (synopsis "Cucumber tag expressions for Ruby")
7061 (description "Cucumber tag expression parser for Ruby. A tag expression
7062 is an infix boolean expression used by Cucumber.")
7063 (home-page "https://github.com/cucumber/tag-expressions-ruby")
7064 (license license:expat)))
7066 (define-public ruby-bindex
7068 (name "ruby-bindex")
7073 (uri (rubygems-uri "bindex" version))
7076 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
7077 (build-system ruby-build-system)
7079 '(#:test-target "default"))
7081 `(("bundler" ,bundler)
7082 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7083 (synopsis "Provides access for bindings relating to Ruby exceptions")
7085 "@code{bindex} provides a way to access the bindings that relate to
7086 exceptions in Ruby, providing more information about the context in which the
7087 exception occurred.")
7088 (home-page "https://github.com/gsamokovarov/bindex")
7089 (license license:expat)))
7091 (define-public ruby-bio-logger
7093 (name "ruby-bio-logger")
7098 (uri (rubygems-uri "bio-logger" version))
7101 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
7102 (build-system ruby-build-system)
7104 `(#:tests? #f)) ; rake errors, missing shoulda
7106 `(("ruby-log4r" ,ruby-log4r)))
7107 (synopsis "Log4r wrapper for Ruby")
7108 (description "Bio-logger is a wrapper around Log4r adding extra logging
7109 features such as filtering and fine grained logging.")
7110 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
7111 (license license:expat)))
7113 (define-public ruby-yajl-ruby
7115 (name "ruby-yajl-ruby")
7120 (uri (rubygems-uri "yajl-ruby" version))
7123 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
7124 (build-system ruby-build-system)
7126 '(#:test-target "spec"
7128 (modify-phases %standard-phases
7129 (add-before 'check 'patch-test-to-update-load-path
7131 (substitute* "spec/parsing/large_number_spec.rb"
7132 (("require \"yajl\"")
7133 "$LOAD_PATH << 'lib'; require 'yajl'"))
7136 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7137 ("ruby-rspec" ,ruby-rspec)))
7138 (synopsis "Streaming JSON parsing and encoding library for Ruby")
7140 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
7141 is compatible with the JSON gem, so yajl-ruby can act as a drop in
7144 A modified copy of yajl is used, and included in the package.")
7145 (home-page "https://github.com/brianmario/yajl-ruby")
7146 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
7147 license:bsd-3)))) ; Included, modified copy of yajl
7149 (define-public ruby-yard
7156 ;; Tests do not pass if we build from the distributed gem.
7158 (url "https://github.com/lsegal/yard")
7159 (commit (string-append "v" version))))
7160 (file-name (git-file-name name version))
7163 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
7164 (build-system ruby-build-system)
7166 ;; Note: Tests are willfully disabled to alleviate dependency cycle
7169 (synopsis "Documentation generation tool for Ruby")
7170 (description "YARD is a documentation generation tool for the Ruby
7171 programming language. It enables the user to generate consistent, usable
7172 documentation that can be exported to a number of formats very easily, and
7173 also supports extending for custom Ruby constructs such as custom class level
7175 (home-page "https://yardoc.org")
7176 (license license:expat)))
7178 (define-public ruby-yard-with-tests
7181 (name "ruby-yard-with-tests")
7183 (substitute-keyword-arguments (package-arguments ruby-yard)
7184 ((#:tests? _ #t) #t)
7185 ((#:test-target _ "default") "default")
7186 ((#:phases phases '%standard-phases)
7187 `(modify-phases ,phases
7188 (add-before 'check 'prepare-for-tests
7189 (lambda* (#:key tests? #:allow-other-keys)
7191 (substitute* "Rakefile"
7192 ((".*[Ss]amus.*") ""))
7193 ;; Delete the Gemfile to avoid errors relating to it.
7194 (delete-file "Gemfile")
7195 ;; $HOME needs to be set to somewhere writeable for tests to
7197 (setenv "HOME" "/tmp"))
7200 `(("ruby-rspec" ,ruby-rspec)
7201 ("ruby-rack" ,ruby-rack)
7202 ("ruby-redcloth" ,ruby-redcloth)
7203 ("ruby-asciidoc" ,ruby-asciidoctor)))))
7205 (define-public ruby-spectroscope
7207 (name "ruby-spectroscope")
7212 (uri (rubygems-uri "spectroscope" version))
7215 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
7216 (build-system ruby-build-system)
7219 (modify-phases %standard-phases
7222 (with-output-to-file ".test"
7231 Test.run :default do |run|
7232 run.files << 'spec/*_spec.rb'
7234 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
7236 `(("ruby-ae" ,ruby-ae)
7237 ("ruby-rspec" ,ruby-rspec)))
7239 `(("ruby-rubytest" ,ruby-rubytest)))
7240 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
7241 (description "Spectroscope is a Behavior-Driven Development (BDD)
7242 framework built on RubyTest, designed to emulate RSpec in most respects. It
7243 is assertion framework independent so any number of assertion systems can be
7244 used, such as Assay or AE.")
7245 (home-page "http://rubyworks.github.com/spectroscope/")
7246 (license license:bsd-2)))
7248 (define-public ruby-tomparse
7250 (name "ruby-tomparse")
7255 (uri (rubygems-uri "tomparse" version))
7258 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
7259 (build-system ruby-build-system)
7260 ;; TODO: Tests require citron and rulebow, not yet packaged.
7261 (arguments '(#:tests? #f))
7262 (synopsis "TomDoc parser for Ruby")
7263 (description "TomParse is a TomDoc parser for Ruby. It takes a code
7264 comment as input and parses it into a convenient object-oriented structure in
7265 accordance with the TomDoc standard. See
7266 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
7268 (home-page "http://rubyworks.github.com/tomparse/")
7269 (license license:bsd-2)))
7271 (define-public ruby-yard-tomdoc
7273 (name "ruby-yard-tomdoc")
7278 (uri (rubygems-uri "yard-tomdoc" version))
7281 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
7282 (build-system ruby-build-system)
7284 `(#:phases (modify-phases %standard-phases
7287 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
7289 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
7290 ("ruby-spectroscope" ,ruby-spectroscope)
7291 ("ruby-ae" ,ruby-ae)))
7293 `(("ruby-tomparse" ,ruby-tomparse)
7294 ("ruby-yard" ,ruby-yard)))
7295 (synopsis "TomDoc syntax for YARD")
7296 (description "This module adds support for the TomDoc documentation format
7297 to YARD, a documentation generation tool for Ruby.")
7298 (home-page "http://rubyworks.github.com/yard-tomdoc/")
7299 (license license:expat)))
7301 (define-public ruby-clap
7307 (uri (rubygems-uri "clap" version))
7310 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
7311 (build-system ruby-build-system)
7312 ;; Clap needs cutest for running tests, but cutest needs clap.
7313 (arguments `(#:tests? #f))
7314 (synopsis "Command line argument parsing for simple applications")
7316 "Clap provides command line argument parsing features. It covers the
7317 simple case of executing code based on the flags or parameters passed.")
7318 (home-page "https://github.com/djanowski/cutest")
7319 (license license:expat)))
7321 (define-public ruby-cutest
7323 (name "ruby-cutest")
7327 (uri (rubygems-uri "cutest" version))
7330 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
7331 (build-system ruby-build-system)
7333 `(("ruby-clap" ,ruby-clap)))
7334 (synopsis "Run tests in separate processes")
7336 "Cutest runs tests in separate processes to avoid shared state.")
7337 (home-page "https://github.com/djanowski/cutest")
7338 (license license:expat)))
7340 (define-public ruby-pygmentize
7342 (name "ruby-pygmentize")
7346 (uri (rubygems-uri "pygmentize" version))
7349 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
7350 (build-system ruby-build-system)
7353 (modify-phases %standard-phases
7354 (add-after 'unpack 'fix-pygmentize-path
7356 (substitute* "lib/pygmentize.rb"
7357 (("\"/usr/bin/env python.*")
7358 (string-append "\"" (which "pygmentize") "\"\n")))
7360 (add-after 'build 'do-not-use-vendor-directory
7362 ;; Remove bundled pygments sources
7363 ;; FIXME: ruby-build-system does not support snippets.
7364 (delete-file-recursively "vendor")
7365 (substitute* "pygmentize.gemspec"
7366 (("\"vendor/\\*\\*/\\*\",") ""))
7369 `(("pygments" ,python-pygments)))
7371 `(("ruby-cutest" ,ruby-cutest)
7372 ("ruby-nokogiri" ,ruby-nokogiri)))
7373 (synopsis "Thin Ruby wrapper around pygmentize")
7375 "Pygmentize provides a simple way to call pygmentize from within a Ruby
7377 (home-page "https://github.com/djanowski/pygmentize")
7378 (license license:expat)))
7380 (define-public ruby-eventmachine
7382 (name "ruby-eventmachine")
7387 (uri (rubygems-uri "eventmachine" version))
7390 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
7391 (build-system ruby-build-system)
7393 '(#:tests? #f)) ; test suite tries to connect to google.com
7395 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
7396 (synopsis "Single-threaded network event framework for Ruby")
7398 "EventMachine implements a single-threaded engine for arbitrary network
7399 communications. EventMachine wraps all interactions with sockets, allowing
7400 programs to concentrate on the implementation of network protocols. It can be
7401 used to create both network servers and clients.")
7402 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
7403 (home-page "https://github.com/eventmachine/eventmachine")
7404 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
7406 (define-public ruby-ruby-engine
7408 (name "ruby-ruby-engine")
7413 (uri (rubygems-uri "ruby_engine" version))
7416 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
7417 (build-system ruby-build-system)
7420 (modify-phases %standard-phases
7421 (add-after 'extract-gemspec 'clean-up
7423 (delete-file "Gemfile.lock")
7424 (substitute* "ruby_engine.gemspec"
7425 ;; Remove unnecessary imports that would entail further
7428 ((".*<rubygems-tasks.*") "")
7429 ;; Remove extraneous .gem file
7430 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
7431 (("\"Gemfile.lock\".freeze, ") "")
7432 ;; Soften rake dependency
7433 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
7434 "%q<rake>.freeze, [\">= 10.0\"]")
7435 ;; Soften the rspec dependency
7436 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
7437 "%q<rspec>.freeze, [\">= 2.4\"]"))
7438 (substitute* "Rakefile"
7439 (("require 'rubygems/tasks'") "")
7440 (("Gem::Tasks.new") ""))
7441 ;; Remove extraneous .gem file that otherwise gets installed.
7442 (delete-file-recursively "pkg")
7445 `(("bundler" ,bundler)
7446 ("ruby-rake" ,ruby-rake)
7447 ("ruby-rspec" ,ruby-rspec)))
7448 (synopsis "Simplifies checking for Ruby implementation")
7450 "@code{ruby_engine} provides an RubyEngine class that can be used to
7451 check which implementation of Ruby is in use. It can provide the interpreter
7452 name and provides query methods such as @{RubyEngine.mri?}.")
7453 (home-page "https://github.com/janlelis/ruby_engine")
7454 (license license:expat)))
7456 (define-public ruby-turn
7463 (uri (rubygems-uri "turn" version))
7466 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
7467 (build-system ruby-build-system)
7470 (modify-phases %standard-phases
7471 ;; Tests fail because turn changes its environment so can no longer
7472 ;; find test/unit. Instead simply test if the executable runs
7476 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
7478 `(("ruby-ansi" ,ruby-ansi)
7479 ("ruby-minitest" ,ruby-minitest-4)))
7480 (synopsis "Alternate set of alternative runners for MiniTest")
7482 "TURN provides a set of alternative runners for MiniTest which are both
7483 colorful and informative. TURN displays each test on a separate line with
7484 failures being displayed immediately instead of at the end of the tests. Note
7485 that TURN is no longer being maintained.")
7486 (home-page "https://rubygems.org/gems/turn")
7487 (license license:expat)))
7489 (define-public ruby-mimemagic
7491 (name "ruby-mimemagic")
7496 (uri (rubygems-uri "mimemagic" version))
7498 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
7499 (build-system ruby-build-system)
7502 (modify-phases %standard-phases
7503 ;; This phase breaks the tests, as it patches some of the test data.
7504 (delete 'patch-source-shebangs))))
7506 `(("ruby-bacon" ,ruby-bacon)))
7507 (synopsis "Ruby library for MIME detection by extension or content")
7509 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
7510 extension or content, using the freedesktop.org.xml shared-mime-info
7512 (home-page "https://github.com/minad/mimemagic")
7513 (license license:expat)))
7515 (define-public ruby-mime-types-data
7517 (name "ruby-mime-types-data")
7518 (version "3.2016.0521")
7522 (uri (rubygems-uri "mime-types-data" version))
7525 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
7526 (build-system ruby-build-system)
7528 `(("ruby-hoe" ,ruby-hoe)))
7529 (synopsis "Registry for information about MIME media type definitions")
7531 "@code{mime-types-data} provides a registry for information about
7532 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
7533 be used with the Ruby mime-types library or other software to determine
7534 defined filename extensions for MIME types, or to use filename extensions to
7535 look up the likely MIME type definitions.")
7536 (home-page "https://github.com/mime-types/mime-types-data/")
7537 (license license:expat)))
7539 (define-public ruby-mime-types
7541 (name "ruby-mime-types")
7546 (uri (rubygems-uri "mime-types" version))
7549 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
7550 (build-system ruby-build-system)
7552 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
7554 `(("ruby-hoe" ,ruby-hoe)
7555 ("ruby-fivemat" ,ruby-fivemat)
7556 ("ruby-minitest-focus" ,ruby-minitest-focus)
7557 ("ruby-minitest-rg" ,ruby-minitest-rg)
7558 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
7559 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
7560 (synopsis "Library and registry for MIME content type definitions")
7561 (description "The mime-types library provides a library and registry for
7562 information about Multipurpose Internet Mail Extensions (MIME) content type
7563 definitions. It can be used to determine defined filename extensions for MIME
7564 types, or to use filename extensions to look up the likely MIME type
7566 (home-page "https://github.com/mime-types/ruby-mime-types")
7567 (license license:expat)))
7569 (define-public ruby-fivemat
7571 (name "ruby-fivemat")
7576 (uri (rubygems-uri "fivemat" version))
7579 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
7580 (build-system ruby-build-system)
7582 `(#:tests? #f)) ; no tests
7583 (synopsis "Each test file given its own line of dots")
7585 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
7586 its own line of dots during testing. It aims to provide test output that is
7587 neither too verbose nor too minimal.")
7588 (home-page "https://github.com/tpope/fivemat")
7589 (license license:expat)))
7591 (define-public ruby-sqlite3
7593 (name "ruby-sqlite3")
7598 (uri (rubygems-uri "sqlite3" version))
7601 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
7602 (build-system ruby-build-system)
7605 (modify-phases %standard-phases
7606 (add-before 'check 'add-gemtest-file
7607 ;; This file exists in the repository but is not distributed.
7608 (lambda _ (invoke "touch" ".gemtest"))))))
7610 `(("sqlite" ,sqlite)))
7612 `(("ruby-hoe" ,ruby-hoe)
7613 ("ruby-rake-compiler" ,ruby-rake-compiler)
7614 ("ruby-mini-portile" ,ruby-mini-portile)))
7615 (synopsis "Interface with SQLite3 databases")
7617 "This module allows Ruby programs to interface with the SQLite3 database
7620 "https://github.com/sparklemotion/sqlite3-ruby")
7621 (license license:bsd-3)))
7623 (define-public ruby-shoulda-context
7625 (name "ruby-shoulda-context")
7630 (uri (rubygems-uri "shoulda-context" version))
7633 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
7634 (build-system ruby-build-system)
7637 (modify-phases %standard-phases
7640 ;; Do not run tests to avoid circular dependence with rails.
7641 ;; Instead just import the library to test.
7642 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
7643 (synopsis "Test::Unit context framework extracted from Shoulda")
7645 "@code{shoulda-context} is the context framework extracted from Shoulda.
7646 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
7647 context, setup, and should blocks combine to produce natural test method
7649 (home-page "https://github.com/thoughtbot/shoulda-context")
7650 (license license:expat)))
7652 (define-public ruby-shoulda-matchers
7654 (name "ruby-shoulda-matchers")
7659 (uri (rubygems-uri "shoulda-matchers" version))
7662 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
7663 (build-system ruby-build-system)
7666 (modify-phases %standard-phases
7669 ;; Do not run tests to avoid circular dependence with rails. Instead
7670 ;; just import the library to test.
7671 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
7673 `(("ruby-activesupport" ,ruby-activesupport)))
7674 (synopsis "Collection of testing matchers extracted from Shoulda")
7676 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
7677 test common Rails functionality. These tests would otherwise be much longer,
7678 more complex, and error-prone.")
7679 (home-page "https://github.com/thoughtbot/shoulda-matchers")
7680 (license license:expat)))
7682 (define-public ruby-shoulda-matchers-2
7684 (inherit ruby-shoulda-matchers)
7688 (uri (rubygems-uri "shoulda-matchers" version))
7691 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
7693 (define-public ruby-shoulda
7695 (name "ruby-shoulda")
7700 (uri (rubygems-uri "shoulda" version))
7703 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
7704 (build-system ruby-build-system)
7707 (modify-phases %standard-phases
7709 ;; Don't run tests to avoid circular dependence with rails. Instead
7710 ;; just import the library to test.
7711 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
7713 `(("ruby-shoulda-context" ,ruby-shoulda-context)
7714 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
7715 (synopsis "Context framework and matchers for testing")
7717 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
7718 @code{shoulda-matchers} providing tools for writing tests.")
7719 (home-page "https://github.com/thoughtbot/shoulda")
7720 (license license:expat)))
7722 (define-public ruby-unf
7729 (uri (rubygems-uri "unf" version))
7732 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
7733 (build-system ruby-build-system)
7736 (modify-phases %standard-phases
7737 (add-before 'check 'add-dependency-to-bundler
7739 ;; test-unit is required but not provided by the bundler
7740 ;; environment. This is fixed in the upstream repository but fix
7741 ;; has not been released.
7742 (substitute* "Gemfile"
7743 (("^gemspec") "gem 'test-unit'\ngemspec"))
7746 `(("ruby-unf-ext" ,ruby-unf-ext)))
7748 `(("ruby-shoulda" ,ruby-shoulda)
7749 ("bundler" ,bundler)
7750 ("ruby-test-unit" ,ruby-test-unit)))
7751 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
7753 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
7754 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
7755 @code{java.text.Normalizer} on JRuby.")
7756 (home-page "https://github.com/knu/ruby-unf")
7757 (license license:bsd-2)))
7759 (define-public ruby-warden
7761 (name "ruby-warden")
7766 (uri (rubygems-uri "warden" version))
7769 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
7770 (build-system ruby-build-system)
7772 '(#:tests? #f)) ; No included tests
7774 `(("ruby-rack" ,ruby-rack)))
7775 (synopsis "Rack middleware providing authentication")
7777 "Warden is a Rack-based middleware that provides a mechanism for
7778 authentication in Ruby web applications.")
7779 (home-page "https://github.com/wardencommunity/warden")
7780 (license license:expat)))
7782 (define-public ruby-warden-oauth2
7784 (name "ruby-warden-oauth2")
7789 (uri (rubygems-uri "warden-oauth2" version))
7792 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
7793 (build-system ruby-build-system)
7795 '(#:test-target "spec"
7797 (modify-phases %standard-phases
7798 (add-after 'unpack 'remove-unnecessary-dependencies
7800 (substitute* "Gemfile"
7801 ;; All of these gems relate to development, and are unnecessary
7802 ;; when running the tests
7803 (("gem 'guard-bundler'") "")
7804 (("gem 'guard'") "")
7805 (("gem 'guard-rspec'") "")
7806 (("gem 'rb-fsevent'") "")
7808 (("gem 'growl'") ""))
7810 ;; The test suite doesn't work with rspec@2, and this is incompatible
7811 ;; with the current version of Rake, so invoke Rspec directly
7813 (lambda* (#:key tests? #:allow-other-keys)
7815 (invoke "bundle" "exec" "rspec"))
7818 `(("ruby-warden" ,ruby-warden)))
7820 `(("bundler" ,bundler)
7821 ("ruby-rspec" ,ruby-rspec-2)
7822 ("ruby-rack-test" ,ruby-rack-test)))
7823 (synopsis "OAuth 2.0 strategies for Warden")
7825 "This library extends Warden to support OAuth 2.0 authorized API
7827 (home-page "https://github.com/opperator/warden-oauth2")
7828 (license license:expat)))
7830 (define-public ruby-webmock-2
7832 (name "ruby-webmock")
7837 (uri (rubygems-uri "webmock" version))
7840 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
7841 (build-system ruby-build-system)
7843 `(("bundler" ,bundler)
7844 ("ruby-rspec" ,ruby-rspec)))
7846 `(("ruby-addressable" ,ruby-addressable)
7847 ("ruby-crack" ,ruby-crack)
7848 ("ruby-hashdiff" ,ruby-hashdiff)))
7849 (synopsis "Allows stubbing and setting expectations on HTTP requests")
7851 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
7852 requests. This is useful when testing software.")
7853 (home-page "https://github.com/bblimke/webmock")
7854 (license license:expat)))
7856 (define-public ruby-unicode-display-width
7858 (name "ruby-unicode-display-width")
7863 (uri (rubygems-uri "unicode-display_width" version))
7866 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
7867 (build-system ruby-build-system)
7869 '(;; Test data not included.
7871 (synopsis "Determine the monospace display width of Ruby strings")
7873 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
7874 display width of strings in Ruby.")
7875 (home-page "https://github.com/janlelis/unicode-display_width")
7876 (license license:expat)))
7878 ;; There is another gem called 'ruby-version' so we use an underscore in this
7880 (define-public ruby_version
7882 (name "ruby_version")
7887 (uri (rubygems-uri "ruby_version" version))
7890 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
7891 (build-system ruby-build-system)
7894 (modify-phases %standard-phases
7895 (add-before 'check 'fix-dependencies
7897 ;; Remove the Gemfile.lock, as we want to use Guix packages at
7898 ;; whatever versions.
7899 (delete-file "Gemfile.lock")
7900 ;; Remove the included gem files as they unnecessary.
7901 (delete-file-recursively "pkg/")
7902 ;; Accept any version of rake, rdoc and rspec
7903 (substitute* "ruby_version.gemspec"
7904 (("%q<rake.*") "%q<rake>)\n")
7905 (("%q<rdoc.*") "%q<rdoc>)\n")
7906 (("%q<rspec.*") "%q<rspec>)\n"))
7907 ;; Do not use bundler.
7908 (substitute* "Rakefile"
7909 (("Bundler\\.setup.*") "nil\n"))
7912 `(("ruby-rdoc" ,ruby-rdoc)
7913 ("ruby-rspec" ,ruby-rspec)
7914 ("ruby-rubygems-tasks", ruby-rubygems-tasks)))
7915 (synopsis "Ruby library to help check the Ruby version")
7916 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
7917 checking for the right Ruby version in software.")
7918 (home-page "https://github.com/janlelis/ruby_version")
7919 (license license:expat)))
7921 (define-public ruby-websocket-driver
7923 (name "ruby-websocket-driver")
7928 (uri (rubygems-uri "websocket-driver" version))
7930 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
7931 (build-system ruby-build-system)
7933 '(#:tests? #f)) ; no included tests
7935 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
7936 (synopsis "WebSocket protocol handler with pluggable I/O")
7938 "@code{websocket-driver} provides a complete implementation of the
7939 WebSocket protocols that can be hooked up to any TCP library")
7940 (home-page "https://github.com/faye/websocket-driver-ruby")
7941 (license license:expat)))
7943 (define-public ruby-websocket-extensions
7945 (name "ruby-websocket-extensions")
7950 (uri (rubygems-uri "websocket-extensions" version))
7953 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
7954 (build-system ruby-build-system)
7956 '(;; No included tests
7958 (synopsis "Generic extension manager for WebSocket connections")
7960 "@code{websocket-extensions} provides a container for registering
7961 extension plugins.")
7962 (home-page "https://github.com/faye/websocket-extensions-ruby")
7963 (license license:expat)))
7965 (define-public ruby-domain-name
7967 (name "ruby-domain-name")
7968 (version "0.5.20180417")
7972 (uri (rubygems-uri "domain_name" version))
7975 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
7976 (build-system ruby-build-system)
7979 (modify-phases %standard-phases
7980 (add-before 'check 'fix-versions
7982 ;; Fix NameError that appears to already be fixed upstream.
7983 (substitute* "Rakefile"
7984 (("DomainName::VERSION")
7985 "Bundler::GemHelper.gemspec.version"))
7986 ;; Loosen unnecessarily strict test-unit version specification.
7987 (substitute* "domain_name.gemspec"
7988 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
7991 `(("ruby-unf" ,ruby-unf)))
7993 `(("ruby-shoulda" ,ruby-shoulda)
7994 ("bundler" ,bundler)
7995 ("ruby-test-unit" ,ruby-test-unit)))
7996 (synopsis "Domain name manipulation library")
7998 "@code{domain_name} is a Domain name manipulation library. It parses a
7999 domain name ready for extracting the registered domain and TLD (Top Level
8000 Domain). It can also be used for cookie domain validation based on the Public
8002 (home-page "https://github.com/knu/ruby-domain_name")
8003 (license license:bsd-2)))
8005 (define-public ruby-http-cookie
8007 (name "ruby-http-cookie")
8012 (uri (rubygems-uri "http-cookie" version))
8015 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
8016 (build-system ruby-build-system)
8019 (modify-phases %standard-phases
8020 (add-before 'check 'add-dependency-to-bundler
8023 (substitute* "Rakefile"
8024 (("HTTP::Cookie::VERSION")
8025 "Bundler::GemHelper.gemspec.version"))
8028 `(("ruby-domain-name" ,ruby-domain-name)))
8030 `(("rubysimplecov" ,ruby-simplecov)
8031 ("bundler" ,bundler)
8032 ("ruby-sqlite3" ,ruby-sqlite3)
8033 ("ruby-test-unit" ,ruby-test-unit)))
8034 (synopsis "Handle HTTP Cookies based on RFC 6265")
8036 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
8037 RFC 6265. It has been designed with security, standards compliance and
8038 compatibility in mind, to behave just the same as today's major web browsers.
8039 It has built-in support for the legacy @code{cookies.txt} and
8040 @code{cookies.sqlite} formats of Mozilla Firefox.")
8041 (home-page "https://github.com/sparklemotion/http-cookie")
8042 (license license:expat)))
8044 (define-public ruby-httpclient
8046 (name "ruby-httpclient")
8051 (uri (rubygems-uri "httpclient" version))
8054 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
8055 (build-system ruby-build-system)
8057 '(;; TODO: Some tests currently fail
8059 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
8060 ;; 2 omissions, 0 notifications
8063 ;; 6.49 tests/s, 22.41 assertions/s
8066 (modify-phases %standard-phases
8068 (lambda* (#:key tests? #:allow-other-keys)
8075 `(("ruby-rack" ,ruby-rack)))
8077 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
8079 "The @code{httpclient} ruby library provides functionality related to
8080 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
8081 Cookie, multithreading and authentication (digest, NTLM) support.
8083 Also provided is a @command{httpclient} command, which can perform HTTP
8084 requests either using arguments or with an interactive prompt.")
8085 (home-page "https://github.com/nahi/httpclient")
8086 (license license:ruby)))
8088 (define-public ruby-ansi
8095 ;; Fetch from GitHub as the gem does not contain testing code.
8097 (url "https://github.com/rubyworks/ansi")
8099 (file-name (git-file-name name version))
8102 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
8103 (build-system ruby-build-system)
8106 (modify-phases %standard-phases
8107 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
8108 ;; cycle ansi, qed, ansi. Instead simply test that the library can
8112 (invoke "ruby" "-Ilib" "-r" "ansi")))
8113 (add-before 'validate-runpath 'replace-broken-symlink
8114 (lambda* (#:key outputs #:allow-other-keys)
8115 (let* ((out (assoc-ref outputs "out"))
8116 (file (string-append
8117 out "/lib/ruby/vendor_ruby/gems/ansi-"
8118 ,version "/lib/ansi.yml")))
8119 ;; XXX: This symlink is broken since ruby 2.4.
8120 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
8122 (symlink "../.index" file)
8124 (synopsis "ANSI escape code related libraries")
8126 "This package is a collection of ANSI escape code related libraries
8127 enabling ANSI colorization and stylization of console output. Included in the
8128 library are the @code{Code} module, which defines ANSI codes as constants and
8129 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
8130 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
8131 @code{Terminal} module which provides information about the current output
8133 (home-page "https://rubyworks.github.io/ansi/")
8134 (license license:bsd-2)))
8136 (define-public ruby-systemu
8138 (name "ruby-systemu")
8143 (uri (rubygems-uri "systemu" version))
8146 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
8147 (build-system ruby-build-system)
8150 (modify-phases %standard-phases
8151 (add-before 'check 'set-version
8153 (setenv "VERSION" ,version)
8155 (synopsis "Capture of stdout/stderr and handling of child processes")
8157 "Systemu can be used on any platform to return status, stdout, and stderr
8158 of any command. Unlike other methods like @code{open3} and @code{popen4}
8159 there is no danger of full pipes or threading issues hanging your process or
8161 (home-page "https://github.com/ahoward/systemu")
8162 (license license:ruby)))
8164 (define-public ruby-bio-commandeer
8166 (name "ruby-bio-commandeer")
8171 (uri (rubygems-uri "bio-commandeer" version))
8174 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
8175 (build-system ruby-build-system)
8178 (modify-phases %standard-phases
8180 ;; Run test without calling 'rake' so that jeweler is
8181 ;; not required as an input.
8183 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
8185 `(("ruby-bio-logger" ,ruby-bio-logger)
8186 ("ruby-systemu" ,ruby-systemu)))
8188 `(("bundler" ,bundler)
8189 ("ruby-rspec" ,ruby-rspec)))
8190 (synopsis "Simplified running of shell commands from within Ruby")
8192 "Bio-commandeer provides an opinionated method of running shell commands
8193 from within Ruby. The advantage of bio-commandeer over other methods of
8194 running external commands is that when something goes wrong, messages printed
8195 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
8196 detail to ease debugging.")
8197 (home-page "https://github.com/wwood/bioruby-commandeer")
8198 (license license:expat)))
8200 (define-public ruby-rubytest
8202 (name "ruby-rubytest")
8207 (uri (rubygems-uri "rubytest" version))
8210 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
8211 (build-system ruby-build-system)
8213 ;; Disable regular testing to break the cycle rubytest, qed, brass,
8214 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
8215 ;; simply test that the library can be require'd.
8217 (modify-phases %standard-phases
8220 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
8222 `(("ruby-ansi" ,ruby-ansi)))
8223 (synopsis "Universal test harness for Ruby")
8225 "Rubytest is a testing meta-framework for Ruby. It can handle any
8226 compliant test framework and can run tests from multiple frameworks in a
8228 (home-page "https://rubyworks.github.io/rubytest")
8229 (license license:bsd-2)))
8231 (define-public ruby-brass
8238 (uri (rubygems-uri "brass" version))
8241 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
8242 (build-system ruby-build-system)
8244 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
8245 ;; Instead simply test that the library can be require'd.
8247 (modify-phases %standard-phases
8250 (invoke "ruby" "-Ilib" "-r" "brass"))))))
8251 (synopsis "Basic foundational assertions framework")
8253 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
8254 foundational assertions framework for other assertion and test frameworks to
8256 (home-page "https://rubyworks.github.io/brass")
8257 (license license:bsd-2)))
8259 (define-public ruby-qed
8266 (uri (rubygems-uri "qed" version))
8269 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
8270 (build-system ruby-build-system)
8272 ;; Disable testing to break the cycle qed, ansi, qed, among others.
8273 ;; Instead simply test that the executable runs using --copyright.
8275 (modify-phases %standard-phases
8278 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
8280 `(("ruby-ansi" ,ruby-ansi)
8281 ("ruby-brass" ,ruby-brass)))
8282 (synopsis "Test framework utilizing literate programming techniques")
8284 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
8285 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
8286 Development} (BDD) utilizing Literate Programming techniques. QED sits
8287 somewhere between lower-level testing tools like @code{Test::Unit} and
8288 requirement specifications systems like Cucumber.")
8289 (home-page "https://rubyworks.github.io/qed")
8290 (license license:bsd-2)))
8292 (define-public ruby-que
8295 (version "1.0.0.beta3")
8299 (uri (rubygems-uri "que" version))
8302 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
8303 (build-system ruby-build-system)
8305 '(#:tests? #f)) ; No included tests
8306 (synopsis "Job queue using PostgreSQL written in Ruby")
8308 "This package provides a job queue that uses PostgreSQL for storing jobs
8309 and locking between worker processes.")
8310 (home-page "https://github.com/chanks/que")
8311 (license license:expat)))
8313 (define-public ruby-ae
8320 ;; Fetch from github so tests are included.
8322 (url "https://github.com/rubyworks/ae")
8324 (file-name (git-file-name name version))
8327 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
8328 (build-system ruby-build-system)
8331 (modify-phases %standard-phases
8333 (lambda _ (invoke "qed")))
8334 (add-before 'validate-runpath 'replace-broken-symlink
8335 (lambda* (#:key outputs #:allow-other-keys)
8336 (let* ((out (assoc-ref outputs "out"))
8337 (file (string-append
8338 out "/lib/ruby/vendor_ruby/gems/ae-"
8339 ,version "/lib/ae.yml")))
8340 ;; XXX: This symlink is broken since ruby 2.4.
8341 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
8343 (symlink "../.index" file)
8346 `(("ruby-ansi" ,ruby-ansi)))
8348 `(("ruby-qed" ,ruby-qed)))
8349 (synopsis "Assertions library")
8351 "Assertive Expressive (AE) is an assertions library specifically designed
8352 for reuse by other test frameworks.")
8353 (home-page "https://rubyworks.github.io/ae/")
8354 (license license:bsd-2)))
8356 (define-public ruby-lemon
8363 (uri (rubygems-uri "lemon" version))
8366 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
8367 (build-system ruby-build-system)
8370 (modify-phases %standard-phases
8371 (replace 'check (lambda _ (invoke "qed"))))))
8373 `(("ruby-ae" ,ruby-ae)
8374 ("ruby-ansi" ,ruby-ansi)
8375 ("ruby-rubytest" ,ruby-rubytest)))
8377 `(("ruby-qed" ,ruby-qed)))
8378 (synopsis "Test framework correlating code structure and test unit")
8380 "Lemon is a unit testing framework that enforces highly formal
8381 case-to-class and unit-to-method test construction. This enforcement can help
8382 focus concern on individual units of behavior.")
8383 (home-page "https://rubyworks.github.io/lemon")
8384 (license license:bsd-2)))
8386 (define-public ruby-rubytest-cli
8388 (name "ruby-rubytest-cli")
8393 (uri (rubygems-uri "rubytest-cli" version))
8396 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
8397 (build-system ruby-build-system)
8399 `(#:tests? #f)) ; no tests
8401 `(("ruby-ansi" ,ruby-ansi)
8402 ("ruby-rubytest" ,ruby-rubytest)))
8403 (synopsis "Command-line interface for rubytest")
8405 "Rubytest CLI is a command-line interface for running tests for
8406 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
8407 (home-page "https://rubyworks.github.io/rubytest-cli")
8408 (license license:bsd-2)))
8410 (define-public ruby-hashery
8412 (name "ruby-hashery")
8417 (uri (rubygems-uri "hashery" version))
8420 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
8421 (build-system ruby-build-system)
8424 (modify-phases %standard-phases
8428 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8430 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8431 ("ruby-qed" ,ruby-qed)
8432 ("ruby-lemon" ,ruby-lemon)))
8433 (synopsis "Hash-like classes with extra features")
8435 "The Hashery is a tight collection of @code{Hash}-like classes.
8436 Included are the auto-sorting @code{Dictionary} class, the efficient
8437 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
8438 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
8439 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
8440 standard @code{Hash} making it possible to subclass and augment to fit any
8441 specific use case.")
8442 (home-page "https://rubyworks.github.io/hashery")
8443 (license license:bsd-2)))
8445 (define-public ruby-rc4
8452 (uri (rubygems-uri "ruby-rc4" version))
8455 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
8456 (build-system ruby-build-system)
8459 (modify-phases %standard-phases
8462 (invoke "rspec" "spec/rc4_spec.rb"))))))
8464 `(("ruby-rspec" ,ruby-rspec-2)))
8465 (synopsis "Implementation of the RC4 algorithm")
8467 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
8468 (home-page "https://github.com/caiges/Ruby-RC4")
8469 (license license:expat)))
8471 (define-public ruby-afm
8478 (uri (rubygems-uri "afm" version))
8481 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
8482 (build-system ruby-build-system)
8484 `(("bundler" ,bundler)))
8485 (synopsis "Read Adobe Font Metrics (afm) files")
8487 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
8488 files and use the data therein.")
8489 (home-page "https://github.com/halfbyte/afm")
8490 (license license:expat)))
8492 (define-public ruby-ascii85
8494 (name "ruby-ascii85")
8499 (uri (rubygems-uri "Ascii85" version))
8502 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
8503 (build-system ruby-build-system)
8505 `(("bundler" ,bundler)))
8506 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
8508 "This library provides methods to encode and decode Ascii85
8509 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
8510 @dfn{Portable Document Format} (PDF) file formats.")
8511 (home-page "https://github.com/datawraith/ascii85gem")
8512 (license license:expat)))
8514 (define-public ruby-ttfunk
8516 (name "ruby-ttfunk")
8521 ;; fetch from github as the gem does not contain testing code
8523 (url "https://github.com/prawnpdf/ttfunk")
8525 (file-name (git-file-name name version))
8528 "0rsf4j6s97wbcnjbvmmh6xrc7imw4g9lrlcvn945wh400lc8r53z"))))
8529 (build-system ruby-build-system)
8531 `(#:test-target "spec"
8533 (modify-phases %standard-phases
8534 (add-before 'build 'remove-ssh
8536 ;; remove dependency on an ssh key pair that doesn't exist
8537 (substitute* "ttfunk.gemspec"
8538 (("spec.signing_key.*") ""))
8540 (add-before 'check 'remove-rubocop
8542 ;; remove rubocop as a dependency as not needed for testing
8543 (substitute* "ttfunk.gemspec"
8544 (("spec.add_development_dependency\\('rubocop'.*") ""))
8545 (substitute* "Rakefile"
8546 (("require 'rubocop/rake_task'") "")
8547 (("RuboCop::RakeTask.new") ""))
8550 `(("ruby-rspec" ,ruby-rspec)
8551 ("ruby-yard" ,ruby-yard)
8552 ("bundler" ,bundler)))
8553 (synopsis "Font metrics parser for the Prawn PDF generator")
8555 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
8556 part of the Prawn PDF generator.")
8557 (home-page "https://github.com/prawnpdf/ttfunk")
8558 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
8560 (license %prawn-project-licenses)))
8562 (define-public ruby-puma
8569 ;; Fetch from GitHub because distributed gem does not contain tests.
8571 (url "https://github.com/puma/puma")
8572 (commit (string-append "v" version))))
8573 (file-name (git-file-name name version))
8576 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
8577 (build-system ruby-build-system)
8579 `(#:tests? #f ; Tests require an out-dated version of minitest.
8581 (modify-phases %standard-phases
8582 (add-before 'build 'fix-gemspec
8584 (substitute* "puma.gemspec"
8585 (("git ls-files") "find * |sort"))
8587 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
8589 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
8590 for Ruby/Rack applications. Puma is intended for use in both development and
8591 production environments. In order to get the best throughput, it is highly
8592 recommended that you use a Ruby implementation with real threads like Rubinius
8594 (home-page "https://puma.io/")
8595 (license license:expat)))
8597 (define-public ruby-hoe-git
8599 (name "ruby-hoe-git")
8604 (uri (rubygems-uri "hoe-git" version))
8607 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
8608 (build-system ruby-build-system)
8610 `(("ruby-hoe" ,ruby-hoe)
8612 (synopsis "Hoe plugins for tighter Git integration")
8614 "This package provides a set of Hoe plugins for tighter Git integration.
8615 It provides tasks to automate release tagging and pushing and changelog
8617 (home-page "https://github.com/jbarnette/hoe-git")
8618 (license license:expat)))
8620 (define-public ruby-sequel
8622 (name "ruby-sequel")
8627 (uri (rubygems-uri "sequel" version))
8630 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
8631 (build-system ruby-build-system)
8633 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
8634 (synopsis "Database toolkit for Ruby")
8635 (description "Sequel provides thread safety, connection pooling and a
8636 concise DSL for constructing SQL queries and table schemas. It includes a
8637 comprehensive ORM layer for mapping records to Ruby objects and handling
8638 associated records.")
8639 (home-page "https://sequel.jeremyevans.net")
8640 (license license:expat)))
8642 (define-public ruby-timecop
8644 (name "ruby-timecop")
8649 (uri (rubygems-uri "timecop" version))
8652 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
8653 (build-system ruby-build-system)
8656 (modify-phases %standard-phases
8657 (add-before 'check 'set-check-rubylib
8659 ;; Set RUBYLIB so timecop tests finds its own lib.
8660 (setenv "RUBYLIB" "lib")
8663 `(("bundler" ,bundler)
8664 ("ruby-minitest-rg" ,ruby-minitest-rg)
8665 ("ruby-mocha" ,ruby-mocha)
8666 ("ruby-activesupport" ,ruby-activesupport)))
8667 (synopsis "Test mocks for time-dependent functions")
8669 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
8670 making it easier to test time-dependent code. It provides a unified method to
8671 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
8673 (home-page "https://github.com/travisjeffery/timecop")
8674 (license license:expat)))
8676 (define-public ruby-concurrent
8678 (name "ruby-concurrent")
8683 ;; Download from GitHub because the rubygems version does not contain
8686 (url "https://github.com/ruby-concurrency/concurrent-ruby")
8687 (commit (string-append "v" version))))
8688 (file-name (git-file-name name version))
8691 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
8692 (build-system ruby-build-system)
8694 `(#:test-target "ci"
8696 (modify-phases %standard-phases
8697 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
8699 ;; Delete extra gemspec files so 'first-gemspec' chooses the
8701 (delete-file "concurrent-ruby-edge.gemspec")
8702 (delete-file "concurrent-ruby-ext.gemspec")
8704 (replace 'replace-git-ls-files
8706 ;; XXX: The default substitution made by this phase is not fully
8707 ;; compatible with "git ls-files". The latter produces file names
8708 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
8709 ;; which gives "./lib/foo". That difference in turn breaks the
8710 ;; comparison against a glob pattern in this script.
8711 (substitute* "concurrent-ruby.gemspec"
8712 (("git ls-files") "find * -type f | sort"))
8714 (add-before 'build 'remove-jar-from-gemspec
8716 ;; The gemspec wants to include a JAR file that we do not build
8718 (substitute* "concurrent-ruby.gemspec"
8719 (("'lib/concurrent/concurrent_ruby.jar'")
8722 (add-before 'build 'remove-rake_compiler_dock-dependency
8724 ;; This library is only used when building for non-MRI targets.
8725 (substitute* "Rakefile"
8726 (("require 'rake_compiler_dock'")
8729 (add-before 'check 'remove-timecop-dependency
8730 ;; Remove timecop-dependent tests as having timecop as a depedency
8731 ;; causes circular depedencies.
8733 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
8734 (delete-file "spec/concurrent/scheduled_task_spec.rb")
8737 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8738 ("ruby-rspec" ,ruby-rspec)))
8739 (synopsis "Concurrency tools for Ruby")
8741 "This library provides modern concurrency tools including agents,
8742 futures, promises, thread pools, actors, supervisors, and more. It is
8743 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
8745 (home-page "http://www.concurrent-ruby.com")
8746 (license license:expat)))
8748 (define-public ruby-pkg-config
8750 (name "ruby-pkg-config")
8755 (uri (rubygems-uri "pkg-config" version))
8758 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
8759 (build-system ruby-build-system)
8761 ;; Tests require extra files not included in the gem.
8763 (synopsis "Detect libraries for compiling Ruby native extensions")
8765 "@code{pkg-config} can be used in your extconf.rb to properly detect need
8766 libraries for compiling Ruby native extensions.")
8767 (home-page "https://github.com/ruby-gnome2/pkg-config")
8768 (license license:lgpl2.0+)))
8770 (define-public ruby-net-http-digest-auth
8772 (name "ruby-net-http-digest-auth")
8777 (uri (rubygems-uri "net-http-digest_auth" version))
8780 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
8781 (build-system ruby-build-system)
8783 `(("ruby-hoe" ,ruby-hoe)))
8784 (synopsis "RFC 2617 HTTP digest authentication library")
8786 "This library implements HTTP's digest authentication scheme based on
8787 RFC 2617. This enables the use of the digest authentication scheme instead
8788 of the more insecure basic authentication scheme.")
8789 (home-page "https://github.com/drbrain/net-http-digest_auth")
8790 (license license:expat)))
8792 (define-public ruby-mail
8799 (uri (rubygems-uri "mail" version))
8802 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
8803 (build-system ruby-build-system)
8805 `(("ruby-mime-types" ,ruby-mime-types)))
8807 ;; Tests require extra gems not included in the Gemfile.
8808 ;; XXX: Try enabling this for the next version with mini_mime.
8810 (synopsis "Mail library for Ruby")
8812 "Mail is an internet library for Ruby that is designed to handle email
8813 generation, parsing and sending. The purpose of this library is to provide
8814 a single point of access to handle all email functions, including sending
8815 and receiving emails. All network type actions are done through proxy
8816 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
8818 Mail has been designed with a very simple object oriented system that
8819 really opens up the email messages you are parsing, if you know what you
8820 are doing, you can fiddle with every last bit of your email directly.")
8821 (home-page "https://github.com/mikel/mail")
8822 (license license:expat)))
8824 (define-public ruby-mathn
8831 (uri (rubygems-uri "mathn" version))
8834 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
8835 (build-system ruby-build-system)
8837 `(("bundler" ,bundler)
8838 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8839 (synopsis "Extends math operations for increased precision")
8841 "This gem makes mathematical operations more precise in Ruby and
8842 integrates other mathematical standard libraries. Prior to Ruby 2.5,
8843 @code{mathn} was part of the Ruby standard library.")
8844 (home-page "https://github.com/ruby/mathn")
8845 (license license:bsd-2)))
8847 (define-public ruby-code-statistics
8849 (name "ruby-code-statistics")
8854 (uri (rubygems-uri "code_statistics" version))
8857 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
8858 (build-system ruby-build-system)
8860 `(#:tests? #f)) ; Not all test code is included in gem.
8861 (synopsis "Port of the rails 'rake stats' method")
8863 "This gem is a port of the rails 'rake stats' method so it can be made
8864 more robust and work for non rails projects.")
8865 (home-page "https://github.com/danmayer/code_statistics")
8866 (license license:expat)))
8868 (define-public ruby-rubypants
8870 (name "ruby-rubypants")
8874 (uri (rubygems-uri "rubypants" version))
8877 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
8878 (build-system ruby-build-system)
8880 '(#:tests? #f)) ; need Codecov
8881 (synopsis "Port of the smart-quotes library SmartyPants")
8883 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
8884 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
8885 and BBEdit that easily translates plain ASCII punctuation characters into
8886 smart typographic punctuation HTML entities.")
8887 (home-page "https://github.com/jmcnevin/rubypants")
8888 (license license:bsd-2)))
8890 (define-public ruby-org-ruby
8892 (name "ruby-org-ruby")
8896 (uri (rubygems-uri "org-ruby" version))
8899 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
8900 (build-system ruby-build-system)
8902 '(#:tests? #f)) ; no rakefile
8904 `(("ruby-rubypants" ,ruby-rubypants)))
8905 (synopsis "Org-mode parser written in Ruby")
8907 "Org-ruby is an org-mode parser written in Ruby. The most significant
8908 thing this library does today is convert org-mode files to HTML or Textile or
8910 (home-page "https://github.com/wallyqs/org-ruby")
8911 (license license:expat)))
8913 (define-public ruby-rake
8920 (uri (rubygems-uri "rake" version))
8923 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
8924 (build-system ruby-build-system)
8926 `(("bundler" ,bundler)))
8927 (synopsis "Rake is a Make-like program implemented in Ruby")
8929 "Rake is a Make-like program where tasks and dependencies are specified
8930 in standard Ruby syntax.")
8931 (home-page "https://github.com/ruby/rake")
8932 (license license:expat)))
8934 (define-public ruby-childprocess
8936 (name "ruby-childprocess")
8941 (uri (rubygems-uri "childprocess" version))
8944 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
8945 (build-system ruby-build-system)
8949 `(("bundler" ,bundler)
8950 ("ruby-rspec" ,ruby-rspec)))
8952 `(("ruby-ffi" ,ruby-ffi)))
8953 (synopsis "Control external programs running in the background, in Ruby")
8954 (description "@code{childprocess} provides a gem to control external
8955 programs running in the background, in Ruby.")
8956 (home-page "https://github.com/enkessler/childprocess")
8957 (license license:expat)))
8959 (define-public ruby-public-suffix
8961 (name "ruby-public-suffix")
8965 (uri (rubygems-uri "public_suffix" version))
8968 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
8969 (build-system ruby-build-system)
8972 (modify-phases %standard-phases
8973 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
8974 ;; including it as an input can lead to circular dependencies.
8975 (add-after 'unpack 'remove-rubocop-from-Rakefile
8977 (substitute* "Rakefile"
8978 (("require \"rubocop/rake\\_task\"") "")
8979 (("RuboCop::RakeTask\\.new") ""))
8982 `(("bundler" ,bundler)
8983 ("ruby-yard" ,ruby-yard)
8984 ("ruby-mocha" ,ruby-mocha)
8985 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
8986 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
8987 (synopsis "Domain name parser")
8988 (description "The gem @code{public_suffix} is a domain name parser,
8989 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
8990 is one under which Internet users can (or historically could) directly
8991 register names. Some examples of public suffixes are @code{.com},
8992 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
8993 all known public suffixes.")
8994 (license license:expat)))
8996 (define-public ruby-addressable
8998 (name "ruby-addressable")
9002 (uri (rubygems-uri "addressable" version))
9005 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
9006 (build-system ruby-build-system)
9008 '(#:test-target "spec"
9010 (modify-phases %standard-phases
9011 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
9013 (substitute* "Gemfile"
9014 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
9015 ((".*launchy.*") "")
9016 ((".*rake.*") "gem 'rake'\n")
9017 ((".*redcarpet.*") ""))
9019 (add-before 'check 'delete-network-dependent-test
9021 (delete-file "spec/addressable/net_http_compat_spec.rb")
9024 `(("ruby-rspec" ,ruby-rspec)
9025 ("bundler" ,bundler)
9026 ("ruby-idn-ruby" ,ruby-idn-ruby)
9027 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
9028 ("ruby-rspec-its", ruby-rspec-its-minimal)
9029 ("ruby-yard" ,ruby-yard)
9030 ("ruby-simplecov" ,ruby-simplecov)))
9032 `(("ruby-public-suffix" ,ruby-public-suffix)))
9033 (home-page "https://github.com/sporkmonger/addressable")
9034 (synopsis "Alternative URI implementation")
9035 (description "Addressable is a replacement for the URI implementation that
9036 is part of Ruby's standard library. It more closely conforms to RFC 3986,
9037 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
9038 (license license:asl2.0)))
9040 (define-public ruby-colorize
9042 (name "ruby-colorize")
9046 (uri (rubygems-uri "colorize" version))
9049 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
9050 (build-system ruby-build-system)
9052 '(#:phases (modify-phases %standard-phases
9053 (add-before 'check 'remove-codeclimate-dependency
9055 (substitute* "test/test_colorize.rb"
9056 ;; Do not hook the tests into the online CodeClimate
9057 ;; service which is unnecessary for these tests.
9058 (("require 'codeclimate-test-reporter'")
9060 (("CodeClimate.*") ""))
9062 (synopsis "Add color effects to the @code{String} class")
9064 "This package extends the @code{String} class and adds a
9065 @code{ColorizedString} with methods to set text color, background color,
9067 (home-page "https://github.com/fazibear/colorize")
9068 (license license:gpl2+)))
9070 (define-public ruby-colorator
9072 (name "ruby-colorator")
9076 (uri (rubygems-uri "colorator" version))
9079 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
9080 (build-system ruby-build-system)
9084 (home-page "http://octopress.org/colorator/")
9085 (synopsis "Terminal color library")
9086 (description "Colorator is a Ruby gem that helps you colorize your text
9088 (license license:expat)))
9090 (define-public ruby-command-line-reporter
9092 (name "ruby-command-line-reporter")
9096 (uri (rubygems-uri "command_line_reporter" version))
9099 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
9100 (build-system ruby-build-system)
9105 (modify-phases %standard-phases
9106 (add-before 'build 'fix-dependencies
9108 (substitute* ".gemspec"
9109 ;; colored is unmaintained
9110 (("colored") "colorator")
9111 ;; colorator version
9112 (("= 1.2") "= 1.1"))
9114 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
9115 (home-page "https://github.com/wbailey/command_line_reporter")
9116 (synopsis "Report production while executing Ruby scripts")
9117 (description "This gem provides a DSL that makes it easy to write reports
9118 of various types in ruby. It eliminates the need to litter your source with
9119 puts statements, instead providing a more readable, expressive interface to
9121 (license license:asl2.0)))
9123 (define-public ruby-command-line-reporter-3
9125 (inherit ruby-command-line-reporter)
9129 (uri (rubygems-uri "command_line_reporter" version))
9132 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
9134 (define-public ruby-kpeg
9141 (uri (rubygems-uri "kpeg" version))
9144 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
9145 (build-system ruby-build-system)
9147 `(("ruby-hoe" ,ruby-hoe)))
9148 (synopsis "PEG library for Ruby")
9149 (description "KPeg is a simple PEG library for Ruby. It provides an API as
9150 well as native grammar to build the grammar. KPeg supports direct left
9151 recursion of rules via the
9152 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
9154 (home-page "https://github.com/evanphx/kpeg")
9155 (license license:expat)))
9157 (define-public ruby-rdoc
9165 (url "https://github.com/ruby/rdoc")
9166 (commit (string-append "v" version))))
9167 (file-name (git-file-name name version))
9170 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
9171 (build-system ruby-build-system)
9174 (modify-phases %standard-phases
9175 (add-after 'unpack 'patch-gemspec
9176 ;; TODO: Remove after next release is tagged.
9178 (substitute* "rdoc.gemspec"
9179 (("\"lib/rdoc/generator/template/darkfish/js/\
9180 jquery\\.js\", ") ""))
9182 (add-before 'build 'generate
9183 ;; 'gem build' doesn't honor Rakefile dependencies (see:
9184 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
9186 (invoke "rake" "generate"))))))
9188 `(("bundler" ,bundler)
9189 ("ruby-kpeg" ,ruby-kpeg)
9190 ("ruby-racc" ,ruby-racc)
9191 ("ruby-rubocop" ,ruby-rubocop)))
9192 (home-page "https://ruby.github.io/rdoc/")
9193 (synopsis "HTML and command-line documentation utility")
9194 (description "RDoc produces HTML and command-line documentation for Ruby
9195 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
9196 documentation from the command-line.")
9197 (license license:gpl2+)))
9199 (define-public ruby-sass-listen
9201 (name "ruby-sass-listen")
9205 (uri (rubygems-uri "sass-listen" version))
9208 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
9209 (build-system ruby-build-system)
9214 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
9215 ("ruby-rb-inotify" ,ruby-rb-inotify)))
9216 (home-page "https://github.com/sass/listen")
9217 (synopsis "File modification notification library")
9218 (description "The Listen gem listens to file modifications and notifies you
9219 about the changes.")
9220 (license license:expat)))
9222 (define-public ruby-terminfo
9224 (name "ruby-terminfo")
9229 (uri (rubygems-uri "ruby-terminfo" version))
9232 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
9233 (build-system ruby-build-system)
9235 `(#:test-target "test"
9236 ;; Rakefile requires old packages and would need modification to
9237 ;; work with current software.
9240 `(("ncurses" ,ncurses)))
9242 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
9243 ("ruby-rdoc" ,ruby-rdoc)))
9244 (home-page "http://www.a-k-r.org/ruby-terminfo/")
9245 (synopsis "Terminfo binding for Ruby")
9246 (description "Ruby-terminfo provides terminfo binding for Ruby.")
9247 (license license:bsd-3)))
9249 (define-public ruby-diffy
9256 (uri (rubygems-uri "diffy" version))
9259 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
9260 (build-system ruby-build-system)
9265 `(("ruby-rspec" ,ruby-rspec)))
9266 (home-page "https://github.com/samg/diffy")
9267 (synopsis "Convenient diffing in ruby")
9268 (description "Diffy provides a convenient way to generate a diff from two
9270 (license license:expat)))
9272 (define-public ruby-sass-spec
9274 (name "ruby-sass-spec")
9280 (url "https://github.com/sass/sass-spec")
9281 (commit (string-append "v" version))))
9282 (file-name (git-file-name name version))
9284 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
9285 (build-system ruby-build-system)
9287 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
9288 ("ruby-diffy" ,ruby-diffy)
9289 ("ruby-terminfo" ,ruby-terminfo)))
9291 `(;; This package contains tests for a sass implementation, and the to
9292 ;; avoid any circular dependencies, the tests are not run here
9295 (modify-phases %standard-phases
9296 (add-after 'unpack 'patch-test
9298 (delete-file "spec/values/colors/alpha_hex-3.5/error")
9299 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
9300 (("string") "color")))))))
9301 (home-page "https://github.com/sass/sass-spec")
9302 (synopsis "Test suite for Sass")
9303 (description "Sass Spec is a test suite for Sass. Test cases are all in
9304 the @file{spec} directory.")
9305 (license license:expat)))
9307 (define-public ruby-sass
9313 (uri (rubygems-uri "sass" version))
9316 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
9317 (build-system ruby-build-system)
9319 `(("ruby-sass-listen" ,ruby-sass-listen)))
9321 `(("ruby-sass-spec" ,ruby-sass-spec)
9322 ("ruby-mathn" ,ruby-mathn)))
9323 (home-page "https://sass-lang.com/")
9324 (synopsis "CSS extension language")
9325 (description "Sass is a CSS extension language. It extends CSS with
9326 features that don't exist yet like variables, nesting, mixins and inheritance.")
9327 (license license:expat)))
9329 (define-public ruby-sassc
9336 (uri (rubygems-uri "sassc" version))
9339 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
9340 (build-system ruby-build-system)
9342 '(#:modules ((guix build ruby-build-system)
9344 (ice-9 textual-ports))
9346 (modify-phases %standard-phases
9347 ;; TODO: This would be better as a snippet, but the ruby-build-system
9348 ;; doesn't seem to support that
9349 (add-after 'unpack 'remove-libsass
9351 (delete-file-recursively "ext")
9352 (with-atomic-file-replacement "sassc.gemspec"
9354 (let* ((gemspec (get-string-all in))
9355 (index (string-contains gemspec "libsass_dir")))
9356 (display (string-append
9357 (string-take gemspec index)
9361 (add-after 'unpack 'dont-check-the-libsass-version
9363 (substitute* "test/native_test.rb"
9364 (("assert_equal.*Native\\.version") ""))
9366 (add-after 'unpack 'remove-git-from-gemspec
9368 (substitute* "sassc.gemspec"
9369 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
9371 (add-after 'unpack 'remove-extensions-from-gemspec
9373 (substitute* "sassc.gemspec"
9374 (("\\[\"ext/extconf.rb\"\\]") "[]"))
9376 (add-after 'unpack 'fix-Rakefile
9378 (substitute* "Rakefile"
9379 (("test: 'compile:libsass'") ":test"))
9381 (add-after 'unpack 'remove-unnecessary-dependencies
9383 (substitute* "test/test_helper.rb"
9384 (("require \"pry\"") ""))
9386 (add-before 'build 'patch-native.rb
9387 (lambda* (#:key inputs #:allow-other-keys)
9388 (substitute* "lib/sassc/native.rb"
9389 ((".*gem_root = spec.gem_dir") "")
9392 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
9394 ;; The gemspec still references the libsass files, so just keep the
9396 (delete 'extract-gemspec))))
9398 `(("ruby-ffi" ,ruby-ffi)
9399 ("ruby-rake" ,ruby-rake)))
9401 `(("libsass" ,libsass)))
9403 `(("bundler" ,bundler)
9404 ("ruby-rake-compiler" ,ruby-rake-compiler)
9405 ("ruby-minitest-around" ,ruby-minitest-around)
9406 ("ruby-test-construct" ,ruby-test-construct)))
9407 (synopsis "Use libsss from Ruby")
9409 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
9410 bindings to the libsass library. This enables rendering
9411 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
9412 (home-page "https://github.com/sass/sassc-ruby")
9413 (license license:expat)))
9415 (define-public ruby-jekyll-sass-converter
9417 (name "ruby-jekyll-sass-converter")
9421 (uri (rubygems-uri "jekyll-sass-converter" version))
9424 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
9425 (build-system ruby-build-system)
9427 `(("ruby-sass" ,ruby-sass)))
9431 (home-page "https://github.com/jekyll/jekyll-sass-converter")
9432 (synopsis "Sass converter for Jekyll")
9433 (description "This gem provide built-in support for the Sass converter
9435 (license license:expat)))
9437 (define-public ruby-jekyll-watch
9439 (name "ruby-jekyll-watch")
9443 (uri (rubygems-uri "jekyll-watch" version))
9446 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
9447 (build-system ruby-build-system)
9449 `(("ruby-listen" ,ruby-listen)))
9453 (home-page "https://github.com/jekyll/jekyll-watch")
9454 (synopsis "Jekyll auto-rebuild support")
9455 (description "This gems add the @code{--watch} switch to the jekyll CLI
9456 interface. It allows Jekyll to rebuild your site when a file changes.")
9457 (license license:expat)))
9459 (define-public ruby-parallel
9461 (name "ruby-parallel")
9467 (url "https://github.com/grosser/parallel")
9468 (commit (string-append "v" version))))
9469 (file-name (git-file-name name version))
9472 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
9473 (build-system ruby-build-system)
9475 `(;; TODO 3 test failures
9476 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
9477 ;; open unnecessary pipes
9478 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
9479 ;; SQLite in processes
9480 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
9481 ;; SQLite in threads
9483 #:test-target "rspec-rerun:spec"
9485 (modify-phases %standard-phases
9486 (add-after 'unpack 'patch-Gemfile
9488 (substitute* "Gemfile"
9489 (("gem 'rspec-legacy_formatters'") "")
9490 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
9491 (add-before 'check 'delete-Gemfile.lock
9493 ;; Bundler isn't being used for fetching dependendencies, so
9494 ;; delete the Gemfile.lock
9495 (delete-file "Gemfile.lock")
9497 (add-before 'build 'patch-gemspec
9499 (substitute* "parallel.gemspec"
9500 (("git ls-files") "find"))
9503 `(("ruby-rspec" ,ruby-rspec)
9504 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
9505 ("bundler" ,bundler)
9506 ("ruby-activerecord" ,ruby-activerecord)
9507 ("ruby-progressbar" ,ruby-progressbar)
9508 ("ruby-bump" ,ruby-bump)
9511 ("ruby-mysql2" ,ruby-mysql2)
9512 ("ruby-sqlite3" ,ruby-sqlite3)
9513 ("ruby-i18n" ,ruby-i18n)))
9514 (home-page "https://github.com/grosser/parallel")
9515 (synopsis "Parallel processing in Ruby")
9516 (description "Parallel allows you to run any code in parallel Processes
9517 (to use all CPUs) or Threads(to speedup blocking operations). It is best
9518 suited for map-reduce or e.g. parallel downloads/uploads.")
9519 (license license:expat)))
9521 (define-public ruby-cane
9527 (uri (rubygems-uri "cane" version))
9530 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
9531 (build-system ruby-build-system)
9532 (arguments `(#:tests? #f)); No rakefile
9533 (home-page "https://github.com/square/cane")
9535 `(("ruby-parallel" ,ruby-parallel)))
9536 (synopsis "Code quality threshold checking")
9537 (description "Cane fails your build if code quality thresholds are not met.")
9538 (license license:asl2.0)))
9540 (define-public ruby-morecane
9542 (name "ruby-morecane")
9546 (uri (rubygems-uri "morecane" version))
9549 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
9550 (build-system ruby-build-system)
9551 (home-page "https://github.com/yob/morecane")
9552 (arguments `(#:tests? #f)); No rakefile
9554 `(("ruby-parallel" ,ruby-parallel)))
9555 (synopsis "Extra checks for cane")
9556 (description "The cane gem provides a great framework for running quality
9557 checks over your ruby project as part of continuous integration build. It
9558 comes with a few checks out of the box, but also provides an API for loading
9559 custom checks. This gem provides a set of additional checks.")
9560 (license license:expat)))
9562 (define-public ruby-pdf-reader
9564 (name "ruby-pdf-reader")
9567 (method git-fetch) ;no test in distributed gem archive
9569 (url "https://github.com/yob/pdf-reader.git")
9570 (commit (string-append "v" version))))
9571 (file-name (git-file-name name version))
9574 "1yh8yrlssf5ppnkvk4m78vmh5r5vqwdcd0gm3lqipw162llz0rai"))))
9575 (build-system ruby-build-system)
9576 (arguments `(#:test-target "spec"
9577 #:phases (modify-phases %standard-phases
9578 (add-after 'unpack 'do-not-use-bundler
9580 (substitute* "spec/spec_helper.rb"
9581 ((".*[Bb]undler.*") ""))
9584 `(("ruby-rspec" ,ruby-rspec)
9585 ("ruby-cane" ,ruby-cane)
9586 ("ruby-morecane" ,ruby-morecane)))
9588 `(("ruby-afm" ,ruby-afm)
9589 ("ruby-ascii85" ,ruby-ascii85)
9590 ("ruby-hashery" ,ruby-hashery)
9591 ("ruby-rc4" ,ruby-rc4)
9592 ("ruby-ttfunk" ,ruby-ttfunk)))
9593 (home-page "https://github.com/yob/pdf-reader")
9594 (synopsis "PDF parser in Ruby")
9595 (description "The PDF::Reader library implements a PDF parser conforming as
9596 much as possible to the PDF specification from Adobe. It provides programmatic
9597 access to the contents of a PDF file with a high degree of flexibility.")
9598 (license license:gpl3+)))
9600 (define-public ruby-pdf-inspector
9601 (let ((revision "1")
9602 (commit "00ee4c92ff917118785ebec188e81effc968abeb"))
9604 (name "ruby-pdf-inspector")
9605 (version (git-version "1.3.0" revision commit))
9609 (url "https://github.com/prawnpdf/pdf-inspector.git")
9611 (file-name (git-file-name name version))
9614 "0h9w81ddd0gvkh5n2cvny9ddb5qiac1si0dhinkk0xxh5382qs0m"))))
9615 (build-system ruby-build-system)
9617 `(#:test-target "spec"
9618 #:phases (modify-phases %standard-phases
9619 (add-before 'build 'drop-signing-key-requirement
9621 (substitute* "pdf-inspector.gemspec"
9622 (("spec.signing_key =.*")
9623 "spec.signing_key = nil"))
9627 (substitute* "pdf-inspector.gemspec"
9628 ((".*rubocop.*") "")
9630 (invoke "rspec"))))))
9632 `(("ruby-rspec" ,ruby-rspec)))
9634 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
9635 (home-page "https://github.com/prawnpdf/pdf-inspector")
9636 (synopsis "Analysis classes for inspecting PDF output")
9637 (description "This library provides a number of PDF::Reader based tools for
9638 use in testing PDF output. Presently, the primary purpose of this tool is to
9639 support the tests found in Prawn, a pure Ruby PDF generation library.")
9640 (license %prawn-project-licenses))))
9642 (define-public ruby-pdf-core
9644 (name "ruby-pdf-core")
9648 (uri (rubygems-uri "pdf-core" version))
9651 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
9652 (build-system ruby-build-system)
9656 (home-page "https://github.com/prawnpdf/pdf-core")
9657 (synopsis "Low level PDF features for Prawn")
9658 (description "This is an experimental gem that extracts low-level PDF
9659 functionality from Prawn.")
9660 (license license:gpl3+)))
9662 (define-public ruby-prawn
9668 (uri (rubygems-uri "prawn" version))
9671 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
9672 (build-system ruby-build-system)
9677 (modify-phases %standard-phases
9678 (add-before 'build 'fix-dependencies
9680 (substitute* "prawn.gemspec"
9681 (("~> 0.7.0") "~> 0.7"))
9684 `(("ruby-pdf-core" ,ruby-pdf-core)
9685 ("ruby-ttfunk" ,ruby-ttfunk)))
9687 `(("bundler" ,bundler)
9688 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
9689 ("ruby-rspec" ,ruby-rspec)
9690 ("ruby-simplecov" ,ruby-simplecov)
9691 ("ruby-yard" ,ruby-yard)))
9692 (home-page "http://prawnpdf.org/api-docs/2.0/")
9693 (synopsis "PDF generation for Ruby")
9694 (description "Prawn is a pure Ruby PDF generation library.")
9695 (license license:gpl3+)))
9697 (define-public ruby-prawn-table
9699 (name "ruby-prawn-table")
9703 (uri (rubygems-uri "prawn-table" version))
9706 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
9707 (build-system ruby-build-system)
9709 `(("ruby-prawn" ,ruby-prawn)
9710 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
9712 `(("bundler" ,bundler)
9713 ("ruby-yard" ,ruby-yard)
9714 ("ruby-mocha" ,ruby-mocha)
9715 ("ruby-coderay" ,ruby-coderay)
9716 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
9717 ("ruby-simplecov" ,ruby-simplecov)
9718 ("ruby-rspec-2" ,ruby-rspec-2)))
9720 '(;; TODO: 1 test fails
9721 ;; Failure/Error: pdf.page_count.should == 1
9723 ;; got: 2 (using ==)
9724 ;; # ./spec/table_spec.rb:1308
9726 ;; 225 examples, 1 failure
9729 (modify-phases %standard-phases
9730 (add-before 'check 'patch-gemspec
9732 (substitute* "prawn-table.gemspec"
9733 ;; Loosen the requirement for pdf-inspector
9734 (("~> 1\\.1\\.0") ">= 0")
9735 ;; Loosen the requirement for pdf-reader
9736 (("~> 1\\.2") ">= 0"))))
9738 (lambda* (#:key tests? #:allow-other-keys)
9742 (home-page "https://github.com/prawnpdf/prawn-table")
9743 (synopsis "Tables support for Prawn")
9744 (description "This gem provides tables support for Prawn.")
9745 (license license:gpl3+)))
9747 (define-public ruby-kramdown
9749 (name "ruby-kramdown")
9753 (uri (rubygems-uri "kramdown" version))
9756 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
9757 (build-system ruby-build-system)
9758 (arguments `(#:tests? #f)); FIXME: some test failures
9760 `(("ruby-prawn" ,ruby-prawn)
9761 ("ruby-prawn-table" ,ruby-prawn-table)))
9762 (home-page "https://kramdown.gettalong.org/")
9763 (synopsis "Markdown parsing and converting library")
9764 (description "Kramdown is a library for parsing and converting a superset
9765 of Markdown. It is completely written in Ruby, supports standard Markdown
9766 (with some minor modifications) and various extensions that have been made
9767 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
9768 (license license:expat)))
9770 (define-public ruby-http-parser.rb
9772 (name "ruby-http-parser.rb")
9777 (uri (rubygems-uri "http_parser.rb" version))
9780 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
9781 (build-system ruby-build-system)
9786 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9787 ("ruby-rspec" ,ruby-rspec)))
9788 (home-page "https://github.com/tmm1/http_parser.rb")
9789 (synopsis "HTTP parser un Ruby")
9790 (description "This gem is a simple callback-based HTTP request/response
9791 parser for writing http servers, clients and proxies.")
9792 (license license:expat)))
9794 (define-public ruby-em-websocket
9796 (name "ruby-em-websocket")
9801 (uri (rubygems-uri "em-websocket" version))
9804 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
9805 (build-system ruby-build-system)
9810 `(("ruby-eventmachine" ,ruby-eventmachine)
9811 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
9813 `(("bundler" ,bundler)
9814 ("ruby-rspec" ,ruby-rspec)))
9815 (home-page "https://github.com/igrigorik/em-websocket")
9816 (synopsis "EventMachine based WebSocket server")
9817 (description "Em-websocket is an EventMachine based WebSocket server
9819 (license license:expat)))
9821 (define-public ruby-rouge
9827 (uri (rubygems-uri "rouge" version))
9830 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
9831 (build-system ruby-build-system)
9832 (arguments `(#:tests? #f)); No rakefile
9833 (home-page "http://rouge.jneen.net/")
9834 (synopsis "Code highlighter")
9835 (description "Rouge is a code highlighter written in Ruby. It supports more
9836 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
9837 is compatible with stylesheets designed for pygments.")
9839 ;; rouge is licensed under expat
9841 ;; pygments is licensed under bsd-2
9844 (define-public ruby-rouge-2
9846 (inherit ruby-rouge)
9850 (uri (rubygems-uri "rouge" version))
9853 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
9855 (define-public ruby-hashie
9857 (name "ruby-hashie")
9861 (uri (rubygems-uri "hashie" version))
9864 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
9865 (build-system ruby-build-system)
9867 `(("bundler" ,bundler)))
9868 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
9869 (home-page "https://github.com/intridea/hashie")
9870 (synopsis "Extensions to Ruby Hashes")
9871 (description "Hashie is a collection of classes and mixins that make Ruby
9872 hashes more powerful.")
9873 (license license:expat)))
9875 (define-public ruby-heredoc-unindent
9877 (name "ruby-heredoc-unindent")
9881 (uri (rubygems-uri "heredoc_unindent" version))
9884 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
9885 (build-system ruby-build-system)
9887 `(("ruby-hoe" ,ruby-hoe)))
9888 (home-page "https://github.com/adrianomitre/heredoc_unindent")
9889 (synopsis "Heredoc indentation cleaner")
9890 (description "This gem removes common margin from indented strings, such
9891 as the ones produced by indented heredocs. In other words, it strips out
9892 leading whitespace chars at the beginning of each line, but only as much as
9893 the line with the smallest margin.
9895 It is acknowledged that many strings defined by heredocs are just code and
9896 fact is that most parsers are insensitive to indentation. If, however, the
9897 strings are to be used otherwise, be it for printing or testing, the extra
9898 indentation will probably be an issue and hence this gem.")
9899 (license license:expat)))
9901 (define-public ruby-safe-yaml
9903 (name "ruby-safe-yaml")
9909 (url "https://github.com/dtao/safe_yaml")
9911 (file-name (git-file-name name version))
9914 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
9915 (build-system ruby-build-system)
9917 `(("ruby-rspec" ,ruby-rspec)
9918 ("ruby-hashie" ,ruby-hashie)
9919 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
9921 '(#:test-target "spec"
9923 (modify-phases %standard-phases
9924 (add-before 'check 'set-TZ
9926 ;; This test is dependent on the timezone
9927 ;; spec/transform/to_date_spec.rb:35
9928 ;; # SafeYAML::Transform::ToDate converts times to the local
9930 (setenv "TZ" "UTC-11")
9932 (home-page "https://github.com/dtao/safe_yaml")
9933 (synopsis "YAML parser")
9934 (description "The SafeYAML gem provides an alternative implementation of
9935 YAML.load suitable for accepting user input in Ruby applications.")
9936 (license license:expat)))
9938 (define-public ruby-mercenary
9940 (name "ruby-mercenary")
9944 (uri (rubygems-uri "mercenary" version))
9947 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
9948 (build-system ruby-build-system)
9949 (arguments `(#:test-target "spec"))
9951 `(("bundler" ,bundler)))
9952 (home-page "https://github.com/jekyll/mercenary")
9953 (synopsis "Command-line apps library in Ruby")
9954 (description "Mercenary is a lightweight and flexible library for writing
9955 command-line apps in Ruby.")
9956 (license license:expat)))
9958 (define-public ruby-liquid
9960 (name "ruby-liquid")
9964 (uri (rubygems-uri "liquid" version))
9967 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
9968 (build-system ruby-build-system)
9969 (arguments `(#:tests? #f)); No rakefile
9970 (home-page "https://shopify.github.io/liquid/")
9971 (synopsis "Template language")
9972 (description "Liquid is a template language written in Ruby. It is used
9973 to load dynamic content on storefronts.")
9974 (license license:expat)))
9976 (define-public ruby-forwardable-extended
9978 (name "ruby-forwardable-extended")
9982 (uri (rubygems-uri "forwardable-extended" version))
9985 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
9986 (build-system ruby-build-system)
9987 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
9988 (home-page "https://github.com/envygeeks/forwardable-extended")
9989 (synopsis "Delegation to hashes and instance variables in Forwardable")
9990 (description "Forwardable Extended provides more @code{Forwardable}
9991 methods for your source as @code{Forwardable::Extended}.")
9992 (license license:expat)))
9994 (define-public ruby-pathutil
9996 (name "ruby-pathutil")
10000 (uri (rubygems-uri "pathutil" version))
10003 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
10004 (build-system ruby-build-system)
10006 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
10008 `(("bundler" ,bundler)
10009 ("ruby-rspec" ,ruby-rspec)))
10010 ;; Fails with: cannot load such file --
10011 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
10012 (arguments `(#:tests? #f))
10013 (home-page "https://github.com/envygeeks/pathutil")
10014 (synopsis "Extended implementation of Pathname")
10015 (description "Pathutil tries to be a faster pure Ruby implementation of
10017 (license license:expat)))
10019 (define-public jekyll
10025 (uri (rubygems-uri "jekyll" version))
10028 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
10029 (build-system ruby-build-system)
10031 ;; No rakefile, but a test subdirectory.
10034 (modify-phases %standard-phases
10035 (add-before 'build 'fix-i18n
10037 (substitute* ".gemspec"
10038 (("~> 0.7") ">= 0.7"))
10041 `(("ruby-addressable" ,ruby-addressable)
10042 ("ruby-colorator" ,ruby-colorator)
10043 ("ruby-em-websocket" ,ruby-em-websocket)
10044 ("ruby-i18n" ,ruby-i18n)
10045 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
10046 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
10047 ("ruby-kramdown" ,ruby-kramdown)
10048 ("ruby-liquid" ,ruby-liquid)
10049 ("ruby-mercenary" ,ruby-mercenary)
10050 ("ruby-pathutil" ,ruby-pathutil)
10051 ("ruby-rouge" ,ruby-rouge-2)
10052 ("ruby-safe-yaml" ,ruby-safe-yaml)))
10053 (home-page "https://jekyllrb.com/")
10054 (synopsis "Static site generator")
10055 (description "Jekyll is a simple, blog aware, static site generator.")
10056 (license license:expat)))
10058 (define-public ruby-jekyll-paginate-v2
10060 (name "ruby-jekyll-paginate-v2")
10064 (uri (rubygems-uri "jekyll-paginate-v2" version))
10067 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
10068 (build-system ruby-build-system)
10070 `(("jekyll" ,jekyll)))
10071 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
10072 (synopsis "Pagination Generator for Jekyll 3")
10073 (description "The Pagination Generator forms the core of the pagination
10074 logic in Jekyll. It calculates and generates the pagination pages.")
10075 (license license:expat)))
10077 (define-public ruby-faraday
10079 (name "ruby-faraday")
10084 (uri (rubygems-uri "faraday" version))
10087 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
10088 (build-system ruby-build-system)
10092 `(("ruby-multipart-post" ,ruby-multipart-post)))
10093 (synopsis "Ruby HTTP/REST API client library")
10095 "Faraday is a HTTP/REST API client library which provides a common
10096 interface over different adapters.")
10097 (home-page "https://github.com/lostisland/faraday")
10098 (license license:expat)))
10100 (define-public ruby-nio4r
10102 (name "ruby-nio4r")
10107 (uri (rubygems-uri "nio4r" version))
10110 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
10111 (build-system ruby-build-system)
10114 (modify-phases %standard-phases
10115 (add-after 'unpack 'remove-unnecessary-dependencies
10117 (substitute* "spec/spec_helper.rb"
10118 ;; Coveralls is for uploading test coverage information to an
10119 ;; online service, and thus unnecessary for building the Guix
10121 (("require \"coveralls\"") "")
10122 (("Coveralls\\.wear!") "")
10123 ;; Remove rspec/retry as we are not retrying the tests
10124 (("require \"rspec/retry\"") "")
10125 (("config\\.display_try_failure_messages = true") "")
10126 (("config\\.verbose_retry = true") ""))
10128 (add-before 'check 'compile
10130 (invoke "rake" "compile")
10133 (lambda* (#:key tests? #:allow-other-keys)
10138 `(("bundler" ,bundler)
10139 ("ruby-rake-compiler" ,ruby-rake-compiler)
10140 ("ruby-rspec" ,ruby-rspec)
10141 ("ruby-rubocop" ,ruby-rubocop)))
10142 (synopsis "New I/O for Ruby")
10144 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
10145 for scalable network clients and servers.")
10146 (home-page "https://github.com/socketry/nio4r")
10147 (license license:expat)))
10149 (define-public ruby-globalid
10151 (name "ruby-globalid")
10156 (uri (rubygems-uri "globalid" version))
10159 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
10160 (build-system ruby-build-system)
10162 '(;; No included tests
10165 `(("ruby-activesupport" ,ruby-activesupport)))
10166 (synopsis "Generate URIs idenfitying model instances in Ruby")
10168 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
10169 uniquely identify it.")
10170 (home-page "https://rubyonrails.org/")
10171 (license license:expat)))
10173 (define-public ruby-sprockets
10175 (name "ruby-sprockets")
10180 (uri (rubygems-uri "sprockets" version))
10183 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
10184 (build-system ruby-build-system)
10186 '(;; No included tests
10189 `(("ruby-concurrent" ,ruby-concurrent)
10190 ("ruby-rack" ,ruby-rack)))
10191 (synopsis "Sprockets is a Rack-based asset packaging system")
10193 "Sprockets is a Rack-based asset packaging system that concatenates and
10194 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
10195 (home-page "https://github.com/rails/sprockets")
10196 (license license:expat)))
10198 (define-public ruby-mustermann
10200 (name "ruby-mustermann")
10205 (uri (rubygems-uri "mustermann" version))
10208 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
10209 (build-system ruby-build-system)
10213 (synopsis "Library implementing patterns that behave like regular expressions")
10214 (description "Given a string pattern, Mustermann will turn it into an
10215 object that behaves like a regular expression and has comparable performance
10217 (home-page "https://github.com/sinatra/mustermann")
10218 (license license:expat)))
10220 (define-public ruby-htmlentities
10222 (name "ruby-htmlentities")
10227 (uri (rubygems-uri "htmlentities" version))
10230 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
10231 (build-system ruby-build-system)
10234 (modify-phases %standard-phases
10237 (map (lambda (file)
10238 (invoke "ruby" "-Itest" file))
10239 (find-files "./test" ".*_test\\.rb")))))))
10240 (synopsis "Encode and decode (X)HTML entities")
10242 "This package provides a module for encoding and decoding (X)HTML
10244 (home-page "https://github.com/threedaymonk/htmlentities")
10245 (license license:expat)))
10247 (define-public ruby-sinatra
10249 (name "ruby-sinatra")
10250 (version "2.0.8.1")
10254 (uri (rubygems-uri "sinatra" version))
10257 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
10258 (build-system ruby-build-system)
10261 (modify-phases %standard-phases
10262 ;; See: https://github.com/sinatra/sinatra/issues/1578.
10263 (add-after 'extract-gemspec 'fix-slow-doc-generation
10265 (substitute* "sinatra.gemspec"
10266 (("\"README.rdoc\"\\.freeze," all)
10267 (string-append all " \"--exclude=.*\\.md\".freeze,")))
10270 `(("ruby-mustermann" ,ruby-mustermann)
10271 ("ruby-rack" ,ruby-rack)
10272 ("ruby-rack-protection" ,ruby-rack-protection)
10273 ("ruby-tilt" ,ruby-tilt)))
10274 (synopsis "DSL for quick web applications creation in Ruby")
10276 "Sinatra is a DSL for quickly creating web applications in Ruby with
10278 (home-page "http://sinatrarb.com/")
10279 (license license:expat)))
10281 (define-public ruby-thin
10288 (uri (rubygems-uri "thin" version))
10291 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
10292 (build-system ruby-build-system)
10297 `(("ruby-daemons" ,ruby-daemons)
10298 ("ruby-eventmachine" ,ruby-eventmachine)
10299 ("ruby-rack" ,ruby-rack)))
10300 (synopsis "Thin and fast web server for Ruby")
10301 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
10303 @item the Mongrel parser,
10304 @item Event Machine, a network I/O library with high scalability, performance
10306 @item Rack, a minimal interface between webservers and Ruby frameworks.
10308 (home-page "https://github.com/macournoyer/thin")
10309 (license license:ruby)))
10311 (define-public ruby-skinny
10313 (name "ruby-skinny")
10318 (uri (rubygems-uri "skinny" version))
10321 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
10322 (build-system ruby-build-system)
10324 '(#:tests? #f ; No included tests
10326 (modify-phases %standard-phases
10327 (add-before 'build 'patch-gemspec
10329 (substitute* ".gemspec"
10330 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
10331 "<eventmachine>, [\">= 1.0.0\"")
10332 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
10335 `(("ruby-eventmachine" ,ruby-eventmachine)
10336 ("ruby-thin" ,ruby-thin)))
10337 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
10338 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
10339 the Thin library.")
10340 (home-page "https://github.com/sj26/skinny")
10341 (license license:expat)))
10343 (define-public ruby-sys-filesystem
10345 (name "ruby-sys-filesystem")
10349 (uri (rubygems-uri "sys-filesystem" version))
10352 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
10353 (build-system ruby-build-system)
10355 '(#:phases (modify-phases %standard-phases
10356 (add-before 'check 'set-HOME
10358 ;; Some tests attempt to stat $HOME. Let them.
10359 (setenv "HOME" "/tmp")
10362 `(("ruby-ffi" ,ruby-ffi)))
10364 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
10365 (synopsis "Gather file system information")
10367 "The @code{sys-filesystem} library provides a cross-platform interface
10368 for gathering file system information, such as disk space and mount points.")
10369 (home-page "https://github.com/djberg96/sys-filesystem")
10370 (license license:asl2.0)))
10372 (define-public mailcatcher
10374 (name "mailcatcher")
10379 (uri (rubygems-uri "mailcatcher" version))
10382 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
10383 (build-system ruby-build-system)
10385 ;; Tests require web/assets which is not included in the output. We
10386 ;; might be able to fix this by adding the Git repository to the GEM_PATH
10387 ;; of the tests. See ruby-mysql2.
10390 (modify-phases %standard-phases
10391 (add-before 'build 'patch-gemspec
10393 (substitute* ".gemspec"
10394 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
10395 "<eventmachine>, [\">= 1.0.9.1")
10396 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
10397 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
10398 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
10400 (add-before 'build 'loosen-dependency-contraint
10402 (substitute* "lib/mail_catcher.rb"
10403 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
10404 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
10405 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
10406 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
10409 `(("ruby-eventmachine" ,ruby-eventmachine)
10410 ("ruby-mail" ,ruby-mail)
10411 ("ruby-rack" ,ruby-rack)
10412 ("ruby-sinatra" ,ruby-sinatra)
10413 ("ruby-skinny" ,ruby-skinny)
10414 ("ruby-sqlite3" ,ruby-sqlite3)
10415 ("ruby-thin" ,ruby-thin)))
10416 (synopsis "SMTP server which catches messages to display them a browser")
10418 "MailCatcher runs a super simple SMTP server which catches any message
10419 sent to it to display in a web interface. Run mailcatcher, set your favourite
10420 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
10421 then check out http://127.0.0.1:1080 to see the mail.")
10422 (home-page "https://mailcatcher.me")
10423 (license license:expat)))
10425 (define-public ruby-backport
10427 (name "ruby-backport")
10431 ;; The gem does not include test code, so fetch from the Git repository.
10433 (uri (git-reference
10434 (url "https://github.com/castwide/backport")
10435 (commit (string-append "v" version))))
10436 (file-name (git-file-name name version))
10438 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
10439 (build-system ruby-build-system)
10441 `(#:test-target "spec"))
10443 `(("bundler" ,bundler)
10444 ("ruby-rspec" ,ruby-rspec)))
10446 `(("ruby-simplecov" ,ruby-simplecov)))
10447 (synopsis "Pure Ruby library for event-driven IO")
10449 "This package provides a pure Ruby library for event-driven IO.")
10450 (home-page "https://github.com/castwide/backport")
10451 (license license:expat)))
10453 (define-public ruby-json-schema
10455 (name "ruby-json-schema")
10460 (uri (rubygems-uri "json-schema" version))
10463 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
10464 (build-system ruby-build-system)
10466 `(#:tests? #f ; no tests
10468 (modify-phases %standard-phases
10471 (invoke "gem" "build" ".gemspec"))))))
10473 `(("ruby-addressable" ,ruby-addressable)))
10474 (synopsis "Ruby JSON Schema Validator")
10475 (description "This library provides Ruby with an interface for validating
10476 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
10477 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
10478 is also included.")
10479 (home-page "https://github.com/ruby-json-schema/json-schema")
10480 (license license:expat)))
10482 (define-public swagger-diff
10484 (name "swagger-diff")
10489 (uri (rubygems-uri "swagger-diff" version))
10492 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
10493 (build-system ruby-build-system)
10495 `(#:test-target "spec"
10497 (modify-phases %standard-phases
10498 ;; Don't run or require rubocop, the code linting tool, as this is a
10499 ;; bit unnecessary.
10500 (add-after 'unpack 'dont-run-rubocop
10502 (substitute* "Rakefile"
10503 ((".*rubocop.*") "")
10504 ((".*RuboCop.*") ""))
10507 `(("ruby-json-schema" ,ruby-json-schema)))
10509 `(("bundler" ,bundler)
10510 ("ruby-rspec-core" ,ruby-rspec-core)
10511 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
10513 "Compare Open API Initiative specification files")
10515 "Swagger::Diff is a utility for comparing two different Open API
10516 Initiative (OAI) specifications (formerly known as Swagger specifications).
10517 It is intended to determine whether a newer API specification is
10518 backwards-compatible with an older API specification.")
10519 (home-page "https://github.com/civisanalytics/swagger-diff")
10520 (license license:bsd-3)))
10522 (define-public ruby-reverse-markdown
10524 (name "ruby-reverse-markdown")
10529 (uri (rubygems-uri "reverse_markdown" version))
10532 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
10533 (build-system ruby-build-system)
10535 `(("ruby-nokogiri" ,ruby-nokogiri)))
10537 `(("bundler" ,bundler)
10538 ("ruby-rspec" ,ruby-rspec)
10539 ("ruby-kramdown" ,ruby-kramdown)
10540 ("ruby-simplecov" ,ruby-simplecov)))
10543 (modify-phases %standard-phases
10545 (lambda* (#:key tests? #:allow-other-keys)
10549 (synopsis "Convert HTML into Markdown")
10551 "This Ruby module allows you to map simple HTML back into
10552 Markdown---e.g., if you want to import existing HTML data in your
10554 (home-page "https://github.com/xijo/reverse_markdown")
10555 (license license:wtfpl2)))
10557 (define-public ruby-solargraph
10559 (name "ruby-solargraph")
10564 (uri (rubygems-uri "solargraph" version))
10567 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
10568 (build-system ruby-build-system)
10570 `(("ruby-backport" ,ruby-backport)
10571 ("bundler" ,bundler)
10572 ("ruby-htmlentities" ,ruby-htmlentities)
10573 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
10574 ("ruby-maruku" ,ruby-maruku)
10575 ("ruby-nokogiri" ,ruby-nokogiri)
10576 ("ruby-parser" ,ruby-parser)
10577 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
10578 ("ruby-rubocop" ,ruby-rubocop)
10579 ("ruby-thor" ,ruby-thor)
10580 ("ruby-tilt" ,ruby-tilt)
10581 ("ruby-yard" ,ruby-yard)))
10583 `(("ruby-rspec" ,ruby-rspec)
10584 ("ruby-pry" ,ruby-pry)
10585 ("ruby-simplecov" ,ruby-simplecov)
10586 ("ruby-webmock" ,ruby-webmock-2)))
10587 ;; FIXME: can't figure out how to run the tests properly:
10589 ;; An error occurred while loading spec_helper.
10590 ;; Failure/Error: return gem_original_require(path)
10592 ;; cannot load such file -- spec_helper
10596 (modify-phases %standard-phases
10598 (lambda* (#:key tests? #:allow-other-keys)
10603 "IDE tools for code completion, inline documentation, and static analysis")
10605 "Solargraph provides a comprehensive suite of tools for Ruby
10606 programming: intellisense, diagnostics, inline documentation, and type
10608 (home-page "https://solargraph.org/")
10609 (license license:expat)))
10611 (define-public ruby-wayback-machine-downloader
10613 (name "ruby-wayback-machine-downloader")
10619 "wayback_machine_downloader"
10623 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
10624 (build-system ruby-build-system)
10626 '(#:tests? #f)) ; no tests
10627 (synopsis "Download archived websites from the Wayback Machine")
10629 "Wayback Machine Downloader is a command line tool for downloading
10630 websites from the Internet Archive's Wayback Machine (archive.org).
10631 It allows fine grained control over what to download by specifying
10632 which snapshots to consider and what files to include.")
10634 "https://github.com/hartator/wayback-machine-downloader")
10635 (license license:expat)))
10637 (define-public ruby-wwtd
10641 (home-page "https://github.com/grosser/wwtd")
10644 (uri (git-reference
10646 (commit (string-append "v" version))))
10647 (file-name (git-file-name name version))
10650 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
10651 (modules '((guix build utils)))
10654 ;; Remove bundled library.
10655 (delete-file "spec/rake-12.3.0.gem")
10657 (build-system ruby-build-system)
10659 '(;; XXX: Tests need multiple versions of ruby, wants to run
10660 ;; `bundle install`, etc.
10662 #:phases (modify-phases %standard-phases
10663 (replace 'replace-git-ls-files
10665 (substitute* "wwtd.gemspec"
10666 (("git ls-files lib/ bin/`")
10667 "find lib/ bin/ -type f |sort`"))
10669 (add-before 'check 'remove-version-constraints
10671 (delete-file "Gemfile.lock")
10674 (lambda* (#:key tests? #:allow-other-keys)
10676 (invoke "rspec" "spec/")
10677 (format #t "test suite not run~%"))
10680 `(("ruby-bump" ,ruby-bump)
10681 ("ruby-rspec" ,ruby-rspec)))
10682 (synopsis "Run @file{.travis.yml} files locally")
10684 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
10685 defined in @file{.travis.yml} on your local machine, using @code{rvm},
10686 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
10687 (license license:expat)))