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)))
89 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
90 (version-major+minor version)
91 "/ruby-" version ".tar.xz"))
94 "0qhsw2mr04f3lqinkh557msr35pb5rdaqy4vdxcj91flgxqxmmnm"))
95 (modules '((guix build utils)))
97 ;; Remove bundled libffi
98 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
100 (build-system gnu-build-system)
102 `(#:test-target "test"
103 #:configure-flags '("--enable-shared") ; dynamic linking
105 (modify-phases %standard-phases
106 (add-before 'configure 'replace-bin-sh-and-remove-libffi
108 (substitute* '("Makefile.in"
113 "test/rubygems/test_gem_ext_configure_builder.rb"
114 "test/rdoc/test_rdoc_parser.rb"
115 "test/ruby/test_rubyoptions.rb"
116 "test/ruby/test_process.rb"
117 "test/ruby/test_system.rb"
119 (("/bin/sh") (which "sh")))
122 `(("readline" ,readline)
129 (list (search-path-specification
130 (variable "GEM_PATH")
131 (files (list (string-append "lib/ruby/vendor_ruby"))))))
132 (synopsis "Programming language interpreter")
133 (description "Ruby is a dynamic object-oriented programming language with
134 a focus on simplicity and productivity.")
135 (home-page "https://www.ruby-lang.org")
136 (license license:ruby)))
138 (define-public ruby-2.7
145 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
146 (version-major+minor version)
147 "/ruby-" version ".tar.gz"))
150 "0674x98f542y02r7n2yv2qhmh97blqhi2mvh2dn5f000vlxlh66l"))
151 (modules '((guix build utils)))
153 ;; Remove bundled libffi
154 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
157 `(#:test-target "test"
158 #:configure-flags '("--enable-shared") ; dynamic linking
160 (modify-phases %standard-phases
161 (add-before 'configure 'replace-bin-sh-and-remove-libffi
163 (substitute* '("configure.ac"
164 "template/Makefile.in"
165 "lib/rubygems/installer.rb"
170 "test/rubygems/test_gem_ext_configure_builder.rb"
171 "test/rdoc/test_rdoc_parser.rb"
172 "test/ruby/test_rubyoptions.rb"
173 "test/ruby/test_process.rb"
174 "test/ruby/test_system.rb"
176 (("/bin/sh") (which "sh")))
179 `(("autoconf" ,autoconf)))))
181 (define-public ruby-2.5
188 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
189 (version-major+minor version)
190 "/ruby-" version ".tar.xz"))
193 "0vad5ah1lrdhxsyqr5iqc8c7r7qczpmm76cz8rsf4crimpzv5483"))
194 (modules '((guix build utils)))
196 ;; Remove bundled libffi
197 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
200 (define-public ruby-2.4
207 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
208 (version-major+minor version)
209 "/ruby-" version ".tar.xz"))
212 "1prhqlgik1zmw9lakl6hkriqslspw48pvhxff17h7ns42p8qwrnm"))
213 (modules '((guix build utils)))
215 ;; Remove bundled libffi
216 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
227 (url "https://github.com/mruby/mruby")
229 (file-name (git-file-name name version))
232 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
233 (build-system gnu-build-system)
235 `(#:test-target "test"
237 (modify-phases %standard-phases
239 (add-after 'unpack 'enable-verbose-tests
241 (substitute* "Makefile"
242 (("ruby ./minirake" m)
243 (string-append m " --verbose")))
245 (add-after 'unpack 'disable-broken-tests
247 (substitute* "mrbgems/mruby-io/test/io.rb"
248 (("assert\\('IO.popen.+$" m)
249 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
250 (("assert\\('IO#isatty.+$" m)
251 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
252 ;; This one is really weird. The *expected* output is all wrong.
253 (("assert\\('`cmd`.*" m)
254 (string-append m "skip \"Disable for Guix\"\n"))
256 (string-append (which "echo") " foo")))
258 ;; There is no install target
260 (lambda* (#:key outputs #:allow-other-keys)
261 (let* ((out (assoc-ref outputs "out"))
262 (bin (string-append out "/bin"))
263 (lib (string-append out "/lib")))
265 (copy-recursively "build/host/bin" bin)
267 (copy-recursively "build/host/lib" lib))
272 (home-page "https://github.com/mruby/mruby")
273 (synopsis "Lightweight Ruby")
274 (description "mruby is the lightweight implementation of the Ruby
275 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
276 embedded within your application.")
277 (license license:expat)))
279 (define-public ruby-commander
281 (name "ruby-commander")
286 (uri (rubygems-uri "commander" version))
289 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
290 (build-system ruby-build-system)
292 `(#:test-target "spec"
294 (modify-phases %standard-phases
295 ;; Don't run or require rubocop, the code linting tool, as this is a
297 (add-after 'unpack 'dont-run-rubocop
299 (substitute* "Rakefile"
301 ((".*RuboCop.*") ""))
304 `(("ruby-highline" ,ruby-highline)))
306 `(("bundler" ,bundler)
307 ("ruby-rspec-core" ,ruby-rspec-core)
308 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
309 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
310 ("ruby-simplecov" ,ruby-simplecov)))
311 (home-page "https://github.com/commander-rb/commander")
312 (synopsis "Library for building Ruby command-line executables")
314 "Commander aims to be a complete solution for Ruby command-line
315 executables. Commander bridges the gap between other terminal related
316 libraries (OptionParser, HighLine), while providing many new features, and an
318 (license license:expat)))
320 (define-public ruby-highline
322 (name "ruby-highline")
327 (uri (rubygems-uri "highline" version))
330 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
331 (build-system ruby-build-system)
333 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
335 `(("bundler" ,bundler)
336 ("ruby-code-statistics" ,ruby-code-statistics)))
338 "HighLine helps you build command-line interfaces")
340 "HighLine provides a high-level IO library that provides validation,
341 type conversion, and more for command-line interfaces. HighLine also includes
342 a menu system for providing multiple options to the user.")
343 (home-page "https://github.com/JEG2/highline")
344 (license (list license:gpl2 license:ruby))))
346 (define-public ruby-hoe
352 (uri (rubygems-uri "hoe" version))
355 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
356 (build-system ruby-build-system)
359 (modify-phases %standard-phases
360 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
361 ;; variable is set, so unset it for the duration of the tests.
363 ;; TestHoe#test_possibly_better
364 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
365 ;; Expected: 2019-11-12 00:00:00 UTC
366 ;; Actual: 1970-01-01 00:00:00 UTC
367 (add-before 'check 'unset-SOURCE-DATE-EPOCH
369 (unsetenv "SOURCE_DATE_EPOCH")
371 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
373 (setenv "SOURCE_DATE_EPOCH" "1")
375 (synopsis "Ruby project management helper")
377 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
378 maintain, and release projects and includes a dynamic plug-in system allowing
379 for easy extensibility. Hoe ships with plug-ins for all the usual project
380 tasks including rdoc generation, testing, packaging, deployment, and
382 (home-page "https://www.zenspider.com/projects/hoe.html")
383 (license license:expat)))
385 (define-public ruby-rake-compiler
387 (name "ruby-rake-compiler")
391 (uri (rubygems-uri "rake-compiler" version))
394 "0l4hg21v0phfrfsc2hilgmwvn2imxr0byqh8dv16bya1s5d3km0q"))))
395 (build-system ruby-build-system)
397 '(#:tests? #f)) ; needs cucumber
398 (synopsis "Building and packaging helper for Ruby native extensions")
399 (description "Rake-compiler provides a framework for building and
400 packaging native C and Java extensions in Ruby.")
401 (home-page "https://github.com/rake-compiler/rake-compiler")
402 (license license:expat)))
404 (define-public ruby-rsync
411 (uri (rubygems-uri "rsync" version))
414 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
415 (build-system ruby-build-system)
417 '(#:test-target "spec"
419 (modify-phases %standard-phases
420 (add-after 'unpack 'remove-coveralls-requirement
422 (substitute* "spec/spec_helper.rb"
423 (("require 'coveralls'") "")
424 (("Coveralls.wear!") ""))
427 `(("bundler" ,bundler)
429 ("ruby-rspec-core" ,ruby-rspec-core)
430 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
431 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
432 (home-page "https://github.com/jbussdieker/ruby-rsync")
433 (synopsis "Ruby wrapper around rsync")
435 "Ruby Rsync is a Ruby library that can synchronize files between remote
436 hosts by wrapping the @file{rsync} binary.")
437 (license license:expat)))
439 (define-public ruby-i18n
445 (uri (rubygems-uri "i18n" version))
448 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
449 (build-system ruby-build-system)
451 '(#:tests? #f)) ; no tests
452 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
453 (synopsis "Internationalization library for Ruby")
454 (description "Ruby i18n is an internationalization and localization
455 solution for Ruby programs. It features translation and localization,
456 interpolation of values to translations, pluralization, customizable
457 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
458 translation data, custom key/scope separator, custom exception handlers, and
459 an extensible architecture with a swappable backend.")
460 (home-page "https://github.com/ruby-i18n/i18n")
461 (license license:expat)))
463 (define-public ruby-iruby
470 (uri (rubygems-uri "iruby" version))
473 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
474 (build-system ruby-build-system)
476 ;; TODO: Tests currently fail.
478 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
481 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
484 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
487 (modify-phases %standard-phases
488 (add-after 'unpack 'patch-ipython
489 (lambda* (#:key inputs #:allow-other-keys)
490 (substitute* "lib/iruby/command.rb"
494 (assoc-ref inputs "python-ipython")
496 (("Kernel\\.exec\\('")
499 (assoc-ref inputs "python-ipython")
503 `(("python-ipython" ,python-ipython)))
505 `(("ruby-bond" ,ruby-bond)
506 ("ruby-data_uri" ,ruby-data_uri)
507 ("ruby-mimemagic" ,ruby-mimemagic)
508 ("ruby-multi-json" ,ruby-multi-json)
509 ("ruby-cztop" ,ruby-cztop)
511 ("ruby-pry" ,ruby-pry)))
512 (synopsis "Ruby kernel for Jupyter/IPython")
514 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
516 (home-page "https://github.com/SciRuby/iruby")
517 (license license:expat)))
519 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
520 ;; dependencies use RSpec for their test suites! To avoid these circular
521 ;; dependencies, we disable tests for all of the RSpec-related packages.
522 (define-public ruby-rspec-support
524 (name "ruby-rspec-support")
528 (uri (rubygems-uri "rspec-support" version))
531 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
532 (build-system ruby-build-system)
534 '(#:tests? #f)) ; avoid dependency cycles
535 (synopsis "RSpec support library")
536 (description "Support utilities for RSpec gems.")
537 (home-page "https://github.com/rspec/rspec-support")
538 (license license:expat)))
540 (define-public ruby-rspec-core
542 (name "ruby-rspec-core")
546 (uri (rubygems-uri "rspec-core" version))
549 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
550 (build-system ruby-build-system)
552 '(#:tests? #f)) ; avoid dependency cycles
554 `(("ruby-rspec-support" ,ruby-rspec-support)))
555 (synopsis "RSpec core library")
556 (description "Rspec-core provides the RSpec test runner and example
558 (home-page "https://github.com/rspec/rspec-core")
559 (license license:expat)))
561 (define-public ruby-rspec-core-2
562 (package (inherit ruby-rspec-core)
566 (uri (rubygems-uri "rspec-core" version))
569 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
570 (propagated-inputs `())))
572 (define-public ruby-diff-lcs
574 (name "ruby-diff-lcs")
578 (uri (rubygems-uri "diff-lcs" version))
581 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
582 (build-system ruby-build-system)
584 '(#:tests? #f)) ; avoid dependency cycles
585 (synopsis "Compute the difference between two Enumerable sequences")
586 (description "Diff::LCS computes the difference between two Enumerable
587 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
588 It includes utilities to create a simple HTML diff output format and a
589 standard diff-like tool.")
590 (home-page "https://github.com/halostatue/diff-lcs")
591 (license license:expat)))
593 (define-public ruby-rspec-expectations
595 (name "ruby-rspec-expectations")
599 (uri (rubygems-uri "rspec-expectations" version))
602 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
603 (build-system ruby-build-system)
605 '(#:tests? #f)) ; avoid dependency cycles
607 `(("ruby-rspec-support" ,ruby-rspec-support)
608 ("ruby-diff-lcs" ,ruby-diff-lcs)))
609 (synopsis "RSpec expectations library")
610 (description "Rspec-expectations provides a simple API to express expected
611 outcomes of a code example.")
612 (home-page "https://github.com/rspec/rspec-expectations")
613 (license license:expat)))
615 (define-public ruby-rspec-expectations-2
616 (package (inherit ruby-rspec-expectations)
620 (uri (rubygems-uri "rspec-expectations" version))
623 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
625 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
627 (define-public ruby-rspec-its
629 (name "ruby-rspec-its")
635 (url "https://github.com/rspec/rspec-its")
636 (commit (string-append "v" version))))
637 (file-name (git-file-name name version))
640 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
641 (build-system ruby-build-system)
643 `(#:test-target "spec"
645 (modify-phases %standard-phases
646 (add-after 'unpack 'dont-install-gems-from-gemfile
648 (substitute* "Gemfile"
649 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
652 (add-before 'build 'loosen-ffi-requirement
654 ;; Accept any version of ruby-ffi.
655 (substitute* "Gemfile"
656 ((" gem 'ffi', '~> 1\\.9\\.25'")
659 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
661 (substitute* "rspec-its.gemspec"
662 (("rake.*") "rake'\n")
663 (("spec.add_development_dependency 'cucumber'.*")
664 "spec.add_development_dependency 'cucumber'\n")
665 (("bundler.*") "bundler'\n")
666 (("\"aruba.*") "'aruba'\n"))
669 `(("ruby-rspec-core" ,ruby-rspec-core)
670 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
672 `(("bundler" ,bundler)
673 ("ruby-cucumber" ,ruby-cucumber)
674 ("ruby-ffi" ,ruby-ffi)
675 ("ruby-aruba" ,ruby-aruba)))
676 (synopsis "RSpec extension that provides the @code{its} method")
678 "RSpec::Its provides the its method as a short-hand to specify the expected
679 value of an attribute. For example, one can use @code{its(:size)\\{should
681 (home-page "https://github.com/rspec/rspec-its")
682 (license license:expat)))
684 ;;; This variant is used to break a cycle with ruby-protobuf.
685 (define-public ruby-rspec-its-minimal
688 (inherit ruby-rspec-its)
690 (substitute-keyword-arguments (package-arguments ruby-rspec-its)
691 ((#:tests? _ #f) #f)))
692 (native-inputs '()))))
694 (define-public ruby-rspec-mocks
696 (name "ruby-rspec-mocks")
700 (uri (rubygems-uri "rspec-mocks" version))
703 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
704 (build-system ruby-build-system)
706 '(#:tests? #f)) ; avoid dependency cycles
708 `(("ruby-rspec-support" ,ruby-rspec-support)
709 ("ruby-diff-lcs" ,ruby-diff-lcs)))
710 (synopsis "RSpec stubbing and mocking library")
711 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
712 support for stubbing and mocking.")
713 (home-page "https://github.com/rspec/rspec-mocks")
714 (license license:expat)))
716 (define-public ruby-rspec-mocks-2
717 (package (inherit ruby-rspec-mocks)
721 (uri (rubygems-uri "rspec-mocks" version))
724 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
726 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
728 (define-public ruby-rspec-rerun
730 (name "ruby-rspec-rerun")
735 (uri (rubygems-uri "rspec-rerun" version))
738 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
739 (build-system ruby-build-system)
741 '(;; No included tests
743 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
744 (synopsis "Track failed RSpec tests to re-run them")
746 "This package provides an automated way to track, and then re-run failed
748 (home-page "https://github.com/dblock/rspec-rerun")
749 (license license:expat)))
751 (define-public ruby-rspec-wait
753 (name "ruby-rspec-wait")
758 (uri (rubygems-uri "rspec-wait" version))
761 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
762 (build-system ruby-build-system)
765 (modify-phases %standard-phases
768 (invoke "rake" "spec"))))))
770 `(("bundler" ,bundler)))
772 `(("ruby-rspec" ,ruby-rspec)))
773 (home-page "https://github.com/laserlemon/rspec-wait")
774 (synopsis "Wait for conditions in RSpec")
776 "RSpec::Wait strives to make it easier to test asynchronous or slow
778 (license license:expat)))
780 (define-public ruby-rspec
786 (uri (rubygems-uri "rspec" version))
789 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
790 (build-system ruby-build-system)
792 '(#:tests? #f)) ; avoid dependency cycles
794 `(("ruby-rspec-core" ,ruby-rspec-core)
795 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
796 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
797 (synopsis "Behavior-driven development framework for Ruby")
798 (description "RSpec is a behavior-driven development (BDD) framework for
799 Ruby. This meta-package includes the RSpec test runner, along with the
800 expectations and mocks frameworks.")
801 (home-page "https://rspec.info/")
802 (license license:expat)))
804 (define-public ruby-rspec-2
805 (package (inherit ruby-rspec)
809 (uri (rubygems-uri "rspec" version))
812 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
814 `(("ruby-rspec-core" ,ruby-rspec-core-2)
815 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
816 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
818 ;; Bundler is yet another source of circular dependencies, so we must disable
819 ;; its test suite as well.
820 (define-public bundler
826 (uri (rubygems-uri "bundler" version))
829 "12glbb1357x91fvd004jgkw7ihlkpc9dwr349pd7j83isqhls0ah"))))
830 (build-system ruby-build-system)
832 '(#:tests? #f)) ; avoid dependency cycles
833 (synopsis "Ruby gem bundler")
834 (description "Bundler automatically downloads and installs a list of gems
835 specified in a \"Gemfile\", as well as their dependencies.")
836 (home-page "https://bundler.io/")
837 (license license:expat)))
839 (define-public ruby-builder
841 (name "ruby-builder")
845 (uri (rubygems-uri "builder" version))
848 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
849 (build-system ruby-build-system)
852 (modify-phases %standard-phases
853 (add-after 'unpack 'do-not-use-rvm
855 (substitute* "rakelib/tags.rake"
856 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
858 (synopsis "Ruby library to create structured data")
859 (description "Builder provides a number of builder objects that make it
860 easy to create structured data. Currently the following builder objects are
861 supported: XML Markup and XML Events.")
862 (home-page "https://github.com/jimweirich/builder")
863 (license license:expat)))
865 (define-public ruby-bump
872 (uri (rubygems-uri "bump" version))
875 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
876 (build-system ruby-build-system)
878 '(;; No included tests
880 (synopsis "Tool for working with Rubygems")
882 "Bump provides commands to manage Rubygem versioning, updating to the
883 next patch version for example.")
884 (home-page "https://github.com/gregorym/bump")
885 (license license:expat)))
887 (define-public ruby-rjb
893 (uri (rubygems-uri "rjb" version))
896 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
897 (build-system ruby-build-system)
899 `(#:tests? #f ; no rakefile
901 (modify-phases %standard-phases
902 (add-before 'build 'set-java-home
903 (lambda* (#:key inputs #:allow-other-keys)
904 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
907 `(("jdk" ,icedtea "jdk")))
908 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
909 (description "RJB is a bridge program that connects Ruby and Java via the
910 Java Native Interface.")
911 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
912 (license license:lgpl2.1+)))
914 (define-public ruby-log4r
921 (uri (rubygems-uri "log4r" version))
924 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
925 (build-system ruby-build-system)
927 '(#:tests? #f)) ; no Rakefile in gem
928 (synopsis "Flexible logging library for Ruby")
929 (description "Comprehensive and flexible logging library written
930 in Ruby for use in Ruby programs. It features a hierarchical logging
931 system of any number of levels, custom level names, logger
932 inheritance, multiple output destinations per log event, execution
933 tracing, custom formatting, thread safteyness, XML and YAML
934 configuration, and more.")
935 (home-page "http://log4r.rubyforge.org/")
936 (license license:bsd-3)))
938 (define-public ruby-atoulme-antwrap
940 (name "ruby-atoulme-antwrap")
944 (uri (rubygems-uri "atoulme-Antwrap" version))
947 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
948 (build-system ruby-build-system)
949 ;; Test data required for most of the tests are not included.
950 (arguments `(#:tests? #f))
952 `(("ruby-hoe" ,ruby-hoe)))
954 `(("ruby-rjb" ,ruby-rjb)))
955 (synopsis "Ruby wrapper for the Ant build tool")
956 (description "Antwrap is a Ruby module that wraps the Apache Ant build
957 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
959 (home-page "http://rubyforge.org/projects/antwrap/")
960 (license license:expat)))
962 (define-public ruby-atoulme-saikuro
964 (name "ruby-atoulme-saikuro")
968 (uri (rubygems-uri "atoulme-Saikuro" version))
971 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
972 (build-system ruby-build-system)
973 ;; FIXME: There are no unit tests. The tests are demonstrations of the
975 (arguments `(#:tests? #f))
976 (synopsis "Cyclomatic complexity analyzer")
977 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
978 given Ruby source code Saikuro will generate a report listing the cyclomatic
979 complexity of each method found. In addition, Saikuro counts the number of
980 lines per method and can generate a listing of the number of tokens on each
982 (home-page "http://www.github.com/atoulme/Saikuro")
983 ;; File headers contain the BSD-3 license and the README.rdoc says that
984 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
985 ;; of the Expat license.
986 (license license:bsd-3)))
988 (define-public ruby-pandoc-ruby
990 (name "ruby-pandoc-ruby")
994 (method git-fetch) ;the gem lacks many test files
996 (url "https://github.com/xwmx/pandoc-ruby")
998 (file-name (git-file-name name version))
1001 "03a11clhycyn0jhc7g9davpqd83sn60jqwjy1y145ag9sq6sp935"))))
1002 (build-system ruby-build-system)
1005 (modify-phases %standard-phases
1006 (add-after 'unpack 'disable-failing-tests
1007 ;; TODO: Remove this phase after ghc-pandoc gets upgraded to 2.9.2+
1008 ;; (see: https://github.com/xwmx/pandoc-ruby/issues/39).
1010 (substitute* "test/test_conversions.rb"
1011 (("next if from == to.*" all)
1014 " next if ['plain', 'beamer'].include? to\n")))
1016 (add-after 'unpack 'patch-pandoc-path
1017 (lambda* (#:key inputs #:allow-other-keys)
1018 (let ((pandoc (string-append (assoc-ref inputs "ghc-pandoc")
1020 (substitute* "lib/pandoc-ruby.rb"
1021 (("@@pandoc_path = 'pandoc'")
1022 (format #f "@@pandoc_path = '~a'" pandoc)))
1023 (substitute* "test/test_pandoc_ruby.rb"
1024 (("('|\")pandoc" _ quote)
1025 (string-append quote pandoc))
1029 (add-after 'extract-gemspec 'remove-Gemfile.lock
1031 (delete-file "Gemfile.lock")
1032 (substitute* "pandoc-ruby.gemspec"
1033 (("Gemfile\\.lock") ""))
1036 `(("ruby-mocha" ,ruby-mocha)))
1038 `(("ghc-pandoc" ,ghc-pandoc)))
1039 (synopsis "Ruby wrapper for Pandoc")
1040 (description "PandocRuby is a wrapper for Pandoc, a Haskell library with
1041 command line tools for converting one markup format to another. Pandoc can
1042 convert documents from a variety of formats including markdown,
1043 reStructuredText, textile, HTML, DocBook, LaTeX, and MediaWiki markup to a
1044 variety of other formats, including markdown, reStructuredText, HTML, LaTeX,
1045 ConTeXt, PDF, RTF, DocBook XML, OpenDocument XML, ODT, GNU Texinfo, MediaWiki
1046 markup, groff man pages, HTML slide shows, EPUB, Microsoft Word docx, and
1048 (home-page "https://github.com/xwmx/pandoc-ruby")
1049 (license license:expat)))
1051 (define-public ruby-slim
1058 (uri (rubygems-uri "slim" version))
1061 "0gjx30g84c82qzg32bd7giscvb4206v7mvg56kc839w9wjagn36n"))))
1062 (build-system ruby-build-system)
1065 (modify-phases %standard-phases
1066 ;; See: https://github.com/slim-template/slim/issues/857 and
1067 ;; https://github.com/slim-template/slim/issues/858.
1068 (add-after 'unpack 'skip-broken-tests
1070 (substitute* "test/core/test_embedded_engines.rb"
1071 (("def test_render_with_markdown")
1072 "def skipped_test_render_with_markdown"))
1073 (substitute* "test/translator/test_translator.rb"
1074 (("raise (\"Missing test for.*)" _ tail)
1075 (string-append "print " tail)))
1077 ;; See: https://salsa.debian.org/ruby-team/ruby-slim/-/commit/
1078 ;; 824862bd99d1675bc699d8fc71ba965a785c1f44.
1079 (add-after 'unpack 'prevent-bundler-interference
1081 (substitute* "Rakefile"
1082 (("require 'bundler/setup'") "nil")
1083 (("Bundler::GemHelper\\.install_tasks") "nil"))
1086 `(("ruby-rack-test" ,ruby-rack-test)
1087 ("ruby-sinatra" ,ruby-sinatra)))
1089 `(("ruby-temple" ,ruby-temple)
1090 ("ruby-tilt" ,ruby-tilt)))
1091 (synopsis "Minimalist template language for Ruby")
1092 (description "Slim is a template language for Ruby that aims to reduce the
1093 syntax to the minimum while remaining clear.")
1094 (home-page "http://slim-lang.com/")
1095 (license license:expat)))
1097 (define-public ruby-asciidoctor
1099 (name "ruby-asciidoctor")
1103 (method git-fetch) ;the gem release lacks a Rakefile
1105 (url "https://github.com/asciidoctor/asciidoctor")
1106 (commit (string-append "v" version))))
1107 (file-name (git-file-name name version))
1110 "0jaxpnsdnx3qyjw5p2lsx1swny12q1i2vxw2kgdp4vlsyjv95z95"))))
1111 (build-system ruby-build-system)
1113 `(#:test-target "test:all"
1115 (modify-phases %standard-phases
1116 (replace 'replace-git-ls-files
1118 ;; TODO: Remove after the fix of using 'cut' to better mimic the
1119 ;; git ls-files output is merged in ruby-build-system.
1120 (substitute* "asciidoctor.gemspec"
1121 (("`git ls-files -z`")
1122 "`find . -type f -print0 |sort -z|cut -zc3-`"))
1124 (add-after 'extract-gemspec 'strip-version-requirements
1126 (delete-file "Gemfile")
1127 (substitute* "asciidoctor.gemspec"
1128 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
1129 (string-append stripped "\n")))
1132 `(("ruby-erubis" ,ruby-erubis)
1133 ("ruby-minitest" ,ruby-minitest)
1134 ("ruby-nokogiri" ,ruby-nokogiri)
1135 ("ruby-asciimath" ,ruby-asciimath)
1136 ("ruby-coderay" ,ruby-coderay)
1137 ("ruby-cucumber" ,ruby-cucumber)
1138 ("ruby-haml" ,ruby-haml)
1139 ("ruby-rouge" ,ruby-rouge)
1140 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
1141 ("ruby-simplecov" ,ruby-simplecov)
1142 ("ruby-slim" ,ruby-slim)
1143 ("ruby-tilt" ,ruby-tilt)))
1144 (synopsis "Converter from AsciiDoc content to other formats")
1145 (description "Asciidoctor is a text processor and publishing toolchain for
1146 converting AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other
1148 (home-page "https://asciidoctor.org")
1149 (license license:expat)))
1151 (define-public ruby-ast
1158 (uri (rubygems-uri "ast" version))
1161 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
1162 (build-system ruby-build-system)
1165 (modify-phases %standard-phases
1166 (add-after 'unpack 'remove-coveralls-requirement
1168 (substitute* "test/helper.rb"
1169 (("require 'coveralls'") "")
1170 (("Coveralls::SimpleCov::Formatter") ""))
1172 (add-after 'extract-gemspec 'remove-unnecessary-requirements
1174 (substitute* "ast.gemspec"
1175 ((".*coveralls.*") "\n")
1176 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
1177 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
1178 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
1181 `(("bundler" ,bundler)
1182 ("ruby-simplecov" ,ruby-simplecov)
1183 ("ruby-json-pure" ,ruby-json-pure)
1184 ("ruby-mime-times" ,ruby-mime-types)
1185 ("ruby-yard" ,ruby-yard)
1186 ("ruby-kramdown" ,ruby-kramdown)
1187 ("ruby-rest-client" ,ruby-rest-client)
1188 ("ruby-bacon" ,ruby-bacon)
1189 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1190 ("ruby-racc" ,ruby-racc)))
1191 (synopsis "Library for working with Abstract Syntax Trees")
1193 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1194 It does this through immutable data structures.")
1195 (home-page "https://whitequark.github.io/ast/")
1196 (license license:expat)))
1198 (define-public ruby-sporkmonger-rack-mount
1199 ;; Testing the addressable gem requires a newer commit than that released, so
1200 ;; use an up to date version.
1201 (let ((revision "1")
1202 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1204 (name "ruby-sporkmonger-rack-mount")
1205 (version (git-version "0.8.3" revision commit))
1209 (url "https://github.com/sporkmonger/rack-mount")
1211 (file-name (git-file-name name version))
1214 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1215 (build-system ruby-build-system)
1217 ;; Tests currently fail so disable them.
1218 ;; https://github.com/sporkmonger/rack-mount/pull/1
1220 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1221 (synopsis "Stackable dynamic tree based Rack router")
1223 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1224 continue trying routes if the response returns pass. This allows multiple
1225 routes to be nested or stacked on top of each other.")
1226 (home-page "https://github.com/sporkmonger/rack-mount")
1227 (license license:expat))))
1229 (define-public ruby-ci-reporter
1231 (name "ruby-ci-reporter")
1235 (uri (rubygems-uri "ci_reporter" version))
1238 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1239 (build-system ruby-build-system)
1241 `(#:test-target "rspec"))
1243 `(("ruby-builder" ,ruby-builder)))
1245 `(("bundler" ,bundler)
1246 ("ruby-rspec" ,ruby-rspec)))
1247 (synopsis "Generate XML reports of runs test")
1249 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1250 you to generate XML reports of your test runs. The resulting files can be
1251 read by a continuous integration system that understands Ant's JUnit report
1253 (home-page "https://github.com/nicksieger/ci_reporter")
1254 (license license:expat)))
1256 (define-public ruby-contracts
1258 (name "ruby-contracts")
1263 (uri (rubygems-uri "contracts" version))
1266 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1267 (build-system ruby-build-system)
1269 '(#:test-target "spec"
1271 (modify-phases %standard-phases
1272 ;; Don't run or require rubocop, the code linting tool, as this is a
1274 (add-after 'unpack 'dont-run-rubocop
1276 (substitute* "Rakefile"
1277 ((".*rubocop.*") "")
1278 ((".*RuboCop.*") ""))
1281 `(("ruby-rspec" ,ruby-rspec)))
1282 (synopsis "Method contracts for Ruby")
1284 "This library provides contracts for Ruby. A contract describes the
1285 correct inputs and output for a method, and will raise an error if a incorrect
1287 (home-page "https://github.com/egonSchiele/contracts.ruby")
1288 (license license:bsd-2)))
1290 (define-public ruby-crack
1297 (uri (rubygems-uri "crack" version))
1300 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1301 (build-system ruby-build-system)
1304 (modify-phases %standard-phases
1306 (lambda* (#:key tests? #:allow-other-keys)
1308 (for-each (lambda (file)
1309 (display file)(display "\n")
1310 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1311 (find-files "test" ".*rb$")))
1314 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1315 (synopsis "Simple JSON and XML parsing for Ruby")
1317 "@code{crack} provides really simple JSON and XML parsing, extracted from
1318 code in Merb and Rails.")
1319 (home-page "https://github.com/jnunemaker/crack")
1320 (license license:expat)))
1322 (define-public ruby-cliver
1324 (name "ruby-cliver")
1329 (uri (rubygems-uri "cliver" version))
1332 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1333 (build-system ruby-build-system)
1336 (modify-phases %standard-phases
1337 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1338 ;; would be nice, but the tests look to be incompatible:
1340 ;; NoMethodError: undefined method `last_comment'
1342 (lambda* (#:key tests? #:allow-other-keys)
1347 `(("bundler" ,bundler)
1348 ("ruby-rspec" ,ruby-rspec-2)))
1349 (synopsis "Assertions for command-line dependencies in Ruby")
1351 "@code{cliver} provides a way to detect missing command-line
1352 dependencies, including versions.")
1353 (home-page "https://github.com/yaauie/cliver")
1354 (license license:expat)))
1356 (define-public ruby-czmq-ffi-gen
1358 (name "ruby-czmq-ffi-gen")
1363 (uri (rubygems-uri "czmq-ffi-gen" version))
1366 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1367 (build-system ruby-build-system)
1369 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1371 (modify-phases %standard-phases
1372 (add-after 'unpack 'patch-lib_dirs
1373 (lambda* (#:key inputs #:allow-other-keys)
1374 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1375 (("lib\\_dirs = \\[.*\\]")
1376 (string-append "lib_dirs = ['"
1377 (assoc-ref inputs "czmq") "/lib"
1379 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1380 (("lib\\_dirs = \\[.*\\]")
1381 (string-append "lib_dirs = ['"
1382 (assoc-ref inputs "zeromq") "/lib"
1385 `(("zeromq" ,zeromq)
1387 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1388 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1390 "These Ruby bindings are not intended to be directly used, but rather
1391 used by higher level bindings like those provided by CZTop.")
1393 "https://github.com/paddor/czmq-ffi-gen")
1394 (license license:isc)))
1396 (define-public ruby-cztop
1403 (uri (rubygems-uri "cztop" version))
1406 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1407 (build-system ruby-build-system)
1409 '(#:test-target "spec"
1411 (modify-phases %standard-phases
1412 (add-after 'unpack 'patch-lib_paths
1413 (lambda* (#:key inputs #:allow-other-keys)
1414 (substitute* "lib/cztop/poller/zmq.rb"
1415 (("lib\\_paths = \\[.*\\]")
1416 (string-append "lib_paths = ['"
1417 (assoc-ref inputs "zeromq") "/lib"
1420 `(("bundler" ,bundler)
1421 ("ruby-rspec" ,ruby-rspec)))
1423 `(("zeromq" ,zeromq)))
1425 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1426 (synopsis "CZMQ Ruby bindings")
1428 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1429 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1430 support for security mechanisms.")
1431 (home-page "https://github.com/paddor/cztop")
1432 (license license:isc)))
1434 (define-public ruby-saikuro-treemap
1436 (name "ruby-saikuro-treemap")
1440 (uri (rubygems-uri "saikuro_treemap" version))
1443 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1444 (build-system ruby-build-system)
1445 ;; Some of the tests fail because the generated JSON has keys in a
1446 ;; different order. This is a problem with the test suite rather than any
1447 ;; of the involved libraries.
1448 (arguments `(#:tests? #f))
1450 `(("ruby-json-pure" ,ruby-json-pure)
1451 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1452 (synopsis "Generate complexity treemap based on saikuro analysis")
1454 "This gem generates a treemap showing the complexity of Ruby code on
1455 which it is run. It uses Saikuro under the covers to analyze Ruby code
1457 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1458 (license license:expat)))
1460 (define-public ruby-oauth2
1462 (name "ruby-oauth2")
1467 (uri (rubygems-uri "oauth2" version))
1469 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1470 (build-system ruby-build-system)
1472 '(#:tests? #f)) ; no included tests
1474 `(("ruby-faraday" ,ruby-faraday)
1475 ("ruby-jwt" ,ruby-jwt)
1476 ("ruby-multi-json" ,ruby-multi-json)
1477 ("ruby-multi-xml" ,ruby-multi-xml)
1478 ("ruby-rack" ,ruby-rack)))
1479 (synopsis "Ruby wrapper for the OAuth 2.0")
1481 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1482 with a similar style to the original OAuth spec.")
1483 (home-page "https://github.com/oauth-xx/oauth2")
1484 (license license:expat)))
1486 (define-public ruby-omniauth
1488 (name "ruby-omniauth")
1493 (uri (rubygems-uri "omniauth" version))
1495 (base32 "002vi9gwamkmhf0dsj2im1d47xw2n1jfhnzl18shxf3ampkqfmyz"))))
1496 (build-system ruby-build-system)
1498 '(#:tests? #f)) ; No included tests
1500 `(("ruby-hashie" ,ruby-hashie)
1501 ("ruby-rack" ,ruby-rack)))
1502 (synopsis "Generalized Rack framework for multiple-provider authentication")
1504 "This package provides a generalized Rack framework for multiple-provider
1506 (home-page "https://github.com/omniauth/omniauth")
1507 (license license:expat)))
1509 (define-public ruby-omniauth-oauth2
1511 (name "ruby-omniauth-oauth2")
1516 (uri (rubygems-uri "omniauth-oauth2" version))
1519 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1520 (build-system ruby-build-system)
1523 (modify-phases %standard-phases
1524 (add-after 'unpack 'remove-unnecessary-dependencies
1526 ;; The coveralls gem submits coverage information to an online
1527 ;; service, and is unnecessary when running the tests
1528 (substitute* "Gemfile"
1529 ((".*coveralls\"") ""))
1530 (substitute* "spec/helper.rb"
1531 (("require \"coveralls\"") "")
1532 (("Coveralls::SimpleCov::Formatter") ""))
1535 `(("ruby-oauth2" ,ruby-oauth2)
1536 ("ruby-omniauth" ,ruby-omniauth)))
1538 `(("bundler" ,bundler)
1539 ("ruby-rspec" ,ruby-rspec)
1540 ("ruby-simplecov" ,ruby-simplecov)
1541 ("ruby-rack-test" ,ruby-rack-test)
1542 ("ruby-webmock" ,ruby-webmock-2)))
1543 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1545 "This library provides a generic OAuth2 strategy for OmniAuth. It
1546 doesn't provide a way to gather user information, so should be used as a
1547 building block for authentication strategies.")
1548 (home-page "https://github.com/omniauth/omniauth-oauth2")
1549 (license license:expat)))
1551 (define-public ruby-open4
1558 (uri (rubygems-uri "open4" version))
1561 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1562 (build-system ruby-build-system)
1565 (modify-phases %standard-phases
1566 (add-after 'unpack 'patch
1568 (substitute* "rakefile"
1569 ;; Update the Rakefile so it works
1570 (("-rubygems") "-rrubygems")
1571 (("Config") "RbConfig"))
1573 (add-before 'check 'set-LIB
1575 ;; This is used in the rakefile when running the tests
1576 (setenv "LIB" "open4")
1578 (synopsis "Open child processes from Ruby and manage them easily")
1580 "@code{Open4} is a Ruby library to run child processes and manage their
1582 (home-page "https://github.com/ahoward/open4")
1583 (license license:ruby)))
1585 (define-public ruby-options
1587 (name "ruby-options")
1592 (uri (rubygems-uri "options" version))
1595 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1596 (build-system ruby-build-system)
1598 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1600 (modify-phases %standard-phases
1601 (add-before 'check 'set-LIB
1603 ;; This is used in the Rakefile, and setting it avoids an issue
1604 ;; with running the tests.
1605 (setenv "LIB" "options")
1607 (synopsis "Ruby library to parse options from *args cleanly")
1609 "The @code{options} library helps with parsing keyword options in Ruby
1611 (home-page "https://github.com/ahoward/options")
1612 (license license:ruby)))
1614 (define-public ruby-erubi
1621 (uri (rubygems-uri "erubi" version))
1624 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1625 (build-system ruby-build-system)
1626 (synopsis "ERB template engine for Ruby")
1628 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1630 (home-page "https://github.com/jeremyevans/erubi")
1631 (license license:expat)))
1633 (define-public ruby-erubis
1635 (name "ruby-erubis")
1640 (uri (rubygems-uri "erubis" version))
1643 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1644 (build-system ruby-build-system)
1646 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1647 (synopsis "Implementation of embedded Ruby (eRuby)")
1649 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1650 features such as multi-language support, auto escaping, auto trimming spaces
1651 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1653 (home-page "http://www.kuwata-lab.com/erubis/")
1654 (license license:expat)))
1656 (define-public ruby-execjs
1658 (name "ruby-execjs")
1662 ;; fetch from github as the gem does not contain testing code
1665 (url "https://github.com/rails/execjs")
1666 (commit (string-append "v" version))))
1667 (file-name (git-file-name name version))
1670 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1671 (build-system ruby-build-system)
1673 `(("bundler" ,bundler)
1674 ;; The test suite tests all the available backends. Currenly, this just
1675 ;; means the node backend.
1677 ;; PASSED: test:node
1678 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1679 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1681 (synopsis "Run JavaScript code from Ruby")
1683 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1684 runtime to evaluate your JavaScript program, then returns the result to you as
1686 (home-page "https://github.com/rails/execjs")
1687 (license license:expat)))
1689 (define-public ruby-fakefs
1691 (name "ruby-fakefs")
1693 (home-page "https://github.com/fakefs/fakefs")
1695 ;; The Rubygems release does not contain tests.
1699 (commit (string-append "v" version))))
1700 (file-name (git-file-name name version))
1703 "008dq9knyip2bfbl0mrk8b8r7bv0k3bf128wcfqsgy1rqal4mgwk"))))
1704 (build-system ruby-build-system)
1706 '(#:phases (modify-phases %standard-phases
1707 (replace 'replace-git-ls-files
1709 (substitute* "fakefs.gemspec"
1710 (("`git ls-files lib README.md LICENSE`")
1711 "`find lib README.md LICENSE -type f | sort`"))
1713 (add-before 'check 'remove-version-constraints
1715 ;; Drop hard version requirements for test dependencies.
1716 (substitute* "fakefs.gemspec"
1717 (("(.*add_development_dependency .*), .*" _ dep)
1718 (string-append dep "\n")))
1721 `(("ruby-bump" ,ruby-bump)
1722 ("ruby-maxitest" ,ruby-maxitest)
1723 ("ruby-rubocop" ,ruby-rubocop)
1724 ("ruby-rspec" ,ruby-rspec)))
1725 (synopsis "Fake file system for Ruby")
1727 "This package provides a fake file system for use in test suites. It
1728 avoids the need for manually creating temporary directories, or dealing
1729 with platform intricacies in @code{File} and @code{FileUtils}.")
1730 (license license:expat)))
1732 (define-public ruby-orderedhash
1734 (name "ruby-orderedhash")
1738 (uri (rubygems-uri "orderedhash" version))
1741 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1742 (build-system ruby-build-system)
1744 '(#:tests? #f)) ; no test suite
1745 (synopsis "Ruby library providing an order-preserving hash")
1746 (description "Orderedhash is a Ruby library providing a hash
1747 implementation that preserves the order of items and features some array-like
1749 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1750 (license license:public-domain)))
1752 (define-public ruby-libxml
1754 (name "ruby-libxml")
1759 (uri (rubygems-uri "libxml-ruby" version))
1762 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1763 (build-system ruby-build-system)
1766 ("libxml2" ,libxml2)))
1768 '(#:tests? #f ; test suite hangs for unknown reason
1771 (string-append "--with-xml2-include="
1772 (assoc-ref %build-inputs "libxml2")
1773 "/include/libxml2" ))))
1774 (synopsis "Ruby bindings for GNOME Libxml2")
1775 (description "The Libxml-Ruby project provides Ruby language bindings for
1776 the GNOME Libxml2 XML toolkit.")
1777 (home-page "https://xml4r.github.com/libxml-ruby")
1778 (license license:expat)))
1780 (define-public ruby-lino
1787 (uri (rubygems-uri "lino" version))
1790 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1791 (build-system ruby-build-system)
1793 '(#:tests? #f)) ; No included tests
1795 `(("ruby-hamster" ,ruby-hamster)
1796 ("ruby-open4" ,ruby-open4)))
1797 (synopsis "Build and execute commands in Ruby")
1799 "@code{Lino} provides an interface to run external commands. It provides
1800 an interface to add options as well as managing the standard input, output and
1802 (home-page "https://github.com/tobyclemson/lino")
1803 (license license:expat)))
1805 (define-public ruby-xml-simple
1807 (name "ruby-xml-simple")
1811 (uri (rubygems-uri "xml-simple" version))
1814 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1815 (build-system ruby-build-system)
1817 '(#:tests? #f)) ; no test suite
1818 (synopsis "Simple Ruby library for XML processing")
1819 (description "This library provides a simple API for XML processing in
1821 (home-page "https://github.com/maik/xml-simple")
1822 (license license:ruby)))
1824 (define-public ruby-thor
1829 ;; Pull from git because the gem has no tests.
1832 (url "https://github.com/erikhuda/thor")
1833 (commit (string-append "v" version))))
1834 (file-name (git-file-name name version))
1837 "1anrx5vynk57hn5c8ig5pgkmcsbj9q5mvckd5rviw1jid7n89k57"))))
1838 (build-system ruby-build-system)
1840 '(#:phases (modify-phases %standard-phases
1841 (add-after 'unpack 'fix-readline-tests
1843 ;; Ensure Readline is initialized before running the
1844 ;; test to avoid a type clash with the mock ::Readline.
1845 ;; See <https://github.com/erikhuda/thor/pull/717>.
1846 (substitute* "spec/line_editor/readline_spec.rb"
1847 (("unless defined\\? ::Readline" all)
1848 (string-append "Thor::LineEditor::Readline.available?\n"
1851 (add-after 'unpack 'remove-coveralls-dependency
1853 ;; Do not hook the test suite into the online
1854 ;; coveralls service.
1855 (substitute* "Gemfile"
1856 ((".*coveralls.*") ""))
1857 (substitute* "spec/helper.rb"
1858 (("require \"coveralls\"") "")
1859 (("Coveralls::SimpleCov::Formatter") "")
1860 ;; Also drop the WebMock dependency which is only
1861 ;; present to allow a coveralls.io connection, and
1862 ;; would otherwise introduce a circular dependency.
1863 (("require \"webmock/rspec\"") "")
1864 (("WebMock\\.disable_net_connect.*") ""))
1866 (add-after 'unpack 'disable-network-tests
1868 ;; These tests attempt to look up example.com.
1869 (substitute* "spec/actions/file_manipulation_spec.rb"
1870 (("it \"accepts (https?) remote sources" _ proto)
1871 (string-append "xit \"accepts " proto " remote sources")))
1873 (add-after 'unpack 'disable-quality-tests
1875 ;; These tests attempt to check the git repository for
1876 ;; tabs vs spaces, double vs single quotes, etc, and
1877 ;; depend on the git checkout.
1878 (delete-file "spec/quality_spec.rb")
1880 (add-before 'check 'make-files-writable
1882 ;; The tests needs rw access to the test suite.
1883 (for-each make-file-writable (find-files "spec"))
1887 (invoke "rspec" "spec"))))))
1889 `(("ruby-rspec" ,ruby-rspec)
1890 ("ruby-simplecov" ,ruby-simplecov)))
1891 (synopsis "Ruby toolkit for building command-line interfaces")
1892 (description "Thor is a toolkit for building powerful command-line
1894 (home-page "http://whatisthor.com/")
1895 (license license:expat)))
1897 (define-public ruby-lumberjack
1899 (name "ruby-lumberjack")
1903 (uri (rubygems-uri "lumberjack" version))
1906 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1907 (build-system ruby-build-system)
1909 `(("ruby-rspec" ,ruby-rspec)
1910 ("ruby-timecop" ,ruby-timecop)))
1911 (synopsis "Logging utility library for Ruby")
1912 (description "Lumberjack is a simple logging utility that can be a drop in
1913 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1914 for automatically rolling log files even with multiple processes writing the
1916 (home-page "https://github.com/bdurand/lumberjack")
1917 (license license:expat)))
1919 (define-public ruby-rbnacl
1921 (name "ruby-rbnacl")
1926 (uri (rubygems-uri "rbnacl" version))
1929 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1930 (build-system ruby-build-system)
1933 (modify-phases %standard-phases
1934 (add-after 'unpack 'remove-unnecessary-dependencies
1936 ;; Coveralls relates to a network service, and Rubocop to code
1937 ;; linting and both are unnecessary to run the tests
1938 (substitute* "Gemfile"
1939 ((".*rubocop.*") "\n")
1940 ((".*guard-rspec.*") "\n")
1941 ((".*coveralls.*") "\n"))
1942 (substitute* "spec/spec_helper.rb"
1943 (("require \"coveralls\"") "")
1944 (("Coveralls.wear!") ""))
1946 (add-after 'unpack 'use-libsodium-from-store
1947 (lambda* (#:key inputs #:allow-other-keys)
1948 (substitute* '("lib/rbnacl/init.rb"
1949 "lib/rbnacl/sodium.rb")
1950 (("ffi_lib \\[.+\\]")
1951 (string-append "ffi_lib [\""
1952 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1955 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1957 (lambda* (#:key tests? #:allow-other-keys)
1962 `(("ruby-ffi" ,ruby-ffi)))
1964 `(("libsodium" ,libsodium)))
1966 `(("bundler" ,bundler)
1967 ("ruby-rspec" ,ruby-rspec)))
1968 (synopsis "Ruby FFI binding to libsodium")
1970 "This package provides Ruby FFI bindings to the Networking and
1971 Cryptography (NaCl) library, also known as libsodium. This provides a
1972 high-level toolkit for building cryptographic systems and protocols.")
1973 (home-page "https://github.com/crypto-rb/rbnacl")
1974 (license license:expat)))
1976 (define-public ruby-nenv
1982 (uri (rubygems-uri "nenv" version))
1985 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1986 (build-system ruby-build-system)
1988 `(#:tests? #f)) ; no tests included
1990 `(("ruby-rspec" ,ruby-rspec)
1991 ("bundler" ,bundler)))
1992 (synopsis "Ruby interface for modifying the environment")
1993 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1994 and inspect the environment.")
1995 (home-page "https://github.com/e2/nenv")
1996 (license license:expat)))
1998 (define-public ruby-ptools
2000 (name "ruby-ptools")
2004 (uri (rubygems-uri "ptools" version))
2007 "1jb1h1nsk9zwykpniw8filbsk26kjsdlpk5wz6w0zyamcd41h87j"))))
2008 (build-system ruby-build-system)
2010 '(#:phases (modify-phases %standard-phases
2011 (add-after 'unpack 'patch-/bin/ls
2013 (substitute* "test/test_binary.rb"
2017 (add-before 'install 'create-gem
2019 ;; Do not attempt to sign the gem.
2020 (substitute* "Rakefile"
2021 (("spec\\.signing_key = .*")
2023 (invoke "rake" "gem:create"))))))
2024 (synopsis "Extra methods for Ruby's @code{File} class")
2026 "The @dfn{ptools} (power tools) library extends Ruby's core @code{File}
2027 class with many additional methods modelled after common POSIX tools, such as
2028 @code{File.which} for finding executables, @code{File.tail} to print the last
2029 lines of a file, @code{File.wc} to count words, and so on.")
2030 (home-page "https://github.com/djberg96/ptools")
2031 (license license:artistic2.0)))
2033 (define-public ruby-permutation
2035 (name "ruby-permutation")
2039 (uri (rubygems-uri "permutation" version))
2042 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
2043 (build-system ruby-build-system)
2046 (modify-phases %standard-phases
2047 (add-after 'unpack 'fix-rakefile
2049 (substitute* "Rakefile"
2050 (("require 'rake/gempackagetask'")
2051 "require 'rubygems/package_task'")
2052 (("include Config") ""))
2056 (invoke "ruby" "-Ilib" "test/test.rb"))))))
2057 (synopsis "Library to perform operations with sequence permutations")
2058 (description "This package provides a Ruby library to perform different
2059 operations with permutations of sequences, such as strings and arrays.")
2060 (home-page "https://flori.github.io/permutation")
2061 (license license:gpl2))) ; GPL 2 only
2063 (define-public ruby-shellany
2065 (name "ruby-shellany")
2069 (uri (rubygems-uri "shellany" version))
2072 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
2073 (build-system ruby-build-system)
2075 `(#:test-target "default"
2077 (modify-phases %standard-phases
2078 (add-after 'unpack 'fix-version-test
2080 (substitute* "spec/shellany_spec.rb"
2081 (("^RSpec") "require \"shellany\"\nRSpec"))
2084 `(("ruby-rspec" ,ruby-rspec)
2085 ("ruby-nenv" ,ruby-nenv)
2086 ("bundler" ,bundler)))
2087 (synopsis "Capture command output")
2088 (description "Shellany is a Ruby library providing functions to capture
2089 the output produced by running shell commands.")
2090 (home-page "https://rubygems.org/gems/shellany")
2091 (license license:expat)))
2093 (define-public ruby-notiffany
2095 (name "ruby-notiffany")
2099 (uri (rubygems-uri "notiffany" version))
2102 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
2103 (build-system ruby-build-system)
2104 ;; Tests are not included in the gem.
2105 (arguments `(#:tests? #f))
2107 `(("ruby-shellany" ,ruby-shellany)
2108 ("ruby-nenv" ,ruby-nenv)))
2110 `(("bundler" ,bundler)))
2111 (synopsis "Wrapper library for notification libraries")
2112 (description "Notiffany is a Ruby wrapper library for notification
2113 libraries such as Libnotify.")
2114 (home-page "https://github.com/guard/notiffany")
2115 (license license:expat)))
2117 (define-public ruby-forking-test-runner
2119 (name "ruby-forking-test-runner")
2121 (home-page "https://github.com/grosser/forking_test_runner")
2124 (uri (git-reference (url home-page)
2125 (commit (string-append "v" version))))
2126 (file-name (git-file-name name version))
2129 "1mrglzkj2nrgisccf2f30zbfmcs0awv1g3lw994b2az90fl39x8m"))))
2130 (build-system ruby-build-system)
2132 '(#:test-target "spec"
2133 ;; FIXME: ActiveRecord depends on sqlite3 1.3.6, but Guix has
2134 ;; 1.4.1, which in turn breaks the tests that use ActiveRecord.
2136 #:phases (modify-phases %standard-phases
2137 (replace 'replace-git-ls-files
2139 (substitute* "forking_test_runner.gemspec"
2140 (("`git ls-files lib/ bin/ MIT-LICENSE`")
2141 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
2143 (add-before 'check 'remove-version-constraints
2145 ;; Ignore hard coded version constraints for the tests.
2146 (delete-file "Gemfile.lock")
2148 (add-before 'check 'set-HOME
2150 ;; Many tests invoke Bundler, and fails when Bundler
2151 ;; warns that /homeless-shelter does not exist.
2152 (setenv "HOME" "/tmp")
2155 `(("ruby-activerecord" ,ruby-activerecord)
2156 ("ruby-bump" ,ruby-bump)
2157 ("ruby-rspec" ,ruby-rspec)
2158 ("ruby-sqlite3" ,ruby-sqlite3)
2159 ("ruby-wwtd" ,ruby-wwtd)))
2161 `(("ruby-parallel-tests" ,ruby-parallel-tests)))
2162 (synopsis "Run every test in a fork")
2164 "This package is a wrapper around @code{parallel_tests} that runs every
2165 test in a fork to avoid pollution and get clean output per test.")
2166 (license license:expat)))
2168 (define-public ruby-formatador
2170 (name "ruby-formatador")
2174 (uri (rubygems-uri "formatador" version))
2177 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
2178 (build-system ruby-build-system)
2179 ;; Circular dependency: Tests require ruby-shindo, which requires
2180 ;; ruby-formatador at runtime.
2181 (arguments `(#:tests? #f))
2182 (synopsis "Ruby library to format text on stdout")
2183 (description "Formatador is a Ruby library to format text printed to the
2184 standard output stream.")
2185 (home-page "https://github.com/geemus/formatador")
2186 (license license:expat)))
2188 (define-public ruby-fuubar
2190 (name "ruby-fuubar")
2194 ;; Fetch from the git repository, as the gem package doesn't include
2198 (url "https://github.com/thekompanee/fuubar")
2199 (commit (string-append "releases/v" version))))
2200 (file-name (git-file-name name version))
2203 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
2204 (build-system ruby-build-system)
2206 '(;; TODO: Some tests fail, unsure why.
2207 ;; 21 examples, 7 failures
2210 (modify-phases %standard-phases
2211 (add-before 'build 'delete-certificate
2213 ;; Remove 's.cert_chain' as we do not build with a private key
2214 (substitute* "fuubar.gemspec"
2215 ((".*cert_chain.*") "")
2216 ((".*signing_key.*") ""))
2219 (lambda* (#:key tests? #:allow-other-keys)
2224 `(("bundler" ,bundler)))
2226 `(("ruby-rspec-core" ,ruby-rspec-core)
2227 ("ruby-progressbar" ,ruby-progressbar)))
2228 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
2230 "Fuubar is an RSpec formatter that uses a progress bar instead of a
2231 string of letters and dots as feedback. It also stops on the first test
2233 (home-page "https://github.com/thekompanee/fuubar")
2234 (license license:expat)))
2236 (define-public ruby-haml
2243 (uri (rubygems-uri "haml" version))
2246 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
2247 (build-system ruby-build-system)
2249 '(#:tests? #f)) ; No included tests
2251 `(("ruby-tilt" ,ruby-tilt)
2252 ("ruby-temple" ,ruby-temple)))
2253 (synopsis "Haml is a Ruby library to generate HTML documents")
2255 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
2256 HTML or XML that is designed to express the structure of documents using
2257 indentation rather than closing tags. It was originally envisioned as a
2258 plugin for Ruby on Rails, but it can function as a stand-alone templating
2260 (home-page "http://haml.info/")
2261 (license license:expat)))
2263 (define-public ruby-hamster
2265 (name "ruby-hamster")
2270 (uri (rubygems-uri "hamster" version))
2273 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
2274 (build-system ruby-build-system)
2277 (modify-phases %standard-phases
2278 (add-after 'unpack 'remove-unnecessary-dependencies
2280 ;; pry is a debugging tool, and is unnecessary when running the
2282 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
2283 (("require 'pry'") ""))
2284 (substitute* "spec/spec_helper.rb"
2285 (("require \"pry\"") "")
2286 ;; CodeClimate is an online service, and is unnecessary for
2287 ;; running the tests
2288 (("require \"codeclimate-test-reporter\"") "")
2289 (("CodeClimate.*\n") ""))
2291 ;; No Rakefile is included, so run rspec directly.
2293 (lambda* (#:key tests? #:allow-other-keys)
2298 `(("ruby-concurrent" ,ruby-concurrent)))
2300 `(("ruby-rspec" ,ruby-rspec)))
2301 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
2303 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
2304 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
2305 immutable queue or stack).")
2306 (home-page "https://github.com/hamstergem/hamster")
2307 (license license:expat)))
2309 (define-public ruby-hashdiff
2311 (name "ruby-hashdiff")
2316 (uri (rubygems-uri "hashdiff" version))
2319 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
2320 (build-system ruby-build-system)
2323 (modify-phases %standard-phases
2324 ;; Run tests directly via rspec to avoid Rake issue:
2325 ;; NoMethodError: undefined method `last_comment'
2327 (lambda* (#:key tests? #:allow-other-keys)
2332 `(("bundler" ,bundler)
2333 ("ruby-rspec" ,ruby-rspec-2)))
2334 (synopsis "HashDiff computes the smallest difference between two hashes")
2336 "HashDiff is a Ruby library to compute the smallest difference between
2338 (home-page "https://github.com/liufengyun/hashdiff")
2339 (license license:expat)))
2341 (define-public ruby-hydra
2343 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
2347 (version (git-version "0.0" revision commit))
2348 (home-page "https://github.com/hyphenation/hydra")
2351 (uri (git-reference (url home-page) (commit commit)))
2352 (file-name (git-file-name name version))
2355 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
2356 (build-system ruby-build-system)
2358 '(#:phases (modify-phases %standard-phases
2359 (add-after 'unpack 'make-files-writable
2361 (for-each make-file-writable (find-files "."))
2365 (invoke "rspec"))))))
2367 `(("ruby-rspec" ,ruby-rspec)))
2369 `(("ruby-byebug" ,ruby-byebug)))
2370 (synopsis "Ruby hyphenation patterns")
2372 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2373 (license license:expat))))
2375 (define-public ruby-shindo
2377 (name "ruby-shindo")
2381 (uri (rubygems-uri "shindo" version))
2384 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2385 (build-system ruby-build-system)
2387 `(#:test-target "shindo_tests"
2389 (modify-phases %standard-phases
2390 (add-after 'unpack 'fix-tests
2392 (substitute* "tests/tests_helper.rb"
2394 (substitute* "Rakefile"
2395 (("system \"shindo") "system \"./bin/shindo")
2396 ;; This test doesn't work, so we disable it.
2397 (("fail \"The build_error test should fail") "#")
2398 ((" -rubygems") ""))
2401 `(("ruby-formatador" ,ruby-formatador)))
2402 (synopsis "Simple depth first Ruby testing")
2403 (description "Shindo is a simple depth first testing library for Ruby.")
2404 (home-page "https://github.com/geemus/shindo")
2405 (license license:expat)))
2407 (define-public ruby-rubygems-tasks
2409 (name "ruby-rubygems-tasks")
2413 (uri (rubygems-uri "rubygems-tasks" version))
2416 "1x3sz3n2dlknd3v7w1mrq6f0ag6pwzhjvg7z29p75w3p42ma1gbx"))))
2417 (build-system ruby-build-system)
2418 ;; Tests need Internet access.
2419 (arguments `(#:tests? #f))
2421 `(("ruby-rspec" ,ruby-rspec)
2422 ("ruby-yard" ,ruby-yard)))
2423 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2424 (description "Rubygems-task provides Rake tasks for managing and releasing
2426 (home-page "https://github.com/postmodern/rubygems-tasks")
2427 (license license:expat)))
2429 (define-public ruby-rubyzip
2431 (name "ruby-rubyzip")
2436 (uri (rubygems-uri "rubyzip" version))
2439 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2440 (build-system ruby-build-system)
2443 (modify-phases %standard-phases
2444 (add-before 'check 'patch-tests
2445 (lambda* (#:key inputs #:allow-other-keys)
2446 (substitute* "test/gentestfiles.rb"
2449 (assoc-ref inputs "zip") "/bin/zip")))
2450 (substitute* "test/input_stream_test.rb"
2451 (("/usr/bin/env ruby") (which "ruby")))
2454 `(("bundler" ,bundler)
2455 ("ruby-simplecov" ,ruby-simplecov)
2458 (synopsis "Ruby module is for reading and writing zip files")
2460 "The rubyzip module provides ways to read from and create zip files.")
2461 (home-page "http://github.com/rubyzip/rubyzip")
2462 (license license:bsd-2)))
2464 (define-public ruby-simplecov-html
2466 (name "ruby-simplecov-html")
2470 (uri (rubygems-uri "simplecov-html" version))
2473 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2474 (build-system ruby-build-system)
2475 (arguments `(#:tests? #f)) ; there are no tests
2477 `(("bundler" ,bundler)))
2478 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2479 (description "This package provides the default HTML formatter for
2480 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2481 (home-page "https://github.com/colszowka/simplecov-html")
2482 (license license:expat)))
2484 (define-public ruby-simplecov
2486 (name "ruby-simplecov")
2490 (uri (rubygems-uri "simplecov" version))
2493 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2494 (build-system ruby-build-system)
2495 ;; Simplecov depends on rubocop for code style checking at build time.
2496 ;; Rubocop needs simplecov at build time.
2497 (arguments `(#:tests? #f))
2499 `(("ruby-json" ,ruby-json)
2500 ("ruby-docile" ,ruby-docile)
2501 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2503 `(("bundler" ,bundler)))
2504 (synopsis "Code coverage framework for Ruby")
2505 (description "SimpleCov is a code coverage framework for Ruby with a
2506 powerful configuration library and automatic merging of coverage across test
2508 (home-page "https://github.com/colszowka/simplecov")
2509 (license license:expat)))
2511 (define-public ruby-useragent
2513 (name "ruby-useragent")
2517 (uri (rubygems-uri "useragent" version))
2520 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2521 (build-system ruby-build-system)
2523 '(#:tests? #f)) ; no test suite
2524 (synopsis "HTTP user agent parser for Ruby")
2525 (description "UserAgent is a Ruby library that parses and compares HTTP
2527 (home-page "https://github.com/gshutler/useragent")
2528 (license license:expat)))
2530 (define-public ruby-backports
2532 (name "ruby-backports")
2537 (uri (rubygems-uri "backports" version))
2540 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2541 (build-system ruby-build-system)
2543 '(;; TODO: This should be default, but there is one test failure
2544 #:test-target "all_spec"))
2546 `(("ruby-mspec" ,ruby-mspec)
2547 ("ruby-activesupport" ,ruby-activesupport)))
2548 (synopsis "Backports of the features in newer Ruby versions")
2550 "Backports enables more compatibility across Ruby versions by providing
2551 backports of some features.")
2552 (home-page "https://github.com/marcandre/backports")
2553 (license license:expat)))
2555 (define-public ruby-bacon
2561 (uri (rubygems-uri "bacon" version))
2564 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2565 (build-system ruby-build-system)
2566 (synopsis "Small RSpec clone")
2567 (description "Bacon is a small RSpec clone providing all essential
2569 (home-page "https://github.com/chneukirchen/bacon")
2570 (license license:expat)))
2572 (define-public ruby-bacon-bits
2574 (name "ruby-bacon-bits")
2579 (uri (rubygems-uri "bacon-bits" version))
2582 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2583 (build-system ruby-build-system)
2587 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2588 (synopsis "Extensions to Bacon, for disabling tests, before and after
2591 "This extends the bacon testing framework with useful extensions to
2592 disable tests, have before and after blocks that run once and more.")
2593 (home-page "https://github.com/cldwalker/bacon-bits")
2594 (license license:expat)))
2596 (define-public ruby-bacon-colored-output
2598 (name "ruby-bacon-colored-output")
2603 (uri (rubygems-uri "bacon-colored_output" version))
2606 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2607 (build-system ruby-build-system)
2609 '(;; No included tests
2612 `(("ruby-bacon" ,ruby-bacon)))
2613 (synopsis "Colored output for Bacon test framework")
2615 "This package adds color through ANSI escape codes to Bacon test
2617 (home-page "https://github.com/whitequark/bacon-colored_output")
2618 (license license:expat)))
2620 (define-public ruby-connection-pool
2622 (name "ruby-connection-pool")
2626 (uri (rubygems-uri "connection_pool" version))
2629 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2630 (build-system ruby-build-system)
2632 `(("bundler" ,bundler)))
2633 (synopsis "Generic connection pool for Ruby")
2634 (description "Connection_pool provides a generic connection pooling
2635 interface for Ruby programs.")
2636 (home-page "https://github.com/mperham/connection_pool")
2637 (license license:expat)))
2639 (define-public ruby-fast-gettext
2641 (name "ruby-fast-gettext")
2643 (home-page "https://github.com/grosser/fast_gettext")
2646 (uri (git-reference (url home-page)
2647 (commit (string-append "v" version))))
2648 (file-name (git-file-name name version))
2651 "1dg14apq5sfjshhcq0idphhs7aq9ikzswhqmn689p1h76mxqr1v6"))))
2652 (build-system ruby-build-system)
2654 '(#:test-target "spec"
2655 #:phases (modify-phases %standard-phases
2656 (add-before 'check 'remove-version-constraints
2658 (delete-file "Gemfile.lock")
2660 (add-before 'check 'remove-activerecord-test
2662 ;; FIXME: This test fails because ActiveRecord depends on
2663 ;; a different version of ruby-sqlite than the currently
2666 "spec/fast_gettext/translation_repository/db_spec.rb")
2668 (add-before 'check 'disable-i18n-test
2670 ;; XXX: This test checks i18n intricasies with Rails 3 and
2671 ;; automatically disables itself for Rails 4.0, but does
2672 ;; not know about newer versions as it has not been updated
2673 ;; since 2014. Disable for later versions of Rails too.
2674 (substitute* "spec/fast_gettext/vendor/string_spec.rb"
2675 (((string-append "ActiveRecord::VERSION::MAJOR == 4 and "
2676 "ActiveRecord::VERSION::MINOR == 0"))
2677 "ActiveRecord::VERSION::MAJOR >= 4"))
2681 ("ruby-activerecord" ,ruby-activerecord)
2682 ("ruby-activesupport" ,ruby-activesupport)
2683 ("ruby-bump" ,ruby-bump)
2684 ("ruby-forking-test-runner" ,ruby-forking-test-runner)
2685 ("ruby-i18n" ,ruby-i18n)
2686 ("ruby-rubocop" ,ruby-rubocop)
2687 ("ruby-rspec" ,ruby-rspec)
2688 ("ruby-single-cov" ,ruby-single-cov)
2689 ("ruby-sqlite3" ,ruby-sqlite3)
2690 ("ruby-wwtd" ,ruby-wwtd)))
2691 (synopsis "Fast implementation of @code{GetText}")
2693 "This package provides an alternative implementation of the Ruby
2694 @code{GetText} library that is approximately 12x faster yet thread safe.")
2695 ;; Some parts are covered by the Ruby license, see file headers.
2696 (license (list license:expat license:ruby))))
2698 (define-public ruby-net-http-persistent
2700 (name "ruby-net-http-persistent")
2704 (uri (rubygems-uri "net-http-persistent" version))
2707 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2708 (build-system ruby-build-system)
2710 `(("ruby-connection-pool" ,ruby-connection-pool)
2711 ("ruby-hoe" ,ruby-hoe)))
2712 (synopsis "Persistent HTTP connection manager")
2713 (description "Net::HTTP::Persistent manages persistent HTTP connections
2714 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2715 (home-page "https://github.com/drbrain/net-http-persistent")
2716 (license license:expat)))
2718 (define-public ruby-power-assert
2720 (name "ruby-power-assert")
2724 (uri (rubygems-uri "power_assert" version))
2727 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2728 (build-system ruby-build-system)
2730 '(#:tests? #f)) ; No included tests
2732 `(("bundler" ,bundler)))
2733 (synopsis "Assert library with descriptive assertion messages")
2734 (description "Power-assert is an assertion library providing descriptive
2735 assertion messages for tests.")
2736 (home-page "https://github.com/k-tsj/power_assert")
2737 (license (list license:bsd-2 license:ruby))))
2739 (define-public ruby-powerpack
2741 (name "ruby-powerpack")
2746 (uri (rubygems-uri "powerpack" version))
2749 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2750 (build-system ruby-build-system)
2752 '(#:test-target "spec"))
2754 `(("bundler" ,bundler)
2755 ("ruby-rspec" ,ruby-rspec)
2756 ("ruby-yard" ,ruby-yard)))
2757 (synopsis "Useful extensions to core Ruby classes")
2759 "This package provides a few useful extensions to core Ruby classes,
2760 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2762 (home-page "https://github.com/bbatsov/powerpack")
2763 (license license:expat)))
2765 (define-public ruby-locale
2767 (name "ruby-locale")
2771 (uri (rubygems-uri "locale" version))
2774 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2775 (build-system ruby-build-system)
2776 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2777 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2778 ;; dependency cycle we disable tests.
2779 (arguments `(#:tests? #f))
2781 `(("bundler" ,bundler)
2782 ("ruby-yard" ,ruby-yard)))
2783 (synopsis "Ruby library providing basic localization APIs")
2785 "Ruby-Locale is the pure ruby library which provides basic APIs for
2787 (home-page "https://github.com/ruby-gettext/locale")
2788 (license (list license:lgpl3+ license:ruby))))
2790 (define-public ruby-temple
2792 (name "ruby-temple")
2797 (uri (rubygems-uri "temple" version))
2800 "060zzj7c2kicdfk6cpnn40n9yjnhfrr13d0rsbdhdij68chp2861"))))
2801 (build-system ruby-build-system)
2803 `(("ruby-tilt" ,ruby-tilt)
2804 ("ruby-bacon" ,ruby-bacon)
2805 ("ruby-erubis" ,ruby-erubis)))
2806 (synopsis "Template compilation framework in Ruby")
2808 "Temple is an abstraction and framework for compiling templates to pure
2810 (home-page "https://github.com/judofyr/temple")
2811 (license license:expat)))
2813 (define-public ruby-text
2819 (uri (rubygems-uri "text" version))
2822 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2823 (build-system ruby-build-system)
2824 (synopsis "Collection of text algorithms for Ruby")
2826 "This package provides a collection of text algorithms: Levenshtein,
2827 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2828 (home-page "https://github.com/threedaymonk/text")
2829 (license license:expat)))
2831 (define-public ruby-gettext
2833 (name "ruby-gettext")
2837 (uri (rubygems-uri "gettext" version))
2840 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2841 (build-system ruby-build-system)
2842 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2843 ;; which needs ruby-gettext. To break the dependency cycle we disable
2845 (arguments `(#:tests? #f))
2847 `(("ruby-locale" ,ruby-locale)
2848 ("ruby-text" ,ruby-text)))
2850 `(("bundler" ,bundler)
2851 ("ruby-yard" ,ruby-yard)))
2852 (synopsis "GNU gettext-like program for Ruby")
2854 "Gettext is a GNU gettext-like program for Ruby. The catalog
2855 file (po-file) used is the same as that used by GNU gettext, allowing you to
2856 use GNU gettext tools for maintenance.")
2857 (home-page "https://ruby-gettext.github.com/")
2858 (license (list license:lgpl3+ license:ruby))))
2860 (define-public ruby-packnga
2862 (name "ruby-packnga")
2866 (uri (rubygems-uri "packnga" version))
2869 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2870 (build-system ruby-build-system)
2871 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2872 ;; To break the dependency cycle we disable tests.
2873 (arguments `(#:tests? #f))
2875 `(("ruby-gettext" ,ruby-gettext)
2876 ("ruby-yard" ,ruby-yard)))
2878 `(("bundler" ,bundler)))
2879 (synopsis "Utility library to package internationalized libraries")
2881 "Packnga is a library to translate to many languages using YARD.")
2882 (home-page "http://ranguba.org/packnga/")
2883 (license license:lgpl2.0+)))
2885 (define-public ruby-test-construct
2887 (name "ruby-test-construct")
2892 (uri (rubygems-uri "test_construct" version))
2895 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2896 (build-system ruby-build-system)
2898 `(("bundler" ,bundler)
2899 ("ruby-mocha" ,ruby-mocha)
2900 ("ruby-rspec" ,ruby-rspec)))
2901 (synopsis "Creates temporary files and directories for testing")
2903 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2904 temporary files and directories during tests.")
2905 (home-page "https://github.com/bhb/test_construct")
2906 (license license:expat)))
2908 (define-public ruby-test-unit
2910 (name "ruby-test-unit")
2914 (uri (rubygems-uri "test-unit" version))
2917 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2918 (build-system ruby-build-system)
2920 `(("ruby-power-assert" ,ruby-power-assert)))
2922 `(("bundler" ,bundler)
2923 ("ruby-packnga" ,ruby-packnga)
2924 ("ruby-yard" ,ruby-yard)))
2925 (synopsis "Unit testing framework for Ruby")
2926 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2927 on xUnit principles. These were originally designed by Kent Beck, creator of
2928 extreme programming software development methodology, for Smalltalk's SUnit.
2929 It allows writing tests, checking results and automated testing in Ruby.")
2930 (home-page "https://test-unit.github.io/")
2931 (license (list license:psfl license:ruby))))
2933 (define-public ruby-markaby
2935 (name "ruby-markaby")
2940 (uri (rubygems-uri "markaby" version))
2943 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2944 (build-system ruby-build-system)
2947 (modify-phases %standard-phases
2948 ;; Run rspec manually without using the Rakefile, as the versions of
2949 ;; Rake and RSpec 2 are incompatible:
2951 ;; NoMethodError: undefined method `last_comment'
2953 (lambda* (#:key tests? #:allow-other-keys)
2958 `(("ruby-builder" ,ruby-builder)))
2960 `(("bundler" ,bundler)
2961 ("ruby-rspec" ,ruby-rspec-2)))
2962 (synopsis "Write HTML pages in pure Ruby")
2964 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2965 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2966 mixture of HTML and additional ERB syntax.")
2967 (home-page "https://markaby.github.io/")
2968 (license license:expat)))
2970 (define-public ruby-maruku
2972 (name "ruby-maruku")
2977 (uri (rubygems-uri "maruku" version))
2980 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2981 (build-system ruby-build-system)
2983 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2986 (modify-phases %standard-phases
2988 (lambda* (#:key tests? #:allow-other-keys)
2993 `(("ruby-rspec" ,ruby-rspec)
2994 ("ruby-simplecov" ,ruby-simplecov)
2995 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2996 (synopsis "Markdown interpreter in Ruby")
2998 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2999 HTML, and PDF through LaTeX.")
3000 (home-page "https://github.com/bhollis/maruku")
3001 (license license:expat)))
3003 (define-public ruby-metaclass
3005 (name "ruby-metaclass")
3009 (uri (rubygems-uri "metaclass" version))
3012 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
3013 (build-system ruby-build-system)
3016 (modify-phases %standard-phases
3017 (add-after 'unpack 'add-test-unit-to-search-path
3018 (lambda* (#:key inputs #:allow-other-keys)
3019 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3020 (substitute* "Rakefile"
3021 (("t\\.libs << \"test\"" line)
3022 (string-append line "; t.libs << \""
3023 test-unit "/lib/ruby/vendor_ruby"
3025 ,(package-version ruby-test-unit)
3029 `(("bundler" ,bundler)
3030 ("ruby-test-unit" ,ruby-test-unit)))
3031 (synopsis "Ruby library adding metaclass method to all objects")
3033 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
3035 (home-page "https://github.com/floehopper/metaclass")
3036 (license license:expat)))
3038 (define-public ruby-mkmf-lite
3040 (name "ruby-mkmf-lite")
3044 (uri (rubygems-uri "mkmf-lite" version))
3047 "0br9k6zijj1zc25n8p7f2j1mwl58nfgdknf3q13h9k156jvrir06"))))
3048 (build-system ruby-build-system)
3050 `(("ruby-ptools" ,ruby-ptools)))
3051 (synopsis "Lightweight alternative to @code{mkmf}")
3053 "@code{mkmf-lite} is a light version of Ruby's @code{mkmf.rb} designed
3054 for use as a library. It does not create packages, builds, or log files of
3055 any kind. Instead, it provides mixin methods that you can use in FFI or tests
3056 to check for the presence of header files, constants, and so on.")
3057 (home-page "https://github.com/djberg96/mkmf-lite")
3058 (license license:asl2.0)))
3060 (define-public ruby-mspec
3067 (uri (rubygems-uri "mspec" version))
3070 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
3071 (build-system ruby-build-system)
3073 '(;; TODO: 3 test failures
3074 ;; ./spec/mocks/mock_spec.rb:82
3075 ;; ./spec/utils/name_map_spec.rb:151
3076 ;; ./spec/utils/name_map_spec.rb:155
3079 (modify-phases %standard-phases
3080 (add-after 'extract-gemspec 'change-dependency-constraints
3082 (substitute* "mspec.gemspec"
3083 (("rake.*") "rake>)\n")
3084 (("rspec.*") "rspec>)\n"))
3087 (lambda* (#:key tests? #:allow-other-keys)
3089 (invoke "rspec" "spec"))
3092 `(("bundler" ,bundler)
3093 ("ruby-rake" ,ruby-rake)
3094 ("ruby-rspec" ,ruby-rspec)))
3095 (synopsis "MSpec is a specialized framework for RubySpec")
3097 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
3098 for basic features. MSpec contains additional features that assist in writing
3099 specs for Ruby implementations in ruby/spec.")
3100 (home-page "http://rubyspec.org")
3101 (license license:expat)))
3103 (define-public ruby-mysql2
3105 (name "ruby-mysql2")
3111 (url "https://github.com/brianmario/mysql2")
3113 (file-name (git-file-name name version))
3116 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
3117 (build-system ruby-build-system)
3119 '(;; TODO: Tests require a running MySQL/MariaDB service
3122 (modify-phases %standard-phases
3123 (replace 'replace-git-ls-files
3125 (substitute* "mysql2.gemspec"
3126 (("git ls-files .*`") "find . -type f |sort`"))
3128 (add-before 'install 'set-MAKEFLAGS
3129 (lambda* (#:key outputs #:allow-other-keys)
3133 "prefix=" (assoc-ref outputs "out")))
3135 ;; Move the 'check phase to after 'install, as then you can test
3136 ;; using the installed mysql2 gem in the store.
3138 (add-after 'install 'check
3139 (lambda* (#:key outputs tests? #:allow-other-keys)
3144 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
3149 `(("mariadb" ,mariadb "lib")
3150 ("mariadb-dev" ,mariadb "dev")
3153 `(("ruby-rspec" ,ruby-rspec)
3154 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3155 (synopsis "MySQL library for Ruby, binding to libmysql")
3157 "This package provides a simple, fast MySQL library for Ruby, binding to
3159 (home-page "https://github.com/brianmario/mysql2")
3160 (license license:expat)))
3162 (define-public ruby-blankslate
3164 (name "ruby-blankslate")
3168 (uri (rubygems-uri "blankslate" version))
3171 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
3172 (build-system ruby-build-system)
3175 (modify-phases %standard-phases
3177 (lambda _ (invoke "rspec" "spec/"))))))
3179 `(("bundler" ,bundler)
3180 ("ruby-rspec" ,ruby-rspec)))
3181 (synopsis "Abstract base class with no predefined methods")
3183 "BlankSlate provides an abstract base class with no predefined
3184 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
3185 as a base class when writing classes that depend upon
3186 @code{method_missing} (e.g. dynamic proxies).")
3187 (home-page "https://github.com/masover/blankslate")
3188 (license license:expat)))
3190 (define-public ruby-bond
3197 (uri (rubygems-uri "bond" version))
3200 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
3201 (build-system ruby-build-system)
3203 `(("ruby-bacon" ,ruby-bacon)
3204 ("ruby-bacon-bits" ,ruby-bacon-bits)
3205 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
3206 (synopsis "Bond can provide custom autocompletion for arguments, methods
3209 "Bond can autocomplete argument(s) to methods, uniquely completing per
3210 module, per method and per argument. Bond provides a configuration system and
3211 a DSL for creating custom completions and completion rules. Bond can also
3212 load completions that ship with gems. Bond is able to offer more than irb's
3213 completion since it uses the full line of input when completing as opposed to
3214 irb's last-word approach.")
3215 (home-page "http://tagaholic.me/bond/")
3216 (license license:expat)))
3218 (define-public ruby-idn-ruby
3220 (name "ruby-idn-ruby")
3225 (uri (rubygems-uri "idn-ruby" version))
3228 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
3229 (build-system ruby-build-system)
3232 (modify-phases %standard-phases
3234 (add-after 'install 'check
3235 (lambda* (#:key tests? outputs #:allow-other-keys)
3237 (let* ((gem-file (cadr (find-files "." "\\.gem")))
3238 (name-and-version (basename gem-file ".gem")))
3242 (assoc-ref outputs "out")
3243 "/lib/ruby/vendor_ruby/gems/"
3246 (find-files "./test" ".*\\.rb"))))
3249 `(("libidn" ,libidn)))
3250 (synopsis "Ruby Bindings for the GNU LibIDN library")
3252 "Ruby Bindings for the GNU LibIDN library, an implementation of the
3253 Stringprep, Punycode and IDNA specifications. These are used to encode and
3254 decode internationalized domain + names according to the IDNA2003
3257 Included are the most important parts of the Stringprep, Punycode and IDNA
3258 APIs like performing Stringprep processings, encoding to and decoding from
3259 Punycode strings and converting entire domain names to and from the ACE
3261 (home-page "https://github.com/deepfryed/idn-ruby")
3262 (license license:asl2.0)))
3264 (define-public ruby-instantiator
3266 (name "ruby-instantiator")
3270 (uri (rubygems-uri "instantiator" version))
3273 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
3274 (build-system ruby-build-system)
3277 (modify-phases %standard-phases
3278 (add-after 'unpack 'add-test-unit-to-search-path
3279 (lambda* (#:key inputs #:allow-other-keys)
3280 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3281 (substitute* "Rakefile"
3282 (("t\\.libs << \"test\"" line)
3283 (string-append line "; t.libs << \""
3284 test-unit "/lib/ruby/vendor_ruby"
3286 ,(package-version ruby-test-unit)
3290 `(("ruby-blankslate" ,ruby-blankslate)))
3292 `(("bundler" ,bundler)
3293 ("ruby-test-unit" ,ruby-test-unit)))
3294 (synopsis "Instantiate an arbitrary Ruby class")
3296 "Instantiator lets you instantiate an arbitrary Ruby class without
3297 knowing anything about the constructor.")
3298 (home-page "https://github.com/floehopper/instantiator")
3299 (license license:expat)))
3301 (define-public ruby-introspection
3303 (name "ruby-introspection")
3307 (uri (rubygems-uri "introspection" version))
3310 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
3311 (build-system ruby-build-system)
3314 (modify-phases %standard-phases
3315 (add-after 'unpack 'add-test-unit-to-search-path
3316 (lambda* (#:key inputs #:allow-other-keys)
3317 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
3318 (substitute* "Rakefile"
3319 (("t\\.libs << \"test\"" line)
3320 (string-append line "; t.libs << \""
3321 test-unit "/lib/ruby/vendor_ruby"
3323 ,(package-version ruby-test-unit)
3327 `(("ruby-instantiator" ,ruby-instantiator)
3328 ("ruby-metaclass" ,ruby-metaclass)))
3330 `(("bundler" ,bundler)
3331 ("ruby-blankslate" ,ruby-blankslate)
3332 ("ruby-test-unit" ,ruby-test-unit)))
3333 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
3335 "Introspection provides tools to inspect the hierarchy of method
3336 definitions on a Ruby object.")
3337 (home-page "https://github.com/floehopper/introspection")
3338 (license license:expat)))
3340 (define-public ruby-redcarpet
3342 (name "ruby-redcarpet")
3346 (uri (rubygems-uri "redcarpet" version))
3349 "0skcyx1h8b5ms0rp2zm3ql6g322b8c1adnkwkqyv7z3kypb4bm7k"))))
3350 (build-system ruby-build-system)
3353 (modify-phases %standard-phases
3354 ;; The gem archive does not include the conformance tests.
3355 (add-after 'unpack 'disable-conformance-tests
3357 (substitute* "Rakefile"
3358 (("task :test => %w\\[test:unit test:conformance\\]")
3359 "task :test => %w[test:unit]"))
3362 `(("bundler" ,bundler)
3363 ("ruby-test-unit" ,ruby-test-unit)
3364 ("ruby-rake-compiler" ,ruby-rake-compiler)))
3365 (synopsis "Extensible Markdown to (X)HTML converter")
3367 "Redcarpet is an extensible Ruby library for Markdown processing and
3368 conversion to (X)HTML.")
3369 (home-page "https://github.com/vmg/redcarpet")
3370 (license license:expat)))
3372 (define-public ruby-rerun
3379 (uri (rubygems-uri "rerun" version))
3382 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
3383 (build-system ruby-build-system)
3385 '(#:tests? #f)) ; No included tests
3387 `(("ruby-listen" ,ruby-listen)))
3388 (synopsis "Run a process, and restart when some monitored files change")
3390 "Rerun is a tool to launch programs, then monitor the file system, and
3391 restart the program when any of the monitored files change. It's written in
3392 Ruby, but can be used for all programs.")
3393 (home-page "https://github.com/alexch/rerun/")
3394 (license license:expat)))
3396 (define-public ruby-maxitest
3398 (name "ruby-maxitest")
3400 (home-page "https://github.com/grosser/maxitest")
3402 ;; Pull from git because the gem does not contain tests.
3406 (commit (string-append "v" version))))
3407 (file-name (git-file-name name version))
3410 "07b3j0bv3dx5j42jlvpvl07aaxplyi6wq688y3jl8y528ww2hjz8"))))
3411 (build-system ruby-build-system)
3413 '(#:test-target "default"
3414 #:phases (modify-phases %standard-phases
3415 (replace 'replace-git-ls-files
3417 (substitute* "maxitest.gemspec"
3418 (("`git ls-files lib/ bin/ MIT-LICENSE Readme.md`")
3419 "`find lib/ bin/ MIT-LICENSE Readme.md -type f | sort`"))
3421 (add-before 'check 'remove-version-constraints
3423 ;; Don't use specific versions of dependencies, instead
3424 ;; take whatever is available in Guix.
3425 (delete-file "Gemfile.lock")
3427 (add-before 'check 'add-mtest-on-PATH
3429 ;; Tests use 'mtest' which is not automatically added on
3431 (setenv "PATH" (string-append (getcwd) "/bin:"
3436 ("ruby-bump" ,ruby-bump)
3437 ("ruby-byebug" ,ruby-byebug)
3438 ("ruby-rspec" ,ruby-rspec)
3439 ("ruby-wwtd" ,ruby-wwtd)))
3441 `(("ruby-minitest" ,ruby-minitest)))
3442 (synopsis "Minitest with extra features")
3444 "Maxitest is a wrapper around Minitest with extra functionality such
3445 as timeouts, an @command{mtest} executable that can run tests by line
3446 number, support for interrupted tests, better backtraces, and more.")
3447 (license license:expat)))
3449 (define-public ruby-mocha
3455 (uri (rubygems-uri "mocha" version))
3458 "0hxmkm8qxd04vwj8mqnpyrf2dwy7g1k9zipdfhl4y71cw7ijm9n4"))))
3459 (build-system ruby-build-system)
3462 (modify-phases %standard-phases
3463 (add-before 'check 'remove-rubocop-dependency
3465 ;; Disable dependency on Rubocop, which is just a linter,
3466 ;; and would introduce a circular dependency.
3467 (substitute* "mocha.gemspec"
3472 `(("ruby-introspection" ,ruby-introspection)))
3473 (synopsis "Mocking and stubbing library for Ruby")
3475 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3476 allows mocking and stubbing of methods on real (non-mock) classes.")
3477 (home-page "http://gofreerange.com/mocha/docs")
3478 ;; Mocha can be used with either license at the users choice.
3479 (license (list license:expat license:ruby))))
3481 (define-public ruby-mocha-on-bacon
3483 (name "ruby-mocha-on-bacon")
3488 (uri (rubygems-uri "mocha-on-bacon" version))
3491 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3492 (build-system ruby-build-system)
3494 ;; rubygems.org release missing tests
3496 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3497 (synopsis "Mocha adapter for Bacon")
3499 "This package provides a Mocha adapter for Bacon, allowing you to use the
3500 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3502 "https://github.com/alloy/mocha-on-bacon")
3503 (license license:expat)))
3505 (define-public ruby-net-ssh
3507 (name "ruby-net-ssh")
3511 (uri (rubygems-uri "net-ssh" version))
3514 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3515 (build-system ruby-build-system)
3517 `(("bundler" ,bundler)
3518 ("ruby-mocha" ,ruby-mocha)
3519 ("ruby-test-unit" ,ruby-test-unit)))
3520 (synopsis "Ruby implementation of the SSH2 client protocol")
3521 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3522 client protocol. It allows you to write programs that invoke and interact
3523 with processes on remote servers, via SSH2.")
3524 (home-page "https://github.com/net-ssh/net-ssh")
3525 (license license:expat)))
3527 (define-public ruby-net-scp
3529 (name "ruby-net-scp")
3530 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3531 (version "1.2.2.rc2")
3536 (url "https://github.com/net-ssh/net-scp")
3537 (commit (string-append "v" version))))
3538 (file-name (git-file-name name version))
3540 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3541 (build-system ruby-build-system)
3543 `(("bundler" ,bundler)
3544 ("ruby-test-unit" ,ruby-test-unit)
3545 ("ruby-mocha" ,ruby-mocha)))
3547 `(("ruby-net-ssh" ,ruby-net-ssh)))
3548 (synopsis "Pure-Ruby SCP client library")
3549 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3551 (home-page "https://github.com/net-ssh/net-scp")
3552 (license license:expat)))
3554 (define-public ruby-minitest
3556 (name "ruby-minitest")
3560 (uri (rubygems-uri "minitest" version))
3563 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3564 (build-system ruby-build-system)
3566 `(("ruby-hoe" ,ruby-hoe)))
3567 (synopsis "Small test suite library for Ruby")
3568 (description "Minitest provides a complete suite of Ruby testing
3569 facilities supporting TDD, BDD, mocking, and benchmarking.")
3570 (home-page "https://github.com/seattlerb/minitest")
3571 (license license:expat)))
3573 ;; This is the last release of Minitest 4, which is used by some packages.
3574 (define-public ruby-minitest-4
3575 (package (inherit ruby-minitest)
3579 (uri (rubygems-uri "minitest" version))
3582 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3585 (modify-phases %standard-phases
3586 (add-after 'unpack 'remove-unsupported-method
3588 (substitute* "Rakefile"
3589 (("self\\.rubyforge_name = .*") ""))
3591 (add-after 'build 'exclude-failing-tests
3593 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3595 (delete-file "test/minitest/test_minitest_spec.rb")
3598 (define-public ruby-minitest-around
3600 (name "ruby-minitest-around")
3605 (uri (rubygems-uri "minitest-around" version))
3608 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3609 (build-system ruby-build-system)
3612 (modify-phases %standard-phases
3613 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3615 (substitute* "minitest-around.gemspec"
3616 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3619 `(("ruby-minitest" ,ruby-minitest)))
3621 `(("bundler" ,bundler)
3622 ("ruby-cucumber" ,ruby-cucumber)
3623 ("ruby-bump" ,ruby-bump)
3624 ("ruby-test-construct" ,ruby-test-construct)))
3625 (synopsis "Run code around tests in Minitest")
3627 "This library provides a way to run code around tests in Minitest,
3628 written using either the unit test or spec style.")
3629 (home-page "https://github.com/splattael/minitest-around")
3630 (license license:expat)))
3632 (define-public ruby-minitest-sprint
3634 (name "ruby-minitest-sprint")
3638 (uri (rubygems-uri "minitest-sprint" version))
3641 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3642 (build-system ruby-build-system)
3644 `(("ruby-hoe" ,ruby-hoe)
3645 ("ruby-minitest" ,ruby-minitest)))
3646 (synopsis "Fast test suite runner for minitest")
3647 (description "Minitest-sprint is a test runner for minitest that makes it
3648 easier to re-run individual failing tests.")
3649 (home-page "https://github.com/seattlerb/minitest-sprint")
3650 (license license:expat)))
3652 (define-public ruby-minitest-bacon
3654 (name "ruby-minitest-bacon")
3658 (uri (rubygems-uri "minitest-bacon" version))
3661 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3662 (build-system ruby-build-system)
3664 `(("ruby-hoe" ,ruby-hoe)))
3666 `(("ruby-minitest" ,ruby-minitest)))
3667 (synopsis "Bacon compatibility library for minitest")
3668 (description "Minitest-bacon extends minitest with bacon-like
3669 functionality, making it easier to migrate test suites from bacon to minitest.")
3670 (home-page "https://github.com/seattlerb/minitest-bacon")
3671 (license license:expat)))
3673 (define-public ruby-minitest-focus
3675 (name "ruby-minitest-focus")
3680 (uri (rubygems-uri "minitest-focus" version))
3683 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3684 (build-system ruby-build-system)
3686 `(("ruby-minitest" ,ruby-minitest)))
3688 `(("ruby-hoe" ,ruby-hoe)))
3689 (synopsis "Allows a few specific tests to be focused on")
3691 "@code{minitest-focus} gives the ability focus on a few tests with ease
3692 without having to use command-line arguments. It introduces a @code{focus}
3693 class method for use in testing classes, specifying that the next defined test
3695 (home-page "https://github.com/seattlerb/minitest-focus")
3696 (license license:expat)))
3698 (define-public ruby-minitest-pretty-diff
3699 ;; Use git reference because gem is out of date and does not contain testing
3700 ;; script. There are no releases on GitHub.
3701 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3703 (name "ruby-minitest-pretty-diff")
3704 (version (string-append "0.1-1." (string-take commit 8)))
3708 (url "https://github.com/adammck/minitest-pretty_diff")
3710 (file-name (string-append name "-" version "-checkout"))
3713 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3714 (build-system ruby-build-system)
3717 (modify-phases %standard-phases
3720 (invoke "script/test"))))))
3722 `(("bundler" ,bundler)
3723 ("ruby-turn" ,ruby-turn)))
3724 (synopsis "Pretty-print hashes and arrays in MiniTest")
3726 "@code{minitest-pretty_diff} monkey-patches
3727 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3728 diffing them. This makes it easier to spot differences between nested
3729 structures when tests fail.")
3730 (home-page "https://github.com/adammck/minitest-pretty_diff")
3731 (license license:expat))))
3733 (define-public ruby-minitest-moar
3735 (name "ruby-minitest-moar")
3740 (uri (rubygems-uri "minitest-moar" version))
3743 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3744 (build-system ruby-build-system)
3747 (modify-phases %standard-phases
3748 (add-before 'check 'clean-dependencies
3750 ;; Remove all gems defined in the Gemfile because these are not
3752 (substitute* "Gemfile"
3754 ;; Remove byebug as not needed to run tests.
3755 (substitute* "test/test_helper.rb"
3756 (("require 'byebug'") ""))
3759 `(("bundler" ,bundler)
3760 ("ruby-minitest" ,ruby-minitest)))
3761 (synopsis "Extra features and changes to MiniTest")
3762 (description "@code{MiniTest Moar} add some additional features and
3763 changes some default behaviours in MiniTest. For instance, Moar replaces the
3764 MiniTest @code{Object#stub} with a global @code{stub} method.")
3765 (home-page "https://github.com/dockyard/minitest-moar")
3766 (license license:expat)))
3768 (define-public ruby-minitest-bonus-assertions
3770 (name "ruby-minitest-bonus-assertions")
3775 (uri (rubygems-uri "minitest-bonus-assertions" version))
3778 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3779 (build-system ruby-build-system)
3782 (modify-phases %standard-phases
3783 (add-before 'check 'clean-dependencies
3785 ;; Remove unneeded require statement that would entail another
3787 (substitute* "test/minitest_config.rb"
3788 (("require 'minitest/bisect'") ""))
3791 `(("ruby-hoe" ,ruby-hoe)
3792 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3793 ("ruby-minitest-focus" ,ruby-minitest-focus)
3794 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3795 (synopsis "Bonus assertions for @code{Minitest}")
3797 "Minitest bonus assertions provides extra MiniTest assertions. For
3798 instance, it provides @code{assert_true}, @code{assert_false} and
3799 @code{assert_set_equal}.")
3800 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3801 (license license:expat)))
3803 (define-public ruby-minitest-reporters
3805 (name "ruby-minitest-reporters")
3810 (uri (rubygems-uri "minitest-reporters" version))
3813 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3814 (build-system ruby-build-system)
3817 (modify-phases %standard-phases
3818 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3819 ;; including it as an input can lead to circular dependencies.
3820 (add-after 'unpack 'remove-rubocop-from-Rakefile
3822 (substitute* "Rakefile"
3823 (("require 'rubocop/rake\\_task'") "")
3824 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3826 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3828 (substitute* "minitest-reporters.gemspec"
3829 ((".*%q<rubocop>.*") "\n"))
3832 `(("ruby-ansi" ,ruby-ansi)
3833 ("ruby-builder" ,ruby-builder)
3834 ("ruby-minitest" ,ruby-minitest)
3835 ("ruby-progressbar" ,ruby-progressbar)))
3837 `(("bundler" ,bundler)
3838 ("ruby-maruku" ,ruby-maruku)))
3839 (synopsis "Enhanced reporting for Minitest tests")
3841 "@code{minitest/reporters} provides a custom Minitest runner to improve
3842 how the test state is reported. A number of different reporters are
3843 available, including a spec reporter, progress bar reporter, a HTML
3845 (home-page "https://github.com/kern/minitest-reporters")
3846 (license license:expat)))
3848 (define-public ruby-minitest-rg
3850 (name "ruby-minitest-rg")
3855 (uri (rubygems-uri "minitest-rg" version))
3858 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3859 (build-system ruby-build-system)
3861 ;; Some tests fail even outside Guix, so disable tests.
3862 ;; https://github.com/blowmage/minitest-rg/issues/12
3863 ;; https://github.com/blowmage/minitest-rg/pull/13
3866 `(("ruby-minitest" ,ruby-minitest)))
3867 (synopsis "Coloured output for Minitest")
3869 "@code{minitest-rg} changes the colour of the output from Minitest.")
3870 (home-page "https://blowmage.com/minitest-rg/")
3871 (license license:expat)))
3873 (define-public ruby-minitest-hooks
3875 (name "ruby-minitest-hooks")
3880 (uri (rubygems-uri "minitest-hooks" version))
3883 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3884 (build-system ruby-build-system)
3886 '(#:test-target "spec"))
3888 `(("ruby-sequel" ,ruby-sequel)
3889 ("ruby-sqlite3" ,ruby-sqlite3)))
3890 (synopsis "Hooks for the minitest framework")
3892 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3893 @code{around_all} hooks for Minitest. This allows, for instance, running each
3894 suite of specs inside a database transaction, running each spec inside its own
3895 savepoint inside that transaction. This can significantly speed up testing
3896 for specs that share expensive database setup code.")
3897 (home-page "https://github.com/jeremyevans/minitest-hooks")
3898 (license license:expat)))
3900 (define-public ruby-daemons
3902 (name "ruby-daemons")
3906 (uri (rubygems-uri "daemons" version))
3909 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3910 (build-system ruby-build-system)
3912 `(#:tests? #f)) ; no test suite
3913 (synopsis "Daemonize Ruby programs")
3914 (description "Daemons provides a way to wrap existing Ruby scripts to be
3915 run as a daemon and to be controlled by simple start/stop/restart commands.")
3916 (home-page "https://github.com/thuehlinger/daemons")
3917 (license license:expat)))
3919 (define-public ruby-data_uri
3921 (name "ruby-data_uri")
3926 (uri (rubygems-uri "data_uri" version))
3929 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3930 (build-system ruby-build-system)
3931 (synopsis "URI class for parsing data URIs")
3933 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3934 embedded inside a URI. The URI::Data class provides support for parsing these
3935 URIs using the normal URI.parse method.")
3936 (home-page "https://github.com/dball/data_uri")
3937 (license license:expat)))
3939 (define-public ruby-deep-merge
3941 (name "ruby-deep-merge")
3943 (home-page "https://github.com/danielsdeleo/deep_merge")
3944 ;; The Rubygem source does not contain the gemspec required for tests.
3947 (uri (git-reference (url home-page) (commit version)))
3948 (file-name (git-file-name name version))
3951 "0c9rk23ilhc0n4489y6lda2wzphpzh6ish6fahlbpjhxn82wb931"))))
3952 (build-system ruby-build-system)
3954 `(("ruby-minitest" ,ruby-minitest)))
3955 (synopsis "Recursively merge hashes")
3957 "Deep Merge is a set of utility functions for @code{Hash}. It permits
3958 you to merge elements inside a hash together recursively.")
3959 (license license:expat)))
3961 (define-public ruby-git
3967 (uri (rubygems-uri "git" version))
3970 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3971 (build-system ruby-build-system)
3973 `(#:tests? #f ; no tests
3974 #:phases (modify-phases %standard-phases
3975 (add-after 'install 'patch-git-binary
3976 (lambda* (#:key inputs outputs #:allow-other-keys)
3977 ;; Make the default git binary an absolute path to the
3979 (let ((git (string-append (assoc-ref inputs "git")
3981 (config (string-append
3982 (assoc-ref outputs "out")
3983 "/lib/ruby/vendor_ruby/gems/git-"
3984 ,version "/lib/git/config.rb")))
3985 (substitute* (list config)
3987 (string-append "'" git "'")))
3991 (synopsis "Ruby wrappers for Git")
3992 (description "Ruby/Git is a Ruby library that can be used to create, read
3993 and manipulate Git repositories by wrapping system calls to the git binary.")
3994 (home-page "https://github.com/schacon/ruby-git")
3995 (license license:expat)))
3997 (define-public ruby-hocon
4001 (home-page "https://github.com/puppetlabs/ruby-hocon")
4004 (uri (git-reference (url home-page) (commit version)))
4005 (file-name (git-file-name name version))
4008 "172hh2zr0n9nnszv0qvlgwszgkrq84yahrg053m68asy79zpmbqr"))))
4009 (build-system ruby-build-system)
4011 '(#:phases (modify-phases %standard-phases
4013 (lambda* (#:key tests? #:allow-other-keys)
4016 (format #t "test suite not run~%"))
4019 `(("bundler" ,bundler)
4020 ("ruby-rspec" ,ruby-rspec)))
4021 (synopsis "HOCON config library")
4023 "This package provides Ruby support for the @acronym{HOCON,
4024 Human-Optimized Config Object Notation} configuration file format. It
4025 supports parsing and modifying HOCON and JSON files, and rendering parsed
4026 objects back to a @code{String}.")
4027 (license license:asl2.0)))
4029 (define-public ruby-slop
4035 (uri (rubygems-uri "slop" version))
4038 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
4039 (build-system ruby-build-system)
4041 `(("ruby-minitest" ,ruby-minitest)))
4042 (synopsis "Ruby command line option parser")
4043 (description "Slop provides a Ruby domain specific language for gathering
4044 options and parsing command line flags.")
4045 (home-page "https://github.com/leejarvis/slop")
4046 (license license:expat)))
4048 (define-public ruby-slop-3
4049 (package (inherit ruby-slop)
4053 (uri (rubygems-uri "slop" version))
4056 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
4058 (define-public ruby-multi-xml
4060 (name "ruby-multi-xml")
4065 (uri (rubygems-uri "multi_xml" version))
4068 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
4069 (build-system ruby-build-system)
4071 '(#:tests? #f)) ; No included tests
4072 (synopsis "Swappable XML backends for Ruby")
4074 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
4075 Nokogiri, Ox, or REXML.")
4076 (home-page "https://github.com/sferik/multi_xml")
4077 (license license:expat)))
4079 (define-public ruby-multipart-post
4081 (name "ruby-multipart-post")
4085 (uri (rubygems-uri "multipart-post" version))
4088 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
4089 (build-system ruby-build-system)
4091 `(("bundler" ,bundler)))
4092 (synopsis "Multipart POST library for Ruby")
4093 (description "Multipart-Post Adds multipart POST capability to Ruby's
4095 (home-page "https://github.com/nicksieger/multipart-post")
4096 (license license:expat)))
4098 (define-public ruby-multi-json
4100 (name "ruby-multi-json")
4105 ;; Tests are not distributed at rubygems.org so download from GitHub
4108 (url "https://github.com/intridea/multi_json")
4109 (commit (string-append "v" version))))
4110 (file-name (git-file-name name version))
4113 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
4114 (build-system ruby-build-system)
4117 (modify-phases %standard-phases
4118 (add-after 'unpack 'remove-signing-key-reference
4120 (substitute* "multi_json.gemspec"
4121 ((".*spec.signing_key.*") ""))
4124 `(("bundler" ,bundler)
4125 ("ruby-rspec" ,ruby-rspec)
4126 ("ruby-yard" ,ruby-yard)
4127 ("ruby-json-pure" ,ruby-json-pure)
4128 ("ruby-oj" ,ruby-oj)
4129 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
4130 (synopsis "Common interface to multiple JSON libraries for Ruby")
4132 "This package provides a common interface to multiple JSON libraries,
4133 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
4134 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
4135 (home-page "https://github.com/intridea/multi_json")
4136 (license license:expat)))
4138 (define-public ruby-multi-test
4140 (name "ruby-multi-test")
4145 (uri (rubygems-uri "multi_test" version))
4148 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
4149 (build-system ruby-build-system)
4151 '(;; Tests require different sets of specific gem versions to be available,
4152 ;; and there is no gemfile that specifies the newest versions of
4153 ;; dependencies to be tested.
4156 "Interface to testing libraries loaded into a running Ruby process")
4158 "@code{multi_test} provides a uniform interface onto whatever testing
4159 libraries that have been loaded into a running Ruby process to help control
4160 rogue test/unit/autorun requires.")
4161 (home-page "https://github.com/cucumber/multi_test")
4162 (license license:expat)))
4164 (define-public ruby-arel
4170 (uri (rubygems-uri "arel" version))
4173 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
4174 (build-system ruby-build-system)
4175 (arguments '(#:tests? #f)) ; no tests
4176 (home-page "https://github.com/rails/arel")
4177 (synopsis "SQL AST manager for Ruby")
4178 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
4179 Ruby. It simplifies the generation of complex SQL queries and adapts to
4180 various relational database implementations.")
4181 (license license:expat)))
4183 (define-public ruby-marcel
4185 (name "ruby-marcel")
4190 (uri (rubygems-uri "marcel" version))
4193 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
4194 (build-system ruby-build-system)
4196 '(;; No included tests
4199 `(("ruby-mimemagic" ,ruby-mimemagic)))
4200 (synopsis "MIME type detection using magic numbers, filenames and extensions")
4202 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
4203 Extensions} type detection using magic numbers, filenames, and extensions")
4204 (home-page "https://github.com/basecamp/marcel")
4205 (license license:expat)))
4207 (define-public ruby-minitar
4208 ;; We package from the GitHub source to fix the security issue reported at
4209 ;; https://github.com/halostatue/minitar/issues/16.
4210 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
4212 (name "ruby-minitar")
4213 (version (string-append "0.5.4-1." (string-take commit 8)))
4218 (url "https://github.com/halostatue/minitar")
4220 (file-name (string-append name "-" version "-checkout"))
4223 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
4224 (build-system ruby-build-system)
4226 '(#:tests? #f)) ; missing a gemspec
4227 (synopsis "Ruby library and utility for handling tar archives")
4229 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
4230 that provides the ability to deal with POSIX tar archive files.")
4231 (home-page "http://www.github.com/atoulme/minitar")
4232 (license (list license:gpl2+ license:ruby)))))
4234 (define-public ruby-mini-portile
4236 (name "ruby-mini-portile")
4241 (uri (rubygems-uri "mini_portile" version))
4244 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
4245 (build-system ruby-build-system)
4247 '(#:tests? #f)) ; tests require network access
4248 (synopsis "Ports system for Ruby developers")
4249 (description "Mini-portile is a port/recipe system for Ruby developers.
4250 It provides a standard way to compile against specific versions of libraries
4251 to reproduce user environments.")
4252 (home-page "https://github.com/flavorjones/mini_portile")
4253 (license license:expat)))
4255 (define-public ruby-mini-portile-2
4256 (package (inherit ruby-mini-portile)
4260 (uri (rubygems-uri "mini_portile2" version))
4263 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
4265 (define-public ruby-nokogiri
4267 (name "ruby-nokogiri")
4271 (uri (rubygems-uri "nokogiri" version))
4274 "12j76d0bp608932xkzmfi638c7aqah57l437q8494znzbj610qnm"))))
4275 (build-system ruby-build-system)
4277 ;; Tests fail because Nokogiri can only test with an installed extension,
4278 ;; and also because many test framework dependencies are missing.
4280 #:gem-flags (list "--" "--use-system-libraries"
4281 (string-append "--with-xml2-include="
4282 (assoc-ref %build-inputs "libxml2")
4283 "/include/libxml2" ))
4285 (modify-phases %standard-phases
4286 (add-before 'build 'patch-extconf
4287 ;; 'pkg-config' is not included in the GEM_PATH during
4288 ;; installation, so we add it directly to the load path.
4289 (lambda* (#:key inputs #:allow-other-keys)
4290 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
4291 (substitute* "ext/nokogiri/extconf.rb"
4292 (("gem 'pkg-config'.*")
4293 (string-append "$:.unshift '"
4294 pkg-config "/lib/ruby/vendor_ruby"
4296 ,(package-version ruby-pkg-config)
4300 `(("ruby-hoe" ,ruby-hoe)))
4303 ("libxml2" ,libxml2)
4304 ("libxslt" ,libxslt)))
4306 `(("ruby-mini-portile" ,ruby-mini-portile-2)
4307 ("ruby-pkg-config" ,ruby-pkg-config)))
4308 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
4309 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
4310 both CSS3 selector and XPath 1.0 support.")
4311 (home-page "http://www.nokogiri.org/")
4312 (license license:expat)))
4314 (define-public ruby-method-source
4316 (name "ruby-method-source")
4321 (uri (rubygems-uri "method_source" version))
4324 "1pnyh44qycnf9mzi1j6fywd5fkskv3x7nmsqrrws0rjn5dd4ayfp"))))
4325 (build-system ruby-build-system)
4327 `(#:test-target "spec"))
4329 `(("ruby-rspec" ,ruby-rspec)
4331 (synopsis "Retrieve the source code for Ruby methods")
4332 (description "Method_source retrieves the source code for Ruby methods.
4333 Additionally, it can extract source code from Proc and Lambda objects or just
4335 (home-page "https://github.com/banister/method_source")
4336 (license license:expat)))
4338 (define-public ruby-coderay
4340 (name "ruby-coderay")
4345 (uri (rubygems-uri "coderay" version))
4348 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
4349 (build-system ruby-build-system)
4351 '(#:tests? #f)) ; missing test files
4352 (synopsis "Ruby syntax highlighting library")
4353 (description "Coderay is a Ruby library that provides syntax highlighting
4354 for select languages.")
4355 (home-page "http://coderay.rubychan.de")
4356 (license license:expat)))
4358 (define-public ruby-cuke-modeler
4360 (name "ruby-cuke-modeler")
4365 (uri (rubygems-uri "cuke_modeler" version))
4368 "19smj3g3wvz0203l549sadpcxgh0ir350a6k78gq0bmlv9cchmjb"))))
4369 (build-system ruby-build-system)
4370 (arguments `(#:tests? #f)) ;no test suite in gem
4372 `(("ruby-gherkin" ,ruby-gherkin)))
4373 (synopsis "Gherkin test suite analysis tool")
4374 (description "CukeModeler facilitates modeling a test suite that is
4375 written in Gherkin (e.g. Cucumber, SpecFlow, Lettuce, etc.). It does this by
4376 providing an abstraction layer on top of the Abstract Syntax Tree (AST) that
4377 the @code{cucumber-gherkin} generates when parsing features, as well as
4378 providing models for feature files and directories in order to be able to have
4379 a fully traversable model tree of a test suite's structure. These models can
4380 then be analyzed or manipulated more easily than the underlying AST layer.")
4381 (home-page "https://github.com/enkessler/cuke_modeler")
4382 (license license:expat)))
4384 (define-public ruby-parallel-tests
4386 (name "ruby-parallel-tests")
4388 (home-page "https://github.com/grosser/parallel_tests")
4393 (commit (string-append "v" version))))
4394 (file-name (string-append name version))
4397 "08a6ndqn2dqacmc7yg48k0dh2rfrynvhkd5hiay16dl9m1r9q8pz"))))
4398 (build-system ruby-build-system)
4400 '(#:test-target "default"
4401 #:phases (modify-phases %standard-phases
4402 (add-after 'patch-source-shebangs 'patch-shell-invokations
4404 (substitute* '("lib/parallel_tests/tasks.rb"
4405 "spec/parallel_tests/tasks_spec.rb")
4406 (("/bin/sh") (which "sh"))
4407 (("/bin/bash") (which "bash")))
4409 (add-before 'check 'remove-version-constraints
4411 ;; Remove hard coded version constraints, instead just
4412 ;; use whatever versions are available in Guix.
4413 (delete-file "Gemfile.lock")
4414 (substitute* "Gemfile"
4420 (add-before 'check 'disable-rails-test
4422 ;; XXX: This test attempts to download and run the test
4423 ;; suites of multiple Rails versions(!) directly.
4424 (delete-file "spec/rails_spec.rb")
4426 (add-before 'check 'set-HOME
4428 ;; Some tests check the output of Bundler, and fail when
4429 ;; Bundler warns that /homeless-shelter does not exist.
4430 (setenv "HOME" "/tmp")
4433 `(("ruby-bump" ,ruby-bump)
4434 ("ruby-cucumber" ,ruby-cucumber)
4435 ("ruby-cuke-modeler" ,ruby-cuke-modeler)
4436 ("ruby-minitest" ,ruby-minitest)
4437 ("ruby-rake" ,ruby-rake)
4438 ("ruby-rspec" ,ruby-rspec)
4439 ("ruby-spinach" ,ruby-spinach)))
4441 `(("ruby-parallel" ,ruby-parallel)))
4442 (synopsis "Run tests in parallel")
4444 "This package can speed up @code{Test::Unit}, @code{RSpec},
4445 @code{Cucumber}, and @code{Spinach} tests by running them concurrently
4446 across multiple CPU cores.")
4447 (license license:expat)))
4449 (define-public ruby-parser
4451 (name "ruby-parser")
4456 (uri (rubygems-uri "parser" version))
4459 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
4460 (build-system ruby-build-system)
4462 `(("bundler" ,bundler)
4463 ("ruby-cliver" ,ruby-cliver)
4464 ("ruby-simplecov" ,ruby-simplecov)
4465 ("ruby-racc" ,ruby-racc)))
4467 `(("ragel" ,ragel)))
4469 `(("ruby-ast" ,ruby-ast)))
4470 (synopsis "Ruby parser written in pure Ruby")
4472 "This package provides a Ruby parser written in pure Ruby.")
4473 (home-page "https://github.com/whitequark/parser")
4474 (license license:expat)))
4476 (define-public ruby-sexp-processor
4478 (name "ruby-sexp-processor")
4483 (uri (rubygems-uri "sexp_processor" version))
4486 "0d1vks77xnd0m3s94a58f9bkdwlaml5qdkmprx279m2s0pc2gv55"))))
4487 (build-system ruby-build-system)
4489 ;; TODO: Add ruby-minitest-proveit once available.
4490 `(("hoe" ,ruby-hoe)))
4491 (synopsis "ParseTree fork which includes generic S-exp processing tools")
4492 (description "The sexp_processor package is derived from ParseTree, but
4493 contrary to ParseTree, it includes all the generic S-exp processing tools.
4494 Amongst the included tools are @code{Sexp}, @code{SexpProcessor} and
4495 @code{Environment}")
4496 (home-page "https://github.com/seattlerb/sexp_processor")
4497 (license license:expat)))
4499 (define-public ruby-ruby-parser
4501 (name "ruby-ruby-parser")
4506 (uri (rubygems-uri "ruby_parser" version))
4509 "09qcdyjjw3p7g6cjm5m9swkms1xnv35ndiy7yw24cas16qrhha6c"))))
4510 (build-system ruby-build-system)
4514 ("unifdef" ,unifdef)))
4516 `(("ruby-sexp-processor" ,ruby-sexp-processor)))
4517 (home-page "https://github.com/seattlerb/ruby_parser/")
4518 (synopsis "Ruby parser written in pure Ruby")
4519 (description "The ruby_parser (RP) package provides a Ruby parser written
4520 in pure Ruby. It outputs S-expressions which can be manipulated and converted
4521 back to Ruby via the @code{ruby2ruby} library.")
4522 (license license:expat)))
4524 (define-public ruby-prawn-manual-builder
4526 (name "ruby-prawn-manual-builder")
4531 (uri (rubygems-uri "prawn-manual_builder" version))
4533 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
4534 (build-system ruby-build-system)
4536 '(#:tests? #f ; no included tests
4538 (modify-phases %standard-phases
4539 (add-after 'extract-gemspec 'patch-gemspec
4541 (substitute* ".gemspec"
4542 ;; Loosen the requirement for pdf-inspector
4543 (("~> 1\\.0\\.7") ">= 0")))))))
4545 `(("ruby-coderay" ,ruby-coderay)))
4546 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
4548 "This package provides a tool for writing manuals for Prawn and Prawn
4550 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
4552 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
4556 (define-public ruby-progress_bar
4558 (name "ruby-progress_bar")
4563 (uri (rubygems-uri "progress_bar" version))
4566 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
4567 (build-system ruby-build-system)
4569 '(#:test-target "spec"))
4571 `(("ruby-highline" ,ruby-highline)
4572 ("ruby-options" ,ruby-options)))
4574 `(("bundler" ,bundler)
4575 ("ruby-rspec" ,ruby-rspec)
4576 ("ruby-timecop" ,ruby-timecop)))
4578 "Ruby library for displaying progress bars")
4580 "ProgressBar is a simple library for displaying progress bars. The
4581 maximum value is configurable, and additional information can be displayed
4582 like the percentage completion, estimated time remaining, elapsed time and
4584 (home-page "https://github.com/paul/progress_bar")
4585 (license license:wtfpl2)))
4587 (define-public ruby-dep
4594 (uri (rubygems-uri "ruby_dep" version))
4597 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
4598 (build-system ruby-build-system)
4600 '(#:tests? #f)) ; No included tests
4601 (synopsis "Creates a version constraint of supported Rubies")
4603 "This package helps create a version constraint of supported Rubies,
4604 suitable for a gemspec file.")
4605 (home-page "https://github.com/e2/ruby_dep")
4606 (license license:expat)))
4608 (define-public ruby-progressbar
4610 (name "ruby-progressbar")
4615 (uri (rubygems-uri "ruby-progressbar" version))
4617 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
4618 (build-system ruby-build-system)
4620 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
4622 (synopsis "Text progress bar library for Ruby")
4624 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
4625 The output can be customized with a formatting system.")
4626 (home-page "https://github.com/jfelchner/ruby-progressbar")
4627 (license license:expat)))
4629 (define-public ruby-pry
4636 (uri (rubygems-uri "pry" version))
4639 "0iyw4q4an2wmk8v5rn2ghfy2jaz9vmw2nk8415nnpx2s866934qk"))))
4640 (build-system ruby-build-system)
4642 '(#:tests? #f)) ; no tests
4644 `(("ruby-coderay" ,ruby-coderay)
4645 ("ruby-method-source" ,ruby-method-source)))
4646 (synopsis "Ruby REPL")
4647 (description "Pry is an IRB alternative and runtime developer console for
4648 Ruby. It features syntax highlighting, a plugin architecture, runtime
4649 invocation, and source and documentation browsing.")
4650 (home-page "https://cobaltbluemedia.com/pryrepl/")
4651 (license license:expat)))
4653 (define-public ruby-single-cov
4655 (name "ruby-single-cov")
4657 (home-page "https://github.com/grosser/single_cov")
4660 (uri (git-reference (url home-page)
4661 (commit (string-append "v" version))))
4662 (file-name (git-file-name name version))
4665 "05qdzpcai1p23a120gb9bxkfl4y73k9hicx34ch2lsk31lgi9bl7"))))
4666 (build-system ruby-build-system)
4668 '(#:test-target "default"
4669 #:phases (modify-phases %standard-phases
4670 (replace 'replace-git-ls-files
4672 (substitute* "single_cov.gemspec"
4673 (("`git ls-files lib/ bin/ MIT-LICENSE`")
4674 "`find lib/ bin/ MIT-LICENSE -type f | sort`"))
4676 (add-before 'check 'remove-version-constraints
4678 (delete-file "Gemfile.lock")
4680 (add-before 'check 'make-files-writable
4682 ;; Tests need to create local directories and open files
4683 ;; with write permissions.
4684 (for-each make-file-writable
4685 (find-files "specs" #:directories? #t))
4687 (add-before 'check 'disable-failing-test
4689 ;; XXX: This test copies assets from minitest, but can
4690 ;; not cope with the files being read-only. Just skip
4692 (substitute* "specs/single_cov_spec.rb"
4693 (("it \"complains when coverage is bad\"")
4694 "xit \"complains when coverage is bad\""))
4697 `(("ruby-bump" ,ruby-bump)
4698 ("ruby-minitest" ,ruby-minitest)
4699 ("ruby-rspec" ,ruby-rspec)
4700 ("ruby-simplecov" ,ruby-simplecov)))
4701 (synopsis "Code coverage reporting tool")
4703 "This package provides actionable code coverage reports for Ruby
4704 projects. It has very little overhead and can be easily integrated with
4705 development tools to catch coverage problems early.")
4706 (license license:expat)))
4708 (define-public ruby-guard
4714 ;; The gem does not include a Rakefile, nor does it contain a
4715 ;; gemspec file, nor does it come with the tests. This is why
4716 ;; we fetch the tarball from Github.
4718 (url "https://github.com/guard/guard")
4719 (commit (string-append "v" version))))
4720 (file-name (git-file-name name version))
4723 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
4724 (build-system ruby-build-system)
4726 `(#:tests? #f ; tests require cucumber
4728 (modify-phases %standard-phases
4729 (add-after 'unpack 'remove-git-ls-files
4730 (lambda* (#:key outputs #:allow-other-keys)
4731 (substitute* "guard.gemspec"
4732 (("git ls-files -z") "find . -type f -print0"))
4736 (invoke "gem" "build" "guard.gemspec"))))))
4738 `(("ruby-formatador" ,ruby-formatador)
4739 ("ruby-listen" ,ruby-listen)
4740 ("ruby-lumberjack" ,ruby-lumberjack)
4741 ("ruby-nenv" ,ruby-nenv)
4742 ("ruby-notiffany" ,ruby-notiffany)
4743 ("ruby-pry" ,ruby-pry)
4744 ("ruby-shellany" ,ruby-shellany)
4745 ("ruby-thor" ,ruby-thor)))
4747 `(("bundler" ,bundler)
4748 ("ruby-rspec" ,ruby-rspec)))
4749 (synopsis "Tool to handle events on file system modifications")
4751 "Guard is a command line tool to easily handle events on file system
4752 modifications. Guard automates various tasks by running custom rules whenever
4753 file or directories are modified.")
4754 (home-page "https://guardgem.org/")
4755 (license license:expat)))
4757 (define-public ruby-spinach
4759 (name "ruby-spinach")
4761 (home-page "http://github.com/codegram/spinach")
4764 (uri (rubygems-uri "spinach" version))
4767 "1mv053mqz9c8ngqa6wp1ymk2fax6j0yqzax6918akrdr7c3fx3c6"))))
4768 (build-system ruby-build-system)
4770 ;; FIXME: Disable tests altogether because they depend on 'capybara'
4771 ;; which in turn depends on many other unpackaged gems. Enable once
4772 ;; capybara is available.
4775 `(("ruby-colorize" ,ruby-colorize)
4776 ("ruby-gherkin-ruby" ,ruby-gherkin-ruby)
4777 ("ruby-json" ,ruby-json)))
4778 (synopsis "Gherkin-based BDD framework")
4780 "Spinach is a high-level @acronym{BDD, Behavior-driven development}
4781 framework that leverages the expressive @code{Gherkin} language to help you
4782 define executable specifications of your code.")
4783 (license license:expat)))
4785 (define-public ruby-tilt
4791 (method git-fetch) ;the distributed gem lacks tests
4793 (url "https://github.com/rtomayko/tilt")
4794 (commit (string-append "v" version))))
4795 (file-name (git-file-name name version))
4798 "0adb7fg7925n2rd9a8kkqz3mgylw2skp9hkh9qc1rnph72mqsm6r"))))
4799 (build-system ruby-build-system)
4802 (modify-phases %standard-phases
4803 (add-after 'unpack 'remove-some-dependencies
4805 (substitute* "Gemfile"
4806 ;; TODO ronn is used for generating the manual
4807 (("gem 'ronn'.*") "\n")
4808 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4809 ;; pass it in as a native-input
4810 (("gem 'haml'.*") "\n")
4811 ;; TODO Not all of these gems are packaged for Guix yet:
4812 ;; less, coffee-script, livescript, babel-transpiler,
4814 (("if can_execjs") "if false")
4815 ;; Disable the secondary group to reduce the number of
4816 ;; dependencies. None of the normal approaches work, so patch
4817 ;; the Gemfile instead.
4818 (("group :secondary") "[].each"))
4821 `(("ruby-pandoc-ruby" ,ruby-pandoc-ruby)
4822 ("ruby-sassc" ,ruby-sassc)))
4824 `(("bundler" ,bundler)
4825 ("ruby-yard" ,ruby-yard)
4826 ("ruby-builder" ,ruby-builder)
4827 ("ruby-erubis" ,ruby-erubis)
4828 ("ruby-markaby" ,ruby-markaby)))
4829 (synopsis "Generic interface to multiple Ruby template engines")
4831 "Tilt is a thin interface over a number of different Ruby template
4832 engines in an attempt to make their usage as generic as possible.")
4833 (home-page "https://github.com/rtomayko/tilt/")
4834 (license license:expat)))
4836 (define-public ruby-thread-safe
4838 (name "ruby-thread-safe")
4843 (uri (rubygems-uri "thread_safe" version))
4846 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4847 (build-system ruby-build-system)
4849 '(#:tests? #f)) ; needs simplecov, among others
4850 (synopsis "Thread-safe utilities for Ruby")
4851 (description "The thread_safe library provides thread-safe collections and
4852 utilities for Ruby.")
4853 (home-page "https://github.com/ruby-concurrency/thread_safe")
4854 (license license:asl2.0)))
4856 (define-public ruby-tzinfo
4858 (name "ruby-tzinfo")
4863 (uri (rubygems-uri "tzinfo" version))
4866 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4867 (build-system ruby-build-system)
4870 (modify-phases %standard-phases
4871 (add-after 'unpack 'skip-safe-tests
4873 (substitute* "test/test_utils.rb"
4874 (("def safe_test\\(options = \\{\\}\\)")
4875 "def safe_test(options = {})
4876 skip('The Guix build environment has an unsafe load path')"))
4879 `(("ruby-thread-safe" ,ruby-thread-safe)))
4880 (synopsis "Time zone library for Ruby")
4881 (description "TZInfo is a Ruby library that provides daylight savings
4882 aware transformations between times in different time zones.")
4883 (home-page "https://tzinfo.github.io")
4884 (license license:expat)))
4886 (define-public ruby-tzinfo-data
4888 (name "ruby-tzinfo-data")
4889 (version "1.2017.3")
4893 ;; Download from GitHub because the rubygems version does not contain
4894 ;; Rakefile or tests.
4896 (url "https://github.com/tzinfo/tzinfo-data")
4897 (commit (string-append "v" version))))
4898 (file-name (git-file-name name version))
4901 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4902 ;; Remove the known test failure.
4903 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4904 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4905 (patches (search-patches
4906 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4907 (build-system ruby-build-system)
4909 `(("ruby-tzinfo" ,ruby-tzinfo)))
4910 (synopsis "Data from the IANA Time Zone database")
4912 "This library provides @code{TZInfo::Data}, which contains data from the
4913 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4914 (home-page "https://tzinfo.github.io")
4915 (license license:expat)))
4917 (define-public ruby-rb-inotify
4919 (name "ruby-rb-inotify")
4924 (uri (rubygems-uri "rb-inotify" version))
4927 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4928 (build-system ruby-build-system)
4930 '(#:tests? #f ; there are no tests
4932 (modify-phases %standard-phases
4933 ;; Building the gemspec with rake is not working here since it is
4934 ;; generated with Jeweler. It is also unnecessary because the
4935 ;; existing gemspec does not use any development tools to generate a
4939 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4941 `(("ruby-ffi" ,ruby-ffi)))
4943 `(("ruby-yard" ,ruby-yard)))
4944 (synopsis "Ruby wrapper for Linux's inotify")
4945 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4946 kernel subsystem for monitoring changes to files and directories.")
4947 (home-page "https://github.com/nex3/rb-inotify")
4948 (license license:expat)))
4950 (define-public ruby-pry-editline
4952 (name "ruby-pry-editline")
4956 (uri (rubygems-uri "pry-editline" version))
4959 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4960 (build-system ruby-build-system)
4961 (arguments `(#:tests? #f)) ; no tests included
4963 `(("bundler" ,bundler)))
4964 (synopsis "Open the current REPL line in an editor")
4966 "This gem provides a plugin for the Ruby REPL to enable opening the
4967 current line in an external editor.")
4968 (home-page "https://github.com/tpope/pry-editline")
4969 (license license:expat)))
4971 (define-public ruby-sdoc
4977 (uri (rubygems-uri "sdoc" version))
4980 "1am73dldx1fqlw2xny5vyk00pgkisg6bvs0pa8jjd7c19drjczrd"))))
4981 (build-system ruby-build-system)
4984 (modify-phases %standard-phases
4985 (add-before 'check 'set-rubylib-and-patch-gemfile
4987 (setenv "RUBYLIB" "lib")
4988 (substitute* "sdoc.gemspec"
4989 (("s.add_runtime_dependency.*") "\n")
4990 (("s.add_dependency.*") "\n"))
4991 (substitute* "Gemfile"
4993 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4996 `(("ruby-json" ,ruby-json)))
4998 `(("bundler" ,bundler)
4999 ("ruby-minitest" ,ruby-minitest)
5000 ("ruby-hoe" ,ruby-hoe)))
5001 (synopsis "Generate searchable RDoc documentation")
5003 "SDoc is an RDoc documentation generator to build searchable HTML
5004 documentation for Ruby code.")
5005 (home-page "https://github.com/voloko/sdoc")
5006 (license license:expat)))
5008 (define-public ruby-tins
5014 (uri (rubygems-uri "tins" version))
5017 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
5018 (build-system ruby-build-system)
5019 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
5020 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
5023 `(#:tests? #f ; there are no tests
5025 (modify-phases %standard-phases
5028 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
5030 (substitute* "tins.gemspec"
5031 (("\"lib/spruz\", ") ""))
5032 (invoke "gem" "build" "tins.gemspec"))))))
5033 (synopsis "Assorted tools for Ruby")
5034 (description "Tins is a Ruby library providing assorted tools.")
5035 (home-page "https://github.com/flori/tins")
5036 (license license:expat)))
5038 (define-public ruby-gem-hadar
5040 (name "ruby-gem-hadar")
5044 (uri (rubygems-uri "gem_hadar" version))
5047 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
5048 (build-system ruby-build-system)
5049 ;; This gem needs itself at development time. We disable rebuilding of the
5050 ;; gemspec to avoid this loop.
5052 `(#:tests? #f ; there are no tests
5054 (modify-phases %standard-phases
5057 (invoke "gem" "build" "gem_hadar.gemspec"))))))
5060 ("ruby-tins" ,ruby-tins)
5061 ("ruby-yard" ,ruby-yard)))
5062 (synopsis "Library for the development of Ruby gems")
5064 "This library contains some useful functionality to support the
5065 development of Ruby gems.")
5066 (home-page "https://github.com/flori/gem_hadar")
5067 (license license:expat)))
5069 (define-public ruby-minitest-tu-shim
5071 (name "ruby-minitest-tu-shim")
5075 (uri (rubygems-uri "minitest_tu_shim" version))
5078 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
5079 (build-system ruby-build-system)
5082 (modify-phases %standard-phases
5083 (add-after 'unpack 'fix-test-include-path
5084 (lambda* (#:key inputs #:allow-other-keys)
5085 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
5086 (substitute* "Rakefile"
5087 (("Hoe\\.add_include_dirs .*")
5088 (string-append "Hoe.add_include_dirs \""
5089 minitest "/lib/ruby/vendor_ruby"
5091 ,(package-version ruby-minitest-4)
5094 (add-before 'check 'fix-test-assumptions
5096 ;; The test output includes the file name, so a couple of tests
5097 ;; fail. Changing the regular expressions slightly fixes this
5099 (substitute* "test/test_mini_test.rb"
5100 (("output.sub!\\(.*, 'FILE:LINE'\\)")
5101 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
5102 (("gsub\\(/.*, 'FILE:LINE'\\)")
5103 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
5106 `(("ruby-minitest-4" ,ruby-minitest-4)))
5108 `(("ruby-hoe" ,ruby-hoe)))
5109 (synopsis "Adapter library between minitest and test/unit")
5111 "This library bridges the gap between the small and fast minitest and
5112 Ruby's large and slower test/unit.")
5113 (home-page "https://rubygems.org/gems/minitest_tu_shim")
5114 (license license:expat)))
5116 (define-public ruby-term-ansicolor
5118 (name "ruby-term-ansicolor")
5122 (uri (rubygems-uri "term-ansicolor" version))
5125 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
5126 (build-system ruby-build-system)
5127 ;; Rebuilding the gemspec seems to require git, even though this is not a
5128 ;; git repository, so we just build the gem from the existing gemspec.
5131 (modify-phases %standard-phases
5132 (add-after 'unpack 'fix-test
5134 (substitute* "tests/hsl_triple_test.rb"
5139 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
5141 `(("ruby-tins" ,ruby-tins)))
5143 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5144 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
5145 (synopsis "Ruby library to control the attributes of terminal output")
5147 "This Ruby library uses ANSI escape sequences to control the attributes
5148 of terminal output.")
5149 (home-page "https://flori.github.io/term-ansicolor/")
5150 ;; There is no mention of the "or later" clause.
5151 (license license:gpl2)))
5153 (define-public ruby-terraform
5155 (name "ruby-terraform")
5160 (uri (rubygems-uri "ruby-terraform" version))
5163 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
5164 (build-system ruby-build-system)
5166 '(#:tests? #f)) ; No included tests
5168 `(("ruby-lino" ,ruby-lino)))
5169 (synopsis "Ruby wrapper around the Terraform command line interface")
5171 "This package provides a Ruby wrapper around the Terraform command line
5172 interface so that Terraform can be more easily invoked from Ruby code.")
5173 (home-page "https://github.com/infrablocks/ruby_terraform")
5174 (license license:expat)))
5176 (define-public ruby-pstree
5178 (name "ruby-pstree")
5182 (uri (rubygems-uri "pstree" version))
5185 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
5186 (build-system ruby-build-system)
5188 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5189 ("bundler" ,bundler)))
5190 (synopsis "Create a process tree data structure")
5192 "This library uses the output of the @code{ps} command to create a
5193 process tree data structure for the current host.")
5194 (home-page "https://github.com/flori/pstree")
5195 ;; There is no mention of the "or later" clause.
5196 (license license:gpl2)))
5198 (define-public ruby-utils
5204 (uri (rubygems-uri "utils" version))
5207 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
5208 (build-system ruby-build-system)
5210 `(("ruby-tins" ,ruby-tins)
5211 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
5212 ("ruby-pstree" ,ruby-pstree)
5213 ("ruby-pry-editline" ,ruby-pry-editline)))
5215 `(("ruby-gem-hadar" ,ruby-gem-hadar)
5216 ("bundler" ,bundler)))
5217 (synopsis "Command line tools for working with Ruby")
5219 "This package provides assorted command line tools that may be useful
5220 when working with Ruby code.")
5221 (home-page "https://github.com/flori/utils")
5222 ;; There is no mention of the "or later" clause.
5223 (license license:gpl2)))
5225 (define-public ruby-jaro-winkler
5227 (name "ruby-jaro-winkler")
5232 (uri (rubygems-uri "jaro_winkler" version))
5234 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
5235 (build-system ruby-build-system)
5237 '(#:tests? #f)) ; no included tests
5238 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
5240 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
5241 algorithm. It is written as a C extension and will fallback to a pure Ruby
5242 implementation on platforms where this is unsupported.")
5243 (home-page "https://github.com/tonytonyjan/jaro_winkler")
5244 (license license:expat)))
5246 (define-public ruby-json
5253 (uri (rubygems-uri "json" version))
5256 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
5257 (build-system ruby-build-system)
5258 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
5259 (synopsis "JSON library for Ruby")
5260 (description "This Ruby library provides a JSON implementation written as
5261 a native C extension.")
5262 (home-page "http://json-jruby.rubyforge.org/")
5263 (license (list license:ruby license:gpl2)))) ; GPL2 only
5265 (define-public ruby-json-pure
5267 (name "ruby-json-pure")
5271 (uri (rubygems-uri "json_pure" version))
5274 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
5275 (build-system ruby-build-system)
5278 (modify-phases %standard-phases
5279 (add-after 'unpack 'fix-rakefile
5281 (substitute* "Rakefile"
5282 ;; Since this is not a git repository, do not call 'git'.
5283 (("`git ls-files`") "`find . -type f |sort`")
5284 ;; Loosen dependency constraint.
5285 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
5287 (add-after 'replace-git-ls-files 'regenerate-gemspec
5289 ;; Regenerate gemspec so loosened dependency constraints are
5291 (invoke "rake" "gemspec")))
5292 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
5294 ;; This gemspec doesn't look to be generated by the above
5295 ;; command, so patch it separately.
5296 (substitute* "json-java.gemspec"
5297 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
5298 "%q<test-unit>.freeze, [\">= 2.0\"]"))
5301 `(("bundler" ,bundler)
5303 ("ruby-simplecov" ,ruby-simplecov)
5304 ("ruby-test-unit" ,ruby-test-unit)))
5305 (synopsis "JSON implementation in pure Ruby")
5307 "This package provides a JSON implementation written in pure Ruby.")
5308 (home-page "https://flori.github.com/json/")
5309 (license license:ruby)))
5311 (define-public ruby-jwt
5318 (uri (rubygems-uri "jwt" version))
5321 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
5322 (build-system ruby-build-system)
5324 '(#:test-target "test"
5326 (modify-phases %standard-phases
5327 (add-after 'unpack 'remove-unnecessary-dependencies
5329 (substitute* "spec/spec_helper.rb"
5330 (("require 'simplecov.*") "\n")
5331 ;; Use [].each to disable running the SimpleCov configuration
5333 (("SimpleCov\\.configure") "[].each")
5334 (("require 'codeclimate-test-reporter'") "")
5335 (("require 'codacy-coverage'") "")
5336 (("Codacy::Reporter\\.start") ""))
5339 `(("bundler" ,bundler)
5340 ("ruby-rspec" ,ruby-rspec)
5341 ("ruby-rbnacl" ,ruby-rbnacl)))
5342 (synopsis "Ruby implementation of the JSON Web Token standard")
5344 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
5345 @acronym{JWT, JSON Web Token} standard.")
5346 (home-page "https://github.com/jwt/ruby-jwt")
5347 (license license:expat)))
5349 ;; Even though this package only provides bindings for a Mac OSX API it is
5350 ;; required by "ruby-listen" at runtime.
5351 (define-public ruby-rb-fsevent
5353 (name "ruby-rb-fsevent")
5357 (uri (rubygems-uri "rb-fsevent" version))
5360 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
5361 (build-system ruby-build-system)
5362 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
5363 ;; "listen", which needs "rb-fsevent" at runtime.
5364 (arguments `(#:tests? #f))
5365 (synopsis "FSEvents API with signals catching")
5367 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
5368 (home-page "https://rubygems.org/gems/rb-fsevent")
5369 (license license:expat)))
5371 (define-public ruby-listen
5373 (name "ruby-listen")
5377 ;; The gem does not include a Rakefile, so fetch from the Git
5381 (url "https://github.com/guard/listen")
5382 (commit (string-append "v" version))))
5383 (file-name (git-file-name name version))
5386 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
5387 (build-system ruby-build-system)
5389 `(#:test-target "spec"
5391 (modify-phases %standard-phases
5392 (add-after 'unpack 'fix-files-in-gemspec
5394 (substitute* "listen.gemspec"
5395 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
5397 (add-before 'check 'remove-unnecessary-dependencies'
5399 (substitute* "Rakefile"
5400 ;; Rubocop is for code linting, and is unnecessary for running
5402 ((".*rubocop.*") ""))
5405 `(("bundler" ,bundler)
5406 ("ruby-rspec" ,ruby-rspec)))
5408 `(;; ruby-thor is used for the command line interface, and is referenced
5409 ;; in the wrapper, and therefore just needs to be an input.
5410 ("ruby-thor" ,ruby-thor)))
5412 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
5413 ("ruby-rb-inotify" ,ruby-rb-inotify)
5414 ("ruby-dep" ,ruby-dep)))
5415 (synopsis "Listen to file modifications")
5416 (description "The Listen gem listens to file modifications and notifies
5417 you about the changes.")
5418 (home-page "https://github.com/guard/listen")
5419 (license license:expat)))
5421 (define-public ruby-loofah
5423 (name "ruby-loofah")
5428 (uri (rubygems-uri "loofah" version))
5431 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
5432 (build-system ruby-build-system)
5435 (modify-phases %standard-phases
5436 (add-after 'unpack 'remove-unnecessary-dependencies
5438 ;; concourse is a development tool which is unused, so remove it
5439 ;; so it's not required.
5440 (substitute* "Gemfile"
5441 ((".*\"concourse\".*") "\n"))
5442 (substitute* "Rakefile"
5443 (("require 'concourse'") "")
5444 (("Concourse\\.new.*") "\n"))
5447 `(("ruby-hoe" ,ruby-hoe)
5448 ("ruby-rr" ,ruby-rr)))
5450 `(("ruby-nokogiri" ,ruby-nokogiri)
5451 ("ruby-crass" ,ruby-crass)))
5452 (synopsis "Ruby library for manipulating and transforming HTML/XML")
5454 "Loofah is a general library for manipulating and transforming HTML/XML
5455 documents and fragments. It's built on top of Nokogiri and libxml2.")
5456 (home-page "https://github.com/flavorjones/loofah")
5457 (license license:expat)))
5459 (define-public ruby-activesupport
5461 (name "ruby-activesupport")
5466 (uri (rubygems-uri "activesupport" version))
5469 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
5470 (build-system ruby-build-system)
5473 (modify-phases %standard-phases
5476 ;; There are no tests, instead attempt to load the library.
5477 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
5479 `(("ruby-concurrent" ,ruby-concurrent)
5480 ("ruby-i18n" ,ruby-i18n)
5481 ("ruby-minitest" ,ruby-minitest)
5482 ("ruby-tzinfo" ,ruby-tzinfo)
5483 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
5484 (synopsis "Ruby on Rails utility library")
5485 (description "ActiveSupport is a toolkit of support libraries and Ruby
5486 core extensions extracted from the Rails framework. It includes support for
5487 multibyte strings, internationalization, time zones, and testing.")
5488 (home-page "http://www.rubyonrails.org")
5489 (license license:expat)))
5491 (define-public ruby-crass
5495 (home-page "https://github.com/rgrove/crass")
5497 ;; The gem does not contain tests, so pull from git.
5501 (commit (string-append "v" version))))
5502 (file-name (git-file-name name version))
5505 "1gbsb81psgb6xhnwpx4s409jc0mk0gijh039sy5xyi8jpaaadp40"))))
5506 (build-system ruby-build-system)
5507 (synopsis "Pure Ruby CSS parser")
5509 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
5510 (license license:expat)))
5512 (define-public ruby-nokogumbo
5514 (name "ruby-nokogumbo")
5517 ;; We use the git reference, because there's no Rakefile in the
5518 ;; published gem and the tarball on Github is outdated.
5521 (url "https://github.com/rubys/nokogumbo")
5522 (commit (string-append "v" version))))
5523 (file-name (string-append name "-" version "-checkout"))
5526 "1qg0iyw450lw6d0j1ghzg79a6l60nm1m4qmrzwzybi585861jxcx"))))
5527 (build-system ruby-build-system)
5529 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5531 `(("gumbo-parser" ,gumbo-parser)))
5533 `(("ruby-nokogiri" ,ruby-nokogiri)))
5534 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
5536 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
5537 access the result as a Nokogiri parsed document.")
5538 (home-page "https://github.com/rubys/nokogumbo/")
5539 (license license:asl2.0)))
5541 (define-public ruby-sanitize
5543 (name "ruby-sanitize")
5545 (home-page "https://github.com/rgrove/sanitize")
5548 ;; The gem does not include the Rakefile, so we download the
5549 ;; source from Github.
5552 (commit (string-append "v" version))))
5553 (file-name (git-file-name name version))
5554 (patches (search-patches "ruby-sanitize-system-libxml.patch"))
5557 "0lj0q9yhjp0q0in5majkshnki07mw8m2vxgndx4m5na6232aszl0"))))
5558 (build-system ruby-build-system)
5560 `(("ruby-crass" ,ruby-crass)
5561 ("ruby-nokogiri" ,ruby-nokogiri)
5562 ("ruby-nokogumbo" ,ruby-nokogumbo)))
5564 `(("ruby-minitest" ,ruby-minitest)))
5565 (synopsis "Whitelist-based HTML and CSS sanitizer")
5567 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
5568 acceptable elements, attributes, and CSS properties, Sanitize will remove all
5569 unacceptable HTML and/or CSS from a string.")
5570 (license license:expat)))
5572 (define-public ruby-oj
5579 ;; Version on rubygems.org does not contain Rakefile, so download from
5582 (url "https://github.com/ohler55/oj")
5583 (commit (string-append "v" version))))
5584 (file-name (git-file-name name version))
5587 "0i5xjx4sh816zx2c1a4d1q67k7vllg5jnnc4jy6zhbmwi1dvp5vw"))))
5588 (build-system ruby-build-system)
5590 '(#:test-target "test_all"
5592 (modify-phases %standard-phases
5593 (add-before 'check 'disable-bundler
5595 (substitute* "Rakefile"
5596 (("Bundler\\.with_clean_env") "1.times")
5597 (("bundle exec ") "")))))))
5599 `(("bundler" ,bundler)
5600 ("ruby-rspec" ,ruby-rspec)
5601 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5602 (synopsis "JSON parser for Ruby optimized for speed")
5604 "Oj is a JSON parser and generator for Ruby, where the encoding and
5605 decoding of JSON is implemented as a C extension to Ruby.")
5606 (home-page "http://www.ohler.com/oj/")
5607 (license (list license:expat ; Ruby code
5608 license:bsd-3)))) ; extension code
5610 (define-public ruby-ox
5617 (uri (rubygems-uri "ox" version))
5620 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
5621 (build-system ruby-build-system)
5623 '(#:tests? #f)) ; no tests
5624 (synopsis "Optimized XML library for Ruby")
5626 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
5627 written as a native C extension. It was designed to be an alternative to
5628 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
5629 alternative to Marshal for Object serialization. ")
5630 (home-page "http://www.ohler.com/ox")
5631 (license license:expat)))
5633 (define-public ruby-redcloth
5635 (name "ruby-redcloth")
5639 (uri (rubygems-uri "RedCloth" version))
5642 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
5643 (build-system ruby-build-system)
5645 `(#:tests? #f ; no tests
5647 (modify-phases %standard-phases
5648 ;; Redcloth has complicated rake tasks to build various versions for
5649 ;; multiple targets using RVM. We don't want this so we just use the
5650 ;; existing gemspec.
5653 (invoke "gem" "build" "redcloth.gemspec"))))))
5655 `(("bundler" ,bundler)
5656 ("ruby-diff-lcs" ,ruby-diff-lcs)
5657 ("ruby-rspec-2" ,ruby-rspec-2)))
5658 (synopsis "Textile markup language parser for Ruby")
5660 "RedCloth is a Ruby parser for the Textile markup language.")
5661 (home-page "http://redcloth.org")
5662 (license license:expat)))
5664 (define-public ruby-pg
5671 (uri (rubygems-uri "pg" version))
5674 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
5675 (build-system ruby-build-system)
5677 '(#:test-target "spec"))
5679 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5680 ("ruby-hoe" ,ruby-hoe)
5681 ("ruby-rspec" ,ruby-rspec)))
5683 `(("postgresql" ,postgresql)))
5684 (synopsis "Ruby interface to PostgreSQL")
5685 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
5686 with PostgreSQL 9.0 and later.")
5687 (home-page "https://bitbucket.org/ged/ruby-pg")
5688 (license license:ruby)))
5690 (define-public ruby-byebug
5692 (name "ruby-byebug")
5697 (uri (rubygems-uri "byebug" version))
5700 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
5701 (build-system ruby-build-system)
5703 '(#:tests? #f)) ; no tests
5704 (synopsis "Debugger for Ruby 2")
5705 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
5706 TracePoint C API for execution control and the Debug Inspector C API for call
5707 stack navigation. The core component provides support that front-ends can
5708 build on. It provides breakpoint handling and bindings for stack frames among
5709 other things and it comes with a command line interface.")
5710 (home-page "https://github.com/deivid-rodriguez/byebug")
5711 (license license:bsd-2)))
5713 ;;; TODO: Make it the default byebug in core-updates.
5714 (define-public ruby-byebug-11
5716 (inherit ruby-byebug)
5717 (name "ruby-byebug")
5723 (url "https://github.com/deivid-rodriguez/byebug")
5724 (commit (string-append "v" version))))
5725 (file-name (git-file-name name version))
5728 "0vyy3k2s7dcndngj6m8kxhs1vxc2c93dw8b3yyand3srsg9ffpij"))
5729 (modules '((guix build utils)))
5732 ;; Remove wrappers that try to setup a bundle environment.
5733 (with-directory-excursion "bin"
5734 (for-each delete-file '("bundle" "rake" "rubocop"))
5735 ;; ruby-minitest doesn't come with a launcher, so fix the one
5737 (substitute* "minitest"
5738 (("load File\\.expand_path\\(\"bundle\".*") "")
5739 (("require \"bundler/setup\".*") "")))
5744 (modify-phases %standard-phases
5745 (add-after 'unpack 'skip-tmp-path-sensitive-test
5747 (substitute* "test/commands/where_test.rb"
5748 (("unless /cygwin\\|mswin\\|mingw\\|darwin/.*")
5751 (add-before 'build 'compile
5753 (invoke "rake" "compile")))
5754 (add-before 'check 'set-home
5756 (setenv "HOME" (getcwd))
5759 `(("bundler" ,bundler)
5760 ("ruby-chandler" ,ruby-chandler)
5761 ("ruby-minitest" ,ruby-minitest)
5762 ("ruby-pry" ,ruby-pry)
5763 ("ruby-rake-compiler" ,ruby-rake-compiler)
5764 ("ruby-rubocop" ,ruby-rubocop)
5765 ("ruby-yard" ,ruby-yard)))))
5767 (define-public ruby-netrc
5773 (uri (rubygems-uri "netrc" version))
5776 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
5777 (build-system ruby-build-system)
5780 (modify-phases %standard-phases
5782 ;; There is no Rakefile and minitest can only run one file at once,
5783 ;; so we have to iterate over all test files.
5786 (invoke "ruby" "-Itest" file))
5787 (find-files "./test" "test_.*\\.rb")))))))
5789 `(("ruby-minitest" ,ruby-minitest)))
5790 (synopsis "Library to read and update netrc files")
5792 "This library can read and update netrc files, preserving formatting
5793 including comments and whitespace.")
5794 (home-page "https://github.com/geemus/netrc")
5795 (license license:expat)))
5797 (define-public ruby-unf-ext
5799 (name "ruby-unf-ext")
5803 (uri (rubygems-uri "unf_ext" version))
5806 "1ll6w64ibh81qwvjx19h8nj7mngxgffg7aigjx11klvf5k2g4nxf"))))
5807 (build-system ruby-build-system)
5810 (modify-phases %standard-phases
5811 (add-after 'build 'build-ext
5812 (lambda _ (invoke "rake" "compile:unf_ext")))
5813 (add-before 'check 'lose-rake-compiler-dock-dependency
5815 ;; rake-compiler-dock is listed in the gemspec, but only
5816 ;; required when cross-compiling.
5817 (substitute* "unf_ext.gemspec"
5818 ((".*rake-compiler-dock.*") ""))
5821 `(("bundler" ,bundler)
5822 ("ruby-rake-compiler" ,ruby-rake-compiler)
5823 ("ruby-test-unit" ,ruby-test-unit)))
5824 (synopsis "Unicode normalization form support library")
5826 "This package provides unicode normalization form support for Ruby.")
5827 (home-page "https://github.com/knu/ruby-unf_ext")
5828 (license license:expat)))
5830 (define-public ruby-tdiff
5831 ;; Use a newer than released snapshot so that rspec-2 is not required.
5832 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5835 (version (string-append "0.3.3-1." (string-take commit 8)))
5839 (url "https://github.com/postmodern/tdiff")
5841 (file-name (string-append name "-" version "-checkout"))
5844 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5845 (build-system ruby-build-system)
5847 `(("ruby-rspec" ,ruby-rspec)
5848 ("ruby-yard" ,ruby-yard)
5849 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5850 (synopsis "Calculate the differences between two tree-like structures")
5852 "This library provides functions to calculate the differences between two
5853 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5854 (home-page "https://github.com/postmodern/tdiff")
5855 (license license:expat))))
5857 (define-public ruby-nokogiri-diff
5858 ;; Use a newer than released snapshot so that rspec-2 is not required.
5859 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5861 (name "ruby-nokogiri-diff")
5862 (version (string-append "0.2.0-1." (string-take commit 8)))
5866 (url "https://github.com/postmodern/nokogiri-diff")
5868 (file-name (string-append name "-" version "-checkout"))
5871 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5872 (build-system ruby-build-system)
5874 `(("ruby-tdiff" ,ruby-tdiff)
5875 ("ruby-nokogiri" ,ruby-nokogiri)))
5877 `(("ruby-rspec" ,ruby-rspec)
5878 ("ruby-yard" ,ruby-yard)
5879 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5880 (synopsis "Calculate the differences between two XML/HTML documents")
5882 "@code{Nokogiri::Diff} adds the ability to calculate the
5883 differences (added or removed nodes) between two XML/HTML documents.")
5884 (home-page "https://github.com/postmodern/nokogiri-diff")
5885 (license license:expat))))
5887 (define-public ruby-racc
5894 (uri (rubygems-uri "racc" version))
5897 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5898 (build-system ruby-build-system)
5900 `(("ruby-hoe" ,ruby-hoe)
5901 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5902 (synopsis "LALR(1) parser generator for Ruby")
5904 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5905 generates Ruby program.")
5906 (home-page "http://i.loveruby.net/en/projects/racc/")
5908 ;; Generally licensed under the LGPL2.1, and some files also
5909 ;; available under the same license as Ruby.
5913 (define-public ruby-rack
5920 ;; Download from GitHub so that the patch can be applied.
5922 (url "https://github.com/rack/rack")
5924 (file-name (git-file-name name version))
5927 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5928 ;; Ignore test which fails inside the build environment but works
5930 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5931 (build-system ruby-build-system)
5934 (modify-phases %standard-phases
5935 (add-before 'check 'fix-tests
5937 ;; A few of the tests use the length of a file on disk for
5938 ;; Content-Length and Content-Range headers. However, this file
5939 ;; has a shebang in it which an earlier phase patches, growing
5940 ;; the file size from 193 to 239 bytes when the store prefix is
5942 (let ((size-diff (- (string-length (which "ruby"))
5943 (string-length "/usr/bin/env ruby"))))
5944 (substitute* '("test/spec_file.rb")
5946 (number->string (+ 193 size-diff)))
5947 (("bytes(.)22-33" all delimiter)
5948 (string-append "bytes"
5950 (number->string (+ 22 size-diff))
5952 (number->string (+ 33 size-diff))))))
5954 (add-before 'reset-gzip-timestamps 'make-files-writable
5955 (lambda* (#:key outputs #:allow-other-keys)
5956 ;; Make sure .gz files are writable so that the
5957 ;; 'reset-gzip-timestamps' phase can do its work.
5958 (let ((out (assoc-ref outputs "out")))
5959 (for-each make-file-writable
5960 (find-files out "\\.gz$"))
5963 `(("ruby-minitest" ,ruby-minitest)
5964 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5967 `(("ruby-concurrent" ,ruby-concurrent)))
5968 (synopsis "Unified web application interface for Ruby")
5969 (description "Rack provides a minimal, modular and adaptable interface for
5970 developing web applications in Ruby. By wrapping HTTP requests and responses,
5971 it unifies the API for web servers, web frameworks, and software in between
5972 into a single method call.")
5973 (home-page "https://rack.github.io/")
5974 (license license:expat)))
5976 (define-public ruby-rack-test
5978 (name "ruby-rack-test")
5983 (uri (rubygems-uri "rack-test" version))
5986 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5987 (build-system ruby-build-system)
5989 ;; Disable tests because of circular dependencies: requires sinatra,
5990 ;; which requires rack-protection, which requires rack-test. Instead
5991 ;; simply require the library.
5993 (modify-phases %standard-phases
5996 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5998 `(("ruby-rack" ,ruby-rack)))
5999 (synopsis "Testing API for Rack applications")
6001 "Rack::Test is a small, simple testing API for Rack applications. It can
6002 be used on its own or as a reusable starting point for Web frameworks and
6003 testing libraries to build on.")
6004 (home-page "https://github.com/rack-test/rack-test")
6005 (license license:expat)))
6007 (define-public ruby-rack-protection
6009 (name "ruby-rack-protection")
6014 (uri (rubygems-uri "rack-protection" version))
6017 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
6018 (build-system ruby-build-system)
6020 '(;; Tests missing from the gem.
6023 `(("ruby-rack" ,ruby-rack)))
6025 `(("bundler" ,bundler)
6026 ("ruby-rspec" ,ruby-rspec-2)
6027 ("ruby-rack-test" ,ruby-rack-test)))
6028 (synopsis "Rack middleware that protects against typical web attacks")
6029 (description "Rack middleware that can be used to protect against typical
6030 web attacks. It can protect all Rack apps, including Rails. For instance, it
6031 protects against cross site request forgery, cross site scripting,
6032 clickjacking, directory traversal, session hijacking and IP spoofing.")
6033 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
6034 (license license:expat)))
6036 (define-public ruby-rainbow
6038 (name "ruby-rainbow")
6043 (uri (rubygems-uri "rainbow" version))
6046 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
6047 (build-system ruby-build-system)
6050 (modify-phases %standard-phases
6051 ;; Run rspec directly, to avoid requiring Rubocop which is used from
6054 (lambda* (#:key tests? #:allow-other-keys)
6059 `(("bundler" ,bundler)
6060 ("ruby-rspec" ,ruby-rspec)))
6061 (synopsis "Colorize printed text on ANSI terminals")
6063 "@code{rainbow} provides a string presenter object to colorize strings by
6064 wrapping them in ANSI escape codes.")
6065 (home-page "https://github.com/sickill/rainbow")
6066 (license license:expat)))
6068 (define-public ruby-rr
6075 (uri (rubygems-uri "rr" version))
6078 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
6079 (build-system ruby-build-system)
6081 '(#:tests? #f)) ; test files not included
6083 `(("bundler" ,bundler)
6084 ("ruby-rspec" ,ruby-rspec)))
6085 (synopsis "Ruby test double framework")
6087 "RR is a test double framework that features a rich selection of double
6088 techniques and a terse syntax.")
6089 (home-page "https://rr.github.io/rr/")
6090 (license license:expat)))
6092 (define-public ruby-rest-client
6094 (name "ruby-rest-client")
6099 (uri (rubygems-uri "rest-client" version))
6102 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
6103 (build-system ruby-build-system)
6106 (modify-phases %standard-phases
6107 (add-before 'check 'remove-unnecessary-development-dependencies
6109 (substitute* "rest-client.gemspec"
6110 ;; Remove rubocop as it's unused. Rubocop also indirectly
6111 ;; depends on this package through ruby-parser and ruby-ast so
6112 ;; this avoids a dependency loop.
6113 ((".*rubocop.*") "\n")
6114 ;; Remove pry as it's unused, it's a debugging tool
6116 ;; Remove an unnecessarily strict rdoc dependency
6117 ((".*rdoc.*") "\n"))
6119 (add-before 'check 'delete-network-dependent-tests
6121 (delete-file "spec/integration/request_spec.rb")
6122 (delete-file "spec/integration/httpbin_spec.rb")
6125 `(("ruby-http-cookie" ,ruby-http-cookie)
6126 ("ruby-mime-types" ,ruby-mime-types)
6127 ("ruby-netrc" ,ruby-netrc)))
6129 `(("bundler" ,bundler)
6130 ("ruby-webmock" ,ruby-webmock-2)
6131 ("ruby-rspec" ,ruby-rspec)))
6132 (synopsis "Simple HTTP and REST client for Ruby")
6134 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
6135 inspired by the Sinatra microframework style of specifying actions:
6136 @code{get}, @code{put}, @code{post}, @code{delete}.")
6137 (home-page "https://github.com/rest-client/rest-client")
6138 (license license:expat)))
6140 (define-public ruby-rubocop
6142 (name "ruby-rubocop")
6147 (uri (rubygems-uri "rubocop" version))
6150 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
6151 (build-system ruby-build-system)
6153 '(;; No included tests
6156 `(("ruby-parser" ,ruby-parser)
6157 ("ruby-powerpack" ,ruby-powerpack)
6158 ("ruby-rainbow" ,ruby-rainbow)
6159 ("ruby-progressbar" ,ruby-progressbar)
6160 ("ruby-parallel" ,ruby-parallel)
6161 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
6162 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
6163 (synopsis "Ruby code style checking tool")
6165 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
6166 the community-driven Ruby Style Guide.")
6167 (home-page "https://github.com/rubocop-hq/rubocop")
6168 (license license:expat)))
6170 (define-public ruby-contest
6172 (name "ruby-contest")
6177 (uri (rubygems-uri "contest" version))
6180 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
6181 (build-system ruby-build-system)
6182 (synopsis "Write declarative tests using nested contexts")
6184 "Contest allows writing declarative @code{Test::Unit} tests using nested
6185 contexts without performance penalties.")
6186 (home-page "https://github.com/citrusbyte/contest")
6187 (license license:expat)))
6189 (define-public ruby-creole
6191 (name "ruby-creole")
6196 (uri (rubygems-uri "creole" version))
6199 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
6200 (build-system ruby-build-system)
6202 `(("ruby-bacon" ,ruby-bacon)))
6203 (synopsis "Creole markup language converter")
6205 "Creole is a lightweight markup language and this library for converting
6206 creole to @code{HTML}.")
6207 (home-page "https://github.com/minad/creole")
6208 (license license:ruby)))
6210 (define-public ruby-docile
6212 (name "ruby-docile")
6217 (uri (rubygems-uri "docile" version))
6220 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
6221 (build-system ruby-build-system)
6223 '(#:tests? #f)) ; needs github-markup, among others
6224 (synopsis "Ruby EDSL helper library")
6225 (description "Docile is a Ruby library that provides an interface for
6226 creating embedded domain specific languages (EDSLs) that manipulate existing
6228 (home-page "https://ms-ati.github.io/docile/")
6229 (license license:expat)))
6231 (define-public ruby-middleware
6233 (name "ruby-middleware")
6238 (uri (rubygems-uri "middleware" version))
6241 "0703nkf2v371wqr41c04x5qid7ww45cxqv3hnlg07if3b3xrm9xl"))))
6242 (build-system ruby-build-system)
6243 (arguments '(#:tests? #f)) ;no test suite
6244 (synopsis "Implementation of a middleware abstraction for Ruby")
6245 (description "Middleware is a generalized implementation of a middleware
6246 abstraction for Ruby.")
6247 (home-page "https://github.com/mitchellh/middleware")
6248 (license license:expat)))
6250 (define-public ruby-benchmark-ips
6252 (name "ruby-benchmark-ips")
6257 (uri (rubygems-uri "benchmark-ips" version))
6260 "1n9397j7kh4vvikfann1467qgksc679imlr50hax3lk1q3af8kdw"))))
6261 (build-system ruby-build-system)
6263 `(("ruby-hoe" ,ruby-hoe)))
6264 (synopsis "Iterations per second enhancement for the Ruby Benchmark module")
6265 (description "Benchmark-ips enhances the Ruby Benchmark module with the
6266 iterations per second count. For short snippets of code, it can automatically
6267 figure out how many times to run the code to get interesting data.")
6268 (home-page "https://github.com/evanphx/benchmark-ips")
6269 (license license:expat)))
6271 (define-public ruby-ffi-rzmq-core
6273 (name "ruby-ffi-rzmq-core")
6278 (uri (rubygems-uri "ffi-rzmq-core" version))
6281 "0amkbvljpjfnv0jpdmz71p1i3mqbhyrnhamjn566w0c01xd64hb5"))))
6282 (build-system ruby-build-system)
6285 (modify-phases %standard-phases
6286 (add-after 'unpack 'patch-libzmq-search-path
6287 (lambda* (#:key inputs #:allow-other-keys)
6288 (let ((zeromq (assoc-ref inputs "zeromq")))
6289 (substitute* "lib/ffi-rzmq-core/libzmq.rb"
6291 (string-append zeromq "/lib")))
6295 (invoke "rspec"))))))
6297 `(("ruby-rspec" ,ruby-rspec)))
6299 `(("zeromq" ,zeromq)))
6300 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
6301 (synopsis "Low-level Ruby FFI wrapper for the ZeroMQ networking library")
6302 (description "This library only provides the FFI wrapper for the ZeroMQ
6303 networking library. It can be used to implement a Ruby API for the ZeroMQ
6305 (home-page "https://github.com/chuckremes/ffi-rzmq-core")
6306 (license license:expat)))
6308 (define-public ruby-ffi-rzmq
6310 (name "ruby-ffi-rzmq")
6315 (uri (rubygems-uri "ffi-rzmq" version))
6318 "14a5kxfnf8l3ngyk8hgmk30z07aj1324ll8i48z67ps6pz2kpsrg"))))
6319 (build-system ruby-build-system)
6320 (arguments '(#:tests? #t
6321 #:phases (modify-phases %standard-phases
6324 (invoke "rspec"))))))
6326 `(("ruby-rspec" ,ruby-rspec)))
6328 `(("ruby-ffi-rzmq-core" ,ruby-ffi-rzmq-core)))
6329 (synopsis "High-level Ruby wrapper for the ZeroMQ networking library")
6330 (description "This library provides a high-level API that wraps the ZeroMQ
6331 networking library using the Ruby foreign function interface (FFI). It is a
6332 pure Ruby wrapper, hence is compatible with any Ruby runtime that has support
6334 (home-page "https://github.com/chuckremes/ffi-rzmq")
6335 (license license:expat)))
6337 (define-public ruby-sawyer
6339 (name "ruby-sawyer")
6344 (uri (rubygems-uri "sawyer" version))
6347 "0yrdchs3psh583rjapkv33mljdivggqn99wkydkjdckcjn43j3cz"))))
6348 (build-system ruby-build-system)
6350 `(("ruby-addressable" ,ruby-addressable)
6351 ("ruby-faraday" ,ruby-faraday)))
6352 (synopsis "Experimental hypermedia agent for Ruby")
6353 (description "Sawyer is an experimental hypermedia agent for Ruby built on
6355 (home-page "https://github.com/lostisland/sawyer")
6356 (license license:expat)))
6358 (define-public ruby-octokit
6360 (name "ruby-octokit")
6365 (uri (rubygems-uri "octokit" version))
6368 "0zvfr9njmj5svi39fcsi2b0g7pcxb0vamw9dlyas8bg814jlzhi6"))))
6369 (build-system ruby-build-system)
6370 (arguments '(#:tests? #f)) ;no test suite in the gem release
6372 `(("ruby-faraday" ,ruby-faraday)
6373 ("ruby-sawyer" ,ruby-sawyer)))
6374 (synopsis "Ruby toolkit for the GitHub API")
6375 (description "Octokit wraps the GitHub API in a flat API client that
6376 follows Ruby conventions and requires little knowledge of REST.")
6377 (home-page "https://github.com/octokit/octokit.rb")
6378 (license license:expat)))
6380 (define-public ruby-chandler
6382 (name "ruby-chandler")
6387 (uri (rubygems-uri "chandler" version))
6390 "1n8a4mr2jkcz5vaaps45g2rxa2pzy1wb7cylgw85xmmyyp14lnrr"))))
6391 (build-system ruby-build-system)
6393 `(("ruby-rubocop" ,ruby-rubocop)))
6395 `(("ruby-netrc" ,ruby-netrc)
6396 ("ruby-octokit" ,ruby-octokit)))
6397 (synopsis "Sync CHANGELOG entries to GitHub's release notes")
6398 (description "Chandler syncs a project's CHANGELOG file entries to
6399 GitHub's release notes to remove the need of manually entering release
6401 (home-page "https://github.com/mattbrictson/chandler")
6402 (license license:expat)))
6404 (define-public ruby-pry-byebug
6406 (name "ruby-pry-byebug")
6412 (url "https://github.com/deivid-rodriguez/pry-byebug")
6413 (commit (string-append "v" version))))
6414 (file-name (git-file-name name version))
6417 "1kchrwccai92068p50zyd6mh524ywqnm0jw5g3lks7iwmf0xkmgc"))))
6418 (build-system ruby-build-system)
6420 `(#:phases (modify-phases %standard-phases
6421 (add-before 'check 'set-home
6423 (setenv "HOME" (getcwd))
6426 `(("ruby-chandler" ,ruby-chandler)
6427 ("ruby-rubocop" ,ruby-rubocop)
6428 ("ruby-simplecov" ,ruby-simplecov)))
6430 `(("ruby-byebug" ,ruby-byebug-11)
6431 ("ruby-pry" ,ruby-pry)))
6432 (synopsis "Step-by-step debugging and stack navigation in Pry")
6433 (description "This package adds step-by-step debugging and stack
6434 navigation capabilities to @code{pry}, using @code{byebug}.")
6435 (home-page "https://github.com/deivid-rodriguez/pry-byebug")
6436 (license license:expat)))
6438 (define-public ruby-binding-of-caller
6440 (name "ruby-binding-of-caller")
6445 (uri (rubygems-uri "binding_of_caller" version))
6448 "05syqlks7463zsy1jdfbbdravdhj9hpj5pv2m74blqpv8bq4vv5g"))))
6449 (build-system ruby-build-system)
6450 ;; Attempting to run the test suite fails with a rake deprecation error
6451 ;; (see: https://github.com/banister/binding_of_caller/issues/76).
6452 (arguments '(#:tests? #f))
6454 `(("ruby-debug-inspector" ,ruby-debug-inspector)))
6455 (synopsis "Retrieve the binding of a method's caller")
6456 (description "The @code{binding_of_caller} module provides the
6457 @code{Binding#of_caller} method. It allows accessing bindings from upper
6458 frames in the call stack and can evaluate code in that context.")
6459 (home-page "https://github.com/banister/binding_of_caller")
6460 (license license:expat)))
6462 (define-public ruby-pry-stack-explorer
6464 (name "ruby-pry-stack-explorer")
6469 (uri (rubygems-uri "pry-stack_explorer" version))
6472 "157rd2n9pfvcmmicm0xkq8z4p6famaj13syrpra6b4032qpb1wn0"))))
6473 (build-system ruby-build-system)
6474 (arguments '(#:tests? #f)) ;no test suite in gem release
6476 `(("ruby-binding-of-caller" ,ruby-binding-of-caller)
6477 ("ruby-pry" ,ruby-pry)))
6478 (synopsis "Call-stack navigation plugin for the Pry REPL")
6479 (description "@code{pry-stack_explorer} is a plugin for the Pry REPL that
6480 add support to navigate the call-stack.")
6481 (home-page "https://github.com/pry/pry-stack_explorer")
6482 (license license:expat)))
6484 (define-public ruby-varint
6486 (name "ruby-varint")
6491 (uri (rubygems-uri "varint" version))
6494 "1y0l2qc64cwsyv76ygg9bbjnk86riz2kq73kmn87gdrlmpiyrdac"))))
6495 (build-system ruby-build-system)
6496 (arguments '(#:tests? #f)) ;no test suite
6497 (synopsis "Variable length integers (varint) C extension for Ruby")
6498 (description "This package provides a small C extension to speed up
6499 variable length integers (varint) in Ruby Protocol Buffers.")
6500 (home-page "https://github.com/liquidm/varint")
6501 (license license:bsd-3)))
6503 (define-public ruby-ruby-prof
6505 (name "ruby-ruby-prof")
6510 (uri (rubygems-uri "ruby-prof" version))
6513 "12cd91m08ih0imfpy4k87618hd4mhyz291a6bx2hcskza4nf6d27"))))
6514 (build-system ruby-build-system)
6517 (modify-phases %standard-phases
6518 (add-after 'unpack 'patch-rakefile
6519 ;; This fixes the following error: "NameError: uninitialized
6520 ;; constant Bundler::GemHelper" (see:
6521 ;; https://github.com/ruby-prof/ruby-prof/issues/274).
6523 (substitute* "Rakefile"
6524 ((".*require \"bundler/setup\".*" all)
6525 (string-append all " require 'bundler/gem_tasks'\n")))
6527 ;; The LineNumbersTest test fails non-deterministically (see:
6528 ;; https://github.com/ruby-prof/ruby-prof/issues/276).
6529 (add-after 'extract-gemspec 'delete-flaky-test
6531 (delete-file "test/line_number_test.rb")
6532 (substitute* "ruby-prof.gemspec"
6533 (("\"test/line_number_test\\.rb\"\\.freeze, ") ""))
6535 (add-before 'check 'compile
6537 (invoke "rake" "compile"))))))
6539 `(("bundler" ,bundler)
6540 ("ruby-minitest" ,ruby-minitest)
6541 ("ruby-rake-compiler" ,ruby-rake-compiler)
6542 ("ruby-rdoc" ,ruby-rdoc)))
6543 (synopsis "Fast code profiler for Ruby")
6544 (description "RubyProf is a fast code profiler for Ruby. Its features
6548 Being a C extension, it is many times faster than the standard Ruby profiler.
6549 @item Measurement Modes
6550 It can measure program wall time, process time, object allocations and memory
6553 A variety of text and cross-referenced HTML reports can be generated.
6555 Profiling multiple threads simultaneously is supported.
6557 (home-page "https://github.com/ruby-prof/ruby-prof")
6558 (license license:bsd-2)))
6560 (define-public ruby-cucumber-messages
6562 (name "ruby-cucumber-messages")
6567 (url "https://github.com/cucumber/messages-ruby")
6568 (commit "12cd07eac87bce7843fd1bb0bf64bc4da09f097c")))
6569 (file-name (git-file-name name version))
6572 "16wwqfpsq7crvxc3q08lphgyh12cl2d83p1c79p312q4jmy9cn5a"))))
6573 (build-system ruby-build-system)
6575 `(#:phases (modify-phases %standard-phases
6576 (add-after 'unpack 'patch-protobuf.rb
6578 (substitute* "rake/protobuf.rb"
6579 (("load 'protobuf/tasks/compile.rake'")
6580 "require 'protobuf/tasks'"))
6582 (add-before 'build 'compile
6584 (substitute* "Makefile"
6585 (("bundle exec ") "")
6586 (("include default.mk.*" all)
6587 (string-append "#" all)))
6591 (invoke "rspec"))))))
6593 `(("ruby-protobuf" ,ruby-protobuf-cucumber)))
6595 `(("ruby-rspec" ,ruby-rspec)))
6596 (home-page "https://github.com/cucumber/messages-ruby")
6597 (synopsis "Cucumber Messages for Ruby (Protocol Buffers)")
6598 (description "Cucumber Messages for Ruby is a library which allows
6599 serialization and deserialization of the protocol buffer messages used in
6601 (license license:expat)))
6603 (define-public ruby-gherkin
6605 (name "ruby-gherkin")
6610 (url "https://github.com/cucumber/gherkin-ruby")
6611 (commit (string-append "v" version))))
6612 (file-name (git-file-name name version))
6615 "1dwa8632nc6kijv8p257jl64rsjmc0fimlaqvxlkdi2h9n1nympb"))))
6616 (build-system ruby-build-system)
6618 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6619 ("ruby-rspec" ,ruby-rspec)))
6621 `(#:test-target "spec"))
6622 (synopsis "Gherkin parser for Ruby")
6623 (description "Gherkin is a parser and compiler for the Gherkin language.
6624 It is intended be used by all Cucumber implementations to parse
6625 @file{.feature} files.")
6626 (home-page "https://github.com/cucumber/gherkin-ruby")
6627 (license license:expat)))
6629 (define-public ruby-gherkin-ruby
6631 (name "ruby-gherkin-ruby")
6633 (home-page "http://github.com/codegram/gherkin-ruby")
6636 (uri (rubygems-uri "gherkin-ruby" version))
6639 "18ay7yiibf4sl9n94k7mbi4k5zj2igl4j71qcmkswv69znyx0sn1"))))
6640 (build-system ruby-build-system)
6641 (synopsis "Pure Ruby Gherkin parser")
6643 "Gherkin-ruby is a Gherkin parser written in pure Ruby and less than
6644 200 lines of code.")
6645 ;; XXX: No license information anywhere but Readme.md.
6646 (license license:expat)))
6648 (define-public ruby-aruba
6655 (uri (rubygems-uri "aruba" version))
6658 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
6659 (build-system ruby-build-system)
6661 '(#:test-target "spec"
6663 (modify-phases %standard-phases
6664 (add-after 'unpack 'patch
6666 (substitute* "spec/aruba/api_spec.rb"
6667 ;; This resolves some errors in the specs
6669 ;; undefined method `parse' for Time:Class
6670 (("require 'spec_helper'")
6671 "require 'spec_helper'\nrequire 'time'"))
6672 ;; Avoid shebang issues in this spec file
6673 (substitute* "spec/aruba/matchers/command_spec.rb"
6674 (("/usr/bin/env bash")
6677 (add-before 'check 'remove-unnecessary-dependencies
6679 (substitute* "Gemfile"
6680 ((".*byebug.*") "\n")
6684 ((".*kramdown.*") "\n")
6685 ((".*rubocop.*") "\n")
6686 ((".*cucumber-pro.*") "\n")
6687 ((".*cucumber.*") "\n")
6688 ((".*license_finder.*") "\n")
6689 ((".*rake.*") "gem 'rake'\n")
6690 ((".*relish.*") "\n"))
6691 (substitute* "aruba.gemspec"
6692 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
6693 "spec.add_runtime_dependency 'cucumber'"))
6695 (add-before 'check 'set-home
6696 (lambda _ (setenv "HOME" "/tmp") #t)))))
6698 `(("bundler" ,bundler)
6699 ("ruby-rspec" ,ruby-rspec)
6700 ("ruby-fuubar" ,ruby-fuubar)
6701 ("ruby-simplecov" ,ruby-simplecov)))
6703 `(("ruby-childprocess" ,ruby-childprocess)
6704 ("ruby-contracts" ,ruby-contracts)
6705 ("ruby-cucumber" ,ruby-cucumber)
6706 ("ruby-ffi" ,ruby-ffi)
6707 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
6708 ("ruby-thor" ,ruby-thor)
6709 ("ruby-yard" ,ruby-yard)))
6710 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
6712 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
6713 command-line applications. It supports applications written in any
6715 (home-page "https://github.com/cucumber/aruba")
6716 (license license:expat)))
6718 ;; A version of ruby-aruba without tests run so that circular dependencies can
6720 (define ruby-aruba-without-tests
6722 (inherit ruby-aruba)
6723 (arguments '(#:tests? #f))
6725 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
6726 ,@(alist-delete "ruby-cucumber"
6727 (package-propagated-inputs ruby-aruba))))
6728 (native-inputs '())))
6730 (define-public ruby-sys-uname
6732 (name "ruby-sys-uname")
6737 (uri (rubygems-uri "sys-uname" version))
6740 "00p3wwvkdbg6pl38bchaagncv3i4fq4y0ks470imwykjanpy2ic0"))))
6741 (build-system ruby-build-system)
6743 `(#:test-target "spec"))
6744 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
6745 (native-inputs `(("ruby-rspec" ,ruby-rspec)))
6746 (synopsis "Ruby interface for gathering system information")
6747 (description "The sys-uname library provides an interface for gathering
6748 information about your current platform. It allows retrieving information
6749 such as the OS name, OS version, system name, etc.")
6750 (home-page "https://github.com/djberg96/sys-uname")
6751 (license license:asl2.0)))
6753 (define-public ruby-cucumber-create-meta
6755 (name "ruby-cucumber-create-meta")
6760 (uri (rubygems-uri "cucumber-create-meta" version))
6763 "0i0i3arymjrnjk72mg79w1a11607x4d0lrqafm9sz2gq9l52zasw"))))
6764 (build-system ruby-build-system)
6766 `(#:phases (modify-phases %standard-phases
6767 (add-after 'extract-gemspec 'relax-version-requirements
6769 (substitute* ".gemspec"
6775 (invoke "rspec"))))))
6777 `(("ruby-rspec" ,ruby-rspec)))
6779 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6780 ("ruby-sys-uname" ,ruby-sys-uname)))
6781 (synopsis "Function to create @code{Meta} messages for Cucumber Ruby")
6782 (description "The @code{createMeta} utility function allows generating
6783 system-specific @code{Meta} messages for Cucumber Ruby.")
6784 (home-page "https://github.com/cucumber/cucumber/tree/master/create-meta/ruby")
6785 (license license:expat)))
6787 (define-public ruby-cucumber-html-formatter
6789 (name "ruby-cucumber-html-formatter")
6794 (uri (rubygems-uri "cucumber-html-formatter" version))
6797 "0lshj4sw9jw7687wrhknyb9kffblai3l843zgrznyqij3ga0bc62"))))
6798 (build-system ruby-build-system)
6800 `(#:phases (modify-phases %standard-phases
6803 (invoke "rspec"))))))
6805 `(("ruby-rspec" ,ruby-rspec)))
6807 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)))
6808 (synopsis "HTML formatter for Cucumber")
6809 (description "Cucumber HTML Formatter produces a HTML report for Cucumber
6810 runs. It is built on top of cucumber-react and works with any Cucumber
6811 implementation with a protocol buffer formatter that outputs Cucumber
6813 (home-page "https://github.com/cucumber/cucumber/tree/\
6814 master/html-formatter/ruby")
6815 (license license:expat)))
6817 (define-public ruby-cucumber
6819 (name "ruby-cucumber")
6825 (url "https://github.com/cucumber/cucumber-ruby")
6826 (commit (string-append "v" version))))
6827 (file-name (git-file-name name version))
6830 "0g9rqfslbzkkrq2kvl14fgknrhfbji3bjjpjxff5nc9wzd3hd549"))))
6831 (build-system ruby-build-system)
6833 '(#:test-target "default"
6835 (modify-phases %standard-phases
6836 (add-after 'unpack 'disable-rubocop
6837 ;; Rubocop lint check fails with our more recent version.
6839 (substitute* "Rakefile"
6840 (("spec cucumber rubocop")
6843 (add-after 'extract-gemspec 'strip-version-requirements
6845 (delete-file "Gemfile") ;do not use Bundler
6846 (substitute* "cucumber.gemspec"
6847 (("(.*add_.*dependency '[_A-Za-z0-9-]+').*" _ stripped)
6848 (string-append stripped "\n")))
6850 (add-before 'check 'set-home
6852 (setenv "HOME" (getcwd))
6855 `(("ruby-builder" ,ruby-builder)
6856 ("ruby-cucumber-core" ,ruby-cucumber-core)
6857 ("ruby-cucumber-create-meta" ,ruby-cucumber-create-meta)
6858 ("ruby-cucumber-html-formatter" ,ruby-cucumber-html-formatter)
6859 ("ruby-cucumber-messages" ,ruby-cucumber-messages)
6860 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
6861 ("ruby-diff-lcs" ,ruby-diff-lcs)
6862 ("ruby-gherkin" ,ruby-gherkin)
6863 ("ruby-multi-json" ,ruby-multi-json)
6864 ("ruby-multi-test" ,ruby-multi-test)))
6866 `(;; Use a untested version of aruba, to avoid a circular dependency, as
6867 ;; ruby-aruba depends on ruby-cucumber.
6868 ("ruby-aruba", ruby-aruba-without-tests)
6869 ("ruby-rspec" ,ruby-rspec)
6870 ("ruby-pry" ,ruby-pry)
6871 ("ruby-nokogiri" ,ruby-nokogiri)
6872 ("ruby-rubocop" ,ruby-rubocop)))
6873 (synopsis "Describe automated tests in plain language")
6874 (description "Cucumber is a tool for running automated tests written in
6875 plain language. It's designed to support a Behaviour Driven Development (BDD)
6876 software development workflow.")
6877 (home-page "https://cucumber.io/")
6878 (license license:expat)))
6880 (define ruby-cucumber-without-tests
6881 (package (inherit ruby-cucumber)
6887 (define-public ruby-coveralls
6889 (name "ruby-coveralls")
6894 (uri (rubygems-uri "coveralls" version))
6897 "1mv4fn5lfxhy7bc2f1lpnc5yp9mvv97az77j4r7jgrxcqwn8fqxc"))))
6898 (build-system ruby-build-system)
6899 ;; The test suite depends on ruby-vcr, which cannot be included in Guix
6900 ;; because of its nonfree, Hippocratic derived license.
6901 (arguments '(#:tests? #f))
6903 `(("ruby-json" ,ruby-json)
6904 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
6905 ("ruby-thor" ,ruby-thor)
6906 ("ruby-tins" ,ruby-tins)))
6907 (synopsis "Ruby implementation of the Coveralls API")
6908 (description "This package provides a Ruby implementation of the Coveralls
6910 (home-page "https://coveralls.io")
6911 (license license:expat)))
6913 (define-public ruby-unindent
6915 (name "ruby-unindent")
6920 (uri (rubygems-uri "unindent" version))
6923 "1wqh3rzv8589yzibigminxx3qpmj2nqj28f90xy1sczk1pijmcrd"))))
6924 (build-system ruby-build-system)
6925 (synopsis "Ruby method to unindent strings")
6926 (description "This module provides a @code{String#unindent} Ruby method to
6927 unindent strings, which can be useful to unindent multiline strings embedded
6928 in already-indented code.")
6929 (home-page "https://github.com/mynyml/unindent")
6930 (license license:expat)))
6932 (define-public ruby-cucumber-core
6934 (name "ruby-cucumber-core")
6940 (url "https://github.com/cucumber/cucumber-ruby-core")
6941 (commit (string-append "v" version))))
6942 (file-name (git-file-name name version))
6945 "1p5wb6wbggbw37ariyag4kxpiczznvgm3c8cnz1744dmbj79q1rn"))))
6946 (build-system ruby-build-system)
6948 `(#:test-target "spec"
6950 (modify-phases %standard-phases
6951 (add-after 'extract-gemspec 'relax-version-requirements
6953 (substitute* "cucumber-core.gemspec"
6954 (("'cucumber-tag-expressions',.*")
6955 "'cucumber-tag-expressions', '>=2.0.0'\n"))
6958 `(("ruby-rspec" ,ruby-rspec)
6959 ("ruby-coveralls" ,ruby-coveralls)
6960 ("ruby-rubocop" ,ruby-rubocop)
6961 ("ruby-simplecov" ,ruby-simplecov)
6962 ("ruby-unindent" ,ruby-unindent)))
6964 `(("ruby-cucumber-messages" ,ruby-cucumber-messages)
6965 ("ruby-gherkin" ,ruby-gherkin)
6966 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
6967 (synopsis "Core library for the Cucumber BDD app")
6968 (description "Cucumber is a tool for running automated tests
6969 written in plain language. Because they're written in plain language,
6970 they can be read by anyone on your team. Because they can be read by
6971 anyone, you can use them to help improve communication, collaboration
6972 and trust on your team.")
6973 (home-page "https://cucumber.io/")
6974 (license license:expat)))
6976 (define-public ruby-cucumber-expressions
6978 (name "ruby-cucumber-expressions")
6984 (url "https://github.com/cucumber/cucumber-expressions-ruby")
6985 (commit (string-append "v" version))))
6986 (file-name (git-file-name name version))
6989 "1aivhcpjrmbvp9bg0y7g6zxh2swfvylvg0sapq5jc4i1y74k8npd"))))
6990 (build-system ruby-build-system)
6992 '(#:test-target "spec"))
6994 `(("ruby-rspec" ,ruby-rspec)
6995 ("ruby-simplecov" ,ruby-simplecov)))
6996 (synopsis "Simpler alternative to Regular Expressions")
6997 (description "Cucumber Expressions offer similar functionality to Regular
6998 Expressions, with a syntax that is easier to read and write. Cucumber
6999 Expressions are extensible with parameter types.")
7000 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
7001 (license license:expat)))
7003 (define-public ruby-cucumber-wire
7005 (name "ruby-cucumber-wire")
7010 (uri (rubygems-uri "cucumber-wire" version))
7013 "0z1n13lqv70zb2lcrvs2263lm0gsb3gz8gbv890kxzwp8cvd433k"))))
7014 (build-system ruby-build-system)
7016 '(#:tests? #f ;tests use cucumber, causing a cycle
7018 (modify-phases %standard-phases
7019 (add-after 'extract-gemspec 'relax-version-requirements
7021 (substitute* ".gemspec"
7022 ((" 10\\.1") " 10.2"))
7025 `(("ruby-cucumber-core" ,ruby-cucumber-core)
7026 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
7027 ("ruby-cucumber-messages" ,ruby-cucumber-messages)))
7028 (synopsis "Cucumber wire protocol plugin")
7029 (description "Cucumber's wire protocol allows step definitions to be
7030 implemented and invoked on any platform.")
7031 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
7032 (license license:expat)))
7034 (define-public ruby-cucumber-tag-expressions
7036 (name "ruby-cucumber-tag-expressions")
7042 (url "https://github.com/cucumber/tag-expressions-ruby")
7043 (commit (string-append "v" version))))
7044 (file-name (git-file-name name version))
7047 "15dw4w0npd4m6aw7zhqkjxxzngp42kswrkwfygxkxcxnhy5zl1vx"))))
7048 (build-system ruby-build-system)
7050 `(#:test-target "spec"))
7052 `(("ruby-rspec" ,ruby-rspec)))
7053 (synopsis "Cucumber tag expressions for Ruby")
7054 (description "Cucumber tag expression parser for Ruby. A tag expression
7055 is an infix boolean expression used by Cucumber.")
7056 (home-page "https://github.com/cucumber/tag-expressions-ruby")
7057 (license license:expat)))
7059 (define-public ruby-bindex
7061 (name "ruby-bindex")
7066 (uri (rubygems-uri "bindex" version))
7069 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
7070 (build-system ruby-build-system)
7072 '(#:test-target "default"))
7074 `(("bundler" ,bundler)
7075 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7076 (synopsis "Provides access for bindings relating to Ruby exceptions")
7078 "@code{bindex} provides a way to access the bindings that relate to
7079 exceptions in Ruby, providing more information about the context in which the
7080 exception occurred.")
7081 (home-page "https://github.com/gsamokovarov/bindex")
7082 (license license:expat)))
7084 (define-public ruby-bio-logger
7086 (name "ruby-bio-logger")
7091 (uri (rubygems-uri "bio-logger" version))
7094 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
7095 (build-system ruby-build-system)
7097 `(#:tests? #f)) ; rake errors, missing shoulda
7099 `(("ruby-log4r" ,ruby-log4r)))
7100 (synopsis "Log4r wrapper for Ruby")
7101 (description "Bio-logger is a wrapper around Log4r adding extra logging
7102 features such as filtering and fine grained logging.")
7103 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
7104 (license license:expat)))
7106 (define-public ruby-yajl-ruby
7108 (name "ruby-yajl-ruby")
7113 (uri (rubygems-uri "yajl-ruby" version))
7116 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
7117 (build-system ruby-build-system)
7119 '(#:test-target "spec"
7121 (modify-phases %standard-phases
7122 (add-before 'check 'patch-test-to-update-load-path
7124 (substitute* "spec/parsing/large_number_spec.rb"
7125 (("require \"yajl\"")
7126 "$LOAD_PATH << 'lib'; require 'yajl'"))
7129 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7130 ("ruby-rspec" ,ruby-rspec)))
7131 (synopsis "Streaming JSON parsing and encoding library for Ruby")
7133 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
7134 is compatible with the JSON gem, so yajl-ruby can act as a drop in
7137 A modified copy of yajl is used, and included in the package.")
7138 (home-page "https://github.com/brianmario/yajl-ruby")
7139 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
7140 license:bsd-3)))) ; Included, modified copy of yajl
7142 (define-public ruby-yard
7149 ;; Tests do not pass if we build from the distributed gem.
7151 (url "https://github.com/lsegal/yard")
7152 (commit (string-append "v" version))))
7153 (file-name (git-file-name name version))
7156 "1x7y4s557hrnq439lih7nqg1y7ximardw75jx9i92x3yzpviqqwa"))))
7157 (build-system ruby-build-system)
7159 ;; Note: Tests are willfully disabled to alleviate dependency cycle
7162 (synopsis "Documentation generation tool for Ruby")
7163 (description "YARD is a documentation generation tool for the Ruby
7164 programming language. It enables the user to generate consistent, usable
7165 documentation that can be exported to a number of formats very easily, and
7166 also supports extending for custom Ruby constructs such as custom class level
7168 (home-page "https://yardoc.org")
7169 (license license:expat)))
7171 (define-public ruby-yard-with-tests
7174 (name "ruby-yard-with-tests")
7176 (substitute-keyword-arguments (package-arguments ruby-yard)
7177 ((#:tests? _ #t) #t)
7178 ((#:test-target _ "default") "default")
7179 ((#:phases phases '%standard-phases)
7180 `(modify-phases ,phases
7181 (add-before 'check 'prepare-for-tests
7182 (lambda* (#:key tests? #:allow-other-keys)
7184 (substitute* "Rakefile"
7185 ((".*[Ss]amus.*") ""))
7186 ;; Delete the Gemfile to avoid errors relating to it.
7187 (delete-file "Gemfile")
7188 ;; $HOME needs to be set to somewhere writeable for tests to
7190 (setenv "HOME" "/tmp"))
7193 `(("ruby-rspec" ,ruby-rspec)
7194 ("ruby-rack" ,ruby-rack)
7195 ("ruby-redcloth" ,ruby-redcloth)
7196 ("ruby-asciidoc" ,ruby-asciidoctor)))))
7198 (define-public ruby-spectroscope
7200 (name "ruby-spectroscope")
7205 (uri (rubygems-uri "spectroscope" version))
7208 "0iiid9sm110qhx0i1zkds710cvsnmhd308wbqa7slkzbq2akrb3y"))))
7209 (build-system ruby-build-system)
7212 (modify-phases %standard-phases
7215 (with-output-to-file ".test"
7224 Test.run :default do |run|
7225 run.files << 'spec/*_spec.rb'
7227 (invoke "ruby" "-Ilib" "-rrubytest" ".test"))))))
7229 `(("ruby-ae" ,ruby-ae)
7230 ("ruby-rspec" ,ruby-rspec)))
7232 `(("ruby-rubytest" ,ruby-rubytest)))
7233 (synopsis "Behavior-Driven Development (BDD) framework built on RubyTest")
7234 (description "Spectroscope is a Behavior-Driven Development (BDD)
7235 framework built on RubyTest, designed to emulate RSpec in most respects. It
7236 is assertion framework independent so any number of assertion systems can be
7237 used, such as Assay or AE.")
7238 (home-page "http://rubyworks.github.com/spectroscope/")
7239 (license license:bsd-2)))
7241 (define-public ruby-tomparse
7243 (name "ruby-tomparse")
7248 (uri (rubygems-uri "tomparse" version))
7251 "06xakk41f1kgj6j1ahkwn4r6cvidixvm4phhlrvmwb7c3pr8ygc8"))))
7252 (build-system ruby-build-system)
7253 ;; TODO: Tests require citron and rulebow, not yet packaged.
7254 (arguments '(#:tests? #f))
7255 (synopsis "TomDoc parser for Ruby")
7256 (description "TomParse is a TomDoc parser for Ruby. It takes a code
7257 comment as input and parses it into a convenient object-oriented structure in
7258 accordance with the TomDoc standard. See
7259 @url{https://github.com/mojombo/tomdoc, TomDoc} for more information about the
7261 (home-page "http://rubyworks.github.com/tomparse/")
7262 (license license:bsd-2)))
7264 (define-public ruby-yard-tomdoc
7266 (name "ruby-yard-tomdoc")
7271 (uri (rubygems-uri "yard-tomdoc" version))
7274 "1725gs8b8klpwhrvnf2wwp7dw3zxs9vz2la983l2d8c4r4fn1j2z"))))
7275 (build-system ruby-build-system)
7277 `(#:phases (modify-phases %standard-phases
7280 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
7282 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
7283 ("ruby-spectroscope" ,ruby-spectroscope)
7284 ("ruby-ae" ,ruby-ae)))
7286 `(("ruby-tomparse" ,ruby-tomparse)
7287 ("ruby-yard" ,ruby-yard)))
7288 (synopsis "TomDoc syntax for YARD")
7289 (description "This module adds support for the TomDoc documentation format
7290 to YARD, a documentation generation tool for Ruby.")
7291 (home-page "http://rubyworks.github.com/yard-tomdoc/")
7292 (license license:expat)))
7294 (define-public ruby-clap
7300 (uri (rubygems-uri "clap" version))
7303 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
7304 (build-system ruby-build-system)
7305 ;; Clap needs cutest for running tests, but cutest needs clap.
7306 (arguments `(#:tests? #f))
7307 (synopsis "Command line argument parsing for simple applications")
7309 "Clap provides command line argument parsing features. It covers the
7310 simple case of executing code based on the flags or parameters passed.")
7311 (home-page "https://github.com/djanowski/cutest")
7312 (license license:expat)))
7314 (define-public ruby-cutest
7316 (name "ruby-cutest")
7320 (uri (rubygems-uri "cutest" version))
7323 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
7324 (build-system ruby-build-system)
7326 `(("ruby-clap" ,ruby-clap)))
7327 (synopsis "Run tests in separate processes")
7329 "Cutest runs tests in separate processes to avoid shared state.")
7330 (home-page "https://github.com/djanowski/cutest")
7331 (license license:expat)))
7333 (define-public ruby-pygmentize
7335 (name "ruby-pygmentize")
7339 (uri (rubygems-uri "pygmentize" version))
7342 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
7343 (build-system ruby-build-system)
7346 (modify-phases %standard-phases
7347 (add-after 'unpack 'fix-pygmentize-path
7349 (substitute* "lib/pygmentize.rb"
7350 (("\"/usr/bin/env python.*")
7351 (string-append "\"" (which "pygmentize") "\"\n")))
7353 (add-after 'build 'do-not-use-vendor-directory
7355 ;; Remove bundled pygments sources
7356 ;; FIXME: ruby-build-system does not support snippets.
7357 (delete-file-recursively "vendor")
7358 (substitute* "pygmentize.gemspec"
7359 (("\"vendor/\\*\\*/\\*\",") ""))
7362 `(("pygments" ,python-pygments)))
7364 `(("ruby-cutest" ,ruby-cutest)
7365 ("ruby-nokogiri" ,ruby-nokogiri)))
7366 (synopsis "Thin Ruby wrapper around pygmentize")
7368 "Pygmentize provides a simple way to call pygmentize from within a Ruby
7370 (home-page "https://github.com/djanowski/pygmentize")
7371 (license license:expat)))
7373 (define-public ruby-eventmachine
7375 (name "ruby-eventmachine")
7380 (uri (rubygems-uri "eventmachine" version))
7383 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
7384 (build-system ruby-build-system)
7386 '(#:tests? #f)) ; test suite tries to connect to google.com
7388 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
7389 (synopsis "Single-threaded network event framework for Ruby")
7391 "EventMachine implements a single-threaded engine for arbitrary network
7392 communications. EventMachine wraps all interactions with sockets, allowing
7393 programs to concentrate on the implementation of network protocols. It can be
7394 used to create both network servers and clients.")
7395 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
7396 (home-page "https://github.com/eventmachine/eventmachine")
7397 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
7399 (define-public ruby-ruby-engine
7401 (name "ruby-ruby-engine")
7406 (uri (rubygems-uri "ruby_engine" version))
7409 "0wqdcv8gxybp1y7kjhh18g3r9dczacs62d4ahcvyhz32bih8c9fm"))))
7410 (build-system ruby-build-system)
7413 (modify-phases %standard-phases
7414 (add-after 'extract-gemspec 'clean-up
7416 (delete-file "Gemfile.lock")
7417 (substitute* "ruby_engine.gemspec"
7418 ;; Remove unnecessary imports that would entail further
7421 ((".*<rubygems-tasks.*") "")
7422 ;; Remove extraneous .gem file
7423 (("\"pkg/ruby_engine-[0-9.]+\\.gem\".freeze, ") "")
7424 (("\"Gemfile.lock\".freeze, ") "")
7425 ;; Soften rake dependency
7426 (("%q<rake>.freeze, \\[\"~> 10.0\"\\]")
7427 "%q<rake>.freeze, [\">= 10.0\"]")
7428 ;; Soften the rspec dependency
7429 (("%q<rspec>.freeze, \\[\"~> 2.4\"\\]")
7430 "%q<rspec>.freeze, [\">= 2.4\"]"))
7431 (substitute* "Rakefile"
7432 (("require 'rubygems/tasks'") "")
7433 (("Gem::Tasks.new") ""))
7434 ;; Remove extraneous .gem file that otherwise gets installed.
7435 (delete-file-recursively "pkg")
7438 `(("bundler" ,bundler)
7439 ("ruby-rake" ,ruby-rake)
7440 ("ruby-rspec" ,ruby-rspec)))
7441 (synopsis "Simplifies checking for Ruby implementation")
7443 "@code{ruby_engine} provides an RubyEngine class that can be used to
7444 check which implementation of Ruby is in use. It can provide the interpreter
7445 name and provides query methods such as @{RubyEngine.mri?}.")
7446 (home-page "https://github.com/janlelis/ruby_engine")
7447 (license license:expat)))
7449 (define-public ruby-turn
7456 (uri (rubygems-uri "turn" version))
7459 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
7460 (build-system ruby-build-system)
7463 (modify-phases %standard-phases
7464 ;; Tests fail because turn changes its environment so can no longer
7465 ;; find test/unit. Instead simply test if the executable runs
7469 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
7471 `(("ruby-ansi" ,ruby-ansi)
7472 ("ruby-minitest" ,ruby-minitest-4)))
7473 (synopsis "Alternate set of alternative runners for MiniTest")
7475 "TURN provides a set of alternative runners for MiniTest which are both
7476 colorful and informative. TURN displays each test on a separate line with
7477 failures being displayed immediately instead of at the end of the tests. Note
7478 that TURN is no longer being maintained.")
7479 (home-page "https://rubygems.org/gems/turn")
7480 (license license:expat)))
7482 (define-public ruby-mimemagic
7484 (name "ruby-mimemagic")
7489 (uri (rubygems-uri "mimemagic" version))
7491 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
7492 (build-system ruby-build-system)
7495 (modify-phases %standard-phases
7496 ;; This phase breaks the tests, as it patches some of the test data.
7497 (delete 'patch-source-shebangs))))
7499 `(("ruby-bacon" ,ruby-bacon)))
7500 (synopsis "Ruby library for MIME detection by extension or content")
7502 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
7503 extension or content, using the freedesktop.org.xml shared-mime-info
7505 (home-page "https://github.com/minad/mimemagic")
7506 (license license:expat)))
7508 (define-public ruby-mime-types-data
7510 (name "ruby-mime-types-data")
7511 (version "3.2016.0521")
7515 (uri (rubygems-uri "mime-types-data" version))
7518 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
7519 (build-system ruby-build-system)
7521 `(("ruby-hoe" ,ruby-hoe)))
7522 (synopsis "Registry for information about MIME media type definitions")
7524 "@code{mime-types-data} provides a registry for information about
7525 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
7526 be used with the Ruby mime-types library or other software to determine
7527 defined filename extensions for MIME types, or to use filename extensions to
7528 look up the likely MIME type definitions.")
7529 (home-page "https://github.com/mime-types/mime-types-data/")
7530 (license license:expat)))
7532 (define-public ruby-mime-types
7534 (name "ruby-mime-types")
7539 (uri (rubygems-uri "mime-types" version))
7542 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
7543 (build-system ruby-build-system)
7545 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
7547 `(("ruby-hoe" ,ruby-hoe)
7548 ("ruby-fivemat" ,ruby-fivemat)
7549 ("ruby-minitest-focus" ,ruby-minitest-focus)
7550 ("ruby-minitest-rg" ,ruby-minitest-rg)
7551 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
7552 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
7553 (synopsis "Library and registry for MIME content type definitions")
7554 (description "The mime-types library provides a library and registry for
7555 information about Multipurpose Internet Mail Extensions (MIME) content type
7556 definitions. It can be used to determine defined filename extensions for MIME
7557 types, or to use filename extensions to look up the likely MIME type
7559 (home-page "https://github.com/mime-types/ruby-mime-types")
7560 (license license:expat)))
7562 (define-public ruby-fivemat
7564 (name "ruby-fivemat")
7569 (uri (rubygems-uri "fivemat" version))
7572 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
7573 (build-system ruby-build-system)
7575 `(#:tests? #f)) ; no tests
7576 (synopsis "Each test file given its own line of dots")
7578 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
7579 its own line of dots during testing. It aims to provide test output that is
7580 neither too verbose nor too minimal.")
7581 (home-page "https://github.com/tpope/fivemat")
7582 (license license:expat)))
7584 (define-public ruby-sqlite3
7586 (name "ruby-sqlite3")
7591 (uri (rubygems-uri "sqlite3" version))
7594 "0lja01cp9xd5m6vmx99zwn4r7s97r1w5cb76gqd8xhbm1wxyzf78"))))
7595 (build-system ruby-build-system)
7598 (modify-phases %standard-phases
7599 (add-before 'check 'add-gemtest-file
7600 ;; This file exists in the repository but is not distributed.
7601 (lambda _ (invoke "touch" ".gemtest"))))))
7603 `(("sqlite" ,sqlite)))
7605 `(("ruby-hoe" ,ruby-hoe)
7606 ("ruby-rake-compiler" ,ruby-rake-compiler)
7607 ("ruby-mini-portile" ,ruby-mini-portile)))
7608 (synopsis "Interface with SQLite3 databases")
7610 "This module allows Ruby programs to interface with the SQLite3 database
7613 "https://github.com/sparklemotion/sqlite3-ruby")
7614 (license license:bsd-3)))
7616 (define-public ruby-shoulda-context
7618 (name "ruby-shoulda-context")
7623 (uri (rubygems-uri "shoulda-context" version))
7626 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
7627 (build-system ruby-build-system)
7630 (modify-phases %standard-phases
7633 ;; Do not run tests to avoid circular dependence with rails.
7634 ;; Instead just import the library to test.
7635 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
7636 (synopsis "Test::Unit context framework extracted from Shoulda")
7638 "@code{shoulda-context} is the context framework extracted from Shoulda.
7639 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
7640 context, setup, and should blocks combine to produce natural test method
7642 (home-page "https://github.com/thoughtbot/shoulda-context")
7643 (license license:expat)))
7645 (define-public ruby-shoulda-matchers
7647 (name "ruby-shoulda-matchers")
7652 (uri (rubygems-uri "shoulda-matchers" version))
7655 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
7656 (build-system ruby-build-system)
7659 (modify-phases %standard-phases
7662 ;; Do not run tests to avoid circular dependence with rails. Instead
7663 ;; just import the library to test.
7664 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
7666 `(("ruby-activesupport" ,ruby-activesupport)))
7667 (synopsis "Collection of testing matchers extracted from Shoulda")
7669 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
7670 test common Rails functionality. These tests would otherwise be much longer,
7671 more complex, and error-prone.")
7672 (home-page "https://github.com/thoughtbot/shoulda-matchers")
7673 (license license:expat)))
7675 (define-public ruby-shoulda-matchers-2
7677 (inherit ruby-shoulda-matchers)
7681 (uri (rubygems-uri "shoulda-matchers" version))
7684 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
7686 (define-public ruby-shoulda
7688 (name "ruby-shoulda")
7693 (uri (rubygems-uri "shoulda" version))
7696 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
7697 (build-system ruby-build-system)
7700 (modify-phases %standard-phases
7702 ;; Don't run tests to avoid circular dependence with rails. Instead
7703 ;; just import the library to test.
7704 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
7706 `(("ruby-shoulda-context" ,ruby-shoulda-context)
7707 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
7708 (synopsis "Context framework and matchers for testing")
7710 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
7711 @code{shoulda-matchers} providing tools for writing tests.")
7712 (home-page "https://github.com/thoughtbot/shoulda")
7713 (license license:expat)))
7715 (define-public ruby-unf
7722 (uri (rubygems-uri "unf" version))
7725 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
7726 (build-system ruby-build-system)
7729 (modify-phases %standard-phases
7730 (add-before 'check 'add-dependency-to-bundler
7732 ;; test-unit is required but not provided by the bundler
7733 ;; environment. This is fixed in the upstream repository but fix
7734 ;; has not been released.
7735 (substitute* "Gemfile"
7736 (("^gemspec") "gem 'test-unit'\ngemspec"))
7739 `(("ruby-unf-ext" ,ruby-unf-ext)))
7741 `(("ruby-shoulda" ,ruby-shoulda)
7742 ("bundler" ,bundler)
7743 ("ruby-test-unit" ,ruby-test-unit)))
7744 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
7746 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
7747 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
7748 @code{java.text.Normalizer} on JRuby.")
7749 (home-page "https://github.com/knu/ruby-unf")
7750 (license license:bsd-2)))
7752 (define-public ruby-warden
7754 (name "ruby-warden")
7759 (uri (rubygems-uri "warden" version))
7762 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
7763 (build-system ruby-build-system)
7765 '(#:tests? #f)) ; No included tests
7767 `(("ruby-rack" ,ruby-rack)))
7768 (synopsis "Rack middleware providing authentication")
7770 "Warden is a Rack-based middleware that provides a mechanism for
7771 authentication in Ruby web applications.")
7772 (home-page "https://github.com/wardencommunity/warden")
7773 (license license:expat)))
7775 (define-public ruby-warden-oauth2
7777 (name "ruby-warden-oauth2")
7782 (uri (rubygems-uri "warden-oauth2" version))
7785 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
7786 (build-system ruby-build-system)
7788 '(#:test-target "spec"
7790 (modify-phases %standard-phases
7791 (add-after 'unpack 'remove-unnecessary-dependencies
7793 (substitute* "Gemfile"
7794 ;; All of these gems relate to development, and are unnecessary
7795 ;; when running the tests
7796 (("gem 'guard-bundler'") "")
7797 (("gem 'guard'") "")
7798 (("gem 'guard-rspec'") "")
7799 (("gem 'rb-fsevent'") "")
7801 (("gem 'growl'") ""))
7803 ;; The test suite doesn't work with rspec@2, and this is incompatible
7804 ;; with the current version of Rake, so invoke Rspec directly
7806 (lambda* (#:key tests? #:allow-other-keys)
7808 (invoke "bundle" "exec" "rspec"))
7811 `(("ruby-warden" ,ruby-warden)))
7813 `(("bundler" ,bundler)
7814 ("ruby-rspec" ,ruby-rspec-2)
7815 ("ruby-rack-test" ,ruby-rack-test)))
7816 (synopsis "OAuth 2.0 strategies for Warden")
7818 "This library extends Warden to support OAuth 2.0 authorized API
7820 (home-page "https://github.com/opperator/warden-oauth2")
7821 (license license:expat)))
7823 (define-public ruby-webmock-2
7825 (name "ruby-webmock")
7830 (uri (rubygems-uri "webmock" version))
7833 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
7834 (build-system ruby-build-system)
7836 `(("bundler" ,bundler)
7837 ("ruby-rspec" ,ruby-rspec)))
7839 `(("ruby-addressable" ,ruby-addressable)
7840 ("ruby-crack" ,ruby-crack)
7841 ("ruby-hashdiff" ,ruby-hashdiff)))
7842 (synopsis "Allows stubbing and setting expectations on HTTP requests")
7844 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
7845 requests. This is useful when testing software.")
7846 (home-page "https://github.com/bblimke/webmock")
7847 (license license:expat)))
7849 (define-public ruby-unicode-display-width
7851 (name "ruby-unicode-display-width")
7856 (uri (rubygems-uri "unicode-display_width" version))
7859 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
7860 (build-system ruby-build-system)
7862 '(;; Test data not included.
7864 (synopsis "Determine the monospace display width of Ruby strings")
7866 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
7867 display width of strings in Ruby.")
7868 (home-page "https://github.com/janlelis/unicode-display_width")
7869 (license license:expat)))
7871 ;; There is another gem called 'ruby-version' so we use an underscore in this
7873 (define-public ruby_version
7875 (name "ruby_version")
7880 (uri (rubygems-uri "ruby_version" version))
7883 "0lvc7bd5ps3w2vq2wb02i0pi3vfcx2rnckx2ix4rjym1qf52kb2j"))))
7884 (build-system ruby-build-system)
7887 (modify-phases %standard-phases
7888 (add-before 'check 'fix-dependencies
7890 ;; Remove the Gemfile.lock, as we want to use Guix packages at
7891 ;; whatever versions.
7892 (delete-file "Gemfile.lock")
7893 ;; Remove the included gem files as they unnecessary.
7894 (delete-file-recursively "pkg/")
7895 ;; Accept any version of rake, rdoc and rspec
7896 (substitute* "ruby_version.gemspec"
7897 (("%q<rake.*") "%q<rake>)\n")
7898 (("%q<rdoc.*") "%q<rdoc>)\n")
7899 (("%q<rspec.*") "%q<rspec>)\n"))
7900 ;; Do not use bundler.
7901 (substitute* "Rakefile"
7902 (("Bundler\\.setup.*") "nil\n"))
7905 `(("ruby-rdoc" ,ruby-rdoc)
7906 ("ruby-rspec" ,ruby-rspec)
7907 ("ruby-rubygems-tasks", ruby-rubygems-tasks)))
7908 (synopsis "Ruby library to help check the Ruby version")
7909 (description "@code{ruby_version} provides a @code{RubyVersion} module to simplify
7910 checking for the right Ruby version in software.")
7911 (home-page "https://github.com/janlelis/ruby_version")
7912 (license license:expat)))
7914 (define-public ruby-websocket-driver
7916 (name "ruby-websocket-driver")
7921 (uri (rubygems-uri "websocket-driver" version))
7923 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
7924 (build-system ruby-build-system)
7926 '(#:tests? #f)) ; no included tests
7928 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
7929 (synopsis "WebSocket protocol handler with pluggable I/O")
7931 "@code{websocket-driver} provides a complete implementation of the
7932 WebSocket protocols that can be hooked up to any TCP library")
7933 (home-page "https://github.com/faye/websocket-driver-ruby")
7934 (license license:expat)))
7936 (define-public ruby-websocket-extensions
7938 (name "ruby-websocket-extensions")
7943 (uri (rubygems-uri "websocket-extensions" version))
7946 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
7947 (build-system ruby-build-system)
7949 '(;; No included tests
7951 (synopsis "Generic extension manager for WebSocket connections")
7953 "@code{websocket-extensions} provides a container for registering
7954 extension plugins.")
7955 (home-page "https://github.com/faye/websocket-extensions-ruby")
7956 (license license:expat)))
7958 (define-public ruby-domain-name
7960 (name "ruby-domain-name")
7961 (version "0.5.20180417")
7965 (uri (rubygems-uri "domain_name" version))
7968 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
7969 (build-system ruby-build-system)
7972 (modify-phases %standard-phases
7973 (add-before 'check 'fix-versions
7975 ;; Fix NameError that appears to already be fixed upstream.
7976 (substitute* "Rakefile"
7977 (("DomainName::VERSION")
7978 "Bundler::GemHelper.gemspec.version"))
7979 ;; Loosen unnecessarily strict test-unit version specification.
7980 (substitute* "domain_name.gemspec"
7981 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
7984 `(("ruby-unf" ,ruby-unf)))
7986 `(("ruby-shoulda" ,ruby-shoulda)
7987 ("bundler" ,bundler)
7988 ("ruby-test-unit" ,ruby-test-unit)))
7989 (synopsis "Domain name manipulation library")
7991 "@code{domain_name} is a Domain name manipulation library. It parses a
7992 domain name ready for extracting the registered domain and TLD (Top Level
7993 Domain). It can also be used for cookie domain validation based on the Public
7995 (home-page "https://github.com/knu/ruby-domain_name")
7996 (license license:bsd-2)))
7998 (define-public ruby-http-cookie
8000 (name "ruby-http-cookie")
8005 (uri (rubygems-uri "http-cookie" version))
8008 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
8009 (build-system ruby-build-system)
8012 (modify-phases %standard-phases
8013 (add-before 'check 'add-dependency-to-bundler
8016 (substitute* "Rakefile"
8017 (("HTTP::Cookie::VERSION")
8018 "Bundler::GemHelper.gemspec.version"))
8021 `(("ruby-domain-name" ,ruby-domain-name)))
8023 `(("rubysimplecov" ,ruby-simplecov)
8024 ("bundler" ,bundler)
8025 ("ruby-sqlite3" ,ruby-sqlite3)
8026 ("ruby-test-unit" ,ruby-test-unit)))
8027 (synopsis "Handle HTTP Cookies based on RFC 6265")
8029 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
8030 RFC 6265. It has been designed with security, standards compliance and
8031 compatibility in mind, to behave just the same as today's major web browsers.
8032 It has built-in support for the legacy @code{cookies.txt} and
8033 @code{cookies.sqlite} formats of Mozilla Firefox.")
8034 (home-page "https://github.com/sparklemotion/http-cookie")
8035 (license license:expat)))
8037 (define-public ruby-httpclient
8039 (name "ruby-httpclient")
8044 (uri (rubygems-uri "httpclient" version))
8047 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
8048 (build-system ruby-build-system)
8050 '(;; TODO: Some tests currently fail
8052 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
8053 ;; 2 omissions, 0 notifications
8056 ;; 6.49 tests/s, 22.41 assertions/s
8059 (modify-phases %standard-phases
8061 (lambda* (#:key tests? #:allow-other-keys)
8068 `(("ruby-rack" ,ruby-rack)))
8070 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
8072 "The @code{httpclient} ruby library provides functionality related to
8073 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
8074 Cookie, multithreading and authentication (digest, NTLM) support.
8076 Also provided is a @command{httpclient} command, which can perform HTTP
8077 requests either using arguments or with an interactive prompt.")
8078 (home-page "https://github.com/nahi/httpclient")
8079 (license license:ruby)))
8081 (define-public ruby-ansi
8088 ;; Fetch from GitHub as the gem does not contain testing code.
8090 (url "https://github.com/rubyworks/ansi")
8092 (file-name (git-file-name name version))
8095 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
8096 (build-system ruby-build-system)
8099 (modify-phases %standard-phases
8100 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
8101 ;; cycle ansi, qed, ansi. Instead simply test that the library can
8105 (invoke "ruby" "-Ilib" "-r" "ansi")))
8106 (add-before 'validate-runpath 'replace-broken-symlink
8107 (lambda* (#:key outputs #:allow-other-keys)
8108 (let* ((out (assoc-ref outputs "out"))
8109 (file (string-append
8110 out "/lib/ruby/vendor_ruby/gems/ansi-"
8111 ,version "/lib/ansi.yml")))
8112 ;; XXX: This symlink is broken since ruby 2.4.
8113 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
8115 (symlink "../.index" file)
8117 (synopsis "ANSI escape code related libraries")
8119 "This package is a collection of ANSI escape code related libraries
8120 enabling ANSI colorization and stylization of console output. Included in the
8121 library are the @code{Code} module, which defines ANSI codes as constants and
8122 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
8123 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
8124 @code{Terminal} module which provides information about the current output
8126 (home-page "https://rubyworks.github.io/ansi/")
8127 (license license:bsd-2)))
8129 (define-public ruby-systemu
8131 (name "ruby-systemu")
8136 (uri (rubygems-uri "systemu" version))
8139 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
8140 (build-system ruby-build-system)
8143 (modify-phases %standard-phases
8144 (add-before 'check 'set-version
8146 (setenv "VERSION" ,version)
8148 (synopsis "Capture of stdout/stderr and handling of child processes")
8150 "Systemu can be used on any platform to return status, stdout, and stderr
8151 of any command. Unlike other methods like @code{open3} and @code{popen4}
8152 there is no danger of full pipes or threading issues hanging your process or
8154 (home-page "https://github.com/ahoward/systemu")
8155 (license license:ruby)))
8157 (define-public ruby-bio-commandeer
8159 (name "ruby-bio-commandeer")
8164 (uri (rubygems-uri "bio-commandeer" version))
8167 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
8168 (build-system ruby-build-system)
8171 (modify-phases %standard-phases
8173 ;; Run test without calling 'rake' so that jeweler is
8174 ;; not required as an input.
8176 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
8178 `(("ruby-bio-logger" ,ruby-bio-logger)
8179 ("ruby-systemu" ,ruby-systemu)))
8181 `(("bundler" ,bundler)
8182 ("ruby-rspec" ,ruby-rspec)))
8183 (synopsis "Simplified running of shell commands from within Ruby")
8185 "Bio-commandeer provides an opinionated method of running shell commands
8186 from within Ruby. The advantage of bio-commandeer over other methods of
8187 running external commands is that when something goes wrong, messages printed
8188 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
8189 detail to ease debugging.")
8190 (home-page "https://github.com/wwood/bioruby-commandeer")
8191 (license license:expat)))
8193 (define-public ruby-rubytest
8195 (name "ruby-rubytest")
8200 (uri (rubygems-uri "rubytest" version))
8203 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
8204 (build-system ruby-build-system)
8206 ;; Disable regular testing to break the cycle rubytest, qed, brass,
8207 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
8208 ;; simply test that the library can be require'd.
8210 (modify-phases %standard-phases
8213 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
8215 `(("ruby-ansi" ,ruby-ansi)))
8216 (synopsis "Universal test harness for Ruby")
8218 "Rubytest is a testing meta-framework for Ruby. It can handle any
8219 compliant test framework and can run tests from multiple frameworks in a
8221 (home-page "https://rubyworks.github.io/rubytest")
8222 (license license:bsd-2)))
8224 (define-public ruby-brass
8231 (uri (rubygems-uri "brass" version))
8234 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
8235 (build-system ruby-build-system)
8237 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
8238 ;; Instead simply test that the library can be require'd.
8240 (modify-phases %standard-phases
8243 (invoke "ruby" "-Ilib" "-r" "brass"))))))
8244 (synopsis "Basic foundational assertions framework")
8246 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
8247 foundational assertions framework for other assertion and test frameworks to
8249 (home-page "https://rubyworks.github.io/brass")
8250 (license license:bsd-2)))
8252 (define-public ruby-qed
8259 (uri (rubygems-uri "qed" version))
8262 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
8263 (build-system ruby-build-system)
8265 ;; Disable testing to break the cycle qed, ansi, qed, among others.
8266 ;; Instead simply test that the executable runs using --copyright.
8268 (modify-phases %standard-phases
8271 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
8273 `(("ruby-ansi" ,ruby-ansi)
8274 ("ruby-brass" ,ruby-brass)))
8275 (synopsis "Test framework utilizing literate programming techniques")
8277 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
8278 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
8279 Development} (BDD) utilizing Literate Programming techniques. QED sits
8280 somewhere between lower-level testing tools like @code{Test::Unit} and
8281 requirement specifications systems like Cucumber.")
8282 (home-page "https://rubyworks.github.io/qed")
8283 (license license:bsd-2)))
8285 (define-public ruby-que
8288 (version "1.0.0.beta3")
8292 (uri (rubygems-uri "que" version))
8295 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
8296 (build-system ruby-build-system)
8298 '(#:tests? #f)) ; No included tests
8299 (synopsis "Job queue using PostgreSQL written in Ruby")
8301 "This package provides a job queue that uses PostgreSQL for storing jobs
8302 and locking between worker processes.")
8303 (home-page "https://github.com/chanks/que")
8304 (license license:expat)))
8306 (define-public ruby-ae
8313 ;; Fetch from github so tests are included.
8315 (url "https://github.com/rubyworks/ae")
8317 (file-name (git-file-name name version))
8320 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
8321 (build-system ruby-build-system)
8324 (modify-phases %standard-phases
8326 (lambda _ (invoke "qed")))
8327 (add-before 'validate-runpath 'replace-broken-symlink
8328 (lambda* (#:key outputs #:allow-other-keys)
8329 (let* ((out (assoc-ref outputs "out"))
8330 (file (string-append
8331 out "/lib/ruby/vendor_ruby/gems/ae-"
8332 ,version "/lib/ae.yml")))
8333 ;; XXX: This symlink is broken since ruby 2.4.
8334 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
8336 (symlink "../.index" file)
8339 `(("ruby-ansi" ,ruby-ansi)))
8341 `(("ruby-qed" ,ruby-qed)))
8342 (synopsis "Assertions library")
8344 "Assertive Expressive (AE) is an assertions library specifically designed
8345 for reuse by other test frameworks.")
8346 (home-page "https://rubyworks.github.io/ae/")
8347 (license license:bsd-2)))
8349 (define-public ruby-lemon
8356 (uri (rubygems-uri "lemon" version))
8359 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
8360 (build-system ruby-build-system)
8363 (modify-phases %standard-phases
8364 (replace 'check (lambda _ (invoke "qed"))))))
8366 `(("ruby-ae" ,ruby-ae)
8367 ("ruby-ansi" ,ruby-ansi)
8368 ("ruby-rubytest" ,ruby-rubytest)))
8370 `(("ruby-qed" ,ruby-qed)))
8371 (synopsis "Test framework correlating code structure and test unit")
8373 "Lemon is a unit testing framework that enforces highly formal
8374 case-to-class and unit-to-method test construction. This enforcement can help
8375 focus concern on individual units of behavior.")
8376 (home-page "https://rubyworks.github.io/lemon")
8377 (license license:bsd-2)))
8379 (define-public ruby-rubytest-cli
8381 (name "ruby-rubytest-cli")
8386 (uri (rubygems-uri "rubytest-cli" version))
8389 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
8390 (build-system ruby-build-system)
8392 `(#:tests? #f)) ; no tests
8394 `(("ruby-ansi" ,ruby-ansi)
8395 ("ruby-rubytest" ,ruby-rubytest)))
8396 (synopsis "Command-line interface for rubytest")
8398 "Rubytest CLI is a command-line interface for running tests for
8399 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
8400 (home-page "https://rubyworks.github.io/rubytest-cli")
8401 (license license:bsd-2)))
8403 (define-public ruby-hashery
8405 (name "ruby-hashery")
8410 (uri (rubygems-uri "hashery" version))
8413 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
8414 (build-system ruby-build-system)
8417 (modify-phases %standard-phases
8421 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
8423 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
8424 ("ruby-qed" ,ruby-qed)
8425 ("ruby-lemon" ,ruby-lemon)))
8426 (synopsis "Hash-like classes with extra features")
8428 "The Hashery is a tight collection of @code{Hash}-like classes.
8429 Included are the auto-sorting @code{Dictionary} class, the efficient
8430 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
8431 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
8432 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
8433 standard @code{Hash} making it possible to subclass and augment to fit any
8434 specific use case.")
8435 (home-page "https://rubyworks.github.io/hashery")
8436 (license license:bsd-2)))
8438 (define-public ruby-rc4
8445 (uri (rubygems-uri "ruby-rc4" version))
8448 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
8449 (build-system ruby-build-system)
8452 (modify-phases %standard-phases
8455 (invoke "rspec" "spec/rc4_spec.rb"))))))
8457 `(("ruby-rspec" ,ruby-rspec-2)))
8458 (synopsis "Implementation of the RC4 algorithm")
8460 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
8461 (home-page "https://github.com/caiges/Ruby-RC4")
8462 (license license:expat)))
8464 (define-public ruby-afm
8471 (uri (rubygems-uri "afm" version))
8474 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
8475 (build-system ruby-build-system)
8477 `(("bundler" ,bundler)))
8478 (synopsis "Read Adobe Font Metrics (afm) files")
8480 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
8481 files and use the data therein.")
8482 (home-page "https://github.com/halfbyte/afm")
8483 (license license:expat)))
8485 (define-public ruby-ascii85
8487 (name "ruby-ascii85")
8492 (uri (rubygems-uri "Ascii85" version))
8495 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
8496 (build-system ruby-build-system)
8498 `(("bundler" ,bundler)))
8499 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
8501 "This library provides methods to encode and decode Ascii85
8502 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
8503 @dfn{Portable Document Format} (PDF) file formats.")
8504 (home-page "https://github.com/datawraith/ascii85gem")
8505 (license license:expat)))
8507 (define-public ruby-ttfunk
8509 (name "ruby-ttfunk")
8514 ;; fetch from github as the gem does not contain testing code
8516 (url "https://github.com/prawnpdf/ttfunk")
8518 (file-name (git-file-name name version))
8521 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
8522 (build-system ruby-build-system)
8524 `(#:test-target "spec"
8526 (modify-phases %standard-phases
8527 (add-before 'build 'remove-ssh
8529 ;; remove dependency on an ssh key pair that doesn't exist
8530 (substitute* "ttfunk.gemspec"
8531 (("spec.signing_key.*") ""))
8533 (add-before 'check 'remove-rubocop
8535 ;; remove rubocop as a dependency as not needed for testing
8536 (substitute* "ttfunk.gemspec"
8537 (("spec.add_development_dependency\\('rubocop'.*") ""))
8538 (substitute* "Rakefile"
8539 (("require 'rubocop/rake_task'") "")
8540 (("RuboCop::RakeTask.new") ""))
8543 `(("ruby-rspec" ,ruby-rspec)
8544 ("ruby-yard" ,ruby-yard)
8545 ("bundler" ,bundler)))
8546 (synopsis "Font metrics parser for the Prawn PDF generator")
8548 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
8549 part of the Prawn PDF generator.")
8550 (home-page "https://github.com/prawnpdf/ttfunk")
8551 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
8553 (license (list license:gpl2 license:gpl3 license:ruby))))
8555 (define-public ruby-puma
8562 ;; Fetch from GitHub because distributed gem does not contain tests.
8564 (url "https://github.com/puma/puma")
8565 (commit (string-append "v" version))))
8566 (file-name (git-file-name name version))
8569 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
8570 (build-system ruby-build-system)
8572 `(#:tests? #f ; Tests require an out-dated version of minitest.
8574 (modify-phases %standard-phases
8575 (add-before 'build 'fix-gemspec
8577 (substitute* "puma.gemspec"
8578 (("git ls-files") "find * |sort"))
8580 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
8582 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
8583 for Ruby/Rack applications. Puma is intended for use in both development and
8584 production environments. In order to get the best throughput, it is highly
8585 recommended that you use a Ruby implementation with real threads like Rubinius
8587 (home-page "https://puma.io/")
8588 (license license:expat)))
8590 (define-public ruby-hoe-git
8592 (name "ruby-hoe-git")
8597 (uri (rubygems-uri "hoe-git" version))
8600 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
8601 (build-system ruby-build-system)
8603 `(("ruby-hoe" ,ruby-hoe)
8605 (synopsis "Hoe plugins for tighter Git integration")
8607 "This package provides a set of Hoe plugins for tighter Git integration.
8608 It provides tasks to automate release tagging and pushing and changelog
8610 (home-page "https://github.com/jbarnette/hoe-git")
8611 (license license:expat)))
8613 (define-public ruby-sequel
8615 (name "ruby-sequel")
8620 (uri (rubygems-uri "sequel" version))
8623 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
8624 (build-system ruby-build-system)
8626 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
8627 (synopsis "Database toolkit for Ruby")
8628 (description "Sequel provides thread safety, connection pooling and a
8629 concise DSL for constructing SQL queries and table schemas. It includes a
8630 comprehensive ORM layer for mapping records to Ruby objects and handling
8631 associated records.")
8632 (home-page "https://sequel.jeremyevans.net")
8633 (license license:expat)))
8635 (define-public ruby-timecop
8637 (name "ruby-timecop")
8642 (uri (rubygems-uri "timecop" version))
8645 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
8646 (build-system ruby-build-system)
8649 (modify-phases %standard-phases
8650 (add-before 'check 'set-check-rubylib
8652 ;; Set RUBYLIB so timecop tests finds its own lib.
8653 (setenv "RUBYLIB" "lib")
8656 `(("bundler" ,bundler)
8657 ("ruby-minitest-rg" ,ruby-minitest-rg)
8658 ("ruby-mocha" ,ruby-mocha)
8659 ("ruby-activesupport" ,ruby-activesupport)))
8660 (synopsis "Test mocks for time-dependent functions")
8662 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
8663 making it easier to test time-dependent code. It provides a unified method to
8664 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
8666 (home-page "https://github.com/travisjeffery/timecop")
8667 (license license:expat)))
8669 (define-public ruby-concurrent
8671 (name "ruby-concurrent")
8676 ;; Download from GitHub because the rubygems version does not contain
8679 (url "https://github.com/ruby-concurrency/concurrent-ruby")
8680 (commit (string-append "v" version))))
8681 (file-name (git-file-name name version))
8684 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
8685 (build-system ruby-build-system)
8687 `(#:test-target "ci"
8689 (modify-phases %standard-phases
8690 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
8692 ;; Delete extra gemspec files so 'first-gemspec' chooses the
8694 (delete-file "concurrent-ruby-edge.gemspec")
8695 (delete-file "concurrent-ruby-ext.gemspec")
8697 (replace 'replace-git-ls-files
8699 ;; XXX: The default substitution made by this phase is not fully
8700 ;; compatible with "git ls-files". The latter produces file names
8701 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
8702 ;; which gives "./lib/foo". That difference in turn breaks the
8703 ;; comparison against a glob pattern in this script.
8704 (substitute* "concurrent-ruby.gemspec"
8705 (("git ls-files") "find * -type f | sort"))
8707 (add-before 'build 'remove-jar-from-gemspec
8709 ;; The gemspec wants to include a JAR file that we do not build
8711 (substitute* "concurrent-ruby.gemspec"
8712 (("'lib/concurrent/concurrent_ruby.jar'")
8715 (add-before 'build 'remove-rake_compiler_dock-dependency
8717 ;; This library is only used when building for non-MRI targets.
8718 (substitute* "Rakefile"
8719 (("require 'rake_compiler_dock'")
8722 (add-before 'check 'remove-timecop-dependency
8723 ;; Remove timecop-dependent tests as having timecop as a depedency
8724 ;; causes circular depedencies.
8726 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
8727 (delete-file "spec/concurrent/scheduled_task_spec.rb")
8730 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8731 ("ruby-rspec" ,ruby-rspec)))
8732 (synopsis "Concurrency tools for Ruby")
8734 "This library provides modern concurrency tools including agents,
8735 futures, promises, thread pools, actors, supervisors, and more. It is
8736 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
8738 (home-page "http://www.concurrent-ruby.com")
8739 (license license:expat)))
8741 (define-public ruby-pkg-config
8743 (name "ruby-pkg-config")
8748 (uri (rubygems-uri "pkg-config" version))
8751 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
8752 (build-system ruby-build-system)
8754 ;; Tests require extra files not included in the gem.
8756 (synopsis "Detect libraries for compiling Ruby native extensions")
8758 "@code{pkg-config} can be used in your extconf.rb to properly detect need
8759 libraries for compiling Ruby native extensions.")
8760 (home-page "https://github.com/ruby-gnome2/pkg-config")
8761 (license license:lgpl2.0+)))
8763 (define-public ruby-net-http-digest-auth
8765 (name "ruby-net-http-digest-auth")
8770 (uri (rubygems-uri "net-http-digest_auth" version))
8773 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
8774 (build-system ruby-build-system)
8776 `(("ruby-hoe" ,ruby-hoe)))
8777 (synopsis "RFC 2617 HTTP digest authentication library")
8779 "This library implements HTTP's digest authentication scheme based on
8780 RFC 2617. This enables the use of the digest authentication scheme instead
8781 of the more insecure basic authentication scheme.")
8782 (home-page "https://github.com/drbrain/net-http-digest_auth")
8783 (license license:expat)))
8785 (define-public ruby-mail
8792 (uri (rubygems-uri "mail" version))
8795 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
8796 (build-system ruby-build-system)
8798 `(("ruby-mime-types" ,ruby-mime-types)))
8800 ;; Tests require extra gems not included in the Gemfile.
8801 ;; XXX: Try enabling this for the next version with mini_mime.
8803 (synopsis "Mail library for Ruby")
8805 "Mail is an internet library for Ruby that is designed to handle email
8806 generation, parsing and sending. The purpose of this library is to provide
8807 a single point of access to handle all email functions, including sending
8808 and receiving emails. All network type actions are done through proxy
8809 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
8811 Mail has been designed with a very simple object oriented system that
8812 really opens up the email messages you are parsing, if you know what you
8813 are doing, you can fiddle with every last bit of your email directly.")
8814 (home-page "https://github.com/mikel/mail")
8815 (license license:expat)))
8817 (define-public ruby-mathn
8824 (uri (rubygems-uri "mathn" version))
8827 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
8828 (build-system ruby-build-system)
8830 `(("bundler" ,bundler)
8831 ("ruby-rake-compiler" ,ruby-rake-compiler)))
8832 (synopsis "Extends math operations for increased precision")
8834 "This gem makes mathematical operations more precise in Ruby and
8835 integrates other mathematical standard libraries. Prior to Ruby 2.5,
8836 @code{mathn} was part of the Ruby standard library.")
8837 (home-page "https://github.com/ruby/mathn")
8838 (license license:bsd-2)))
8840 (define-public ruby-code-statistics
8842 (name "ruby-code-statistics")
8847 (uri (rubygems-uri "code_statistics" version))
8850 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
8851 (build-system ruby-build-system)
8853 `(#:tests? #f)) ; Not all test code is included in gem.
8854 (synopsis "Port of the rails 'rake stats' method")
8856 "This gem is a port of the rails 'rake stats' method so it can be made
8857 more robust and work for non rails projects.")
8858 (home-page "http://github.com/danmayer/code_statistics")
8859 (license license:expat)))
8861 (define-public ruby-rubypants
8863 (name "ruby-rubypants")
8867 (uri (rubygems-uri "rubypants" version))
8870 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
8871 (build-system ruby-build-system)
8873 '(#:tests? #f)) ; need Codecov
8874 (synopsis "Port of the smart-quotes library SmartyPants")
8876 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
8877 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
8878 and BBEdit that easily translates plain ASCII punctuation characters into
8879 smart typographic punctuation HTML entities.")
8880 (home-page "https://github.com/jmcnevin/rubypants")
8881 (license license:bsd-2)))
8883 (define-public ruby-org-ruby
8885 (name "ruby-org-ruby")
8889 (uri (rubygems-uri "org-ruby" version))
8892 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
8893 (build-system ruby-build-system)
8895 '(#:tests? #f)) ; no rakefile
8897 `(("ruby-rubypants" ,ruby-rubypants)))
8898 (synopsis "Org-mode parser written in Ruby")
8900 "Org-ruby is an org-mode parser written in Ruby. The most significant
8901 thing this library does today is convert org-mode files to HTML or Textile or
8903 (home-page "https://github.com/wallyqs/org-ruby")
8904 (license license:expat)))
8906 (define-public ruby-rake
8913 (uri (rubygems-uri "rake" version))
8916 "0w6qza25bq1s825faaglkx1k6d59aiyjjk3yw3ip5sb463mhhai9"))))
8917 (build-system ruby-build-system)
8919 `(("bundler" ,bundler)))
8920 (synopsis "Rake is a Make-like program implemented in Ruby")
8922 "Rake is a Make-like program where tasks and dependencies are specified
8923 in standard Ruby syntax.")
8924 (home-page "https://github.com/ruby/rake")
8925 (license license:expat)))
8927 (define-public ruby-childprocess
8929 (name "ruby-childprocess")
8934 (uri (rubygems-uri "childprocess" version))
8937 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
8938 (build-system ruby-build-system)
8942 `(("bundler" ,bundler)
8943 ("ruby-rspec" ,ruby-rspec)))
8945 `(("ruby-ffi" ,ruby-ffi)))
8946 (synopsis "Control external programs running in the background, in Ruby")
8947 (description "@code{childprocess} provides a gem to control external
8948 programs running in the background, in Ruby.")
8949 (home-page "https://github.com/enkessler/childprocess")
8950 (license license:expat)))
8952 (define-public ruby-public-suffix
8954 (name "ruby-public-suffix")
8958 (uri (rubygems-uri "public_suffix" version))
8961 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
8962 (build-system ruby-build-system)
8965 (modify-phases %standard-phases
8966 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
8967 ;; including it as an input can lead to circular dependencies.
8968 (add-after 'unpack 'remove-rubocop-from-Rakefile
8970 (substitute* "Rakefile"
8971 (("require \"rubocop/rake\\_task\"") "")
8972 (("RuboCop::RakeTask\\.new") ""))
8975 `(("bundler" ,bundler)
8976 ("ruby-yard" ,ruby-yard)
8977 ("ruby-mocha" ,ruby-mocha)
8978 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
8979 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
8980 (synopsis "Domain name parser")
8981 (description "The gem @code{public_suffix} is a domain name parser,
8982 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
8983 is one under which Internet users can (or historically could) directly
8984 register names. Some examples of public suffixes are @code{.com},
8985 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
8986 all known public suffixes.")
8987 (license license:expat)))
8989 (define-public ruby-addressable
8991 (name "ruby-addressable")
8995 (uri (rubygems-uri "addressable" version))
8998 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
8999 (build-system ruby-build-system)
9001 '(#:test-target "spec"
9003 (modify-phases %standard-phases
9004 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
9006 (substitute* "Gemfile"
9007 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
9008 ((".*launchy.*") "")
9009 ((".*rake.*") "gem 'rake'\n")
9010 ((".*redcarpet.*") ""))
9012 (add-before 'check 'delete-network-dependent-test
9014 (delete-file "spec/addressable/net_http_compat_spec.rb")
9017 `(("ruby-rspec" ,ruby-rspec)
9018 ("bundler" ,bundler)
9019 ("ruby-idn-ruby" ,ruby-idn-ruby)
9020 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
9021 ("ruby-rspec-its", ruby-rspec-its-minimal)
9022 ("ruby-yard" ,ruby-yard)
9023 ("ruby-simplecov" ,ruby-simplecov)))
9025 `(("ruby-public-suffix" ,ruby-public-suffix)))
9026 (home-page "https://github.com/sporkmonger/addressable")
9027 (synopsis "Alternative URI implementation")
9028 (description "Addressable is a replacement for the URI implementation that
9029 is part of Ruby's standard library. It more closely conforms to RFC 3986,
9030 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
9031 (license license:asl2.0)))
9033 (define-public ruby-colorize
9035 (name "ruby-colorize")
9039 (uri (rubygems-uri "colorize" version))
9042 "133rqj85n400qk6g3dhf2bmfws34mak1wqihvh3bgy9jhajw580b"))))
9043 (build-system ruby-build-system)
9045 '(#:phases (modify-phases %standard-phases
9046 (add-before 'check 'remove-codeclimate-dependency
9048 (substitute* "test/test_colorize.rb"
9049 ;; Do not hook the tests into the online CodeClimate
9050 ;; service which is unnecessary for these tests.
9051 (("require 'codeclimate-test-reporter'")
9053 (("CodeClimate.*") ""))
9055 (synopsis "Add color effects to the @code{String} class")
9057 "This package extends the @code{String} class and adds a
9058 @code{ColorizedString} with methods to set text color, background color,
9060 (home-page "http://github.com/fazibear/colorize")
9061 (license license:gpl2+)))
9063 (define-public ruby-colorator
9065 (name "ruby-colorator")
9069 (uri (rubygems-uri "colorator" version))
9072 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
9073 (build-system ruby-build-system)
9077 (home-page "http://octopress.org/colorator/")
9078 (synopsis "Terminal color library")
9079 (description "Colorator is a Ruby gem that helps you colorize your text
9081 (license license:expat)))
9083 (define-public ruby-command-line-reporter
9085 (name "ruby-command-line-reporter")
9089 (uri (rubygems-uri "command_line_reporter" version))
9092 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
9093 (build-system ruby-build-system)
9098 (modify-phases %standard-phases
9099 (add-before 'build 'fix-dependencies
9101 (substitute* ".gemspec"
9102 ;; colored is unmaintained
9103 (("colored") "colorator")
9104 ;; colorator version
9105 (("= 1.2") "= 1.1"))
9107 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
9108 (home-page "https://github.com/wbailey/command_line_reporter")
9109 (synopsis "Report production while executing Ruby scripts")
9110 (description "This gem provides a DSL that makes it easy to write reports
9111 of various types in ruby. It eliminates the need to litter your source with
9112 puts statements, instead providing a more readable, expressive interface to
9114 (license license:asl2.0)))
9116 (define-public ruby-command-line-reporter-3
9118 (inherit ruby-command-line-reporter)
9122 (uri (rubygems-uri "command_line_reporter" version))
9125 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
9127 (define-public ruby-kpeg
9134 (uri (rubygems-uri "kpeg" version))
9137 "0x2kpfrcagj931masm5y1kwbnc6nxl60cqdcd3lyd1d2hz7kzlia"))))
9138 (build-system ruby-build-system)
9140 `(("ruby-hoe" ,ruby-hoe)))
9141 (synopsis "PEG library for Ruby")
9142 (description "KPeg is a simple PEG library for Ruby. It provides an API as
9143 well as native grammar to build the grammar. KPeg supports direct left
9144 recursion of rules via the
9145 @uref{http://www.vpri.org/pdf/tr2008003_experimenting.pdf,OMeta memoization}
9147 (home-page "https://github.com/evanphx/kpeg")
9148 (license license:expat)))
9150 (define-public ruby-rdoc
9158 (url "https://github.com/ruby/rdoc")
9159 (commit (string-append "v" version))))
9160 (file-name (git-file-name name version))
9163 "0dhk29nidv93b5vnjvlm9gcixgn4i0jcyzrgxdk6pdg019bw4cj6"))))
9164 (build-system ruby-build-system)
9167 (modify-phases %standard-phases
9168 (add-after 'unpack 'patch-gemspec
9169 ;; TODO: Remove after next release is tagged.
9171 (substitute* "rdoc.gemspec"
9172 (("\"lib/rdoc/generator/template/darkfish/js/\
9173 jquery\\.js\", ") ""))
9175 (add-before 'build 'generate
9176 ;; 'gem build' doesn't honor Rakefile dependencies (see:
9177 ;; https://github.com/ruby/rdoc/issues/432#issuecomment-650808977).
9179 (invoke "rake" "generate"))))))
9181 `(("bundler" ,bundler)
9182 ("ruby-kpeg" ,ruby-kpeg)
9183 ("ruby-racc" ,ruby-racc)
9184 ("ruby-rubocop" ,ruby-rubocop)))
9185 (home-page "https://ruby.github.io/rdoc/")
9186 (synopsis "HTML and command-line documentation utility")
9187 (description "RDoc produces HTML and command-line documentation for Ruby
9188 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
9189 documentation from the command-line.")
9190 (license license:gpl2+)))
9192 (define-public ruby-sass-listen
9194 (name "ruby-sass-listen")
9198 (uri (rubygems-uri "sass-listen" version))
9201 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
9202 (build-system ruby-build-system)
9207 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
9208 ("ruby-rb-inotify" ,ruby-rb-inotify)))
9209 (home-page "https://github.com/sass/listen")
9210 (synopsis "File modification notification library")
9211 (description "The Listen gem listens to file modifications and notifies you
9212 about the changes.")
9213 (license license:expat)))
9215 (define-public ruby-terminfo
9217 (name "ruby-terminfo")
9222 (uri (rubygems-uri "ruby-terminfo" version))
9225 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
9226 (build-system ruby-build-system)
9228 `(#:test-target "test"
9229 ;; Rakefile requires old packages and would need modification to
9230 ;; work with current software.
9233 `(("ncurses" ,ncurses)))
9235 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
9236 ("ruby-rdoc" ,ruby-rdoc)))
9237 (home-page "http://www.a-k-r.org/ruby-terminfo/")
9238 (synopsis "Terminfo binding for Ruby")
9239 (description "Ruby-terminfo provides terminfo binding for Ruby.")
9240 (license license:bsd-3)))
9242 (define-public ruby-diffy
9249 (uri (rubygems-uri "diffy" version))
9252 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
9253 (build-system ruby-build-system)
9258 `(("ruby-rspec" ,ruby-rspec)))
9259 (home-page "https://github.com/samg/diffy")
9260 (synopsis "Convenient diffing in ruby")
9261 (description "Diffy provides a convenient way to generate a diff from two
9263 (license license:expat)))
9265 (define-public ruby-sass-spec
9267 (name "ruby-sass-spec")
9273 (url "https://github.com/sass/sass-spec")
9274 (commit (string-append "v" version))))
9275 (file-name (git-file-name name version))
9277 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
9278 (build-system ruby-build-system)
9280 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
9281 ("ruby-diffy" ,ruby-diffy)
9282 ("ruby-terminfo" ,ruby-terminfo)))
9284 `(;; This package contains tests for a sass implementation, and the to
9285 ;; avoid any circular dependencies, the tests are not run here
9288 (modify-phases %standard-phases
9289 (add-after 'unpack 'patch-test
9291 (delete-file "spec/values/colors/alpha_hex-3.5/error")
9292 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
9293 (("string") "color")))))))
9294 (home-page "https://github.com/sass/sass-spec")
9295 (synopsis "Test suite for Sass")
9296 (description "Sass Spec is a test suite for Sass. Test cases are all in
9297 the @file{spec} directory.")
9298 (license license:expat)))
9300 (define-public ruby-sass
9306 (uri (rubygems-uri "sass" version))
9309 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
9310 (build-system ruby-build-system)
9312 `(("ruby-sass-listen" ,ruby-sass-listen)))
9314 `(("ruby-sass-spec" ,ruby-sass-spec)
9315 ("ruby-mathn" ,ruby-mathn)))
9316 (home-page "https://sass-lang.com/")
9317 (synopsis "CSS extension language")
9318 (description "Sass is a CSS extension language. It extends CSS with
9319 features that don't exist yet like variables, nesting, mixins and inheritance.")
9320 (license license:expat)))
9322 (define-public ruby-sassc
9329 (uri (rubygems-uri "sassc" version))
9332 "09bnid7r5z5hcin5hykvpvv8xig27wbbckxwis60z2aaxq4j9siz"))))
9333 (build-system ruby-build-system)
9335 '(#:modules ((guix build ruby-build-system)
9337 (ice-9 textual-ports))
9339 (modify-phases %standard-phases
9340 ;; TODO: This would be better as a snippet, but the ruby-build-system
9341 ;; doesn't seem to support that
9342 (add-after 'unpack 'remove-libsass
9344 (delete-file-recursively "ext")
9345 (with-atomic-file-replacement "sassc.gemspec"
9347 (let* ((gemspec (get-string-all in))
9348 (index (string-contains gemspec "libsass_dir")))
9349 (display (string-append
9350 (string-take gemspec index)
9354 (add-after 'unpack 'dont-check-the-libsass-version
9356 (substitute* "test/native_test.rb"
9357 (("assert_equal.*Native\\.version") ""))
9359 (add-after 'unpack 'remove-git-from-gemspec
9361 (substitute* "sassc.gemspec"
9362 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`"))
9364 (add-after 'unpack 'remove-extensions-from-gemspec
9366 (substitute* "sassc.gemspec"
9367 (("\\[\"ext/extconf.rb\"\\]") "[]"))
9369 (add-after 'unpack 'fix-Rakefile
9371 (substitute* "Rakefile"
9372 (("test: 'compile:libsass'") ":test"))
9374 (add-after 'unpack 'remove-unnecessary-dependencies
9376 (substitute* "test/test_helper.rb"
9377 (("require \"pry\"") ""))
9379 (add-before 'build 'patch-native.rb
9380 (lambda* (#:key inputs #:allow-other-keys)
9381 (substitute* "lib/sassc/native.rb"
9382 ((".*gem_root = spec.gem_dir") "")
9385 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
9387 ;; The gemspec still references the libsass files, so just keep the
9389 (delete 'extract-gemspec))))
9391 `(("ruby-ffi" ,ruby-ffi)
9392 ("ruby-rake" ,ruby-rake)))
9394 `(("libsass" ,libsass)))
9396 `(("bundler" ,bundler)
9397 ("ruby-rake-compiler" ,ruby-rake-compiler)
9398 ("ruby-minitest-around" ,ruby-minitest-around)
9399 ("ruby-test-construct" ,ruby-test-construct)))
9400 (synopsis "Use libsss from Ruby")
9402 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
9403 bindings to the libsass library. This enables rendering
9404 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
9405 (home-page "https://github.com/sass/sassc-ruby")
9406 (license license:expat)))
9408 (define-public ruby-jekyll-sass-converter
9410 (name "ruby-jekyll-sass-converter")
9414 (uri (rubygems-uri "jekyll-sass-converter" version))
9417 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
9418 (build-system ruby-build-system)
9420 `(("ruby-sass" ,ruby-sass)))
9424 (home-page "https://github.com/jekyll/jekyll-sass-converter")
9425 (synopsis "Sass converter for Jekyll")
9426 (description "This gem provide built-in support for the Sass converter
9428 (license license:expat)))
9430 (define-public ruby-jekyll-watch
9432 (name "ruby-jekyll-watch")
9436 (uri (rubygems-uri "jekyll-watch" version))
9439 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
9440 (build-system ruby-build-system)
9442 `(("ruby-listen" ,ruby-listen)))
9446 (home-page "https://github.com/jekyll/jekyll-watch")
9447 (synopsis "Jekyll auto-rebuild support")
9448 (description "This gems add the @code{--watch} switch to the jekyll CLI
9449 interface. It allows Jekyll to rebuild your site when a file changes.")
9450 (license license:expat)))
9452 (define-public ruby-parallel
9454 (name "ruby-parallel")
9460 (url "https://github.com/grosser/parallel")
9461 (commit (string-append "v" version))))
9462 (file-name (git-file-name name version))
9465 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
9466 (build-system ruby-build-system)
9468 `(;; TODO 3 test failures
9469 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
9470 ;; open unnecessary pipes
9471 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
9472 ;; SQLite in processes
9473 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
9474 ;; SQLite in threads
9476 #:test-target "rspec-rerun:spec"
9478 (modify-phases %standard-phases
9479 (add-after 'unpack 'patch-Gemfile
9481 (substitute* "Gemfile"
9482 (("gem 'rspec-legacy_formatters'") "")
9483 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
9484 (add-before 'check 'delete-Gemfile.lock
9486 ;; Bundler isn't being used for fetching dependendencies, so
9487 ;; delete the Gemfile.lock
9488 (delete-file "Gemfile.lock")
9490 (add-before 'build 'patch-gemspec
9492 (substitute* "parallel.gemspec"
9493 (("git ls-files") "find"))
9496 `(("ruby-rspec" ,ruby-rspec)
9497 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
9498 ("bundler" ,bundler)
9499 ("ruby-activerecord" ,ruby-activerecord)
9500 ("ruby-progressbar" ,ruby-progressbar)
9501 ("ruby-bump" ,ruby-bump)
9504 ("ruby-mysql2" ,ruby-mysql2)
9505 ("ruby-sqlite3" ,ruby-sqlite3)
9506 ("ruby-i18n" ,ruby-i18n)))
9507 (home-page "https://github.com/grosser/parallel")
9508 (synopsis "Parallel processing in Ruby")
9509 (description "Parallel allows you to run any code in parallel Processes
9510 (to use all CPUs) or Threads(to speedup blocking operations). It is best
9511 suited for map-reduce or e.g. parallel downloads/uploads.")
9512 (license license:expat)))
9514 (define-public ruby-cane
9520 (uri (rubygems-uri "cane" version))
9523 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
9524 (build-system ruby-build-system)
9525 (arguments `(#:tests? #f)); No rakefile
9526 (home-page "https://github.com/square/cane")
9528 `(("ruby-parallel" ,ruby-parallel)))
9529 (synopsis "Code quality threshold checking")
9530 (description "Cane fails your build if code quality thresholds are not met.")
9531 (license license:asl2.0)))
9533 (define-public ruby-morecane
9535 (name "ruby-morecane")
9539 (uri (rubygems-uri "morecane" version))
9542 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
9543 (build-system ruby-build-system)
9544 (home-page "https://github.com/yob/morecane")
9545 (arguments `(#:tests? #f)); No rakefile
9547 `(("ruby-parallel" ,ruby-parallel)))
9548 (synopsis "Extra checks for cane")
9549 (description "The cane gem provides a great framework for running quality
9550 checks over your ruby project as part of continuous integration build. It
9551 comes with a few checks out of the box, but also provides an API for loading
9552 custom checks. This gem provides a set of additional checks.")
9553 (license license:expat)))
9555 (define-public ruby-pdf-reader
9557 (name "ruby-pdf-reader")
9561 (uri (rubygems-uri "pdf-reader" version))
9564 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
9565 (build-system ruby-build-system)
9566 (arguments `(#:test-target "spec"))
9568 `(("bundler" ,bundler)
9569 ("ruby-rspec" ,ruby-rspec)
9570 ("ruby-cane" ,ruby-cane)
9571 ("ruby-morecane" ,ruby-morecane)))
9573 `(("ruby-afm" ,ruby-afm)
9574 ("ruby-ascii85" ,ruby-ascii85)
9575 ("ruby-hashery" ,ruby-hashery)
9576 ("ruby-rc4" ,ruby-rc4)
9577 ("ruby-ttfunk" ,ruby-ttfunk)))
9578 (home-page "https://github.com/yob/pdf-reader")
9579 (synopsis "PDF parser in Ruby")
9580 (description "The PDF::Reader library implements a PDF parser conforming as
9581 much as possible to the PDF specification from Adobe. It provides programmatic
9582 access to the contents of a PDF file with a high degree of flexibility.")
9583 (license license:gpl3+)))
9585 (define-public ruby-pdf-inspector
9587 (name "ruby-pdf-inspector")
9591 (uri (rubygems-uri "pdf-inspector" version))
9594 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
9595 (build-system ruby-build-system)
9597 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
9598 (arguments `(#:tests? #f)); No rakefile
9599 (home-page "https://github.com/prawnpdf/pdf-inspector")
9600 (synopsis "Analysis classes for inspecting PDF output")
9601 (description "This library provides a number of PDF::Reader based tools for
9602 use in testing PDF output. Presently, the primary purpose of this tool is to
9603 support the tests found in Prawn, a pure Ruby PDF generation library.")
9604 (license license:gpl3+)))
9606 (define-public ruby-pdf-core
9608 (name "ruby-pdf-core")
9612 (uri (rubygems-uri "pdf-core" version))
9615 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
9616 (build-system ruby-build-system)
9620 (home-page "https://github.com/prawnpdf/pdf-core")
9621 (synopsis "Low level PDF features for Prawn")
9622 (description "This is an experimental gem that extracts low-level PDF
9623 functionality from Prawn.")
9624 (license license:gpl3+)))
9626 (define-public ruby-prawn
9632 (uri (rubygems-uri "prawn" version))
9635 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
9636 (build-system ruby-build-system)
9641 (modify-phases %standard-phases
9642 (add-before 'build 'fix-dependencies
9644 (substitute* "prawn.gemspec"
9645 (("~> 0.7.0") "~> 0.7"))
9648 `(("ruby-pdf-core" ,ruby-pdf-core)
9649 ("ruby-ttfunk" ,ruby-ttfunk)))
9651 `(("bundler" ,bundler)
9652 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
9653 ("ruby-rspec" ,ruby-rspec)
9654 ("ruby-simplecov" ,ruby-simplecov)
9655 ("ruby-yard" ,ruby-yard)))
9656 (home-page "http://prawnpdf.org/api-docs/2.0/")
9657 (synopsis "PDF generation for Ruby")
9658 (description "Prawn is a pure Ruby PDF generation library.")
9659 (license license:gpl3+)))
9661 (define-public ruby-prawn-table
9663 (name "ruby-prawn-table")
9667 (uri (rubygems-uri "prawn-table" version))
9670 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
9671 (build-system ruby-build-system)
9673 `(("ruby-prawn" ,ruby-prawn)
9674 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
9676 `(("bundler" ,bundler)
9677 ("ruby-yard" ,ruby-yard)
9678 ("ruby-mocha" ,ruby-mocha)
9679 ("ruby-coderay" ,ruby-coderay)
9680 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
9681 ("ruby-simplecov" ,ruby-simplecov)
9682 ("ruby-rspec-2" ,ruby-rspec-2)))
9684 '(;; TODO: 1 test fails
9685 ;; Failure/Error: pdf.page_count.should == 1
9687 ;; got: 2 (using ==)
9688 ;; # ./spec/table_spec.rb:1308
9690 ;; 225 examples, 1 failure
9693 (modify-phases %standard-phases
9694 (add-before 'check 'patch-gemspec
9696 (substitute* "prawn-table.gemspec"
9697 ;; Loosen the requirement for pdf-inspector
9698 (("~> 1\\.1\\.0") ">= 0")
9699 ;; Loosen the requirement for pdf-reader
9700 (("~> 1\\.2") ">= 0"))))
9702 (lambda* (#:key tests? #:allow-other-keys)
9706 (home-page "https://github.com/prawnpdf/prawn-table")
9707 (synopsis "Tables support for Prawn")
9708 (description "This gem provides tables support for Prawn.")
9709 (license license:gpl3+)))
9711 (define-public ruby-kramdown
9713 (name "ruby-kramdown")
9717 (uri (rubygems-uri "kramdown" version))
9720 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
9721 (build-system ruby-build-system)
9722 (arguments `(#:tests? #f)); FIXME: some test failures
9724 `(("ruby-prawn" ,ruby-prawn)
9725 ("ruby-prawn-table" ,ruby-prawn-table)))
9726 (home-page "https://kramdown.gettalong.org/")
9727 (synopsis "Markdown parsing and converting library")
9728 (description "Kramdown is a library for parsing and converting a superset
9729 of Markdown. It is completely written in Ruby, supports standard Markdown
9730 (with some minor modifications) and various extensions that have been made
9731 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
9732 (license license:expat)))
9734 (define-public ruby-http-parser.rb
9736 (name "ruby-http-parser.rb")
9741 (uri (rubygems-uri "http_parser.rb" version))
9744 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
9745 (build-system ruby-build-system)
9750 `(("ruby-rake-compiler" ,ruby-rake-compiler)
9751 ("ruby-rspec" ,ruby-rspec)))
9752 (home-page "https://github.com/tmm1/http_parser.rb")
9753 (synopsis "HTTP parser un Ruby")
9754 (description "This gem is a simple callback-based HTTP request/response
9755 parser for writing http servers, clients and proxies.")
9756 (license license:expat)))
9758 (define-public ruby-em-websocket
9760 (name "ruby-em-websocket")
9765 (uri (rubygems-uri "em-websocket" version))
9768 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
9769 (build-system ruby-build-system)
9774 `(("ruby-eventmachine" ,ruby-eventmachine)
9775 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
9777 `(("bundler" ,bundler)
9778 ("ruby-rspec" ,ruby-rspec)))
9779 (home-page "https://github.com/igrigorik/em-websocket")
9780 (synopsis "EventMachine based WebSocket server")
9781 (description "Em-websocket is an EventMachine based WebSocket server
9783 (license license:expat)))
9785 (define-public ruby-rouge
9791 (uri (rubygems-uri "rouge" version))
9794 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
9795 (build-system ruby-build-system)
9796 (arguments `(#:tests? #f)); No rakefile
9797 (home-page "http://rouge.jneen.net/")
9798 (synopsis "Code highlighter")
9799 (description "Rouge is a code highlighter written in Ruby. It supports more
9800 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
9801 is compatible with stylesheets designed for pygments.")
9803 ;; rouge is licensed under expat
9805 ;; pygments is licensed under bsd-2
9808 (define-public ruby-rouge-2
9810 (inherit ruby-rouge)
9814 (uri (rubygems-uri "rouge" version))
9817 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
9819 (define-public ruby-hashie
9821 (name "ruby-hashie")
9825 (uri (rubygems-uri "hashie" version))
9828 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
9829 (build-system ruby-build-system)
9831 `(("bundler" ,bundler)))
9832 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
9833 (home-page "https://github.com/intridea/hashie")
9834 (synopsis "Extensions to Ruby Hashes")
9835 (description "Hashie is a collection of classes and mixins that make Ruby
9836 hashes more powerful.")
9837 (license license:expat)))
9839 (define-public ruby-heredoc-unindent
9841 (name "ruby-heredoc-unindent")
9845 (uri (rubygems-uri "heredoc_unindent" version))
9848 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
9849 (build-system ruby-build-system)
9851 `(("ruby-hoe" ,ruby-hoe)))
9852 (home-page "https://github.com/adrianomitre/heredoc_unindent")
9853 (synopsis "Heredoc indentation cleaner")
9854 (description "This gem removes common margin from indented strings, such
9855 as the ones produced by indented heredocs. In other words, it strips out
9856 leading whitespace chars at the beginning of each line, but only as much as
9857 the line with the smallest margin.
9859 It is acknowledged that many strings defined by heredocs are just code and
9860 fact is that most parsers are insensitive to indentation. If, however, the
9861 strings are to be used otherwise, be it for printing or testing, the extra
9862 indentation will probably be an issue and hence this gem.")
9863 (license license:expat)))
9865 (define-public ruby-safe-yaml
9867 (name "ruby-safe-yaml")
9873 (url "https://github.com/dtao/safe_yaml")
9875 (file-name (git-file-name name version))
9878 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
9879 (build-system ruby-build-system)
9881 `(("ruby-rspec" ,ruby-rspec)
9882 ("ruby-hashie" ,ruby-hashie)
9883 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
9885 '(#:test-target "spec"
9887 (modify-phases %standard-phases
9888 (add-before 'check 'set-TZ
9890 ;; This test is dependent on the timezone
9891 ;; spec/transform/to_date_spec.rb:35
9892 ;; # SafeYAML::Transform::ToDate converts times to the local
9894 (setenv "TZ" "UTC-11")
9896 (home-page "https://github.com/dtao/safe_yaml")
9897 (synopsis "YAML parser")
9898 (description "The SafeYAML gem provides an alternative implementation of
9899 YAML.load suitable for accepting user input in Ruby applications.")
9900 (license license:expat)))
9902 (define-public ruby-mercenary
9904 (name "ruby-mercenary")
9908 (uri (rubygems-uri "mercenary" version))
9911 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
9912 (build-system ruby-build-system)
9913 (arguments `(#:test-target "spec"))
9915 `(("bundler" ,bundler)))
9916 (home-page "https://github.com/jekyll/mercenary")
9917 (synopsis "Command-line apps library in Ruby")
9918 (description "Mercenary is a lightweight and flexible library for writing
9919 command-line apps in Ruby.")
9920 (license license:expat)))
9922 (define-public ruby-liquid
9924 (name "ruby-liquid")
9928 (uri (rubygems-uri "liquid" version))
9931 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
9932 (build-system ruby-build-system)
9933 (arguments `(#:tests? #f)); No rakefile
9934 (home-page "https://shopify.github.io/liquid/")
9935 (synopsis "Template language")
9936 (description "Liquid is a template language written in Ruby. It is used
9937 to load dynamic content on storefronts.")
9938 (license license:expat)))
9940 (define-public ruby-forwardable-extended
9942 (name "ruby-forwardable-extended")
9946 (uri (rubygems-uri "forwardable-extended" version))
9949 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
9950 (build-system ruby-build-system)
9951 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
9952 (home-page "https://github.com/envygeeks/forwardable-extended")
9953 (synopsis "Delegation to hashes and instance variables in Forwardable")
9954 (description "Forwardable Extended provides more @code{Forwardable}
9955 methods for your source as @code{Forwardable::Extended}.")
9956 (license license:expat)))
9958 (define-public ruby-pathutil
9960 (name "ruby-pathutil")
9964 (uri (rubygems-uri "pathutil" version))
9967 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
9968 (build-system ruby-build-system)
9970 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
9972 `(("bundler" ,bundler)
9973 ("ruby-rspec" ,ruby-rspec)))
9974 ;; Fails with: cannot load such file --
9975 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
9976 (arguments `(#:tests? #f))
9977 (home-page "https://github.com/envygeeks/pathutil")
9978 (synopsis "Extended implementation of Pathname")
9979 (description "Pathutil tries to be a faster pure Ruby implementation of
9981 (license license:expat)))
9983 (define-public jekyll
9989 (uri (rubygems-uri "jekyll" version))
9992 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
9993 (build-system ruby-build-system)
9995 ;; No rakefile, but a test subdirectory.
9998 (modify-phases %standard-phases
9999 (add-before 'build 'fix-i18n
10001 (substitute* ".gemspec"
10002 (("~> 0.7") ">= 0.7"))
10005 `(("ruby-addressable" ,ruby-addressable)
10006 ("ruby-colorator" ,ruby-colorator)
10007 ("ruby-em-websocket" ,ruby-em-websocket)
10008 ("ruby-i18n" ,ruby-i18n)
10009 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
10010 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
10011 ("ruby-kramdown" ,ruby-kramdown)
10012 ("ruby-liquid" ,ruby-liquid)
10013 ("ruby-mercenary" ,ruby-mercenary)
10014 ("ruby-pathutil" ,ruby-pathutil)
10015 ("ruby-rouge" ,ruby-rouge-2)
10016 ("ruby-safe-yaml" ,ruby-safe-yaml)))
10017 (home-page "https://jekyllrb.com/")
10018 (synopsis "Static site generator")
10019 (description "Jekyll is a simple, blog aware, static site generator.")
10020 (license license:expat)))
10022 (define-public ruby-jekyll-paginate-v2
10024 (name "ruby-jekyll-paginate-v2")
10028 (uri (rubygems-uri "jekyll-paginate-v2" version))
10031 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
10032 (build-system ruby-build-system)
10034 `(("jekyll" ,jekyll)))
10035 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
10036 (synopsis "Pagination Generator for Jekyll 3")
10037 (description "The Pagination Generator forms the core of the pagination
10038 logic in Jekyll. It calculates and generates the pagination pages.")
10039 (license license:expat)))
10041 (define-public ruby-faraday
10043 (name "ruby-faraday")
10048 (uri (rubygems-uri "faraday" version))
10051 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
10052 (build-system ruby-build-system)
10056 `(("ruby-multipart-post" ,ruby-multipart-post)))
10057 (synopsis "Ruby HTTP/REST API client library")
10059 "Faraday is a HTTP/REST API client library which provides a common
10060 interface over different adapters.")
10061 (home-page "https://github.com/lostisland/faraday")
10062 (license license:expat)))
10064 (define-public ruby-nio4r
10066 (name "ruby-nio4r")
10071 (uri (rubygems-uri "nio4r" version))
10074 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
10075 (build-system ruby-build-system)
10078 (modify-phases %standard-phases
10079 (add-after 'unpack 'remove-unnecessary-dependencies
10081 (substitute* "spec/spec_helper.rb"
10082 ;; Coveralls is for uploading test coverage information to an
10083 ;; online service, and thus unnecessary for building the Guix
10085 (("require \"coveralls\"") "")
10086 (("Coveralls\\.wear!") "")
10087 ;; Remove rspec/retry as we are not retrying the tests
10088 (("require \"rspec/retry\"") "")
10089 (("config\\.display_try_failure_messages = true") "")
10090 (("config\\.verbose_retry = true") ""))
10092 (add-before 'check 'compile
10094 (invoke "rake" "compile")
10097 (lambda* (#:key tests? #:allow-other-keys)
10102 `(("bundler" ,bundler)
10103 ("ruby-rake-compiler" ,ruby-rake-compiler)
10104 ("ruby-rspec" ,ruby-rspec)
10105 ("ruby-rubocop" ,ruby-rubocop)))
10106 (synopsis "New I/O for Ruby")
10108 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
10109 for scalable network clients and servers.")
10110 (home-page "https://github.com/socketry/nio4r")
10111 (license license:expat)))
10113 (define-public ruby-globalid
10115 (name "ruby-globalid")
10120 (uri (rubygems-uri "globalid" version))
10123 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
10124 (build-system ruby-build-system)
10126 '(;; No included tests
10129 `(("ruby-activesupport" ,ruby-activesupport)))
10130 (synopsis "Generate URIs idenfitying model instances in Ruby")
10132 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
10133 uniquely identify it.")
10134 (home-page "https://rubyonrails.org/")
10135 (license license:expat)))
10137 (define-public ruby-sprockets
10139 (name "ruby-sprockets")
10144 (uri (rubygems-uri "sprockets" version))
10147 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
10148 (build-system ruby-build-system)
10150 '(;; No included tests
10153 `(("ruby-concurrent" ,ruby-concurrent)
10154 ("ruby-rack" ,ruby-rack)))
10155 (synopsis "Sprockets is a Rack-based asset packaging system")
10157 "Sprockets is a Rack-based asset packaging system that concatenates and
10158 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
10159 (home-page "https://github.com/rails/sprockets")
10160 (license license:expat)))
10162 (define-public ruby-mustermann
10164 (name "ruby-mustermann")
10169 (uri (rubygems-uri "mustermann" version))
10172 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
10173 (build-system ruby-build-system)
10177 (synopsis "Library implementing patterns that behave like regular expressions")
10178 (description "Given a string pattern, Mustermann will turn it into an
10179 object that behaves like a regular expression and has comparable performance
10181 (home-page "https://github.com/sinatra/mustermann")
10182 (license license:expat)))
10184 (define-public ruby-htmlentities
10186 (name "ruby-htmlentities")
10191 (uri (rubygems-uri "htmlentities" version))
10194 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
10195 (build-system ruby-build-system)
10198 (modify-phases %standard-phases
10201 (map (lambda (file)
10202 (invoke "ruby" "-Itest" file))
10203 (find-files "./test" ".*_test\\.rb")))))))
10204 (synopsis "Encode and decode (X)HTML entities")
10206 "This package provides a module for encoding and decoding (X)HTML
10208 (home-page "https://github.com/threedaymonk/htmlentities")
10209 (license license:expat)))
10211 (define-public ruby-sinatra
10213 (name "ruby-sinatra")
10214 (version "2.0.8.1")
10218 (uri (rubygems-uri "sinatra" version))
10221 "0riy3hwjab1mr73jcqx3brmbmwspnw3d193j06a5f0fy1w35z15q"))))
10222 (build-system ruby-build-system)
10225 (modify-phases %standard-phases
10226 ;; See: https://github.com/sinatra/sinatra/issues/1578.
10227 (add-after 'extract-gemspec 'fix-slow-doc-generation
10229 (substitute* "sinatra.gemspec"
10230 (("\"README.rdoc\"\\.freeze," all)
10231 (string-append all " \"--exclude=.*\\.md\".freeze,")))
10234 `(("ruby-mustermann" ,ruby-mustermann)
10235 ("ruby-rack" ,ruby-rack)
10236 ("ruby-rack-protection" ,ruby-rack-protection)
10237 ("ruby-tilt" ,ruby-tilt)))
10238 (synopsis "DSL for quick web applications creation in Ruby")
10240 "Sinatra is a DSL for quickly creating web applications in Ruby with
10242 (home-page "http://sinatrarb.com/")
10243 (license license:expat)))
10245 (define-public ruby-thin
10252 (uri (rubygems-uri "thin" version))
10255 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
10256 (build-system ruby-build-system)
10261 `(("ruby-daemons" ,ruby-daemons)
10262 ("ruby-eventmachine" ,ruby-eventmachine)
10263 ("ruby-rack" ,ruby-rack)))
10264 (synopsis "Thin and fast web server for Ruby")
10265 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
10267 @item the Mongrel parser,
10268 @item Event Machine, a network I/O library with high scalability, performance
10270 @item Rack, a minimal interface between webservers and Ruby frameworks.
10272 (home-page "https://github.com/macournoyer/thin")
10273 (license license:ruby)))
10275 (define-public ruby-skinny
10277 (name "ruby-skinny")
10282 (uri (rubygems-uri "skinny" version))
10285 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
10286 (build-system ruby-build-system)
10288 '(#:tests? #f ; No included tests
10290 (modify-phases %standard-phases
10291 (add-before 'build 'patch-gemspec
10293 (substitute* ".gemspec"
10294 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
10295 "<eventmachine>, [\">= 1.0.0\"")
10296 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
10299 `(("ruby-eventmachine" ,ruby-eventmachine)
10300 ("ruby-thin" ,ruby-thin)))
10301 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
10302 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
10303 the Thin library.")
10304 (home-page "https://github.com/sj26/skinny")
10305 (license license:expat)))
10307 (define-public ruby-sys-filesystem
10309 (name "ruby-sys-filesystem")
10313 (uri (rubygems-uri "sys-filesystem" version))
10316 "0mizqnsiagagmracadr16s5na2ks2j3ih1w0f3gp4ssrda6szl01"))))
10317 (build-system ruby-build-system)
10319 '(#:phases (modify-phases %standard-phases
10320 (add-before 'check 'set-HOME
10322 ;; Some tests attempt to stat $HOME. Let them.
10323 (setenv "HOME" "/tmp")
10326 `(("ruby-ffi" ,ruby-ffi)))
10328 `(("ruby-mkmf-lite" ,ruby-mkmf-lite)))
10329 (synopsis "Gather file system information")
10331 "The @code{sys-filesystem} library provides a cross-platform interface
10332 for gathering file system information, such as disk space and mount points.")
10333 (home-page "https://github.com/djberg96/sys-filesystem")
10334 (license license:asl2.0)))
10336 (define-public mailcatcher
10338 (name "mailcatcher")
10343 (uri (rubygems-uri "mailcatcher" version))
10346 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
10347 (build-system ruby-build-system)
10349 ;; Tests require web/assets which is not included in the output. We
10350 ;; might be able to fix this by adding the Git repository to the GEM_PATH
10351 ;; of the tests. See ruby-mysql2.
10354 (modify-phases %standard-phases
10355 (add-before 'build 'patch-gemspec
10357 (substitute* ".gemspec"
10358 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
10359 "<eventmachine>, [\">= 1.0.9.1")
10360 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
10361 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
10362 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
10364 (add-before 'build 'loosen-dependency-contraint
10366 (substitute* "lib/mail_catcher.rb"
10367 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
10368 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
10369 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
10370 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
10373 `(("ruby-eventmachine" ,ruby-eventmachine)
10374 ("ruby-mail" ,ruby-mail)
10375 ("ruby-rack" ,ruby-rack)
10376 ("ruby-sinatra" ,ruby-sinatra)
10377 ("ruby-skinny" ,ruby-skinny)
10378 ("ruby-sqlite3" ,ruby-sqlite3)
10379 ("ruby-thin" ,ruby-thin)))
10380 (synopsis "SMTP server which catches messages to display them a browser")
10382 "MailCatcher runs a super simple SMTP server which catches any message
10383 sent to it to display in a web interface. Run mailcatcher, set your favourite
10384 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
10385 then check out http://127.0.0.1:1080 to see the mail.")
10386 (home-page "https://mailcatcher.me")
10387 (license license:expat)))
10389 (define-public ruby-backport
10391 (name "ruby-backport")
10395 ;; The gem does not include test code, so fetch from the Git repository.
10397 (uri (git-reference
10398 (url "https://github.com/castwide/backport")
10399 (commit (string-append "v" version))))
10400 (file-name (git-file-name name version))
10402 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
10403 (build-system ruby-build-system)
10405 `(#:test-target "spec"))
10407 `(("bundler" ,bundler)
10408 ("ruby-rspec" ,ruby-rspec)))
10410 `(("ruby-simplecov" ,ruby-simplecov)))
10411 (synopsis "Pure Ruby library for event-driven IO")
10413 "This package provides a pure Ruby library for event-driven IO.")
10414 (home-page "https://github.com/castwide/backport")
10415 (license license:expat)))
10417 (define-public ruby-json-schema
10419 (name "ruby-json-schema")
10424 (uri (rubygems-uri "json-schema" version))
10427 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
10428 (build-system ruby-build-system)
10430 `(#:tests? #f ; no tests
10432 (modify-phases %standard-phases
10435 (invoke "gem" "build" ".gemspec"))))))
10437 `(("ruby-addressable" ,ruby-addressable)))
10438 (synopsis "Ruby JSON Schema Validator")
10439 (description "This library provides Ruby with an interface for validating
10440 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
10441 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
10442 is also included.")
10443 (home-page "https://github.com/ruby-json-schema/json-schema")
10444 (license license:expat)))
10446 (define-public swagger-diff
10448 (name "swagger-diff")
10453 (uri (rubygems-uri "swagger-diff" version))
10456 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
10457 (build-system ruby-build-system)
10459 `(#:test-target "spec"
10461 (modify-phases %standard-phases
10462 ;; Don't run or require rubocop, the code linting tool, as this is a
10463 ;; bit unnecessary.
10464 (add-after 'unpack 'dont-run-rubocop
10466 (substitute* "Rakefile"
10467 ((".*rubocop.*") "")
10468 ((".*RuboCop.*") ""))
10471 `(("ruby-json-schema" ,ruby-json-schema)))
10473 `(("bundler" ,bundler)
10474 ("ruby-rspec-core" ,ruby-rspec-core)
10475 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
10477 "Compare Open API Initiative specification files")
10479 "Swagger::Diff is a utility for comparing two different Open API
10480 Initiative (OAI) specifications (formerly known as Swagger specifications).
10481 It is intended to determine whether a newer API specification is
10482 backwards-compatible with an older API specification.")
10483 (home-page "https://github.com/civisanalytics/swagger-diff")
10484 (license license:bsd-3)))
10486 (define-public ruby-reverse-markdown
10488 (name "ruby-reverse-markdown")
10493 (uri (rubygems-uri "reverse_markdown" version))
10496 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
10497 (build-system ruby-build-system)
10499 `(("ruby-nokogiri" ,ruby-nokogiri)))
10501 `(("bundler" ,bundler)
10502 ("ruby-rspec" ,ruby-rspec)
10503 ("ruby-kramdown" ,ruby-kramdown)
10504 ("ruby-simplecov" ,ruby-simplecov)))
10507 (modify-phases %standard-phases
10509 (lambda* (#:key tests? #:allow-other-keys)
10513 (synopsis "Convert HTML into Markdown")
10515 "This Ruby module allows you to map simple HTML back into
10516 Markdown---e.g., if you want to import existing HTML data in your
10518 (home-page "https://github.com/xijo/reverse_markdown")
10519 (license license:wtfpl2)))
10521 (define-public ruby-solargraph
10523 (name "ruby-solargraph")
10528 (uri (rubygems-uri "solargraph" version))
10531 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
10532 (build-system ruby-build-system)
10534 `(("ruby-backport" ,ruby-backport)
10535 ("bundler" ,bundler)
10536 ("ruby-htmlentities" ,ruby-htmlentities)
10537 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
10538 ("ruby-maruku" ,ruby-maruku)
10539 ("ruby-nokogiri" ,ruby-nokogiri)
10540 ("ruby-parser" ,ruby-parser)
10541 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
10542 ("ruby-rubocop" ,ruby-rubocop)
10543 ("ruby-thor" ,ruby-thor)
10544 ("ruby-tilt" ,ruby-tilt)
10545 ("ruby-yard" ,ruby-yard)))
10547 `(("ruby-rspec" ,ruby-rspec)
10548 ("ruby-pry" ,ruby-pry)
10549 ("ruby-simplecov" ,ruby-simplecov)
10550 ("ruby-webmock" ,ruby-webmock-2)))
10551 ;; FIXME: can't figure out how to run the tests properly:
10553 ;; An error occurred while loading spec_helper.
10554 ;; Failure/Error: return gem_original_require(path)
10556 ;; cannot load such file -- spec_helper
10560 (modify-phases %standard-phases
10562 (lambda* (#:key tests? #:allow-other-keys)
10567 "IDE tools for code completion, inline documentation, and static analysis")
10569 "Solargraph provides a comprehensive suite of tools for Ruby
10570 programming: intellisense, diagnostics, inline documentation, and type
10572 (home-page "https://solargraph.org/")
10573 (license license:expat)))
10575 (define-public ruby-wayback-machine-downloader
10577 (name "ruby-wayback-machine-downloader")
10583 "wayback_machine_downloader"
10587 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
10588 (build-system ruby-build-system)
10590 '(#:tests? #f)) ; no tests
10591 (synopsis "Download archived websites from the Wayback Machine")
10593 "Wayback Machine Downloader is a command line tool for downloading
10594 websites from the Internet Archive's Wayback Machine (archive.org).
10595 It allows fine grained control over what to download by specifying
10596 which snapshots to consider and what files to include.")
10598 "https://github.com/hartator/wayback-machine-downloader")
10599 (license license:expat)))
10601 (define-public ruby-wwtd
10605 (home-page "http://github.com/grosser/wwtd")
10608 (uri (git-reference
10610 (commit (string-append "v" version))))
10611 (file-name (git-file-name name version))
10614 "0gw7vfnbb41cy67yw82zji3jkhfsgmzcgzaszm99ax77y18wclf2"))
10615 (modules '((guix build utils)))
10618 ;; Remove bundled library.
10619 (delete-file "spec/rake-12.3.0.gem")
10621 (build-system ruby-build-system)
10623 '(;; XXX: Tests need multiple versions of ruby, wants to run
10624 ;; `bundle install`, etc.
10626 #:phases (modify-phases %standard-phases
10627 (replace 'replace-git-ls-files
10629 (substitute* "wwtd.gemspec"
10630 (("git ls-files lib/ bin/`")
10631 "find lib/ bin/ -type f |sort`"))
10633 (add-before 'check 'remove-version-constraints
10635 (delete-file "Gemfile.lock")
10638 (lambda* (#:key tests? #:allow-other-keys)
10640 (invoke "rspec" "spec/")
10641 (format #t "test suite not run~%"))
10644 `(("ruby-bump" ,ruby-bump)
10645 ("ruby-rspec" ,ruby-rspec)))
10646 (synopsis "Run @file{.travis.yml} files locally")
10648 "WWTD is a @dfn{Travis Simulator} that lets you run test matrices
10649 defined in @file{.travis.yml} on your local machine, using @code{rvm},
10650 @code{rbenv}, or @code{chruby} to test different versions of Ruby.")
10651 (license license:expat)))