1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
3 ;;; Copyright © 2014, 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
4 ;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
5 ;;; Copyright © 2014, 2015 David Thompson <davet@gnu.org>
6 ;;; Copyright © 2015, 2019 Ricardo Wurmus <rekado@elephly.net>
7 ;;; Copyright © 2015, 2016, 2017 Ben Woodcroft <donttrustben@gmail.com>
8 ;;; Copyright © 2017 ng0 <ng0@n0.is>
9 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
11 ;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
12 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
13 ;;; Copyright © 2017, 2018, 2019 Christopher Baines <mail@cbaines.net>
14 ;;; Copyright © 2018 Vasile Dumitrascu <va511e@yahoo.com>
15 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
16 ;;; Copyright © 2019 Pierre Neidhardt <mail@ambrevar.xyz>
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>
24 ;;; This file is part of GNU Guix.
26 ;;; GNU Guix is free software; you can redistribute it and/or modify it
27 ;;; under the terms of the GNU General Public License as published by
28 ;;; the Free Software Foundation; either version 3 of the License, or (at
29 ;;; your option) any later version.
31 ;;; GNU Guix is distributed in the hope that it will be useful, but
32 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
33 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34 ;;; GNU General Public License for more details.
36 ;;; You should have received a copy of the GNU General Public License
37 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
39 (define-module (gnu packages ruby)
40 #:use-module ((guix licenses) #:prefix license:)
41 #:use-module (gnu packages)
42 #:use-module (gnu packages base)
43 #:use-module (gnu packages bison)
44 #:use-module (gnu packages check)
45 #:use-module (gnu packages compression)
46 #:use-module (gnu packages crypto)
47 #:use-module (gnu packages databases)
48 #:use-module (gnu packages dbm)
49 #:use-module (gnu packages rails)
50 #:use-module (gnu packages readline)
51 #:use-module (gnu packages autotools)
52 #:use-module (gnu packages java)
53 #:use-module (gnu packages libffi)
54 #:use-module (gnu packages libidn)
55 #:use-module (gnu packages linux)
56 #:use-module (gnu packages lsof)
57 #:use-module (gnu packages maths)
58 #:use-module (gnu packages ncurses)
59 #:use-module (gnu packages networking)
60 #:use-module (gnu packages node)
61 #:use-module (gnu packages python)
62 #:use-module (gnu packages python-xyz)
63 #:use-module (gnu packages ragel)
64 #:use-module (gnu packages rsync)
65 #:use-module (gnu packages sqlite)
66 #:use-module (gnu packages tls)
67 #:use-module (gnu packages version-control)
68 #:use-module (guix packages)
69 #:use-module (guix download)
70 #:use-module (guix git-download)
71 #:use-module (guix utils)
72 #:use-module (guix build-system gnu)
73 #:use-module (gnu packages xml)
74 #:use-module (gnu packages web)
75 #:use-module (guix build-system ruby)
76 #:use-module ((srfi srfi-1) #:select (alist-delete)))
85 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
86 (version-major+minor version)
87 "/ruby-" version ".tar.xz"))
90 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
91 (modules '((guix build utils)))
93 ;; Remove bundled libffi
94 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
96 (build-system gnu-build-system)
98 `(#:test-target "test"
99 #:configure-flags '("--enable-shared") ; dynamic linking
101 (modify-phases %standard-phases
102 (add-before 'configure 'replace-bin-sh-and-remove-libffi
104 (substitute* '("Makefile.in"
109 "test/rubygems/test_gem_ext_configure_builder.rb"
110 "test/rdoc/test_rdoc_parser.rb"
111 "test/ruby/test_rubyoptions.rb"
112 "test/ruby/test_process.rb"
113 "test/ruby/test_system.rb"
115 (("/bin/sh") (which "sh")))
118 `(("readline" ,readline)
124 (list (search-path-specification
125 (variable "GEM_PATH")
126 (files (list (string-append "lib/ruby/vendor_ruby"))))))
127 (synopsis "Programming language interpreter")
128 (description "Ruby is a dynamic object-oriented programming language with
129 a focus on simplicity and productivity.")
130 (home-page "https://www.ruby-lang.org")
131 (license license:ruby)))
133 (define-public ruby-2.4
140 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
141 (version-major+minor version)
142 "/ruby-" version ".tar.xz"))
145 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
146 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
147 (modules '((guix build utils)))
149 ;; Remove bundled libffi
150 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
153 (define-public ruby-2.3
160 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
161 (version-major+minor version)
162 "/ruby-" version ".tar.xz"))
165 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
166 (modules '((guix build utils)))
168 ;; Remove bundled libffi
169 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
180 (url "https://github.com/mruby/mruby.git")
182 (file-name (git-file-name name version))
185 "1r6w1asjshff43ymdwa6xmrkggza99mi2kw88k7ic6ag2j81hcj5"))))
186 (build-system gnu-build-system)
188 `(#:test-target "test"
190 (modify-phases %standard-phases
192 (add-after 'unpack 'enable-verbose-tests
194 (substitute* "Makefile"
195 (("ruby ./minirake" m)
196 (string-append m " --verbose")))
198 (add-after 'unpack 'disable-broken-tests
200 (substitute* "mrbgems/mruby-io/test/io.rb"
201 (("assert\\('IO.popen.+$" m)
202 (string-append m "skip \"Hangs in the Guix build environment\"\n"))
203 (("assert\\('IO#isatty.+$" m)
204 (string-append m "skip \"Disable for Guix; there is no /dev/tty\"\n"))
205 ;; This one is really weird. The *expected* output is all wrong.
206 (("assert\\('`cmd`.*" m)
207 (string-append m "skip \"Disable for Guix\"\n"))
209 (string-append (which "echo") " foo")))
211 ;; There is no install target
213 (lambda* (#:key outputs #:allow-other-keys)
214 (let* ((out (assoc-ref outputs "out"))
215 (bin (string-append out "/bin"))
216 (lib (string-append out "/lib")))
218 (copy-recursively "build/host/bin" bin)
220 (copy-recursively "build/host/lib" lib))
225 (home-page "https://github.com/mruby/mruby")
226 (synopsis "Lightweight Ruby")
227 (description "mruby is the lightweight implementation of the Ruby
228 language. Its syntax is Ruby 1.9 compatible. mruby can be linked and
229 embedded within your application.")
230 (license license:expat)))
232 (define-public ruby-commander
234 (name "ruby-commander")
239 (uri (rubygems-uri "commander" version))
242 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
243 (build-system ruby-build-system)
245 `(#:test-target "spec"
247 (modify-phases %standard-phases
248 ;; Don't run or require rubocop, the code linting tool, as this is a
250 (add-after 'unpack 'dont-run-rubocop
252 (substitute* "Rakefile"
254 ((".*RuboCop.*") ""))
257 `(("ruby-highline" ,ruby-highline)))
259 `(("bundler" ,bundler)
260 ("ruby-rspec-core" ,ruby-rspec-core)
261 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
262 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
263 ("ruby-simplecov" ,ruby-simplecov)))
264 (home-page "https://github.com/commander-rb/commander")
265 (synopsis "Library for building Ruby command-line executables")
267 "Commander aims to be a complete solution for Ruby command-line
268 executables. Commander bridges the gap between other terminal related
269 libraries (OptionParser, HighLine), while providing many new features, and an
271 (license license:expat)))
273 (define-public ruby-highline
275 (name "ruby-highline")
280 (uri (rubygems-uri "highline" version))
283 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
284 (build-system ruby-build-system)
286 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
288 `(("bundler" ,bundler)
289 ("ruby-code-statistics" ,ruby-code-statistics)))
291 "HighLine helps you build command-line interfaces")
293 "HighLine provides a high-level IO library that provides validation,
294 type conversion, and more for command-line interfaces. HighLine also includes
295 a menu system for providing multiple options to the user.")
296 (home-page "https://github.com/JEG2/highline")
297 (license (list license:gpl2 license:ruby))))
299 (define-public ruby-hoe
305 (uri (rubygems-uri "hoe" version))
308 "0qid0n56mgsjvq5ksxajv0gb92akky8imwgvw22ajms5g4fd6nf4"))))
309 (build-system ruby-build-system)
312 (modify-phases %standard-phases
313 ;; One of the tests fails if the SOURCE_DATE_EPOCH environment
314 ;; variable is set, so unset it for the duration of the tests.
316 ;; TestHoe#test_possibly_better
317 ;; [/tmp/guix-build-ruby-hoe-3.20.0.drv-0/gem/test/test_hoe.rb:250]:
318 ;; Expected: 2019-11-12 00:00:00 UTC
319 ;; Actual: 1970-01-01 00:00:00 UTC
320 (add-before 'check 'unset-SOURCE-DATE-EPOCH
322 (unsetenv "SOURCE_DATE_EPOCH")
324 (add-after 'check 'set-SOURCE-DATE-EPOCH-again
326 (setenv "SOURCE_DATE_EPOCH" "1")
328 (synopsis "Ruby project management helper")
330 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
331 maintain, and release projects and includes a dynamic plug-in system allowing
332 for easy extensibility. Hoe ships with plug-ins for all the usual project
333 tasks including rdoc generation, testing, packaging, deployment, and
335 (home-page "https://www.zenspider.com/projects/hoe.html")
336 (license license:expat)))
338 (define-public ruby-rake-compiler
340 (name "ruby-rake-compiler")
344 (uri (rubygems-uri "rake-compiler" version))
347 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
348 (build-system ruby-build-system)
350 '(#:tests? #f)) ; needs cucumber
351 (synopsis "Building and packaging helper for Ruby native extensions")
352 (description "Rake-compiler provides a framework for building and
353 packaging native C and Java extensions in Ruby.")
354 (home-page "https://github.com/rake-compiler/rake-compiler")
355 (license license:expat)))
357 (define-public ruby-rsync
364 (uri (rubygems-uri "rsync" version))
367 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
368 (build-system ruby-build-system)
370 '(#:test-target "spec"
372 (modify-phases %standard-phases
373 (add-after 'unpack 'remove-coveralls-requirement
375 (substitute* "spec/spec_helper.rb"
376 (("require 'coveralls'") "")
377 (("Coveralls.wear!") ""))
380 `(("bundler" ,bundler)
382 ("ruby-rspec-core" ,ruby-rspec-core)
383 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
384 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
385 (home-page "https://github.com/jbussdieker/ruby-rsync")
386 (synopsis "Ruby wrapper around rsync")
388 "Ruby Rsync is a Ruby library that can synchronize files between remote
389 hosts by wrapping the @file{rsync} binary.")
390 (license license:expat)))
392 (define-public ruby-i18n
398 (uri (rubygems-uri "i18n" version))
401 "0hmypvx9iyc0b4hski7aic2xzm09cg1c7q1qlpnk3k8s5acxzyhl"))))
402 (build-system ruby-build-system)
404 '(#:tests? #f)) ; no tests
405 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
406 (synopsis "Internationalization library for Ruby")
407 (description "Ruby i18n is an internationalization and localization
408 solution for Ruby programs. It features translation and localization,
409 interpolation of values to translations, pluralization, customizable
410 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
411 translation data, custom key/scope separator, custom exception handlers, and
412 an extensible architecture with a swappable backend.")
413 (home-page "https://github.com/ruby-i18n/i18n")
414 (license license:expat)))
416 (define-public ruby-iruby
423 (uri (rubygems-uri "iruby" version))
426 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
427 (build-system ruby-build-system)
429 ;; TODO: Tests currently fail.
431 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
434 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
437 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
440 (modify-phases %standard-phases
441 (add-after 'unpack 'patch-ipython
442 (lambda* (#:key inputs #:allow-other-keys)
443 (substitute* "lib/iruby/command.rb"
447 (assoc-ref inputs "python-ipython")
449 (("Kernel\\.exec\\('")
452 (assoc-ref inputs "python-ipython")
456 `(("python-ipython" ,python-ipython)))
458 `(("ruby-bond" ,ruby-bond)
459 ("ruby-data_uri" ,ruby-data_uri)
460 ("ruby-mimemagic" ,ruby-mimemagic)
461 ("ruby-multi-json" ,ruby-multi-json)
462 ("ruby-cztop" ,ruby-cztop)
464 ("ruby-pry" ,ruby-pry)))
465 (synopsis "Ruby kernel for Jupyter/IPython")
467 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
469 (home-page "https://github.com/SciRuby/iruby")
470 (license license:expat)))
472 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
473 ;; dependencies use RSpec for their test suites! To avoid these circular
474 ;; dependencies, we disable tests for all of the RSpec-related packages.
475 (define-public ruby-rspec-support
477 (name "ruby-rspec-support")
481 (uri (rubygems-uri "rspec-support" version))
484 "0p3m7drixrlhvj2zpc38b11x145bvm311x6f33jjcxmvcm0wq609"))))
485 (build-system ruby-build-system)
487 '(#:tests? #f)) ; avoid dependency cycles
488 (synopsis "RSpec support library")
489 (description "Support utilities for RSpec gems.")
490 (home-page "https://github.com/rspec/rspec-support")
491 (license license:expat)))
493 (define-public ruby-rspec-core
495 (name "ruby-rspec-core")
499 (uri (rubygems-uri "rspec-core" version))
502 "1p1s5bnbqp3sxk67y0fh0x884jjym527r0vgmhbm81w7aq6b7l4p"))))
503 (build-system ruby-build-system)
505 '(#:tests? #f)) ; avoid dependency cycles
507 `(("ruby-rspec-support" ,ruby-rspec-support)))
508 (synopsis "RSpec core library")
509 (description "Rspec-core provides the RSpec test runner and example
511 (home-page "https://github.com/rspec/rspec-core")
512 (license license:expat)))
514 (define-public ruby-rspec-core-2
515 (package (inherit ruby-rspec-core)
519 (uri (rubygems-uri "rspec-core" version))
522 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
523 (propagated-inputs `())))
525 (define-public ruby-diff-lcs
527 (name "ruby-diff-lcs")
531 (uri (rubygems-uri "diff-lcs" version))
534 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
535 (build-system ruby-build-system)
537 '(#:tests? #f)) ; avoid dependency cycles
538 (synopsis "Compute the difference between two Enumerable sequences")
539 (description "Diff::LCS computes the difference between two Enumerable
540 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
541 It includes utilities to create a simple HTML diff output format and a
542 standard diff-like tool.")
543 (home-page "https://github.com/halostatue/diff-lcs")
544 (license license:expat)))
546 (define-public ruby-rspec-expectations
548 (name "ruby-rspec-expectations")
552 (uri (rubygems-uri "rspec-expectations" version))
555 "18l21hy1zdc2pgc2yb17k3n2al1khpfr0z6pijlm852iz6vj0dkm"))))
556 (build-system ruby-build-system)
558 '(#:tests? #f)) ; avoid dependency cycles
560 `(("ruby-rspec-support" ,ruby-rspec-support)
561 ("ruby-diff-lcs" ,ruby-diff-lcs)))
562 (synopsis "RSpec expectations library")
563 (description "Rspec-expectations provides a simple API to express expected
564 outcomes of a code example.")
565 (home-page "https://github.com/rspec/rspec-expectations")
566 (license license:expat)))
568 (define-public ruby-rspec-expectations-2
569 (package (inherit ruby-rspec-expectations)
573 (uri (rubygems-uri "rspec-expectations" version))
576 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
578 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
580 (define-public ruby-rspec-its
582 (name "ruby-rspec-its")
588 (url "https://github.com/rspec/rspec-its.git")
589 (commit (string-append "v" version))))
590 (file-name (git-file-name name version))
593 "02mlsc9d4d1cjj5vahi8v3q8hyn9fyiv8nnlidhgfh186qp20g1p"))))
594 (build-system ruby-build-system)
596 `(#:test-target "spec"
598 (modify-phases %standard-phases
599 (add-after 'unpack 'dont-install-gems-from-gemfile
601 (substitute* "Gemfile"
602 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
605 (add-before 'build 'update-ffi-in-gemfile
607 (substitute* "Gemfile"
608 ((" gem 'ffi', '~> 1.9.25'") " gem 'ffi', '~> 1.10.0'"))
610 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
612 (substitute* "rspec-its.gemspec"
613 (("rake.*") "rake'\n")
614 (("spec.add_development_dependency 'cucumber'.*")
615 "spec.add_development_dependency 'cucumber'\n")
616 (("bundler.*") "bundler'\n")
617 (("\"aruba.*") "'aruba'\n"))
620 `(("ruby-rspec-core" ,ruby-rspec-core)
621 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
623 `(("bundler" ,bundler)
624 ("ruby-cucumber" ,ruby-cucumber)
625 ("ruby-ffi" ,ruby-ffi)
626 ("ruby-aruba" ,ruby-aruba)))
627 (synopsis "RSpec extension that provides the @code{its} method")
629 "RSpec::Its provides the its method as a short-hand to specify the expected
630 value of an attribute. For example, one can use @code{its(:size)\\{should
632 (home-page "https://github.com/rspec/rspec-its")
633 (license license:expat)))
635 (define-public ruby-rspec-mocks
637 (name "ruby-rspec-mocks")
641 (uri (rubygems-uri "rspec-mocks" version))
644 "06y508cjqycb4yfhxmb3nxn0v9xqf17qbd46l1dh4xhncinr4fyp"))))
645 (build-system ruby-build-system)
647 '(#:tests? #f)) ; avoid dependency cycles
649 `(("ruby-rspec-support" ,ruby-rspec-support)
650 ("ruby-diff-lcs" ,ruby-diff-lcs)))
651 (synopsis "RSpec stubbing and mocking library")
652 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
653 support for stubbing and mocking.")
654 (home-page "https://github.com/rspec/rspec-mocks")
655 (license license:expat)))
657 (define-public ruby-rspec-mocks-2
658 (package (inherit ruby-rspec-mocks)
662 (uri (rubygems-uri "rspec-mocks" version))
665 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
667 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
669 (define-public ruby-rspec-rerun
671 (name "ruby-rspec-rerun")
676 (uri (rubygems-uri "rspec-rerun" version))
679 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
680 (build-system ruby-build-system)
682 '(;; No included tests
684 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
685 (synopsis "Track failed RSpec tests to re-run them")
687 "This package provides an automated way to track, and then re-run failed
689 (home-page "https://github.com/dblock/rspec-rerun")
690 (license license:expat)))
692 (define-public ruby-rspec-wait
694 (name "ruby-rspec-wait")
699 (uri (rubygems-uri "rspec-wait" version))
702 "0gvj1bp5ccx001dyvcgk2j49s5sl6vs9fdaqqb08z3bd1554hsww"))))
703 (build-system ruby-build-system)
706 (modify-phases %standard-phases
709 (invoke "rake" "spec"))))))
711 `(("bundler" ,bundler)))
713 `(("ruby-rspec" ,ruby-rspec)))
714 (home-page "https://github.com/laserlemon/rspec-wait")
715 (synopsis "Wait for conditions in RSpec")
717 "RSpec::Wait strives to make it easier to test asynchronous or slow
719 (license license:expat)))
721 (define-public ruby-rspec
727 (uri (rubygems-uri "rspec" version))
730 "15ppasvb9qrscwlyjz67ppw1lnxiqnkzx5vkx1bd8x5n3dhikxc3"))))
731 (build-system ruby-build-system)
733 '(#:tests? #f)) ; avoid dependency cycles
735 `(("ruby-rspec-core" ,ruby-rspec-core)
736 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
737 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
738 (synopsis "Behavior-driven development framework for Ruby")
739 (description "RSpec is a behavior-driven development (BDD) framework for
740 Ruby. This meta-package includes the RSpec test runner, along with the
741 expectations and mocks frameworks.")
742 (home-page "http://rspec.info/")
743 (license license:expat)))
745 (define-public ruby-rspec-2
746 (package (inherit ruby-rspec)
750 (uri (rubygems-uri "rspec" version))
753 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
755 `(("ruby-rspec-core" ,ruby-rspec-core-2)
756 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
757 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
759 ;; Bundler is yet another source of circular dependencies, so we must disable
760 ;; its test suite as well.
761 (define-public bundler
767 (uri (rubygems-uri "bundler" version))
770 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
771 (build-system ruby-build-system)
773 '(#:tests? #f)) ; avoid dependency cycles
774 (synopsis "Ruby gem bundler")
775 (description "Bundler automatically downloads and installs a list of gems
776 specified in a \"Gemfile\", as well as their dependencies.")
777 (home-page "https://bundler.io/")
778 (license license:expat)))
780 (define-public ruby-builder
782 (name "ruby-builder")
786 (uri (rubygems-uri "builder" version))
789 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
790 (build-system ruby-build-system)
793 (modify-phases %standard-phases
794 (add-after 'unpack 'do-not-use-rvm
796 (substitute* "rakelib/tags.rake"
797 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
799 (synopsis "Ruby library to create structured data")
800 (description "Builder provides a number of builder objects that make it
801 easy to create structured data. Currently the following builder objects are
802 supported: XML Markup and XML Events.")
803 (home-page "https://github.com/jimweirich/builder")
804 (license license:expat)))
806 (define-public ruby-bump
813 (uri (rubygems-uri "bump" version))
816 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
817 (build-system ruby-build-system)
819 '(;; No included tests
821 (synopsis "Tool for working with Rubygems")
823 "Bump provides commands to manage Rubygem versioning, updating to the
824 next patch version for example.")
825 (home-page "https://github.com/gregorym/bump")
826 (license license:expat)))
828 (define-public ruby-rjb
834 (uri (rubygems-uri "rjb" version))
837 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
838 (build-system ruby-build-system)
840 `(#:tests? #f ; no rakefile
842 (modify-phases %standard-phases
843 (add-before 'build 'set-java-home
844 (lambda* (#:key inputs #:allow-other-keys)
845 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
848 `(("jdk" ,icedtea "jdk")))
849 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
850 (description "RJB is a bridge program that connects Ruby and Java via the
851 Java Native Interface.")
852 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
853 (license license:lgpl2.1+)))
855 (define-public ruby-log4r
862 (uri (rubygems-uri "log4r" version))
865 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
866 (build-system ruby-build-system)
868 '(#:tests? #f)) ; no Rakefile in gem
869 (synopsis "Flexible logging library for Ruby")
870 (description "Comprehensive and flexible logging library written
871 in Ruby for use in Ruby programs. It features a hierarchical logging
872 system of any number of levels, custom level names, logger
873 inheritance, multiple output destinations per log event, execution
874 tracing, custom formatting, thread safteyness, XML and YAML
875 configuration, and more.")
876 (home-page "http://log4r.rubyforge.org/")
877 (license license:bsd-3)))
879 (define-public ruby-atoulme-antwrap
881 (name "ruby-atoulme-antwrap")
885 (uri (rubygems-uri "atoulme-Antwrap" version))
888 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
889 (build-system ruby-build-system)
890 ;; Test data required for most of the tests are not included.
891 (arguments `(#:tests? #f))
893 `(("ruby-hoe" ,ruby-hoe)))
895 `(("ruby-rjb" ,ruby-rjb)))
896 (synopsis "Ruby wrapper for the Ant build tool")
897 (description "Antwrap is a Ruby module that wraps the Apache Ant build
898 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
900 (home-page "http://rubyforge.org/projects/antwrap/")
901 (license license:expat)))
903 (define-public ruby-atoulme-saikuro
905 (name "ruby-atoulme-saikuro")
909 (uri (rubygems-uri "atoulme-Saikuro" version))
912 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
913 (build-system ruby-build-system)
914 ;; FIXME: There are no unit tests. The tests are demonstrations of the
916 (arguments `(#:tests? #f))
917 (synopsis "Cyclomatic complexity analyzer")
918 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
919 given Ruby source code Saikuro will generate a report listing the cyclomatic
920 complexity of each method found. In addition, Saikuro counts the number of
921 lines per method and can generate a listing of the number of tokens on each
923 (home-page "http://www.github.com/atoulme/Saikuro")
924 ;; File headers contain the BSD-3 license and the README.rdoc says that
925 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
926 ;; of the Expat license.
927 (license license:bsd-3)))
929 (define-public ruby-asciidoctor
931 (name "ruby-asciidoctor")
936 (uri (rubygems-uri "asciidoctor" version))
939 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
940 (build-system ruby-build-system)
942 `(#:test-target "test:all"
944 (modify-phases %standard-phases
945 (add-before 'check 'remove-circular-tests
947 ;; Remove tests that require circular dependencies to load or pass.
948 (delete-file "test/invoker_test.rb")
949 (delete-file "test/converter_test.rb")
950 (delete-file "test/options_test.rb")
953 `(("ruby-minitest" ,ruby-minitest)
954 ("ruby-nokogiri" ,ruby-nokogiri)
955 ("ruby-asciimath" ,ruby-asciimath)
956 ("ruby-coderay" ,ruby-coderay)))
957 (synopsis "Converter from AsciiDoc content to other formats")
959 "Asciidoctor is a text processor and publishing toolchain for converting
960 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
961 (home-page "https://asciidoctor.org")
962 (license license:expat)))
964 (define-public ruby-ast
971 (uri (rubygems-uri "ast" version))
974 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
975 (build-system ruby-build-system)
978 (modify-phases %standard-phases
979 (add-after 'unpack 'remove-coveralls-requirement
981 (substitute* "test/helper.rb"
982 (("require 'coveralls'") "")
983 (("Coveralls::SimpleCov::Formatter") ""))
985 (add-after 'extract-gemspec 'remove-unnecessary-requirements
987 (substitute* "ast.gemspec"
988 ((".*coveralls.*") "\n")
989 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
990 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
991 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
994 `(("bundler" ,bundler)
995 ("ruby-simplecov" ,ruby-simplecov)
996 ("ruby-json-pure" ,ruby-json-pure)
997 ("ruby-mime-times" ,ruby-mime-types)
998 ("ruby-yard" ,ruby-yard)
999 ("ruby-kramdown" ,ruby-kramdown)
1000 ("ruby-rest-client" ,ruby-rest-client)
1001 ("ruby-bacon" ,ruby-bacon)
1002 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
1003 ("ruby-racc" ,ruby-racc)))
1004 (synopsis "Library for working with Abstract Syntax Trees")
1006 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
1007 It does this through immutable data structures.")
1008 (home-page "https://whitequark.github.io/ast/")
1009 (license license:expat)))
1011 (define-public ruby-sporkmonger-rack-mount
1012 ;; Testing the addressable gem requires a newer commit than that released, so
1013 ;; use an up to date version.
1014 (let ((revision "1")
1015 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
1017 (name "ruby-sporkmonger-rack-mount")
1018 (version (git-version "0.8.3" revision commit))
1022 (url "https://github.com/sporkmonger/rack-mount.git")
1024 (file-name (git-file-name name version))
1027 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
1028 (build-system ruby-build-system)
1030 ;; Tests currently fail so disable them.
1031 ;; https://github.com/sporkmonger/rack-mount/pull/1
1033 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
1034 (synopsis "Stackable dynamic tree based Rack router")
1036 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
1037 continue trying routes if the response returns pass. This allows multiple
1038 routes to be nested or stacked on top of each other.")
1039 (home-page "https://github.com/sporkmonger/rack-mount")
1040 (license license:expat))))
1042 (define-public ruby-ci-reporter
1044 (name "ruby-ci-reporter")
1048 (uri (rubygems-uri "ci_reporter" version))
1051 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
1052 (build-system ruby-build-system)
1054 `(#:test-target "rspec"))
1056 `(("ruby-builder" ,ruby-builder)))
1058 `(("bundler" ,bundler)
1059 ("ruby-rspec" ,ruby-rspec)))
1060 (synopsis "Generate XML reports of runs test")
1062 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
1063 you to generate XML reports of your test runs. The resulting files can be
1064 read by a continuous integration system that understands Ant's JUnit report
1066 (home-page "https://github.com/nicksieger/ci_reporter")
1067 (license license:expat)))
1069 (define-public ruby-contracts
1071 (name "ruby-contracts")
1076 (uri (rubygems-uri "contracts" version))
1079 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
1080 (build-system ruby-build-system)
1082 '(#:test-target "spec"
1084 (modify-phases %standard-phases
1085 ;; Don't run or require rubocop, the code linting tool, as this is a
1087 (add-after 'unpack 'dont-run-rubocop
1089 (substitute* "Rakefile"
1090 ((".*rubocop.*") "")
1091 ((".*RuboCop.*") ""))
1094 `(("ruby-rspec" ,ruby-rspec)))
1095 (synopsis "Method contracts for Ruby")
1097 "This library provides contracts for Ruby. A contract describes the
1098 correct inputs and output for a method, and will raise an error if a incorrect
1100 (home-page "https://github.com/egonSchiele/contracts.ruby")
1101 (license license:bsd-2)))
1103 (define-public ruby-crack
1110 (uri (rubygems-uri "crack" version))
1113 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
1114 (build-system ruby-build-system)
1117 (modify-phases %standard-phases
1119 (lambda* (#:key tests? #:allow-other-keys)
1121 (for-each (lambda (file)
1122 (display file)(display "\n")
1123 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1124 (find-files "test" ".*rb$")))
1127 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1128 (synopsis "Simple JSON and XML parsing for Ruby")
1130 "@code{crack} provides really simple JSON and XML parsing, extracted from
1131 code in Merb and Rails.")
1132 (home-page "https://github.com/jnunemaker/crack")
1133 (license license:expat)))
1135 (define-public ruby-cliver
1137 (name "ruby-cliver")
1142 (uri (rubygems-uri "cliver" version))
1145 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1146 (build-system ruby-build-system)
1149 (modify-phases %standard-phases
1150 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1151 ;; would be nice, but the tests look to be incompatible:
1153 ;; NoMethodError: undefined method `last_comment'
1155 (lambda* (#:key tests? #:allow-other-keys)
1160 `(("bundler" ,bundler)
1161 ("ruby-rspec" ,ruby-rspec-2)))
1162 (synopsis "Assertions for command-line dependencies in Ruby")
1164 "@code{cliver} provides a way to detect missing command-line
1165 dependencies, including versions.")
1166 (home-page "https://github.com/yaauie/cliver")
1167 (license license:expat)))
1169 (define-public ruby-czmq-ffi-gen
1171 (name "ruby-czmq-ffi-gen")
1176 (uri (rubygems-uri "czmq-ffi-gen" version))
1179 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1180 (build-system ruby-build-system)
1182 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1184 (modify-phases %standard-phases
1185 (add-after 'unpack 'patch-lib_dirs
1186 (lambda* (#:key inputs #:allow-other-keys)
1187 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1188 (("lib\\_dirs = \\[.*\\]")
1189 (string-append "lib_dirs = ['"
1190 (assoc-ref inputs "czmq") "/lib"
1192 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1193 (("lib\\_dirs = \\[.*\\]")
1194 (string-append "lib_dirs = ['"
1195 (assoc-ref inputs "zeromq") "/lib"
1198 `(("zeromq" ,zeromq)
1200 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1201 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1203 "These Ruby bindings are not intended to be directly used, but rather
1204 used by higher level bindings like those provided by CZTop.")
1206 "https://github.com/paddor/czmq-ffi-gen")
1207 (license license:isc)))
1209 (define-public ruby-cztop
1216 (uri (rubygems-uri "cztop" version))
1219 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1220 (build-system ruby-build-system)
1222 '(#:test-target "spec"
1224 (modify-phases %standard-phases
1225 (add-after 'unpack 'patch-lib_paths
1226 (lambda* (#:key inputs #:allow-other-keys)
1227 (substitute* "lib/cztop/poller/zmq.rb"
1228 (("lib\\_paths = \\[.*\\]")
1229 (string-append "lib_paths = ['"
1230 (assoc-ref inputs "zeromq") "/lib"
1233 `(("bundler" ,bundler)
1234 ("ruby-rspec" ,ruby-rspec)))
1236 `(("zeromq" ,zeromq)))
1238 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1239 (synopsis "CZMQ Ruby bindings")
1241 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1242 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1243 support for security mechanisms.")
1244 (home-page "https://github.com/paddor/cztop")
1245 (license license:isc)))
1247 (define-public ruby-saikuro-treemap
1249 (name "ruby-saikuro-treemap")
1253 (uri (rubygems-uri "saikuro_treemap" version))
1256 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1257 (build-system ruby-build-system)
1258 ;; Some of the tests fail because the generated JSON has keys in a
1259 ;; different order. This is a problem with the test suite rather than any
1260 ;; of the involved libraries.
1261 (arguments `(#:tests? #f))
1263 `(("ruby-json-pure" ,ruby-json-pure)
1264 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1265 (synopsis "Generate complexity treemap based on saikuro analysis")
1267 "This gem generates a treemap showing the complexity of Ruby code on
1268 which it is run. It uses Saikuro under the covers to analyze Ruby code
1270 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1271 (license license:expat)))
1273 (define-public ruby-oauth2
1275 (name "ruby-oauth2")
1280 (uri (rubygems-uri "oauth2" version))
1282 (base32 "15i9z4j5pcjkr30lkcd79xzbr4kpmy0bqgwa436fqyqk646fv036"))))
1283 (build-system ruby-build-system)
1285 '(#:tests? #f)) ; no included tests
1287 `(("ruby-faraday" ,ruby-faraday)
1288 ("ruby-jwt" ,ruby-jwt)
1289 ("ruby-multi-json" ,ruby-multi-json)
1290 ("ruby-multi-xml" ,ruby-multi-xml)
1291 ("ruby-rack" ,ruby-rack)))
1292 (synopsis "Ruby wrapper for the OAuth 2.0")
1294 "This package provides a Ruby wrapper for the OAuth 2.0 protocol built
1295 with a similar style to the original OAuth spec.")
1296 (home-page "https://github.com/oauth-xx/oauth2")
1297 (license license:expat)))
1299 (define-public ruby-omniauth
1301 (name "ruby-omniauth")
1306 (uri (rubygems-uri "omniauth" version))
1309 "1p16h1rp8by05k8gfw17xjhgwp60dk8qmj1xalv1n23kmxfsxb1x"))))
1310 (build-system ruby-build-system)
1312 '(#:tests? #f)) ; No included tests
1314 `(("ruby-hashie" ,ruby-hashie)
1315 ("ruby-rack" ,ruby-rack)))
1316 (synopsis "Generalized Rack framework for multiple-provider authentication")
1318 "This package provides a generalized Rack framework for multiple-provider
1320 (home-page "https://github.com/omniauth/omniauth")
1321 (license license:expat)))
1323 (define-public ruby-omniauth-oauth2
1325 (name "ruby-omniauth-oauth2")
1330 (uri (rubygems-uri "omniauth-oauth2" version))
1333 "11mi36l9d97r77q99jnafdc1yaa0a9wahhpp7dj7ank8q52g7g79"))))
1334 (build-system ruby-build-system)
1337 (modify-phases %standard-phases
1338 (add-after 'unpack 'remove-unnecessary-dependencies
1340 ;; The coveralls gem submits coverage information to an online
1341 ;; service, and is unnecessary when running the tests
1342 (substitute* "Gemfile"
1343 ((".*coveralls\"") ""))
1344 (substitute* "spec/helper.rb"
1345 (("require \"coveralls\"") "")
1346 (("Coveralls::SimpleCov::Formatter") ""))
1349 `(("ruby-oauth2" ,ruby-oauth2)
1350 ("ruby-omniauth" ,ruby-omniauth)))
1352 `(("bundler" ,bundler)
1353 ("ruby-rspec" ,ruby-rspec)
1354 ("ruby-simplecov" ,ruby-simplecov)
1355 ("ruby-rack-test" ,ruby-rack-test)
1356 ("ruby-webmock" ,ruby-webmock-2)))
1357 (synopsis "Abstract OAuth2 strategy for OmniAuth")
1359 "This library provides a generic OAuth2 strategy for OmniAuth. It
1360 doesn't provide a way to gather user information, so should be used as a
1361 building block for authentication strategies.")
1362 (home-page "https://github.com/omniauth/omniauth-oauth2")
1363 (license license:expat)))
1365 (define-public ruby-open4
1372 (uri (rubygems-uri "open4" version))
1375 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1376 (build-system ruby-build-system)
1379 (modify-phases %standard-phases
1380 (add-after 'unpack 'patch
1382 (substitute* "rakefile"
1383 ;; Update the Rakefile so it works
1384 (("-rubygems") "-rrubygems")
1385 (("Config") "RbConfig"))
1387 (add-before 'check 'set-LIB
1389 ;; This is used in the rakefile when running the tests
1390 (setenv "LIB" "open4")
1392 (synopsis "Open child processes from Ruby and manage them easily")
1394 "@code{Open4} is a Ruby library to run child processes and manage their
1396 (home-page "https://github.com/ahoward/open4")
1397 (license license:ruby)))
1399 (define-public ruby-options
1401 (name "ruby-options")
1406 (uri (rubygems-uri "options" version))
1409 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1410 (build-system ruby-build-system)
1412 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1414 (modify-phases %standard-phases
1415 (add-before 'check 'set-LIB
1417 ;; This is used in the Rakefile, and setting it avoids an issue
1418 ;; with running the tests.
1419 (setenv "LIB" "options")
1421 (synopsis "Ruby library to parse options from *args cleanly")
1423 "The @code{options} library helps with parsing keyword options in Ruby
1425 (home-page "https://github.com/ahoward/options")
1426 (license license:ruby)))
1428 (define-public ruby-erubi
1435 (uri (rubygems-uri "erubi" version))
1438 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1439 (build-system ruby-build-system)
1440 (synopsis "ERB template engine for Ruby")
1442 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1444 (home-page "https://github.com/jeremyevans/erubi")
1445 (license license:expat)))
1447 (define-public ruby-erubis
1449 (name "ruby-erubis")
1454 (uri (rubygems-uri "erubis" version))
1457 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1458 (build-system ruby-build-system)
1460 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1461 (synopsis "Implementation of embedded Ruby (eRuby)")
1463 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1464 features such as multi-language support, auto escaping, auto trimming spaces
1465 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1467 (home-page "http://www.kuwata-lab.com/erubis/")
1468 (license license:expat)))
1470 (define-public ruby-execjs
1472 (name "ruby-execjs")
1476 ;; fetch from github as the gem does not contain testing code
1479 (url "https://github.com/rails/execjs.git")
1480 (commit (string-append "v" version))))
1481 (file-name (git-file-name name version))
1484 "0c0vd2mmqq3ar4plbwi2wsbr31vn4h45i19r5km66skydnnbp1y6"))))
1485 (build-system ruby-build-system)
1487 `(("bundler" ,bundler)
1488 ;; The test suite tests all the available backends. Currenly, this just
1489 ;; means the node backend.
1491 ;; PASSED: test:node
1492 ;; SKIPPED: test:duktape, ;; test:javascriptcore, test:jscript,
1493 ;; test:miniracer, test:rubyracer, ;; test:rubyrhino, test:v8
1495 (synopsis "Run JavaScript code from Ruby")
1497 "ExecJS lets you run JavaScript code from Ruby. It automatically picks a
1498 runtime to evaluate your JavaScript program, then returns the result to you as
1500 (home-page "https://github.com/rails/execjs")
1501 (license license:expat)))
1503 (define-public ruby-orderedhash
1505 (name "ruby-orderedhash")
1509 (uri (rubygems-uri "orderedhash" version))
1512 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1513 (build-system ruby-build-system)
1515 '(#:tests? #f)) ; no test suite
1516 (synopsis "Ruby library providing an order-preserving hash")
1517 (description "Orderedhash is a Ruby library providing a hash
1518 implementation that preserves the order of items and features some array-like
1520 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1521 (license license:public-domain)))
1523 (define-public ruby-libxml
1525 (name "ruby-libxml")
1530 (uri (rubygems-uri "libxml-ruby" version))
1533 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1534 (build-system ruby-build-system)
1537 ("libxml2" ,libxml2)))
1539 '(#:tests? #f ; test suite hangs for unknown reason
1542 (string-append "--with-xml2-include="
1543 (assoc-ref %build-inputs "libxml2")
1544 "/include/libxml2" ))))
1545 (synopsis "Ruby bindings for GNOME Libxml2")
1546 (description "The Libxml-Ruby project provides Ruby language bindings for
1547 the GNOME Libxml2 XML toolkit.")
1548 (home-page "https://xml4r.github.com/libxml-ruby")
1549 (license license:expat)))
1551 (define-public ruby-lino
1558 (uri (rubygems-uri "lino" version))
1561 "11d29g0fk372b9fcpyr0k6hxm2b4j4igpysmi542hgbbgqgp9cd3"))))
1562 (build-system ruby-build-system)
1564 '(#:tests? #f)) ; No included tests
1566 `(("ruby-hamster" ,ruby-hamster)
1567 ("ruby-open4" ,ruby-open4)))
1568 (synopsis "Build and execute commands in Ruby")
1570 "@code{Lino} provides an interface to run external commands. It provides
1571 an interface to add options as well as managing the standard input, output and
1573 (home-page "https://github.com/tobyclemson/lino")
1574 (license license:expat)))
1576 (define-public ruby-xml-simple
1578 (name "ruby-xml-simple")
1582 (uri (rubygems-uri "xml-simple" version))
1585 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1586 (build-system ruby-build-system)
1588 '(#:tests? #f)) ; no test suite
1589 (synopsis "Simple Ruby library for XML processing")
1590 (description "This library provides a simple API for XML processing in
1592 (home-page "https://github.com/maik/xml-simple")
1593 (license license:ruby)))
1595 (define-public ruby-thor
1601 (uri (rubygems-uri "thor" version))
1604 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1605 (build-system ruby-build-system)
1607 '(#:tests? #f)) ; no test suite
1609 `(("bundler" ,bundler)))
1610 (synopsis "Ruby toolkit for building command-line interfaces")
1611 (description "Thor is a toolkit for building powerful command-line
1613 (home-page "http://whatisthor.com/")
1614 (license license:expat)))
1616 (define-public ruby-lumberjack
1618 (name "ruby-lumberjack")
1622 (uri (rubygems-uri "lumberjack" version))
1625 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1626 (build-system ruby-build-system)
1628 `(("ruby-rspec" ,ruby-rspec)
1629 ("ruby-timecop" ,ruby-timecop)))
1630 (synopsis "Logging utility library for Ruby")
1631 (description "Lumberjack is a simple logging utility that can be a drop in
1632 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1633 for automatically rolling log files even with multiple processes writing the
1635 (home-page "https://github.com/bdurand/lumberjack")
1636 (license license:expat)))
1638 (define-public ruby-rbnacl
1640 (name "ruby-rbnacl")
1645 (uri (rubygems-uri "rbnacl" version))
1648 "0ajxy5kj2jw09wdsla3jmha8w07vj5l14288xr9djpl327g3lzhn"))))
1649 (build-system ruby-build-system)
1652 (modify-phases %standard-phases
1653 (add-after 'unpack 'remove-unnecessary-dependencies
1655 ;; Coveralls relates to a network service, and Rubocop to code
1656 ;; linting and both are unnecessary to run the tests
1657 (substitute* "Gemfile"
1658 ((".*rubocop.*") "\n")
1659 ((".*guard-rspec.*") "\n")
1660 ((".*coveralls.*") "\n"))
1661 (substitute* "spec/spec_helper.rb"
1662 (("require \"coveralls\"") "")
1663 (("Coveralls.wear!") ""))
1665 (add-after 'unpack 'use-libsodium-from-store
1666 (lambda* (#:key inputs #:allow-other-keys)
1667 (substitute* '("lib/rbnacl/init.rb"
1668 "lib/rbnacl/sodium.rb")
1669 (("ffi_lib \\[.+\\]")
1670 (string-append "ffi_lib [\""
1671 (assoc-ref inputs "libsodium") "/lib/libsodium.so"
1674 ;; Run Rspec directly to avoid the Rubocop dependency in the Rakefile
1676 (lambda* (#:key tests? #:allow-other-keys)
1681 `(("ruby-ffi" ,ruby-ffi)))
1683 `(("libsodium" ,libsodium)))
1685 `(("bundler" ,bundler)
1686 ("ruby-rspec" ,ruby-rspec)))
1687 (synopsis "Ruby FFI binding to libsodium")
1689 "This package provides Ruby FFI bindings to the Networking and
1690 Cryptography (NaCl) library, also known as libsodium. This provides a
1691 high-level toolkit for building cryptographic systems and protocols.")
1692 (home-page "https://github.com/crypto-rb/rbnacl")
1693 (license license:expat)))
1695 (define-public ruby-nenv
1701 (uri (rubygems-uri "nenv" version))
1704 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1705 (build-system ruby-build-system)
1707 `(#:tests? #f)) ; no tests included
1709 `(("ruby-rspec" ,ruby-rspec)
1710 ("bundler" ,bundler)))
1711 (synopsis "Ruby interface for modifying the environment")
1712 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1713 and inspect the environment.")
1714 (home-page "https://github.com/e2/nenv")
1715 (license license:expat)))
1717 (define-public ruby-permutation
1719 (name "ruby-permutation")
1723 (uri (rubygems-uri "permutation" version))
1726 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1727 (build-system ruby-build-system)
1730 (modify-phases %standard-phases
1731 (add-after 'unpack 'fix-rakefile
1733 (substitute* "Rakefile"
1734 (("require 'rake/gempackagetask'")
1735 "require 'rubygems/package_task'")
1736 (("include Config") ""))
1740 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1741 (synopsis "Library to perform operations with sequence permutations")
1742 (description "This package provides a Ruby library to perform different
1743 operations with permutations of sequences, such as strings and arrays.")
1744 (home-page "https://flori.github.io/permutation")
1745 (license license:gpl2))) ; GPL 2 only
1747 (define-public ruby-shellany
1749 (name "ruby-shellany")
1753 (uri (rubygems-uri "shellany" version))
1756 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1757 (build-system ruby-build-system)
1759 `(#:test-target "default"
1761 (modify-phases %standard-phases
1762 (add-after 'unpack 'fix-version-test
1764 (substitute* "spec/shellany_spec.rb"
1765 (("^RSpec") "require \"shellany\"\nRSpec"))
1768 `(("ruby-rspec" ,ruby-rspec)
1769 ("ruby-nenv" ,ruby-nenv)
1770 ("bundler" ,bundler)))
1771 (synopsis "Capture command output")
1772 (description "Shellany is a Ruby library providing functions to capture
1773 the output produced by running shell commands.")
1774 (home-page "https://rubygems.org/gems/shellany")
1775 (license license:expat)))
1777 (define-public ruby-notiffany
1779 (name "ruby-notiffany")
1783 (uri (rubygems-uri "notiffany" version))
1786 "0f47h3bmg1apr4x51szqfv3rh2vq58z3grh4w02cp3bzbdh6jxnk"))))
1787 (build-system ruby-build-system)
1788 ;; Tests are not included in the gem.
1789 (arguments `(#:tests? #f))
1791 `(("ruby-shellany" ,ruby-shellany)
1792 ("ruby-nenv" ,ruby-nenv)))
1794 `(("bundler" ,bundler)))
1795 (synopsis "Wrapper libray for notification libraries")
1796 (description "Notiffany is a Ruby wrapper libray for notification
1797 libraries such as Libnotify.")
1798 (home-page "https://github.com/guard/notiffany")
1799 (license license:expat)))
1801 (define-public ruby-formatador
1803 (name "ruby-formatador")
1807 (uri (rubygems-uri "formatador" version))
1810 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1811 (build-system ruby-build-system)
1812 ;; Circular dependency: Tests require ruby-shindo, which requires
1813 ;; ruby-formatador at runtime.
1814 (arguments `(#:tests? #f))
1815 (synopsis "Ruby library to format text on stdout")
1816 (description "Formatador is a Ruby library to format text printed to the
1817 standard output stream.")
1818 (home-page "https://github.com/geemus/formatador")
1819 (license license:expat)))
1821 (define-public ruby-fuubar
1823 (name "ruby-fuubar")
1827 ;; Fetch from the git repository, as the gem package doesn't include
1831 (url "https://github.com/thekompanee/fuubar.git")
1832 (commit (string-append "releases/v" version))))
1833 (file-name (git-file-name name version))
1836 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1837 (build-system ruby-build-system)
1839 '(;; TODO: Some tests fail, unsure why.
1840 ;; 21 examples, 7 failures
1843 (modify-phases %standard-phases
1844 (add-before 'build 'delete-certificate
1846 ;; Remove 's.cert_chain' as we do not build with a private key
1847 (substitute* "fuubar.gemspec"
1848 ((".*cert_chain.*") "")
1849 ((".*signing_key.*") ""))
1852 (lambda* (#:key tests? #:allow-other-keys)
1857 `(("bundler" ,bundler)))
1859 `(("ruby-rspec-core" ,ruby-rspec-core)
1860 ("ruby-progressbar" ,ruby-progressbar)))
1861 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1863 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1864 string of letters and dots as feedback. It also stops on the first test
1866 (home-page "https://github.com/thekompanee/fuubar")
1867 (license license:expat)))
1869 (define-public ruby-haml
1876 (uri (rubygems-uri "haml" version))
1879 "1q0a9fvqh8kn6wm97fcks6qzbjd400bv8bx748w8v87m7p4klhac"))))
1880 (build-system ruby-build-system)
1882 '(#:tests? #f)) ; No included tests
1884 `(("ruby-tilt" ,ruby-tilt)
1885 ("ruby-temple" ,ruby-temple)))
1886 (synopsis "Haml is a Ruby library to generate HTML documents")
1888 "@acronym{Haml, HTML Abstraction Markup Language} is a layer on top of
1889 HTML or XML that is designed to express the structure of documents using
1890 indentation rather than closing tags. It was originally envisioned as a
1891 plugin for Ruby on Rails, but it can function as a stand-alone templating
1893 (home-page "http://haml.info/")
1894 (license license:expat)))
1896 (define-public ruby-hamster
1898 (name "ruby-hamster")
1903 (uri (rubygems-uri "hamster" version))
1906 "1n1lsh96vnyc1pnzyd30f9prcsclmvmkdb3nm5aahnyizyiy6lar"))))
1907 (build-system ruby-build-system)
1910 (modify-phases %standard-phases
1911 (add-after 'unpack 'remove-unnecessary-dependencies
1913 ;; pry is a debugging tool, and is unnecessary when running the
1915 (substitute* "spec/lib/hamster/vector/insert_spec.rb"
1916 (("require 'pry'") ""))
1917 (substitute* "spec/spec_helper.rb"
1918 (("require \"pry\"") "")
1919 ;; CodeClimate is an online service, and is unnecessary for
1920 ;; running the tests
1921 (("require \"codeclimate-test-reporter\"") "")
1922 (("CodeClimate.*\n") ""))
1924 ;; No Rakefile is included, so run rspec directly.
1926 (lambda* (#:key tests? #:allow-other-keys)
1931 `(("ruby-concurrent" ,ruby-concurrent)))
1933 `(("ruby-rspec" ,ruby-rspec)))
1934 (synopsis "Efficient, immutable, thread-safe collection classes for Ruby")
1936 "Hamster provides 6 persistent data structures: @code{Hash}, @code{Vector},
1937 @code{Set}, @code{SortedSet}, @code{List}, and @code{Deque} (which works as an
1938 immutable queue or stack).")
1939 (home-page "https://github.com/hamstergem/hamster")
1940 (license license:expat)))
1942 (define-public ruby-hashdiff
1944 (name "ruby-hashdiff")
1949 (uri (rubygems-uri "hashdiff" version))
1952 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1953 (build-system ruby-build-system)
1956 (modify-phases %standard-phases
1957 ;; Run tests directly via rspec to avoid Rake issue:
1958 ;; NoMethodError: undefined method `last_comment'
1960 (lambda* (#:key tests? #:allow-other-keys)
1965 `(("bundler" ,bundler)
1966 ("ruby-rspec" ,ruby-rspec-2)))
1967 (synopsis "HashDiff computes the smallest difference between two hashes")
1969 "HashDiff is a Ruby library to compute the smallest difference between
1971 (home-page "https://github.com/liufengyun/hashdiff")
1972 (license license:expat)))
1974 (define-public ruby-hydra
1976 (let ((commit "5abfa378743756ae4d9306cc134bcc482f5c9525")
1980 (version (git-version "0.0" revision commit))
1981 (home-page "https://github.com/hyphenation/hydra")
1984 (uri (git-reference (url home-page) (commit commit)))
1985 (file-name (git-file-name name version))
1988 "1cik398l2765y3d9sdhjzki3303hkry58ac6jlkiy7iy62nm529f"))))
1989 (build-system ruby-build-system)
1991 '(#:phases (modify-phases %standard-phases
1992 (add-after 'unpack 'make-files-writable
1994 (for-each make-file-writable (find-files "."))
1998 (invoke "rspec"))))))
2000 `(("ruby-rspec" ,ruby-rspec)))
2002 `(("ruby-byebug" ,ruby-byebug)))
2003 (synopsis "Ruby hyphenation patterns")
2005 "ruby-hydra is a Ruby library for working with hyphenation patterns.")
2006 (license license:expat))))
2008 (define-public ruby-shindo
2010 (name "ruby-shindo")
2014 (uri (rubygems-uri "shindo" version))
2017 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
2018 (build-system ruby-build-system)
2020 `(#:test-target "shindo_tests"
2022 (modify-phases %standard-phases
2023 (add-after 'unpack 'fix-tests
2025 (substitute* "tests/tests_helper.rb"
2027 (substitute* "Rakefile"
2028 (("system \"shindo") "system \"./bin/shindo")
2029 ;; This test doesn't work, so we disable it.
2030 (("fail \"The build_error test should fail") "#")
2031 ((" -rubygems") ""))
2034 `(("ruby-formatador" ,ruby-formatador)))
2035 (synopsis "Simple depth first Ruby testing")
2036 (description "Shindo is a simple depth first testing library for Ruby.")
2037 (home-page "https://github.com/geemus/shindo")
2038 (license license:expat)))
2040 (define-public ruby-rubygems-tasks
2042 (name "ruby-rubygems-tasks")
2046 (uri (rubygems-uri "rubygems-tasks" version))
2049 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
2050 (build-system ruby-build-system)
2051 ;; Tests need Internet access.
2052 (arguments `(#:tests? #f))
2054 `(("ruby-rspec" ,ruby-rspec)
2055 ("ruby-yard" ,ruby-yard)))
2056 (synopsis "Rake tasks for managing and releasing Ruby Gems")
2057 (description "Rubygems-task provides Rake tasks for managing and releasing
2059 (home-page "https://github.com/postmodern/rubygems-tasks")
2060 (license license:expat)))
2062 (define-public ruby-rubyzip
2064 (name "ruby-rubyzip")
2069 (uri (rubygems-uri "rubyzip" version))
2072 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
2073 (build-system ruby-build-system)
2076 (modify-phases %standard-phases
2077 (add-before 'check 'patch-tests
2078 (lambda* (#:key inputs #:allow-other-keys)
2079 (substitute* "test/gentestfiles.rb"
2082 (assoc-ref inputs "zip") "/bin/zip")))
2083 (substitute* "test/input_stream_test.rb"
2084 (("/usr/bin/env ruby") (which "ruby")))
2087 `(("bundler" ,bundler)
2088 ("ruby-simplecov" ,ruby-simplecov)
2091 (synopsis "Ruby module is for reading and writing zip files")
2093 "The rubyzip module provides ways to read from and create zip files.")
2094 (home-page "http://github.com/rubyzip/rubyzip")
2095 (license license:bsd-2)))
2097 (define-public ruby-simplecov-html
2099 (name "ruby-simplecov-html")
2103 (uri (rubygems-uri "simplecov-html" version))
2106 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
2107 (build-system ruby-build-system)
2108 (arguments `(#:tests? #f)) ; there are no tests
2110 `(("bundler" ,bundler)))
2111 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
2112 (description "This package provides the default HTML formatter for
2113 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
2114 (home-page "https://github.com/colszowka/simplecov-html")
2115 (license license:expat)))
2117 (define-public ruby-simplecov
2119 (name "ruby-simplecov")
2123 (uri (rubygems-uri "simplecov" version))
2126 "1135k46nik05sdab30yxb8264lqiz01c8v000g16cl9pjc4mxrdw"))))
2127 (build-system ruby-build-system)
2128 ;; Simplecov depends on rubocop for code style checking at build time.
2129 ;; Rubocop needs simplecov at build time.
2130 (arguments `(#:tests? #f))
2132 `(("ruby-json" ,ruby-json)
2133 ("ruby-docile" ,ruby-docile)
2134 ("ruby-simplecov-html" ,ruby-simplecov-html)))
2136 `(("bundler" ,bundler)))
2137 (synopsis "Code coverage framework for Ruby")
2138 (description "SimpleCov is a code coverage framework for Ruby with a
2139 powerful configuration library and automatic merging of coverage across test
2141 (home-page "https://github.com/colszowka/simplecov")
2142 (license license:expat)))
2144 (define-public ruby-useragent
2146 (name "ruby-useragent")
2150 (uri (rubygems-uri "useragent" version))
2153 "1fv5kvq494swy0p17h9qya9r50w15xsi9zmvhzb8gh55kq6ki50p"))))
2154 (build-system ruby-build-system)
2156 '(#:tests? #f)) ; no test suite
2157 (synopsis "HTTP user agent parser for Ruby")
2158 (description "UserAgent is a Ruby library that parses and compares HTTP
2160 (home-page "https://github.com/gshutler/useragent")
2161 (license license:expat)))
2163 (define-public ruby-backports
2165 (name "ruby-backports")
2170 (uri (rubygems-uri "backports" version))
2173 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
2174 (build-system ruby-build-system)
2176 '(;; TODO: This should be default, but there is one test failure
2177 #:test-target "all_spec"))
2179 `(("ruby-mspec" ,ruby-mspec)
2180 ("ruby-activesupport" ,ruby-activesupport)))
2181 (synopsis "Backports of the features in newer Ruby versions")
2183 "Backports enables more compatibility across Ruby versions by providing
2184 backports of some features.")
2185 (home-page "https://github.com/marcandre/backports")
2186 (license license:expat)))
2188 (define-public ruby-bacon
2194 (uri (rubygems-uri "bacon" version))
2197 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
2198 (build-system ruby-build-system)
2199 (synopsis "Small RSpec clone")
2200 (description "Bacon is a small RSpec clone providing all essential
2202 (home-page "https://github.com/chneukirchen/bacon")
2203 (license license:expat)))
2205 (define-public ruby-bacon-bits
2207 (name "ruby-bacon-bits")
2212 (uri (rubygems-uri "bacon-bits" version))
2215 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
2216 (build-system ruby-build-system)
2220 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
2221 (synopsis "Extensions to Bacon, for disabling tests, before and after
2224 "This extends the bacon testing framework with useful extensions to
2225 disable tests, have before and after blocks that run once and more.")
2226 (home-page "https://github.com/cldwalker/bacon-bits")
2227 (license license:expat)))
2229 (define-public ruby-bacon-colored-output
2231 (name "ruby-bacon-colored-output")
2236 (uri (rubygems-uri "bacon-colored_output" version))
2239 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
2240 (build-system ruby-build-system)
2242 '(;; No included tests
2245 `(("ruby-bacon" ,ruby-bacon)))
2246 (synopsis "Colored output for Bacon test framework")
2248 "This package adds color through ANSI escape codes to Bacon test
2250 (home-page "https://github.com/whitequark/bacon-colored_output")
2251 (license license:expat)))
2253 (define-public ruby-connection-pool
2255 (name "ruby-connection-pool")
2259 (uri (rubygems-uri "connection_pool" version))
2262 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
2263 (build-system ruby-build-system)
2265 `(("bundler" ,bundler)))
2266 (synopsis "Generic connection pool for Ruby")
2267 (description "Connection_pool provides a generic connection pooling
2268 interface for Ruby programs.")
2269 (home-page "https://github.com/mperham/connection_pool")
2270 (license license:expat)))
2272 (define-public ruby-net-http-persistent
2274 (name "ruby-net-http-persistent")
2278 (uri (rubygems-uri "net-http-persistent" version))
2281 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
2282 (build-system ruby-build-system)
2284 `(("ruby-connection-pool" ,ruby-connection-pool)
2285 ("ruby-hoe" ,ruby-hoe)))
2286 (synopsis "Persistent HTTP connection manager")
2287 (description "Net::HTTP::Persistent manages persistent HTTP connections
2288 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
2289 (home-page "https://github.com/drbrain/net-http-persistent")
2290 (license license:expat)))
2292 (define-public ruby-power-assert
2294 (name "ruby-power-assert")
2298 (uri (rubygems-uri "power_assert" version))
2301 "1dii0wkfa0jm8sk9b20zl1z4980dmrjh0zqnii058485pp3ws10s"))))
2302 (build-system ruby-build-system)
2304 '(#:tests? #f)) ; No included tests
2306 `(("bundler" ,bundler)))
2307 (synopsis "Assert library with descriptive assertion messages")
2308 (description "Power-assert is an assertion library providing descriptive
2309 assertion messages for tests.")
2310 (home-page "https://github.com/k-tsj/power_assert")
2311 (license (list license:bsd-2 license:ruby))))
2313 (define-public ruby-powerpack
2315 (name "ruby-powerpack")
2320 (uri (rubygems-uri "powerpack" version))
2323 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
2324 (build-system ruby-build-system)
2326 '(#:test-target "spec"))
2328 `(("bundler" ,bundler)
2329 ("ruby-rspec" ,ruby-rspec)
2330 ("ruby-yard" ,ruby-yard)))
2331 (synopsis "Useful extensions to core Ruby classes")
2333 "This package provides a few useful extensions to core Ruby classes,
2334 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
2336 (home-page "https://github.com/bbatsov/powerpack")
2337 (license license:expat)))
2339 (define-public ruby-locale
2341 (name "ruby-locale")
2345 (uri (rubygems-uri "locale" version))
2348 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
2349 (build-system ruby-build-system)
2350 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2351 ;; which needs ruby-gettext, which needs ruby-locale. To break the
2352 ;; dependency cycle we disable tests.
2353 (arguments `(#:tests? #f))
2355 `(("bundler" ,bundler)
2356 ("ruby-yard" ,ruby-yard)))
2357 (synopsis "Ruby library providing basic localization APIs")
2359 "Ruby-Locale is the pure ruby library which provides basic APIs for
2361 (home-page "https://github.com/ruby-gettext/locale")
2362 (license (list license:lgpl3+ license:ruby))))
2364 (define-public ruby-temple
2366 (name "ruby-temple")
2371 (uri (rubygems-uri "temple" version))
2374 "158d7ygbwcifqnvrph219p7m78yjdjazhykv5darbkms7bxm5y09"))))
2375 (build-system ruby-build-system)
2377 `(("ruby-tilt" ,ruby-tilt)
2378 ("ruby-bacon" ,ruby-bacon)
2379 ("ruby-erubis" ,ruby-erubis)))
2380 (synopsis "Template compilation framework in Ruby")
2382 "Temple is an abstraction and framework for compiling templates to pure
2384 (home-page "https://github.com/judofyr/temple")
2385 (license license:expat)))
2387 (define-public ruby-text
2393 (uri (rubygems-uri "text" version))
2396 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
2397 (build-system ruby-build-system)
2398 (synopsis "Collection of text algorithms for Ruby")
2400 "This package provides a collection of text algorithms: Levenshtein,
2401 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
2402 (home-page "https://github.com/threedaymonk/text")
2403 (license license:expat)))
2405 (define-public ruby-gettext
2407 (name "ruby-gettext")
2411 (uri (rubygems-uri "gettext" version))
2414 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
2415 (build-system ruby-build-system)
2416 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
2417 ;; which needs ruby-gettext. To break the dependency cycle we disable
2419 (arguments `(#:tests? #f))
2421 `(("ruby-locale" ,ruby-locale)
2422 ("ruby-text" ,ruby-text)))
2424 `(("bundler" ,bundler)
2425 ("ruby-yard" ,ruby-yard)))
2426 (synopsis "GNU gettext-like program for Ruby")
2428 "Gettext is a GNU gettext-like program for Ruby. The catalog
2429 file (po-file) used is the same as that used by GNU gettext, allowing you to
2430 use GNU gettext tools for maintenance.")
2431 (home-page "https://ruby-gettext.github.com/")
2432 (license (list license:lgpl3+ license:ruby))))
2434 (define-public ruby-packnga
2436 (name "ruby-packnga")
2440 (uri (rubygems-uri "packnga" version))
2443 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2444 (build-system ruby-build-system)
2445 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2446 ;; To break the dependency cycle we disable tests.
2447 (arguments `(#:tests? #f))
2449 `(("ruby-gettext" ,ruby-gettext)
2450 ("ruby-yard" ,ruby-yard)))
2452 `(("bundler" ,bundler)))
2453 (synopsis "Utility library to package internationalized libraries")
2455 "Packnga is a library to translate to many languages using YARD.")
2456 (home-page "http://ranguba.org/packnga/")
2457 (license license:lgpl2.0+)))
2459 (define-public ruby-test-construct
2461 (name "ruby-test-construct")
2466 (uri (rubygems-uri "test_construct" version))
2469 "1a2ym3l068d0pxzzr95kvqx87zpdsarxslz9ygd4qfm9frrz0kgj"))))
2470 (build-system ruby-build-system)
2472 `(("bundler" ,bundler)
2473 ("ruby-mocha" ,ruby-mocha)
2474 ("ruby-rspec" ,ruby-rspec)))
2475 (synopsis "Creates temporary files and directories for testing")
2477 "TestConstruct is a @acronym{DSL, Domain Specific Language} for creating
2478 temporary files and directories during tests.")
2479 (home-page "https://github.com/bhb/test_construct")
2480 (license license:expat)))
2482 (define-public ruby-test-unit
2484 (name "ruby-test-unit")
2488 (uri (rubygems-uri "test-unit" version))
2491 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2492 (build-system ruby-build-system)
2494 `(("ruby-power-assert" ,ruby-power-assert)))
2496 `(("bundler" ,bundler)
2497 ("ruby-packnga" ,ruby-packnga)
2498 ("ruby-yard" ,ruby-yard)))
2499 (synopsis "Unit testing framework for Ruby")
2500 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2501 on xUnit principles. These were originally designed by Kent Beck, creator of
2502 extreme programming software development methodology, for Smalltalk's SUnit.
2503 It allows writing tests, checking results and automated testing in Ruby.")
2504 (home-page "https://test-unit.github.io/")
2505 (license (list license:psfl license:ruby))))
2507 (define-public ruby-markaby
2509 (name "ruby-markaby")
2514 (uri (rubygems-uri "markaby" version))
2517 "1j4jc31ycydbkh5h3q6zwidzpavg3g5mbb5lqyaczd3jrq78rd7i"))))
2518 (build-system ruby-build-system)
2521 (modify-phases %standard-phases
2522 ;; Run rspec manually without using the Rakefile, as the versions of
2523 ;; Rake and RSpec 2 are incompatible:
2525 ;; NoMethodError: undefined method `last_comment'
2527 (lambda* (#:key tests? #:allow-other-keys)
2532 `(("ruby-builder" ,ruby-builder)))
2534 `(("bundler" ,bundler)
2535 ("ruby-rspec" ,ruby-rspec-2)))
2536 (synopsis "Write HTML pages in pure Ruby")
2538 "Markaby allows writing HTML packages in pure Ruby. This is similar to
2539 the functionality provided by @acronym{ERB, Embedded Ruby}, but without the
2540 mixture of HTML and additional ERB syntax.")
2541 (home-page "http://markaby.github.io/")
2542 (license license:expat)))
2544 (define-public ruby-maruku
2546 (name "ruby-maruku")
2551 (uri (rubygems-uri "maruku" version))
2554 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2555 (build-system ruby-build-system)
2557 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2560 (modify-phases %standard-phases
2562 (lambda* (#:key tests? #:allow-other-keys)
2567 `(("ruby-rspec" ,ruby-rspec)
2568 ("ruby-simplecov" ,ruby-simplecov)
2569 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2570 (synopsis "Markdown interpreter in Ruby")
2572 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2573 HTML, and PDF through LaTeX.")
2574 (home-page "https://github.com/bhollis/maruku")
2575 (license license:expat)))
2577 (define-public ruby-metaclass
2579 (name "ruby-metaclass")
2583 (uri (rubygems-uri "metaclass" version))
2586 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2587 (build-system ruby-build-system)
2590 (modify-phases %standard-phases
2591 (add-after 'unpack 'add-test-unit-to-search-path
2592 (lambda* (#:key inputs #:allow-other-keys)
2593 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2594 (substitute* "Rakefile"
2595 (("t\\.libs << \"test\"" line)
2596 (string-append line "; t.libs << \""
2597 test-unit "/lib/ruby/vendor_ruby"
2599 ,(package-version ruby-test-unit)
2603 `(("bundler" ,bundler)
2604 ("ruby-test-unit" ,ruby-test-unit)))
2605 (synopsis "Ruby library adding metaclass method to all objects")
2607 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2609 (home-page "https://github.com/floehopper/metaclass")
2610 (license license:expat)))
2612 (define-public ruby-mspec
2619 (uri (rubygems-uri "mspec" version))
2622 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2623 (build-system ruby-build-system)
2625 '(;; TODO: 3 test failures
2626 ;; ./spec/mocks/mock_spec.rb:82
2627 ;; ./spec/utils/name_map_spec.rb:151
2628 ;; ./spec/utils/name_map_spec.rb:155
2631 (modify-phases %standard-phases
2632 (add-after 'extract-gemspec 'change-dependency-constraints
2634 (substitute* "mspec.gemspec"
2635 (("rake.*") "rake>)\n")
2636 (("rspec.*") "rspec>)\n"))
2639 (lambda* (#:key tests? #:allow-other-keys)
2641 (invoke "rspec" "spec"))
2644 `(("bundler" ,bundler)
2645 ("ruby-rake" ,ruby-rake)
2646 ("ruby-rspec" ,ruby-rspec)))
2647 (synopsis "MSpec is a specialized framework for RubySpec")
2649 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2650 for basic features. MSpec contains additional features that assist in writing
2651 specs for Ruby implementations in ruby/spec.")
2652 (home-page "http://rubyspec.org")
2653 (license license:expat)))
2655 (define-public ruby-mysql2
2657 (name "ruby-mysql2")
2663 (url "https://github.com/brianmario/mysql2.git")
2665 (file-name (git-file-name name version))
2668 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2669 (build-system ruby-build-system)
2671 '(;; TODO: Tests require a running MySQL/MariaDB service
2674 (modify-phases %standard-phases
2675 (replace 'replace-git-ls-files
2677 (substitute* "mysql2.gemspec"
2678 (("git ls-files .*`") "find . -type f |sort`"))
2680 (add-before 'install 'set-MAKEFLAGS
2681 (lambda* (#:key outputs #:allow-other-keys)
2685 "prefix=" (assoc-ref outputs "out")))
2687 ;; Move the 'check phase to after 'install, as then you can test
2688 ;; using the installed mysql2 gem in the store.
2690 (add-after 'install 'check
2691 (lambda* (#:key outputs tests? #:allow-other-keys)
2696 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2701 `(("mariadb" ,mariadb "lib")
2702 ("mariadb-dev" ,mariadb "dev")
2705 `(("ruby-rspec" ,ruby-rspec)
2706 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2707 (synopsis "MySQL library for Ruby, binding to libmysql")
2709 "This package provides a simple, fast MySQL library for Ruby, binding to
2711 (home-page "https://github.com/brianmario/mysql2")
2712 (license license:expat)))
2714 (define-public ruby-blankslate
2716 (name "ruby-blankslate")
2720 (uri (rubygems-uri "blankslate" version))
2723 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2724 (build-system ruby-build-system)
2727 (modify-phases %standard-phases
2729 (lambda _ (invoke "rspec" "spec/"))))))
2731 `(("bundler" ,bundler)
2732 ("ruby-rspec" ,ruby-rspec)))
2733 (synopsis "Abstract base class with no predefined methods")
2735 "BlankSlate provides an abstract base class with no predefined
2736 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2737 as a base class when writing classes that depend upon
2738 @code{method_missing} (e.g. dynamic proxies).")
2739 (home-page "https://github.com/masover/blankslate")
2740 (license license:expat)))
2742 (define-public ruby-bond
2749 (uri (rubygems-uri "bond" version))
2752 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2753 (build-system ruby-build-system)
2755 `(("ruby-bacon" ,ruby-bacon)
2756 ("ruby-bacon-bits" ,ruby-bacon-bits)
2757 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2758 (synopsis "Bond can provide custom autocompletion for arguments, methods
2761 "Bond can autocomplete argument(s) to methods, uniquely completing per
2762 module, per method and per argument. Bond provides a configuration system and
2763 a DSL for creating custom completions and completion rules. Bond can also
2764 load completions that ship with gems. Bond is able to offer more than irb's
2765 completion since it uses the full line of input when completing as opposed to
2766 irb's last-word approach.")
2767 (home-page "http://tagaholic.me/bond/")
2768 (license license:expat)))
2770 (define-public ruby-idn-ruby
2772 (name "ruby-idn-ruby")
2777 (uri (rubygems-uri "idn-ruby" version))
2780 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2781 (build-system ruby-build-system)
2784 (modify-phases %standard-phases
2786 (add-after 'install 'check
2787 (lambda* (#:key tests? outputs #:allow-other-keys)
2789 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2790 (name-and-version (basename gem-file ".gem")))
2794 (assoc-ref outputs "out")
2795 "/lib/ruby/vendor_ruby/gems/"
2798 (find-files "./test" ".*\\.rb"))))
2801 `(("libidn" ,libidn)))
2802 (synopsis "Ruby Bindings for the GNU LibIDN library")
2804 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2805 Stringprep, Punycode and IDNA specifications. These are used to encode and
2806 decode internationalized domain + names according to the IDNA2003
2809 Included are the most important parts of the Stringprep, Punycode and IDNA
2810 APIs like performing Stringprep processings, encoding to and decoding from
2811 Punycode strings and converting entire domain names to and from the ACE
2813 (home-page "https://github.com/deepfryed/idn-ruby")
2814 (license license:asl2.0)))
2816 (define-public ruby-instantiator
2818 (name "ruby-instantiator")
2822 (uri (rubygems-uri "instantiator" version))
2825 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2826 (build-system ruby-build-system)
2829 (modify-phases %standard-phases
2830 (add-after 'unpack 'add-test-unit-to-search-path
2831 (lambda* (#:key inputs #:allow-other-keys)
2832 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2833 (substitute* "Rakefile"
2834 (("t\\.libs << \"test\"" line)
2835 (string-append line "; t.libs << \""
2836 test-unit "/lib/ruby/vendor_ruby"
2838 ,(package-version ruby-test-unit)
2842 `(("ruby-blankslate" ,ruby-blankslate)))
2844 `(("bundler" ,bundler)
2845 ("ruby-test-unit" ,ruby-test-unit)))
2846 (synopsis "Instantiate an arbitrary Ruby class")
2848 "Instantiator lets you instantiate an arbitrary Ruby class without
2849 knowing anything about the constructor.")
2850 (home-page "https://github.com/floehopper/instantiator")
2851 (license license:expat)))
2853 (define-public ruby-introspection
2855 (name "ruby-introspection")
2859 (uri (rubygems-uri "introspection" version))
2862 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2863 (build-system ruby-build-system)
2866 (modify-phases %standard-phases
2867 (add-after 'unpack 'add-test-unit-to-search-path
2868 (lambda* (#:key inputs #:allow-other-keys)
2869 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2870 (substitute* "Rakefile"
2871 (("t\\.libs << \"test\"" line)
2872 (string-append line "; t.libs << \""
2873 test-unit "/lib/ruby/vendor_ruby"
2875 ,(package-version ruby-test-unit)
2879 `(("ruby-instantiator" ,ruby-instantiator)
2880 ("ruby-metaclass" ,ruby-metaclass)))
2882 `(("bundler" ,bundler)
2883 ("ruby-blankslate" ,ruby-blankslate)
2884 ("ruby-test-unit" ,ruby-test-unit)))
2885 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2887 "Introspection provides tools to inspect the hierarchy of method
2888 definitions on a Ruby object.")
2889 (home-page "https://github.com/floehopper/introspection")
2890 (license license:expat)))
2892 (define-public ruby-redcarpet
2894 (name "ruby-redcarpet")
2898 (uri (rubygems-uri "redcarpet" version))
2901 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2902 (build-system ruby-build-system)
2905 (modify-phases %standard-phases
2906 ;; The gem archive does not include the conformance tests.
2907 (add-after 'unpack 'disable-conformance-tests
2909 (substitute* "Rakefile"
2910 (("task :test => %w\\[test:unit test:conformance\\]")
2911 "task :test => %w[test:unit]"))
2914 `(("bundler" ,bundler)
2915 ("ruby-test-unit" ,ruby-test-unit)
2916 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2917 (synopsis "Extensible Markdown to (X)HTML converter")
2919 "Redcarpet is an extensible Ruby library for Markdown processing and
2920 conversion to (X)HTML.")
2921 (home-page "https://github.com/vmg/redcarpet")
2922 (license license:expat)))
2924 (define-public ruby-rerun
2931 (uri (rubygems-uri "rerun" version))
2934 "1cskvxk8z8vmfail8na7hj91hs0qnvds9nydj04zi3dbddgnbmvz"))))
2935 (build-system ruby-build-system)
2937 '(#:tests? #f)) ; No included tests
2939 `(("ruby-listen" ,ruby-listen)))
2940 (synopsis "Run a process, and restart when some monitored files change")
2942 "Rerun is a tool to launch programs, then monitor the file system, and
2943 restart the program when any of the monitored files change. It's written in
2944 Ruby, but can be used for all programs.")
2945 (home-page "https://github.com/alexch/rerun/")
2946 (license license:expat)))
2948 (define-public ruby-mocha
2954 (uri (rubygems-uri "mocha" version))
2957 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2958 (build-system ruby-build-system)
2961 (modify-phases %standard-phases
2962 (add-after 'unpack 'add-test-unit-to-search-path
2963 (lambda* (#:key inputs #:allow-other-keys)
2964 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2965 (substitute* "Rakefile"
2966 (("t\\.libs << 'test'" line)
2967 (string-append line "; t.libs << \""
2968 test-unit "/lib/ruby/vendor_ruby"
2970 ,(package-version ruby-test-unit)
2973 (add-before 'check 'use-latest-redcarpet
2975 (substitute* "mocha.gemspec"
2976 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2977 "<redcarpet>.freeze, [\">= 3\"]"))
2979 (add-before 'check 'hardcode-version
2981 ;; Mocha is undefined at build time
2982 (substitute* "Rakefile"
2983 (("#\\{Mocha::VERSION\\}") ,version))
2985 (add-before 'check 'remove-failing-test
2986 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2988 (delete-file "test/acceptance/stubbing_nil_test.rb")
2991 `(("ruby-metaclass" ,ruby-metaclass)))
2993 `(("bundler" ,bundler)
2994 ("ruby-yard" ,ruby-yard)
2995 ("ruby-introspection" ,ruby-introspection)
2996 ("ruby-test-unit" ,ruby-test-unit)
2997 ("ruby-redcarpet" ,ruby-redcarpet)))
2998 (synopsis "Mocking and stubbing library for Ruby")
3000 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
3001 allows mocking and stubbing of methods on real (non-mock) classes.")
3002 (home-page "http://gofreerange.com/mocha/docs")
3003 (license license:expat)))
3005 (define-public ruby-mocha-on-bacon
3007 (name "ruby-mocha-on-bacon")
3012 (uri (rubygems-uri "mocha-on-bacon" version))
3015 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
3016 (build-system ruby-build-system)
3018 ;; rubygems.org release missing tests
3020 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
3021 (synopsis "Mocha adapter for Bacon")
3023 "This package provides a Mocha adapter for Bacon, allowing you to use the
3024 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
3026 "https://github.com/alloy/mocha-on-bacon")
3027 (license license:expat)))
3029 (define-public ruby-net-ssh
3031 (name "ruby-net-ssh")
3035 (uri (rubygems-uri "net-ssh" version))
3038 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
3039 (build-system ruby-build-system)
3041 `(("bundler" ,bundler)
3042 ("ruby-mocha" ,ruby-mocha)
3043 ("ruby-test-unit" ,ruby-test-unit)))
3044 (synopsis "Ruby implementation of the SSH2 client protocol")
3045 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
3046 client protocol. It allows you to write programs that invoke and interact
3047 with processes on remote servers, via SSH2.")
3048 (home-page "https://github.com/net-ssh/net-ssh")
3049 (license license:expat)))
3051 (define-public ruby-net-scp
3053 (name "ruby-net-scp")
3054 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
3055 (version "1.2.2.rc2")
3060 (url "https://github.com/net-ssh/net-scp.git")
3061 (commit (string-append "v" version))))
3062 (file-name (git-file-name name version))
3064 (base32 "1nyn17sy71fn7zs3y6wbgcn35318c10flqgc0582409095x4h0sx"))))
3065 (build-system ruby-build-system)
3067 `(("bundler" ,bundler)
3068 ("ruby-test-unit" ,ruby-test-unit)
3069 ("ruby-mocha" ,ruby-mocha)))
3071 `(("ruby-net-ssh" ,ruby-net-ssh)))
3072 (synopsis "Pure-Ruby SCP client library")
3073 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
3075 (home-page "https://github.com/net-ssh/net-scp")
3076 (license license:expat)))
3078 (define-public ruby-minitest
3080 (name "ruby-minitest")
3084 (uri (rubygems-uri "minitest" version))
3087 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
3088 (build-system ruby-build-system)
3090 `(("ruby-hoe" ,ruby-hoe)))
3091 (synopsis "Small test suite library for Ruby")
3092 (description "Minitest provides a complete suite of Ruby testing
3093 facilities supporting TDD, BDD, mocking, and benchmarking.")
3094 (home-page "https://github.com/seattlerb/minitest")
3095 (license license:expat)))
3097 ;; This is the last release of Minitest 4, which is used by some packages.
3098 (define-public ruby-minitest-4
3099 (package (inherit ruby-minitest)
3103 (uri (rubygems-uri "minitest" version))
3106 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
3109 (modify-phases %standard-phases
3110 (add-after 'unpack 'remove-unsupported-method
3112 (substitute* "Rakefile"
3113 (("self\\.rubyforge_name = .*") ""))
3115 (add-after 'build 'exclude-failing-tests
3117 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
3119 (delete-file "test/minitest/test_minitest_spec.rb")
3122 (define-public ruby-minitest-around
3124 (name "ruby-minitest-around")
3129 (uri (rubygems-uri "minitest-around" version))
3132 "15ywnqx0719jl9c25yqfshmwcir57i5f4hr1ra9v9vay9ylcwndr"))))
3133 (build-system ruby-build-system)
3136 (modify-phases %standard-phases
3137 (add-after 'extract-gemspec 'remove-unnecessary-dependency-versions
3139 (substitute* "minitest-around.gemspec"
3140 (("%q<cucumber>.*") "%q<cucumber>, [\">= 0\"])\n"))
3143 `(("ruby-minitest" ,ruby-minitest)))
3145 `(("bundler" ,bundler)
3146 ("ruby-cucumber" ,ruby-cucumber)
3147 ("ruby-bump" ,ruby-bump)
3148 ("ruby-test-construct" ,ruby-test-construct)))
3149 (synopsis "Run code around tests in Minitest")
3151 "This library provides a way to run code around tests in Minitest,
3152 written using either the unit test or spec style.")
3153 (home-page "https://github.com/splattael/minitest-around")
3154 (license license:expat)))
3156 (define-public ruby-minitest-sprint
3158 (name "ruby-minitest-sprint")
3162 (uri (rubygems-uri "minitest-sprint" version))
3165 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
3166 (build-system ruby-build-system)
3168 `(("ruby-hoe" ,ruby-hoe)
3169 ("ruby-minitest" ,ruby-minitest)))
3170 (synopsis "Fast test suite runner for minitest")
3171 (description "Minitest-sprint is a test runner for minitest that makes it
3172 easier to re-run individual failing tests.")
3173 (home-page "https://github.com/seattlerb/minitest-sprint")
3174 (license license:expat)))
3176 (define-public ruby-minitest-bacon
3178 (name "ruby-minitest-bacon")
3182 (uri (rubygems-uri "minitest-bacon" version))
3185 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
3186 (build-system ruby-build-system)
3188 `(("ruby-hoe" ,ruby-hoe)))
3190 `(("ruby-minitest" ,ruby-minitest)))
3191 (synopsis "Bacon compatibility library for minitest")
3192 (description "Minitest-bacon extends minitest with bacon-like
3193 functionality, making it easier to migrate test suites from bacon to minitest.")
3194 (home-page "https://github.com/seattlerb/minitest-bacon")
3195 (license license:expat)))
3197 (define-public ruby-minitest-focus
3199 (name "ruby-minitest-focus")
3204 (uri (rubygems-uri "minitest-focus" version))
3207 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
3208 (build-system ruby-build-system)
3210 `(("ruby-minitest" ,ruby-minitest)))
3212 `(("ruby-hoe" ,ruby-hoe)))
3213 (synopsis "Allows a few specific tests to be focused on")
3215 "@code{minitest-focus} gives the ability focus on a few tests with ease
3216 without having to use command-line arguments. It introduces a @code{focus}
3217 class method for use in testing classes, specifying that the next defined test
3219 (home-page "https://github.com/seattlerb/minitest-focus")
3220 (license license:expat)))
3222 (define-public ruby-minitest-pretty-diff
3223 ;; Use git reference because gem is out of date and does not contain testing
3224 ;; script. There are no releases on GitHub.
3225 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
3227 (name "ruby-minitest-pretty-diff")
3228 (version (string-append "0.1-1." (string-take commit 8)))
3232 (url "https://github.com/adammck/minitest-pretty_diff.git")
3234 (file-name (string-append name "-" version "-checkout"))
3237 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
3238 (build-system ruby-build-system)
3241 (modify-phases %standard-phases
3244 (invoke "script/test"))))))
3246 `(("bundler" ,bundler)
3247 ("ruby-turn" ,ruby-turn)))
3248 (synopsis "Pretty-print hashes and arrays in MiniTest")
3250 "@code{minitest-pretty_diff} monkey-patches
3251 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
3252 diffing them. This makes it easier to spot differences between nested
3253 structures when tests fail.")
3254 (home-page "https://github.com/adammck/minitest-pretty_diff")
3255 (license license:expat))))
3257 (define-public ruby-minitest-moar
3259 (name "ruby-minitest-moar")
3264 (uri (rubygems-uri "minitest-moar" version))
3267 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
3268 (build-system ruby-build-system)
3271 (modify-phases %standard-phases
3272 (add-before 'check 'clean-dependencies
3274 ;; Remove all gems defined in the Gemfile because these are not
3276 (substitute* "Gemfile"
3278 ;; Remove byebug as not needed to run tests.
3279 (substitute* "test/test_helper.rb"
3280 (("require 'byebug'") ""))
3283 `(("bundler" ,bundler)
3284 ("ruby-minitest" ,ruby-minitest)))
3285 (synopsis "Extra features and changes to MiniTest")
3286 (description "@code{MiniTest Moar} add some additional features and
3287 changes some default behaviours in MiniTest. For instance, Moar replaces the
3288 MiniTest @code{Object#stub} with a global @code{stub} method.")
3289 (home-page "https://github.com/dockyard/minitest-moar")
3290 (license license:expat)))
3292 (define-public ruby-minitest-bonus-assertions
3294 (name "ruby-minitest-bonus-assertions")
3299 (uri (rubygems-uri "minitest-bonus-assertions" version))
3302 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
3303 (build-system ruby-build-system)
3306 (modify-phases %standard-phases
3307 (add-before 'check 'clean-dependencies
3309 ;; Remove unneeded require statement that would entail another
3311 (substitute* "test/minitest_config.rb"
3312 (("require 'minitest/bisect'") ""))
3315 `(("ruby-hoe" ,ruby-hoe)
3316 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
3317 ("ruby-minitest-focus" ,ruby-minitest-focus)
3318 ("ruby-minitest-moar" ,ruby-minitest-moar)))
3319 (synopsis "Bonus assertions for @code{Minitest}")
3321 "Minitest bonus assertions provides extra MiniTest assertions. For
3322 instance, it provides @code{assert_true}, @code{assert_false} and
3323 @code{assert_set_equal}.")
3324 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
3325 (license license:expat)))
3327 (define-public ruby-minitest-reporters
3329 (name "ruby-minitest-reporters")
3334 (uri (rubygems-uri "minitest-reporters" version))
3337 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
3338 (build-system ruby-build-system)
3341 (modify-phases %standard-phases
3342 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
3343 ;; including it as an input can lead to circular dependencies.
3344 (add-after 'unpack 'remove-rubocop-from-Rakefile
3346 (substitute* "Rakefile"
3347 (("require 'rubocop/rake\\_task'") "")
3348 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
3350 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
3352 (substitute* "minitest-reporters.gemspec"
3353 ((".*%q<rubocop>.*") "\n"))
3356 `(("ruby-ansi" ,ruby-ansi)
3357 ("ruby-builder" ,ruby-builder)
3358 ("ruby-minitest" ,ruby-minitest)
3359 ("ruby-progressbar" ,ruby-progressbar)))
3361 `(("bundler" ,bundler)
3362 ("ruby-maruku" ,ruby-maruku)))
3363 (synopsis "Enhanced reporting for Minitest tests")
3365 "@code{minitest/reporters} provides a custom Minitest runner to improve
3366 how the test state is reported. A number of different reporters are
3367 available, including a spec reporter, progress bar reporter, a HTML
3369 (home-page "https://github.com/kern/minitest-reporters")
3370 (license license:expat)))
3372 (define-public ruby-minitest-rg
3374 (name "ruby-minitest-rg")
3379 (uri (rubygems-uri "minitest-rg" version))
3382 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
3383 (build-system ruby-build-system)
3385 ;; Some tests fail even outside Guix, so disable tests.
3386 ;; https://github.com/blowmage/minitest-rg/issues/12
3387 ;; https://github.com/blowmage/minitest-rg/pull/13
3390 `(("ruby-minitest" ,ruby-minitest)))
3391 (synopsis "Coloured output for Minitest")
3393 "@code{minitest-rg} changes the colour of the output from Minitest.")
3394 (home-page "http://blowmage.com/minitest-rg")
3395 (license license:expat)))
3397 (define-public ruby-minitest-hooks
3399 (name "ruby-minitest-hooks")
3404 (uri (rubygems-uri "minitest-hooks" version))
3407 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
3408 (build-system ruby-build-system)
3410 '(#:test-target "spec"))
3412 `(("ruby-sequel" ,ruby-sequel)
3413 ("ruby-sqlite3" ,ruby-sqlite3)))
3414 (synopsis "Hooks for the minitest framework")
3416 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
3417 @code{around_all} hooks for Minitest. This allows, for instance, running each
3418 suite of specs inside a database transaction, running each spec inside its own
3419 savepoint inside that transaction. This can significantly speed up testing
3420 for specs that share expensive database setup code.")
3421 (home-page "https://github.com/jeremyevans/minitest-hooks")
3422 (license license:expat)))
3424 (define-public ruby-daemons
3426 (name "ruby-daemons")
3430 (uri (rubygems-uri "daemons" version))
3433 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
3434 (build-system ruby-build-system)
3436 `(#:tests? #f)) ; no test suite
3437 (synopsis "Daemonize Ruby programs")
3438 (description "Daemons provides a way to wrap existing Ruby scripts to be
3439 run as a daemon and to be controlled by simple start/stop/restart commands.")
3440 (home-page "https://github.com/thuehlinger/daemons")
3441 (license license:expat)))
3443 (define-public ruby-data_uri
3445 (name "ruby-data_uri")
3450 (uri (rubygems-uri "data_uri" version))
3453 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
3454 (build-system ruby-build-system)
3455 (synopsis "URI class for parsing data URIs")
3457 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
3458 embedded inside a URI. The URI::Data class provides support for parsing these
3459 URIs using the normal URI.parse method.")
3460 (home-page "https://github.com/dball/data_uri")
3461 (license license:expat)))
3463 (define-public ruby-git
3469 (uri (rubygems-uri "git" version))
3472 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
3473 (build-system ruby-build-system)
3475 `(#:tests? #f ; no tests
3476 #:phases (modify-phases %standard-phases
3477 (add-after 'install 'patch-git-binary
3478 (lambda* (#:key inputs outputs #:allow-other-keys)
3479 ;; Make the default git binary an absolute path to the
3481 (let ((git (string-append (assoc-ref inputs "git")
3483 (config (string-append
3484 (assoc-ref outputs "out")
3485 "/lib/ruby/vendor_ruby/gems/git-"
3486 ,version "/lib/git/config.rb")))
3487 (substitute* (list config)
3489 (string-append "'" git "'")))
3493 (synopsis "Ruby wrappers for Git")
3494 (description "Ruby/Git is a Ruby library that can be used to create, read
3495 and manipulate Git repositories by wrapping system calls to the git binary.")
3496 (home-page "https://github.com/schacon/ruby-git")
3497 (license license:expat)))
3499 (define-public ruby-slop
3505 (uri (rubygems-uri "slop" version))
3508 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
3509 (build-system ruby-build-system)
3511 `(("ruby-minitest" ,ruby-minitest)))
3512 (synopsis "Ruby command line option parser")
3513 (description "Slop provides a Ruby domain specific language for gathering
3514 options and parsing command line flags.")
3515 (home-page "https://github.com/leejarvis/slop")
3516 (license license:expat)))
3518 (define-public ruby-slop-3
3519 (package (inherit ruby-slop)
3523 (uri (rubygems-uri "slop" version))
3526 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
3528 (define-public ruby-multi-xml
3530 (name "ruby-multi-xml")
3535 (uri (rubygems-uri "multi_xml" version))
3538 "0lmd4f401mvravi1i1yq7b2qjjli0yq7dfc4p1nj5nwajp7r6hyj"))))
3539 (build-system ruby-build-system)
3541 '(#:tests? #f)) ; No included tests
3542 (synopsis "Swappable XML backends for Ruby")
3544 "@code{MultiXml} provides swappable XML backends utilizing either LibXML,
3545 Nokogiri, Ox, or REXML.")
3546 (home-page "https://github.com/sferik/multi_xml")
3547 (license license:expat)))
3549 (define-public ruby-multipart-post
3551 (name "ruby-multipart-post")
3555 (uri (rubygems-uri "multipart-post" version))
3558 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
3559 (build-system ruby-build-system)
3561 `(("bundler" ,bundler)))
3562 (synopsis "Multipart POST library for Ruby")
3563 (description "Multipart-Post Adds multipart POST capability to Ruby's
3565 (home-page "https://github.com/nicksieger/multipart-post")
3566 (license license:expat)))
3568 (define-public ruby-multi-json
3570 (name "ruby-multi-json")
3575 ;; Tests are not distributed at rubygems.org so download from GitHub
3578 (url "https://github.com/intridea/multi_json")
3579 (commit (string-append "v" version))))
3580 (file-name (git-file-name name version))
3583 "18wpb6p01rrkl4v33byh70vxj2a5jxkfxzv3pz8z6pssy4ymwkm4"))))
3584 (build-system ruby-build-system)
3587 (modify-phases %standard-phases
3588 (add-after 'unpack 'remove-signing-key-reference
3590 (substitute* "multi_json.gemspec"
3591 ((".*spec.signing_key.*") ""))
3594 `(("bundler" ,bundler)
3595 ("ruby-rspec" ,ruby-rspec)
3596 ("ruby-yard" ,ruby-yard)
3597 ("ruby-json-pure" ,ruby-json-pure)
3598 ("ruby-oj" ,ruby-oj)
3599 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3600 (synopsis "Common interface to multiple JSON libraries for Ruby")
3602 "This package provides a common interface to multiple JSON libraries,
3603 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3604 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3605 (home-page "https://github.com/intridea/multi_json")
3606 (license license:expat)))
3608 (define-public ruby-multi-test
3610 (name "ruby-multi-test")
3615 (uri (rubygems-uri "multi_test" version))
3618 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3619 (build-system ruby-build-system)
3621 '(;; Tests require different sets of specific gem versions to be available,
3622 ;; and there is no gemfile that specifies the newest versions of
3623 ;; dependencies to be tested.
3626 "Interface to testing libraries loaded into a running Ruby process")
3628 "@code{multi_test} provides a uniform interface onto whatever testing
3629 libraries that have been loaded into a running Ruby process to help control
3630 rogue test/unit/autorun requires.")
3631 (home-page "https://github.com/cucumber/multi_test")
3632 (license license:expat)))
3634 (define-public ruby-arel
3640 (uri (rubygems-uri "arel" version))
3643 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3644 (build-system ruby-build-system)
3645 (arguments '(#:tests? #f)) ; no tests
3646 (home-page "https://github.com/rails/arel")
3647 (synopsis "SQL AST manager for Ruby")
3648 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3649 Ruby. It simplifies the generation of complex SQL queries and adapts to
3650 various relational database implementations.")
3651 (license license:expat)))
3653 (define-public ruby-marcel
3655 (name "ruby-marcel")
3660 (uri (rubygems-uri "marcel" version))
3663 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3664 (build-system ruby-build-system)
3666 '(;; No included tests
3669 `(("ruby-mimemagic" ,ruby-mimemagic)))
3670 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3672 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3673 Extensions} type detection using magic numbers, filenames, and extensions")
3674 (home-page "https://github.com/basecamp/marcel")
3675 (license license:expat)))
3677 (define-public ruby-minitar
3678 ;; We package from the GitHub source to fix the security issue reported at
3679 ;; https://github.com/halostatue/minitar/issues/16.
3680 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3682 (name "ruby-minitar")
3683 (version (string-append "0.5.4-1." (string-take commit 8)))
3688 (url "https://github.com/halostatue/minitar.git")
3690 (file-name (string-append name "-" version "-checkout"))
3693 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3694 (build-system ruby-build-system)
3696 '(#:tests? #f)) ; missing a gemspec
3697 (synopsis "Ruby library and utility for handling tar archives")
3699 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3700 that provides the ability to deal with POSIX tar archive files.")
3701 (home-page "http://www.github.com/atoulme/minitar")
3702 (license (list license:gpl2+ license:ruby)))))
3704 (define-public ruby-mini-portile
3706 (name "ruby-mini-portile")
3711 (uri (rubygems-uri "mini_portile" version))
3714 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3715 (build-system ruby-build-system)
3717 '(#:tests? #f)) ; tests require network access
3718 (synopsis "Ports system for Ruby developers")
3719 (description "Mini-portile is a port/recipe system for Ruby developers.
3720 It provides a standard way to compile against specific versions of libraries
3721 to reproduce user environments.")
3722 (home-page "https://github.com/flavorjones/mini_portile")
3723 (license license:expat)))
3725 (define-public ruby-mini-portile-2
3726 (package (inherit ruby-mini-portile)
3730 (uri (rubygems-uri "mini_portile2" version))
3733 "15zplpfw3knqifj9bpf604rb3wc1vhq6363pd6lvhayng8wql5vy"))))))
3735 (define-public ruby-nokogiri
3737 (name "ruby-nokogiri")
3741 (uri (rubygems-uri "nokogiri" version))
3744 "185g3dwba73jqxjr94bd2zk6fil6n9hmcfnfyzh3p1w47vm296r7"))))
3745 (build-system ruby-build-system)
3747 ;; Tests fail because Nokogiri can only test with an installed extension,
3748 ;; and also because many test framework dependencies are missing.
3750 #:gem-flags (list "--" "--use-system-libraries"
3751 (string-append "--with-xml2-include="
3752 (assoc-ref %build-inputs "libxml2")
3753 "/include/libxml2" ))
3755 (modify-phases %standard-phases
3756 (add-before 'build 'patch-extconf
3757 ;; 'pkg-config' is not included in the GEM_PATH during
3758 ;; installation, so we add it directly to the load path.
3759 (lambda* (#:key inputs #:allow-other-keys)
3760 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3761 (substitute* "ext/nokogiri/extconf.rb"
3762 (("gem 'pkg-config'.*")
3763 (string-append "$:.unshift '"
3764 pkg-config "/lib/ruby/vendor_ruby"
3766 ,(package-version ruby-pkg-config)
3770 `(("ruby-hoe" ,ruby-hoe)))
3773 ("libxml2" ,libxml2)
3774 ("libxslt" ,libxslt)))
3776 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3777 ("ruby-pkg-config" ,ruby-pkg-config)))
3778 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3779 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3780 both CSS3 selector and XPath 1.0 support.")
3781 (home-page "http://www.nokogiri.org/")
3782 (license license:expat)))
3784 (define-public ruby-method-source
3786 (name "ruby-method-source")
3791 (uri (rubygems-uri "method_source" version))
3794 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3795 (build-system ruby-build-system)
3797 `(#:test-target "spec"))
3799 `(("ruby-rspec" ,ruby-rspec)
3801 (synopsis "Retrieve the source code for Ruby methods")
3802 (description "Method_source retrieves the source code for Ruby methods.
3803 Additionally, it can extract source code from Proc and Lambda objects or just
3805 (home-page "https://github.com/banister/method_source")
3806 (license license:expat)))
3808 (define-public ruby-coderay
3810 (name "ruby-coderay")
3815 (uri (rubygems-uri "coderay" version))
3818 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3819 (build-system ruby-build-system)
3821 '(#:tests? #f)) ; missing test files
3822 (synopsis "Ruby syntax highlighting library")
3823 (description "Coderay is a Ruby library that provides syntax highlighting
3824 for select languages.")
3825 (home-page "http://coderay.rubychan.de")
3826 (license license:expat)))
3828 (define-public ruby-parser
3830 (name "ruby-parser")
3835 (uri (rubygems-uri "parser" version))
3838 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3839 (build-system ruby-build-system)
3841 `(("bundler" ,bundler)
3842 ("ruby-cliver" ,ruby-cliver)
3843 ("ruby-simplecov" ,ruby-simplecov)
3844 ("ruby-racc" ,ruby-racc)))
3846 `(("ragel" ,ragel)))
3848 `(("ruby-ast" ,ruby-ast)))
3849 (synopsis "Ruby parser written in pure Ruby")
3851 "This package provides a Ruby parser written in pure Ruby.")
3852 (home-page "https://github.com/whitequark/parser")
3853 (license license:expat)))
3855 (define-public ruby-prawn-manual-builder
3857 (name "ruby-prawn-manual-builder")
3862 (uri (rubygems-uri "prawn-manual_builder" version))
3864 (base32 "1vlg5w7wq43g2hgpgra2nrcxj1kb4ayqliz4gmja2rhs037j2vzs"))))
3865 (build-system ruby-build-system)
3867 '(#:tests? #f ; no included tests
3869 (modify-phases %standard-phases
3870 (add-after 'extract-gemspec 'patch-gemspec
3872 (substitute* ".gemspec"
3873 ;; Loosen the requirement for pdf-inspector
3874 (("~> 1\\.0\\.7") ">= 0")))))))
3876 `(("ruby-coderay" ,ruby-coderay)))
3877 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3879 "This package provides a tool for writing manuals for Prawn and Prawn
3881 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3883 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3887 (define-public ruby-progress_bar
3889 (name "ruby-progress_bar")
3894 (uri (rubygems-uri "progress_bar" version))
3897 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3898 (build-system ruby-build-system)
3900 '(#:test-target "spec"))
3902 `(("ruby-highline" ,ruby-highline)
3903 ("ruby-options" ,ruby-options)))
3905 `(("bundler" ,bundler)
3906 ("ruby-rspec" ,ruby-rspec)
3907 ("ruby-timecop" ,ruby-timecop)))
3909 "Ruby library for displaying progress bars")
3911 "ProgressBar is a simple library for displaying progress bars. The
3912 maximum value is configurable, and additional information can be displayed
3913 like the percentage completion, estimated time remaining, elapsed time and
3915 (home-page "https://github.com/paul/progress_bar")
3916 (license license:wtfpl2)))
3918 (define-public ruby-dep
3925 (uri (rubygems-uri "ruby_dep" version))
3928 "1c1bkl97i9mkcvkn1jks346ksnvnnp84cs22gwl0vd7radybrgy5"))))
3929 (build-system ruby-build-system)
3931 '(#:tests? #f)) ; No included tests
3932 (synopsis "Creates a version constraint of supported Rubies")
3934 "This package helps create a version constraint of supported Rubies,
3935 suitable for a gemspec file.")
3936 (home-page "https://github.com/e2/ruby_dep")
3937 (license license:expat)))
3939 (define-public ruby-progressbar
3941 (name "ruby-progressbar")
3946 (uri (rubygems-uri "ruby-progressbar" version))
3948 (base32 "1k77i0d4wsn23ggdd2msrcwfy0i376cglfqypkk2q77r2l3408zf"))))
3949 (build-system ruby-build-system)
3951 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3953 (synopsis "Text progress bar library for Ruby")
3955 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3956 The output can be customized with a formatting system.")
3957 (home-page "https://github.com/jfelchner/ruby-progressbar")
3958 (license license:expat)))
3960 (define-public ruby-pry
3967 (uri (rubygems-uri "pry" version))
3970 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3971 (build-system ruby-build-system)
3973 '(#:tests? #f)) ; no tests
3975 `(("ruby-coderay" ,ruby-coderay)
3976 ("ruby-method-source" ,ruby-method-source)))
3977 (synopsis "Ruby REPL")
3978 (description "Pry is an IRB alternative and runtime developer console for
3979 Ruby. It features syntax highlighting, a plugin architecture, runtime
3980 invocation, and source and documentation browsing.")
3981 (home-page "https://pryrepl.org")
3982 (license license:expat)))
3984 (define-public ruby-guard
3990 ;; The gem does not include a Rakefile, nor does it contain a
3991 ;; gemspec file, nor does it come with the tests. This is why
3992 ;; we fetch the tarball from Github.
3994 (url "https://github.com/guard/guard")
3995 (commit (string-append "v" version))))
3996 (file-name (git-file-name name version))
3999 "16pxcszr0g2jnl3090didxh1d8z5m2mly14m3w4rspb8fmclsnjs"))))
4000 (build-system ruby-build-system)
4002 `(#:tests? #f ; tests require cucumber
4004 (modify-phases %standard-phases
4005 (add-after 'unpack 'remove-git-ls-files
4006 (lambda* (#:key outputs #:allow-other-keys)
4007 (substitute* "guard.gemspec"
4008 (("git ls-files -z") "find . -type f -print0"))
4012 (invoke "gem" "build" "guard.gemspec"))))))
4014 `(("ruby-formatador" ,ruby-formatador)
4015 ("ruby-listen" ,ruby-listen)
4016 ("ruby-lumberjack" ,ruby-lumberjack)
4017 ("ruby-nenv" ,ruby-nenv)
4018 ("ruby-notiffany" ,ruby-notiffany)
4019 ("ruby-pry" ,ruby-pry)
4020 ("ruby-shellany" ,ruby-shellany)
4021 ("ruby-thor" ,ruby-thor)))
4023 `(("bundler" ,bundler)
4024 ("ruby-rspec" ,ruby-rspec)))
4025 (synopsis "Tool to handle events on file system modifications")
4027 "Guard is a command line tool to easily handle events on file system
4028 modifications. Guard automates various tasks by running custom rules whenever
4029 file or directories are modified.")
4030 (home-page "https://guardgem.org/")
4031 (license license:expat)))
4033 (define-public ruby-tilt
4040 (uri (rubygems-uri "tilt" version))
4043 "0ca4k0clwf0rkvy7726x4nxpjxkpv67w043i39saxgldxd97zmwz"))))
4044 (build-system ruby-build-system)
4047 (modify-phases %standard-phases
4048 (add-after 'unpack 'remove-some-dependencies
4050 (substitute* "Gemfile"
4051 ;; TODO ronn is used for generating the manual
4052 (("gem 'ronn'.*") "\n")
4053 ;; ruby-haml has a runtime dependency on ruby-tilt, so don't
4054 ;; pass it in as a native-input
4055 (("gem 'haml'.*") "\n")
4056 ;; TODO Not all of these gems are packaged for Guix yet:
4057 ;; less, coffee-script, livescript, babel-transpiler,
4059 (("if can_execjs") "if false")
4060 ;; Disable the secondary group to reduce the number of
4061 ;; dependencies. None of the normal approaches work, so patch
4062 ;; the Gemfile instead.
4063 (("group :secondary") "[].each"))
4066 `(("bundler" ,bundler)
4067 ("ruby-yard" ,ruby-yard)
4068 ("ruby-builder" ,ruby-builder)
4069 ("ruby-erubis" ,ruby-erubis)
4070 ("ruby-markaby" ,ruby-markaby)
4071 ("ruby-sassc" ,ruby-sassc)))
4072 (synopsis "Generic interface to multiple Ruby template engines")
4074 "Tilt is a thin interface over a number of different Ruby template
4075 engines in an attempt to make their usage as generic as possible.")
4076 (home-page "https://github.com/rtomayko/tilt/")
4077 (license license:expat)))
4079 (define-public ruby-thread-safe
4081 (name "ruby-thread-safe")
4086 (uri (rubygems-uri "thread_safe" version))
4089 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
4090 (build-system ruby-build-system)
4092 '(#:tests? #f)) ; needs simplecov, among others
4093 (synopsis "Thread-safe utilities for Ruby")
4094 (description "The thread_safe library provides thread-safe collections and
4095 utilities for Ruby.")
4096 (home-page "https://github.com/ruby-concurrency/thread_safe")
4097 (license license:asl2.0)))
4099 (define-public ruby-tzinfo
4101 (name "ruby-tzinfo")
4106 (uri (rubygems-uri "tzinfo" version))
4109 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
4110 (build-system ruby-build-system)
4112 `(("ruby-thread-safe" ,ruby-thread-safe)))
4113 (synopsis "Time zone library for Ruby")
4114 (description "TZInfo is a Ruby library that provides daylight savings
4115 aware transformations between times in different time zones.")
4116 (home-page "https://tzinfo.github.io")
4117 (license license:expat)))
4119 (define-public ruby-tzinfo-data
4121 (name "ruby-tzinfo-data")
4122 (version "1.2017.3")
4126 ;; Download from GitHub because the rubygems version does not contain
4127 ;; Rakefile or tests.
4129 (url "https://github.com/tzinfo/tzinfo-data")
4130 (commit (string-append "v" version))))
4131 (file-name (git-file-name name version))
4134 "0v3phl5l3jrm6waxcszqmj2dkjhqawxfsxb6mss7vkp1hlckqcdp"))
4135 ;; Remove the known test failure.
4136 ;; https://github.com/tzinfo/tzinfo-data/issues/10
4137 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
4138 (patches (search-patches
4139 "ruby-tzinfo-data-ignore-broken-test.patch"))))
4140 (build-system ruby-build-system)
4142 `(("ruby-tzinfo" ,ruby-tzinfo)))
4143 (synopsis "Data from the IANA Time Zone database")
4145 "This library provides @code{TZInfo::Data}, which contains data from the
4146 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
4147 (home-page "https://tzinfo.github.io")
4148 (license license:expat)))
4150 (define-public ruby-rb-inotify
4152 (name "ruby-rb-inotify")
4157 (uri (rubygems-uri "rb-inotify" version))
4160 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
4161 (build-system ruby-build-system)
4163 '(#:tests? #f ; there are no tests
4165 (modify-phases %standard-phases
4166 ;; Building the gemspec with rake is not working here since it is
4167 ;; generated with Jeweler. It is also unnecessary because the
4168 ;; existing gemspec does not use any development tools to generate a
4172 (invoke "gem" "build" "rb-inotify.gemspec"))))))
4174 `(("ruby-ffi" ,ruby-ffi)))
4176 `(("ruby-yard" ,ruby-yard)))
4177 (synopsis "Ruby wrapper for Linux's inotify")
4178 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
4179 kernel subsystem for monitoring changes to files and directories.")
4180 (home-page "https://github.com/nex3/rb-inotify")
4181 (license license:expat)))
4183 (define-public ruby-pry-editline
4185 (name "ruby-pry-editline")
4189 (uri (rubygems-uri "pry-editline" version))
4192 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
4193 (build-system ruby-build-system)
4194 (arguments `(#:tests? #f)) ; no tests included
4196 `(("bundler" ,bundler)))
4197 (synopsis "Open the current REPL line in an editor")
4199 "This gem provides a plugin for the Ruby REPL to enable opening the
4200 current line in an external editor.")
4201 (home-page "https://github.com/tpope/pry-editline")
4202 (license license:expat)))
4204 (define-public ruby-sdoc
4210 (uri (rubygems-uri "sdoc" version))
4213 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
4214 (build-system ruby-build-system)
4217 (modify-phases %standard-phases
4218 (add-before 'check 'set-rubylib-and-patch-gemfile
4220 (setenv "RUBYLIB" "lib")
4221 (substitute* "sdoc.gemspec"
4222 (("s.add_runtime_dependency.*") "\n")
4223 (("s.add_dependency.*") "\n"))
4224 (substitute* "Gemfile"
4226 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
4229 `(("ruby-json" ,ruby-json)))
4231 `(("bundler" ,bundler)
4232 ("ruby-minitest" ,ruby-minitest)
4233 ("ruby-hoe" ,ruby-hoe)))
4234 (synopsis "Generate searchable RDoc documentation")
4236 "SDoc is an RDoc documentation generator to build searchable HTML
4237 documentation for Ruby code.")
4238 (home-page "https://github.com/voloko/sdoc")
4239 (license license:expat)))
4241 (define-public ruby-tins
4247 (uri (rubygems-uri "tins" version))
4250 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
4251 (build-system ruby-build-system)
4252 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
4253 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
4256 `(#:tests? #f ; there are no tests
4258 (modify-phases %standard-phases
4261 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
4263 (substitute* "tins.gemspec"
4264 (("\"lib/spruz\", ") ""))
4265 (invoke "gem" "build" "tins.gemspec"))))))
4266 (synopsis "Assorted tools for Ruby")
4267 (description "Tins is a Ruby library providing assorted tools.")
4268 (home-page "https://github.com/flori/tins")
4269 (license license:expat)))
4271 (define-public ruby-gem-hadar
4273 (name "ruby-gem-hadar")
4277 (uri (rubygems-uri "gem_hadar" version))
4280 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
4281 (build-system ruby-build-system)
4282 ;; This gem needs itself at development time. We disable rebuilding of the
4283 ;; gemspec to avoid this loop.
4285 `(#:tests? #f ; there are no tests
4287 (modify-phases %standard-phases
4290 (invoke "gem" "build" "gem_hadar.gemspec"))))))
4293 ("ruby-tins" ,ruby-tins)
4294 ("ruby-yard" ,ruby-yard)))
4295 (synopsis "Library for the development of Ruby gems")
4297 "This library contains some useful functionality to support the
4298 development of Ruby gems.")
4299 (home-page "https://github.com/flori/gem_hadar")
4300 (license license:expat)))
4302 (define-public ruby-minitest-tu-shim
4304 (name "ruby-minitest-tu-shim")
4308 (uri (rubygems-uri "minitest_tu_shim" version))
4311 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
4312 (build-system ruby-build-system)
4315 (modify-phases %standard-phases
4316 (add-after 'unpack 'fix-test-include-path
4317 (lambda* (#:key inputs #:allow-other-keys)
4318 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
4319 (substitute* "Rakefile"
4320 (("Hoe\\.add_include_dirs .*")
4321 (string-append "Hoe.add_include_dirs \""
4322 minitest "/lib/ruby/vendor_ruby"
4324 ,(package-version ruby-minitest-4)
4327 (add-before 'check 'fix-test-assumptions
4329 ;; The test output includes the file name, so a couple of tests
4330 ;; fail. Changing the regular expressions slightly fixes this
4332 (substitute* "test/test_mini_test.rb"
4333 (("output.sub!\\(.*, 'FILE:LINE'\\)")
4334 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
4335 (("gsub\\(/.*, 'FILE:LINE'\\)")
4336 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
4339 `(("ruby-minitest-4" ,ruby-minitest-4)))
4341 `(("ruby-hoe" ,ruby-hoe)))
4342 (synopsis "Adapter library between minitest and test/unit")
4344 "This library bridges the gap between the small and fast minitest and
4345 Ruby's large and slower test/unit.")
4346 (home-page "https://rubygems.org/gems/minitest_tu_shim")
4347 (license license:expat)))
4349 (define-public ruby-term-ansicolor
4351 (name "ruby-term-ansicolor")
4355 (uri (rubygems-uri "term-ansicolor" version))
4358 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
4359 (build-system ruby-build-system)
4360 ;; Rebuilding the gemspec seems to require git, even though this is not a
4361 ;; git repository, so we just build the gem from the existing gemspec.
4364 (modify-phases %standard-phases
4365 (add-after 'unpack 'fix-test
4367 (substitute* "tests/hsl_triple_test.rb"
4372 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
4374 `(("ruby-tins" ,ruby-tins)))
4376 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4377 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
4378 (synopsis "Ruby library to control the attributes of terminal output")
4380 "This Ruby library uses ANSI escape sequences to control the attributes
4381 of terminal output.")
4382 (home-page "https://flori.github.io/term-ansicolor/")
4383 ;; There is no mention of the "or later" clause.
4384 (license license:gpl2)))
4386 (define-public ruby-terraform
4388 (name "ruby-terraform")
4393 (uri (rubygems-uri "ruby-terraform" version))
4396 "13zjkp71cd19j2ds2h9rqwcfr1zdg5nsh63p89l6qcsc9z39z324"))))
4397 (build-system ruby-build-system)
4399 '(#:tests? #f)) ; No included tests
4401 `(("ruby-lino" ,ruby-lino)))
4402 (synopsis "Ruby wrapper around the Terraform command line interface")
4404 "This package provides a Ruby wrapper around the Terraform command line
4405 interface so that Terraform can be more easily invoked from Ruby code.")
4406 (home-page "https://github.com/infrablocks/ruby_terraform")
4407 (license license:expat)))
4409 (define-public ruby-pstree
4411 (name "ruby-pstree")
4415 (uri (rubygems-uri "pstree" version))
4418 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
4419 (build-system ruby-build-system)
4421 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4422 ("bundler" ,bundler)))
4423 (synopsis "Create a process tree data structure")
4425 "This library uses the output of the @code{ps} command to create a
4426 process tree data structure for the current host.")
4427 (home-page "https://github.com/flori/pstree")
4428 ;; There is no mention of the "or later" clause.
4429 (license license:gpl2)))
4431 (define-public ruby-utils
4437 (uri (rubygems-uri "utils" version))
4440 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
4441 (build-system ruby-build-system)
4443 `(("ruby-tins" ,ruby-tins)
4444 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
4445 ("ruby-pstree" ,ruby-pstree)
4446 ("ruby-pry-editline" ,ruby-pry-editline)))
4448 `(("ruby-gem-hadar" ,ruby-gem-hadar)
4449 ("bundler" ,bundler)))
4450 (synopsis "Command line tools for working with Ruby")
4452 "This package provides assorted command line tools that may be useful
4453 when working with Ruby code.")
4454 (home-page "https://github.com/flori/utils")
4455 ;; There is no mention of the "or later" clause.
4456 (license license:gpl2)))
4458 (define-public ruby-jaro-winkler
4460 (name "ruby-jaro-winkler")
4465 (uri (rubygems-uri "jaro_winkler" version))
4467 (base32 "1y8l6k34svmdyqxya3iahpwbpvmn3fswhwsvrz0nk1wyb8yfihsh"))))
4468 (build-system ruby-build-system)
4470 '(#:tests? #f)) ; no included tests
4471 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
4473 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
4474 algorithm. It is written as a C extension and will fallback to a pure Ruby
4475 implementation on platforms where this is unsupported.")
4476 (home-page "https://github.com/tonytonyjan/jaro_winkler")
4477 (license license:expat)))
4479 (define-public ruby-json
4486 (uri (rubygems-uri "json" version))
4489 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
4490 (build-system ruby-build-system)
4491 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
4492 (synopsis "JSON library for Ruby")
4493 (description "This Ruby library provides a JSON implementation written as
4494 a native C extension.")
4495 (home-page "http://json-jruby.rubyforge.org/")
4496 (license (list license:ruby license:gpl2)))) ; GPL2 only
4498 (define-public ruby-json-pure
4500 (name "ruby-json-pure")
4504 (uri (rubygems-uri "json_pure" version))
4507 "0m0j1mfwv0mvw72kzqisb26xjl236ivqypw1741dkis7s63b8439"))))
4508 (build-system ruby-build-system)
4511 (modify-phases %standard-phases
4512 (add-after 'unpack 'fix-rakefile
4514 (substitute* "Rakefile"
4515 ;; Since this is not a git repository, do not call 'git'.
4516 (("`git ls-files`") "`find . -type f |sort`")
4517 ;; Loosen dependency constraint.
4518 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
4520 (add-after 'replace-git-ls-files 'regenerate-gemspec
4522 ;; Regenerate gemspec so loosened dependency constraints are
4524 (invoke "rake" "gemspec")))
4525 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
4527 ;; This gemspec doesn't look to be generated by the above
4528 ;; command, so patch it separately.
4529 (substitute* "json-java.gemspec"
4530 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
4531 "%q<test-unit>.freeze, [\">= 2.0\"]"))
4534 `(("bundler" ,bundler)
4536 ("ruby-simplecov" ,ruby-simplecov)
4537 ("ruby-test-unit" ,ruby-test-unit)))
4538 (synopsis "JSON implementation in pure Ruby")
4540 "This package provides a JSON implementation written in pure Ruby.")
4541 (home-page "https://flori.github.com/json/")
4542 (license license:ruby)))
4544 (define-public ruby-jwt
4551 (uri (rubygems-uri "jwt" version))
4554 "1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
4555 (build-system ruby-build-system)
4557 '(#:test-target "test"
4559 (modify-phases %standard-phases
4560 (add-after 'unpack 'remove-unnecessary-dependencies
4562 (substitute* "spec/spec_helper.rb"
4563 (("require 'simplecov.*") "\n")
4564 ;; Use [].each to disable running the SimpleCov configuration
4566 (("SimpleCov\\.configure") "[].each")
4567 (("require 'codeclimate-test-reporter'") "")
4568 (("require 'codacy-coverage'") "")
4569 (("Codacy::Reporter\\.start") ""))
4572 `(("bundler" ,bundler)
4573 ("ruby-rspec" ,ruby-rspec)
4574 ("ruby-rbnacl" ,ruby-rbnacl)))
4575 (synopsis "Ruby implementation of the JSON Web Token standard")
4577 "This package provides a pure Ruby implementation of the RFC 7519 OAuth
4578 @acronym{JWT, JSON Web Token} standard.")
4579 (home-page "https://github.com/jwt/ruby-jwt")
4580 (license license:expat)))
4582 ;; Even though this package only provides bindings for a Mac OSX API it is
4583 ;; required by "ruby-listen" at runtime.
4584 (define-public ruby-rb-fsevent
4586 (name "ruby-rb-fsevent")
4590 (uri (rubygems-uri "rb-fsevent" version))
4593 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
4594 (build-system ruby-build-system)
4595 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
4596 ;; "listen", which needs "rb-fsevent" at runtime.
4597 (arguments `(#:tests? #f))
4598 (synopsis "FSEvents API with signals catching")
4600 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
4601 (home-page "https://rubygems.org/gems/rb-fsevent")
4602 (license license:expat)))
4604 (define-public ruby-listen
4606 (name "ruby-listen")
4610 ;; The gem does not include a Rakefile, so fetch from the Git
4614 (url "https://github.com/guard/listen.git")
4615 (commit (string-append "v" version))))
4616 (file-name (git-file-name name version))
4619 "1hkp1g6hk5clsmbd001gkc12ma6s459x820piajyasv61m87if24"))))
4620 (build-system ruby-build-system)
4622 `(#:test-target "spec"
4624 (modify-phases %standard-phases
4625 (add-after 'unpack 'fix-files-in-gemspec
4627 (substitute* "listen.gemspec"
4628 (("`git ls-files -z`") "`find . -type f -printf '%P\\\\0' |sort -z`"))
4630 (add-before 'check 'remove-unnecessary-dependencies'
4632 (substitute* "Rakefile"
4633 ;; Rubocop is for code linting, and is unnecessary for running
4635 ((".*rubocop.*") ""))
4638 `(("bundler" ,bundler)
4639 ("ruby-rspec" ,ruby-rspec)))
4641 `(;; ruby-thor is used for the command line interface, and is referenced
4642 ;; in the wrapper, and therefore just needs to be an input.
4643 ("ruby-thor" ,ruby-thor)))
4645 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
4646 ("ruby-rb-inotify" ,ruby-rb-inotify)
4647 ("ruby-dep" ,ruby-dep)))
4648 (synopsis "Listen to file modifications")
4649 (description "The Listen gem listens to file modifications and notifies
4650 you about the changes.")
4651 (home-page "https://github.com/guard/listen")
4652 (license license:expat)))
4654 (define-public ruby-loofah
4656 (name "ruby-loofah")
4661 (uri (rubygems-uri "loofah" version))
4664 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
4665 (build-system ruby-build-system)
4668 (modify-phases %standard-phases
4669 (add-after 'unpack 'remove-unnecessary-dependencies
4671 ;; concourse is a development tool which is unused, so remove it
4672 ;; so it's not required.
4673 (substitute* "Gemfile"
4674 ((".*\"concourse\".*") "\n"))
4675 (substitute* "Rakefile"
4676 (("require 'concourse'") "")
4677 (("Concourse\\.new.*") "\n"))
4680 `(("ruby-hoe" ,ruby-hoe)
4681 ("ruby-rr" ,ruby-rr)))
4683 `(("ruby-nokogiri" ,ruby-nokogiri)
4684 ("ruby-crass" ,ruby-crass)))
4685 (synopsis "Ruby library for manipulating and transforming HTML/XML")
4687 "Loofah is a general library for manipulating and transforming HTML/XML
4688 documents and fragments. It's built on top of Nokogiri and libxml2.")
4689 (home-page "https://github.com/flavorjones/loofah")
4690 (license license:expat)))
4692 (define-public ruby-activesupport
4694 (name "ruby-activesupport")
4699 (uri (rubygems-uri "activesupport" version))
4702 "161bp4p01v1a1lvszrhd1a02zf9x1p1l1yhw79a3rix1kvzkkdqb"))))
4703 (build-system ruby-build-system)
4706 (modify-phases %standard-phases
4709 ;; There are no tests, instead attempt to load the library.
4710 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
4712 `(("ruby-concurrent" ,ruby-concurrent)
4713 ("ruby-i18n" ,ruby-i18n)
4714 ("ruby-minitest" ,ruby-minitest)
4715 ("ruby-tzinfo" ,ruby-tzinfo)
4716 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
4717 (synopsis "Ruby on Rails utility library")
4718 (description "ActiveSupport is a toolkit of support libraries and Ruby
4719 core extensions extracted from the Rails framework. It includes support for
4720 multibyte strings, internationalization, time zones, and testing.")
4721 (home-page "http://www.rubyonrails.org")
4722 (license license:expat)))
4724 (define-public ruby-crass
4730 (uri (rubygems-uri "crass" version))
4733 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4734 (build-system ruby-build-system)
4736 `(("bundler" ,bundler)
4737 ("ruby-minitest" ,ruby-minitest)))
4738 (synopsis "Pure Ruby CSS parser")
4740 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4741 (home-page "https://github.com/rgrove/crass/")
4742 (license license:expat)))
4744 (define-public ruby-nokogumbo
4745 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4747 (name "ruby-nokogumbo")
4748 (version (string-append "1.4.7-1." (string-take commit 8)))
4750 ;; We use the git reference, because there's no Rakefile in the
4751 ;; published gem and the tarball on Github is outdated.
4754 (url "https://github.com/rubys/nokogumbo.git")
4755 (commit "d56f954d20a")))
4756 (file-name (string-append name "-" version "-checkout"))
4759 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4760 (build-system ruby-build-system)
4762 `(#:modules ((guix build ruby-build-system)
4766 (modify-phases %standard-phases
4767 (add-after 'unpack 'build-gemspec
4769 (substitute* "Rakefile"
4770 ;; Build Makefile even without a copy of gumbo-parser sources
4771 (("'gumbo-parser/src',") "")
4772 ;; We don't bundle gumbo-parser sources
4773 (("'gumbo-parser/src/\\*',") "")
4774 (("'gumbo-parser/visualc/include/\\*',") "")
4775 ;; The definition of SOURCES will be cut in gemspec, and
4776 ;; "FileList" will be undefined.
4777 (("SOURCES \\+ FileList\\[")
4778 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4780 ;; Copy the Rakefile and cut out the gemspec.
4781 (copy-file "Rakefile" ".gemspec")
4782 (with-atomic-file-replacement ".gemspec"
4784 (let loop ((line (read-line in 'concat))
4786 (if (eof-object? line)
4788 (let ((skip-next? (if skipping?
4789 (not (string-prefix? "SPEC =" line))
4790 (string-prefix? "end" line))))
4791 (when (or (not skipping?)
4792 (and skipping? (not skip-next?)))
4793 (format #t "~a" line)
4795 (loop (read-line in 'concat) skip-next?))))))
4798 `(("gumbo-parser" ,gumbo-parser)))
4800 `(("ruby-nokogiri" ,ruby-nokogiri)))
4801 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4803 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4804 access the result as a Nokogiri parsed document.")
4805 (home-page "https://github.com/rubys/nokogumbo/")
4806 (license license:asl2.0))))
4808 (define-public ruby-sanitize
4810 (name "ruby-sanitize")
4814 ;; The gem does not include the Rakefile, so we download the
4815 ;; release tarball from Github.
4816 (uri (string-append "https://github.com/rgrove/"
4817 "sanitize/archive/v" version ".tar.gz"))
4818 (file-name (string-append name "-" version ".tar.gz"))
4821 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4822 (build-system ruby-build-system)
4824 `(("ruby-crass" ,ruby-crass)
4825 ("ruby-nokogiri" ,ruby-nokogiri)
4826 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4828 `(("bundler" ,bundler)
4829 ("ruby-minitest" ,ruby-minitest)
4830 ("ruby-redcarpet" ,ruby-redcarpet)
4831 ("ruby-yard" ,ruby-yard)))
4832 (synopsis "Whitelist-based HTML and CSS sanitizer")
4834 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4835 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4836 unacceptable HTML and/or CSS from a string.")
4837 (home-page "https://github.com/rgrove/sanitize/")
4838 (license license:expat)))
4840 (define-public ruby-oj
4847 ;; Version on rubygems.org does not contain Rakefile, so download from
4850 (url "https://github.com/ohler55/oj")
4851 (commit (string-append "v" version))))
4852 (file-name (git-file-name name version))
4855 "1fqx58pwjiln7053lw2jy6ns4agcpxq2ac4f2fkd2ca3fxwpmh03"))))
4856 (build-system ruby-build-system)
4858 '(#:test-target "test_all"
4860 (modify-phases %standard-phases
4861 (add-before 'check 'disable-bundler
4863 (substitute* "Rakefile"
4864 (("Bundler\\.with_clean_env") "1.times")
4865 (("bundle exec ") "")))))))
4867 `(("bundler" ,bundler)
4868 ("ruby-rspec" ,ruby-rspec)
4869 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4870 (synopsis "JSON parser for Ruby optimized for speed")
4872 "Oj is a JSON parser and generator for Ruby, where the encoding and
4873 decoding of JSON is implemented as a C extension to Ruby.")
4874 (home-page "http://www.ohler.com/oj/")
4875 (license (list license:expat ; Ruby code
4876 license:bsd-3)))) ; extension code
4878 (define-public ruby-ox
4885 (uri (rubygems-uri "ox" version))
4888 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4889 (build-system ruby-build-system)
4891 '(#:tests? #f)) ; no tests
4892 (synopsis "Optimized XML library for Ruby")
4894 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4895 written as a native C extension. It was designed to be an alternative to
4896 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4897 alternative to Marshal for Object serialization. ")
4898 (home-page "http://www.ohler.com/ox")
4899 (license license:expat)))
4901 (define-public ruby-redcloth
4903 (name "ruby-redcloth")
4907 (uri (rubygems-uri "RedCloth" version))
4910 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4911 (build-system ruby-build-system)
4913 `(#:tests? #f ; no tests
4915 (modify-phases %standard-phases
4916 ;; Redcloth has complicated rake tasks to build various versions for
4917 ;; multiple targets using RVM. We don't want this so we just use the
4918 ;; existing gemspec.
4921 (invoke "gem" "build" "redcloth.gemspec"))))))
4923 `(("bundler" ,bundler)
4924 ("ruby-diff-lcs" ,ruby-diff-lcs)
4925 ("ruby-rspec-2" ,ruby-rspec-2)))
4926 (synopsis "Textile markup language parser for Ruby")
4928 "RedCloth is a Ruby parser for the Textile markup language.")
4929 (home-page "http://redcloth.org")
4930 (license license:expat)))
4932 (define-public ruby-pg
4939 (uri (rubygems-uri "pg" version))
4942 "0fmnyxcyrvgdbgq7m09whgn9i8rwfybk0w8aii1nc4g5kqw0k2jy"))))
4943 (build-system ruby-build-system)
4945 '(#:test-target "spec"))
4947 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4948 ("ruby-hoe" ,ruby-hoe)
4949 ("ruby-rspec" ,ruby-rspec)))
4951 `(("postgresql" ,postgresql)))
4952 (synopsis "Ruby interface to PostgreSQL")
4953 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4954 with PostgreSQL 9.0 and later.")
4955 (home-page "https://bitbucket.org/ged/ruby-pg")
4956 (license license:ruby)))
4958 (define-public ruby-byebug
4960 (name "ruby-byebug")
4965 (uri (rubygems-uri "byebug" version))
4968 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4969 (build-system ruby-build-system)
4971 '(#:tests? #f)) ; no tests
4972 (synopsis "Debugger for Ruby 2")
4973 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4974 TracePoint C API for execution control and the Debug Inspector C API for call
4975 stack navigation. The core component provides support that front-ends can
4976 build on. It provides breakpoint handling and bindings for stack frames among
4977 other things and it comes with a command line interface.")
4978 (home-page "https://github.com/deivid-rodriguez/byebug")
4979 (license license:bsd-2)))
4981 (define-public ruby-netrc
4987 (uri (rubygems-uri "netrc" version))
4990 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4991 (build-system ruby-build-system)
4994 (modify-phases %standard-phases
4996 ;; There is no Rakefile and minitest can only run one file at once,
4997 ;; so we have to iterate over all test files.
5000 (invoke "ruby" "-Itest" file))
5001 (find-files "./test" "test_.*\\.rb")))))))
5003 `(("ruby-minitest" ,ruby-minitest)))
5004 (synopsis "Library to read and update netrc files")
5006 "This library can read and update netrc files, preserving formatting
5007 including comments and whitespace.")
5008 (home-page "https://github.com/geemus/netrc")
5009 (license license:expat)))
5011 (define-public ruby-unf-ext
5013 (name "ruby-unf-ext")
5017 (uri (rubygems-uri "unf_ext" version))
5020 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
5021 (build-system ruby-build-system)
5024 (modify-phases %standard-phases
5025 (add-after 'build 'build-ext
5026 (lambda _ (invoke "rake" "compile:unf_ext"))))))
5028 `(("bundler" ,bundler)
5029 ("ruby-rake-compiler" ,ruby-rake-compiler)
5030 ("ruby-test-unit" ,ruby-test-unit)))
5031 (synopsis "Unicode normalization form support library")
5033 "This package provides unicode normalization form support for Ruby.")
5034 (home-page "https://github.com/knu/ruby-unf_ext")
5035 (license license:expat)))
5037 (define-public ruby-tdiff
5038 ;; Use a newer than released snapshot so that rspec-2 is not required.
5039 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
5042 (version (string-append "0.3.3-1." (string-take commit 8)))
5046 (url "https://github.com/postmodern/tdiff.git")
5048 (file-name (string-append name "-" version "-checkout"))
5051 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
5052 (build-system ruby-build-system)
5054 `(("ruby-rspec" ,ruby-rspec)
5055 ("ruby-yard" ,ruby-yard)
5056 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5057 (synopsis "Calculate the differences between two tree-like structures")
5059 "This library provides functions to calculate the differences between two
5060 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
5061 (home-page "https://github.com/postmodern/tdiff")
5062 (license license:expat))))
5064 (define-public ruby-nokogiri-diff
5065 ;; Use a newer than released snapshot so that rspec-2 is not required.
5066 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
5068 (name "ruby-nokogiri-diff")
5069 (version (string-append "0.2.0-1." (string-take commit 8)))
5073 (url "https://github.com/postmodern/nokogiri-diff.git")
5075 (file-name (string-append name "-" version "-checkout"))
5078 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
5079 (build-system ruby-build-system)
5081 `(("ruby-tdiff" ,ruby-tdiff)
5082 ("ruby-nokogiri" ,ruby-nokogiri)))
5084 `(("ruby-rspec" ,ruby-rspec)
5085 ("ruby-yard" ,ruby-yard)
5086 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
5087 (synopsis "Calculate the differences between two XML/HTML documents")
5089 "@code{Nokogiri::Diff} adds the ability to calculate the
5090 differences (added or removed nodes) between two XML/HTML documents.")
5091 (home-page "https://github.com/postmodern/nokogiri-diff")
5092 (license license:expat))))
5094 (define-public ruby-racc
5101 (uri (rubygems-uri "racc" version))
5104 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
5105 (build-system ruby-build-system)
5107 `(("ruby-hoe" ,ruby-hoe)
5108 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5109 (synopsis "LALR(1) parser generator for Ruby")
5111 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
5112 generates Ruby program.")
5113 (home-page "http://i.loveruby.net/en/projects/racc/")
5115 ;; Generally licensed under the LGPL2.1, and some files also
5116 ;; available under the same license as Ruby.
5120 (define-public ruby-rack
5127 ;; Download from GitHub so that the patch can be applied.
5129 (url "https://github.com/rack/rack")
5131 (file-name (git-file-name name version))
5134 "1n7z4g1x6yxip096cdc04wq7yk7ywpinq28g2xjb46r4nlv5h0j6"))
5135 ;; Ignore test which fails inside the build environment but works
5137 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
5138 (build-system ruby-build-system)
5141 (modify-phases %standard-phases
5142 (add-before 'check 'fix-tests
5144 ;; A few of the tests use the length of a file on disk for
5145 ;; Content-Length and Content-Range headers. However, this file
5146 ;; has a shebang in it which an earlier phase patches, growing
5147 ;; the file size from 193 to 239 bytes when the store prefix is
5149 (let ((size-diff (- (string-length (which "ruby"))
5150 (string-length "/usr/bin/env ruby"))))
5151 (substitute* '("test/spec_file.rb")
5153 (number->string (+ 193 size-diff)))
5154 (("bytes(.)22-33" all delimiter)
5155 (string-append "bytes"
5157 (number->string (+ 22 size-diff))
5159 (number->string (+ 33 size-diff))))))
5161 (add-before 'reset-gzip-timestamps 'make-files-writable
5162 (lambda* (#:key outputs #:allow-other-keys)
5163 ;; Make sure .gz files are writable so that the
5164 ;; 'reset-gzip-timestamps' phase can do its work.
5165 (let ((out (assoc-ref outputs "out")))
5166 (for-each make-file-writable
5167 (find-files out "\\.gz$"))
5170 `(("ruby-minitest" ,ruby-minitest)
5171 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
5174 `(("ruby-concurrent" ,ruby-concurrent)))
5175 (synopsis "Unified web application interface for Ruby")
5176 (description "Rack provides a minimal, modular and adaptable interface for
5177 developing web applications in Ruby. By wrapping HTTP requests and responses,
5178 it unifies the API for web servers, web frameworks, and software in between
5179 into a single method call.")
5180 (home-page "https://rack.github.io/")
5181 (license license:expat)))
5183 (define-public ruby-rack-test
5185 (name "ruby-rack-test")
5190 (uri (rubygems-uri "rack-test" version))
5193 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
5194 (build-system ruby-build-system)
5196 ;; Disable tests because of circular dependencies: requires sinatra,
5197 ;; which requires rack-protection, which requires rack-test. Instead
5198 ;; simply require the library.
5200 (modify-phases %standard-phases
5203 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
5205 `(("ruby-rack" ,ruby-rack)))
5206 (synopsis "Testing API for Rack applications")
5208 "Rack::Test is a small, simple testing API for Rack applications. It can
5209 be used on its own or as a reusable starting point for Web frameworks and
5210 testing libraries to build on.")
5211 (home-page "https://github.com/rack-test/rack-test")
5212 (license license:expat)))
5214 (define-public ruby-rack-protection
5216 (name "ruby-rack-protection")
5221 (uri (rubygems-uri "rack-protection" version))
5224 "15167q25rmxipqwi6hjqj3i1byi9iwl3xq9b7mdar7qiz39pmjsk"))))
5225 (build-system ruby-build-system)
5227 '(;; Tests missing from the gem.
5230 `(("ruby-rack" ,ruby-rack)))
5232 `(("bundler" ,bundler)
5233 ("ruby-rspec" ,ruby-rspec-2)
5234 ("ruby-rack-test" ,ruby-rack-test)))
5235 (synopsis "Rack middleware that protects against typical web attacks")
5236 (description "Rack middleware that can be used to protect against typical
5237 web attacks. It can protect all Rack apps, including Rails. For instance, it
5238 protects against cross site request forgery, cross site scripting,
5239 clickjacking, directory traversal, session hijacking and IP spoofing.")
5240 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
5241 (license license:expat)))
5243 (define-public ruby-rainbow
5245 (name "ruby-rainbow")
5250 (uri (rubygems-uri "rainbow" version))
5253 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
5254 (build-system ruby-build-system)
5257 (modify-phases %standard-phases
5258 ;; Run rspec directly, to avoid requiring Rubocop which is used from
5261 (lambda* (#:key tests? #:allow-other-keys)
5266 `(("bundler" ,bundler)
5267 ("ruby-rspec" ,ruby-rspec)))
5268 (synopsis "Colorize printed text on ANSI terminals")
5270 "@code{rainbow} provides a string presenter object to colorize strings by
5271 wrapping them in ANSI escape codes.")
5272 (home-page "https://github.com/sickill/rainbow")
5273 (license license:expat)))
5275 (define-public ruby-rr
5282 (uri (rubygems-uri "rr" version))
5285 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
5286 (build-system ruby-build-system)
5288 '(#:tests? #f)) ; test files not included
5290 `(("bundler" ,bundler)
5291 ("ruby-rspec" ,ruby-rspec)))
5292 (synopsis "Ruby test double framework")
5294 "RR is a test double framework that features a rich selection of double
5295 techniques and a terse syntax.")
5296 (home-page "https://rr.github.io/rr/")
5297 (license license:expat)))
5299 (define-public ruby-rest-client
5301 (name "ruby-rest-client")
5306 (uri (rubygems-uri "rest-client" version))
5309 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
5310 (build-system ruby-build-system)
5313 (modify-phases %standard-phases
5314 (add-before 'check 'remove-unnecessary-development-dependencies
5316 (substitute* "rest-client.gemspec"
5317 ;; Remove rubocop as it's unused. Rubocop also indirectly
5318 ;; depends on this package through ruby-parser and ruby-ast so
5319 ;; this avoids a dependency loop.
5320 ((".*rubocop.*") "\n")
5321 ;; Remove pry as it's unused, it's a debugging tool
5323 ;; Remove an unnecessarily strict rdoc dependency
5324 ((".*rdoc.*") "\n"))
5326 (add-before 'check 'delete-network-dependent-tests
5328 (delete-file "spec/integration/request_spec.rb")
5329 (delete-file "spec/integration/httpbin_spec.rb")
5332 `(("ruby-http-cookie" ,ruby-http-cookie)
5333 ("ruby-mime-types" ,ruby-mime-types)
5334 ("ruby-netrc" ,ruby-netrc)))
5336 `(("bundler" ,bundler)
5337 ("ruby-webmock" ,ruby-webmock-2)
5338 ("ruby-rspec" ,ruby-rspec)))
5339 (synopsis "Simple HTTP and REST client for Ruby")
5341 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
5342 inspired by the Sinatra microframework style of specifying actions:
5343 @code{get}, @code{put}, @code{post}, @code{delete}.")
5344 (home-page "https://github.com/rest-client/rest-client")
5345 (license license:expat)))
5347 (define-public ruby-rubocop
5349 (name "ruby-rubocop")
5354 (uri (rubygems-uri "rubocop" version))
5357 "0m88b1bgbhmmbdnz2xv6n0il0j4q5qm9jbc0vf1zsaxmxqp06nx9"))))
5358 (build-system ruby-build-system)
5360 '(;; No included tests
5363 `(("ruby-parser" ,ruby-parser)
5364 ("ruby-powerpack" ,ruby-powerpack)
5365 ("ruby-rainbow" ,ruby-rainbow)
5366 ("ruby-progressbar" ,ruby-progressbar)
5367 ("ruby-parallel" ,ruby-parallel)
5368 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
5369 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
5370 (synopsis "Ruby code style checking tool")
5372 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
5373 the community-driven Ruby Style Guide.")
5374 (home-page "https://github.com/rubocop-hq/rubocop")
5375 (license license:expat)))
5377 (define-public ruby-contest
5379 (name "ruby-contest")
5384 (uri (rubygems-uri "contest" version))
5387 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
5388 (build-system ruby-build-system)
5389 (synopsis "Write declarative tests using nested contexts")
5391 "Contest allows writing declarative @code{Test::Unit} tests using nested
5392 contexts without performance penalties.")
5393 (home-page "https://github.com/citrusbyte/contest")
5394 (license license:expat)))
5396 (define-public ruby-creole
5398 (name "ruby-creole")
5403 (uri (rubygems-uri "creole" version))
5406 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
5407 (build-system ruby-build-system)
5409 `(("ruby-bacon" ,ruby-bacon)))
5410 (synopsis "Creole markup language converter")
5412 "Creole is a lightweight markup language and this library for converting
5413 creole to @code{HTML}.")
5414 (home-page "https://github.com/minad/creole")
5415 (license license:ruby)))
5417 (define-public ruby-docile
5419 (name "ruby-docile")
5424 (uri (rubygems-uri "docile" version))
5427 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
5428 (build-system ruby-build-system)
5430 '(#:tests? #f)) ; needs github-markup, among others
5431 (synopsis "Ruby EDSL helper library")
5432 (description "Docile is a Ruby library that provides an interface for
5433 creating embedded domain specific languages (EDSLs) that manipulate existing
5435 (home-page "https://ms-ati.github.io/docile/")
5436 (license license:expat)))
5438 (define-public ruby-gherkin
5440 (name "ruby-gherkin")
5445 (uri (rubygems-uri "gherkin" version))
5448 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
5449 (build-system ruby-build-system)
5451 `(("bundler" ,bundler)))
5453 '(#:tests? #f)) ; needs simplecov, among others
5454 (synopsis "Gherkin parser for Ruby")
5455 (description "Gherkin is a parser and compiler for the Gherkin language.
5456 It is intended be used by all Cucumber implementations to parse
5457 @file{.feature} files.")
5458 (home-page "https://github.com/cucumber-attic/gherkin")
5459 (license license:expat)))
5461 (define-public ruby-aruba
5468 (uri (rubygems-uri "aruba" version))
5471 "0l2mfpdxc03gdrbwc2hv4vdhjhqhfcdp6d02j05j64ncpi9srlqn"))))
5472 (build-system ruby-build-system)
5474 '(#:test-target "spec"
5476 (modify-phases %standard-phases
5477 (add-after 'unpack 'patch
5479 (substitute* "spec/aruba/api_spec.rb"
5480 ;; This resolves some errors in the specs
5482 ;; undefined method `parse' for Time:Class
5483 (("require 'spec_helper'")
5484 "require 'spec_helper'\nrequire 'time'"))
5485 ;; Avoid shebang issues in this spec file
5486 (substitute* "spec/aruba/matchers/command_spec.rb"
5487 (("/usr/bin/env bash")
5490 (add-before 'check 'remove-unnecessary-dependencies
5492 (substitute* "Gemfile"
5493 ((".*byebug.*") "\n")
5497 ((".*kramdown.*") "\n")
5498 ((".*rubocop.*") "\n")
5499 ((".*cucumber-pro.*") "\n")
5500 ((".*cucumber.*") "\n")
5501 ((".*license_finder.*") "\n")
5502 ((".*rake.*") "gem 'rake'\n")
5503 ((".*relish.*") "\n"))
5504 (substitute* "aruba.gemspec"
5505 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
5506 "spec.add_runtime_dependency 'cucumber'"))
5508 (add-before 'check 'set-home
5509 (lambda _ (setenv "HOME" "/tmp") #t)))))
5511 `(("bundler" ,bundler)
5512 ("ruby-rspec" ,ruby-rspec)
5513 ("ruby-fuubar" ,ruby-fuubar)
5514 ("ruby-simplecov" ,ruby-simplecov)))
5516 `(("ruby-childprocess" ,ruby-childprocess)
5517 ("ruby-contracts" ,ruby-contracts)
5518 ("ruby-cucumber" ,ruby-cucumber)
5519 ("ruby-ffi" ,ruby-ffi)
5520 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
5521 ("ruby-thor" ,ruby-thor)
5522 ("ruby-yard" ,ruby-yard)))
5523 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
5525 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
5526 command-line applications. It supports applications written in any
5528 (home-page "https://github.com/cucumber/aruba")
5529 (license license:expat)))
5531 ;; A version of ruby-aruba without tests run so that circular dependencies can
5533 (define ruby-aruba-without-tests
5535 (inherit ruby-aruba)
5536 (arguments '(#:tests? #f))
5538 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
5539 ,@(alist-delete "ruby-cucumber"
5540 (package-propagated-inputs ruby-aruba))))
5541 (native-inputs '())))
5543 (define-public ruby-cucumber
5545 (name "ruby-cucumber")
5551 (url "https://github.com/cucumber/cucumber-ruby.git")
5552 (commit (string-append "v" version))))
5553 (file-name (git-file-name name version))
5556 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
5557 (build-system ruby-build-system)
5559 '(#:test-target "spec"
5561 (modify-phases %standard-phases
5562 ;; Don't run or require rubocop, the code linting tool, as this is a
5564 (add-after 'unpack 'dont-run-rubocop
5566 (substitute* "Rakefile"
5567 ((".*rubocop/rake\\_task.*") "")
5568 ((".*RuboCop.*") ""))
5571 `(("ruby-builder" ,ruby-builder)
5572 ("ruby-cucumber-core" ,ruby-cucumber-core)
5573 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
5574 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
5575 ("ruby-diff-lcs" ,ruby-diff-lcs)
5576 ("ruby-gherkin" ,ruby-gherkin)
5577 ("ruby-multi-json" ,ruby-multi-json)
5578 ("ruby-multi-test" ,ruby-multi-test)))
5580 `(("bundler" ,bundler)
5581 ;; Use a untested version of aruba, to avoid a circular dependency, as
5582 ;; ruby-aruba depends on ruby-cucumber.
5583 ("ruby-aruba", ruby-aruba-without-tests)
5584 ("ruby-rspec" ,ruby-rspec)
5585 ("ruby-pry" ,ruby-pry)
5586 ("ruby-nokogiri" ,ruby-nokogiri)))
5587 (synopsis "Describe automated tests in plain language")
5589 "Cucumber is a tool for running automated tests written in plain
5590 language. It's designed to support a Behaviour Driven Development (BDD)
5591 software development workflow.")
5592 (home-page "https://cucumber.io/")
5593 (license license:expat)))
5595 (define ruby-cucumber-without-tests
5596 (package (inherit ruby-cucumber)
5602 (define-public ruby-cucumber-core
5604 (name "ruby-cucumber-core")
5605 ;; Stick to major version 3, until version 4 of Cucumber is released.
5610 (uri (rubygems-uri "cucumber-core" version))
5613 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
5614 (build-system ruby-build-system)
5616 `(("ruby-backports" ,ruby-backports)
5617 ("ruby-gherkin" ,ruby-gherkin)
5618 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
5620 `(("bundler" ,bundler)))
5622 '(#:tests? #f)) ; needs simplecov, among others
5623 (synopsis "Core library for the Cucumber BDD app")
5624 (description "Cucumber is a tool for running automated tests
5625 written in plain language. Because they're written in plain language,
5626 they can be read by anyone on your team. Because they can be read by
5627 anyone, you can use them to help improve communication, collaboration
5628 and trust on your team.")
5629 (home-page "https://cucumber.io/")
5630 (license license:expat)))
5632 (define-public ruby-cucumber-expressions
5634 (name "ruby-cucumber-expressions")
5639 (uri (rubygems-uri "cucumber-expressions" version))
5642 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
5643 (build-system ruby-build-system)
5645 '(#:test-target "spec"))
5647 `(("bundler" ,bundler)
5648 ("ruby-rspec" ,ruby-rspec)
5649 ("ruby-simplecov" ,ruby-simplecov)))
5650 (synopsis "Simpler alternative to Regular Expressions")
5651 (description "Cucumber Expressions offer similar functionality to Regular
5652 Expressions, with a syntax that is easier to read and write. Cucumber
5653 Expressions are extensible with parameter types.")
5654 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
5655 (license license:expat)))
5657 (define-public ruby-cucumber-wire
5659 (name "ruby-cucumber-wire")
5660 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
5661 ;; 3, and Cucumber 4 hasn't been released yet.
5666 (uri (rubygems-uri "cucumber-wire" version))
5669 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
5670 (build-system ruby-build-system)
5672 '(;; TODO: Currently, the tests can't be run as cucumber is required,
5673 ;; which would lead to a circular dependency.
5675 #:test-target "default"
5677 (modify-phases %standard-phases
5678 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
5680 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
5683 `(("bundler" ,bundler)
5684 ("ruby-rspec" ,ruby-rspec)))
5685 (synopsis "Cucumber wire protocol plugin")
5687 "Cucumber's wire protocol allows step definitions to be implemented and
5688 invoked on any platform.")
5689 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
5690 (license license:expat)))
5692 (define-public ruby-cucumber-tag-expressions
5694 (name "ruby-cucumber-tag-expressions")
5699 (uri (rubygems-uri "cucumber-tag_expressions" version))
5702 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
5703 (build-system ruby-build-system)
5706 (modify-phases %standard-phases
5712 `(("ruby-rspec" ,ruby-rspec)))
5713 (synopsis "Cucumber tag expressions for Ruby")
5715 "Cucumber tag expression parser for Ruby. A tag expression is an infix
5716 boolean expression used by Cucumber.")
5717 (home-page "https://github.com/cucumber/tag-expressions-ruby")
5718 (license license:expat)))
5720 (define-public ruby-bindex
5722 (name "ruby-bindex")
5727 (uri (rubygems-uri "bindex" version))
5730 "1wvhf4v8sk5x8li03pcc0v0wglmyv7ikvvg05bnms83dfy7s4k8i"))))
5731 (build-system ruby-build-system)
5733 '(#:test-target "default"))
5735 `(("bundler" ,bundler)
5736 ("ruby-rake-compiler" ,ruby-rake-compiler)))
5737 (synopsis "Provides access for bindings relating to Ruby exceptions")
5739 "@code{bindex} provides a way to access the bindings that relate to
5740 exceptions in Ruby, providing more information about the context in which the
5741 exception occurred.")
5742 (home-page "https://github.com/gsamokovarov/bindex")
5743 (license license:expat)))
5745 (define-public ruby-bio-logger
5747 (name "ruby-bio-logger")
5752 (uri (rubygems-uri "bio-logger" version))
5755 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5756 (build-system ruby-build-system)
5758 `(#:tests? #f)) ; rake errors, missing shoulda
5760 `(("ruby-log4r" ,ruby-log4r)))
5761 (synopsis "Log4r wrapper for Ruby")
5762 (description "Bio-logger is a wrapper around Log4r adding extra logging
5763 features such as filtering and fine grained logging.")
5764 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5765 (license license:expat)))
5767 (define-public ruby-yajl-ruby
5769 (name "ruby-yajl-ruby")
5774 (uri (rubygems-uri "yajl-ruby" version))
5777 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5778 (build-system ruby-build-system)
5780 '(#:test-target "spec"
5782 (modify-phases %standard-phases
5783 (add-before 'check 'patch-test-to-update-load-path
5785 (substitute* "spec/parsing/large_number_spec.rb"
5786 (("require \"yajl\"")
5787 "$LOAD_PATH << 'lib'; require 'yajl'"))
5790 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5791 ("ruby-rspec" ,ruby-rspec)))
5792 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5794 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5795 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5798 A modified copy of yajl is used, and included in the package.")
5799 (home-page "https://github.com/brianmario/yajl-ruby")
5800 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5801 license:bsd-3)))) ; Included, modified copy of yajl
5803 (define-public ruby-yard
5810 ;; Tests do not pass if we build from the distributed gem.
5812 (url "https://github.com/lsegal/yard")
5813 (commit (string-append "v" version))))
5814 (file-name (git-file-name name version))
5817 "1v48zz8hzazrg79jksj9siys21d2axvzijvkxw2j42zh86syi1wi"))))
5818 (build-system ruby-build-system)
5821 (modify-phases %standard-phases
5824 ;; Delete the Gemfile to avoid errors relating to it
5825 (delete-file "Gemfile")
5826 ;; $HOME needs to be set to somewhere writeable for tests to run
5827 (setenv "HOME" "/tmp")
5828 ;; Run tests without using 'rake' to avoid dependencies.
5829 (invoke "rspec"))))))
5831 `(("ruby-rspec" ,ruby-rspec)
5832 ("ruby-rack" ,ruby-rack)
5833 ("ruby-redcloth" ,ruby-redcloth)
5834 ("ruby-asciidoc" ,ruby-asciidoctor)))
5835 (synopsis "Documentation generation tool for Ruby")
5837 "YARD is a documentation generation tool for the Ruby programming
5838 language. It enables the user to generate consistent, usable documentation
5839 that can be exported to a number of formats very easily, and also supports
5840 extending for custom Ruby constructs such as custom class level definitions.")
5841 (home-page "https://yardoc.org")
5842 (license license:expat)))
5844 (define-public ruby-clap
5850 (uri (rubygems-uri "clap" version))
5853 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5854 (build-system ruby-build-system)
5855 ;; Clap needs cutest for running tests, but cutest needs clap.
5856 (arguments `(#:tests? #f))
5857 (synopsis "Command line argument parsing for simple applications")
5859 "Clap provides command line argument parsing features. It covers the
5860 simple case of executing code based on the flags or parameters passed.")
5861 (home-page "https://github.com/djanowski/cutest")
5862 (license license:expat)))
5864 (define-public ruby-cutest
5866 (name "ruby-cutest")
5870 (uri (rubygems-uri "cutest" version))
5873 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5874 (build-system ruby-build-system)
5876 `(("ruby-clap" ,ruby-clap)))
5877 (synopsis "Run tests in separate processes")
5879 "Cutest runs tests in separate processes to avoid shared state.")
5880 (home-page "https://github.com/djanowski/cutest")
5881 (license license:expat)))
5883 (define-public ruby-pygmentize
5885 (name "ruby-pygmentize")
5889 (uri (rubygems-uri "pygmentize" version))
5892 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5893 (build-system ruby-build-system)
5896 (modify-phases %standard-phases
5897 (add-after 'unpack 'fix-pygmentize-path
5899 (substitute* "lib/pygmentize.rb"
5900 (("\"/usr/bin/env python.*")
5901 (string-append "\"" (which "pygmentize") "\"\n")))
5903 (add-after 'build 'do-not-use-vendor-directory
5905 ;; Remove bundled pygments sources
5906 ;; FIXME: ruby-build-system does not support snippets.
5907 (delete-file-recursively "vendor")
5908 (substitute* "pygmentize.gemspec"
5909 (("\"vendor/\\*\\*/\\*\",") ""))
5912 `(("pygments" ,python-pygments)))
5914 `(("ruby-cutest" ,ruby-cutest)
5915 ("ruby-nokogiri" ,ruby-nokogiri)))
5916 (synopsis "Thin Ruby wrapper around pygmentize")
5918 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5920 (home-page "https://github.com/djanowski/pygmentize")
5921 (license license:expat)))
5923 (define-public ruby-eventmachine
5925 (name "ruby-eventmachine")
5930 (uri (rubygems-uri "eventmachine" version))
5933 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5934 (build-system ruby-build-system)
5936 '(#:tests? #f)) ; test suite tries to connect to google.com
5938 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5939 (synopsis "Single-threaded network event framework for Ruby")
5941 "EventMachine implements a single-threaded engine for arbitrary network
5942 communications. EventMachine wraps all interactions with sockets, allowing
5943 programs to concentrate on the implementation of network protocols. It can be
5944 used to create both network servers and clients.")
5945 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5946 (home-page "https://github.com/eventmachine/eventmachine")
5947 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5949 (define-public ruby-ruby-engine
5951 (name "ruby-ruby-engine")
5956 (uri (rubygems-uri "ruby_engine" version))
5959 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5960 (build-system ruby-build-system)
5963 (modify-phases %standard-phases
5964 (add-before 'check 'clean-up
5966 (delete-file "Gemfile.lock")
5967 (substitute* "ruby_engine.gemspec"
5968 ;; Remove unnecessary imports that would entail further
5971 ((".*<rubygems-tasks.*") "")
5972 ;; Remove extraneous .gem file
5973 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5974 ;; Soften rake dependency
5975 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5976 "%q<rake>.freeze, [\">= 10.0\"]")
5977 ;; Soften the rspec dependency
5978 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5979 "%q<rspec>.freeze, [\">= 2.4\"]"))
5980 (substitute* "Rakefile"
5981 (("require 'rubygems/tasks'") "")
5982 (("Gem::Tasks.new") ""))
5983 ;; Remove extraneous .gem file that otherwise gets installed.
5984 (delete-file "pkg/ruby_engine-1.0.0.gem")
5987 `(("bundler" ,bundler)
5988 ("ruby-rake" ,ruby-rake)
5989 ("ruby-rspec" ,ruby-rspec)))
5990 (synopsis "Simplifies checking for Ruby implementation")
5992 "@code{ruby_engine} provides an RubyEngine class that can be used to
5993 check which implementation of Ruby is in use. It can provide the interpreter
5994 name and provides query methods such as @{RubyEngine.mri?}.")
5995 (home-page "https://github.com/janlelis/ruby_engine")
5996 (license license:expat)))
5998 (define-public ruby-turn
6005 (uri (rubygems-uri "turn" version))
6008 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
6009 (build-system ruby-build-system)
6012 (modify-phases %standard-phases
6013 ;; Tests fail because turn changes its environment so can no longer
6014 ;; find test/unit. Instead simply test if the executable runs
6018 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
6020 `(("ruby-ansi" ,ruby-ansi)
6021 ("ruby-minitest" ,ruby-minitest-4)))
6022 (synopsis "Alternate set of alternative runners for MiniTest")
6024 "TURN provides a set of alternative runners for MiniTest which are both
6025 colorful and informative. TURN displays each test on a separate line with
6026 failures being displayed immediately instead of at the end of the tests. Note
6027 that TURN is no longer being maintained.")
6028 (home-page "http://rubygems.org/gems/turn")
6029 (license license:expat)))
6031 (define-public ruby-mimemagic
6033 (name "ruby-mimemagic")
6038 (uri (rubygems-uri "mimemagic" version))
6040 (base32 "04cp5sfbh1qx82yqxn0q75c7hlcx8y1dr5g3kyzwm4mx6wi2gifw"))))
6041 (build-system ruby-build-system)
6044 (modify-phases %standard-phases
6045 ;; This phase breaks the tests, as it patches some of the test data.
6046 (delete 'patch-source-shebangs))))
6048 `(("ruby-bacon" ,ruby-bacon)))
6049 (synopsis "Ruby library for MIME detection by extension or content")
6051 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
6052 extension or content, using the freedesktop.org.xml shared-mime-info
6054 (home-page "https://github.com/minad/mimemagic")
6055 (license license:expat)))
6057 (define-public ruby-mime-types-data
6059 (name "ruby-mime-types-data")
6060 (version "3.2016.0521")
6064 (uri (rubygems-uri "mime-types-data" version))
6067 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
6068 (build-system ruby-build-system)
6070 `(("ruby-hoe" ,ruby-hoe)))
6071 (synopsis "Registry for information about MIME media type definitions")
6073 "@code{mime-types-data} provides a registry for information about
6074 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
6075 be used with the Ruby mime-types library or other software to determine
6076 defined filename extensions for MIME types, or to use filename extensions to
6077 look up the likely MIME type definitions.")
6078 (home-page "https://github.com/mime-types/mime-types-data/")
6079 (license license:expat)))
6081 (define-public ruby-mime-types
6083 (name "ruby-mime-types")
6088 (uri (rubygems-uri "mime-types" version))
6091 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
6092 (build-system ruby-build-system)
6094 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
6096 `(("ruby-hoe" ,ruby-hoe)
6097 ("ruby-fivemat" ,ruby-fivemat)
6098 ("ruby-minitest-focus" ,ruby-minitest-focus)
6099 ("ruby-minitest-rg" ,ruby-minitest-rg)
6100 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
6101 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
6102 (synopsis "Library and registry for MIME content type definitions")
6103 (description "The mime-types library provides a library and registry for
6104 information about Multipurpose Internet Mail Extensions (MIME) content type
6105 definitions. It can be used to determine defined filename extensions for MIME
6106 types, or to use filename extensions to look up the likely MIME type
6108 (home-page "https://github.com/mime-types/ruby-mime-types")
6109 (license license:expat)))
6111 (define-public ruby-fivemat
6113 (name "ruby-fivemat")
6118 (uri (rubygems-uri "fivemat" version))
6121 "0pzlycasvwmg4bbx7plllpqnhd9zlmmff8l2w3yii86nrm2nvf9n"))))
6122 (build-system ruby-build-system)
6124 `(#:tests? #f)) ; no tests
6125 (synopsis "Each test file given its own line of dots")
6127 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
6128 its own line of dots during testing. It aims to provide test output that is
6129 neither too verbose nor too minimal.")
6130 (home-page "https://github.com/tpope/fivemat")
6131 (license license:expat)))
6133 (define-public ruby-sqlite3
6135 (name "ruby-sqlite3")
6140 (uri (rubygems-uri "sqlite3" version))
6143 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
6144 (build-system ruby-build-system)
6147 (modify-phases %standard-phases
6148 (add-before 'check 'adjust-failing-test
6150 ;; XXX: This test fails with SQLite versions >= 3.21.
6151 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
6152 (substitute* "test/test_integration_resultset.rb"
6153 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
6155 (add-before 'check 'add-gemtest-file
6156 ;; This file exists in the repository but is not distributed.
6157 (lambda _ (invoke "touch" ".gemtest"))))))
6159 `(("sqlite" ,sqlite)))
6161 `(("ruby-hoe" ,ruby-hoe)
6162 ("ruby-rake-compiler" ,ruby-rake-compiler)
6163 ("ruby-mini-portile" ,ruby-mini-portile)))
6164 (synopsis "Interface with SQLite3 databases")
6166 "This module allows Ruby programs to interface with the SQLite3 database
6169 "https://github.com/sparklemotion/sqlite3-ruby")
6170 (license license:bsd-3)))
6172 (define-public ruby-shoulda-context
6174 (name "ruby-shoulda-context")
6179 (uri (rubygems-uri "shoulda-context" version))
6182 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
6183 (build-system ruby-build-system)
6186 (modify-phases %standard-phases
6189 ;; Do not run tests to avoid circular dependence with rails.
6190 ;; Instead just import the library to test.
6191 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
6192 (synopsis "Test::Unit context framework extracted from Shoulda")
6194 "@code{shoulda-context} is the context framework extracted from Shoulda.
6195 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
6196 context, setup, and should blocks combine to produce natural test method
6198 (home-page "https://github.com/thoughtbot/shoulda-context")
6199 (license license:expat)))
6201 (define-public ruby-shoulda-matchers
6203 (name "ruby-shoulda-matchers")
6208 (uri (rubygems-uri "shoulda-matchers" version))
6211 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
6212 (build-system ruby-build-system)
6215 (modify-phases %standard-phases
6218 ;; Do not run tests to avoid circular dependence with rails. Instead
6219 ;; just import the library to test.
6220 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
6222 `(("ruby-activesupport" ,ruby-activesupport)))
6223 (synopsis "Collection of testing matchers extracted from Shoulda")
6225 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
6226 test common Rails functionality. These tests would otherwise be much longer,
6227 more complex, and error-prone.")
6228 (home-page "https://github.com/thoughtbot/shoulda-matchers")
6229 (license license:expat)))
6231 (define-public ruby-shoulda-matchers-2
6233 (inherit ruby-shoulda-matchers)
6237 (uri (rubygems-uri "shoulda-matchers" version))
6240 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
6242 (define-public ruby-shoulda
6244 (name "ruby-shoulda")
6249 (uri (rubygems-uri "shoulda" version))
6252 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
6253 (build-system ruby-build-system)
6256 (modify-phases %standard-phases
6258 ;; Don't run tests to avoid circular dependence with rails. Instead
6259 ;; just import the library to test.
6260 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
6262 `(("ruby-shoulda-context" ,ruby-shoulda-context)
6263 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
6264 (synopsis "Context framework and matchers for testing")
6266 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
6267 @code{shoulda-matchers} providing tools for writing tests.")
6268 (home-page "https://github.com/thoughtbot/shoulda")
6269 (license license:expat)))
6271 (define-public ruby-unf
6278 (uri (rubygems-uri "unf" version))
6281 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
6282 (build-system ruby-build-system)
6285 (modify-phases %standard-phases
6286 (add-before 'check 'add-dependency-to-bundler
6288 ;; test-unit is required but not provided by the bundler
6289 ;; environment. This is fixed in the upstream repository but fix
6290 ;; has not been released.
6291 (substitute* "Gemfile"
6292 (("^gemspec") "gem 'test-unit'\ngemspec"))
6295 `(("ruby-unf-ext" ,ruby-unf-ext)))
6297 `(("ruby-shoulda" ,ruby-shoulda)
6298 ("bundler" ,bundler)
6299 ("ruby-test-unit" ,ruby-test-unit)))
6300 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
6302 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
6303 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
6304 @code{java.text.Normalizer} on JRuby.")
6305 (home-page "https://github.com/knu/ruby-unf")
6306 (license license:bsd-2)))
6308 (define-public ruby-warden
6310 (name "ruby-warden")
6315 (uri (rubygems-uri "warden" version))
6318 "1fr9n9i9r82xb6i61fdw4xgc7zjv7fsdrr4k0njchy87iw9fl454"))))
6319 (build-system ruby-build-system)
6321 '(#:tests? #f)) ; No included tests
6323 `(("ruby-rack" ,ruby-rack)))
6324 (synopsis "Rack middleware providing authentication")
6326 "Warden is a Rack-based middleware that provides a mechanism for
6327 authentication in Ruby web applications.")
6328 (home-page "https://github.com/wardencommunity/warden")
6329 (license license:expat)))
6331 (define-public ruby-warden-oauth2
6333 (name "ruby-warden-oauth2")
6338 (uri (rubygems-uri "warden-oauth2" version))
6341 "1z9154lvzrnnfjbjkmirh4n811nygp6pm2fa6ikr7y1ysa4zv3cz"))))
6342 (build-system ruby-build-system)
6344 '(#:test-target "spec"
6346 (modify-phases %standard-phases
6347 (add-after 'unpack 'remove-unnecessary-dependencies
6349 (substitute* "Gemfile"
6350 ;; All of these gems relate to development, and are unnecessary
6351 ;; when running the tests
6352 (("gem 'guard-bundler'") "")
6353 (("gem 'guard'") "")
6354 (("gem 'guard-rspec'") "")
6355 (("gem 'rb-fsevent'") "")
6357 (("gem 'growl'") ""))
6359 ;; The test suite doesn't work with rspec@2, and this is incompatible
6360 ;; with the current version of Rake, so invoke Rspec directly
6362 (lambda* (#:key tests? #:allow-other-keys)
6364 (invoke "bundle" "exec" "rspec"))
6367 `(("ruby-warden" ,ruby-warden)))
6369 `(("bundler" ,bundler)
6370 ("ruby-rspec" ,ruby-rspec-2)
6371 ("ruby-rack-test" ,ruby-rack-test)))
6372 (synopsis "OAuth 2.0 strategies for Warden")
6374 "This library extends Warden to support OAuth 2.0 authorized API
6376 (home-page "https://github.com/opperator/warden-oauth2")
6377 (license license:expat)))
6379 (define-public ruby-webmock-2
6381 (name "ruby-webmock")
6386 (uri (rubygems-uri "webmock" version))
6389 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
6390 (build-system ruby-build-system)
6392 `(("bundler" ,bundler)
6393 ("ruby-rspec" ,ruby-rspec)))
6395 `(("ruby-addressable" ,ruby-addressable)
6396 ("ruby-crack" ,ruby-crack)
6397 ("ruby-hashdiff" ,ruby-hashdiff)))
6398 (synopsis "Allows stubbing and setting expectations on HTTP requests")
6400 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
6401 requests. This is useful when testing software.")
6402 (home-page "https://github.com/bblimke/webmock")
6403 (license license:expat)))
6405 (define-public ruby-unicode-display-width
6407 (name "ruby-unicode-display-width")
6412 (uri (rubygems-uri "unicode-display_width" version))
6415 "08kfiniak1pvg3gn5k6snpigzvhvhyg7slmm0s2qx5zkj62c1z2w"))))
6416 (build-system ruby-build-system)
6418 '(;; Test data not included.
6420 (synopsis "Determine the monospace display width of Ruby strings")
6422 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
6423 display width of strings in Ruby.")
6424 (home-page "https://github.com/janlelis/unicode-display_width")
6425 (license license:expat)))
6427 ;; There is another gem called 'ruby-version' so we use an underscore in this
6429 (define-public ruby_version
6431 (name "ruby_version")
6436 (uri (rubygems-uri "ruby_version" version))
6439 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
6440 (build-system ruby-build-system)
6443 (modify-phases %standard-phases
6444 (add-before 'check 'fix-dependencies
6446 ;; Remove the Gemfile.lock, as we want to use Guix packages at
6447 ;; whatever versions.
6448 (delete-file "Gemfile.lock")
6449 ;; Remove the incldued gem file as it's unnecessary.
6450 (delete-file "pkg/ruby_version-1.0.0.gem")
6451 (substitute* "ruby_version.gemspec"
6452 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
6454 ((".*rubygems-tasks.*") "\n")
6455 ;; Accept any version of rake and rspec
6456 (("%q<rake.*") "%q<rake>)\n")
6457 (("%q<rspec.*") "%q<rspec>)\n"))
6458 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
6460 (substitute* "Rakefile"
6461 (("^require 'rubygems/tasks'") "")
6462 (("Gem::Tasks.new") ""))
6465 `(("bundler" ,bundler)
6466 ("ruby-rspec" ,ruby-rspec)))
6467 (synopsis "Ruby library to help check the Ruby version")
6469 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
6470 checking for the right Ruby version in software.")
6471 (home-page "https://github.com/janlelis/ruby_version")
6472 (license license:expat)))
6474 (define-public ruby-websocket-driver
6476 (name "ruby-websocket-driver")
6481 (uri (rubygems-uri "websocket-driver" version))
6483 (base32 "1bxamwqldmy98hxs5pqby3andws14hl36ch78g0s81gaz9b91nj2"))))
6484 (build-system ruby-build-system)
6486 '(#:tests? #f)) ; no included tests
6488 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
6489 (synopsis "WebSocket protocol handler with pluggable I/O")
6491 "@code{websocket-driver} provides a complete implementation of the
6492 WebSocket protocols that can be hooked up to any TCP library")
6493 (home-page "https://github.com/faye/websocket-driver-ruby")
6494 (license license:expat)))
6496 (define-public ruby-websocket-extensions
6498 (name "ruby-websocket-extensions")
6503 (uri (rubygems-uri "websocket-extensions" version))
6506 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
6507 (build-system ruby-build-system)
6509 '(;; No included tests
6511 (synopsis "Generic extension manager for WebSocket connections")
6513 "@code{websocket-extensions} provides a container for registering
6514 extension plugins.")
6515 (home-page "https://github.com/faye/websocket-extensions-ruby")
6516 (license license:expat)))
6518 (define-public ruby-domain-name
6520 (name "ruby-domain-name")
6521 (version "0.5.20180417")
6525 (uri (rubygems-uri "domain_name" version))
6528 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
6529 (build-system ruby-build-system)
6532 (modify-phases %standard-phases
6533 (add-before 'check 'fix-versions
6535 ;; Fix NameError that appears to already be fixed upstream.
6536 (substitute* "Rakefile"
6537 (("DomainName::VERSION")
6538 "Bundler::GemHelper.gemspec.version"))
6539 ;; Loosen unnecessarily strict test-unit version specification.
6540 (substitute* "domain_name.gemspec"
6541 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
6544 `(("ruby-unf" ,ruby-unf)))
6546 `(("ruby-shoulda" ,ruby-shoulda)
6547 ("bundler" ,bundler)
6548 ("ruby-test-unit" ,ruby-test-unit)))
6549 (synopsis "Domain name manipulation library")
6551 "@code{domain_name} is a Domain name manipulation library. It parses a
6552 domain name ready for extracting the registered domain and TLD (Top Level
6553 Domain). It can also be used for cookie domain validation based on the Public
6555 (home-page "https://github.com/knu/ruby-domain_name")
6556 (license license:bsd-2)))
6558 (define-public ruby-http-cookie
6560 (name "ruby-http-cookie")
6565 (uri (rubygems-uri "http-cookie" version))
6568 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
6569 (build-system ruby-build-system)
6572 (modify-phases %standard-phases
6573 (add-before 'check 'add-dependency-to-bundler
6576 (substitute* "Rakefile"
6577 (("HTTP::Cookie::VERSION")
6578 "Bundler::GemHelper.gemspec.version"))
6581 `(("ruby-domain-name" ,ruby-domain-name)))
6583 `(("rubysimplecov" ,ruby-simplecov)
6584 ("bundler" ,bundler)
6585 ("ruby-sqlite3" ,ruby-sqlite3)
6586 ("ruby-test-unit" ,ruby-test-unit)))
6587 (synopsis "Handle HTTP Cookies based on RFC 6265")
6589 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
6590 RFC 6265. It has been designed with security, standards compliance and
6591 compatibility in mind, to behave just the same as today's major web browsers.
6592 It has built-in support for the legacy @code{cookies.txt} and
6593 @code{cookies.sqlite} formats of Mozilla Firefox.")
6594 (home-page "https://github.com/sparklemotion/http-cookie")
6595 (license license:expat)))
6597 (define-public ruby-httpclient
6599 (name "ruby-httpclient")
6604 (uri (rubygems-uri "httpclient" version))
6607 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
6608 (build-system ruby-build-system)
6610 '(;; TODO: Some tests currently fail
6612 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
6613 ;; 2 omissions, 0 notifications
6616 ;; 6.49 tests/s, 22.41 assertions/s
6619 (modify-phases %standard-phases
6621 (lambda* (#:key tests? #:allow-other-keys)
6628 `(("ruby-rack" ,ruby-rack)))
6630 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
6632 "The @code{httpclient} ruby library provides functionality related to
6633 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
6634 Cookie, multithreading and authentication (digest, NTLM) support.
6636 Also provided is a @command{httpclient} command, which can perform HTTP
6637 requests either using arguments or with an interactive prompt.")
6638 (home-page "https://github.com/nahi/httpclient")
6639 (license license:ruby)))
6641 (define-public ruby-ansi
6648 ;; Fetch from GitHub as the gem does not contain testing code.
6650 (url "https://github.com/rubyworks/ansi")
6652 (file-name (git-file-name name version))
6655 "1wsz7xxwl3vkh277jb7fd7akqnqqgbvalxzpjwniiqk8ghfprbi5"))))
6656 (build-system ruby-build-system)
6659 (modify-phases %standard-phases
6660 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
6661 ;; cycle ansi, qed, ansi. Instead simply test that the library can
6665 (invoke "ruby" "-Ilib" "-r" "ansi")))
6666 (add-before 'validate-runpath 'replace-broken-symlink
6667 (lambda* (#:key outputs #:allow-other-keys)
6668 (let* ((out (assoc-ref outputs "out"))
6669 (file (string-append
6670 out "/lib/ruby/vendor_ruby/gems/ansi-"
6671 ,version "/lib/ansi.yml")))
6672 ;; XXX: This symlink is broken since ruby 2.4.
6673 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6675 (symlink "../.index" file)
6677 (synopsis "ANSI escape code related libraries")
6679 "This package is a collection of ANSI escape code related libraries
6680 enabling ANSI colorization and stylization of console output. Included in the
6681 library are the @code{Code} module, which defines ANSI codes as constants and
6682 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
6683 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
6684 @code{Terminal} module which provides information about the current output
6686 (home-page "https://rubyworks.github.io/ansi/")
6687 (license license:bsd-2)))
6689 (define-public ruby-systemu
6691 (name "ruby-systemu")
6696 (uri (rubygems-uri "systemu" version))
6699 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
6700 (build-system ruby-build-system)
6703 (modify-phases %standard-phases
6704 (add-before 'check 'set-version
6706 (setenv "VERSION" ,version)
6708 (synopsis "Capture of stdout/stderr and handling of child processes")
6710 "Systemu can be used on any platform to return status, stdout, and stderr
6711 of any command. Unlike other methods like @code{open3} and @code{popen4}
6712 there is no danger of full pipes or threading issues hanging your process or
6714 (home-page "https://github.com/ahoward/systemu")
6715 (license license:ruby)))
6717 (define-public ruby-bio-commandeer
6719 (name "ruby-bio-commandeer")
6724 (uri (rubygems-uri "bio-commandeer" version))
6727 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
6728 (build-system ruby-build-system)
6731 (modify-phases %standard-phases
6733 ;; Run test without calling 'rake' so that jeweler is
6734 ;; not required as an input.
6736 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
6738 `(("ruby-bio-logger" ,ruby-bio-logger)
6739 ("ruby-systemu" ,ruby-systemu)))
6741 `(("bundler" ,bundler)
6742 ("ruby-rspec" ,ruby-rspec)))
6743 (synopsis "Simplified running of shell commands from within Ruby")
6745 "Bio-commandeer provides an opinionated method of running shell commands
6746 from within Ruby. The advantage of bio-commandeer over other methods of
6747 running external commands is that when something goes wrong, messages printed
6748 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
6749 detail to ease debugging.")
6750 (home-page "https://github.com/wwood/bioruby-commandeer")
6751 (license license:expat)))
6753 (define-public ruby-rubytest
6755 (name "ruby-rubytest")
6760 (uri (rubygems-uri "rubytest" version))
6763 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
6764 (build-system ruby-build-system)
6766 ;; Disable regular testing to break the cycle rubytest, qed, brass,
6767 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
6768 ;; simply test that the library can be require'd.
6770 (modify-phases %standard-phases
6773 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
6775 `(("ruby-ansi" ,ruby-ansi)))
6776 (synopsis "Universal test harness for Ruby")
6778 "Rubytest is a testing meta-framework for Ruby. It can handle any
6779 compliant test framework and can run tests from multiple frameworks in a
6781 (home-page "https://rubyworks.github.io/rubytest")
6782 (license license:bsd-2)))
6784 (define-public ruby-brass
6791 (uri (rubygems-uri "brass" version))
6794 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
6795 (build-system ruby-build-system)
6797 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
6798 ;; Instead simply test that the library can be require'd.
6800 (modify-phases %standard-phases
6803 (invoke "ruby" "-Ilib" "-r" "brass"))))))
6804 (synopsis "Basic foundational assertions framework")
6806 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
6807 foundational assertions framework for other assertion and test frameworks to
6809 (home-page "https://rubyworks.github.io/brass")
6810 (license license:bsd-2)))
6812 (define-public ruby-qed
6819 (uri (rubygems-uri "qed" version))
6822 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6823 (build-system ruby-build-system)
6825 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6826 ;; Instead simply test that the executable runs using --copyright.
6828 (modify-phases %standard-phases
6831 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6833 `(("ruby-ansi" ,ruby-ansi)
6834 ("ruby-brass" ,ruby-brass)))
6835 (synopsis "Test framework utilizing literate programming techniques")
6837 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6838 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6839 Development} (BDD) utilizing Literate Programming techniques. QED sits
6840 somewhere between lower-level testing tools like @code{Test::Unit} and
6841 requirement specifications systems like Cucumber.")
6842 (home-page "https://rubyworks.github.io/qed")
6843 (license license:bsd-2)))
6845 (define-public ruby-que
6848 (version "1.0.0.beta3")
6852 (uri (rubygems-uri "que" version))
6855 "0gr9pb814d4qj3ds98g6cjrdk7wv0yg8aqbm7c1lmgl87jkg8q04"))))
6856 (build-system ruby-build-system)
6858 '(#:tests? #f)) ; No included tests
6859 (synopsis "Job queue using PostgreSQL written in Ruby")
6861 "This package provides a job queue that uses PostgreSQL for storing jobs
6862 and locking between worker processes.")
6863 (home-page "https://github.com/chanks/que")
6864 (license license:expat)))
6866 (define-public ruby-ae
6873 ;; Fetch from github so tests are included.
6875 (url "https://github.com/rubyworks/ae")
6877 (file-name (git-file-name name version))
6880 "11299jj5ma8mi7b4majkyjy70y6zlqpgl8aql1c5lvfjavlpwmlp"))))
6881 (build-system ruby-build-system)
6884 (modify-phases %standard-phases
6886 (lambda _ (invoke "qed")))
6887 (add-before 'validate-runpath 'replace-broken-symlink
6888 (lambda* (#:key outputs #:allow-other-keys)
6889 (let* ((out (assoc-ref outputs "out"))
6890 (file (string-append
6891 out "/lib/ruby/vendor_ruby/gems/ae-"
6892 ,version "/lib/ae.yml")))
6893 ;; XXX: This symlink is broken since ruby 2.4.
6894 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6896 (symlink "../.index" file)
6899 `(("ruby-ansi" ,ruby-ansi)))
6901 `(("ruby-qed" ,ruby-qed)))
6902 (synopsis "Assertions library")
6904 "Assertive Expressive (AE) is an assertions library specifically designed
6905 for reuse by other test frameworks.")
6906 (home-page "https://rubyworks.github.io/ae/")
6907 (license license:bsd-2)))
6909 (define-public ruby-lemon
6916 (uri (rubygems-uri "lemon" version))
6919 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6920 (build-system ruby-build-system)
6923 (modify-phases %standard-phases
6924 (replace 'check (lambda _ (invoke "qed"))))))
6926 `(("ruby-ae" ,ruby-ae)
6927 ("ruby-ansi" ,ruby-ansi)
6928 ("ruby-rubytest" ,ruby-rubytest)))
6930 `(("ruby-qed" ,ruby-qed)))
6931 (synopsis "Test framework correlating code structure and test unit")
6933 "Lemon is a unit testing framework that enforces highly formal
6934 case-to-class and unit-to-method test construction. This enforcement can help
6935 focus concern on individual units of behavior.")
6936 (home-page "https://rubyworks.github.io/lemon")
6937 (license license:bsd-2)))
6939 (define-public ruby-rubytest-cli
6941 (name "ruby-rubytest-cli")
6946 (uri (rubygems-uri "rubytest-cli" version))
6949 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6950 (build-system ruby-build-system)
6952 `(#:tests? #f)) ; no tests
6954 `(("ruby-ansi" ,ruby-ansi)
6955 ("ruby-rubytest" ,ruby-rubytest)))
6956 (synopsis "Command-line interface for rubytest")
6958 "Rubytest CLI is a command-line interface for running tests for
6959 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6960 (home-page "https://rubyworks.github.io/rubytest-cli")
6961 (license license:bsd-2)))
6963 (define-public ruby-hashery
6965 (name "ruby-hashery")
6970 (uri (rubygems-uri "hashery" version))
6973 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6974 (build-system ruby-build-system)
6977 (modify-phases %standard-phases
6981 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6983 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6984 ("ruby-qed" ,ruby-qed)
6985 ("ruby-lemon" ,ruby-lemon)))
6986 (synopsis "Hash-like classes with extra features")
6988 "The Hashery is a tight collection of @code{Hash}-like classes.
6989 Included are the auto-sorting @code{Dictionary} class, the efficient
6990 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6991 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6992 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6993 standard @code{Hash} making it possible to subclass and augment to fit any
6994 specific use case.")
6995 (home-page "https://rubyworks.github.io/hashery")
6996 (license license:bsd-2)))
6998 (define-public ruby-rc4
7005 (uri (rubygems-uri "ruby-rc4" version))
7008 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
7009 (build-system ruby-build-system)
7012 (modify-phases %standard-phases
7015 (invoke "rspec" "spec/rc4_spec.rb"))))))
7017 `(("ruby-rspec" ,ruby-rspec-2)))
7018 (synopsis "Implementation of the RC4 algorithm")
7020 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
7021 (home-page "https://github.com/caiges/Ruby-RC4")
7022 (license license:expat)))
7024 (define-public ruby-afm
7031 (uri (rubygems-uri "afm" version))
7034 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
7035 (build-system ruby-build-system)
7037 `(("bundler" ,bundler)))
7038 (synopsis "Read Adobe Font Metrics (afm) files")
7040 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
7041 files and use the data therein.")
7042 (home-page "https://github.com/halfbyte/afm")
7043 (license license:expat)))
7045 (define-public ruby-ascii85
7047 (name "ruby-ascii85")
7052 (uri (rubygems-uri "Ascii85" version))
7055 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
7056 (build-system ruby-build-system)
7058 `(("bundler" ,bundler)))
7059 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
7061 "This library provides methods to encode and decode Ascii85
7062 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
7063 @dfn{Portable Document Format} (PDF) file formats.")
7064 (home-page "https://github.com/datawraith/ascii85gem")
7065 (license license:expat)))
7067 (define-public ruby-ttfunk
7069 (name "ruby-ttfunk")
7074 ;; fetch from github as the gem does not contain testing code
7076 (url "https://github.com/prawnpdf/ttfunk")
7078 (file-name (git-file-name name version))
7081 "0dx9891zcli0sjrslmsvrwalv86hbjbqlmbrcasnjr069v05h9v9"))))
7082 (build-system ruby-build-system)
7084 `(#:test-target "spec"
7086 (modify-phases %standard-phases
7087 (add-before 'build 'remove-ssh
7089 ;; remove dependency on an ssh key pair that doesn't exist
7090 (substitute* "ttfunk.gemspec"
7091 (("spec.signing_key.*") ""))
7093 (add-before 'check 'remove-rubocop
7095 ;; remove rubocop as a dependency as not needed for testing
7096 (substitute* "ttfunk.gemspec"
7097 (("spec.add_development_dependency\\('rubocop'.*") ""))
7098 (substitute* "Rakefile"
7099 (("require 'rubocop/rake_task'") "")
7100 (("RuboCop::RakeTask.new") ""))
7103 `(("ruby-rspec" ,ruby-rspec)
7104 ("ruby-yard" ,ruby-yard)
7105 ("bundler" ,bundler)))
7106 (synopsis "Font metrics parser for the Prawn PDF generator")
7108 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
7109 part of the Prawn PDF generator.")
7110 (home-page "https://github.com/prawnpdf/ttfunk")
7111 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
7113 (license (list license:gpl2 license:gpl3 license:ruby))))
7115 (define-public ruby-puma
7122 ;; Fetch from GitHub because distributed gem does not contain tests.
7124 (url "https://github.com/puma/puma")
7125 (commit (string-append "v" version))))
7126 (file-name (git-file-name name version))
7129 "1kj75k81iik3aj73pkc9ixj9rwf95ipkyma65n28m64dgw02qi1f"))))
7130 (build-system ruby-build-system)
7132 `(#:tests? #f ; Tests require an out-dated version of minitest.
7134 (modify-phases %standard-phases
7135 (add-before 'build 'fix-gemspec
7137 (substitute* "puma.gemspec"
7138 (("git ls-files") "find * |sort"))
7140 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
7142 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
7143 for Ruby/Rack applications. Puma is intended for use in both development and
7144 production environments. In order to get the best throughput, it is highly
7145 recommended that you use a Ruby implementation with real threads like Rubinius
7147 (home-page "https://puma.io/")
7148 (license license:expat)))
7150 (define-public ruby-hoe-git
7152 (name "ruby-hoe-git")
7157 (uri (rubygems-uri "hoe-git" version))
7160 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
7161 (build-system ruby-build-system)
7163 `(("ruby-hoe" ,ruby-hoe)
7165 (synopsis "Hoe plugins for tighter Git integration")
7167 "This package provides a set of Hoe plugins for tighter Git integration.
7168 It provides tasks to automate release tagging and pushing and changelog
7170 (home-page "https://github.com/jbarnette/hoe-git")
7171 (license license:expat)))
7173 (define-public ruby-sequel
7175 (name "ruby-sequel")
7180 (uri (rubygems-uri "sequel" version))
7183 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
7184 (build-system ruby-build-system)
7186 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
7187 (synopsis "Database toolkit for Ruby")
7188 (description "Sequel provides thread safety, connection pooling and a
7189 concise DSL for constructing SQL queries and table schemas. It includes a
7190 comprehensive ORM layer for mapping records to Ruby objects and handling
7191 associated records.")
7192 (home-page "http://sequel.jeremyevans.net")
7193 (license license:expat)))
7195 (define-public ruby-timecop
7197 (name "ruby-timecop")
7202 (uri (rubygems-uri "timecop" version))
7205 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
7206 (build-system ruby-build-system)
7209 (modify-phases %standard-phases
7210 (add-before 'check 'set-check-rubylib
7212 ;; Set RUBYLIB so timecop tests finds its own lib.
7213 (setenv "RUBYLIB" "lib")
7216 `(("bundler" ,bundler)
7217 ("ruby-minitest-rg" ,ruby-minitest-rg)
7218 ("ruby-mocha" ,ruby-mocha)
7219 ("ruby-activesupport" ,ruby-activesupport)))
7220 (synopsis "Test mocks for time-dependent functions")
7222 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
7223 making it easier to test time-dependent code. It provides a unified method to
7224 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
7226 (home-page "https://github.com/travisjeffery/timecop")
7227 (license license:expat)))
7229 (define-public ruby-concurrent
7231 (name "ruby-concurrent")
7236 ;; Download from GitHub because the rubygems version does not contain
7239 (url "https://github.com/ruby-concurrency/concurrent-ruby")
7240 (commit (string-append "v" version))))
7241 (file-name (git-file-name name version))
7244 "193q2k47vk7qdvv9hlhmmdxgy91xl4imapyk1ijdg9vgf46knyzj"))))
7245 (build-system ruby-build-system)
7247 `(#:test-target "ci"
7249 (modify-phases %standard-phases
7250 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
7252 ;; Delete extra gemspec files so 'first-gemspec' chooses the
7254 (delete-file "concurrent-ruby-edge.gemspec")
7255 (delete-file "concurrent-ruby-ext.gemspec")
7257 (replace 'replace-git-ls-files
7259 ;; XXX: The default substitution made by this phase is not fully
7260 ;; compatible with "git ls-files". The latter produces file names
7261 ;; such as "lib/foo", whereas ruby-build-system uses "find . [...]"
7262 ;; which gives "./lib/foo". That difference in turn breaks the
7263 ;; comparison against a glob pattern in this script.
7264 (substitute* "concurrent-ruby.gemspec"
7265 (("git ls-files") "find * -type f | sort"))
7267 (add-before 'build 'remove-jar-from-gemspec
7269 ;; The gemspec wants to include a JAR file that we do not build
7271 (substitute* "concurrent-ruby.gemspec"
7272 (("'lib/concurrent/concurrent_ruby.jar'")
7275 (add-before 'build 'remove-rake_compiler_dock-dependency
7277 ;; This library is only used when building for non-MRI targets.
7278 (substitute* "Rakefile"
7279 (("require 'rake_compiler_dock'")
7282 (add-before 'check 'remove-timecop-dependency
7283 ;; Remove timecop-dependent tests as having timecop as a depedency
7284 ;; causes circular depedencies.
7286 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
7287 (delete-file "spec/concurrent/scheduled_task_spec.rb")
7290 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7291 ("ruby-rspec" ,ruby-rspec)))
7292 (synopsis "Concurrency tools for Ruby")
7294 "This library provides modern concurrency tools including agents,
7295 futures, promises, thread pools, actors, supervisors, and more. It is
7296 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
7298 (home-page "http://www.concurrent-ruby.com")
7299 (license license:expat)))
7301 (define-public ruby-pkg-config
7303 (name "ruby-pkg-config")
7308 (uri (rubygems-uri "pkg-config" version))
7311 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
7312 (build-system ruby-build-system)
7314 ;; Tests require extra files not included in the gem.
7316 (synopsis "Detect libraries for compiling Ruby native extensions")
7318 "@code{pkg-config} can be used in your extconf.rb to properly detect need
7319 libraries for compiling Ruby native extensions.")
7320 (home-page "https://github.com/ruby-gnome2/pkg-config")
7321 (license license:lgpl2.0+)))
7323 (define-public ruby-net-http-digest-auth
7325 (name "ruby-net-http-digest-auth")
7330 (uri (rubygems-uri "net-http-digest_auth" version))
7333 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
7334 (build-system ruby-build-system)
7336 `(("ruby-hoe" ,ruby-hoe)))
7337 (synopsis "RFC 2617 HTTP digest authentication library")
7339 "This library implements HTTP's digest authentication scheme based on
7340 RFC 2617. This enables the use of the digest authentication scheme instead
7341 of the more insecure basic authentication scheme.")
7342 (home-page "https://github.com/drbrain/net-http-digest_auth")
7343 (license license:expat)))
7345 (define-public ruby-mail
7352 (uri (rubygems-uri "mail" version))
7355 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
7356 (build-system ruby-build-system)
7358 `(("ruby-mime-types" ,ruby-mime-types)))
7360 ;; Tests require extra gems not included in the Gemfile.
7361 ;; XXX: Try enabling this for the next version with mini_mime.
7363 (synopsis "Mail library for Ruby")
7365 "Mail is an internet library for Ruby that is designed to handle email
7366 generation, parsing and sending. The purpose of this library is to provide
7367 a single point of access to handle all email functions, including sending
7368 and receiving emails. All network type actions are done through proxy
7369 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
7371 Mail has been designed with a very simple object oriented system that
7372 really opens up the email messages you are parsing, if you know what you
7373 are doing, you can fiddle with every last bit of your email directly.")
7374 (home-page "https://github.com/mikel/mail")
7375 (license license:expat)))
7377 (define-public ruby-mathn
7384 (uri (rubygems-uri "mathn" version))
7387 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
7388 (build-system ruby-build-system)
7390 `(("bundler" ,bundler)
7391 ("ruby-rake-compiler" ,ruby-rake-compiler)))
7392 (synopsis "Extends math operations for increased precision")
7394 "This gem makes mathematical operations more precise in Ruby and
7395 integrates other mathematical standard libraries. Prior to Ruby 2.5,
7396 @code{mathn} was part of the Ruby standard library.")
7397 (home-page "https://github.com/ruby/mathn")
7398 (license license:bsd-2)))
7400 (define-public ruby-code-statistics
7402 (name "ruby-code-statistics")
7407 (uri (rubygems-uri "code_statistics" version))
7410 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
7411 (build-system ruby-build-system)
7413 `(#:tests? #f)) ; Not all test code is included in gem.
7414 (synopsis "Port of the rails 'rake stats' method")
7416 "This gem is a port of the rails 'rake stats' method so it can be made
7417 more robust and work for non rails projects.")
7418 (home-page "http://github.com/danmayer/code_statistics")
7419 (license license:expat)))
7421 (define-public ruby-rubypants
7423 (name "ruby-rubypants")
7427 (uri (rubygems-uri "rubypants" version))
7430 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
7431 (build-system ruby-build-system)
7433 '(#:tests? #f)) ; need Codecov
7434 (synopsis "Port of the smart-quotes library SmartyPants")
7436 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
7437 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
7438 and BBEdit that easily translates plain ASCII punctuation characters into
7439 smart typographic punctuation HTML entities.")
7440 (home-page "https://github.com/jmcnevin/rubypants")
7441 (license license:bsd-2)))
7443 (define-public ruby-org-ruby
7445 (name "ruby-org-ruby")
7449 (uri (rubygems-uri "org-ruby" version))
7452 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
7453 (build-system ruby-build-system)
7455 '(#:tests? #f)) ; no rakefile
7457 `(("ruby-rubypants" ,ruby-rubypants)))
7458 (synopsis "Org-mode parser written in Ruby")
7460 "Org-ruby is an org-mode parser written in Ruby. The most significant
7461 thing this library does today is convert org-mode files to HTML or Textile or
7463 (home-page "https://github.com/wallyqs/org-ruby")
7464 (license license:expat)))
7466 (define-public ruby-rake
7473 (uri (rubygems-uri "rake" version))
7476 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
7477 (build-system ruby-build-system)
7479 `(("bundler" ,bundler)))
7480 (synopsis "Rake is a Make-like program implemented in Ruby")
7482 "Rake is a Make-like program where tasks and dependencies are specified
7483 in standard Ruby syntax.")
7484 (home-page "https://github.com/ruby/rake")
7485 (license license:expat)))
7487 (define-public ruby-childprocess
7489 (name "ruby-childprocess")
7494 (uri (rubygems-uri "childprocess" version))
7497 "1ic028k8xgm2dds9mqnvwwx3ibaz32j8455zxr9f4bcnviyahya5"))))
7498 (build-system ruby-build-system)
7502 `(("bundler" ,bundler)
7503 ("ruby-rspec" ,ruby-rspec)))
7505 `(("ruby-ffi" ,ruby-ffi)))
7506 (synopsis "Control external programs running in the background, in Ruby")
7507 (description "@code{childprocess} provides a gem to control external
7508 programs running in the background, in Ruby.")
7509 (home-page "https://github.com/enkessler/childprocess")
7510 (license license:expat)))
7512 (define-public ruby-public-suffix
7514 (name "ruby-public-suffix")
7518 (uri (rubygems-uri "public_suffix" version))
7521 "0xnfv2j2bqgdpg2yq9i2rxby0w2sc9h5iyjkpaas2xknwrgmhdb0"))))
7522 (build-system ruby-build-system)
7525 (modify-phases %standard-phases
7526 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
7527 ;; including it as an input can lead to circular dependencies.
7528 (add-after 'unpack 'remove-rubocop-from-Rakefile
7530 (substitute* "Rakefile"
7531 (("require \"rubocop/rake\\_task\"") "")
7532 (("RuboCop::RakeTask\\.new") ""))
7535 `(("bundler" ,bundler)
7536 ("ruby-yard" ,ruby-yard)
7537 ("ruby-mocha" ,ruby-mocha)
7538 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
7539 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
7540 (synopsis "Domain name parser")
7541 (description "The gem @code{public_suffix} is a domain name parser,
7542 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
7543 is one under which Internet users can (or historically could) directly
7544 register names. Some examples of public suffixes are @code{.com},
7545 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
7546 all known public suffixes.")
7547 (license license:expat)))
7549 (define-public ruby-addressable
7551 (name "ruby-addressable")
7555 (uri (rubygems-uri "addressable" version))
7558 "1fvchp2rhp2rmigx7qglf69xvjqvzq7x0g49naliw29r2bz656sy"))))
7559 (build-system ruby-build-system)
7561 '(#:test-target "spec"
7563 (modify-phases %standard-phases
7564 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
7566 (substitute* "Gemfile"
7567 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
7568 ((".*launchy.*") "")
7569 ((".*rake.*") "gem 'rake'\n")
7570 ((".*redcarpet.*") ""))
7572 (add-before 'check 'delete-network-dependent-test
7574 (delete-file "spec/addressable/net_http_compat_spec.rb")
7577 `(("ruby-rspec" ,ruby-rspec)
7578 ("bundler" ,bundler)
7579 ("ruby-idn-ruby" ,ruby-idn-ruby)
7580 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
7581 ("ruby-rspec-its", ruby-rspec-its)
7582 ("ruby-yard" ,ruby-yard)
7583 ("ruby-simplecov" ,ruby-simplecov)))
7585 `(("ruby-public-suffix" ,ruby-public-suffix)))
7586 (home-page "https://github.com/sporkmonger/addressable")
7587 (synopsis "Alternative URI implementation")
7588 (description "Addressable is a replacement for the URI implementation that
7589 is part of Ruby's standard library. It more closely conforms to RFC 3986,
7590 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
7591 (license license:asl2.0)))
7593 (define-public ruby-colorator
7595 (name "ruby-colorator")
7599 (uri (rubygems-uri "colorator" version))
7602 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
7603 (build-system ruby-build-system)
7607 (home-page "http://octopress.org/colorator/")
7608 (synopsis "Terminal color library")
7609 (description "Colorator is a Ruby gem that helps you colorize your text
7611 (license license:expat)))
7613 (define-public ruby-command-line-reporter
7615 (name "ruby-command-line-reporter")
7619 (uri (rubygems-uri "command_line_reporter" version))
7622 "1l0zxkh5n9dxfw46lpkg416ljpldlq1bgdhqh0d118dk338nz4ll"))))
7623 (build-system ruby-build-system)
7628 (modify-phases %standard-phases
7629 (add-before 'build 'fix-dependencies
7631 (substitute* ".gemspec"
7632 ;; colored is unmaintained
7633 (("colored") "colorator")
7634 ;; colorator version
7635 (("= 1.2") "= 1.1"))
7637 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
7638 (home-page "https://github.com/wbailey/command_line_reporter")
7639 (synopsis "Report production while executing Ruby scripts")
7640 (description "This gem provides a DSL that makes it easy to write reports
7641 of various types in ruby. It eliminates the need to litter your source with
7642 puts statements, instead providing a more readable, expressive interface to
7644 (license license:asl2.0)))
7646 (define-public ruby-command-line-reporter-3
7648 (inherit ruby-command-line-reporter)
7652 (uri (rubygems-uri "command_line_reporter" version))
7655 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
7657 (define-public ruby-rdoc
7664 (uri (rubygems-uri "rdoc" version))
7667 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
7668 (build-system ruby-build-system)
7670 `(("bundler" ,bundler)))
7671 (home-page "https://ruby.github.io/rdoc/")
7672 (synopsis "HTML and command-line documentation utility")
7673 (description "RDoc produces HTML and command-line documentation for Ruby
7674 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
7675 documentation from the command-line.")
7676 (license license:gpl2+)))
7678 (define-public ruby-sass-listen
7680 (name "ruby-sass-listen")
7684 (uri (rubygems-uri "sass-listen" version))
7687 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
7688 (build-system ruby-build-system)
7693 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
7694 ("ruby-rb-inotify" ,ruby-rb-inotify)))
7695 (home-page "https://github.com/sass/listen")
7696 (synopsis "File modification notification library")
7697 (description "The Listen gem listens to file modifications and notifies you
7698 about the changes.")
7699 (license license:expat)))
7701 (define-public ruby-terminfo
7703 (name "ruby-terminfo")
7708 (uri (rubygems-uri "ruby-terminfo" version))
7711 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
7712 (build-system ruby-build-system)
7714 `(#:test-target "test"
7715 ;; Rakefile requires old packages and would need modification to
7716 ;; work with current software.
7719 `(("ncurses" ,ncurses)))
7721 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
7722 ("ruby-rdoc" ,ruby-rdoc)))
7723 (home-page "http://www.a-k-r.org/ruby-terminfo/")
7724 (synopsis "Terminfo binding for Ruby")
7725 (description "Ruby-terminfo provides terminfo binding for Ruby.")
7726 (license license:bsd-3)))
7728 (define-public ruby-diffy
7735 (uri (rubygems-uri "diffy" version))
7738 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
7739 (build-system ruby-build-system)
7744 `(("ruby-rspec" ,ruby-rspec)))
7745 (home-page "https://github.com/samg/diffy")
7746 (synopsis "Convenient diffing in ruby")
7747 (description "Diffy provides a convenient way to generate a diff from two
7749 (license license:expat)))
7751 (define-public ruby-sass-spec
7753 (name "ruby-sass-spec")
7759 (url "https://github.com/sass/sass-spec.git")
7760 (commit (string-append "v" version))))
7761 (file-name (git-file-name name version))
7763 (base32 "1zsw66830w0xlc7kxz6fm4b5nyb44vdsdgm9mgy06s5aixx83pwr"))))
7764 (build-system ruby-build-system)
7766 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
7767 ("ruby-diffy" ,ruby-diffy)
7768 ("ruby-terminfo" ,ruby-terminfo)))
7770 `(;; This package contains tests for a sass implementation, and the to
7771 ;; avoid any circular dependencies, the tests are not run here
7774 (modify-phases %standard-phases
7775 (add-after 'unpack 'patch-test
7777 (delete-file "spec/values/colors/alpha_hex-3.5/error")
7778 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
7779 (("string") "color")))))))
7780 (home-page "https://github.com/sass/sass-spec")
7781 (synopsis "Test suite for Sass")
7782 (description "Sass Spec is a test suite for Sass. Test cases are all in
7783 the @file{spec} directory.")
7784 (license license:expat)))
7786 (define-public ruby-sass
7792 (uri (rubygems-uri "sass" version))
7795 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
7796 (build-system ruby-build-system)
7798 `(("ruby-sass-listen" ,ruby-sass-listen)))
7800 `(("ruby-sass-spec" ,ruby-sass-spec)
7801 ("ruby-mathn" ,ruby-mathn)))
7802 (home-page "http://sass-lang.com/")
7803 (synopsis "CSS extension language")
7804 (description "Sass is a CSS extension language. It extends CSS with
7805 features that don't exist yet like variables, nesting, mixins and inheritance.")
7806 (license license:expat)))
7808 (define-public ruby-sassc
7815 (uri (rubygems-uri "sassc" version))
7818 "1sr4825rlwsrl7xrsm0sgalcpf5zgp4i56dbi3qxfa9lhs8r6zh4"))))
7819 (build-system ruby-build-system)
7822 (modify-phases %standard-phases
7823 ;; TODO: This would be better as a snippet, but the ruby-build-system
7824 ;; doesn't seem to support that
7825 (add-after 'unpack 'remove-libsass
7827 (delete-file-recursively "ext")
7829 (add-after 'unpack 'dont-check-the-libsass-version
7831 (substitute* "test/native_test.rb"
7832 (("assert_equal.*Native\\.version") ""))
7834 (add-after 'unpack 'remove-git-from-gemspec
7836 (substitute* "sassc.gemspec"
7837 (("`git ls-files -z`") "`find . -type f -print0 |sort -z`")
7838 (("`git submodule --quiet foreach pwd`") "''"))
7840 (add-after 'unpack 'remove-extensions-from-gemspec
7842 (substitute* "sassc.gemspec"
7843 (("\\[\"ext/Rakefile\"\\]") "[]"))
7845 (add-after 'unpack 'fix-Rakefile
7847 (substitute* "Rakefile"
7848 (("test: 'libsass:compile'") ":test"))
7850 (add-after 'unpack 'remove-unnecessary-dependencies
7852 (substitute* "test/test_helper.rb"
7853 (("require \"pry\"") ""))
7855 (add-before 'build 'patch-native.rb
7856 (lambda* (#:key inputs #:allow-other-keys)
7857 (substitute* "lib/sassc/native.rb"
7858 ((".*gem_root = spec.gem_dir") "")
7861 "ffi_lib '" (assoc-ref inputs "libsass") "/lib/libsass.so'")))
7863 ;; The gemspec still references the libsass files, so just keep the
7865 (delete 'extract-gemspec))))
7867 `(("ruby-ffi" ,ruby-ffi)
7868 ("ruby-rake" ,ruby-rake)))
7870 `(("libsass" ,libsass)))
7872 `(("bundler" ,bundler)
7873 ("ruby-minitest-around" ,ruby-minitest-around)
7874 ("ruby-test-construct" ,ruby-test-construct)))
7875 (synopsis "Use libsss from Ruby")
7877 "This library provides Ruby q@acronym{FFI, Foreign Function Interface}
7878 bindings to the libsass library. This enables rendering
7879 @acronym{SASS,Syntactically awesome style sheets} from Ruby code.")
7880 (home-page "https://github.com/sass/sassc-ruby")
7881 (license license:expat)))
7883 (define-public ruby-jekyll-sass-converter
7885 (name "ruby-jekyll-sass-converter")
7889 (uri (rubygems-uri "jekyll-sass-converter" version))
7892 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
7893 (build-system ruby-build-system)
7895 `(("ruby-sass" ,ruby-sass)))
7899 (home-page "https://github.com/jekyll/jekyll-sass-converter")
7900 (synopsis "Sass converter for Jekyll")
7901 (description "This gem provide built-in support for the Sass converter
7903 (license license:expat)))
7905 (define-public ruby-jekyll-watch
7907 (name "ruby-jekyll-watch")
7911 (uri (rubygems-uri "jekyll-watch" version))
7914 "1s9ly83sp8albvgdff12xy2h4xd8lm6z2fah4lzmk2yvp85jzdzv"))))
7915 (build-system ruby-build-system)
7917 `(("ruby-listen" ,ruby-listen)))
7921 (home-page "https://github.com/jekyll/jekyll-watch")
7922 (synopsis "Jekyll auto-rebuild support")
7923 (description "This gems add the @code{--watch} switch to the jekyll CLI
7924 interface. It allows Jekyll to rebuild your site when a file changes.")
7925 (license license:expat)))
7927 (define-public ruby-parallel
7929 (name "ruby-parallel")
7935 (url "https://github.com/grosser/parallel.git")
7936 (commit (string-append "v" version))))
7937 (file-name (git-file-name name version))
7940 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7941 (build-system ruby-build-system)
7943 `(;; TODO 3 test failures
7944 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7945 ;; open unnecessary pipes
7946 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7947 ;; SQLite in processes
7948 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7949 ;; SQLite in threads
7951 #:test-target "rspec-rerun:spec"
7953 (modify-phases %standard-phases
7954 (add-after 'unpack 'patch-Gemfile
7956 (substitute* "Gemfile"
7957 (("gem 'rspec-legacy_formatters'") "")
7958 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7959 (add-before 'check 'delete-Gemfile.lock
7961 ;; Bundler isn't being used for fetching dependendencies, so
7962 ;; delete the Gemfile.lock
7963 (delete-file "Gemfile.lock")
7965 (add-before 'build 'patch-gemspec
7967 (substitute* "parallel.gemspec"
7968 (("git ls-files") "find"))
7971 `(("ruby-rspec" ,ruby-rspec)
7972 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
7973 ("bundler" ,bundler)
7974 ("ruby-activerecord" ,ruby-activerecord)
7975 ("ruby-progressbar" ,ruby-progressbar)
7976 ("ruby-bump" ,ruby-bump)
7979 ("ruby-mysql2" ,ruby-mysql2)
7980 ("ruby-sqlite3" ,ruby-sqlite3)
7981 ("ruby-i18n" ,ruby-i18n)))
7982 (home-page "https://github.com/grosser/parallel")
7983 (synopsis "Parallel processing in Ruby")
7984 (description "Parallel allows you to run any code in parallel Processes
7985 (to use all CPUs) or Threads(to speedup blocking operations). It is best
7986 suited for map-reduce or e.g. parallel downloads/uploads.")
7987 (license license:expat)))
7989 (define-public ruby-cane
7995 (uri (rubygems-uri "cane" version))
7998 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7999 (build-system ruby-build-system)
8000 (arguments `(#:tests? #f)); No rakefile
8001 (home-page "https://github.com/square/cane")
8003 `(("ruby-parallel" ,ruby-parallel)))
8004 (synopsis "Code quality threshold checking")
8005 (description "Cane fails your build if code quality thresholds are not met.")
8006 (license license:asl2.0)))
8008 (define-public ruby-morecane
8010 (name "ruby-morecane")
8014 (uri (rubygems-uri "morecane" version))
8017 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
8018 (build-system ruby-build-system)
8019 (home-page "https://github.com/yob/morecane")
8020 (arguments `(#:tests? #f)); No rakefile
8022 `(("ruby-parallel" ,ruby-parallel)))
8023 (synopsis "Extra checks for cane")
8024 (description "The cane gem provides a great framework for running quality
8025 checks over your ruby project as part of continuous integration build. It
8026 comes with a few checks out of the box, but also provides an API for loading
8027 custom checks. This gem provides a set of additional checks.")
8028 (license license:expat)))
8030 (define-public ruby-pdf-reader
8032 (name "ruby-pdf-reader")
8036 (uri (rubygems-uri "pdf-reader" version))
8039 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
8040 (build-system ruby-build-system)
8041 (arguments `(#:test-target "spec"))
8043 `(("bundler" ,bundler)
8044 ("ruby-rspec" ,ruby-rspec)
8045 ("ruby-cane" ,ruby-cane)
8046 ("ruby-morecane" ,ruby-morecane)))
8048 `(("ruby-afm" ,ruby-afm)
8049 ("ruby-ascii85" ,ruby-ascii85)
8050 ("ruby-hashery" ,ruby-hashery)
8051 ("ruby-rc4" ,ruby-rc4)
8052 ("ruby-ttfunk" ,ruby-ttfunk)))
8053 (home-page "https://github.com/yob/pdf-reader")
8054 (synopsis "PDF parser in Ruby")
8055 (description "The PDF::Reader library implements a PDF parser conforming as
8056 much as possible to the PDF specification from Adobe. It provides programmatic
8057 access to the contents of a PDF file with a high degree of flexibility.")
8058 (license license:gpl3+)))
8060 (define-public ruby-pdf-inspector
8062 (name "ruby-pdf-inspector")
8066 (uri (rubygems-uri "pdf-inspector" version))
8069 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
8070 (build-system ruby-build-system)
8072 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
8073 (arguments `(#:tests? #f)); No rakefile
8074 (home-page "https://github.com/prawnpdf/pdf-inspector")
8075 (synopsis "Analysis classes for inspecting PDF output")
8076 (description "This library provides a number of PDF::Reader based tools for
8077 use in testing PDF output. Presently, the primary purpose of this tool is to
8078 support the tests found in Prawn, a pure Ruby PDF generation library.")
8079 (license license:gpl3+)))
8081 (define-public ruby-pdf-core
8083 (name "ruby-pdf-core")
8087 (uri (rubygems-uri "pdf-core" version))
8090 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
8091 (build-system ruby-build-system)
8095 (home-page "https://github.com/prawnpdf/pdf-core")
8096 (synopsis "Low level PDF features for Prawn")
8097 (description "This is an experimental gem that extracts low-level PDF
8098 functionality from Prawn.")
8099 (license license:gpl3+)))
8101 (define-public ruby-prawn
8107 (uri (rubygems-uri "prawn" version))
8110 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
8111 (build-system ruby-build-system)
8116 (modify-phases %standard-phases
8117 (add-before 'build 'fix-dependencies
8119 (substitute* "prawn.gemspec"
8120 (("~> 0.7.0") "~> 0.7"))
8123 `(("ruby-pdf-core" ,ruby-pdf-core)
8124 ("ruby-ttfunk" ,ruby-ttfunk)))
8126 `(("bundler" ,bundler)
8127 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
8128 ("ruby-rspec" ,ruby-rspec)
8129 ("ruby-simplecov" ,ruby-simplecov)
8130 ("ruby-yard" ,ruby-yard)))
8131 (home-page "http://prawnpdf.org/api-docs/2.0/")
8132 (synopsis "PDF generation for Ruby")
8133 (description "Prawn is a pure Ruby PDF generation library.")
8134 (license license:gpl3+)))
8136 (define-public ruby-prawn-table
8138 (name "ruby-prawn-table")
8142 (uri (rubygems-uri "prawn-table" version))
8145 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
8146 (build-system ruby-build-system)
8148 `(("ruby-prawn" ,ruby-prawn)
8149 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
8151 `(("bundler" ,bundler)
8152 ("ruby-yard" ,ruby-yard)
8153 ("ruby-mocha" ,ruby-mocha)
8154 ("ruby-coderay" ,ruby-coderay)
8155 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
8156 ("ruby-simplecov" ,ruby-simplecov)
8157 ("ruby-rspec-2" ,ruby-rspec-2)))
8159 '(;; TODO: 1 test fails
8160 ;; Failure/Error: pdf.page_count.should == 1
8162 ;; got: 2 (using ==)
8163 ;; # ./spec/table_spec.rb:1308
8165 ;; 225 examples, 1 failure
8168 (modify-phases %standard-phases
8169 (add-before 'check 'patch-gemspec
8171 (substitute* "prawn-table.gemspec"
8172 ;; Loosen the requirement for pdf-inspector
8173 (("~> 1\\.1\\.0") ">= 0")
8174 ;; Loosen the requirement for pdf-reader
8175 (("~> 1\\.2") ">= 0"))))
8177 (lambda* (#:key tests? #:allow-other-keys)
8181 (home-page "https://github.com/prawnpdf/prawn-table")
8182 (synopsis "Tables support for Prawn")
8183 (description "This gem provides tables support for Prawn.")
8184 (license license:gpl3+)))
8186 (define-public ruby-kramdown
8188 (name "ruby-kramdown")
8192 (uri (rubygems-uri "kramdown" version))
8195 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
8196 (build-system ruby-build-system)
8197 (arguments `(#:tests? #f)); FIXME: some test failures
8199 `(("ruby-prawn" ,ruby-prawn)
8200 ("ruby-prawn-table" ,ruby-prawn-table)))
8201 (home-page "https://kramdown.gettalong.org/")
8202 (synopsis "Markdown parsing and converting library")
8203 (description "Kramdown is a library for parsing and converting a superset
8204 of Markdown. It is completely written in Ruby, supports standard Markdown
8205 (with some minor modifications) and various extensions that have been made
8206 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
8207 (license license:expat)))
8209 (define-public ruby-http-parser.rb
8211 (name "ruby-http-parser.rb")
8216 (uri (rubygems-uri "http_parser.rb" version))
8219 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
8220 (build-system ruby-build-system)
8225 `(("ruby-rake-compiler" ,ruby-rake-compiler)
8226 ("ruby-rspec" ,ruby-rspec)))
8227 (home-page "https://github.com/tmm1/http_parser.rb")
8228 (synopsis "HTTP parser un Ruby")
8229 (description "This gem is a simple callback-based HTTP request/response
8230 parser for writing http servers, clients and proxies.")
8231 (license license:expat)))
8233 (define-public ruby-em-websocket
8235 (name "ruby-em-websocket")
8240 (uri (rubygems-uri "em-websocket" version))
8243 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
8244 (build-system ruby-build-system)
8249 `(("ruby-eventmachine" ,ruby-eventmachine)
8250 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
8252 `(("bundler" ,bundler)
8253 ("ruby-rspec" ,ruby-rspec)))
8254 (home-page "https://github.com/igrigorik/em-websocket")
8255 (synopsis "EventMachine based WebSocket server")
8256 (description "Em-websocket is an EventMachine based WebSocket server
8258 (license license:expat)))
8260 (define-public ruby-rouge
8266 (uri (rubygems-uri "rouge" version))
8269 "1y90nx9ph9adnrpcsvs2adca2l3dyz8am2d2kzxkwd3a086ji7aw"))))
8270 (build-system ruby-build-system)
8271 (arguments `(#:tests? #f)); No rakefile
8272 (home-page "http://rouge.jneen.net/")
8273 (synopsis "Code highlighter")
8274 (description "Rouge is a code highlighter written in Ruby. It supports more
8275 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
8276 is compatible with stylesheets designed for pygments.")
8278 ;; rouge is licensed under expat
8280 ;; pygments is licensed under bsd-2
8283 (define-public ruby-rouge-2
8285 (inherit ruby-rouge)
8289 (uri (rubygems-uri "rouge" version))
8292 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
8294 (define-public ruby-hashie
8296 (name "ruby-hashie")
8300 (uri (rubygems-uri "hashie" version))
8303 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
8304 (build-system ruby-build-system)
8306 `(("bundler" ,bundler)))
8307 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
8308 (home-page "https://github.com/intridea/hashie")
8309 (synopsis "Extensions to Ruby Hashes")
8310 (description "Hashie is a collection of classes and mixins that make Ruby
8311 hashes more powerful.")
8312 (license license:expat)))
8314 (define-public ruby-heredoc-unindent
8316 (name "ruby-heredoc-unindent")
8320 (uri (rubygems-uri "heredoc_unindent" version))
8323 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
8324 (build-system ruby-build-system)
8326 `(("ruby-hoe" ,ruby-hoe)))
8327 (home-page "https://github.com/adrianomitre/heredoc_unindent")
8328 (synopsis "Heredoc indentation cleaner")
8329 (description "This gem removes common margin from indented strings, such
8330 as the ones produced by indented heredocs. In other words, it strips out
8331 leading whitespace chars at the beginning of each line, but only as much as
8332 the line with the smallest margin.
8334 It is acknowledged that many strings defined by heredocs are just code and
8335 fact is that most parsers are insensitive to indentation. If, however, the
8336 strings are to be used otherwise, be it for printing or testing, the extra
8337 indentation will probably be an issue and hence this gem.")
8338 (license license:expat)))
8340 (define-public ruby-safe-yaml
8342 (name "ruby-safe-yaml")
8348 (url "https://github.com/dtao/safe_yaml.git")
8350 (file-name (git-file-name name version))
8353 "1a0wh7y3va2m7bjza95na2snw0vrdh9syz40mpjvjphbc4ph3pzg"))))
8354 (build-system ruby-build-system)
8356 `(("ruby-rspec" ,ruby-rspec)
8357 ("ruby-hashie" ,ruby-hashie)
8358 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
8360 '(#:test-target "spec"
8362 (modify-phases %standard-phases
8363 (add-before 'check 'set-TZ
8365 ;; This test is dependent on the timezone
8366 ;; spec/transform/to_date_spec.rb:35
8367 ;; # SafeYAML::Transform::ToDate converts times to the local
8369 (setenv "TZ" "UTC-11")
8371 (home-page "https://github.com/dtao/safe_yaml")
8372 (synopsis "YAML parser")
8373 (description "The SafeYAML gem provides an alternative implementation of
8374 YAML.load suitable for accepting user input in Ruby applications.")
8375 (license license:expat)))
8377 (define-public ruby-mercenary
8379 (name "ruby-mercenary")
8383 (uri (rubygems-uri "mercenary" version))
8386 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
8387 (build-system ruby-build-system)
8388 (arguments `(#:test-target "spec"))
8390 `(("bundler" ,bundler)))
8391 (home-page "https://github.com/jekyll/mercenary")
8392 (synopsis "Command-line apps library in Ruby")
8393 (description "Mercenary is a lightweight and flexible library for writing
8394 command-line apps in Ruby.")
8395 (license license:expat)))
8397 (define-public ruby-liquid
8399 (name "ruby-liquid")
8403 (uri (rubygems-uri "liquid" version))
8406 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
8407 (build-system ruby-build-system)
8408 (arguments `(#:tests? #f)); No rakefile
8409 (home-page "https://shopify.github.io/liquid/")
8410 (synopsis "Template language")
8411 (description "Liquid is a template language written in Ruby. It is used
8412 to load dynamic content on storefronts.")
8413 (license license:expat)))
8415 (define-public ruby-forwardable-extended
8417 (name "ruby-forwardable-extended")
8421 (uri (rubygems-uri "forwardable-extended" version))
8424 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
8425 (build-system ruby-build-system)
8426 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
8427 (home-page "https://github.com/envygeeks/forwardable-extended")
8428 (synopsis "Delegation to hashes and instance variables in Forwardable")
8429 (description "Forwardable Extended provides more @code{Forwardable}
8430 methods for your source as @code{Forwardable::Extended}.")
8431 (license license:expat)))
8433 (define-public ruby-pathutil
8435 (name "ruby-pathutil")
8439 (uri (rubygems-uri "pathutil" version))
8442 "12fm93ljw9fbxmv2krki5k5wkvr7560qy8p4spvb9jiiaqv78fz4"))))
8443 (build-system ruby-build-system)
8445 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
8447 `(("bundler" ,bundler)
8448 ("ruby-rspec" ,ruby-rspec)))
8449 ;; Fails with: cannot load such file --
8450 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
8451 (arguments `(#:tests? #f))
8452 (home-page "https://github.com/envygeeks/pathutil")
8453 (synopsis "Extended implementation of Pathname")
8454 (description "Pathutil tries to be a faster pure Ruby implementation of
8456 (license license:expat)))
8458 (define-public jekyll
8464 (uri (rubygems-uri "jekyll" version))
8467 "1ph1jjjl25vmzif7bvxzviq7azjm384pm7ba4k24cah94285bzhz"))))
8468 (build-system ruby-build-system)
8470 ;; No rakefile, but a test subdirectory.
8473 (modify-phases %standard-phases
8474 (add-before 'build 'fix-i18n
8476 (substitute* ".gemspec"
8477 (("~> 0.7") ">= 0.7"))
8480 `(("ruby-addressable" ,ruby-addressable)
8481 ("ruby-colorator" ,ruby-colorator)
8482 ("ruby-em-websocket" ,ruby-em-websocket)
8483 ("ruby-i18n" ,ruby-i18n)
8484 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
8485 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
8486 ("ruby-kramdown" ,ruby-kramdown)
8487 ("ruby-liquid" ,ruby-liquid)
8488 ("ruby-mercenary" ,ruby-mercenary)
8489 ("ruby-pathutil" ,ruby-pathutil)
8490 ("ruby-rouge" ,ruby-rouge-2)
8491 ("ruby-safe-yaml" ,ruby-safe-yaml)))
8492 (home-page "https://jekyllrb.com/")
8493 (synopsis "Static site generator")
8494 (description "Jekyll is a simple, blog aware, static site generator.")
8495 (license license:expat)))
8497 (define-public ruby-jekyll-paginate-v2
8499 (name "ruby-jekyll-paginate-v2")
8503 (uri (rubygems-uri "jekyll-paginate-v2" version))
8506 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
8507 (build-system ruby-build-system)
8509 `(("jekyll" ,jekyll)))
8510 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
8511 (synopsis "Pagination Generator for Jekyll 3")
8512 (description "The Pagination Generator forms the core of the pagination
8513 logic in Jekyll. It calculates and generates the pagination pages.")
8514 (license license:expat)))
8516 (define-public ruby-faraday
8518 (name "ruby-faraday")
8523 (uri (rubygems-uri "faraday" version))
8526 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
8527 (build-system ruby-build-system)
8531 `(("ruby-multipart-post" ,ruby-multipart-post)))
8532 (synopsis "Ruby HTTP/REST API client library")
8534 "Faraday is a HTTP/REST API client library which provides a common
8535 interface over different adapters.")
8536 (home-page "https://github.com/lostisland/faraday")
8537 (license license:expat)))
8539 (define-public ruby-nio4r
8546 (uri (rubygems-uri "nio4r" version))
8549 "0gnmvbryr521r135yz5bv8354m7xn6miiapfgpg1bnwsvxz8xj6c"))))
8550 (build-system ruby-build-system)
8553 (modify-phases %standard-phases
8554 (add-after 'unpack 'remove-unnecessary-dependencies
8556 (substitute* "spec/spec_helper.rb"
8557 ;; Coveralls is for uploading test coverage information to an
8558 ;; online service, and thus unnecessary for building the Guix
8560 (("require \"coveralls\"") "")
8561 (("Coveralls\\.wear!") "")
8562 ;; Remove rspec/retry as we are not retrying the tests
8563 (("require \"rspec/retry\"") "")
8564 (("config\\.display_try_failure_messages = true") "")
8565 (("config\\.verbose_retry = true") ""))
8567 (add-before 'check 'compile
8569 (invoke "rake" "compile")
8572 (lambda* (#:key tests? #:allow-other-keys)
8577 `(("bundler" ,bundler)
8578 ("ruby-rake-compiler" ,ruby-rake-compiler)
8579 ("ruby-rspec" ,ruby-rspec)
8580 ("ruby-rubocop" ,ruby-rubocop)))
8581 (synopsis "New I/O for Ruby")
8583 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
8584 for scalable network clients and servers.")
8585 (home-page "https://github.com/socketry/nio4r")
8586 (license license:expat)))
8588 (define-public ruby-globalid
8590 (name "ruby-globalid")
8595 (uri (rubygems-uri "globalid" version))
8598 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
8599 (build-system ruby-build-system)
8601 '(;; No included tests
8604 `(("ruby-activesupport" ,ruby-activesupport)))
8605 (synopsis "Generate URIs idenfitying model instances in Ruby")
8607 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
8608 uniquely identify it.")
8609 (home-page "https://rubyonrails.org/")
8610 (license license:expat)))
8612 (define-public ruby-sprockets
8614 (name "ruby-sprockets")
8619 (uri (rubygems-uri "sprockets" version))
8622 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
8623 (build-system ruby-build-system)
8625 '(;; No included tests
8628 `(("ruby-concurrent" ,ruby-concurrent)
8629 ("ruby-rack" ,ruby-rack)))
8630 (synopsis "Sprockets is a Rack-based asset packaging system")
8632 "Sprockets is a Rack-based asset packaging system that concatenates and
8633 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
8634 (home-page "https://github.com/rails/sprockets")
8635 (license license:expat)))
8637 (define-public ruby-mustermann
8639 (name "ruby-mustermann")
8644 (uri (rubygems-uri "mustermann" version))
8647 "0lycgkmnyy0bf29nnd2zql5a6pcf8sp69g9v4xw0gcfcxgpwp7i1"))))
8648 (build-system ruby-build-system)
8652 (synopsis "Library implementing patterns that behave like regular expressions")
8653 (description "Given a string pattern, Mustermann will turn it into an
8654 object that behaves like a regular expression and has comparable performance
8656 (home-page "https://github.com/sinatra/mustermann")
8657 (license license:expat)))
8659 (define-public ruby-htmlentities
8661 (name "ruby-htmlentities")
8666 (uri (rubygems-uri "htmlentities" version))
8669 "1nkklqsn8ir8wizzlakncfv42i32wc0w9hxp00hvdlgjr7376nhj"))))
8670 (build-system ruby-build-system)
8673 (modify-phases %standard-phases
8677 (invoke "ruby" "-Itest" file))
8678 (find-files "./test" ".*_test\\.rb")))))))
8679 (synopsis "Encode and decode (X)HTML entities")
8681 "This package provides a module for encoding and decoding (X)HTML
8683 (home-page "https://github.com/threedaymonk/htmlentities")
8684 (license license:expat)))
8686 (define-public ruby-sinatra
8688 (name "ruby-sinatra")
8693 (uri (rubygems-uri "sinatra" version))
8696 "1gasgn5f15myv08k10i16p326pchxjsy37pgqfw0xm66kcc5d7ry"))))
8697 (build-system ruby-build-system)
8699 `(("ruby-mustermann" ,ruby-mustermann)
8700 ("ruby-rack" ,ruby-rack)
8701 ("ruby-rack-protection" ,ruby-rack-protection)
8702 ("ruby-tilt" ,ruby-tilt)))
8703 (synopsis "DSL for quick web applications creation in Ruby")
8705 "Sinatra is a DSL for quickly creating web applications in Ruby with
8707 (home-page "http://sinatrarb.com/")
8708 (license license:expat)))
8710 (define-public ruby-thin
8717 (uri (rubygems-uri "thin" version))
8720 "0nagbf9pwy1vg09k6j4xqhbjjzrg5dwzvkn4ffvlj76fsn6vv61f"))))
8721 (build-system ruby-build-system)
8726 `(("ruby-daemons" ,ruby-daemons)
8727 ("ruby-eventmachine" ,ruby-eventmachine)
8728 ("ruby-rack" ,ruby-rack)))
8729 (synopsis "Thin and fast web server for Ruby")
8730 (description "Thin is a Ruby web server that glues together 3 Ruby libraries:
8732 @item the Mongrel parser,
8733 @item Event Machine, a network I/O library with high scalability, performance
8735 @item Rack, a minimal interface between webservers and Ruby frameworks.
8737 (home-page "http://code.macournoyer.com/thin/")
8738 (license license:ruby)))
8740 (define-public ruby-skinny
8742 (name "ruby-skinny")
8747 (uri (rubygems-uri "skinny" version))
8750 "1y3yvx88ylgz4d2s1wskjk5rkmrcr15q3ibzp1q88qwzr5y493a9"))))
8751 (build-system ruby-build-system)
8753 '(#:tests? #f ; No included tests
8755 (modify-phases %standard-phases
8756 (add-before 'build 'patch-gemspec
8758 (substitute* ".gemspec"
8759 (("<eventmachine>.freeze, \\[\\\"~> 1.0.0\"")
8760 "<eventmachine>, [\">= 1.0.0\"")
8761 (("<thin>.freeze, \\[\\\"< 1.7\", ") "<thin>, ["))
8764 `(("ruby-eventmachine" ,ruby-eventmachine)
8765 ("ruby-thin" ,ruby-thin)))
8766 (synopsis "Simple, upgradable WebSockets for Ruby Thin")
8767 (description "Skinny is a simple, upgradable WebSockets for Ruby, using
8769 (home-page "https://github.com/sj26/skinny")
8770 (license license:expat)))
8772 (define-public mailcatcher
8774 (name "mailcatcher")
8779 (uri (rubygems-uri "mailcatcher" version))
8782 "02w1ycyfv7x0sh9799lz7xa65p5qvl5z4pa8a7prb68h2zwkfq0n"))))
8783 (build-system ruby-build-system)
8785 ;; Tests require web/assets which is not included in the output. We
8786 ;; might be able to fix this by adding the Git repository to the GEM_PATH
8787 ;; of the tests. See ruby-mysql2.
8790 (modify-phases %standard-phases
8791 (add-before 'build 'patch-gemspec
8793 (substitute* ".gemspec"
8794 (("<eventmachine>.freeze, \\[\\\"= 1.0.9.1")
8795 "<eventmachine>, [\">= 1.0.9.1")
8796 (("<rack>.freeze, \\[\\\"~> 1.5") "<rack>, [\">= 1.5")
8797 (("<thin>.freeze, \\[\\\"~> 1.5.0") "<thin>, [\">= 1.5.0")
8798 (("<sinatra>.freeze, \\[\\\"~> 1.2") "<sinatra>, [\">= 1.2"))
8800 (add-before 'build 'loosen-dependency-contraint
8802 (substitute* "lib/mail_catcher.rb"
8803 (("\"eventmachine\", \"1.0.9.1\"") "\"eventmachine\", \">= 1.0.9.1\"")
8804 (("\"rack\", \"~> 1.5\"") "\"rack\", \">= 1.5\"")
8805 (("\"thin\", \"~> 1.5.0\"") "\"thin\", \">= 1.5.0\"")
8806 (("\"sinatra\", \"~> 1.2\"") "\"sinatra\", \">= 1.2\""))
8809 `(("ruby-eventmachine" ,ruby-eventmachine)
8810 ("ruby-mail" ,ruby-mail)
8811 ("ruby-rack" ,ruby-rack)
8812 ("ruby-sinatra" ,ruby-sinatra)
8813 ("ruby-skinny" ,ruby-skinny)
8814 ("ruby-sqlite3" ,ruby-sqlite3)
8815 ("ruby-thin" ,ruby-thin)))
8816 (synopsis "SMTP server which catches messages to display them a browser")
8818 "MailCatcher runs a super simple SMTP server which catches any message
8819 sent to it to display in a web interface. Run mailcatcher, set your favourite
8820 app to deliver to smtp://127.0.0.1:1025 instead of your default SMTP server,
8821 then check out http://127.0.0.1:1080 to see the mail.")
8822 (home-page "https://mailcatcher.me")
8823 (license license:expat)))
8825 (define-public ruby-backport
8827 (name "ruby-backport")
8831 ;; The gem does not include test code, so fetch from the Git repository.
8834 (url "https://github.com/castwide/backport.git")
8835 (commit (string-append "v" version))))
8836 (file-name (git-file-name name version))
8838 (base32 "18fpg1n7n2z02ykz9v1x1q0cqa2lvivf8ygka768s01q1r9wfwv2"))))
8839 (build-system ruby-build-system)
8841 `(#:test-target "spec"))
8843 `(("bundler" ,bundler)
8844 ("ruby-rspec" ,ruby-rspec)))
8846 `(("ruby-simplecov" ,ruby-simplecov)))
8847 (synopsis "Pure Ruby library for event-driven IO")
8849 "This package provides a pure Ruby library for event-driven IO.")
8850 (home-page "https://github.com/castwide/backport")
8851 (license license:expat)))
8853 (define-public ruby-json-schema
8855 (name "ruby-json-schema")
8860 (uri (rubygems-uri "json-schema" version))
8863 "1yv5lfmr2nzd14af498xqd5p89f3g080q8wk0klr3vxgypsikkb5"))))
8864 (build-system ruby-build-system)
8866 `(#:tests? #f ; no tests
8868 (modify-phases %standard-phases
8871 (invoke "gem" "build" ".gemspec"))))))
8873 `(("ruby-addressable" ,ruby-addressable)))
8874 (synopsis "Ruby JSON Schema Validator")
8875 (description "This library provides Ruby with an interface for validating
8876 JSON objects against a JSON schema conforming to JSON Schema Draft 4. Legacy
8877 support for JSON Schema Draft 3, JSON Schema Draft 2, and JSON Schema Draft 1
8879 (home-page "https://github.com/ruby-json-schema/json-schema")
8880 (license license:expat)))
8882 (define-public swagger-diff
8884 (name "swagger-diff")
8889 (uri (rubygems-uri "swagger-diff" version))
8892 "1hxx50nga1bqn254iqjcdwkc9c72364ks9lyjyw10ajz0l0ly7sn"))))
8893 (build-system ruby-build-system)
8895 `(#:test-target "spec"
8897 (modify-phases %standard-phases
8898 ;; Don't run or require rubocop, the code linting tool, as this is a
8900 (add-after 'unpack 'dont-run-rubocop
8902 (substitute* "Rakefile"
8903 ((".*rubocop.*") "")
8904 ((".*RuboCop.*") ""))
8907 `(("ruby-json-schema" ,ruby-json-schema)))
8909 `(("bundler" ,bundler)
8910 ("ruby-rspec-core" ,ruby-rspec-core)
8911 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
8913 "Compare Open API Initiative specification files")
8915 "Swagger::Diff is a utility for comparing two different Open API
8916 Initiative (OAI) specifications (formerly known as Swagger specifications).
8917 It is intended to determine whether a newer API specification is
8918 backwards-compatible with an older API specification.")
8919 (home-page "https://github.com/civisanalytics/swagger-diff")
8920 (license license:bsd-3)))
8922 (define-public ruby-reverse-markdown
8924 (name "ruby-reverse-markdown")
8929 (uri (rubygems-uri "reverse_markdown" version))
8932 "0w7y5n74daajvl9gixr91nh8670d7mkgspkk3ql71m8azq3nffbg"))))
8933 (build-system ruby-build-system)
8935 `(("ruby-nokogiri" ,ruby-nokogiri)))
8937 `(("bundler" ,bundler)
8938 ("ruby-rspec" ,ruby-rspec)
8939 ("ruby-kramdown" ,ruby-kramdown)
8940 ("ruby-simplecov" ,ruby-simplecov)))
8943 (modify-phases %standard-phases
8945 (lambda* (#:key tests? #:allow-other-keys)
8949 (synopsis "Convert HTML into Markdown")
8951 "This Ruby module allows you to map simple HTML back into
8952 Markdown---e.g., if you want to import existing HTML data in your
8954 (home-page "https://github.com/xijo/reverse_markdown")
8955 (license license:wtfpl2)))
8957 (define-public ruby-solargraph
8959 (name "ruby-solargraph")
8964 (uri (rubygems-uri "solargraph" version))
8967 "0b93xzkgd1h06da9gdnwivj1mzbil8lc072y2838dy6i7bxgpy9i"))))
8968 (build-system ruby-build-system)
8970 `(("ruby-backport" ,ruby-backport)
8971 ("bundler" ,bundler)
8972 ("ruby-htmlentities" ,ruby-htmlentities)
8973 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
8974 ("ruby-maruku" ,ruby-maruku)
8975 ("ruby-nokogiri" ,ruby-nokogiri)
8976 ("ruby-parser" ,ruby-parser)
8977 ("ruby-reverse-markdown" ,ruby-reverse-markdown)
8978 ("ruby-rubocop" ,ruby-rubocop)
8979 ("ruby-thor" ,ruby-thor)
8980 ("ruby-tilt" ,ruby-tilt)
8981 ("ruby-yard" ,ruby-yard)))
8983 `(("ruby-rspec" ,ruby-rspec)
8984 ("ruby-pry" ,ruby-pry)
8985 ("ruby-simplecov" ,ruby-simplecov)
8986 ("ruby-webmock" ,ruby-webmock-2)))
8987 ;; FIXME: can't figure out how to run the tests properly:
8989 ;; An error occurred while loading spec_helper.
8990 ;; Failure/Error: return gem_original_require(path)
8992 ;; cannot load such file -- spec_helper
8996 (modify-phases %standard-phases
8998 (lambda* (#:key tests? #:allow-other-keys)
9003 "IDE tools for code completion, inline documentation, and static analysis")
9005 "Solargraph provides a comprehensive suite of tools for Ruby
9006 programming: intellisense, diagnostics, inline documentation, and type
9008 (home-page "https://solargraph.org/")
9009 (license license:expat)))
9011 (define-public ruby-wayback-machine-downloader
9013 (name "ruby-wayback-machine-downloader")
9019 "wayback_machine_downloader"
9023 "12kb1qmvmmsaihqab1prn6cmynkn6cgb4vf41mgv22wkcgv5wgk2"))))
9024 (build-system ruby-build-system)
9026 '(#:tests? #f)) ; no tests
9027 (synopsis "Download archived websites from the Wayback Machine")
9029 "Wayback Machine Downloader is a command line tool for downloading
9030 websites from the Internet Archive's Wayback Machine (archive.org).
9031 It allows fine grained control over what to download by specifying
9032 which snapshots to consider and what files to include.")
9034 "https://github.com/hartator/wayback-machine-downloader")
9035 (license license:expat)))