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 Nils Gillmann <ng0@n0.is>
9 ;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
10 ;;; Copyright © 2017, 2018 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>
17 ;;; This file is part of GNU Guix.
19 ;;; GNU Guix is free software; you can redistribute it and/or modify it
20 ;;; under the terms of the GNU General Public License as published by
21 ;;; the Free Software Foundation; either version 3 of the License, or (at
22 ;;; your option) any later version.
24 ;;; GNU Guix is distributed in the hope that it will be useful, but
25 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
26 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 ;;; GNU General Public License for more details.
29 ;;; You should have received a copy of the GNU General Public License
30 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
32 (define-module (gnu packages ruby)
33 #:use-module ((guix licenses) #:prefix license:)
34 #:use-module (gnu packages)
35 #:use-module (gnu packages base)
36 #:use-module (gnu packages check)
37 #:use-module (gnu packages compression)
38 #:use-module (gnu packages databases)
39 #:use-module (gnu packages dbm)
40 #:use-module (gnu packages rails)
41 #:use-module (gnu packages readline)
42 #:use-module (gnu packages autotools)
43 #:use-module (gnu packages java)
44 #:use-module (gnu packages libffi)
45 #:use-module (gnu packages libidn)
46 #:use-module (gnu packages linux)
47 #:use-module (gnu packages lsof)
48 #:use-module (gnu packages maths)
49 #:use-module (gnu packages ncurses)
50 #:use-module (gnu packages networking)
51 #:use-module (gnu packages python)
52 #:use-module (gnu packages python-xyz)
53 #:use-module (gnu packages ragel)
54 #:use-module (gnu packages rsync)
55 #:use-module (gnu packages sqlite)
56 #:use-module (gnu packages tls)
57 #:use-module (gnu packages version-control)
58 #:use-module (guix packages)
59 #:use-module (guix download)
60 #:use-module (guix git-download)
61 #:use-module (guix utils)
62 #:use-module (guix build-system gnu)
63 #:use-module (gnu packages xml)
64 #:use-module (gnu packages web)
65 #:use-module (guix build-system ruby)
66 #:use-module ((srfi srfi-1) #:select (alist-delete)))
75 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
76 (version-major+minor version)
77 "/ruby-" version ".tar.xz"))
80 "0vrhrw7kcz9mg0jkqnihkcxqy5k05v8k1j0y2735z8wfk8sx1j8w"))
81 (modules '((guix build utils)))
83 ;; Remove bundled libffi
84 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
86 (build-system gnu-build-system)
88 `(#:test-target "test"
90 (modify-phases %standard-phases
91 (add-before 'configure 'replace-bin-sh-and-remove-libffi
93 (substitute* '("Makefile.in"
98 "test/rubygems/test_gem_ext_configure_builder.rb"
99 "test/rdoc/test_rdoc_parser.rb"
100 "test/ruby/test_rubyoptions.rb"
101 "test/ruby/test_process.rb"
102 "test/ruby/test_system.rb"
104 (("/bin/sh") (which "sh")))
107 `(("readline" ,readline)
113 (list (search-path-specification
114 (variable "GEM_PATH")
115 (files (list (string-append "lib/ruby/vendor_ruby"))))))
116 (synopsis "Programming language interpreter")
117 (description "Ruby is a dynamic object-oriented programming language with
118 a focus on simplicity and productivity.")
119 (home-page "https://www.ruby-lang.org")
120 (license license:ruby)))
122 (define-public ruby-2.4
129 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
130 (version-major+minor version)
131 "/ruby-" version ".tar.xz"))
134 "0l9bv67dgsphk42lmiskhrnh47hbyj6rfg2rcjx22xivpx07srr3"))
135 (patches (search-patches "ruby-rubygems-276-for-ruby24.patch"))
136 (modules '((guix build utils)))
138 ;; Remove bundled libffi
139 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
142 (define-public ruby-2.3
149 (uri (string-append "http://cache.ruby-lang.org/pub/ruby/"
150 (version-major+minor version)
151 "/ruby-" version ".tar.xz"))
154 "1zhxbjff08pvbnxvn58krns6q0p6g4977q6ykfn823gxhifn63wi"))
155 (modules '((guix build utils)))
157 ;; Remove bundled libffi
158 (delete-file-recursively "ext/fiddle/libffi-3.2.1")
161 (define-public ruby-commander
163 (name "ruby-commander")
168 (uri (rubygems-uri "commander" version))
171 "1pxakz596fjqak3cdbha6iva1dlqis86i3kjrgg6lf3sp8i5vhwg"))))
172 (build-system ruby-build-system)
174 `(#:test-target "spec"
176 (modify-phases %standard-phases
177 ;; Don't run or require rubocop, the code linting tool, as this is a
179 (add-after 'unpack 'dont-run-rubocop
181 (substitute* "Rakefile"
183 ((".*RuboCop.*") ""))
186 `(("ruby-highline" ,ruby-highline)))
188 `(("bundler" ,bundler)
189 ("ruby-rspec-core" ,ruby-rspec-core)
190 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
191 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
192 ("ruby-simplecov" ,ruby-simplecov)))
193 (home-page "https://github.com/commander-rb/commander")
194 (synopsis "Library for building Ruby command-line executables")
196 "Commander aims to be a complete solution for Ruby command-line
197 executables. Commander bridges the gap between other terminal related
198 libraries (OptionParser, HighLine), while providing many new features, and an
200 (license license:expat)))
202 (define-public ruby-highline
204 (name "ruby-highline")
209 (uri (rubygems-uri "highline" version))
212 "0gr6pckj2jayxw1gdgh9193j5jag5zrrqqlrnl4jvcwpyd3sn2zc"))))
213 (build-system ruby-build-system)
215 `(#:tests? #f)) ;; TODO: NameError: uninitialized constant SPEC
217 `(("bundler" ,bundler)
218 ("ruby-code-statistics" ,ruby-code-statistics)))
220 "HighLine helps you build command-line interfaces")
222 "HighLine provides a high-level IO library that provides validation,
223 type conversion, and more for command-line interfaces. HighLine also includes
224 a menu system for providing multiple options to the user.")
225 (home-page "https://github.com/JEG2/highline")
226 (license (list license:gpl2 license:ruby))))
228 (define-public ruby-hoe
234 (uri (rubygems-uri "hoe" version))
237 "12q6dn2irsfamdbjpqvs0dwl4i1vl7wflxrcg972h9jw0ds38f3a"))))
238 (build-system ruby-build-system)
239 (synopsis "Ruby project management helper")
241 "Hoe is a rake/rubygems helper for project Rakefiles. It helps manage,
242 maintain, and release projects and includes a dynamic plug-in system allowing
243 for easy extensibility. Hoe ships with plug-ins for all the usual project
244 tasks including rdoc generation, testing, packaging, deployment, and
246 (home-page "https://www.zenspider.com/projects/hoe.html")
247 (license license:expat)))
249 (define-public ruby-rake-compiler
251 (name "ruby-rake-compiler")
255 (uri (rubygems-uri "rake-compiler" version))
258 "1xpdi4w8zaklk1i9ps8g3k0icw3v5fcks092l84w28rgrpx82qip"))))
259 (build-system ruby-build-system)
261 '(#:tests? #f)) ; needs cucumber
262 (synopsis "Building and packaging helper for Ruby native extensions")
263 (description "Rake-compiler provides a framework for building and
264 packaging native C and Java extensions in Ruby.")
265 (home-page "https://github.com/rake-compiler/rake-compiler")
266 (license license:expat)))
268 (define-public ruby-rsync
275 (uri (rubygems-uri "rsync" version))
278 "0p8b27q1gvxilqfq2528xpwglzcm2myikkjxpqk7mwbwg9r6knxv"))))
279 (build-system ruby-build-system)
281 '(#:test-target "spec"
283 (modify-phases %standard-phases
284 (add-after 'unpack 'remove-coveralls-requirement
286 (substitute* "spec/spec_helper.rb"
287 (("require 'coveralls'") "")
288 (("Coveralls.wear!") ""))
291 `(("bundler" ,bundler)
293 ("ruby-rspec-core" ,ruby-rspec-core)
294 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
295 ("ruby-rspec-mocks" ,ruby-rspec-mocks)))
296 (home-page "https://github.com/jbussdieker/ruby-rsync")
297 (synopsis "Ruby wrapper around rsync")
299 "Ruby Rsync is a Ruby library that can synchronize files between remote
300 hosts by wrapping the @file{rsync} binary.")
301 (license license:expat)))
303 (define-public ruby-i18n
309 (uri (rubygems-uri "i18n" version))
312 "0ppvmla21hssvrfm8g1n2fnb4lxn4yhy9qmmba0imanflgldrjmr"))))
313 (build-system ruby-build-system)
315 '(#:tests? #f)) ; no tests
316 (propagated-inputs `(("concurrent-ruby" ,ruby-concurrent)))
317 (synopsis "Internationalization library for Ruby")
318 (description "Ruby i18n is an internationalization and localization
319 solution for Ruby programs. It features translation and localization,
320 interpolation of values to translations, pluralization, customizable
321 transliteration to ASCII, flexible defaults, bulk lookup, lambdas as
322 translation data, custom key/scope separator, custom exception handlers, and
323 an extensible architecture with a swappable backend.")
324 (home-page "https://github.com/svenfuchs/i18n")
325 (license license:expat)))
327 (define-public ruby-iruby
334 (uri (rubygems-uri "iruby" version))
337 "1wdf2c0x8y6cya0n3y0p3p7b1sxkb2fdavdn2k58rf4rs37s7rzn"))))
338 (build-system ruby-build-system)
340 ;; TODO: Tests currently fail.
342 ;; Finished in 1.764405s, 1.1335 runs/s, 5.1009 assertions/s.
345 ;; IntegrationTest#test_interaction [/tmp/guix-build-ruby-iruby-0.3.drv-0/gem/test/integration_test.rb:25]:
348 ;; 2 runs, 9 assertions, 1 failures, 0 errors, 0 skips
351 (modify-phases %standard-phases
352 (add-after 'unpack 'patch-ipython
353 (lambda* (#:key inputs #:allow-other-keys)
354 (substitute* "lib/iruby/command.rb"
358 (assoc-ref inputs "python-ipython")
360 (("Kernel\\.exec\\('")
363 (assoc-ref inputs "python-ipython")
367 `(("python-ipython" ,python-ipython)))
369 `(("ruby-bond" ,ruby-bond)
370 ("ruby-data_uri" ,ruby-data_uri)
371 ("ruby-mimemagic" ,ruby-mimemagic)
372 ("ruby-multi-json" ,ruby-multi-json)
373 ("ruby-cztop" ,ruby-cztop)
375 ("ruby-pry" ,ruby-pry)))
376 (synopsis "Ruby kernel for Jupyter/IPython")
378 "This package provides a Ruby kernel for Jupyter/IPython frontends (e.g.
380 (home-page "https://github.com/SciRuby/iruby")
381 (license license:expat)))
383 ;; RSpec is the dominant testing library for Ruby projects. Even RSpec's
384 ;; dependencies use RSpec for their test suites! To avoid these circular
385 ;; dependencies, we disable tests for all of the RSpec-related packages.
386 (define ruby-rspec-support
388 (name "ruby-rspec-support")
392 (uri (rubygems-uri "rspec-support" version))
395 "10vf3k3d472y573mag2kzfsfrf6rv355s13kadnpryk8d36yq5r0"))))
396 (build-system ruby-build-system)
398 '(#:tests? #f)) ; avoid dependency cycles
399 (synopsis "RSpec support library")
400 (description "Support utilities for RSpec gems.")
401 (home-page "https://github.com/rspec/rspec-support")
402 (license license:expat)))
404 (define-public ruby-rspec-core
406 (name "ruby-rspec-core")
410 (uri (rubygems-uri "rspec-core" version))
413 "1nacs062qbr98fx6czf1vwppn1js956nv2c8vfwj6i65axdfs46i"))))
414 (build-system ruby-build-system)
416 '(#:tests? #f)) ; avoid dependency cycles
418 `(("ruby-rspec-support" ,ruby-rspec-support)))
419 (synopsis "RSpec core library")
420 (description "Rspec-core provides the RSpec test runner and example
422 (home-page "https://github.com/rspec/rspec-core")
423 (license license:expat)))
425 (define-public ruby-rspec-core-2
426 (package (inherit ruby-rspec-core)
430 (uri (rubygems-uri "rspec-core" version))
433 "0psjy5kdlz3ph39br0m01w65i1ikagnqlg39f8p65jh5q7dz8hwc"))))
434 (propagated-inputs `())))
436 (define-public ruby-diff-lcs
438 (name "ruby-diff-lcs")
442 (uri (rubygems-uri "diff-lcs" version))
445 "18w22bjz424gzafv6nzv98h0aqkwz3d9xhm7cbr1wfbyas8zayza"))))
446 (build-system ruby-build-system)
448 '(#:tests? #f)) ; avoid dependency cycles
449 (synopsis "Compute the difference between two Enumerable sequences")
450 (description "Diff::LCS computes the difference between two Enumerable
451 sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm.
452 It includes utilities to create a simple HTML diff output format and a
453 standard diff-like tool.")
454 (home-page "https://github.com/halostatue/diff-lcs")
455 (license license:expat)))
457 (define-public ruby-rspec-expectations
459 (name "ruby-rspec-expectations")
463 (uri (rubygems-uri "rspec-expectations" version))
466 "0bbqfrb1x8gmwf8x2xhhwvvlhwbbafq4isbvlibxi6jk602f09gs"))))
467 (build-system ruby-build-system)
469 '(#:tests? #f)) ; avoid dependency cycles
471 `(("ruby-rspec-support" ,ruby-rspec-support)
472 ("ruby-diff-lcs" ,ruby-diff-lcs)))
473 (synopsis "RSpec expectations library")
474 (description "Rspec-expectations provides a simple API to express expected
475 outcomes of a code example.")
476 (home-page "https://github.com/rspec/rspec-expectations")
477 (license license:expat)))
479 (define-public ruby-rspec-expectations-2
480 (package (inherit ruby-rspec-expectations)
484 (uri (rubygems-uri "rspec-expectations" version))
487 "1ni8kw8kjv76jvwjzi4jba00k3qzj9f8wd94vm6inz0jz3gwjqf9"))))
489 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
491 (define-public ruby-rspec-its
493 (name "ruby-rspec-its")
499 (url "https://github.com/rspec/rspec-its.git")
500 (commit (string-append "v" version))))
501 (file-name (git-file-name name version))
504 "190rz7v4q4wk80fzhr5hknvxx4vb2pywmqr8wc41w2blj9ylzi0f"))
507 (origin (method url-fetch)
509 "https://github.com/rspec/rspec-its/commit/"
510 "bfaab439c7c879f5ef25552f41827891f6308373.patch"))
511 (file-name "ruby-rspec-its-fix-specs-for-ruby-2.4.patch")
514 "0lnik0kvrpgkakvdb2fmzg22pdlraf6kiidr9sv6rnfyviiqwxgh")))))))
515 (build-system ruby-build-system)
517 `(#:test-target "spec"
519 (modify-phases %standard-phases
520 (add-after 'unpack 'dont-install-gems-from-gemfile
522 (substitute* "Gemfile"
523 (("rspec rspec-core rspec-expectations rspec-mocks rspec-support")
526 (add-before 'build 'remove-unnecessary-dependency-versions-from-gemfile
528 (substitute* "rspec-its.gemspec"
529 (("rake.*") "rake'\n")
530 (("cucumber.*") "cucumber'\n")
531 (("bundler.*") "bundler'\n")
532 (("aruba.*") "aruba'\n"))
535 `(("ruby-rspec-core" ,ruby-rspec-core)
536 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
538 `(("bundler" ,bundler)
539 ("ruby-cucumber" ,ruby-cucumber)
540 ("ruby-aruba" ,ruby-aruba)))
541 (synopsis "RSpec extension that provides the @code{its} method")
543 "RSpec::Its provides the its method as a short-hand to specify the expected
544 value of an attribute. For example, one can use @code{its(:size)\\{should
546 (home-page "https://github.com/rspec/rspec-its")
547 (license license:expat)))
549 (define-public ruby-rspec-mocks
551 (name "ruby-rspec-mocks")
555 (uri (rubygems-uri "rspec-mocks" version))
558 "0nl3ksivh9wwrjjd47z5dggrwx40v6gpb3a0gzbp1gs06a5dmk24"))))
559 (build-system ruby-build-system)
561 '(#:tests? #f)) ; avoid dependency cycles
563 `(("ruby-rspec-support" ,ruby-rspec-support)
564 ("ruby-diff-lcs" ,ruby-diff-lcs)))
565 (synopsis "RSpec stubbing and mocking library")
566 (description "Rspec-mocks provides RSpec's \"test double\" framework, with
567 support for stubbing and mocking.")
568 (home-page "https://github.com/rspec/rspec-mocks")
569 (license license:expat)))
571 (define-public ruby-rspec-mocks-2
572 (package (inherit ruby-rspec-mocks)
576 (uri (rubygems-uri "rspec-mocks" version))
579 "1fwsmijd6w6cmqyh4ky2nq89jrpzh56hzmndx9wgkmdgfhfakv30"))))
581 `(("ruby-diff-lcs" ,ruby-diff-lcs)))))
583 (define-public ruby-rspec-rerun
585 (name "ruby-rspec-rerun")
590 (uri (rubygems-uri "rspec-rerun" version))
593 "1gy7znkcaqhpccfnk2nvaqbsvgxy3q57cmjwkl9fi1zabaq5lbkj"))))
594 (build-system ruby-build-system)
596 '(;; No included tests
598 (propagated-inputs `(("ruby-rspec" ,ruby-rspec)))
599 (synopsis "Track failed RSpec tests to re-run them")
601 "This package provides an automated way to track, and then re-run failed
603 (home-page "https://github.com/dblock/rspec-rerun")
604 (license license:expat)))
606 (define-public ruby-rspec
612 (uri (rubygems-uri "rspec" version))
615 "16g3mmih999f0b6vcz2c3qsc7ks5zy4lj1rzjh8hf6wk531nvc6s"))))
616 (build-system ruby-build-system)
618 '(#:tests? #f)) ; avoid dependency cycles
620 `(("ruby-rspec-core" ,ruby-rspec-core)
621 ("ruby-rspec-mocks" ,ruby-rspec-mocks)
622 ("ruby-rspec-expectations" ,ruby-rspec-expectations)))
623 (synopsis "Behavior-driven development framework for Ruby")
624 (description "RSpec is a behavior-driven development (BDD) framework for
625 Ruby. This meta-package includes the RSpec test runner, along with the
626 expectations and mocks frameworks.")
627 (home-page "http://rspec.info/")
628 (license license:expat)))
630 (define-public ruby-rspec-2
631 (package (inherit ruby-rspec)
635 (uri (rubygems-uri "rspec" version))
638 "134y4wzk1prninb5a0bhxgm30kqfzl8dg06af4js5ylnhv2wd7sg"))))
640 `(("ruby-rspec-core" ,ruby-rspec-core-2)
641 ("ruby-rspec-mocks" ,ruby-rspec-mocks-2)
642 ("ruby-rspec-expectations" ,ruby-rspec-expectations-2)))))
644 ;; Bundler is yet another source of circular dependencies, so we must disable
645 ;; its test suite as well.
646 (define-public bundler
652 (uri (rubygems-uri "bundler" version))
655 "0ln3gnk7cls81gwsbxvrmlidsfd78s6b2hzlm4d4a9wbaidzfjxw"))))
656 (build-system ruby-build-system)
658 '(#:tests? #f)) ; avoid dependency cycles
659 (synopsis "Ruby gem bundler")
660 (description "Bundler automatically downloads and installs a list of gems
661 specified in a \"Gemfile\", as well as their dependencies.")
662 (home-page "https://bundler.io/")
663 (license license:expat)))
665 (define-public ruby-builder
667 (name "ruby-builder")
671 (uri (rubygems-uri "builder" version))
674 "0qibi5s67lpdv1wgcj66wcymcr04q6j4mzws6a479n0mlrmh5wr1"))))
675 (build-system ruby-build-system)
678 (modify-phases %standard-phases
679 (add-after 'unpack 'do-not-use-rvm
681 (substitute* "rakelib/tags.rake"
682 (("RVM_GEMDIR = .*") "RVM_GEMDIR = 'no-rvm-please'\n"))
684 (synopsis "Ruby library to create structured data")
685 (description "Builder provides a number of builder objects that make it
686 easy to create structured data. Currently the following builder objects are
687 supported: XML Markup and XML Events.")
688 (home-page "https://github.com/jimweirich/builder")
689 (license license:expat)))
691 (define-public ruby-bump
698 (uri (rubygems-uri "bump" version))
701 "1xinbr9rzh6cj75x24niwgqcnbhdxc68a8bc41lk8xv6fd906fym"))))
702 (build-system ruby-build-system)
704 '(;; No included tests
706 (synopsis "Tool for working with Rubygems")
708 "Bump provides commands to manage Rubygem versioning, updating to the
709 next patch version for example.")
710 (home-page "https://github.com/gregorym/bump")
711 (license license:expat)))
713 (define-public ruby-rjb
719 (uri (rubygems-uri "rjb" version))
722 "1ppj8rbicj3w0nhh7f73mflq19yd7pzdzkh2a91hcvphriy5b0ca"))))
723 (build-system ruby-build-system)
725 `(#:tests? #f ; no rakefile
727 (modify-phases %standard-phases
728 (add-before 'build 'set-java-home
729 (lambda* (#:key inputs #:allow-other-keys)
730 (setenv "JAVA_HOME" (assoc-ref inputs "jdk"))
733 `(("jdk" ,icedtea "jdk")))
734 (synopsis "Ruby-to-Java bridge using the Java Native Interface")
735 (description "RJB is a bridge program that connects Ruby and Java via the
736 Java Native Interface.")
737 (home-page "https://www.artonx.org/collabo/backyard/?RubyJavaBridge")
738 (license license:lgpl2.1+)))
740 (define-public ruby-log4r
747 (uri (rubygems-uri "log4r" version))
750 "0ri90q0frfmigkirqv5ihyrj59xm8pq5zcmf156cbdv4r4l2jicv"))))
751 (build-system ruby-build-system)
753 '(#:tests? #f)) ; no Rakefile in gem
754 (synopsis "Flexible logging library for Ruby")
755 (description "Comprehensive and flexible logging library written
756 in Ruby for use in Ruby programs. It features a hierarchical logging
757 system of any number of levels, custom level names, logger
758 inheritance, multiple output destinations per log event, execution
759 tracing, custom formatting, thread safteyness, XML and YAML
760 configuration, and more.")
761 (home-page "http://log4r.rubyforge.org/")
762 (license license:bsd-3)))
764 (define-public ruby-atoulme-antwrap
766 (name "ruby-atoulme-antwrap")
770 (uri (rubygems-uri "atoulme-Antwrap" version))
773 "05s3iw44lqa81f8nfy5f0xjj808600h82zb9bsh46b9kcq2w2kmz"))))
774 (build-system ruby-build-system)
775 ;; Test data required for most of the tests are not included.
776 (arguments `(#:tests? #f))
778 `(("ruby-hoe" ,ruby-hoe)))
780 `(("ruby-rjb" ,ruby-rjb)))
781 (synopsis "Ruby wrapper for the Ant build tool")
782 (description "Antwrap is a Ruby module that wraps the Apache Ant build
783 tool. Antwrap can be used to invoke Ant tasks from a Ruby or a JRuby
785 (home-page "http://rubyforge.org/projects/antwrap/")
786 (license license:expat)))
788 (define-public ruby-atoulme-saikuro
790 (name "ruby-atoulme-saikuro")
794 (uri (rubygems-uri "atoulme-Saikuro" version))
797 "0kvd2nsxffbza61d3q4j94wrbnbv50r1zy3a7q26f6k706fw1f19"))))
798 (build-system ruby-build-system)
799 ;; FIXME: There are no unit tests. The tests are demonstrations of the
801 (arguments `(#:tests? #f))
802 (synopsis "Cyclomatic complexity analyzer")
803 (description "Saikuro is a Ruby cyclomatic complexity analyzer. When
804 given Ruby source code Saikuro will generate a report listing the cyclomatic
805 complexity of each method found. In addition, Saikuro counts the number of
806 lines per method and can generate a listing of the number of tokens on each
808 (home-page "http://www.github.com/atoulme/Saikuro")
809 ;; File headers contain the BSD-3 license and the README.rdoc says that
810 ;; "Saikuro uses the BSD license", but the LICENSE file contains the text
811 ;; of the Expat license.
812 (license license:bsd-3)))
814 (define-public ruby-asciidoctor
816 (name "ruby-asciidoctor")
821 (uri (rubygems-uri "asciidoctor" version))
824 "0v52bzc72cvg7zfgq27pa4mgyf29dx9m20fghrw1xmvwgd519n1w"))))
825 (build-system ruby-build-system)
827 `(#:test-target "test:all"
829 (modify-phases %standard-phases
830 (add-before 'check 'remove-circular-tests
832 ;; Remove tests that require circular dependencies to load or pass.
833 (delete-file "test/invoker_test.rb")
834 (delete-file "test/converter_test.rb")
835 (delete-file "test/options_test.rb")
838 `(("ruby-minitest" ,ruby-minitest)
839 ("ruby-nokogiri" ,ruby-nokogiri)
840 ("ruby-asciimath" ,ruby-asciimath)
841 ("ruby-coderay" ,ruby-coderay)))
842 (synopsis "Converter from AsciiDoc content to other formats")
844 "Asciidoctor is a text processor and publishing toolchain for converting
845 AsciiDoc content to HTML5, DocBook 5 (or 4.5), PDF, and other formats.")
846 (home-page "https://asciidoctor.org")
847 (license license:expat)))
849 (define-public ruby-ast
856 (uri (rubygems-uri "ast" version))
859 "184ssy3w93nkajlz2c70ifm79jp3j737294kbc5fjw69v1w0n9x7"))))
860 (build-system ruby-build-system)
863 (modify-phases %standard-phases
864 (add-after 'unpack 'remove-coveralls-requirement
866 (substitute* "test/helper.rb"
867 (("require 'coveralls'") "")
868 (("Coveralls::SimpleCov::Formatter") ""))
870 (add-after 'extract-gemspec 'remove-unnecessary-requirements
872 (substitute* "ast.gemspec"
873 ((".*coveralls.*") "\n")
874 (("%q<rest-client>.*") "%q<rest-client>.freeze, [\">= 0\"])\n")
875 (("%q<mime-types>.*") "%q<mime-types>.freeze, [\">= 0\"])\n")
876 (("%q<rake>.*") "%q<rake>.freeze, [\">= 0\"])\n"))
879 `(("bundler" ,bundler)
880 ("ruby-simplecov" ,ruby-simplecov)
881 ("ruby-json-pure" ,ruby-json-pure)
882 ("ruby-mime-times" ,ruby-mime-types)
883 ("ruby-yard" ,ruby-yard)
884 ("ruby-kramdown" ,ruby-kramdown)
885 ("ruby-rest-client" ,ruby-rest-client)
886 ("ruby-bacon" ,ruby-bacon)
887 ("ruby-bacon-colored-output" ,ruby-bacon-colored-output)
888 ("ruby-racc" ,ruby-racc)))
889 (synopsis "Library for working with Abstract Syntax Trees")
891 "@code{ast} is a Ruby library for working with Abstract Syntax Trees.
892 It does this through immutable data structures.")
893 (home-page "https://whitequark.github.io/ast/")
894 (license license:expat)))
896 (define-public ruby-sporkmonger-rack-mount
897 ;; Testing the addressable gem requires a newer commit than that released, so
898 ;; use an up to date version.
900 (commit "076aa2c47d9a4c081f1e9bcb56a826a9e72bd5c3"))
902 (name "ruby-sporkmonger-rack-mount")
903 (version (git-version "0.8.3" revision commit))
907 (url "https://github.com/sporkmonger/rack-mount.git")
909 (file-name (git-file-name name version))
912 "1scx273g3xd93424x9lxc4zyvcp2niknbw5mkz6wkivpf7xsyxdq"))))
913 (build-system ruby-build-system)
915 ;; Tests currently fail so disable them.
916 ;; https://github.com/sporkmonger/rack-mount/pull/1
918 (propagated-inputs `(("ruby-rack" ,ruby-rack)))
919 (synopsis "Stackable dynamic tree based Rack router")
921 "@code{Rack::Mount} supports Rack's @code{X-Cascade} convention to
922 continue trying routes if the response returns pass. This allows multiple
923 routes to be nested or stacked on top of each other.")
924 (home-page "https://github.com/sporkmonger/rack-mount")
925 (license license:expat))))
927 (define-public ruby-ci-reporter
929 (name "ruby-ci-reporter")
933 (uri (rubygems-uri "ci_reporter" version))
936 "17fm20jmw3ajdryhkkxpjahcfx7bgswqzxrskivlkns2718ayyyg"))))
937 (build-system ruby-build-system)
939 `(#:test-target "rspec"))
941 `(("ruby-builder" ,ruby-builder)))
943 `(("bundler" ,bundler)
944 ("ruby-rspec" ,ruby-rspec)))
945 (synopsis "Generate XML reports of runs test")
947 "@code{CI::Reporter} is an add-on to Ruby testing frameworks that allows
948 you to generate XML reports of your test runs. The resulting files can be
949 read by a continuous integration system that understands Ant's JUnit report
951 (home-page "https://github.com/nicksieger/ci_reporter")
952 (license license:expat)))
954 (define-public ruby-contracts
956 (name "ruby-contracts")
961 (uri (rubygems-uri "contracts" version))
964 "119f5p1n6r5svbx8h09za6a4vrsnj5i1pzr9cqdn9hj3wrxvyl3a"))))
965 (build-system ruby-build-system)
967 '(#:test-target "spec"
969 (modify-phases %standard-phases
970 ;; Don't run or require rubocop, the code linting tool, as this is a
972 (add-after 'unpack 'dont-run-rubocop
974 (substitute* "Rakefile"
976 ((".*RuboCop.*") ""))
979 `(("ruby-rspec" ,ruby-rspec)))
980 (synopsis "Method contracts for Ruby")
982 "This library provides contracts for Ruby. A contract describes the
983 correct inputs and output for a method, and will raise an error if a incorrect
985 (home-page "https://github.com/egonSchiele/contracts.ruby")
986 (license license:bsd-2)))
988 (define-public ruby-crack
995 (uri (rubygems-uri "crack" version))
998 "0abb0fvgw00akyik1zxnq7yv391va148151qxdghnzngv66bl62k"))))
999 (build-system ruby-build-system)
1002 (modify-phases %standard-phases
1004 (lambda* (#:key tests? #:allow-other-keys)
1006 (for-each (lambda (file)
1007 (display file)(display "\n")
1008 (invoke "ruby" "-Ilib" "-Itest" "-rrubygems" file))
1009 (find-files "test" ".*rb$")))
1012 `(("ruby-safe-yaml" ,ruby-safe-yaml)))
1013 (synopsis "Simple JSON and XML parsing for Ruby")
1015 "@code{crack} provides really simple JSON and XML parsing, extracted from
1016 code in Merb and Rails.")
1017 (home-page "https://github.com/jnunemaker/crack")
1018 (license license:expat)))
1020 (define-public ruby-crass
1027 (uri (rubygems-uri "crass" version))
1030 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
1031 (build-system ruby-build-system)
1032 (synopsis "Pure Ruby CSS parser based on CSS Syntax Level 3")
1034 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
1035 (home-page "https://github.com/rgrove/crass/")
1036 (license license:expat)))
1038 (define-public ruby-cliver
1040 (name "ruby-cliver")
1045 (uri (rubygems-uri "cliver" version))
1048 "096f4rj7virwvqxhkavy0v55rax10r4jqf8cymbvn4n631948xc7"))))
1049 (build-system ruby-build-system)
1052 (modify-phases %standard-phases
1053 ;; Avoid a incompatibility between rspec@2 and rake. Using rspec@3
1054 ;; would be nice, but the tests look to be incompatible:
1056 ;; NoMethodError: undefined method `last_comment'
1058 (lambda* (#:key tests? #:allow-other-keys)
1063 `(("bundler" ,bundler)
1064 ("ruby-rspec" ,ruby-rspec-2)))
1065 (synopsis "Assertions for command-line dependencies in Ruby")
1067 "@code{cliver} provides a way to detect missing command-line
1068 dependencies, including versions.")
1069 (home-page "https://github.com/yaauie/cliver")
1070 (license license:expat)))
1072 (define-public ruby-czmq-ffi-gen
1074 (name "ruby-czmq-ffi-gen")
1079 (uri (rubygems-uri "czmq-ffi-gen" version))
1082 "1yf719dmf4mwks1hqdsy6i5kzfvlsha69sfnhb2fr2cgk2snbys3"))))
1083 (build-system ruby-build-system)
1085 '(#:tests? #f ;; Tests are not included in the release on rubygems.org
1087 (modify-phases %standard-phases
1088 (add-after 'unpack 'patch-lib_dirs
1089 (lambda* (#:key inputs #:allow-other-keys)
1090 (substitute* "lib/czmq-ffi-gen/czmq/ffi.rb"
1091 (("lib\\_dirs = \\[.*\\]")
1092 (string-append "lib_dirs = ['"
1093 (assoc-ref inputs "czmq") "/lib"
1095 (substitute* "lib/czmq-ffi-gen/libzmq.rb"
1096 (("lib\\_dirs = \\[.*\\]")
1097 (string-append "lib_dirs = ['"
1098 (assoc-ref inputs "zeromq") "/lib"
1101 `(("zeromq" ,zeromq)
1103 (propagated-inputs `(("ruby-ffi" ,ruby-ffi)))
1104 (synopsis "Low-level Ruby bindings for CZMQ (generated using zproject)")
1106 "These Ruby bindings are not intended to be directly used, but rather
1107 used by higher level bindings like those provided by CZTop.")
1109 "https://github.com/paddor/czmq-ffi-gen")
1110 (license license:isc)))
1112 (define-public ruby-cztop
1119 (uri (rubygems-uri "cztop" version))
1122 "0yqbpaiw5d7f271d73lyrsh8xpx6n4zi6xqwfgi00dacxrq3s3fa"))))
1123 (build-system ruby-build-system)
1125 '(#:test-target "spec"
1127 (modify-phases %standard-phases
1128 (add-after 'unpack 'patch-lib_paths
1129 (lambda* (#:key inputs #:allow-other-keys)
1130 (substitute* "lib/cztop/poller/zmq.rb"
1131 (("lib\\_paths = \\[.*\\]")
1132 (string-append "lib_paths = ['"
1133 (assoc-ref inputs "zeromq") "/lib"
1136 `(("bundler" ,bundler)
1137 ("ruby-rspec" ,ruby-rspec)))
1139 `(("zeromq" ,zeromq)))
1141 `(("ruby-czmq-ffi-gen" ,ruby-czmq-ffi-gen)))
1142 (synopsis "CZMQ Ruby bindings")
1144 "CZMQ Ruby bindings, based on the generated low-level FFI bindings of
1145 CZMQ. The focus of of CZTop is on being easy to use and providing first class
1146 support for security mechanisms.")
1147 (home-page "https://github.com/paddor/cztop")
1148 (license license:isc)))
1150 (define-public ruby-saikuro-treemap
1152 (name "ruby-saikuro-treemap")
1156 (uri (rubygems-uri "saikuro_treemap" version))
1159 "0w70nmh43mwfbpq20iindl61siqqr8acmf7p3m7n5ipd61c24950"))))
1160 (build-system ruby-build-system)
1161 ;; Some of the tests fail because the generated JSON has keys in a
1162 ;; different order. This is a problem with the test suite rather than any
1163 ;; of the involved libraries.
1164 (arguments `(#:tests? #f))
1166 `(("ruby-json-pure" ,ruby-json-pure)
1167 ("ruby-atoulme-saikuro" ,ruby-atoulme-saikuro)))
1168 (synopsis "Generate complexity treemap based on saikuro analysis")
1170 "This gem generates a treemap showing the complexity of Ruby code on
1171 which it is run. It uses Saikuro under the covers to analyze Ruby code
1173 (home-page "https://github.com/ThoughtWorksStudios/saikuro_treemap")
1174 (license license:expat)))
1176 (define-public ruby-open4
1183 (uri (rubygems-uri "open4" version))
1186 "1cgls3f9dlrpil846q0w7h66vsc33jqn84nql4gcqkk221rh7px1"))))
1187 (build-system ruby-build-system)
1190 (modify-phases %standard-phases
1191 (add-after 'unpack 'patch
1193 (substitute* "rakefile"
1194 ;; Update the Rakefile so it works
1195 (("-rubygems") "-rrubygems")
1196 (("Config") "RbConfig"))
1198 (add-before 'check 'set-LIB
1200 ;; This is used in the rakefile when running the tests
1201 (setenv "LIB" "open4")
1203 (synopsis "Open child processes from Ruby and manage them easily")
1205 "@code{Open4} is a Ruby library to run child processes and manage their
1207 (home-page "https://github.com/ahoward/open4")
1208 (license license:ruby)))
1210 (define-public ruby-options
1212 (name "ruby-options")
1217 (uri (rubygems-uri "options" version))
1220 "1s650nwnabx66w584m1cyw82icyym6hv5kzfsbp38cinkr5klh9j"))))
1221 (build-system ruby-build-system)
1223 '(#:tests? #f ;; TODO: NameError: uninitialized constant Config
1225 (modify-phases %standard-phases
1226 (add-before 'check 'set-LIB
1228 ;; This is used in the Rakefile, and setting it avoids an issue
1229 ;; with running the tests.
1230 (setenv "LIB" "options")
1232 (synopsis "Ruby library to parse options from *args cleanly")
1234 "The @code{options} library helps with parsing keyword options in Ruby
1236 (home-page "https://github.com/ahoward/options")
1237 (license license:ruby)))
1239 (define-public ruby-erubi
1246 (uri (rubygems-uri "erubi" version))
1249 "1kagnf6ziahj0d781s6ryy6fwqwa3ad4xbzzj84p9m4nv4c2jir1"))))
1250 (build-system ruby-build-system)
1251 (synopsis "ERB template engine for Ruby")
1253 "Erubi is a ERB template engine for Ruby. It is a simplified fork of
1255 (home-page "https://github.com/jeremyevans/erubi")
1256 (license license:expat)))
1258 (define-public ruby-erubis
1260 (name "ruby-erubis")
1265 (uri (rubygems-uri "erubis" version))
1268 "1fj827xqjs91yqsydf0zmfyw9p4l2jz5yikg3mppz6d7fi8kyrb3"))))
1269 (build-system ruby-build-system)
1271 '(#:tests? #f)) ; tests do not run properly with Ruby 2.0
1272 (synopsis "Implementation of embedded Ruby (eRuby)")
1274 "Erubis is a fast implementation of embedded Ruby (eRuby) with several
1275 features such as multi-language support, auto escaping, auto trimming spaces
1276 around @code{<% %>}, a changeable embedded pattern, and Ruby on Rails
1278 (home-page "http://www.kuwata-lab.com/erubis/")
1279 (license license:expat)))
1281 (define-public ruby-orderedhash
1283 (name "ruby-orderedhash")
1287 (uri (rubygems-uri "orderedhash" version))
1290 "0fryy7f9jbpx33jq5m402yqj01zcg563k9fsxlqbhmq638p4bzd7"))))
1291 (build-system ruby-build-system)
1293 '(#:tests? #f)) ; no test suite
1294 (synopsis "Ruby library providing an order-preserving hash")
1295 (description "Orderedhash is a Ruby library providing a hash
1296 implementation that preserves the order of items and features some array-like
1298 (home-page "http://codeforpeople.com/lib/ruby/orderedhash/")
1299 (license license:public-domain)))
1301 (define-public ruby-libxml
1303 (name "ruby-libxml")
1308 (uri (rubygems-uri "libxml-ruby" version))
1311 "0xy8wmjwjcnv36zi042678ncjzpxvy351ccbv7mzkns2n3kxfp54"))))
1312 (build-system ruby-build-system)
1315 ("libxml2" ,libxml2)))
1317 '(#:tests? #f ; test suite hangs for unknown reason
1320 (string-append "--with-xml2-include="
1321 (assoc-ref %build-inputs "libxml2")
1322 "/include/libxml2" ))))
1323 (synopsis "Ruby bindings for GNOME Libxml2")
1324 (description "The Libxml-Ruby project provides Ruby language bindings for
1325 the GNOME Libxml2 XML toolkit.")
1326 (home-page "https://xml4r.github.com/libxml-ruby")
1327 (license license:expat)))
1329 (define-public ruby-xml-simple
1331 (name "ruby-xml-simple")
1335 (uri (rubygems-uri "xml-simple" version))
1338 "0xlqplda3fix5pcykzsyzwgnbamb3qrqkgbrhhfz2a2fxhrkvhw8"))))
1339 (build-system ruby-build-system)
1341 '(#:tests? #f)) ; no test suite
1342 (synopsis "Simple Ruby library for XML processing")
1343 (description "This library provides a simple API for XML processing in
1345 (home-page "https://github.com/maik/xml-simple")
1346 (license license:ruby)))
1348 (define-public ruby-thor
1354 (uri (rubygems-uri "thor" version))
1357 "01n5dv9kql60m6a00zc0r66jvaxx98qhdny3klyj0p3w34pad2ns"))))
1358 (build-system ruby-build-system)
1360 '(#:tests? #f)) ; no test suite
1362 `(("bundler" ,bundler)))
1363 (synopsis "Ruby toolkit for building command-line interfaces")
1364 (description "Thor is a toolkit for building powerful command-line
1366 (home-page "http://whatisthor.com/")
1367 (license license:expat)))
1369 (define-public ruby-lumberjack
1371 (name "ruby-lumberjack")
1375 (uri (rubygems-uri "lumberjack" version))
1378 "06im7gcg42x77yhz2w5da2ly9xz0n0c36y5ks7xs53v0l9g0vf5n"))))
1379 (build-system ruby-build-system)
1381 `(("ruby-rspec" ,ruby-rspec)
1382 ("ruby-timecop" ,ruby-timecop)))
1383 (synopsis "Logging utility library for Ruby")
1384 (description "Lumberjack is a simple logging utility that can be a drop in
1385 replacement for Logger or ActiveSupport::BufferedLogger. It provides support
1386 for automatically rolling log files even with multiple processes writing the
1388 (home-page "https://github.com/bdurand/lumberjack")
1389 (license license:expat)))
1391 (define-public ruby-nenv
1397 (uri (rubygems-uri "nenv" version))
1400 "0r97jzknll9bhd8yyg2bngnnkj8rjhal667n7d32h8h7ny7nvpnr"))))
1401 (build-system ruby-build-system)
1403 `(#:tests? #f)) ; no tests included
1405 `(("ruby-rspec" ,ruby-rspec)
1406 ("bundler" ,bundler)))
1407 (synopsis "Ruby interface for modifying the environment")
1408 (description "Nenv provides a convenient wrapper for Ruby's ENV to modify
1409 and inspect the environment.")
1410 (home-page "https://github.com/e2/nenv")
1411 (license license:expat)))
1413 (define-public ruby-permutation
1415 (name "ruby-permutation")
1419 (uri (rubygems-uri "permutation" version))
1422 "13crwk2vfbzv99czva7881027dbcnidihmvx2jc58z2vm3bp9sl8"))))
1423 (build-system ruby-build-system)
1426 (modify-phases %standard-phases
1427 (add-after 'unpack 'fix-rakefile
1429 (substitute* "Rakefile"
1430 (("require 'rake/gempackagetask'")
1431 "require 'rubygems/package_task'")
1432 (("include Config") ""))
1436 (invoke "ruby" "-Ilib" "test/test.rb"))))))
1437 (synopsis "Library to perform operations with sequence permutations")
1438 (description "This package provides a Ruby library to perform different
1439 operations with permutations of sequences, such as strings and arrays.")
1440 (home-page "https://flori.github.io/permutation")
1441 (license license:gpl2))) ; GPL 2 only
1443 (define-public ruby-shellany
1445 (name "ruby-shellany")
1449 (uri (rubygems-uri "shellany" version))
1452 "1ryyzrj1kxmnpdzhlv4ys3dnl2r5r3d2rs2jwzbnd1v96a8pl4hf"))))
1453 (build-system ruby-build-system)
1455 `(#:test-target "default"
1457 (modify-phases %standard-phases
1458 (add-after 'unpack 'fix-version-test
1460 (substitute* "spec/shellany_spec.rb"
1461 (("^RSpec") "require \"shellany\"\nRSpec"))
1464 `(("ruby-rspec" ,ruby-rspec)
1465 ("ruby-nenv" ,ruby-nenv)
1466 ("bundler" ,bundler)))
1467 (synopsis "Capture command output")
1468 (description "Shellany is a Ruby library providing functions to capture
1469 the output produced by running shell commands.")
1470 (home-page "https://rubygems.org/gems/shellany")
1471 (license license:expat)))
1473 (define-public ruby-notiffany
1475 (name "ruby-notiffany")
1479 (uri (rubygems-uri "notiffany" version))
1482 "0x838fa5il0dd9zbm3lxkpbfxcf5fxv9556mayc2mxsdl5ghv8nx"))))
1483 (build-system ruby-build-system)
1484 ;; Tests are not included in the gem.
1485 (arguments `(#:tests? #f))
1487 `(("ruby-shellany" ,ruby-shellany)
1488 ("ruby-nenv" ,ruby-nenv)))
1490 `(("bundler" ,bundler)))
1491 (synopsis "Wrapper libray for notification libraries")
1492 (description "Notiffany is a Ruby wrapper libray for notification
1493 libraries such as Libnotify.")
1494 (home-page "https://github.com/guard/notiffany")
1495 (license license:expat)))
1497 (define-public ruby-formatador
1499 (name "ruby-formatador")
1503 (uri (rubygems-uri "formatador" version))
1506 "1gc26phrwlmlqrmz4bagq1wd5b7g64avpx0ghxr9xdxcvmlii0l0"))))
1507 (build-system ruby-build-system)
1508 ;; Circular dependency: Tests require ruby-shindo, which requires
1509 ;; ruby-formatador at runtime.
1510 (arguments `(#:tests? #f))
1511 (synopsis "Ruby library to format text on stdout")
1512 (description "Formatador is a Ruby library to format text printed to the
1513 standard output stream.")
1514 (home-page "https://github.com/geemus/formatador")
1515 (license license:expat)))
1517 (define-public ruby-fuubar
1519 (name "ruby-fuubar")
1523 ;; Fetch from the git repository, as the gem package doesn't include
1527 (url "https://github.com/thekompanee/fuubar.git")
1528 (commit (string-append "releases/v" version))))
1529 (file-name (git-file-name name version))
1532 "0jm1x2xp13csbnadixaikj7mlkp5yk4byx51npm56zi13izp7259"))))
1533 (build-system ruby-build-system)
1535 '(;; TODO: Some tests fail, unsure why.
1536 ;; 21 examples, 7 failures
1539 (modify-phases %standard-phases
1540 (add-before 'build 'delete-certificate
1542 ;; Remove 's.cert_chain' as we do not build with a private key
1543 (substitute* "fuubar.gemspec"
1544 ((".*cert_chain.*") "")
1545 ((".*signing_key.*") ""))
1548 (lambda* (#:key tests? #:allow-other-keys)
1553 `(("bundler" ,bundler)))
1555 `(("ruby-rspec-core" ,ruby-rspec-core)
1556 ("ruby-progressbar" ,ruby-progressbar)))
1557 (synopsis "Fuubar is an RSpec formatter that uses a progress bar")
1559 "Fuubar is an RSpec formatter that uses a progress bar instead of a
1560 string of letters and dots as feedback. It also stops on the first test
1562 (home-page "https://github.com/thekompanee/fuubar")
1563 (license license:expat)))
1565 (define-public ruby-hashdiff
1567 (name "ruby-hashdiff")
1572 (uri (rubygems-uri "hashdiff" version))
1575 "19ykg5pax8798nh1yv71adkx0zzs7gn2rxjj86v7nsw0jba5lask"))))
1576 (build-system ruby-build-system)
1579 (modify-phases %standard-phases
1580 ;; Run tests directly via rspec to avoid Rake issue:
1581 ;; NoMethodError: undefined method `last_comment'
1583 (lambda* (#:key tests? #:allow-other-keys)
1588 `(("bundler" ,bundler)
1589 ("ruby-rspec" ,ruby-rspec-2)))
1590 (synopsis "HashDiff computes the smallest difference between two hashes")
1592 "HashDiff is a Ruby library to compute the smallest difference between
1594 (home-page "https://github.com/liufengyun/hashdiff")
1595 (license license:expat)))
1597 (define-public ruby-shindo
1599 (name "ruby-shindo")
1603 (uri (rubygems-uri "shindo" version))
1606 "0s8v1jbz8i0jh92f2fgxb3p51l1azrpkc8nv4mhrqy4vndpvd7wq"))))
1607 (build-system ruby-build-system)
1609 `(#:test-target "shindo_tests"
1611 (modify-phases %standard-phases
1612 (add-after 'unpack 'fix-tests
1614 (substitute* "tests/tests_helper.rb"
1616 (substitute* "Rakefile"
1617 (("system \"shindo") "system \"./bin/shindo")
1618 ;; This test doesn't work, so we disable it.
1619 (("fail \"The build_error test should fail") "#")
1620 ((" -rubygems") ""))
1623 `(("ruby-formatador" ,ruby-formatador)))
1624 (synopsis "Simple depth first Ruby testing")
1625 (description "Shindo is a simple depth first testing library for Ruby.")
1626 (home-page "https://github.com/geemus/shindo")
1627 (license license:expat)))
1629 (define-public ruby-rubygems-tasks
1631 (name "ruby-rubygems-tasks")
1635 (uri (rubygems-uri "rubygems-tasks" version))
1638 "16cp45qlbcglnqdm4f1vj3diywdz4v024saqpgrz6palf0wmgz2j"))))
1639 (build-system ruby-build-system)
1640 ;; Tests need Internet access.
1641 (arguments `(#:tests? #f))
1643 `(("ruby-rspec" ,ruby-rspec)
1644 ("ruby-yard" ,ruby-yard)))
1645 (synopsis "Rake tasks for managing and releasing Ruby Gems")
1646 (description "Rubygems-task provides Rake tasks for managing and releasing
1648 (home-page "https://github.com/postmodern/rubygems-tasks")
1649 (license license:expat)))
1651 (define-public ruby-rubyzip
1653 (name "ruby-rubyzip")
1658 (uri (rubygems-uri "rubyzip" version))
1661 "06js4gznzgh8ac2ldvmjcmg9v1vg9llm357yckkpylaj6z456zqz"))))
1662 (build-system ruby-build-system)
1665 (modify-phases %standard-phases
1666 (add-before 'check 'patch-tests
1667 (lambda* (#:key inputs #:allow-other-keys)
1668 (substitute* "test/gentestfiles.rb"
1671 (assoc-ref inputs "zip") "/bin/zip")))
1672 (substitute* "test/input_stream_test.rb"
1673 (("/usr/bin/env ruby") (which "ruby")))
1676 `(("bundler" ,bundler)
1677 ("ruby-simplecov" ,ruby-simplecov)
1680 (synopsis "Ruby module is for reading and writing zip files")
1682 "The rubyzip module provides ways to read from and create zip files.")
1683 (home-page "http://github.com/rubyzip/rubyzip")
1684 (license license:bsd-2)))
1686 (define-public ruby-simplecov-html
1688 (name "ruby-simplecov-html")
1692 (uri (rubygems-uri "simplecov-html" version))
1695 "1lihraa4rgxk8wbfl77fy9sf0ypk31iivly8vl3w04srd7i0clzn"))))
1696 (build-system ruby-build-system)
1697 (arguments `(#:tests? #f)) ; there are no tests
1699 `(("bundler" ,bundler)))
1700 (synopsis "Default HTML formatter for SimpleCov code coverage tool")
1701 (description "This package provides the default HTML formatter for
1702 the SimpleCov code coverage tool for Ruby version 1.9 and above.")
1703 (home-page "https://github.com/colszowka/simplecov-html")
1704 (license license:expat)))
1706 (define-public ruby-simplecov
1708 (name "ruby-simplecov")
1712 (uri (rubygems-uri "simplecov" version))
1715 "0ffhyrfnq2zm2mc1742a4hqy475g3qa1zf6yfldwg1ldh5sn3qbx"))))
1716 (build-system ruby-build-system)
1717 ;; Simplecov depends on rubocop for code style checking at build time.
1718 ;; Rubocop needs simplecov at build time.
1719 (arguments `(#:tests? #f))
1721 `(("ruby-json" ,ruby-json)
1722 ("ruby-docile" ,ruby-docile)
1723 ("ruby-simplecov-html" ,ruby-simplecov-html)))
1725 `(("bundler" ,bundler)))
1726 (synopsis "Code coverage framework for Ruby")
1727 (description "SimpleCov is a code coverage framework for Ruby with a
1728 powerful configuration library and automatic merging of coverage across test
1730 (home-page "https://github.com/colszowka/simplecov")
1731 (license license:expat)))
1733 (define-public ruby-useragent
1735 (name "ruby-useragent")
1739 (uri (rubygems-uri "useragent" version))
1742 "1139cjqyv1hk1qcw89k81ajjkqyakqgbcyvmfrsmjqi8yn9kgqhq"))))
1743 (build-system ruby-build-system)
1745 '(#:tests? #f)) ; no test suite
1746 (synopsis "HTTP user agent parser for Ruby")
1747 (description "UserAgent is a Ruby library that parses and compares HTTP
1749 (home-page "https://github.com/gshutler/useragent")
1750 (license license:expat)))
1752 (define-public ruby-backports
1754 (name "ruby-backports")
1759 (uri (rubygems-uri "backports" version))
1762 "1hshjxww2h7s0dk57njrygq4zpp0nlqrjfya7zwm27iq3rhc3y8g"))))
1763 (build-system ruby-build-system)
1765 '(;; TODO: This should be default, but there is one test failure
1766 #:test-target "all_spec"))
1768 `(("ruby-mspec" ,ruby-mspec)
1769 ("ruby-activesupport" ,ruby-activesupport)))
1770 (synopsis "Backports of the features in newer Ruby versions")
1772 "Backports enables more compatibility across Ruby versions by providing
1773 backports of some features.")
1774 (home-page "https://github.com/marcandre/backports")
1775 (license license:expat)))
1777 (define-public ruby-bacon
1783 (uri (rubygems-uri "bacon" version))
1786 "1f06gdj77bmwzc1k5iragl1595hbn67yc7sqvs56ca8plrr2vmai"))))
1787 (build-system ruby-build-system)
1788 (synopsis "Small RSpec clone")
1789 (description "Bacon is a small RSpec clone providing all essential
1791 (home-page "https://github.com/chneukirchen/bacon")
1792 (license license:expat)))
1794 (define-public ruby-bacon-bits
1796 (name "ruby-bacon-bits")
1801 (uri (rubygems-uri "bacon-bits" version))
1804 "1ghpj8ja94lhi8rgi872hqk4fd2amz2k7g9znd64z5dj7v6l0dmx"))))
1805 (build-system ruby-build-system)
1809 (propagated-inputs `(("ruby-bacon" ,ruby-bacon)))
1810 (synopsis "Extensions to Bacon, for disabling tests, before and after
1813 "This extends the bacon testing framework with useful extensions to
1814 disable tests, have before and after blocks that run once and more.")
1815 (home-page "https://github.com/cldwalker/bacon-bits")
1816 (license license:expat)))
1818 (define-public ruby-bacon-colored-output
1820 (name "ruby-bacon-colored-output")
1825 (uri (rubygems-uri "bacon-colored_output" version))
1828 "1znyh3vkfdlmf19p3k4zip88ibym41dn5g4p4n5hmks2iznb7qpx"))))
1829 (build-system ruby-build-system)
1831 '(;; No included tests
1834 `(("ruby-bacon" ,ruby-bacon)))
1835 (synopsis "Colored output for Bacon test framework")
1837 "This package adds color through ANSI escape codes to Bacon test
1839 (home-page "https://github.com/whitequark/bacon-colored_output")
1840 (license license:expat)))
1842 (define-public ruby-connection-pool
1844 (name "ruby-connection-pool")
1848 (uri (rubygems-uri "connection_pool" version))
1851 "0lflx29mlznf1hn0nihkgllzbj8xp5qasn8j7h838465pi399k68"))))
1852 (build-system ruby-build-system)
1854 `(("bundler" ,bundler)))
1855 (synopsis "Generic connection pool for Ruby")
1856 (description "Connection_pool provides a generic connection pooling
1857 interface for Ruby programs.")
1858 (home-page "https://github.com/mperham/connection_pool")
1859 (license license:expat)))
1861 (define-public ruby-net-http-persistent
1863 (name "ruby-net-http-persistent")
1867 (uri (rubygems-uri "net-http-persistent" version))
1870 "156rv95bgxfz6qw5y1r7c7bswr77918hygl8dyl14qzbqc5vyp18"))))
1871 (build-system ruby-build-system)
1873 `(("ruby-connection-pool" ,ruby-connection-pool)
1874 ("ruby-hoe" ,ruby-hoe)))
1875 (synopsis "Persistent HTTP connection manager")
1876 (description "Net::HTTP::Persistent manages persistent HTTP connections
1877 using Net::HTTP, supporting reconnection and retry according to RFC 2616.")
1878 (home-page "https://github.com/drbrain/net-http-persistent")
1879 (license license:expat)))
1881 (define-public ruby-power-assert
1883 (name "ruby-power-assert")
1887 (uri (rubygems-uri "power_assert" version))
1890 "0ka6w71lcan4wgf111xi3pcn9ma9lhakv31jg8w007nwzi0xfjbi"))))
1891 (build-system ruby-build-system)
1893 `(("bundler" ,bundler)))
1894 (synopsis "Assert library with descriptive assertion messages")
1895 (description "Power-assert is an assertion library providing descriptive
1896 assertion messages for tests.")
1897 (home-page "https://github.com/k-tsj/power_assert")
1898 (license (list license:bsd-2 license:ruby))))
1900 (define-public ruby-powerpack
1902 (name "ruby-powerpack")
1907 (uri (rubygems-uri "powerpack" version))
1910 "1r51d67wd467rpdfl6x43y84vwm8f5ql9l9m85ak1s2sp3nc5hyv"))))
1911 (build-system ruby-build-system)
1913 '(#:test-target "spec"))
1915 `(("bundler" ,bundler)
1916 ("ruby-rspec" ,ruby-rspec)
1917 ("ruby-yard" ,ruby-yard)))
1918 (synopsis "Useful extensions to core Ruby classes")
1920 "This package provides a few useful extensions to core Ruby classes,
1921 including @code{Array}, @code{Enumerable}, @code{Hash}, @code{Numeric}, and
1923 (home-page "https://github.com/bbatsov/powerpack")
1924 (license license:expat)))
1926 (define-public ruby-locale
1928 (name "ruby-locale")
1932 (uri (rubygems-uri "locale" version))
1935 "1sls9bq4krx0fmnzmlbn64dw23c4d6pz46ynjzrn9k8zyassdd0x"))))
1936 (build-system ruby-build-system)
1937 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1938 ;; which needs ruby-gettext, which needs ruby-locale. To break the
1939 ;; dependency cycle we disable tests.
1940 (arguments `(#:tests? #f))
1942 `(("bundler" ,bundler)
1943 ("ruby-yard" ,ruby-yard)))
1944 (synopsis "Ruby library providing basic localization APIs")
1946 "Ruby-Locale is the pure ruby library which provides basic APIs for
1948 (home-page "https://github.com/ruby-gettext/locale")
1949 (license (list license:lgpl3+ license:ruby))))
1951 (define-public ruby-text
1957 (uri (rubygems-uri "text" version))
1960 "1x6kkmsr49y3rnrin91rv8mpc3dhrf3ql08kbccw8yffq61brfrg"))))
1961 (build-system ruby-build-system)
1962 (synopsis "Collection of text algorithms for Ruby")
1964 "This package provides a collection of text algorithms: Levenshtein,
1965 Soundex, Metaphone, Double Metaphone, Porter Stemming.")
1966 (home-page "https://github.com/threedaymonk/text")
1967 (license license:expat)))
1969 (define-public ruby-gettext
1971 (name "ruby-gettext")
1975 (uri (rubygems-uri "gettext" version))
1978 "1hg9islkm324mb4sd4za1fgafj1hqnm3bdvzj3k4fqpnzqnbcfiq"))))
1979 (build-system ruby-build-system)
1980 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga,
1981 ;; which needs ruby-gettext. To break the dependency cycle we disable
1983 (arguments `(#:tests? #f))
1985 `(("ruby-locale" ,ruby-locale)
1986 ("ruby-text" ,ruby-text)))
1988 `(("bundler" ,bundler)
1989 ("ruby-yard" ,ruby-yard)))
1990 (synopsis "GNU gettext-like program for Ruby")
1992 "Gettext is a GNU gettext-like program for Ruby. The catalog
1993 file (po-file) used is the same as that used by GNU gettext, allowing you to
1994 use GNU gettext tools for maintenance.")
1995 (home-page "https://ruby-gettext.github.com/")
1996 (license (list license:lgpl3+ license:ruby))))
1998 (define-public ruby-packnga
2000 (name "ruby-packnga")
2004 (uri (rubygems-uri "packnga" version))
2007 "1vv2j0i43s4xid2km5hgrrxqlqpwgq8nlm8kaxfg2531c1vwfsd4"))))
2008 (build-system ruby-build-system)
2009 ;; ruby-test-unit is required to run tests, but that needs ruby-packnga.
2010 ;; To break the dependency cycle we disable tests.
2011 (arguments `(#:tests? #f))
2013 `(("ruby-gettext" ,ruby-gettext)
2014 ("ruby-yard" ,ruby-yard)))
2016 `(("bundler" ,bundler)))
2017 (synopsis "Utility library to package internationalized libraries")
2019 "Packnga is a library to translate to many languages using YARD.")
2020 (home-page "http://ranguba.org/packnga/")
2021 (license license:lgpl2.0+)))
2023 (define-public ruby-test-unit
2025 (name "ruby-test-unit")
2029 (uri (rubygems-uri "test-unit" version))
2032 "05bx36fw01iqz0xqhvjfrwjgnj1zx3b2vn6w1fzp19rchd7zqc52"))))
2033 (build-system ruby-build-system)
2035 `(("ruby-power-assert" ,ruby-power-assert)))
2037 `(("bundler" ,bundler)
2038 ("ruby-packnga" ,ruby-packnga)
2039 ("ruby-yard" ,ruby-yard)))
2040 (synopsis "Unit testing framework for Ruby")
2041 (description "@code{Test::Unit} is unit testing framework for Ruby, based
2042 on xUnit principles. These were originally designed by Kent Beck, creator of
2043 extreme programming software development methodology, for Smalltalk's SUnit.
2044 It allows writing tests, checking results and automated testing in Ruby.")
2045 (home-page "https://test-unit.github.io/")
2046 (license (list license:psfl license:ruby))))
2048 (define-public ruby-maruku
2050 (name "ruby-maruku")
2055 (uri (rubygems-uri "maruku" version))
2058 "1r7bxpgnx2hp3g12bjrmdrpv663dfqxsdp0af69kjhxmaxpia56x"))))
2059 (build-system ruby-build-system)
2061 '(;; TODO: 3 tests seem to fail due to HTML encoding issues
2064 (modify-phases %standard-phases
2066 (lambda* (#:key tests? #:allow-other-keys)
2071 `(("ruby-rspec" ,ruby-rspec)
2072 ("ruby-simplecov" ,ruby-simplecov)
2073 ("ruby-nokogiri-diff" ,ruby-nokogiri-diff)))
2074 (synopsis "Markdown interpreter in Ruby")
2076 "Maruku is a Markdown interpreter in Ruby. It can export Markdown to
2077 HTML, and PDF through LaTeX.")
2078 (home-page "https://github.com/bhollis/maruku")
2079 (license license:expat)))
2081 (define-public ruby-metaclass
2083 (name "ruby-metaclass")
2087 (uri (rubygems-uri "metaclass" version))
2090 "0hp99y2b1nh0nr8pc398n3f8lakgci6pkrg4bf2b2211j1f6hsc5"))))
2091 (build-system ruby-build-system)
2094 (modify-phases %standard-phases
2095 (add-after 'unpack 'add-test-unit-to-search-path
2096 (lambda* (#:key inputs #:allow-other-keys)
2097 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2098 (substitute* "Rakefile"
2099 (("t\\.libs << \"test\"" line)
2100 (string-append line "; t.libs << \""
2101 test-unit "/lib/ruby/vendor_ruby"
2103 ,(package-version ruby-test-unit)
2107 `(("bundler" ,bundler)
2108 ("ruby-test-unit" ,ruby-test-unit)))
2109 (synopsis "Ruby library adding metaclass method to all objects")
2111 "Metaclass is a Ruby library adding a @code{metaclass} method to all Ruby
2113 (home-page "https://github.com/floehopper/metaclass")
2114 (license license:expat)))
2116 (define-public ruby-mspec
2123 (uri (rubygems-uri "mspec" version))
2126 "0wmyh2n40m4srwdx9z6h6g6p46k02pzyhcsja3hqcw5h5b0hfmhd"))))
2127 (build-system ruby-build-system)
2129 '(;; TODO: 3 test failures
2130 ;; ./spec/mocks/mock_spec.rb:82
2131 ;; ./spec/utils/name_map_spec.rb:151
2132 ;; ./spec/utils/name_map_spec.rb:155
2135 (modify-phases %standard-phases
2136 (add-after 'extract-gemspec 'change-dependency-constraints
2138 (substitute* "mspec.gemspec"
2139 (("rake.*") "rake>)\n")
2140 (("rspec.*") "rspec>)\n"))
2143 (lambda* (#:key tests? #:allow-other-keys)
2145 (invoke "rspec" "spec"))
2148 `(("bundler" ,bundler)
2149 ("ruby-rake" ,ruby-rake)
2150 ("ruby-rspec" ,ruby-rspec)))
2151 (synopsis "MSpec is a specialized framework for RubySpec")
2153 "MSpec is a specialized framework that is syntax-compatible with RSpec 2
2154 for basic features. MSpec contains additional features that assist in writing
2155 specs for Ruby implementations in ruby/spec.")
2156 (home-page "http://rubyspec.org")
2157 (license license:expat)))
2159 (define-public ruby-mysql2
2161 (name "ruby-mysql2")
2167 (url "https://github.com/brianmario/mysql2.git")
2169 (file-name (git-file-name name version))
2172 "11lvfgc2rmvkm52jp0nbi6pvhk06klznghr7llldfw8basl9n5wv"))))
2173 (build-system ruby-build-system)
2175 '(;; TODO: Tests require a running MySQL/MariaDB service
2178 (modify-phases %standard-phases
2179 (replace 'replace-git-ls-files
2181 (substitute* "mysql2.gemspec"
2182 (("git ls-files .*`") "find . -type f |sort`"))
2184 (add-before 'install 'set-MAKEFLAGS
2185 (lambda* (#:key outputs #:allow-other-keys)
2189 "prefix=" (assoc-ref outputs "out")))
2191 ;; Move the 'check phase to after 'install, as then you can test
2192 ;; using the installed mysql2 gem in the store.
2194 (add-after 'install 'check
2195 (lambda* (#:key outputs tests? #:allow-other-keys)
2200 (assoc-ref outputs "out") "/lib/ruby/vendor_ruby"))
2205 `(("mariadb" ,mariadb)
2208 `(("ruby-rspec" ,ruby-rspec)
2209 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2210 (synopsis "MySQL library for Ruby, binding to libmysql")
2212 "This package provides a simple, fast MySQL library for Ruby, binding to
2214 (home-page "https://github.com/brianmario/mysql2")
2215 (license license:expat)))
2217 (define-public ruby-blankslate
2219 (name "ruby-blankslate")
2223 (uri (rubygems-uri "blankslate" version))
2226 "0fwkb4d1j9gc7vdwn2nxvwgy2g5wlag4c4bp7bl85jvq0kgp6cyx"))))
2227 (build-system ruby-build-system)
2230 (modify-phases %standard-phases
2232 (lambda _ (invoke "rspec" "spec/"))))))
2234 `(("bundler" ,bundler)
2235 ("ruby-rspec" ,ruby-rspec)))
2236 (synopsis "Abstract base class with no predefined methods")
2238 "BlankSlate provides an abstract base class with no predefined
2239 methods (except for @code{__send__} and @code{__id__}). BlankSlate is useful
2240 as a base class when writing classes that depend upon
2241 @code{method_missing} (e.g. dynamic proxies).")
2242 (home-page "https://github.com/masover/blankslate")
2243 (license license:expat)))
2245 (define-public ruby-bond
2252 (uri (rubygems-uri "bond" version))
2255 "1r19ifc4skyl2gxnifrxa5jvbbay9fb2in79ppgv02b6n4bhsw90"))))
2256 (build-system ruby-build-system)
2258 `(("ruby-bacon" ,ruby-bacon)
2259 ("ruby-bacon-bits" ,ruby-bacon-bits)
2260 ("ruby-mocha-on-bacon" ,ruby-mocha-on-bacon)))
2261 (synopsis "Bond can provide custom autocompletion for arguments, methods
2264 "Bond can autocomplete argument(s) to methods, uniquely completing per
2265 module, per method and per argument. Bond provides a configuration system and
2266 a DSL for creating custom completions and completion rules. Bond can also
2267 load completions that ship with gems. Bond is able to offer more than irb's
2268 completion since it uses the full line of input when completing as opposed to
2269 irb's last-word approach.")
2270 (home-page "http://tagaholic.me/bond/")
2271 (license license:expat)))
2273 (define-public ruby-idn-ruby
2275 (name "ruby-idn-ruby")
2280 (uri (rubygems-uri "idn-ruby" version))
2283 "07vblcyk3g72sbq12xz7xj28snpxnh3sbcnxy8bglqbfqqhvmawr"))))
2284 (build-system ruby-build-system)
2287 (modify-phases %standard-phases
2289 (add-after 'install 'check
2290 (lambda* (#:key tests? outputs #:allow-other-keys)
2292 (let* ((gem-file (cadr (find-files "." "\\.gem")))
2293 (name-and-version (basename gem-file ".gem")))
2297 (assoc-ref outputs "out")
2298 "/lib/ruby/vendor_ruby/gems/"
2301 (find-files "./test" ".*\\.rb"))))
2304 `(("libidn" ,libidn)))
2305 (synopsis "Ruby Bindings for the GNU LibIDN library")
2307 "Ruby Bindings for the GNU LibIDN library, an implementation of the
2308 Stringprep, Punycode and IDNA specifications. These are used to encode and
2309 decode internationalized domain + names according to the IDNA2003
2312 Included are the most important parts of the Stringprep, Punycode and IDNA
2313 APIs like performing Stringprep processings, encoding to and decoding from
2314 Punycode strings and converting entire domain names to and from the ACE
2316 (home-page "https://github.com/deepfryed/idn-ruby")
2317 (license license:asl2.0)))
2319 (define-public ruby-instantiator
2321 (name "ruby-instantiator")
2325 (uri (rubygems-uri "instantiator" version))
2328 "0w07w3gkyqr7m0vz5h13vm8b411660qywjm2xxxgdjv4wb3fazbr"))))
2329 (build-system ruby-build-system)
2332 (modify-phases %standard-phases
2333 (add-after 'unpack 'add-test-unit-to-search-path
2334 (lambda* (#:key inputs #:allow-other-keys)
2335 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2336 (substitute* "Rakefile"
2337 (("t\\.libs << \"test\"" line)
2338 (string-append line "; t.libs << \""
2339 test-unit "/lib/ruby/vendor_ruby"
2341 ,(package-version ruby-test-unit)
2345 `(("ruby-blankslate" ,ruby-blankslate)))
2347 `(("bundler" ,bundler)
2348 ("ruby-test-unit" ,ruby-test-unit)))
2349 (synopsis "Instantiate an arbitrary Ruby class")
2351 "Instantiator lets you instantiate an arbitrary Ruby class without
2352 knowing anything about the constructor.")
2353 (home-page "https://github.com/floehopper/instantiator")
2354 (license license:expat)))
2356 (define-public ruby-introspection
2358 (name "ruby-introspection")
2362 (uri (rubygems-uri "introspection" version))
2365 "1y2nbijkc0zlfmn9ss6588ilarq2kbn2i7w7pwwsli66dj84zgca"))))
2366 (build-system ruby-build-system)
2369 (modify-phases %standard-phases
2370 (add-after 'unpack 'add-test-unit-to-search-path
2371 (lambda* (#:key inputs #:allow-other-keys)
2372 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2373 (substitute* "Rakefile"
2374 (("t\\.libs << \"test\"" line)
2375 (string-append line "; t.libs << \""
2376 test-unit "/lib/ruby/vendor_ruby"
2378 ,(package-version ruby-test-unit)
2382 `(("ruby-instantiator" ,ruby-instantiator)
2383 ("ruby-metaclass" ,ruby-metaclass)))
2385 `(("bundler" ,bundler)
2386 ("ruby-blankslate" ,ruby-blankslate)
2387 ("ruby-test-unit" ,ruby-test-unit)))
2388 (synopsis "Dynamic inspection of the method hierarchy on a Ruby object")
2390 "Introspection provides tools to inspect the hierarchy of method
2391 definitions on a Ruby object.")
2392 (home-page "https://github.com/floehopper/introspection")
2393 (license license:expat)))
2395 (define-public ruby-redcarpet
2397 (name "ruby-redcarpet")
2401 (uri (rubygems-uri "redcarpet" version))
2404 "0h9qz2hik4s9knpmbwrzb3jcp3vc5vygp9ya8lcpl7f1l9khmcd7"))))
2405 (build-system ruby-build-system)
2408 (modify-phases %standard-phases
2409 ;; The gem archive does not include the conformance tests.
2410 (add-after 'unpack 'disable-conformance-tests
2412 (substitute* "Rakefile"
2413 (("task :test => %w\\[test:unit test:conformance\\]")
2414 "task :test => %w[test:unit]"))
2417 `(("bundler" ,bundler)
2418 ("ruby-test-unit" ,ruby-test-unit)
2419 ("ruby-rake-compiler" ,ruby-rake-compiler)))
2420 (synopsis "Extensible Markdown to (X)HTML converter")
2422 "Redcarpet is an extensible Ruby library for Markdown processing and
2423 conversion to (X)HTML.")
2424 (home-page "https://github.com/vmg/redcarpet")
2425 (license license:expat)))
2427 (define-public ruby-mocha
2433 (uri (rubygems-uri "mocha" version))
2436 "107nmnngbv8lq2g7hbjpn5kplb4v2c8gs9lxrg6vs8gdbddkilzi"))))
2437 (build-system ruby-build-system)
2440 (modify-phases %standard-phases
2441 (add-after 'unpack 'add-test-unit-to-search-path
2442 (lambda* (#:key inputs #:allow-other-keys)
2443 (let* ((test-unit (assoc-ref inputs "ruby-test-unit")))
2444 (substitute* "Rakefile"
2445 (("t\\.libs << 'test'" line)
2446 (string-append line "; t.libs << \""
2447 test-unit "/lib/ruby/vendor_ruby"
2449 ,(package-version ruby-test-unit)
2452 (add-before 'check 'use-latest-redcarpet
2454 (substitute* "mocha.gemspec"
2455 (("<redcarpet>.freeze, \\[\"~> 1\"\\]")
2456 "<redcarpet>.freeze, [\">= 3\"]"))
2458 (add-before 'check 'hardcode-version
2460 ;; Mocha is undefined at build time
2461 (substitute* "Rakefile"
2462 (("#\\{Mocha::VERSION\\}") ,version))
2464 (add-before 'check 'remove-failing-test
2465 ;; FIXME: This test fails for reasons unrelated to Guix packaging.
2467 (delete-file "test/acceptance/stubbing_nil_test.rb")
2470 `(("ruby-metaclass" ,ruby-metaclass)))
2472 `(("bundler" ,bundler)
2473 ("ruby-yard" ,ruby-yard)
2474 ("ruby-introspection" ,ruby-introspection)
2475 ("ruby-test-unit" ,ruby-test-unit)
2476 ("ruby-redcarpet" ,ruby-redcarpet)))
2477 (synopsis "Mocking and stubbing library for Ruby")
2479 "Mocha is a mocking and stubbing library with JMock/SchMock syntax, which
2480 allows mocking and stubbing of methods on real (non-mock) classes.")
2481 (home-page "http://gofreerange.com/mocha/docs")
2482 (license license:expat)))
2484 (define-public ruby-mocha-on-bacon
2486 (name "ruby-mocha-on-bacon")
2491 (uri (rubygems-uri "mocha-on-bacon" version))
2494 "1h49b33rq889hn8x3wp9byczl91va16jh1w4d2wyy4yj23icdrcp"))))
2495 (build-system ruby-build-system)
2497 ;; rubygems.org release missing tests
2499 (propagated-inputs `(("ruby-mocha" ,ruby-mocha)))
2500 (synopsis "Mocha adapter for Bacon")
2502 "This package provides a Mocha adapter for Bacon, allowing you to use the
2503 Mocha stubbing and mocking library with Bacon, a small RSpec clone.")
2505 "https://github.com/alloy/mocha-on-bacon")
2506 (license license:expat)))
2508 (define-public ruby-net-ssh
2510 (name "ruby-net-ssh")
2514 (uri (rubygems-uri "net-ssh" version))
2517 "07c4v97zl1daabmri9zlbzs6yvkl56z1q14bw74d53jdj0c17nhx"))))
2518 (build-system ruby-build-system)
2520 `(("bundler" ,bundler)
2521 ("ruby-mocha" ,ruby-mocha)
2522 ("ruby-test-unit" ,ruby-test-unit)))
2523 (synopsis "Ruby implementation of the SSH2 client protocol")
2524 (description "@code{Net::SSH} is a pure-Ruby implementation of the SSH2
2525 client protocol. It allows you to write programs that invoke and interact
2526 with processes on remote servers, via SSH2.")
2527 (home-page "https://github.com/net-ssh/net-ssh")
2528 (license license:expat)))
2530 (define-public ruby-net-scp
2532 (name "ruby-net-scp")
2533 ;; The 1.2.1 release would be incompatible with ruby-net-ssh >= 4.
2534 (version "1.2.2.rc2")
2538 (uri (string-append "https://github.com/net-ssh/net-scp/archive/v"
2542 "0xyf17mhgvyz54xjj9ria4wnq3x62bhmkfgzqv8jwiip2bplv1nk"))))
2543 (build-system ruby-build-system)
2545 `(("bundler" ,bundler)
2546 ("ruby-test-unit" ,ruby-test-unit)
2547 ("ruby-mocha" ,ruby-mocha)))
2549 `(("ruby-net-ssh" ,ruby-net-ssh)))
2550 (synopsis "Pure-Ruby SCP client library")
2551 (description "@code{Net::SCP} is a pure-Ruby implementation of the SCP
2553 (home-page "https://github.com/net-ssh/net-scp")
2554 (license license:expat)))
2556 (define-public ruby-minitest
2558 (name "ruby-minitest")
2562 (uri (rubygems-uri "minitest" version))
2565 "0icglrhghgwdlnzzp4jf76b0mbc71s80njn5afyfjn4wqji8mqbq"))))
2566 (build-system ruby-build-system)
2568 `(("ruby-hoe" ,ruby-hoe)))
2569 (synopsis "Small test suite library for Ruby")
2570 (description "Minitest provides a complete suite of Ruby testing
2571 facilities supporting TDD, BDD, mocking, and benchmarking.")
2572 (home-page "https://github.com/seattlerb/minitest")
2573 (license license:expat)))
2575 ;; This is the last release of Minitest 4, which is used by some packages.
2576 (define-public ruby-minitest-4
2577 (package (inherit ruby-minitest)
2581 (uri (rubygems-uri "minitest" version))
2584 "03p6iban9gcpcflzp4z901s1hgj9369p6515h967ny6hlqhcf2iy"))))
2587 (modify-phases %standard-phases
2588 (add-after 'unpack 'remove-unsupported-method
2590 (substitute* "Rakefile"
2591 (("self\\.rubyforge_name = .*") ""))
2593 (add-after 'build 'exclude-failing-tests
2595 ;; Some tests are failing on Ruby 2.4 due to the deprecation of
2597 (delete-file "test/minitest/test_minitest_spec.rb")
2600 (define-public ruby-minitest-sprint
2602 (name "ruby-minitest-sprint")
2606 (uri (rubygems-uri "minitest-sprint" version))
2609 "179d6pj56l9xzm46fqsqj10mzjkr1f9fv4cxa8wvchs97hqz33w1"))))
2610 (build-system ruby-build-system)
2612 `(("ruby-hoe" ,ruby-hoe)
2613 ("ruby-minitest" ,ruby-minitest)))
2614 (synopsis "Fast test suite runner for minitest")
2615 (description "Minitest-sprint is a test runner for minitest that makes it
2616 easier to re-run individual failing tests.")
2617 (home-page "https://github.com/seattlerb/minitest-sprint")
2618 (license license:expat)))
2620 (define-public ruby-minitest-bacon
2622 (name "ruby-minitest-bacon")
2626 (uri (rubygems-uri "minitest-bacon" version))
2629 "0zhdwcl6bgha61qiyfvr7zs7ywaxc33wmj9xhxl8jdmpdvifvfaj"))))
2630 (build-system ruby-build-system)
2632 `(("ruby-hoe" ,ruby-hoe)))
2634 `(("ruby-minitest" ,ruby-minitest)))
2635 (synopsis "Bacon compatibility library for minitest")
2636 (description "Minitest-bacon extends minitest with bacon-like
2637 functionality, making it easier to migrate test suites from bacon to minitest.")
2638 (home-page "https://github.com/seattlerb/minitest-bacon")
2639 (license license:expat)))
2641 (define-public ruby-minitest-focus
2643 (name "ruby-minitest-focus")
2648 (uri (rubygems-uri "minitest-focus" version))
2651 "1zgjslp6d7dzcn8smj595idymgd5j603p9g2jqkfgi28sqbhz6m0"))))
2652 (build-system ruby-build-system)
2654 `(("ruby-minitest" ,ruby-minitest)))
2656 `(("ruby-hoe" ,ruby-hoe)))
2657 (synopsis "Allows a few specific tests to be focused on")
2659 "@code{minitest-focus} gives the ability focus on a few tests with ease
2660 without having to use command-line arguments. It introduces a @code{focus}
2661 class method for use in testing classes, specifying that the next defined test
2663 (home-page "https://github.com/seattlerb/minitest-focus")
2664 (license license:expat)))
2666 (define-public ruby-minitest-pretty-diff
2667 ;; Use git reference because gem is out of date and does not contain testing
2668 ;; script. There are no releases on GitHub.
2669 (let ((commit "11f32e930f574225432f42e5e1ef6e7471efe572"))
2671 (name "ruby-minitest-pretty-diff")
2672 (version (string-append "0.1-1." (string-take commit 8)))
2676 (url "https://github.com/adammck/minitest-pretty_diff.git")
2678 (file-name (string-append name "-" version "-checkout"))
2681 "13y5dhmcckhzd83gj1nfwh41iykbjcm2w7y4pr6j6rpqa5as122r"))))
2682 (build-system ruby-build-system)
2685 (modify-phases %standard-phases
2688 (invoke "script/test"))))))
2690 `(("bundler" ,bundler)
2691 ("ruby-turn" ,ruby-turn)))
2692 (synopsis "Pretty-print hashes and arrays in MiniTest")
2694 "@code{minitest-pretty_diff} monkey-patches
2695 @code{MiniTest::Assertions#mu_pp} to pretty-print hashes and arrays before
2696 diffing them. This makes it easier to spot differences between nested
2697 structures when tests fail.")
2698 (home-page "https://github.com/adammck/minitest-pretty_diff")
2699 (license license:expat))))
2701 (define-public ruby-minitest-moar
2703 (name "ruby-minitest-moar")
2708 (uri (rubygems-uri "minitest-moar" version))
2711 "0nb83blrsab92gcy6nfpw39njys7zisia8pw4igzzfzfl51cis0x"))))
2712 (build-system ruby-build-system)
2715 (modify-phases %standard-phases
2716 (add-before 'check 'clean-dependencies
2718 ;; Remove all gems defined in the Gemfile because these are not
2720 (substitute* "Gemfile"
2722 ;; Remove byebug as not needed to run tests.
2723 (substitute* "test/test_helper.rb"
2724 (("require 'byebug'") ""))
2727 `(("bundler" ,bundler)
2728 ("ruby-minitest" ,ruby-minitest)))
2729 (synopsis "Extra features and changes to MiniTest")
2730 (description "@code{MiniTest Moar} add some additional features and
2731 changes some default behaviours in MiniTest. For instance, Moar replaces the
2732 MiniTest @code{Object#stub} with a global @code{stub} method.")
2733 (home-page "https://github.com/dockyard/minitest-moar")
2734 (license license:expat)))
2736 (define-public ruby-minitest-bonus-assertions
2738 (name "ruby-minitest-bonus-assertions")
2743 (uri (rubygems-uri "minitest-bonus-assertions" version))
2746 "1hbq9jk904xkz868yha1bqcm6azm7kmjsll2k4pn2nrcib508h2a"))))
2747 (build-system ruby-build-system)
2750 (modify-phases %standard-phases
2751 (add-before 'check 'clean-dependencies
2753 ;; Remove unneeded require statement that would entail another
2755 (substitute* "test/minitest_config.rb"
2756 (("require 'minitest/bisect'") ""))
2759 `(("ruby-hoe" ,ruby-hoe)
2760 ("ruby-minitest-pretty-diff" ,ruby-minitest-pretty-diff)
2761 ("ruby-minitest-focus" ,ruby-minitest-focus)
2762 ("ruby-minitest-moar" ,ruby-minitest-moar)))
2763 (synopsis "Bonus assertions for @code{Minitest}")
2765 "Minitest bonus assertions provides extra MiniTest assertions. For
2766 instance, it provides @code{assert_true}, @code{assert_false} and
2767 @code{assert_set_equal}.")
2768 (home-page "https://github.com/halostatue/minitest-bonus-assertions")
2769 (license license:expat)))
2771 (define-public ruby-minitest-reporters
2773 (name "ruby-minitest-reporters")
2778 (uri (rubygems-uri "minitest-reporters" version))
2781 "1a3das80rwgys5rj48i5ly144nvszyqyi748bk9bss74jblcf5ay"))))
2782 (build-system ruby-build-system)
2785 (modify-phases %standard-phases
2786 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
2787 ;; including it as an input can lead to circular dependencies.
2788 (add-after 'unpack 'remove-rubocop-from-Rakefile
2790 (substitute* "Rakefile"
2791 (("require 'rubocop/rake\\_task'") "")
2792 (("RuboCop::RakeTask\\.new\\(:rubocop\\)") "[].each"))
2794 (add-after 'extract-gemspec 'remove-rubocop-from-gemspec
2796 (substitute* "minitest-reporters.gemspec"
2797 ((".*%q<rubocop>.*") "\n"))
2800 `(("ruby-ansi" ,ruby-ansi)
2801 ("ruby-builder" ,ruby-builder)
2802 ("ruby-minitest" ,ruby-minitest)
2803 ("ruby-progressbar" ,ruby-progressbar)))
2805 `(("bundler" ,bundler)
2806 ("ruby-maruku" ,ruby-maruku)))
2807 (synopsis "Enhanced reporting for Minitest tests")
2809 "@code{minitest/reporters} provides a custom Minitest runner to improve
2810 how the test state is reported. A number of different reporters are
2811 available, including a spec reporter, progress bar reporter, a HTML
2813 (home-page "https://github.com/kern/minitest-reporters")
2814 (license license:expat)))
2816 (define-public ruby-minitest-rg
2818 (name "ruby-minitest-rg")
2823 (uri (rubygems-uri "minitest-rg" version))
2826 "0sq509ax1x62rd0w10b0hcydcxyk5bxxr3fwrgxv02r8drq2r354"))))
2827 (build-system ruby-build-system)
2829 ;; Some tests fail even outside Guix, so disable tests.
2830 ;; https://github.com/blowmage/minitest-rg/issues/12
2831 ;; https://github.com/blowmage/minitest-rg/pull/13
2834 `(("ruby-minitest" ,ruby-minitest)))
2835 (synopsis "Coloured output for Minitest")
2837 "@code{minitest-rg} changes the colour of the output from Minitest.")
2838 (home-page "http://blowmage.com/minitest-rg")
2839 (license license:expat)))
2841 (define-public ruby-minitest-hooks
2843 (name "ruby-minitest-hooks")
2848 (uri (rubygems-uri "minitest-hooks" version))
2851 "0lnpvzijbjrvxjc43d155jnbk2mkfshrz22an711wh004scavlzc"))))
2852 (build-system ruby-build-system)
2854 '(#:test-target "spec"))
2856 `(("ruby-sequel" ,ruby-sequel)
2857 ("ruby-sqlite3" ,ruby-sqlite3)))
2858 (synopsis "Hooks for the minitest framework")
2860 "Minitest-hooks adds @code{around}, @code{before_all}, @code{after_all},
2861 @code{around_all} hooks for Minitest. This allows, for instance, running each
2862 suite of specs inside a database transaction, running each spec inside its own
2863 savepoint inside that transaction. This can significantly speed up testing
2864 for specs that share expensive database setup code.")
2865 (home-page "https://github.com/jeremyevans/minitest-hooks")
2866 (license license:expat)))
2868 (define-public ruby-daemons
2870 (name "ruby-daemons")
2874 (uri (rubygems-uri "daemons" version))
2877 "15smbsg0gxb7nf0nrlnplc68y0cdy13dm6fviavpmw7c630sring"))))
2878 (build-system ruby-build-system)
2880 `(#:tests? #f)) ; no test suite
2881 (synopsis "Daemonize Ruby programs")
2882 (description "Daemons provides a way to wrap existing Ruby scripts to be
2883 run as a daemon and to be controlled by simple start/stop/restart commands.")
2884 (home-page "https://github.com/thuehlinger/daemons")
2885 (license license:expat)))
2887 (define-public ruby-data_uri
2889 (name "ruby-data_uri")
2894 (uri (rubygems-uri "data_uri" version))
2897 "0fzkxgdxrlbfl4537y3n9mjxbm28kir639gcw3x47ffchwsgdcky"))))
2898 (build-system ruby-build-system)
2899 (synopsis "URI class for parsing data URIs")
2901 "Data @acronym{URI, universal resource idenfitier}s allow resources to be
2902 embedded inside a URI. The URI::Data class provides support for parsing these
2903 URIs using the normal URI.parse method.")
2904 (home-page "https://github.com/dball/data_uri")
2905 (license license:expat)))
2907 (define-public ruby-git
2913 (uri (rubygems-uri "git" version))
2916 "1waikaggw7a1d24nw0sh8fd419gbf7awh000qhsf411valycj6q3"))))
2917 (build-system ruby-build-system)
2919 `(#:tests? #f ; no tests
2920 #:phases (modify-phases %standard-phases
2921 (add-after 'install 'patch-git-binary
2922 (lambda* (#:key inputs outputs #:allow-other-keys)
2923 ;; Make the default git binary an absolute path to the
2925 (let ((git (string-append (assoc-ref inputs "git")
2927 (config (string-append
2928 (assoc-ref outputs "out")
2929 "/lib/ruby/vendor_ruby/gems/git-"
2930 ,version "/lib/git/config.rb")))
2931 (substitute* (list config)
2933 (string-append "'" git "'")))
2937 (synopsis "Ruby wrappers for Git")
2938 (description "Ruby/Git is a Ruby library that can be used to create, read
2939 and manipulate Git repositories by wrapping system calls to the git binary.")
2940 (home-page "https://github.com/schacon/ruby-git")
2941 (license license:expat)))
2943 (define-public ruby-slop
2949 (uri (rubygems-uri "slop" version))
2952 "0bfm8535g0rkn9cbjndkckf0f7a3wj0rg4rqhrpsgxnbfdf2lm0p"))))
2953 (build-system ruby-build-system)
2955 `(("ruby-minitest" ,ruby-minitest)))
2956 (synopsis "Ruby command line option parser")
2957 (description "Slop provides a Ruby domain specific language for gathering
2958 options and parsing command line flags.")
2959 (home-page "https://github.com/leejarvis/slop")
2960 (license license:expat)))
2962 (define-public ruby-slop-3
2963 (package (inherit ruby-slop)
2967 (uri (rubygems-uri "slop" version))
2970 "00w8g3j7k7kl8ri2cf1m58ckxk8rn350gp4chfscmgv6pq1spk3n"))))))
2972 (define-public ruby-multipart-post
2974 (name "ruby-multipart-post")
2978 (uri (rubygems-uri "multipart-post" version))
2981 "09k0b3cybqilk1gwrwwain95rdypixb2q9w65gd44gfzsd84xi1x"))))
2982 (build-system ruby-build-system)
2984 `(("bundler" ,bundler)))
2985 (synopsis "Multipart POST library for Ruby")
2986 (description "Multipart-Post Adds multipart POST capability to Ruby's
2988 (home-page "https://github.com/nicksieger/multipart-post")
2989 (license license:expat)))
2991 (define-public ruby-multi-json
2993 (name "ruby-multi-json")
2998 ;; Tests are not distributed at rubygems.org so download from GitHub
3000 (uri (string-append "https://github.com/intridea/multi_json/archive/v"
3002 (file-name (string-append name "-" version ".tar.gz"))
3005 "1s64xqvrnrxmb59v6b2kchnisawg5ai9ky1w60dy6z6ws9la1xv4"))))
3006 (build-system ruby-build-system)
3009 (modify-phases %standard-phases
3010 (add-after 'unpack 'remove-signing-key-reference
3012 (substitute* "multi_json.gemspec"
3013 ((".*spec.signing_key.*") ""))
3016 `(("bundler" ,bundler)
3017 ("ruby-rspec" ,ruby-rspec)
3018 ("ruby-yard" ,ruby-yard)
3019 ("ruby-json-pure" ,ruby-json-pure)
3020 ("ruby-oj" ,ruby-oj)
3021 ("ruby-yajl-ruby" ,ruby-yajl-ruby)))
3022 (synopsis "Common interface to multiple JSON libraries for Ruby")
3024 "This package provides a common interface to multiple JSON libraries,
3025 including Oj, Yajl, the JSON gem (with C-extensions), the pure-Ruby JSON gem,
3026 NSJSONSerialization, gson.rb, JrJackson, and OkJson.")
3027 (home-page "https://github.com/intridea/multi_json")
3028 (license license:expat)))
3030 (define-public ruby-multi-test
3032 (name "ruby-multi-test")
3037 (uri (rubygems-uri "multi_test" version))
3040 "1sx356q81plr67hg16jfwz9hcqvnk03bd9n75pmdw8pfxjfy1yxd"))))
3041 (build-system ruby-build-system)
3043 '(;; Tests require different sets of specific gem versions to be available,
3044 ;; and there is no gemfile that specifies the newest versions of
3045 ;; dependencies to be tested.
3048 "Interface to testing libraries loaded into a running Ruby process")
3050 "@code{multi_test} provides a uniform interface onto whatever testing
3051 libraries that have been loaded into a running Ruby process to help control
3052 rogue test/unit/autorun requires.")
3053 (home-page "https://github.com/cucumber/multi_test")
3054 (license license:expat)))
3056 (define-public ruby-arel
3062 (uri (rubygems-uri "arel" version))
3065 "1jk7wlmkr61f6g36w9s2sn46nmdg6wn2jfssrhbhirv5x9n95nk0"))))
3066 (build-system ruby-build-system)
3067 (arguments '(#:tests? #f)) ; no tests
3068 (home-page "https://github.com/rails/arel")
3069 (synopsis "SQL AST manager for Ruby")
3070 (description "Arel is an SQL @dfn{Abstract Syntax Tree} (AST) manager for
3071 Ruby. It simplifies the generation of complex SQL queries and adapts to
3072 various relational database implementations.")
3073 (license license:expat)))
3075 (define-public ruby-marcel
3077 (name "ruby-marcel")
3082 (uri (rubygems-uri "marcel" version))
3085 "1nxbjmcyg8vlw6zwagf17l9y2mwkagmmkg95xybpn4bmf3rfnksx"))))
3086 (build-system ruby-build-system)
3088 '(;; No included tests
3091 `(("ruby-mimemagic" ,ruby-mimemagic)))
3092 (synopsis "MIME type detection using magic numbers, filenames and extensions")
3094 "@code{marcel} provides @acronym{MIME, Multipurpose Internet Mail
3095 Extensions} type detection using magic numbers, filenames, and extensions")
3096 (home-page "https://github.com/basecamp/marcel")
3097 (license license:expat)))
3099 (define-public ruby-minitar
3100 ;; We package from the GitHub source to fix the security issue reported at
3101 ;; https://github.com/halostatue/minitar/issues/16.
3102 (let ((commit "e25205ecbb6277ae8a3df1e6a306d7ed4458b6e4"))
3104 (name "ruby-minitar")
3105 (version (string-append "0.5.4-1." (string-take commit 8)))
3110 (url "https://github.com/halostatue/minitar.git")
3112 (file-name (string-append name "-" version "-checkout"))
3115 "1iywfx07jgjqcmixzkxk9zdwfmij1fyg1z2jlwzj15cj7s99qlfv"))))
3116 (build-system ruby-build-system)
3118 '(#:tests? #f)) ; missing a gemspec
3119 (synopsis "Ruby library and utility for handling tar archives")
3121 "Archive::Tar::Minitar is a pure-Ruby library and command-line utility
3122 that provides the ability to deal with POSIX tar archive files.")
3123 (home-page "http://www.github.com/atoulme/minitar")
3124 (license (list license:gpl2+ license:ruby)))))
3126 (define-public ruby-mini-portile
3128 (name "ruby-mini-portile")
3133 (uri (rubygems-uri "mini_portile" version))
3136 "0h3xinmacscrnkczq44s6pnhrp4nqma7k056x5wv5xixvf2wsq2w"))))
3137 (build-system ruby-build-system)
3139 '(#:tests? #f)) ; tests require network access
3140 (synopsis "Ports system for Ruby developers")
3141 (description "Mini-portile is a port/recipe system for Ruby developers.
3142 It provides a standard way to compile against specific versions of libraries
3143 to reproduce user environments.")
3144 (home-page "https://github.com/flavorjones/mini_portile")
3145 (license license:expat)))
3147 (define-public ruby-mini-portile-2
3148 (package (inherit ruby-mini-portile)
3152 (uri (rubygems-uri "mini_portile2" version))
3155 "0g5bpgy08q0nc0anisg3yvwc1gc3inl854fcrg48wvg7glqd6dpm"))))))
3157 (define-public ruby-nokogiri
3159 (name "ruby-nokogiri")
3163 (uri (rubygems-uri "nokogiri" version))
3166 "1nffsyx1xjg6v5n9rrbi8y1arrcx2i5f21cp6clgh9iwiqkr7rnn"))))
3167 (build-system ruby-build-system)
3169 ;; Tests fail because Nokogiri can only test with an installed extension,
3170 ;; and also because many test framework dependencies are missing.
3172 #:gem-flags (list "--" "--use-system-libraries"
3173 (string-append "--with-xml2-include="
3174 (assoc-ref %build-inputs "libxml2")
3175 "/include/libxml2" ))
3177 (modify-phases %standard-phases
3178 (add-before 'build 'patch-extconf
3179 ;; 'pkg-config' is not included in the GEM_PATH during
3180 ;; installation, so we add it directly to the load path.
3181 (lambda* (#:key inputs #:allow-other-keys)
3182 (let* ((pkg-config (assoc-ref inputs "ruby-pkg-config")))
3183 (substitute* "ext/nokogiri/extconf.rb"
3184 (("gem 'pkg-config'.*")
3185 (string-append "$:.unshift '"
3186 pkg-config "/lib/ruby/vendor_ruby"
3188 ,(package-version ruby-pkg-config)
3192 `(("ruby-hoe" ,ruby-hoe)))
3195 ("libxml2" ,libxml2)
3196 ("libxslt" ,libxslt)))
3198 `(("ruby-mini-portile" ,ruby-mini-portile-2)
3199 ("ruby-pkg-config" ,ruby-pkg-config)))
3200 (synopsis "HTML, XML, SAX, and Reader parser for Ruby")
3201 (description "Nokogiri (鋸) parses and searches XML/HTML, and features
3202 both CSS3 selector and XPath 1.0 support.")
3203 (home-page "http://www.nokogiri.org/")
3204 (license license:expat)))
3206 (define-public ruby-method-source
3208 (name "ruby-method-source")
3213 (uri (rubygems-uri "method_source" version))
3216 "0xqj21j3vfq4ldia6i2akhn2qd84m0iqcnsl49kfpq3xk6x0dzgn"))))
3217 (build-system ruby-build-system)
3219 `(#:test-target "spec"))
3221 `(("ruby-rspec" ,ruby-rspec)
3223 (synopsis "Retrieve the source code for Ruby methods")
3224 (description "Method_source retrieves the source code for Ruby methods.
3225 Additionally, it can extract source code from Proc and Lambda objects or just
3227 (home-page "https://github.com/banister/method_source")
3228 (license license:expat)))
3230 (define-public ruby-coderay
3232 (name "ruby-coderay")
3237 (uri (rubygems-uri "coderay" version))
3240 "15vav4bhcc2x3jmi3izb11l4d9f3xv8hp2fszb7iqmpsccv1pz4y"))))
3241 (build-system ruby-build-system)
3243 '(#:tests? #f)) ; missing test files
3244 (synopsis "Ruby syntax highlighting library")
3245 (description "Coderay is a Ruby library that provides syntax highlighting
3246 for select languages.")
3247 (home-page "http://coderay.rubychan.de")
3248 (license license:expat)))
3250 (define-public ruby-parser
3252 (name "ruby-parser")
3257 (uri (rubygems-uri "parser" version))
3260 "1hhz2k5417vr2k1llwqgjdnmyrhlpqicy0y2arr6r1gp04fg9wlm"))))
3261 (build-system ruby-build-system)
3263 `(("bundler" ,bundler)
3264 ("ruby-cliver" ,ruby-cliver)
3265 ("ruby-simplecov" ,ruby-simplecov)
3266 ("ruby-racc" ,ruby-racc)))
3268 `(("ragel" ,ragel)))
3270 `(("ruby-ast" ,ruby-ast)))
3271 (synopsis "Ruby parser written in pure Ruby")
3273 "This package provides a Ruby parser written in pure Ruby.")
3274 (home-page "https://github.com/whitequark/parser")
3275 (license license:expat)))
3277 (define-public ruby-prawn-manual-builder
3279 (name "ruby-prawn-manual-builder")
3284 (uri (rubygems-uri "prawn-manual_builder" version))
3287 "0wbjnkqp55p5wmz85ldypcray223glckd209hmdxhnzk8s5pb3za"))))
3288 (build-system ruby-build-system)
3290 '(;; No included tests
3293 (modify-phases %standard-phases
3294 (add-after 'extract-gemspec 'patch-gemspec
3296 (substitute* ".gemspec"
3297 ;; Loosen the requirement for pdf-inspector
3298 (("~> 1\\.0\\.7") ">= 0")))))))
3300 `(("ruby-coderay" ,ruby-coderay)))
3301 (synopsis "Tool for writing manuals for Prawn and Prawn accessories")
3303 "This package provides a tool for writing manuals for Prawn and Prawn
3305 (home-page "https://github.com/prawnpdf/prawn-manual_builder")
3307 ;; GPLv2 or GPLv3 or custom license described in LICENSE file
3311 (define-public ruby-progress_bar
3313 (name "ruby-progress_bar")
3318 (uri (rubygems-uri "progress_bar" version))
3321 "1qc40mr6p1z9a3vlpnsg1zfgk1qswviql2a31y63wpv3vr6b5f48"))))
3322 (build-system ruby-build-system)
3324 '(#:test-target "spec"))
3326 `(("ruby-highline" ,ruby-highline)
3327 ("ruby-options" ,ruby-options)))
3329 `(("bundler" ,bundler)
3330 ("ruby-rspec" ,ruby-rspec)
3331 ("ruby-timecop" ,ruby-timecop)))
3333 "Ruby library for displaying progress bars")
3335 "ProgressBar is a simple library for displaying progress bars. The
3336 maximum value is configurable, and additional information can be displayed
3337 like the percentage completion, estimated time remaining, elapsed time and
3339 (home-page "https://github.com/paul/progress_bar")
3340 (license license:wtfpl2)))
3342 (define-public ruby-progressbar
3344 (name "ruby-progressbar")
3349 (uri (rubygems-uri "ruby-progressbar" version))
3352 "1cv2ym3rl09svw8940ny67bav7b2db4ms39i4raaqzkf59jmhglk"))))
3353 (build-system ruby-build-system)
3355 '(;; TODO: There looks to be a circular dependency with ruby-fuubar.
3357 (synopsis "Text progress bar library for Ruby")
3359 "Ruby/ProgressBar is an flexible text progress bar library for Ruby.
3360 The output can be customized with a formatting system.")
3361 (home-page "https://github.com/jfelchner/ruby-progressbar")
3362 (license license:expat)))
3364 (define-public ruby-pry
3371 (uri (rubygems-uri "pry" version))
3374 "1mh312k3y94sj0pi160wpia0ps8f4kmzvm505i6bvwynfdh7v30g"))))
3375 (build-system ruby-build-system)
3377 '(#:tests? #f)) ; no tests
3379 `(("ruby-coderay" ,ruby-coderay)
3380 ("ruby-method-source" ,ruby-method-source)))
3381 (synopsis "Ruby REPL")
3382 (description "Pry is an IRB alternative and runtime developer console for
3383 Ruby. It features syntax highlighting, a plugin architecture, runtime
3384 invocation, and source and documentation browsing.")
3385 (home-page "https://pryrepl.org")
3386 (license license:expat)))
3388 (define-public ruby-guard
3394 ;; The gem does not include a Rakefile, nor does it contain a
3395 ;; gemspec file, nor does it come with the tests. This is why
3396 ;; we fetch the tarball from Github.
3397 (uri (string-append "https://github.com/guard/guard/archive/v"
3399 (file-name (string-append name "-" version ".tar.gz"))
3402 "1hwj0yi17k6f5axrm0k2bb7fq71dlp0zfywmd7pij9iimbppcca0"))))
3403 (build-system ruby-build-system)
3405 `(#:tests? #f ; tests require cucumber
3407 (modify-phases %standard-phases
3408 (add-after 'unpack 'remove-git-ls-files
3409 (lambda* (#:key outputs #:allow-other-keys)
3410 (substitute* "guard.gemspec"
3411 (("git ls-files -z") "find . -type f -print0"))
3415 (invoke "gem" "build" "guard.gemspec"))))))
3417 `(("ruby-formatador" ,ruby-formatador)
3418 ("ruby-listen" ,ruby-listen)
3419 ("ruby-lumberjack" ,ruby-lumberjack)
3420 ("ruby-nenv" ,ruby-nenv)
3421 ("ruby-notiffany" ,ruby-notiffany)
3422 ("ruby-pry" ,ruby-pry)
3423 ("ruby-shellany" ,ruby-shellany)
3424 ("ruby-thor" ,ruby-thor)))
3426 `(("bundler" ,bundler)
3427 ("ruby-rspec" ,ruby-rspec)))
3428 (synopsis "Tool to handle events on file system modifications")
3430 "Guard is a command line tool to easily handle events on file system
3431 modifications. Guard automates various tasks by running custom rules whenever
3432 file or directories are modified.")
3433 (home-page "http://guardgem.org/")
3434 (license license:expat)))
3436 (define-public ruby-thread-safe
3438 (name "ruby-thread-safe")
3443 (uri (rubygems-uri "thread_safe" version))
3446 "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"))))
3447 (build-system ruby-build-system)
3449 '(#:tests? #f)) ; needs simplecov, among others
3450 (synopsis "Thread-safe utilities for Ruby")
3451 (description "The thread_safe library provides thread-safe collections and
3452 utilities for Ruby.")
3453 (home-page "https://github.com/ruby-concurrency/thread_safe")
3454 (license license:asl2.0)))
3456 (define-public ruby-tzinfo
3458 (name "ruby-tzinfo")
3463 (uri (rubygems-uri "tzinfo" version))
3466 "09dpbrih054mn42flbbcdpzk2727mzfvjrgqb12zdafhx7p9rrzp"))))
3467 (build-system ruby-build-system)
3469 `(("ruby-thread-safe" ,ruby-thread-safe)))
3470 (synopsis "Time zone library for Ruby")
3471 (description "TZInfo is a Ruby library that provides daylight savings
3472 aware transformations between times in different time zones.")
3473 (home-page "https://tzinfo.github.io")
3474 (license license:expat)))
3476 (define-public ruby-tzinfo-data
3478 (name "ruby-tzinfo-data")
3479 (version "1.2017.3")
3483 ;; Download from GitHub because the rubygems version does not contain
3484 ;; Rakefile or tests.
3486 "https://github.com/tzinfo/tzinfo-data/archive/v"
3489 (file-name (string-append name "-" version ".tar.gz"))
3492 "01wff7syqzikbxalbg3isgxasmvzicr85bzadzkb6bf20bip4v54"))
3493 ;; Remove the known test failure.
3494 ;; https://github.com/tzinfo/tzinfo-data/issues/10
3495 ;; https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128
3496 (patches (search-patches
3497 "ruby-tzinfo-data-ignore-broken-test.patch"))))
3498 (build-system ruby-build-system)
3500 `(("ruby-tzinfo" ,ruby-tzinfo)))
3501 (synopsis "Data from the IANA Time Zone database")
3503 "This library provides @code{TZInfo::Data}, which contains data from the
3504 IANA Time Zone database packaged as Ruby modules for use with @code{TZInfo}.")
3505 (home-page "https://tzinfo.github.io")
3506 (license license:expat)))
3508 (define-public ruby-rb-inotify
3510 (name "ruby-rb-inotify")
3515 (uri (rubygems-uri "rb-inotify" version))
3518 "0yfsgw5n7pkpyky6a9wkf1g9jafxb0ja7gz0qw0y14fd2jnzfh71"))))
3519 (build-system ruby-build-system)
3521 '(#:tests? #f ; there are no tests
3523 (modify-phases %standard-phases
3524 ;; Building the gemspec with rake is not working here since it is
3525 ;; generated with Jeweler. It is also unnecessary because the
3526 ;; existing gemspec does not use any development tools to generate a
3530 (invoke "gem" "build" "rb-inotify.gemspec"))))))
3532 `(("ruby-ffi" ,ruby-ffi)))
3534 `(("ruby-yard" ,ruby-yard)))
3535 (synopsis "Ruby wrapper for Linux's inotify")
3536 (description "rb-inotify is a simple wrapper over the @code{inotify} Linux
3537 kernel subsystem for monitoring changes to files and directories.")
3538 (home-page "https://github.com/nex3/rb-inotify")
3539 (license license:expat)))
3541 (define-public ruby-pry-editline
3543 (name "ruby-pry-editline")
3547 (uri (rubygems-uri "pry-editline" version))
3550 "1pjxyvdxvw41xw3yyl18pwzix8hbvn6lgics7qcfhjfsf1zs8x1z"))))
3551 (build-system ruby-build-system)
3552 (arguments `(#:tests? #f)) ; no tests included
3554 `(("bundler" ,bundler)))
3555 (synopsis "Open the current REPL line in an editor")
3557 "This gem provides a plugin for the Ruby REPL to enable opening the
3558 current line in an external editor.")
3559 (home-page "https://github.com/tpope/pry-editline")
3560 (license license:expat)))
3562 (define-public ruby-sdoc
3568 (uri (rubygems-uri "sdoc" version))
3571 "0qhvy10vnmrqcgh8494m13kd5ag9c3sczzhfasv8j0294ylk679n"))))
3572 (build-system ruby-build-system)
3575 (modify-phases %standard-phases
3576 (add-before 'check 'set-rubylib-and-patch-gemfile
3578 (setenv "RUBYLIB" "lib")
3579 (substitute* "sdoc.gemspec"
3580 (("s.add_runtime_dependency.*") "\n")
3581 (("s.add_dependency.*") "\n"))
3582 (substitute* "Gemfile"
3584 "gem 'rake'\ngem 'rdoc'\ngem 'json'\n"))
3587 `(("ruby-json" ,ruby-json)))
3589 `(("bundler" ,bundler)
3590 ("ruby-minitest" ,ruby-minitest)
3591 ("ruby-hoe" ,ruby-hoe)))
3592 (synopsis "Generate searchable RDoc documentation")
3594 "SDoc is an RDoc documentation generator to build searchable HTML
3595 documentation for Ruby code.")
3596 (home-page "https://github.com/voloko/sdoc")
3597 (license license:expat)))
3599 (define-public ruby-tins
3605 (uri (rubygems-uri "tins" version))
3608 "09whix5a7ics6787zrkwjmp16kqyh6560p9f317syks785805f7s"))))
3609 (build-system ruby-build-system)
3610 ;; This gem needs gem-hadar at development time, but gem-hadar needs tins
3611 ;; at runtime. To avoid the dependency on gem-hadar we disable rebuilding
3614 `(#:tests? #f ; there are no tests
3616 (modify-phases %standard-phases
3619 ;; "lib/spruz" is a symlink. Leaving it in the gemspec file
3621 (substitute* "tins.gemspec"
3622 (("\"lib/spruz\", ") ""))
3623 (invoke "gem" "build" "tins.gemspec"))))))
3624 (synopsis "Assorted tools for Ruby")
3625 (description "Tins is a Ruby library providing assorted tools.")
3626 (home-page "https://github.com/flori/tins")
3627 (license license:expat)))
3629 (define-public ruby-gem-hadar
3631 (name "ruby-gem-hadar")
3635 (uri (rubygems-uri "gem_hadar" version))
3638 "1zxvd9l95rbks7x3cxn396w0sn7nha5542bf97v8akkn4vm7nby9"))))
3639 (build-system ruby-build-system)
3640 ;; This gem needs itself at development time. We disable rebuilding of the
3641 ;; gemspec to avoid this loop.
3643 `(#:tests? #f ; there are no tests
3645 (modify-phases %standard-phases
3648 (invoke "gem" "build" "gem_hadar.gemspec"))))))
3651 ("ruby-tins" ,ruby-tins)
3652 ("ruby-yard" ,ruby-yard)))
3653 (synopsis "Library for the development of Ruby gems")
3655 "This library contains some useful functionality to support the
3656 development of Ruby gems.")
3657 (home-page "https://github.com/flori/gem_hadar")
3658 (license license:expat)))
3660 (define-public ruby-minitest-tu-shim
3662 (name "ruby-minitest-tu-shim")
3666 (uri (rubygems-uri "minitest_tu_shim" version))
3669 "0xlyh94iirvssix157ng2akr9nqhdygdd0c6094hhv7dqcfrn9fn"))))
3670 (build-system ruby-build-system)
3673 (modify-phases %standard-phases
3674 (add-after 'unpack 'fix-test-include-path
3675 (lambda* (#:key inputs #:allow-other-keys)
3676 (let* ((minitest (assoc-ref inputs "ruby-minitest-4")))
3677 (substitute* "Rakefile"
3678 (("Hoe\\.add_include_dirs .*")
3679 (string-append "Hoe.add_include_dirs \""
3680 minitest "/lib/ruby/vendor_ruby"
3682 ,(package-version ruby-minitest-4)
3685 (add-before 'check 'fix-test-assumptions
3687 ;; The test output includes the file name, so a couple of tests
3688 ;; fail. Changing the regular expressions slightly fixes this
3690 (substitute* "test/test_mini_test.rb"
3691 (("output.sub!\\(.*, 'FILE:LINE'\\)")
3692 "output.sub!(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')")
3693 (("gsub\\(/.*, 'FILE:LINE'\\)")
3694 "gsub(/\\/.+-[\\w\\/\\.]+:\\d+/, 'FILE:LINE')"))
3697 `(("ruby-minitest-4" ,ruby-minitest-4)))
3699 `(("ruby-hoe" ,ruby-hoe)))
3700 (synopsis "Adapter library between minitest and test/unit")
3702 "This library bridges the gap between the small and fast minitest and
3703 Ruby's large and slower test/unit.")
3704 (home-page "https://rubygems.org/gems/minitest_tu_shim")
3705 (license license:expat)))
3707 (define-public ruby-term-ansicolor
3709 (name "ruby-term-ansicolor")
3713 (uri (rubygems-uri "term-ansicolor" version))
3716 "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
3717 (build-system ruby-build-system)
3718 ;; Rebuilding the gemspec seems to require git, even though this is not a
3719 ;; git repository, so we just build the gem from the existing gemspec.
3722 (modify-phases %standard-phases
3723 (add-after 'unpack 'fix-test
3725 (substitute* "tests/hsl_triple_test.rb"
3730 (invoke "gem" "build" "term-ansicolor.gemspec"))))))
3732 `(("ruby-tins" ,ruby-tins)))
3734 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3735 ("ruby-minitest-tu-shim" ,ruby-minitest-tu-shim)))
3736 (synopsis "Ruby library to control the attributes of terminal output")
3738 "This Ruby library uses ANSI escape sequences to control the attributes
3739 of terminal output.")
3740 (home-page "https://flori.github.io/term-ansicolor/")
3741 ;; There is no mention of the "or later" clause.
3742 (license license:gpl2)))
3744 (define-public ruby-pstree
3746 (name "ruby-pstree")
3750 (uri (rubygems-uri "pstree" version))
3753 "1mig1sv5qx1cdyhjaipy8jlh9j8pnja04vprrzihyfr54x0215p1"))))
3754 (build-system ruby-build-system)
3756 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3757 ("bundler" ,bundler)))
3758 (synopsis "Create a process tree data structure")
3760 "This library uses the output of the @code{ps} command to create a
3761 process tree data structure for the current host.")
3762 (home-page "https://github.com/flori/pstree")
3763 ;; There is no mention of the "or later" clause.
3764 (license license:gpl2)))
3766 (define-public ruby-utils
3772 (uri (rubygems-uri "utils" version))
3775 "196zhgcygrnx09bb9mh22qas03rl9avzx8qs0wnxznpin4pffwcl"))))
3776 (build-system ruby-build-system)
3778 `(("ruby-tins" ,ruby-tins)
3779 ("ruby-term-ansicolor" ,ruby-term-ansicolor)
3780 ("ruby-pstree" ,ruby-pstree)
3781 ("ruby-pry-editline" ,ruby-pry-editline)))
3783 `(("ruby-gem-hadar" ,ruby-gem-hadar)
3784 ("bundler" ,bundler)))
3785 (synopsis "Command line tools for working with Ruby")
3787 "This package provides assorted command line tools that may be useful
3788 when working with Ruby code.")
3789 (home-page "https://github.com/flori/utils")
3790 ;; There is no mention of the "or later" clause.
3791 (license license:gpl2)))
3793 (define-public ruby-jaro-winkler
3795 (name "ruby-jaro-winkler")
3800 (uri (rubygems-uri "jaro_winkler" version))
3803 "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l"))))
3804 (build-system ruby-build-system)
3806 '(;; No included tests
3808 (synopsis "Ruby implementation of Jaro-Winkler distance algorithm")
3810 "@code{jaro_winkler} is an implementation of Jaro-Winkler distance
3811 algorithm. It is written as a C extension and will fallback to a pure Ruby
3812 implementation on platforms where this is unsupported.")
3813 (home-page "https://github.com/tonytonyjan/jaro_winkler")
3814 (license license:expat)))
3816 (define-public ruby-json
3823 (uri (rubygems-uri "json" version))
3826 "01v6jjpvh3gnq6sgllpfqahlgxzj50ailwhj9b3cd20hi2dx0vxp"))))
3827 (build-system ruby-build-system)
3828 (arguments '(#:tests? #f)) ; dependency cycle with sdoc
3829 (synopsis "JSON library for Ruby")
3830 (description "This Ruby library provides a JSON implementation written as
3831 a native C extension.")
3832 (home-page "http://json-jruby.rubyforge.org/")
3833 (license (list license:ruby license:gpl2)))) ; GPL2 only
3835 (define-public ruby-json-pure
3837 (name "ruby-json-pure")
3841 (uri (rubygems-uri "json_pure" version))
3844 "12yf9fmhr4c2jm3xl20vf1qyz5i63vc8a6ngz9j0f86nqwhmi2as"))))
3845 (build-system ruby-build-system)
3848 (modify-phases %standard-phases
3849 (add-after 'unpack 'fix-rakefile
3851 (substitute* "Rakefile"
3852 ;; Since this is not a git repository, do not call 'git'.
3853 (("`git ls-files`") "`find . -type f |sort`")
3854 ;; Loosen dependency constraint.
3855 (("'test-unit', '~> 2.0'") "'test-unit', '>= 2.0'"))
3857 (add-after 'replace-git-ls-files 'regenerate-gemspec
3859 ;; Regenerate gemspec so loosened dependency constraints are
3861 (invoke "rake" "gemspec")))
3862 (add-after 'regenerate-gemspec 'fix-json-java.gemspec
3864 ;; This gemspec doesn't look to be generated by the above
3865 ;; command, so patch it separately.
3866 (substitute* "json-java.gemspec"
3867 (("%q<test-unit>\\.freeze, \\[\"~> 2\\.0\"\\]")
3868 "%q<test-unit>.freeze, [\">= 2.0\"]"))
3871 `(("bundler" ,bundler)
3873 ("ruby-simplecov" ,ruby-simplecov)
3874 ("ruby-test-unit" ,ruby-test-unit)))
3875 (synopsis "JSON implementation in pure Ruby")
3877 "This package provides a JSON implementation written in pure Ruby.")
3878 (home-page "https://flori.github.com/json")
3879 (license license:ruby)))
3881 ;; Even though this package only provides bindings for a Mac OSX API it is
3882 ;; required by "ruby-listen" at runtime.
3883 (define-public ruby-rb-fsevent
3885 (name "ruby-rb-fsevent")
3889 (uri (rubygems-uri "rb-fsevent" version))
3892 "1lm1k7wpz69jx7jrc92w3ggczkjyjbfziq5mg62vjnxmzs383xx8"))))
3893 (build-system ruby-build-system)
3894 ;; Tests need "guard-rspec", which needs "guard". However, "guard" needs
3895 ;; "listen", which needs "rb-fsevent" at runtime.
3896 (arguments `(#:tests? #f))
3897 (synopsis "FSEvents API with signals catching")
3899 "This library provides Ruby bindings for the Mac OSX FSEvents API.")
3900 (home-page "https://rubygems.org/gems/rb-fsevent")
3901 (license license:expat)))
3903 (define-public ruby-listen
3905 (name "ruby-listen")
3910 (uri (rubygems-uri "listen" version))
3913 "01v5mrnfqm6sgm8xn2v5swxsn1wlmq7rzh2i48d4jzjsc7qvb6mx"))))
3914 (build-system ruby-build-system)
3915 (arguments '(#:tests? #f)) ; no tests
3917 `(("ruby-rb-inotify" ,ruby-rb-inotify)
3918 ("ruby-rb-fsevent" ,ruby-rb-fsevent)))
3919 (synopsis "Listen to file modifications")
3920 (description "The Listen gem listens to file modifications and notifies
3921 you about the changes.")
3922 (home-page "https://github.com/guard/listen")
3923 (license license:expat)))
3925 (define-public ruby-listen-3.0
3927 (inherit ruby-listen)
3931 (uri (rubygems-uri "listen" version))
3934 "1l0y7hbyfiwpvk172r28hsdqsifq1ls39hsfmzi1vy4ll0smd14i"))))))
3936 (define-public ruby-loofah
3938 (name "ruby-loofah")
3943 (uri (rubygems-uri "loofah" version))
3946 "1ccsid33xjajd0im2xv941aywi58z7ihwkvaf1w2bv89vn5bhsjg"))))
3947 (build-system ruby-build-system)
3950 (modify-phases %standard-phases
3951 (add-after 'unpack 'remove-unnecessary-dependencies
3953 ;; concourse is a development tool which is unused, so remove it
3954 ;; so it's not required.
3955 (substitute* "Gemfile"
3956 ((".*\"concourse\".*") "\n"))
3957 (substitute* "Rakefile"
3958 (("require 'concourse'") "")
3959 (("Concourse\\.new.*") "\n"))
3962 `(("ruby-hoe" ,ruby-hoe)
3963 ("ruby-rr" ,ruby-rr)))
3965 `(("ruby-nokogiri" ,ruby-nokogiri)
3966 ("ruby-crass" ,ruby-crass)))
3967 (synopsis "Ruby library for manipulating and transforming HTML/XML")
3969 "Loofah is a general library for manipulating and transforming HTML/XML
3970 documents and fragments. It's built on top of Nokogiri and libxml2.")
3971 (home-page "https://github.com/flavorjones/loofah")
3972 (license license:expat)))
3974 (define-public ruby-activesupport
3976 (name "ruby-activesupport")
3981 (uri (rubygems-uri "activesupport" version))
3984 "1iya7vxqwxysr74s7b4z1x19gmnx5advimzip3cbmsd5bd43wfgz"))))
3985 (build-system ruby-build-system)
3988 (modify-phases %standard-phases
3991 ;; There are no tests, instead attempt to load the library.
3992 (invoke "ruby" "-Ilib" "-r" "active_support"))))))
3994 `(("ruby-concurrent" ,ruby-concurrent)
3995 ("ruby-i18n" ,ruby-i18n)
3996 ("ruby-minitest" ,ruby-minitest)
3997 ("ruby-tzinfo" ,ruby-tzinfo)
3998 ("ruby-tzinfo-data" ,ruby-tzinfo-data)))
3999 (synopsis "Ruby on Rails utility library")
4000 (description "ActiveSupport is a toolkit of support libraries and Ruby
4001 core extensions extracted from the Rails framework. It includes support for
4002 multibyte strings, internationalization, time zones, and testing.")
4003 (home-page "http://www.rubyonrails.org")
4004 (license license:expat)))
4006 (define-public ruby-crass
4012 (uri (rubygems-uri "crass" version))
4015 "0bpxzy6gjw9ggjynlxschbfsgmx8lv3zw1azkjvnb8b9i895dqfi"))))
4016 (build-system ruby-build-system)
4018 `(("bundler" ,bundler)
4019 ("ruby-minitest" ,ruby-minitest)))
4020 (synopsis "Pure Ruby CSS parser")
4022 "Crass is a pure Ruby CSS parser based on the CSS Syntax Level 3 spec.")
4023 (home-page "https://github.com/rgrove/crass/")
4024 (license license:expat)))
4026 (define-public ruby-nokogumbo
4027 (let ((commit "fb51ff299a1c34346837580b6d1d9a60fadf5dbd"))
4029 (name "ruby-nokogumbo")
4030 (version (string-append "1.4.7-1." (string-take commit 8)))
4032 ;; We use the git reference, because there's no Rakefile in the
4033 ;; published gem and the tarball on Github is outdated.
4036 (url "https://github.com/rubys/nokogumbo.git")
4037 (commit "d56f954d20a")))
4038 (file-name (string-append name "-" version "-checkout"))
4041 "0bnppjy96xiadrsrc9dp8y6wvdwnkfa930n7acrp0mqm4qywl2wl"))))
4042 (build-system ruby-build-system)
4044 `(#:modules ((guix build ruby-build-system)
4048 (modify-phases %standard-phases
4049 (add-after 'unpack 'build-gemspec
4051 (substitute* "Rakefile"
4052 ;; Build Makefile even without a copy of gumbo-parser sources
4053 (("'gumbo-parser/src',") "")
4054 ;; We don't bundle gumbo-parser sources
4055 (("'gumbo-parser/src/\\*',") "")
4056 (("'gumbo-parser/visualc/include/\\*',") "")
4057 ;; The definition of SOURCES will be cut in gemspec, and
4058 ;; "FileList" will be undefined.
4059 (("SOURCES \\+ FileList\\[")
4060 "['ext/nokogumboc/extconf.rb', 'ext/nokogumboc/nokogumbo.c', "))
4062 ;; Copy the Rakefile and cut out the gemspec.
4063 (copy-file "Rakefile" ".gemspec")
4064 (with-atomic-file-replacement ".gemspec"
4066 (let loop ((line (read-line in 'concat))
4068 (if (eof-object? line)
4070 (let ((skip-next? (if skipping?
4071 (not (string-prefix? "SPEC =" line))
4072 (string-prefix? "end" line))))
4073 (when (or (not skipping?)
4074 (and skipping? (not skip-next?)))
4075 (format #t "~a" line)
4077 (loop (read-line in 'concat) skip-next?))))))
4080 `(("gumbo-parser" ,gumbo-parser)))
4082 `(("ruby-nokogiri" ,ruby-nokogiri)))
4083 (synopsis "Ruby bindings to the Gumbo HTML5 parser")
4085 "Nokogumbo allows a Ruby program to invoke the Gumbo HTML5 parser and
4086 access the result as a Nokogiri parsed document.")
4087 (home-page "https://github.com/rubys/nokogumbo/")
4088 (license license:asl2.0))))
4090 (define-public ruby-sanitize
4092 (name "ruby-sanitize")
4096 ;; The gem does not include the Rakefile, so we download the
4097 ;; release tarball from Github.
4098 (uri (string-append "https://github.com/rgrove/"
4099 "sanitize/archive/v" version ".tar.gz"))
4100 (file-name (string-append name "-" version ".tar.gz"))
4103 "1fmqppwif3cm8h79006jfzkdnlxxzlry9kzk03psk0d5xpg55ycc"))))
4104 (build-system ruby-build-system)
4106 `(("ruby-crass" ,ruby-crass)
4107 ("ruby-nokogiri" ,ruby-nokogiri)
4108 ("ruby-nokogumbo" ,ruby-nokogumbo)))
4110 `(("bundler" ,bundler)
4111 ("ruby-minitest" ,ruby-minitest)
4112 ("ruby-redcarpet" ,ruby-redcarpet)
4113 ("ruby-yard" ,ruby-yard)))
4114 (synopsis "Whitelist-based HTML and CSS sanitizer")
4116 "Sanitize is a whitelist-based HTML and CSS sanitizer. Given a list of
4117 acceptable elements, attributes, and CSS properties, Sanitize will remove all
4118 unacceptable HTML and/or CSS from a string.")
4119 (home-page "https://github.com/rgrove/sanitize/")
4120 (license license:expat)))
4122 (define-public ruby-oj
4129 ;; Version on rubygems.org does not contain Rakefile, so download from
4131 (uri (string-append "https://github.com/ohler55/oj/archive/v"
4133 (file-name (string-append name "-" version ".tar.gz"))
4136 "1x28ga72jxlnmsd8g8c0fw81vlh54r0qgagw2lxsd3x3la091g2h"))))
4137 (build-system ruby-build-system)
4139 '(#:test-target "test_all"
4141 (modify-phases %standard-phases
4142 (add-before 'check 'disable-bundler
4144 (substitute* "Rakefile"
4145 (("Bundler\\.with_clean_env") "1.times")
4146 (("bundle exec ") "")))))))
4148 `(("bundler" ,bundler)
4149 ("ruby-rspec" ,ruby-rspec)
4150 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4151 (synopsis "JSON parser for Ruby optimized for speed")
4153 "Oj is a JSON parser and generator for Ruby, where the encoding and
4154 decoding of JSON is implemented as a C extension to Ruby.")
4155 (home-page "http://www.ohler.com/oj")
4156 (license (list license:expat ; Ruby code
4157 license:bsd-3)))) ; extension code
4159 (define-public ruby-ox
4166 (uri (rubygems-uri "ox" version))
4169 "0fmk62b1h2i79dfzjj8wmf8qid1rv5nhwfc17l489ywnga91xl83"))))
4170 (build-system ruby-build-system)
4172 '(#:tests? #f)) ; no tests
4173 (synopsis "Optimized XML library for Ruby")
4175 "Optimized XML (Ox) is a fast XML parser and object serializer for Ruby
4176 written as a native C extension. It was designed to be an alternative to
4177 Nokogiri and other Ruby XML parsers for generic XML parsing and as an
4178 alternative to Marshal for Object serialization. ")
4179 (home-page "http://www.ohler.com/ox")
4180 (license license:expat)))
4182 (define-public ruby-redcloth
4184 (name "ruby-redcloth")
4188 (uri (rubygems-uri "RedCloth" version))
4191 "0m9dv7ya9q93r8x1pg2gi15rxlbck8m178j1fz7r5v6wr1avrrqy"))))
4192 (build-system ruby-build-system)
4194 `(#:tests? #f ; no tests
4196 (modify-phases %standard-phases
4197 ;; Redcloth has complicated rake tasks to build various versions for
4198 ;; multiple targets using RVM. We don't want this so we just use the
4199 ;; existing gemspec.
4202 (invoke "gem" "build" "redcloth.gemspec"))))))
4204 `(("bundler" ,bundler)
4205 ("ruby-diff-lcs" ,ruby-diff-lcs)
4206 ("ruby-rspec-2" ,ruby-rspec-2)))
4207 (synopsis "Textile markup language parser for Ruby")
4209 "RedCloth is a Ruby parser for the Textile markup language.")
4210 (home-page "http://redcloth.org")
4211 (license license:expat)))
4213 (define-public ruby-pg
4220 (uri (rubygems-uri "pg" version))
4223 "1pnjw3rspdfjssxyf42jnbsdlgri8ylysimp0s28wxb93k6ff2qb"))))
4224 (build-system ruby-build-system)
4226 '(#:test-target "spec"))
4228 `(("ruby-rake-compiler" ,ruby-rake-compiler)
4229 ("ruby-hoe" ,ruby-hoe)
4230 ("ruby-rspec" ,ruby-rspec)))
4232 `(("postgresql" ,postgresql-9.6)))
4233 (synopsis "Ruby interface to PostgreSQL")
4234 (description "Pg is the Ruby interface to the PostgreSQL RDBMS. It works
4235 with PostgreSQL 9.0 and later.")
4236 (home-page "https://bitbucket.org/ged/ruby-pg")
4237 (license license:ruby)))
4239 (define-public ruby-byebug
4241 (name "ruby-byebug")
4246 (uri (rubygems-uri "byebug" version))
4249 "1kbfcn65rgdhi72n8x9l393b89rvi5z542459k7d1ggchpb0idb0"))))
4250 (build-system ruby-build-system)
4252 '(#:tests? #f)) ; no tests
4253 (synopsis "Debugger for Ruby 2")
4254 (description "Byebug is a Ruby 2 debugger implemented using the Ruby 2
4255 TracePoint C API for execution control and the Debug Inspector C API for call
4256 stack navigation. The core component provides support that front-ends can
4257 build on. It provides breakpoint handling and bindings for stack frames among
4258 other things and it comes with a command line interface.")
4259 (home-page "https://github.com/deivid-rodriguez/byebug")
4260 (license license:bsd-2)))
4262 (define-public ruby-netrc
4268 (uri (rubygems-uri "netrc" version))
4271 "0gzfmcywp1da8nzfqsql2zqi648mfnx6qwkig3cv36n9m0yy676y"))))
4272 (build-system ruby-build-system)
4275 (modify-phases %standard-phases
4277 ;; There is no Rakefile and minitest can only run one file at once,
4278 ;; so we have to iterate over all test files.
4281 (invoke "ruby" "-Itest" file))
4282 (find-files "./test" "test_.*\\.rb")))))))
4284 `(("ruby-minitest" ,ruby-minitest)))
4285 (synopsis "Library to read and update netrc files")
4287 "This library can read and update netrc files, preserving formatting
4288 including comments and whitespace.")
4289 (home-page "https://github.com/geemus/netrc")
4290 (license license:expat)))
4292 (define-public ruby-unf-ext
4294 (name "ruby-unf-ext")
4298 (uri (rubygems-uri "unf_ext" version))
4301 "0ly2ms6c3irmbr1575ldyh52bz2v0lzzr2gagf0p526k12ld2n5b"))))
4302 (build-system ruby-build-system)
4305 (modify-phases %standard-phases
4306 (add-after 'build 'build-ext
4307 (lambda _ (invoke "rake" "compile:unf_ext"))))))
4309 `(("bundler" ,bundler)
4310 ("ruby-rake-compiler" ,ruby-rake-compiler)
4311 ("ruby-test-unit" ,ruby-test-unit)))
4312 (synopsis "Unicode normalization form support library")
4314 "This package provides unicode normalization form support for Ruby.")
4315 (home-page "https://github.com/knu/ruby-unf_ext")
4316 (license license:expat)))
4318 (define-public ruby-tdiff
4319 ;; Use a newer than released snapshot so that rspec-2 is not required.
4320 (let ((commit "b662a6048f08abc45c1a834e5f34dd1c662935e2"))
4323 (version (string-append "0.3.3-1." (string-take commit 8)))
4327 (url "https://github.com/postmodern/tdiff.git")
4329 (file-name (string-append name "-" version "-checkout"))
4332 "0n3gq8rx49f7ln6zqlshqfg2mgqyy30rsdjlnki5mv307ykc7ad4"))))
4333 (build-system ruby-build-system)
4335 `(("ruby-rspec" ,ruby-rspec)
4336 ("ruby-yard" ,ruby-yard)
4337 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4338 (synopsis "Calculate the differences between two tree-like structures")
4340 "This library provides functions to calculate the differences between two
4341 tree-like structures. It is similar to Ruby's built-in @code{TSort} module.")
4342 (home-page "https://github.com/postmodern/tdiff")
4343 (license license:expat))))
4345 (define-public ruby-nokogiri-diff
4346 ;; Use a newer than released snapshot so that rspec-2 is not required.
4347 (let ((commit "a38491e4d8709b7406f2cae11a50226d927d06f5"))
4349 (name "ruby-nokogiri-diff")
4350 (version (string-append "0.2.0-1." (string-take commit 8)))
4354 (url "https://github.com/postmodern/nokogiri-diff.git")
4356 (file-name (string-append name "-" version "-checkout"))
4359 "1ah2sfjh9n1p0ln2wkqzfl448ml7j4zfy6dhp1qgzq2m41php6rf"))))
4360 (build-system ruby-build-system)
4362 `(("ruby-tdiff" ,ruby-tdiff)
4363 ("ruby-nokogiri" ,ruby-nokogiri)))
4365 `(("ruby-rspec" ,ruby-rspec)
4366 ("ruby-yard" ,ruby-yard)
4367 ("ruby-rubygems-tasks" ,ruby-rubygems-tasks)))
4368 (synopsis "Calculate the differences between two XML/HTML documents")
4370 "@code{Nokogiri::Diff} adds the ability to calculate the
4371 differences (added or removed nodes) between two XML/HTML documents.")
4372 (home-page "https://github.com/postmodern/nokogiri-diff")
4373 (license license:expat))))
4375 (define-public ruby-racc
4382 (uri (rubygems-uri "racc" version))
4385 "00yhs2ag7yy5v83mqvkbnhk9bvsh6mx3808k53n61ddzx446v1zl"))))
4386 (build-system ruby-build-system)
4388 `(("ruby-hoe" ,ruby-hoe)
4389 ("ruby-rake-compiler" ,ruby-rake-compiler)))
4390 (synopsis "LALR(1) parser generator for Ruby")
4392 "Racc is a LALR(1) parser generator. It is written in Ruby itself, and
4393 generates Ruby program.")
4394 (home-page "http://i.loveruby.net/en/projects/racc/")
4396 ;; Generally licensed under the LGPL2.1, and some files also
4397 ;; available under the same license as Ruby.
4401 (define-public ruby-rack
4408 ;; Download from GitHub so that the patch can be applied.
4410 "https://github.com/rack/rack/archive/"
4413 (file-name (string-append name "-" version ".tar.gz"))
4416 "0pb3g5ymvbf07xaxcn51dpqv3djlxavckp3qkxsjdxiqznb0d9p1"))
4417 ;; Ignore test which fails inside the build environment but works
4419 (patches (search-patches "ruby-rack-ignore-failing-test.patch"))))
4420 (build-system ruby-build-system)
4423 (modify-phases %standard-phases
4424 (add-before 'check 'fix-tests
4426 ;; A few of the tests use the length of a file on disk for
4427 ;; Content-Length and Content-Range headers. However, this file
4428 ;; has a shebang in it which an earlier phase patches, growing
4429 ;; the file size from 193 to 239 bytes when the store prefix is
4431 (let ((size-diff (- (string-length (which "ruby"))
4432 (string-length "/usr/bin/env ruby"))))
4433 (substitute* '("test/spec_file.rb")
4435 (number->string (+ 193 size-diff)))
4436 (("bytes(.)22-33" all delimiter)
4437 (string-append "bytes"
4439 (number->string (+ 22 size-diff))
4441 (number->string (+ 33 size-diff))))))
4444 `(("ruby-minitest" ,ruby-minitest)
4445 ("ruby-minitest-sprint" ,ruby-minitest-sprint)
4448 `(("ruby-concurrent" ,ruby-concurrent)))
4449 (synopsis "Unified web application interface for Ruby")
4450 (description "Rack provides a minimal, modular and adaptable interface for
4451 developing web applications in Ruby. By wrapping HTTP requests and responses,
4452 it unifies the API for web servers, web frameworks, and software in between
4453 into a single method call.")
4454 (home-page "https://rack.github.io/")
4455 (license license:expat)))
4457 (define-public ruby-rack-test
4459 (name "ruby-rack-test")
4464 (uri (rubygems-uri "rack-test" version))
4467 "14ij39zywvr1i9f6jsixfg4zxi2q1m1n1nydvf47f0b6sfc9mv1g"))))
4468 (build-system ruby-build-system)
4470 ;; Disable tests because of circular dependencies: requires sinatra,
4471 ;; which requires rack-protection, which requires rack-test. Instead
4472 ;; simply require the library.
4474 (modify-phases %standard-phases
4477 (invoke "ruby" "-Ilib" "-r" "rack/test"))))))
4479 `(("ruby-rack" ,ruby-rack)))
4480 (synopsis "Testing API for Rack applications")
4482 "Rack::Test is a small, simple testing API for Rack applications. It can
4483 be used on its own or as a reusable starting point for Web frameworks and
4484 testing libraries to build on.")
4485 (home-page "https://github.com/rack-test/rack-test")
4486 (license license:expat)))
4488 (define-public ruby-rack-protection
4490 (name "ruby-rack-protection")
4495 (uri (rubygems-uri "rack-protection" version))
4498 "1z5598qipilmnf45428jnxi63ykrgvnyywa5ckpr52zv2vpd8jdp"))))
4499 (build-system ruby-build-system)
4501 '(;; Tests missing from the gem.
4504 `(("ruby-rack" ,ruby-rack)))
4506 `(("bundler" ,bundler)
4507 ("ruby-rspec" ,ruby-rspec-2)
4508 ("ruby-rack-test" ,ruby-rack-test)))
4509 (synopsis "Rack middleware that protects against typical web attacks")
4510 (description "Rack middleware that can be used to protect against typical
4511 web attacks. It can protect all Rack apps, including Rails. For instance, it
4512 protects against cross site request forgery, cross site scripting,
4513 clickjacking, directory traversal, session hijacking and IP spoofing.")
4514 (home-page "https://github.com/sinatra/sinatra/tree/master/rack-protection")
4515 (license license:expat)))
4517 (define-public ruby-rainbow
4519 (name "ruby-rainbow")
4524 (uri (rubygems-uri "rainbow" version))
4527 "0bb2fpjspydr6x0s8pn1pqkzmxszvkfapv0p4627mywl7ky4zkhk"))))
4528 (build-system ruby-build-system)
4531 (modify-phases %standard-phases
4532 ;; Run rspec directly, to avoid requiring Rubocop which is used from
4535 (lambda* (#:key tests? #:allow-other-keys)
4540 `(("bundler" ,bundler)
4541 ("ruby-rspec" ,ruby-rspec)))
4542 (synopsis "Colorize printed text on ANSI terminals")
4544 "@code{rainbow} provides a string presenter object to colorize strings by
4545 wrapping them in ANSI escape codes.")
4546 (home-page "https://github.com/sickill/rainbow")
4547 (license license:expat)))
4549 (define-public ruby-rr
4556 (uri (rubygems-uri "rr" version))
4559 "1n9g78ba4c2zzmz8cdb97c38h1xm0clircag00vbcxwqs4dq0ymp"))))
4560 (build-system ruby-build-system)
4562 '(#:tests? #f)) ; test files not included
4564 `(("bundler" ,bundler)
4565 ("ruby-rspec" ,ruby-rspec)))
4566 (synopsis "Ruby test double framework")
4568 "RR is a test double framework that features a rich selection of double
4569 techniques and a terse syntax.")
4570 (home-page "https://rr.github.io/rr/")
4571 (license license:expat)))
4573 (define-public ruby-rest-client
4575 (name "ruby-rest-client")
4580 (uri (rubygems-uri "rest-client" version))
4583 "1hzcs2r7b5bjkf2x2z3n8z6082maz0j8vqjiciwgg3hzb63f958j"))))
4584 (build-system ruby-build-system)
4587 (modify-phases %standard-phases
4588 (add-before 'check 'remove-unnecessary-development-dependencies
4590 (substitute* "rest-client.gemspec"
4591 ;; Remove rubocop as it's unused. Rubocop also indirectly
4592 ;; depends on this package through ruby-parser and ruby-ast so
4593 ;; this avoids a dependency loop.
4594 ((".*rubocop.*") "\n")
4595 ;; Remove pry as it's unused, it's a debugging tool
4597 ;; Remove an unnecessarily strict rdoc dependency
4598 ((".*rdoc.*") "\n"))
4600 (add-before 'check 'delete-network-dependent-tests
4602 (delete-file "spec/integration/request_spec.rb")
4603 (delete-file "spec/integration/httpbin_spec.rb")
4606 `(("ruby-http-cookie" ,ruby-http-cookie)
4607 ("ruby-mime-types" ,ruby-mime-types)
4608 ("ruby-netrc" ,ruby-netrc)))
4610 `(("bundler" ,bundler)
4611 ("ruby-webmock", ruby-webmock-2)
4612 ("ruby-rspec", ruby-rspec)))
4613 (synopsis "Simple HTTP and REST client for Ruby")
4615 "@code{rest-client} provides a simple HTTP and REST client for Ruby,
4616 inspired by the Sinatra microframework style of specifying actions:
4617 @code{get}, @code{put}, @code{post}, @code{delete}.")
4618 (home-page "https://github.com/rest-client/rest-client")
4619 (license license:expat)))
4621 (define-public ruby-rubocop
4623 (name "ruby-rubocop")
4628 (uri (rubygems-uri "rubocop" version))
4631 "07shi6kncwhkvlh9ci9rgccrjsq4448hbic3yrakh2w65ppynvbj"))))
4632 (build-system ruby-build-system)
4634 '(;; No included tests
4637 `(("ruby-parser" ,ruby-parser)
4638 ("ruby-powerpack" ,ruby-powerpack)
4639 ("ruby-rainbow" ,ruby-rainbow)
4640 ("ruby-progressbar" ,ruby-progressbar)
4641 ("ruby-parallel" ,ruby-parallel)
4642 ("ruby-jaro-winkler" ,ruby-jaro-winkler)
4643 ("ruby-unicode-display-width" ,ruby-unicode-display-width)))
4644 (synopsis "Ruby code style checking tool")
4646 "@code{rubocop} is a Ruby code style checking tool. It aims to enforce
4647 the community-driven Ruby Style Guide.")
4648 (home-page "https://github.com/rubocop-hq/rubocop")
4649 (license license:expat)))
4651 (define-public ruby-contest
4653 (name "ruby-contest")
4658 (uri (rubygems-uri "contest" version))
4661 "1p9f2292b7b0fbrcjswvj9v01z7ig5ig52328wyqcabgb553qsdf"))))
4662 (build-system ruby-build-system)
4663 (synopsis "Write declarative tests using nested contexts")
4665 "Contest allows writing declarative @code{Test::Unit} tests using nested
4666 contexts without performance penalties.")
4667 (home-page "https://github.com/citrusbyte/contest")
4668 (license license:expat)))
4670 (define-public ruby-creole
4672 (name "ruby-creole")
4677 (uri (rubygems-uri "creole" version))
4680 "00rcscz16idp6dx0dk5yi5i0fz593i3r6anbn5bg2q07v3i025wm"))))
4681 (build-system ruby-build-system)
4683 `(("ruby-bacon" ,ruby-bacon)))
4684 (synopsis "Creole markup language converter")
4686 "Creole is a lightweight markup language and this library for converting
4687 creole to @code{HTML}.")
4688 (home-page "https://github.com/minad/creole")
4689 (license license:ruby)))
4691 (define-public ruby-docile
4693 (name "ruby-docile")
4698 (uri (rubygems-uri "docile" version))
4701 "0m8j31whq7bm5ljgmsrlfkiqvacrw6iz9wq10r3gwrv5785y8gjx"))))
4702 (build-system ruby-build-system)
4704 '(#:tests? #f)) ; needs github-markup, among others
4705 (synopsis "Ruby EDSL helper library")
4706 (description "Docile is a Ruby library that provides an interface for
4707 creating embedded domain specific languages (EDSLs) that manipulate existing
4709 (home-page "https://ms-ati.github.io/docile/")
4710 (license license:expat)))
4712 (define-public ruby-gherkin
4714 (name "ruby-gherkin")
4719 (uri (rubygems-uri "gherkin" version))
4722 "1cgcdchwwdm10rsk44frjwqd4ihprhxjbm799nscqy2q1raqfj5s"))))
4723 (build-system ruby-build-system)
4725 `(("bundler" ,bundler)))
4727 '(#:tests? #f)) ; needs simplecov, among others
4728 (synopsis "Gherkin parser for Ruby")
4729 (description "Gherkin is a parser and compiler for the Gherkin language.
4730 It is intended be used by all Cucumber implementations to parse
4731 @file{.feature} files.")
4732 (home-page "https://github.com/cucumber-attic/gherkin")
4733 (license license:expat)))
4735 (define-public ruby-aruba
4742 (uri (rubygems-uri "aruba" version))
4745 "0zdd81l1lp0x78sxa6kkfqclpj5il3xl70nz05wqv2sfzzhqydxh"))))
4746 (build-system ruby-build-system)
4748 '(#:test-target "spec"
4750 (modify-phases %standard-phases
4751 (add-after 'unpack 'patch
4753 (substitute* "spec/aruba/api_spec.rb"
4754 ;; This resolves some errors in the specs
4756 ;; undefined method `parse' for Time:Class
4757 (("require 'spec_helper'")
4758 "require 'spec_helper'\nrequire 'time'"))
4759 ;; Avoid shebang issues in this spec file
4760 (substitute* "spec/aruba/matchers/command_spec.rb"
4761 (("/usr/bin/env bash")
4764 (add-before 'check 'remove-unnecessary-dependencies
4766 (substitute* "Gemfile"
4767 ((".*byebug.*") "\n")
4771 ((".*kramdown.*") "\n")
4772 ((".*rubocop.*") "\n")
4773 ((".*cucumber-pro.*") "\n")
4774 ((".*cucumber.*") "\n")
4775 ((".*license_finder.*") "\n")
4776 ((".*rake.*") "gem 'rake'\n")
4777 ((".*simplecov.*") "\n")
4778 ((".*relish.*") "\n"))
4779 (substitute* "spec/spec_helper.rb"
4780 ((".*simplecov.*") "")
4781 (("^SimpleCov.*") ""))
4782 (substitute* "aruba.gemspec"
4783 (("spec\\.add\\_runtime\\_dependency 'cucumber'.*")
4784 "spec.add_runtime_dependency 'cucumber'"))
4786 (add-before 'check 'set-home
4787 (lambda _ (setenv "HOME" "/tmp") #t)))))
4789 `(("bundler" ,bundler)
4790 ("ruby-rspec" ,ruby-rspec)
4791 ("ruby-fuubar" ,ruby-fuubar)))
4793 `(("ruby-childprocess" ,ruby-childprocess)
4794 ("ruby-contracts" ,ruby-contracts)
4795 ("ruby-cucumber" ,ruby-cucumber)
4796 ("ruby-ffi" ,ruby-ffi)
4797 ("ruby-rspec-expectations" ,ruby-rspec-expectations)
4798 ("ruby-thor" ,ruby-thor)
4799 ("ruby-yard" ,ruby-yard)))
4800 (synopsis "Test command-line applications with Cucumber, RSpec or Minitest")
4802 "Aruba is an extension for Cucumber, RSpec and Minitest for testing
4803 command-line applications. It supports applications written in any
4805 (home-page "https://github.com/cucumber/aruba")
4806 (license license:expat)))
4808 ;; A version of ruby-aruba without tests run so that circular dependencies can
4810 (define ruby-aruba-without-tests
4812 (inherit ruby-aruba)
4813 (arguments '(#:tests? #f))
4815 `(("ruby-cucumber" ,ruby-cucumber-without-tests)
4816 ,@(alist-delete "ruby-cucumber"
4817 (package-propagated-inputs ruby-aruba))))
4818 (native-inputs '())))
4820 (define-public ruby-cucumber
4822 (name "ruby-cucumber")
4828 (url "https://github.com/cucumber/cucumber-ruby.git")
4829 (commit (string-append "v" version))))
4830 (file-name (git-file-name name version))
4833 "0764wp2cjg60qa3l69q1dxda5g06a01n5w92szqbf89d2hgl47n3"))))
4834 (build-system ruby-build-system)
4836 '(#:test-target "spec"
4838 (modify-phases %standard-phases
4839 ;; Don't run or require rubocop, the code linting tool, as this is a
4841 (add-after 'unpack 'dont-run-rubocop
4843 (substitute* "Rakefile"
4844 ((".*rubocop/rake\\_task.*") "")
4845 ((".*RuboCop.*") ""))
4848 `(("ruby-builder" ,ruby-builder)
4849 ("ruby-cucumber-core" ,ruby-cucumber-core)
4850 ("ruby-cucumber-wire" ,ruby-cucumber-wire)
4851 ("ruby-cucumber-expressions" ,ruby-cucumber-expressions)
4852 ("ruby-diff-lcs" ,ruby-diff-lcs)
4853 ("ruby-gherkin" ,ruby-gherkin)
4854 ("ruby-multi-json" ,ruby-multi-json)
4855 ("ruby-multi-test" ,ruby-multi-test)))
4857 `(("bundler" ,bundler)
4858 ;; Use a untested version of aruba, to avoid a circular dependency, as
4859 ;; ruby-aruba depends on ruby-cucumber.
4860 ("ruby-aruba", ruby-aruba-without-tests)
4861 ("ruby-rspec" ,ruby-rspec)
4862 ("ruby-pry" ,ruby-pry)
4863 ("ruby-nokogiri" ,ruby-nokogiri)))
4864 (synopsis "Describe automated tests in plain language")
4866 "Cucumber is a tool for running automated tests written in plain
4867 language. It's designed to support a Behaviour Driven Development (BDD)
4868 software development workflow.")
4869 (home-page "https://cucumber.io/")
4870 (license license:expat)))
4872 (define ruby-cucumber-without-tests
4873 (package (inherit ruby-cucumber)
4879 (define-public ruby-cucumber-core
4881 (name "ruby-cucumber-core")
4882 ;; Stick to major version 3, until version 4 of Cucumber is released.
4887 (uri (rubygems-uri "cucumber-core" version))
4890 "1iavlh8hqj9lwljbpkw06259gdicbr1bdb6pbj5yy3n8szgr8k3c"))))
4891 (build-system ruby-build-system)
4893 `(("ruby-backports" ,ruby-backports)
4894 ("ruby-gherkin" ,ruby-gherkin)
4895 ("ruby-cucumber-tag-expressions" ,ruby-cucumber-tag-expressions)))
4897 `(("bundler" ,bundler)))
4899 '(#:tests? #f)) ; needs simplecov, among others
4900 (synopsis "Core library for the Cucumber BDD app")
4901 (description "Cucumber is a tool for running automated tests
4902 written in plain language. Because they're written in plain language,
4903 they can be read by anyone on your team. Because they can be read by
4904 anyone, you can use them to help improve communication, collaboration
4905 and trust on your team.")
4906 (home-page "https://cucumber.io/")
4907 (license license:expat)))
4909 (define-public ruby-cucumber-expressions
4911 (name "ruby-cucumber-expressions")
4916 (uri (rubygems-uri "cucumber-expressions" version))
4919 "0zwmv6hznyz9vk81f5dhwcr9jhxx2vmbk8yyazayvllvhy0fkpdw"))))
4920 (build-system ruby-build-system)
4922 '(#:test-target "spec"))
4924 `(("bundler" ,bundler)
4925 ("ruby-rspec" ,ruby-rspec)
4926 ("ruby-simplecov" ,ruby-simplecov)))
4927 (synopsis "Simpler alternative to Regular Expressions")
4928 (description "Cucumber Expressions offer similar functionality to Regular
4929 Expressions, with a syntax that is easier to read and write. Cucumber
4930 Expressions are extensible with parameter types.")
4931 (home-page "https://github.com/cucumber/cucumber-expressions-ruby")
4932 (license license:expat)))
4934 (define-public ruby-cucumber-wire
4936 (name "ruby-cucumber-wire")
4937 ;; Package version 0.0.1 initially, as this is what's needed by Cucumber
4938 ;; 3, and Cucumber 4 hasn't been released yet.
4943 (uri (rubygems-uri "cucumber-wire" version))
4946 "09ymvqb0sbw2if1nxg8rcj33sf0va88ancq5nmp8g01dfwzwma2f"))))
4947 (build-system ruby-build-system)
4949 '(;; TODO: Currently, the tests can't be run as cucumber is required,
4950 ;; which would lead to a circular dependency.
4952 #:test-target "default"
4954 (modify-phases %standard-phases
4955 (add-before 'check 'set-CUCUMBER_USE_RELEASED_GEMS
4957 (setenv "CUCUMBER_USE_RELEASED_GEMS" "true")
4960 `(("bundler" ,bundler)
4961 ("ruby-rspec" ,ruby-rspec)))
4962 (synopsis "Cucumber wire protocol plugin")
4964 "Cucumber's wire protocol allows step definitions to be implemented and
4965 invoked on any platform.")
4966 (home-page "https://github.com/cucumber/cucumber-ruby-wire")
4967 (license license:expat)))
4969 (define-public ruby-cucumber-tag-expressions
4971 (name "ruby-cucumber-tag-expressions")
4976 (uri (rubygems-uri "cucumber-tag_expressions" version))
4979 "0cvmbljybws0qzjs1l67fvr9gqr005l8jk1ni5gcsis9pfmqh3vc"))))
4980 (build-system ruby-build-system)
4983 (modify-phases %standard-phases
4989 `(("ruby-rspec" ,ruby-rspec)))
4990 (synopsis "Cucumber tag expressions for Ruby")
4992 "Cucumber tag expression parser for Ruby. A tag expression is an infix
4993 boolean expression used by Cucumber.")
4994 (home-page "https://github.com/cucumber/tag-expressions-ruby")
4995 (license license:expat)))
4997 (define-public ruby-bio-logger
4999 (name "ruby-bio-logger")
5004 (uri (rubygems-uri "bio-logger" version))
5007 "02pylfy8nkdqzyzplvnhn1crzmfkj1zmi3qjhrj2f2imlxvycd28"))))
5008 (build-system ruby-build-system)
5010 `(#:tests? #f)) ; rake errors, missing shoulda
5012 `(("ruby-log4r" ,ruby-log4r)))
5013 (synopsis "Log4r wrapper for Ruby")
5014 (description "Bio-logger is a wrapper around Log4r adding extra logging
5015 features such as filtering and fine grained logging.")
5016 (home-page "https://github.com/pjotrp/bioruby-logger-plugin")
5017 (license license:expat)))
5019 (define-public ruby-yajl-ruby
5021 (name "ruby-yajl-ruby")
5026 (uri (rubygems-uri "yajl-ruby" version))
5029 "16v0w5749qjp13xhjgr2gcsvjv6mf35br7iqwycix1n2h7kfcckf"))))
5030 (build-system ruby-build-system)
5032 '(#:test-target "spec"
5034 (modify-phases %standard-phases
5035 (add-before 'check 'patch-test-to-update-load-path
5037 (substitute* "spec/parsing/large_number_spec.rb"
5038 (("require \"yajl\"")
5039 "$LOAD_PATH << 'lib'; require 'yajl'"))
5042 `(("ruby-rake-compiler" ,ruby-rake-compiler)
5043 ("ruby-rspec" ,ruby-rspec)))
5044 (synopsis "Streaming JSON parsing and encoding library for Ruby")
5046 "Ruby C bindings to the Yajl JSON stream-based parser library. The API
5047 is compatible with the JSON gem, so yajl-ruby can act as a drop in
5050 A modified copy of yajl is used, and included in the package.")
5051 (home-page "https://github.com/brianmario/yajl-ruby")
5052 (license (list license:expat ; Ruby code, yajl_ext.c and yajl_ext.h
5053 license:bsd-3)))) ; Included, modified copy of yajl
5055 (define-public ruby-yard
5062 ;; Tests do not pass if we build from the distributed gem.
5063 (uri (string-append "https://github.com/lsegal/yard/archive/v"
5065 (file-name (string-append name "-" version ".tar.gz"))
5068 "0sqpbayy9sb406jh0zqg6qha1xds863qz9531dh6vp58hc00clfq"))))
5069 (build-system ruby-build-system)
5072 (modify-phases %standard-phases
5075 ;; $HOME needs to be set to somewhere writeable for tests to run
5076 (setenv "HOME" "/tmp")
5077 ;; Run tests without using 'rake' to avoid dependencies.
5078 (invoke "rspec"))))))
5080 `(("ruby-rspec" ,ruby-rspec)
5081 ("ruby-rack" ,ruby-rack)))
5082 (synopsis "Documentation generation tool for Ruby")
5084 "YARD is a documentation generation tool for the Ruby programming
5085 language. It enables the user to generate consistent, usable documentation
5086 that can be exported to a number of formats very easily, and also supports
5087 extending for custom Ruby constructs such as custom class level definitions.")
5088 (home-page "https://yardoc.org")
5089 (license license:expat)))
5091 (define-public ruby-clap
5097 (uri (rubygems-uri "clap" version))
5100 "190m05k3pca72c1h8k0fnvby15m303zi0lpb9c478ad19wqawa5q"))))
5101 (build-system ruby-build-system)
5102 ;; Clap needs cutest for running tests, but cutest needs clap.
5103 (arguments `(#:tests? #f))
5104 (synopsis "Command line argument parsing for simple applications")
5106 "Clap provides command line argument parsing features. It covers the
5107 simple case of executing code based on the flags or parameters passed.")
5108 (home-page "https://github.com/djanowski/cutest")
5109 (license license:expat)))
5111 (define-public ruby-cutest
5113 (name "ruby-cutest")
5117 (uri (rubygems-uri "cutest" version))
5120 "1mldhjn62g53vx4gq2qdqg2lgjvyrqxa8d0khf8347bbfgi16d32"))))
5121 (build-system ruby-build-system)
5123 `(("ruby-clap" ,ruby-clap)))
5124 (synopsis "Run tests in separate processes")
5126 "Cutest runs tests in separate processes to avoid shared state.")
5127 (home-page "https://github.com/djanowski/cutest")
5128 (license license:expat)))
5130 (define-public ruby-pygmentize
5132 (name "ruby-pygmentize")
5136 (uri (rubygems-uri "pygmentize" version))
5139 "1pxryhkiwvsz6xzda3bvqwz5z8ggzl1cdglf8qbcf4bb7akirdpb"))))
5140 (build-system ruby-build-system)
5143 (modify-phases %standard-phases
5144 (add-after 'unpack 'fix-pygmentize-path
5146 (substitute* "lib/pygmentize.rb"
5147 (("\"/usr/bin/env python.*")
5148 (string-append "\"" (which "pygmentize") "\"\n")))
5150 (add-after 'build 'do-not-use-vendor-directory
5152 ;; Remove bundled pygments sources
5153 ;; FIXME: ruby-build-system does not support snippets.
5154 (delete-file-recursively "vendor")
5155 (substitute* "pygmentize.gemspec"
5156 (("\"vendor/\\*\\*/\\*\",") ""))
5159 `(("pygments" ,python-pygments)))
5161 `(("ruby-cutest" ,ruby-cutest)
5162 ("ruby-nokogiri" ,ruby-nokogiri)))
5163 (synopsis "Thin Ruby wrapper around pygmentize")
5165 "Pygmentize provides a simple way to call pygmentize from within a Ruby
5167 (home-page "https://github.com/djanowski/pygmentize")
5168 (license license:expat)))
5170 (define-public ruby-eventmachine
5172 (name "ruby-eventmachine")
5177 (uri (rubygems-uri "eventmachine" version))
5180 "0wh9aqb0skz80fhfn66lbpr4f86ya2z5rx6gm5xlfhd05bj1ch4r"))))
5181 (build-system ruby-build-system)
5183 '(#:tests? #f)) ; test suite tries to connect to google.com
5185 `(("ruby-rake-compiler" ,ruby-rake-compiler)))
5186 (synopsis "Single-threaded network event framework for Ruby")
5188 "EventMachine implements a single-threaded engine for arbitrary network
5189 communications. EventMachine wraps all interactions with sockets, allowing
5190 programs to concentrate on the implementation of network protocols. It can be
5191 used to create both network servers and clients.")
5192 ;; The ‘official’ rubyeventmachine.com domain is now registrar-squatted.
5193 (home-page "https://github.com/eventmachine/eventmachine")
5194 (license (list license:ruby license:gpl3)))) ; GPLv3 only AFAICT
5196 (define-public ruby-ruby-engine
5198 (name "ruby-ruby-engine")
5203 (uri (rubygems-uri "ruby_engine" version))
5206 "1d0sd4q50zkcqhr395wj1wpn2ql52r0fpwhzjfvi1bljml7k546v"))))
5207 (build-system ruby-build-system)
5210 (modify-phases %standard-phases
5211 (add-before 'check 'clean-up
5213 (delete-file "Gemfile.lock")
5214 (substitute* "ruby_engine.gemspec"
5215 ;; Remove unnecessary imports that would entail further
5218 ((".*<rubygems-tasks.*") "")
5219 ;; Remove extraneous .gem file
5220 (("\\\"pkg/ruby_engine-1.0.0.gem\\\",") "")
5221 ;; Soften rake dependency
5222 (("%q<rake>.freeze, \\[\\\"~> 10.0\\\"\\]")
5223 "%q<rake>.freeze, [\">= 10.0\"]")
5224 ;; Soften the rspec dependency
5225 (("%q<rspec>.freeze, \\[\\\"~> 2.4\\\"\\]")
5226 "%q<rspec>.freeze, [\">= 2.4\"]"))
5227 (substitute* "Rakefile"
5228 (("require 'rubygems/tasks'") "")
5229 (("Gem::Tasks.new") ""))
5230 ;; Remove extraneous .gem file that otherwise gets installed.
5231 (delete-file "pkg/ruby_engine-1.0.0.gem")
5234 `(("bundler" ,bundler)
5235 ("ruby-rake" ,ruby-rake)
5236 ("ruby-rspec" ,ruby-rspec)))
5237 (synopsis "Simplifies checking for Ruby implementation")
5239 "@code{ruby_engine} provides an RubyEngine class that can be used to
5240 check which implementation of Ruby is in use. It can provide the interpreter
5241 name and provides query methods such as @{RubyEngine.mri?}.")
5242 (home-page "https://github.com/janlelis/ruby_engine")
5243 (license license:expat)))
5245 (define-public ruby-turn
5252 (uri (rubygems-uri "turn" version))
5255 "1691rc2sq04cw8mxxh340k2j04ll90kwgcy8ddrp6rligmfrf8fw"))))
5256 (build-system ruby-build-system)
5259 (modify-phases %standard-phases
5260 ;; Tests fail because turn changes its environment so can no longer
5261 ;; find test/unit. Instead simply test if the executable runs
5265 (invoke "ruby" "-Ilib" "bin/turn" "-h"))))))
5267 `(("ruby-ansi" ,ruby-ansi)
5268 ("ruby-minitest" ,ruby-minitest-4)))
5269 (synopsis "Alternate set of alternative runners for MiniTest")
5271 "TURN provides a set of alternative runners for MiniTest which are both
5272 colorful and informative. TURN displays each test on a separate line with
5273 failures being displayed immediately instead of at the end of the tests. Note
5274 that TURN is no longer being maintained.")
5275 (home-page "http://rubygems.org/gems/turn")
5276 (license license:expat)))
5278 (define-public ruby-mimemagic
5280 (name "ruby-mimemagic")
5285 (uri (rubygems-uri "mimemagic" version))
5288 "00ibc1mhvdfyfyl103xwb45621nwyqxf124cni5hyfhag0fn1c3q"))))
5289 (build-system ruby-build-system)
5292 (modify-phases %standard-phases
5293 ;; This phase breaks the tests, as it patches some of the test data.
5294 (delete 'patch-source-shebangs))))
5296 `(("ruby-bacon" ,ruby-bacon)))
5297 (synopsis "Ruby library for MIME detection by extension or content")
5299 "@acronym{MIME, Multipurpose Internet Mail Extensions} detection by
5300 extension or content, using the freedesktop.org.xml shared-mime-info
5302 (home-page "https://github.com/minad/mimemagic")
5303 (license license:expat)))
5305 (define-public ruby-mime-types-data
5307 (name "ruby-mime-types-data")
5308 (version "3.2016.0521")
5312 (uri (rubygems-uri "mime-types-data" version))
5315 "04my3746hwa4yvbx1ranhfaqkgf6vavi1kyijjnw8w3dy37vqhkm"))))
5316 (build-system ruby-build-system)
5318 `(("ruby-hoe" ,ruby-hoe)))
5319 (synopsis "Registry for information about MIME media type definitions")
5321 "@code{mime-types-data} provides a registry for information about
5322 Multipurpose Internet Mail Extensions (MIME) media type definitions. It can
5323 be used with the Ruby mime-types library or other software to determine
5324 defined filename extensions for MIME types, or to use filename extensions to
5325 look up the likely MIME type definitions.")
5326 (home-page "https://github.com/mime-types/mime-types-data/")
5327 (license license:expat)))
5329 (define-public ruby-mime-types
5331 (name "ruby-mime-types")
5336 (uri (rubygems-uri "mime-types" version))
5339 "0087z9kbnlqhci7fxh9f6il63hj1k02icq2rs0c6cppmqchr753m"))))
5340 (build-system ruby-build-system)
5342 `(("ruby-mime-types-data" ,ruby-mime-types-data)))
5344 `(("ruby-hoe" ,ruby-hoe)
5345 ("ruby-fivemat" ,ruby-fivemat)
5346 ("ruby-minitest-focus" ,ruby-minitest-focus)
5347 ("ruby-minitest-rg" ,ruby-minitest-rg)
5348 ("ruby-minitest-bonus-assertions" ,ruby-minitest-bonus-assertions)
5349 ("ruby-minitest-hooks" ,ruby-minitest-hooks)))
5350 (synopsis "Library and registry for MIME content type definitions")
5351 (description "The mime-types library provides a library and registry for
5352 information about Multipurpose Internet Mail Extensions (MIME) content type
5353 definitions. It can be used to determine defined filename extensions for MIME
5354 types, or to use filename extensions to look up the likely MIME type
5356 (home-page "https://github.com/mime-types/ruby-mime-types")
5357 (license license:expat)))
5359 (define-public ruby-fivemat
5361 (name "ruby-fivemat")
5366 (uri (rubygems-uri "fivemat" version))
5369 "006n7b09vviv5bs5hv2ccmjxw9iw3brcsm3xh3dhzfncsknz4jp7"))))
5370 (build-system ruby-build-system)
5372 `(#:tests? #f)) ; no tests
5373 (synopsis "Each test file given its own line of dots")
5375 "Fivemat is a MiniTest/RSpec/Cucumber formatter that gives each test file
5376 its own line of dots during testing. It aims to provide test output that is
5377 neither too verbose nor too minimal.")
5378 (home-page "https://github.com/tpope/fivemat")
5379 (license license:expat)))
5381 (define-public ruby-sqlite3
5383 (name "ruby-sqlite3")
5388 (uri (rubygems-uri "sqlite3" version))
5391 "01ifzp8nwzqppda419c9wcvr8n82ysmisrs0hph9pdmv1lpa4f5i"))))
5392 (build-system ruby-build-system)
5395 (modify-phases %standard-phases
5396 (add-before 'check 'adjust-failing-test
5398 ;; XXX: This test fails with SQLite versions >= 3.21.
5399 ;; See <https://github.com/sparklemotion/sqlite3-ruby/issues/226>.
5400 (substitute* "test/test_integration_resultset.rb"
5401 (("\"integer\", \"text\"") "\"INTEGER\", \"text\""))
5403 (add-before 'check 'add-gemtest-file
5404 ;; This file exists in the repository but is not distributed.
5405 (lambda _ (invoke "touch" ".gemtest"))))))
5407 `(("sqlite" ,sqlite)))
5409 `(("ruby-hoe" ,ruby-hoe)
5410 ("ruby-rake-compiler" ,ruby-rake-compiler)
5411 ("ruby-mini-portile" ,ruby-mini-portile)))
5412 (synopsis "Interface with SQLite3 databases")
5414 "This module allows Ruby programs to interface with the SQLite3 database
5417 "https://github.com/sparklemotion/sqlite3-ruby")
5418 (license license:bsd-3)))
5420 (define-public ruby-shoulda-context
5422 (name "ruby-shoulda-context")
5427 (uri (rubygems-uri "shoulda-context" version))
5430 "1l0ncsxycb4s8n47dml97kdnixw4mizljbkwqc3rh05r70csq9bc"))))
5431 (build-system ruby-build-system)
5434 (modify-phases %standard-phases
5437 ;; Do not run tests to avoid circular dependence with rails.
5438 ;; Instead just import the library to test.
5439 (invoke "ruby" "-Ilib" "-r" "shoulda-context"))))))
5440 (synopsis "Test::Unit context framework extracted from Shoulda")
5442 "@code{shoulda-context} is the context framework extracted from Shoulda.
5443 Instead of writing Ruby methods with lots_of_underscores, shoulda-context adds
5444 context, setup, and should blocks combine to produce natural test method
5446 (home-page "https://github.com/thoughtbot/shoulda-context")
5447 (license license:expat)))
5449 (define-public ruby-shoulda-matchers
5451 (name "ruby-shoulda-matchers")
5456 (uri (rubygems-uri "shoulda-matchers" version))
5459 "1zvv94pqk5b5my3w1shdz7h34xf2ldhg5k4qfdpbwi2iy0j9zw2a"))))
5460 (build-system ruby-build-system)
5463 (modify-phases %standard-phases
5466 ;; Do not run tests to avoid circular dependence with rails. Instead
5467 ;; just import the library to test.
5468 (invoke "ruby" "-Ilib" "-r" "shoulda-matchers"))))))
5470 `(("ruby-activesupport" ,ruby-activesupport)))
5471 (synopsis "Collection of testing matchers extracted from Shoulda")
5473 "Shoulda Matchers provides RSpec- and Minitest-compatible one-liners that
5474 test common Rails functionality. These tests would otherwise be much longer,
5475 more complex, and error-prone.")
5476 (home-page "https://github.com/thoughtbot/shoulda-matchers")
5477 (license license:expat)))
5479 (define-public ruby-shoulda-matchers-2
5481 (inherit ruby-shoulda-matchers)
5485 (uri (rubygems-uri "shoulda-matchers" version))
5488 "0d3ryqcsk1n9y35bx5wxnqbgw4m8b3c79isazdjnnbg8crdp72d0"))))))
5490 (define-public ruby-shoulda
5492 (name "ruby-shoulda")
5497 (uri (rubygems-uri "shoulda" version))
5500 "0csmf15a7mcinfq54lfa4arp0f4b2jmwva55m0p94hdf3pxnjymy"))))
5501 (build-system ruby-build-system)
5504 (modify-phases %standard-phases
5506 ;; Don't run tests to avoid circular dependence with rails. Instead
5507 ;; just import the library to test.
5508 (lambda _ (invoke "ruby" "-Ilib" "-r" "shoulda"))))))
5510 `(("ruby-shoulda-context" ,ruby-shoulda-context)
5511 ("ruby-shoulda-matchers" ,ruby-shoulda-matchers-2)))
5512 (synopsis "Context framework and matchers for testing")
5514 "@code{shoulda} is a meta-package combining @code{shoulda-context} and
5515 @code{shoulda-matchers} providing tools for writing tests.")
5516 (home-page "https://github.com/thoughtbot/shoulda")
5517 (license license:expat)))
5519 (define-public ruby-unf
5526 (uri (rubygems-uri "unf" version))
5529 "0bh2cf73i2ffh4fcpdn9ir4mhq8zi50ik0zqa1braahzadx536a9"))))
5530 (build-system ruby-build-system)
5533 (modify-phases %standard-phases
5534 (add-before 'check 'add-dependency-to-bundler
5536 ;; test-unit is required but not provided by the bundler
5537 ;; environment. This is fixed in the upstream repository but fix
5538 ;; has not been released.
5539 (substitute* "Gemfile"
5540 (("^gemspec") "gem 'test-unit'\ngemspec"))
5543 `(("ruby-unf-ext" ,ruby-unf-ext)))
5545 `(("ruby-shoulda" ,ruby-shoulda)
5546 ("bundler" ,bundler)
5547 ("ruby-test-unit" ,ruby-test-unit)))
5548 (synopsis "Unicode Normalization Form support to Ruby and JRuby")
5550 "@code{ruby-unf} is a wrapper library to bring Unicode Normalization Form
5551 support to both Ruby and JRuby. It uses @code{unf_ext} on CRuby and
5552 @code{java.text.Normalizer} on JRuby.")
5553 (home-page "https://github.com/knu/ruby-unf")
5554 (license license:bsd-2)))
5556 (define-public ruby-webmock-2
5558 (name "ruby-webmock")
5563 (uri (rubygems-uri "webmock" version))
5566 "04hkcqsmbfnp8g237pisnc834vpgildklicbjbyikqg0bg1rwcy5"))))
5567 (build-system ruby-build-system)
5569 `(("bundler" ,bundler)
5570 ("ruby-rspec" ,ruby-rspec)))
5572 `(("ruby-addressable" ,ruby-addressable)
5573 ("ruby-crack" ,ruby-crack)
5574 ("ruby-hashdiff" ,ruby-hashdiff)))
5575 (synopsis "Allows stubbing and setting expectations on HTTP requests")
5577 "WebMock allows stubbing HTTP requests and setting expectations on HTTP
5578 requests. This is useful when testing software.")
5579 (home-page "https://github.com/bblimke/webmock")
5580 (license license:expat)))
5582 (define-public ruby-unicode-display-width
5584 (name "ruby-unicode-display-width")
5589 (uri (rubygems-uri "unicode-display_width" version))
5592 "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq"))))
5593 (build-system ruby-build-system)
5595 '(;; Test data not included.
5597 (synopsis "Determine the monospace display width of Ruby strings")
5599 "@code{Unicode::DisplayWidth} is a Ruby library which can determine the
5600 display width of strings in Ruby.")
5601 (home-page "https://github.com/janlelis/unicode-display_width")
5602 (license license:expat)))
5604 ;; There is another gem called 'ruby-version' so we use an underscore in this
5606 (define-public ruby_version
5608 (name "ruby_version")
5613 (uri (rubygems-uri "ruby_version" version))
5616 "0854i1bjy56176anr05l5m0vc81nl53c7fyfg7sljj62m1d64dgj"))))
5617 (build-system ruby-build-system)
5620 (modify-phases %standard-phases
5621 (add-before 'check 'fix-dependencies
5623 ;; Remove the Gemfile.lock, as we want to use Guix packages at
5624 ;; whatever versions.
5625 (delete-file "Gemfile.lock")
5626 ;; Remove the incldued gem file as it's unnecessary.
5627 (delete-file "pkg/ruby_version-1.0.0.gem")
5628 (substitute* "ruby_version.gemspec"
5629 ;; Don't require rdoc and rubygems-tasks as they're unnecessary
5631 ((".*rubygems-tasks.*") "\n")
5632 ;; Accept any version of rake and rspec
5633 (("%q<rake.*") "%q<rake>)\n")
5634 (("%q<rspec.*") "%q<rspec>)\n"))
5635 ;; Remove the use of rubygems-tasks from the Rakefile, as it's
5637 (substitute* "Rakefile"
5638 (("^require 'rubygems/tasks'") "")
5639 (("Gem::Tasks.new") ""))
5642 `(("bundler" ,bundler)
5643 ("ruby-rspec" ,ruby-rspec)))
5644 (synopsis "Ruby library to help check the Ruby version")
5646 "@code{ruby_version} provides a @code{RubyVersion} module to simplify
5647 checking for the right Ruby version in software.")
5648 (home-page "https://github.com/janlelis/ruby_version")
5649 (license license:expat)))
5651 (define-public ruby-websocket-driver
5653 (name "ruby-websocket-driver")
5658 (uri (rubygems-uri "websocket-driver" version))
5661 "1551k3fs3kkb3ghqfj3n5lps0ikb9pyrdnzmvgfdxy8574n4g1dn"))))
5662 (build-system ruby-build-system)
5664 '(;; No included tests
5667 `(("ruby-websocket-extensions" ,ruby-websocket-extensions)))
5668 (synopsis "WebSocket protocol handler with pluggable I/O")
5670 "@code{websocket-driver} provides a complete implementation of the
5671 WebSocket protocols that can be hooked up to any TCP library")
5672 (home-page "https://github.com/faye/websocket-driver-ruby")
5673 (license license:expat)))
5675 (define-public ruby-websocket-extensions
5677 (name "ruby-websocket-extensions")
5682 (uri (rubygems-uri "websocket-extensions" version))
5685 "034sdr7fd34yag5l6y156rkbhiqgmy395m231dwhlpcswhs6d270"))))
5686 (build-system ruby-build-system)
5688 '(;; No included tests
5690 (synopsis "Generic extension manager for WebSocket connections")
5692 "@code{websocket-extensions} provides a container for registering
5693 extension plugins.")
5694 (home-page "https://github.com/faye/websocket-extensions-ruby")
5695 (license license:expat)))
5697 (define-public ruby-domain-name
5699 (name "ruby-domain-name")
5700 (version "0.5.20180417")
5704 (uri (rubygems-uri "domain_name" version))
5707 "0abdlwb64ns7ssmiqhdwgl27ly40x2l27l8hs8hn0z4kb3zd2x3v"))))
5708 (build-system ruby-build-system)
5711 (modify-phases %standard-phases
5712 (add-before 'check 'fix-versions
5714 ;; Fix NameError that appears to already be fixed upstream.
5715 (substitute* "Rakefile"
5716 (("DomainName::VERSION")
5717 "Bundler::GemHelper.gemspec.version"))
5718 ;; Loosen unnecessarily strict test-unit version specification.
5719 (substitute* "domain_name.gemspec"
5720 (("<test-unit>.freeze, \\[\\\"~> 2.5.5") "<test-unit>, [\">0"))
5723 `(("ruby-unf" ,ruby-unf)))
5725 `(("ruby-shoulda" ,ruby-shoulda)
5726 ("bundler" ,bundler)
5727 ("ruby-test-unit" ,ruby-test-unit)))
5728 (synopsis "Domain name manipulation library")
5730 "@code{domain_name} is a Domain name manipulation library. It parses a
5731 domain name ready for extracting the registered domain and TLD (Top Level
5732 Domain). It can also be used for cookie domain validation based on the Public
5734 (home-page "https://github.com/knu/ruby-domain_name")
5735 (license license:bsd-2)))
5737 (define-public ruby-http-cookie
5739 (name "ruby-http-cookie")
5744 (uri (rubygems-uri "http-cookie" version))
5747 "004cgs4xg5n6byjs7qld0xhsjq3n6ydfh897myr2mibvh6fjc49g"))))
5748 (build-system ruby-build-system)
5751 (modify-phases %standard-phases
5752 (add-before 'check 'add-dependency-to-bundler
5755 (substitute* "Rakefile"
5756 (("HTTP::Cookie::VERSION")
5757 "Bundler::GemHelper.gemspec.version"))
5760 `(("ruby-domain-name" ,ruby-domain-name)))
5762 `(("rubysimplecov" ,ruby-simplecov)
5763 ("bundler" ,bundler)
5764 ("ruby-sqlite3" ,ruby-sqlite3)
5765 ("ruby-test-unit" ,ruby-test-unit)))
5766 (synopsis "Handle HTTP Cookies based on RFC 6265")
5768 "@code{HTTP::Cookie} is a Ruby library to handle HTTP Cookies based on
5769 RFC 6265. It has been designed with security, standards compliance and
5770 compatibility in mind, to behave just the same as today's major web browsers.
5771 It has built-in support for the legacy @code{cookies.txt} and
5772 @code{cookies.sqlite} formats of Mozilla Firefox.")
5773 (home-page "https://github.com/sparklemotion/http-cookie")
5774 (license license:expat)))
5776 (define-public ruby-httpclient
5778 (name "ruby-httpclient")
5783 (uri (rubygems-uri "httpclient" version))
5786 "19mxmvghp7ki3klsxwrlwr431li7hm1lczhhj8z4qihl2acy8l99"))))
5787 (build-system ruby-build-system)
5789 '(;; TODO: Some tests currently fail
5791 ;; 211 tests, 729 assertions, 13 failures, 4 errors, 0 pendings,
5792 ;; 2 omissions, 0 notifications
5795 ;; 6.49 tests/s, 22.41 assertions/s
5798 (modify-phases %standard-phases
5800 (lambda* (#:key tests? #:allow-other-keys)
5807 `(("ruby-rack" ,ruby-rack)))
5809 "Make HTTP requests with support for HTTPS, Cookies, authentication and more")
5811 "The @code{httpclient} ruby library provides functionality related to
5812 HTTP. Compared to the @code{net/http} library, @{httpclient} also provides
5813 Cookie, multithreading and authentication (digest, NTLM) support.
5815 Also provided is a @command{httpclient} command, which can perform HTTP
5816 requests either using arguments or with an interactive prompt.")
5817 (home-page "https://github.com/nahi/httpclient")
5818 (license license:ruby)))
5820 (define-public ruby-ansi
5827 ;; Fetch from GitHub as the gem does not contain testing code.
5828 (uri (string-append "https://github.com/rubyworks/ansi/archive/"
5830 (file-name (string-append name "-" version ".tar.gz"))
5833 "1zdip30hivyipi8hndhb457bhiz033awd00bgrsk5axjrwp6zhly"))))
5834 (build-system ruby-build-system)
5837 (modify-phases %standard-phases
5838 ;; Disable testing to break the cycle ansi, ae, ansi, as well as the
5839 ;; cycle ansi, qed, ansi. Instead simply test that the library can
5843 (invoke "ruby" "-Ilib" "-r" "ansi")))
5844 (add-before 'validate-runpath 'replace-broken-symlink
5845 (lambda* (#:key outputs #:allow-other-keys)
5846 (let* ((out (assoc-ref outputs "out"))
5847 (file (string-append
5848 out "/lib/ruby/vendor_ruby/gems/ansi-"
5849 ,version "/lib/ansi.yml")))
5850 ;; XXX: This symlink is broken since ruby 2.4.
5851 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
5853 (symlink "../.index" file)
5855 (synopsis "ANSI escape code related libraries")
5857 "This package is a collection of ANSI escape code related libraries
5858 enabling ANSI colorization and stylization of console output. Included in the
5859 library are the @code{Code} module, which defines ANSI codes as constants and
5860 methods, a @code{Mixin} module for including color methods, a @code{Logger}, a
5861 @code{ProgressBar}, and a @code{String} subclass. The library also includes a
5862 @code{Terminal} module which provides information about the current output
5864 (home-page "https://rubyworks.github.io/ansi")
5865 (license license:bsd-2)))
5867 (define-public ruby-systemu
5869 (name "ruby-systemu")
5874 (uri (rubygems-uri "systemu" version))
5877 "0gmkbakhfci5wnmbfx5i54f25j9zsvbw858yg3jjhfs5n4ad1xq1"))))
5878 (build-system ruby-build-system)
5881 (modify-phases %standard-phases
5882 (add-before 'check 'set-version
5884 (setenv "VERSION" ,version)
5886 (synopsis "Capture of stdout/stderr and handling of child processes")
5888 "Systemu can be used on any platform to return status, stdout, and stderr
5889 of any command. Unlike other methods like @code{open3} and @code{popen4}
5890 there is no danger of full pipes or threading issues hanging your process or
5892 (home-page "https://github.com/ahoward/systemu")
5893 (license license:ruby)))
5895 (define-public ruby-bio-commandeer
5897 (name "ruby-bio-commandeer")
5902 (uri (rubygems-uri "bio-commandeer" version))
5905 "0khpfw1yl5l3d2m8nxpkk32ybc4c3pa5hic3agd160jdfjjjnlni"))))
5906 (build-system ruby-build-system)
5909 (modify-phases %standard-phases
5911 ;; Run test without calling 'rake' so that jeweler is
5912 ;; not required as an input.
5914 (invoke "rspec" "spec/bio-commandeer_spec.rb"))))))
5916 `(("ruby-bio-logger" ,ruby-bio-logger)
5917 ("ruby-systemu" ,ruby-systemu)))
5919 `(("bundler" ,bundler)
5920 ("ruby-rspec" ,ruby-rspec)))
5921 (synopsis "Simplified running of shell commands from within Ruby")
5923 "Bio-commandeer provides an opinionated method of running shell commands
5924 from within Ruby. The advantage of bio-commandeer over other methods of
5925 running external commands is that when something goes wrong, messages printed
5926 to the @code{STDOUT} and @code{STDERR} streams are reported, giving extra
5927 detail to ease debugging.")
5928 (home-page "https://github.com/wwood/bioruby-commandeer")
5929 (license license:expat)))
5931 (define-public ruby-rubytest
5933 (name "ruby-rubytest")
5938 (uri (rubygems-uri "rubytest" version))
5941 "19jydsdnkl81i9dhdcr4dc34j0ilm68ff2ngnka1hi38xiw4p5qz"))))
5942 (build-system ruby-build-system)
5944 ;; Disable regular testing to break the cycle rubytest, qed, brass,
5945 ;; rubytest, as well as the cycle rubytest, qed, ansi, rubytest. Instead
5946 ;; simply test that the library can be require'd.
5948 (modify-phases %standard-phases
5951 (invoke "ruby" "-Ilib" "-r" "rubytest"))))))
5953 `(("ruby-ansi" ,ruby-ansi)))
5954 (synopsis "Universal test harness for Ruby")
5956 "Rubytest is a testing meta-framework for Ruby. It can handle any
5957 compliant test framework and can run tests from multiple frameworks in a
5959 (home-page "https://rubyworks.github.io/rubytest")
5960 (license license:bsd-2)))
5962 (define-public ruby-brass
5969 (uri (rubygems-uri "brass" version))
5972 "154lp8rp1vmg60ri1j4cb8hqlw37z7bn575h899v8hzxwi11sxka"))))
5973 (build-system ruby-build-system)
5975 ;; Disable tests to break the cycle brass, lemon, ae, qed, brass.
5976 ;; Instead simply test that the library can be require'd.
5978 (modify-phases %standard-phases
5981 (invoke "ruby" "-Ilib" "-r" "brass"))))))
5982 (synopsis "Basic foundational assertions framework")
5984 "BRASS (Bare-Metal Ruby Assertion System Standard) is a basic
5985 foundational assertions framework for other assertion and test frameworks to
5987 (home-page "https://rubyworks.github.io/brass")
5988 (license license:bsd-2)))
5990 (define-public ruby-qed
5997 (uri (rubygems-uri "qed" version))
6000 "03h4lmlxpcya8j7s2cnyscqlx8v3xl1xgsw5y1wk1scxcgz2vbmr"))))
6001 (build-system ruby-build-system)
6003 ;; Disable testing to break the cycle qed, ansi, qed, among others.
6004 ;; Instead simply test that the executable runs using --copyright.
6006 (modify-phases %standard-phases
6009 (invoke "ruby" "-Ilib" "bin/qed" "--copyright"))))))
6011 `(("ruby-ansi" ,ruby-ansi)
6012 ("ruby-brass" ,ruby-brass)))
6013 (synopsis "Test framework utilizing literate programming techniques")
6015 "@dfn{Quality Ensured Demonstrations} (QED) is a test framework for
6016 @dfn{Test Driven Development} (TDD) and @dfn{Behaviour Driven
6017 Development} (BDD) utilizing Literate Programming techniques. QED sits
6018 somewhere between lower-level testing tools like @code{Test::Unit} and
6019 requirement specifications systems like Cucumber.")
6020 (home-page "https://rubyworks.github.io/qed")
6021 (license license:bsd-2)))
6023 (define-public ruby-ae
6030 ;; Fetch from github so tests are included.
6032 "https://github.com/rubyworks/ae/archive/"
6034 (file-name (string-append name "-" version ".tar.gz"))
6037 "147jmkx54x7asy2d8m4dyrhhf4hdx4galpnhwzai030y3cdsfrrl"))))
6038 (build-system ruby-build-system)
6041 (modify-phases %standard-phases
6043 (lambda _ (invoke "qed")))
6044 (add-before 'validate-runpath 'replace-broken-symlink
6045 (lambda* (#:key outputs #:allow-other-keys)
6046 (let* ((out (assoc-ref outputs "out"))
6047 (file (string-append
6048 out "/lib/ruby/vendor_ruby/gems/ae-"
6049 ,version "/lib/ae.yml")))
6050 ;; XXX: This symlink is broken since ruby 2.4.
6051 ;; https://lists.gnu.org/archive/html/guix-devel/2017-06/msg00034.html
6053 (symlink "../.index" file)
6056 `(("ruby-ansi" ,ruby-ansi)))
6058 `(("ruby-qed" ,ruby-qed)))
6059 (synopsis "Assertions library")
6061 "Assertive Expressive (AE) is an assertions library specifically designed
6062 for reuse by other test frameworks.")
6063 (home-page "https://rubyworks.github.io/ae")
6064 (license license:bsd-2)))
6066 (define-public ruby-lemon
6073 (uri (rubygems-uri "lemon" version))
6076 "0gqhpgjavgpvx23rqpfqcv3d5bs8gc7lr9yvj8kxgp7mfbdc2jcm"))))
6077 (build-system ruby-build-system)
6080 (modify-phases %standard-phases
6081 (replace 'check (lambda _ (invoke "qed"))))))
6083 `(("ruby-ae" ,ruby-ae)
6084 ("ruby-ansi" ,ruby-ansi)
6085 ("ruby-rubytest" ,ruby-rubytest)))
6087 `(("ruby-qed" ,ruby-qed)))
6088 (synopsis "Test framework correlating code structure and test unit")
6090 "Lemon is a unit testing framework that enforces highly formal
6091 case-to-class and unit-to-method test construction. This enforcement can help
6092 focus concern on individual units of behavior.")
6093 (home-page "https://rubyworks.github.io/lemon")
6094 (license license:bsd-2)))
6096 (define-public ruby-rubytest-cli
6098 (name "ruby-rubytest-cli")
6103 (uri (rubygems-uri "rubytest-cli" version))
6106 "0n7hv4k1ba4fm3i98c6ydbsqhkxgbp52mhi70ba1x3mqzfvk438p"))))
6107 (build-system ruby-build-system)
6109 `(#:tests? #f)) ; no tests
6111 `(("ruby-ansi" ,ruby-ansi)
6112 ("ruby-rubytest" ,ruby-rubytest)))
6113 (synopsis "Command-line interface for rubytest")
6115 "Rubytest CLI is a command-line interface for running tests for
6116 Rubytest-based test frameworks. It provides the @code{rubytest} executable.")
6117 (home-page "https://rubyworks.github.io/rubytest-cli")
6118 (license license:bsd-2)))
6120 (define-public ruby-hashery
6122 (name "ruby-hashery")
6127 (uri (rubygems-uri "hashery" version))
6130 "0qj8815bf7q6q7llm5rzdz279gzmpqmqqicxnzv066a020iwqffj"))))
6131 (build-system ruby-build-system)
6134 (modify-phases %standard-phases
6138 (invoke "rubytest" "-Ilib" "-Itest" "test/"))))))
6140 `(("ruby-rubytest-cli" ,ruby-rubytest-cli)
6141 ("ruby-qed" ,ruby-qed)
6142 ("ruby-lemon" ,ruby-lemon)))
6143 (synopsis "Hash-like classes with extra features")
6145 "The Hashery is a tight collection of @code{Hash}-like classes.
6146 Included are the auto-sorting @code{Dictionary} class, the efficient
6147 @code{LRUHash}, the flexible @code{OpenHash} and the convenient
6148 @code{KeyHash}. Nearly every class is a subclass of the @code{CRUDHash} which
6149 defines a CRUD (Create, Read, Update and Delete) model on top of Ruby's
6150 standard @code{Hash} making it possible to subclass and augment to fit any
6151 specific use case.")
6152 (home-page "https://rubyworks.github.io/hashery")
6153 (license license:bsd-2)))
6155 (define-public ruby-rc4
6162 (uri (rubygems-uri "ruby-rc4" version))
6165 "00vci475258mmbvsdqkmqadlwn6gj9m01sp7b5a3zd90knil1k00"))))
6166 (build-system ruby-build-system)
6169 (modify-phases %standard-phases
6172 (invoke "rspec" "spec/rc4_spec.rb"))))))
6174 `(("ruby-rspec" ,ruby-rspec-2)))
6175 (synopsis "Implementation of the RC4 algorithm")
6177 "RubyRC4 is a pure Ruby implementation of the RC4 algorithm.")
6178 (home-page "https://github.com/caiges/Ruby-RC4")
6179 (license license:expat)))
6181 (define-public ruby-afm
6188 (uri (rubygems-uri "afm" version))
6191 "06kj9hgd0z8pj27bxp2diwqh6fv7qhwwm17z64rhdc4sfn76jgn8"))))
6192 (build-system ruby-build-system)
6194 `(("bundler" ,bundler)))
6195 (synopsis "Read Adobe Font Metrics (afm) files")
6197 "This library provides methods to read @dfn{Adobe Font Metrics} (afm)
6198 files and use the data therein.")
6199 (home-page "https://github.com/halfbyte/afm")
6200 (license license:expat)))
6202 (define-public ruby-ascii85
6204 (name "ruby-ascii85")
6209 (uri (rubygems-uri "Ascii85" version))
6212 "0658m37jjjn6drzqg1gk4p6c205mgp7g1jh2d00n4ngghgmz5qvs"))))
6213 (build-system ruby-build-system)
6215 `(("bundler" ,bundler)))
6216 (synopsis "Encode and decode Ascii85 binary-to-text encoding")
6218 "This library provides methods to encode and decode Ascii85
6219 binary-to-text encoding. The main modern use of Ascii85 is in PostScript and
6220 @dfn{Portable Document Format} (PDF) file formats.")
6221 (home-page "https://github.com/datawraith/ascii85gem")
6222 (license license:expat)))
6224 (define-public ruby-ttfunk
6226 (name "ruby-ttfunk")
6231 ;; fetch from github as the gem does not contain testing code
6233 "https://github.com/prawnpdf/ttfunk/archive/"
6235 (file-name (string-append name "-" version ".tar.gz"))
6238 "1ymcn12n5iws401yz03zsj8rr653fdqq13czsrciq09phgh9jzc5"))))
6239 (build-system ruby-build-system)
6241 `(#:test-target "spec"
6243 (modify-phases %standard-phases
6244 (add-before 'build 'remove-ssh
6246 ;; remove dependency on an ssh key pair that doesn't exist
6247 (substitute* "ttfunk.gemspec"
6248 (("spec.signing_key.*") ""))
6250 (add-before 'check 'remove-rubocop
6252 ;; remove rubocop as a dependency as not needed for testing
6253 (substitute* "ttfunk.gemspec"
6254 (("spec.add_development_dependency\\('rubocop'.*") ""))
6255 (substitute* "Rakefile"
6256 (("require 'rubocop/rake_task'") "")
6257 (("RuboCop::RakeTask.new") ""))
6260 `(("ruby-rspec" ,ruby-rspec)
6261 ("ruby-yard" ,ruby-yard)
6262 ("bundler" ,bundler)))
6263 (synopsis "Font metrics parser for the Prawn PDF generator")
6265 "TTFunk is a TrueType font parser written in pure Ruby. It is used as
6266 part of the Prawn PDF generator.")
6267 (home-page "https://github.com/prawnpdf/ttfunk")
6268 ;; From the README: "Matz's terms for Ruby, GPLv2, or GPLv3. See LICENSE
6270 (license (list license:gpl2 license:gpl3 license:ruby))))
6272 (define-public ruby-puma
6279 ;; Fetch from GitHub because distributed gem does not contain tests.
6280 (uri (string-append "https://github.com/puma/puma/archive/v"
6282 (file-name (string-append name "-" version ".tar.gz"))
6285 "03pifga841h17brh4vgia8i2ybh3cmsyg0dbybzdf6dq51wzcxdx"))))
6286 (build-system ruby-build-system)
6288 `(#:tests? #f ; Tests require an out-dated version of minitest.
6290 (modify-phases %standard-phases
6291 (add-before 'build 'fix-gemspec
6293 (substitute* "puma.gemspec"
6294 (("git ls-files") "find * |sort"))
6296 (synopsis "Simple, concurrent HTTP server for Ruby/Rack")
6298 "Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server
6299 for Ruby/Rack applications. Puma is intended for use in both development and
6300 production environments. In order to get the best throughput, it is highly
6301 recommended that you use a Ruby implementation with real threads like Rubinius
6303 (home-page "http://puma.io")
6304 (license license:expat)))
6306 (define-public ruby-hoe-git
6308 (name "ruby-hoe-git")
6313 (uri (rubygems-uri "hoe-git" version))
6316 "10jmmbjm0lkglwxbn4rpqghgg1ipjxrswm117n50adhmy8yij650"))))
6317 (build-system ruby-build-system)
6319 `(("ruby-hoe" ,ruby-hoe)
6321 (synopsis "Hoe plugins for tighter Git integration")
6323 "This package provides a set of Hoe plugins for tighter Git integration.
6324 It provides tasks to automate release tagging and pushing and changelog
6326 (home-page "https://github.com/jbarnette/hoe-git")
6327 (license license:expat)))
6329 (define-public ruby-sequel
6331 (name "ruby-sequel")
6336 (uri (rubygems-uri "sequel" version))
6339 "010p4a60npppvgbyw7pq5xia8aydpgxdlhh3qjm2615kwjsw3fl8"))))
6340 (build-system ruby-build-system)
6342 '(#:tests? #f)) ; Avoid dependency loop with ruby-minitest-hooks.
6343 (synopsis "Database toolkit for Ruby")
6344 (description "Sequel provides thread safety, connection pooling and a
6345 concise DSL for constructing SQL queries and table schemas. It includes a
6346 comprehensive ORM layer for mapping records to Ruby objects and handling
6347 associated records.")
6348 (home-page "http://sequel.jeremyevans.net")
6349 (license license:expat)))
6351 (define-public ruby-timecop
6353 (name "ruby-timecop")
6358 (uri (rubygems-uri "timecop" version))
6361 "0d7mm786180v4kzvn1f77rhfppsg5n0sq2bdx63x9nv114zm8jrp"))))
6362 (build-system ruby-build-system)
6365 (modify-phases %standard-phases
6366 (add-before 'check 'set-check-rubylib
6368 ;; Set RUBYLIB so timecop tests finds its own lib.
6369 (setenv "RUBYLIB" "lib")
6372 `(("bundler" ,bundler)
6373 ("ruby-minitest-rg" ,ruby-minitest-rg)
6374 ("ruby-mocha" ,ruby-mocha)
6375 ("ruby-activesupport" ,ruby-activesupport)))
6376 (synopsis "Test mocks for time-dependent functions")
6378 "Timecop provides \"time travel\" and \"time freezing\" capabilities,
6379 making it easier to test time-dependent code. It provides a unified method to
6380 mock @code{Time.now}, @code{Date.today}, and @code{DateTime.now} in a single
6382 (home-page "https://github.com/travisjeffery/timecop")
6383 (license license:expat)))
6385 (define-public ruby-concurrent
6387 (name "ruby-concurrent")
6392 ;; Download from GitHub because the rubygems version does not contain
6395 "https://github.com/ruby-concurrency/concurrent-ruby/archive/v"
6398 (file-name (string-append name "-" version ".tar.gz"))
6401 "0qhv0qzsby4iijgwa4s9r88zj8123pmyz1dwaqzdk57xgqll9pny"))
6402 ;; Exclude failing test reported at
6403 ;; https://github.com/ruby-concurrency/concurrent-ruby/issues/534
6404 (patches (search-patches "ruby-concurrent-ignore-broken-test.patch"
6405 "ruby-concurrent-test-arm.patch"))))
6406 (build-system ruby-build-system)
6408 `(#:test-target "spec"
6410 (modify-phases %standard-phases
6411 (add-before 'replace-git-ls-files 'remove-extra-gemspecs
6413 ;; Delete extra gemspec files so 'first-gemspec' chooses the
6415 (delete-file "concurrent-ruby-edge.gemspec")
6416 (delete-file "concurrent-ruby-ext.gemspec")
6418 (add-before 'build 'replace-git-ls-files2
6420 (substitute* "support/file_map.rb"
6421 (("git ls-files") "find * |sort"))
6423 (add-before 'check 'rake-compile
6424 ;; Fix the test error described at
6425 ;; https://github.com/ruby-concurrency/concurrent-ruby/pull/408
6426 (lambda _ (invoke "rake" "compile")))
6427 (add-before 'check 'remove-timecop-dependency
6428 ;; Remove timecop-dependent tests as having timecop as a depedency
6429 ;; causes circular depedencies.
6431 (delete-file "spec/concurrent/executor/timer_set_spec.rb")
6432 (delete-file "spec/concurrent/scheduled_task_spec.rb")
6435 `(("ruby-rake-compiler" ,ruby-rake-compiler)
6436 ("ruby-rspec" ,ruby-rspec)))
6437 (synopsis "Concurrency tools for Ruby")
6439 "This library provides modern concurrency tools including agents,
6440 futures, promises, thread pools, actors, supervisors, and more. It is
6441 inspired by Erlang, Clojure, Go, JavaScript, actors and classic concurrency
6443 (home-page "http://www.concurrent-ruby.com")
6444 (license license:expat)))
6446 (define-public ruby-pkg-config
6448 (name "ruby-pkg-config")
6453 (uri (rubygems-uri "pkg-config" version))
6456 "056mzqdh4yjznsg36fi0xiq76f24vxlhzh2n4az919l3x5k318ar"))))
6457 (build-system ruby-build-system)
6459 ;; Tests require extra files not included in the gem.
6461 (synopsis "Detect libraries for compiling Ruby native extensions")
6463 "@code{pkg-config} can be used in your extconf.rb to properly detect need
6464 libraries for compiling Ruby native extensions.")
6465 (home-page "https://github.com/ruby-gnome2/pkg-config")
6466 (license license:lgpl2.0+)))
6468 (define-public ruby-net-http-digest-auth
6470 (name "ruby-net-http-digest-auth")
6475 (uri (rubygems-uri "net-http-digest_auth" version))
6478 "1nq859b0gh2vjhvl1qh1zrk09pc7p54r9i6nnn6sb06iv07db2jb"))))
6479 (build-system ruby-build-system)
6481 `(("ruby-hoe" ,ruby-hoe)))
6482 (synopsis "RFC 2617 HTTP digest authentication library")
6484 "This library implements HTTP's digest authentication scheme based on
6485 RFC 2617. This enables the use of the digest authentication scheme instead
6486 of the more insecure basic authentication scheme.")
6487 (home-page "https://github.com/drbrain/net-http-digest_auth")
6488 (license license:expat)))
6490 (define-public ruby-mail
6497 (uri (rubygems-uri "mail" version))
6500 "0d7lhj2dw52ycls6xigkfz6zvfhc6qggply9iycjmcyj9760yvz9"))))
6501 (build-system ruby-build-system)
6503 `(("ruby-mime-types" ,ruby-mime-types)))
6505 ;; Tests require extra gems not included in the Gemfile.
6506 ;; XXX: Try enabling this for the next version with mini_mime.
6508 (synopsis "Mail library for Ruby")
6510 "Mail is an internet library for Ruby that is designed to handle email
6511 generation, parsing and sending. The purpose of this library is to provide
6512 a single point of access to handle all email functions, including sending
6513 and receiving emails. All network type actions are done through proxy
6514 methods to @code{Net::SMTP}, @code{Net::POP3} etc.
6516 Mail has been designed with a very simple object oriented system that
6517 really opens up the email messages you are parsing, if you know what you
6518 are doing, you can fiddle with every last bit of your email directly.")
6519 (home-page "https://github.com/mikel/mail")
6520 (license license:expat)))
6522 (define-public ruby-mathn
6529 (uri (rubygems-uri "mathn" version))
6532 "1wn812llln9jzgybz2d7536q39z3gi99i6fi0j1dapcpzvhgrr0p"))))
6533 (build-system ruby-build-system)
6535 `(("bundler" ,bundler)
6536 ("ruby-rake-compiler" ,ruby-rake-compiler)))
6537 (synopsis "Extends math operations for increased precision")
6539 "This gem makes mathematical operations more precise in Ruby and
6540 integrates other mathematical standard libraries. Prior to Ruby 2.5,
6541 @code{mathn} was part of the Ruby standard library.")
6542 (home-page "https://github.com/ruby/mathn")
6543 (license license:bsd-2)))
6545 (define-public ruby-code-statistics
6547 (name "ruby-code-statistics")
6552 (uri (rubygems-uri "code_statistics" version))
6555 "07rdpsbwbmh4vp8nxyh308cj7am2pbrfhv9v5xr2d5gq8hnnsm93"))))
6556 (build-system ruby-build-system)
6558 `(#:tests? #f)) ; Not all test code is included in gem.
6559 (synopsis "Port of the rails 'rake stats' method")
6561 "This gem is a port of the rails 'rake stats' method so it can be made
6562 more robust and work for non rails projects.")
6563 (home-page "http://github.com/danmayer/code_statistics")
6564 (license license:expat)))
6566 (define-public ruby-rubypants
6568 (name "ruby-rubypants")
6572 (uri (rubygems-uri "rubypants" version))
6575 "0xpqkslan2wkyal2h9qhplkr5d4sdn7q6csigrhnljjpp8j4qfsh"))))
6576 (build-system ruby-build-system)
6578 '(#:tests? #f)) ; need Codecov
6579 (synopsis "Port of the smart-quotes library SmartyPants")
6581 "RubyPants is a Ruby port of the smart-quotes library SmartyPants. The
6582 original SmartyPants is a web publishing plug-in for Movable Type, Blosxom,
6583 and BBEdit that easily translates plain ASCII punctuation characters into
6584 smart typographic punctuation HTML entities.")
6585 (home-page "https://github.com/jmcnevin/rubypants")
6586 (license license:bsd-2)))
6588 (define-public ruby-org-ruby
6590 (name "ruby-org-ruby")
6594 (uri (rubygems-uri "org-ruby" version))
6597 "0x69s7aysfiwlcpd9hkvksfyld34d8kxr62adb59vjvh8hxfrjwk"))))
6598 (build-system ruby-build-system)
6600 '(#:tests? #f)) ; no rakefile
6602 `(("ruby-rubypants" ,ruby-rubypants)))
6603 (synopsis "Org-mode parser written in Ruby")
6605 "Org-ruby is an org-mode parser written in Ruby. The most significant
6606 thing this library does today is convert org-mode files to HTML or Textile or
6608 (home-page "https://github.com/wallyqs/org-ruby")
6609 (license license:expat)))
6611 (define-public ruby-rake
6618 (uri (rubygems-uri "rake" version))
6621 "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg"))))
6622 (build-system ruby-build-system)
6624 `(("bundler" ,bundler)))
6625 (synopsis "Rake is a Make-like program implemented in Ruby")
6627 "Rake is a Make-like program where tasks and dependencies are specified
6628 in standard Ruby syntax.")
6629 (home-page "https://github.com/ruby/rake")
6630 (license license:expat)))
6632 (define-public ruby-childprocess-0.6
6634 (name "ruby-childprocess")
6639 (uri (rubygems-uri "childprocess" version))
6642 "1p3f43scdzx9zxmy2kw5zsc3az6v46nq4brwcxmnscjy4w4racbv"))))
6643 (build-system ruby-build-system)
6647 `(("bundler" ,bundler)
6648 ("ruby-rspec" ,ruby-rspec)))
6650 `(("ruby-ffi" ,ruby-ffi)))
6651 (synopsis "Control external programs running in the background, in Ruby")
6652 (description "@code{childprocess} provides a gem to control external
6653 programs running in the background, in Ruby.")
6654 (home-page "http://github.com/enkessler/childprocess")
6655 (license license:expat)))
6657 (define-public ruby-childprocess
6659 (inherit ruby-childprocess-0.6)
6660 (name "ruby-childprocess")
6665 (uri (rubygems-uri "childprocess" version))
6668 "0a61922kmvcxyj5l70fycapr87gz1dzzlkfpq85rfqk5vdh3d28p"))))))
6670 (define-public ruby-public-suffix
6672 (name "ruby-public-suffix")
6676 (uri (rubygems-uri "public_suffix" version))
6679 "08q64b5br692dd3v0a9wq9q5dvycc6kmiqmjbdxkxbfizggsvx6l"))))
6680 (build-system ruby-build-system)
6683 (modify-phases %standard-phases
6684 ;; Remove the requirement on Rubocop, as it isn't useful to run, and
6685 ;; including it as an input can lead to circular dependencies.
6686 (add-after 'unpack 'remove-rubocop-from-Rakefile
6688 (substitute* "Rakefile"
6689 (("require \"rubocop/rake\\_task\"") "")
6690 (("RuboCop::RakeTask\\.new") ""))
6693 `(("bundler" ,bundler)
6694 ("ruby-yard" ,ruby-yard)
6695 ("ruby-mocha" ,ruby-mocha)
6696 ("ruby-minitest-reporters" ,ruby-minitest-reporters)))
6697 (home-page "https://simonecarletti.com/code/publicsuffix-ruby/")
6698 (synopsis "Domain name parser")
6699 (description "The gem @code{public_suffix} is a domain name parser,
6700 written in Ruby, and based on the @dfn{Public Suffix List}. A public suffix
6701 is one under which Internet users can (or historically could) directly
6702 register names. Some examples of public suffixes are @code{.com},
6703 @code{.co.uk} and @code{pvt.k12.ma.us}. The Public Suffix List is a list of
6704 all known public suffixes.")
6705 (license license:expat)))
6707 (define-public ruby-addressable
6709 (name "ruby-addressable")
6713 (uri (rubygems-uri "addressable" version))
6716 "0bcm2hchn897xjhqj9zzsxf3n9xhddymj4lsclz508f4vw3av46l"))))
6717 (build-system ruby-build-system)
6719 '(#:test-target "spec"
6721 (modify-phases %standard-phases
6722 (add-after 'unpack 'remove-unnecessary-dependencies-from-Gemfile
6724 (substitute* "Gemfile"
6725 (("git: 'https://github.com/sporkmonger/rack-mount.git',") "")
6726 ((".*launchy.*") "")
6727 ((".*rake.*") "gem 'rake'\n")
6728 ((".*redcarpet.*") ""))
6730 (add-before 'check 'delete-network-dependent-test
6732 (delete-file "spec/addressable/net_http_compat_spec.rb")
6735 `(("ruby-rspec" ,ruby-rspec)
6736 ("bundler" ,bundler)
6737 ("ruby-idn-ruby" ,ruby-idn-ruby)
6738 ("ruby-sporkmonger-rack-mount" ,ruby-sporkmonger-rack-mount)
6739 ("ruby-rspec-its", ruby-rspec-its)
6740 ("ruby-yard" ,ruby-yard)
6741 ("ruby-simplecov" ,ruby-simplecov)))
6743 `(("ruby-public-suffix" ,ruby-public-suffix)))
6744 (home-page "https://github.com/sporkmonger/addressable")
6745 (synopsis "Alternative URI implementation")
6746 (description "Addressable is a replacement for the URI implementation that
6747 is part of Ruby's standard library. It more closely conforms to RFC 3986,
6748 RFC 3987, and RFC 6570 (level 4), providing support for IRIs and URI templates.")
6749 (license license:asl2.0)))
6751 (define-public ruby-colorator
6753 (name "ruby-colorator")
6757 (uri (rubygems-uri "colorator" version))
6760 "0f7wvpam948cglrciyqd798gdc6z3cfijciavd0dfixgaypmvy72"))))
6761 (build-system ruby-build-system)
6765 (home-page "http://octopress.org/colorator/")
6766 (synopsis "Terminal color library")
6767 (description "Colorator is a Ruby gem that helps you colorize your text
6769 (license license:expat)))
6771 (define-public ruby-command-line-reporter
6773 (name "ruby-command-line-reporter")
6777 (uri (rubygems-uri "command_line_reporter" version))
6780 "1qma35xrb772whxwy1rs9bicb9d6lvz0s2dd2dnn4fr6zcbcxc0a"))))
6781 (build-system ruby-build-system)
6786 (modify-phases %standard-phases
6787 (add-before 'build 'fix-dependencies
6789 (substitute* ".gemspec"
6790 ;; colored is unmaintained
6791 (("colored") "colorator")
6792 ;; colorator version
6793 (("= 1.2") "= 1.1"))
6795 (propagated-inputs `(("ruby-colorator" ,ruby-colorator)))
6796 (home-page "https://github.com/wbailey/command_line_reporter")
6797 (synopsis "Report production while executing Ruby scripts")
6798 (description "This gem provides a DSL that makes it easy to write reports
6799 of various types in ruby. It eliminates the need to litter your source with
6800 puts statements, instead providing a more readable, expressive interface to
6802 (license license:asl2.0)))
6804 (define-public ruby-command-line-reporter-3
6806 (inherit ruby-command-line-reporter)
6810 (uri (rubygems-uri "command_line_reporter" version))
6813 "1h39zqqxp3k4qk49ajpx0jps1vmvxgkh43mqkb6znk583bl0fv71"))))))
6815 (define-public ruby-rdoc
6822 (uri (rubygems-uri "rdoc" version))
6825 "0anv42cqcdc6g4n386mrva7mgav5i0c2ry3yzvzzc6z6hymkmcr7"))))
6826 (build-system ruby-build-system)
6828 `(("bundler" ,bundler)))
6829 (home-page "https://ruby.github.io/rdoc/")
6830 (synopsis "HTML and command-line documentation utility")
6831 (description "RDoc produces HTML and command-line documentation for Ruby
6832 projects. RDoc includes the +rdoc+ and +ri+ tools for generating and displaying
6833 documentation from the command-line.")
6834 (license license:gpl2+)))
6836 (define-public ruby-sass-listen
6838 (name "ruby-sass-listen")
6842 (uri (rubygems-uri "sass-listen" version))
6845 "0xw3q46cmahkgyldid5hwyiwacp590zj2vmswlll68ryvmvcp7df"))))
6846 (build-system ruby-build-system)
6851 `(("ruby-rb-fsevent" ,ruby-rb-fsevent)
6852 ("ruby-rb-inotify" ,ruby-rb-inotify)))
6853 (home-page "https://github.com/sass/listen")
6854 (synopsis "File modification notification library")
6855 (description "The Listen gem listens to file modifications and notifies you
6856 about the changes.")
6857 (license license:expat)))
6859 (define-public ruby-terminfo
6861 (name "ruby-terminfo")
6866 (uri (rubygems-uri "ruby-terminfo" version))
6869 "0rl4ic5pzvrpgd42z0c1s2n3j39c9znksblxxvmhkzrc0ckyg2cm"))))
6870 (build-system ruby-build-system)
6872 `(#:test-target "test"
6873 ;; Rakefile requires old packages and would need modification to
6874 ;; work with current software.
6877 `(("ncurses" ,ncurses)))
6879 `(("ruby-rubygems-tasks" ,ruby-rubygems-tasks)
6880 ("ruby-rdoc" ,ruby-rdoc)))
6881 (home-page "http://www.a-k-r.org/ruby-terminfo/")
6882 (synopsis "Terminfo binding for Ruby")
6883 (description "Ruby-terminfo provides terminfo binding for Ruby.")
6884 (license license:bsd-3)))
6886 (define-public ruby-diffy
6893 (uri (rubygems-uri "diffy" version))
6896 "119imrkn01agwhx5raxhknsi331y5i4yda7r0ws0an6905ximzjg"))))
6897 (build-system ruby-build-system)
6902 `(("ruby-rspec" ,ruby-rspec)))
6903 (home-page "https://github.com/samg/diffy")
6904 (synopsis "Convenient diffing in ruby")
6905 (description "Diffy provides a convenient way to generate a diff from two
6907 (license license:expat)))
6909 (define-public ruby-sass-spec
6911 (name "ruby-sass-spec")
6915 (uri (string-append "https://github.com/sass/sass-spec/archive/v"
6917 (file-name (string-append name "-" version ".tar.gz"))
6920 "0nx8lp7c9qa58w489crgqa3c489xsyarn1a8h4np9mwwfqm1h3rr"))))
6921 (build-system ruby-build-system)
6923 `(("ruby-command-line-reporter-3" ,ruby-command-line-reporter-3)
6924 ("ruby-diffy" ,ruby-diffy)
6925 ("ruby-terminfo" ,ruby-terminfo)))
6927 `(;; This package contains tests for a sass implementation, and the to
6928 ;; avoid any circular dependencies, the tests are not run here
6931 (modify-phases %standard-phases
6932 (add-after 'unpack 'patch-test
6934 (delete-file "spec/values/colors/alpha_hex-3.5/error")
6935 (substitute* "spec/values/colors/alpha_hex-3.5/expected_output.css"
6936 (("string") "color")))))))
6937 (home-page "https://github.com/sass/sass-spec")
6938 (synopsis "Test suite for Sass")
6939 (description "Sass Spec is a test suite for Sass. Test cases are all in
6940 the @file{spec} directory.")
6941 (license license:expat)))
6943 (define-public ruby-sass
6949 (uri (rubygems-uri "sass" version))
6952 "18c6prbw9wl8bqhb2435pd9s0lzarl3g7xf8pmyla28zblvwxmyh"))))
6953 (build-system ruby-build-system)
6955 `(("ruby-sass-listen" ,ruby-sass-listen)))
6957 `(("ruby-sass-spec" ,ruby-sass-spec)
6958 ("ruby-mathn" ,ruby-mathn)))
6959 (home-page "http://sass-lang.com/")
6960 (synopsis "CSS extension language")
6961 (description "Sass is a CSS extension language. It extends CSS with
6962 features that don't exist yet like variables, nesting, mixins and inheritance.")
6963 (license license:expat)))
6965 (define-public ruby-jekyll-sass-converter
6967 (name "ruby-jekyll-sass-converter")
6971 (uri (rubygems-uri "jekyll-sass-converter" version))
6974 "008ikh5fk0n6ri54mylcl8jn0mq8p2nfyfqif2q3pp0lwilkcxsk"))))
6975 (build-system ruby-build-system)
6977 `(("ruby-sass" ,ruby-sass)))
6981 (home-page "https://github.com/jekyll/jekyll-sass-converter")
6982 (synopsis "Sass converter for Jekyll")
6983 (description "This gem provide built-in support for the Sass converter
6985 (license license:expat)))
6987 (define-public ruby-jekyll-watch
6989 (name "ruby-jekyll-watch")
6993 (uri (rubygems-uri "jekyll-watch" version))
6996 "0m7scvj3ki8bmyx5v8pzibpg6my10nycnc28lip98dskf8iakprp"))))
6997 (build-system ruby-build-system)
6999 `(("ruby-listen-3.0" ,ruby-listen-3.0)))
7003 (home-page "https://github.com/jekyll/jekyll-watch")
7004 (synopsis "Jekyll auto-rebuild support")
7005 (description "This gems add the @code{--watch} switch to the jekyll CLI
7006 interface. It allows Jekyll to rebuild your site when a file changes.")
7007 (license license:expat)))
7009 (define-public ruby-parallel
7011 (name "ruby-parallel")
7017 (url "https://github.com/grosser/parallel.git")
7018 (commit (string-append "v" version))))
7019 (file-name (git-file-name name version))
7022 "1isqzbqxz2ndad4i5z3lb9ldrhaijfncj8bmffv04sq44sv87ikv"))))
7023 (build-system ruby-build-system)
7025 `(;; TODO 3 test failures
7026 ;; rspec ./spec/parallel_spec.rb:190 # Parallel.in_processes does not
7027 ;; open unnecessary pipes
7028 ;; rspec './spec/parallel_spec.rb[1:9:7]' # Parallel.each works with
7029 ;; SQLite in processes
7030 ;; rspec './spec/parallel_spec.rb[1:9:16]' # Parallel.each works with
7031 ;; SQLite in threads
7033 #:test-target "rspec-rerun:spec"
7035 (modify-phases %standard-phases
7036 (add-after 'unpack 'patch-Gemfile
7038 (substitute* "Gemfile"
7039 (("gem 'rspec-legacy_formatters'") "")
7040 (("gem 'activerecord.*$") "gem 'activerecord'\n"))))
7041 (add-before 'check 'delete-Gemfile.lock
7043 ;; Bundler isn't being used for fetching dependendencies, so
7044 ;; delete the Gemfile.lock
7045 (delete-file "Gemfile.lock")
7047 (add-before 'build 'patch-gemspec
7049 (substitute* "parallel.gemspec"
7050 (("git ls-files") "find"))
7053 `(("ruby-rspec" ,ruby-rspec)
7054 ("ruby-rspec-rerun" ,ruby-rspec-rerun)
7055 ("bundler" ,bundler)
7056 ("ruby-activerecord" ,ruby-activerecord)
7057 ("ruby-progressbar" ,ruby-progressbar)
7058 ("ruby-bump" ,ruby-bump)
7061 ("ruby-mysql2" ,ruby-mysql2)
7062 ("ruby-sqlite3" ,ruby-sqlite3)
7063 ("ruby-i18n" ,ruby-i18n)))
7064 (home-page "https://github.com/grosser/parallel")
7065 (synopsis "Parallel processing in Ruby")
7066 (description "Parallel allows you to run any code in parallel Processes
7067 (to use all CPUs) or Threads(to speedup blocking operations). It is best
7068 suited for map-reduce or e.g. parallel downloads/uploads.")
7069 (license license:expat)))
7071 (define-public ruby-cane
7077 (uri (rubygems-uri "cane" version))
7080 "0yf5za3l7lhrqa3g56sah73wh33lbxy5y3cb7ij0a2bp1b4kwhih"))))
7081 (build-system ruby-build-system)
7082 (arguments `(#:tests? #f)); No rakefile
7083 (home-page "https://github.com/square/cane")
7085 `(("ruby-parallel" ,ruby-parallel)))
7086 (synopsis "Code quality threshold checking")
7087 (description "Cane fails your build if code quality thresholds are not met.")
7088 (license license:asl2.0)))
7090 (define-public ruby-morecane
7092 (name "ruby-morecane")
7096 (uri (rubygems-uri "morecane" version))
7099 "0w70vb8z5bdhvr21h660aa43m5948pv0bd27z7ngai2iwdvqd771"))))
7100 (build-system ruby-build-system)
7101 (home-page "https://github.com/yob/morecane")
7102 (arguments `(#:tests? #f)); No rakefile
7104 `(("ruby-parallel" ,ruby-parallel)))
7105 (synopsis "Extra checks for cane")
7106 (description "The cane gem provides a great framework for running quality
7107 checks over your ruby project as part of continuous integration build. It
7108 comes with a few checks out of the box, but also provides an API for loading
7109 custom checks. This gem provides a set of additional checks.")
7110 (license license:expat)))
7112 (define-public ruby-pdf-reader
7114 (name "ruby-pdf-reader")
7118 (uri (rubygems-uri "pdf-reader" version))
7121 "1b3ig4wpcgdbqa7yw0ahwbmikkkywn2a22bfmrknl5ls7g066x45"))))
7122 (build-system ruby-build-system)
7123 (arguments `(#:test-target "spec"))
7125 `(("bundler" ,bundler)
7126 ("ruby-rspec" ,ruby-rspec)
7127 ("ruby-cane" ,ruby-cane)
7128 ("ruby-morecane" ,ruby-morecane)))
7130 `(("ruby-afm" ,ruby-afm)
7131 ("ruby-ascii85" ,ruby-ascii85)
7132 ("ruby-hashery" ,ruby-hashery)
7133 ("ruby-rc4" ,ruby-rc4)
7134 ("ruby-ttfunk" ,ruby-ttfunk)))
7135 (home-page "https://github.com/yob/pdf-reader")
7136 (synopsis "PDF parser in Ruby")
7137 (description "The PDF::Reader library implements a PDF parser conforming as
7138 much as possible to the PDF specification from Adobe. It provides programmatic
7139 access to the contents of a PDF file with a high degree of flexibility.")
7140 (license license:gpl3+)))
7142 (define-public ruby-pdf-inspector
7144 (name "ruby-pdf-inspector")
7148 (uri (rubygems-uri "pdf-inspector" version))
7151 "1g853az4xzgqxr5xiwhb76g4sqmjg4s79mm35mp676zjsrwpa47w"))))
7152 (build-system ruby-build-system)
7154 `(("ruby-pdf-reader" ,ruby-pdf-reader)))
7155 (arguments `(#:tests? #f)); No rakefile
7156 (home-page "https://github.com/prawnpdf/pdf-inspector")
7157 (synopsis "Analysis classes for inspecting PDF output")
7158 (description "This library provides a number of PDF::Reader based tools for
7159 use in testing PDF output. Presently, the primary purpose of this tool is to
7160 support the tests found in Prawn, a pure Ruby PDF generation library.")
7161 (license license:gpl3+)))
7163 (define-public ruby-pdf-core
7165 (name "ruby-pdf-core")
7169 (uri (rubygems-uri "pdf-core" version))
7172 "15d6m99bc8bbzlkcg13qfpjjzphfg5x905pjbfygvpcxsm8gnsvg"))))
7173 (build-system ruby-build-system)
7177 (home-page "https://github.com/prawnpdf/pdf-core")
7178 (synopsis "Low level PDF features for Prawn")
7179 (description "This is an experimental gem that extracts low-level PDF
7180 functionality from Prawn.")
7181 (license license:gpl3+)))
7183 (define-public ruby-prawn
7189 (uri (rubygems-uri "prawn" version))
7192 "1qdjf1v6sfl44g3rqxlg8k4jrzkwaxgvh2l4xws97a8f3xv4na4m"))))
7193 (build-system ruby-build-system)
7198 (modify-phases %standard-phases
7199 (add-before 'build 'fix-dependencies
7201 (substitute* "prawn.gemspec"
7202 (("~> 0.7.0") "~> 0.7"))
7205 `(("ruby-pdf-core" ,ruby-pdf-core)
7206 ("ruby-ttfunk" ,ruby-ttfunk)))
7208 `(("bundler" ,bundler)
7209 ("ruby-pdf-inspector" ,ruby-pdf-inspector)
7210 ("ruby-rspec" ,ruby-rspec)
7211 ("ruby-simplecov" ,ruby-simplecov)
7212 ("ruby-yard" ,ruby-yard)))
7213 (home-page "http://prawnpdf.org/api-docs/2.0/")
7214 (synopsis "PDF generation for Ruby")
7215 (description "Prawn is a pure Ruby PDF generation library.")
7216 (license license:gpl3+)))
7218 (define-public ruby-prawn-table
7220 (name "ruby-prawn-table")
7224 (uri (rubygems-uri "prawn-table" version))
7227 "1nxd6qmxqwl850icp18wjh5k0s3amxcajdrkjyzpfgq0kvilcv9k"))))
7228 (build-system ruby-build-system)
7230 `(("ruby-prawn" ,ruby-prawn)
7231 ("ruby-pdf-inspector" ,ruby-pdf-inspector)))
7233 `(("bundler" ,bundler)
7234 ("ruby-yard" ,ruby-yard)
7235 ("ruby-mocha" ,ruby-mocha)
7236 ("ruby-coderay" ,ruby-coderay)
7237 ("ruby-prawn-manual-builder" ,ruby-prawn-manual-builder)
7238 ("ruby-simplecov" ,ruby-simplecov)
7239 ("ruby-rspec-2" ,ruby-rspec-2)))
7241 '(;; TODO: 1 test fails
7242 ;; Failure/Error: pdf.page_count.should == 1
7244 ;; got: 2 (using ==)
7245 ;; # ./spec/table_spec.rb:1308
7247 ;; 225 examples, 1 failure
7250 (modify-phases %standard-phases
7251 (add-before 'check 'patch-gemspec
7253 (substitute* "prawn-table.gemspec"
7254 ;; Loosen the requirement for pdf-inspector
7255 (("~> 1\\.1\\.0") ">= 0")
7256 ;; Loosen the requirement for pdf-reader
7257 (("~> 1\\.2") ">= 0"))))
7259 (lambda* (#:key tests? #:allow-other-keys)
7263 (home-page "https://github.com/prawnpdf/prawn-table")
7264 (synopsis "Tables support for Prawn")
7265 (description "This gem provides tables support for Prawn.")
7266 (license license:gpl3+)))
7268 (define-public ruby-kramdown
7270 (name "ruby-kramdown")
7274 (uri (rubygems-uri "kramdown" version))
7277 "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"))))
7278 (build-system ruby-build-system)
7279 (arguments `(#:tests? #f)); FIXME: some test failures
7281 `(("ruby-prawn" ,ruby-prawn)
7282 ("ruby-prawn-table" ,ruby-prawn-table)))
7283 (home-page "https://kramdown.gettalong.org/")
7284 (synopsis "Markdown parsing and converting library")
7285 (description "Kramdown is a library for parsing and converting a superset
7286 of Markdown. It is completely written in Ruby, supports standard Markdown
7287 (with some minor modifications) and various extensions that have been made
7288 popular by the PHP @code{Markdown Extra} package and @code{Maruku}.")
7289 (license license:expat)))
7291 (define-public ruby-http-parser.rb
7293 (name "ruby-http-parser.rb")
7298 (uri (rubygems-uri "http_parser.rb" version))
7301 "15nidriy0v5yqfjsgsra51wmknxci2n2grliz78sf9pga3n0l7gi"))))
7302 (build-system ruby-build-system)
7307 `(("ruby-rake-compiler" ,ruby-rake-compiler)
7308 ("ruby-rspec" ,ruby-rspec)))
7309 (home-page "https://github.com/tmm1/http_parser.rb")
7310 (synopsis "HTTP parser un Ruby")
7311 (description "This gem is a simple callback-based HTTP request/response
7312 parser for writing http servers, clients and proxies.")
7313 (license license:expat)))
7315 (define-public ruby-em-websocket
7317 (name "ruby-em-websocket")
7322 (uri (rubygems-uri "em-websocket" version))
7325 "1bsw8vjz0z267j40nhbmrvfz7dvacq4p0pagvyp17jif6mj6v7n3"))))
7326 (build-system ruby-build-system)
7331 `(("ruby-eventmachine" ,ruby-eventmachine)
7332 ("ruby-http-parser.rb" ,ruby-http-parser.rb)))
7334 `(("bundler" ,bundler)
7335 ("ruby-rspec" ,ruby-rspec)))
7336 (home-page "https://github.com/igrigorik/em-websocket")
7337 (synopsis "EventMachine based WebSocket server")
7338 (description "Em-websocket is an EventMachine based WebSocket server
7340 (license license:expat)))
7342 (define-public ruby-rouge
7348 (uri (rubygems-uri "rouge" version))
7351 "0h79gn2wmn1wix2d27lgiaimccyj8gvizrllyym500pir408x62f"))))
7352 (build-system ruby-build-system)
7353 (arguments `(#:tests? #f)); No rakefile
7354 (home-page "http://rouge.jneen.net/")
7355 (synopsis "Code highlighter")
7356 (description "Rouge is a code highlighter written in Ruby. It supports more
7357 than 100 languages and outputs HTML or ANSI 256-color text. Its HTML output
7358 is compatible with stylesheets designed for pygments.")
7360 ;; rouge is licensed under expat
7362 ;; pygments is licensed under bsd-2
7365 (define-public ruby-rouge-2
7367 (inherit ruby-rouge)
7371 (uri (rubygems-uri "rouge" version))
7374 "02kpahk5nkc33yxnn75649kzxaz073wvazr2zyg491nndykgnvcs"))))))
7376 (define-public ruby-hashie
7378 (name "ruby-hashie")
7382 (uri (rubygems-uri "hashie" version))
7385 "13bdzfp25c8k51ayzxqkbzag3wj5gc1jd8h7d985nsq6pn57g5xh"))))
7386 (build-system ruby-build-system)
7388 `(("bundler" ,bundler)))
7389 (arguments `(#:tests? #f)); FIXME: Could not locate Gemfile or .bundle/ directory
7390 (home-page "https://github.com/intridea/hashie")
7391 (synopsis "Extensions to Ruby Hashes")
7392 (description "Hashie is a collection of classes and mixins that make Ruby
7393 hashes more powerful.")
7394 (license license:expat)))
7396 (define-public ruby-heredoc-unindent
7398 (name "ruby-heredoc-unindent")
7402 (uri (rubygems-uri "heredoc_unindent" version))
7405 "14ijr2fsjwhrkjkcaz81d5xnfa4vvgvcflrff83avqw9klm011yw"))))
7406 (build-system ruby-build-system)
7408 `(("ruby-hoe" ,ruby-hoe)))
7409 (home-page "https://github.com/adrianomitre/heredoc_unindent")
7410 (synopsis "Heredoc indentation cleaner")
7411 (description "This gem removes common margin from indented strings, such
7412 as the ones produced by indented heredocs. In other words, it strips out
7413 leading whitespace chars at the beginning of each line, but only as much as
7414 the line with the smallest margin.
7416 It is acknowledged that many strings defined by heredocs are just code and
7417 fact is that most parsers are insensitive to indentation. If, however, the
7418 strings are to be used otherwise, be it for printing or testing, the extra
7419 indentation will probably be an issue and hence this gem.")
7420 (license license:expat)))
7422 (define-public ruby-safe-yaml
7424 (name "ruby-safe-yaml")
7428 ;; TODO Fetch from the git repository so a patch can be applied
7431 (url "https://github.com/dtao/safe_yaml.git")
7433 (file-name (git-file-name name version))
7436 "1wnln8xdy8g6kwdj4amm8773xwffqxpf2sxslk6jjh2wxsy1lrig"))
7438 (search-patches "ruby-safe-yaml-add-require-time.patch"))))
7439 (build-system ruby-build-system)
7441 `(("ruby-rspec" ,ruby-rspec)
7442 ("ruby-hashie" ,ruby-hashie)
7443 ("ruby-heredoc-unindent" ,ruby-heredoc-unindent)))
7445 '(#:test-target "spec"
7447 (modify-phases %standard-phases
7448 (add-before 'check 'set-TZ
7450 ;; This test is dependent on the timezone
7451 ;; spec/transform/to_date_spec.rb:35
7452 ;; # SafeYAML::Transform::ToDate converts times to the local
7454 (setenv "TZ" "UTC-11")
7456 (home-page "https://github.com/dtao/safe_yaml")
7457 (synopsis "YAML parser")
7458 (description "The SafeYAML gem provides an alternative implementation of
7459 YAML.load suitable for accepting user input in Ruby applications.")
7460 (license license:expat)))
7462 (define-public ruby-mercenary
7464 (name "ruby-mercenary")
7468 (uri (rubygems-uri "mercenary" version))
7471 "10la0xw82dh5mqab8bl0dk21zld63cqxb1g16fk8cb39ylc4n21a"))))
7472 (build-system ruby-build-system)
7473 (arguments `(#:test-target "spec"))
7475 `(("bundler" ,bundler)))
7476 (home-page "https://github.com/jekyll/mercenary")
7477 (synopsis "Command-line apps library in Ruby")
7478 (description "Mercenary is a lightweight and flexible library for writing
7479 command-line apps in Ruby.")
7480 (license license:expat)))
7482 (define-public ruby-liquid
7484 (name "ruby-liquid")
7488 (uri (rubygems-uri "liquid" version))
7491 "17fa0jgwm9a935fyvzy8bysz7j5n1vf1x2wzqkdfd5k08dbw3x2y"))))
7492 (build-system ruby-build-system)
7493 (arguments `(#:tests? #f)); No rakefile
7494 (home-page "https://shopify.github.io/liquid/")
7495 (synopsis "Template language")
7496 (description "Liquid is a template language written in Ruby. It is used
7497 to load dynamic content on storefronts.")
7498 (license license:expat)))
7500 (define-public ruby-forwardable-extended
7502 (name "ruby-forwardable-extended")
7506 (uri (rubygems-uri "forwardable-extended" version))
7509 "15zcqfxfvsnprwm8agia85x64vjzr2w0xn9vxfnxzgcv8s699v0v"))))
7510 (build-system ruby-build-system)
7511 (arguments `(#:tests? #f)); Cyclic dependency on luna-rspec-formatters
7512 (home-page "https://github.com/envygeeks/forwardable-extended")
7513 (synopsis "Delegation to hashes and instance variables in Forwardable")
7514 (description "Forwardable Extended provides more @code{Forwardable}
7515 methods for your source as @code{Forwardable::Extended}.")
7516 (license license:expat)))
7518 (define-public ruby-pathutil
7520 (name "ruby-pathutil")
7524 (uri (rubygems-uri "pathutil" version))
7527 "0wc18ms1rzi44lpjychyw2a96jcmgxqdvy2949r4vvb5f4p0lgvz"))))
7528 (build-system ruby-build-system)
7530 `(("ruby-forwardable-extended" ,ruby-forwardable-extended)))
7532 `(("bundler" ,bundler)
7533 ("ruby-rspec" ,ruby-rspec)))
7534 ;; Fails with: cannot load such file --
7535 ;; /tmp/guix-build-ruby-pathutil-0.16.0.drv-0/gem/benchmark/support/task
7536 (arguments `(#:tests? #f))
7537 (home-page "https://github.com/envygeeks/pathutil")
7538 (synopsis "Extended implementation of Pathname")
7539 (description "Pathutil tries to be a faster pure Ruby implementation of
7541 (license license:expat)))
7543 (define-public jekyll
7549 (uri (rubygems-uri "jekyll" version))
7552 "1iw90wihk9dscgmppf5v6lysg3kjmnx50mjyl4gghkdb4spw97xk"))))
7553 (build-system ruby-build-system)
7555 ;; No rakefile, but a test subdirectory
7558 (modify-phases %standard-phases
7559 (add-before 'build 'fix-i18n
7561 (substitute* ".gemspec"
7562 (("~> 0.7") ">= 0.7"))
7565 `(("ruby-addressable" ,ruby-addressable)
7566 ("ruby-colorator" ,ruby-colorator)
7567 ("ruby-em-websocket" ,ruby-em-websocket)
7568 ("ruby-i18n" ,ruby-i18n)
7569 ("ruby-jekyll-sass-converter" ,ruby-jekyll-sass-converter)
7570 ("ruby-jekyll-watch" ,ruby-jekyll-watch)
7571 ("ruby-kramdown" ,ruby-kramdown)
7572 ("ruby-liquid" ,ruby-liquid)
7573 ("ruby-mercenary" ,ruby-mercenary)
7574 ("ruby-pathutil" ,ruby-pathutil)
7575 ("ruby-rouge" ,ruby-rouge-2)
7576 ("ruby-safe-yaml" ,ruby-safe-yaml)))
7577 (home-page "https://jekyllrb.com/")
7578 (synopsis "Static site generator")
7579 (description "Jekyll is a simple, blog aware, static site generator.")
7580 (license license:expat)))
7582 (define-public ruby-jekyll-paginate-v2
7584 (name "ruby-jekyll-paginate-v2")
7588 (uri (rubygems-uri "jekyll-paginate-v2" version))
7591 "154bfpyml6abxww9868hhyfvxasl8qhsc5zy2q30c7dxaj0igdib"))))
7592 (build-system ruby-build-system)
7594 `(("jekyll" ,jekyll)))
7595 (home-page "https://github.com/sverrirs/jekyll-paginate-v2")
7596 (synopsis "Pagination Generator for Jekyll 3")
7597 (description "The Pagination Generator forms the core of the pagination
7598 logic in Jekyll. It calculates and generates the pagination pages.")
7599 (license license:expat)))
7601 (define-public ruby-faraday
7603 (name "ruby-faraday")
7608 (uri (rubygems-uri "faraday" version))
7611 "0s72m05jvzc1pd6cw1i289chas399q0a14xrwg4rvkdwy7bgzrh0"))))
7612 (build-system ruby-build-system)
7616 `(("ruby-multipart-post" ,ruby-multipart-post)))
7617 (synopsis "Ruby HTTP/REST API client library")
7619 "Faraday is a HTTP/REST API client library which provides a common
7620 interface over different adapters.")
7621 (home-page "https://github.com/lostisland/faraday")
7622 (license license:expat)))
7624 (define-public ruby-nio4r
7631 (uri (rubygems-uri "nio4r" version))
7634 "1a41ca1kpdmrypjp9xbgvckpy8g26zxphkja9vk7j5wl4n8yvlyr"))))
7635 (build-system ruby-build-system)
7638 (modify-phases %standard-phases
7639 (add-after 'unpack 'remove-unnecessary-dependencies
7641 (substitute* "spec/spec_helper.rb"
7642 ;; Coveralls is for uploading test coverage information to an
7643 ;; online service, and thus unnecessary for building the Guix
7645 (("require \"coveralls\"") "")
7646 (("Coveralls\\.wear!") "")
7647 ;; Remove rspec/retry as we are not retrying the tests
7648 (("require \"rspec/retry\"") "")
7649 (("config\\.display_try_failure_messages = true") "")
7650 (("config\\.verbose_retry = true") ""))
7652 (add-before 'check 'compile
7654 (invoke "rake" "compile")
7657 (lambda* (#:key tests? #:allow-other-keys)
7662 `(("bundler" ,bundler)
7663 ("ruby-rake-compiler" ,ruby-rake-compiler)
7664 ("ruby-rspec" ,ruby-rspec)
7665 ("ruby-rubocop" ,ruby-rubocop)))
7666 (synopsis "New I/O for Ruby")
7668 "@code{nio} provides cross-platform asynchronous I/O primitives in Ruby
7669 for scalable network clients and servers.")
7670 (home-page "https://github.com/socketry/nio4r")
7671 (license license:expat)))
7673 (define-public ruby-globalid
7675 (name "ruby-globalid")
7680 (uri (rubygems-uri "globalid" version))
7683 "1zkxndvck72bfw235bd9nl2ii0lvs5z88q14706cmn702ww2mxv1"))))
7684 (build-system ruby-build-system)
7686 '(;; No included tests
7689 `(("ruby-activesupport" ,ruby-activesupport)))
7690 (synopsis "Generate URIs idenfitying model instances in Ruby")
7692 "@code{GlobalID} provides a way to generate URIs from a model in Ruby that
7693 uniquely identify it.")
7694 (home-page "https://rubyonrails.org/")
7695 (license license:expat)))
7697 (define-public ruby-sprockets
7699 (name "ruby-sprockets")
7704 (uri (rubygems-uri "sprockets" version))
7707 "182jw5a0fbqah5w9jancvfmjbk88h8bxdbwnl4d3q809rpxdg8ay"))))
7708 (build-system ruby-build-system)
7710 '(;; No included tests
7713 `(("ruby-concurrent" ,ruby-concurrent)
7714 ("ruby-rack" ,ruby-rack)))
7715 (synopsis "Sprockets is a Rack-based asset packaging system")
7717 "Sprockets is a Rack-based asset packaging system that concatenates and
7718 serves JavaScript, CoffeeScript, CSS, LESS, Sass, and SCSS.")
7719 (home-page "https://github.com/rails/sprockets")
7720 (license license:expat)))